ados-rcm 1.1.672 → 1.1.674
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/AModule/AComponents/ATheme/ATheme.d.ts +2 -2
- package/dist/AModule/AUtils/sF.d.ts +2 -2
- package/dist/index.cjs.js +25 -25
- package/dist/index.es.js +2990 -2972
- package/package.json +3 -5
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('@charset "UTF-8";._NoSelect_29290_1{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}._NoTransition_29290_6{--Transition-Enabled: 0}._IsFixedShape_29290_10{overflow:hidden;white-space:nowrap}._IsCursorPointer_29290_15{cursor:pointer}._IsInteractive_29290_19:before{position:absolute;top:0;left:0;width:100%;height:100%;color:block;content:"";background-color:#000;border-radius:inherit;opacity:0;transition:all var(--Transition)}._IsInteractive_29290_19:hover:before{opacity:.06}._IsInteractive_29290_19:focus:before{opacity:.12}._IsInteractive_29290_19:active:before{opacity:.16}._Display1_11vgm_1{font-size:3.5rem;font-weight:700}._Display2_11vgm_6{font-size:2.75rem;font-weight:600}._Title1_11vgm_11{font-size:2.25rem;font-weight:600}._Title2_11vgm_16{font-size:1.625rem;font-weight:600}._Title3_11vgm_21{font-size:1.5rem;font-weight:600}._Headline1_11vgm_26{font-size:1.375rem;font-weight:500}._Headline2_11vgm_31{font-size:1.25rem;font-weight:400}._Body1Normal_11vgm_36,._Body1Reading_11vgm_41{font-size:1rem;font-weight:400}._Label1_11vgm_46{font-size:.875rem;font-weight:400}._Label2_11vgm_51{font-size:.8125rem;font-weight:400}._Caption1_11vgm_56{font-size:.75rem;font-weight:400}._Caption2_11vgm_61{font-size:.6875rem;font-weight:400}._Regular_11vgm_66{font-weight:400}._Medium_11vgm_70{font-weight:500}._SemiBold_11vgm_74{font-weight:600}._Bold_11vgm_78{font-weight:700}._AProgressBar_17v9w_1{display:flex;flex-direction:column;width:100%;padding:4px 0}._AProgressBar_17v9w_1 ._Header_17v9w_7{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}._AProgressBar_17v9w_1 ._Header_17v9w_7 ._Percentage_17v9w_13{transition:color calc(var(--Transition-Enabled) * var(--Transition))}._AProgressBar_17v9w_1 ._BarContainer_17v9w_16{position:relative;width:100%;height:8px;overflow:hidden;background-color:var(--line-neutral);border-radius:4px;transition:background-color calc(var(--Transition-Enabled) * var(--Transition))}._AProgressBar_17v9w_1 ._BarContainer_17v9w_16 ._Bar_17v9w_16{height:100%;background-color:var(--acent-brand);border-radius:inherit;transition:width calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition))}._AProgressBar_17v9w_1._CustomHeight_17v9w_31 ._BarContainer_17v9w_16{height:var(--progress-bar-height)}._AProgressBar_17v9w_1._CustomRadius_17v9w_34 ._BarContainer_17v9w_16,._AProgressBar_17v9w_1._CustomRadius_17v9w_34 ._BarContainer_17v9w_16 ._Bar_17v9w_16{border-radius:var(--progress-bar-radius)}._AProgressBar_17v9w_1._CustomColor_17v9w_40 ._BarContainer_17v9w_16{background-color:var(--progress-bar-background-custom)}._AProgressBar_17v9w_1._CustomColor_17v9w_40 ._BarContainer_17v9w_16 ._Bar_17v9w_16{background-color:var(--progress-bar-color-custom)}._Tooltip_1khnz_1{position:fixed;z-index:100;visibility:hidden;width:fit-content;height:fit-content;padding:4px 10px;text-overflow:ellipsis;color:var(--ATooltip_color);white-space:break-all;pointer-events:none;background-color:var(--ATooltip_background-color);border-radius:5px;opacity:0;transition:opacity var(--Transition) ease-in-out,background-color var(--Transition) ease-in-out}._Tooltip_1khnz_1 ._Arrow_1khnz_17{position:absolute;pointer-events:none;content:"";border-color:var(--ATooltip_background-color)}._ABase_c7a1t_1{position:relative;display:flex;flex-direction:column}._ABase_c7a1t_1._UseDimming_c7a1t_6 ._UseDimming_c7a1t_6 ._Dimmer_c7a1t_6,._ABase_c7a1t_1._UseDimming_c7a1t_6 ._UseDimming_c7a1t_6 ._Spinner_c7a1t_9{z-index:0}._ABase_c7a1t_1._Dimmed_c7a1t_12 ._Dimmed_c7a1t_12 ._Dimmer_c7a1t_6,._ABase_c7a1t_1._Dimmed_c7a1t_12 ._Dimmed_c7a1t_12 ._Spinner_c7a1t_9{opacity:0}._ABase_c7a1t_1._HasProgress_c7a1t_18>*:not(._Dimmer_c7a1t_6,._Spinner_c7a1t_9){visibility:hidden}._Dimmer_c7a1t_6{position:absolute;top:0;left:0;z-index:100;width:100%;height:100%;overflow:hidden;pointer-events:none;background-color:var(--ABase_Dimming_background-color);border-radius:inherit;opacity:0;transition:opacity var(--Transition),background-color var(--Transition)}._Dimmer_c7a1t_6._IsDimmed_c7a1t_36{pointer-events:all;cursor:progress;opacity:.5}._Dimmer_c7a1t_6._IsLoading_c7a1t_41{pointer-events:all;cursor:wait;opacity:.5}._Dimmer_c7a1t_6._IsDisabled_c7a1t_46{pointer-events:all;cursor:not-allowed;opacity:.5}._Dimmer_c7a1t_6._HasProgress_c7a1t_18{background-color:var(--ABase_Dimming_background-color);opacity:.9}._Spinner_c7a1t_9{position:absolute;top:0;left:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity var(--Transition)}._Spinner_c7a1t_9 svg{width:50px;max-width:50%;height:50px;max-height:50%}._Spinner_c7a1t_9._IsLoading_c7a1t_41{opacity:1}._Spinner_c7a1t_9._IsLoading_c7a1t_41._IsDisabled_c7a1t_46{opacity:.5}._Spinner_c7a1t_9._HasProgress_c7a1t_18{display:flex;justify-content:center}._Spinner_c7a1t_9._HasProgress_c7a1t_18>*{width:calc(100% - 20px);max-width:300px}._AButton_vulhu_1{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:90px;height:34px;padding:0 18px;white-space:nowrap;border-radius:2px;transition:color var(--Transition),background-color var(--Transition),border var(--Transition)}._AButton_vulhu_1._Primary_vulhu_14{color:var(--AButton_Primary_color);background-color:var(--AButton_Primary_background-color);border:var(--AButton_Primary_border)}._AButton_vulhu_1._Secondary_vulhu_19{color:var(--AButton_Secondary_color);background-color:var(--AButton_Secondary_background-color);border:var(--AButton_Secondary_border)}._AButton_vulhu_1._Alter_vulhu_24{color:var(--AButton_Alter_color);background-color:var(--AButton_Alter_background-color);border:var(--AButton_Alter_border)}._AIconButton_vulhu_30{box-sizing:border-box;display:flex;align-items:center;justify-content:center}._AIconButton_vulhu_30._Primary_vulhu_14{min-width:34px;max-width:34px;min-height:34px;max-height:34px;color:var(--AIconButton_Primary_color);background-color:var(--AIconButton_Primary_background-color);border:var(--AIconButton_Primary_border);border-radius:6px;transition:border var(--Transition),background-color var(--Transition),color var(--Transition)}._AIconButton_vulhu_30._Primary_vulhu_14:hover{background-color:var(--AIconButton_Primary_hover_background-color)}._AIconButton_vulhu_30._Primary_vulhu_14:active{background-color:var(--AIconButton_Primary_active_background-color)}._AIconButton_vulhu_30._Secondary_vulhu_19{min-width:24px;max-width:24px;min-height:24px;max-height:24px;color:var(--AIconButton_Secondary_color);background-color:var(--AIconButton_Secondary_background-color);border:none;border-radius:9999px;transition:background-color var(--Transition),color var(--Transition)}._AIconButton_vulhu_30._Secondary_vulhu_19:hover{background-color:var(--AIconButton_Secondary_hover_background-color)}._AIconButton_vulhu_30._Secondary_vulhu_19:active{background-color:var(--AIconButton_Secondary_active_background-color)}._AThemeButton_vulhu_71{width:28px;height:28px;color:var(--AIconButton_Primary_color);border-radius:14px;transition:color var(--Transition)}._AWrap_u1f1h_1{position:relative;z-index:0;display:flex;flex-direction:column}._Label_u1f1h_8{display:flex;flex-direction:row;gap:4px;align-items:center;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;color:inherit;white-space:nowrap}._Label_u1f1h_8 ._Asterisk_u1f1h_19{color:var(--alert-danger)}._HelperTextConatiner_u1f1h_23{display:flex;flex-grow:0;flex-direction:row;overflow:hidden;color:inherit;transition:all var(--Transition) ease-in-out}._HelperText_u1f1h_23{height:fit-content;overflow:hidden;color:inherit;transition:all var(--Transition)}._HelperText_u1f1h_23._Error_u1f1h_38{color:var(--AWrap_Error_color)}._ASwitch_nlcij_1{cursor:pointer;border-radius:26px}._Track_nlcij_6{min-width:26px;max-width:26px;border:var(--ASwitch_Track_Falsy_border);border-radius:26px;transition:transform .15s cubic-bezier(.4,0,.2,1),border-color var(--Transition)}._Track_nlcij_6._Truthy_nlcij_13{border:var(--ASwitch_Track_Truthy_border)}._Thumb_nlcij_17{position:absolute;top:50%;border:var(--ASwitch_Thumb_border);border-radius:50%;transform:translate(-9px,-50%);transition:transform .15s cubic-bezier(.4,0,.2,1),border-color var(--Transition)}._Thumb_nlcij_17._Truthy_nlcij_13{transform:translate(17px,-50%)}._ACheckBoxWrap_1ozuz_1{color:var(--ACheckBox_color);cursor:pointer;border-radius:4px;transition:color var(--Transition)}._ACheckBox_1ozuz_1{min-width:16px;max-width:16px;min-height:16px;max-height:16px}._ARowFrame_1v0ao_1{display:flex;flex-direction:row;align-items:center}._AColFrame_1v0ao_7{display:flex;flex-direction:column;align-items:center}._AOverflowFrame_1v0ao_13{display:block;max-width:100%;max-height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._ADivideFrame_1v0ao_22{position:relative;display:flex;flex-grow:1;overflow:hidden;opacity:0;transition:opacity var(--Transition) cubic-bezier(.4,0,.2,1)}._ADivideFrame_1v0ao_22._Row_1v0ao_30{flex-direction:row}._ADivideFrame_1v0ao_22._Col_1v0ao_33{flex-direction:column}._ADivideFrame_1v0ao_22._FadeIn_1v0ao_36{opacity:1}._ADivideFrame_1v0ao_22._NoTransition_1v0ao_39{transition:none!important}._ChildFrame_1v0ao_43{position:relative;box-sizing:border-box;display:flex;flex-grow:1;flex-direction:column;overflow:hidden;transition:width var(--Transition) cubic-bezier(.4,0,.2,1),height var(--Transition) cubic-bezier(.4,0,.2,1),min-width var(--Transition) cubic-bezier(.4,0,.2,1),min-height var(--Transition) cubic-bezier(.4,0,.2,1),max-width var(--Transition) cubic-bezier(.4,0,.2,1),max-height var(--Transition) cubic-bezier(.4,0,.2,1)}._ChildFrame_1v0ao_43._Row_1v0ao_30{overflow-x:auto}._ChildFrame_1v0ao_43._Col_1v0ao_33{overflow-y:auto}._ChildFrame_1v0ao_43._NoTransition_1v0ao_39{transition:none!important}._ChildFrame_1v0ao_43:has(._ExpandButtonOverlay_1v0ao_61){position:relative;min-width:24px;min-height:24px}._ChildFrame_1v0ao_43:has(._ExpandButtonOverlay_1v0ao_61)._Row_1v0ao_30{overflow:visible}._ChildFrame_1v0ao_43:has(._ExpandButtonOverlay_1v0ao_61)._Col_1v0ao_33{overflow:visible}._Divider_1v0ao_73{position:absolute;z-index:100;display:flex;align-items:center;justify-content:center;transition:left var(--Transition) cubic-bezier(.4,0,.2,1),top var(--Transition) cubic-bezier(.4,0,.2,1)}._Divider_1v0ao_73:hover:not(._IsMoving_1v0ao_81,._NoDraggable_1v0ao_81)._Row_1v0ao_30{cursor:ew-resize}._Divider_1v0ao_73:hover:not(._IsMoving_1v0ao_81,._NoDraggable_1v0ao_81)._Row_1v0ao_30 ._DividerInner_1v0ao_84{min-width:2px;max-width:2px}._Divider_1v0ao_73:hover:not(._IsMoving_1v0ao_81,._NoDraggable_1v0ao_81)._Col_1v0ao_33{cursor:ns-resize}._Divider_1v0ao_73:hover:not(._IsMoving_1v0ao_81,._NoDraggable_1v0ao_81)._Col_1v0ao_33 ._DividerInner_1v0ao_84{min-height:2px;max-height:2px}._Divider_1v0ao_73._Row_1v0ao_30{min-width:11px;max-width:11px;min-height:100%;max-height:100%;margin-right:-5.5px;margin-left:-5.5px}._Divider_1v0ao_73._Row_1v0ao_30 ._DividerInner_1v0ao_84{min-width:1px;max-width:1px;min-height:100%;max-height:100%}._Divider_1v0ao_73._Row_1v0ao_30._IsClicked_1v0ao_109:not(._NoDraggable_1v0ao_81){cursor:ew-resize}._Divider_1v0ao_73._Row_1v0ao_30._IsClicked_1v0ao_109:not(._NoDraggable_1v0ao_81) ._DividerInner_1v0ao_84{min-width:2px;max-width:2px}._Divider_1v0ao_73._Col_1v0ao_33{min-width:100%;max-width:100%;min-height:11px;max-height:11px;margin-top:-5.5px;margin-bottom:-5.5px}._Divider_1v0ao_73._Col_1v0ao_33 ._DividerInner_1v0ao_84{min-width:100%;max-width:100%;min-height:1px;max-height:1px}._Divider_1v0ao_73._Col_1v0ao_33._IsClicked_1v0ao_109:not(._NoDraggable_1v0ao_81){cursor:ns-resize}._Divider_1v0ao_73._Col_1v0ao_33._IsClicked_1v0ao_109:not(._NoDraggable_1v0ao_81) ._DividerInner_1v0ao_84{min-height:2px;max-height:2px}._DividerInner_1v0ao_84{position:absolute;background-color:var(--ADivideFrame_DividerInner_background-color);transition:all var(--Transition) cubic-bezier(.4,0,.2,1)}._RemoteButton_1v0ao_144{display:flex;flex-shrink:0;width:fit-content;padding:21px 10px 24px}._isExpanded_1v0ao_151{transform:scaleX(-1)}._IsMoving_1v0ao_81,._NoTransition_1v0ao_39{transition:none}._NoDraggable_1v0ao_81{cursor:default}._ExpandButtonOverlay_1v0ao_61{position:absolute;top:0;right:0;bottom:0;left:0;z-index:99;pointer-events:auto;cursor:pointer;background-color:var(--background-normal);opacity:.1;transition:background-color var(--Transition) cubic-bezier(.4,0,.2,1),opacity var(--Transition) cubic-bezier(.4,0,.2,1);animation:_fade-in_1v0ao_1 var(--Transition) cubic-bezier(.4,0,.2,1) forwards}._ExpandButtonOverlay_1v0ao_61:hover{background-color:var(--elevation-10);opacity:.2}@keyframes _fade-in_1v0ao_1{0%{opacity:0}to{opacity:1}}._ExpandButton_1v0ao_61{position:absolute;top:50%;left:50%;z-index:100;color:var(--acent-brand);opacity:0;transition:all var(--Transition) cubic-bezier(.4,0,.2,1);animation:_fade-in_1v0ao_1 var(--Transition) cubic-bezier(.4,0,.2,1) .1s forwards}._ASpace_1okqf_1{width:0;height:0;transition:all var(--Transition)}._AChipsContainer_1ag9v_1{display:flex;flex-flow:row wrap}._AChip_1ag9v_1{position:relative;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:center;min-width:32px;min-height:26px;padding:4px 6px;color:var(--AChip_color);background-color:var(--AChip_background-color);border:var(--AChip_border);border-radius:16px}._AChip_1ag9v_1._Clickable_1ag9v_21:hover{color:var(--AChip_hover_color);background-color:var(--AChip_hover_background-color)}._AChipDelete_1ag9v_26{position:absolute;right:0;aspect-ratio:1/1;margin-right:6px;color:var(--AChip_DeleteButton_color);border:var(--AChip_DeleteButton_border);border-radius:50%}._AChipDelete_1ag9v_26:hover,._IsHover_1ag9v_40{color:var(--AChip_DeleteButton_hover_color);border:var(--AChip_DeleteButton_hover_border)}._AChipDeleteIcon_1ag9v_45{position:absolute;right:0;z-index:2;margin-right:8px}input{font-family:Pretendard,sans-serif;font-size:1rem;font-weight:400}._InputContainer_16eoo_7{z-index:1;box-sizing:border-box;display:flex;flex-direction:row;height:34px;word-break:none;white-space:nowrap;resize:none;border:none;border-radius:6px;transition:border var(--Transition),background-color var(--Transition)}._AInput_16eoo_21{box-sizing:border-box;width:100%;padding:8px 12px;text-overflow:ellipsis;color:inherit;background-color:transparent;border:none;transition:color var(--Transition)}._AInput_16eoo_21:focus{outline:none}._AInput_16eoo_21::placeholder{transition:all var(--Transition);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}._AInput_16eoo_21::-webkit-calendar-picker-indicator{display:none!important}._LeftAddon_16eoo_43{box-sizing:border-box;display:flex;align-items:center;transition:color var(--Transition)}._RightAddon_16eoo_50{display:flex;flex-direction:row;align-items:center;transition:color var(--Transition)}._ErrorHelperText_16eoo_57{color:var(--AInput_Error_HelperText_color)}._Primary_16eoo_61{color:var(--AInput_Primary_color);background-color:var(--AInput_Primary_background-color);border:var(--AInput_Primary_border)}._Primary_16eoo_61:hover:not(._UnAvailable_16eoo_66){border:var(--AInput_Primary_hover_border)}._Primary_16eoo_61:focus-within:not(._UnAvailable_16eoo_66){background-color:var(--AInput_Primary_focus_background-color);border:var(--AInput_Primary_focus_border)}._Primary_16eoo_61 ::placeholder{color:var(--AInput_Primary_placeholder_color)}._Secondary_16eoo_77{color:var(--AInput_Secondary_color);background-color:var(--AInput_Secondary_background-color);border:var(--AInput_Secondary_border)}._Secondary_16eoo_77:hover:not(._UnAvailable_16eoo_66){border:var(--AInput_Secondary_hover_border)}._Secondary_16eoo_77:focus-within:not(._UnAvailable_16eoo_66){border:var(--AInput_Secondary_focus_border)}._Secondary_16eoo_77 ::placeholder{color:var(--AInput_Secondary_placeholder_color)}._ReadOnly_16eoo_92{color:var(--AInput_ReadOnly_color);cursor:not-allowed;background-color:var(--AInput_ReadOnly_background-color);border:var(--AInput_ReadOnly_border)}._Error_16eoo_57{color:var(--AInput_Error_color);background-color:var(--AInput_Error_background-color);border:var(--AInput_Error_border)}._Error_16eoo_57 ::placeholder{color:var(--AInput_Error_placeholder_color)}._ANumInputUnitSelect_16eoo_108{padding:0;color:var(--line-strong)}._ASelect_1gbzd_1{position:relative;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:200px;height:34px;overflow:hidden;cursor:pointer;border-radius:6px}._ASelect_1gbzd_1 ._Arrow_1gbzd_14{position:relative;display:flex;align-items:center;justify-content:center;height:100%;pointer-events:none;transition:border var(--Transition)}._ASelect_1gbzd_1._Primary_1gbzd_23{border:var(--ASelect_Primary_border);transition:border var(--Transition)}._ASelect_1gbzd_1._Primary_1gbzd_23 ._Arrow_1gbzd_14{min-width:30px;max-width:50px;aspect-ratio:1/1;color:var(--ASelect_Primary_Arrow_color);border-left:var(--ASelect_Primary_border)}._ASelect_1gbzd_1._Primary_1gbzd_23:hover:not(._UnAvailable_1gbzd_34),._ASelect_1gbzd_1._Primary_1gbzd_23._IsOpen_1gbzd_34:not(._UnAvailable_1gbzd_34){border:var(--ASelect_Primary_hover_border)}._ASelect_1gbzd_1._Primary_1gbzd_23:hover:not(._UnAvailable_1gbzd_34) ._Arrow_1gbzd_14,._ASelect_1gbzd_1._Primary_1gbzd_23._IsOpen_1gbzd_34:not(._UnAvailable_1gbzd_34) ._Arrow_1gbzd_14{border-left:var(--ASelect_Primary_hover_border);transition:border-left var(--Transition)}._ASelect_1gbzd_1._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_background-color);border:var(--ASelect_Secondary_border);transition:border var(--Transition),background-color var(--Transition)}._ASelect_1gbzd_1._Secondary_1gbzd_41 ._Arrow_1gbzd_14{color:var(--ASelect_Secondary_Arrow_color);transition:color var(--Transition)}._ASelect_1gbzd_1._Secondary_1gbzd_41:hover:not(._UnAvailable_1gbzd_34),._ASelect_1gbzd_1._Secondary_1gbzd_41._IsOpen_1gbzd_34:not(._UnAvailable_1gbzd_34){border:var(--ASelect_Secondary_hover_border)}._ASelect_1gbzd_1._Secondary_1gbzd_41:hover:not(._UnAvailable_1gbzd_34) ._Arrow_1gbzd_14,._ASelect_1gbzd_1._Secondary_1gbzd_41._IsOpen_1gbzd_34:not(._UnAvailable_1gbzd_34) ._Arrow_1gbzd_14{transition:border-left var(--Transition)}._Placeholder_1gbzd_57{color:var(--ASelect_Placeholder_color)}._ValuesContainer_1gbzd_61{display:flex;flex-grow:1;overflow:hidden;white-space:nowrap}._Values_1gbzd_61{box-sizing:border-box;display:block;width:100%;height:100%;padding:8px 0 8px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Options_1gbzd_80{position:fixed;z-index:100;box-sizing:border-box;visibility:hidden;width:fit-content;overflow:overlay;cursor:pointer;border-radius:6px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;opacity:0;transition:opacity var(--Transition),visibility var(--Transition),background-color var(--Transition),border var(--Transition)}._Options_1gbzd_80._Raw_1gbzd_93,._Options_1gbzd_80._Primary_1gbzd_23{background-color:var(--ASelect_Primary_Options_background-color);border:var(--ASelect_Primary_Options_border)}._Options_1gbzd_80._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_Options_background-color);border:var(--ASelect_Secondary_Options_border)}._Option_1gbzd_80{display:flex;flex-grow:1;flex-direction:row;align-items:center;padding-left:12px;transition:background-color var(--Transition)}._Option_1gbzd_80:hover._Raw_1gbzd_93,._Option_1gbzd_80:hover._Primary_1gbzd_23{background-color:var(--ASelect_Primary_Option_hover_background-color)}._Option_1gbzd_80:hover._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_Option_hover_background-color)}._Option_1gbzd_80:active._Raw_1gbzd_93,._Option_1gbzd_80:active._Primary_1gbzd_23{background-color:var(--ASelect_Primary_Option_active_background-color)}._Option_1gbzd_80:active._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_Option_active_background-color)}._Option_1gbzd_80._Selected_1gbzd_122._Raw_1gbzd_93,._Option_1gbzd_80._Selected_1gbzd_122._Primary_1gbzd_23{background-color:var(--ASelect_Primary_Option_Selected_background-color)}._Option_1gbzd_80._Selected_1gbzd_122._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_Option_Selected_background-color)}._CheckBox_1gbzd_129{position:sticky;left:0;z-index:2;display:flex;flex-direction:row;align-items:center;min-height:100%;padding-right:12px;background-color:inherit}._Anchor_1l5ql_1{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;height:34px;color:var(--ADatePicker_Anchor_color);border:var(--ADatePicker_Anchor_border);border-radius:6px;transition:all var(--Transition)}._Anchor_1l5ql_1:hover{border:var(--ADatePicker_Anchor_hover_border)}._Anchor_1l5ql_1:focus{border:var(--ADatePicker_Anchor_focus_border)}._Anchor_1l5ql_1._Primary_1l5ql_18{padding:8px}._Anchor_1l5ql_1._Secondary_1l5ql_21{padding:8px 4px 8px 12px}._Placeholder_1l5ql_25{color:var(--ADatePicker_Anchor_Placeholder_color);transition:all var(--Transition)}._Icon_1l5ql_30{transition:color var(--Transition)}._Icon_1l5ql_30._Primary_1l5ql_18{color:var(--ADatePicker_Anchor_Icon_Primary_color)}._Icon_1l5ql_30._Secondary_1l5ql_21{color:var(--ADatePicker_Anchor_Icon_Secondary_color)}._ADatePicker_1l5ql_40{position:fixed;z-index:100;overflow:hidden;background-color:var(--ADatePicker_background-color);border:var(--ADatePicker_border);border-radius:6px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;transition:background-color var(--Transition),opacity var(--Transition),visibility var(--Transition)}._StringInputWrap_1l5ql_51{display:flex;flex:1}._StringInputContainer_1l5ql_56{box-sizing:border-box;display:flex;flex-direction:column;padding:10px;background-color:var(--ADatePicker_StringInputContainer_background-color)}._StringInput_1l5ql_51{text-align:center}._String_1l5ql_51{border-color:var(--ADatePicker_StringInputContainer_background-color)}._String_1l5ql_51._IsIdx_1l5ql_71{border:var(--ADatePicker_String_border)}._CalendarContainer_1l5ql_75{display:flex;flex-direction:column;padding:10px}._Header_1l5ql_81{justify-content:space-between}._Prev_1l5ql_85,._Next_1l5ql_86{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:24px;max-width:24px;min-height:24px;max-height:24px;cursor:pointer;border-radius:4px}._Prev_1l5ql_85{background-color:var(--ADatePicker_Prev_background-color)}._Prev_1l5ql_85:after{margin-left:-6px;content:"";border:4px solid transparent;border-right:var(--ADatePicker_Prev_border-right)}._Next_1l5ql_86{background-color:var(--ADatePicker_Next_background-color)}._Next_1l5ql_86:after{margin-left:6px;content:"";border:4px solid transparent;border-left:var(--ADatePicker_Next_border-left)}._MonthYear_1l5ql_119{display:flex;flex-direction:row}._Select_1l5ql_124{min-height:100%;max-height:35px}._Calendar_1l5ql_75{display:flex;flex-direction:column}._Cell_1l5ql_134{display:flex;align-items:center;justify-content:center;min-width:40px;max-width:40px;min-height:24px;max-height:24px;color:var(--ADatePicker_Cell_color);background-color:transparent;border-radius:0}._Cell_1l5ql_134._IsNotCurrentMonth_1l5ql_146{color:var(--ADatePicker_Cell_IsNotCurrentMonth_color);pointer-events:none}._Cell_1l5ql_134._IsSelected_1l5ql_150{color:var(--ADatePicker_Cell_IsSelected_color);background-color:var(--ADatePicker_Cell_IsSelected_background-color)}._Cell_1l5ql_134._IsDisabled_1l5ql_154{background-color:var(--ADatePicker_Cell_IsDisabled_color)}._Cell_1l5ql_134._IsHovered_1l5ql_157{background-color:var(--ADatePicker_Cell_IsHovered_background-color)}._Week_1l5ql_161{display:flex;flex-direction:row}._WeekDay_1l5ql_166{cursor:default}._Anchor_5u6hq_1{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;height:34px;color:var(--ADateRangePicker_Anchor_color);border:var(--ADateRangePicker_Anchor_border);border-radius:6px;transition:all var(--Transition)}._Anchor_5u6hq_1:hover{border:var(--ADateRangePicker_Anchor_hover_border)}._Anchor_5u6hq_1:focus{border:var(--ADateRangePicker_Anchor_focus_border)}._Anchor_5u6hq_1._Primary_5u6hq_18{padding:8px 4px 8px 8px}._Anchor_5u6hq_1._Secondary_5u6hq_22{padding:8px 4px 8px 12px}._Placeholder_5u6hq_26{color:var(--ADateRangePicker_Anchor_Placeholder_color);transition:all var(--Transition)}._Icon_5u6hq_31{transition:color var(--Transition)}._Icon_5u6hq_31._Primary_5u6hq_18{color:var(--ADateRangePicker_Anchor_Icon_Primary_color)}._Icon_5u6hq_31._Secondary_5u6hq_22{color:var(--ADateRangePicker_Anchor_Icon_Secondary_color)}._ADateRangePicker_5u6hq_41{position:fixed;z-index:100;overflow:hidden;background-color:var(--ADateRangePicker_background-color);border:var(--ADateRangePicker_border);border-radius:6px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;transition:background-color var(--Transition),opacity var(--Transition),visibility var(--Transition)}._StringInputWrap_5u6hq_52{display:flex}._StringInputContainer_5u6hq_56{box-sizing:border-box;display:flex;flex-direction:column;width:300px;padding:10px;background-color:var(--ADateRangePicker_StringInputContainer_background-color)}._StringInput_5u6hq_52{text-align:center}._String_5u6hq_52{border-color:var(--ADateRangePicker_StringInputContainer_background-color)}._String_5u6hq_52._IsIdx_5u6hq_72{border:var(--ADateRangePicker_String_border)}._CalendarContainer_5u6hq_76{display:flex;flex-direction:column;padding:10px}._Header_5u6hq_82{justify-content:space-between}._Prev_5u6hq_86,._Next_5u6hq_87{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:24px;max-width:24px;min-height:24px;max-height:24px;cursor:pointer;border-radius:4px}._Prev_5u6hq_86{background-color:var(--ADateRangePicker_Prev_background-color)}._Prev_5u6hq_86:after{margin-left:-6px;content:"";border:4px solid transparent;border-right:var(--ADateRangePicker_Prev_border-right)}._Next_5u6hq_87{background-color:var(--ADateRangePicker_Next_background-color)}._Next_5u6hq_87:after{margin-left:6px;content:"";border:4px solid transparent;border-left:var(--ADateRangePicker_Next_border-left)}._MonthYear_5u6hq_120{display:flex;flex-direction:row}._Select_5u6hq_125{min-height:100%;max-height:35px}._Calendar_5u6hq_76{display:flex;flex-direction:column}._Cell_5u6hq_135{display:flex;align-items:center;justify-content:center;min-width:40px;max-width:40px;min-height:24px;max-height:24px;color:var(--ADateRangePicker_Cell_color);background-color:transparent;border-radius:0}._Cell_5u6hq_135._IsNotCurrentMonth_5u6hq_147{color:var(--ADateRangePicker_Cell_IsNotCurrentMonth_color);pointer-events:none}._Cell_5u6hq_135._IsSelected_5u6hq_151{color:var(--ADateRangePicker_Cell_IsSelected_color);background-color:var(--ADateRangePicker_Cell_IsSelected_background-color)}._Cell_5u6hq_135._IsDisabled_5u6hq_155{background-color:var(--ADateRangePicker_Cell_IsDisabled_color)}._Cell_5u6hq_135._IsHovered_5u6hq_158{background-color:var(--ADateRangePicker_Cell_IsHovered_background-color)}._Week_5u6hq_162{display:flex;flex-direction:row}._WeekDay_5u6hq_167{cursor:default}._ChoiceButton_5u6hq_171{flex:1;width:unset;min-width:unset;height:24px;border-radius:4px}._ChoiceButton_5u6hq_171+._ChoiceButton_5u6hq_171{margin-left:8px}._Paper_e69j5_1{position:fixed;top:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;background-color:var(--ADialog_Paper_background-color);transition:opacity var(--Transition),visibility var(--Transition)}._Card_e69j5_15{display:flex;flex-direction:column;min-width:400px;max-width:80%;max-height:80%;overflow:overlay;background-color:var(--ADialog_background-color);border:var(--ADialog_border);border-radius:4px}._Card_e69j5_15 ._Body_e69j5_26{box-sizing:border-box;display:flex;flex-grow:1;flex-direction:column;width:100%;padding:20px;overflow:overlay}._Card_e69j5_15 ._Body_e69j5_26 ._Title_e69j5_35{box-sizing:border-box;display:flex;flex-grow:0;width:100%;margin-bottom:12px}._Card_e69j5_15 ._Body_e69j5_26 ._Content_e69j5_42{overflow:overlay}._Card_e69j5_15 ._Action_e69j5_45{box-sizing:border-box;display:flex;flex-grow:1;align-items:center;justify-content:flex-end;width:100%;min-height:82px;max-height:82px;padding:25.5px 24px;overflow:hidden;background-color:var(--ADialog_Action_background-color)}._Card_e69j5_15 ._Action_e69j5_45 ._Button_e69j5_58{box-sizing:border-box;display:flex;flex:1;width:172px;max-width:172px;min-height:30px;padding:1px 6px}._AFileBox_1hlo1_1{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:300px;height:100px;padding:20px;cursor:default;background-color:var(--AFileBox_background-color);border:var(--AFileBox_border);border-radius:6px;transition:border var(--Transition),background-color var(--Transition)}._SelectedFile_1hlo1_16{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--AFileBox_SelectedFile_color);transition:all var(--Transition)}._Dropping_1hlo1_26{color:var(--AFileBox_Dropping_color);transition:all var(--Transition)}._AFileUploader_i2nun_1{position:relative;box-sizing:border-box;width:100%;padding:0;margin-top:8px;cursor:default;border:none;display:flex;flex-direction:row;gap:0;align-items:flex-start;justify-content:flex-start}._LabelContainer_i2nun_16{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;width:100%}._LabelButton_i2nun_25{height:1rem;text-decoration:underline;text-underline-offset:2px;cursor:pointer}._LabelButton_i2nun_25:hover:not(._Disabled_i2nun_31){color:var(--AFileUploader_brand_color)}._LabelButton_i2nun_25._Delete_i2nun_34:hover:not(._Disabled_i2nun_31){color:var(--AFileUploader_error_color)}._FileSize_i2nun_38{flex-shrink:0;margin-left:8px;color:var(--AFileUploader_text_color);white-space:nowrap}._TotalFileSize_i2nun_45{color:var(--AFileUploader_text_color)}._FileBox_i2nun_49{position:relative;box-sizing:border-box;width:180px;min-width:180px;height:40px;min-height:40px;padding:0;color:var(--AFileUploader_brand_color);background-color:var(--AFileUploader_background-color);border:1.5px dashed var(--AFileUploader_brand_color);border-radius:8px;display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;transition:border-color calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition))}._FileBox_i2nun_49._FileBoxFullSize_i2nun_68{top:0;right:0;bottom:0;left:0;width:100%;height:100%;transition:width calc(var(--Transition-Enabled) * var(--Transition)),height calc(var(--Transition-Enabled) * var(--Transition))}._SelectRenderer_i2nun_75{display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;z-index:1;flex-grow:1;height:100%;border-radius:8px}._ChipsContainer_i2nun_87{display:flex;flex-direction:row;gap:0;align-items:flex-start;justify-content:flex-start;flex-flow:row wrap;gap:8px;align-content:flex-start;width:100%;height:100%}._FileChip_i2nun_100{z-index:1;flex:0 1 auto;width:auto;min-width:180px;max-width:100%;height:40px;padding:6px 12px;background-color:var(--AFileUploader_background-color);border-radius:8px;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border-color calc(var(--Transition-Enabled) * var(--Transition)),color calc(var(--Transition-Enabled) * var(--Transition))}._FileChipContent_i2nun_113{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;width:100%;min-width:0;max-width:100%}._FileNameContainer_i2nun_124{flex:1;min-width:0;max-width:100%}._ButtonRenderer_i2nun_130{box-sizing:border-box;flex-shrink:0;margin-left:12px;display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center}._ErrorBorder_i2nun_141{border-color:var(--AFileUploader_error_color)}._ErrorColor_i2nun_145{color:var(--AFileUploader_error_color)}._ErrorCursor_i2nun_149{cursor:not-allowed}._Disabled_i2nun_31{color:var(--AFileUploader_text_color);cursor:not-allowed;border-color:var(--AFileUploader_disabled_color)}._DropIdle_i2nun_159{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;transition:color calc(var(--Transition-Enabled) * var(--Transition))}._AFloatMenu_xco8u_1{position:fixed;z-index:100;border:var(--AFloatMenu_border);border-radius:4px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;transition:opacity var(--Transition),visibility var(--Transition),border var(--Transition),background-color var(--Transition)}._Content_xco8u_10{display:flex;align-items:center;justify-content:center;min-height:34px;color:var(--AFloatMenu_color);background-color:var(--AFloatMenu_background-color)}._Content_xco8u_10:hover{background-color:var(--AFloatMenu_hover_background-color)}._Content_xco8u_10:nth-child(1){border-top-left-radius:4px;border-top-right-radius:4px}._Content_xco8u_10:nth-last-child(1){border-bottom-right-radius:4px;border-bottom-left-radius:4px}._AListView_1nv5l_1{box-sizing:border-box;display:flex;flex-grow:1;flex-direction:column;cursor:default;transition:border var(--Transition)}._Row_1nv5l_10{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;width:100%;transition:border var(--Transition)}._Label_1nv5l_19{box-sizing:border-box;display:flex;align-items:center;min-width:120px;max-width:120px;height:100%;transition:border var(--Transition)}._Content_1nv5l_29{box-sizing:border-box;display:flex;flex:1;align-items:center;min-height:100%;transition:border var(--Transition)}._ALoadingBorder_kwc1g_1{position:relative;width:100%;min-height:2px;max-height:2px;overflow:hidden;background-color:var(--ALoadingBorder_background-color)}._ALoadingBorder_kwc1g_1 ._ProgressBar_kwc1g_9{position:absolute;width:100%;height:100%;background-color:var(--ALoadingBorder_ProgressBar_background-color)}._ALoadingBorder_kwc1g_1 ._ProgressBar_kwc1g_9._IsLoading_kwc1g_15{width:0;animation:ease-in-out _load_kwc1g_1 3s infinite}._ALoadingBorder_kwc1g_1 ._Cover_kwc1g_19{position:absolute;width:100%;height:2px;background-color:var(--ALoadingBorder_Cover_background-color)}._ALoadingBorder_kwc1g_1 ._Cover_kwc1g_19._IsLoading_kwc1g_15{opacity:0}@keyframes _load_kwc1g_1{0%{left:0;width:100%}25%{left:100%;width:0;animation-timing-function:cubic-bezier(1,0,.6,1.5)}26%{left:0}50%{width:100%}75%{left:100%;width:0;animation-timing-function:cubic-bezier(1,0,.6,1.5)}76%{left:0}to{width:100%}}._Container_ez8dc_1{display:flex;flex-direction:row;align-items:center}._Option_ez8dc_7{flex-shrink:0}._Option_ez8dc_7+._Option_ez8dc_7{margin-left:10px}._RadioButton_ez8dc_14{box-sizing:border-box;display:flex;align-items:center;justify-content:center;margin-right:4px;border:var(--ARadioSelect_RadioButton_border);border-radius:50%;transition:border-color calc(var(--Transition-Enabled) * var(--Transition))}._RadioButton_ez8dc_14 ._InnerCircle_ez8dc_24{display:flex;border-radius:50%;transition:all var(--Transition)}._RadioButton_ez8dc_14 ._InnerCircle_ez8dc_24._isChecked_ez8dc_29{background-color:var(--ARadioSelect_RadioButton_InnerCircle_isChecked_background-color)}._AMultiSelect_19uuu_1{position:relative;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:200px;height:34px;overflow:hidden;cursor:pointer;border-radius:6px;transition:opacity var(--Transition),border var(--Transition)}._AMultiSelect_19uuu_1 ._Arrow_19uuu_15{position:relative;display:flex;align-items:center;justify-content:center;height:100%;pointer-events:none;transition:border var(--Transition)}._AMultiSelect_19uuu_1._Primary_19uuu_24{border:var(--AMultiSelect_Primary_border);transition:border var(--Transition)}._AMultiSelect_19uuu_1._Primary_19uuu_24 ._Arrow_19uuu_15{min-width:30px;max-width:50px;aspect-ratio:1/1;color:var(--AMultiSelect_Primary_Arrow_color);border-left:var(--AMultiSelect_Primary_border)}._AMultiSelect_19uuu_1._Primary_19uuu_24:hover:not(._UnAvailable_19uuu_35),._AMultiSelect_19uuu_1._Primary_19uuu_24._IsOpen_19uuu_35:not(._UnAvailable_19uuu_35){border:var(--AMultiSelect_Primary_hover_border)}._AMultiSelect_19uuu_1._Primary_19uuu_24:hover:not(._UnAvailable_19uuu_35) ._Arrow_19uuu_15,._AMultiSelect_19uuu_1._Primary_19uuu_24._IsOpen_19uuu_35:not(._UnAvailable_19uuu_35) ._Arrow_19uuu_15{border-left:var(--AMultiSelect_Primary_hover_border);transition:border-left var(--Transition)}._AMultiSelect_19uuu_1._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_background-color);border:var(--AMultiSelect_Secondary_border);transition:background-color var(--Transition)}._AMultiSelect_19uuu_1._Secondary_19uuu_42 ._Arrow_19uuu_15{color:var(--AMultiSelect_Secondary_Arrow_color);transition:color var(--Transition)}._AMultiSelect_19uuu_1._Secondary_19uuu_42:hover:not(._UnAvailable_19uuu_35),._AMultiSelect_19uuu_1._Secondary_19uuu_42._IsOpen_19uuu_35:not(._UnAvailable_19uuu_35){border:var(--AMultiSelect_Secondary_hover_border)}._AMultiSelect_19uuu_1._Secondary_19uuu_42:hover:not(._UnAvailable_19uuu_35) ._Arrow_19uuu_15,._AMultiSelect_19uuu_1._Secondary_19uuu_42._IsOpen_19uuu_35:not(._UnAvailable_19uuu_35) ._Arrow_19uuu_15{transition:color var(--Transition)}._Placeholder_19uuu_58{color:var(--AMultiSelect_Placeholder_color);transition:all var(--Transition)}._ValuesContainer_19uuu_63{display:flex;flex-grow:1;overflow:hidden;white-space:nowrap}._Values_19uuu_63{box-sizing:border-box;display:block;width:100%;height:100%;padding:8px 0 8px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Options_19uuu_82{position:fixed;z-index:100;box-sizing:border-box;visibility:hidden;width:fit-content;overflow:overlay;cursor:pointer;border-radius:6px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;opacity:0;transition:opacity var(--Transition),visibility var(--Transition),background-color var(--Transition),border var(--Transition)}._Options_19uuu_82._Primary_19uuu_24{background-color:var(--AMultiSelect_Primary_Options_background-color);border:var(--AMultiSelect_Primary_Options_border)}._Options_19uuu_82._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_Options_background-color);border:var(--AMultiSelect_Secondary_Options_border)}._Option_19uuu_82{display:flex;flex-grow:1;flex-direction:row;align-items:center;padding-left:12px;transition:background-color var(--Transition)}._Option_19uuu_82:hover._Primary_19uuu_24{background-color:var(--AMultiSelect_Primary_Option_hover_background-color)}._Option_19uuu_82:hover._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_Option_hover_background-color)}._Option_19uuu_82:active._Primary_19uuu_24{background-color:var(--AMultiSelect_Primary_Option_active_background-color)}._Option_19uuu_82:active._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_Option_active_background-color)}._Option_19uuu_82._Selected_19uuu_124._Primary_19uuu_24{background-color:var(--AMultiSelect_Primary_Option_Selected_background-color)}._Option_19uuu_82._Selected_19uuu_124._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_Option_Selected_background-color)}._CheckBox_19uuu_131{position:sticky;left:0;z-index:2;display:flex;flex-direction:row;align-items:center;min-height:100%;padding-right:12px;background-color:inherit}._Container_10ion_1{display:flex;flex-direction:column;align-items:center;width:100%;height:100%}._Steps_10ion_9{display:flex;flex-direction:row;align-items:center;width:50%;overflow:overlay}._Step_10ion_9{position:relative;display:flex;flex-grow:1;flex-direction:column;align-items:center;padding:10px}._OutCircle_10ion_26{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:34px;min-height:34px;max-height:34px;background-color:var(--AStepper_OutCircle_background-color);border-radius:17px}._OutCircle_10ion_26._IsOver_10ion_37{background-color:var(--AStepper_OutCircle_IsOver_background-color)}._InCircle_10ion_41{min-width:22px;max-width:22px;min-height:22px;max-height:22px;background-color:var(--AStepper_InCircle_background-color);border-radius:22px;transition:background-color var(--Transition)}._InCircle_10ion_41._IsOver_10ion_37{background-color:var(--AStepper_InCircle_IsOver_background-color)}._Line_10ion_54{position:absolute;top:27px;display:flex;width:50%;height:1px;background-color:var(--AStepper_Line_background-color);transition:background-color var(--Transition)}._Line_10ion_54._IsOver_10ion_37{background-color:var(--AStepper_Line_IsOver_background-color)}._Line_10ion_54._Left_10ion_66{left:0}._Line_10ion_54._Right_10ion_69{right:0}._ContentContainer_10ion_73{display:flex;flex-grow:1;flex-direction:row;width:100%;overflow-x:hidden}._Content_10ion_73{display:flex;flex-grow:1;min-width:100%;transition:all var(--Transition);transition-timing-function:cubic-bezier(.075,.82,.165,1)}._ATab_9eg6z_1{position:relative;box-sizing:border-box;display:flex;flex-grow:1;flex-direction:row;overflow:hidden visible}._ATab_9eg6z_1 ._Addon_9eg6z_9{display:flex;align-items:center;min-height:100%}._ATab_9eg6z_1 ._Option_9eg6z_14{position:relative;z-index:2;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:center;font-weight:400;color:var(--color, var(--label-normal));transition:color var(--Transition)}._ATab_9eg6z_1 ._Option_9eg6z_14._Underline_9eg6z_26._IsSelected_9eg6z_26{text-decoration-line:underline;text-decoration-thickness:auto;text-decoration-style:solid;text-underline-position:from-font;text-underline-offset:2px;text-decoration-skip-ink:auto}._ATab_9eg6z_1 ._Option_9eg6z_14._IsSelected_9eg6z_26{font-weight:700}._ATab_9eg6z_1 ._IndicatorTrack_9eg6z_37{position:absolute;bottom:0;box-sizing:border-box;display:flex;width:100%;border-bottom:var(--ATab_IndicatorTrack_Primary_border-bottom);transition:border var(--Transition)}._ATab_9eg6z_1 ._Indicator_9eg6z_37{position:absolute;bottom:0;height:4px;background-color:var(--color, var(--ATab_Indicator_Primary_background-color));transition:var(--Transition);transition-timing-function:cubic-bezier(.075,.82,.165,1)}._ATab_9eg6z_1._Primary_9eg6z_54 ._IndicatorTrack_9eg6z_37{min-width:100%}._ATab_9eg6z_1._Secondary_9eg6z_57 ._Option_9eg6z_14{border:var(--ATab_Option_Secondary_border);border-top-left-radius:4px;border-top-right-radius:4px;transition:border var(--Transition),color var(--Transition)}._ATab_9eg6z_1._Secondary_9eg6z_57 ._Option_9eg6z_14._IsDisabled_9eg6z_63{border:var(--ATab_Option_Secondary_IsDisabled_border)}._ATab_9eg6z_1._Secondary_9eg6z_57 ._Option_9eg6z_14._IsSelected_9eg6z_26{border-bottom:var(--ATab_Option_Secondary_IsSelected_border-bottom)}._ATab_9eg6z_1._Secondary_9eg6z_57 ._IndicatorTrack_9eg6z_37{min-width:100%;border-bottom:var(--ATab_Option_Secondary_border);transition:border-bottom var(--Transition)}._ATab_9eg6z_1._Secondary_9eg6z_57 ._Indicator_9eg6z_37{display:none}._ATab_9eg6z_1._Tertiary_9eg6z_77{overflow:hidden}._ATab_9eg6z_1._Tertiary_9eg6z_77 ._Option_9eg6z_14{color:var(--color, var(--ATab_Option_Tertiary_color));transition:color var(--Transition)}._ATab_9eg6z_1._Tertiary_9eg6z_77 ._Option_9eg6z_14._IsSelected_9eg6z_26{color:var(--color, var(--ATab_Option_Tertiary_IsSelected_color));transition:color var(--Transition)}._ATab_9eg6z_1._Tertiary_9eg6z_77 ._IndicatorTrack_9eg6z_37{box-sizing:border-box;background-color:var(--color, var(--ATab_IndicatorTrack_Tertiary_background-color));border-radius:8px;transition:background-color var(--Transition),border var(--Transition)}._ATab_9eg6z_1._Tertiary_9eg6z_77 ._Indicator_9eg6z_37{top:50%;z-index:1;background-color:var(--color, var(--ATab_Indicator_Tertiary_background-color));border-radius:6px;transition:background-color var(--Transition)}._ATab_9eg6z_1._Quaternary_9eg6z_101 ._Option_9eg6z_14{color:var(--color, var(--ATab_Option_Quaternary_color));transition:color var(--Transition)}._ATab_9eg6z_1._Quaternary_9eg6z_101 ._Option_9eg6z_14._IsSelected_9eg6z_26{color:var(--color, var(--ATab_Option_Quaternary_IsSelected_color));transition:color var(--Transition)}._ATab_9eg6z_1._Quaternary_9eg6z_101 ._IndicatorTrack_9eg6z_37,._ATab_9eg6z_1._Quaternary_9eg6z_101 ._Indicator_9eg6z_37{display:none}._ATable_12zow_1{display:flex;flex-grow:1;flex-direction:column;overflow:hidden auto}._BodyHeader_ys4y0_1{position:relative;flex-direction:column;width:100%;transition:border var(--Transition)}._BodyHeader_ys4y0_1 ._TRow_ys4y0_7{position:relative}._OverflowSpace_ys4y0_11{box-sizing:border-box;transition:background-color var(--Transition)}._BodyBody_ys4y0_16{position:relative;box-sizing:border-box;display:flex;flex-grow:1;flex-direction:column;width:100%;height:100%;overflow:hidden auto}._TRow_ys4y0_7{box-sizing:border-box;display:flex;flex-direction:row;border-bottom:var(--ATableBody_TRow_border-bottom);transition:border var(--Transition)}._IsSelected_ys4y0_35{background-color:var(--ATableBody_TRow_IsSelected_background-color)}._IsSelectable_ys4y0_39{cursor:pointer;transition:background-color var(--Transition)}._IsSelectable_ys4y0_39:hover{background-color:var(--ATableBody_TRow_IsSelectable_hover_background-color)}._IsRowMarked_ys4y0_47{color:var(--ATableBody_TD_IsMarked_color);background-color:var(--ATableBody_TD_IsMarked_background-color)}._TH_ys4y0_52{color:var(--ATableBody_TH_color);transition:color var(--Transition)}._TD_ys4y0_57._IsMarked_ys4y0_57,._IsMarked_ys4y0_57{background-color:var(--ATableBody_TD_IsMarked_background-color)}._TD_ys4y0_57,._TH_ys4y0_52{position:relative;box-sizing:border-box;display:flex;flex-grow:1;align-items:center;justify-content:flex-start;overflow:hidden}._Resizer_ys4y0_76{z-index:1;box-sizing:border-box;display:flex;flex-direction:row;min-width:11px;max-width:11px;min-height:100%;margin-right:-5.5px;margin-left:-5.5px;transition:all var(--Transition)}._Resizer_ys4y0_76:hover:not(._IsMoving_ys4y0_88){cursor:not-allowed}._Resizer_ys4y0_76:hover:not(._IsMoving_ys4y0_88)._IsResizable_ys4y0_91{cursor:col-resize}._Resizer_ys4y0_76:hover:not(._IsMoving_ys4y0_88) ._ResizerCenter_ys4y0_94{background-color:var(--ATableBody_Resizer_hover_ResizerCenter_background-color)}._Resizer_ys4y0_76._IsResizable_ys4y0_91:active ._ResizerCenter_ys4y0_94{background-color:var(--ATableBody_Resizer_active_ResizerCenter_background-color)}._Resizer_ys4y0_76._IsResizable_ys4y0_91:active ._ResizerOut_ys4y0_100{background-color:var(--ATableBody_Resizer_active_ResizerOut_background-color);opacity:.125}._Resizer_ys4y0_76._IsResizable_ys4y0_91:active ._ResizerIn_ys4y0_104{background-color:var(--ATableBody_Resizer_active_ResizerIn_background-color);opacity:.25}._Resizer_ys4y0_76._IsMoving_ys4y0_88{cursor:col-resize}._ResizerOut_ys4y0_100,._ResizerIn_ys4y0_104{display:flex;justify-content:center;min-width:1px;max-width:1px;height:100%;transition:all var(--Transition)}._ResizerCenter_ys4y0_94{display:flex;justify-content:center;min-width:1px;max-width:1px;height:100%;transition:background-color var(--Transition)}._IsClicked_ys4y0_139,._IsClicked_ys4y0_139 *{transition:width 0s,background-color var(--Transition),height .1s}._NoItems_ys4y0_146{display:flex;flex-grow:1;justify-content:center}._Content_ys4y0_152{padding:4px 8px}._ATableFooter_w090q_1{display:flex;justify-content:center;min-width:100%;height:32px;max-height:32px;margin-top:8px}._Button_w090q_10{display:flex;flex-direction:row;align-items:center;justify-content:center;width:24px;min-width:24px;max-width:24px;height:24px;min-height:24px;max-height:24px;overflow:hidden;cursor:pointer;border-radius:4px;transition:all var(--Transition)}._Button_w090q_10._IsSelected_w090q_26{color:var(--ATableFooter_Button_IsSelected_color);cursor:default;background-color:var(--ATableFooter_Button_IsSelected_background-color)}._Button_w090q_10._IsDisabled_w090q_31{color:var(--ATableFooter_Button_IsDisabled_color);cursor:default}._Button_w090q_10+._Button_w090q_10{margin-left:8px}._Filter_1b9j0_1{position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;width:100%;transition:padding var(--Transition)}._SelectFilter_1b9j0_11{margin-right:8px}._MainFilter_1b9j0_15{position:relative;z-index:1;box-sizing:border-box;display:flex;align-items:center;width:100%;margin-top:8px;transition:var(--Transition) width}._IsOpen_1b9j0_26{width:calc(100% - 18px)}._SubFilters_1b9j0_30{position:absolute;top:0;z-index:0;box-sizing:border-box;width:100%;padding:48px 8px 8px;background-color:var(--ATableFilter_SubFilters_background-color);border:var(--ATableFilter_SubFilters_border);border-radius:6px;transition:all var(--Transition)}._Input_1b9j0_44{width:100%}._Main_1b9j0_15{min-height:34px;max-height:34px}._Sub_1b9j0_30,._Sub_1b9j0_30 input{min-height:32px;max-height:32px}._Actions_1b9j0_62{flex-grow:1;justify-content:space-between}._Icon_1b9j0_67{overflow:hidden;color:var(--ATableFilter_Icon_color);cursor:pointer;transition:all var(--Transition)}._LeftIcon_1b9j0_74{overflow:hidden;transition:all var(--Transition)}._CircleAlertOutline_1b9j0_79{margin-right:6px;overflow:hidden;color:var(--ATableFilter_Alert_color);cursor:default;transition:all var(--Transition)}._Rotate_1b9j0_87{animation:_rotate_1b9j0_1 var(--Transition) ease-in-out}@keyframes _rotate_1b9j0_1{0%{transform:rotate(0)}to{transform:rotate(-180deg)}}._ATableHeader_1hzfz_1{display:flex;flex-direction:row;align-items:center;max-width:100%;margin-bottom:8px;overflow:visible;white-space:nowrap}._LeftHeaderContent_1hzfz_11{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;height:100%}._RightHeaderContent_1hzfz_19{display:flex;align-items:flex-end;justify-content:flex-end;width:100%;height:100%}._TopRightAddon_1hzfz_27{margin-left:8px;white-space:nowrap}._HItem_1hzfz_32{display:flex}._HItem_1hzfz_32+._HItem_1hzfz_32{align-items:center;min-height:34px;margin-right:8px}._HItem_1hzfz_32:first-child{align-items:center;min-height:34px;margin-right:8px}._AText_1asz6_1{flex-shrink:0;overflow:hidden;text-overflow:ellipsis}textarea{font-family:Pretendard,sans-serif;font-size:1rem;font-weight:400}._Base_cpm4t_7{border-radius:6px}._ATextArea_cpm4t_11{z-index:1;box-sizing:border-box;display:flex;flex-grow:1;padding:8px 12px;overflow:overlay;word-break:none;white-space:nowrap;resize:none;border:none;border-radius:inherit;transition:all var(--Transition)}._ATextArea_cpm4t_11:focus{outline:none}._ATextArea_cpm4t_11::placeholder{opacity:.6;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}._Primary_cpm4t_34{color:var(--ATextArea_Primary_color);background-color:var(--ATextArea_Primary_background-color);border:var(--ATextArea_Primary_border)}._Primary_cpm4t_34:hover:not(._UnAvailable_cpm4t_39){border:var(--ATextArea_Primary_hover_border)}._Primary_cpm4t_34:focus:not(._UnAvailable_cpm4t_39){background-color:var(--ATextArea_Primary_focus_background-color);border:var(--ATextArea_Primary_focus_border)}._Secondary_cpm4t_47{color:var(--ATextArea_Secondary_color);background-color:var(--ATextArea_Secondary_background-color);border:var(--ATextArea_Secondary_border)}._Secondary_cpm4t_47:hover:not(._UnAvailable_cpm4t_39){border:var(--ATextArea_Secondary_hover_border)}._Secondary_cpm4t_47:focus:not(._UnAvailable_cpm4t_39){border:var(--ATextArea_Secondary_focus_border)}._ReadOnly_cpm4t_59{color:var(--ATextArea_ReadOnly_color);cursor:not-allowed;background-color:var(--ATextArea_ReadOnly_background-color);border:var(--ATextArea_ReadOnly_border)}._Error_cpm4t_66{color:var(--ATextArea_Error_color);background-color:var(--ATextArea_Error_background-color);border:var(--ATextArea_Error_border)}._Error_cpm4t_66::placeholder{color:var(--ATextArea_Error_placeholder_color)}.ql-toolbar .ql-picker:not(.ql-color-picker):not(.ql-icon-picker).ql-table-up{width:28px}.ql-toolbar .ql-picker:not(.ql-color-picker):not(.ql-icon-picker).ql-table-up .ql-picker-label{padding:2px 4px}.ql-toolbar .ql-picker:not(.ql-color-picker):not(.ql-icon-picker).ql-table-up .ql-picker-label svg{position:static;margin-top:0}.ql-toolbar .ql-picker.ql-expanded .ql-picker-options{z-index:1}.ql-editor .ql-table{display:table;border-collapse:collapse;table-layout:fixed;width:auto}.ql-editor .ql-table[data-full]{width:100%}.ql-editor .ql-table-wrapper{width:100%;overflow:auto;scrollbar-width:none}.ql-editor .ql-table-caption{position:relative;word-break:break-word;outline:0}.ql-editor .ql-table-caption .ql-table-caption--switch{display:flex;align-items:center;justify-content:center;padding:2px;border-radius:4px;border:1px solid #0003;font-size:12px;cursor:pointer;background-color:#fff}.ql-editor .ql-table-caption .ql-table-caption--switch:hover{background-color:#eee}.ql-editor .ql-table-cell{padding:8px 12px;border-color:transparent;font-size:14px;outline:0;overflow:auto}.ql-editor .ql-table-cell-inner{display:inline-block;min-width:100%;word-break:break-word;outline:0;counter-reset:list-0}.ql-editor .ql-table col{border-collapse:separate;text-indent:initial;display:table-column;table-layout:fixed}.ql-editor .ql-table tr+tr td,.ql-editor .ql-table tr+tr th{border-top:none}.ql-editor .ql-table td,.ql-editor .ql-table th{border:1px solid #a1a1aa}.ql-editor .ql-table td+td,.ql-editor .ql-table td+th,.ql-editor .ql-table th+td,.ql-editor .ql-table th+th{border-left:none}.table-up-toolbox{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.table-up-toolbox *{pointer-events:all}.table-up-tooltip{position:absolute;z-index:20;padding:.25rem .75rem;border-radius:.25rem;font-size:.75rem;color:#fff;white-space:nowrap;background-color:#303133;transition:opacity .15s linear}.table-up-tooltip.transparent{opacity:0}.table-up-tooltip.hidden{display:none}.table-up-button{--table-btn-color:#606266;--table-btn-bg-hover:#f3f4f6;--table-btn-color-border:#dcdfe6;--table-btn-border:.0625rem solid var(--table-btn-color-border);--table-btn-confirm-color-border:#409eff;--table-btn-confirm-bg:#409eff;--table-btn-confirm-hover:#79bbff;--table-btn-confirm-outline-focus-visible:.125rem solid #a0cfff;box-sizing:border-box;display:inline-flex;height:2rem;line-height:1;margin:0;padding:.5rem 1rem;border-radius:.25rem;border:var(--table-btn-border);color:var(--table-btn-color);background-color:transparent;font-size:.875rem;cursor:pointer}.table-up-button+.table-up-button{margin-left:.375rem}.table-up-button:hover{background-color:var(--table-btn-bg-hover)}.table-up-button.confirm{border-color:var(--table-btn-confirm-color-border);background-color:var(--table-btn-confirm-bg);color:#fff}.table-up-button.confirm:hover{border-color:var(--table-btn-confirm-hover);background-color:var(--table-btn-confirm-hover)}.table-up-button.confirm:focus-visible{outline:var(--table-btn-confirm-outline-focus-visible);outline-offset:.0625rem}.table-up-dialog{--dialog-bg:rgba(0, 0, 0, .5);--dialog-color-border:#ebeef5;--dialog-color-boxshadow:rgba(0, 0, 0, .12);--dialog-border:.0625rem solid var(--dialog-color-border);--dialog-boxshadow:0 0 .75rem var(--dialog-color-boxshadow);position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--dialog-bg);overflow:auto}.table-up-dialog__overlay{position:fixed;top:0;right:0;bottom:0;left:0;padding:1rem;overflow:auto;text-align:center}.table-up-dialog__overlay:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.table-up-dialog__content{display:inline-block;max-width:50vw;width:100%;vertical-align:middle;background-color:#fff;border-radius:.25rem;border:var(--dialog-border);font-size:1.125rem;box-shadow:var(--dialog-boxshadow);text-align:left;overflow:hidden;box-sizing:border-box}.table-up-color-picker{--color-picker-bg-color:#ffffff;box-sizing:border-box;display:inline-flex;flex-direction:column;width:16.75rem;padding:.5rem;border-radius:.375rem;background:var(--color-picker-bg-color);box-shadow:0 0 .375rem #b2b5b8}.table-up-color-picker__content{box-sizing:border-box;width:100%;height:11.75rem;padding-top:.5rem}.table-up-color-picker__selector{width:14.375rem;height:9.375rem;position:absolute}.table-up-color-picker__background{width:100%;height:100%;background:linear-gradient(to top,#000 0,#0000),linear-gradient(to right,#fff 0,#fff0)}.table-up-color-picker__background-handle{box-sizing:border-box;position:absolute;border:.0625rem solid #fff;cursor:pointer;top:0;left:14.375rem;border-radius:100%;width:.625rem;height:.625rem;transform:translate(-.3125rem,-.3125rem)}.table-up-color-picker__hue{width:.75rem;height:9.375rem;margin-left:15rem;position:absolute;background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.table-up-color-picker__hue-handle{box-sizing:border-box;position:absolute;border:.0625rem solid #fff;cursor:pointer;background-color:#fff;box-shadow:0 0 .125rem #0009;left:0;width:1rem;height:.625rem;transform:translate(-.125rem,-.3125rem)}.table-up-color-picker__alpha{width:14.375rem;height:.75rem;position:absolute;margin-top:10rem;background:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(135deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(135deg,transparent 75%,#ccc 75%);background-size:.75rem .75rem;background-position:0 0,.375rem 0,.375rem -.375rem,0 .375rem}.table-up-color-picker__alpha-bg{position:relative;height:100%;background:linear-gradient(to right,#fff0 0,#fff)}.table-up-color-picker__alpha-handle{box-sizing:border-box;position:absolute;border:.0625rem solid #fff;cursor:pointer;background-color:#fff;box-shadow:0 0 .125rem #0009;top:0;width:.625rem;height:1rem;transform:translate(-.3125rem,-.125rem)}.table-up-color-picker__action{box-sizing:border-box;display:flex;align-items:center;gap:.375rem;width:100%;padding-top:.5rem;border-top:.0625rem solid #e9ecef}.table-up-color-picker__action-item{flex:1;display:inline-flex;align-items:center;font-size:.75rem}.table-up-color-picker__input{box-sizing:border-box;width:100%;height:1.375rem;margin-left:.125rem;padding:.125rem 0 .125rem .25rem;background-color:#fff;border:.0625rem solid #ced4da;border-radius:.25rem;outline:0;color:#405057}.table-up-tooltip .table-up-color-picker{--color-picker-bg-color:transparent;box-shadow:none;width:15.75rem;padding:.5rem 0}.ql-container .table-up-selection{--select-color:#0589f340;display:none;position:absolute;overflow:hidden;pointer-events:none}.ql-container .table-up-selection__line{position:absolute;background-color:var(--select-color);pointer-events:none}.table-up-resize-line__col,.table-up-resize-line__row{position:absolute;z-index:0}.table-up-resize-line__col.is-hidden,.table-up-resize-line__row.is-hidden{display:none}.table-up-resize-line__col:after,.table-up-resize-line__col:before,.table-up-resize-line__row:after,.table-up-resize-line__row:before{content:"";display:block;position:absolute;top:0;z-index:1}.table-up-resize-line__row{height:.0625rem;cursor:ns-resize}.table-up-resize-line__row:after,.table-up-resize-line__row:before{width:100%;height:.5rem}.table-up-resize-line__row:before{transform:translateY(-.5rem)}.table-up-resize-line__col{width:.0625rem;cursor:ew-resize}.table-up-resize-line__col:after,.table-up-resize-line__col:before{height:100%;width:.5rem}.table-up-resize-line__col:before{transform:translate(-.5rem)}.table-up-resize-box{position:absolute;z-index:0}.table-up-resize-box.is-hidden{display:none}.table-up-resize-box.is-caption-bottom .table-up-resize-box__corner{border-top-width:0;border-bottom-width:.0625rem;border-top-left-radius:0;border-bottom-left-radius:50%}.table-up-resize-box.is-align-right .table-up-resize-box__col-separator{left:-.125rem}.table-up-resize-box.is-align-right .table-up-resize-box__corner{border-left-width:0;border-right-width:.0625rem;border-top-left-radius:0;border-top-right-radius:50%}.table-up-resize-box.is-align-right.is-caption-bottom .table-up-resize-box__corner{border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:50%}.table-up-resize-box__col,.table-up-resize-box__row{position:absolute;top:0;left:0;overflow:hidden}.table-up-resize-box__col-wrapper,.table-up-resize-box__row-wrapper{display:flex}.table-up-resize-box__col-header,.table-up-resize-box__row-header{position:relative;flex-shrink:0;background-color:#f3f4f5;border:.0625rem solid #ccc}.table-up-resize-box__col-wrapper{height:100%}.table-up-resize-box__col-header{height:100%;cursor:pointer;border-right-color:transparent}.table-up-resize-box__col-header:last-child{border-right-color:#ccc}.table-up-resize-box__col-separator{position:absolute;top:0;bottom:0;right:-.125rem;width:.125rem;cursor:ew-resize;z-index:0}.table-up-resize-box__col-separator:after{right:-.375rem}.table-up-resize-box__col-separator:before{left:-.375rem}.table-up-resize-box__col-separator:after,.table-up-resize-box__col-separator:before{content:"";position:absolute;top:0;display:block;width:.5rem;height:100%;z-index:1}.table-up-resize-box__row-wrapper{flex-direction:column;width:100%}.table-up-resize-box__row-header{width:100%;cursor:pointer;border-bottom-color:transparent}.table-up-resize-box__row-header:last-child{border-bottom-color:#ccc}.table-up-resize-box__row-separator{position:absolute;left:0;right:0;bottom:-.125rem;height:.125rem;cursor:ns-resize;z-index:0}.table-up-resize-box__row-separator:after{bottom:-.375rem}.table-up-resize-box__row-separator:before{top:-.375rem}.table-up-resize-box__row-separator:after,.table-up-resize-box__row-separator:before{content:"";position:absolute;left:0;display:block;width:100%;height:.5rem;z-index:1}.table-up-resize-box__corner{position:absolute;top:0;left:0;background-color:#f3f4f5;border:.0625rem solid #ccc;border-right-width:0;border-bottom-width:0;border-top-left-radius:50%;cursor:pointer}.table-up-drag-line{position:fixed;z-index:0;background-color:#409eff}.table-up-drag-line.is-col{width:.125rem;cursor:ew-resize}.table-up-drag-line.is-row{height:.125rem;cursor:ns-resize}.table-up-scale{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none}.table-up-scale__block{position:absolute;top:0;left:0;transform:translate(-100%,-100%);width:.75rem;height:.75rem;background-color:#f1f5f9;border:.0625rem solid grey;cursor:nwse-resize;pointer-events:all}.table-up-scale.is-align-right .table-up-scale__block{cursor:nesw-resize}.table-up-scale.is-hidden{display:none}.table-up-scrollbar{position:absolute;z-index:1;transition:opacity .15s linear}.table-up-scrollbar__container{position:relative}.table-up-scrollbar.is-transparent{opacity:0}.table-up-scrollbar.is-vertical{top:.125rem;bottom:.125rem;left:-.5rem;width:.375rem}.table-up-scrollbar.is-vertical .table-up-scrollbar__thumb{width:100%}.table-up-scrollbar.is-horizontal{bottom:.125rem;left:.125rem;right:.125rem;height:.375rem}.table-up-scrollbar.is-horizontal .table-up-scrollbar__thumb{height:100%}.table-up-scrollbar__thumb{border-radius:.3125rem;background-color:#d2d2d2;cursor:pointer}.table-up-scrollbar__thumb:hover{background-color:#a1a1aa}.table-up-scrollbar--origin.ql-container .ql-table-wrapper{scrollbar-width:inherit}.table-up-align,.table-up-menu{position:absolute;z-index:1;display:none;align-items:center;padding:.25rem;border-radius:.375rem;box-shadow:0 0 .5rem #00000080;background-color:#fff;font-size:.875rem}.table-up-align__item,.table-up-menu__item{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.25rem;border-radius:.25rem;cursor:pointer}.table-up-align__item:hover,.table-up-menu__item:hover{background-color:#eee}.table-up-align__item.is-break,.table-up-menu__item.is-break{align-self:stretch;width:.0625rem;padding:0;margin:.125rem .25rem;background-color:#a3a3a3;cursor:default}.table-up-align .icon,.table-up-menu .icon{display:flex;flex-shrink:0;font-size:1.25rem}.table-up-align span,.table-up-menu span{text-wrap:nowrap}.table-up-menu.is-contextmenu{flex-direction:column;padding:.25rem .5rem;max-height:21.875rem;overflow-y:auto;overflow-x:hidden}.table-up-menu.is-contextmenu .table-up-menu__item{display:flex;justify-content:flex-start;width:100%;gap:.25rem;cursor:pointer}.table-up-menu.is-contextmenu .is-break{width:100%;height:.0625rem;flex-shrink:0;margin:.25rem 0;background-color:#a3a3a3}.table-up-align--active{display:flex}.table-up-align .icon{width:1.25rem;height:1.25rem}.table-up-color-map{display:flex;flex-direction:column}.table-up-color-map--used{display:flex;align-items:center;justify-content:center;flex-direction:row-reverse;margin-top:.25rem;padding-top:.25rem;border-top:.0625rem solid #ccc}.table-up-color-map__content{display:flex;flex-direction:column}.table-up-color-map__content-row{display:flex;align-items:center;justify-content:center;gap:.25rem}.table-up-color-map__item{width:.875rem;height:.875rem;margin:.125rem;border:.0625rem solid #a3a3a3;cursor:pointer}.table-up-color-map__btn{display:flex;align-items:center;justify-content:center;flex:1;height:1.25rem;padding:0 .375rem;color:#303133;background-color:#fff;cursor:pointer}.table-up-color-map__btn:hover{background-color:#edeeef}.table-up-input__item{--input-height:2rem;--input-inner-height:calc(var(--input-height) - .125rem);--input-color-text:#606266;--input-color-boxshaow:#dcdfe6;--input-color-focus:#409eff;--input-color-error:#f56c6c;--input-boxshaow:0 0 0 .0625rem var(--input-color-boxshaow) inset;--input-boxshaow-focus:0 0 0 .0625rem var(--input-color-focus) inset;--input-boxshaow-error:0 0 0 .0625rem var(--input-color-error) inset;display:flex;align-items:center}.table-up-input__item+.table-up-input__item{margin-top:1.125rem}.table-up-input__label{width:5rem;flex-shrink:0}.table-up-input__input{box-sizing:border-box;position:relative;display:flex;flex-wrap:wrap;width:100%;height:var(--input-height);line-height:var(--input-height);padding:.0625rem .5rem;border-radius:.25rem;box-shadow:var(--input-boxshaow);transition:box-shadow .2s linear}.table-up-input__input.focus{box-shadow:var(--input-boxshaow-focus)}.table-up-input__input input{width:100%;height:var(--input-inner-height);line-height:var(--input-inner-height);flex-grow:1;font-size:.875rem;color:var(--input-color-text);outline:0;border:0;padding:0}.table-up-input__input.error{box-shadow:var(--input-boxshaow-error)}.table-up-input__error-tip{position:absolute;top:100%;left:0;font-size:.75rem;color:var(--input-color-error);line-height:1rem}.ql-snow .table-up-select-box{--select-box-color-bg-hover:#f5f5f5;--select-box-color-bg-active:#e0f2fe;--select-box-custom-color-text:#0d0d0d;--select-box-custom-color-bg:transparent;--select-box-custom-color-bg-hover:#ebebeb}.table-up-select-box{--select-box-color-border:#e5e7eb;--select-box-border:.0625rem solid var(--select-box-color-border);--select-box-color-active:#0ea5e9;--select-box-color-bg-hover:#f5f5f5;--select-box-color-bg-active:transparent;--select-box-custom-color-text:#f5f5f5;--select-box-custom-color-bg:transparent;--select-box-custom-color-bg-hover:#2c2c2c}.table-up-select-box__block{display:flex;width:10rem;flex-wrap:wrap;align-items:center;justify-content:center}.table-up-select-box__item{margin:.125rem;height:1rem;width:1rem;border:var(--select-box-border)}.table-up-select-box__item.active{border-color:var(--select-box-color-active);background-color:var(--select-box-color-bg-active)}.table-up-select-box__custom{padding:.5rem;color:var(--select-box-custom-color-text);background-color:var(--select-box-custom-color-bg);font-size:1rem;text-align:center;cursor:pointer}.table-up-select-box__custom:hover{background-color:var(--select-box-custom-color-bg-hover)}.table-up-creator{padding:1.5rem}.table-up-creator__input{display:flex;flex-direction:column;width:100%}.table-up-creator__control{margin-top:1rem;text-align:right}.table-up-creator__checkbox{--check-color:#212121;--checked-color:#506eec;display:flex;align-items:center;margin-top:.25rem;cursor:pointer;font-size:.75rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.table-up-creator__checkbox input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:1.125rem;height:1.125rem;border:.0625rem solid var(--check-color);border-radius:.3125rem;background-color:transparent;display:inline-block;position:relative;margin-right:.625rem;cursor:pointer}.table-up-creator__checkbox input:before{content:"";background-color:var(--checked-color);display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);width:.625rem;height:.625rem;border-radius:.1875rem;transition:all .2s ease-in-out}.table-up-creator__checkbox input:checked:before{transform:translate(-50%,-50%) scale(1)}._AEditorWrapper_gy9qb_1{display:flex;flex:1 1 auto;overflow:auto}._AEditorContainer_gy9qb_7{position:relative;box-sizing:border-box;display:flex;width:100%;overflow:hidden}._AEditorContainer_gy9qb_7 ._AEditor_gy9qb_1{display:flex;flex-grow:1;flex-direction:column;overflow:auto}._AEditorContainer_gy9qb_7 ._AEditor_gy9qb_1.Title .ql-editor p{line-height:1.2rem}._Primary_gy9qb_24 .ql-toolbar.ql-snow{border:var(--AEditor_Primary_border);border-bottom:none}._Primary_gy9qb_24 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:hover{border:var(--AEditor_Primary_hover_border)}._Primary_gy9qb_24 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:focus-within{border:var(--AEditor_Primary_focus_border)}._Primary_gy9qb_24 .ql-container.ql-snow{border:var(--AEditor_Primary_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._Primary_gy9qb_24 .ql-container.ql-snow:not(.UnAvailable):hover{border:var(--AEditor_Primary_hover_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._Primary_gy9qb_24 .ql-container.ql-snow:not(.UnAvailable):focus-within{border:var(--AEditor_Primary_focus_border)}._Primary_gy9qb_24 .ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:var(--AEditor_Primary_border)}._Primary_gy9qb_24 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:hover){border:var(--AEditor_Primary_hover_border);border-bottom:none}._Primary_gy9qb_24 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:focus-within){border:var(--AEditor_Primary_focus_border);border-bottom:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow{display:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow{border:var(--AEditor_ReadOnly_border);border-bottom:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:hover{border:var(--AEditor_ReadOnly_hover_border)}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:focus-within{border:var(--AEditor_ReadOnly_focus_border)}._ReadOnly_gy9qb_54 .ql-container.ql-snow{border:var(--AEditor_ReadOnly_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._ReadOnly_gy9qb_54 .ql-container.ql-snow:not(.UnAvailable):hover{border:var(--AEditor_ReadOnly_hover_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._ReadOnly_gy9qb_54 .ql-container.ql-snow:not(.UnAvailable):focus-within{border:var(--AEditor_ReadOnly_focus_border)}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:var(--AEditor_ReadOnly_border)}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:hover){border:var(--AEditor_ReadOnly_hover_border);border-bottom:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:focus-within){border:var(--AEditor_ReadOnly_focus_border);border-bottom:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow+.ql-container.ql-snow{border-radius:var(--AEditor_border-radius)!important}._Error_gy9qb_91{color:var(--AEditor_Error_color)}._Error_gy9qb_91 .ql-toolbar.ql-snow{border:var(--AEditor_Error_border);border-bottom:none}._Error_gy9qb_91 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:hover{border:var(--AEditor_Error_hover_border)}._Error_gy9qb_91 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:focus-within{border:var(--AEditor_Error_focus_border)}._Error_gy9qb_91 .ql-container.ql-snow{border:var(--AEditor_Error_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._Error_gy9qb_91 .ql-container.ql-snow:not(.UnAvailable):hover{border:var(--AEditor_Error_hover_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._Error_gy9qb_91 .ql-container.ql-snow:not(.UnAvailable):focus-within{border:var(--AEditor_Error_focus_border)}._Error_gy9qb_91 .ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:var(--AEditor_Error_border)}._Error_gy9qb_91 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:hover){border:var(--AEditor_Error_hover_border);border-bottom:none}._Error_gy9qb_91 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:focus-within){border:var(--AEditor_Error_focus_border);border-bottom:none}._Error_gy9qb_91{transition:color calc(var(--Transition-Enabled) * var(--Transition))}._Raw_gy9qb_128 *{transition:none}._Raw_gy9qb_128 .ql-toolbar.ql-snow{display:none}._Raw_gy9qb_128 .ql-container.ql-snow{border:none}._Raw_gy9qb_128 .ql-toolbar.ql-snow+.ql-container.ql-snow{border:none;border-radius:0}._Raw_gy9qb_128 .ql-snow .ql-editor{padding:0}._LimitContainer_gy9qb_145{flex-direction:column;justify-content:center;overflow:hidden}._LimitContainer_gy9qb_145 ._Limit_gy9qb_145,._LimitContainer_gy9qb_145 ._Error_gy9qb_91{transition:color calc(var(--Transition-Enabled) * var(--Transition))}._LimitContainer_gy9qb_145 ._Limit_gy9qb_145{color:var(--AEditor_Addon_Secondary_color)}._LimitContainer_gy9qb_145 ._Error_gy9qb_91{color:var(--AEditor_Error_color)}._Limit_gy9qb_145{color:var(--AEditor_Addon_Secondary_color)}._Limit_gy9qb_145 ._Error_gy9qb_91{color:var(--AEditor_Error_color)}._Indicator_gy9qb_168{position:absolute;right:8px;z-index:1;align-items:center;transform:translateY(-1px)}._Resizer_gy9qb_176{position:absolute;right:1px;left:1px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:auto;margin:0;cursor:row-resize;border-radius:0 0 var(--AEditor_border-radius) var(--AEditor_border-radius);opacity:.75;transition:background-color calc(var(--Transition-Enabled) * var(--Transition));transform:translateY(-1px);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}._Resizer_gy9qb_176:before{width:40px;height:4px;content:"";background-color:var(--AEditor_Addon_Secondary_color);border-radius:2px;transition:width calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition))}._Resizer_gy9qb_176:hover,._Resizer_gy9qb_176:active{background-color:var(--AEditor_Addon_hover_background-color)}._Resizer_gy9qb_176:hover:before,._Resizer_gy9qb_176:active:before{width:50px}._ql-image-resizer-overlay_gy9qb_209{position:absolute;box-sizing:border-box;cursor:pointer;border:1px dashed var(--AEditor_Addon_Primary_color);transition:border calc(var(--Transition-Enabled) * var(--Transition))}._ql-image-resizer-handle_gy9qb_216{position:absolute;box-sizing:border-box;width:12px;height:12px;background-color:var(--static-white);border:1px solid var(--AEditor_Addon_Primary_color);opacity:.8;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}._ql-image-resizer-display_gy9qb_226{position:absolute;right:0;bottom:-25px;z-index:1;padding:2px 6px;color:var(--static-white);pointer-events:none;background-color:#000000bf;border-radius:3px}._ql-image-resizer-toolbar_gy9qb_237{position:absolute;top:-12px;right:0;left:0;box-sizing:border-box;text-align:center}._ql-image-resizer-toolbar-button_gy9qb_245{display:inline-block;width:24px;height:24px;padding:2px;vertical-align:middle;cursor:pointer;background:var(--elevation-0);border:1px solid var(--AEditor_Addon_Primary_color);border-right:none;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}._ql-image-resizer-toolbar-button_gy9qb_245:first-child{border-radius:var(--AEditor_border-radius) 0 0 var(--AEditor_border-radius)}._ql-image-resizer-toolbar-button_gy9qb_245:last-child{border-right:1px solid var(--AEditor_Addon_Primary_color);border-radius:0 var(--AEditor_border-radius) var(--AEditor_border-radius) 0}._ql-image-resizer-toolbar-button_gy9qb_245 svg{display:inline-block;width:100%;height:100%;fill:var(--AEditor_Addon_Primary_color);stroke:var(--AEditor_Addon_Primary_color);stroke-width:1}.ql-container{position:relative;height:var(--content-height);max-height:var(--content-max-height);margin:0;overflow:hidden;border-radius:0 0 var(--AEditor_border-radius) var(--AEditor_border-radius);transition:color calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition)),border-color calc(var(--Transition-Enabled) * var(--Transition))}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container .table-up-toolbox .table-up-menu{background-color:var(--elevation-0);border:1px solid var(--AEditor_Addon_Secondary_color);transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}.ql-container .table-up-toolbox .table-up-menu__item:hover{background-color:var(--AEditor_Addon_hover_background-color)}.ql-snow{color:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-stroke,.ql-snow .ql-stroke-miter{stroke:var(--AEditor_Addon_Primary_color)}.ql-snow{box-sizing:border-box;font-family:pretendard,sans-serif}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-stroke{fill:none;stroke:var(--AEditor_Addon_Primary_color);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-thick,.ql-snow .ql-stroke.ql-thick{stroke-width:2}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-formats{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ql-snow .ql-formats:after{clear:both;display:table;content:none}.ql-snow .ql-tooltip{position:absolute;left:20px!important;z-index:10;padding:4px 12px;color:var(--AEditor_Addon_Primary_color);white-space:nowrap;background-color:var(--AEditor_Addon_Primary_background-color);border:1px solid var(--AEditor_Addon_Primary_color);border-radius:var(--AEditor_border-radius);box-shadow:none;transform:translateY(10px)}.ql-snow .ql-tooltip a{line-height:26px;text-decoration:none;cursor:pointer}.ql-snow .ql-tooltip a.ql-action:after{padding-right:8px;margin-left:8px;content:var(--edit-text);border-right:1px solid var(--AEditor_Addon_Primary_color)}.ql-snow .ql-tooltip a.ql-remove:before{margin-left:8px;content:var(--remove-text)}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-tooltip:before{margin-right:8px;line-height:26px;content:var(--visit-url-text)}.ql-snow .ql-tooltip input[type=text]{display:none;width:300px;height:26px;padding:3px 5px;outline:none;border:1px solid var(--AEditor_Addon_Primary_color);border-radius:var(--AEditor_border-radius)}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{padding-right:0;content:var(--save-text);border-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:var(--enter-link-text)}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:var(--enter-video-text)}.ql-snow .ql-picker{position:relative;display:inline-block;height:var(--icon-size);vertical-align:middle;color:var(--AEditor_Addon_Primary_color);font-weight:500}.ql-snow .ql-picker-label{position:relative;display:inline-block;width:100%;height:100%;padding:0 2px 0 8px;cursor:pointer}.ql-snow .ql-picker-options{position:absolute;display:none;min-width:100%;padding:4px 8px;white-space:nowrap;background-color:var(--AEditor_Addon_Primary_background-color);border:var(--AEditor_Addon_Primary_border);border-radius:var(--AEditor_Option_border-radius);box-shadow:none;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}.ql-snow .ql-picker-options .ql-picker-item{display:block;cursor:pointer}.ql-snow .ql-picker-options .ql-picker-item:hover,.ql-snow .ql-picker-options .ql-picker-item.ql-selected{color:var(--acent-brand)}.ql-snow .ql-picker-options .ql-picker-item:hover .ql-fill,.ql-snow .ql-picker-options .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-picker-options .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-picker-options .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:var(--acent-brand)}.ql-snow .ql-picker-options .ql-picker-item:hover .ql-stroke,.ql-snow .ql-picker-options .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-picker-options .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-picker-options .ql-picker-item.ql-selected .ql-stroke-miter{stroke:var(--acent-brand)}.ql-snow .ql-picker.ql-expanded .ql-picker-label{z-index:2;color:var(--AEditor_Addon_Primary_color);border-color:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-picker.ql-expanded .ql-picker-options{z-index:1;display:grid}.ql-snow .ql-picker.ql-color-picker,.ql-snow .ql-picker.ql-icon-picker{width:var(--icon-size)}.ql-snow .ql-picker.ql-color-picker .ql-picker-label,.ql-snow .ql-picker.ql-icon-picker .ql-picker-label{padding:0}.ql-snow .ql-picker.ql-color-picker .ql-picker-options,.ql-snow .ql-picker.ql-icon-picker .ql-picker-options{grid-template-rows:repeat(var(--title-color-picker-row),auto);grid-auto-flow:column;gap:2px;width:auto;padding:4px}.ql-snow .ql-picker.ql-color-picker .ql-picker-item,.ql-snow .ql-picker.ql-icon-picker .ql-picker-item{width:var(--icon-size);height:var(--icon-size)}.ql-snow .ql-picker.ql-color-picker .ql-picker-item.ql-selected,.ql-snow .ql-picker.ql-color-picker .ql-picker-item:hover,.ql-snow .ql-picker.ql-icon-picker .ql-picker-item.ql-selected,.ql-snow .ql-picker.ql-icon-picker .ql-picker-item:hover{outline:2px solid var(--AEditor_Addon_Primary_color);outline-offset:-1px}.ql-snow .ql-picker:not(.ql-color-picker,.ql-icon-picker,.ql-table-up) svg{position:absolute;visibility:hidden}.ql-snow .ql-picker:not(.ql-color-picker,.ql-icon-picker,.ql-table-up) svg polygon{display:none}.ql-snow .ql-picker.ql-header{width:100px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:var(--default-text)}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:3em}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:2.5em}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:.75em}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:100px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:var(--default-text)}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-size:sans-serif}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-size:monospace}.ql-snow .ql-picker.ql-size{width:100px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:var(--default-text)}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:12px}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=normal]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=normal]:before{content:"normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=normal]:before{font-size:16px}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:24px}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow.ql-toolbar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:var(--toolbar-padding);background-color:var(--AEditor_Addon_Secondary_background-color);border:1px solid var(--AEditor_Addon_Primary_color);border-radius:var(--AEditor_border-radius) var(--AEditor_border-radius) 0 0;transition:color calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition)),border-color calc(var(--Transition-Enabled) * var(--Transition))}.ql-snow.ql-toolbar:after{content:none}.ql-snow.ql-toolbar.ql-toolbar-has-right-action{position:relative}.ql-snow.ql-toolbar .ql-right-action{order:9999;margin-left:auto}.ql-snow.ql-toolbar button{float:left;display:inline-block;width:var(--icon-size);height:var(--icon-size);padding:0;cursor:pointer;background:none;border:none}.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=text]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button.ql-selected,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label:focus,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item:focus,.ql-snow.ql-toolbar .ql-picker-item.ql-active,.ql-snow.ql-toolbar .ql-picker-item.ql-selected{color:var(--acent-brand)}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-selected .ql-fill,.ql-snow.ql-toolbar button.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:focus .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:focus .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:var(--acent-brand)}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-selected .ql-stroke,.ql-snow.ql-toolbar button.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:focus .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:focus .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:focus .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:focus .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:var(--acent-brand)}@media(pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active){color:var(--AEditor_Addon_Primary_color)}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:var(--AEditor_Addon_Primary_color)}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:var(--AEditor_Addon_Primary_color)}}.ql-snow.ql-toolbar .ql-header .ql-picker-label{display:flex;align-items:center;font-size:var(--title-header-font-size);background-color:var(--AEditor_Addon_Primary_background-color);border:var(--AEditor_Addon_Primary_border);border-radius:var(--AEditor_Select_border-radius);transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}.ql-snow.ql-toolbar .ql-header:after{position:absolute;top:50%;right:2px;z-index:3;width:16px;height:16px;content:"";background-color:var(--AEditor_Addon_Primary_color);-webkit-mask-image:var(--arrow-background);mask-image:var(--arrow-background);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;transform:translateY(-50%)}.ql-snow.ql-toolbar .ql-color-picker.ql-color .ql-picker-item{background-color:var(--label-normal)}.ql-snow.ql-toolbar .ql-picker:not(.ql-color-picker,.ql-icon-picker).ql-table-up{width:fit-content}.ql-snow.ql-toolbar .ql-picker:not(.ql-color-picker,.ql-icon-picker).ql-table-up .ql-picker-label{padding:0}.ql-snow.ql-toolbar .ql-picker:not(.ql-color-picker,.ql-icon-picker).ql-table-up .ql-picker-options .table-up-select-box__item{border:var(--AEditor_Addon_Primary_border)}.ql-snow.ql-container{border:1px solid var(--AEditor_Addon_Primary_color)}.ql-snow.ql-container .ql-readonly-fullscreen{position:absolute;top:12px;right:12px;z-index:100;display:flex;align-items:center;justify-content:center;padding:.3rem;cursor:pointer;background:var(--AEditor_Addon_Primary_background-color);border:var(--AEditor_Addon_Primary_border);border-radius:var(--AEditor_border-radius);box-shadow:0 4px 10px #00000014;opacity:.8;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border-color calc(var(--Transition-Enabled) * var(--Transition))}.ql-snow.ql-container .ql-readonly-fullscreen:hover{background:var(--AEditor_Addon_hover_background-color);opacity:1}.ql-snow.ql-container .ql-readonly-fullscreen.ql-active{background-color:var(--AEditor_Addon_hover_background-color);opacity:1}.ql-snow.ql-container .ql-readonly-fullscreen.ql-active svg{stroke:var(--AEditor_Addon_hover_color);stroke-width:2}.ql-snow.ql-container .ql-readonly-fullscreen svg{opacity:.8;transform:scale(.8)}.ql-snow.ql-container.ql-has-v-scrollbar .ql-readonly-fullscreen{right:calc(12px + (var(--Scrollbar-width, 12px)))}.ql-snow.ql-toolbar+.ql-snow.ql-container{border-top:0}.ql-snow .ql-editor{height:100%;padding:var(--editor-padding);overflow:hidden auto;white-space:pre-wrap;outline:none;counter-reset:list-0,list-1,list-2,list-3,list-4,list-5,list-6,list-7,list-8,list-9}.ql-snow .ql-editor .ql-ui{position:absolute}.ql-snow .ql-editor.ql-blank:before{position:absolute;right:15px;left:15px;font-style:italic;color:#0009;pointer-events:none;content:attr(data-placeholder)}.ql-snow .ql-editor>*{cursor:text}.ql-snow .ql-editor p,.ql-snow .ql-editor ol,.ql-snow .ql-editor pre,.ql-snow .ql-editor blockquote,.ql-snow .ql-editor h1,.ql-snow .ql-editor h2,.ql-snow .ql-editor h3,.ql-snow .ql-editor h4,.ql-snow .ql-editor h5,.ql-snow .ql-editor h6{padding:0;margin:0}.ql-snow .ql-editor h1{font-size:3em}.ql-snow .ql-editor h2{font-size:2.5em}.ql-snow .ql-editor h3{font-size:2em}.ql-snow .ql-editor h4{font-size:.75em}.ql-snow .ql-editor h5{font-size:.67em}.ql-snow .ql-editor blockquote{padding-left:16px;margin:4px 0;border-left:4px solid var(--AEditor_Addon_hover_color, skyblue)}.ql-snow .ql-editor table{width:100%;table-layout:fixed;border-collapse:collapse}.ql-snow .ql-editor table td{padding:2px 4px;outline:none;border:1px solid var(--AEditor_Addon_Primary_color, #000)}.ql-snow .ql-editor ol{padding-left:1.5em}.ql-snow .ql-editor li{position:relative;padding-left:1.5em;list-style-type:none}.ql-snow .ql-editor li>.ql-ui:before{display:inline-block;width:1.2em;margin-right:.3em;margin-left:-1.5em;text-align:right;white-space:nowrap}.ql-snow .ql-editor li[data-list=checked]>.ql-ui,.ql-snow .ql-editor li[data-list=unchecked]>.ql-ui{color:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-snow .ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-snow .ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}.ql-snow .ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-snow .ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-snow .ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-snow .ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-snow .ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-snow .ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-snow .ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-snow .ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-snow .ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-snow .ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-snow .ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-snow .ql-editor .ql-indent-1{padding-left:3em}.ql-snow .ql-editor li.ql-indent-1{padding-left:4.5em}.ql-snow .ql-editor .ql-indent-2{padding-left:6em}.ql-snow .ql-editor li.ql-indent-2{padding-left:7.5em}.ql-snow .ql-editor .ql-indent-3{padding-left:9em}.ql-snow .ql-editor li.ql-indent-3{padding-left:10.5em}.ql-snow .ql-editor .ql-indent-4{padding-left:12em}.ql-snow .ql-editor li.ql-indent-4{padding-left:13.5em}.ql-snow .ql-editor .ql-indent-5{padding-left:15em}.ql-snow .ql-editor li.ql-indent-5{padding-left:16.5em}.ql-snow .ql-editor .ql-indent-6{padding-left:18em}.ql-snow .ql-editor li.ql-indent-6{padding-left:19.5em}.ql-snow .ql-editor .ql-indent-7{padding-left:21em}.ql-snow .ql-editor li.ql-indent-7{padding-left:22.5em}.ql-snow .ql-editor .ql-indent-8{padding-left:24em}.ql-snow .ql-editor li.ql-indent-8{padding-left:25.5em}.ql-snow .ql-editor .ql-indent-9{padding-left:27em}.ql-snow .ql-editor li.ql-indent-9{padding-left:28.5em}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-editor .ql-video{display:block;max-width:100%}.ql-snow .ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-snow .ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-snow .ql-editor .ql-bg-black{background-color:var(--static-black, #000)}.ql-snow .ql-editor .ql-color-black{color:var(--static-black, #000)}.ql-snow .ql-editor .ql-bg-red{background-color:var(--red-45, #e60000)}.ql-snow .ql-editor .ql-color-red{color:var(--red-45, #e60000)}.ql-snow .ql-editor .ql-bg-orange{background-color:var(--orange-45, #f90)}.ql-snow .ql-editor .ql-color-orange{color:var(--orange-45, #f90)}.ql-snow .ql-editor .ql-bg-yellow{background-color:var(--yellow-45, #ff0)}.ql-snow .ql-editor .ql-color-yellow{color:var(--yellow-45, #ff0)}.ql-snow .ql-editor .ql-bg-green{background-color:var(--green-45, #008a00)}.ql-snow .ql-editor .ql-color-green{color:var(--green-45, #008a00)}.ql-snow .ql-editor .ql-bg-blue{background-color:var(--blue-45, #007bff)}.ql-snow .ql-editor .ql-color-blue{color:var(--blue-45, #007bff)}.ql-snow .ql-editor .ql-bg-purple{background-color:var(--purple-45, #93f)}.ql-snow .ql-editor .ql-color-purple{color:var(--purple-45, #93f)}.ql-snow .ql-editor .ql-bg-white{background-color:var(--static-white, #fff)}.ql-snow .ql-editor .ql-color-white{color:var(--static-white, #fff)}.ql-snow .ql-editor .ql-size-small{font-size:.75em}.ql-snow .ql-editor .ql-size-normal{font-size:1em}.ql-snow .ql-editor .ql-size-large{font-size:1.5em}.ql-snow .ql-editor .ql-size-huge{font-size:2.5em}.ql-snow .ql-editor .ql-align-center{text-align:center}.ql-snow .ql-editor .ql-align-justify{text-align:justify}.ql-snow .ql-editor .ql-align-right{text-align:right}.ql-editor-wrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background-color:var(--AEditor_Addon_Primary_background-color)}.ql-editor-wrap .quill,.ql-editor-wrap .ql-container{max-height:none!important}.ql-toolbar .ql-right-action{order:9999;margin-left:auto}.ql-editor-wrap>.quill{width:100%;height:100%}._AWrap_1mpkv_1{position:relative;display:flex;flex-grow:1;width:100%;height:100%;overflow:hidden}._AContainer_1mpkv_10{position:relative;display:flex;width:100%;height:100%;overflow:overlay}._ATree_1mpkv_18{position:relative;display:flex;flex-grow:1;flex-direction:column;width:100%;min-height:fit-content;background-color:var(--ATree_background-color);border-radius:2px;transition:background-color var(--Transition)}._ATreeBody_1mpkv_30{display:flex;flex-grow:1;flex-direction:column}._TreeTopAddon_1mpkv_36{position:sticky;top:0;z-index:10;display:flex;align-items:center;background-color:var(--ATree_background-color);transition:background-color var(--Transition)}._CoverBorder_1mpkv_46{position:absolute;top:0;box-sizing:border-box;width:100%;border-top:1px solid transparent;transition:border-top var(--Transition)}._InsertBorder_1mpkv_55{position:absolute;top:1;z-index:3;width:100%;pointer-events:none}._InsertBorder_1mpkv_55:before,._InsertBorder_1mpkv_55:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background-position:0 calc(var(--InsertBorder_height, 40px) - 1px);background-size:100% var(--InsertBorder_height, 40px);opacity:0;transition:opacity var(--Transition)}._InsertBorder_1mpkv_55:before{background-image:linear-gradient(to bottom,var(--neutral-30) 1px,transparent 1px)}._InsertBorder_1mpkv_55:after{background-image:linear-gradient(to bottom,var(--neutral-79) 1px,transparent 1px)}html[data-theme=dark] ._InsertBorder_1mpkv_55:before,html[data-theme=light] ._InsertBorder_1mpkv_55:after{opacity:1}._ATreeHeader_1mpkv_86{box-sizing:border-box;padding-top:8px;margin-bottom:8px}._ATreeBodyHeader_1mpkv_92{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;min-height:50px;border-bottom:var(--ATreeBodyHeader_border-bottom);transition:border-bottom var(--Transition)}._ATreeBodyHeaderResources_1mpkv_102{display:flex;flex-direction:column;justify-content:flex-start}._ATreeItem_1mpkv_108{position:relative;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;width:100%;height:var(--ATreeItem_height, 40px);min-height:var(--ATreeItem_height, 40px);white-space:nowrap;background-color:var(--ATree_background-color);transition:background-color var(--Transition)}._ATreeItem_1mpkv_108:nth-last-child(1){border-bottom:none}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124{cursor:var(--ATreeItem_cursor, pointer)}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124._IsSelected_1mpkv_127{color:var(--ATreeItem_select_color);background-color:var(--ATreeItem_select_background-color);transition:background-color var(--Transition),color var(--Transition)}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124._IsSearchSelected_1mpkv_132{background-color:var(--ATreeItem_search_background-color);border-top:var(--ATreeItem_search_border-top);border-bottom:var(--ATreeItem_search_border-bottom)}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124:active{background-color:var(--ATreeItem_active_background-color)}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124:hover,._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124._IsHovered_1mpkv_143{background-color:var(--ATreeItem_hover_background-color)}._CheckBox_1mpkv_147{position:sticky;left:0;z-index:2;display:flex;flex-direction:row;align-items:center;min-height:100%;padding:0 12px;background-color:inherit}._Indents_1mpkv_159{display:flex;flex-direction:row;min-width:fit-content;height:100%}._ExpandIcon_1mpkv_166{z-index:1;display:flex;align-items:center;justify-content:center;min-width:24px;max-width:24px;min-height:24px;margin-right:8px;cursor:pointer}._Content_1mpkv_178{display:flex;flex-grow:1;flex-direction:row;align-items:center;justify-content:space-between;overflow:hidden}._RightSticky_1mpkv_187{position:sticky;right:0;display:flex;align-items:center;height:100%;padding:0 8px}._SearchInputWrap_1mpkv_196{display:flex;flex-grow:1;overflow:hidden}._SearchInput_1mpkv_196{display:flex;min-height:32px;overflow:hidden}._RightAddon_1mpkv_208{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;height:100%;padding-right:0;cursor:pointer;transition:color var(--Transition)}._RightAddonIcon_1mpkv_219{min-width:24px;max-width:24px;min-height:24px;max-height:24px}._Loader_1mpkv_226{flex-grow:1;justify-content:center}._IsChildOfDragSource_1mpkv_231{opacity:.5;transition:all .15s ease}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('@charset "UTF-8";._NoSelect_29290_1{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}._NoTransition_29290_6{--Transition-Enabled: 0}._IsFixedShape_29290_10{overflow:hidden;white-space:nowrap}._IsCursorPointer_29290_15{cursor:pointer}._IsInteractive_29290_19:before{position:absolute;top:0;left:0;width:100%;height:100%;color:block;content:"";background-color:#000;border-radius:inherit;opacity:0;transition:all var(--Transition)}._IsInteractive_29290_19:hover:before{opacity:.06}._IsInteractive_29290_19:focus:before{opacity:.12}._IsInteractive_29290_19:active:before{opacity:.16}._Display1_11vgm_1{font-size:3.5rem;font-weight:700}._Display2_11vgm_6{font-size:2.75rem;font-weight:600}._Title1_11vgm_11{font-size:2.25rem;font-weight:600}._Title2_11vgm_16{font-size:1.625rem;font-weight:600}._Title3_11vgm_21{font-size:1.5rem;font-weight:600}._Headline1_11vgm_26{font-size:1.375rem;font-weight:500}._Headline2_11vgm_31{font-size:1.25rem;font-weight:400}._Body1Normal_11vgm_36,._Body1Reading_11vgm_41{font-size:1rem;font-weight:400}._Label1_11vgm_46{font-size:.875rem;font-weight:400}._Label2_11vgm_51{font-size:.8125rem;font-weight:400}._Caption1_11vgm_56{font-size:.75rem;font-weight:400}._Caption2_11vgm_61{font-size:.6875rem;font-weight:400}._Regular_11vgm_66{font-weight:400}._Medium_11vgm_70{font-weight:500}._SemiBold_11vgm_74{font-weight:600}._Bold_11vgm_78{font-weight:700}._AProgressBar_17v9w_1{display:flex;flex-direction:column;width:100%;padding:4px 0}._AProgressBar_17v9w_1 ._Header_17v9w_7{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}._AProgressBar_17v9w_1 ._Header_17v9w_7 ._Percentage_17v9w_13{transition:color calc(var(--Transition-Enabled) * var(--Transition))}._AProgressBar_17v9w_1 ._BarContainer_17v9w_16{position:relative;width:100%;height:8px;overflow:hidden;background-color:var(--line-neutral);border-radius:4px;transition:background-color calc(var(--Transition-Enabled) * var(--Transition))}._AProgressBar_17v9w_1 ._BarContainer_17v9w_16 ._Bar_17v9w_16{height:100%;background-color:var(--acent-brand);border-radius:inherit;transition:width calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition))}._AProgressBar_17v9w_1._CustomHeight_17v9w_31 ._BarContainer_17v9w_16{height:var(--progress-bar-height)}._AProgressBar_17v9w_1._CustomRadius_17v9w_34 ._BarContainer_17v9w_16,._AProgressBar_17v9w_1._CustomRadius_17v9w_34 ._BarContainer_17v9w_16 ._Bar_17v9w_16{border-radius:var(--progress-bar-radius)}._AProgressBar_17v9w_1._CustomColor_17v9w_40 ._BarContainer_17v9w_16{background-color:var(--progress-bar-background-custom)}._AProgressBar_17v9w_1._CustomColor_17v9w_40 ._BarContainer_17v9w_16 ._Bar_17v9w_16{background-color:var(--progress-bar-color-custom)}._Tooltip_1khnz_1{position:fixed;z-index:100;visibility:hidden;width:fit-content;height:fit-content;padding:4px 10px;text-overflow:ellipsis;color:var(--ATooltip_color);white-space:break-all;pointer-events:none;background-color:var(--ATooltip_background-color);border-radius:5px;opacity:0;transition:opacity var(--Transition) ease-in-out,background-color var(--Transition) ease-in-out}._Tooltip_1khnz_1 ._Arrow_1khnz_17{position:absolute;pointer-events:none;content:"";border-color:var(--ATooltip_background-color)}._ABase_c7a1t_1{position:relative;display:flex;flex-direction:column}._ABase_c7a1t_1._UseDimming_c7a1t_6 ._UseDimming_c7a1t_6 ._Dimmer_c7a1t_6,._ABase_c7a1t_1._UseDimming_c7a1t_6 ._UseDimming_c7a1t_6 ._Spinner_c7a1t_9{z-index:0}._ABase_c7a1t_1._Dimmed_c7a1t_12 ._Dimmed_c7a1t_12 ._Dimmer_c7a1t_6,._ABase_c7a1t_1._Dimmed_c7a1t_12 ._Dimmed_c7a1t_12 ._Spinner_c7a1t_9{opacity:0}._ABase_c7a1t_1._HasProgress_c7a1t_18>*:not(._Dimmer_c7a1t_6,._Spinner_c7a1t_9){visibility:hidden}._Dimmer_c7a1t_6{position:absolute;top:0;left:0;z-index:100;width:100%;height:100%;overflow:hidden;pointer-events:none;background-color:var(--ABase_Dimming_background-color);border-radius:inherit;opacity:0;transition:opacity var(--Transition),background-color var(--Transition)}._Dimmer_c7a1t_6._IsDimmed_c7a1t_36{pointer-events:all;cursor:progress;opacity:.5}._Dimmer_c7a1t_6._IsLoading_c7a1t_41{pointer-events:all;cursor:wait;opacity:.5}._Dimmer_c7a1t_6._IsDisabled_c7a1t_46{pointer-events:all;cursor:not-allowed;opacity:.5}._Dimmer_c7a1t_6._HasProgress_c7a1t_18{background-color:var(--ABase_Dimming_background-color);opacity:.9}._Spinner_c7a1t_9{position:absolute;top:0;left:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit;opacity:0;transition:opacity var(--Transition)}._Spinner_c7a1t_9 svg{width:50px;max-width:50%;height:50px;max-height:50%}._Spinner_c7a1t_9._IsLoading_c7a1t_41{opacity:1}._Spinner_c7a1t_9._IsLoading_c7a1t_41._IsDisabled_c7a1t_46{opacity:.5}._Spinner_c7a1t_9._HasProgress_c7a1t_18{display:flex;justify-content:center}._Spinner_c7a1t_9._HasProgress_c7a1t_18>*{width:calc(100% - 20px);max-width:300px}._AButton_zrw2c_1{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:90px;height:34px;padding:0 18px;white-space:nowrap;border-radius:2px;transition:color var(--Transition),background-color var(--Transition),border var(--Transition)}._AButton_zrw2c_1._Primary_zrw2c_14{color:var(--AButton_Primary_color);background-color:var(--AButton_Primary_background-color);border:var(--AButton_Primary_border)}._AButton_zrw2c_1._Primary_zrw2c_14:hover{color:var(--AButton_Primary_hover_color);background-color:var(--AButton_Primary_hover_background-color);border:var(--AButton_Primary_hover_border)}._AButton_zrw2c_1._Primary_zrw2c_14:active{color:var(--AButton_Primary_active_color);background-color:var(--AButton_Primary_active_background-color);border:var(--AButton_Primary_active_border)}._AButton_zrw2c_1._Secondary_zrw2c_29{color:var(--AButton_Secondary_color);background-color:var(--AButton_Secondary_background-color);border:var(--AButton_Secondary_border)}._AButton_zrw2c_1._Secondary_zrw2c_29:hover{color:var(--AButton_Secondary_hover_color);background-color:var(--AButton_Secondary_hover_background-color);border:var(--AButton_Secondary_hover_border)}._AButton_zrw2c_1._Secondary_zrw2c_29:active{color:var(--AButton_Secondary_active_color);background-color:var(--AButton_Secondary_active_background-color);border:var(--AButton_Secondary_active_border)}._AButton_zrw2c_1._Alter_zrw2c_44{color:var(--AButton_Alter_color);background-color:var(--AButton_Alter_background-color);border:var(--AButton_Alter_border)}._AButton_zrw2c_1._Alter_zrw2c_44:hover{color:var(--AButton_Alter_hover_color);background-color:var(--AButton_Alter_hover_background-color);border:var(--AButton_Alter_hover_border)}._AButton_zrw2c_1._Alter_zrw2c_44:active{color:var(--AButton_Alter_active_color);background-color:var(--AButton_Alter_active_background-color);border:var(--AButton_Alter_active_border)}._AIconButton_zrw2c_60{box-sizing:border-box;display:flex;align-items:center;justify-content:center}._AIconButton_zrw2c_60._Primary_zrw2c_14{min-width:34px;max-width:34px;min-height:34px;max-height:34px;color:var(--AIconButton_Primary_color);background-color:var(--AIconButton_Primary_background-color);border:var(--AIconButton_Primary_border);border-radius:6px;transition:border var(--Transition),background-color var(--Transition),color var(--Transition)}._AIconButton_zrw2c_60._Primary_zrw2c_14:hover{background-color:var(--AIconButton_Primary_hover_background-color)}._AIconButton_zrw2c_60._Primary_zrw2c_14:active{background-color:var(--AIconButton_Primary_active_background-color)}._AIconButton_zrw2c_60._Secondary_zrw2c_29{min-width:24px;max-width:24px;min-height:24px;max-height:24px;color:var(--AIconButton_Secondary_color);background-color:var(--AIconButton_Secondary_background-color);border:none;border-radius:9999px;transition:background-color var(--Transition),color var(--Transition)}._AIconButton_zrw2c_60._Secondary_zrw2c_29:hover{background-color:var(--AIconButton_Secondary_hover_background-color)}._AIconButton_zrw2c_60._Secondary_zrw2c_29:active{background-color:var(--AIconButton_Secondary_active_background-color)}._AThemeButton_zrw2c_101{width:28px;height:28px;color:var(--AIconButton_Primary_color);border-radius:14px;transition:color var(--Transition)}._AWrap_u1f1h_1{position:relative;z-index:0;display:flex;flex-direction:column}._Label_u1f1h_8{display:flex;flex-direction:row;gap:4px;align-items:center;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;color:inherit;white-space:nowrap}._Label_u1f1h_8 ._Asterisk_u1f1h_19{color:var(--alert-danger)}._HelperTextConatiner_u1f1h_23{display:flex;flex-grow:0;flex-direction:row;overflow:hidden;color:inherit;transition:all var(--Transition) ease-in-out}._HelperText_u1f1h_23{height:fit-content;overflow:hidden;color:inherit;transition:all var(--Transition)}._HelperText_u1f1h_23._Error_u1f1h_38{color:var(--AWrap_Error_color)}._ASwitch_nlcij_1{cursor:pointer;border-radius:26px}._Track_nlcij_6{min-width:26px;max-width:26px;border:var(--ASwitch_Track_Falsy_border);border-radius:26px;transition:transform .15s cubic-bezier(.4,0,.2,1),border-color var(--Transition)}._Track_nlcij_6._Truthy_nlcij_13{border:var(--ASwitch_Track_Truthy_border)}._Thumb_nlcij_17{position:absolute;top:50%;border:var(--ASwitch_Thumb_border);border-radius:50%;transform:translate(-9px,-50%);transition:transform .15s cubic-bezier(.4,0,.2,1),border-color var(--Transition)}._Thumb_nlcij_17._Truthy_nlcij_13{transform:translate(17px,-50%)}._ACheckBoxWrap_1ozuz_1{color:var(--ACheckBox_color);cursor:pointer;border-radius:4px;transition:color var(--Transition)}._ACheckBox_1ozuz_1{min-width:16px;max-width:16px;min-height:16px;max-height:16px}._ARowFrame_1v0ao_1{display:flex;flex-direction:row;align-items:center}._AColFrame_1v0ao_7{display:flex;flex-direction:column;align-items:center}._AOverflowFrame_1v0ao_13{display:block;max-width:100%;max-height:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._ADivideFrame_1v0ao_22{position:relative;display:flex;flex-grow:1;overflow:hidden;opacity:0;transition:opacity var(--Transition) cubic-bezier(.4,0,.2,1)}._ADivideFrame_1v0ao_22._Row_1v0ao_30{flex-direction:row}._ADivideFrame_1v0ao_22._Col_1v0ao_33{flex-direction:column}._ADivideFrame_1v0ao_22._FadeIn_1v0ao_36{opacity:1}._ADivideFrame_1v0ao_22._NoTransition_1v0ao_39{transition:none!important}._ChildFrame_1v0ao_43{position:relative;box-sizing:border-box;display:flex;flex-grow:1;flex-direction:column;overflow:hidden;transition:width var(--Transition) cubic-bezier(.4,0,.2,1),height var(--Transition) cubic-bezier(.4,0,.2,1),min-width var(--Transition) cubic-bezier(.4,0,.2,1),min-height var(--Transition) cubic-bezier(.4,0,.2,1),max-width var(--Transition) cubic-bezier(.4,0,.2,1),max-height var(--Transition) cubic-bezier(.4,0,.2,1)}._ChildFrame_1v0ao_43._Row_1v0ao_30{overflow-x:auto}._ChildFrame_1v0ao_43._Col_1v0ao_33{overflow-y:auto}._ChildFrame_1v0ao_43._NoTransition_1v0ao_39{transition:none!important}._ChildFrame_1v0ao_43:has(._ExpandButtonOverlay_1v0ao_61){position:relative;min-width:24px;min-height:24px}._ChildFrame_1v0ao_43:has(._ExpandButtonOverlay_1v0ao_61)._Row_1v0ao_30{overflow:visible}._ChildFrame_1v0ao_43:has(._ExpandButtonOverlay_1v0ao_61)._Col_1v0ao_33{overflow:visible}._Divider_1v0ao_73{position:absolute;z-index:100;display:flex;align-items:center;justify-content:center;transition:left var(--Transition) cubic-bezier(.4,0,.2,1),top var(--Transition) cubic-bezier(.4,0,.2,1)}._Divider_1v0ao_73:hover:not(._IsMoving_1v0ao_81,._NoDraggable_1v0ao_81)._Row_1v0ao_30{cursor:ew-resize}._Divider_1v0ao_73:hover:not(._IsMoving_1v0ao_81,._NoDraggable_1v0ao_81)._Row_1v0ao_30 ._DividerInner_1v0ao_84{min-width:2px;max-width:2px}._Divider_1v0ao_73:hover:not(._IsMoving_1v0ao_81,._NoDraggable_1v0ao_81)._Col_1v0ao_33{cursor:ns-resize}._Divider_1v0ao_73:hover:not(._IsMoving_1v0ao_81,._NoDraggable_1v0ao_81)._Col_1v0ao_33 ._DividerInner_1v0ao_84{min-height:2px;max-height:2px}._Divider_1v0ao_73._Row_1v0ao_30{min-width:11px;max-width:11px;min-height:100%;max-height:100%;margin-right:-5.5px;margin-left:-5.5px}._Divider_1v0ao_73._Row_1v0ao_30 ._DividerInner_1v0ao_84{min-width:1px;max-width:1px;min-height:100%;max-height:100%}._Divider_1v0ao_73._Row_1v0ao_30._IsClicked_1v0ao_109:not(._NoDraggable_1v0ao_81){cursor:ew-resize}._Divider_1v0ao_73._Row_1v0ao_30._IsClicked_1v0ao_109:not(._NoDraggable_1v0ao_81) ._DividerInner_1v0ao_84{min-width:2px;max-width:2px}._Divider_1v0ao_73._Col_1v0ao_33{min-width:100%;max-width:100%;min-height:11px;max-height:11px;margin-top:-5.5px;margin-bottom:-5.5px}._Divider_1v0ao_73._Col_1v0ao_33 ._DividerInner_1v0ao_84{min-width:100%;max-width:100%;min-height:1px;max-height:1px}._Divider_1v0ao_73._Col_1v0ao_33._IsClicked_1v0ao_109:not(._NoDraggable_1v0ao_81){cursor:ns-resize}._Divider_1v0ao_73._Col_1v0ao_33._IsClicked_1v0ao_109:not(._NoDraggable_1v0ao_81) ._DividerInner_1v0ao_84{min-height:2px;max-height:2px}._DividerInner_1v0ao_84{position:absolute;background-color:var(--ADivideFrame_DividerInner_background-color);transition:all var(--Transition) cubic-bezier(.4,0,.2,1)}._RemoteButton_1v0ao_144{display:flex;flex-shrink:0;width:fit-content;padding:21px 10px 24px}._isExpanded_1v0ao_151{transform:scaleX(-1)}._IsMoving_1v0ao_81,._NoTransition_1v0ao_39{transition:none}._NoDraggable_1v0ao_81{cursor:default}._ExpandButtonOverlay_1v0ao_61{position:absolute;top:0;right:0;bottom:0;left:0;z-index:99;pointer-events:auto;cursor:pointer;background-color:var(--background-normal);opacity:.1;transition:background-color var(--Transition) cubic-bezier(.4,0,.2,1),opacity var(--Transition) cubic-bezier(.4,0,.2,1);animation:_fade-in_1v0ao_1 var(--Transition) cubic-bezier(.4,0,.2,1) forwards}._ExpandButtonOverlay_1v0ao_61:hover{background-color:var(--elevation-10);opacity:.2}@keyframes _fade-in_1v0ao_1{0%{opacity:0}to{opacity:1}}._ExpandButton_1v0ao_61{position:absolute;top:50%;left:50%;z-index:100;color:var(--acent-brand);opacity:0;transition:all var(--Transition) cubic-bezier(.4,0,.2,1);animation:_fade-in_1v0ao_1 var(--Transition) cubic-bezier(.4,0,.2,1) .1s forwards}._ASpace_1okqf_1{width:0;height:0;transition:all var(--Transition)}._AChipsContainer_1ag9v_1{display:flex;flex-flow:row wrap}._AChip_1ag9v_1{position:relative;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:center;min-width:32px;min-height:26px;padding:4px 6px;color:var(--AChip_color);background-color:var(--AChip_background-color);border:var(--AChip_border);border-radius:16px}._AChip_1ag9v_1._Clickable_1ag9v_21:hover{color:var(--AChip_hover_color);background-color:var(--AChip_hover_background-color)}._AChipDelete_1ag9v_26{position:absolute;right:0;aspect-ratio:1/1;margin-right:6px;color:var(--AChip_DeleteButton_color);border:var(--AChip_DeleteButton_border);border-radius:50%}._AChipDelete_1ag9v_26:hover,._IsHover_1ag9v_40{color:var(--AChip_DeleteButton_hover_color);border:var(--AChip_DeleteButton_hover_border)}._AChipDeleteIcon_1ag9v_45{position:absolute;right:0;z-index:2;margin-right:8px}input{font-family:Pretendard,sans-serif;font-size:1rem;font-weight:400}._InputContainer_16eoo_7{z-index:1;box-sizing:border-box;display:flex;flex-direction:row;height:34px;word-break:none;white-space:nowrap;resize:none;border:none;border-radius:6px;transition:border var(--Transition),background-color var(--Transition)}._AInput_16eoo_21{box-sizing:border-box;width:100%;padding:8px 12px;text-overflow:ellipsis;color:inherit;background-color:transparent;border:none;transition:color var(--Transition)}._AInput_16eoo_21:focus{outline:none}._AInput_16eoo_21::placeholder{transition:all var(--Transition);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}._AInput_16eoo_21::-webkit-calendar-picker-indicator{display:none!important}._LeftAddon_16eoo_43{box-sizing:border-box;display:flex;align-items:center;transition:color var(--Transition)}._RightAddon_16eoo_50{display:flex;flex-direction:row;align-items:center;transition:color var(--Transition)}._ErrorHelperText_16eoo_57{color:var(--AInput_Error_HelperText_color)}._Primary_16eoo_61{color:var(--AInput_Primary_color);background-color:var(--AInput_Primary_background-color);border:var(--AInput_Primary_border)}._Primary_16eoo_61:hover:not(._UnAvailable_16eoo_66){border:var(--AInput_Primary_hover_border)}._Primary_16eoo_61:focus-within:not(._UnAvailable_16eoo_66){background-color:var(--AInput_Primary_focus_background-color);border:var(--AInput_Primary_focus_border)}._Primary_16eoo_61 ::placeholder{color:var(--AInput_Primary_placeholder_color)}._Secondary_16eoo_77{color:var(--AInput_Secondary_color);background-color:var(--AInput_Secondary_background-color);border:var(--AInput_Secondary_border)}._Secondary_16eoo_77:hover:not(._UnAvailable_16eoo_66){border:var(--AInput_Secondary_hover_border)}._Secondary_16eoo_77:focus-within:not(._UnAvailable_16eoo_66){border:var(--AInput_Secondary_focus_border)}._Secondary_16eoo_77 ::placeholder{color:var(--AInput_Secondary_placeholder_color)}._ReadOnly_16eoo_92{color:var(--AInput_ReadOnly_color);cursor:not-allowed;background-color:var(--AInput_ReadOnly_background-color);border:var(--AInput_ReadOnly_border)}._Error_16eoo_57{color:var(--AInput_Error_color);background-color:var(--AInput_Error_background-color);border:var(--AInput_Error_border)}._Error_16eoo_57 ::placeholder{color:var(--AInput_Error_placeholder_color)}._ANumInputUnitSelect_16eoo_108{padding:0;color:var(--line-strong)}._ASelect_1gbzd_1{position:relative;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:200px;height:34px;overflow:hidden;cursor:pointer;border-radius:6px}._ASelect_1gbzd_1 ._Arrow_1gbzd_14{position:relative;display:flex;align-items:center;justify-content:center;height:100%;pointer-events:none;transition:border var(--Transition)}._ASelect_1gbzd_1._Primary_1gbzd_23{border:var(--ASelect_Primary_border);transition:border var(--Transition)}._ASelect_1gbzd_1._Primary_1gbzd_23 ._Arrow_1gbzd_14{min-width:30px;max-width:50px;aspect-ratio:1/1;color:var(--ASelect_Primary_Arrow_color);border-left:var(--ASelect_Primary_border)}._ASelect_1gbzd_1._Primary_1gbzd_23:hover:not(._UnAvailable_1gbzd_34),._ASelect_1gbzd_1._Primary_1gbzd_23._IsOpen_1gbzd_34:not(._UnAvailable_1gbzd_34){border:var(--ASelect_Primary_hover_border)}._ASelect_1gbzd_1._Primary_1gbzd_23:hover:not(._UnAvailable_1gbzd_34) ._Arrow_1gbzd_14,._ASelect_1gbzd_1._Primary_1gbzd_23._IsOpen_1gbzd_34:not(._UnAvailable_1gbzd_34) ._Arrow_1gbzd_14{border-left:var(--ASelect_Primary_hover_border);transition:border-left var(--Transition)}._ASelect_1gbzd_1._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_background-color);border:var(--ASelect_Secondary_border);transition:border var(--Transition),background-color var(--Transition)}._ASelect_1gbzd_1._Secondary_1gbzd_41 ._Arrow_1gbzd_14{color:var(--ASelect_Secondary_Arrow_color);transition:color var(--Transition)}._ASelect_1gbzd_1._Secondary_1gbzd_41:hover:not(._UnAvailable_1gbzd_34),._ASelect_1gbzd_1._Secondary_1gbzd_41._IsOpen_1gbzd_34:not(._UnAvailable_1gbzd_34){border:var(--ASelect_Secondary_hover_border)}._ASelect_1gbzd_1._Secondary_1gbzd_41:hover:not(._UnAvailable_1gbzd_34) ._Arrow_1gbzd_14,._ASelect_1gbzd_1._Secondary_1gbzd_41._IsOpen_1gbzd_34:not(._UnAvailable_1gbzd_34) ._Arrow_1gbzd_14{transition:border-left var(--Transition)}._Placeholder_1gbzd_57{color:var(--ASelect_Placeholder_color)}._ValuesContainer_1gbzd_61{display:flex;flex-grow:1;overflow:hidden;white-space:nowrap}._Values_1gbzd_61{box-sizing:border-box;display:block;width:100%;height:100%;padding:8px 0 8px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Options_1gbzd_80{position:fixed;z-index:100;box-sizing:border-box;visibility:hidden;width:fit-content;overflow:overlay;cursor:pointer;border-radius:6px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;opacity:0;transition:opacity var(--Transition),visibility var(--Transition),background-color var(--Transition),border var(--Transition)}._Options_1gbzd_80._Raw_1gbzd_93,._Options_1gbzd_80._Primary_1gbzd_23{background-color:var(--ASelect_Primary_Options_background-color);border:var(--ASelect_Primary_Options_border)}._Options_1gbzd_80._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_Options_background-color);border:var(--ASelect_Secondary_Options_border)}._Option_1gbzd_80{display:flex;flex-grow:1;flex-direction:row;align-items:center;padding-left:12px;transition:background-color var(--Transition)}._Option_1gbzd_80:hover._Raw_1gbzd_93,._Option_1gbzd_80:hover._Primary_1gbzd_23{background-color:var(--ASelect_Primary_Option_hover_background-color)}._Option_1gbzd_80:hover._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_Option_hover_background-color)}._Option_1gbzd_80:active._Raw_1gbzd_93,._Option_1gbzd_80:active._Primary_1gbzd_23{background-color:var(--ASelect_Primary_Option_active_background-color)}._Option_1gbzd_80:active._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_Option_active_background-color)}._Option_1gbzd_80._Selected_1gbzd_122._Raw_1gbzd_93,._Option_1gbzd_80._Selected_1gbzd_122._Primary_1gbzd_23{background-color:var(--ASelect_Primary_Option_Selected_background-color)}._Option_1gbzd_80._Selected_1gbzd_122._Secondary_1gbzd_41{background-color:var(--ASelect_Secondary_Option_Selected_background-color)}._CheckBox_1gbzd_129{position:sticky;left:0;z-index:2;display:flex;flex-direction:row;align-items:center;min-height:100%;padding-right:12px;background-color:inherit}._Anchor_1l5ql_1{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;height:34px;color:var(--ADatePicker_Anchor_color);border:var(--ADatePicker_Anchor_border);border-radius:6px;transition:all var(--Transition)}._Anchor_1l5ql_1:hover{border:var(--ADatePicker_Anchor_hover_border)}._Anchor_1l5ql_1:focus{border:var(--ADatePicker_Anchor_focus_border)}._Anchor_1l5ql_1._Primary_1l5ql_18{padding:8px}._Anchor_1l5ql_1._Secondary_1l5ql_21{padding:8px 4px 8px 12px}._Placeholder_1l5ql_25{color:var(--ADatePicker_Anchor_Placeholder_color);transition:all var(--Transition)}._Icon_1l5ql_30{transition:color var(--Transition)}._Icon_1l5ql_30._Primary_1l5ql_18{color:var(--ADatePicker_Anchor_Icon_Primary_color)}._Icon_1l5ql_30._Secondary_1l5ql_21{color:var(--ADatePicker_Anchor_Icon_Secondary_color)}._ADatePicker_1l5ql_40{position:fixed;z-index:100;overflow:hidden;background-color:var(--ADatePicker_background-color);border:var(--ADatePicker_border);border-radius:6px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;transition:background-color var(--Transition),opacity var(--Transition),visibility var(--Transition)}._StringInputWrap_1l5ql_51{display:flex;flex:1}._StringInputContainer_1l5ql_56{box-sizing:border-box;display:flex;flex-direction:column;padding:10px;background-color:var(--ADatePicker_StringInputContainer_background-color)}._StringInput_1l5ql_51{text-align:center}._String_1l5ql_51{border-color:var(--ADatePicker_StringInputContainer_background-color)}._String_1l5ql_51._IsIdx_1l5ql_71{border:var(--ADatePicker_String_border)}._CalendarContainer_1l5ql_75{display:flex;flex-direction:column;padding:10px}._Header_1l5ql_81{justify-content:space-between}._Prev_1l5ql_85,._Next_1l5ql_86{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:24px;max-width:24px;min-height:24px;max-height:24px;cursor:pointer;border-radius:4px}._Prev_1l5ql_85{background-color:var(--ADatePicker_Prev_background-color)}._Prev_1l5ql_85:after{margin-left:-6px;content:"";border:4px solid transparent;border-right:var(--ADatePicker_Prev_border-right)}._Next_1l5ql_86{background-color:var(--ADatePicker_Next_background-color)}._Next_1l5ql_86:after{margin-left:6px;content:"";border:4px solid transparent;border-left:var(--ADatePicker_Next_border-left)}._MonthYear_1l5ql_119{display:flex;flex-direction:row}._Select_1l5ql_124{min-height:100%;max-height:35px}._Calendar_1l5ql_75{display:flex;flex-direction:column}._Cell_1l5ql_134{display:flex;align-items:center;justify-content:center;min-width:40px;max-width:40px;min-height:24px;max-height:24px;color:var(--ADatePicker_Cell_color);background-color:transparent;border-radius:0}._Cell_1l5ql_134._IsNotCurrentMonth_1l5ql_146{color:var(--ADatePicker_Cell_IsNotCurrentMonth_color);pointer-events:none}._Cell_1l5ql_134._IsSelected_1l5ql_150{color:var(--ADatePicker_Cell_IsSelected_color);background-color:var(--ADatePicker_Cell_IsSelected_background-color)}._Cell_1l5ql_134._IsDisabled_1l5ql_154{background-color:var(--ADatePicker_Cell_IsDisabled_color)}._Cell_1l5ql_134._IsHovered_1l5ql_157{background-color:var(--ADatePicker_Cell_IsHovered_background-color)}._Week_1l5ql_161{display:flex;flex-direction:row}._WeekDay_1l5ql_166{cursor:default}._Anchor_5u6hq_1{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;height:34px;color:var(--ADateRangePicker_Anchor_color);border:var(--ADateRangePicker_Anchor_border);border-radius:6px;transition:all var(--Transition)}._Anchor_5u6hq_1:hover{border:var(--ADateRangePicker_Anchor_hover_border)}._Anchor_5u6hq_1:focus{border:var(--ADateRangePicker_Anchor_focus_border)}._Anchor_5u6hq_1._Primary_5u6hq_18{padding:8px 4px 8px 8px}._Anchor_5u6hq_1._Secondary_5u6hq_22{padding:8px 4px 8px 12px}._Placeholder_5u6hq_26{color:var(--ADateRangePicker_Anchor_Placeholder_color);transition:all var(--Transition)}._Icon_5u6hq_31{transition:color var(--Transition)}._Icon_5u6hq_31._Primary_5u6hq_18{color:var(--ADateRangePicker_Anchor_Icon_Primary_color)}._Icon_5u6hq_31._Secondary_5u6hq_22{color:var(--ADateRangePicker_Anchor_Icon_Secondary_color)}._ADateRangePicker_5u6hq_41{position:fixed;z-index:100;overflow:hidden;background-color:var(--ADateRangePicker_background-color);border:var(--ADateRangePicker_border);border-radius:6px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;transition:background-color var(--Transition),opacity var(--Transition),visibility var(--Transition)}._StringInputWrap_5u6hq_52{display:flex}._StringInputContainer_5u6hq_56{box-sizing:border-box;display:flex;flex-direction:column;width:300px;padding:10px;background-color:var(--ADateRangePicker_StringInputContainer_background-color)}._StringInput_5u6hq_52{text-align:center}._String_5u6hq_52{border-color:var(--ADateRangePicker_StringInputContainer_background-color)}._String_5u6hq_52._IsIdx_5u6hq_72{border:var(--ADateRangePicker_String_border)}._CalendarContainer_5u6hq_76{display:flex;flex-direction:column;padding:10px}._Header_5u6hq_82{justify-content:space-between}._Prev_5u6hq_86,._Next_5u6hq_87{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:24px;max-width:24px;min-height:24px;max-height:24px;cursor:pointer;border-radius:4px}._Prev_5u6hq_86{background-color:var(--ADateRangePicker_Prev_background-color)}._Prev_5u6hq_86:after{margin-left:-6px;content:"";border:4px solid transparent;border-right:var(--ADateRangePicker_Prev_border-right)}._Next_5u6hq_87{background-color:var(--ADateRangePicker_Next_background-color)}._Next_5u6hq_87:after{margin-left:6px;content:"";border:4px solid transparent;border-left:var(--ADateRangePicker_Next_border-left)}._MonthYear_5u6hq_120{display:flex;flex-direction:row}._Select_5u6hq_125{min-height:100%;max-height:35px}._Calendar_5u6hq_76{display:flex;flex-direction:column}._Cell_5u6hq_135{display:flex;align-items:center;justify-content:center;min-width:40px;max-width:40px;min-height:24px;max-height:24px;color:var(--ADateRangePicker_Cell_color);background-color:transparent;border-radius:0}._Cell_5u6hq_135._IsNotCurrentMonth_5u6hq_147{color:var(--ADateRangePicker_Cell_IsNotCurrentMonth_color);pointer-events:none}._Cell_5u6hq_135._IsSelected_5u6hq_151{color:var(--ADateRangePicker_Cell_IsSelected_color);background-color:var(--ADateRangePicker_Cell_IsSelected_background-color)}._Cell_5u6hq_135._IsDisabled_5u6hq_155{background-color:var(--ADateRangePicker_Cell_IsDisabled_color)}._Cell_5u6hq_135._IsHovered_5u6hq_158{background-color:var(--ADateRangePicker_Cell_IsHovered_background-color)}._Week_5u6hq_162{display:flex;flex-direction:row}._WeekDay_5u6hq_167{cursor:default}._ChoiceButton_5u6hq_171{flex:1;width:unset;min-width:unset;height:24px;border-radius:4px}._ChoiceButton_5u6hq_171+._ChoiceButton_5u6hq_171{margin-left:8px}._Paper_e69j5_1{position:fixed;top:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;background-color:var(--ADialog_Paper_background-color);transition:opacity var(--Transition),visibility var(--Transition)}._Card_e69j5_15{display:flex;flex-direction:column;min-width:400px;max-width:80%;max-height:80%;overflow:overlay;background-color:var(--ADialog_background-color);border:var(--ADialog_border);border-radius:4px}._Card_e69j5_15 ._Body_e69j5_26{box-sizing:border-box;display:flex;flex-grow:1;flex-direction:column;width:100%;padding:20px;overflow:overlay}._Card_e69j5_15 ._Body_e69j5_26 ._Title_e69j5_35{box-sizing:border-box;display:flex;flex-grow:0;width:100%;margin-bottom:12px}._Card_e69j5_15 ._Body_e69j5_26 ._Content_e69j5_42{overflow:overlay}._Card_e69j5_15 ._Action_e69j5_45{box-sizing:border-box;display:flex;flex-grow:1;align-items:center;justify-content:flex-end;width:100%;min-height:82px;max-height:82px;padding:25.5px 24px;overflow:hidden;background-color:var(--ADialog_Action_background-color)}._Card_e69j5_15 ._Action_e69j5_45 ._Button_e69j5_58{box-sizing:border-box;display:flex;flex:1;width:172px;max-width:172px;min-height:30px;padding:1px 6px}._AFileBox_1hlo1_1{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:300px;height:100px;padding:20px;cursor:default;background-color:var(--AFileBox_background-color);border:var(--AFileBox_border);border-radius:6px;transition:border var(--Transition),background-color var(--Transition)}._SelectedFile_1hlo1_16{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--AFileBox_SelectedFile_color);transition:all var(--Transition)}._Dropping_1hlo1_26{color:var(--AFileBox_Dropping_color);transition:all var(--Transition)}._AFileUploader_i2nun_1{position:relative;box-sizing:border-box;width:100%;padding:0;margin-top:8px;cursor:default;border:none;display:flex;flex-direction:row;gap:0;align-items:flex-start;justify-content:flex-start}._LabelContainer_i2nun_16{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;width:100%}._LabelButton_i2nun_25{height:1rem;text-decoration:underline;text-underline-offset:2px;cursor:pointer}._LabelButton_i2nun_25:hover:not(._Disabled_i2nun_31){color:var(--AFileUploader_brand_color)}._LabelButton_i2nun_25._Delete_i2nun_34:hover:not(._Disabled_i2nun_31){color:var(--AFileUploader_error_color)}._FileSize_i2nun_38{flex-shrink:0;margin-left:8px;color:var(--AFileUploader_text_color);white-space:nowrap}._TotalFileSize_i2nun_45{color:var(--AFileUploader_text_color)}._FileBox_i2nun_49{position:relative;box-sizing:border-box;width:180px;min-width:180px;height:40px;min-height:40px;padding:0;color:var(--AFileUploader_brand_color);background-color:var(--AFileUploader_background-color);border:1.5px dashed var(--AFileUploader_brand_color);border-radius:8px;display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;transition:border-color calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition))}._FileBox_i2nun_49._FileBoxFullSize_i2nun_68{top:0;right:0;bottom:0;left:0;width:100%;height:100%;transition:width calc(var(--Transition-Enabled) * var(--Transition)),height calc(var(--Transition-Enabled) * var(--Transition))}._SelectRenderer_i2nun_75{display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;z-index:1;flex-grow:1;height:100%;border-radius:8px}._ChipsContainer_i2nun_87{display:flex;flex-direction:row;gap:0;align-items:flex-start;justify-content:flex-start;flex-flow:row wrap;gap:8px;align-content:flex-start;width:100%;height:100%}._FileChip_i2nun_100{z-index:1;flex:0 1 auto;width:auto;min-width:180px;max-width:100%;height:40px;padding:6px 12px;background-color:var(--AFileUploader_background-color);border-radius:8px;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border-color calc(var(--Transition-Enabled) * var(--Transition)),color calc(var(--Transition-Enabled) * var(--Transition))}._FileChipContent_i2nun_113{display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start;width:100%;min-width:0;max-width:100%}._FileNameContainer_i2nun_124{flex:1;min-width:0;max-width:100%}._ButtonRenderer_i2nun_130{box-sizing:border-box;flex-shrink:0;margin-left:12px;display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center}._ErrorBorder_i2nun_141{border-color:var(--AFileUploader_error_color)}._ErrorColor_i2nun_145{color:var(--AFileUploader_error_color)}._ErrorCursor_i2nun_149{cursor:not-allowed}._Disabled_i2nun_31{color:var(--AFileUploader_text_color);cursor:not-allowed;border-color:var(--AFileUploader_disabled_color)}._DropIdle_i2nun_159{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:row;gap:0;align-items:center;justify-content:center;transition:color calc(var(--Transition-Enabled) * var(--Transition))}._AFloatMenu_xco8u_1{position:fixed;z-index:100;border:var(--AFloatMenu_border);border-radius:4px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;transition:opacity var(--Transition),visibility var(--Transition),border var(--Transition),background-color var(--Transition)}._Content_xco8u_10{display:flex;align-items:center;justify-content:center;min-height:34px;color:var(--AFloatMenu_color);background-color:var(--AFloatMenu_background-color)}._Content_xco8u_10:hover{background-color:var(--AFloatMenu_hover_background-color)}._Content_xco8u_10:nth-child(1){border-top-left-radius:4px;border-top-right-radius:4px}._Content_xco8u_10:nth-last-child(1){border-bottom-right-radius:4px;border-bottom-left-radius:4px}._AListView_1nv5l_1{box-sizing:border-box;display:flex;flex-grow:1;flex-direction:column;cursor:default;transition:border var(--Transition)}._Row_1nv5l_10{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;width:100%;transition:border var(--Transition)}._Label_1nv5l_19{box-sizing:border-box;display:flex;align-items:center;min-width:120px;max-width:120px;height:100%;transition:border var(--Transition)}._Content_1nv5l_29{box-sizing:border-box;display:flex;flex:1;align-items:center;min-height:100%;transition:border var(--Transition)}._ALoadingBorder_kwc1g_1{position:relative;width:100%;min-height:2px;max-height:2px;overflow:hidden;background-color:var(--ALoadingBorder_background-color)}._ALoadingBorder_kwc1g_1 ._ProgressBar_kwc1g_9{position:absolute;width:100%;height:100%;background-color:var(--ALoadingBorder_ProgressBar_background-color)}._ALoadingBorder_kwc1g_1 ._ProgressBar_kwc1g_9._IsLoading_kwc1g_15{width:0;animation:ease-in-out _load_kwc1g_1 3s infinite}._ALoadingBorder_kwc1g_1 ._Cover_kwc1g_19{position:absolute;width:100%;height:2px;background-color:var(--ALoadingBorder_Cover_background-color)}._ALoadingBorder_kwc1g_1 ._Cover_kwc1g_19._IsLoading_kwc1g_15{opacity:0}@keyframes _load_kwc1g_1{0%{left:0;width:100%}25%{left:100%;width:0;animation-timing-function:cubic-bezier(1,0,.6,1.5)}26%{left:0}50%{width:100%}75%{left:100%;width:0;animation-timing-function:cubic-bezier(1,0,.6,1.5)}76%{left:0}to{width:100%}}._Container_ez8dc_1{display:flex;flex-direction:row;align-items:center}._Option_ez8dc_7{flex-shrink:0}._Option_ez8dc_7+._Option_ez8dc_7{margin-left:10px}._RadioButton_ez8dc_14{box-sizing:border-box;display:flex;align-items:center;justify-content:center;margin-right:4px;border:var(--ARadioSelect_RadioButton_border);border-radius:50%;transition:border-color calc(var(--Transition-Enabled) * var(--Transition))}._RadioButton_ez8dc_14 ._InnerCircle_ez8dc_24{display:flex;border-radius:50%;transition:all var(--Transition)}._RadioButton_ez8dc_14 ._InnerCircle_ez8dc_24._isChecked_ez8dc_29{background-color:var(--ARadioSelect_RadioButton_InnerCircle_isChecked_background-color)}._AMultiSelect_19uuu_1{position:relative;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:200px;height:34px;overflow:hidden;cursor:pointer;border-radius:6px;transition:opacity var(--Transition),border var(--Transition)}._AMultiSelect_19uuu_1 ._Arrow_19uuu_15{position:relative;display:flex;align-items:center;justify-content:center;height:100%;pointer-events:none;transition:border var(--Transition)}._AMultiSelect_19uuu_1._Primary_19uuu_24{border:var(--AMultiSelect_Primary_border);transition:border var(--Transition)}._AMultiSelect_19uuu_1._Primary_19uuu_24 ._Arrow_19uuu_15{min-width:30px;max-width:50px;aspect-ratio:1/1;color:var(--AMultiSelect_Primary_Arrow_color);border-left:var(--AMultiSelect_Primary_border)}._AMultiSelect_19uuu_1._Primary_19uuu_24:hover:not(._UnAvailable_19uuu_35),._AMultiSelect_19uuu_1._Primary_19uuu_24._IsOpen_19uuu_35:not(._UnAvailable_19uuu_35){border:var(--AMultiSelect_Primary_hover_border)}._AMultiSelect_19uuu_1._Primary_19uuu_24:hover:not(._UnAvailable_19uuu_35) ._Arrow_19uuu_15,._AMultiSelect_19uuu_1._Primary_19uuu_24._IsOpen_19uuu_35:not(._UnAvailable_19uuu_35) ._Arrow_19uuu_15{border-left:var(--AMultiSelect_Primary_hover_border);transition:border-left var(--Transition)}._AMultiSelect_19uuu_1._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_background-color);border:var(--AMultiSelect_Secondary_border);transition:background-color var(--Transition)}._AMultiSelect_19uuu_1._Secondary_19uuu_42 ._Arrow_19uuu_15{color:var(--AMultiSelect_Secondary_Arrow_color);transition:color var(--Transition)}._AMultiSelect_19uuu_1._Secondary_19uuu_42:hover:not(._UnAvailable_19uuu_35),._AMultiSelect_19uuu_1._Secondary_19uuu_42._IsOpen_19uuu_35:not(._UnAvailable_19uuu_35){border:var(--AMultiSelect_Secondary_hover_border)}._AMultiSelect_19uuu_1._Secondary_19uuu_42:hover:not(._UnAvailable_19uuu_35) ._Arrow_19uuu_15,._AMultiSelect_19uuu_1._Secondary_19uuu_42._IsOpen_19uuu_35:not(._UnAvailable_19uuu_35) ._Arrow_19uuu_15{transition:color var(--Transition)}._Placeholder_19uuu_58{color:var(--AMultiSelect_Placeholder_color);transition:all var(--Transition)}._ValuesContainer_19uuu_63{display:flex;flex-grow:1;overflow:hidden;white-space:nowrap}._Values_19uuu_63{box-sizing:border-box;display:block;width:100%;height:100%;padding:8px 0 8px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._Options_19uuu_82{position:fixed;z-index:100;box-sizing:border-box;visibility:hidden;width:fit-content;overflow:overlay;cursor:pointer;border-radius:6px;box-shadow:#0003 0 5px 5px -3px,#00000024 0 8px 10px 1px,#0000001f 0 3px 14px 2px;opacity:0;transition:opacity var(--Transition),visibility var(--Transition),background-color var(--Transition),border var(--Transition)}._Options_19uuu_82._Primary_19uuu_24{background-color:var(--AMultiSelect_Primary_Options_background-color);border:var(--AMultiSelect_Primary_Options_border)}._Options_19uuu_82._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_Options_background-color);border:var(--AMultiSelect_Secondary_Options_border)}._Option_19uuu_82{display:flex;flex-grow:1;flex-direction:row;align-items:center;padding-left:12px;transition:background-color var(--Transition)}._Option_19uuu_82:hover._Primary_19uuu_24{background-color:var(--AMultiSelect_Primary_Option_hover_background-color)}._Option_19uuu_82:hover._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_Option_hover_background-color)}._Option_19uuu_82:active._Primary_19uuu_24{background-color:var(--AMultiSelect_Primary_Option_active_background-color)}._Option_19uuu_82:active._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_Option_active_background-color)}._Option_19uuu_82._Selected_19uuu_124._Primary_19uuu_24{background-color:var(--AMultiSelect_Primary_Option_Selected_background-color)}._Option_19uuu_82._Selected_19uuu_124._Secondary_19uuu_42{background-color:var(--AMultiSelect_Secondary_Option_Selected_background-color)}._CheckBox_19uuu_131{position:sticky;left:0;z-index:2;display:flex;flex-direction:row;align-items:center;min-height:100%;padding-right:12px;background-color:inherit}._Container_10ion_1{display:flex;flex-direction:column;align-items:center;width:100%;height:100%}._Steps_10ion_9{display:flex;flex-direction:row;align-items:center;width:50%;overflow:overlay}._Step_10ion_9{position:relative;display:flex;flex-grow:1;flex-direction:column;align-items:center;padding:10px}._OutCircle_10ion_26{display:flex;align-items:center;justify-content:center;min-width:34px;max-width:34px;min-height:34px;max-height:34px;background-color:var(--AStepper_OutCircle_background-color);border-radius:17px}._OutCircle_10ion_26._IsOver_10ion_37{background-color:var(--AStepper_OutCircle_IsOver_background-color)}._InCircle_10ion_41{min-width:22px;max-width:22px;min-height:22px;max-height:22px;background-color:var(--AStepper_InCircle_background-color);border-radius:22px;transition:background-color var(--Transition)}._InCircle_10ion_41._IsOver_10ion_37{background-color:var(--AStepper_InCircle_IsOver_background-color)}._Line_10ion_54{position:absolute;top:27px;display:flex;width:50%;height:1px;background-color:var(--AStepper_Line_background-color);transition:background-color var(--Transition)}._Line_10ion_54._IsOver_10ion_37{background-color:var(--AStepper_Line_IsOver_background-color)}._Line_10ion_54._Left_10ion_66{left:0}._Line_10ion_54._Right_10ion_69{right:0}._ContentContainer_10ion_73{display:flex;flex-grow:1;flex-direction:row;width:100%;overflow-x:hidden}._Content_10ion_73{display:flex;flex-grow:1;min-width:100%;transition:all var(--Transition);transition-timing-function:cubic-bezier(.075,.82,.165,1)}._ATab_9eg6z_1{position:relative;box-sizing:border-box;display:flex;flex-grow:1;flex-direction:row;overflow:hidden visible}._ATab_9eg6z_1 ._Addon_9eg6z_9{display:flex;align-items:center;min-height:100%}._ATab_9eg6z_1 ._Option_9eg6z_14{position:relative;z-index:2;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;justify-content:center;font-weight:400;color:var(--color, var(--label-normal));transition:color var(--Transition)}._ATab_9eg6z_1 ._Option_9eg6z_14._Underline_9eg6z_26._IsSelected_9eg6z_26{text-decoration-line:underline;text-decoration-thickness:auto;text-decoration-style:solid;text-underline-position:from-font;text-underline-offset:2px;text-decoration-skip-ink:auto}._ATab_9eg6z_1 ._Option_9eg6z_14._IsSelected_9eg6z_26{font-weight:700}._ATab_9eg6z_1 ._IndicatorTrack_9eg6z_37{position:absolute;bottom:0;box-sizing:border-box;display:flex;width:100%;border-bottom:var(--ATab_IndicatorTrack_Primary_border-bottom);transition:border var(--Transition)}._ATab_9eg6z_1 ._Indicator_9eg6z_37{position:absolute;bottom:0;height:4px;background-color:var(--color, var(--ATab_Indicator_Primary_background-color));transition:var(--Transition);transition-timing-function:cubic-bezier(.075,.82,.165,1)}._ATab_9eg6z_1._Primary_9eg6z_54 ._IndicatorTrack_9eg6z_37{min-width:100%}._ATab_9eg6z_1._Secondary_9eg6z_57 ._Option_9eg6z_14{border:var(--ATab_Option_Secondary_border);border-top-left-radius:4px;border-top-right-radius:4px;transition:border var(--Transition),color var(--Transition)}._ATab_9eg6z_1._Secondary_9eg6z_57 ._Option_9eg6z_14._IsDisabled_9eg6z_63{border:var(--ATab_Option_Secondary_IsDisabled_border)}._ATab_9eg6z_1._Secondary_9eg6z_57 ._Option_9eg6z_14._IsSelected_9eg6z_26{border-bottom:var(--ATab_Option_Secondary_IsSelected_border-bottom)}._ATab_9eg6z_1._Secondary_9eg6z_57 ._IndicatorTrack_9eg6z_37{min-width:100%;border-bottom:var(--ATab_Option_Secondary_border);transition:border-bottom var(--Transition)}._ATab_9eg6z_1._Secondary_9eg6z_57 ._Indicator_9eg6z_37{display:none}._ATab_9eg6z_1._Tertiary_9eg6z_77{overflow:hidden}._ATab_9eg6z_1._Tertiary_9eg6z_77 ._Option_9eg6z_14{color:var(--color, var(--ATab_Option_Tertiary_color));transition:color var(--Transition)}._ATab_9eg6z_1._Tertiary_9eg6z_77 ._Option_9eg6z_14._IsSelected_9eg6z_26{color:var(--color, var(--ATab_Option_Tertiary_IsSelected_color));transition:color var(--Transition)}._ATab_9eg6z_1._Tertiary_9eg6z_77 ._IndicatorTrack_9eg6z_37{box-sizing:border-box;background-color:var(--color, var(--ATab_IndicatorTrack_Tertiary_background-color));border-radius:8px;transition:background-color var(--Transition),border var(--Transition)}._ATab_9eg6z_1._Tertiary_9eg6z_77 ._Indicator_9eg6z_37{top:50%;z-index:1;background-color:var(--color, var(--ATab_Indicator_Tertiary_background-color));border-radius:6px;transition:background-color var(--Transition)}._ATab_9eg6z_1._Quaternary_9eg6z_101 ._Option_9eg6z_14{color:var(--color, var(--ATab_Option_Quaternary_color));transition:color var(--Transition)}._ATab_9eg6z_1._Quaternary_9eg6z_101 ._Option_9eg6z_14._IsSelected_9eg6z_26{color:var(--color, var(--ATab_Option_Quaternary_IsSelected_color));transition:color var(--Transition)}._ATab_9eg6z_1._Quaternary_9eg6z_101 ._IndicatorTrack_9eg6z_37,._ATab_9eg6z_1._Quaternary_9eg6z_101 ._Indicator_9eg6z_37{display:none}._ATable_12zow_1{display:flex;flex-grow:1;flex-direction:column;overflow:hidden auto}._BodyHeader_ys4y0_1{position:relative;flex-direction:column;width:100%;transition:border var(--Transition)}._BodyHeader_ys4y0_1 ._TRow_ys4y0_7{position:relative}._OverflowSpace_ys4y0_11{box-sizing:border-box;transition:background-color var(--Transition)}._BodyBody_ys4y0_16{position:relative;box-sizing:border-box;display:flex;flex-grow:1;flex-direction:column;width:100%;height:100%;overflow:hidden auto}._TRow_ys4y0_7{box-sizing:border-box;display:flex;flex-direction:row;border-bottom:var(--ATableBody_TRow_border-bottom);transition:border var(--Transition)}._IsSelected_ys4y0_35{background-color:var(--ATableBody_TRow_IsSelected_background-color)}._IsSelectable_ys4y0_39{cursor:pointer;transition:background-color var(--Transition)}._IsSelectable_ys4y0_39:hover{background-color:var(--ATableBody_TRow_IsSelectable_hover_background-color)}._IsRowMarked_ys4y0_47{color:var(--ATableBody_TD_IsMarked_color);background-color:var(--ATableBody_TD_IsMarked_background-color)}._TH_ys4y0_52{color:var(--ATableBody_TH_color);transition:color var(--Transition)}._TD_ys4y0_57._IsMarked_ys4y0_57,._IsMarked_ys4y0_57{background-color:var(--ATableBody_TD_IsMarked_background-color)}._TD_ys4y0_57,._TH_ys4y0_52{position:relative;box-sizing:border-box;display:flex;flex-grow:1;align-items:center;justify-content:flex-start;overflow:hidden}._Resizer_ys4y0_76{z-index:1;box-sizing:border-box;display:flex;flex-direction:row;min-width:11px;max-width:11px;min-height:100%;margin-right:-5.5px;margin-left:-5.5px;transition:all var(--Transition)}._Resizer_ys4y0_76:hover:not(._IsMoving_ys4y0_88){cursor:not-allowed}._Resizer_ys4y0_76:hover:not(._IsMoving_ys4y0_88)._IsResizable_ys4y0_91{cursor:col-resize}._Resizer_ys4y0_76:hover:not(._IsMoving_ys4y0_88) ._ResizerCenter_ys4y0_94{background-color:var(--ATableBody_Resizer_hover_ResizerCenter_background-color)}._Resizer_ys4y0_76._IsResizable_ys4y0_91:active ._ResizerCenter_ys4y0_94{background-color:var(--ATableBody_Resizer_active_ResizerCenter_background-color)}._Resizer_ys4y0_76._IsResizable_ys4y0_91:active ._ResizerOut_ys4y0_100{background-color:var(--ATableBody_Resizer_active_ResizerOut_background-color);opacity:.125}._Resizer_ys4y0_76._IsResizable_ys4y0_91:active ._ResizerIn_ys4y0_104{background-color:var(--ATableBody_Resizer_active_ResizerIn_background-color);opacity:.25}._Resizer_ys4y0_76._IsMoving_ys4y0_88{cursor:col-resize}._ResizerOut_ys4y0_100,._ResizerIn_ys4y0_104{display:flex;justify-content:center;min-width:1px;max-width:1px;height:100%;transition:all var(--Transition)}._ResizerCenter_ys4y0_94{display:flex;justify-content:center;min-width:1px;max-width:1px;height:100%;transition:background-color var(--Transition)}._IsClicked_ys4y0_139,._IsClicked_ys4y0_139 *{transition:width 0s,background-color var(--Transition),height .1s}._NoItems_ys4y0_146{display:flex;flex-grow:1;justify-content:center}._Content_ys4y0_152{padding:4px 8px}._ATableFooter_w090q_1{display:flex;justify-content:center;min-width:100%;height:32px;max-height:32px;margin-top:8px}._Button_w090q_10{display:flex;flex-direction:row;align-items:center;justify-content:center;width:24px;min-width:24px;max-width:24px;height:24px;min-height:24px;max-height:24px;overflow:hidden;cursor:pointer;border-radius:4px;transition:all var(--Transition)}._Button_w090q_10._IsSelected_w090q_26{color:var(--ATableFooter_Button_IsSelected_color);cursor:default;background-color:var(--ATableFooter_Button_IsSelected_background-color)}._Button_w090q_10._IsDisabled_w090q_31{color:var(--ATableFooter_Button_IsDisabled_color);cursor:default}._Button_w090q_10+._Button_w090q_10{margin-left:8px}._Filter_1b9j0_1{position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;width:100%;transition:padding var(--Transition)}._SelectFilter_1b9j0_11{margin-right:8px}._MainFilter_1b9j0_15{position:relative;z-index:1;box-sizing:border-box;display:flex;align-items:center;width:100%;margin-top:8px;transition:var(--Transition) width}._IsOpen_1b9j0_26{width:calc(100% - 18px)}._SubFilters_1b9j0_30{position:absolute;top:0;z-index:0;box-sizing:border-box;width:100%;padding:48px 8px 8px;background-color:var(--ATableFilter_SubFilters_background-color);border:var(--ATableFilter_SubFilters_border);border-radius:6px;transition:all var(--Transition)}._Input_1b9j0_44{width:100%}._Main_1b9j0_15{min-height:34px;max-height:34px}._Sub_1b9j0_30,._Sub_1b9j0_30 input{min-height:32px;max-height:32px}._Actions_1b9j0_62{flex-grow:1;justify-content:space-between}._Icon_1b9j0_67{overflow:hidden;color:var(--ATableFilter_Icon_color);cursor:pointer;transition:all var(--Transition)}._LeftIcon_1b9j0_74{overflow:hidden;transition:all var(--Transition)}._CircleAlertOutline_1b9j0_79{margin-right:6px;overflow:hidden;color:var(--ATableFilter_Alert_color);cursor:default;transition:all var(--Transition)}._Rotate_1b9j0_87{animation:_rotate_1b9j0_1 var(--Transition) ease-in-out}@keyframes _rotate_1b9j0_1{0%{transform:rotate(0)}to{transform:rotate(-180deg)}}._ATableHeader_1hzfz_1{display:flex;flex-direction:row;align-items:center;max-width:100%;margin-bottom:8px;overflow:visible;white-space:nowrap}._LeftHeaderContent_1hzfz_11{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;height:100%}._RightHeaderContent_1hzfz_19{display:flex;align-items:flex-end;justify-content:flex-end;width:100%;height:100%}._TopRightAddon_1hzfz_27{margin-left:8px;white-space:nowrap}._HItem_1hzfz_32{display:flex}._HItem_1hzfz_32+._HItem_1hzfz_32{align-items:center;min-height:34px;margin-right:8px}._HItem_1hzfz_32:first-child{align-items:center;min-height:34px;margin-right:8px}._AText_1asz6_1{flex-shrink:0;overflow:hidden;text-overflow:ellipsis}textarea{font-family:Pretendard,sans-serif;font-size:1rem;font-weight:400}._Base_cpm4t_7{border-radius:6px}._ATextArea_cpm4t_11{z-index:1;box-sizing:border-box;display:flex;flex-grow:1;padding:8px 12px;overflow:overlay;word-break:none;white-space:nowrap;resize:none;border:none;border-radius:inherit;transition:all var(--Transition)}._ATextArea_cpm4t_11:focus{outline:none}._ATextArea_cpm4t_11::placeholder{opacity:.6;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}._Primary_cpm4t_34{color:var(--ATextArea_Primary_color);background-color:var(--ATextArea_Primary_background-color);border:var(--ATextArea_Primary_border)}._Primary_cpm4t_34:hover:not(._UnAvailable_cpm4t_39){border:var(--ATextArea_Primary_hover_border)}._Primary_cpm4t_34:focus:not(._UnAvailable_cpm4t_39){background-color:var(--ATextArea_Primary_focus_background-color);border:var(--ATextArea_Primary_focus_border)}._Secondary_cpm4t_47{color:var(--ATextArea_Secondary_color);background-color:var(--ATextArea_Secondary_background-color);border:var(--ATextArea_Secondary_border)}._Secondary_cpm4t_47:hover:not(._UnAvailable_cpm4t_39){border:var(--ATextArea_Secondary_hover_border)}._Secondary_cpm4t_47:focus:not(._UnAvailable_cpm4t_39){border:var(--ATextArea_Secondary_focus_border)}._ReadOnly_cpm4t_59{color:var(--ATextArea_ReadOnly_color);cursor:not-allowed;background-color:var(--ATextArea_ReadOnly_background-color);border:var(--ATextArea_ReadOnly_border)}._Error_cpm4t_66{color:var(--ATextArea_Error_color);background-color:var(--ATextArea_Error_background-color);border:var(--ATextArea_Error_border)}._Error_cpm4t_66::placeholder{color:var(--ATextArea_Error_placeholder_color)}.ql-toolbar .ql-picker:not(.ql-color-picker):not(.ql-icon-picker).ql-table-up{width:28px}.ql-toolbar .ql-picker:not(.ql-color-picker):not(.ql-icon-picker).ql-table-up .ql-picker-label{padding:2px 4px}.ql-toolbar .ql-picker:not(.ql-color-picker):not(.ql-icon-picker).ql-table-up .ql-picker-label svg{position:static;margin-top:0}.ql-toolbar .ql-picker.ql-expanded .ql-picker-options{z-index:1}.ql-editor .ql-table{display:table;border-collapse:collapse;table-layout:fixed;width:auto}.ql-editor .ql-table[data-full]{width:100%}.ql-editor .ql-table-wrapper{width:100%;overflow:auto;scrollbar-width:none}.ql-editor .ql-table-caption{position:relative;word-break:break-word;outline:0}.ql-editor .ql-table-caption .ql-table-caption--switch{display:flex;align-items:center;justify-content:center;padding:2px;border-radius:4px;border:1px solid #0003;font-size:12px;cursor:pointer;background-color:#fff}.ql-editor .ql-table-caption .ql-table-caption--switch:hover{background-color:#eee}.ql-editor .ql-table-cell{padding:8px 12px;border-color:transparent;font-size:14px;outline:0;overflow:auto}.ql-editor .ql-table-cell-inner{display:inline-block;min-width:100%;word-break:break-word;outline:0;counter-reset:list-0}.ql-editor .ql-table col{border-collapse:separate;text-indent:initial;display:table-column;table-layout:fixed}.ql-editor .ql-table tr+tr td,.ql-editor .ql-table tr+tr th{border-top:none}.ql-editor .ql-table td,.ql-editor .ql-table th{border:1px solid #a1a1aa}.ql-editor .ql-table td+td,.ql-editor .ql-table td+th,.ql-editor .ql-table th+td,.ql-editor .ql-table th+th{border-left:none}.table-up-toolbox{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none}.table-up-toolbox *{pointer-events:all}.table-up-tooltip{position:absolute;z-index:20;padding:.25rem .75rem;border-radius:.25rem;font-size:.75rem;color:#fff;white-space:nowrap;background-color:#303133;transition:opacity .15s linear}.table-up-tooltip.transparent{opacity:0}.table-up-tooltip.hidden{display:none}.table-up-button{--table-btn-color:#606266;--table-btn-bg-hover:#f3f4f6;--table-btn-color-border:#dcdfe6;--table-btn-border:.0625rem solid var(--table-btn-color-border);--table-btn-confirm-color-border:#409eff;--table-btn-confirm-bg:#409eff;--table-btn-confirm-hover:#79bbff;--table-btn-confirm-outline-focus-visible:.125rem solid #a0cfff;box-sizing:border-box;display:inline-flex;height:2rem;line-height:1;margin:0;padding:.5rem 1rem;border-radius:.25rem;border:var(--table-btn-border);color:var(--table-btn-color);background-color:transparent;font-size:.875rem;cursor:pointer}.table-up-button+.table-up-button{margin-left:.375rem}.table-up-button:hover{background-color:var(--table-btn-bg-hover)}.table-up-button.confirm{border-color:var(--table-btn-confirm-color-border);background-color:var(--table-btn-confirm-bg);color:#fff}.table-up-button.confirm:hover{border-color:var(--table-btn-confirm-hover);background-color:var(--table-btn-confirm-hover)}.table-up-button.confirm:focus-visible{outline:var(--table-btn-confirm-outline-focus-visible);outline-offset:.0625rem}.table-up-dialog{--dialog-bg:rgba(0, 0, 0, .5);--dialog-color-border:#ebeef5;--dialog-color-boxshadow:rgba(0, 0, 0, .12);--dialog-border:.0625rem solid var(--dialog-color-border);--dialog-boxshadow:0 0 .75rem var(--dialog-color-boxshadow);position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--dialog-bg);overflow:auto}.table-up-dialog__overlay{position:fixed;top:0;right:0;bottom:0;left:0;padding:1rem;overflow:auto;text-align:center}.table-up-dialog__overlay:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.table-up-dialog__content{display:inline-block;max-width:50vw;width:100%;vertical-align:middle;background-color:#fff;border-radius:.25rem;border:var(--dialog-border);font-size:1.125rem;box-shadow:var(--dialog-boxshadow);text-align:left;overflow:hidden;box-sizing:border-box}.table-up-color-picker{--color-picker-bg-color:#ffffff;box-sizing:border-box;display:inline-flex;flex-direction:column;width:16.75rem;padding:.5rem;border-radius:.375rem;background:var(--color-picker-bg-color);box-shadow:0 0 .375rem #b2b5b8}.table-up-color-picker__content{box-sizing:border-box;width:100%;height:11.75rem;padding-top:.5rem}.table-up-color-picker__selector{width:14.375rem;height:9.375rem;position:absolute}.table-up-color-picker__background{width:100%;height:100%;background:linear-gradient(to top,#000 0,#0000),linear-gradient(to right,#fff 0,#fff0)}.table-up-color-picker__background-handle{box-sizing:border-box;position:absolute;border:.0625rem solid #fff;cursor:pointer;top:0;left:14.375rem;border-radius:100%;width:.625rem;height:.625rem;transform:translate(-.3125rem,-.3125rem)}.table-up-color-picker__hue{width:.75rem;height:9.375rem;margin-left:15rem;position:absolute;background:linear-gradient(0deg,red 0,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.table-up-color-picker__hue-handle{box-sizing:border-box;position:absolute;border:.0625rem solid #fff;cursor:pointer;background-color:#fff;box-shadow:0 0 .125rem #0009;left:0;width:1rem;height:.625rem;transform:translate(-.125rem,-.3125rem)}.table-up-color-picker__alpha{width:14.375rem;height:.75rem;position:absolute;margin-top:10rem;background:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(135deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(135deg,transparent 75%,#ccc 75%);background-size:.75rem .75rem;background-position:0 0,.375rem 0,.375rem -.375rem,0 .375rem}.table-up-color-picker__alpha-bg{position:relative;height:100%;background:linear-gradient(to right,#fff0 0,#fff)}.table-up-color-picker__alpha-handle{box-sizing:border-box;position:absolute;border:.0625rem solid #fff;cursor:pointer;background-color:#fff;box-shadow:0 0 .125rem #0009;top:0;width:.625rem;height:1rem;transform:translate(-.3125rem,-.125rem)}.table-up-color-picker__action{box-sizing:border-box;display:flex;align-items:center;gap:.375rem;width:100%;padding-top:.5rem;border-top:.0625rem solid #e9ecef}.table-up-color-picker__action-item{flex:1;display:inline-flex;align-items:center;font-size:.75rem}.table-up-color-picker__input{box-sizing:border-box;width:100%;height:1.375rem;margin-left:.125rem;padding:.125rem 0 .125rem .25rem;background-color:#fff;border:.0625rem solid #ced4da;border-radius:.25rem;outline:0;color:#405057}.table-up-tooltip .table-up-color-picker{--color-picker-bg-color:transparent;box-shadow:none;width:15.75rem;padding:.5rem 0}.ql-container .table-up-selection{--select-color:#0589f340;display:none;position:absolute;overflow:hidden;pointer-events:none}.ql-container .table-up-selection__line{position:absolute;background-color:var(--select-color);pointer-events:none}.table-up-resize-line__col,.table-up-resize-line__row{position:absolute;z-index:0}.table-up-resize-line__col.is-hidden,.table-up-resize-line__row.is-hidden{display:none}.table-up-resize-line__col:after,.table-up-resize-line__col:before,.table-up-resize-line__row:after,.table-up-resize-line__row:before{content:"";display:block;position:absolute;top:0;z-index:1}.table-up-resize-line__row{height:.0625rem;cursor:ns-resize}.table-up-resize-line__row:after,.table-up-resize-line__row:before{width:100%;height:.5rem}.table-up-resize-line__row:before{transform:translateY(-.5rem)}.table-up-resize-line__col{width:.0625rem;cursor:ew-resize}.table-up-resize-line__col:after,.table-up-resize-line__col:before{height:100%;width:.5rem}.table-up-resize-line__col:before{transform:translate(-.5rem)}.table-up-resize-box{position:absolute;z-index:0}.table-up-resize-box.is-hidden{display:none}.table-up-resize-box.is-caption-bottom .table-up-resize-box__corner{border-top-width:0;border-bottom-width:.0625rem;border-top-left-radius:0;border-bottom-left-radius:50%}.table-up-resize-box.is-align-right .table-up-resize-box__col-separator{left:-.125rem}.table-up-resize-box.is-align-right .table-up-resize-box__corner{border-left-width:0;border-right-width:.0625rem;border-top-left-radius:0;border-top-right-radius:50%}.table-up-resize-box.is-align-right.is-caption-bottom .table-up-resize-box__corner{border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:50%}.table-up-resize-box__col,.table-up-resize-box__row{position:absolute;top:0;left:0;overflow:hidden}.table-up-resize-box__col-wrapper,.table-up-resize-box__row-wrapper{display:flex}.table-up-resize-box__col-header,.table-up-resize-box__row-header{position:relative;flex-shrink:0;background-color:#f3f4f5;border:.0625rem solid #ccc}.table-up-resize-box__col-wrapper{height:100%}.table-up-resize-box__col-header{height:100%;cursor:pointer;border-right-color:transparent}.table-up-resize-box__col-header:last-child{border-right-color:#ccc}.table-up-resize-box__col-separator{position:absolute;top:0;bottom:0;right:-.125rem;width:.125rem;cursor:ew-resize;z-index:0}.table-up-resize-box__col-separator:after{right:-.375rem}.table-up-resize-box__col-separator:before{left:-.375rem}.table-up-resize-box__col-separator:after,.table-up-resize-box__col-separator:before{content:"";position:absolute;top:0;display:block;width:.5rem;height:100%;z-index:1}.table-up-resize-box__row-wrapper{flex-direction:column;width:100%}.table-up-resize-box__row-header{width:100%;cursor:pointer;border-bottom-color:transparent}.table-up-resize-box__row-header:last-child{border-bottom-color:#ccc}.table-up-resize-box__row-separator{position:absolute;left:0;right:0;bottom:-.125rem;height:.125rem;cursor:ns-resize;z-index:0}.table-up-resize-box__row-separator:after{bottom:-.375rem}.table-up-resize-box__row-separator:before{top:-.375rem}.table-up-resize-box__row-separator:after,.table-up-resize-box__row-separator:before{content:"";position:absolute;left:0;display:block;width:100%;height:.5rem;z-index:1}.table-up-resize-box__corner{position:absolute;top:0;left:0;background-color:#f3f4f5;border:.0625rem solid #ccc;border-right-width:0;border-bottom-width:0;border-top-left-radius:50%;cursor:pointer}.table-up-drag-line{position:fixed;z-index:0;background-color:#409eff}.table-up-drag-line.is-col{width:.125rem;cursor:ew-resize}.table-up-drag-line.is-row{height:.125rem;cursor:ns-resize}.table-up-scale{position:absolute;top:0;left:0;overflow:hidden;pointer-events:none}.table-up-scale__block{position:absolute;top:0;left:0;transform:translate(-100%,-100%);width:.75rem;height:.75rem;background-color:#f1f5f9;border:.0625rem solid grey;cursor:nwse-resize;pointer-events:all}.table-up-scale.is-align-right .table-up-scale__block{cursor:nesw-resize}.table-up-scale.is-hidden{display:none}.table-up-scrollbar{position:absolute;z-index:1;transition:opacity .15s linear}.table-up-scrollbar__container{position:relative}.table-up-scrollbar.is-transparent{opacity:0}.table-up-scrollbar.is-vertical{top:.125rem;bottom:.125rem;left:-.5rem;width:.375rem}.table-up-scrollbar.is-vertical .table-up-scrollbar__thumb{width:100%}.table-up-scrollbar.is-horizontal{bottom:.125rem;left:.125rem;right:.125rem;height:.375rem}.table-up-scrollbar.is-horizontal .table-up-scrollbar__thumb{height:100%}.table-up-scrollbar__thumb{border-radius:.3125rem;background-color:#d2d2d2;cursor:pointer}.table-up-scrollbar__thumb:hover{background-color:#a1a1aa}.table-up-scrollbar--origin.ql-container .ql-table-wrapper{scrollbar-width:inherit}.table-up-align,.table-up-menu{position:absolute;z-index:1;display:none;align-items:center;padding:.25rem;border-radius:.375rem;box-shadow:0 0 .5rem #00000080;background-color:#fff;font-size:.875rem}.table-up-align__item,.table-up-menu__item{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:.25rem;border-radius:.25rem;cursor:pointer}.table-up-align__item:hover,.table-up-menu__item:hover{background-color:#eee}.table-up-align__item.is-break,.table-up-menu__item.is-break{align-self:stretch;width:.0625rem;padding:0;margin:.125rem .25rem;background-color:#a3a3a3;cursor:default}.table-up-align .icon,.table-up-menu .icon{display:flex;flex-shrink:0;font-size:1.25rem}.table-up-align span,.table-up-menu span{text-wrap:nowrap}.table-up-menu.is-contextmenu{flex-direction:column;padding:.25rem .5rem;max-height:21.875rem;overflow-y:auto;overflow-x:hidden}.table-up-menu.is-contextmenu .table-up-menu__item{display:flex;justify-content:flex-start;width:100%;gap:.25rem;cursor:pointer}.table-up-menu.is-contextmenu .is-break{width:100%;height:.0625rem;flex-shrink:0;margin:.25rem 0;background-color:#a3a3a3}.table-up-align--active{display:flex}.table-up-align .icon{width:1.25rem;height:1.25rem}.table-up-color-map{display:flex;flex-direction:column}.table-up-color-map--used{display:flex;align-items:center;justify-content:center;flex-direction:row-reverse;margin-top:.25rem;padding-top:.25rem;border-top:.0625rem solid #ccc}.table-up-color-map__content{display:flex;flex-direction:column}.table-up-color-map__content-row{display:flex;align-items:center;justify-content:center;gap:.25rem}.table-up-color-map__item{width:.875rem;height:.875rem;margin:.125rem;border:.0625rem solid #a3a3a3;cursor:pointer}.table-up-color-map__btn{display:flex;align-items:center;justify-content:center;flex:1;height:1.25rem;padding:0 .375rem;color:#303133;background-color:#fff;cursor:pointer}.table-up-color-map__btn:hover{background-color:#edeeef}.table-up-input__item{--input-height:2rem;--input-inner-height:calc(var(--input-height) - .125rem);--input-color-text:#606266;--input-color-boxshaow:#dcdfe6;--input-color-focus:#409eff;--input-color-error:#f56c6c;--input-boxshaow:0 0 0 .0625rem var(--input-color-boxshaow) inset;--input-boxshaow-focus:0 0 0 .0625rem var(--input-color-focus) inset;--input-boxshaow-error:0 0 0 .0625rem var(--input-color-error) inset;display:flex;align-items:center}.table-up-input__item+.table-up-input__item{margin-top:1.125rem}.table-up-input__label{width:5rem;flex-shrink:0}.table-up-input__input{box-sizing:border-box;position:relative;display:flex;flex-wrap:wrap;width:100%;height:var(--input-height);line-height:var(--input-height);padding:.0625rem .5rem;border-radius:.25rem;box-shadow:var(--input-boxshaow);transition:box-shadow .2s linear}.table-up-input__input.focus{box-shadow:var(--input-boxshaow-focus)}.table-up-input__input input{width:100%;height:var(--input-inner-height);line-height:var(--input-inner-height);flex-grow:1;font-size:.875rem;color:var(--input-color-text);outline:0;border:0;padding:0}.table-up-input__input.error{box-shadow:var(--input-boxshaow-error)}.table-up-input__error-tip{position:absolute;top:100%;left:0;font-size:.75rem;color:var(--input-color-error);line-height:1rem}.ql-snow .table-up-select-box{--select-box-color-bg-hover:#f5f5f5;--select-box-color-bg-active:#e0f2fe;--select-box-custom-color-text:#0d0d0d;--select-box-custom-color-bg:transparent;--select-box-custom-color-bg-hover:#ebebeb}.table-up-select-box{--select-box-color-border:#e5e7eb;--select-box-border:.0625rem solid var(--select-box-color-border);--select-box-color-active:#0ea5e9;--select-box-color-bg-hover:#f5f5f5;--select-box-color-bg-active:transparent;--select-box-custom-color-text:#f5f5f5;--select-box-custom-color-bg:transparent;--select-box-custom-color-bg-hover:#2c2c2c}.table-up-select-box__block{display:flex;width:10rem;flex-wrap:wrap;align-items:center;justify-content:center}.table-up-select-box__item{margin:.125rem;height:1rem;width:1rem;border:var(--select-box-border)}.table-up-select-box__item.active{border-color:var(--select-box-color-active);background-color:var(--select-box-color-bg-active)}.table-up-select-box__custom{padding:.5rem;color:var(--select-box-custom-color-text);background-color:var(--select-box-custom-color-bg);font-size:1rem;text-align:center;cursor:pointer}.table-up-select-box__custom:hover{background-color:var(--select-box-custom-color-bg-hover)}.table-up-creator{padding:1.5rem}.table-up-creator__input{display:flex;flex-direction:column;width:100%}.table-up-creator__control{margin-top:1rem;text-align:right}.table-up-creator__checkbox{--check-color:#212121;--checked-color:#506eec;display:flex;align-items:center;margin-top:.25rem;cursor:pointer;font-size:.75rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.table-up-creator__checkbox input{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:1.125rem;height:1.125rem;border:.0625rem solid var(--check-color);border-radius:.3125rem;background-color:transparent;display:inline-block;position:relative;margin-right:.625rem;cursor:pointer}.table-up-creator__checkbox input:before{content:"";background-color:var(--checked-color);display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);width:.625rem;height:.625rem;border-radius:.1875rem;transition:all .2s ease-in-out}.table-up-creator__checkbox input:checked:before{transform:translate(-50%,-50%) scale(1)}._AEditorWrapper_gy9qb_1{display:flex;flex:1 1 auto;overflow:auto}._AEditorContainer_gy9qb_7{position:relative;box-sizing:border-box;display:flex;width:100%;overflow:hidden}._AEditorContainer_gy9qb_7 ._AEditor_gy9qb_1{display:flex;flex-grow:1;flex-direction:column;overflow:auto}._AEditorContainer_gy9qb_7 ._AEditor_gy9qb_1.Title .ql-editor p{line-height:1.2rem}._Primary_gy9qb_24 .ql-toolbar.ql-snow{border:var(--AEditor_Primary_border);border-bottom:none}._Primary_gy9qb_24 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:hover{border:var(--AEditor_Primary_hover_border)}._Primary_gy9qb_24 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:focus-within{border:var(--AEditor_Primary_focus_border)}._Primary_gy9qb_24 .ql-container.ql-snow{border:var(--AEditor_Primary_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._Primary_gy9qb_24 .ql-container.ql-snow:not(.UnAvailable):hover{border:var(--AEditor_Primary_hover_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._Primary_gy9qb_24 .ql-container.ql-snow:not(.UnAvailable):focus-within{border:var(--AEditor_Primary_focus_border)}._Primary_gy9qb_24 .ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:var(--AEditor_Primary_border)}._Primary_gy9qb_24 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:hover){border:var(--AEditor_Primary_hover_border);border-bottom:none}._Primary_gy9qb_24 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:focus-within){border:var(--AEditor_Primary_focus_border);border-bottom:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow{display:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow{border:var(--AEditor_ReadOnly_border);border-bottom:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:hover{border:var(--AEditor_ReadOnly_hover_border)}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:focus-within{border:var(--AEditor_ReadOnly_focus_border)}._ReadOnly_gy9qb_54 .ql-container.ql-snow{border:var(--AEditor_ReadOnly_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._ReadOnly_gy9qb_54 .ql-container.ql-snow:not(.UnAvailable):hover{border:var(--AEditor_ReadOnly_hover_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._ReadOnly_gy9qb_54 .ql-container.ql-snow:not(.UnAvailable):focus-within{border:var(--AEditor_ReadOnly_focus_border)}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:var(--AEditor_ReadOnly_border)}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:hover){border:var(--AEditor_ReadOnly_hover_border);border-bottom:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:focus-within){border:var(--AEditor_ReadOnly_focus_border);border-bottom:none}._ReadOnly_gy9qb_54 .ql-toolbar.ql-snow+.ql-container.ql-snow{border-radius:var(--AEditor_border-radius)!important}._Error_gy9qb_91{color:var(--AEditor_Error_color)}._Error_gy9qb_91 .ql-toolbar.ql-snow{border:var(--AEditor_Error_border);border-bottom:none}._Error_gy9qb_91 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:hover{border:var(--AEditor_Error_hover_border)}._Error_gy9qb_91 .ql-toolbar.ql-snow:not(.UnAvailable)+.ql-container.ql-snow:focus-within{border:var(--AEditor_Error_focus_border)}._Error_gy9qb_91 .ql-container.ql-snow{border:var(--AEditor_Error_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._Error_gy9qb_91 .ql-container.ql-snow:not(.UnAvailable):hover{border:var(--AEditor_Error_hover_border)}._ql-toolbar_gy9qb_24._ql-snow_gy9qb_24+._Error_gy9qb_91 .ql-container.ql-snow:not(.UnAvailable):focus-within{border:var(--AEditor_Error_focus_border)}._Error_gy9qb_91 .ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:var(--AEditor_Error_border)}._Error_gy9qb_91 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:hover){border:var(--AEditor_Error_hover_border);border-bottom:none}._Error_gy9qb_91 .ql-toolbar.ql-snow:has(+.ql-container.ql-snow:focus-within){border:var(--AEditor_Error_focus_border);border-bottom:none}._Error_gy9qb_91{transition:color calc(var(--Transition-Enabled) * var(--Transition))}._Raw_gy9qb_128 *{transition:none}._Raw_gy9qb_128 .ql-toolbar.ql-snow{display:none}._Raw_gy9qb_128 .ql-container.ql-snow{border:none}._Raw_gy9qb_128 .ql-toolbar.ql-snow+.ql-container.ql-snow{border:none;border-radius:0}._Raw_gy9qb_128 .ql-snow .ql-editor{padding:0}._LimitContainer_gy9qb_145{flex-direction:column;justify-content:center;overflow:hidden}._LimitContainer_gy9qb_145 ._Limit_gy9qb_145,._LimitContainer_gy9qb_145 ._Error_gy9qb_91{transition:color calc(var(--Transition-Enabled) * var(--Transition))}._LimitContainer_gy9qb_145 ._Limit_gy9qb_145{color:var(--AEditor_Addon_Secondary_color)}._LimitContainer_gy9qb_145 ._Error_gy9qb_91{color:var(--AEditor_Error_color)}._Limit_gy9qb_145{color:var(--AEditor_Addon_Secondary_color)}._Limit_gy9qb_145 ._Error_gy9qb_91{color:var(--AEditor_Error_color)}._Indicator_gy9qb_168{position:absolute;right:8px;z-index:1;align-items:center;transform:translateY(-1px)}._Resizer_gy9qb_176{position:absolute;right:1px;left:1px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:auto;margin:0;cursor:row-resize;border-radius:0 0 var(--AEditor_border-radius) var(--AEditor_border-radius);opacity:.75;transition:background-color calc(var(--Transition-Enabled) * var(--Transition));transform:translateY(-1px);-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}._Resizer_gy9qb_176:before{width:40px;height:4px;content:"";background-color:var(--AEditor_Addon_Secondary_color);border-radius:2px;transition:width calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition))}._Resizer_gy9qb_176:hover,._Resizer_gy9qb_176:active{background-color:var(--AEditor_Addon_hover_background-color)}._Resizer_gy9qb_176:hover:before,._Resizer_gy9qb_176:active:before{width:50px}._ql-image-resizer-overlay_gy9qb_209{position:absolute;box-sizing:border-box;cursor:pointer;border:1px dashed var(--AEditor_Addon_Primary_color);transition:border calc(var(--Transition-Enabled) * var(--Transition))}._ql-image-resizer-handle_gy9qb_216{position:absolute;box-sizing:border-box;width:12px;height:12px;background-color:var(--static-white);border:1px solid var(--AEditor_Addon_Primary_color);opacity:.8;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}._ql-image-resizer-display_gy9qb_226{position:absolute;right:0;bottom:-25px;z-index:1;padding:2px 6px;color:var(--static-white);pointer-events:none;background-color:#000000bf;border-radius:3px}._ql-image-resizer-toolbar_gy9qb_237{position:absolute;top:-12px;right:0;left:0;box-sizing:border-box;text-align:center}._ql-image-resizer-toolbar-button_gy9qb_245{display:inline-block;width:24px;height:24px;padding:2px;vertical-align:middle;cursor:pointer;background:var(--elevation-0);border:1px solid var(--AEditor_Addon_Primary_color);border-right:none;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}._ql-image-resizer-toolbar-button_gy9qb_245:first-child{border-radius:var(--AEditor_border-radius) 0 0 var(--AEditor_border-radius)}._ql-image-resizer-toolbar-button_gy9qb_245:last-child{border-right:1px solid var(--AEditor_Addon_Primary_color);border-radius:0 var(--AEditor_border-radius) var(--AEditor_border-radius) 0}._ql-image-resizer-toolbar-button_gy9qb_245 svg{display:inline-block;width:100%;height:100%;fill:var(--AEditor_Addon_Primary_color);stroke:var(--AEditor_Addon_Primary_color);stroke-width:1}.ql-container{position:relative;height:var(--content-height);max-height:var(--content-max-height);margin:0;overflow:hidden;border-radius:0 0 var(--AEditor_border-radius) var(--AEditor_border-radius);transition:color calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition)),border-color calc(var(--Transition-Enabled) * var(--Transition))}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container .table-up-toolbox .table-up-menu{background-color:var(--elevation-0);border:1px solid var(--AEditor_Addon_Secondary_color);transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}.ql-container .table-up-toolbox .table-up-menu__item:hover{background-color:var(--AEditor_Addon_hover_background-color)}.ql-snow{color:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-stroke,.ql-snow .ql-stroke-miter{stroke:var(--AEditor_Addon_Primary_color)}.ql-snow{box-sizing:border-box;font-family:pretendard,sans-serif}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-stroke{fill:none;stroke:var(--AEditor_Addon_Primary_color);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-thick,.ql-snow .ql-stroke.ql-thick{stroke-width:2}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-formats{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ql-snow .ql-formats:after{clear:both;display:table;content:none}.ql-snow .ql-tooltip{position:absolute;left:20px!important;z-index:10;padding:4px 12px;color:var(--AEditor_Addon_Primary_color);white-space:nowrap;background-color:var(--AEditor_Addon_Primary_background-color);border:1px solid var(--AEditor_Addon_Primary_color);border-radius:var(--AEditor_border-radius);box-shadow:none;transform:translateY(10px)}.ql-snow .ql-tooltip a{line-height:26px;text-decoration:none;cursor:pointer}.ql-snow .ql-tooltip a.ql-action:after{padding-right:8px;margin-left:8px;content:var(--edit-text);border-right:1px solid var(--AEditor_Addon_Primary_color)}.ql-snow .ql-tooltip a.ql-remove:before{margin-left:8px;content:var(--remove-text)}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-tooltip:before{margin-right:8px;line-height:26px;content:var(--visit-url-text)}.ql-snow .ql-tooltip input[type=text]{display:none;width:300px;height:26px;padding:3px 5px;outline:none;border:1px solid var(--AEditor_Addon_Primary_color);border-radius:var(--AEditor_border-radius)}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{padding-right:0;content:var(--save-text);border-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:var(--enter-link-text)}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:var(--enter-video-text)}.ql-snow .ql-picker{position:relative;display:inline-block;height:var(--icon-size);vertical-align:middle;color:var(--AEditor_Addon_Primary_color);font-weight:500}.ql-snow .ql-picker-label{position:relative;display:inline-block;width:100%;height:100%;padding:0 2px 0 8px;cursor:pointer}.ql-snow .ql-picker-options{position:absolute;display:none;min-width:100%;padding:4px 8px;white-space:nowrap;background-color:var(--AEditor_Addon_Primary_background-color);border:var(--AEditor_Addon_Primary_border);border-radius:var(--AEditor_Option_border-radius);box-shadow:none;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}.ql-snow .ql-picker-options .ql-picker-item{display:block;cursor:pointer}.ql-snow .ql-picker-options .ql-picker-item:hover,.ql-snow .ql-picker-options .ql-picker-item.ql-selected{color:var(--acent-brand)}.ql-snow .ql-picker-options .ql-picker-item:hover .ql-fill,.ql-snow .ql-picker-options .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-picker-options .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-picker-options .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:var(--acent-brand)}.ql-snow .ql-picker-options .ql-picker-item:hover .ql-stroke,.ql-snow .ql-picker-options .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-picker-options .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-picker-options .ql-picker-item.ql-selected .ql-stroke-miter{stroke:var(--acent-brand)}.ql-snow .ql-picker.ql-expanded .ql-picker-label{z-index:2;color:var(--AEditor_Addon_Primary_color);border-color:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-picker.ql-expanded .ql-picker-options{z-index:1;display:grid}.ql-snow .ql-picker.ql-color-picker,.ql-snow .ql-picker.ql-icon-picker{width:var(--icon-size)}.ql-snow .ql-picker.ql-color-picker .ql-picker-label,.ql-snow .ql-picker.ql-icon-picker .ql-picker-label{padding:0}.ql-snow .ql-picker.ql-color-picker .ql-picker-options,.ql-snow .ql-picker.ql-icon-picker .ql-picker-options{grid-template-rows:repeat(var(--title-color-picker-row),auto);grid-auto-flow:column;gap:2px;width:auto;padding:4px}.ql-snow .ql-picker.ql-color-picker .ql-picker-item,.ql-snow .ql-picker.ql-icon-picker .ql-picker-item{width:var(--icon-size);height:var(--icon-size)}.ql-snow .ql-picker.ql-color-picker .ql-picker-item.ql-selected,.ql-snow .ql-picker.ql-color-picker .ql-picker-item:hover,.ql-snow .ql-picker.ql-icon-picker .ql-picker-item.ql-selected,.ql-snow .ql-picker.ql-icon-picker .ql-picker-item:hover{outline:2px solid var(--AEditor_Addon_Primary_color);outline-offset:-1px}.ql-snow .ql-picker:not(.ql-color-picker,.ql-icon-picker,.ql-table-up) svg{position:absolute;visibility:hidden}.ql-snow .ql-picker:not(.ql-color-picker,.ql-icon-picker,.ql-table-up) svg polygon{display:none}.ql-snow .ql-picker.ql-header{width:100px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:var(--default-text)}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:3em}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:2.5em}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:.75em}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:100px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:var(--default-text)}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-size:sans-serif}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-size:monospace}.ql-snow .ql-picker.ql-size{width:100px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:var(--default-text)}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:12px}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=normal]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=normal]:before{content:"normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=normal]:before{font-size:16px}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:24px}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow.ql-toolbar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;padding:var(--toolbar-padding);background-color:var(--AEditor_Addon_Secondary_background-color);border:1px solid var(--AEditor_Addon_Primary_color);border-radius:var(--AEditor_border-radius) var(--AEditor_border-radius) 0 0;transition:color calc(var(--Transition-Enabled) * var(--Transition)),background-color calc(var(--Transition-Enabled) * var(--Transition)),border-color calc(var(--Transition-Enabled) * var(--Transition))}.ql-snow.ql-toolbar:after{content:none}.ql-snow.ql-toolbar.ql-toolbar-has-right-action{position:relative}.ql-snow.ql-toolbar .ql-right-action{order:9999;margin-left:auto}.ql-snow.ql-toolbar button{float:left;display:inline-block;width:var(--icon-size);height:var(--icon-size);padding:0;cursor:pointer;background:none;border:none}.ql-snow.ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=text]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow.ql-toolbar button.ql-selected,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label:focus,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item:focus,.ql-snow.ql-toolbar .ql-picker-item.ql-active,.ql-snow.ql-toolbar .ql-picker-item.ql-selected{color:var(--acent-brand)}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-selected .ql-fill,.ql-snow.ql-toolbar button.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:focus .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:focus .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:var(--acent-brand)}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-selected .ql-stroke,.ql-snow.ql-toolbar button.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:focus .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:focus .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:focus .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:focus .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:var(--acent-brand)}@media(pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active){color:var(--AEditor_Addon_Primary_color)}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:var(--AEditor_Addon_Primary_color)}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:var(--AEditor_Addon_Primary_color)}}.ql-snow.ql-toolbar .ql-header .ql-picker-label{display:flex;align-items:center;font-size:var(--title-header-font-size);background-color:var(--AEditor_Addon_Primary_background-color);border:var(--AEditor_Addon_Primary_border);border-radius:var(--AEditor_Select_border-radius);transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border calc(var(--Transition-Enabled) * var(--Transition))}.ql-snow.ql-toolbar .ql-header:after{position:absolute;top:50%;right:2px;z-index:3;width:16px;height:16px;content:"";background-color:var(--AEditor_Addon_Primary_color);-webkit-mask-image:var(--arrow-background);mask-image:var(--arrow-background);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;transform:translateY(-50%)}.ql-snow.ql-toolbar .ql-color-picker.ql-color .ql-picker-item{background-color:var(--label-normal)}.ql-snow.ql-toolbar .ql-picker:not(.ql-color-picker,.ql-icon-picker).ql-table-up{width:fit-content}.ql-snow.ql-toolbar .ql-picker:not(.ql-color-picker,.ql-icon-picker).ql-table-up .ql-picker-label{padding:0}.ql-snow.ql-toolbar .ql-picker:not(.ql-color-picker,.ql-icon-picker).ql-table-up .ql-picker-options .table-up-select-box__item{border:var(--AEditor_Addon_Primary_border)}.ql-snow.ql-container{border:1px solid var(--AEditor_Addon_Primary_color)}.ql-snow.ql-container .ql-readonly-fullscreen{position:absolute;top:12px;right:12px;z-index:100;display:flex;align-items:center;justify-content:center;padding:.3rem;cursor:pointer;background:var(--AEditor_Addon_Primary_background-color);border:var(--AEditor_Addon_Primary_border);border-radius:var(--AEditor_border-radius);box-shadow:0 4px 10px #00000014;opacity:.8;transition:background-color calc(var(--Transition-Enabled) * var(--Transition)),border-color calc(var(--Transition-Enabled) * var(--Transition))}.ql-snow.ql-container .ql-readonly-fullscreen:hover{background:var(--AEditor_Addon_hover_background-color);opacity:1}.ql-snow.ql-container .ql-readonly-fullscreen.ql-active{background-color:var(--AEditor_Addon_hover_background-color);opacity:1}.ql-snow.ql-container .ql-readonly-fullscreen.ql-active svg{stroke:var(--AEditor_Addon_hover_color);stroke-width:2}.ql-snow.ql-container .ql-readonly-fullscreen svg{opacity:.8;transform:scale(.8)}.ql-snow.ql-container.ql-has-v-scrollbar .ql-readonly-fullscreen{right:calc(12px + (var(--Scrollbar-width, 12px)))}.ql-snow.ql-toolbar+.ql-snow.ql-container{border-top:0}.ql-snow .ql-editor{height:100%;padding:var(--editor-padding);overflow:hidden auto;white-space:pre-wrap;outline:none;counter-reset:list-0,list-1,list-2,list-3,list-4,list-5,list-6,list-7,list-8,list-9}.ql-snow .ql-editor .ql-ui{position:absolute}.ql-snow .ql-editor.ql-blank:before{position:absolute;right:15px;left:15px;font-style:italic;color:#0009;pointer-events:none;content:attr(data-placeholder)}.ql-snow .ql-editor>*{cursor:text}.ql-snow .ql-editor p,.ql-snow .ql-editor ol,.ql-snow .ql-editor pre,.ql-snow .ql-editor blockquote,.ql-snow .ql-editor h1,.ql-snow .ql-editor h2,.ql-snow .ql-editor h3,.ql-snow .ql-editor h4,.ql-snow .ql-editor h5,.ql-snow .ql-editor h6{padding:0;margin:0}.ql-snow .ql-editor h1{font-size:3em}.ql-snow .ql-editor h2{font-size:2.5em}.ql-snow .ql-editor h3{font-size:2em}.ql-snow .ql-editor h4{font-size:.75em}.ql-snow .ql-editor h5{font-size:.67em}.ql-snow .ql-editor blockquote{padding-left:16px;margin:4px 0;border-left:4px solid var(--AEditor_Addon_hover_color, skyblue)}.ql-snow .ql-editor table{width:100%;table-layout:fixed;border-collapse:collapse}.ql-snow .ql-editor table td{padding:2px 4px;outline:none;border:1px solid var(--AEditor_Addon_Primary_color, #000)}.ql-snow .ql-editor ol{padding-left:1.5em}.ql-snow .ql-editor li{position:relative;padding-left:1.5em;list-style-type:none}.ql-snow .ql-editor li>.ql-ui:before{display:inline-block;width:1.2em;margin-right:.3em;margin-left:-1.5em;text-align:right;white-space:nowrap}.ql-snow .ql-editor li[data-list=checked]>.ql-ui,.ql-snow .ql-editor li[data-list=unchecked]>.ql-ui{color:var(--AEditor_Addon_Primary_color)}.ql-snow .ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-snow .ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-snow .ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}.ql-snow .ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-snow .ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-snow .ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-snow .ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-snow .ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-snow .ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-snow .ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-snow .ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-snow .ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-snow .ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}.ql-snow .ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-snow .ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-snow .ql-editor .ql-indent-1{padding-left:3em}.ql-snow .ql-editor li.ql-indent-1{padding-left:4.5em}.ql-snow .ql-editor .ql-indent-2{padding-left:6em}.ql-snow .ql-editor li.ql-indent-2{padding-left:7.5em}.ql-snow .ql-editor .ql-indent-3{padding-left:9em}.ql-snow .ql-editor li.ql-indent-3{padding-left:10.5em}.ql-snow .ql-editor .ql-indent-4{padding-left:12em}.ql-snow .ql-editor li.ql-indent-4{padding-left:13.5em}.ql-snow .ql-editor .ql-indent-5{padding-left:15em}.ql-snow .ql-editor li.ql-indent-5{padding-left:16.5em}.ql-snow .ql-editor .ql-indent-6{padding-left:18em}.ql-snow .ql-editor li.ql-indent-6{padding-left:19.5em}.ql-snow .ql-editor .ql-indent-7{padding-left:21em}.ql-snow .ql-editor li.ql-indent-7{padding-left:22.5em}.ql-snow .ql-editor .ql-indent-8{padding-left:24em}.ql-snow .ql-editor li.ql-indent-8{padding-left:25.5em}.ql-snow .ql-editor .ql-indent-9{padding-left:27em}.ql-snow .ql-editor li.ql-indent-9{padding-left:28.5em}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-editor .ql-video{display:block;max-width:100%}.ql-snow .ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-snow .ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-snow .ql-editor .ql-bg-black{background-color:var(--static-black, #000)}.ql-snow .ql-editor .ql-color-black{color:var(--static-black, #000)}.ql-snow .ql-editor .ql-bg-red{background-color:var(--red-45, #e60000)}.ql-snow .ql-editor .ql-color-red{color:var(--red-45, #e60000)}.ql-snow .ql-editor .ql-bg-orange{background-color:var(--orange-45, #f90)}.ql-snow .ql-editor .ql-color-orange{color:var(--orange-45, #f90)}.ql-snow .ql-editor .ql-bg-yellow{background-color:var(--yellow-45, #ff0)}.ql-snow .ql-editor .ql-color-yellow{color:var(--yellow-45, #ff0)}.ql-snow .ql-editor .ql-bg-green{background-color:var(--green-45, #008a00)}.ql-snow .ql-editor .ql-color-green{color:var(--green-45, #008a00)}.ql-snow .ql-editor .ql-bg-blue{background-color:var(--blue-45, #007bff)}.ql-snow .ql-editor .ql-color-blue{color:var(--blue-45, #007bff)}.ql-snow .ql-editor .ql-bg-purple{background-color:var(--purple-45, #93f)}.ql-snow .ql-editor .ql-color-purple{color:var(--purple-45, #93f)}.ql-snow .ql-editor .ql-bg-white{background-color:var(--static-white, #fff)}.ql-snow .ql-editor .ql-color-white{color:var(--static-white, #fff)}.ql-snow .ql-editor .ql-size-small{font-size:.75em}.ql-snow .ql-editor .ql-size-normal{font-size:1em}.ql-snow .ql-editor .ql-size-large{font-size:1.5em}.ql-snow .ql-editor .ql-size-huge{font-size:2.5em}.ql-snow .ql-editor .ql-align-center{text-align:center}.ql-snow .ql-editor .ql-align-justify{text-align:justify}.ql-snow .ql-editor .ql-align-right{text-align:right}.ql-editor-wrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background-color:var(--AEditor_Addon_Primary_background-color)}.ql-editor-wrap .quill,.ql-editor-wrap .ql-container{max-height:none!important}.ql-toolbar .ql-right-action{order:9999;margin-left:auto}.ql-editor-wrap>.quill{width:100%;height:100%}._AWrap_1mpkv_1{position:relative;display:flex;flex-grow:1;width:100%;height:100%;overflow:hidden}._AContainer_1mpkv_10{position:relative;display:flex;width:100%;height:100%;overflow:overlay}._ATree_1mpkv_18{position:relative;display:flex;flex-grow:1;flex-direction:column;width:100%;min-height:fit-content;background-color:var(--ATree_background-color);border-radius:2px;transition:background-color var(--Transition)}._ATreeBody_1mpkv_30{display:flex;flex-grow:1;flex-direction:column}._TreeTopAddon_1mpkv_36{position:sticky;top:0;z-index:10;display:flex;align-items:center;background-color:var(--ATree_background-color);transition:background-color var(--Transition)}._CoverBorder_1mpkv_46{position:absolute;top:0;box-sizing:border-box;width:100%;border-top:1px solid transparent;transition:border-top var(--Transition)}._InsertBorder_1mpkv_55{position:absolute;top:1;z-index:3;width:100%;pointer-events:none}._InsertBorder_1mpkv_55:before,._InsertBorder_1mpkv_55:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";background-position:0 calc(var(--InsertBorder_height, 40px) - 1px);background-size:100% var(--InsertBorder_height, 40px);opacity:0;transition:opacity var(--Transition)}._InsertBorder_1mpkv_55:before{background-image:linear-gradient(to bottom,var(--neutral-30) 1px,transparent 1px)}._InsertBorder_1mpkv_55:after{background-image:linear-gradient(to bottom,var(--neutral-79) 1px,transparent 1px)}html[data-theme=dark] ._InsertBorder_1mpkv_55:before,html[data-theme=light] ._InsertBorder_1mpkv_55:after{opacity:1}._ATreeHeader_1mpkv_86{box-sizing:border-box;padding-top:8px;margin-bottom:8px}._ATreeBodyHeader_1mpkv_92{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;min-height:50px;border-bottom:var(--ATreeBodyHeader_border-bottom);transition:border-bottom var(--Transition)}._ATreeBodyHeaderResources_1mpkv_102{display:flex;flex-direction:column;justify-content:flex-start}._ATreeItem_1mpkv_108{position:relative;box-sizing:border-box;display:flex;flex-direction:row;align-items:center;width:100%;height:var(--ATreeItem_height, 40px);min-height:var(--ATreeItem_height, 40px);white-space:nowrap;background-color:var(--ATree_background-color);transition:background-color var(--Transition)}._ATreeItem_1mpkv_108:nth-last-child(1){border-bottom:none}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124{cursor:var(--ATreeItem_cursor, pointer)}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124._IsSelected_1mpkv_127{color:var(--ATreeItem_select_color);background-color:var(--ATreeItem_select_background-color);transition:background-color var(--Transition),color var(--Transition)}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124._IsSearchSelected_1mpkv_132{background-color:var(--ATreeItem_search_background-color);border-top:var(--ATreeItem_search_border-top);border-bottom:var(--ATreeItem_search_border-bottom)}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124:active{background-color:var(--ATreeItem_active_background-color)}._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124:hover,._ATreeItem_1mpkv_108._IsSelectUsed_1mpkv_124._IsHovered_1mpkv_143{background-color:var(--ATreeItem_hover_background-color)}._CheckBox_1mpkv_147{position:sticky;left:0;z-index:2;display:flex;flex-direction:row;align-items:center;min-height:100%;padding:0 12px;background-color:inherit}._Indents_1mpkv_159{display:flex;flex-direction:row;min-width:fit-content;height:100%}._ExpandIcon_1mpkv_166{z-index:1;display:flex;align-items:center;justify-content:center;min-width:24px;max-width:24px;min-height:24px;margin-right:8px;cursor:pointer}._Content_1mpkv_178{display:flex;flex-grow:1;flex-direction:row;align-items:center;justify-content:space-between;overflow:hidden}._RightSticky_1mpkv_187{position:sticky;right:0;display:flex;align-items:center;height:100%;padding:0 8px}._SearchInputWrap_1mpkv_196{display:flex;flex-grow:1;overflow:hidden}._SearchInput_1mpkv_196{display:flex;min-height:32px;overflow:hidden}._RightAddon_1mpkv_208{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;height:100%;padding-right:0;cursor:pointer;transition:color var(--Transition)}._RightAddonIcon_1mpkv_219{min-width:24px;max-width:24px;min-height:24px;max-height:24px}._Loader_1mpkv_226{flex-grow:1;justify-content:center}._IsChildOfDragSource_1mpkv_231{opacity:.5;transition:all .15s ease}')),document.head.appendChild(r)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
"use strict";var TE=Object.defineProperty;var AE=(n,e,t)=>e in n?TE(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Ee=(n,e,t)=>AE(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("react"),su=require("react-dom");var jh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function L1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function RE(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var a0={exports:{}},J1={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.js
|
|
@@ -278,18 +278,18 @@ H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}f
|
|
|
278
278
|
document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=
|
|
279
279
|
performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);`);var kr=R('$RC("'),to=R(`$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=
|
|
280
280
|
"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=
|
|
281
|
-
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),Ni=R('$RR("'),el=R('","'),es=R('",'),Zs=R('"'),vr=R(")<\/script>");R('<template data-rci="" data-bid="'),R('<template data-rri="" data-bid="'),R('" data-sid="'),R('" data-sty="');var Bl=R('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),mo=R('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),wl=R('$RX("'),qa=R('"'),Fi=R(","),pc=R(")<\/script>");R('<template data-rxi="" data-bid="'),R('" data-dgst="'),R('" data-msg="'),R('" data-stck="'),R('" data-cstck="');var Ls=/[<\u2028\u2029]/g,Cl=/[&><\u2028\u2029]/g,ps=R(' media="not all" data-precedence="'),zl=R('" data-href="'),vc=R('">'),Kc=R("</style>"),ts=!1,Jc=!0,Hl=[],ja=R(' data-precedence="'),mf=R('" data-href="'),Ri=R(" "),mu=R('">'),Os=R("</style>");R('<link rel="expect" href="#'),R('" blocking="render"/>');var Cr=R(' id="'),Qc=R("["),xf=R(",["),bc=R(","),qc=R("]"),yc=0,wf=1,ko=2,jc=3,Aa=/[<>\r\n]/g,Cf=/["';,\r\n]/g,Ps=Function.prototype.bind,Qf=Symbol.for("react.client.reference"),no={};Object.freeze(no);var ns={},ca=null,Yu={},$c={},Vu=new Set,$a=new Set,qf=new Set,Zu=new Set,mc=new Set,ec=new Set,_f=new Set,xc=new Set,Sf=new Set,mh={enqueueSetState:function(c,f,S){var D=c._reactInternals;D.queue===null?rt(c,"setState"):(D.queue.push(f),S!=null&&Se(S))},enqueueReplaceState:function(c,f,S){c=c._reactInternals,c.replace=!0,c.queue=[f],S!=null&&Se(S)},enqueueForceUpdate:function(c,f){c._reactInternals.queue===null?rt(c,"forceUpdate"):f!=null&&Se(f)}},xu={id:1,overflow:""},wu=Math.clz32?Math.clz32:wn,cd=Math.log,ud=Math.LN2,ua=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),jf=null,fd=typeof Object.is=="function"?Object.is:gr,tl=null,Ra=null,Ci=null,_l=null,Xs=null,ui=null,Sl=!1,vs=!1,_o=0,Cu=0,Ef=-1,$f=0,fa=null,ha=null,Xu=0,Ks=!1,wc,Cc={readContext:wo,use:function(c){if(c!==null&&typeof c=="object"){if(typeof c.then=="function")return jr(c);if(c.$$typeof===Li)return wo(c)}throw Error("An unsupported type was passed to use(): "+String(c))},useContext:function(c){return wc="useContext",Cn(),c._currentValue},useMemo:al,useReducer:Br,useRef:function(c){tl=Cn(),ui=_n();var f=ui.memoizedState;return f===null?(c={current:c},Object.seal(c),ui.memoizedState=c):f},useState:function(c){return wc="useState",Br(fo,c)},useInsertionEffect:Tn,useLayoutEffect:Tn,useCallback:function(c,f){return al(function(){return c},f)},useImperativeHandle:Tn,useEffect:Tn,useDebugValue:Tn,useDeferredValue:function(c,f){return Cn(),f!==void 0?f:c},useTransition:function(){return Cn(),[!1,Jl]},useId:function(){var c=Ra.treeContext,f=c.overflow;c=c.id,c=(c&~(1<<32-wu(c)-1)).toString(32)+f;var S=u;if(S===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return f=_o++,c="_"+S.idPrefix+"R_"+c,0<f&&(c+="H"+f.toString(32)),c+"_"},useSyncExternalStore:function(c,f,S){if(S===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return S()},useOptimistic:function(c){return Cn(),[c,No]},useActionState:To,useFormState:To,useHostTransitionStatus:function(){return Cn(),Zr},useMemoCache:function(c){for(var f=Array(c),S=0;S<c;S++)f[S]=ra;return f},useCacheRefresh:function(){return fn},useEffectEvent:function(){return Si}},u=null,p=null,T={getCacheForType:function(){throw Error("Not implemented.")},cacheSignal:function(){throw Error("Not implemented.")},getOwner:function(){return p===null?null:p.componentStack}},F=0,q,ce,Ae,We,Pt,tt,_t;On.__reactDisabledLog=!0;var jt,vn,sn=!1,Ht=new(typeof WeakMap=="function"?WeakMap:Map),Mr={react_stack_bottom_frame:function(c,f,S){return c(f,S)}},Ii=Mr.react_stack_bottom_frame.bind(Mr),ar={react_stack_bottom_frame:function(c){return c.render()}},Sr=ar.react_stack_bottom_frame.bind(ar),nl={react_stack_bottom_frame:function(c){var f=c._init;return f(c._payload)}},rl=nl.react_stack_bottom_frame.bind(nl),Jr=0;if(typeof performance=="object"&&typeof performance.now=="function")var So=performance,rs=function(){return So.now()};else{var In=Date;rs=function(){return In.now()}}var Mn=4,ri=0,Gr=1,_i=2,Bi=3,Yr=4,Wn=5,Wl=14,bi=null,dl={},Vi={},is={},_u={},bs=!1,Ia=!1,gl=!1,so=0,Yo=!1;Fs(),Fs(),_g.prerender=function(c,f){return new Promise(function(S,D){var Z=f?f.onHeaders:void 0,ie;Z&&(ie=function(lt){Z(new Headers(lt))});var we=be(f?f.identifierPrefix:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.bootstrapScriptContent:void 0,f?f.bootstrapScripts:void 0,f?f.bootstrapModules:void 0),Pe=Ei(c,we,de(we,void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.importMap:void 0,ie,f?f.maxHeadersLength:void 0),ge(f?f.namespaceURI:void 0),f?f.progressiveChunkSize:void 0,f?f.onError:void 0,function(){var lt=new ReadableStream({type:"bytes",pull:function(Yt){hs(Pe,Yt)},cancel:function(Yt){Pe.destination=null,gi(Pe,Yt)}},{highWaterMark:0});lt={postponed:Ti(Pe),prelude:lt},S(lt)},void 0,void 0,D,f?f.onPostpone:void 0);if(f&&f.signal){var xt=f.signal;if(xt.aborted)gi(Pe,xt.reason);else{var Ye=function(){gi(Pe,xt.reason),xt.removeEventListener("abort",Ye)};xt.addEventListener("abort",Ye)}}ul(Pe)})},_g.renderToReadableStream=function(c,f){return new Promise(function(S,D){var Z,ie,we=new Promise(function(Jt,Nt){ie=Jt,Z=Nt}),Pe=f?f.onHeaders:void 0,xt;Pe&&(xt=function(Jt){Pe(new Headers(Jt))});var Ye=be(f?f.identifierPrefix:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.bootstrapScriptContent:void 0,f?f.bootstrapScripts:void 0,f?f.bootstrapModules:void 0),lt=Fo(c,Ye,de(Ye,f?f.nonce:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.importMap:void 0,xt,f?f.maxHeadersLength:void 0),ge(f?f.namespaceURI:void 0),f?f.progressiveChunkSize:void 0,f?f.onError:void 0,ie,function(){var Jt=new ReadableStream({type:"bytes",pull:function(Nt){hs(lt,Nt)},cancel:function(Nt){lt.destination=null,gi(lt,Nt)}},{highWaterMark:0});Jt.allReady=we,S(Jt)},function(Jt){we.catch(function(){}),D(Jt)},Z,f?f.onPostpone:void 0,f?f.formState:void 0);if(f&&f.signal){var Yt=f.signal;if(Yt.aborted)gi(lt,Yt.reason);else{var Qt=function(){gi(lt,Yt.reason),Yt.removeEventListener("abort",Qt)};Yt.addEventListener("abort",Qt)}}ul(lt)})},_g.resume=function(c,f,S){return new Promise(function(D,Z){var ie,we,Pe=new Promise(function(Yt,Qt){we=Yt,ie=Qt}),xt=$r(c,f,de(f.resumableState,S?S.nonce:void 0,void 0,void 0,void 0,void 0),S?S.onError:void 0,we,function(){var Yt=new ReadableStream({type:"bytes",pull:function(Qt){hs(xt,Qt)},cancel:function(Qt){xt.destination=null,gi(xt,Qt)}},{highWaterMark:0});Yt.allReady=Pe,D(Yt)},function(Yt){Pe.catch(function(){}),Z(Yt)},ie,S?S.onPostpone:void 0);if(S&&S.signal){var Ye=S.signal;if(Ye.aborted)gi(xt,Ye.reason);else{var lt=function(){gi(xt,Ye.reason),Ye.removeEventListener("abort",lt)};Ye.addEventListener("abort",lt)}}ul(xt)})},_g.resumeAndPrerender=function(c,f,S){return new Promise(function(D,Z){var ie=xr(c,f,de(f.resumableState,void 0,void 0,void 0,void 0,void 0),S?S.onError:void 0,function(){var xt=new ReadableStream({type:"bytes",pull:function(Ye){hs(ie,Ye)},cancel:function(Ye){ie.destination=null,gi(ie,Ye)}},{highWaterMark:0});xt={postponed:Ti(ie),prelude:xt},D(xt)},void 0,void 0,Z,S?S.onPostpone:void 0);if(S&&S.signal){var we=S.signal;if(we.aborted)gi(ie,we.reason);else{var Pe=function(){gi(ie,we.reason),we.removeEventListener("abort",Pe)};we.addEventListener("abort",Pe)}}ul(ie)})},_g.version="19.2.0"})()),_g}var H2;function UT(){if(H2)return wg;H2=1;var n,e;return process.env.NODE_ENV==="production"?(n=BT(),e=zT()):(n=HT(),e=WT()),wg.version=n.version,wg.renderToString=n.renderToString,wg.renderToStaticMarkup=n.renderToStaticMarkup,wg.renderToReadableStream=e.renderToReadableStream,wg.resume=e.resume,wg}var XC=UT();const a1=L1(XC);function gp(n,e,t){return e!==void 0&&n<e?e:t!==void 0&&n>t?t:n}const kg={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const n=Date.now();if(this._fontCache.value&&n-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:n},e}catch{return"400 14px pretendard"}},measureCharWidth(n,e){var i,o,l,a,h,g;const t=`${n}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const m=this._canvas.getContext("2d");if(m){m.font=e;const x=m.measureText(n).width;return this._charWidthMap.set(t,x),x}}catch{}let r;return n===" "?r=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")/3:/^[A-Z]$/.test(n)?r=parseInt(((o=e.match(/(\d+)px/))==null?void 0:o[1])||"14")*.67:/^[a-z]$/.test(n)?r=parseInt(((l=e.match(/(\d+)px/))==null?void 0:l[1])||"14")*.5:/^\d$/.test(n)?r=parseInt(((a=e.match(/(\d+)px/))==null?void 0:a[1])||"14")*.6:/^[.,;:!?]$/.test(n)?r=parseInt(((h=e.match(/(\d+)px/))==null?void 0:h[1])||"14")*.25:r=parseInt(((g=e.match(/(\d+)px/))==null?void 0:g[1])||"14")*.67,this._charWidthMap.set(t,r),r},extractTextFromNode(n){if(n==null)return"";if(typeof n=="string")return n;if(typeof n=="number"||typeof n=="boolean")return`${n}`;if(Array.isArray(n))return n.map(e=>this.extractTextFromNode(e)).join("");if(B.isValidElement(n))try{const t=XC.renderToString(n).replace(/<[^>]*>/g,""),r=document.createElement("div");return r.innerHTML=t,r.textContent||""}catch{return n.props&&n.props.children?this.extractTextFromNode(n.props.children):""}return""},measureTextWidth(n,e){var o;if(!n)return 0;const t=e||this.getDefaultFont(),r=`${n}|${t}`,i=this._cache.get(r);if(i!==void 0)return i;try{this._canvas||(this._canvas=document.createElement("canvas"));const l=this._canvas.getContext("2d");if(l){l.font=t;const a=l.measureText(n),h=Math.ceil(a.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(m=>this._cache.delete(m)),this._cache.set(r,h),h}}catch{}try{const l=document.createElement("span");l.style.font=t,l.style.position="absolute",l.style.visibility="hidden",l.style.whiteSpace="nowrap",l.textContent=n,document.body.appendChild(l);const a=Math.ceil(l.getBoundingClientRect().width);return document.body.removeChild(l),this._cache.set(r,a),a}catch{}try{let l=0;for(let h=0;h<n.length;h++)l+=this.measureCharWidth(n[h],t);l*=.95;const a=Math.ceil(l);return this._cache.set(r,a),a}catch{}try{const l=parseInt(((o=t.match(/(\d+)px/))==null?void 0:o[1])||"14");let a=0;for(let g=0;g<n.length;g++){const m=n[g];m===" "?a+=.33:/^[A-Z]$/.test(m)?a+=.67:/^[a-z]$/.test(m)?a+=.5:/^\d$/.test(m)?a+=.6:/^[.,;:!?]$/.test(m)?a+=.25:a+=.67}const h=Math.ceil(a*l);return this._cache.set(r,h),h}catch{const a=n.length*10;return this._cache.set(r,a),a}},measureTextWithElementStyle(n,e){if(!e)return 0;try{const t=window.getComputedStyle(n),r=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,r)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(n){const e=this.extractTextFromNode(n);return this.measureTextWidth(e)},measureRenderedOptionWidth(n,e){if(n==null)return 0;const t=e(n),r=this.extractTextFromNode(t);return this.measureTextWidth(r)},calculateOptimalSelectWidth({elementRef:n,options:e=[],selectedOption:t=null,selectedOptions:r=[],placeholder:i="",optionRenderer:o,type:l="Primary",isMulti:a=!1}){if(!n.current)return 200;try{let h=0;if(e&&e.length>0){const _=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(R,k)=>e[Math.floor(k*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],E=Array.from(new Set(_.filter(Boolean)));for(const R of E){if(!R)continue;const k=this.measureRenderedOptionWidth(R,o);h=Math.max(h,k)}}let g=0;if(!a&&t)g=this.measureRenderedOptionWidth(t,o);else if(a&&r&&r.length){if(r.length===1)g=this.measureRenderedOptionWidth(r[0],o);else if(g=this.measureTextWidth(`${r.length} selected`),r.length>0){let _=0;for(const E of r){const R=this.measureRenderedOptionWidth(E,o);_=Math.max(_,R)}g=Math.max(g,_)}}let m=0;i&&(m=this.measureReactNodeWidth(i));const w=Math.max(h,g,m,50);if(n.current){const _=window.getComputedStyle(n.current),E=parseFloat(_.paddingLeft||"0")+parseFloat(_.paddingRight||"0"),R=parseFloat(_.borderLeftWidth||"0")+parseFloat(_.borderRightWidth||"0"),k=l==="Primary"?30:20,O=a?24:0,P=Math.ceil(w*.05)+10;return Math.ceil(w+E+R+k+O+P)}return w+60}catch{return 200}}};function KC(n,e){const t=Vn.c(5),[r,i]=B.useState(0);let o,l;return t[0]!==r||t[1]!==n||t[2]!==e?(o=()=>{const a=()=>{const g=n.current,m=e.current;if(!g||!m)return i(0);const x=g.getBoundingClientRect(),w=m.getBoundingClientRect(),_=Math.max(0,Math.round(x.right-w.left));_!==r&&i(_)};a();const h=new ResizeObserver(a);return n.current&&h.observe(n.current),e.current&&h.observe(e.current),window.addEventListener("resize",a),()=>{h.disconnect(),window.removeEventListener("resize",a)}},l=[n,e,r],t[0]=r,t[1]=n,t[2]=e,t[3]=o,t[4]=l):(o=t[3],l=t[4]),B.useEffect(o,l),r}var ic=(n=>(n.E="East",n.N="North",n.S="South",n.W="West",n))(ic||{}),O1=(n=>(n.E="East",n.EN="EastNorth",n.ES="EastSouth",n.N="North",n.NE="NorthEast",n.NW="NorthWest",n.S="South",n.SE="SouthEast",n.SW="SouthWest",n.W="West",n.WN="WestNorth",n.WS="WestSouth",n))(O1||{});function mm(n,e,t,r){if(!n.current||!e.current)return;const i=n.current.getBoundingClientRect(),o=e.current.getBoundingClientRect();let l={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":l=o?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-o.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":l={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":l={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":l=o?{top:i.bottom,left:i.left+i.width/2-o.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":l={top:i.bottom,left:i.left};break;case"SouthEast":l={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":l=o?{top:i.top+i.height/2-o.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":l={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":l={top:i.top,left:i.right};break;case"West":l=o?{top:i.top+i.height/2-o.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":l={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":l={top:i.top,right:window.innerWidth-i.left};break;default:l={top:i.top,left:i.left}}r&&(r.x&&l.left&&(l.left+=r.x),r.y&&l.top&&(l.top+=r.y)),l=QC(l,o),e.current.style.top=l.top+"px",e.current.style.left=l.left+"px",e.current.style.bottom=l.bottom+"px",e.current.style.right=l.right+"px"}function JC(n,e,t,r){if(!n)return;const i=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!i)return;const o=n.getBoundingClientRect(),l=i.getBoundingClientRect();let a={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":a=l?{bottom:window.innerHeight-o.top,left:o.left+o.width/2-l.width/2}:{bottom:window.innerHeight-o.top,left:o.left};break;case"NorthWest":a={bottom:window.innerHeight-o.top,left:o.left};break;case"NorthEast":a={bottom:window.innerHeight-o.top,right:window.innerWidth-o.left-o.width};break;case"South":a=l?{top:o.bottom,left:o.left+o.width/2-l.width/2}:{top:o.bottom,left:o.left};break;case"SouthWest":a={top:o.bottom,left:o.left};break;case"SouthEast":a={top:o.bottom,right:window.innerWidth-o.left-o.width};break;case"East":a=l?{top:o.top+o.height/2-l.height/2,left:o.right}:{top:o.top,left:o.right};break;case"EastNorth":a={bottom:window.innerHeight-o.top-o.height,left:o.right};break;case"EastSouth":a={top:o.top,left:o.right};break;case"West":a=l?{top:o.top+o.height/2-l.height/2,right:window.innerWidth-o.left}:{top:o.top,right:window.innerWidth-o.left};break;case"WestNorth":a={bottom:window.innerHeight-o.top-o.height,right:window.innerWidth-o.left};break;case"WestSouth":a={top:o.top,right:window.innerWidth-o.left};break;default:a={top:o.top,left:o.left}}return r&&(r.x&&a.left&&(a.left+=r.x),r.y&&a.top&&(a.top+=r.y)),a=QC(a,l),i.style.top=a.top+"px",i.style.left=a.left+"px",i.style.bottom=a.bottom+"px",i.style.right=a.right+"px",a}function QC(n,e,t=10){return n.left&&n.left<t&&(n.left=t),n.right&&n.right<t&&(n.right=t),n.top&&n.top<t&&(n.top=t),n.bottom&&n.bottom<t&&(n.bottom=t),n.left&&e&&n.left+e.width>window.innerWidth-t&&(n.left=window.innerWidth-e.width-t),n.right&&e&&n.right+e.width>window.innerWidth-t&&(n.right=window.innerWidth-e.width-t),n.top&&e&&n.top+e.height>window.innerHeight-t&&(n.top=window.innerHeight-e.height-t),n.bottom&&e&&n.bottom+e.height>window.innerHeight-t&&(n.bottom=window.innerHeight-e.height-t),n}function Eg(){const n={preventDefault:!1};return{event:n,e:{preventDefault:()=>n.preventDefault=!0}}}const GT="_Tooltip_1khnz_1",YT="_Arrow_1khnz_17",W2={Tooltip:GT,Arrow:YT},qC=n=>{const e=Vn.c(28),{tooltip:t,targetRef:r,delay:i,distance:o,direction:l}=n,a=i===void 0?0:i,h=o===void 0?10:o,g=l===void 0?ic.S:l,[m,x]=B.useState(!1),w=B.useRef(null),_=B.useRef(null),E=B.useRef(null);let R;e[0]!==a||e[1]!==g||e[2]!==h||e[3]!==r?(R=()=>{x(!0),E.current&&(clearTimeout(E.current),E.current=null);const ue=setTimeout(()=>requestAnimationFrame(()=>U2(r,w,_,h,g)),a);E.current=ue},e[0]=a,e[1]=g,e[2]=h,e[3]=r,e[4]=R):R=e[4];const k=R;let O;e[5]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{E.current&&(clearTimeout(E.current),E.current=null),x(!1)},e[5]=O):O=e[5];const P=O;let z,H;e[6]!==k||e[7]!==r?(z=()=>{const ue=r.current;if(ue)return ue.addEventListener("mouseenter",k),ue.addEventListener("mouseleave",P),()=>{ue.removeEventListener("mouseenter",k),ue.removeEventListener("mouseleave",P)}},H=[r,P,k],e[6]=k,e[7]=r,e[8]=z,e[9]=H):(z=e[8],H=e[9]),B.useEffect(z,H);let G;e[10]!==g||e[11]!==h||e[12]!==r?(G=()=>{U2(r,w,_,h,g)},e[10]=g,e[11]=h,e[12]=r,e[13]=G):G=e[13];const N=G;let J,Y;e[14]!==m||e[15]!==N||e[16]!==r?(J=()=>{if(!r.current||!w.current||!m)return;const ue=r.current.parentElement;let se=ue;for(;se;)se.addEventListener("scroll",N),se=se.parentElement;return()=>{let $=ue;for(;$;)$.removeEventListener("scroll",N),$=$.parentElement}},Y=[r,N,m],e[14]=m,e[15]=N,e[16]=r,e[17]=J,e[18]=Y):(J=e[17],Y=e[18]),B.useEffect(J,Y);let K;e[19]!==N?(K=()=>{N()},e[19]=N,e[20]=K):K=e[20];let fe;e[21]!==N||e[22]!==t?(fe=[t,N],e[21]=N,e[22]=t,e[23]=fe):fe=e[23],B.useEffect(K,fe);let X;e:switch(typeof t){case"boolean":{X=!0;break e}case"string":{X=t==="";break e}case"number":{X=!1;break e}default:X=!t}if(!m||X)return null;let ne;if(e[24]!==t){let ue;e[26]===Symbol.for("react.memo_cache_sentinel")?(ue=bt.clsx(W2.Tooltip,"NoSelect"),e[26]=ue):ue=e[26];let se;e[27]===Symbol.for("react.memo_cache_sentinel")?(se=M.jsx("div",{ref:_,className:W2.Arrow}),e[27]=se):se=e[27],ne=su.createPortal(M.jsxs("div",{ref:w,className:ue,children:[t,se]}),document.body),e[24]=t,e[25]=ne}else ne=e[25];return ne},u0="5px solid var(--ATooltip_background-color)";function U2(n,e,t,r,i=ic.S){if(!n.current||!e.current||!t.current)return;const o=VT(n.current,e.current,r,i);if(!o)return;const{left:l,top:a,arrowDir:h,arrow:g}=o;e.current.style.left=`${l}px`,e.current.style.top=`${a}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",h===ic.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${g.left??0}px)`,t.current.style.borderBottom=u0):h===ic.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${g.left??0}px)`,t.current.style.borderTop=u0):h===ic.W?(t.current.style.top=`calc(50% - 5px + ${g.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=u0):h===ic.E&&(t.current.style.top=`calc(50% - 5px + ${g.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=u0)}const Gd=5;function VT(n,e,t,r){const i=n.getBoundingClientRect(),o=e.getBoundingClientRect();function l(){if(window.innerHeight-i.bottom>o.height+t){const m=i.bottom+t,x=i.left+(i.width-o.width)/2,w=gp(x,Gd,window.innerWidth-Gd-o.width),_=ic.N;return{left:w,top:m,arrowDir:_,arrow:{left:x-w}}}}function a(){if(i.top>o.height+t){const m=i.top-o.height-t,x=i.left+(i.width-o.width)/2,w=gp(x,Gd,window.innerWidth-Gd-o.width),_=ic.S;return{left:w,top:m,arrowDir:_,arrow:{left:x-w}}}}function h(){if(window.innerWidth-i.right>o.width+t){const m=i.right+t,x=i.top+(i.height-o.height)/2,w=gp(x,Gd,window.innerHeight-Gd-o.height),_=ic.W;return{left:m,top:w,arrowDir:_,arrow:{top:x-w}}}}function g(){if(i.left>o.width+t){const m=i.left-o.width-t,x=i.top+(i.height-o.height)/2,w=gp(x,Gd,window.innerHeight-Gd-o.height),_=ic.E;return{left:m,top:w,arrowDir:_,arrow:{top:x-w}}}}if(r===ic.E)return h()||g()||l()||a();if(r===ic.S)return l()||a()||h()||g();if(r===ic.W)return g()||h()||l()||a();if(r===ic.N)return a()||l()||h()||g()}const ZT="_ABase_c7a1t_1",XT="_UseDimming_c7a1t_6",KT="_Dimmer_c7a1t_6",JT="_Spinner_c7a1t_9",QT="_Dimmed_c7a1t_12",qT="_HasProgress_c7a1t_18",jT="_IsDimmed_c7a1t_36",$T="_IsLoading_c7a1t_41",eA="_IsDisabled_c7a1t_46",qg={ABase:ZT,UseDimming:XT,Dimmer:KT,Spinner:JT,Dimmed:QT,HasProgress:qT,IsDimmed:jT,IsLoading:$T,IsDisabled:eA},Wi=n=>{const e=Vn.c(27),{children:t,abaseRef:r,abaseCallbackRef:i,isDisabled:o,isLoading:l,isDimmed:a,tooltip:h,tooltipDistance:g,tooltipDelay:m,tooltipDirection:x,progress:w,ProgressRenderer:_,progressProps:E,...R}=n,k=g===void 0?10:g,O=m===void 0?0:m,P=x===void 0?ic.S:x,z=_===void 0?tA:_,H=B.useRef(null),G=r??H;let N;e:{if(typeof o=="string"&&o!==""){N=o;break e}else if(h!==void 0){N=h;break e}N=""}const J=N,Y=o||l||a,K=o!==void 0||l!==void 0||a!==void 0,fe=typeof w=="number"&&l,X=i||G,te=bt.clsx(R.className,qg.ABase,K&&qg.UseDimming,Y&&qg.Dimmed,fe&&qg.HasProgress);let ne;e[0]!==a||e[1]!==fe||e[2]!==o||e[3]!==l||e[4]!==K?(ne=K&&M.jsx("div",{className:bt.sclsx(qg,"Dimmer",o&&"IsDisabled",l&&"IsLoading",a&&"IsDimmed",fe&&"HasProgress")}),e[0]=a,e[1]=fe,e[2]=o,e[3]=l,e[4]=K,e[5]=ne):ne=e[5];let ue;e[6]!==z||e[7]!==fe||e[8]!==o||e[9]!==l||e[10]!==w||e[11]!==E?(ue=l&&M.jsxs("div",{className:bt.sclsx(qg,"Spinner",o&&"IsDisabled",l&&"IsLoading",fe&&"HasProgress"),children:[M.jsx(uo,{icon:"Spinner"}),M.jsx(B.Activity,{mode:fe?"visible":"hidden",children:M.jsx(z,{progress:w??0,...E})})]}),e[6]=z,e[7]=fe,e[8]=o,e[9]=l,e[10]=w,e[11]=E,e[12]=ue):ue=e[12];let se;e[13]!==G||e[14]!==J||e[15]!==O||e[16]!==P||e[17]!==k?(se=M.jsx(qC,{delay:O,direction:P,distance:k,targetRef:G,tooltip:J}),e[13]=G,e[14]=J,e[15]=O,e[16]=P,e[17]=k,e[18]=se):se=e[18];let $;return e[19]!==t||e[20]!==R||e[21]!==X||e[22]!==te||e[23]!==ne||e[24]!==ue||e[25]!==se?($=M.jsxs("div",{...R,ref:X,className:te,children:[t,ne,ue,se]}),e[19]=t,e[20]=R,e[21]=X,e[22]=te,e[23]=ne,e[24]=ue,e[25]=se,e[26]=$):$=e[26],$},tA=n=>{const e=Vn.c(6);let t,r;e[0]!==n?({progress:t,...r}=n,e[0]=n,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;return e[3]!==t||e[4]!==r?(i=M.jsx(ZC,{progress:t,...r}),e[3]=t,e[4]=r,e[5]=i):i=e[5],i},nA="_AButton_vulhu_1",rA="_Primary_vulhu_14",iA="_Secondary_vulhu_19",oA="_Alter_vulhu_24",lA="_AIconButton_vulhu_30",sA="_AThemeButton_vulhu_71",Tp={AButton:nA,Primary:rA,Secondary:iA,Alter:oA,AIconButton:lA,AThemeButton:sA},aA=["Primary","Secondary","Alter","Raw"],Ic=n=>{const e=Vn.c(17);let t,r,i,o;e[0]!==n?({type:o,onClick:r,noInteractive:i,...t}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o):(t=e[1],r=e[2],i=e[3],o=e[4]);const l=o===void 0?"Primary":o,a=t.isDisabled||t.isLoading;let h;e[5]!==r||e[6]!==a?(h=w=>{a||r==null||r(w)},e[5]=r,e[6]=a,e[7]=h):h=e[7];const g=h;let m;e[8]!==t.className||e[9]!==i||e[10]!==l||e[11]!==a?(m=bt.clsx(t.className,Tp.AButton,l!=="Raw"&&Tp[l],"IsClickable",!a&&!i&&"IsInteractive"),e[8]=t.className,e[9]=i,e[10]=l,e[11]=a,e[12]=m):m=e[12];let x;return e[13]!==t||e[14]!==g||e[15]!==m?(x=M.jsx(Wi,{...t,className:m,onClick:g}),e[13]=t,e[14]=g,e[15]=m,e[16]=x):x=e[16],x},cA=["Primary","Secondary","Raw"],Ba=n=>{const e=Vn.c(29);let t,r,i,o,l,a,h,g,m;e[0]!==n?({icon:o,iconSize:l,type:g,onClick:i,isDisabled:a,isLoading:h,tooltip:m,className:r,...t}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9]);const x=g===void 0?"Primary":g,w=a||h;let _;e[10]!==i||e[11]!==w?(_=z=>{w||i==null||i(z)},e[10]=i,e[11]=w,e[12]=_):_=e[12];const E=_;let R;e:{if(ym.includes(o)){let z;e[13]!==o||e[14]!==l?(z=M.jsx(uo,{icon:o,size:l}),e[13]=o,e[14]=l,e[15]=z):z=e[15],R=z;break e}R=o}const k=R;let O;e[16]!==r||e[17]!==a||e[18]!==h||e[19]!==x?(O=bt.clsx(Tp.AIconButton,!a&&!h&&"IsClickable",x!=="Raw"&&Tp[x],r),e[16]=r,e[17]=a,e[18]=h,e[19]=x,e[20]=O):O=e[20];let P;return e[21]!==t||e[22]!==k||e[23]!==a||e[24]!==h||e[25]!==E||e[26]!==O||e[27]!==m?(P=M.jsx(Wi,{className:O,isDisabled:a,isLoading:h,tooltip:m,onClick:E,...t,children:k}),e[21]=t,e[22]=k,e[23]=a,e[24]=h,e[25]=E,e[26]=O,e[27]=m,e[28]=P):P=e[28],P};function Do(n,e){n!==void 0&&n.length===1&&(e=n[0]);const t=B.useState(e);let r;return n===void 0||n.length===1?r=t:r=n,r}const uA="_AWrap_u1f1h_1",fA="_Label_u1f1h_8",hA="_Asterisk_u1f1h_19",dA="_HelperTextConatiner_u1f1h_23",gA="_HelperText_u1f1h_23",jg={AWrap:uA,Label:fA,Asterisk:hA,HelperTextConatiner:dA,HelperText:gA,Error:"_Error_u1f1h_38"},pA=["Default","Error"],Bg=n=>{if(!n)return[{},{}];const e={},t={},r=["errorMessage","helperText","label","labelProps","wrapId","wrapProps","wrapType"];for(const i in n)r.includes(i)?e[i]=n[i]:t[i]=n[i];return[e,t]},lg=n=>{const{wrapProps:e,errorMessage:t,helperText:r,wrapType:i="Default",label:o,labelProps:l,wrapId:a,children:h}=n,g=B.useRef(null),[m,x]=B.useState({height:0}),w=B.useRef(null),[_,E]=B.useMemo(()=>{let k=r,O=i;if(Array.isArray(t)){const P=t.filter(Boolean);P.length>0&&([k,O]=[P,"Error"])}else t&&([k,O]=[t,"Error"]);return Array.isArray(k)&&(O!=="Error"&&(k=k.filter(Boolean)),k=k.map((P,z)=>M.jsxs(B.Fragment,{children:[P,M.jsx("br",{})]},rr.key(z)))),[k,O]},[r,t,i]);B.useEffect(()=>{if(!_||!g.current)x({height:0});else{const k=g.current.getBoundingClientRect();x({height:k.height,marginTop:k.height===0?0:6})}},[_]);const R=B.useMemo(()=>{switch(typeof(l==null?void 0:l.prefix)){case"string":return M.jsx(uo,{height:"1rem",icon:l.prefix,width:"1rem"});case"boolean":return M.jsx(uo,{height:10,icon:"Target",width:10});default:return l==null?void 0:l.prefix}},[l==null?void 0:l.prefix]);return M.jsxs("div",{...e,ref:w,className:bt.clsx(e==null?void 0:e.className,jg.AWrap),id:a,children:[o&&M.jsxs("div",{className:bt.clsx(jg.Label,"NoSelect",l==null?void 0:l.className),style:l==null?void 0:l.style,children:[l==null?void 0:l.leftAddon,R,o,(l==null?void 0:l.asterisk)&&M.jsx(Wi,{className:jg.Asterisk,tooltip:Nr.AWrap.Asterisk,children:"*"}),l==null?void 0:l.rightAddon]}),h,_!==void 0&&M.jsx("div",{className:bt.clsx(jg.HelperTextConatiner,"NoSelect"),style:m,children:M.jsx("div",{ref:g,className:bt.clsx(jg.HelperText,jg[E]),children:_})})]})},vA="_ASwitch_nlcij_1",bA="_Track_nlcij_6",yA="_Truthy_nlcij_13",mA="_Thumb_nlcij_17",$1={ASwitch:vA,Track:bA,Truthy:yA,Thumb:mA},jC=n=>{const e=Vn.c(33);let t,r;if(e[0]!==n){const{useCheck:G,...N}=n;r=G,t=Bg(N),e[0]=n,e[1]=t,e[2]=r}else t=e[1],r=e[2];const[i,o]=t;let l,a,h,g;e[3]!==i?({wrapId:a,wrapProps:h,labelProps:l,...g}=i,e[3]=i,e[4]=l,e[5]=a,e[6]=h,e[7]=g):(l=e[4],a=e[5],h=e[6],g=e[7]);const[m,x]=Do(r,!1);let w;e[8]!==m||e[9]!==o||e[10]!==x?(w=G=>{var N;o.isDisabled||o.isLoading||(x==null||x(!m),(N=o.onClick)==null||N.call(o,G))},e[8]=m,e[9]=o,e[10]=x,e[11]=w):w=e[11];const _=w;let E;e[12]!==l||e[13]!==a||e[14]!==h||e[15]!==g?(E={wrapId:a,wrapProps:h,labelProps:l,...g},e[12]=l,e[13]=a,e[14]=h,e[15]=g,e[16]=E):E=e[16];let R;e[17]!==m?(R=bt.clsx($1.Track,m&&$1.Truthy),e[17]=m,e[18]=R):R=e[18];let k;e[19]!==m?(k=bt.clsx($1.Thumb,m&&$1.Truthy),e[19]=m,e[20]=k):k=e[20];let O;e[21]!==k?(O=M.jsx("div",{className:k}),e[21]=k,e[22]=O):O=e[22];let P;e[23]!==R||e[24]!==O?(P=M.jsx("div",{className:R,children:O}),e[23]=R,e[24]=O,e[25]=P):P=e[25];let z;e[26]!==_||e[27]!==o||e[28]!==P?(z=M.jsx(Wi,{...o,className:$1.ASwitch,onClick:_,children:P}),e[26]=_,e[27]=o,e[28]=P,e[29]=z):z=e[29];let H;return e[30]!==E||e[31]!==z?(H=M.jsx(lg,{...E,children:z}),e[30]=E,e[31]=z,e[32]=H):H=e[32],H},xA={palette:{"mode-1":{"common-100":"#ffffff","common-0":"#000000","neutral-99":"#fcfcfc","neutral-94":"#efefef","neutral-89":"#e2e2e2","neutral-84":"#d6d6d6","neutral-79":"#c9c9c9","neutral-73":"#bababa","neutral-65":"#a5a5a5","neutral-54":"#898989","neutral-42":"#6b6b6b","neutral-30":"#4c4c4c","neutral-20":"#333333","neutral-15":"#2c2c2c","neutral-10":"#191919","neutral-5":"#0c0c0c","cool-neutral-99":"#fcfcfc","cool-neutral-94":"#efeff0","cool-neutral-89":"#e1e2e4","cool-neutral-84":"#d4d5d7","cool-neutral-79":"#c7c8cb","cool-neutral-73":"#b7b9bc","cool-neutral-65":"#a2a4a9","cool-neutral-54":"#85888e","cool-neutral-42":"#66696f","cool-neutral-30":"#494b4f","cool-neutral-20":"#303235","cool-neutral-10":"#18191a","cool-neutral-5":"#0c0c0c","red-99":"#fff9f9","red-95":"#ffe5e5","red-90":"#ffcccc","red-84":"#ffadad","red-76":"#ff8484","red-66":"#ff5151","red-53":"#ff0f0f","red-45":"#e50000","red-34":"#a80000","red-30":"#990000","red-24":"#7a0000","red-10":"#330000","green-99":"#fafffa","green-95":"#e5ffe8","green-90":"#ccffd1","green-84":"#adffb6","green-76":"#84ff90","green-66":"#51ff62","green-48":"#00f418","green-45":"#00e517","green-34":"#00a810","green-30":"#00990f","green-24":"#007a0c","green-10":"#003305","blue-99":"#fafdff","blue-95":"#e5f3ff","blue-90":"#cce6ff","blue-84":"#add7ff","blue-76":"#84c3ff","blue-66":"#51abff","blue-53":"#0f8bff","blue-45":"#0077e5","blue-34":"#0056a8","blue-30":"#004f99","blue-24":"#003f7a","blue-10":"#001a33","orange-99":"#fffcfa","orange-95":"#ffefe5","orange-90":"#ffdecc","orange-84":"#ffcbad","orange-76":"#ffb184","orange-66":"#ff9151","orange-53":"#ff670f","orange-45":"#e55400","orange-34":"#a83d00","orange-30":"#993800","orange-24":"#7a2c00","orange-10":"#331200","violet-99":"#fcfaff","violet-95":"#eee5ff","violet-90":"#dcccff","violet-84":"#c7adff","violet-76":"#ab84ff","violet-66":"#8852ff","violet-53":"#5b0fff","violet-45":"#4900e5","violet-34":"#3500a8","violet-28":"#2d008e","violet-24":"#26007a","violet-10":"#100033","cyan-99":"#faffff","cyan-95":"#e5fdff","cyan-90":"#ccfbff","cyan-84":"#adf9ff","cyan-76":"#84f6ff","cyan-66":"#51f3ff","cyan-50":"#00edff","cyan-45":"#00d6e5","cyan-40":"#00becc","cyan-30":"#008e99","cyan-21":"#00636b","cyan-10":"#002f33","pink-99":"#fffefa","pink-95":"#ffe5f5","pink-90":"#ffccea","pink-84":"#ffadde","pink-76":"#ff84ce","pink-66":"#ff51b9","pink-53":"#ff0f9f","pink-45":"#e5008a","pink-40":"#cc007a","pink-30":"#99005b","pink-21":"#6b0040","pink-10":"#33001e","lime-99":"#fcfffa","lime-95":"#eeffe5","lime-90":"#ddffcc","lime-84":"#c8ffad","lime-76":"#adff84","lime-66":"#8bff51","lime-49":"#53f900","lime-45":"#4ce500","lime-40":"#44cc00","lime-30":"#339900","lime-21":"#236b00","lime-10":"#113300","brand-b-color":"#386fff"}},semantic:{light:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","acent-brand-fill":"blue-95","label-normal":"neutral-20","label-strong":"neutral-5","label-neutral":"neutral-73","line-normal":"neutral-79","line-strong":"neutral-65","line-neutral":"neutral-89","background-normal":"common-100","elevation-0":"common-100","elevation-10":"neutral-94","elevation-20":"neutral-73","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-84","inverse-label-strong":"neutral-99","inverse-label-neutral":"neutral-30","inverse-line-normal":"neutral-30","inverse-line-strong":"neutral-54","inverse-line-neutral":"neutral-20","inverse-elevation-0":"neutral-5","inverse-elevation-10":"neutral-10","inverse-elevation-20":"neutral-15"},dark:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","acent-brand-fill":"blue-10","label-normal":"neutral-84","label-strong":"neutral-99","label-neutral":"neutral-30","line-normal":"neutral-30","line-strong":"neutral-54","line-neutral":"neutral-20","background-normal":"neutral-5","elevation-0":"neutral-5","elevation-10":"neutral-10","elevation-20":"neutral-15","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-20","inverse-label-strong":"neutral-5","inverse-label-neutral":"neutral-73","inverse-line-normal":"neutral-79","inverse-line-strong":"neutral-65","inverse-line-neutral":"neutral-89","inverse-elevation-0":"common-100","inverse-elevation-10":"neutral-94","inverse-elevation-20":"neutral-73"}}},lc=tg.cloneDeep(xA);rr.keys(lc.semantic).forEach(n=>{const e=lc.semantic[n];rr.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const Sv=rr.keys(lc.palette),$C=rr.keys(lc.palette[Sv[0]]);function wA(){return va.paletteMode}function CA(n,e=va.paletteMode){return lc.palette[e][n]}function _A(n){return Tv(n)}const $0=[];function e3(n){va.paletteMode=n,$C.forEach(e=>document.documentElement.style.setProperty(`--${e}`,lc.palette[n][e])),$0.forEach(e=>e(n))}function t3(n,e="all"){rr.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(document.documentElement.style.setProperty(`--${r}`,i),e==="all"?Sv.forEach(o=>{lc.palette[o][r]=i}):lc.palette[e][r]=i)})}const x1=rr.keys(lc.semantic),n3=rr.keys(lc.semantic[x1[0]]);function SA(){return va.semanticMode}function EA(n,e=va.semanticMode){return lc.semantic[e][n]}function TA(n){return Tv(n)}const ev=[];function xm(n){va.semanticMode=n,document.documentElement.setAttribute("data-theme",n),n3.forEach(e=>document.documentElement.style.setProperty(`--${e}`,lc.semantic[n][e])),ev.forEach(e=>e(n)),va.save==="localStorage"?localStorage.setItem("semanticMode",n):va.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",n)}function r3(n,e=va.semanticMode){rr.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(document.documentElement.style.setProperty(`--${r}`,i),e==="all"?x1.forEach(o=>{lc.semantic[o][r]=i}):lc.semantic[e][r]=i)})}const i3=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition","Transition-Enabled"],o3=["ABase_Dimming_background-color"],l3=["ATooltip_background-color","ATooltip_color"],s3=["AButton_Primary_border","AButton_Primary_background-color","AButton_Primary_color","AButton_Secondary_border","AButton_Secondary_background-color","AButton_Secondary_color","AButton_Alter_border","AButton_Alter_background-color","AButton_Alter_color"],a3=["AInput_Primary_background-color","AInput_Primary_border","AInput_Primary_color","AInput_Primary_hover_border","AInput_Primary_focus_background-color","AInput_Primary_focus_border","AInput_Primary_placeholder_color","AInput_Secondary_background-color","AInput_Secondary_border","AInput_Secondary_color","AInput_Secondary_hover_border","AInput_Secondary_focus_border","AInput_Secondary_placeholder_color","AInput_ReadOnly_background-color","AInput_ReadOnly_border","AInput_ReadOnly_color","AInput_Error_HelperText_color","AInput_Error_background-color","AInput_Error_border","AInput_Error_color","AInput_Error_placeholder_color"],c3=["ATextArea_Primary_background-color","ATextArea_Primary_border","ATextArea_Primary_color","ATextArea_Primary_hover_border","ATextArea_Primary_focus_background-color","ATextArea_Primary_focus_border","ATextArea_Secondary_background-color","ATextArea_Secondary_border","ATextArea_Secondary_color","ATextArea_Secondary_hover_border","ATextArea_Secondary_focus_border","ATextArea_ReadOnly_background-color","ATextArea_ReadOnly_border","ATextArea_ReadOnly_color","ATextArea_Error_background-color","ATextArea_Error_border","ATextArea_Error_color","ATextArea_Error_placeholder_color"],u3=["AEditor_Primary_background-color","AEditor_Primary_border","AEditor_Primary_color","AEditor_Primary_hover_border","AEditor_Primary_focus_background-color","AEditor_Primary_focus_border","AEditor_ReadOnly_background-color","AEditor_ReadOnly_border","AEditor_ReadOnly_hover_border","AEditor_ReadOnly_focus_border","AEditor_ReadOnly_color","AEditor_Error_background-color","AEditor_Error_border","AEditor_Error_hover_border","AEditor_Error_focus_border","AEditor_Error_color","AEditor_Error_placeholder_color","AEditor_Addon_Primary_background-color","AEditor_Addon_Primary_border","AEditor_Addon_Primary_color","AEditor_Addon_Secondary_background-color","AEditor_Addon_Secondary_border","AEditor_Addon_Secondary_color","AEditor_Addon_hover_background-color","AEditor_Addon_hover_color","AEditor_Addon_focus_border","AEditor_border-radius","AEditor_Select_border-radius","AEditor_Option_border-radius"],f3=["ACheckBox_color"],h3=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],d3=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],g3=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],p3=["ATree_background-color","ATree_Indent_border","ATreeBodyHeader_border-bottom","ATreeItem_hover_background-color","ATreeItem_active_background-color","ATreeItem_select_background-color","ATreeItem_search_background-color","ATreeItem_search_border-top","ATreeItem_search_border-bottom","ATreeItem_select_color"],v3=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],b3=["ATab_IndicatorTrack_Primary_border-bottom","ATab_Indicator_Primary_background-color","ATab_Option_Secondary_border","ATab_Option_Secondary_IsSelected_border-bottom","ATab_Option_Secondary_IsDisabled_border","ATab_IndicatorTrack_Tertiary_background-color","ATab_Indicator_Tertiary_background-color","ATab_Option_Tertiary_color","ATab_Option_Tertiary_IsSelected_color","ATab_Option_Quaternary_color","ATab_Option_Quaternary_IsSelected_color"],y3=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],m3=["AFileUploader_background-color","AFileUploader_brand_color","AFileUploader_disabled_color","AFileUploader_error_color","AFileUploader_text_color"],x3=["AListView_border-thin","AListView_border-thick"],w3=["AStepper_OutCircle_background-color","AStepper_OutCircle_IsOver_background-color","AStepper_InCircle_background-color","AStepper_InCircle_IsOver_background-color","AStepper_Line_background-color","AStepper_Line_IsOver_background-color"],C3=["ADatePicker_Anchor_border","ADatePicker_Anchor_color","ADatePicker_Anchor_Placeholder_color","ADatePicker_Anchor_hover_border","ADatePicker_Anchor_focus_border","ADatePicker_Anchor_Icon_Primary_color","ADatePicker_Anchor_Icon_Secondary_color","ADatePicker_background-color","ADatePicker_border","ADatePicker_StringInputContainer_background-color","ADatePicker_String_border","ADatePicker_Prev_background-color","ADatePicker_Prev_border-right","ADatePicker_Next_background-color","ADatePicker_Next_border-left","ADatePicker_Cell_color","ADatePicker_Cell_IsNotCurrentMonth_color","ADatePicker_Cell_IsDisabled_color","ADatePicker_Cell_IsSelected_background-color","ADatePicker_Cell_IsSelected_color","ADatePicker_Cell_IsHovered_background-color"],_3=["ADateRangePicker_Anchor_border","ADateRangePicker_Anchor_color","ADateRangePicker_Anchor_Placeholder_color","ADateRangePicker_Anchor_hover_border","ADateRangePicker_Anchor_focus_border","ADateRangePicker_Anchor_Icon_Primary_color","ADateRangePicker_Anchor_Icon_Secondary_color","ADateRangePicker_background-color","ADateRangePicker_border","ADateRangePicker_StringInputContainer_background-color","ADateRangePicker_String_border","ADateRangePicker_Prev_background-color","ADateRangePicker_Prev_border-right","ADateRangePicker_Next_background-color","ADateRangePicker_Next_border-left","ADateRangePicker_Cell_color","ADateRangePicker_Cell_IsNotCurrentMonth_color","ADateRangePicker_Cell_IsDisabled_color","ADateRangePicker_Cell_IsSelected_background-color","ADateRangePicker_Cell_IsSelected_color","ADateRangePicker_Cell_IsHovered_background-color"],S3=["AIconButton_Primary_color","AIconButton_Primary_border","AIconButton_Primary_background-color","AIconButton_Primary_hover_background-color","AIconButton_Primary_active_background-color","AIconButton_Secondary_color","AIconButton_Secondary_background-color","AIconButton_Secondary_hover_background-color","AIconButton_Secondary_active_background-color"],E3=["ATableBody_TRow_border-bottom","ATableBody_TRow_IsSelected_background-color","ATableBody_TRow_IsSelectable_hover_background-color","ATableBody_TH_color","ATableBody_TD_IsMarked_background-color","ATableBody_TD_IsMarked_color","ATableBody_Resizer_hover_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerOut_background-color","ATableBody_Resizer_active_ResizerIn_background-color","ATableFooter_Button_IsSelected_background-color","ATableFooter_Button_IsSelected_color","ATableFooter_Button_IsDisabled_color","ATableFilter_SubFilters_background-color","ATableFilter_SubFilters_border","ATableFilter_Icon_color","ATableFilter_Alert_color"],T3=["ADivideFrame_DividerInner_background-color"],A3=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],R3=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],I3=["AWrap_Error_color"],k3=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],M3=["AChip_background-color","AChip_color","AChip_border","AChip_hover_background-color","AChip_hover_color","AChip_DeleteButton_border","AChip_DeleteButton_color","AChip_DeleteButton_hover_border","AChip_DeleteButton_hover_color"],AA=[...i3,...o3,...l3,...s3,...a3,...c3,...u3,...f3,...h3,...d3,...g3,...p3,...v3,...b3,...y3,...m3,...x3,...w3,...C3,..._3,...S3,...E3,...T3,...A3,...R3,...I3,...k3,...M3],Ev={"Body-background-color":"var(--background-normal)","Body-color":"var(--label-normal)","Body-transition":"background-color var(--Transition), color var(--Transition)",Font:"400 16px pretendard","Scrollbar-handle":"var(--label-neutral)","Scrollbar-handle-hover":"var(--label-normal)","Scrollbar-handle-active":"var(--label-strong)","Scrollbar-track":"var(--elevation-10)","Scrollbar-border-radius":"6px","Scrollbar-width":"12px",Transition:"300ms","Transition-Enabled":"1","ABase_Dimming_background-color":"var(--elevation-0)","ATooltip_background-color":"var(--inverse-elevation-0)",ATooltip_color:"var(--inverse-label-strong)",AButton_Primary_border:"none","AButton_Primary_background-color":"var(--acent-brand)",AButton_Primary_color:"var(--static-white)",AButton_Secondary_border:"1px solid var(--elevation-10)","AButton_Secondary_background-color":"var(--elevation-10)",AButton_Secondary_color:"var(--label-normal)",AButton_Alter_border:"1px solid var(--line-normal)","AButton_Alter_background-color":"var(--elevation-0)",AButton_Alter_color:"var(--label-normal)","AInput_Primary_background-color":"var(--elevation-0)",AInput_Primary_border:"1px solid var(--line-normal)",AInput_Primary_color:"var(--label-normal)",AInput_Primary_hover_border:"1px solid var(--line-strong)","AInput_Primary_focus_background-color":"var(--elevation-10)",AInput_Primary_focus_border:"1px solid var(--line-strong)",AInput_Primary_placeholder_color:"var(--label-neutral)","AInput_Secondary_background-color":"var(--elevation-0)",AInput_Secondary_border:"1px solid var(--line-normal)",AInput_Secondary_color:"var(--label-normal)",AInput_Secondary_hover_border:"1px solid var(--line-strong)",AInput_Secondary_focus_border:"1px solid var(--line-strong)",AInput_Secondary_placeholder_color:"var(--label-neutral)","AInput_ReadOnly_background-color":"var(--elevation-10)",AInput_ReadOnly_border:"none",AInput_ReadOnly_color:"var(--label-normal)",AInput_Error_HelperText_color:"var(--alert-danger)","AInput_Error_background-color":"inherit",AInput_Error_border:"1px solid var(--line-normal)",AInput_Error_color:"var(--label-normal)",AInput_Error_placeholder_color:"var(--label-neutral)","ATextArea_Primary_background-color":"var(--elevation-0)",ATextArea_Primary_border:"1px solid var(--line-normal)",ATextArea_Primary_color:"var(--label-normal)",ATextArea_Primary_hover_border:"1px solid var(--line-strong)","ATextArea_Primary_focus_background-color":"var(--elevation-10)",ATextArea_Primary_focus_border:"1px solid var(--line-strong)","ATextArea_Secondary_background-color":"var(--elevation-0)",ATextArea_Secondary_border:"1px solid var(--line-normal)",ATextArea_Secondary_color:"var(--label-normal)",ATextArea_Secondary_hover_border:"1px solid var(--line-strong)",ATextArea_Secondary_focus_border:"1px solid var(--line-strong)","ATextArea_ReadOnly_background-color":"var(--elevation-10)",ATextArea_ReadOnly_border:"none",ATextArea_ReadOnly_color:"var(--label-normal)","ATextArea_Error_background-color":"inherit",ATextArea_Error_border:"1px solid var(--line-normal)",ATextArea_Error_color:"var(--label-normal)",ATextArea_Error_placeholder_color:"var(--label-neutral)","AEditor_Primary_background-color":"var(--elevation-0)",AEditor_Primary_border:"1px solid var(--line-normal)",AEditor_Primary_color:"var(--label-normal)",AEditor_Primary_hover_border:"1px solid var(--line-strong)","AEditor_Primary_focus_background-color":"var(--elevation-0)",AEditor_Primary_focus_border:"1px solid var(--line-strong)","AEditor_ReadOnly_background-color":"var(--elevation-0)",AEditor_ReadOnly_border:"1px solid var(--line-normal)",AEditor_ReadOnly_hover_border:"1px solid var(--line-strong)",AEditor_ReadOnly_focus_border:"1px solid var(--line-strong)",AEditor_ReadOnly_color:"var(--label-normal)","AEditor_Error_background-color":"inherit",AEditor_Error_border:"1px solid var(--alert-danger)",AEditor_Error_color:"var(--alert-danger)",AEditor_Error_hover_border:"1px solid var(--alert-danger)",AEditor_Error_focus_border:"1px solid var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AFileUploader_background-color":"var(--background-normal)",AFileUploader_brand_color:"var(--acent-brand)",AFileUploader_disabled_color:"var(--label-neutral)",AFileUploader_error_color:"var(--alert-danger)",AFileUploader_text_color:"var(--label-normal)","AListView_border-thin":"1px solid var(--line-neutral)","AListView_border-thick":"3px solid var(--line-neutral)","AStepper_OutCircle_background-color":"transparent","AStepper_OutCircle_IsOver_background-color":"var(--elevation-10)","AStepper_InCircle_background-color":"var(--elevation-20)","AStepper_InCircle_IsOver_background-color":"var(--label-normal)","AStepper_Line_background-color":"var(--line-neutral)","AStepper_Line_IsOver_background-color":"var(--label-normal)",ADatePicker_Anchor_border:"1px solid var(--line-normal)",ADatePicker_Anchor_color:"var(--label-normal)",ADatePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADatePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADatePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADatePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADatePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADatePicker_background-color":"var(--elevation-0)",ADatePicker_border:"1px solid var(--line-neutral)","ADatePicker_StringInputContainer_background-color":"var(--label-neutral)",ADatePicker_String_border:"1px solid var(--label-normal)","ADatePicker_Prev_background-color":"var(--elevation-10)","ADatePicker_Prev_border-right":"6px solid var(--label-normal)","ADatePicker_Next_background-color":"var(--elevation-10)","ADatePicker_Next_border-left":"6px solid var(--label-normal)",ADatePicker_Cell_color:"var(--label-normal)",ADatePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADatePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADatePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADatePicker_Cell_IsSelected_color:"var(--label-normal)","ADatePicker_Cell_IsHovered_background-color":"var(--elevation-10)",ADateRangePicker_Anchor_border:"1px solid var(--line-normal)",ADateRangePicker_Anchor_color:"var(--label-normal)",ADateRangePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADateRangePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADateRangePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADateRangePicker_background-color":"var(--elevation-0)",ADateRangePicker_border:"1px solid var(--line-neutral)","ADateRangePicker_StringInputContainer_background-color":"var(--label-neutral)",ADateRangePicker_String_border:"1px solid var(--label-normal)","ADateRangePicker_Prev_background-color":"var(--elevation-10)","ADateRangePicker_Prev_border-right":"6px solid var(--label-normal)","ADateRangePicker_Next_background-color":"var(--elevation-10)","ADateRangePicker_Next_border-left":"6px solid var(--label-normal)",ADateRangePicker_Cell_color:"var(--label-normal)",ADateRangePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADateRangePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADateRangePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADateRangePicker_Cell_IsSelected_color:"var(--label-normal)","ADateRangePicker_Cell_IsHovered_background-color":"var(--elevation-10)",AIconButton_Primary_color:"var(--label-normal)",AIconButton_Primary_border:"1px solid var(--line-normal)","AIconButton_Primary_background-color":"var(--elevation-0)","AIconButton_Primary_hover_background-color":"var(--elevation-10)","AIconButton_Primary_active_background-color":"var(--elevation-20)",AIconButton_Secondary_color:"var(--label-normal)","AIconButton_Secondary_background-color":"var(--elevation-0)","AIconButton_Secondary_hover_background-color":"var(--elevation-10)","AIconButton_Secondary_active_background-color":"var(--elevation-20)","ATableBody_TRow_border-bottom":"1px solid var(--line-normal)","ATableBody_TRow_IsSelected_background-color":"var(--elevation-10)","ATableBody_TRow_IsSelectable_hover_background-color":"var(--elevation-10)",ATableBody_TH_color:"var(--label-neutral)","ATableBody_TD_IsMarked_background-color":"yellow",ATableBody_TD_IsMarked_color:"var(--label-normal)","ATableBody_Resizer_hover_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerOut_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerIn_background-color":"var(--line-neutral)","ATableFooter_Button_IsSelected_background-color":"var(--elevation-10)",ATableFooter_Button_IsSelected_color:"var(--label-normal)",ATableFooter_Button_IsDisabled_color:"var(--label-neutral)","ATableFilter_SubFilters_background-color":"var(--elevation-0)",ATableFilter_SubFilters_border:"1px solid var(--line-normal)",ATableFilter_Icon_color:"var(--label-normal)",ATableFilter_Alert_color:"var(--alert-danger)","ADivideFrame_DividerInner_background-color":"var(--line-normal)","AFloatMenu_background-color":"var(--elevation-0)","AFloatMenu_hover_background-color":"var(--elevation-10)",AFloatMenu_color:"var(--label-normal)",AFloatMenu_border:"1px solid var(--line-neutral)","ALoadingBorder_background-color":"var(--label-normal)","ALoadingBorder_ProgressBar_background-color":"var(--elevation-0)","ALoadingBorder_Cover_background-color":"var(--label-normal)",AWrap_Error_color:"var(--alert-danger)",ARadioSelect_RadioButton_border:"1px solid var(--line-normal)","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color":"var(--acent-brand)","AChip_background-color":"var(--elevation-10)",AChip_color:"var(--label-normal)",AChip_border:"1px solid var(--line-normal)","AChip_hover_background-color":"var(--elevation-20)",AChip_hover_color:"var(--label-normal)",AChip_DeleteButton_border:"9px solid var(--line-normal)",AChip_DeleteButton_color:"var(--label-normal)",AChip_DeleteButton_hover_border:"9px solid var(--line-strong)",AChip_DeleteButton_hover_color:"var(--label-normal)"};function RA(n){return Ev[n]}function IA(n){return Tv(n)}function L3(n){rr.keys(n).forEach(t=>{const r=n[t];r!==void 0&&(document.documentElement.style.setProperty(`--${t}`,r),Ev[t]=r)})}function kA(n){rr.keys(n).forEach(t=>{const r=n[t];if(r===void 0)return;const i=lc.semantic[va.semanticMode][r];i!==void 0&&(document.documentElement.style.setProperty(t,i),Ev[t]=i)})}const va={paletteMode:Sv[0],semanticMode:x1[0],save:"",followDeviceSetting:!1};function MA({semanticMode:n,save:e,followDeviceSetting:t}){if(t!==void 0&&(va.followDeviceSetting=t,t)){const r=window.matchMedia("(prefers-color-scheme: dark)"),i=l=>{va.semanticMode=l.matches?"dark":"light"};i(r);const o=l=>i(l);r.addEventListener("change",o)}if(e!==void 0){if(va.save=e,e==="localStorage"){const r=localStorage.getItem("semanticMode");x1.includes(r)&&(va.semanticMode=r)}else if(e==="sessionStorage"){const r=sessionStorage.getItem("semanticMode");x1.includes(r)&&(va.semanticMode=r)}}n!==void 0&&(va.semanticMode=n),e3(va.paletteMode),xm(va.semanticMode),t3(lc.palette[va.paletteMode]),r3(lc.semantic[va.semanticMode]),L3(Ev)}function LA(n){n.type==="semanticModeChange"?ev.push(n.listener):n.type==="paletteModeChange"?$0.push(n.listener):console.error("AThemes.addEventListener : parameter is not valid")}function OA(n){if(n.type==="semanticModeChange"){const e=ev.indexOf(n.listener);e!==-1&&ev.splice(e,1)}else if(n.type==="paletteModeChange"){const e=$0.indexOf(n.listener);e!==-1&&$0.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function Tv(n){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(n);return t===""&&(t=e.getPropertyValue(`--${n}`)),t}function PA(n){Object.assign(bt.additionalClasses,n),bt.updateKeys(),bt.additionalClasses=bt.additionalClasses}const pp={getCurrentPaletteMode:wA,getPaletteValue:CA,getPaletteDeepValue:_A,changePaletteMode:e3,editPalette:t3,getCurrentSemanticMode:SA,getSemanticValue:EA,getSemanticDeepValue:TA,changeSemanticMode:xm,editSemantic:r3,getComponentStyleValue:RA,getComponentStyleDeepValue:IA,editComponentStyle:L3,editComponentStyleWithSemantic:kA,init:MA,addEventListener:LA,removeEventListener:OA,getDeepValue:Tv,addClasses:PA},DA=n=>{const e=Vn.c(9),{onChange:t,onClick:r,type:i,...o}=n,l=i===void 0?"Icon":i,[a,h]=B.useState(pp.getCurrentSemanticMode()==="dark"?"Moon":"Sun");let g;e[0]!==r||e[1]!==t?(g=x=>{const w=pp.getCurrentSemanticMode();let _="light";w==="light"?_="dark":w==="dark"&&(_="light"),pp.changeSemanticMode(_),h(NA[_]),t==null||t(_),r==null||r(x)},e[0]=r,e[1]=t,e[2]=g):g=e[2];const m=g;if(l==="Icon")return M.jsx(Ba,{...o,className:bt.clsx(Tp.AThemeButton,o.className,"IsInteractive"),icon:a,type:"Raw",onClick:m});if(l==="Switch"){let x;e[3]===Symbol.for("react.memo_cache_sentinel")?(x=pp.getCurrentSemanticMode(),e[3]=x):x=e[3];let w;e[4]!==m?(w=[x==="dark",m],e[4]=m,e[5]=w):w=e[5];let _;return e[6]!==o||e[7]!==w?(_=M.jsx(jC,{...o,useCheck:w}),e[6]=o,e[7]=w,e[8]=_):_=e[8],_}},NA={light:"Sun",dark:"Moon"},FA="_ACheckBoxWrap_1ozuz_1",BA="_ACheckBox_1ozuz_1",G2={ACheckBoxWrap:FA,ACheckBox:BA},w1=n=>{const e=Vn.c(16),{useCheck:t,isIndeterminate:r,isDisabled:i,isLoading:o,onClick:l,...a}=n,[h,g]=Do(t,!1);let m;e[0]!==h||e[1]!==l||e[2]!==i||e[3]!==o||e[4]!==g?(m=O=>{i||o||(g==null||g(!h),l==null||l(O))},e[0]=h,e[1]=l,e[2]=i,e[3]=o,e[4]=g,e[5]=m):m=e[5];const x=m,w=Wi,_=bt.clsx(a.className,G2.ACheckBoxWrap),E=r?"Check.Indeterminate":h?"Check.Checked":"Check.UnChecked";let R;e[6]!==E?(R=M.jsx(uo,{className:G2.ACheckBox,icon:E}),e[6]=E,e[7]=R):R=e[7];let k;return e[8]!==w||e[9]!==a||e[10]!==i||e[11]!==o||e[12]!==x||e[13]!==_||e[14]!==R?(k=M.jsx(w,{...a,className:_,isDisabled:i,isLoading:o,onClick:x,children:R}),e[8]=w,e[9]=a,e[10]=i,e[11]=o,e[12]=x,e[13]=_,e[14]=R,e[15]=k):k=e[15],k};function zA(n){return typeof n=="function"}function HA(n,e){return zA(n)?n(e):n}const Vr={getContent:HA};class Y2{constructor(e){Ee(this,"capacity");Ee(this,"cache",new Map);this.capacity=e}get(e){if(!this.cache.has(e))return;const t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}put(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(e,t)}delete(e){return this.cache.delete(e)}clear(){this.cache.clear()}entries(){return Array.from(this.cache.entries())}}const Rg=class Rg{constructor(){Ee(this,"databases",{});Ee(this,"caches",{});Ee(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return Rg.instance||(Rg.instance=new Rg),Rg.instance}getCache(e,t){const r=`${e}_${t}`;return this.caches[r]||(this.caches[r]=new Y2(this.DEFAULT_CACHE_SIZE)),this.caches[r]}async getDB(e,t,r=1){return this.databases[e]?this.databases[e]:new Promise((i,o)=>{if(!window.indexedDB){console.error("이 브라우저는 IndexedDB를 지원하지 않습니다."),o(new Error("IndexedDB not supported"));return}const l=window.indexedDB.open(e,r);l.onerror=a=>{console.error("IndexedDB 연결 오류:",a.target.error),o(a.target.error)},l.onsuccess=a=>{const h=a.target.result;this.databases[e]=h,i(h)},l.onupgradeneeded=a=>{const h=a.target.result;h.objectStoreNames.contains(t)||h.createObjectStore(t,{keyPath:"id"}).createIndex("updatedAt_idx","updatedAt",{unique:!1})}})}async save(e,t,r){this.getCache(e,t).put(r.id,{...r});const a=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((h,g)=>{const m=a.put(r);m.onsuccess=()=>h(),m.onerror=x=>{console.error("데이터 저장 오류:",x.target.error),g(x.target.error)}})}async batchSave(e,t,r){if(r.length===0)return;const i=this.getCache(e,t);r.forEach(h=>i.put(h.id,{...h}));const l=(await this.getDB(e,t)).transaction([t],"readwrite"),a=l.objectStore(t);return new Promise((h,g)=>{l.oncomplete=()=>h(),l.onerror=m=>{console.error("배치 저장 오류:",m.target.error),g(m.target.error)},r.forEach(m=>a.put(m))})}async get(e,t,r){const i=this.getCache(e,t),o=i.get(r);if(o)return o;const h=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((g,m)=>{const x=h.get(r);x.onsuccess=()=>{const w=x.result;w&&i.put(r,w),g(w||null)},x.onerror=w=>{console.error("데이터 조회 오류:",w.target.error),m(w.target.error)}})}async getByIndex(e,t,r,i){const h=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(r);return new Promise((g,m)=>{const x=h.getAll(i);x.onsuccess=()=>{const w=x.result,_=this.getCache(e,t);w.forEach(E=>{E&&E.id&&_.put(E.id,E)}),g(w)},x.onerror=w=>{console.error("인덱스 조회 오류:",w.target.error),m(w.target.error)}})}async delete(e,t,r){this.getCache(e,t).delete(r);const a=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((h,g)=>{const m=a.delete(r);m.onsuccess=()=>h(),m.onerror=x=>{console.error("데이터 삭제 오류:",x.target.error),g(x.target.error)}})}async batchDelete(e,t,r){if(r.length===0)return;const i=this.getCache(e,t);r.forEach(h=>i.delete(h));const l=(await this.getDB(e,t)).transaction([t],"readwrite"),a=l.objectStore(t);return new Promise((h,g)=>{l.oncomplete=()=>h(),l.onerror=m=>{console.error("배치 삭제 오류:",m.target.error),g(m.target.error)},r.forEach(m=>a.delete(m))})}async getAll(e,t){const o=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((l,a)=>{const h=o.getAll();h.onsuccess=()=>{const g=h.result,m={},x=this.getCache(e,t);g.forEach(w=>{w.id&&(m[w.id]=w,x.put(w.id,w))}),l(m)},h.onerror=g=>{console.error("데이터 전체 조회 오류:",g.target.error),a(g.target.error)}})}async clear(e,t){this.getCache(e,t).clear();const l=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((a,h)=>{const g=l.clear();g.onsuccess=()=>a(),g.onerror=m=>{console.error("데이터 초기화 오류:",m.target.error),h(m.target.error)}})}getCached(e,t,r){return this.getCache(e,t).get(r)||null}clearCached(e,t){this.getCache(e,t).clear()}setCacheSize(e,t,r){const i=`${e}_${t}`,l=this.getCache(e,t).entries();this.caches[i]=new Y2(r);for(const[a,h]of l)this.caches[i].get(a)===void 0&&a!==void 0&&this.caches[i].put(a,h)}};Ee(Rg,"instance");let ky=Rg;const Sh=ky.getInstance(),Ah={save:(n,e,t)=>Sh.save(n,e,t),get:(n,e,t)=>Sh.get(n,e,t),delete:(n,e,t)=>Sh.delete(n,e,t),getAll:(n,e)=>Sh.getAll(n,e),clear:(n,e)=>Sh.clear(n,e),batchSave:(n,e,t)=>Sh.batchSave(n,e,t),batchDelete:(n,e,t)=>Sh.batchDelete(n,e,t),getByIndex:(n,e,t,r)=>Sh.getByIndex(n,e,t,r),getCached:(n,e,t)=>Sh.getCached(n,e,t),clearCached:(n,e)=>Sh.clearCached(n,e),setCacheSize:(n,e,t)=>Sh.setCacheSize(n,e,t)};function O3(n,e,t={}){const{dataFieldName:r="data"}=t,[i,o]=B.useState(!1),[l,a]=B.useState(null),h=B.useRef(new Map);B.useEffect(()=>{const N=h.current;return()=>{N.forEach(J=>J.abort()),N.clear()}},[]);const g=B.useCallback(async(N,J)=>{try{o(!0),a(null);const Y=h.current,K=Y.get(N);K&&K.abort();const fe=new AbortController;Y.set(N,fe);const X=await J();return h.current.delete(N),X}catch(Y){return Y instanceof Error&&Y.name==="AbortError"||a(Y instanceof Error?Y:new Error(String(Y))),null}finally{o(!1)}},[]),m=B.useCallback(async(N,J)=>N?await g(`save_${N}`,async()=>(await Ah.save(n,e,{id:N,[r]:J,updatedAt:new Date().toISOString()}),!0))===!0:!1,[n,e,r,g]),x=B.useCallback(async N=>N.length?await g(`batch_save_${Date.now()}`,async()=>{const J=N.map(Y=>({id:Y.id,[r]:Y.data,updatedAt:new Date().toISOString()}));return await Ah.batchSave(n,e,J),!0})===!0:!1,[n,e,r,g]),w=B.useCallback(async N=>N?await g(`get_${N}`,async()=>{const J=await Ah.get(n,e,N);return(J==null?void 0:J[r])||null}):null,[n,e,r,g]),_=B.useCallback(N=>{if(!N)return null;const J=Ah.getCached(n,e,N);return(J==null?void 0:J[r])||null},[n,e,r]),E=B.useCallback(async N=>N?await g(`delete_${N}`,async()=>(await Ah.delete(n,e,N),!0))===!0:!1,[n,e,g]),R=B.useCallback(async N=>N.length?await g(`batch_delete_${Date.now()}`,async()=>(await Ah.batchDelete(n,e,N),!0))===!0:!1,[n,e,g]),k=B.useCallback(async()=>await g(`get_all_${Date.now()}`,async()=>{const N=await Ah.getAll(n,e);return Object.entries(N).reduce((J,[Y,K])=>(J[Y]=K[r],J),{})})||{},[n,e,r,g]),O=B.useCallback(async()=>await g(`clear_all_${Date.now()}`,async()=>(await Ah.clear(n,e),!0))===!0,[n,e,g]),P=B.useCallback(N=>{const J=h.current.get(N);J&&(J.abort(),h.current.delete(N))},[]),z=B.useCallback(()=>{new Map(h.current).forEach(J=>J.abort()),h.current.clear()},[]),H=B.useCallback(N=>{Ah.setCacheSize(n,e,N)},[n,e]),G=B.useCallback(()=>{Ah.clearCached(n,e)},[n,e]);return{save:m,get:w,delete:E,getAll:k,clearAll:O,batchSave:x,batchDelete:R,getCached:_,setCacheSize:H,clearCache:G,cancelOperation:P,cancelAllOperations:z,isLoading:i,error:l}}const WA="LayoutDB",UA="layouts";function P3(){const n=Vn.c(24);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e={dataFieldName:"lengths"},n[0]=e):e=n[0];const t=O3(WA,UA,e);let r;n[1]===Symbol.for("react.memo_cache_sentinel")?(r={},n[1]=r):r=n[1];const[i,o]=B.useState(r);let l;n[2]===Symbol.for("react.memo_cache_sentinel")?(l={},n[2]=l):l=n[2];const a=B.useRef(l);let h;n[3]!==t?(h=async(G,N)=>await t.save(G,N),n[3]=t,n[4]=h):h=n[4];const g=h;let m;n[5]!==t?(m=async G=>await t.get(G),n[5]=t,n[6]=m):m=n[6];const x=m;let w;n[7]!==t?(w=G=>t.getCached(G),n[7]=t,n[8]=w):w=n[8];const _=w;let E;n[9]!==x||n[10]!==_||n[11]!==i?(E=G=>{const N=_(G);return N?{data:N,isLoaded:!0}:a.current[G]!==void 0?{data:a.current[G],isLoaded:!!i[G]}:(i[G]||(a.current[G]=null,x(G).then(J=>{a.current[G]=J,o(Y=>({...Y,[G]:!0}))})),{data:null,isLoaded:!1})},n[9]=x,n[10]=_,n[11]=i,n[12]=E):E=n[12];const R=E;let k;n[13]!==t?(k=async G=>(o(N=>{const J={...N};return delete J[G],J}),a.current[G]!==void 0&&delete a.current[G],await t.delete(G)),n[13]=t,n[14]=k):k=n[14];const O=k;let P;n[15]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{o({}),a.current={}},n[15]=P):P=n[15];const z=P;let H;return n[16]!==t.error||n[17]!==t.isLoading||n[18]!==O||n[19]!==x||n[20]!==_||n[21]!==R||n[22]!==g?(H={save:g,get:x,getCached:_,getSync:R,deleteItem:O,resetSyncState:z,isLoading:t.isLoading,error:t.error},n[16]=t.error,n[17]=t.isLoading,n[18]=O,n[19]=x,n[20]=_,n[21]=R,n[22]=g,n[23]=H):H=n[23],H}const GA="_ARowFrame_1v0ao_1",YA="_AColFrame_1v0ao_7",VA="_AOverflowFrame_1v0ao_13",ZA="_ADivideFrame_1v0ao_22",XA="_Row_1v0ao_30",KA="_Col_1v0ao_33",JA="_FadeIn_1v0ao_36",QA="_NoTransition_1v0ao_39",qA="_ChildFrame_1v0ao_43",jA="_ExpandButtonOverlay_1v0ao_61",$A="_Divider_1v0ao_73",e6="_IsMoving_1v0ao_81",t6="_NoDraggable_1v0ao_81",n6="_DividerInner_1v0ao_84",r6="_IsClicked_1v0ao_109",i6="_RemoteButton_1v0ao_144",o6="_isExpanded_1v0ao_151",l6="_ExpandButton_1v0ao_61",Il={ARowFrame:GA,AColFrame:YA,AOverflowFrame:VA,ADivideFrame:ZA,Row:XA,Col:KA,FadeIn:JA,NoTransition:QA,ChildFrame:qA,ExpandButtonOverlay:jA,Divider:$A,IsMoving:e6,NoDraggable:t6,DividerInner:n6,IsClicked:r6,RemoteButton:i6,isExpanded:o6,"fade-in":"_fade-in_1v0ao_1",ExpandButton:l6},Ml=n=>{const e=Vn.c(5);let t;e[0]!==n.className?(t=bt.clsx(Il.ARowFrame,n.className),e[0]=n.className,e[1]=t):t=e[1];let r;return e[2]!==n||e[3]!==t?(r=M.jsx(Wi,{...n,className:t,children:n.children}),e[2]=n,e[3]=t,e[4]=r):r=e[4],r},D3=n=>{const e=Vn.c(5);let t;e[0]!==n.className?(t=bt.clsx(Il.AColFrame,n.className),e[0]=n.className,e[1]=t):t=e[1];let r;return e[2]!==n||e[3]!==t?(r=M.jsx("div",{...n,className:t,children:n.children}),e[2]=n,e[3]=t,e[4]=r):r=e[4],r},nd=n=>{const{tooltip:e,children:t,abaseRef:r,isDisabled:i,className:o,noOverflowTooltip:l,...a}=n,h=B.useRef(null),g=B.useMemo(()=>r??h,[r]),[m,x]=B.useState(!1),w=B.useCallback(()=>x(!0),[]),_=B.useCallback(()=>x(!1),[]);B.useEffect(()=>{const R=g.current;if(R)return R.addEventListener("mouseenter",w),R.addEventListener("mouseleave",_),()=>{R.removeEventListener("mouseenter",w),R.removeEventListener("mouseleave",_)}},[g,w,_]);const E=B.useMemo(()=>{if(i)return"";if(l||!m)return e;const R=g.current;return R&&R.scrollWidth>R.clientWidth?t:e},[g,i,t,e,l,m]);return M.jsx(Wi,{...a,children:t,abaseRef:g,className:bt.clsx(Il.AOverflowFrame,o),isDisabled:i,tooltip:E})},N3=n=>{const e=Vn.c(2),{value:t,map:r}=n;if(r[t]===void 0)return r.fallback;const i=r[t];let o;return e[0]!==i?(o=M.jsx(B.Suspense,{children:i}),e[0]=i,e[1]=o):o=e[1],o},F3=B.memo(n=>{const{pk:e,direction:t="Row",lefts:r,minLength:i=40,expandLayerLength:o=40,children:l,childStyle:a,childClassName:h,dividerStyle:g,dividerClassName:m,dividerPadding:x,dividerInnerClassName:w,dividerInnerStyle:_,noDividerDraggable:E,resources:R,showExpandButton:k,...O}=n,P=B.useMemo(()=>({...Nr.ADivideFrame,...R}),[R]),z=B.useRef(null),H=B.useRef(!1),G=B.useRef(!0),N=B.useRef(r),[J,Y]=B.useState(),[K,fe]=B.useState("FadeOut"),[X,te]=B.useState(null),[ne,ue]=B.useState({width:0,height:0}),{save:se,get:$,deleteItem:re}=P3(),de=B.useCallback(()=>{G.current&&requestAnimationFrame(()=>{G.current=!1,fe("FadeIn")})},[]),be=B.useMemo(()=>{let et;return Array.isArray(l)?et=l:et=[l],et.filter(Boolean)},[l]),oe=B.useMemo(()=>be.length,[be.length]),Q=B.useMemo(()=>be.length-1,[be.length]),ge=B.useMemo(()=>e?String(e):"",[e]),Te=B.useMemo(()=>!!e,[e]),He=B.useCallback(async()=>{if(!Te){te(r),de();return}try{const et=await $(ge);et?te(et):(te(r),se(ge,r)),de()}catch{te(r),de()}},[Te,de,ge,$,r,se]);B.useEffect(()=>{He()},[He]),B.useEffect(()=>{const et=z.current;if(!et)return;const st=et.getBoundingClientRect();ue({width:st.width,height:st.height});const dt=new ResizeObserver(Mt=>{for(const ot of Mt){const{width:nt,height:Ot}=ot.contentRect;ue({width:nt,height:Ot})}});return dt.observe(et),()=>dt.disconnect()},[]),B.useEffect(()=>{N.current!==r&&(N.current=r,H.current||(te(r),Te&&se(ge,r)),H.current=!1)},[Te,r,ge,se]);const xe=B.useMemo(()=>{const et=x??0;return typeof i=="number"?Array(oe).fill(i+et):i.map(st=>st+et)},[i,oe,x]),Ne=B.useMemo(()=>typeof o=="number"?Array(oe).fill(o):o,[o,oe]),Me=B.useMemo(()=>(J==null?void 0:J.lefts)||X||[],[J,X]),Be=B.useRef({x:0,y:0}),ke=B.useCallback((et,st,dt)=>{const Mt=Me[et],ot=et===0?0:Me[et-1],nt=Mt-ot,Ot={...a,...s6(t,nt,st)};return x!==void 0&&(t==="Row"?(dt||(Ot.paddingLeft=x),st||(Ot.paddingRight=x)):(dt||(Ot.paddingTop=x),st||(Ot.paddingBottom=x))),Ot},[Me,a,t,x]),Ie=B.useCallback((et,st)=>{if(st)return dt=>{if(!z.current||!X)return;G.current=!1;const Mt=z.current;Be.current={x:dt.clientX,y:dt.clientY};const ot=Mt.getBoundingClientRect(),nt=t==="Row"?ot.left:ot.top,Ot=t==="Row"?ot.width:ot.height;let Zt=[...X];Y({idx:et,lefts:Zt});const Rt=Ft=>{Zt=f6(X,t,et,Ft,nt,Ot,xe),Y({idx:et,lefts:Zt})},tn=()=>{Y(void 0),te(Zt),H.current=!0,Te&&se(ge,Zt),window.removeEventListener("mousemove",Rt),window.removeEventListener("mouseup",tn)};window.addEventListener("mousemove",Rt),window.addEventListener("mouseup",tn)}},[X,t,xe,Te,ge,se]),ze=B.useCallback(et=>{if(et)return()=>{te(r),H.current=!1,Y(void 0),Te&&re(ge)}},[r,Te,ge,re]),Ke=B.useMemo(()=>be.map(()=>!E),[be,E]),Oe=B.useMemo(()=>{if(!k||!z.current||K!=="FadeIn")return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};if(!ne.width)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};const et=z.current.getBoundingClientRect(),st=t==="Row"?et.width:et.height;if(st===0)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};const dt=[];for(let nt=0;nt<oe;nt++){const Ot=Me[nt],Zt=nt===0?0:Me[nt-1],Rt=nt===Q?st-Zt:Ot-Zt,tn=Array.isArray(Ne)?Ne[nt]:Ne[0];dt.push({panelIndex:nt,actualLength:Rt,expandLength:tn,isCollapsed:Rt<=tn})}const Mt=dt.filter(nt=>nt.isCollapsed).map(nt=>nt.panelIndex);if(Mt.length===0)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};let ot=-1;return Mt.includes(0)?ot=0:Mt.includes(Q)?ot=Q:ot=Mt[0],{hasCollapsedAreas:!0,collapsedAreaIndex:ot}},[k,K,t,oe,Q,Me,Ne,ne]),ht=B.useCallback(()=>{k&&(te(r),H.current=!1,Te&&se(ge,r),G.current=!1)},[k,r,Te,ge,se]),$e=B.useMemo(()=>Ke.map((et,st)=>Ie(st,et)),[Ke,Ie]),it=B.useMemo(()=>Ke.map(et=>ze(et)),[Ke,ze]);return X?M.jsx("div",{...O,ref:z,className:bt.clsx(Il.ADivideFrame,n.className,Il[t],Il[K],G.current&&Il.NoTransition),children:be.map((et,st)=>{const dt=st===0,Mt=st===Q,ot=ke(st,Mt,dt),nt=Me[st],Ot=Ke[st],Zt=$e[st],Rt=it[st];return M.jsxs(B.Fragment,{children:[M.jsxs("div",{style:ot,className:bt.clsx(Il.ChildFrame,h,J&&Il.IsMoving,G.current&&Il.NoTransition,Il[t]),children:[et,k&&Oe.hasCollapsedAreas&&Oe.collapsedAreaIndex===st&&M.jsxs(M.Fragment,{children:[M.jsx(Wi,{className:bt.clsx(Il.ExpandButtonOverlay,Il[t]),onClick:ht}),M.jsx(Ba,{className:bt.clsx(Il.ExpandButton,Il[t]),icon:c6(st,oe),tooltip:P.Expand,type:"Raw",style:{transform:u6(st,t)},onClick:ht})]})]}),!Mt&&M.jsx("div",{"data-nodraggable":Ot?void 0:"true",className:bt.clsx(Il.Divider,Il[t],"NoSelect",J&&Il.IsMoving,(J==null?void 0:J.idx)===st&&Il.IsClicked,G.current&&Il.NoTransition,!Ot&&Il.NoDraggable,m),style:{...g,...a6(t,nt)},onDoubleClick:Rt,onMouseDown:Zt,children:M.jsx("div",{className:bt.clsx(Il.DividerInner,w),style:{..._}})})]},st)})}):M.jsx("div",{...O,ref:z,className:bt.clsx(Il.ADivideFrame,n.className,Il[t],Il.FadeOut,Il.NoTransition),style:{...O.style,visibility:"hidden",pointerEvents:"none"}})});F3.displayName="ADivideFrame";function s6(n,e,t){return t?{}:n==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function a6(n,e){return n==="Col"?{top:e}:{left:e}}function c6(n,e){const t=n===0,r=n===e-1;return t||r?"DividerExpand":"DividerMiddle"}function u6(n,e){const t=n===0;let r="";return e==="Row"&&t?r=" rotate(180deg)":e==="Col"&&(r=t?" rotate(-90deg)":" rotate(90deg)"),`translate(-50%, -50%)${r}`}function f6(n,e,t,r,i,o,l){const a=[...n],h=e==="Row"?r.clientX-i-n[t]:r.clientY-i-n[t];if(h===0)return a;const g=l.length,m=n.length,x=t+1,w=[],_=[];let E=0;for(let O=0;O<=g;O++)w[O]=E,O<g&&(E+=l[O]);let R=0;for(let O=g-2;O>=0;O--)R+=l[O+1],_[O]=R;_[g-1]=0;let k=a[t]+h;if(h<0){if(k<=w[x])for(let O=0;O<=t;O++)a[O]=w[O+1];else if(a[t]=k,t>0)for(let O=t-1;O>=0&&k-a[O]<l[O+1];O--)a[O]=k-l[O+1],k=a[O]}else{const O=t===g-2?l[g-1]:0;if(k>=o-_[t]-O)for(let P=t;P<m;P++)a[P]=o-_[P]-(P===m-1?0:O);else if(a[t]=k,t<m-1)for(let P=x;P<m&&a[P]-k<l[P];P++)a[P]=k+l[P],k=a[P]}return a}const zg=()=>{const n=Vn.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=M.jsx("div",{style:{display:"flex",flexGrow:1}}),n[0]=e):e=n[0],e},h6="_ASpace_1okqf_1",d6={ASpace:h6},cs=n=>{const e=Vn.c(14);let t,r,i,o,l;e[0]!==n?({h:r,w:l,...t}=n,i=t,o=bt.clsx(d6.ASpace,t.className),e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5]);let a;e[6]!==t.style||e[7]!==r||e[8]!==l?(a={height:r,minHeight:r,maxHeight:r,width:l,minWidth:l,maxWidth:l,...t.style},e[6]=t.style,e[7]=r,e[8]=l,e[9]=a):a=e[9];let h;return e[10]!==i||e[11]!==o||e[12]!==a?(h=M.jsx("div",{...i,className:o,style:a}),e[10]=i,e[11]=o,e[12]=a,e[13]=h):h=e[13],h},g6="_AChipsContainer_1ag9v_1",p6="_AChip_1ag9v_1",v6="_Clickable_1ag9v_21",b6="_AChipDelete_1ag9v_26",y6="_IsHover_1ag9v_40",m6="_AChipDeleteIcon_1ag9v_45",h1={AChipsContainer:g6,AChip:p6,Clickable:v6,AChipDelete:b6,IsHover:y6,AChipDeleteIcon:m6},x6=n=>{const e=Vn.c(42);let t,r,i,o,l,a,h,g,m,x,w,_;e[0]!==n?({useLabels:_,alignItems:m,ChipStyle:l,ChipClassName:t,ChipOnDelete:o,ChipOnClick:i,ChipIcon:r,className:h,style:g,ButtonRenderer:x,gap:w,...a}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m,e[10]=x,e[11]=w,e[12]=_):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9],x=e[10],w=e[11],_=e[12]);const E=m===void 0?"flex-start":m,R=x===void 0?B3:x,k=w===void 0?8:w;let O;e[13]===Symbol.for("react.memo_cache_sentinel")?(O=[],e[13]=O):O=e[13];const[P,z]=Do(_,O);let H;e[14]!==o||e[15]!==P||e[16]!==z?(H=te=>{!z||!o||(o({label:te}),z(P.filter(ne=>ne!==te)))},e[14]=o,e[15]=P,e[16]=z,e[17]=H):H=e[17];const G=H;let N;e[18]!==t||e[19]!==r||e[20]!==i||e[21]!==l||e[22]!==G?(N=te=>{const ne={label:te};return{label:te,useLabel:[te,w6],style:Vr.getContent(l,ne),className:Vr.getContent(t,ne),icon:Vr.getContent(r,ne),onDelete:()=>G(te),onClick:i?()=>i({label:te}):void 0}},e[18]=t,e[19]=r,e[20]=i,e[21]=l,e[22]=G,e[23]=N):N=e[23];const J=N;let Y;e[24]!==h?(Y=bt.clsx(h1.AChipsContainer,h),e[24]=h,e[25]=Y):Y=e[25];let K;e[26]!==E||e[27]!==k||e[28]!==g?(K={...g,alignItems:E,gap:k},e[26]=E,e[27]=k,e[28]=g,e[29]=K):K=e[29];let fe;if(e[30]!==R||e[31]!==J||e[32]!==P){let te;e[34]!==R||e[35]!==J?(te=(ne,ue)=>M.jsx(wm,{...J(ne),ButtonRenderer:R},ue),e[34]=R,e[35]=J,e[36]=te):te=e[36],fe=P.map(te),e[30]=R,e[31]=J,e[32]=P,e[33]=fe}else fe=e[33];let X;return e[37]!==a||e[38]!==Y||e[39]!==K||e[40]!==fe?(X=M.jsx(Wi,{...a,className:Y,style:K,children:fe}),e[37]=a,e[38]=Y,e[39]=K,e[40]=fe,e[41]=X):X=e[41],X},wm=n=>{const e=Vn.c(27);let t,r,i,o,l,a,h;if(e[0]!==n){const{label:O,useLabel:P,icon:z,className:H,onDelete:G,onClick:N,ButtonRenderer:J,width:Y,style:K,...fe}=n;i=O,r=H,o=N,a=J,h=Y,l=K,t=fe,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h}else t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7];const g=a===void 0?B3:a,m=h===void 0?"fit-content":h;if(i===void 0){let O;return e[8]===Symbol.for("react.memo_cache_sentinel")?(O=M.jsx(M.Fragment,{}),e[8]=O):O=e[8],O}let x;e[9]!==r||e[10]!==o?(x=bt.clsx("NoSelect",h1.AChip,o&&h1.Clickable,o&&"IsClickable",r),e[9]=r,e[10]=o,e[11]=x):x=e[11];let w;e[12]!==l||e[13]!==m?(w={...l,width:m},e[12]=l,e[13]=m,e[14]=w):w=e[14];const _=i;let E;e[15]!==_?(E=M.jsx(nd,{children:_}),e[15]=_,e[16]=E):E=e[16];let R;e[17]!==g||e[18]!==n?(R=g({...n}),e[17]=g,e[18]=n,e[19]=R):R=e[19];let k;return e[20]!==t||e[21]!==o||e[22]!==x||e[23]!==w||e[24]!==E||e[25]!==R?(k=M.jsxs(Wi,{...t,className:x,style:w,onClick:o,children:[E,R]}),e[20]=t,e[21]=o,e[22]=x,e[23]=w,e[24]=E,e[25]=R,e[26]=k):k=e[26],k},B3=n=>{const e=Vn.c(13),{label:t,icon:r,onDelete:i,useLabel:o}=n,[,l]=Do(o,t),[a,h]=B.useState(!1);let g;e[0]!==i||e[1]!==n||e[2]!==l?(g=O=>{i&&(O.stopPropagation(),l==null||l(void 0),i(n))},e[0]=i,e[1]=n,e[2]=l,e[3]=g):g=e[3];const m=g;let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{h(!0)},e[4]=x):x=e[4];const w=x;let _;e[5]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{h(!1)},e[5]=_):_=e[5];const E=_;let R;e[6]!==m||e[7]!==r||e[8]!==a||e[9]!==i?(R=i&&M.jsxs(M.Fragment,{children:[M.jsx(zg,{}),M.jsx(cs,{w:24}),M.jsx(Wi,{className:bt.clsx(h1.AChipDelete,"IsClickable",a&&h1.IsHover)}),M.jsx(Ba,{className:h1.AChipDeleteIcon,icon:r||M.jsx(uo,{height:14,icon:"Close",stroke:"currentColor",width:14}),type:"Raw",onClick:m,onMouseEnter:w,onMouseLeave:E})]}),e[6]=m,e[7]=r,e[8]=a,e[9]=i,e[10]=R):R=e[10];let k;return e[11]!==R?(k=M.jsx(M.Fragment,{children:R}),e[11]=R,e[12]=k):k=e[12],k};function w6(){}const Mg=n=>{if(!n)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;n>=1024&&t<e.length-1;)n/=1024,t++;return`${t===0?Math.floor(n):n.toFixed(1)} ${e[t]}`},C6=n=>{let e="";n<0&&(e+="-",n=-n);const t=Math.floor(n/3600),r=Math.floor(n%3600/60),i=n%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=r.toString().padStart(2,"0")+":",e+=i.toString().padStart(2,"0"),e},_6=/[a-zA-Z0-9]/,S6=/^[a-zA-Z0-9]*$/,E6=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,T6=/^[a-zA-Z0-9._-]+$/,A6=/^[0-9a-fA-F-]+$/i,R6=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,I6=/^\S*$/,k6=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,M6=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,L6=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,O6=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,P6={hasKr:n=>/[가-힣ㄱ-ㅎㅏ-ㅣ]/.test(n),hasMalKr:n=>/[ㄱ-ㅎㅏ-ㅣ]/.test(n),hasBlank:n=>/\s/.test(n),isBlank:n=>/^\s*$/.test(n),isUuid:n=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(n),isEmail:n=>/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/.test(n),isAlphabet:n=>/^[a-zA-Z]*$/.test(n),isAlphaNumeric:n=>/^[a-zA-Z0-9]*$/.test(n),isKr:n=>/^[가-힣ㄱ-ㅎㅏ-ㅣ]*$/.test(n),isKrNumeric:n=>/^[가-힣ㄱ-ㅎㅏ-ㅣ0-9]*/.test(n),isNumeric:n=>/^[0-9]$/.test(n),isLenMinMax:(n,e)=>t=>!(n!==void 0&&t.length<n||e!==void 0&&t.length>e)},D6=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const e=Math.random()*16|0;return(n=="x"?e:e&3|8).toString(16)}),Cm={secondToTime:C6,validate:P6,FileSizeTrans:Mg,uuid:D6},N6=n=>{const e=Vn.c(52);let t,r,i,o,l,a;if(e[0]!==n){const{maxTicks:Q,interval:ge,onFinish:Te,noStartOnRender:He,actionRef:xe,...Ne}=n;l=Te,o=He,t=xe,i=Q===void 0?300:Q,r=ge===void 0?1e3:ge,a=Bg(Ne),e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a}else t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6];const[h,g]=a;let m,x,w,_;e[7]!==h?({wrapId:x,wrapProps:w,labelProps:m,..._}=h,e[7]=h,e[8]=m,e[9]=x,e[10]=w,e[11]=_):(m=e[8],x=e[9],w=e[10],_=e[11]);const[E,R]=B.useState(0),[k,O]=B.useState(!o);let P,z;e[12]!==r||e[13]!==k||e[14]!==g.isDisabled||e[15]!==g.isLoading?(P=()=>{if(!k||g.isDisabled||g.isLoading)return;const Q=setInterval(()=>R(F6),r);return()=>clearInterval(Q)},z=[r,k,g.isDisabled,g.isLoading],e[12]=r,e[13]=k,e[14]=g.isDisabled,e[15]=g.isLoading,e[16]=P,e[17]=z):(P=e[16],z=e[17]),B.useEffect(P,z);let H;e[18]!==l?(H=()=>{l==null||l(),O(!1)},e[18]=l,e[19]=H):H=e[19];const G=H;let N,J;e[20]!==i||e[21]!==G||e[22]!==g.isDisabled||e[23]!==g.isLoading||e[24]!==E?(N=()=>{E>=i&&!g.isDisabled&&!g.isLoading&&G()},J=[E,i,G,g.isDisabled,g.isLoading],e[20]=i,e[21]=G,e[22]=g.isDisabled,e[23]=g.isLoading,e[24]=E,e[25]=N,e[26]=J):(N=e[25],J=e[26]),B.useEffect(N,J);let Y;e[27]!==g.isDisabled?(Y=()=>{g.isDisabled||O(!0)},e[27]=g.isDisabled,e[28]=Y):Y=e[28];const K=Y;let fe;e[29]!==g.isDisabled?(fe=()=>{g.isDisabled||O(!1)},e[29]=g.isDisabled,e[30]=fe):fe=e[30];const X=fe;let te;e[31]!==g.isDisabled?(te=()=>{g.isDisabled||(O(!1),R(0))},e[31]=g.isDisabled,e[32]=te):te=e[32];const ne=te;let ue,se;e[33]!==t||e[34]!==ne||e[35]!==K||e[36]!==X?(ue=()=>{t&&(t.current={start:K,stop:X,reset:ne,setTicks:R})},se=[t,K,X,ne],e[33]=t,e[34]=ne,e[35]=K,e[36]=X,e[37]=ue,e[38]=se):(ue=e[37],se=e[38]),B.useEffect(ue,se);const $=i-E;let re;e[39]!==m||e[40]!==x||e[41]!==w||e[42]!==_?(re={wrapId:x,wrapProps:w,labelProps:m,..._},e[39]=m,e[40]=x,e[41]=w,e[42]=_,e[43]=re):re=e[43];let de;e[44]!==$?(de=Cm.secondToTime($>0?$:0),e[44]=$,e[45]=de):de=e[45];let be;e[46]!==g||e[47]!==de?(be=M.jsx(Wi,{...g,children:de}),e[46]=g,e[47]=de,e[48]=be):be=e[48];let oe;return e[49]!==re||e[50]!==be?(oe=M.jsx(lg,{...re,children:be}),e[49]=re,e[50]=be,e[51]=oe):oe=e[51],oe};function F6(n){return n+1}function Ph(n){const e=n.getFullYear(),t=n.getMonth()+1,r=n.getDate();return`${e}-${t<10?"0"+t:t}-${r<10?"0"+r:r}`}function B6(n){try{if(!n)return;const e=new Date(n);return isNaN(e.getTime())?void 0:e}catch{return}}function z6(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0,0)}function H6(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59,999)}function V2(n,e){return Ph(n)===Ph(e)}function d1(n,e){return Ph(n)>Ph(e)}function tv(n,e){return Ph(n)>=Ph(e)}function nv(n,e){return Ph(n)<Ph(e)}function rv(n,e){return Ph(n)<=Ph(e)}function Z2(n,e,t){return d1(n,t)?d1(e,t)&&nv(e,n):d1(e,n)&&nv(e,t)}function X2(n,e,t){return d1(n,t)?tv(e,t)&&rv(e,n):tv(e,n)&&rv(e,t)}const Yn={toString:Ph,toDate:B6,makeSDate:z6,makeEDate:H6,"===":V2,">":d1,">=":tv,"<":nv,"<=":rv,"s<d<e|e<d<s":Z2,"s<=d<=e|e<=d<=s":X2,eq:V2,g:d1,ge:tv,l:nv,le:rv,b:Z2,be:X2},W6="_InputContainer_16eoo_7",U6="_AInput_16eoo_21",G6="_LeftAddon_16eoo_43",Y6="_RightAddon_16eoo_50",V6="_ErrorHelperText_16eoo_57",Z6="_Primary_16eoo_61",X6="_UnAvailable_16eoo_66",K6="_Secondary_16eoo_77",J6="_ReadOnly_16eoo_92",Q6="_ANumInputUnitSelect_16eoo_108",ou={InputContainer:W6,AInput:U6,LeftAddon:G6,RightAddon:Y6,ErrorHelperText:V6,Primary:Z6,UnAvailable:X6,Secondary:K6,ReadOnly:J6,Error:"_Error_16eoo_57",ANumInputUnitSelect:Q6},q6=["Primary","Secondary","ReadOnly","Error"],sg=n=>{const{onEnterPress:e,type:t="Primary",inputRef:r,useValue:i,isReadonly:o,placeholder:l,minLength:a,maxLength:h,tabIndex:g,autoFocus:m,isPassword:x,autoComplete:w="off",inputProps:_,LeftAddon:E,RightAddon:R,dataList:k=[],pattern:O,id:P=(_==null?void 0:_.id)??Cm.uuid(),...z}=n,[{wrapId:H,wrapProps:G,labelProps:N,...J},Y]=Bg(z),K=B.useMemo(()=>j6(J.errorMessage)?"Error":t,[J.errorMessage,t]),fe=B.useMemo(()=>K==="ReadOnly"?!0:o,[K,o]),X=B.useMemo(()=>Y.isDisabled||Y.isLoading,[Y.isDisabled,Y.isLoading]),[te,ne]=Do(i,""),ue=B.useCallback($=>{var re;if(!X){if(O&&$.key.length===1){const de=$.currentTarget.value,be=de.slice(0,$.currentTarget.selectionStart||0)+$.key+de.slice($.currentTarget.selectionEnd||0);if(!new RegExp(O).test(be)){$.preventDefault();return}}(re=_==null?void 0:_.onKeyDown)==null||re.call(_,$),["Escape","Enter","ArrowUp","ArrowDown"].includes($.key)||$.stopPropagation(),$.key==="Enter"&&e&&e($.currentTarget.value)}},[X,_,e,O]),se=B.useCallback($=>{var re;X||O&&!new RegExp(O).test($.target.value)||a&&$.target.value.length<a||(ne==null||ne($.target.value),(re=_==null?void 0:_.onChange)==null||re.call(_,$))},[X,a,ne,_,O]);return x?M.jsx(lg,{wrapId:H,wrapProps:G,labelProps:N,...J,children:M.jsx("form",{onSubmit:$=>$.preventDefault(),children:M.jsxs(Wi,{...Y,className:bt.clsx(ou.InputContainer,ou[K],X&&ou.UnAvailable,Y.className),children:[E&&M.jsx("div",{className:ou.LeftAddon,children:E}),M.jsx("input",{..._,ref:r,autoComplete:w,autoFocus:m,className:bt.clsx(ou.AInput,K==="Error"&&ou.InputError,_==null?void 0:_.className),id:P,list:`${P}-datalist`,maxLength:h,placeholder:l,readOnly:fe,tabIndex:Y.isDisabled||Y.isLoading?-1:g,type:"password",value:te,onChange:se,onKeyDown:ue}),k.length>0&&M.jsx("datalist",{id:`${P}-datalist`,children:k.map(($,re)=>M.jsx("option",{value:$},re))}),R&&M.jsx("div",{className:bt.clsx(ou.RightAddon,"NoSelect"),children:R})]})})}):M.jsx(lg,{wrapId:H,wrapProps:G,labelProps:N,...J,children:M.jsxs(Wi,{...Y,className:bt.clsx(ou.InputContainer,ou[K],X&&ou.UnAvailable,Y.className),children:[E&&M.jsx("div",{className:ou.LeftAddon,children:E}),M.jsx("input",{..._,ref:r,autoComplete:w,autoFocus:m,className:bt.clsx(ou.AInput,K==="Error"&&ou.InputError,_==null?void 0:_.className),id:P,list:`${P}-datalist`,maxLength:h,pattern:O,placeholder:l,readOnly:fe,tabIndex:Y.isDisabled||Y.isLoading?-1:g,value:te,onChange:se,onKeyDown:ue}),k.length>0&&M.jsx("datalist",{id:`${P}-datalist`,children:k.map(($,re)=>M.jsx("option",{value:$},re))}),R&&M.jsx("div",{className:ou.RightAddon,children:R})]})})};function j6(n){return Array.isArray(n)?n.filter(Boolean).length>0:!!n}const $6="_ASelect_1gbzd_1",eR="_Arrow_1gbzd_14",tR="_Primary_1gbzd_23",nR="_UnAvailable_1gbzd_34",rR="_IsOpen_1gbzd_34",iR="_Secondary_1gbzd_41",oR="_Placeholder_1gbzd_57",lR="_ValuesContainer_1gbzd_61",sR="_Values_1gbzd_61",aR="_Options_1gbzd_80",cR="_Raw_1gbzd_93",uR="_Option_1gbzd_80",fR="_Selected_1gbzd_122",hR="_CheckBox_1gbzd_129",Df={ASelect:$6,Arrow:eR,Primary:tR,UnAvailable:nR,IsOpen:rR,Secondary:iR,Placeholder:oR,ValuesContainer:lR,Values:sR,Options:aR,Raw:cR,Option:uR,Selected:fR,CheckBox:hR},dR=["Primary","Secondary","Raw"],Td=n=>{const{options:e,useSelect:t,type:r="Primary",placeholder:i=Nr.ASelect["Select(Placeholder)"],onClose:o,OptionRenderer:l=pR,SelectedRenderer:a=vR,minShowRows:h=2,maxShowRows:g=6,arrowProps:m,isAutoWidth:x=!1,...w}=n,_=B.useRef(null),E=B.useMemo(()=>w.abaseRef??_,[w.abaseRef]),R=B.useRef(null),[k,O]=Do(t,e[0]),[P,z]=B.useState(void 0),[H,G]=B.useState(!1),[N,J]=B.useState(!1),Y=B.useRef(e),K=B.useRef(null),fe=B.useCallback(()=>J(!1),[]),X=B.useCallback(()=>{w.isDisabled||w.isLoading||e.length<1||(J(!0),setTimeout(()=>G(!0),0),setTimeout(()=>ob(R,E,e,h,g),0))},[E,w.isDisabled,w.isLoading,e,h,g]),te=B.useCallback(()=>{G(!1),J(!0),o==null||o()},[o]),ne=B.useCallback(oe=>{var Q;H?te():X(),setTimeout(()=>ob(R,E,e,h,g),0),(Q=w.onClick)==null||Q.call(w,oe)},[E,w,e,H,te,X,h,g]),ue=B.useCallback(()=>{ob(R,E,e,h,g)},[E,e,h,g]);B.useEffect(()=>{if(!H||!E.current)return;const oe=E.current;let Q=oe.parentElement;for(;Q;)Q.addEventListener("scroll",ue),Q=Q.parentElement;return()=>{let ge=oe.parentElement;for(;ge;)ge.removeEventListener("scroll",ue),ge=ge.parentElement}},[E,H,ue]),B.useEffect(()=>{if(H)return window.addEventListener("resize",ue),()=>window.removeEventListener("resize",ue)},[H,ue]);const se=B.useCallback(oe=>{oe[0].intersectionRatio===0&&te()},[te]);B.useEffect(()=>{if(!H)return;const oe=new IntersectionObserver(se,{threshold:0});return E.current&&oe.observe(E.current),()=>oe.disconnect()},[E,H,se]);const $=B.useCallback(oe=>{const Q=oe.target,ge=E.current,Te=R.current;!ge||!Q||!Te||!ge.contains(Q)&&!Te.contains(Q)&&te()},[E,te]),re=B.useMemo(()=>w.isDisabled||w.isLoading||e.length<1,[w.isDisabled,w.isLoading,e]);B.useEffect(()=>{if(H)return setTimeout(()=>document.addEventListener("mousedown",$),0),()=>document.removeEventListener("mousedown",$)},[H,$]);const de=B.useCallback((oe,Q)=>{oe.stopPropagation(),oe.preventDefault(),O==null||O(Q),te()},[O,te]),be=B.useCallback(()=>{if(!x||!E.current)return;const oe=kg.calculateOptimalSelectWidth({elementRef:E,options:e,selectedOption:k,placeholder:i,optionRenderer:Q=>Q===null?null:l({option:Q}),type:r,isMulti:!1});z(oe)},[x,E,e,k,i,l,r]);return B.useEffect(()=>x?((e!==Y.current||P===void 0)&&(K.current!==null&&cancelAnimationFrame(K.current),K.current=requestAnimationFrame(()=>{be(),K.current=null,Y.current=[...e]})),()=>{K.current!==null&&(cancelAnimationFrame(K.current),K.current=null)}):void 0,[x,e,be,P]),B.useEffect(()=>()=>{typeof kg.clearCache=="function"&&kg.clearCache()},[]),M.jsxs(M.Fragment,{children:[M.jsxs(Wi,{...w,abaseRef:E,isDisabled:w.isDisabled||e.length<1,className:bt.clsx(w.className,Df.ASelect,"NoSelect",H&&Df.IsOpen,re&&Df.UnAvailable,Df[r]),style:{padding:r==="Secondary"?"8px 8px 8px 0":0,width:P?`${P}px`:x?"100px":void 0,...w.style},onClick:ne,children:[M.jsx("div",{className:Df.ValuesContainer,children:M.jsx("div",{className:bt.clsx(Df.Values,(k==null||k==="")&&Df.Placeholder),children:M.jsx(a,{OptionRenderer:l,placeholder:i,selectedOption:k})})}),M.jsx("div",{...m,className:bt.clsx(Df.Arrow,m==null?void 0:m.className),children:M.jsx(uo,{icon:"TriangleDown",style:{transform:H?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(H||N)&&su.createPortal(M.jsx("div",{ref:R,className:bt.clsx(Df.Options,Df[r]),style:{opacity:+H,visibility:H?"visible":"hidden",pointerEvents:H?void 0:"none",borderRadius:E.current?window.getComputedStyle(E.current).borderRadius:void 0,width:P?`${P}px`:x?"100px":void 0},onTransitionEnd:fe,children:e.map((oe,Q)=>{const ge=k===oe,Te=E.current?window.getComputedStyle(E.current):void 0;return oe===null?null:M.jsx("div",{className:bt.clsx(Df.Option,ge&&Df.Selected,"NoSelect",Df[r]),style:{height:Te==null?void 0:Te.height},onClick:He=>de(He,oe),children:M.jsx(l,{option:oe})},Q)})}),document.body)]})};function ob(n,e,t,r,i){if(!e.current||!n.current||!t||t.length<1)return;const o=e.current.getBoundingClientRect(),l=gR(o,t.length,r,i),a=window.getComputedStyle(e.current);n.current.style.top=`calc(${l.top??0}px - ${a.borderTopWidth})`,n.current.style.bottom=l.bottom?l.bottom+"px":"",n.current.style.left=l.left+"px",n.current.style.width||(n.current.style.minWidth=l.minWidth+"px"),n.current.style.minHeight=l.minHeight+"px",n.current.style.maxHeight=l.maxHeight+"px",n.current.style.visibility="visible"}function gR(n,e,t,r){const i={top:n.bottom,bottom:void 0,left:n.left,height:"fit-content",minWidth:n.width,minHeight:n.height*Math.min(t,e),maxHeight:n.height*r>window.innerHeight-n.bottom-10?window.innerHeight-n.bottom-10:n.height*r};return window.innerHeight-n.bottom-10<i.height&&(window.innerHeight-n.bottom-10<i.minHeight?(i.top=n.top-e*n.height,i.top<0&&(i.top=10,i.minHeight=n.top-10,i.height=n.top-10)):i.height=window.innerHeight-n.bottom-10),i}const pR=n=>{const{option:e}=n;return rr.isReactNode(e)?e:null},vR=n=>{const e=Vn.c(3),{selectedOption:t,OptionRenderer:r,placeholder:i}=n;if(t==null||t==="")return i;const o=t;let l;return e[0]!==r||e[1]!==o?(l=M.jsx(r,{option:o}),e[0]=r,e[1]=o,e[2]=l):l=e[2],l},bR="_Anchor_1l5ql_1",yR="_Primary_1l5ql_18",mR="_Secondary_1l5ql_21",xR="_Placeholder_1l5ql_25",wR="_Icon_1l5ql_30",CR="_ADatePicker_1l5ql_40",_R="_StringInputWrap_1l5ql_51",SR="_StringInputContainer_1l5ql_56",ER="_StringInput_1l5ql_51",TR="_IsIdx_1l5ql_71",AR="_CalendarContainer_1l5ql_75",RR="_Header_1l5ql_81",IR="_Prev_1l5ql_85",kR="_Next_1l5ql_86",MR="_MonthYear_1l5ql_119",LR="_Select_1l5ql_124",OR="_Calendar_1l5ql_75",PR="_Cell_1l5ql_134",DR="_IsNotCurrentMonth_1l5ql_146",NR="_IsSelected_1l5ql_150",FR="_IsDisabled_1l5ql_154",BR="_IsHovered_1l5ql_157",zR="_Week_1l5ql_161",HR="_WeekDay_1l5ql_166",Zo={Anchor:bR,Primary:yR,Secondary:mR,Placeholder:xR,Icon:wR,ADatePicker:CR,StringInputWrap:_R,StringInputContainer:SR,StringInput:ER,String:"_String_1l5ql_51",IsIdx:TR,CalendarContainer:AR,Header:RR,Prev:IR,Next:kR,MonthYear:MR,Select:LR,Calendar:OR,Cell:PR,IsNotCurrentMonth:DR,IsSelected:NR,IsDisabled:FR,IsHovered:BR,Week:zR,WeekDay:HR},WR="_Anchor_5u6hq_1",UR="_Primary_5u6hq_18",GR="_Secondary_5u6hq_22",YR="_Placeholder_5u6hq_26",VR="_Icon_5u6hq_31",ZR="_ADateRangePicker_5u6hq_41",XR="_StringInputWrap_5u6hq_52",KR="_StringInputContainer_5u6hq_56",JR="_StringInput_5u6hq_52",QR="_IsIdx_5u6hq_72",qR="_CalendarContainer_5u6hq_76",jR="_Header_5u6hq_82",$R="_Prev_5u6hq_86",e8="_Next_5u6hq_87",t8="_MonthYear_5u6hq_120",n8="_Select_5u6hq_125",r8="_Calendar_5u6hq_76",i8="_Cell_5u6hq_135",o8="_IsNotCurrentMonth_5u6hq_147",l8="_IsSelected_5u6hq_151",s8="_IsDisabled_5u6hq_155",a8="_IsHovered_5u6hq_158",c8="_Week_5u6hq_162",u8="_WeekDay_5u6hq_167",f8="_ChoiceButton_5u6hq_171",Qi={Anchor:WR,Primary:UR,Secondary:GR,Placeholder:YR,Icon:VR,ADateRangePicker:ZR,StringInputWrap:XR,StringInputContainer:KR,StringInput:JR,String:"_String_5u6hq_52",IsIdx:QR,CalendarContainer:qR,Header:jR,Prev:$R,Next:e8,MonthYear:t8,Select:n8,Calendar:r8,Cell:i8,IsNotCurrentMonth:o8,IsSelected:l8,IsDisabled:s8,IsHovered:a8,Week:c8,WeekDay:u8,ChoiceButton:f8},_m=n=>{const{type:e="Primary",className:t,useDateRange:r,actionRef:i,position:o=O1.SE,minDate:l,maxDate:a,isDisabled:h,isLoading:g,yearsOptionSize:m,noDefaultChoices:x,LeftAddon:w,RightAddon:_,placeholder:E,noClearButton:R,resources:k,onClick:O,...P}=n,z=B.useMemo(()=>({...Nr.ADateRangePicker,...k}),[k]),H=B.useMemo(()=>E??z["Select DateRange"],[E,z]),[G,N]=B.useMemo(()=>{let Ce,Ze;if(l&&(Ce=Yn.makeSDate(l)),a&&(Ze=Yn.makeEDate(a)),Ce&&Ze&&Yn["<"](Ze,Ce)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const wt=Ce;Ce=Ze,Ze=wt}return[Ce,Ze]},[l,a]),[J,Y]=B.useState("sD"),[K,fe]=Do(r,void 0),X=B.useCallback(Ce=>{fe&&(Ce===void 0?(fe(void 0),Ke(""),$e("")):(fe({sDate:Yn.makeSDate(Ce.sDate),eDate:Yn.makeEDate(Ce.eDate)}),Ke(Yn.toString(Ce.sDate)),$e(Yn.toString(Ce.eDate))))},[fe]);B.useEffect(()=>{K&&(Ke(Yn.toString(K.sDate)),$e(Yn.toString(K.eDate)))},[K]);const te=B.useCallback(Ce=>{if(!fe)return;let Ze=K?K.sDate:Yn.makeSDate(Ce);Ce=Yn.makeEDate(Ce),fe({sDate:Ze,eDate:Ce}),Ke(Yn.toString(Ze)),$e(Yn.toString(Ce))},[fe,K]),[ne,ue]=B.useState(),[se,$]=B.useState(),re=B.useCallback(Ce=>{J==="sD"&&X({sDate:Ce,eDate:Ce}),ue(Ce),$(Ce)},[J,X,ue]),de=B.useCallback(Ce=>{J==="sD"?ne&&(Yn.eq(ne,Ce)?Y("eD"):Yn[">"](Ce,ne)?(te(Ce),ue(void 0)):(X({sDate:Ce,eDate:ne}),ue(void 0))):(K?Yn["<"](Ce,K.sDate)?X({sDate:Ce,eDate:K.eDate}):te(Ce):X({sDate:Ce,eDate:Ce}),ue(void 0),Y("sD"))},[te,ne,Y,J,X,K,ue]),be=B.useCallback(Ce=>{ne&&$(Ce)},[ne]),oe=B.useCallback(()=>{$(void 0),ue(void 0),Y("sD")},[Y,ue]),[Q,ge]=B.useState(K2(K,G,N)),Te=B.useMemo(()=>Sm(Q.year,G,N,m),[Q.year,G,N,m]),He=B.useMemo(()=>Ap(Q.year,G,N),[G,N,Q.year]),xe=B.useCallback(Ce=>{if(!Te.includes(Ce))return;const Ze={month:Q.month,year:Ce},wt=Ap(Ze.year,G,N);wt.length<1||(wt.includes(Ze.month)||(Ze.month<wt[0]?Ze.month=wt[0]:Ze.month>wt[wt.length-1]&&(Ze.month=wt[wt.length-1])),ge(Ze))},[G,N,Te,Q.month]),Ne=B.useCallback(Ce=>{He.includes(Ce)&&ge({month:Ce,year:Q.year})},[He,Q.year]),Me=B.useMemo(()=>N?new Date(Q.year,Q.month+1,1)>N:!1,[Q,N]),Be=B.useCallback(()=>{if(Me||He.length<1)return;const Ce=Q.month+1;Ce>11?ge({month:He[0],year:Q.year+1}):ge({month:Ce,year:Q.year})},[Me,He,Q]),ke=B.useMemo(()=>G?new Date(Q.year,Q.month,0)<G:!1,[Q,G]),Ie=B.useCallback(()=>{if(ke||He.length<1)return;const Ce=Q.month-1;Ce<He[0]?ge({month:He[He.length-1],year:Q.year-1}):ge({month:Ce,year:Q.year})},[ke,He,Q]),[ze,Ke]=B.useState(K!=null&&K.sDate?Yn.toString(K.sDate):""),Oe=B.useCallback(Ce=>{if(Ce.length>10||(Ke(Ce),Ce.length<10)||!fe)return;let Ze=Yn.toDate(Ce);if(!Ze)return;G&&Ze<G&&(Ze=G),N&&Ze>N&&(Ze=N);let wt=K?K.eDate:Ze;K&&Yn[">"](Ze,wt)&&([Ze,wt]=J2(Ze,wt)),X({sDate:Ze,eDate:wt}),ge({month:Ze.getMonth(),year:Ze.getFullYear()})},[fe,X,K,G,N]),[ht,$e]=B.useState(K!=null&&K.eDate?Yn.toString(K.eDate):""),it=B.useCallback(Ce=>{if(Ce.length>10||($e(Ce),Ce.length<10)||!fe)return;let Ze=Yn.toDate(Ce);if(!Ze)return;G&&Ze<G&&(Ze=G),N&&Ze>N&&(Ze=N);let wt=K?K.sDate:Ze;K&&Yn[">"](wt,Ze)&&([wt,Ze]=J2(wt,Ze)),X({sDate:wt,eDate:Ze}),ge({month:Ze.getMonth(),year:Ze.getFullYear()})},[fe,X,K,G,N]),et=B.useCallback(()=>{K&&(Ke(Yn.toString(K.sDate)),$e(Yn.toString(K.eDate)))},[K]),st=B.useMemo(()=>{const{month:Ce,year:Ze}=Q,wt=new Date(Ze,Ce,1),Kt=new Date(Ze,Ce+1,0),Gt=[];for(let un=0;un<wt.getDay();un++){const kt=new Date(Ze,Ce,0).getDate()-wt.getDay()+un+1,Ct=new Date(Ze,Ce-1,kt),zt=G&&G>Ct||N&&N<Ct,ln=K?Yn.be(K.sDate,Ct,K.eDate):!1,mt=se&&K&&Yn.be(K.sDate,Ct,se);Gt.push({day:kt,isSelected:ln,isHovered:mt,date:Ct,isDisabled:zt,isCurrentMonth:!1})}for(let un=1;un<=Kt.getDate();un++){const ft=new Date(Ze,Ce,un),kt=G&&G>ft||N&&N<ft,Ct=K?Yn.be(K.sDate,ft,K.eDate):!1,zt=se&&K&&Yn.be(K.sDate,ft,se);Gt.push({day:un,isSelected:Ct,isHovered:zt,date:ft,isDisabled:kt,isCurrentMonth:!0})}for(let un=0;un<7-Kt.getDay()-1;un++){const ft=new Date(Ze,Ce+1,un+1),kt=G&&G>ft||N&&N<ft,Ct=K?Yn.be(K.sDate,ft,K.eDate):!1,zt=se&&K&&Yn.be(K.sDate,ft,se);Gt.push({day:un+1,isSelected:Ct,isHovered:zt,date:ft,isDisabled:kt,isCurrentMonth:!1})}const pn=[];for(let un=0;un<Gt.length/7;un++)pn.push(M.jsx("div",{className:Qi.Week,children:Gt.slice(un*7,un*7+7).map((ft,kt)=>M.jsx(Ic,{isDisabled:ft.isDisabled,type:"Raw",className:bt.clsx(Qi.Cell,ft.isDisabled?Qi.IsDisabled:ft.isCurrentMonth?ft.isSelected?Qi.IsSelected:ft.isHovered&&Qi.IsHovered:Qi.IsNotCurrentMonth),onMouseDown:()=>ft.isCurrentMonth&&re(ft.date),onMouseEnter:()=>ft.isCurrentMonth&&be(ft.date),onMouseUp:()=>ft.isCurrentMonth&&de(ft.date),children:ft.day},kt))},un));return pn},[Q,se,K,G,N,re,de,be]),dt=B.useRef(null),Mt=B.useCallback(()=>{dt&&mm(dt,Rt,o)},[dt,o]),[ot,nt]=B.useState(!1),[Ot,Zt]=B.useState(!1),Rt=B.useRef(null),tn=B.useCallback(()=>{h||g||(nt(!0),setTimeout(()=>Zt(!0),0),setTimeout(()=>Mt(),0),ge(K2(K,G,N)))},[h,g,K,Mt,G,N]),Ft=B.useCallback(()=>{h||g||(nt(!0),Zt(!1))},[h,g]),yn=B.useMemo(()=>Ot?Ft:tn,[Ot,tn,Ft]),dn=B.useCallback(()=>nt(!1),[]),nn=B.useCallback(Ce=>{const Ze=document.getElementById("root"),wt=Ce.target,Kt=Rt.current,Gt=dt.current;!Ze||!Kt||!wt||!Gt||!Kt.contains(wt)&&Ze.contains(wt)&&!Gt.contains(wt)&&Ft()},[Ft]);B.useEffect(()=>{if(Ot)return setTimeout(()=>document.addEventListener("mousedown",nn),0),()=>document.removeEventListener("mousedown",nn)},[Ot,nn]);const Bt=B.useCallback(()=>{Mt()},[Mt]);B.useEffect(()=>{if(!Ot||!(dt!=null&&dt.current))return;const Ce=dt.current;let Ze=Ce.parentElement;for(;Ze;)Ze.addEventListener("scroll",Bt),Ze=Ze.parentElement;return()=>{let wt=Ce.parentElement;for(;wt;)wt.removeEventListener("scroll",Bt),wt=wt.parentElement}},[dt,Ot,Bt]),B.useEffect(()=>{if(Ot)return window.addEventListener("resize",Bt),()=>window.removeEventListener("resize",Bt)},[Ot,Bt]);const on=B.useCallback(Ce=>{Ce[0].intersectionRatio===0&&Ft()},[Ft]);B.useEffect(()=>{if(!Ot)return;const Ce=new IntersectionObserver(on,{threshold:0});return Rt.current&&Ce.observe(Rt.current),()=>Ce.disconnect()},[Rt,Ot,on]),B.useEffect(()=>{i&&(i.current={open:tn,close:Ft,toggle:yn})},[i,tn,Ft,yn]),B.useEffect(()=>{if(!K)return;let Ce={sDate:K.sDate,eDate:K.eDate};G&&(Yn["<"](K.sDate,G)&&(Ce.sDate=G),Yn["<"](K.eDate,G)&&(Ce.eDate=G)),N&&(Yn[">"](K.sDate,N)&&(Ce.sDate=N),Yn[">"](K.eDate,N)&&(Ce.eDate=N)),(Ce.sDate!==K.sDate||Ce.eDate!==K.eDate)&&X(Ce)},[G,N,K,X]);const Nn=B.useCallback(Ce=>{O==null||O(Ce),yn()},[O,yn]),Rn=B.useCallback(Ce=>{X(void 0),Ft(),Ce.stopPropagation()},[X,Ft]),gn=B.useCallback(()=>K?M.jsx(Ba,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Rn}):null,[K,Rn]),Ue=B.useMemo(()=>K?`${Yn.toString(K.sDate)} ~ ${Yn.toString(K.eDate)}`:M.jsx("span",{className:Qi.Placeholder,children:H}),[K,H]);return M.jsxs(M.Fragment,{children:[M.jsxs(Wi,{...P,abaseRef:dt,className:bt.clsx(Qi.Anchor,"IsClickable",Qi[e],t),isDisabled:h,isLoading:g,onClick:Nn,children:[w,M.jsxs(B.Activity,{mode:e==="Primary"?"visible":"hidden",children:[M.jsx(uo,{className:bt.clsx(Qi.Icon,Qi[e]),icon:"CalendarDay"}),M.jsx(cs,{w:4})]}),Ue,M.jsx(zg,{}),M.jsx(B.Activity,{mode:R?"hidden":"visible",children:M.jsx(gn,{})}),M.jsx(B.Activity,{mode:e==="Secondary"?"visible":"hidden",children:M.jsx(uo,{className:bt.clsx(Qi.Icon,Qi[e]),icon:"CalendarDay"})}),M.jsx(B.Activity,{mode:_?"visible":"hidden",children:_})]}),(Ot||ot)&&su.createPortal(M.jsxs("div",{ref:Rt,className:Qi.ADateRangePicker,style:{opacity:+Ot,visibility:Ot?"visible":"hidden"},onMouseLeave:oe,onTransitionEnd:dn,children:[M.jsxs("div",{className:Qi.StringInputContainer,children:[M.jsxs(Ml,{children:[M.jsx(sg,{className:bt.clsx(Qi.String,J==="sD"&&se&&Qi.IsIdx),inputProps:{className:Qi.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[ze,Oe],wrapProps:{className:Qi.StringInputWrap},onBlur:et}),M.jsx(cs,{w:8}),M.jsx(sg,{className:bt.clsx(Qi.String,J==="eD"&&se&&Qi.IsIdx),inputProps:{className:Qi.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[ht,it],wrapProps:{className:Qi.StringInputWrap},onBlur:et})]}),!x&&M.jsxs(Ml,{style:{marginTop:4},children:[M.jsx(f0,{children:z["1일"],onClick:()=>X({sDate:new Date,eDate:new Date})}),M.jsx(f0,{children:z["1주일"],onClick:()=>X({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),M.jsx(f0,{children:z["1개월"],onClick:()=>X({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),M.jsx(f0,{children:z["3개월"],onClick:()=>X({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),M.jsxs("div",{className:Qi.CalendarContainer,children:[M.jsxs(Ml,{className:Qi.Header,children:[M.jsx(Ic,{className:Qi.Prev,isDisabled:ke,type:"Raw",onClick:Ie}),M.jsxs("div",{className:Qi.MonthYear,children:[M.jsx(Td,{isAutoWidth:!0,className:Qi.Select,OptionRenderer:Ce=>z.months(Ce.option),options:He,SelectedRenderer:Ce=>z.months(Ce.selectedOption),type:"Secondary",useSelect:[Q.month,Ne]}),M.jsx(cs,{w:8}),M.jsx(Td,{isAutoWidth:!0,className:Qi.Select,options:Te,type:"Secondary",useSelect:[Q.year,xe]})]}),M.jsx(Ic,{className:Qi.Next,isDisabled:Me,type:"Raw",onClick:Be})]}),M.jsx(cs,{h:10}),M.jsxs("div",{className:Qi.Calendar,children:[M.jsx("div",{className:Qi.Week,children:[0,1,2,3,4,5,6].map(Ce=>M.jsx("div",{className:bt.clsx(Qi.WeekDay,Qi.Cell),children:z.weekDays(Ce)},Ce))}),st]})]})]}),document.body)]})};function Ap(n,e,t){let r=0;e&&e.getFullYear()===n&&(r=e.getMonth());let i=11;t&&t.getFullYear()===n&&(i=t.getMonth());const o=[];for(let l=r;l<=i;l++)o.push(l);return o}function Sm(n,e,t,r=5){const i=[];let o=n-r/2+r%2/2;e&&o<e.getFullYear()&&(o=e.getFullYear());let l=o+r-1;t&&l>t.getFullYear()&&(l=t.getFullYear());for(let a=o;a<=l;a++)i.push(a);return i}function K2(n,e,t){return n??(n={sDate:new Date,eDate:new Date}),e&&Yn["<"](n.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&Yn[">"](n.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:n.sDate.getMonth(),year:n.sDate.getFullYear()}}function J2(n,e){return[e,n]}const f0=n=>{const e=Vn.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=bt.clsx(Qi.ChoiceButton,"Headline2"),e[0]=t):t=e[0];let r;return e[1]!==n?(r=M.jsx(Ic,{className:t,type:"Secondary",...n}),e[1]=n,e[2]=r):r=e[2],r},h8=["Primary","Secondary","Raw"],Em=n=>{const e=Vn.c(255);let t,r,i,o,l,a,h,g,m,x,w,_,E,R,k,O;e[0]!==n?({type:R,className:l,useDate:O,actionRef:o,position:k,minDate:h,maxDate:a,isDisabled:w,isLoading:_,placeholder:m,LeftAddon:t,RightAddon:r,resources:x,noClearButton:E,onClick:g,...i}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m,e[10]=x,e[11]=w,e[12]=_,e[13]=E,e[14]=R,e[15]=k,e[16]=O):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9],x=e[10],w=e[11],_=e[12],E=e[13],R=e[14],k=e[15],O=e[16]);const P=R===void 0?"Primary":R,z=k===void 0?O1.SE:k;let H;e[17]!==x?(H={...Nr.ADatePicker,...x},e[17]=x,e[18]=H):H=e[18];const G=H,N=m??G["Select Date"];let J;if(e[19]!==a||e[20]!==h){e:{let fn,On;if(h&&(fn=Yn.makeSDate(h)),a&&(On=Yn.makeEDate(a)),fn&&On&&Yn["<"](On,fn)){console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),J=[Yn.makeSDate(On),Yn.makeEDate(fn)];break e}let Ar;e[22]!==On||e[23]!==fn?(Ar=[fn,On],e[22]=On,e[23]=fn,e[24]=Ar):Ar=e[24],J=Ar}e[19]=a,e[20]=h,e[21]=J}else J=e[21];const[Y,K]=J,[fe,X]=Do(O,null);let te;e[25]!==fe?(te=fe?Yn.toString(fe):"",e[25]=fe,e[26]=te):te=e[26];const[ne,ue]=B.useState(te);let se;e[27]!==K||e[28]!==Y||e[29]!==fe?(se=()=>{const fn=fe??new Date;return Y&&fn<Y?Y.getMonth():K&&fn>K?K.getMonth():(fn??new Date).getMonth()},e[27]=K,e[28]=Y,e[29]=fe,e[30]=se):se=e[30];const[$,re]=B.useState(se);let de;e[31]!==K||e[32]!==Y||e[33]!==fe?(de=()=>{const fn=fe??new Date;return Y&&fn<Y?Y.getFullYear():K&&fn>K?K.getFullYear():(fn??new Date).getFullYear()},e[31]=K,e[32]=Y,e[33]=fe,e[34]=de):de=e[34];const[be,oe]=B.useState(de);let Q;e[35]!==K||e[36]!==Y||e[37]!==$?(Q=fn=>{oe(fn);const On=Ap(fn,Y,K);On.includes($)||($<On[0]?re(On[0]):$>On[On.length-1]&&re(On[On.length-1]))},e[35]=K,e[36]=Y,e[37]=$,e[38]=Q):Q=e[38];const ge=Q;let Te;e[39]!==K||e[40]!==Y||e[41]!==X?(Te=fn=>{if(fn.length>10||(ue(fn),fn.length<10)||!X)return;let On=Yn.toDate(fn);On&&(Y&&On<Y&&(On=Y),K&&On>K&&(On=K),X(On),oe(On.getFullYear()),re(On.getMonth()))},e[39]=K,e[40]=Y,e[41]=X,e[42]=Te):Te=e[42];const He=Te;let xe;e[43]!==be?(xe=fn=>{const On=be+fn;On<0||oe(On)},e[43]=be,e[44]=xe):xe=e[44];const Ne=xe;let Me;e[45]!==$||e[46]!==Ne?(Me=fn=>{const On=$+fn;On<0?(re(11),Ne(-1)):On>11?(re(0),Ne(1)):re(On)},e[45]=$,e[46]=Ne,e[47]=Me):Me=e[47];const Be=Me;let ke;e[48]!==X?(ke=fn=>{X&&(fn===void 0?(X(void 0),ue("")):(X(fn),ue(Yn.toString(fn))))},e[48]=X,e[49]=ke):ke=e[49];const Ie=ke;let ze;e[50]!==$||e[51]!==be?(ze=new Date(be,$,0),e[50]=$,e[51]=be,e[52]=ze):ze=e[52];const Oe=Y&&ze<Y,ht=$+1;let $e;e[53]!==ht||e[54]!==be?($e=new Date(be,ht,1),e[53]=ht,e[54]=be,e[55]=$e):$e=e[55];const et=K&&$e>K;let st;e[56]!==Oe||e[57]!==Be?(st=()=>{Oe||Be(-1)},e[56]=Oe,e[57]=Be,e[58]=st):st=e[58];const dt=st;let Mt;e[59]!==et||e[60]!==Be?(Mt=()=>{et||Be(1)},e[59]=et,e[60]=Be,e[61]=Mt):Mt=e[61];const ot=Mt,[nt,Ot]=B.useState(null);let Zt;e[62]!==X?(Zt=()=>{X&&Ot(null)},e[62]=X,e[63]=Zt):Zt=e[63];const Rt=Zt;let tn;e[64]!==X?(tn=fn=>{X&&Ot(fn)},e[64]=X,e[65]=tn):tn=e[65];const Ft=tn;let yn;if(e[66]!==Ie||e[67]!==nt||e[68]!==K||e[69]!==Y||e[70]!==$||e[71]!==Ft||e[72]!==Rt||e[73]!==fe||e[74]!==be){const fn=new Date(be,$,1),On=new Date(be,$+1,0),Ar=[];for(let ur=0;ur<fn.getDay();ur++){const zr=new Date(be,$,0).getDate()-fn.getDay()+ur+1,Lr=new Date(be,$-1,zr),hi=Y&&Y>Lr||K&&K<Lr,Ui=fe&&Yn.eq(Lr,fe),Fr=nt&&Yn.eq(Lr,nt);Ar.push({day:zr,isSelected:Ui,date:Lr,isDisabled:hi,isHovered:Fr,isCurrentMonth:!1})}for(let ur=1;ur<=On.getDate();ur++){const Fn=new Date(be,$,ur),zr=Y&&Y>Fn||K&&K<Fn,Lr=fe&&Yn.eq(Fn,fe),hi=nt&&Yn.eq(Fn,nt);Ar.push({day:ur,isSelected:Lr,date:Fn,isDisabled:zr,isHovered:hi,isCurrentMonth:!0})}for(let ur=0;ur<7-On.getDay()-1;ur++){const Fn=new Date(be,$+1,ur+1),zr=Y&&Y>Fn||K&&K<Fn,Lr=fe&&Yn.eq(Fn,fe),hi=nt&&Yn.eq(Fn,nt);Ar.push({day:ur+1,isSelected:Lr,date:Fn,isDisabled:zr,isHovered:hi,isCurrentMonth:!1})}yn=[];for(let ur=0;ur<Ar.length/7;ur++)yn.push(M.jsx("div",{className:Zo.Week,children:Ar.slice(ur*7,ur*7+7).map((Fn,zr)=>M.jsx(Ic,{isDisabled:Fn.isDisabled,type:"Raw",className:bt.clsx(Zo.Cell,Fn.isDisabled?Zo.IsDisabled:Fn.isCurrentMonth?Fn.isSelected?Zo.IsSelected:Fn.isHovered&&Zo.IsHovered:Zo.IsNotCurrentMonth),onClick:()=>Fn.isCurrentMonth&&Ie(Fn.date),onMouseEnter:()=>Fn.isCurrentMonth&&Ft(Fn.date),onMouseLeave:()=>Fn.isCurrentMonth&&Rt(),children:Fn.day},zr))},ur));e[66]=Ie,e[67]=nt,e[68]=K,e[69]=Y,e[70]=$,e[71]=Ft,e[72]=Rt,e[73]=fe,e[74]=be,e[75]=yn}else yn=e[75];const dn=yn,nn=B.useRef(null);let Bt;e[76]!==z?(Bt=()=>{nn&&mm(nn,Ce,z)},e[76]=z,e[77]=Bt):Bt=e[77];const on=Bt,[Nn,Rn]=B.useState(!1),[gn,Ue]=B.useState(!1),Ce=B.useRef(null);let Ze;e[78]!==on||e[79]!==w||e[80]!==_||e[81]!==K||e[82]!==Y||e[83]!==fe?(Ze=()=>{w||_||(Rn(!0),setTimeout(()=>Ue(!0),0),setTimeout(()=>on(),0),ue(fe?Yn.toString(fe):""),re(()=>{const fn=fe??new Date;return Y&&fn<Y?Y.getMonth():K&&fn>K?K.getMonth():fn.getMonth()}),oe(()=>{const fn=fe??new Date;return Y&&fn<Y?Y.getFullYear():K&&fn>K?K.getFullYear():fn.getFullYear()}))},e[78]=on,e[79]=w,e[80]=_,e[81]=K,e[82]=Y,e[83]=fe,e[84]=Ze):Ze=e[84];const wt=Ze;let Kt;e[85]!==w||e[86]!==_?(Kt=()=>{w||_||(Rn(!0),Ue(!1))},e[85]=w,e[86]=_,e[87]=Kt):Kt=e[87];const Gt=Kt,pn=gn?Gt:wt;let un;e[88]===Symbol.for("react.memo_cache_sentinel")?(un=()=>Rn(!1),e[88]=un):un=e[88];const ft=un;let kt;e[89]!==Gt?(kt=fn=>{const On=document.getElementById("root"),Ar=fn.target,ur=Ce.current,Fn=nn.current;!On||!ur||!Ar||!Fn||!ur.contains(Ar)&&On.contains(Ar)&&!Fn.contains(Ar)&&Gt()},e[89]=Gt,e[90]=kt):kt=e[90];const Ct=kt;let zt,ln;e[91]!==gn||e[92]!==Ct?(zt=()=>{if(gn)return setTimeout(()=>document.addEventListener("mousedown",Ct),0),()=>document.removeEventListener("mousedown",Ct)},ln=[gn,Ct],e[91]=gn,e[92]=Ct,e[93]=zt,e[94]=ln):(zt=e[93],ln=e[94]),B.useEffect(zt,ln);let mt;e[95]!==on?(mt=()=>{on()},e[95]=on,e[96]=mt):mt=e[96];const Lt=mt;let en,bn;e[97]!==gn||e[98]!==Lt?(en=()=>{if(!gn||!(nn!=null&&nn.current))return;const fn=nn.current;let On=fn.parentElement;for(;On;)On.addEventListener("scroll",Lt),On=On.parentElement;return()=>{let Ar=fn.parentElement;for(;Ar;)Ar.removeEventListener("scroll",Lt),Ar=Ar.parentElement}},bn=[nn,gn,Lt],e[97]=gn,e[98]=Lt,e[99]=en,e[100]=bn):(en=e[99],bn=e[100]),B.useEffect(en,bn);let xn,Vt;e[101]!==gn||e[102]!==Lt?(xn=()=>{if(gn)return window.addEventListener("resize",Lt),()=>window.removeEventListener("resize",Lt)},Vt=[gn,Lt],e[101]=gn,e[102]=Lt,e[103]=xn,e[104]=Vt):(xn=e[103],Vt=e[104]),B.useEffect(xn,Vt);let mn;e[105]!==Gt?(mn=fn=>{fn[0].intersectionRatio===0&&Gt()},e[105]=Gt,e[106]=mn):mn=e[106];const Dn=mn;let cr;e[107]!==gn||e[108]!==Dn?(cr=()=>{if(!gn)return;const fn=new IntersectionObserver(Dn,{threshold:0});return Ce.current&&fn.observe(Ce.current),()=>fn.disconnect()},e[107]=gn,e[108]=Dn,e[109]=cr):cr=e[109];let En;e[110]!==gn||e[111]!==Dn?(En=[Ce,gn,Dn],e[110]=gn,e[111]=Dn,e[112]=En):En=e[112],B.useEffect(cr,En);let Ln,je;e[113]!==o||e[114]!==Gt||e[115]!==wt||e[116]!==pn?(Ln=()=>{o&&(o.current={open:wt,close:Gt,toggle:pn})},je=[o,wt,Gt,pn],e[113]=o,e[114]=Gt,e[115]=wt,e[116]=pn,e[117]=Ln,e[118]=je):(Ln=e[117],je=e[118]),B.useEffect(Ln,je);let qt;e[119]!==g||e[120]!==pn?(qt=fn=>{g==null||g(fn),pn()},e[119]=g,e[120]=pn,e[121]=qt):qt=e[121];const rn=qt;let zn;e[122]!==Ie||e[123]!==Gt?(zn=fn=>{Ie(void 0),Gt(),fn.stopPropagation()},e[122]=Ie,e[123]=Gt,e[124]=zn):zn=e[124];const $n=zn;let kn;e[125]!==$n||e[126]!==fe?(kn=()=>fe?M.jsx(Ba,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:$n}):null,e[125]=$n,e[126]=fe,e[127]=kn):kn=e[127];const Tt=kn;let Se;if(fe){let fn;e[128]!==fe?(fn=Yn.toString(fe),e[128]=fe,e[129]=fn):fn=e[129],Se=fn}else{let fn;e[130]!==N?(fn=M.jsx("span",{className:Zo.Placeholder,children:N}),e[130]=N,e[131]=fn):fn=e[131],Se=fn}const rt=Se;let Et;e[132]!==l||e[133]!==P?(Et=bt.clsx(Zo.Anchor,"IsClickable",Zo[P],l),e[132]=l,e[133]=P,e[134]=Et):Et=e[134];const wn=P==="Primary"?"visible":"hidden";let Tn;e[135]!==P?(Tn=bt.clsx(Zo.Icon,Zo[P]),e[135]=P,e[136]=Tn):Tn=e[136];let Zn;e[137]!==Tn?(Zn=M.jsx(uo,{className:Tn,icon:"CalendarDay"}),e[137]=Tn,e[138]=Zn):Zn=e[138];let ir;e[139]===Symbol.for("react.memo_cache_sentinel")?(ir=M.jsx(cs,{w:4}),e[139]=ir):ir=e[139];let gr;e[140]!==wn||e[141]!==Zn?(gr=M.jsxs(B.Activity,{mode:wn,children:[Zn,ir]}),e[140]=wn,e[141]=Zn,e[142]=gr):gr=e[142];let Cn;e[143]===Symbol.for("react.memo_cache_sentinel")?(Cn=M.jsx(zg,{}),e[143]=Cn):Cn=e[143];const qn=E?"hidden":"visible";let _n;e[144]!==Tt?(_n=M.jsx(Tt,{}),e[144]=Tt,e[145]=_n):_n=e[145];let dr;e[146]!==qn||e[147]!==_n?(dr=M.jsx(B.Activity,{mode:qn,children:_n}),e[146]=qn,e[147]=_n,e[148]=dr):dr=e[148];const li=P==="Secondary"?"visible":"hidden";let wo;e[149]!==P?(wo=bt.clsx(Zo.Icon,Zo[P]),e[149]=P,e[150]=wo):wo=e[150];let fo;e[151]!==wo?(fo=M.jsx(uo,{className:wo,icon:"CalendarDay"}),e[151]=wo,e[152]=fo):fo=e[152];let Br;e[153]!==li||e[154]!==fo?(Br=M.jsx(B.Activity,{mode:li,children:fo}),e[153]=li,e[154]=fo,e[155]=Br):Br=e[155];const al=r?"visible":"hidden";let ho;e[156]!==r||e[157]!==al?(ho=M.jsx(B.Activity,{mode:al,children:r}),e[156]=r,e[157]=al,e[158]=ho):ho=e[158];let Si;e[159]!==t||e[160]!==i||e[161]!==rt||e[162]!==w||e[163]!==_||e[164]!==rn||e[165]!==Et||e[166]!==gr||e[167]!==dr||e[168]!==Br||e[169]!==ho?(Si=M.jsxs(Wi,{...i,abaseRef:nn,className:Et,isDisabled:w,isLoading:_,onClick:rn,children:[t,gr,rt,Cn,dr,Br,ho]}),e[159]=t,e[160]=i,e[161]=rt,e[162]=w,e[163]=_,e[164]=rn,e[165]=Et,e[166]=gr,e[167]=dr,e[168]=Br,e[169]=ho,e[170]=Si):Si=e[170];const Jl=gn||Nn?"visible":"hidden";let No;if(e[171]!==dn||e[172]!==ne||e[173]!==et||e[174]!==gn||e[175]!==Oe||e[176]!==K||e[177]!==Y||e[178]!==$||e[179]!==He||e[180]!==ot||e[181]!==dt||e[182]!==ge||e[183]!==G||e[184]!==fe||e[185]!==be){const fn=+gn;let On;e[187]!==fn?(On={opacity:fn},e[187]=fn,e[188]=On):On=e[188];let Ar;e[189]===Symbol.for("react.memo_cache_sentinel")?(Ar={className:Zo.StringInput},e[189]=Ar):Ar=e[189];const ur=fe?30:11;let Fn;e[190]!==ne||e[191]!==He?(Fn=[ne,He],e[190]=ne,e[191]=He,e[192]=Fn):Fn=e[192];let zr;e[193]===Symbol.for("react.memo_cache_sentinel")?(zr={className:Zo.StringInputWrap},e[193]=zr):zr=e[193];let Lr;e[194]!==ur||e[195]!==Fn?(Lr=M.jsx("div",{className:Zo.StringInputContainer,children:M.jsx(sg,{className:Zo.String,inputProps:Ar,maxLength:ur,placeholder:"YYYY-MM-DD",useValue:Fn,wrapProps:zr})}),e[194]=ur,e[195]=Fn,e[196]=Lr):Lr=e[196];let hi;e[197]!==Oe||e[198]!==dt?(hi=M.jsx(Ic,{className:Zo.Prev,isDisabled:Oe,type:"Raw",onClick:dt}),e[197]=Oe,e[198]=dt,e[199]=hi):hi=e[199];let Ui;e[200]!==G?(Ui=Ho=>G.months(Ho.option),e[200]=G,e[201]=Ui):Ui=e[201];let Fr;e[202]!==K||e[203]!==Y||e[204]!==be?(Fr=Ap(be,Y,K),e[202]=K,e[203]=Y,e[204]=be,e[205]=Fr):Fr=e[205];let Xo;e[206]!==G?(Xo=Ho=>G.months(Ho.selectedOption),e[206]=G,e[207]=Xo):Xo=e[207];let Co;e[208]!==$?(Co=[$,re],e[208]=$,e[209]=Co):Co=e[209];let Fo;e[210]!==Ui||e[211]!==Fr||e[212]!==Xo||e[213]!==Co?(Fo=M.jsx(Td,{isAutoWidth:!0,className:Zo.Select,OptionRenderer:Ui,options:Fr,SelectedRenderer:Xo,type:"Secondary",useSelect:Co}),e[210]=Ui,e[211]=Fr,e[212]=Xo,e[213]=Co,e[214]=Fo):Fo=e[214];let Ei;e[215]===Symbol.for("react.memo_cache_sentinel")?(Ei=M.jsx(cs,{w:8}),e[215]=Ei):Ei=e[215];let $r;e[216]!==K||e[217]!==Y||e[218]!==be?($r=Sm(be,Y,K),e[216]=K,e[217]=Y,e[218]=be,e[219]=$r):$r=e[219];let xr;e[220]!==ge||e[221]!==be?(xr=[be,ge],e[220]=ge,e[221]=be,e[222]=xr):xr=e[222];let vl;e[223]!==$r||e[224]!==xr?(vl=M.jsx(Td,{isAutoWidth:!0,className:Zo.Select,options:$r,type:"Secondary",useSelect:xr}),e[223]=$r,e[224]=xr,e[225]=vl):vl=e[225];let mi;e[226]!==Fo||e[227]!==vl?(mi=M.jsxs("div",{className:Zo.MonthYear,children:[Fo,Ei,vl]}),e[226]=Fo,e[227]=vl,e[228]=mi):mi=e[228];let oo;e[229]!==et||e[230]!==ot?(oo=M.jsx(Ic,{className:Zo.Next,isDisabled:et,type:"Raw",onClick:ot}),e[229]=et,e[230]=ot,e[231]=oo):oo=e[231];let Ko;e[232]!==hi||e[233]!==mi||e[234]!==oo?(Ko=M.jsxs(Ml,{className:Zo.Header,children:[hi,mi,oo]}),e[232]=hi,e[233]=mi,e[234]=oo,e[235]=Ko):Ko=e[235];let Bo;e[236]===Symbol.for("react.memo_cache_sentinel")?(Bo=M.jsx(cs,{h:10}),e[236]=Bo):Bo=e[236];let Gi;e[237]!==G?(Gi=M.jsx("div",{className:Zo.Week,children:[0,1,2,3,4,5,6].map(Ho=>M.jsx("div",{className:bt.clsx(Zo.WeekDay,Zo.Cell),children:G.weekDays(Ho)},Ho))}),e[237]=G,e[238]=Gi):Gi=e[238];let zo;e[239]!==dn||e[240]!==Gi?(zo=M.jsxs("div",{className:Zo.Calendar,children:[Gi,dn]}),e[239]=dn,e[240]=Gi,e[241]=zo):zo=e[241];let go;e[242]!==Ko||e[243]!==zo?(go=M.jsxs("div",{className:Zo.CalendarContainer,children:[Ko,Bo,zo]}),e[242]=Ko,e[243]=zo,e[244]=go):go=e[244];let po;e[245]!==On||e[246]!==Lr||e[247]!==go?(po=M.jsxs("div",{ref:Ce,className:Zo.ADatePicker,style:On,onTransitionEnd:ft,children:[Lr,go]}),e[245]=On,e[246]=Lr,e[247]=go,e[248]=po):po=e[248],No=su.createPortal(po,document.body),e[171]=dn,e[172]=ne,e[173]=et,e[174]=gn,e[175]=Oe,e[176]=K,e[177]=Y,e[178]=$,e[179]=He,e[180]=ot,e[181]=dt,e[182]=ge,e[183]=G,e[184]=fe,e[185]=be,e[186]=No}else No=e[186];let To;e[249]!==Jl||e[250]!==No?(To=M.jsx(B.Activity,{mode:Jl,children:No}),e[249]=Jl,e[250]=No,e[251]=To):To=e[251];let jr;return e[252]!==Si||e[253]!==To?(jr=M.jsxs(M.Fragment,{children:[Si,To]}),e[252]=Si,e[253]=To,e[254]=jr):jr=e[254],jr},d8="_Paper_e69j5_1",g8="_Card_e69j5_15",p8="_Body_e69j5_26",v8="_Title_e69j5_35",b8="_Content_e69j5_42",y8="_Action_e69j5_45",m8="_Button_e69j5_58",Qh={Paper:d8,Card:g8,Body:p8,Title:v8,Content:b8,Action:y8,Button:m8},x8=["okCancel","cancelOk","ok","cancel","none"],w8=n=>{const e=Vn.c(129),{dlgCore:t,type:r,title:i,children:o,style:l,titleStyle:a,bodyStyle:h,contentStyle:g,okButtonStyle:m,cancelButtonStyle:x,actionStyle:w,onOk:_,onCancel:E,onClose:R,onEnterPress:k,onEscPress:O,onSpacePress:P,onPaperClick:z,noDim:H,isLoading:G,isOkDisabled:N,isOkLoading:J,isCancelDisabled:Y,isCancelLoading:K,isChanged:fe,buttonNoInteractive:X,okButtonClassName:te,cancelButtonClassName:ne,progress:ue,ProgressRenderer:se,progressProps:$,resources:re}=n,de=r===void 0?"okCancel":r,be=H===void 0?!1:H;let oe;e[0]!==re?(oe={...Nr.ADialog,...re},e[0]=re,e[1]=oe):oe=e[1];const Q=oe,[ge,Te]=B.useState(0);let He,xe;e[2]===Symbol.for("react.memo_cache_sentinel")?(He=()=>Te(1),xe=[],e[2]=He,e[3]=xe):(He=e[2],xe=e[3]),B.useEffect(He,xe);let Ne;e[4]===Symbol.for("react.memo_cache_sentinel")?(Ne=()=>{Te(0)},e[4]=Ne):Ne=e[4];const Me=Ne;let Be;e[5]!==t||e[6]!==R||e[7]!==ge?(Be=()=>{if(!ge){const[,Ze]=t.state.useIsOpen;Ze==null||Ze(!1),R==null||R()}},e[5]=t,e[6]=R,e[7]=ge,e[8]=Be):Be=e[8];const ke=Be;let Ie;e[9]!==G||e[10]!==N||e[11]!==J||e[12]!==_||e[13]!==ge||e[14]!==de?(Ie=async()=>{if(!ge||de==="cancel"||de==="none"||G||N||J)return;const{event:Ze,e:wt}=Eg();await(_==null?void 0:_(wt)),!Ze.preventDefault&&Me()},e[9]=G,e[10]=N,e[11]=J,e[12]=_,e[13]=ge,e[14]=de,e[15]=Ie):Ie=e[15];const ze=Ie;let Ke;e[16]!==Y||e[17]!==K||e[18]!==G||e[19]!==E||e[20]!==ge||e[21]!==de?(Ke=async()=>{if(!ge||de==="ok"||de==="none"||G||Y||K)return;const{event:Ze,e:wt}=Eg();await(E==null?void 0:E(wt)),!Ze.preventDefault&&Me()},e[16]=Y,e[17]=K,e[18]=G,e[19]=E,e[20]=ge,e[21]=de,e[22]=Ke):Ke=e[22];const Oe=Ke;let ht,$e;e[23]!==Oe||e[24]!==t||e[25]!==ze?($e=()=>{t&&t.state.setAction({close:Me,ok:ze,cancel:Oe})},ht=[t,Me,ze,Oe],e[23]=Oe,e[24]=t,e[25]=ze,e[26]=ht,e[27]=$e):(ht=e[26],$e=e[27]),B.useEffect($e,ht);let it;e[28]!==k||e[29]!==G||e[30]!==ze?(it=async()=>{if(G)return;const{event:Ze,e:wt}=Eg();await(k==null?void 0:k(wt)),!Ze.preventDefault&&ze()},e[28]=k,e[29]=G,e[30]=ze,e[31]=it):it=e[31];const et=it;let st;e[32]!==P||e[33]!==G||e[34]!==ze?(st=async()=>{if(G)return;const{event:Ze,e:wt}=Eg();await(P==null?void 0:P(wt)),!Ze.preventDefault&&ze()},e[32]=P,e[33]=G,e[34]=ze,e[35]=st):st=e[35];const dt=st;let Mt;e[36]!==Oe||e[37]!==O||e[38]!==fe||e[39]!==G?(Mt=async()=>{if(G)return;const{event:Ze,e:wt}=Eg();await(O==null?void 0:O(wt)),!Ze.preventDefault&&(fe||Oe())},e[36]=Oe,e[37]=O,e[38]=fe,e[39]=G,e[40]=Mt):Mt=e[40];const ot=Mt,nt=B.useRef(null);let Ot;e[41]!==et||e[42]!==ot||e[43]!==dt||e[44]!==ge?(Ot=Ze=>{const wt=document.body.getElementsByClassName(Qh.Paper);wt.length===0||wt[wt.length-1]!==nt.current||(Ze.key==="Enter"&&ge?et():Ze.key===" "&&ge?dt():Ze.key==="Escape"&&ge&&ot())},e[41]=et,e[42]=ot,e[43]=dt,e[44]=ge,e[45]=Ot):Ot=e[45];const Zt=Ot;let Rt,tn;e[46]!==Zt||e[47]!==ge?(Rt=()=>{if(ge)return window.addEventListener("keydown",Zt),()=>window.removeEventListener("keydown",Zt)},tn=[ge,Zt],e[46]=Zt,e[47]=ge,e[48]=Rt,e[49]=tn):(Rt=e[48],tn=e[49]),B.useEffect(Rt,tn);const Ft=B.useRef(!1),yn=B.useRef(!1);let dn;e[50]===Symbol.for("react.memo_cache_sentinel")?(dn=()=>{Ft.current=!0},e[50]=dn):dn=e[50];const nn=dn;let Bt;e[51]===Symbol.for("react.memo_cache_sentinel")?(Bt=()=>{Ft.current=!1,yn.current=!1},e[51]=Bt):Bt=e[51];const on=Bt;let Nn;e[52]===Symbol.for("react.memo_cache_sentinel")?(Nn=()=>{yn.current=!0},e[52]=Nn):Nn=e[52];const Rn=Nn;let gn;e[53]!==Oe||e[54]!==z||e[55]!==fe||e[56]!==G?(gn=async()=>{if(G)return;const Ze=!yn.current||Ft.current;if(Ft.current=!1,yn.current=!1,Ze)return;const{event:wt,e:Kt}=Eg();await(z==null?void 0:z(Kt)),!wt.preventDefault&&(fe||Oe())},e[53]=Oe,e[54]=z,e[55]=fe,e[56]=G,e[57]=gn):gn=e[57];const Ue=gn;let Ce;if(e[58]!==se||e[59]!==w||e[60]!==h||e[61]!==X||e[62]!==Oe||e[63]!==ne||e[64]!==x||e[65]!==o||e[66]!==g||e[67]!==Y||e[68]!==K||e[69]!==G||e[70]!==N||e[71]!==J||e[72]!==be||e[73]!==ze||e[74]!==te||e[75]!==m||e[76]!==Ue||e[77]!==ke||e[78]!==ge||e[79]!==ue||e[80]!==$||e[81]!==Q||e[82]!==l||e[83]!==i||e[84]!==a||e[85]!==de){const Ze=be?"transparent":void 0,wt=ge?void 0:"none";let Kt;e[87]!==ge||e[88]!==Ze||e[89]!==wt?(Kt={backgroundColor:Ze,pointerEvents:wt,opacity:ge},e[87]=ge,e[88]=Ze,e[89]=wt,e[90]=Kt):Kt=e[90];let Gt;e[91]!==i||e[92]!==a?(Gt=i&&M.jsx(C8,{title:i,titleStyle:a}),e[91]=i,e[92]=a,e[93]=Gt):Gt=e[93];let pn;e[94]!==o||e[95]!==g?(pn=o&&M.jsx("div",{className:Qh.Content,style:g,children:o}),e[94]=o,e[95]=g,e[96]=pn):pn=e[96];let un;e[97]!==h||e[98]!==Gt||e[99]!==pn?(un=M.jsxs("div",{className:Qh.Body,style:h,children:[Gt,pn]}),e[97]=h,e[98]=Gt,e[99]=pn,e[100]=un):un=e[100];let ft;e[101]!==w||e[102]!==X||e[103]!==Oe||e[104]!==ne||e[105]!==x||e[106]!==Y||e[107]!==K||e[108]!==N||e[109]!==J||e[110]!==ze||e[111]!==te||e[112]!==m||e[113]!==Q||e[114]!==de?(ft=de!=="none"&&M.jsx(_8,{type:de,ok:ze,cancel:Oe,resources:Q,isOkDisabled:N,isOkLoading:J,isCancelDisabled:Y,isCancelLoading:K,okButtonStyle:m,cancelButtonStyle:x,actionStyle:w,buttonNoInteractive:X,okButtonClassName:te,cancelButtonClassName:ne}),e[101]=w,e[102]=X,e[103]=Oe,e[104]=ne,e[105]=x,e[106]=Y,e[107]=K,e[108]=N,e[109]=J,e[110]=ze,e[111]=te,e[112]=m,e[113]=Q,e[114]=de,e[115]=ft):ft=e[115];let kt;e[116]!==se||e[117]!==G||e[118]!==ue||e[119]!==$||e[120]!==l||e[121]!==un||e[122]!==ft?(kt=M.jsxs(Wi,{className:Qh.Card,isLoading:G,progress:ue,progressProps:$,ProgressRenderer:se,style:l,onMouseDown:nn,onMouseUp:on,children:[un,ft]}),e[116]=se,e[117]=G,e[118]=ue,e[119]=$,e[120]=l,e[121]=un,e[122]=ft,e[123]=kt):kt=e[123];let Ct;e[124]!==Ue||e[125]!==ke||e[126]!==Kt||e[127]!==kt?(Ct=M.jsx("div",{ref:nt,className:Qh.Paper,style:Kt,onMouseDown:Rn,onMouseUp:Ue,onTransitionEnd:ke,children:kt}),e[124]=Ue,e[125]=ke,e[126]=Kt,e[127]=kt,e[128]=Ct):Ct=e[128],Ce=su.createPortal(Ct,document.body),e[58]=se,e[59]=w,e[60]=h,e[61]=X,e[62]=Oe,e[63]=ne,e[64]=x,e[65]=o,e[66]=g,e[67]=Y,e[68]=K,e[69]=G,e[70]=N,e[71]=J,e[72]=be,e[73]=ze,e[74]=te,e[75]=m,e[76]=Ue,e[77]=ke,e[78]=ge,e[79]=ue,e[80]=$,e[81]=Q,e[82]=l,e[83]=i,e[84]=a,e[85]=de,e[86]=Ce}else Ce=e[86];return Ce},C8=n=>{const e=Vn.c(4),{title:t,titleStyle:r}=n;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=bt.clsx(Qh.Title,"NoSelect","Title3"),e[0]=i):i=e[0];let o;return e[1]!==t||e[2]!==r?(o=M.jsx("div",{className:i,style:r,children:t}),e[1]=t,e[2]=r,e[3]=o):o=e[3],o},_8=n=>{const e=Vn.c(41),{type:t,ok:r,cancel:i,resources:o,isOkDisabled:l,isOkLoading:a,isCancelDisabled:h,isCancelLoading:g,okButtonStyle:m,cancelButtonStyle:x,actionStyle:w,buttonNoInteractive:_,okButtonClassName:E,cancelButtonClassName:R}=n,k=o.Ok;let O;e[0]!==E?(O=bt.clsx(Qh.Button,E),e[0]=E,e[1]=O):O=e[1];let P;e[2]!==_||e[3]!==l||e[4]!==a||e[5]!==r||e[6]!==m||e[7]!==o.Ok||e[8]!==O?(P={onClick:r,isDisabled:l,isLoading:a,children:k,style:m,noInteractive:_,className:O},e[2]=_,e[3]=l,e[4]=a,e[5]=r,e[6]=m,e[7]=o.Ok,e[8]=O,e[9]=P):P=e[9];const z=P,H=o.Cancel;let G;e[10]!==R?(G=bt.clsx(Qh.Button,R),e[10]=R,e[11]=G):G=e[11];let N;e[12]!==_||e[13]!==i||e[14]!==x||e[15]!==h||e[16]!==g||e[17]!==o.Cancel||e[18]!==G?(N={type:"Secondary",onClick:i,isDisabled:h,isLoading:g,children:H,style:x,noInteractive:_,className:G},e[12]=_,e[13]=i,e[14]=x,e[15]=h,e[16]=g,e[17]=o.Cancel,e[18]=G,e[19]=N):N=e[19];const J=N;if(t==="okCancel"||t==="ok"){let Y;e[20]!==w?(Y={...w},e[20]=w,e[21]=Y):Y=e[21];let K;e[22]!==z?(K=M.jsx(Ic,{...z}),e[22]=z,e[23]=K):K=e[23];let fe;e[24]!==J||e[25]!==t?(fe=t==="okCancel"&&M.jsxs(M.Fragment,{children:[M.jsx(cs,{w:8}),M.jsx(Ic,{...J})]}),e[24]=J,e[25]=t,e[26]=fe):fe=e[26];let X;return e[27]!==Y||e[28]!==K||e[29]!==fe||e[30]!==t?(X=M.jsxs("div",{className:Qh.Action,style:Y,children:[K,fe]},t),e[27]=Y,e[28]=K,e[29]=fe,e[30]=t,e[31]=X):X=e[31],X}else if(t==="cancelOk"||t==="cancel"){let Y;e[32]!==J?(Y=M.jsx(Ic,{...J}),e[32]=J,e[33]=Y):Y=e[33];let K;e[34]!==z||e[35]!==t?(K=t==="cancelOk"&&M.jsxs(M.Fragment,{children:[M.jsx(cs,{w:8}),M.jsx(Ic,{...z})]}),e[34]=z,e[35]=t,e[36]=K):K=e[36];let fe;return e[37]!==Y||e[38]!==K||e[39]!==t?(fe=M.jsxs("div",{className:Qh.Action,children:[Y,K]},t),e[37]=Y,e[38]=K,e[39]=t,e[40]=fe):fe=e[40],fe}},S8=n=>{const e=B.useMemo(()=>Math.random().toFixed(32),[]),t=B.useMemo(()=>{const _={};return n.forEach(E=>{_[E]=E+e}),_},[n,e]),r=B.useMemo(()=>[],[]),i=B.useMemo(()=>(r.length=0,r.push(...n),r),[r,n]),[o,l]=B.useState([]),a=B.useRef((()=>{const _={};return i.forEach(E=>{_[E]={open:()=>l(R=>[...R,E]),close:()=>{},ok:()=>{},cancel:()=>{}}}),_})()),h=B.useMemo(()=>{const _={};return i.forEach(E=>{_[E]=R=>{l(k=>!R&&k.includes(E)?k.filter(O=>O!==E):R&&!k.includes(E)?[...k,E]:k)}}),_},[i]),g=B.useMemo(()=>{const _={};return i.forEach(E=>{const k=[o.includes(E),h[E]],O=P=>{a.current[E]={...a.current[E],...P}};_[E]={useIsOpen:k,setAction:O}}),_},[o,h,i]),m=B.useMemo(()=>{const _={};return i.forEach(E=>{const R=()=>a.current[E].open(),k=()=>a.current[E].close(),O=()=>a.current[E].ok(),P=()=>a.current[E].cancel();_[E]={open:R,close:k,ok:O,cancel:P}}),_},[i]),x=B.useMemo(()=>({}),[]),w=B.useMemo(()=>(i.forEach(_=>{x[_]={state:g[_],action:m[_]}}),x),[x,i,g,m]);return B.useEffect(()=>(Object.keys(w).forEach(E=>{const R=w[E],k=t[E],O=Mh.find(P=>{P.id});O?O.core=R:Mh.push({id:k,core:R})}),()=>{const E=Object.keys(w),R=Mh.filter(k=>E.includes(k.id));Mh.length=0,Mh.push(...R)}),[w,t]),w},E8=()=>{const n=B.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=B.useState(!1),r=B.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),i=B.useMemo(()=>({useIsOpen:[e,t],setAction:h=>{r.current={...r.current,...h}}}),[e]),o=B.useMemo(()=>({open:()=>r.current.open(),close:()=>r.current.close(),ok:()=>r.current.ok(),cancel:()=>r.current.cancel()}),[]),l=B.useMemo(()=>({}),[]),a=B.useMemo(()=>(l.state=i,l.action=o,l),[l,i,o]);return B.useEffect(()=>{const h=Mh.find(g=>g.id===n);return h?h.core=a:Mh.push({id:n,core:a}),()=>{const g=Mh.filter(m=>m.id!==n);Mh.length=0,Mh.push(...g)}},[n,a]),a},T8=n=>{const e=Vn.c(5),{dlgCore:t,children:r}=n,[i,o]=t.state.useIsOpen;let l,a;e[0]!==o?(l=()=>()=>o==null?void 0:o(!1),a=[o],e[0]=o,e[1]=l,e[2]=a):(l=e[1],a=e[2]),B.useEffect(l,a);const h=i&&r;let g;return e[3]!==h?(g=M.jsx(B.Suspense,{children:h}),e[3]=h,e[4]=g):g=e[4],g},A8=n=>e=>{const{dlgCore:t}=e;return M.jsx(T8,{dlgCore:t,children:B.cloneElement(M.jsx(n,{...e}),{dlgCore:t})})},Mh=[],R8={closeAllDlgs:()=>{Mh.forEach(n=>{n.core.action.close()})}},I8="_AFileBox_1hlo1_1",k8="_SelectedFile_1hlo1_16",M8="_Dropping_1hlo1_26",Tm={AFileBox:I8,SelectedFile:k8,Dropping:M8},L8=n=>{const e=Vn.c(60);let t,r,i,o,l,a,h,g,m,x,w,_;e[0]!==n?({useFile:_,FileRenderer:g,SelectRenderer:m,DropRenderer:x,resources:i,accept:w,onInvalidFileFormat:h,fileSelectButtonClassName:o,isDisabled:l,isLoading:a,className:r,...t}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m,e[10]=x,e[11]=w,e[12]=_):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9],x=e[10],w=e[11],_=e[12]);const E=g===void 0?O8:g,R=m===void 0?P8:m,k=x===void 0?D8:x,O=w===void 0?"":w;let P;e[13]!==i?(P={...Nr.AFileBox,...i},e[13]=i,e[14]=P):P=e[14];const z=P,H=B.useRef(null),G=B.useRef(null),[N,J]=Do(_,null),[Y,K]=B.useState(!1);let fe;e[15]!==O?(fe=O.split(",").map(N8).filter(F8),e[15]=O,e[16]=fe):fe=e[16];const X=fe;let te;e[17]!==X?(te=Oe=>{if(X.length===0)return!1;const ht=Oe.name.split(".").pop();return ht?!X.includes(`.${ht}`):!0},e[17]=X,e[18]=te):te=e[18];const ne=te;let ue;e[19]!==ne||e[20]!==h||e[21]!==J?(ue=Oe=>{if(J)if(ne(Oe)){h==null||h();return}else J(Oe);else return},e[19]=ne,e[20]=h,e[21]=J,e[22]=ue):ue=e[22];const se=ue;let $;e[23]!==se?($=Oe=>{Oe.target.files&&Oe.target.files.length>0&&se(Oe.target.files[0])},e[23]=se,e[24]=$):$=e[24];const re=$;let de;e[25]!==se||e[26]!==l||e[27]!==a?(de=Oe=>{Oe.preventDefault(),K(!1),!(l||a)&&Oe.dataTransfer.files&&Oe.dataTransfer.files.length>0&&se(Oe.dataTransfer.files[0])},e[25]=se,e[26]=l,e[27]=a,e[28]=de):de=e[28];const be=de;let oe;e[29]!==l||e[30]!==a?(oe=Oe=>{Oe.preventDefault(),!(l||a)&&K(!0)},e[29]=l,e[30]=a,e[31]=oe):oe=e[31];const Q=oe;let ge;e[32]===Symbol.for("react.memo_cache_sentinel")?(ge=Oe=>{Oe.target===H.current&&Oe.relatedTarget.contains(H.current.parentElement)&&(Oe.preventDefault(),K(!1))},e[32]=ge):ge=e[32];const Te=ge,He=B8;let xe;e[33]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>{var Oe;(Oe=G.current)==null||Oe.click()},e[33]=xe):xe=e[33];const Ne=xe;let Me;if(Y){let Oe;e[34]!==k||e[35]!==z?(Oe=M.jsx(k,{resources:z}),e[34]=k,e[35]=z,e[36]=Oe):Oe=e[36],Me=Oe}else if(N){let Oe;e[37]!==E||e[38]!==N||e[39]!==_?(Oe=M.jsx(E,{file:N,useFile:_}),e[37]=E,e[38]=N,e[39]=_,e[40]=Oe):Oe=e[40],Me=Oe}else{let Oe;e[41]!==R||e[42]!==o||e[43]!==z?(Oe=M.jsx(R,{fileSelectButtonClassName:o,resources:z,onClick:Ne}),e[41]=R,e[42]=o,e[43]=z,e[44]=Oe):Oe=e[44],Me=Oe}const Be=Me;let ke;e[45]!==r?(ke=bt.clsx(Tm.AFileBox,r),e[45]=r,e[46]=ke):ke=e[46];let Ie;e[47]===Symbol.for("react.memo_cache_sentinel")?(Ie={display:"none"},e[47]=Ie):Ie=e[47];let ze;e[48]!==O||e[49]!==re?(ze=M.jsx("input",{ref:G,accept:O,style:Ie,type:"file",value:"",onChange:re}),e[48]=O,e[49]=re,e[50]=ze):ze=e[50];let Ke;return e[51]!==t||e[52]!==Be||e[53]!==l||e[54]!==a||e[55]!==Q||e[56]!==be||e[57]!==ke||e[58]!==ze?(Ke=M.jsxs(Wi,{...t,abaseRef:H,className:ke,isDisabled:l,isLoading:a,onDragEnter:Q,onDragLeave:Te,onDragOver:He,onDrop:be,children:[ze,Be]}),e[51]=t,e[52]=Be,e[53]=l,e[54]=a,e[55]=Q,e[56]=be,e[57]=ke,e[58]=ze,e[59]=Ke):Ke=e[59],Ke},O8=n=>{const e=Vn.c(10),{file:t,useFile:r}=n,[,i]=Do(r,null);let o,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={backgroundColor:""},l=M.jsx(uo,{icon:"File"}),e[0]=o,e[1]=l):(o=e[0],l=e[1]);let a;e[2]!==t.name?(a=M.jsx(nd,{children:t.name}),e[2]=t.name,e[3]=a):a=e[3];let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h={marginLeft:2,transform:"scale(0.8)"},e[4]=h):h=e[4];let g;e[5]!==i?(g=M.jsx(Ba,{icon:"Close",style:h,type:"Raw",onClick:()=>i==null?void 0:i(null)}),e[5]=i,e[6]=g):g=e[6];let m;return e[7]!==a||e[8]!==g?(m=M.jsxs(Ml,{className:Tm.SelectedFile,style:o,children:[l,a,g]}),e[7]=a,e[8]=g,e[9]=m):m=e[9],m},P8=n=>{const e=Vn.c(9),{onClick:t,resources:r,fileSelectButtonClassName:i}=n;let o,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=bt.clsx("NoSelect"),l={gap:4},e[0]=o,e[1]=l):(o=e[0],l=e[1]);const a=r["Select File"];let h;e[2]!==i||e[3]!==t||e[4]!==a?(h=M.jsx(Ic,{className:i,onClick:t,children:a}),e[2]=i,e[3]=t,e[4]=a,e[5]=h):h=e[5];const g=r["or Drag & Drop"];let m;return e[6]!==h||e[7]!==g?(m=M.jsxs(Ml,{className:o,style:l,children:[h,g]}),e[6]=h,e[7]=g,e[8]=m):m=e[8],m},D8=n=>{const e=Vn.c(4),{resources:t}=n;let r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=bt.clsx(Tm.Dropping,"NoSelect","Headline2"),i=M.jsx(uo,{icon:"FileDownload"}),e[0]=r,e[1]=i):(r=e[0],i=e[1]);const o=t["drop file to select"];let l;return e[2]!==o?(l=M.jsxs(D3,{className:r,children:[i,o]}),e[2]=o,e[3]=l):l=e[3],l};function N8(n){return n.trim()}function F8(n){return n.length>0&&n.startsWith(".")}function B8(n){return n.preventDefault()}async function z8(n){const e=new Promise((t,r)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):r(new Error("Failed to convert file to Base64: Invalid result type.")):r(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=r,i.readAsDataURL(n)});try{return await e}catch{return}}function H8(n,e){var a,h;const t=n.split(","),r=(h=(a=t[0])==null?void 0:a.match(/:(.*?);/))==null?void 0:h[1],i=atob(t[1]);let o=i.length;const l=new Uint8Array(o);for(;o--;)l[o]=i.charCodeAt(o);return new File([l],e,{type:r})}const z3=n=>n.idx?n.idx.toString():`${n.name}-${n.size}-${n.lastModified||""}`,Tg={toBase64:z8,toFile:H8,getFileKey:z3},W8="_AFileUploader_i2nun_1",U8="_LabelContainer_i2nun_16",G8="_LabelButton_i2nun_25",Y8="_Disabled_i2nun_31",V8="_Delete_i2nun_34",Z8="_FileSize_i2nun_38",X8="_TotalFileSize_i2nun_45",K8="_FileBox_i2nun_49",J8="_FileBoxFullSize_i2nun_68",Q8="_SelectRenderer_i2nun_75",q8="_ChipsContainer_i2nun_87",j8="_FileChip_i2nun_100",$8="_FileChipContent_i2nun_113",e9="_FileNameContainer_i2nun_124",t9="_ButtonRenderer_i2nun_130",n9="_ErrorBorder_i2nun_141",r9="_ErrorColor_i2nun_145",i9="_ErrorCursor_i2nun_149",o9="_DropIdle_i2nun_159",pl={AFileUploader:W8,LabelContainer:U8,LabelButton:G8,Disabled:Y8,Delete:V8,FileSize:Z8,TotalFileSize:X8,FileBox:K8,FileBoxFullSize:J8,SelectRenderer:Q8,ChipsContainer:q8,FileChip:j8,FileChipContent:$8,FileNameContainer:e9,ButtonRenderer:t9,ErrorBorder:n9,ErrorColor:r9,ErrorCursor:i9,DropIdle:o9},l9=n=>{const e=Vn.c(14),{file:t,baseClass:r,errorClass:i,errorCursorClass:o,resources:l,onDownload:a}=n,[h,g]=B.useState(!1);let m;e[0]!==r||e[1]!==i||e[2]!==o?(m=bt.clsx(r,i,o),e[0]=r,e[1]=i,e[2]=o,e[3]=m):m=e[3];const x=h?"FileDownload":"CircleAlertOutline",w=l["Fail Download"];let _;e[4]!==t||e[5]!==a?(_=()=>a(t),e[4]=t,e[5]=a,e[6]=_):_=e[6];let E,R;e[7]===Symbol.for("react.memo_cache_sentinel")?(E=()=>g(!0),R=()=>g(!1),e[7]=E,e[8]=R):(E=e[7],R=e[8]);let k;return e[9]!==m||e[10]!==x||e[11]!==w||e[12]!==_?(k=M.jsx(Ba,{className:m,icon:x,iconSize:"sm",tooltip:w,type:"Raw",onClick:_,onMouseEnter:E,onMouseLeave:R}),e[9]=m,e[10]=x,e[11]=w,e[12]=_,e[13]=k):k=e[13],k},s9=n=>{const{useFiles:e,accept:t,onInvalidFileFormat:r,onDownload:i,onDownloadCsv:o,onDelete:l,type:a,limit:h=1024*1024*1024,maxFileCount:g,useError:m,isLoading:x,resources:w,className:_,onDownloadAll:E,csvFilename:R,...k}=n,[{wrapId:O,wrapProps:P,labelProps:z,...H},G]=Bg(k),N=B.useMemo(()=>({...Nr.AFileUploader,...w}),[w]),[J,Y]=Do(e,void 0),[K,fe]=Do(m,!1),[X,te]=B.useState({}),[ne,ue]=B.useState(!1),se=B.useRef(0),$=B.useRef({}),re=B.useRef(null),de=B.useRef(null),be=B.useMemo(()=>(J==null?void 0:J.reduce((ot,nt)=>ot+nt.size,0))||0,[J]);B.useEffect(()=>{fe&&fe(be>h)},[be,h,fe]);const oe=B.useCallback(ot=>{var Zt;if(!t||t==="*"||t==="")return!0;const nt=t.split(",").map(Rt=>Rt.trim()),Ot=`.${(Zt=ot.name.split(".").pop())==null?void 0:Zt.toLowerCase()}`;return nt.includes(Ot)?!0:nt.some(Rt=>{var tn;if(Rt.startsWith("."))return!1;if(Rt.endsWith("/*")){const Ft=Rt.split("/")[0];return(tn=ot.type)==null?void 0:tn.startsWith(`${Ft}/`)}return ot.type===Rt})},[t]),Q=B.useCallback((ot,nt)=>{const Ot={...$.current};Ot[ot]=nt,$.current=Ot,te(Ot)},[te]),ge=B.useCallback(ot=>{const nt=Tg.getFileKey(ot);return X[nt]||"Normal"},[X]),Te=B.useCallback(ot=>x||ge(ot)==="Loading",[x,ge]),He=B.useCallback(ot=>ge(ot)==="Error"||a==="Upload"&&ot.size>h,[ge,h,a]),xe=B.useMemo(()=>J!=null&&J.length?a==="Download"?J.every(He):!1:!0,[J,a,He]),Ne=B.useCallback(()=>{re.current&&(re.current.value="")},[]),Me=B.useMemo(()=>!g||!(J!=null&&J.length)?!1:J.length>=g,[J,g]),Be=B.useCallback(ot=>{if(!Y)return;const nt=[];let Ot=!1,Zt=[],Rt=g?g-((J==null?void 0:J.length)||0):1/0;if(!(Rt<=0)){if(Array.from(ot).forEach((tn,Ft)=>{if(Ft>=Rt)return;if(!oe(tn)){Ot=!0,Zt.push(tn.name);return}const yn=tn;yn.uniqueId=`file-${Date.now()}-${se.current++}`,nt.push(yn)}),Ot)if(r)r();else{const tn=t?t.replace(/,/g,", "):"",Ft=tn?`${N["Supported file format(s)"]}: ${tn}`:"",yn=Zt.length>3?`${Zt.slice(0,3).join(", ")} ${N.and} ${Zt.length-3} ${N["more file(s)"]}`:Zt.join(", ");alert(`${N["Unsupported file format detected."]}
|
|
281
|
+
"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("`),Ni=R('$RR("'),el=R('","'),es=R('",'),Zs=R('"'),vr=R(")<\/script>");R('<template data-rci="" data-bid="'),R('<template data-rri="" data-bid="'),R('" data-sid="'),R('" data-sty="');var Bl=R('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};'),mo=R('$RX=function(b,c,d,e,f){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),f&&(a.cstck=f),b._reactRetry&&b._reactRetry())};;$RX("'),wl=R('$RX("'),qa=R('"'),Fi=R(","),pc=R(")<\/script>");R('<template data-rxi="" data-bid="'),R('" data-dgst="'),R('" data-msg="'),R('" data-stck="'),R('" data-cstck="');var Ls=/[<\u2028\u2029]/g,Cl=/[&><\u2028\u2029]/g,ps=R(' media="not all" data-precedence="'),zl=R('" data-href="'),vc=R('">'),Kc=R("</style>"),ts=!1,Jc=!0,Hl=[],ja=R(' data-precedence="'),mf=R('" data-href="'),Ri=R(" "),mu=R('">'),Os=R("</style>");R('<link rel="expect" href="#'),R('" blocking="render"/>');var Cr=R(' id="'),Qc=R("["),xf=R(",["),bc=R(","),qc=R("]"),yc=0,wf=1,ko=2,jc=3,Aa=/[<>\r\n]/g,Cf=/["';,\r\n]/g,Ps=Function.prototype.bind,Qf=Symbol.for("react.client.reference"),no={};Object.freeze(no);var ns={},ca=null,Yu={},$c={},Vu=new Set,$a=new Set,qf=new Set,Zu=new Set,mc=new Set,ec=new Set,_f=new Set,xc=new Set,Sf=new Set,mh={enqueueSetState:function(c,f,S){var D=c._reactInternals;D.queue===null?rt(c,"setState"):(D.queue.push(f),S!=null&&Se(S))},enqueueReplaceState:function(c,f,S){c=c._reactInternals,c.replace=!0,c.queue=[f],S!=null&&Se(S)},enqueueForceUpdate:function(c,f){c._reactInternals.queue===null?rt(c,"forceUpdate"):f!=null&&Se(f)}},xu={id:1,overflow:""},wu=Math.clz32?Math.clz32:wn,cd=Math.log,ud=Math.LN2,ua=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),jf=null,fd=typeof Object.is=="function"?Object.is:gr,tl=null,Ra=null,Ci=null,_l=null,Xs=null,ui=null,Sl=!1,vs=!1,_o=0,Cu=0,Ef=-1,$f=0,fa=null,ha=null,Xu=0,Ks=!1,wc,Cc={readContext:wo,use:function(c){if(c!==null&&typeof c=="object"){if(typeof c.then=="function")return jr(c);if(c.$$typeof===Li)return wo(c)}throw Error("An unsupported type was passed to use(): "+String(c))},useContext:function(c){return wc="useContext",Cn(),c._currentValue},useMemo:al,useReducer:Br,useRef:function(c){tl=Cn(),ui=_n();var f=ui.memoizedState;return f===null?(c={current:c},Object.seal(c),ui.memoizedState=c):f},useState:function(c){return wc="useState",Br(fo,c)},useInsertionEffect:Tn,useLayoutEffect:Tn,useCallback:function(c,f){return al(function(){return c},f)},useImperativeHandle:Tn,useEffect:Tn,useDebugValue:Tn,useDeferredValue:function(c,f){return Cn(),f!==void 0?f:c},useTransition:function(){return Cn(),[!1,Jl]},useId:function(){var c=Ra.treeContext,f=c.overflow;c=c.id,c=(c&~(1<<32-wu(c)-1)).toString(32)+f;var S=u;if(S===null)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");return f=_o++,c="_"+S.idPrefix+"R_"+c,0<f&&(c+="H"+f.toString(32)),c+"_"},useSyncExternalStore:function(c,f,S){if(S===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return S()},useOptimistic:function(c){return Cn(),[c,No]},useActionState:To,useFormState:To,useHostTransitionStatus:function(){return Cn(),Zr},useMemoCache:function(c){for(var f=Array(c),S=0;S<c;S++)f[S]=ra;return f},useCacheRefresh:function(){return fn},useEffectEvent:function(){return Si}},u=null,p=null,T={getCacheForType:function(){throw Error("Not implemented.")},cacheSignal:function(){throw Error("Not implemented.")},getOwner:function(){return p===null?null:p.componentStack}},F=0,q,ce,Ae,We,Pt,tt,_t;On.__reactDisabledLog=!0;var jt,vn,sn=!1,Ht=new(typeof WeakMap=="function"?WeakMap:Map),Mr={react_stack_bottom_frame:function(c,f,S){return c(f,S)}},Ii=Mr.react_stack_bottom_frame.bind(Mr),ar={react_stack_bottom_frame:function(c){return c.render()}},Sr=ar.react_stack_bottom_frame.bind(ar),nl={react_stack_bottom_frame:function(c){var f=c._init;return f(c._payload)}},rl=nl.react_stack_bottom_frame.bind(nl),Jr=0;if(typeof performance=="object"&&typeof performance.now=="function")var So=performance,rs=function(){return So.now()};else{var In=Date;rs=function(){return In.now()}}var Mn=4,ri=0,Gr=1,_i=2,Bi=3,Yr=4,Wn=5,Wl=14,bi=null,dl={},Vi={},is={},_u={},bs=!1,Ia=!1,gl=!1,so=0,Yo=!1;Fs(),Fs(),_g.prerender=function(c,f){return new Promise(function(S,D){var Z=f?f.onHeaders:void 0,ie;Z&&(ie=function(lt){Z(new Headers(lt))});var we=be(f?f.identifierPrefix:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.bootstrapScriptContent:void 0,f?f.bootstrapScripts:void 0,f?f.bootstrapModules:void 0),Pe=Ei(c,we,de(we,void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.importMap:void 0,ie,f?f.maxHeadersLength:void 0),ge(f?f.namespaceURI:void 0),f?f.progressiveChunkSize:void 0,f?f.onError:void 0,function(){var lt=new ReadableStream({type:"bytes",pull:function(Yt){hs(Pe,Yt)},cancel:function(Yt){Pe.destination=null,gi(Pe,Yt)}},{highWaterMark:0});lt={postponed:Ti(Pe),prelude:lt},S(lt)},void 0,void 0,D,f?f.onPostpone:void 0);if(f&&f.signal){var xt=f.signal;if(xt.aborted)gi(Pe,xt.reason);else{var Ye=function(){gi(Pe,xt.reason),xt.removeEventListener("abort",Ye)};xt.addEventListener("abort",Ye)}}ul(Pe)})},_g.renderToReadableStream=function(c,f){return new Promise(function(S,D){var Z,ie,we=new Promise(function(Jt,Nt){ie=Jt,Z=Nt}),Pe=f?f.onHeaders:void 0,xt;Pe&&(xt=function(Jt){Pe(new Headers(Jt))});var Ye=be(f?f.identifierPrefix:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.bootstrapScriptContent:void 0,f?f.bootstrapScripts:void 0,f?f.bootstrapModules:void 0),lt=Fo(c,Ye,de(Ye,f?f.nonce:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.importMap:void 0,xt,f?f.maxHeadersLength:void 0),ge(f?f.namespaceURI:void 0),f?f.progressiveChunkSize:void 0,f?f.onError:void 0,ie,function(){var Jt=new ReadableStream({type:"bytes",pull:function(Nt){hs(lt,Nt)},cancel:function(Nt){lt.destination=null,gi(lt,Nt)}},{highWaterMark:0});Jt.allReady=we,S(Jt)},function(Jt){we.catch(function(){}),D(Jt)},Z,f?f.onPostpone:void 0,f?f.formState:void 0);if(f&&f.signal){var Yt=f.signal;if(Yt.aborted)gi(lt,Yt.reason);else{var Qt=function(){gi(lt,Yt.reason),Yt.removeEventListener("abort",Qt)};Yt.addEventListener("abort",Qt)}}ul(lt)})},_g.resume=function(c,f,S){return new Promise(function(D,Z){var ie,we,Pe=new Promise(function(Yt,Qt){we=Yt,ie=Qt}),xt=$r(c,f,de(f.resumableState,S?S.nonce:void 0,void 0,void 0,void 0,void 0),S?S.onError:void 0,we,function(){var Yt=new ReadableStream({type:"bytes",pull:function(Qt){hs(xt,Qt)},cancel:function(Qt){xt.destination=null,gi(xt,Qt)}},{highWaterMark:0});Yt.allReady=Pe,D(Yt)},function(Yt){Pe.catch(function(){}),Z(Yt)},ie,S?S.onPostpone:void 0);if(S&&S.signal){var Ye=S.signal;if(Ye.aborted)gi(xt,Ye.reason);else{var lt=function(){gi(xt,Ye.reason),Ye.removeEventListener("abort",lt)};Ye.addEventListener("abort",lt)}}ul(xt)})},_g.resumeAndPrerender=function(c,f,S){return new Promise(function(D,Z){var ie=xr(c,f,de(f.resumableState,void 0,void 0,void 0,void 0,void 0),S?S.onError:void 0,function(){var xt=new ReadableStream({type:"bytes",pull:function(Ye){hs(ie,Ye)},cancel:function(Ye){ie.destination=null,gi(ie,Ye)}},{highWaterMark:0});xt={postponed:Ti(ie),prelude:xt},D(xt)},void 0,void 0,Z,S?S.onPostpone:void 0);if(S&&S.signal){var we=S.signal;if(we.aborted)gi(ie,we.reason);else{var Pe=function(){gi(ie,we.reason),we.removeEventListener("abort",Pe)};we.addEventListener("abort",Pe)}}ul(ie)})},_g.version="19.2.0"})()),_g}var H2;function UT(){if(H2)return wg;H2=1;var n,e;return process.env.NODE_ENV==="production"?(n=BT(),e=zT()):(n=HT(),e=WT()),wg.version=n.version,wg.renderToString=n.renderToString,wg.renderToStaticMarkup=n.renderToStaticMarkup,wg.renderToReadableStream=e.renderToReadableStream,wg.resume=e.resume,wg}var XC=UT();const a1=L1(XC);function gp(n,e,t){return e!==void 0&&n<e?e:t!==void 0&&n>t?t:n}const kg={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const n=Date.now();if(this._fontCache.value&&n-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:n},e}catch{return"400 14px pretendard"}},measureCharWidth(n,e){var i,o,l,a,h,g;const t=`${n}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const m=this._canvas.getContext("2d");if(m){m.font=e;const x=m.measureText(n).width;return this._charWidthMap.set(t,x),x}}catch{}let r;return n===" "?r=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")/3:/^[A-Z]$/.test(n)?r=parseInt(((o=e.match(/(\d+)px/))==null?void 0:o[1])||"14")*.67:/^[a-z]$/.test(n)?r=parseInt(((l=e.match(/(\d+)px/))==null?void 0:l[1])||"14")*.5:/^\d$/.test(n)?r=parseInt(((a=e.match(/(\d+)px/))==null?void 0:a[1])||"14")*.6:/^[.,;:!?]$/.test(n)?r=parseInt(((h=e.match(/(\d+)px/))==null?void 0:h[1])||"14")*.25:r=parseInt(((g=e.match(/(\d+)px/))==null?void 0:g[1])||"14")*.67,this._charWidthMap.set(t,r),r},extractTextFromNode(n){if(n==null)return"";if(typeof n=="string")return n;if(typeof n=="number"||typeof n=="boolean")return`${n}`;if(Array.isArray(n))return n.map(e=>this.extractTextFromNode(e)).join("");if(B.isValidElement(n))try{const t=XC.renderToString(n).replace(/<[^>]*>/g,""),r=document.createElement("div");return r.innerHTML=t,r.textContent||""}catch{return n.props&&n.props.children?this.extractTextFromNode(n.props.children):""}return""},measureTextWidth(n,e){var o;if(!n)return 0;const t=e||this.getDefaultFont(),r=`${n}|${t}`,i=this._cache.get(r);if(i!==void 0)return i;try{this._canvas||(this._canvas=document.createElement("canvas"));const l=this._canvas.getContext("2d");if(l){l.font=t;const a=l.measureText(n),h=Math.ceil(a.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(m=>this._cache.delete(m)),this._cache.set(r,h),h}}catch{}try{const l=document.createElement("span");l.style.font=t,l.style.position="absolute",l.style.visibility="hidden",l.style.whiteSpace="nowrap",l.textContent=n,document.body.appendChild(l);const a=Math.ceil(l.getBoundingClientRect().width);return document.body.removeChild(l),this._cache.set(r,a),a}catch{}try{let l=0;for(let h=0;h<n.length;h++)l+=this.measureCharWidth(n[h],t);l*=.95;const a=Math.ceil(l);return this._cache.set(r,a),a}catch{}try{const l=parseInt(((o=t.match(/(\d+)px/))==null?void 0:o[1])||"14");let a=0;for(let g=0;g<n.length;g++){const m=n[g];m===" "?a+=.33:/^[A-Z]$/.test(m)?a+=.67:/^[a-z]$/.test(m)?a+=.5:/^\d$/.test(m)?a+=.6:/^[.,;:!?]$/.test(m)?a+=.25:a+=.67}const h=Math.ceil(a*l);return this._cache.set(r,h),h}catch{const a=n.length*10;return this._cache.set(r,a),a}},measureTextWithElementStyle(n,e){if(!e)return 0;try{const t=window.getComputedStyle(n),r=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,r)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(n){const e=this.extractTextFromNode(n);return this.measureTextWidth(e)},measureRenderedOptionWidth(n,e){if(n==null)return 0;const t=e(n),r=this.extractTextFromNode(t);return this.measureTextWidth(r)},calculateOptimalSelectWidth({elementRef:n,options:e=[],selectedOption:t=null,selectedOptions:r=[],placeholder:i="",optionRenderer:o,type:l="Primary",isMulti:a=!1}){if(!n.current)return 200;try{let h=0;if(e&&e.length>0){const _=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(R,k)=>e[Math.floor(k*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],E=Array.from(new Set(_.filter(Boolean)));for(const R of E){if(!R)continue;const k=this.measureRenderedOptionWidth(R,o);h=Math.max(h,k)}}let g=0;if(!a&&t)g=this.measureRenderedOptionWidth(t,o);else if(a&&r&&r.length){if(r.length===1)g=this.measureRenderedOptionWidth(r[0],o);else if(g=this.measureTextWidth(`${r.length} selected`),r.length>0){let _=0;for(const E of r){const R=this.measureRenderedOptionWidth(E,o);_=Math.max(_,R)}g=Math.max(g,_)}}let m=0;i&&(m=this.measureReactNodeWidth(i));const w=Math.max(h,g,m,50);if(n.current){const _=window.getComputedStyle(n.current),E=parseFloat(_.paddingLeft||"0")+parseFloat(_.paddingRight||"0"),R=parseFloat(_.borderLeftWidth||"0")+parseFloat(_.borderRightWidth||"0"),k=l==="Primary"?30:20,O=a?24:0,P=Math.ceil(w*.05)+10;return Math.ceil(w+E+R+k+O+P)}return w+60}catch{return 200}}};function KC(n,e){const t=Vn.c(5),[r,i]=B.useState(0);let o,l;return t[0]!==r||t[1]!==n||t[2]!==e?(o=()=>{const a=()=>{const g=n.current,m=e.current;if(!g||!m)return i(0);const x=g.getBoundingClientRect(),w=m.getBoundingClientRect(),_=Math.max(0,Math.round(x.right-w.left));_!==r&&i(_)};a();const h=new ResizeObserver(a);return n.current&&h.observe(n.current),e.current&&h.observe(e.current),window.addEventListener("resize",a),()=>{h.disconnect(),window.removeEventListener("resize",a)}},l=[n,e,r],t[0]=r,t[1]=n,t[2]=e,t[3]=o,t[4]=l):(o=t[3],l=t[4]),B.useEffect(o,l),r}var ic=(n=>(n.E="East",n.N="North",n.S="South",n.W="West",n))(ic||{}),O1=(n=>(n.E="East",n.EN="EastNorth",n.ES="EastSouth",n.N="North",n.NE="NorthEast",n.NW="NorthWest",n.S="South",n.SE="SouthEast",n.SW="SouthWest",n.W="West",n.WN="WestNorth",n.WS="WestSouth",n))(O1||{});function mm(n,e,t,r){if(!n.current||!e.current)return;const i=n.current.getBoundingClientRect(),o=e.current.getBoundingClientRect();let l={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":l=o?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-o.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":l={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":l={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":l=o?{top:i.bottom,left:i.left+i.width/2-o.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":l={top:i.bottom,left:i.left};break;case"SouthEast":l={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":l=o?{top:i.top+i.height/2-o.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":l={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":l={top:i.top,left:i.right};break;case"West":l=o?{top:i.top+i.height/2-o.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":l={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":l={top:i.top,right:window.innerWidth-i.left};break;default:l={top:i.top,left:i.left}}r&&(r.x&&l.left&&(l.left+=r.x),r.y&&l.top&&(l.top+=r.y)),l=QC(l,o),e.current.style.top=l.top+"px",e.current.style.left=l.left+"px",e.current.style.bottom=l.bottom+"px",e.current.style.right=l.right+"px"}function JC(n,e,t,r){if(!n)return;const i=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!i)return;const o=n.getBoundingClientRect(),l=i.getBoundingClientRect();let a={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":a=l?{bottom:window.innerHeight-o.top,left:o.left+o.width/2-l.width/2}:{bottom:window.innerHeight-o.top,left:o.left};break;case"NorthWest":a={bottom:window.innerHeight-o.top,left:o.left};break;case"NorthEast":a={bottom:window.innerHeight-o.top,right:window.innerWidth-o.left-o.width};break;case"South":a=l?{top:o.bottom,left:o.left+o.width/2-l.width/2}:{top:o.bottom,left:o.left};break;case"SouthWest":a={top:o.bottom,left:o.left};break;case"SouthEast":a={top:o.bottom,right:window.innerWidth-o.left-o.width};break;case"East":a=l?{top:o.top+o.height/2-l.height/2,left:o.right}:{top:o.top,left:o.right};break;case"EastNorth":a={bottom:window.innerHeight-o.top-o.height,left:o.right};break;case"EastSouth":a={top:o.top,left:o.right};break;case"West":a=l?{top:o.top+o.height/2-l.height/2,right:window.innerWidth-o.left}:{top:o.top,right:window.innerWidth-o.left};break;case"WestNorth":a={bottom:window.innerHeight-o.top-o.height,right:window.innerWidth-o.left};break;case"WestSouth":a={top:o.top,right:window.innerWidth-o.left};break;default:a={top:o.top,left:o.left}}return r&&(r.x&&a.left&&(a.left+=r.x),r.y&&a.top&&(a.top+=r.y)),a=QC(a,l),i.style.top=a.top+"px",i.style.left=a.left+"px",i.style.bottom=a.bottom+"px",i.style.right=a.right+"px",a}function QC(n,e,t=10){return n.left&&n.left<t&&(n.left=t),n.right&&n.right<t&&(n.right=t),n.top&&n.top<t&&(n.top=t),n.bottom&&n.bottom<t&&(n.bottom=t),n.left&&e&&n.left+e.width>window.innerWidth-t&&(n.left=window.innerWidth-e.width-t),n.right&&e&&n.right+e.width>window.innerWidth-t&&(n.right=window.innerWidth-e.width-t),n.top&&e&&n.top+e.height>window.innerHeight-t&&(n.top=window.innerHeight-e.height-t),n.bottom&&e&&n.bottom+e.height>window.innerHeight-t&&(n.bottom=window.innerHeight-e.height-t),n}function Eg(){const n={preventDefault:!1};return{event:n,e:{preventDefault:()=>n.preventDefault=!0}}}const GT="_Tooltip_1khnz_1",YT="_Arrow_1khnz_17",W2={Tooltip:GT,Arrow:YT},qC=n=>{const e=Vn.c(28),{tooltip:t,targetRef:r,delay:i,distance:o,direction:l}=n,a=i===void 0?0:i,h=o===void 0?10:o,g=l===void 0?ic.S:l,[m,x]=B.useState(!1),w=B.useRef(null),_=B.useRef(null),E=B.useRef(null);let R;e[0]!==a||e[1]!==g||e[2]!==h||e[3]!==r?(R=()=>{x(!0),E.current&&(clearTimeout(E.current),E.current=null);const ue=setTimeout(()=>requestAnimationFrame(()=>U2(r,w,_,h,g)),a);E.current=ue},e[0]=a,e[1]=g,e[2]=h,e[3]=r,e[4]=R):R=e[4];const k=R;let O;e[5]===Symbol.for("react.memo_cache_sentinel")?(O=()=>{E.current&&(clearTimeout(E.current),E.current=null),x(!1)},e[5]=O):O=e[5];const P=O;let z,H;e[6]!==k||e[7]!==r?(z=()=>{const ue=r.current;if(ue)return ue.addEventListener("mouseenter",k),ue.addEventListener("mouseleave",P),()=>{ue.removeEventListener("mouseenter",k),ue.removeEventListener("mouseleave",P)}},H=[r,P,k],e[6]=k,e[7]=r,e[8]=z,e[9]=H):(z=e[8],H=e[9]),B.useEffect(z,H);let G;e[10]!==g||e[11]!==h||e[12]!==r?(G=()=>{U2(r,w,_,h,g)},e[10]=g,e[11]=h,e[12]=r,e[13]=G):G=e[13];const N=G;let J,Y;e[14]!==m||e[15]!==N||e[16]!==r?(J=()=>{if(!r.current||!w.current||!m)return;const ue=r.current.parentElement;let se=ue;for(;se;)se.addEventListener("scroll",N),se=se.parentElement;return()=>{let $=ue;for(;$;)$.removeEventListener("scroll",N),$=$.parentElement}},Y=[r,N,m],e[14]=m,e[15]=N,e[16]=r,e[17]=J,e[18]=Y):(J=e[17],Y=e[18]),B.useEffect(J,Y);let K;e[19]!==N?(K=()=>{N()},e[19]=N,e[20]=K):K=e[20];let fe;e[21]!==N||e[22]!==t?(fe=[t,N],e[21]=N,e[22]=t,e[23]=fe):fe=e[23],B.useEffect(K,fe);let X;e:switch(typeof t){case"boolean":{X=!0;break e}case"string":{X=t==="";break e}case"number":{X=!1;break e}default:X=!t}if(!m||X)return null;let ne;if(e[24]!==t){let ue;e[26]===Symbol.for("react.memo_cache_sentinel")?(ue=bt.clsx(W2.Tooltip,"NoSelect"),e[26]=ue):ue=e[26];let se;e[27]===Symbol.for("react.memo_cache_sentinel")?(se=M.jsx("div",{ref:_,className:W2.Arrow}),e[27]=se):se=e[27],ne=su.createPortal(M.jsxs("div",{ref:w,className:ue,children:[t,se]}),document.body),e[24]=t,e[25]=ne}else ne=e[25];return ne},u0="5px solid var(--ATooltip_background-color)";function U2(n,e,t,r,i=ic.S){if(!n.current||!e.current||!t.current)return;const o=VT(n.current,e.current,r,i);if(!o)return;const{left:l,top:a,arrowDir:h,arrow:g}=o;e.current.style.left=`${l}px`,e.current.style.top=`${a}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",h===ic.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${g.left??0}px)`,t.current.style.borderBottom=u0):h===ic.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${g.left??0}px)`,t.current.style.borderTop=u0):h===ic.W?(t.current.style.top=`calc(50% - 5px + ${g.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=u0):h===ic.E&&(t.current.style.top=`calc(50% - 5px + ${g.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=u0)}const Gd=5;function VT(n,e,t,r){const i=n.getBoundingClientRect(),o=e.getBoundingClientRect();function l(){if(window.innerHeight-i.bottom>o.height+t){const m=i.bottom+t,x=i.left+(i.width-o.width)/2,w=gp(x,Gd,window.innerWidth-Gd-o.width),_=ic.N;return{left:w,top:m,arrowDir:_,arrow:{left:x-w}}}}function a(){if(i.top>o.height+t){const m=i.top-o.height-t,x=i.left+(i.width-o.width)/2,w=gp(x,Gd,window.innerWidth-Gd-o.width),_=ic.S;return{left:w,top:m,arrowDir:_,arrow:{left:x-w}}}}function h(){if(window.innerWidth-i.right>o.width+t){const m=i.right+t,x=i.top+(i.height-o.height)/2,w=gp(x,Gd,window.innerHeight-Gd-o.height),_=ic.W;return{left:m,top:w,arrowDir:_,arrow:{top:x-w}}}}function g(){if(i.left>o.width+t){const m=i.left-o.width-t,x=i.top+(i.height-o.height)/2,w=gp(x,Gd,window.innerHeight-Gd-o.height),_=ic.E;return{left:m,top:w,arrowDir:_,arrow:{top:x-w}}}}if(r===ic.E)return h()||g()||l()||a();if(r===ic.S)return l()||a()||h()||g();if(r===ic.W)return g()||h()||l()||a();if(r===ic.N)return a()||l()||h()||g()}const ZT="_ABase_c7a1t_1",XT="_UseDimming_c7a1t_6",KT="_Dimmer_c7a1t_6",JT="_Spinner_c7a1t_9",QT="_Dimmed_c7a1t_12",qT="_HasProgress_c7a1t_18",jT="_IsDimmed_c7a1t_36",$T="_IsLoading_c7a1t_41",eA="_IsDisabled_c7a1t_46",qg={ABase:ZT,UseDimming:XT,Dimmer:KT,Spinner:JT,Dimmed:QT,HasProgress:qT,IsDimmed:jT,IsLoading:$T,IsDisabled:eA},Wi=n=>{const e=Vn.c(27),{children:t,abaseRef:r,abaseCallbackRef:i,isDisabled:o,isLoading:l,isDimmed:a,tooltip:h,tooltipDistance:g,tooltipDelay:m,tooltipDirection:x,progress:w,ProgressRenderer:_,progressProps:E,...R}=n,k=g===void 0?10:g,O=m===void 0?0:m,P=x===void 0?ic.S:x,z=_===void 0?tA:_,H=B.useRef(null),G=r??H;let N;e:{if(typeof o=="string"&&o!==""){N=o;break e}else if(h!==void 0){N=h;break e}N=""}const J=N,Y=o||l||a,K=o!==void 0||l!==void 0||a!==void 0,fe=typeof w=="number"&&l,X=i||G,te=bt.clsx(R.className,qg.ABase,K&&qg.UseDimming,Y&&qg.Dimmed,fe&&qg.HasProgress);let ne;e[0]!==a||e[1]!==fe||e[2]!==o||e[3]!==l||e[4]!==K?(ne=K&&M.jsx("div",{className:bt.sclsx(qg,"Dimmer",o&&"IsDisabled",l&&"IsLoading",a&&"IsDimmed",fe&&"HasProgress")}),e[0]=a,e[1]=fe,e[2]=o,e[3]=l,e[4]=K,e[5]=ne):ne=e[5];let ue;e[6]!==z||e[7]!==fe||e[8]!==o||e[9]!==l||e[10]!==w||e[11]!==E?(ue=l&&M.jsxs("div",{className:bt.sclsx(qg,"Spinner",o&&"IsDisabled",l&&"IsLoading",fe&&"HasProgress"),children:[M.jsx(uo,{icon:"Spinner"}),M.jsx(B.Activity,{mode:fe?"visible":"hidden",children:M.jsx(z,{progress:w??0,...E})})]}),e[6]=z,e[7]=fe,e[8]=o,e[9]=l,e[10]=w,e[11]=E,e[12]=ue):ue=e[12];let se;e[13]!==G||e[14]!==J||e[15]!==O||e[16]!==P||e[17]!==k?(se=M.jsx(qC,{delay:O,direction:P,distance:k,targetRef:G,tooltip:J}),e[13]=G,e[14]=J,e[15]=O,e[16]=P,e[17]=k,e[18]=se):se=e[18];let $;return e[19]!==t||e[20]!==R||e[21]!==X||e[22]!==te||e[23]!==ne||e[24]!==ue||e[25]!==se?($=M.jsxs("div",{...R,ref:X,className:te,children:[t,ne,ue,se]}),e[19]=t,e[20]=R,e[21]=X,e[22]=te,e[23]=ne,e[24]=ue,e[25]=se,e[26]=$):$=e[26],$},tA=n=>{const e=Vn.c(6);let t,r;e[0]!==n?({progress:t,...r}=n,e[0]=n,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;return e[3]!==t||e[4]!==r?(i=M.jsx(ZC,{progress:t,...r}),e[3]=t,e[4]=r,e[5]=i):i=e[5],i},nA="_AButton_zrw2c_1",rA="_Primary_zrw2c_14",iA="_Secondary_zrw2c_29",oA="_Alter_zrw2c_44",lA="_AIconButton_zrw2c_60",sA="_AThemeButton_zrw2c_101",Tp={AButton:nA,Primary:rA,Secondary:iA,Alter:oA,AIconButton:lA,AThemeButton:sA},aA=["Primary","Secondary","Alter","Raw"],Ic=n=>{const e=Vn.c(17);let t,r,i,o;e[0]!==n?({type:o,onClick:r,noInteractive:i,...t}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o):(t=e[1],r=e[2],i=e[3],o=e[4]);const l=o===void 0?"Primary":o,a=t.isDisabled||t.isLoading;let h;e[5]!==r||e[6]!==a?(h=w=>{a||r==null||r(w)},e[5]=r,e[6]=a,e[7]=h):h=e[7];const g=h;let m;e[8]!==t.className||e[9]!==i||e[10]!==l||e[11]!==a?(m=bt.clsx(t.className,Tp.AButton,l!=="Raw"&&Tp[l],"IsClickable",!a&&!i&&"IsInteractive"),e[8]=t.className,e[9]=i,e[10]=l,e[11]=a,e[12]=m):m=e[12];let x;return e[13]!==t||e[14]!==g||e[15]!==m?(x=M.jsx(Wi,{...t,className:m,onClick:g}),e[13]=t,e[14]=g,e[15]=m,e[16]=x):x=e[16],x},cA=["Primary","Secondary","Raw"],Ba=n=>{const e=Vn.c(29);let t,r,i,o,l,a,h,g,m;e[0]!==n?({icon:o,iconSize:l,type:g,onClick:i,isDisabled:a,isLoading:h,tooltip:m,className:r,...t}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9]);const x=g===void 0?"Primary":g,w=a||h;let _;e[10]!==i||e[11]!==w?(_=z=>{w||i==null||i(z)},e[10]=i,e[11]=w,e[12]=_):_=e[12];const E=_;let R;e:{if(ym.includes(o)){let z;e[13]!==o||e[14]!==l?(z=M.jsx(uo,{icon:o,size:l}),e[13]=o,e[14]=l,e[15]=z):z=e[15],R=z;break e}R=o}const k=R;let O;e[16]!==r||e[17]!==a||e[18]!==h||e[19]!==x?(O=bt.clsx(Tp.AIconButton,!a&&!h&&"IsClickable",x!=="Raw"&&Tp[x],r),e[16]=r,e[17]=a,e[18]=h,e[19]=x,e[20]=O):O=e[20];let P;return e[21]!==t||e[22]!==k||e[23]!==a||e[24]!==h||e[25]!==E||e[26]!==O||e[27]!==m?(P=M.jsx(Wi,{className:O,isDisabled:a,isLoading:h,tooltip:m,onClick:E,...t,children:k}),e[21]=t,e[22]=k,e[23]=a,e[24]=h,e[25]=E,e[26]=O,e[27]=m,e[28]=P):P=e[28],P};function Do(n,e){n!==void 0&&n.length===1&&(e=n[0]);const t=B.useState(e);let r;return n===void 0||n.length===1?r=t:r=n,r}const uA="_AWrap_u1f1h_1",fA="_Label_u1f1h_8",hA="_Asterisk_u1f1h_19",dA="_HelperTextConatiner_u1f1h_23",gA="_HelperText_u1f1h_23",jg={AWrap:uA,Label:fA,Asterisk:hA,HelperTextConatiner:dA,HelperText:gA,Error:"_Error_u1f1h_38"},pA=["Default","Error"],Bg=n=>{if(!n)return[{},{}];const e={},t={},r=["errorMessage","helperText","label","labelProps","wrapId","wrapProps","wrapType"];for(const i in n)r.includes(i)?e[i]=n[i]:t[i]=n[i];return[e,t]},lg=n=>{const{wrapProps:e,errorMessage:t,helperText:r,wrapType:i="Default",label:o,labelProps:l,wrapId:a,children:h}=n,g=B.useRef(null),[m,x]=B.useState({height:0}),w=B.useRef(null),[_,E]=B.useMemo(()=>{let k=r,O=i;if(Array.isArray(t)){const P=t.filter(Boolean);P.length>0&&([k,O]=[P,"Error"])}else t&&([k,O]=[t,"Error"]);return Array.isArray(k)&&(O!=="Error"&&(k=k.filter(Boolean)),k=k.map((P,z)=>M.jsxs(B.Fragment,{children:[P,M.jsx("br",{})]},rr.key(z)))),[k,O]},[r,t,i]);B.useEffect(()=>{if(!_||!g.current)x({height:0});else{const k=g.current.getBoundingClientRect();x({height:k.height,marginTop:k.height===0?0:6})}},[_]);const R=B.useMemo(()=>{switch(typeof(l==null?void 0:l.prefix)){case"string":return M.jsx(uo,{height:"1rem",icon:l.prefix,width:"1rem"});case"boolean":return M.jsx(uo,{height:10,icon:"Target",width:10});default:return l==null?void 0:l.prefix}},[l==null?void 0:l.prefix]);return M.jsxs("div",{...e,ref:w,className:bt.clsx(e==null?void 0:e.className,jg.AWrap),id:a,children:[o&&M.jsxs("div",{className:bt.clsx(jg.Label,"NoSelect",l==null?void 0:l.className),style:l==null?void 0:l.style,children:[l==null?void 0:l.leftAddon,R,o,(l==null?void 0:l.asterisk)&&M.jsx(Wi,{className:jg.Asterisk,tooltip:Nr.AWrap.Asterisk,children:"*"}),l==null?void 0:l.rightAddon]}),h,_!==void 0&&M.jsx("div",{className:bt.clsx(jg.HelperTextConatiner,"NoSelect"),style:m,children:M.jsx("div",{ref:g,className:bt.clsx(jg.HelperText,jg[E]),children:_})})]})},vA="_ASwitch_nlcij_1",bA="_Track_nlcij_6",yA="_Truthy_nlcij_13",mA="_Thumb_nlcij_17",$1={ASwitch:vA,Track:bA,Truthy:yA,Thumb:mA},jC=n=>{const e=Vn.c(33);let t,r;if(e[0]!==n){const{useCheck:G,...N}=n;r=G,t=Bg(N),e[0]=n,e[1]=t,e[2]=r}else t=e[1],r=e[2];const[i,o]=t;let l,a,h,g;e[3]!==i?({wrapId:a,wrapProps:h,labelProps:l,...g}=i,e[3]=i,e[4]=l,e[5]=a,e[6]=h,e[7]=g):(l=e[4],a=e[5],h=e[6],g=e[7]);const[m,x]=Do(r,!1);let w;e[8]!==m||e[9]!==o||e[10]!==x?(w=G=>{var N;o.isDisabled||o.isLoading||(x==null||x(!m),(N=o.onClick)==null||N.call(o,G))},e[8]=m,e[9]=o,e[10]=x,e[11]=w):w=e[11];const _=w;let E;e[12]!==l||e[13]!==a||e[14]!==h||e[15]!==g?(E={wrapId:a,wrapProps:h,labelProps:l,...g},e[12]=l,e[13]=a,e[14]=h,e[15]=g,e[16]=E):E=e[16];let R;e[17]!==m?(R=bt.clsx($1.Track,m&&$1.Truthy),e[17]=m,e[18]=R):R=e[18];let k;e[19]!==m?(k=bt.clsx($1.Thumb,m&&$1.Truthy),e[19]=m,e[20]=k):k=e[20];let O;e[21]!==k?(O=M.jsx("div",{className:k}),e[21]=k,e[22]=O):O=e[22];let P;e[23]!==R||e[24]!==O?(P=M.jsx("div",{className:R,children:O}),e[23]=R,e[24]=O,e[25]=P):P=e[25];let z;e[26]!==_||e[27]!==o||e[28]!==P?(z=M.jsx(Wi,{...o,className:$1.ASwitch,onClick:_,children:P}),e[26]=_,e[27]=o,e[28]=P,e[29]=z):z=e[29];let H;return e[30]!==E||e[31]!==z?(H=M.jsx(lg,{...E,children:z}),e[30]=E,e[31]=z,e[32]=H):H=e[32],H},xA={palette:{"mode-1":{"common-100":"#ffffff","common-0":"#000000","neutral-99":"#fcfcfc","neutral-94":"#efefef","neutral-89":"#e2e2e2","neutral-84":"#d6d6d6","neutral-79":"#c9c9c9","neutral-73":"#bababa","neutral-65":"#a5a5a5","neutral-54":"#898989","neutral-42":"#6b6b6b","neutral-30":"#4c4c4c","neutral-20":"#333333","neutral-15":"#2c2c2c","neutral-10":"#191919","neutral-5":"#0c0c0c","cool-neutral-99":"#fcfcfc","cool-neutral-94":"#efeff0","cool-neutral-89":"#e1e2e4","cool-neutral-84":"#d4d5d7","cool-neutral-79":"#c7c8cb","cool-neutral-73":"#b7b9bc","cool-neutral-65":"#a2a4a9","cool-neutral-54":"#85888e","cool-neutral-42":"#66696f","cool-neutral-30":"#494b4f","cool-neutral-20":"#303235","cool-neutral-10":"#18191a","cool-neutral-5":"#0c0c0c","red-99":"#fff9f9","red-95":"#ffe5e5","red-90":"#ffcccc","red-84":"#ffadad","red-76":"#ff8484","red-66":"#ff5151","red-53":"#ff0f0f","red-45":"#e50000","red-34":"#a80000","red-30":"#990000","red-24":"#7a0000","red-10":"#330000","green-99":"#fafffa","green-95":"#e5ffe8","green-90":"#ccffd1","green-84":"#adffb6","green-76":"#84ff90","green-66":"#51ff62","green-48":"#00f418","green-45":"#00e517","green-34":"#00a810","green-30":"#00990f","green-24":"#007a0c","green-10":"#003305","blue-99":"#fafdff","blue-95":"#e5f3ff","blue-90":"#cce6ff","blue-84":"#add7ff","blue-76":"#84c3ff","blue-66":"#51abff","blue-53":"#0f8bff","blue-45":"#0077e5","blue-34":"#0056a8","blue-30":"#004f99","blue-24":"#003f7a","blue-10":"#001a33","orange-99":"#fffcfa","orange-95":"#ffefe5","orange-90":"#ffdecc","orange-84":"#ffcbad","orange-76":"#ffb184","orange-66":"#ff9151","orange-53":"#ff670f","orange-45":"#e55400","orange-34":"#a83d00","orange-30":"#993800","orange-24":"#7a2c00","orange-10":"#331200","violet-99":"#fcfaff","violet-95":"#eee5ff","violet-90":"#dcccff","violet-84":"#c7adff","violet-76":"#ab84ff","violet-66":"#8852ff","violet-53":"#5b0fff","violet-45":"#4900e5","violet-34":"#3500a8","violet-28":"#2d008e","violet-24":"#26007a","violet-10":"#100033","cyan-99":"#faffff","cyan-95":"#e5fdff","cyan-90":"#ccfbff","cyan-84":"#adf9ff","cyan-76":"#84f6ff","cyan-66":"#51f3ff","cyan-50":"#00edff","cyan-45":"#00d6e5","cyan-40":"#00becc","cyan-30":"#008e99","cyan-21":"#00636b","cyan-10":"#002f33","pink-99":"#fffefa","pink-95":"#ffe5f5","pink-90":"#ffccea","pink-84":"#ffadde","pink-76":"#ff84ce","pink-66":"#ff51b9","pink-53":"#ff0f9f","pink-45":"#e5008a","pink-40":"#cc007a","pink-30":"#99005b","pink-21":"#6b0040","pink-10":"#33001e","lime-99":"#fcfffa","lime-95":"#eeffe5","lime-90":"#ddffcc","lime-84":"#c8ffad","lime-76":"#adff84","lime-66":"#8bff51","lime-49":"#53f900","lime-45":"#4ce500","lime-40":"#44cc00","lime-30":"#339900","lime-21":"#236b00","lime-10":"#113300","brand-b-color":"#386fff"}},semantic:{light:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","acent-brand-fill":"blue-95","label-normal":"neutral-20","label-strong":"neutral-5","label-neutral":"neutral-73","line-normal":"neutral-79","line-strong":"neutral-65","line-neutral":"neutral-89","background-normal":"common-100","elevation-0":"common-100","elevation-10":"neutral-94","elevation-20":"neutral-73","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-84","inverse-label-strong":"neutral-99","inverse-label-neutral":"neutral-30","inverse-line-normal":"neutral-30","inverse-line-strong":"neutral-54","inverse-line-neutral":"neutral-20","inverse-elevation-0":"neutral-5","inverse-elevation-10":"neutral-10","inverse-elevation-20":"neutral-15"},dark:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","acent-brand-fill":"blue-10","label-normal":"neutral-84","label-strong":"neutral-99","label-neutral":"neutral-30","line-normal":"neutral-30","line-strong":"neutral-54","line-neutral":"neutral-20","background-normal":"neutral-5","elevation-0":"neutral-5","elevation-10":"neutral-10","elevation-20":"neutral-15","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-20","inverse-label-strong":"neutral-5","inverse-label-neutral":"neutral-73","inverse-line-normal":"neutral-79","inverse-line-strong":"neutral-65","inverse-line-neutral":"neutral-89","inverse-elevation-0":"common-100","inverse-elevation-10":"neutral-94","inverse-elevation-20":"neutral-73"}}},lc=tg.cloneDeep(xA);rr.keys(lc.semantic).forEach(n=>{const e=lc.semantic[n];rr.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const Sv=rr.keys(lc.palette),$C=rr.keys(lc.palette[Sv[0]]);function wA(){return va.paletteMode}function CA(n,e=va.paletteMode){return lc.palette[e][n]}function _A(n){return Tv(n)}const $0=[];function e3(n){va.paletteMode=n,$C.forEach(e=>document.documentElement.style.setProperty(`--${e}`,lc.palette[n][e])),$0.forEach(e=>e(n))}function t3(n,e="all"){rr.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(document.documentElement.style.setProperty(`--${r}`,i),e==="all"?Sv.forEach(o=>{lc.palette[o][r]=i}):lc.palette[e][r]=i)})}const x1=rr.keys(lc.semantic),n3=rr.keys(lc.semantic[x1[0]]);function SA(){return va.semanticMode}function EA(n,e=va.semanticMode){return lc.semantic[e][n]}function TA(n){return Tv(n)}const ev=[];function xm(n){va.semanticMode=n,document.documentElement.setAttribute("data-theme",n),n3.forEach(e=>document.documentElement.style.setProperty(`--${e}`,lc.semantic[n][e])),ev.forEach(e=>e(n)),va.save==="localStorage"?localStorage.setItem("semanticMode",n):va.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",n)}function r3(n,e=va.semanticMode){rr.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(document.documentElement.style.setProperty(`--${r}`,i),e==="all"?x1.forEach(o=>{lc.semantic[o][r]=i}):lc.semantic[e][r]=i)})}const i3=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition","Transition-Enabled"],o3=["ABase_Dimming_background-color"],l3=["ATooltip_background-color","ATooltip_color"],s3=["AButton_Primary_border","AButton_Primary_background-color","AButton_Primary_color","AButton_Primary_hover_border","AButton_Primary_hover_background-color","AButton_Primary_hover_color","AButton_Primary_active_border","AButton_Primary_active_background-color","AButton_Primary_active_color","AButton_Secondary_border","AButton_Secondary_background-color","AButton_Secondary_color","AButton_Secondary_hover_border","AButton_Secondary_hover_background-color","AButton_Secondary_hover_color","AButton_Secondary_active_border","AButton_Secondary_active_background-color","AButton_Secondary_active_color","AButton_Alter_border","AButton_Alter_background-color","AButton_Alter_color","AButton_Alter_hover_border","AButton_Alter_hover_background-color","AButton_Alter_hover_color","AButton_Alter_active_border","AButton_Alter_active_background-color","AButton_Alter_active_color"],a3=["AInput_Primary_background-color","AInput_Primary_border","AInput_Primary_color","AInput_Primary_hover_border","AInput_Primary_focus_background-color","AInput_Primary_focus_border","AInput_Primary_placeholder_color","AInput_Secondary_background-color","AInput_Secondary_border","AInput_Secondary_color","AInput_Secondary_hover_border","AInput_Secondary_focus_border","AInput_Secondary_placeholder_color","AInput_ReadOnly_background-color","AInput_ReadOnly_border","AInput_ReadOnly_color","AInput_Error_HelperText_color","AInput_Error_background-color","AInput_Error_border","AInput_Error_color","AInput_Error_placeholder_color"],c3=["ATextArea_Primary_background-color","ATextArea_Primary_border","ATextArea_Primary_color","ATextArea_Primary_hover_border","ATextArea_Primary_focus_background-color","ATextArea_Primary_focus_border","ATextArea_Secondary_background-color","ATextArea_Secondary_border","ATextArea_Secondary_color","ATextArea_Secondary_hover_border","ATextArea_Secondary_focus_border","ATextArea_ReadOnly_background-color","ATextArea_ReadOnly_border","ATextArea_ReadOnly_color","ATextArea_Error_background-color","ATextArea_Error_border","ATextArea_Error_color","ATextArea_Error_placeholder_color"],u3=["AEditor_Primary_background-color","AEditor_Primary_border","AEditor_Primary_color","AEditor_Primary_hover_border","AEditor_Primary_focus_background-color","AEditor_Primary_focus_border","AEditor_ReadOnly_background-color","AEditor_ReadOnly_border","AEditor_ReadOnly_hover_border","AEditor_ReadOnly_focus_border","AEditor_ReadOnly_color","AEditor_Error_background-color","AEditor_Error_border","AEditor_Error_hover_border","AEditor_Error_focus_border","AEditor_Error_color","AEditor_Error_placeholder_color","AEditor_Addon_Primary_background-color","AEditor_Addon_Primary_border","AEditor_Addon_Primary_color","AEditor_Addon_Secondary_background-color","AEditor_Addon_Secondary_border","AEditor_Addon_Secondary_color","AEditor_Addon_hover_background-color","AEditor_Addon_hover_color","AEditor_Addon_focus_border","AEditor_border-radius","AEditor_Select_border-radius","AEditor_Option_border-radius"],f3=["ACheckBox_color"],h3=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],d3=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],g3=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],p3=["ATree_background-color","ATree_Indent_border","ATreeBodyHeader_border-bottom","ATreeItem_hover_background-color","ATreeItem_active_background-color","ATreeItem_select_background-color","ATreeItem_search_background-color","ATreeItem_search_border-top","ATreeItem_search_border-bottom","ATreeItem_select_color"],v3=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],b3=["ATab_IndicatorTrack_Primary_border-bottom","ATab_Indicator_Primary_background-color","ATab_Option_Secondary_border","ATab_Option_Secondary_IsSelected_border-bottom","ATab_Option_Secondary_IsDisabled_border","ATab_IndicatorTrack_Tertiary_background-color","ATab_Indicator_Tertiary_background-color","ATab_Option_Tertiary_color","ATab_Option_Tertiary_IsSelected_color","ATab_Option_Quaternary_color","ATab_Option_Quaternary_IsSelected_color"],y3=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],m3=["AFileUploader_background-color","AFileUploader_brand_color","AFileUploader_disabled_color","AFileUploader_error_color","AFileUploader_text_color"],x3=["AListView_border-thin","AListView_border-thick"],w3=["AStepper_OutCircle_background-color","AStepper_OutCircle_IsOver_background-color","AStepper_InCircle_background-color","AStepper_InCircle_IsOver_background-color","AStepper_Line_background-color","AStepper_Line_IsOver_background-color"],C3=["ADatePicker_Anchor_border","ADatePicker_Anchor_color","ADatePicker_Anchor_Placeholder_color","ADatePicker_Anchor_hover_border","ADatePicker_Anchor_focus_border","ADatePicker_Anchor_Icon_Primary_color","ADatePicker_Anchor_Icon_Secondary_color","ADatePicker_background-color","ADatePicker_border","ADatePicker_StringInputContainer_background-color","ADatePicker_String_border","ADatePicker_Prev_background-color","ADatePicker_Prev_border-right","ADatePicker_Next_background-color","ADatePicker_Next_border-left","ADatePicker_Cell_color","ADatePicker_Cell_IsNotCurrentMonth_color","ADatePicker_Cell_IsDisabled_color","ADatePicker_Cell_IsSelected_background-color","ADatePicker_Cell_IsSelected_color","ADatePicker_Cell_IsHovered_background-color"],_3=["ADateRangePicker_Anchor_border","ADateRangePicker_Anchor_color","ADateRangePicker_Anchor_Placeholder_color","ADateRangePicker_Anchor_hover_border","ADateRangePicker_Anchor_focus_border","ADateRangePicker_Anchor_Icon_Primary_color","ADateRangePicker_Anchor_Icon_Secondary_color","ADateRangePicker_background-color","ADateRangePicker_border","ADateRangePicker_StringInputContainer_background-color","ADateRangePicker_String_border","ADateRangePicker_Prev_background-color","ADateRangePicker_Prev_border-right","ADateRangePicker_Next_background-color","ADateRangePicker_Next_border-left","ADateRangePicker_Cell_color","ADateRangePicker_Cell_IsNotCurrentMonth_color","ADateRangePicker_Cell_IsDisabled_color","ADateRangePicker_Cell_IsSelected_background-color","ADateRangePicker_Cell_IsSelected_color","ADateRangePicker_Cell_IsHovered_background-color"],S3=["AIconButton_Primary_color","AIconButton_Primary_border","AIconButton_Primary_background-color","AIconButton_Primary_hover_background-color","AIconButton_Primary_active_background-color","AIconButton_Secondary_color","AIconButton_Secondary_background-color","AIconButton_Secondary_hover_background-color","AIconButton_Secondary_active_background-color"],E3=["ATableBody_TRow_border-bottom","ATableBody_TRow_IsSelected_background-color","ATableBody_TRow_IsSelectable_hover_background-color","ATableBody_TH_color","ATableBody_TD_IsMarked_background-color","ATableBody_TD_IsMarked_color","ATableBody_Resizer_hover_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerOut_background-color","ATableBody_Resizer_active_ResizerIn_background-color","ATableFooter_Button_IsSelected_background-color","ATableFooter_Button_IsSelected_color","ATableFooter_Button_IsDisabled_color","ATableFilter_SubFilters_background-color","ATableFilter_SubFilters_border","ATableFilter_Icon_color","ATableFilter_Alert_color"],T3=["ADivideFrame_DividerInner_background-color"],A3=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],R3=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],I3=["AWrap_Error_color"],k3=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],M3=["AChip_background-color","AChip_color","AChip_border","AChip_hover_background-color","AChip_hover_color","AChip_DeleteButton_border","AChip_DeleteButton_color","AChip_DeleteButton_hover_border","AChip_DeleteButton_hover_color"],AA=[...i3,...o3,...l3,...s3,...a3,...c3,...u3,...f3,...h3,...d3,...g3,...p3,...v3,...b3,...y3,...m3,...x3,...w3,...C3,..._3,...S3,...E3,...T3,...A3,...R3,...I3,...k3,...M3],Ev={"Body-background-color":"var(--background-normal)","Body-color":"var(--label-normal)","Body-transition":"background-color var(--Transition), color var(--Transition)",Font:"400 16px pretendard","Scrollbar-handle":"var(--label-neutral)","Scrollbar-handle-hover":"var(--label-normal)","Scrollbar-handle-active":"var(--label-strong)","Scrollbar-track":"var(--elevation-10)","Scrollbar-border-radius":"6px","Scrollbar-width":"12px",Transition:"300ms","Transition-Enabled":"1","ABase_Dimming_background-color":"var(--elevation-0)","ATooltip_background-color":"var(--inverse-elevation-0)",ATooltip_color:"var(--inverse-label-strong)",AButton_Primary_border:"none","AButton_Primary_background-color":"var(--acent-brand)",AButton_Primary_color:"var(--static-white)",AButton_Primary_hover_border:"none","AButton_Primary_hover_background-color":"var(--acent-brand)",AButton_Primary_hover_color:"var(--static-white)",AButton_Primary_active_border:"none","AButton_Primary_active_background-color":"var(--acent-brand)",AButton_Primary_active_color:"var(--static-white)",AButton_Secondary_border:"1px solid var(--elevation-10)","AButton_Secondary_background-color":"var(--elevation-10)",AButton_Secondary_color:"var(--label-normal)",AButton_Secondary_hover_border:"1px solid var(--elevation-10)","AButton_Secondary_hover_background-color":"var(--elevation-10)",AButton_Secondary_hover_color:"var(--label-normal)",AButton_Secondary_active_border:"1px solid var(--elevation-10)","AButton_Secondary_active_background-color":"var(--elevation-10)",AButton_Secondary_active_color:"var(--label-normal)",AButton_Alter_border:"1px solid var(--line-normal)","AButton_Alter_background-color":"var(--elevation-0)",AButton_Alter_color:"var(--label-normal)",AButton_Alter_hover_border:"1px solid var(--line-normal)","AButton_Alter_hover_background-color":"var(--elevation-0)",AButton_Alter_hover_color:"var(--label-normal)",AButton_Alter_active_border:"1px solid var(--line-normal)","AButton_Alter_active_background-color":"var(--elevation-0)",AButton_Alter_active_color:"var(--label-normal)","AInput_Primary_background-color":"var(--elevation-0)",AInput_Primary_border:"1px solid var(--line-normal)",AInput_Primary_color:"var(--label-normal)",AInput_Primary_hover_border:"1px solid var(--line-strong)","AInput_Primary_focus_background-color":"var(--elevation-10)",AInput_Primary_focus_border:"1px solid var(--line-strong)",AInput_Primary_placeholder_color:"var(--label-neutral)","AInput_Secondary_background-color":"var(--elevation-0)",AInput_Secondary_border:"1px solid var(--line-normal)",AInput_Secondary_color:"var(--label-normal)",AInput_Secondary_hover_border:"1px solid var(--line-strong)",AInput_Secondary_focus_border:"1px solid var(--line-strong)",AInput_Secondary_placeholder_color:"var(--label-neutral)","AInput_ReadOnly_background-color":"var(--elevation-10)",AInput_ReadOnly_border:"none",AInput_ReadOnly_color:"var(--label-normal)",AInput_Error_HelperText_color:"var(--alert-danger)","AInput_Error_background-color":"inherit",AInput_Error_border:"1px solid var(--line-normal)",AInput_Error_color:"var(--label-normal)",AInput_Error_placeholder_color:"var(--label-neutral)","ATextArea_Primary_background-color":"var(--elevation-0)",ATextArea_Primary_border:"1px solid var(--line-normal)",ATextArea_Primary_color:"var(--label-normal)",ATextArea_Primary_hover_border:"1px solid var(--line-strong)","ATextArea_Primary_focus_background-color":"var(--elevation-10)",ATextArea_Primary_focus_border:"1px solid var(--line-strong)","ATextArea_Secondary_background-color":"var(--elevation-0)",ATextArea_Secondary_border:"1px solid var(--line-normal)",ATextArea_Secondary_color:"var(--label-normal)",ATextArea_Secondary_hover_border:"1px solid var(--line-strong)",ATextArea_Secondary_focus_border:"1px solid var(--line-strong)","ATextArea_ReadOnly_background-color":"var(--elevation-10)",ATextArea_ReadOnly_border:"none",ATextArea_ReadOnly_color:"var(--label-normal)","ATextArea_Error_background-color":"inherit",ATextArea_Error_border:"1px solid var(--line-normal)",ATextArea_Error_color:"var(--label-normal)",ATextArea_Error_placeholder_color:"var(--label-neutral)","AEditor_Primary_background-color":"var(--elevation-0)",AEditor_Primary_border:"1px solid var(--line-normal)",AEditor_Primary_color:"var(--label-normal)",AEditor_Primary_hover_border:"1px solid var(--line-strong)","AEditor_Primary_focus_background-color":"var(--elevation-0)",AEditor_Primary_focus_border:"1px solid var(--line-strong)","AEditor_ReadOnly_background-color":"var(--elevation-0)",AEditor_ReadOnly_border:"1px solid var(--line-normal)",AEditor_ReadOnly_hover_border:"1px solid var(--line-strong)",AEditor_ReadOnly_focus_border:"1px solid var(--line-strong)",AEditor_ReadOnly_color:"var(--label-normal)","AEditor_Error_background-color":"inherit",AEditor_Error_border:"1px solid var(--alert-danger)",AEditor_Error_color:"var(--alert-danger)",AEditor_Error_hover_border:"1px solid var(--alert-danger)",AEditor_Error_focus_border:"1px solid var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AFileUploader_background-color":"var(--background-normal)",AFileUploader_brand_color:"var(--acent-brand)",AFileUploader_disabled_color:"var(--label-neutral)",AFileUploader_error_color:"var(--alert-danger)",AFileUploader_text_color:"var(--label-normal)","AListView_border-thin":"1px solid var(--line-neutral)","AListView_border-thick":"3px solid var(--line-neutral)","AStepper_OutCircle_background-color":"transparent","AStepper_OutCircle_IsOver_background-color":"var(--elevation-10)","AStepper_InCircle_background-color":"var(--elevation-20)","AStepper_InCircle_IsOver_background-color":"var(--label-normal)","AStepper_Line_background-color":"var(--line-neutral)","AStepper_Line_IsOver_background-color":"var(--label-normal)",ADatePicker_Anchor_border:"1px solid var(--line-normal)",ADatePicker_Anchor_color:"var(--label-normal)",ADatePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADatePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADatePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADatePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADatePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADatePicker_background-color":"var(--elevation-0)",ADatePicker_border:"1px solid var(--line-neutral)","ADatePicker_StringInputContainer_background-color":"var(--label-neutral)",ADatePicker_String_border:"1px solid var(--label-normal)","ADatePicker_Prev_background-color":"var(--elevation-10)","ADatePicker_Prev_border-right":"6px solid var(--label-normal)","ADatePicker_Next_background-color":"var(--elevation-10)","ADatePicker_Next_border-left":"6px solid var(--label-normal)",ADatePicker_Cell_color:"var(--label-normal)",ADatePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADatePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADatePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADatePicker_Cell_IsSelected_color:"var(--label-normal)","ADatePicker_Cell_IsHovered_background-color":"var(--elevation-10)",ADateRangePicker_Anchor_border:"1px solid var(--line-normal)",ADateRangePicker_Anchor_color:"var(--label-normal)",ADateRangePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADateRangePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADateRangePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADateRangePicker_background-color":"var(--elevation-0)",ADateRangePicker_border:"1px solid var(--line-neutral)","ADateRangePicker_StringInputContainer_background-color":"var(--label-neutral)",ADateRangePicker_String_border:"1px solid var(--label-normal)","ADateRangePicker_Prev_background-color":"var(--elevation-10)","ADateRangePicker_Prev_border-right":"6px solid var(--label-normal)","ADateRangePicker_Next_background-color":"var(--elevation-10)","ADateRangePicker_Next_border-left":"6px solid var(--label-normal)",ADateRangePicker_Cell_color:"var(--label-normal)",ADateRangePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADateRangePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADateRangePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADateRangePicker_Cell_IsSelected_color:"var(--label-normal)","ADateRangePicker_Cell_IsHovered_background-color":"var(--elevation-10)",AIconButton_Primary_color:"var(--label-normal)",AIconButton_Primary_border:"1px solid var(--line-normal)","AIconButton_Primary_background-color":"var(--elevation-0)","AIconButton_Primary_hover_background-color":"var(--elevation-10)","AIconButton_Primary_active_background-color":"var(--elevation-20)",AIconButton_Secondary_color:"var(--label-normal)","AIconButton_Secondary_background-color":"var(--elevation-0)","AIconButton_Secondary_hover_background-color":"var(--elevation-10)","AIconButton_Secondary_active_background-color":"var(--elevation-20)","ATableBody_TRow_border-bottom":"1px solid var(--line-normal)","ATableBody_TRow_IsSelected_background-color":"var(--elevation-10)","ATableBody_TRow_IsSelectable_hover_background-color":"var(--elevation-10)",ATableBody_TH_color:"var(--label-neutral)","ATableBody_TD_IsMarked_background-color":"yellow",ATableBody_TD_IsMarked_color:"var(--label-normal)","ATableBody_Resizer_hover_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerOut_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerIn_background-color":"var(--line-neutral)","ATableFooter_Button_IsSelected_background-color":"var(--elevation-10)",ATableFooter_Button_IsSelected_color:"var(--label-normal)",ATableFooter_Button_IsDisabled_color:"var(--label-neutral)","ATableFilter_SubFilters_background-color":"var(--elevation-0)",ATableFilter_SubFilters_border:"1px solid var(--line-normal)",ATableFilter_Icon_color:"var(--label-normal)",ATableFilter_Alert_color:"var(--alert-danger)","ADivideFrame_DividerInner_background-color":"var(--line-normal)","AFloatMenu_background-color":"var(--elevation-0)","AFloatMenu_hover_background-color":"var(--elevation-10)",AFloatMenu_color:"var(--label-normal)",AFloatMenu_border:"1px solid var(--line-neutral)","ALoadingBorder_background-color":"var(--label-normal)","ALoadingBorder_ProgressBar_background-color":"var(--elevation-0)","ALoadingBorder_Cover_background-color":"var(--label-normal)",AWrap_Error_color:"var(--alert-danger)",ARadioSelect_RadioButton_border:"1px solid var(--line-normal)","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color":"var(--acent-brand)","AChip_background-color":"var(--elevation-10)",AChip_color:"var(--label-normal)",AChip_border:"1px solid var(--line-normal)","AChip_hover_background-color":"var(--elevation-20)",AChip_hover_color:"var(--label-normal)",AChip_DeleteButton_border:"9px solid var(--line-normal)",AChip_DeleteButton_color:"var(--label-normal)",AChip_DeleteButton_hover_border:"9px solid var(--line-strong)",AChip_DeleteButton_hover_color:"var(--label-normal)"};function RA(n){return Ev[n]}function IA(n){return Tv(n)}function L3(n){rr.keys(n).forEach(t=>{const r=n[t];r!==void 0&&(document.documentElement.style.setProperty(`--${t}`,r),Ev[t]=r)})}function kA(n){rr.keys(n).forEach(t=>{const r=n[t];if(r===void 0)return;const i=lc.semantic[va.semanticMode][r];i!==void 0&&(document.documentElement.style.setProperty(t,i),Ev[t]=i)})}const va={paletteMode:Sv[0],semanticMode:x1[0],save:"",followDeviceSetting:!1};function MA({semanticMode:n,save:e,followDeviceSetting:t}){if(t!==void 0&&(va.followDeviceSetting=t,t)){const r=window.matchMedia("(prefers-color-scheme: dark)"),i=l=>{va.semanticMode=l.matches?"dark":"light"};i(r);const o=l=>i(l);r.addEventListener("change",o)}if(e!==void 0){if(va.save=e,e==="localStorage"){const r=localStorage.getItem("semanticMode");x1.includes(r)&&(va.semanticMode=r)}else if(e==="sessionStorage"){const r=sessionStorage.getItem("semanticMode");x1.includes(r)&&(va.semanticMode=r)}}n!==void 0&&(va.semanticMode=n),e3(va.paletteMode),xm(va.semanticMode),t3(lc.palette[va.paletteMode]),r3(lc.semantic[va.semanticMode]),L3(Ev)}function LA(n){n.type==="semanticModeChange"?ev.push(n.listener):n.type==="paletteModeChange"?$0.push(n.listener):console.error("AThemes.addEventListener : parameter is not valid")}function OA(n){if(n.type==="semanticModeChange"){const e=ev.indexOf(n.listener);e!==-1&&ev.splice(e,1)}else if(n.type==="paletteModeChange"){const e=$0.indexOf(n.listener);e!==-1&&$0.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function Tv(n){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(n);return t===""&&(t=e.getPropertyValue(`--${n}`)),t}function PA(n){Object.assign(bt.additionalClasses,n),bt.updateKeys(),bt.additionalClasses=bt.additionalClasses}const pp={getCurrentPaletteMode:wA,getPaletteValue:CA,getPaletteDeepValue:_A,changePaletteMode:e3,editPalette:t3,getCurrentSemanticMode:SA,getSemanticValue:EA,getSemanticDeepValue:TA,changeSemanticMode:xm,editSemantic:r3,getComponentStyleValue:RA,getComponentStyleDeepValue:IA,editComponentStyle:L3,editComponentStyleWithSemantic:kA,init:MA,addEventListener:LA,removeEventListener:OA,getDeepValue:Tv,addClasses:PA},DA=n=>{const e=Vn.c(9),{onChange:t,onClick:r,type:i,...o}=n,l=i===void 0?"Icon":i,[a,h]=B.useState(pp.getCurrentSemanticMode()==="dark"?"Moon":"Sun");let g;e[0]!==r||e[1]!==t?(g=x=>{const w=pp.getCurrentSemanticMode();let _="light";w==="light"?_="dark":w==="dark"&&(_="light"),pp.changeSemanticMode(_),h(NA[_]),t==null||t(_),r==null||r(x)},e[0]=r,e[1]=t,e[2]=g):g=e[2];const m=g;if(l==="Icon")return M.jsx(Ba,{...o,className:bt.clsx(Tp.AThemeButton,o.className,"IsInteractive"),icon:a,type:"Raw",onClick:m});if(l==="Switch"){let x;e[3]===Symbol.for("react.memo_cache_sentinel")?(x=pp.getCurrentSemanticMode(),e[3]=x):x=e[3];let w;e[4]!==m?(w=[x==="dark",m],e[4]=m,e[5]=w):w=e[5];let _;return e[6]!==o||e[7]!==w?(_=M.jsx(jC,{...o,useCheck:w}),e[6]=o,e[7]=w,e[8]=_):_=e[8],_}},NA={light:"Sun",dark:"Moon"},FA="_ACheckBoxWrap_1ozuz_1",BA="_ACheckBox_1ozuz_1",G2={ACheckBoxWrap:FA,ACheckBox:BA},w1=n=>{const e=Vn.c(16),{useCheck:t,isIndeterminate:r,isDisabled:i,isLoading:o,onClick:l,...a}=n,[h,g]=Do(t,!1);let m;e[0]!==h||e[1]!==l||e[2]!==i||e[3]!==o||e[4]!==g?(m=O=>{i||o||(g==null||g(!h),l==null||l(O))},e[0]=h,e[1]=l,e[2]=i,e[3]=o,e[4]=g,e[5]=m):m=e[5];const x=m,w=Wi,_=bt.clsx(a.className,G2.ACheckBoxWrap),E=r?"Check.Indeterminate":h?"Check.Checked":"Check.UnChecked";let R;e[6]!==E?(R=M.jsx(uo,{className:G2.ACheckBox,icon:E}),e[6]=E,e[7]=R):R=e[7];let k;return e[8]!==w||e[9]!==a||e[10]!==i||e[11]!==o||e[12]!==x||e[13]!==_||e[14]!==R?(k=M.jsx(w,{...a,className:_,isDisabled:i,isLoading:o,onClick:x,children:R}),e[8]=w,e[9]=a,e[10]=i,e[11]=o,e[12]=x,e[13]=_,e[14]=R,e[15]=k):k=e[15],k};function zA(n){return typeof n=="function"}function HA(n,e){return zA(n)?n(e):n}const Vr={getContent:HA};class Y2{constructor(e){Ee(this,"capacity");Ee(this,"cache",new Map);this.capacity=e}get(e){if(!this.cache.has(e))return;const t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}put(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){const r=this.cache.keys().next().value;r!==void 0&&this.cache.delete(r)}this.cache.set(e,t)}delete(e){return this.cache.delete(e)}clear(){this.cache.clear()}entries(){return Array.from(this.cache.entries())}}const Rg=class Rg{constructor(){Ee(this,"databases",{});Ee(this,"caches",{});Ee(this,"DEFAULT_CACHE_SIZE",100)}static getInstance(){return Rg.instance||(Rg.instance=new Rg),Rg.instance}getCache(e,t){const r=`${e}_${t}`;return this.caches[r]||(this.caches[r]=new Y2(this.DEFAULT_CACHE_SIZE)),this.caches[r]}async getDB(e,t,r=1){return this.databases[e]?this.databases[e]:new Promise((i,o)=>{if(!window.indexedDB){console.error("이 브라우저는 IndexedDB를 지원하지 않습니다."),o(new Error("IndexedDB not supported"));return}const l=window.indexedDB.open(e,r);l.onerror=a=>{console.error("IndexedDB 연결 오류:",a.target.error),o(a.target.error)},l.onsuccess=a=>{const h=a.target.result;this.databases[e]=h,i(h)},l.onupgradeneeded=a=>{const h=a.target.result;h.objectStoreNames.contains(t)||h.createObjectStore(t,{keyPath:"id"}).createIndex("updatedAt_idx","updatedAt",{unique:!1})}})}async save(e,t,r){this.getCache(e,t).put(r.id,{...r});const a=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((h,g)=>{const m=a.put(r);m.onsuccess=()=>h(),m.onerror=x=>{console.error("데이터 저장 오류:",x.target.error),g(x.target.error)}})}async batchSave(e,t,r){if(r.length===0)return;const i=this.getCache(e,t);r.forEach(h=>i.put(h.id,{...h}));const l=(await this.getDB(e,t)).transaction([t],"readwrite"),a=l.objectStore(t);return new Promise((h,g)=>{l.oncomplete=()=>h(),l.onerror=m=>{console.error("배치 저장 오류:",m.target.error),g(m.target.error)},r.forEach(m=>a.put(m))})}async get(e,t,r){const i=this.getCache(e,t),o=i.get(r);if(o)return o;const h=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((g,m)=>{const x=h.get(r);x.onsuccess=()=>{const w=x.result;w&&i.put(r,w),g(w||null)},x.onerror=w=>{console.error("데이터 조회 오류:",w.target.error),m(w.target.error)}})}async getByIndex(e,t,r,i){const h=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t).index(r);return new Promise((g,m)=>{const x=h.getAll(i);x.onsuccess=()=>{const w=x.result,_=this.getCache(e,t);w.forEach(E=>{E&&E.id&&_.put(E.id,E)}),g(w)},x.onerror=w=>{console.error("인덱스 조회 오류:",w.target.error),m(w.target.error)}})}async delete(e,t,r){this.getCache(e,t).delete(r);const a=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((h,g)=>{const m=a.delete(r);m.onsuccess=()=>h(),m.onerror=x=>{console.error("데이터 삭제 오류:",x.target.error),g(x.target.error)}})}async batchDelete(e,t,r){if(r.length===0)return;const i=this.getCache(e,t);r.forEach(h=>i.delete(h));const l=(await this.getDB(e,t)).transaction([t],"readwrite"),a=l.objectStore(t);return new Promise((h,g)=>{l.oncomplete=()=>h(),l.onerror=m=>{console.error("배치 삭제 오류:",m.target.error),g(m.target.error)},r.forEach(m=>a.delete(m))})}async getAll(e,t){const o=(await this.getDB(e,t)).transaction([t],"readonly").objectStore(t);return new Promise((l,a)=>{const h=o.getAll();h.onsuccess=()=>{const g=h.result,m={},x=this.getCache(e,t);g.forEach(w=>{w.id&&(m[w.id]=w,x.put(w.id,w))}),l(m)},h.onerror=g=>{console.error("데이터 전체 조회 오류:",g.target.error),a(g.target.error)}})}async clear(e,t){this.getCache(e,t).clear();const l=(await this.getDB(e,t)).transaction([t],"readwrite").objectStore(t);return new Promise((a,h)=>{const g=l.clear();g.onsuccess=()=>a(),g.onerror=m=>{console.error("데이터 초기화 오류:",m.target.error),h(m.target.error)}})}getCached(e,t,r){return this.getCache(e,t).get(r)||null}clearCached(e,t){this.getCache(e,t).clear()}setCacheSize(e,t,r){const i=`${e}_${t}`,l=this.getCache(e,t).entries();this.caches[i]=new Y2(r);for(const[a,h]of l)this.caches[i].get(a)===void 0&&a!==void 0&&this.caches[i].put(a,h)}};Ee(Rg,"instance");let ky=Rg;const Sh=ky.getInstance(),Ah={save:(n,e,t)=>Sh.save(n,e,t),get:(n,e,t)=>Sh.get(n,e,t),delete:(n,e,t)=>Sh.delete(n,e,t),getAll:(n,e)=>Sh.getAll(n,e),clear:(n,e)=>Sh.clear(n,e),batchSave:(n,e,t)=>Sh.batchSave(n,e,t),batchDelete:(n,e,t)=>Sh.batchDelete(n,e,t),getByIndex:(n,e,t,r)=>Sh.getByIndex(n,e,t,r),getCached:(n,e,t)=>Sh.getCached(n,e,t),clearCached:(n,e)=>Sh.clearCached(n,e),setCacheSize:(n,e,t)=>Sh.setCacheSize(n,e,t)};function O3(n,e,t={}){const{dataFieldName:r="data"}=t,[i,o]=B.useState(!1),[l,a]=B.useState(null),h=B.useRef(new Map);B.useEffect(()=>{const N=h.current;return()=>{N.forEach(J=>J.abort()),N.clear()}},[]);const g=B.useCallback(async(N,J)=>{try{o(!0),a(null);const Y=h.current,K=Y.get(N);K&&K.abort();const fe=new AbortController;Y.set(N,fe);const X=await J();return h.current.delete(N),X}catch(Y){return Y instanceof Error&&Y.name==="AbortError"||a(Y instanceof Error?Y:new Error(String(Y))),null}finally{o(!1)}},[]),m=B.useCallback(async(N,J)=>N?await g(`save_${N}`,async()=>(await Ah.save(n,e,{id:N,[r]:J,updatedAt:new Date().toISOString()}),!0))===!0:!1,[n,e,r,g]),x=B.useCallback(async N=>N.length?await g(`batch_save_${Date.now()}`,async()=>{const J=N.map(Y=>({id:Y.id,[r]:Y.data,updatedAt:new Date().toISOString()}));return await Ah.batchSave(n,e,J),!0})===!0:!1,[n,e,r,g]),w=B.useCallback(async N=>N?await g(`get_${N}`,async()=>{const J=await Ah.get(n,e,N);return(J==null?void 0:J[r])||null}):null,[n,e,r,g]),_=B.useCallback(N=>{if(!N)return null;const J=Ah.getCached(n,e,N);return(J==null?void 0:J[r])||null},[n,e,r]),E=B.useCallback(async N=>N?await g(`delete_${N}`,async()=>(await Ah.delete(n,e,N),!0))===!0:!1,[n,e,g]),R=B.useCallback(async N=>N.length?await g(`batch_delete_${Date.now()}`,async()=>(await Ah.batchDelete(n,e,N),!0))===!0:!1,[n,e,g]),k=B.useCallback(async()=>await g(`get_all_${Date.now()}`,async()=>{const N=await Ah.getAll(n,e);return Object.entries(N).reduce((J,[Y,K])=>(J[Y]=K[r],J),{})})||{},[n,e,r,g]),O=B.useCallback(async()=>await g(`clear_all_${Date.now()}`,async()=>(await Ah.clear(n,e),!0))===!0,[n,e,g]),P=B.useCallback(N=>{const J=h.current.get(N);J&&(J.abort(),h.current.delete(N))},[]),z=B.useCallback(()=>{new Map(h.current).forEach(J=>J.abort()),h.current.clear()},[]),H=B.useCallback(N=>{Ah.setCacheSize(n,e,N)},[n,e]),G=B.useCallback(()=>{Ah.clearCached(n,e)},[n,e]);return{save:m,get:w,delete:E,getAll:k,clearAll:O,batchSave:x,batchDelete:R,getCached:_,setCacheSize:H,clearCache:G,cancelOperation:P,cancelAllOperations:z,isLoading:i,error:l}}const WA="LayoutDB",UA="layouts";function P3(){const n=Vn.c(24);let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e={dataFieldName:"lengths"},n[0]=e):e=n[0];const t=O3(WA,UA,e);let r;n[1]===Symbol.for("react.memo_cache_sentinel")?(r={},n[1]=r):r=n[1];const[i,o]=B.useState(r);let l;n[2]===Symbol.for("react.memo_cache_sentinel")?(l={},n[2]=l):l=n[2];const a=B.useRef(l);let h;n[3]!==t?(h=async(G,N)=>await t.save(G,N),n[3]=t,n[4]=h):h=n[4];const g=h;let m;n[5]!==t?(m=async G=>await t.get(G),n[5]=t,n[6]=m):m=n[6];const x=m;let w;n[7]!==t?(w=G=>t.getCached(G),n[7]=t,n[8]=w):w=n[8];const _=w;let E;n[9]!==x||n[10]!==_||n[11]!==i?(E=G=>{const N=_(G);return N?{data:N,isLoaded:!0}:a.current[G]!==void 0?{data:a.current[G],isLoaded:!!i[G]}:(i[G]||(a.current[G]=null,x(G).then(J=>{a.current[G]=J,o(Y=>({...Y,[G]:!0}))})),{data:null,isLoaded:!1})},n[9]=x,n[10]=_,n[11]=i,n[12]=E):E=n[12];const R=E;let k;n[13]!==t?(k=async G=>(o(N=>{const J={...N};return delete J[G],J}),a.current[G]!==void 0&&delete a.current[G],await t.delete(G)),n[13]=t,n[14]=k):k=n[14];const O=k;let P;n[15]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{o({}),a.current={}},n[15]=P):P=n[15];const z=P;let H;return n[16]!==t.error||n[17]!==t.isLoading||n[18]!==O||n[19]!==x||n[20]!==_||n[21]!==R||n[22]!==g?(H={save:g,get:x,getCached:_,getSync:R,deleteItem:O,resetSyncState:z,isLoading:t.isLoading,error:t.error},n[16]=t.error,n[17]=t.isLoading,n[18]=O,n[19]=x,n[20]=_,n[21]=R,n[22]=g,n[23]=H):H=n[23],H}const GA="_ARowFrame_1v0ao_1",YA="_AColFrame_1v0ao_7",VA="_AOverflowFrame_1v0ao_13",ZA="_ADivideFrame_1v0ao_22",XA="_Row_1v0ao_30",KA="_Col_1v0ao_33",JA="_FadeIn_1v0ao_36",QA="_NoTransition_1v0ao_39",qA="_ChildFrame_1v0ao_43",jA="_ExpandButtonOverlay_1v0ao_61",$A="_Divider_1v0ao_73",e6="_IsMoving_1v0ao_81",t6="_NoDraggable_1v0ao_81",n6="_DividerInner_1v0ao_84",r6="_IsClicked_1v0ao_109",i6="_RemoteButton_1v0ao_144",o6="_isExpanded_1v0ao_151",l6="_ExpandButton_1v0ao_61",Il={ARowFrame:GA,AColFrame:YA,AOverflowFrame:VA,ADivideFrame:ZA,Row:XA,Col:KA,FadeIn:JA,NoTransition:QA,ChildFrame:qA,ExpandButtonOverlay:jA,Divider:$A,IsMoving:e6,NoDraggable:t6,DividerInner:n6,IsClicked:r6,RemoteButton:i6,isExpanded:o6,"fade-in":"_fade-in_1v0ao_1",ExpandButton:l6},Ml=n=>{const e=Vn.c(5);let t;e[0]!==n.className?(t=bt.clsx(Il.ARowFrame,n.className),e[0]=n.className,e[1]=t):t=e[1];let r;return e[2]!==n||e[3]!==t?(r=M.jsx(Wi,{...n,className:t,children:n.children}),e[2]=n,e[3]=t,e[4]=r):r=e[4],r},D3=n=>{const e=Vn.c(5);let t;e[0]!==n.className?(t=bt.clsx(Il.AColFrame,n.className),e[0]=n.className,e[1]=t):t=e[1];let r;return e[2]!==n||e[3]!==t?(r=M.jsx("div",{...n,className:t,children:n.children}),e[2]=n,e[3]=t,e[4]=r):r=e[4],r},nd=n=>{const{tooltip:e,children:t,abaseRef:r,isDisabled:i,className:o,noOverflowTooltip:l,...a}=n,h=B.useRef(null),g=B.useMemo(()=>r??h,[r]),[m,x]=B.useState(!1),w=B.useCallback(()=>x(!0),[]),_=B.useCallback(()=>x(!1),[]);B.useEffect(()=>{const R=g.current;if(R)return R.addEventListener("mouseenter",w),R.addEventListener("mouseleave",_),()=>{R.removeEventListener("mouseenter",w),R.removeEventListener("mouseleave",_)}},[g,w,_]);const E=B.useMemo(()=>{if(i)return"";if(l||!m)return e;const R=g.current;return R&&R.scrollWidth>R.clientWidth?t:e},[g,i,t,e,l,m]);return M.jsx(Wi,{...a,children:t,abaseRef:g,className:bt.clsx(Il.AOverflowFrame,o),isDisabled:i,tooltip:E})},N3=n=>{const e=Vn.c(2),{value:t,map:r}=n;if(r[t]===void 0)return r.fallback;const i=r[t];let o;return e[0]!==i?(o=M.jsx(B.Suspense,{children:i}),e[0]=i,e[1]=o):o=e[1],o},F3=B.memo(n=>{const{pk:e,direction:t="Row",lefts:r,minLength:i=40,expandLayerLength:o=40,children:l,childStyle:a,childClassName:h,dividerStyle:g,dividerClassName:m,dividerPadding:x,dividerInnerClassName:w,dividerInnerStyle:_,noDividerDraggable:E,resources:R,showExpandButton:k,...O}=n,P=B.useMemo(()=>({...Nr.ADivideFrame,...R}),[R]),z=B.useRef(null),H=B.useRef(!1),G=B.useRef(!0),N=B.useRef(r),[J,Y]=B.useState(),[K,fe]=B.useState("FadeOut"),[X,te]=B.useState(null),[ne,ue]=B.useState({width:0,height:0}),{save:se,get:$,deleteItem:re}=P3(),de=B.useCallback(()=>{G.current&&requestAnimationFrame(()=>{G.current=!1,fe("FadeIn")})},[]),be=B.useMemo(()=>{let et;return Array.isArray(l)?et=l:et=[l],et.filter(Boolean)},[l]),oe=B.useMemo(()=>be.length,[be.length]),Q=B.useMemo(()=>be.length-1,[be.length]),ge=B.useMemo(()=>e?String(e):"",[e]),Te=B.useMemo(()=>!!e,[e]),He=B.useCallback(async()=>{if(!Te){te(r),de();return}try{const et=await $(ge);et?te(et):(te(r),se(ge,r)),de()}catch{te(r),de()}},[Te,de,ge,$,r,se]);B.useEffect(()=>{He()},[He]),B.useEffect(()=>{const et=z.current;if(!et)return;const st=et.getBoundingClientRect();ue({width:st.width,height:st.height});const dt=new ResizeObserver(Mt=>{for(const ot of Mt){const{width:nt,height:Ot}=ot.contentRect;ue({width:nt,height:Ot})}});return dt.observe(et),()=>dt.disconnect()},[]),B.useEffect(()=>{N.current!==r&&(N.current=r,H.current||(te(r),Te&&se(ge,r)),H.current=!1)},[Te,r,ge,se]);const xe=B.useMemo(()=>{const et=x??0;return typeof i=="number"?Array(oe).fill(i+et):i.map(st=>st+et)},[i,oe,x]),Ne=B.useMemo(()=>typeof o=="number"?Array(oe).fill(o):o,[o,oe]),Me=B.useMemo(()=>(J==null?void 0:J.lefts)||X||[],[J,X]),Be=B.useRef({x:0,y:0}),ke=B.useCallback((et,st,dt)=>{const Mt=Me[et],ot=et===0?0:Me[et-1],nt=Mt-ot,Ot={...a,...s6(t,nt,st)};return x!==void 0&&(t==="Row"?(dt||(Ot.paddingLeft=x),st||(Ot.paddingRight=x)):(dt||(Ot.paddingTop=x),st||(Ot.paddingBottom=x))),Ot},[Me,a,t,x]),Ie=B.useCallback((et,st)=>{if(st)return dt=>{if(!z.current||!X)return;G.current=!1;const Mt=z.current;Be.current={x:dt.clientX,y:dt.clientY};const ot=Mt.getBoundingClientRect(),nt=t==="Row"?ot.left:ot.top,Ot=t==="Row"?ot.width:ot.height;let Zt=[...X];Y({idx:et,lefts:Zt});const Rt=Ft=>{Zt=f6(X,t,et,Ft,nt,Ot,xe),Y({idx:et,lefts:Zt})},tn=()=>{Y(void 0),te(Zt),H.current=!0,Te&&se(ge,Zt),window.removeEventListener("mousemove",Rt),window.removeEventListener("mouseup",tn)};window.addEventListener("mousemove",Rt),window.addEventListener("mouseup",tn)}},[X,t,xe,Te,ge,se]),ze=B.useCallback(et=>{if(et)return()=>{te(r),H.current=!1,Y(void 0),Te&&re(ge)}},[r,Te,ge,re]),Ke=B.useMemo(()=>be.map(()=>!E),[be,E]),Oe=B.useMemo(()=>{if(!k||!z.current||K!=="FadeIn")return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};if(!ne.width)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};const et=z.current.getBoundingClientRect(),st=t==="Row"?et.width:et.height;if(st===0)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};const dt=[];for(let nt=0;nt<oe;nt++){const Ot=Me[nt],Zt=nt===0?0:Me[nt-1],Rt=nt===Q?st-Zt:Ot-Zt,tn=Array.isArray(Ne)?Ne[nt]:Ne[0];dt.push({panelIndex:nt,actualLength:Rt,expandLength:tn,isCollapsed:Rt<=tn})}const Mt=dt.filter(nt=>nt.isCollapsed).map(nt=>nt.panelIndex);if(Mt.length===0)return{hasCollapsedAreas:!1,collapsedAreaIndex:-1};let ot=-1;return Mt.includes(0)?ot=0:Mt.includes(Q)?ot=Q:ot=Mt[0],{hasCollapsedAreas:!0,collapsedAreaIndex:ot}},[k,K,t,oe,Q,Me,Ne,ne]),ht=B.useCallback(()=>{k&&(te(r),H.current=!1,Te&&se(ge,r),G.current=!1)},[k,r,Te,ge,se]),$e=B.useMemo(()=>Ke.map((et,st)=>Ie(st,et)),[Ke,Ie]),it=B.useMemo(()=>Ke.map(et=>ze(et)),[Ke,ze]);return X?M.jsx("div",{...O,ref:z,className:bt.clsx(Il.ADivideFrame,n.className,Il[t],Il[K],G.current&&Il.NoTransition),children:be.map((et,st)=>{const dt=st===0,Mt=st===Q,ot=ke(st,Mt,dt),nt=Me[st],Ot=Ke[st],Zt=$e[st],Rt=it[st];return M.jsxs(B.Fragment,{children:[M.jsxs("div",{style:ot,className:bt.clsx(Il.ChildFrame,h,J&&Il.IsMoving,G.current&&Il.NoTransition,Il[t]),children:[et,k&&Oe.hasCollapsedAreas&&Oe.collapsedAreaIndex===st&&M.jsxs(M.Fragment,{children:[M.jsx(Wi,{className:bt.clsx(Il.ExpandButtonOverlay,Il[t]),onClick:ht}),M.jsx(Ba,{className:bt.clsx(Il.ExpandButton,Il[t]),icon:c6(st,oe),tooltip:P.Expand,type:"Raw",style:{transform:u6(st,t)},onClick:ht})]})]}),!Mt&&M.jsx("div",{"data-nodraggable":Ot?void 0:"true",className:bt.clsx(Il.Divider,Il[t],"NoSelect",J&&Il.IsMoving,(J==null?void 0:J.idx)===st&&Il.IsClicked,G.current&&Il.NoTransition,!Ot&&Il.NoDraggable,m),style:{...g,...a6(t,nt)},onDoubleClick:Rt,onMouseDown:Zt,children:M.jsx("div",{className:bt.clsx(Il.DividerInner,w),style:{..._}})})]},st)})}):M.jsx("div",{...O,ref:z,className:bt.clsx(Il.ADivideFrame,n.className,Il[t],Il.FadeOut,Il.NoTransition),style:{...O.style,visibility:"hidden",pointerEvents:"none"}})});F3.displayName="ADivideFrame";function s6(n,e,t){return t?{}:n==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function a6(n,e){return n==="Col"?{top:e}:{left:e}}function c6(n,e){const t=n===0,r=n===e-1;return t||r?"DividerExpand":"DividerMiddle"}function u6(n,e){const t=n===0;let r="";return e==="Row"&&t?r=" rotate(180deg)":e==="Col"&&(r=t?" rotate(-90deg)":" rotate(90deg)"),`translate(-50%, -50%)${r}`}function f6(n,e,t,r,i,o,l){const a=[...n],h=e==="Row"?r.clientX-i-n[t]:r.clientY-i-n[t];if(h===0)return a;const g=l.length,m=n.length,x=t+1,w=[],_=[];let E=0;for(let O=0;O<=g;O++)w[O]=E,O<g&&(E+=l[O]);let R=0;for(let O=g-2;O>=0;O--)R+=l[O+1],_[O]=R;_[g-1]=0;let k=a[t]+h;if(h<0){if(k<=w[x])for(let O=0;O<=t;O++)a[O]=w[O+1];else if(a[t]=k,t>0)for(let O=t-1;O>=0&&k-a[O]<l[O+1];O--)a[O]=k-l[O+1],k=a[O]}else{const O=t===g-2?l[g-1]:0;if(k>=o-_[t]-O)for(let P=t;P<m;P++)a[P]=o-_[P]-(P===m-1?0:O);else if(a[t]=k,t<m-1)for(let P=x;P<m&&a[P]-k<l[P];P++)a[P]=k+l[P],k=a[P]}return a}const zg=()=>{const n=Vn.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=M.jsx("div",{style:{display:"flex",flexGrow:1}}),n[0]=e):e=n[0],e},h6="_ASpace_1okqf_1",d6={ASpace:h6},cs=n=>{const e=Vn.c(14);let t,r,i,o,l;e[0]!==n?({h:r,w:l,...t}=n,i=t,o=bt.clsx(d6.ASpace,t.className),e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5]);let a;e[6]!==t.style||e[7]!==r||e[8]!==l?(a={height:r,minHeight:r,maxHeight:r,width:l,minWidth:l,maxWidth:l,...t.style},e[6]=t.style,e[7]=r,e[8]=l,e[9]=a):a=e[9];let h;return e[10]!==i||e[11]!==o||e[12]!==a?(h=M.jsx("div",{...i,className:o,style:a}),e[10]=i,e[11]=o,e[12]=a,e[13]=h):h=e[13],h},g6="_AChipsContainer_1ag9v_1",p6="_AChip_1ag9v_1",v6="_Clickable_1ag9v_21",b6="_AChipDelete_1ag9v_26",y6="_IsHover_1ag9v_40",m6="_AChipDeleteIcon_1ag9v_45",h1={AChipsContainer:g6,AChip:p6,Clickable:v6,AChipDelete:b6,IsHover:y6,AChipDeleteIcon:m6},x6=n=>{const e=Vn.c(42);let t,r,i,o,l,a,h,g,m,x,w,_;e[0]!==n?({useLabels:_,alignItems:m,ChipStyle:l,ChipClassName:t,ChipOnDelete:o,ChipOnClick:i,ChipIcon:r,className:h,style:g,ButtonRenderer:x,gap:w,...a}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m,e[10]=x,e[11]=w,e[12]=_):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9],x=e[10],w=e[11],_=e[12]);const E=m===void 0?"flex-start":m,R=x===void 0?B3:x,k=w===void 0?8:w;let O;e[13]===Symbol.for("react.memo_cache_sentinel")?(O=[],e[13]=O):O=e[13];const[P,z]=Do(_,O);let H;e[14]!==o||e[15]!==P||e[16]!==z?(H=te=>{!z||!o||(o({label:te}),z(P.filter(ne=>ne!==te)))},e[14]=o,e[15]=P,e[16]=z,e[17]=H):H=e[17];const G=H;let N;e[18]!==t||e[19]!==r||e[20]!==i||e[21]!==l||e[22]!==G?(N=te=>{const ne={label:te};return{label:te,useLabel:[te,w6],style:Vr.getContent(l,ne),className:Vr.getContent(t,ne),icon:Vr.getContent(r,ne),onDelete:()=>G(te),onClick:i?()=>i({label:te}):void 0}},e[18]=t,e[19]=r,e[20]=i,e[21]=l,e[22]=G,e[23]=N):N=e[23];const J=N;let Y;e[24]!==h?(Y=bt.clsx(h1.AChipsContainer,h),e[24]=h,e[25]=Y):Y=e[25];let K;e[26]!==E||e[27]!==k||e[28]!==g?(K={...g,alignItems:E,gap:k},e[26]=E,e[27]=k,e[28]=g,e[29]=K):K=e[29];let fe;if(e[30]!==R||e[31]!==J||e[32]!==P){let te;e[34]!==R||e[35]!==J?(te=(ne,ue)=>M.jsx(wm,{...J(ne),ButtonRenderer:R},ue),e[34]=R,e[35]=J,e[36]=te):te=e[36],fe=P.map(te),e[30]=R,e[31]=J,e[32]=P,e[33]=fe}else fe=e[33];let X;return e[37]!==a||e[38]!==Y||e[39]!==K||e[40]!==fe?(X=M.jsx(Wi,{...a,className:Y,style:K,children:fe}),e[37]=a,e[38]=Y,e[39]=K,e[40]=fe,e[41]=X):X=e[41],X},wm=n=>{const e=Vn.c(27);let t,r,i,o,l,a,h;if(e[0]!==n){const{label:O,useLabel:P,icon:z,className:H,onDelete:G,onClick:N,ButtonRenderer:J,width:Y,style:K,...fe}=n;i=O,r=H,o=N,a=J,h=Y,l=K,t=fe,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h}else t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7];const g=a===void 0?B3:a,m=h===void 0?"fit-content":h;if(i===void 0){let O;return e[8]===Symbol.for("react.memo_cache_sentinel")?(O=M.jsx(M.Fragment,{}),e[8]=O):O=e[8],O}let x;e[9]!==r||e[10]!==o?(x=bt.clsx("NoSelect",h1.AChip,o&&h1.Clickable,o&&"IsClickable",r),e[9]=r,e[10]=o,e[11]=x):x=e[11];let w;e[12]!==l||e[13]!==m?(w={...l,width:m},e[12]=l,e[13]=m,e[14]=w):w=e[14];const _=i;let E;e[15]!==_?(E=M.jsx(nd,{children:_}),e[15]=_,e[16]=E):E=e[16];let R;e[17]!==g||e[18]!==n?(R=g({...n}),e[17]=g,e[18]=n,e[19]=R):R=e[19];let k;return e[20]!==t||e[21]!==o||e[22]!==x||e[23]!==w||e[24]!==E||e[25]!==R?(k=M.jsxs(Wi,{...t,className:x,style:w,onClick:o,children:[E,R]}),e[20]=t,e[21]=o,e[22]=x,e[23]=w,e[24]=E,e[25]=R,e[26]=k):k=e[26],k},B3=n=>{const e=Vn.c(13),{label:t,icon:r,onDelete:i,useLabel:o}=n,[,l]=Do(o,t),[a,h]=B.useState(!1);let g;e[0]!==i||e[1]!==n||e[2]!==l?(g=O=>{i&&(O.stopPropagation(),l==null||l(void 0),i(n))},e[0]=i,e[1]=n,e[2]=l,e[3]=g):g=e[3];const m=g;let x;e[4]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{h(!0)},e[4]=x):x=e[4];const w=x;let _;e[5]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{h(!1)},e[5]=_):_=e[5];const E=_;let R;e[6]!==m||e[7]!==r||e[8]!==a||e[9]!==i?(R=i&&M.jsxs(M.Fragment,{children:[M.jsx(zg,{}),M.jsx(cs,{w:24}),M.jsx(Wi,{className:bt.clsx(h1.AChipDelete,"IsClickable",a&&h1.IsHover)}),M.jsx(Ba,{className:h1.AChipDeleteIcon,icon:r||M.jsx(uo,{height:14,icon:"Close",stroke:"currentColor",width:14}),type:"Raw",onClick:m,onMouseEnter:w,onMouseLeave:E})]}),e[6]=m,e[7]=r,e[8]=a,e[9]=i,e[10]=R):R=e[10];let k;return e[11]!==R?(k=M.jsx(M.Fragment,{children:R}),e[11]=R,e[12]=k):k=e[12],k};function w6(){}const Mg=n=>{if(!n)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;n>=1024&&t<e.length-1;)n/=1024,t++;return`${t===0?Math.floor(n):n.toFixed(1)} ${e[t]}`},C6=n=>{let e="";n<0&&(e+="-",n=-n);const t=Math.floor(n/3600),r=Math.floor(n%3600/60),i=n%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=r.toString().padStart(2,"0")+":",e+=i.toString().padStart(2,"0"),e},_6=/[a-zA-Z0-9]/,S6=/^[a-zA-Z0-9]*$/,E6=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,T6=/^[a-zA-Z0-9._-]+$/,A6=/^[0-9a-fA-F-]+$/i,R6=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,I6=/^\S*$/,k6=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,M6=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,L6=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,O6=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,P6={hasKr:n=>/[가-힣ㄱ-ㅎㅏ-ㅣ]/.test(n),hasMalKr:n=>/[ㄱ-ㅎㅏ-ㅣ]/.test(n),hasBlank:n=>/\s/.test(n),isBlank:n=>/^\s*$/.test(n),isUuid:n=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(n),isEmail:n=>/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/.test(n),isAlphabet:n=>/^[a-zA-Z]*$/.test(n),isAlphaNumeric:n=>/^[a-zA-Z0-9]*$/.test(n),isKr:n=>/^[가-힣ㄱ-ㅎㅏ-ㅣ]*$/.test(n),isKrNumeric:n=>/^[가-힣ㄱ-ㅎㅏ-ㅣ0-9]*/.test(n),isNumeric:n=>/^[0-9]$/.test(n),isLenMinMax:(n,e)=>t=>!(n!==void 0&&t.length<n||e!==void 0&&t.length>e)},D6=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const e=Math.random()*16|0;return(n=="x"?e:e&3|8).toString(16)}),Cm={secondToTime:C6,validate:P6,FileSizeTrans:Mg,uuid:D6},N6=n=>{const e=Vn.c(52);let t,r,i,o,l,a;if(e[0]!==n){const{maxTicks:Q,interval:ge,onFinish:Te,noStartOnRender:He,actionRef:xe,...Ne}=n;l=Te,o=He,t=xe,i=Q===void 0?300:Q,r=ge===void 0?1e3:ge,a=Bg(Ne),e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a}else t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6];const[h,g]=a;let m,x,w,_;e[7]!==h?({wrapId:x,wrapProps:w,labelProps:m,..._}=h,e[7]=h,e[8]=m,e[9]=x,e[10]=w,e[11]=_):(m=e[8],x=e[9],w=e[10],_=e[11]);const[E,R]=B.useState(0),[k,O]=B.useState(!o);let P,z;e[12]!==r||e[13]!==k||e[14]!==g.isDisabled||e[15]!==g.isLoading?(P=()=>{if(!k||g.isDisabled||g.isLoading)return;const Q=setInterval(()=>R(F6),r);return()=>clearInterval(Q)},z=[r,k,g.isDisabled,g.isLoading],e[12]=r,e[13]=k,e[14]=g.isDisabled,e[15]=g.isLoading,e[16]=P,e[17]=z):(P=e[16],z=e[17]),B.useEffect(P,z);let H;e[18]!==l?(H=()=>{l==null||l(),O(!1)},e[18]=l,e[19]=H):H=e[19];const G=H;let N,J;e[20]!==i||e[21]!==G||e[22]!==g.isDisabled||e[23]!==g.isLoading||e[24]!==E?(N=()=>{E>=i&&!g.isDisabled&&!g.isLoading&&G()},J=[E,i,G,g.isDisabled,g.isLoading],e[20]=i,e[21]=G,e[22]=g.isDisabled,e[23]=g.isLoading,e[24]=E,e[25]=N,e[26]=J):(N=e[25],J=e[26]),B.useEffect(N,J);let Y;e[27]!==g.isDisabled?(Y=()=>{g.isDisabled||O(!0)},e[27]=g.isDisabled,e[28]=Y):Y=e[28];const K=Y;let fe;e[29]!==g.isDisabled?(fe=()=>{g.isDisabled||O(!1)},e[29]=g.isDisabled,e[30]=fe):fe=e[30];const X=fe;let te;e[31]!==g.isDisabled?(te=()=>{g.isDisabled||(O(!1),R(0))},e[31]=g.isDisabled,e[32]=te):te=e[32];const ne=te;let ue,se;e[33]!==t||e[34]!==ne||e[35]!==K||e[36]!==X?(ue=()=>{t&&(t.current={start:K,stop:X,reset:ne,setTicks:R})},se=[t,K,X,ne],e[33]=t,e[34]=ne,e[35]=K,e[36]=X,e[37]=ue,e[38]=se):(ue=e[37],se=e[38]),B.useEffect(ue,se);const $=i-E;let re;e[39]!==m||e[40]!==x||e[41]!==w||e[42]!==_?(re={wrapId:x,wrapProps:w,labelProps:m,..._},e[39]=m,e[40]=x,e[41]=w,e[42]=_,e[43]=re):re=e[43];let de;e[44]!==$?(de=Cm.secondToTime($>0?$:0),e[44]=$,e[45]=de):de=e[45];let be;e[46]!==g||e[47]!==de?(be=M.jsx(Wi,{...g,children:de}),e[46]=g,e[47]=de,e[48]=be):be=e[48];let oe;return e[49]!==re||e[50]!==be?(oe=M.jsx(lg,{...re,children:be}),e[49]=re,e[50]=be,e[51]=oe):oe=e[51],oe};function F6(n){return n+1}function Ph(n){const e=n.getFullYear(),t=n.getMonth()+1,r=n.getDate();return`${e}-${t<10?"0"+t:t}-${r<10?"0"+r:r}`}function B6(n){try{if(!n)return;const e=new Date(n);return isNaN(e.getTime())?void 0:e}catch{return}}function z6(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0,0)}function H6(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59,999)}function V2(n,e){return Ph(n)===Ph(e)}function d1(n,e){return Ph(n)>Ph(e)}function tv(n,e){return Ph(n)>=Ph(e)}function nv(n,e){return Ph(n)<Ph(e)}function rv(n,e){return Ph(n)<=Ph(e)}function Z2(n,e,t){return d1(n,t)?d1(e,t)&&nv(e,n):d1(e,n)&&nv(e,t)}function X2(n,e,t){return d1(n,t)?tv(e,t)&&rv(e,n):tv(e,n)&&rv(e,t)}const Yn={toString:Ph,toDate:B6,makeSDate:z6,makeEDate:H6,"===":V2,">":d1,">=":tv,"<":nv,"<=":rv,"s<d<e|e<d<s":Z2,"s<=d<=e|e<=d<=s":X2,eq:V2,g:d1,ge:tv,l:nv,le:rv,b:Z2,be:X2},W6="_InputContainer_16eoo_7",U6="_AInput_16eoo_21",G6="_LeftAddon_16eoo_43",Y6="_RightAddon_16eoo_50",V6="_ErrorHelperText_16eoo_57",Z6="_Primary_16eoo_61",X6="_UnAvailable_16eoo_66",K6="_Secondary_16eoo_77",J6="_ReadOnly_16eoo_92",Q6="_ANumInputUnitSelect_16eoo_108",ou={InputContainer:W6,AInput:U6,LeftAddon:G6,RightAddon:Y6,ErrorHelperText:V6,Primary:Z6,UnAvailable:X6,Secondary:K6,ReadOnly:J6,Error:"_Error_16eoo_57",ANumInputUnitSelect:Q6},q6=["Primary","Secondary","ReadOnly","Error"],sg=n=>{const{onEnterPress:e,type:t="Primary",inputRef:r,useValue:i,isReadonly:o,placeholder:l,minLength:a,maxLength:h,tabIndex:g,autoFocus:m,isPassword:x,autoComplete:w="off",inputProps:_,LeftAddon:E,RightAddon:R,dataList:k=[],pattern:O,id:P=(_==null?void 0:_.id)??Cm.uuid(),...z}=n,[{wrapId:H,wrapProps:G,labelProps:N,...J},Y]=Bg(z),K=B.useMemo(()=>j6(J.errorMessage)?"Error":t,[J.errorMessage,t]),fe=B.useMemo(()=>K==="ReadOnly"?!0:o,[K,o]),X=B.useMemo(()=>Y.isDisabled||Y.isLoading,[Y.isDisabled,Y.isLoading]),[te,ne]=Do(i,""),ue=B.useCallback($=>{var re;if(!X){if(O&&$.key.length===1){const de=$.currentTarget.value,be=de.slice(0,$.currentTarget.selectionStart||0)+$.key+de.slice($.currentTarget.selectionEnd||0);if(!new RegExp(O).test(be)){$.preventDefault();return}}(re=_==null?void 0:_.onKeyDown)==null||re.call(_,$),["Escape","Enter","ArrowUp","ArrowDown"].includes($.key)||$.stopPropagation(),$.key==="Enter"&&e&&e($.currentTarget.value)}},[X,_,e,O]),se=B.useCallback($=>{var re;X||O&&!new RegExp(O).test($.target.value)||a&&$.target.value.length<a||(ne==null||ne($.target.value),(re=_==null?void 0:_.onChange)==null||re.call(_,$))},[X,a,ne,_,O]);return x?M.jsx(lg,{wrapId:H,wrapProps:G,labelProps:N,...J,children:M.jsx("form",{onSubmit:$=>$.preventDefault(),children:M.jsxs(Wi,{...Y,className:bt.clsx(ou.InputContainer,ou[K],X&&ou.UnAvailable,Y.className),children:[E&&M.jsx("div",{className:ou.LeftAddon,children:E}),M.jsx("input",{..._,ref:r,autoComplete:w,autoFocus:m,className:bt.clsx(ou.AInput,K==="Error"&&ou.InputError,_==null?void 0:_.className),id:P,list:`${P}-datalist`,maxLength:h,placeholder:l,readOnly:fe,tabIndex:Y.isDisabled||Y.isLoading?-1:g,type:"password",value:te,onChange:se,onKeyDown:ue}),k.length>0&&M.jsx("datalist",{id:`${P}-datalist`,children:k.map(($,re)=>M.jsx("option",{value:$},re))}),R&&M.jsx("div",{className:bt.clsx(ou.RightAddon,"NoSelect"),children:R})]})})}):M.jsx(lg,{wrapId:H,wrapProps:G,labelProps:N,...J,children:M.jsxs(Wi,{...Y,className:bt.clsx(ou.InputContainer,ou[K],X&&ou.UnAvailable,Y.className),children:[E&&M.jsx("div",{className:ou.LeftAddon,children:E}),M.jsx("input",{..._,ref:r,autoComplete:w,autoFocus:m,className:bt.clsx(ou.AInput,K==="Error"&&ou.InputError,_==null?void 0:_.className),id:P,list:`${P}-datalist`,maxLength:h,pattern:O,placeholder:l,readOnly:fe,tabIndex:Y.isDisabled||Y.isLoading?-1:g,value:te,onChange:se,onKeyDown:ue}),k.length>0&&M.jsx("datalist",{id:`${P}-datalist`,children:k.map(($,re)=>M.jsx("option",{value:$},re))}),R&&M.jsx("div",{className:ou.RightAddon,children:R})]})})};function j6(n){return Array.isArray(n)?n.filter(Boolean).length>0:!!n}const $6="_ASelect_1gbzd_1",eR="_Arrow_1gbzd_14",tR="_Primary_1gbzd_23",nR="_UnAvailable_1gbzd_34",rR="_IsOpen_1gbzd_34",iR="_Secondary_1gbzd_41",oR="_Placeholder_1gbzd_57",lR="_ValuesContainer_1gbzd_61",sR="_Values_1gbzd_61",aR="_Options_1gbzd_80",cR="_Raw_1gbzd_93",uR="_Option_1gbzd_80",fR="_Selected_1gbzd_122",hR="_CheckBox_1gbzd_129",Df={ASelect:$6,Arrow:eR,Primary:tR,UnAvailable:nR,IsOpen:rR,Secondary:iR,Placeholder:oR,ValuesContainer:lR,Values:sR,Options:aR,Raw:cR,Option:uR,Selected:fR,CheckBox:hR},dR=["Primary","Secondary","Raw"],Td=n=>{const{options:e,useSelect:t,type:r="Primary",placeholder:i=Nr.ASelect["Select(Placeholder)"],onClose:o,OptionRenderer:l=pR,SelectedRenderer:a=vR,minShowRows:h=2,maxShowRows:g=6,arrowProps:m,isAutoWidth:x=!1,...w}=n,_=B.useRef(null),E=B.useMemo(()=>w.abaseRef??_,[w.abaseRef]),R=B.useRef(null),[k,O]=Do(t,e[0]),[P,z]=B.useState(void 0),[H,G]=B.useState(!1),[N,J]=B.useState(!1),Y=B.useRef(e),K=B.useRef(null),fe=B.useCallback(()=>J(!1),[]),X=B.useCallback(()=>{w.isDisabled||w.isLoading||e.length<1||(J(!0),setTimeout(()=>G(!0),0),setTimeout(()=>ob(R,E,e,h,g),0))},[E,w.isDisabled,w.isLoading,e,h,g]),te=B.useCallback(()=>{G(!1),J(!0),o==null||o()},[o]),ne=B.useCallback(oe=>{var Q;H?te():X(),setTimeout(()=>ob(R,E,e,h,g),0),(Q=w.onClick)==null||Q.call(w,oe)},[E,w,e,H,te,X,h,g]),ue=B.useCallback(()=>{ob(R,E,e,h,g)},[E,e,h,g]);B.useEffect(()=>{if(!H||!E.current)return;const oe=E.current;let Q=oe.parentElement;for(;Q;)Q.addEventListener("scroll",ue),Q=Q.parentElement;return()=>{let ge=oe.parentElement;for(;ge;)ge.removeEventListener("scroll",ue),ge=ge.parentElement}},[E,H,ue]),B.useEffect(()=>{if(H)return window.addEventListener("resize",ue),()=>window.removeEventListener("resize",ue)},[H,ue]);const se=B.useCallback(oe=>{oe[0].intersectionRatio===0&&te()},[te]);B.useEffect(()=>{if(!H)return;const oe=new IntersectionObserver(se,{threshold:0});return E.current&&oe.observe(E.current),()=>oe.disconnect()},[E,H,se]);const $=B.useCallback(oe=>{const Q=oe.target,ge=E.current,Te=R.current;!ge||!Q||!Te||!ge.contains(Q)&&!Te.contains(Q)&&te()},[E,te]),re=B.useMemo(()=>w.isDisabled||w.isLoading||e.length<1,[w.isDisabled,w.isLoading,e]);B.useEffect(()=>{if(H)return setTimeout(()=>document.addEventListener("mousedown",$),0),()=>document.removeEventListener("mousedown",$)},[H,$]);const de=B.useCallback((oe,Q)=>{oe.stopPropagation(),oe.preventDefault(),O==null||O(Q),te()},[O,te]),be=B.useCallback(()=>{if(!x||!E.current)return;const oe=kg.calculateOptimalSelectWidth({elementRef:E,options:e,selectedOption:k,placeholder:i,optionRenderer:Q=>Q===null?null:l({option:Q}),type:r,isMulti:!1});z(oe)},[x,E,e,k,i,l,r]);return B.useEffect(()=>x?((e!==Y.current||P===void 0)&&(K.current!==null&&cancelAnimationFrame(K.current),K.current=requestAnimationFrame(()=>{be(),K.current=null,Y.current=[...e]})),()=>{K.current!==null&&(cancelAnimationFrame(K.current),K.current=null)}):void 0,[x,e,be,P]),B.useEffect(()=>()=>{typeof kg.clearCache=="function"&&kg.clearCache()},[]),M.jsxs(M.Fragment,{children:[M.jsxs(Wi,{...w,abaseRef:E,isDisabled:w.isDisabled||e.length<1,className:bt.clsx(w.className,Df.ASelect,"NoSelect",H&&Df.IsOpen,re&&Df.UnAvailable,Df[r]),style:{padding:r==="Secondary"?"8px 8px 8px 0":0,width:P?`${P}px`:x?"100px":void 0,...w.style},onClick:ne,children:[M.jsx("div",{className:Df.ValuesContainer,children:M.jsx("div",{className:bt.clsx(Df.Values,(k==null||k==="")&&Df.Placeholder),children:M.jsx(a,{OptionRenderer:l,placeholder:i,selectedOption:k})})}),M.jsx("div",{...m,className:bt.clsx(Df.Arrow,m==null?void 0:m.className),children:M.jsx(uo,{icon:"TriangleDown",style:{transform:H?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(H||N)&&su.createPortal(M.jsx("div",{ref:R,className:bt.clsx(Df.Options,Df[r]),style:{opacity:+H,visibility:H?"visible":"hidden",pointerEvents:H?void 0:"none",borderRadius:E.current?window.getComputedStyle(E.current).borderRadius:void 0,width:P?`${P}px`:x?"100px":void 0},onTransitionEnd:fe,children:e.map((oe,Q)=>{const ge=k===oe,Te=E.current?window.getComputedStyle(E.current):void 0;return oe===null?null:M.jsx("div",{className:bt.clsx(Df.Option,ge&&Df.Selected,"NoSelect",Df[r]),style:{height:Te==null?void 0:Te.height},onClick:He=>de(He,oe),children:M.jsx(l,{option:oe})},Q)})}),document.body)]})};function ob(n,e,t,r,i){if(!e.current||!n.current||!t||t.length<1)return;const o=e.current.getBoundingClientRect(),l=gR(o,t.length,r,i),a=window.getComputedStyle(e.current);n.current.style.top=`calc(${l.top??0}px - ${a.borderTopWidth})`,n.current.style.bottom=l.bottom?l.bottom+"px":"",n.current.style.left=l.left+"px",n.current.style.width||(n.current.style.minWidth=l.minWidth+"px"),n.current.style.minHeight=l.minHeight+"px",n.current.style.maxHeight=l.maxHeight+"px",n.current.style.visibility="visible"}function gR(n,e,t,r){const i={top:n.bottom,bottom:void 0,left:n.left,height:"fit-content",minWidth:n.width,minHeight:n.height*Math.min(t,e),maxHeight:n.height*r>window.innerHeight-n.bottom-10?window.innerHeight-n.bottom-10:n.height*r};return window.innerHeight-n.bottom-10<i.height&&(window.innerHeight-n.bottom-10<i.minHeight?(i.top=n.top-e*n.height,i.top<0&&(i.top=10,i.minHeight=n.top-10,i.height=n.top-10)):i.height=window.innerHeight-n.bottom-10),i}const pR=n=>{const{option:e}=n;return rr.isReactNode(e)?e:null},vR=n=>{const e=Vn.c(3),{selectedOption:t,OptionRenderer:r,placeholder:i}=n;if(t==null||t==="")return i;const o=t;let l;return e[0]!==r||e[1]!==o?(l=M.jsx(r,{option:o}),e[0]=r,e[1]=o,e[2]=l):l=e[2],l},bR="_Anchor_1l5ql_1",yR="_Primary_1l5ql_18",mR="_Secondary_1l5ql_21",xR="_Placeholder_1l5ql_25",wR="_Icon_1l5ql_30",CR="_ADatePicker_1l5ql_40",_R="_StringInputWrap_1l5ql_51",SR="_StringInputContainer_1l5ql_56",ER="_StringInput_1l5ql_51",TR="_IsIdx_1l5ql_71",AR="_CalendarContainer_1l5ql_75",RR="_Header_1l5ql_81",IR="_Prev_1l5ql_85",kR="_Next_1l5ql_86",MR="_MonthYear_1l5ql_119",LR="_Select_1l5ql_124",OR="_Calendar_1l5ql_75",PR="_Cell_1l5ql_134",DR="_IsNotCurrentMonth_1l5ql_146",NR="_IsSelected_1l5ql_150",FR="_IsDisabled_1l5ql_154",BR="_IsHovered_1l5ql_157",zR="_Week_1l5ql_161",HR="_WeekDay_1l5ql_166",Zo={Anchor:bR,Primary:yR,Secondary:mR,Placeholder:xR,Icon:wR,ADatePicker:CR,StringInputWrap:_R,StringInputContainer:SR,StringInput:ER,String:"_String_1l5ql_51",IsIdx:TR,CalendarContainer:AR,Header:RR,Prev:IR,Next:kR,MonthYear:MR,Select:LR,Calendar:OR,Cell:PR,IsNotCurrentMonth:DR,IsSelected:NR,IsDisabled:FR,IsHovered:BR,Week:zR,WeekDay:HR},WR="_Anchor_5u6hq_1",UR="_Primary_5u6hq_18",GR="_Secondary_5u6hq_22",YR="_Placeholder_5u6hq_26",VR="_Icon_5u6hq_31",ZR="_ADateRangePicker_5u6hq_41",XR="_StringInputWrap_5u6hq_52",KR="_StringInputContainer_5u6hq_56",JR="_StringInput_5u6hq_52",QR="_IsIdx_5u6hq_72",qR="_CalendarContainer_5u6hq_76",jR="_Header_5u6hq_82",$R="_Prev_5u6hq_86",e8="_Next_5u6hq_87",t8="_MonthYear_5u6hq_120",n8="_Select_5u6hq_125",r8="_Calendar_5u6hq_76",i8="_Cell_5u6hq_135",o8="_IsNotCurrentMonth_5u6hq_147",l8="_IsSelected_5u6hq_151",s8="_IsDisabled_5u6hq_155",a8="_IsHovered_5u6hq_158",c8="_Week_5u6hq_162",u8="_WeekDay_5u6hq_167",f8="_ChoiceButton_5u6hq_171",Qi={Anchor:WR,Primary:UR,Secondary:GR,Placeholder:YR,Icon:VR,ADateRangePicker:ZR,StringInputWrap:XR,StringInputContainer:KR,StringInput:JR,String:"_String_5u6hq_52",IsIdx:QR,CalendarContainer:qR,Header:jR,Prev:$R,Next:e8,MonthYear:t8,Select:n8,Calendar:r8,Cell:i8,IsNotCurrentMonth:o8,IsSelected:l8,IsDisabled:s8,IsHovered:a8,Week:c8,WeekDay:u8,ChoiceButton:f8},_m=n=>{const{type:e="Primary",className:t,useDateRange:r,actionRef:i,position:o=O1.SE,minDate:l,maxDate:a,isDisabled:h,isLoading:g,yearsOptionSize:m,noDefaultChoices:x,LeftAddon:w,RightAddon:_,placeholder:E,noClearButton:R,resources:k,onClick:O,...P}=n,z=B.useMemo(()=>({...Nr.ADateRangePicker,...k}),[k]),H=B.useMemo(()=>E??z["Select DateRange"],[E,z]),[G,N]=B.useMemo(()=>{let Ce,Ze;if(l&&(Ce=Yn.makeSDate(l)),a&&(Ze=Yn.makeEDate(a)),Ce&&Ze&&Yn["<"](Ze,Ce)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const wt=Ce;Ce=Ze,Ze=wt}return[Ce,Ze]},[l,a]),[J,Y]=B.useState("sD"),[K,fe]=Do(r,void 0),X=B.useCallback(Ce=>{fe&&(Ce===void 0?(fe(void 0),Ke(""),$e("")):(fe({sDate:Yn.makeSDate(Ce.sDate),eDate:Yn.makeEDate(Ce.eDate)}),Ke(Yn.toString(Ce.sDate)),$e(Yn.toString(Ce.eDate))))},[fe]);B.useEffect(()=>{K&&(Ke(Yn.toString(K.sDate)),$e(Yn.toString(K.eDate)))},[K]);const te=B.useCallback(Ce=>{if(!fe)return;let Ze=K?K.sDate:Yn.makeSDate(Ce);Ce=Yn.makeEDate(Ce),fe({sDate:Ze,eDate:Ce}),Ke(Yn.toString(Ze)),$e(Yn.toString(Ce))},[fe,K]),[ne,ue]=B.useState(),[se,$]=B.useState(),re=B.useCallback(Ce=>{J==="sD"&&X({sDate:Ce,eDate:Ce}),ue(Ce),$(Ce)},[J,X,ue]),de=B.useCallback(Ce=>{J==="sD"?ne&&(Yn.eq(ne,Ce)?Y("eD"):Yn[">"](Ce,ne)?(te(Ce),ue(void 0)):(X({sDate:Ce,eDate:ne}),ue(void 0))):(K?Yn["<"](Ce,K.sDate)?X({sDate:Ce,eDate:K.eDate}):te(Ce):X({sDate:Ce,eDate:Ce}),ue(void 0),Y("sD"))},[te,ne,Y,J,X,K,ue]),be=B.useCallback(Ce=>{ne&&$(Ce)},[ne]),oe=B.useCallback(()=>{$(void 0),ue(void 0),Y("sD")},[Y,ue]),[Q,ge]=B.useState(K2(K,G,N)),Te=B.useMemo(()=>Sm(Q.year,G,N,m),[Q.year,G,N,m]),He=B.useMemo(()=>Ap(Q.year,G,N),[G,N,Q.year]),xe=B.useCallback(Ce=>{if(!Te.includes(Ce))return;const Ze={month:Q.month,year:Ce},wt=Ap(Ze.year,G,N);wt.length<1||(wt.includes(Ze.month)||(Ze.month<wt[0]?Ze.month=wt[0]:Ze.month>wt[wt.length-1]&&(Ze.month=wt[wt.length-1])),ge(Ze))},[G,N,Te,Q.month]),Ne=B.useCallback(Ce=>{He.includes(Ce)&&ge({month:Ce,year:Q.year})},[He,Q.year]),Me=B.useMemo(()=>N?new Date(Q.year,Q.month+1,1)>N:!1,[Q,N]),Be=B.useCallback(()=>{if(Me||He.length<1)return;const Ce=Q.month+1;Ce>11?ge({month:He[0],year:Q.year+1}):ge({month:Ce,year:Q.year})},[Me,He,Q]),ke=B.useMemo(()=>G?new Date(Q.year,Q.month,0)<G:!1,[Q,G]),Ie=B.useCallback(()=>{if(ke||He.length<1)return;const Ce=Q.month-1;Ce<He[0]?ge({month:He[He.length-1],year:Q.year-1}):ge({month:Ce,year:Q.year})},[ke,He,Q]),[ze,Ke]=B.useState(K!=null&&K.sDate?Yn.toString(K.sDate):""),Oe=B.useCallback(Ce=>{if(Ce.length>10||(Ke(Ce),Ce.length<10)||!fe)return;let Ze=Yn.toDate(Ce);if(!Ze)return;G&&Ze<G&&(Ze=G),N&&Ze>N&&(Ze=N);let wt=K?K.eDate:Ze;K&&Yn[">"](Ze,wt)&&([Ze,wt]=J2(Ze,wt)),X({sDate:Ze,eDate:wt}),ge({month:Ze.getMonth(),year:Ze.getFullYear()})},[fe,X,K,G,N]),[ht,$e]=B.useState(K!=null&&K.eDate?Yn.toString(K.eDate):""),it=B.useCallback(Ce=>{if(Ce.length>10||($e(Ce),Ce.length<10)||!fe)return;let Ze=Yn.toDate(Ce);if(!Ze)return;G&&Ze<G&&(Ze=G),N&&Ze>N&&(Ze=N);let wt=K?K.sDate:Ze;K&&Yn[">"](wt,Ze)&&([wt,Ze]=J2(wt,Ze)),X({sDate:wt,eDate:Ze}),ge({month:Ze.getMonth(),year:Ze.getFullYear()})},[fe,X,K,G,N]),et=B.useCallback(()=>{K&&(Ke(Yn.toString(K.sDate)),$e(Yn.toString(K.eDate)))},[K]),st=B.useMemo(()=>{const{month:Ce,year:Ze}=Q,wt=new Date(Ze,Ce,1),Kt=new Date(Ze,Ce+1,0),Gt=[];for(let un=0;un<wt.getDay();un++){const kt=new Date(Ze,Ce,0).getDate()-wt.getDay()+un+1,Ct=new Date(Ze,Ce-1,kt),zt=G&&G>Ct||N&&N<Ct,ln=K?Yn.be(K.sDate,Ct,K.eDate):!1,mt=se&&K&&Yn.be(K.sDate,Ct,se);Gt.push({day:kt,isSelected:ln,isHovered:mt,date:Ct,isDisabled:zt,isCurrentMonth:!1})}for(let un=1;un<=Kt.getDate();un++){const ft=new Date(Ze,Ce,un),kt=G&&G>ft||N&&N<ft,Ct=K?Yn.be(K.sDate,ft,K.eDate):!1,zt=se&&K&&Yn.be(K.sDate,ft,se);Gt.push({day:un,isSelected:Ct,isHovered:zt,date:ft,isDisabled:kt,isCurrentMonth:!0})}for(let un=0;un<7-Kt.getDay()-1;un++){const ft=new Date(Ze,Ce+1,un+1),kt=G&&G>ft||N&&N<ft,Ct=K?Yn.be(K.sDate,ft,K.eDate):!1,zt=se&&K&&Yn.be(K.sDate,ft,se);Gt.push({day:un+1,isSelected:Ct,isHovered:zt,date:ft,isDisabled:kt,isCurrentMonth:!1})}const pn=[];for(let un=0;un<Gt.length/7;un++)pn.push(M.jsx("div",{className:Qi.Week,children:Gt.slice(un*7,un*7+7).map((ft,kt)=>M.jsx(Ic,{isDisabled:ft.isDisabled,type:"Raw",className:bt.clsx(Qi.Cell,ft.isDisabled?Qi.IsDisabled:ft.isCurrentMonth?ft.isSelected?Qi.IsSelected:ft.isHovered&&Qi.IsHovered:Qi.IsNotCurrentMonth),onMouseDown:()=>ft.isCurrentMonth&&re(ft.date),onMouseEnter:()=>ft.isCurrentMonth&&be(ft.date),onMouseUp:()=>ft.isCurrentMonth&&de(ft.date),children:ft.day},kt))},un));return pn},[Q,se,K,G,N,re,de,be]),dt=B.useRef(null),Mt=B.useCallback(()=>{dt&&mm(dt,Rt,o)},[dt,o]),[ot,nt]=B.useState(!1),[Ot,Zt]=B.useState(!1),Rt=B.useRef(null),tn=B.useCallback(()=>{h||g||(nt(!0),setTimeout(()=>Zt(!0),0),setTimeout(()=>Mt(),0),ge(K2(K,G,N)))},[h,g,K,Mt,G,N]),Ft=B.useCallback(()=>{h||g||(nt(!0),Zt(!1))},[h,g]),yn=B.useMemo(()=>Ot?Ft:tn,[Ot,tn,Ft]),dn=B.useCallback(()=>nt(!1),[]),nn=B.useCallback(Ce=>{const Ze=document.getElementById("root"),wt=Ce.target,Kt=Rt.current,Gt=dt.current;!Ze||!Kt||!wt||!Gt||!Kt.contains(wt)&&Ze.contains(wt)&&!Gt.contains(wt)&&Ft()},[Ft]);B.useEffect(()=>{if(Ot)return setTimeout(()=>document.addEventListener("mousedown",nn),0),()=>document.removeEventListener("mousedown",nn)},[Ot,nn]);const Bt=B.useCallback(()=>{Mt()},[Mt]);B.useEffect(()=>{if(!Ot||!(dt!=null&&dt.current))return;const Ce=dt.current;let Ze=Ce.parentElement;for(;Ze;)Ze.addEventListener("scroll",Bt),Ze=Ze.parentElement;return()=>{let wt=Ce.parentElement;for(;wt;)wt.removeEventListener("scroll",Bt),wt=wt.parentElement}},[dt,Ot,Bt]),B.useEffect(()=>{if(Ot)return window.addEventListener("resize",Bt),()=>window.removeEventListener("resize",Bt)},[Ot,Bt]);const on=B.useCallback(Ce=>{Ce[0].intersectionRatio===0&&Ft()},[Ft]);B.useEffect(()=>{if(!Ot)return;const Ce=new IntersectionObserver(on,{threshold:0});return Rt.current&&Ce.observe(Rt.current),()=>Ce.disconnect()},[Rt,Ot,on]),B.useEffect(()=>{i&&(i.current={open:tn,close:Ft,toggle:yn})},[i,tn,Ft,yn]),B.useEffect(()=>{if(!K)return;let Ce={sDate:K.sDate,eDate:K.eDate};G&&(Yn["<"](K.sDate,G)&&(Ce.sDate=G),Yn["<"](K.eDate,G)&&(Ce.eDate=G)),N&&(Yn[">"](K.sDate,N)&&(Ce.sDate=N),Yn[">"](K.eDate,N)&&(Ce.eDate=N)),(Ce.sDate!==K.sDate||Ce.eDate!==K.eDate)&&X(Ce)},[G,N,K,X]);const Nn=B.useCallback(Ce=>{O==null||O(Ce),yn()},[O,yn]),Rn=B.useCallback(Ce=>{X(void 0),Ft(),Ce.stopPropagation()},[X,Ft]),gn=B.useCallback(()=>K?M.jsx(Ba,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:Rn}):null,[K,Rn]),Ue=B.useMemo(()=>K?`${Yn.toString(K.sDate)} ~ ${Yn.toString(K.eDate)}`:M.jsx("span",{className:Qi.Placeholder,children:H}),[K,H]);return M.jsxs(M.Fragment,{children:[M.jsxs(Wi,{...P,abaseRef:dt,className:bt.clsx(Qi.Anchor,"IsClickable",Qi[e],t),isDisabled:h,isLoading:g,onClick:Nn,children:[w,M.jsxs(B.Activity,{mode:e==="Primary"?"visible":"hidden",children:[M.jsx(uo,{className:bt.clsx(Qi.Icon,Qi[e]),icon:"CalendarDay"}),M.jsx(cs,{w:4})]}),Ue,M.jsx(zg,{}),M.jsx(B.Activity,{mode:R?"hidden":"visible",children:M.jsx(gn,{})}),M.jsx(B.Activity,{mode:e==="Secondary"?"visible":"hidden",children:M.jsx(uo,{className:bt.clsx(Qi.Icon,Qi[e]),icon:"CalendarDay"})}),M.jsx(B.Activity,{mode:_?"visible":"hidden",children:_})]}),(Ot||ot)&&su.createPortal(M.jsxs("div",{ref:Rt,className:Qi.ADateRangePicker,style:{opacity:+Ot,visibility:Ot?"visible":"hidden"},onMouseLeave:oe,onTransitionEnd:dn,children:[M.jsxs("div",{className:Qi.StringInputContainer,children:[M.jsxs(Ml,{children:[M.jsx(sg,{className:bt.clsx(Qi.String,J==="sD"&&se&&Qi.IsIdx),inputProps:{className:Qi.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[ze,Oe],wrapProps:{className:Qi.StringInputWrap},onBlur:et}),M.jsx(cs,{w:8}),M.jsx(sg,{className:bt.clsx(Qi.String,J==="eD"&&se&&Qi.IsIdx),inputProps:{className:Qi.StringInput},maxLength:11,placeholder:"YYYY-MM-DD",useValue:[ht,it],wrapProps:{className:Qi.StringInputWrap},onBlur:et})]}),!x&&M.jsxs(Ml,{style:{marginTop:4},children:[M.jsx(f0,{children:z["1일"],onClick:()=>X({sDate:new Date,eDate:new Date})}),M.jsx(f0,{children:z["1주일"],onClick:()=>X({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),M.jsx(f0,{children:z["1개월"],onClick:()=>X({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),M.jsx(f0,{children:z["3개월"],onClick:()=>X({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),M.jsxs("div",{className:Qi.CalendarContainer,children:[M.jsxs(Ml,{className:Qi.Header,children:[M.jsx(Ic,{className:Qi.Prev,isDisabled:ke,type:"Raw",onClick:Ie}),M.jsxs("div",{className:Qi.MonthYear,children:[M.jsx(Td,{isAutoWidth:!0,className:Qi.Select,OptionRenderer:Ce=>z.months(Ce.option),options:He,SelectedRenderer:Ce=>z.months(Ce.selectedOption),type:"Secondary",useSelect:[Q.month,Ne]}),M.jsx(cs,{w:8}),M.jsx(Td,{isAutoWidth:!0,className:Qi.Select,options:Te,type:"Secondary",useSelect:[Q.year,xe]})]}),M.jsx(Ic,{className:Qi.Next,isDisabled:Me,type:"Raw",onClick:Be})]}),M.jsx(cs,{h:10}),M.jsxs("div",{className:Qi.Calendar,children:[M.jsx("div",{className:Qi.Week,children:[0,1,2,3,4,5,6].map(Ce=>M.jsx("div",{className:bt.clsx(Qi.WeekDay,Qi.Cell),children:z.weekDays(Ce)},Ce))}),st]})]})]}),document.body)]})};function Ap(n,e,t){let r=0;e&&e.getFullYear()===n&&(r=e.getMonth());let i=11;t&&t.getFullYear()===n&&(i=t.getMonth());const o=[];for(let l=r;l<=i;l++)o.push(l);return o}function Sm(n,e,t,r=5){const i=[];let o=n-r/2+r%2/2;e&&o<e.getFullYear()&&(o=e.getFullYear());let l=o+r-1;t&&l>t.getFullYear()&&(l=t.getFullYear());for(let a=o;a<=l;a++)i.push(a);return i}function K2(n,e,t){return n??(n={sDate:new Date,eDate:new Date}),e&&Yn["<"](n.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&Yn[">"](n.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:n.sDate.getMonth(),year:n.sDate.getFullYear()}}function J2(n,e){return[e,n]}const f0=n=>{const e=Vn.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=bt.clsx(Qi.ChoiceButton,"Headline2"),e[0]=t):t=e[0];let r;return e[1]!==n?(r=M.jsx(Ic,{className:t,type:"Secondary",...n}),e[1]=n,e[2]=r):r=e[2],r},h8=["Primary","Secondary","Raw"],Em=n=>{const e=Vn.c(255);let t,r,i,o,l,a,h,g,m,x,w,_,E,R,k,O;e[0]!==n?({type:R,className:l,useDate:O,actionRef:o,position:k,minDate:h,maxDate:a,isDisabled:w,isLoading:_,placeholder:m,LeftAddon:t,RightAddon:r,resources:x,noClearButton:E,onClick:g,...i}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m,e[10]=x,e[11]=w,e[12]=_,e[13]=E,e[14]=R,e[15]=k,e[16]=O):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9],x=e[10],w=e[11],_=e[12],E=e[13],R=e[14],k=e[15],O=e[16]);const P=R===void 0?"Primary":R,z=k===void 0?O1.SE:k;let H;e[17]!==x?(H={...Nr.ADatePicker,...x},e[17]=x,e[18]=H):H=e[18];const G=H,N=m??G["Select Date"];let J;if(e[19]!==a||e[20]!==h){e:{let fn,On;if(h&&(fn=Yn.makeSDate(h)),a&&(On=Yn.makeEDate(a)),fn&&On&&Yn["<"](On,fn)){console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),J=[Yn.makeSDate(On),Yn.makeEDate(fn)];break e}let Ar;e[22]!==On||e[23]!==fn?(Ar=[fn,On],e[22]=On,e[23]=fn,e[24]=Ar):Ar=e[24],J=Ar}e[19]=a,e[20]=h,e[21]=J}else J=e[21];const[Y,K]=J,[fe,X]=Do(O,null);let te;e[25]!==fe?(te=fe?Yn.toString(fe):"",e[25]=fe,e[26]=te):te=e[26];const[ne,ue]=B.useState(te);let se;e[27]!==K||e[28]!==Y||e[29]!==fe?(se=()=>{const fn=fe??new Date;return Y&&fn<Y?Y.getMonth():K&&fn>K?K.getMonth():(fn??new Date).getMonth()},e[27]=K,e[28]=Y,e[29]=fe,e[30]=se):se=e[30];const[$,re]=B.useState(se);let de;e[31]!==K||e[32]!==Y||e[33]!==fe?(de=()=>{const fn=fe??new Date;return Y&&fn<Y?Y.getFullYear():K&&fn>K?K.getFullYear():(fn??new Date).getFullYear()},e[31]=K,e[32]=Y,e[33]=fe,e[34]=de):de=e[34];const[be,oe]=B.useState(de);let Q;e[35]!==K||e[36]!==Y||e[37]!==$?(Q=fn=>{oe(fn);const On=Ap(fn,Y,K);On.includes($)||($<On[0]?re(On[0]):$>On[On.length-1]&&re(On[On.length-1]))},e[35]=K,e[36]=Y,e[37]=$,e[38]=Q):Q=e[38];const ge=Q;let Te;e[39]!==K||e[40]!==Y||e[41]!==X?(Te=fn=>{if(fn.length>10||(ue(fn),fn.length<10)||!X)return;let On=Yn.toDate(fn);On&&(Y&&On<Y&&(On=Y),K&&On>K&&(On=K),X(On),oe(On.getFullYear()),re(On.getMonth()))},e[39]=K,e[40]=Y,e[41]=X,e[42]=Te):Te=e[42];const He=Te;let xe;e[43]!==be?(xe=fn=>{const On=be+fn;On<0||oe(On)},e[43]=be,e[44]=xe):xe=e[44];const Ne=xe;let Me;e[45]!==$||e[46]!==Ne?(Me=fn=>{const On=$+fn;On<0?(re(11),Ne(-1)):On>11?(re(0),Ne(1)):re(On)},e[45]=$,e[46]=Ne,e[47]=Me):Me=e[47];const Be=Me;let ke;e[48]!==X?(ke=fn=>{X&&(fn===void 0?(X(void 0),ue("")):(X(fn),ue(Yn.toString(fn))))},e[48]=X,e[49]=ke):ke=e[49];const Ie=ke;let ze;e[50]!==$||e[51]!==be?(ze=new Date(be,$,0),e[50]=$,e[51]=be,e[52]=ze):ze=e[52];const Oe=Y&&ze<Y,ht=$+1;let $e;e[53]!==ht||e[54]!==be?($e=new Date(be,ht,1),e[53]=ht,e[54]=be,e[55]=$e):$e=e[55];const et=K&&$e>K;let st;e[56]!==Oe||e[57]!==Be?(st=()=>{Oe||Be(-1)},e[56]=Oe,e[57]=Be,e[58]=st):st=e[58];const dt=st;let Mt;e[59]!==et||e[60]!==Be?(Mt=()=>{et||Be(1)},e[59]=et,e[60]=Be,e[61]=Mt):Mt=e[61];const ot=Mt,[nt,Ot]=B.useState(null);let Zt;e[62]!==X?(Zt=()=>{X&&Ot(null)},e[62]=X,e[63]=Zt):Zt=e[63];const Rt=Zt;let tn;e[64]!==X?(tn=fn=>{X&&Ot(fn)},e[64]=X,e[65]=tn):tn=e[65];const Ft=tn;let yn;if(e[66]!==Ie||e[67]!==nt||e[68]!==K||e[69]!==Y||e[70]!==$||e[71]!==Ft||e[72]!==Rt||e[73]!==fe||e[74]!==be){const fn=new Date(be,$,1),On=new Date(be,$+1,0),Ar=[];for(let ur=0;ur<fn.getDay();ur++){const zr=new Date(be,$,0).getDate()-fn.getDay()+ur+1,Lr=new Date(be,$-1,zr),hi=Y&&Y>Lr||K&&K<Lr,Ui=fe&&Yn.eq(Lr,fe),Fr=nt&&Yn.eq(Lr,nt);Ar.push({day:zr,isSelected:Ui,date:Lr,isDisabled:hi,isHovered:Fr,isCurrentMonth:!1})}for(let ur=1;ur<=On.getDate();ur++){const Fn=new Date(be,$,ur),zr=Y&&Y>Fn||K&&K<Fn,Lr=fe&&Yn.eq(Fn,fe),hi=nt&&Yn.eq(Fn,nt);Ar.push({day:ur,isSelected:Lr,date:Fn,isDisabled:zr,isHovered:hi,isCurrentMonth:!0})}for(let ur=0;ur<7-On.getDay()-1;ur++){const Fn=new Date(be,$+1,ur+1),zr=Y&&Y>Fn||K&&K<Fn,Lr=fe&&Yn.eq(Fn,fe),hi=nt&&Yn.eq(Fn,nt);Ar.push({day:ur+1,isSelected:Lr,date:Fn,isDisabled:zr,isHovered:hi,isCurrentMonth:!1})}yn=[];for(let ur=0;ur<Ar.length/7;ur++)yn.push(M.jsx("div",{className:Zo.Week,children:Ar.slice(ur*7,ur*7+7).map((Fn,zr)=>M.jsx(Ic,{isDisabled:Fn.isDisabled,type:"Raw",className:bt.clsx(Zo.Cell,Fn.isDisabled?Zo.IsDisabled:Fn.isCurrentMonth?Fn.isSelected?Zo.IsSelected:Fn.isHovered&&Zo.IsHovered:Zo.IsNotCurrentMonth),onClick:()=>Fn.isCurrentMonth&&Ie(Fn.date),onMouseEnter:()=>Fn.isCurrentMonth&&Ft(Fn.date),onMouseLeave:()=>Fn.isCurrentMonth&&Rt(),children:Fn.day},zr))},ur));e[66]=Ie,e[67]=nt,e[68]=K,e[69]=Y,e[70]=$,e[71]=Ft,e[72]=Rt,e[73]=fe,e[74]=be,e[75]=yn}else yn=e[75];const dn=yn,nn=B.useRef(null);let Bt;e[76]!==z?(Bt=()=>{nn&&mm(nn,Ce,z)},e[76]=z,e[77]=Bt):Bt=e[77];const on=Bt,[Nn,Rn]=B.useState(!1),[gn,Ue]=B.useState(!1),Ce=B.useRef(null);let Ze;e[78]!==on||e[79]!==w||e[80]!==_||e[81]!==K||e[82]!==Y||e[83]!==fe?(Ze=()=>{w||_||(Rn(!0),setTimeout(()=>Ue(!0),0),setTimeout(()=>on(),0),ue(fe?Yn.toString(fe):""),re(()=>{const fn=fe??new Date;return Y&&fn<Y?Y.getMonth():K&&fn>K?K.getMonth():fn.getMonth()}),oe(()=>{const fn=fe??new Date;return Y&&fn<Y?Y.getFullYear():K&&fn>K?K.getFullYear():fn.getFullYear()}))},e[78]=on,e[79]=w,e[80]=_,e[81]=K,e[82]=Y,e[83]=fe,e[84]=Ze):Ze=e[84];const wt=Ze;let Kt;e[85]!==w||e[86]!==_?(Kt=()=>{w||_||(Rn(!0),Ue(!1))},e[85]=w,e[86]=_,e[87]=Kt):Kt=e[87];const Gt=Kt,pn=gn?Gt:wt;let un;e[88]===Symbol.for("react.memo_cache_sentinel")?(un=()=>Rn(!1),e[88]=un):un=e[88];const ft=un;let kt;e[89]!==Gt?(kt=fn=>{const On=document.getElementById("root"),Ar=fn.target,ur=Ce.current,Fn=nn.current;!On||!ur||!Ar||!Fn||!ur.contains(Ar)&&On.contains(Ar)&&!Fn.contains(Ar)&&Gt()},e[89]=Gt,e[90]=kt):kt=e[90];const Ct=kt;let zt,ln;e[91]!==gn||e[92]!==Ct?(zt=()=>{if(gn)return setTimeout(()=>document.addEventListener("mousedown",Ct),0),()=>document.removeEventListener("mousedown",Ct)},ln=[gn,Ct],e[91]=gn,e[92]=Ct,e[93]=zt,e[94]=ln):(zt=e[93],ln=e[94]),B.useEffect(zt,ln);let mt;e[95]!==on?(mt=()=>{on()},e[95]=on,e[96]=mt):mt=e[96];const Lt=mt;let en,bn;e[97]!==gn||e[98]!==Lt?(en=()=>{if(!gn||!(nn!=null&&nn.current))return;const fn=nn.current;let On=fn.parentElement;for(;On;)On.addEventListener("scroll",Lt),On=On.parentElement;return()=>{let Ar=fn.parentElement;for(;Ar;)Ar.removeEventListener("scroll",Lt),Ar=Ar.parentElement}},bn=[nn,gn,Lt],e[97]=gn,e[98]=Lt,e[99]=en,e[100]=bn):(en=e[99],bn=e[100]),B.useEffect(en,bn);let xn,Vt;e[101]!==gn||e[102]!==Lt?(xn=()=>{if(gn)return window.addEventListener("resize",Lt),()=>window.removeEventListener("resize",Lt)},Vt=[gn,Lt],e[101]=gn,e[102]=Lt,e[103]=xn,e[104]=Vt):(xn=e[103],Vt=e[104]),B.useEffect(xn,Vt);let mn;e[105]!==Gt?(mn=fn=>{fn[0].intersectionRatio===0&&Gt()},e[105]=Gt,e[106]=mn):mn=e[106];const Dn=mn;let cr;e[107]!==gn||e[108]!==Dn?(cr=()=>{if(!gn)return;const fn=new IntersectionObserver(Dn,{threshold:0});return Ce.current&&fn.observe(Ce.current),()=>fn.disconnect()},e[107]=gn,e[108]=Dn,e[109]=cr):cr=e[109];let En;e[110]!==gn||e[111]!==Dn?(En=[Ce,gn,Dn],e[110]=gn,e[111]=Dn,e[112]=En):En=e[112],B.useEffect(cr,En);let Ln,je;e[113]!==o||e[114]!==Gt||e[115]!==wt||e[116]!==pn?(Ln=()=>{o&&(o.current={open:wt,close:Gt,toggle:pn})},je=[o,wt,Gt,pn],e[113]=o,e[114]=Gt,e[115]=wt,e[116]=pn,e[117]=Ln,e[118]=je):(Ln=e[117],je=e[118]),B.useEffect(Ln,je);let qt;e[119]!==g||e[120]!==pn?(qt=fn=>{g==null||g(fn),pn()},e[119]=g,e[120]=pn,e[121]=qt):qt=e[121];const rn=qt;let zn;e[122]!==Ie||e[123]!==Gt?(zn=fn=>{Ie(void 0),Gt(),fn.stopPropagation()},e[122]=Ie,e[123]=Gt,e[124]=zn):zn=e[124];const $n=zn;let kn;e[125]!==$n||e[126]!==fe?(kn=()=>fe?M.jsx(Ba,{icon:"Close",style:{scale:"0.8"},type:"Raw",onClick:$n}):null,e[125]=$n,e[126]=fe,e[127]=kn):kn=e[127];const Tt=kn;let Se;if(fe){let fn;e[128]!==fe?(fn=Yn.toString(fe),e[128]=fe,e[129]=fn):fn=e[129],Se=fn}else{let fn;e[130]!==N?(fn=M.jsx("span",{className:Zo.Placeholder,children:N}),e[130]=N,e[131]=fn):fn=e[131],Se=fn}const rt=Se;let Et;e[132]!==l||e[133]!==P?(Et=bt.clsx(Zo.Anchor,"IsClickable",Zo[P],l),e[132]=l,e[133]=P,e[134]=Et):Et=e[134];const wn=P==="Primary"?"visible":"hidden";let Tn;e[135]!==P?(Tn=bt.clsx(Zo.Icon,Zo[P]),e[135]=P,e[136]=Tn):Tn=e[136];let Zn;e[137]!==Tn?(Zn=M.jsx(uo,{className:Tn,icon:"CalendarDay"}),e[137]=Tn,e[138]=Zn):Zn=e[138];let ir;e[139]===Symbol.for("react.memo_cache_sentinel")?(ir=M.jsx(cs,{w:4}),e[139]=ir):ir=e[139];let gr;e[140]!==wn||e[141]!==Zn?(gr=M.jsxs(B.Activity,{mode:wn,children:[Zn,ir]}),e[140]=wn,e[141]=Zn,e[142]=gr):gr=e[142];let Cn;e[143]===Symbol.for("react.memo_cache_sentinel")?(Cn=M.jsx(zg,{}),e[143]=Cn):Cn=e[143];const qn=E?"hidden":"visible";let _n;e[144]!==Tt?(_n=M.jsx(Tt,{}),e[144]=Tt,e[145]=_n):_n=e[145];let dr;e[146]!==qn||e[147]!==_n?(dr=M.jsx(B.Activity,{mode:qn,children:_n}),e[146]=qn,e[147]=_n,e[148]=dr):dr=e[148];const li=P==="Secondary"?"visible":"hidden";let wo;e[149]!==P?(wo=bt.clsx(Zo.Icon,Zo[P]),e[149]=P,e[150]=wo):wo=e[150];let fo;e[151]!==wo?(fo=M.jsx(uo,{className:wo,icon:"CalendarDay"}),e[151]=wo,e[152]=fo):fo=e[152];let Br;e[153]!==li||e[154]!==fo?(Br=M.jsx(B.Activity,{mode:li,children:fo}),e[153]=li,e[154]=fo,e[155]=Br):Br=e[155];const al=r?"visible":"hidden";let ho;e[156]!==r||e[157]!==al?(ho=M.jsx(B.Activity,{mode:al,children:r}),e[156]=r,e[157]=al,e[158]=ho):ho=e[158];let Si;e[159]!==t||e[160]!==i||e[161]!==rt||e[162]!==w||e[163]!==_||e[164]!==rn||e[165]!==Et||e[166]!==gr||e[167]!==dr||e[168]!==Br||e[169]!==ho?(Si=M.jsxs(Wi,{...i,abaseRef:nn,className:Et,isDisabled:w,isLoading:_,onClick:rn,children:[t,gr,rt,Cn,dr,Br,ho]}),e[159]=t,e[160]=i,e[161]=rt,e[162]=w,e[163]=_,e[164]=rn,e[165]=Et,e[166]=gr,e[167]=dr,e[168]=Br,e[169]=ho,e[170]=Si):Si=e[170];const Jl=gn||Nn?"visible":"hidden";let No;if(e[171]!==dn||e[172]!==ne||e[173]!==et||e[174]!==gn||e[175]!==Oe||e[176]!==K||e[177]!==Y||e[178]!==$||e[179]!==He||e[180]!==ot||e[181]!==dt||e[182]!==ge||e[183]!==G||e[184]!==fe||e[185]!==be){const fn=+gn;let On;e[187]!==fn?(On={opacity:fn},e[187]=fn,e[188]=On):On=e[188];let Ar;e[189]===Symbol.for("react.memo_cache_sentinel")?(Ar={className:Zo.StringInput},e[189]=Ar):Ar=e[189];const ur=fe?30:11;let Fn;e[190]!==ne||e[191]!==He?(Fn=[ne,He],e[190]=ne,e[191]=He,e[192]=Fn):Fn=e[192];let zr;e[193]===Symbol.for("react.memo_cache_sentinel")?(zr={className:Zo.StringInputWrap},e[193]=zr):zr=e[193];let Lr;e[194]!==ur||e[195]!==Fn?(Lr=M.jsx("div",{className:Zo.StringInputContainer,children:M.jsx(sg,{className:Zo.String,inputProps:Ar,maxLength:ur,placeholder:"YYYY-MM-DD",useValue:Fn,wrapProps:zr})}),e[194]=ur,e[195]=Fn,e[196]=Lr):Lr=e[196];let hi;e[197]!==Oe||e[198]!==dt?(hi=M.jsx(Ic,{className:Zo.Prev,isDisabled:Oe,type:"Raw",onClick:dt}),e[197]=Oe,e[198]=dt,e[199]=hi):hi=e[199];let Ui;e[200]!==G?(Ui=Ho=>G.months(Ho.option),e[200]=G,e[201]=Ui):Ui=e[201];let Fr;e[202]!==K||e[203]!==Y||e[204]!==be?(Fr=Ap(be,Y,K),e[202]=K,e[203]=Y,e[204]=be,e[205]=Fr):Fr=e[205];let Xo;e[206]!==G?(Xo=Ho=>G.months(Ho.selectedOption),e[206]=G,e[207]=Xo):Xo=e[207];let Co;e[208]!==$?(Co=[$,re],e[208]=$,e[209]=Co):Co=e[209];let Fo;e[210]!==Ui||e[211]!==Fr||e[212]!==Xo||e[213]!==Co?(Fo=M.jsx(Td,{isAutoWidth:!0,className:Zo.Select,OptionRenderer:Ui,options:Fr,SelectedRenderer:Xo,type:"Secondary",useSelect:Co}),e[210]=Ui,e[211]=Fr,e[212]=Xo,e[213]=Co,e[214]=Fo):Fo=e[214];let Ei;e[215]===Symbol.for("react.memo_cache_sentinel")?(Ei=M.jsx(cs,{w:8}),e[215]=Ei):Ei=e[215];let $r;e[216]!==K||e[217]!==Y||e[218]!==be?($r=Sm(be,Y,K),e[216]=K,e[217]=Y,e[218]=be,e[219]=$r):$r=e[219];let xr;e[220]!==ge||e[221]!==be?(xr=[be,ge],e[220]=ge,e[221]=be,e[222]=xr):xr=e[222];let vl;e[223]!==$r||e[224]!==xr?(vl=M.jsx(Td,{isAutoWidth:!0,className:Zo.Select,options:$r,type:"Secondary",useSelect:xr}),e[223]=$r,e[224]=xr,e[225]=vl):vl=e[225];let mi;e[226]!==Fo||e[227]!==vl?(mi=M.jsxs("div",{className:Zo.MonthYear,children:[Fo,Ei,vl]}),e[226]=Fo,e[227]=vl,e[228]=mi):mi=e[228];let oo;e[229]!==et||e[230]!==ot?(oo=M.jsx(Ic,{className:Zo.Next,isDisabled:et,type:"Raw",onClick:ot}),e[229]=et,e[230]=ot,e[231]=oo):oo=e[231];let Ko;e[232]!==hi||e[233]!==mi||e[234]!==oo?(Ko=M.jsxs(Ml,{className:Zo.Header,children:[hi,mi,oo]}),e[232]=hi,e[233]=mi,e[234]=oo,e[235]=Ko):Ko=e[235];let Bo;e[236]===Symbol.for("react.memo_cache_sentinel")?(Bo=M.jsx(cs,{h:10}),e[236]=Bo):Bo=e[236];let Gi;e[237]!==G?(Gi=M.jsx("div",{className:Zo.Week,children:[0,1,2,3,4,5,6].map(Ho=>M.jsx("div",{className:bt.clsx(Zo.WeekDay,Zo.Cell),children:G.weekDays(Ho)},Ho))}),e[237]=G,e[238]=Gi):Gi=e[238];let zo;e[239]!==dn||e[240]!==Gi?(zo=M.jsxs("div",{className:Zo.Calendar,children:[Gi,dn]}),e[239]=dn,e[240]=Gi,e[241]=zo):zo=e[241];let go;e[242]!==Ko||e[243]!==zo?(go=M.jsxs("div",{className:Zo.CalendarContainer,children:[Ko,Bo,zo]}),e[242]=Ko,e[243]=zo,e[244]=go):go=e[244];let po;e[245]!==On||e[246]!==Lr||e[247]!==go?(po=M.jsxs("div",{ref:Ce,className:Zo.ADatePicker,style:On,onTransitionEnd:ft,children:[Lr,go]}),e[245]=On,e[246]=Lr,e[247]=go,e[248]=po):po=e[248],No=su.createPortal(po,document.body),e[171]=dn,e[172]=ne,e[173]=et,e[174]=gn,e[175]=Oe,e[176]=K,e[177]=Y,e[178]=$,e[179]=He,e[180]=ot,e[181]=dt,e[182]=ge,e[183]=G,e[184]=fe,e[185]=be,e[186]=No}else No=e[186];let To;e[249]!==Jl||e[250]!==No?(To=M.jsx(B.Activity,{mode:Jl,children:No}),e[249]=Jl,e[250]=No,e[251]=To):To=e[251];let jr;return e[252]!==Si||e[253]!==To?(jr=M.jsxs(M.Fragment,{children:[Si,To]}),e[252]=Si,e[253]=To,e[254]=jr):jr=e[254],jr},d8="_Paper_e69j5_1",g8="_Card_e69j5_15",p8="_Body_e69j5_26",v8="_Title_e69j5_35",b8="_Content_e69j5_42",y8="_Action_e69j5_45",m8="_Button_e69j5_58",Qh={Paper:d8,Card:g8,Body:p8,Title:v8,Content:b8,Action:y8,Button:m8},x8=["okCancel","cancelOk","ok","cancel","none"],w8=n=>{const e=Vn.c(129),{dlgCore:t,type:r,title:i,children:o,style:l,titleStyle:a,bodyStyle:h,contentStyle:g,okButtonStyle:m,cancelButtonStyle:x,actionStyle:w,onOk:_,onCancel:E,onClose:R,onEnterPress:k,onEscPress:O,onSpacePress:P,onPaperClick:z,noDim:H,isLoading:G,isOkDisabled:N,isOkLoading:J,isCancelDisabled:Y,isCancelLoading:K,isChanged:fe,buttonNoInteractive:X,okButtonClassName:te,cancelButtonClassName:ne,progress:ue,ProgressRenderer:se,progressProps:$,resources:re}=n,de=r===void 0?"okCancel":r,be=H===void 0?!1:H;let oe;e[0]!==re?(oe={...Nr.ADialog,...re},e[0]=re,e[1]=oe):oe=e[1];const Q=oe,[ge,Te]=B.useState(0);let He,xe;e[2]===Symbol.for("react.memo_cache_sentinel")?(He=()=>Te(1),xe=[],e[2]=He,e[3]=xe):(He=e[2],xe=e[3]),B.useEffect(He,xe);let Ne;e[4]===Symbol.for("react.memo_cache_sentinel")?(Ne=()=>{Te(0)},e[4]=Ne):Ne=e[4];const Me=Ne;let Be;e[5]!==t||e[6]!==R||e[7]!==ge?(Be=()=>{if(!ge){const[,Ze]=t.state.useIsOpen;Ze==null||Ze(!1),R==null||R()}},e[5]=t,e[6]=R,e[7]=ge,e[8]=Be):Be=e[8];const ke=Be;let Ie;e[9]!==G||e[10]!==N||e[11]!==J||e[12]!==_||e[13]!==ge||e[14]!==de?(Ie=async()=>{if(!ge||de==="cancel"||de==="none"||G||N||J)return;const{event:Ze,e:wt}=Eg();await(_==null?void 0:_(wt)),!Ze.preventDefault&&Me()},e[9]=G,e[10]=N,e[11]=J,e[12]=_,e[13]=ge,e[14]=de,e[15]=Ie):Ie=e[15];const ze=Ie;let Ke;e[16]!==Y||e[17]!==K||e[18]!==G||e[19]!==E||e[20]!==ge||e[21]!==de?(Ke=async()=>{if(!ge||de==="ok"||de==="none"||G||Y||K)return;const{event:Ze,e:wt}=Eg();await(E==null?void 0:E(wt)),!Ze.preventDefault&&Me()},e[16]=Y,e[17]=K,e[18]=G,e[19]=E,e[20]=ge,e[21]=de,e[22]=Ke):Ke=e[22];const Oe=Ke;let ht,$e;e[23]!==Oe||e[24]!==t||e[25]!==ze?($e=()=>{t&&t.state.setAction({close:Me,ok:ze,cancel:Oe})},ht=[t,Me,ze,Oe],e[23]=Oe,e[24]=t,e[25]=ze,e[26]=ht,e[27]=$e):(ht=e[26],$e=e[27]),B.useEffect($e,ht);let it;e[28]!==k||e[29]!==G||e[30]!==ze?(it=async()=>{if(G)return;const{event:Ze,e:wt}=Eg();await(k==null?void 0:k(wt)),!Ze.preventDefault&&ze()},e[28]=k,e[29]=G,e[30]=ze,e[31]=it):it=e[31];const et=it;let st;e[32]!==P||e[33]!==G||e[34]!==ze?(st=async()=>{if(G)return;const{event:Ze,e:wt}=Eg();await(P==null?void 0:P(wt)),!Ze.preventDefault&&ze()},e[32]=P,e[33]=G,e[34]=ze,e[35]=st):st=e[35];const dt=st;let Mt;e[36]!==Oe||e[37]!==O||e[38]!==fe||e[39]!==G?(Mt=async()=>{if(G)return;const{event:Ze,e:wt}=Eg();await(O==null?void 0:O(wt)),!Ze.preventDefault&&(fe||Oe())},e[36]=Oe,e[37]=O,e[38]=fe,e[39]=G,e[40]=Mt):Mt=e[40];const ot=Mt,nt=B.useRef(null);let Ot;e[41]!==et||e[42]!==ot||e[43]!==dt||e[44]!==ge?(Ot=Ze=>{const wt=document.body.getElementsByClassName(Qh.Paper);wt.length===0||wt[wt.length-1]!==nt.current||(Ze.key==="Enter"&&ge?et():Ze.key===" "&&ge?dt():Ze.key==="Escape"&&ge&&ot())},e[41]=et,e[42]=ot,e[43]=dt,e[44]=ge,e[45]=Ot):Ot=e[45];const Zt=Ot;let Rt,tn;e[46]!==Zt||e[47]!==ge?(Rt=()=>{if(ge)return window.addEventListener("keydown",Zt),()=>window.removeEventListener("keydown",Zt)},tn=[ge,Zt],e[46]=Zt,e[47]=ge,e[48]=Rt,e[49]=tn):(Rt=e[48],tn=e[49]),B.useEffect(Rt,tn);const Ft=B.useRef(!1),yn=B.useRef(!1);let dn;e[50]===Symbol.for("react.memo_cache_sentinel")?(dn=()=>{Ft.current=!0},e[50]=dn):dn=e[50];const nn=dn;let Bt;e[51]===Symbol.for("react.memo_cache_sentinel")?(Bt=()=>{Ft.current=!1,yn.current=!1},e[51]=Bt):Bt=e[51];const on=Bt;let Nn;e[52]===Symbol.for("react.memo_cache_sentinel")?(Nn=()=>{yn.current=!0},e[52]=Nn):Nn=e[52];const Rn=Nn;let gn;e[53]!==Oe||e[54]!==z||e[55]!==fe||e[56]!==G?(gn=async()=>{if(G)return;const Ze=!yn.current||Ft.current;if(Ft.current=!1,yn.current=!1,Ze)return;const{event:wt,e:Kt}=Eg();await(z==null?void 0:z(Kt)),!wt.preventDefault&&(fe||Oe())},e[53]=Oe,e[54]=z,e[55]=fe,e[56]=G,e[57]=gn):gn=e[57];const Ue=gn;let Ce;if(e[58]!==se||e[59]!==w||e[60]!==h||e[61]!==X||e[62]!==Oe||e[63]!==ne||e[64]!==x||e[65]!==o||e[66]!==g||e[67]!==Y||e[68]!==K||e[69]!==G||e[70]!==N||e[71]!==J||e[72]!==be||e[73]!==ze||e[74]!==te||e[75]!==m||e[76]!==Ue||e[77]!==ke||e[78]!==ge||e[79]!==ue||e[80]!==$||e[81]!==Q||e[82]!==l||e[83]!==i||e[84]!==a||e[85]!==de){const Ze=be?"transparent":void 0,wt=ge?void 0:"none";let Kt;e[87]!==ge||e[88]!==Ze||e[89]!==wt?(Kt={backgroundColor:Ze,pointerEvents:wt,opacity:ge},e[87]=ge,e[88]=Ze,e[89]=wt,e[90]=Kt):Kt=e[90];let Gt;e[91]!==i||e[92]!==a?(Gt=i&&M.jsx(C8,{title:i,titleStyle:a}),e[91]=i,e[92]=a,e[93]=Gt):Gt=e[93];let pn;e[94]!==o||e[95]!==g?(pn=o&&M.jsx("div",{className:Qh.Content,style:g,children:o}),e[94]=o,e[95]=g,e[96]=pn):pn=e[96];let un;e[97]!==h||e[98]!==Gt||e[99]!==pn?(un=M.jsxs("div",{className:Qh.Body,style:h,children:[Gt,pn]}),e[97]=h,e[98]=Gt,e[99]=pn,e[100]=un):un=e[100];let ft;e[101]!==w||e[102]!==X||e[103]!==Oe||e[104]!==ne||e[105]!==x||e[106]!==Y||e[107]!==K||e[108]!==N||e[109]!==J||e[110]!==ze||e[111]!==te||e[112]!==m||e[113]!==Q||e[114]!==de?(ft=de!=="none"&&M.jsx(_8,{type:de,ok:ze,cancel:Oe,resources:Q,isOkDisabled:N,isOkLoading:J,isCancelDisabled:Y,isCancelLoading:K,okButtonStyle:m,cancelButtonStyle:x,actionStyle:w,buttonNoInteractive:X,okButtonClassName:te,cancelButtonClassName:ne}),e[101]=w,e[102]=X,e[103]=Oe,e[104]=ne,e[105]=x,e[106]=Y,e[107]=K,e[108]=N,e[109]=J,e[110]=ze,e[111]=te,e[112]=m,e[113]=Q,e[114]=de,e[115]=ft):ft=e[115];let kt;e[116]!==se||e[117]!==G||e[118]!==ue||e[119]!==$||e[120]!==l||e[121]!==un||e[122]!==ft?(kt=M.jsxs(Wi,{className:Qh.Card,isLoading:G,progress:ue,progressProps:$,ProgressRenderer:se,style:l,onMouseDown:nn,onMouseUp:on,children:[un,ft]}),e[116]=se,e[117]=G,e[118]=ue,e[119]=$,e[120]=l,e[121]=un,e[122]=ft,e[123]=kt):kt=e[123];let Ct;e[124]!==Ue||e[125]!==ke||e[126]!==Kt||e[127]!==kt?(Ct=M.jsx("div",{ref:nt,className:Qh.Paper,style:Kt,onMouseDown:Rn,onMouseUp:Ue,onTransitionEnd:ke,children:kt}),e[124]=Ue,e[125]=ke,e[126]=Kt,e[127]=kt,e[128]=Ct):Ct=e[128],Ce=su.createPortal(Ct,document.body),e[58]=se,e[59]=w,e[60]=h,e[61]=X,e[62]=Oe,e[63]=ne,e[64]=x,e[65]=o,e[66]=g,e[67]=Y,e[68]=K,e[69]=G,e[70]=N,e[71]=J,e[72]=be,e[73]=ze,e[74]=te,e[75]=m,e[76]=Ue,e[77]=ke,e[78]=ge,e[79]=ue,e[80]=$,e[81]=Q,e[82]=l,e[83]=i,e[84]=a,e[85]=de,e[86]=Ce}else Ce=e[86];return Ce},C8=n=>{const e=Vn.c(4),{title:t,titleStyle:r}=n;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=bt.clsx(Qh.Title,"NoSelect","Title3"),e[0]=i):i=e[0];let o;return e[1]!==t||e[2]!==r?(o=M.jsx("div",{className:i,style:r,children:t}),e[1]=t,e[2]=r,e[3]=o):o=e[3],o},_8=n=>{const e=Vn.c(41),{type:t,ok:r,cancel:i,resources:o,isOkDisabled:l,isOkLoading:a,isCancelDisabled:h,isCancelLoading:g,okButtonStyle:m,cancelButtonStyle:x,actionStyle:w,buttonNoInteractive:_,okButtonClassName:E,cancelButtonClassName:R}=n,k=o.Ok;let O;e[0]!==E?(O=bt.clsx(Qh.Button,E),e[0]=E,e[1]=O):O=e[1];let P;e[2]!==_||e[3]!==l||e[4]!==a||e[5]!==r||e[6]!==m||e[7]!==o.Ok||e[8]!==O?(P={onClick:r,isDisabled:l,isLoading:a,children:k,style:m,noInteractive:_,className:O},e[2]=_,e[3]=l,e[4]=a,e[5]=r,e[6]=m,e[7]=o.Ok,e[8]=O,e[9]=P):P=e[9];const z=P,H=o.Cancel;let G;e[10]!==R?(G=bt.clsx(Qh.Button,R),e[10]=R,e[11]=G):G=e[11];let N;e[12]!==_||e[13]!==i||e[14]!==x||e[15]!==h||e[16]!==g||e[17]!==o.Cancel||e[18]!==G?(N={type:"Secondary",onClick:i,isDisabled:h,isLoading:g,children:H,style:x,noInteractive:_,className:G},e[12]=_,e[13]=i,e[14]=x,e[15]=h,e[16]=g,e[17]=o.Cancel,e[18]=G,e[19]=N):N=e[19];const J=N;if(t==="okCancel"||t==="ok"){let Y;e[20]!==w?(Y={...w},e[20]=w,e[21]=Y):Y=e[21];let K;e[22]!==z?(K=M.jsx(Ic,{...z}),e[22]=z,e[23]=K):K=e[23];let fe;e[24]!==J||e[25]!==t?(fe=t==="okCancel"&&M.jsxs(M.Fragment,{children:[M.jsx(cs,{w:8}),M.jsx(Ic,{...J})]}),e[24]=J,e[25]=t,e[26]=fe):fe=e[26];let X;return e[27]!==Y||e[28]!==K||e[29]!==fe||e[30]!==t?(X=M.jsxs("div",{className:Qh.Action,style:Y,children:[K,fe]},t),e[27]=Y,e[28]=K,e[29]=fe,e[30]=t,e[31]=X):X=e[31],X}else if(t==="cancelOk"||t==="cancel"){let Y;e[32]!==J?(Y=M.jsx(Ic,{...J}),e[32]=J,e[33]=Y):Y=e[33];let K;e[34]!==z||e[35]!==t?(K=t==="cancelOk"&&M.jsxs(M.Fragment,{children:[M.jsx(cs,{w:8}),M.jsx(Ic,{...z})]}),e[34]=z,e[35]=t,e[36]=K):K=e[36];let fe;return e[37]!==Y||e[38]!==K||e[39]!==t?(fe=M.jsxs("div",{className:Qh.Action,children:[Y,K]},t),e[37]=Y,e[38]=K,e[39]=t,e[40]=fe):fe=e[40],fe}},S8=n=>{const e=B.useMemo(()=>Math.random().toFixed(32),[]),t=B.useMemo(()=>{const _={};return n.forEach(E=>{_[E]=E+e}),_},[n,e]),r=B.useMemo(()=>[],[]),i=B.useMemo(()=>(r.length=0,r.push(...n),r),[r,n]),[o,l]=B.useState([]),a=B.useRef((()=>{const _={};return i.forEach(E=>{_[E]={open:()=>l(R=>[...R,E]),close:()=>{},ok:()=>{},cancel:()=>{}}}),_})()),h=B.useMemo(()=>{const _={};return i.forEach(E=>{_[E]=R=>{l(k=>!R&&k.includes(E)?k.filter(O=>O!==E):R&&!k.includes(E)?[...k,E]:k)}}),_},[i]),g=B.useMemo(()=>{const _={};return i.forEach(E=>{const k=[o.includes(E),h[E]],O=P=>{a.current[E]={...a.current[E],...P}};_[E]={useIsOpen:k,setAction:O}}),_},[o,h,i]),m=B.useMemo(()=>{const _={};return i.forEach(E=>{const R=()=>a.current[E].open(),k=()=>a.current[E].close(),O=()=>a.current[E].ok(),P=()=>a.current[E].cancel();_[E]={open:R,close:k,ok:O,cancel:P}}),_},[i]),x=B.useMemo(()=>({}),[]),w=B.useMemo(()=>(i.forEach(_=>{x[_]={state:g[_],action:m[_]}}),x),[x,i,g,m]);return B.useEffect(()=>(Object.keys(w).forEach(E=>{const R=w[E],k=t[E],O=Mh.find(P=>{P.id});O?O.core=R:Mh.push({id:k,core:R})}),()=>{const E=Object.keys(w),R=Mh.filter(k=>E.includes(k.id));Mh.length=0,Mh.push(...R)}),[w,t]),w},E8=()=>{const n=B.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=B.useState(!1),r=B.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),i=B.useMemo(()=>({useIsOpen:[e,t],setAction:h=>{r.current={...r.current,...h}}}),[e]),o=B.useMemo(()=>({open:()=>r.current.open(),close:()=>r.current.close(),ok:()=>r.current.ok(),cancel:()=>r.current.cancel()}),[]),l=B.useMemo(()=>({}),[]),a=B.useMemo(()=>(l.state=i,l.action=o,l),[l,i,o]);return B.useEffect(()=>{const h=Mh.find(g=>g.id===n);return h?h.core=a:Mh.push({id:n,core:a}),()=>{const g=Mh.filter(m=>m.id!==n);Mh.length=0,Mh.push(...g)}},[n,a]),a},T8=n=>{const e=Vn.c(5),{dlgCore:t,children:r}=n,[i,o]=t.state.useIsOpen;let l,a;e[0]!==o?(l=()=>()=>o==null?void 0:o(!1),a=[o],e[0]=o,e[1]=l,e[2]=a):(l=e[1],a=e[2]),B.useEffect(l,a);const h=i&&r;let g;return e[3]!==h?(g=M.jsx(B.Suspense,{children:h}),e[3]=h,e[4]=g):g=e[4],g},A8=n=>e=>{const{dlgCore:t}=e;return M.jsx(T8,{dlgCore:t,children:B.cloneElement(M.jsx(n,{...e}),{dlgCore:t})})},Mh=[],R8={closeAllDlgs:()=>{Mh.forEach(n=>{n.core.action.close()})}},I8="_AFileBox_1hlo1_1",k8="_SelectedFile_1hlo1_16",M8="_Dropping_1hlo1_26",Tm={AFileBox:I8,SelectedFile:k8,Dropping:M8},L8=n=>{const e=Vn.c(60);let t,r,i,o,l,a,h,g,m,x,w,_;e[0]!==n?({useFile:_,FileRenderer:g,SelectRenderer:m,DropRenderer:x,resources:i,accept:w,onInvalidFileFormat:h,fileSelectButtonClassName:o,isDisabled:l,isLoading:a,className:r,...t}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m,e[10]=x,e[11]=w,e[12]=_):(t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9],x=e[10],w=e[11],_=e[12]);const E=g===void 0?O8:g,R=m===void 0?P8:m,k=x===void 0?D8:x,O=w===void 0?"":w;let P;e[13]!==i?(P={...Nr.AFileBox,...i},e[13]=i,e[14]=P):P=e[14];const z=P,H=B.useRef(null),G=B.useRef(null),[N,J]=Do(_,null),[Y,K]=B.useState(!1);let fe;e[15]!==O?(fe=O.split(",").map(N8).filter(F8),e[15]=O,e[16]=fe):fe=e[16];const X=fe;let te;e[17]!==X?(te=Oe=>{if(X.length===0)return!1;const ht=Oe.name.split(".").pop();return ht?!X.includes(`.${ht}`):!0},e[17]=X,e[18]=te):te=e[18];const ne=te;let ue;e[19]!==ne||e[20]!==h||e[21]!==J?(ue=Oe=>{if(J)if(ne(Oe)){h==null||h();return}else J(Oe);else return},e[19]=ne,e[20]=h,e[21]=J,e[22]=ue):ue=e[22];const se=ue;let $;e[23]!==se?($=Oe=>{Oe.target.files&&Oe.target.files.length>0&&se(Oe.target.files[0])},e[23]=se,e[24]=$):$=e[24];const re=$;let de;e[25]!==se||e[26]!==l||e[27]!==a?(de=Oe=>{Oe.preventDefault(),K(!1),!(l||a)&&Oe.dataTransfer.files&&Oe.dataTransfer.files.length>0&&se(Oe.dataTransfer.files[0])},e[25]=se,e[26]=l,e[27]=a,e[28]=de):de=e[28];const be=de;let oe;e[29]!==l||e[30]!==a?(oe=Oe=>{Oe.preventDefault(),!(l||a)&&K(!0)},e[29]=l,e[30]=a,e[31]=oe):oe=e[31];const Q=oe;let ge;e[32]===Symbol.for("react.memo_cache_sentinel")?(ge=Oe=>{Oe.target===H.current&&Oe.relatedTarget.contains(H.current.parentElement)&&(Oe.preventDefault(),K(!1))},e[32]=ge):ge=e[32];const Te=ge,He=B8;let xe;e[33]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>{var Oe;(Oe=G.current)==null||Oe.click()},e[33]=xe):xe=e[33];const Ne=xe;let Me;if(Y){let Oe;e[34]!==k||e[35]!==z?(Oe=M.jsx(k,{resources:z}),e[34]=k,e[35]=z,e[36]=Oe):Oe=e[36],Me=Oe}else if(N){let Oe;e[37]!==E||e[38]!==N||e[39]!==_?(Oe=M.jsx(E,{file:N,useFile:_}),e[37]=E,e[38]=N,e[39]=_,e[40]=Oe):Oe=e[40],Me=Oe}else{let Oe;e[41]!==R||e[42]!==o||e[43]!==z?(Oe=M.jsx(R,{fileSelectButtonClassName:o,resources:z,onClick:Ne}),e[41]=R,e[42]=o,e[43]=z,e[44]=Oe):Oe=e[44],Me=Oe}const Be=Me;let ke;e[45]!==r?(ke=bt.clsx(Tm.AFileBox,r),e[45]=r,e[46]=ke):ke=e[46];let Ie;e[47]===Symbol.for("react.memo_cache_sentinel")?(Ie={display:"none"},e[47]=Ie):Ie=e[47];let ze;e[48]!==O||e[49]!==re?(ze=M.jsx("input",{ref:G,accept:O,style:Ie,type:"file",value:"",onChange:re}),e[48]=O,e[49]=re,e[50]=ze):ze=e[50];let Ke;return e[51]!==t||e[52]!==Be||e[53]!==l||e[54]!==a||e[55]!==Q||e[56]!==be||e[57]!==ke||e[58]!==ze?(Ke=M.jsxs(Wi,{...t,abaseRef:H,className:ke,isDisabled:l,isLoading:a,onDragEnter:Q,onDragLeave:Te,onDragOver:He,onDrop:be,children:[ze,Be]}),e[51]=t,e[52]=Be,e[53]=l,e[54]=a,e[55]=Q,e[56]=be,e[57]=ke,e[58]=ze,e[59]=Ke):Ke=e[59],Ke},O8=n=>{const e=Vn.c(10),{file:t,useFile:r}=n,[,i]=Do(r,null);let o,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={backgroundColor:""},l=M.jsx(uo,{icon:"File"}),e[0]=o,e[1]=l):(o=e[0],l=e[1]);let a;e[2]!==t.name?(a=M.jsx(nd,{children:t.name}),e[2]=t.name,e[3]=a):a=e[3];let h;e[4]===Symbol.for("react.memo_cache_sentinel")?(h={marginLeft:2,transform:"scale(0.8)"},e[4]=h):h=e[4];let g;e[5]!==i?(g=M.jsx(Ba,{icon:"Close",style:h,type:"Raw",onClick:()=>i==null?void 0:i(null)}),e[5]=i,e[6]=g):g=e[6];let m;return e[7]!==a||e[8]!==g?(m=M.jsxs(Ml,{className:Tm.SelectedFile,style:o,children:[l,a,g]}),e[7]=a,e[8]=g,e[9]=m):m=e[9],m},P8=n=>{const e=Vn.c(9),{onClick:t,resources:r,fileSelectButtonClassName:i}=n;let o,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=bt.clsx("NoSelect"),l={gap:4},e[0]=o,e[1]=l):(o=e[0],l=e[1]);const a=r["Select File"];let h;e[2]!==i||e[3]!==t||e[4]!==a?(h=M.jsx(Ic,{className:i,onClick:t,children:a}),e[2]=i,e[3]=t,e[4]=a,e[5]=h):h=e[5];const g=r["or Drag & Drop"];let m;return e[6]!==h||e[7]!==g?(m=M.jsxs(Ml,{className:o,style:l,children:[h,g]}),e[6]=h,e[7]=g,e[8]=m):m=e[8],m},D8=n=>{const e=Vn.c(4),{resources:t}=n;let r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=bt.clsx(Tm.Dropping,"NoSelect","Headline2"),i=M.jsx(uo,{icon:"FileDownload"}),e[0]=r,e[1]=i):(r=e[0],i=e[1]);const o=t["drop file to select"];let l;return e[2]!==o?(l=M.jsxs(D3,{className:r,children:[i,o]}),e[2]=o,e[3]=l):l=e[3],l};function N8(n){return n.trim()}function F8(n){return n.length>0&&n.startsWith(".")}function B8(n){return n.preventDefault()}async function z8(n){const e=new Promise((t,r)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):r(new Error("Failed to convert file to Base64: Invalid result type.")):r(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=r,i.readAsDataURL(n)});try{return await e}catch{return}}function H8(n,e){var a,h;const t=n.split(","),r=(h=(a=t[0])==null?void 0:a.match(/:(.*?);/))==null?void 0:h[1],i=atob(t[1]);let o=i.length;const l=new Uint8Array(o);for(;o--;)l[o]=i.charCodeAt(o);return new File([l],e,{type:r})}const z3=n=>n.idx?n.idx.toString():`${n.name}-${n.size}-${n.lastModified||""}`,Tg={toBase64:z8,toFile:H8,getFileKey:z3},W8="_AFileUploader_i2nun_1",U8="_LabelContainer_i2nun_16",G8="_LabelButton_i2nun_25",Y8="_Disabled_i2nun_31",V8="_Delete_i2nun_34",Z8="_FileSize_i2nun_38",X8="_TotalFileSize_i2nun_45",K8="_FileBox_i2nun_49",J8="_FileBoxFullSize_i2nun_68",Q8="_SelectRenderer_i2nun_75",q8="_ChipsContainer_i2nun_87",j8="_FileChip_i2nun_100",$8="_FileChipContent_i2nun_113",e9="_FileNameContainer_i2nun_124",t9="_ButtonRenderer_i2nun_130",n9="_ErrorBorder_i2nun_141",r9="_ErrorColor_i2nun_145",i9="_ErrorCursor_i2nun_149",o9="_DropIdle_i2nun_159",pl={AFileUploader:W8,LabelContainer:U8,LabelButton:G8,Disabled:Y8,Delete:V8,FileSize:Z8,TotalFileSize:X8,FileBox:K8,FileBoxFullSize:J8,SelectRenderer:Q8,ChipsContainer:q8,FileChip:j8,FileChipContent:$8,FileNameContainer:e9,ButtonRenderer:t9,ErrorBorder:n9,ErrorColor:r9,ErrorCursor:i9,DropIdle:o9},l9=n=>{const e=Vn.c(14),{file:t,baseClass:r,errorClass:i,errorCursorClass:o,resources:l,onDownload:a}=n,[h,g]=B.useState(!1);let m;e[0]!==r||e[1]!==i||e[2]!==o?(m=bt.clsx(r,i,o),e[0]=r,e[1]=i,e[2]=o,e[3]=m):m=e[3];const x=h?"FileDownload":"CircleAlertOutline",w=l["Fail Download"];let _;e[4]!==t||e[5]!==a?(_=()=>a(t),e[4]=t,e[5]=a,e[6]=_):_=e[6];let E,R;e[7]===Symbol.for("react.memo_cache_sentinel")?(E=()=>g(!0),R=()=>g(!1),e[7]=E,e[8]=R):(E=e[7],R=e[8]);let k;return e[9]!==m||e[10]!==x||e[11]!==w||e[12]!==_?(k=M.jsx(Ba,{className:m,icon:x,iconSize:"sm",tooltip:w,type:"Raw",onClick:_,onMouseEnter:E,onMouseLeave:R}),e[9]=m,e[10]=x,e[11]=w,e[12]=_,e[13]=k):k=e[13],k},s9=n=>{const{useFiles:e,accept:t,onInvalidFileFormat:r,onDownload:i,onDownloadCsv:o,onDelete:l,type:a,limit:h=1024*1024*1024,maxFileCount:g,useError:m,isLoading:x,resources:w,className:_,onDownloadAll:E,csvFilename:R,...k}=n,[{wrapId:O,wrapProps:P,labelProps:z,...H},G]=Bg(k),N=B.useMemo(()=>({...Nr.AFileUploader,...w}),[w]),[J,Y]=Do(e,void 0),[K,fe]=Do(m,!1),[X,te]=B.useState({}),[ne,ue]=B.useState(!1),se=B.useRef(0),$=B.useRef({}),re=B.useRef(null),de=B.useRef(null),be=B.useMemo(()=>(J==null?void 0:J.reduce((ot,nt)=>ot+nt.size,0))||0,[J]);B.useEffect(()=>{fe&&fe(be>h)},[be,h,fe]);const oe=B.useCallback(ot=>{var Zt;if(!t||t==="*"||t==="")return!0;const nt=t.split(",").map(Rt=>Rt.trim()),Ot=`.${(Zt=ot.name.split(".").pop())==null?void 0:Zt.toLowerCase()}`;return nt.includes(Ot)?!0:nt.some(Rt=>{var tn;if(Rt.startsWith("."))return!1;if(Rt.endsWith("/*")){const Ft=Rt.split("/")[0];return(tn=ot.type)==null?void 0:tn.startsWith(`${Ft}/`)}return ot.type===Rt})},[t]),Q=B.useCallback((ot,nt)=>{const Ot={...$.current};Ot[ot]=nt,$.current=Ot,te(Ot)},[te]),ge=B.useCallback(ot=>{const nt=Tg.getFileKey(ot);return X[nt]||"Normal"},[X]),Te=B.useCallback(ot=>x||ge(ot)==="Loading",[x,ge]),He=B.useCallback(ot=>ge(ot)==="Error"||a==="Upload"&&ot.size>h,[ge,h,a]),xe=B.useMemo(()=>J!=null&&J.length?a==="Download"?J.every(He):!1:!0,[J,a,He]),Ne=B.useCallback(()=>{re.current&&(re.current.value="")},[]),Me=B.useMemo(()=>!g||!(J!=null&&J.length)?!1:J.length>=g,[J,g]),Be=B.useCallback(ot=>{if(!Y)return;const nt=[];let Ot=!1,Zt=[],Rt=g?g-((J==null?void 0:J.length)||0):1/0;if(!(Rt<=0)){if(Array.from(ot).forEach((tn,Ft)=>{if(Ft>=Rt)return;if(!oe(tn)){Ot=!0,Zt.push(tn.name);return}const yn=tn;yn.uniqueId=`file-${Date.now()}-${se.current++}`,nt.push(yn)}),Ot)if(r)r();else{const tn=t?t.replace(/,/g,", "):"",Ft=tn?`${N["Supported file format(s)"]}: ${tn}`:"",yn=Zt.length>3?`${Zt.slice(0,3).join(", ")} ${N.and} ${Zt.length-3} ${N["more file(s)"]}`:Zt.join(", ");alert(`${N["Unsupported file format detected."]}
|
|
282
282
|
|
|
283
283
|
${N["Invalid file(s)"]}: ${yn}${Ft?`
|
|
284
284
|
|
|
285
285
|
`+Ft:""}`)}nt.length>0&&Y([...J||[],...nt])}},[Y,oe,r,t,N,J,g]),ke=B.useCallback(()=>{var ot;return(ot=re.current)==null?void 0:ot.click()},[]),Ie=B.useCallback(ot=>{const nt=ot.target.files;nt!=null&&nt.length&&(Be(nt),Ne())},[Be,Ne]),ze=B.useCallback(ot=>{if(l==null||l(ot),!Y||!J)return;const nt=Tg.getFileKey(ot),Ot=J.filter(Zt=>Tg.getFileKey(Zt)!==nt);Y(Ot),Ne()},[l,Y,J,Ne]),Ke=B.useCallback(()=>{Y&&(Y([]),Ne())},[Y,Ne]),Oe=B.useCallback(ot=>{if(!i)return Promise.resolve();const nt=Tg.getFileKey(ot);return $.current[nt]==="Loading"?Promise.resolve():(Q(nt,"Loading"),new Promise(Ot=>{i(ot,Zt=>{Q(nt,Zt),Ot()})}))},[i,Q]),ht=B.useCallback(async()=>{if(J!=null&&J.length){if(te){const ot={...$.current};J.forEach(nt=>{ot[Tg.getFileKey(nt)]="Loading"}),$.current=ot,te(ot)}if(E){E(J,ot=>{if(te){const nt={...$.current,...ot};$.current=nt,te(nt)}});return}for(const ot of J){if(!i)continue;const nt=Tg.getFileKey(ot);await new Promise(Ot=>{i(ot,Zt=>{if(te){const Rt={...$.current};Rt[nt]=Zt,$.current=Rt,te(Rt)}Ot()})})}}},[J,i,E,te]),$e=B.useCallback(()=>{!(J!=null&&J.length)||!o||o(J)},[J,o]),it=B.useMemo(()=>{const ot=nt=>(nt.preventDefault(),nt.stopPropagation(),nt);return{onDragEnter:nt=>{ot(nt),!K&&!x&&ue(!0)},onDragOver:nt=>{ot(nt),!K&&!x&&nt.dataTransfer&&(nt.dataTransfer.dropEffect="copy")},onDragLeave:nt=>{var Zt;ot(nt);const Ot=(Zt=de.current)==null?void 0:Zt.contains(nt.relatedTarget);(!nt.relatedTarget||!Ot)&&ue(!1)},onDrop:nt=>{var Ot;ot(nt),ue(!1),!K&&!x&&((Ot=nt.dataTransfer.files)!=null&&Ot.length)&&Be(nt.dataTransfer.files)}}},[K,x,Be]),et=B.useMemo(()=>{const ot=bt.clsx(pl.ButtonRenderer,"NoSelect");return{upload:nt=>M.jsx(Ba,{className:ot,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:N.Delete,type:"Raw",onClick:()=>ze(nt)}),loading:()=>M.jsx(Ba,{className:ot,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:nt=>M.jsx(l9,{baseClass:ot,errorClass:pl.ErrorColor,errorCursorClass:pl.ErrorCursor,file:nt,resources:N,onDownload:Oe}),download:nt=>M.jsx(Ba,{className:ot,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:N.Download,type:"Raw",onClick:()=>Oe(nt)}),view:()=>null}},[N,ze,Oe]),st=B.useCallback((ot,nt)=>{const Ot=Te(ot),Zt=He(ot),Rt=()=>a==="Upload"?et.upload(ot):a==="View"?et.view():Ot?et.loading():Zt?et.error(ot):et.download(ot);return M.jsx(wm,{ButtonRenderer:Rt,className:bt.clsx(pl.FileChip,Zt&&pl.ErrorBorder),label:M.jsx("div",{className:pl.FileChipContent,children:M.jsxs(Ml,{className:pl.FileNameContainer,children:[M.jsx(nd,{children:ot.name,className:bt.clsx(Zt&&pl.ErrorColor)}),M.jsx("span",{children:Mg(ot.size),className:pl.FileSize})]})})},nt)},[Te,He,a,et]),dt=B.useCallback(()=>M.jsx("div",{className:bt.clsx(pl.FileBox,K&&pl.ErrorBorder,K&&pl.ErrorColor,K&&pl.ErrorCursor,Me&&pl.Disabled,ne&&!(J!=null&&J.length)&&pl.FileBoxFullSize),...it,ref:de,children:ne?M.jsxs(Ml,{className:bt.clsx("NoSelect"),style:{gap:4,display:J!=null&&J.length?"flex":"none"},children:[M.jsx(uo,{icon:"FileDownload"}),M.jsx("span",{children:N["Drop file to select"]})]}):M.jsxs(Ic,{className:bt.clsx(pl.SelectRenderer,"NoSelect"),isDisabled:K||x||Me,type:"Raw",onClick:ke,children:[N["Insert File"],g&&` ${(J==null?void 0:J.length)||0} / ${g}`]})}),[K,Me,ne,J==null?void 0:J.length,it,N,x,ke,g]),Mt=B.useMemo(()=>{const ot=a==="Upload",nt=a==="View",Ot=ot?N["Delete All"]:N["Download All"],Zt=ot?Ke:ht,Rt=(J==null?void 0:J.some(tn=>Te(tn)))||!1;return M.jsxs(Ml,{className:pl.LabelContainer,children:[H.label,a==="Upload"&&M.jsxs(nd,{className:bt.clsx(pl.TotalFileSize,"NoSelect"),children:["(",M.jsx("span",{className:bt.clsx(K&&pl.ErrorColor),children:Mg(be)})," / ",Mg(h),")"]}),!nt&&M.jsx("span",{children:Ot,className:bt.clsx(pl.LabelButton,"Label1",(xe||Rt)&&pl.Disabled,ot&&pl.Delete),onClick:!xe&&!Rt?Zt:void 0}),o&&M.jsx("span",{children:N["Download List"]||"Download List",className:bt.clsx(pl.LabelButton,"Label1",!(J!=null&&J.length)&&pl.Disabled),style:{marginLeft:"auto"},onClick:J!=null&&J.length?$e:void 0})]})},[a,N,Ke,ht,J,H.label,K,be,h,xe,o,$e,Te]);return a!=="Upload"&&!(J!=null&&J.length)?null:M.jsxs(lg,{wrapId:O,wrapProps:P,labelProps:z,...H,label:Mt,children:[M.jsx("input",{ref:re,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:Ie}),M.jsxs(Wi,{...G,className:bt.clsx(pl.AFileUploader,_),children:[M.jsxs(Ml,{className:pl.ChipsContainer,children:[a==="Upload"&&dt(),J==null?void 0:J.map(st)]}),a==="Upload"&&M.jsx(Wi,{className:bt.clsx(pl.DropIdle,"Title1","NoSelect"),style:{color:ne?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:ne?1:.4},...it,abaseRef:de,onClick:ot=>ot.preventDefault(),children:!(J!=null&&J.length)&&M.jsxs(Ml,{style:{gap:4},children:[M.jsx(uo,{icon:"FileDownload",size:"2xl"}),M.jsx("span",{children:N["Drop file to select"]})]})})]})]})},a9="_AFloatMenu_xco8u_1",c9="_Content_xco8u_10",Q2={AFloatMenu:a9,Content:c9},H3=n=>{const e=Vn.c(67),{defs:t,defaultDef:r,actionRef:i,offset:o,onClose:l,onClick:a,onPaperClick:h,position:g,width:m}=n,x=g===void 0?O1.ES:g,w=m===void 0?137:m;let _;e[0]!==r?(_={content:u9,...r},e[0]=r,e[1]=_):_=e[1];const E=_;let R;e[2]!==E||e[3]!==t?(R={},rr.keys(t).forEach($e=>{const it=t[$e],et={...E,...it};et.noDisplay||(R[$e]=et)}),e[2]=E,e[3]=t,e[4]=R):R=e[4];const k=R,[O,P]=B.useState(null);let z;e[5]!==o||e[6]!==x?(z=$e=>{JC($e,K,x,o),P($e)},e[5]=o,e[6]=x,e[7]=z):z=e[7];const H=z,[G,N]=B.useState(!1),[J,Y]=B.useState(!1),K=B.useRef(null);let fe;e[8]!==H?(fe=$e=>{Y(!0),setTimeout(()=>N(!0),0),setTimeout(()=>H($e),0)},e[8]=H,e[9]=fe):fe=e[9];const X=fe;let te;e[10]!==l?(te=()=>{N(!1),Y(!0),l==null||l()},e[10]=l,e[11]=te):te=e[11];const ne=te;let ue;e[12]===Symbol.for("react.memo_cache_sentinel")?(ue=()=>Y(!1),e[12]=ue):ue=e[12];const se=ue;let $;e[13]!==ne||e[14]!==h?($=async $e=>{const it=document.getElementById("root"),et=$e.target,st=K.current;!it||!st||!et||!st.contains(et)&&it.contains(et)&&(await(h==null?void 0:h($e)),ne())},e[13]=ne,e[14]=h,e[15]=$):$=e[15];const re=$;let de,be;e[16]!==G||e[17]!==re?(de=()=>{if(G)return setTimeout(()=>document.addEventListener("mousedown",re),0),()=>document.removeEventListener("mousedown",re)},be=[G,re],e[16]=G,e[17]=re,e[18]=de,e[19]=be):(de=e[18],be=e[19]),B.useEffect(de,be);let oe;e[20]!==H||e[21]!==O?(oe=()=>{O&&H(O)},e[20]=H,e[21]=O,e[22]=oe):oe=e[22];const Q=oe;let ge,Te;e[23]!==G||e[24]!==O||e[25]!==Q?(ge=()=>{if(!G||!O)return;let $e=O.parentElement;for(;$e;)$e.addEventListener("scroll",Q),$e=$e.parentElement;return()=>{let it=O.parentElement;for(;it;)it.removeEventListener("scroll",Q),it=it.parentElement}},Te=[O,G,Q],e[23]=G,e[24]=O,e[25]=Q,e[26]=ge,e[27]=Te):(ge=e[26],Te=e[27]),B.useEffect(ge,Te);let He,xe;e[28]!==G||e[29]!==Q?(He=()=>{if(G)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},xe=[G,Q],e[28]=G,e[29]=Q,e[30]=He,e[31]=xe):(He=e[30],xe=e[31]),B.useEffect(He,xe);let Ne;e[32]!==ne?(Ne=$e=>{$e[0].intersectionRatio===0&&ne()},e[32]=ne,e[33]=Ne):Ne=e[33];const Me=Ne;let Be;e[34]!==G||e[35]!==Me?(Be=()=>{if(!G)return;const $e=new IntersectionObserver(Me,{threshold:0});return K.current&&$e.observe(K.current),()=>$e.disconnect()},e[34]=G,e[35]=Me,e[36]=Be):Be=e[36];let ke;e[37]!==G||e[38]!==Me?(ke=[K,G,Me],e[37]=G,e[38]=Me,e[39]=ke):ke=e[39],B.useEffect(Be,ke);let Ie,ze;e[40]!==i||e[41]!==ne||e[42]!==X?(Ie=()=>{i&&(i.current={open:X,close:ne})},ze=[i,X,ne],e[40]=i,e[41]=ne,e[42]=X,e[43]=Ie,e[44]=ze):(Ie=e[43],ze=e[44]),B.useEffect(Ie,ze);let Ke;e[45]!==ne||e[46]!==k||e[47]!==a||e[48]!==G?(Ke=$e=>{var it;if(G){if((it=k[$e])!=null&&it.isDisabled)return}else return;a==null||a($e),ne()},e[45]=ne,e[46]=k,e[47]=a,e[48]=G,e[49]=Ke):Ke=e[49];const Oe=Ke;if(!G&&!J)return null;let ht;if(e[50]!==E||e[51]!==k||e[52]!==G||e[53]!==Oe||e[54]!==w){const $e=+G,it=G&&Object.keys(k).length>0?"visible":"hidden";let et;e[56]!==$e||e[57]!==it||e[58]!==w?(et={opacity:$e,visibility:it,minWidth:w},e[56]=$e,e[57]=it,e[58]=w,e[59]=et):et=e[59];let st;e[60]!==E||e[61]!==k||e[62]!==Oe?(st=rr.map(k,(Mt,ot)=>{const[nt]=Mt,Ot={...E,...k[nt]};let{content:Zt,noDisplay:Rt,tooltipDirection:tn,...Ft}=Ot;const yn=tn===void 0?ic.E:tn;return Rt?null:(Zt=Vr.getContent(Ot.content,{defKey:nt,def:Ot}),B.createElement(Wi,{...Ft,key:ot,className:bt.clsx(Q2.Content,"Label2","IsClickable",Ft.className),tooltipDirection:yn,onClick:dn=>{var nn;Oe==null||Oe(nt),(nn=Ft.onClick)==null||nn.call(Ft,dn)}},Zt))}),e[60]=E,e[61]=k,e[62]=Oe,e[63]=st):st=e[63];let dt;e[64]!==et||e[65]!==st?(dt=M.jsx("div",{ref:K,className:Q2.AFloatMenu,style:et,onTransitionEnd:se,children:st}),e[64]=et,e[65]=st,e[66]=dt):dt=e[66],ht=su.createPortal(dt,document.body),e[50]=E,e[51]=k,e[52]=G,e[53]=Oe,e[54]=w,e[55]=ht}else ht=e[55];return ht},u9=n=>n.defKey;function f9(n){try{const e=Number.parseInt(n);return isNaN(e)?void 0:e}catch{return}}const G0={parseInt:f9},h9=`${Number.MAX_SAFE_INTEGER}`.length-1,d9=n=>{const e=Vn.c(58);let t,r,i,o,l,a,h,g,m,x,w,_,E;if(e[0]!==n){const{unit:Be,unitMargin:ke,unitOptions:Ie,useSelectUnit:ze,type:Ke,min:Oe,max:ht,unitSelectWidth:$e,unitOptionsRenderer:it,useValue:et,onEnterPress:st,canAsterisk:dt,onFocus:Mt,...ot}=n;g=Be,l=ke,m=Ie,_=ze,a=Ke,o=Oe,i=ht,w=$e,x=it,E=et,r=st,h=dt,t=ot,e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m,e[10]=x,e[11]=w,e[12]=_,e[13]=E}else t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9],x=e[10],w=e[11],_=e[12],E=e[13];const R=l===void 0?4:l,k=a===void 0?"Secondary":a,O=i!==void 0&&o!==void 0?Math.max(`${i}`.length+1,`${o}`.length+1):h9,[P,z]=Do(E,""),[H,G]=B.useState(!1),[N,J]=B.useState(""),Y=B.useRef(null);let K;e:{if(!P||!z){K=String(P);break e}const Be=String(P),ke=G0.parseInt(Be);if(ke!==void 0){if(o!==void 0&&ke<o){const Ie=`${o}`;z(Ie),K=Ie;break e}if(i!==void 0&&ke>i){const Ie=`${i}`;z(Ie),K=Ie;break e}}K=Be}const fe=K;let X;e[14]!==H||e[15]!==i||e[16]!==z?(X=Be=>{if(H){if(i!==void 0&&Be!==""){const ke=G0.parseInt(Be);if(ke!==void 0&&ke>i){J(`${i}`);return}}J(Be)}else z&&z(Be)},e[14]=H,e[15]=i,e[16]=z,e[17]=X):X=e[17];const te=X;let ne;e[18]!==fe?(ne=()=>{G(!0),J(fe)},e[18]=fe,e[19]=ne):ne=e[19];const ue=ne;let se;e[20]!==i||e[21]!==o||e[22]!==z?(se=Be=>{if(G(!1),!z)return;const ke=Be.target.value;let Ie=ke;if(ke===""||ke==="-")Ie=o!==void 0?`${o}`:ke;else{const ze=G0.parseInt(ke);ze===void 0?Ie=o!==void 0?`${o}`:ke:o!==void 0&&ze<o?Ie=`${o}`:i!==void 0&&ze>i&&(Ie=`${i}`)}Ie!==ke&&(Be.target.value=Ie),z(Ie)},e[20]=i,e[21]=o,e[22]=z,e[23]=se):se=e[23];const $=se;let re;e[24]!==r?(re=Be=>{var ke;(ke=Y.current)==null||ke.blur(),r==null||r(Be)},e[24]=r,e[25]=re):re=e[25];const de=re,be=o===void 0&&i===void 0?g??"number":`${o??""}~${i??""}`,[oe,Q]=Do(_,(m==null?void 0:m[0])??"");let ge;if(m){const Be=w||"fit-content";let ke;e[26]!==Be?(ke={maxWidth:Be},e[26]=Be,e[27]=ke):ke=e[27];let Ie;e[28]!==Q||e[29]!==oe?(Ie=[oe,Q],e[28]=Q,e[29]=oe,e[30]=Ie):Ie=e[30];let ze;e[31]!==R?(ze={style:{color:"var(--label-normal)",marginLeft:4,marginRight:R}},e[31]=R,e[32]=ze):ze=e[32];let Ke;e[33]!==ke||e[34]!==Ie||e[35]!==ze||e[36]!==m||e[37]!==x?(Ke=M.jsx(Td,{className:ou.ANumInputUnitSelect,OptionRenderer:x,options:m,style:ke,type:"Raw",useSelect:Ie,arrowProps:ze}),e[33]=ke,e[34]=Ie,e[35]=ze,e[36]=m,e[37]=x,e[38]=Ke):Ke=e[38],ge=Ke}else{let Be;e[39]!==g||e[40]!==R?(Be=g&&M.jsx("span",{style:{marginRight:R},children:g}),e[39]=g,e[40]=R,e[41]=Be):Be=e[41],ge=Be}const Te=ge;let He;e[42]!==n.className?(He=bt.clsx(ou.ANumInput,n.className),e[42]=n.className,e[43]=He):He=e[43];const xe=H?N:fe;let Ne;e[44]!==te||e[45]!==xe?(Ne=[xe,te],e[44]=te,e[45]=xe,e[46]=Ne):Ne=e[46];let Me;return e[47]!==t||e[48]!==O||e[49]!==$||e[50]!==de||e[51]!==ue||e[52]!==be||e[53]!==Ne||e[54]!==He||e[55]!==k||e[56]!==Te?(Me=M.jsx(sg,{...t,autoComplete:"off",className:He,inputRef:Y,maxLength:O,placeholder:be,RightAddon:Te,type:k,useValue:Ne,onBlur:$,onEnterPress:de,onFocus:ue}),e[47]=t,e[48]=O,e[49]=$,e[50]=de,e[51]=ue,e[52]=be,e[53]=Ne,e[54]=He,e[55]=k,e[56]=Te,e[57]=Me):Me=e[57],Me},g9="_AListView_1nv5l_1",p9="_Row_1nv5l_10",v9="_Label_1nv5l_19",b9="_Content_1nv5l_29",h0={AListView:g9,Row:p9,Label:v9,Content:b9},y9=n=>{const e=Vn.c(48);let t,r,i,o,l,a,h,g,m,x,w,_,E,R,k,O,P,z;if(e[0]!==n){const{defs:J,defaultDef:Y,item:K,rowHeight:fe,labelWidth:X,noBorder:te,onlyMiddleBorder:ne,rowGap:ue,middleBorder:se,rowBottomBorder:$,outerBorder:re,style:de,labelClassName:be,contentClassName:oe,labelStyle:Q,contentStyle:ge,...Te}=n;h=K,k=fe,x=X,R=ue,O=de,g=be,i=oe,m=Q,o=ge,_=te||ne,r=_?"":$||"var(--AListView_border-thin)",E=_?"":re||"var(--AListView_border-thick)",w=te?"":se||"var(--AListView_border-thick)";let He;e[19]!==Y?(He={content:x9,label:m9,...Y},e[19]=Y,e[20]=He):He=e[20],l=He;let xe;e[21]!==l||e[22]!==J?(xe={},rr.keys(J).forEach(Ne=>{const Me=J[Ne],Be={...l,...Me};xe[Ne]=Be}),e[21]=l,e[22]=J,e[23]=xe):xe=e[23],a=xe,t=Wi,P=Te,z=bt.clsx(h0.AListView,Te.className),e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m,e[10]=x,e[11]=w,e[12]=_,e[13]=E,e[14]=R,e[15]=k,e[16]=O,e[17]=P,e[18]=z}else t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9],x=e[10],w=e[11],_=e[12],E=e[13],R=e[14],k=e[15],O=e[16],P=e[17],z=e[18];let H;e[24]!==r||e[25]!==O?(H={...O,borderTop:r},e[24]=r,e[25]=O,e[26]=H):H=e[26];let G;e[27]!==r||e[28]!==i||e[29]!==o||e[30]!==l||e[31]!==a||e[32]!==h||e[33]!==g||e[34]!==m||e[35]!==x||e[36]!==w||e[37]!==_||e[38]!==E||e[39]!==R||e[40]!==k?(G=rr.map(a,(J,Y)=>{const[K]=J,fe={...l,...a[K]},X=Vr.getContent(fe.label,{defKey:K,item:h,def:fe}),te=Vr.getContent(fe.content,{defKey:K,item:h||{[K]:""},def:fe}),ne=Vr.getContent(fe.bold||"label",{defKey:K,item:h,def:fe});return M.jsxs("div",{className:h0.Row,style:{height:fe.fixedHeight?k:void 0,minHeight:fe.fixedHeight?k:void 0,maxHeight:fe.fixedHeight?k:void 0,borderBottom:r,marginTop:Y===0?0:typeof R=="number"?`${R}px`:R},children:[M.jsx("div",{className:bt.clsx(h0.Label,"NoSelect",ne!=="content"&&"Bold",g),style:{width:x,minWidth:x,maxWidth:x,borderLeft:E,paddingLeft:_?0:10,...m},children:M.jsx(nd,{children:X})}),M.jsx("div",{className:bt.clsx(h0.Content,ne!=="label"&&"Bold",i),style:{borderLeft:w,borderRight:E,...o},children:M.jsx(nd,{style:{width:"100%",padding:_?0:10},children:te})})]},K)}),e[27]=r,e[28]=i,e[29]=o,e[30]=l,e[31]=a,e[32]=h,e[33]=g,e[34]=m,e[35]=x,e[36]=w,e[37]=_,e[38]=E,e[39]=R,e[40]=k,e[41]=G):G=e[41];let N;return e[42]!==t||e[43]!==P||e[44]!==z||e[45]!==H||e[46]!==G?(N=M.jsx(t,{...P,className:z,style:H,children:G}),e[42]=t,e[43]=P,e[44]=z,e[45]=H,e[46]=G,e[47]=N):N=e[47],N},m9=n=>n.defKey,x9=n=>{const{defKey:e,item:t}=n;if(t)if(rr.hasKey(t,e)){const r=t[e];return rr.isReactNode(r)?r:null}else return null;else return null},w9="_ALoadingBorder_kwc1g_1",C9="_ProgressBar_kwc1g_9",_9="_IsLoading_kwc1g_15",S9="_Cover_kwc1g_19",ep={ALoadingBorder:w9,ProgressBar:C9,IsLoading:_9,Cover:S9},Am=n=>{const e=Vn.c(15),{isLoading:t}=n,[r,i]=B.useState(!1),o=B.useRef(null);let l,a;e[0]!==t?(l=()=>{t?(i(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>i(!1),300)},a=[t],e[0]=t,e[1]=l,e[2]=a):(l=e[1],a=e[2]),B.useEffect(l,a);let h;e[3]!==r?(h=bt.clsx(ep.ProgressBar,r&&ep.IsLoading),e[3]=r,e[4]=h):h=e[4];let g;e[5]!==h?(g=M.jsx("div",{className:h}),e[5]=h,e[6]=g):g=e[6];let m;e[7]!==t?(m=bt.clsx(ep.Cover,t&&ep.IsLoading),e[7]=t,e[8]=m):m=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x={transition:"all 300ms"},e[9]=x):x=e[9];let w;e[10]!==m?(w=M.jsx("div",{className:m,style:x}),e[10]=m,e[11]=w):w=e[11];let _;return e[12]!==g||e[13]!==w?(_=M.jsxs("div",{className:ep.ALoadingBorder,children:[g,w]}),e[12]=g,e[13]=w,e[14]=_):_=e[14],_},E9="_Container_ez8dc_1",T9="_Option_ez8dc_7",A9="_RadioButton_ez8dc_14",R9="_InnerCircle_ez8dc_24",I9="_isChecked_ez8dc_29",c1={Container:E9,Option:T9,RadioButton:A9,InnerCircle:R9,isChecked:I9},k9=n=>{const{options:e,useSelect:t,selectDisabled:r,radius:i=23,innerRadius:o=i*.6,OptionRenderer:l=W3}=n,[a,h]=Do(t,e[0]);return M.jsx("div",{className:c1.Container,children:e.map((g,m)=>{const x=r==null?void 0:r(g),w=()=>x?null:h==null?void 0:h(g);return M.jsxs(Ml,{className:bt.clsx(c1.Option,"IsClickable"),isDisabled:x,onClick:w,children:[M.jsx(M9,{innerRadius:o,isChecked:a===g,radius:i},m),M.jsx(l,{option:g})]},m)})})},W3=({option:n})=>n,M9=n=>{const e=Vn.c(15),{isChecked:t,radius:r,innerRadius:i}=n;let o;e[0]!==t?(o=bt.clsx(c1.RadioButton,t&&c1.isChecked),e[0]=t,e[1]=o):o=e[1];let l;e[2]!==r?(l={width:r,height:r},e[2]=r,e[3]=l):l=e[3];let a;e[4]!==t?(a=bt.clsx(c1.InnerCircle,t&&c1.isChecked),e[4]=t,e[5]=a):a=e[5];let h;e[6]!==i?(h={width:i,height:i},e[6]=i,e[7]=h):h=e[7];let g;e[8]!==a||e[9]!==h?(g=M.jsx(Wi,{className:a,style:h}),e[8]=a,e[9]=h,e[10]=g):g=e[10];let m;return e[11]!==o||e[12]!==l||e[13]!==g?(m=M.jsx(Wi,{className:o,style:l,children:g}),e[11]=o,e[12]=l,e[13]=g,e[14]=m):m=e[14],m},L9="_AMultiSelect_19uuu_1",O9="_Arrow_19uuu_15",P9="_Primary_19uuu_24",D9="_UnAvailable_19uuu_35",N9="_IsOpen_19uuu_35",F9="_Secondary_19uuu_42",B9="_Placeholder_19uuu_58",z9="_ValuesContainer_19uuu_63",H9="_Values_19uuu_63",W9="_Options_19uuu_82",U9="_Option_19uuu_82",G9="_Selected_19uuu_124",Y9="_CheckBox_19uuu_131",sf={AMultiSelect:L9,Arrow:O9,Primary:P9,UnAvailable:D9,IsOpen:N9,Secondary:F9,Placeholder:B9,ValuesContainer:z9,Values:H9,Options:W9,Option:U9,Selected:G9,CheckBox:Y9},V9=n=>{const{options:e,useSelect:t,type:r="Primary",placeholder:i=Nr.AMultiSelect["Select(Placeholder)"],onClose:o,SelectedRenderer:l=X9,OptionRenderer:a=K9,minShowRows:h=2,maxShowRows:g=6,arrowProps:m,isAutoWidth:x=!1,...w}=n,_=B.useRef(null),E=B.useMemo(()=>w.abaseRef??_,[w.abaseRef]),R=B.useRef(null),[k,O]=Do(t,[]),[P,z]=B.useState(void 0),H=B.useRef(e),G=B.useRef(null),[N,J]=B.useState(!1),[Y,K]=B.useState(!1),fe=B.useCallback(()=>K(!1),[]),X=B.useCallback(()=>{w.isDisabled||w.isLoading||e.length<1||(K(!0),setTimeout(()=>J(!0),0),setTimeout(()=>lb(R,E,e,h,g),0))},[E,w.isDisabled,w.isLoading,e,h,g]),te=B.useCallback(()=>{J(!1),K(!0),o==null||o()},[o]),ne=B.useCallback(oe=>{var Q;N?te():X(),setTimeout(()=>lb(R,E,e,h,g),0),(Q=w.onClick)==null||Q.call(w,oe)},[E,w,e,N,te,X,h,g]),ue=B.useCallback(()=>{lb(R,E,e,h,g)},[E,e,h,g]);B.useEffect(()=>{if(!N||!E.current)return;const oe=E.current;let Q=oe.parentElement;for(;Q;)Q.addEventListener("scroll",ue),Q=Q.parentElement;return()=>{let ge=oe.parentElement;for(;ge;)ge.removeEventListener("scroll",ue),ge=ge.parentElement}},[E,N,ue]),B.useEffect(()=>{if(N)return window.addEventListener("resize",ue),()=>window.removeEventListener("resize",ue)},[N,ue]);const se=B.useCallback(oe=>{oe[0].intersectionRatio===0&&te()},[te]);B.useEffect(()=>{if(!N)return;const oe=new IntersectionObserver(se,{threshold:0});return E.current&&oe.observe(E.current),()=>oe.disconnect()},[E,N,se]);const $=B.useCallback(oe=>{const Q=oe.target,ge=E.current,Te=R.current;!ge||!Q||!Te||!ge.contains(Q)&&!Te.contains(Q)&&te()},[E,te]),re=B.useMemo(()=>w.isDisabled||w.isLoading||e.length<1,[w.isDisabled,w.isLoading,e]);B.useEffect(()=>{if(N)return setTimeout(()=>document.addEventListener("mousedown",$),0),()=>document.removeEventListener("mousedown",$)},[N,$]);const de=B.useCallback((oe,Q)=>{oe.stopPropagation(),oe.preventDefault();let ge=[...k];ge.includes(Q)?ge=ge.filter(Te=>Te!==Q):ge.push(Q),O==null||O(ge)},[k,O]),be=B.useCallback(()=>{if(!x||!E.current)return;const oe=kg.calculateOptimalSelectWidth({elementRef:E,options:e,selectedOptions:k,placeholder:i,optionRenderer:Q=>a({option:Q}),type:r,isMulti:!0});z(oe)},[x,E,e,k,i,a,r]);return B.useEffect(()=>x?((e!==H.current||P===void 0)&&(G.current!==null&&cancelAnimationFrame(G.current),G.current=requestAnimationFrame(()=>{be(),G.current=null,H.current=[...e]})),()=>{G.current!==null&&(cancelAnimationFrame(G.current),G.current=null)}):void 0,[x,e,be,P]),B.useEffect(()=>()=>{typeof kg.clearCache=="function"&&kg.clearCache()},[]),M.jsxs(M.Fragment,{children:[M.jsxs(Wi,{...w,abaseRef:E,isDisabled:w.isDisabled||e.length<1,className:bt.clsx(w.className,sf.AMultiSelect,"NoSelect",N&&sf.IsOpen,re&&sf.UnAvailable,sf[r]),style:{padding:r==="Secondary"?"8px 8px 8px 0":0,width:P?`${P}px`:x?"100px":void 0,...w.style},onClick:ne,children:[M.jsx("div",{className:sf.ValuesContainer,children:M.jsx("div",{className:bt.clsx(sf.Values,k.length<1&&sf.Placeholder),children:M.jsx(l,{OptionRenderer:a,placeholder:i,selectedOptions:k})})}),M.jsx("div",{...m,className:bt.clsx(sf.Arrow,m==null?void 0:m.className),children:M.jsx(uo,{icon:"TriangleDown",style:{transform:N?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(N||Y)&&su.createPortal(M.jsx("div",{ref:R,className:bt.clsx(sf.Options,sf[r]),style:{opacity:+N,visibility:N?"visible":"hidden",pointerEvents:N?void 0:"none",width:P?`${P}px`:x?"100px":void 0,borderRadius:E.current?window.getComputedStyle(E.current).borderRadius:void 0},onTransitionEnd:fe,children:e.map((oe,Q)=>{var Te;const ge=k.includes(oe);return M.jsxs("div",{className:bt.clsx(sf.Option,ge&&sf.Selected,"NoSelect",sf[r]),style:{height:(Te=E.current)==null?void 0:Te.getBoundingClientRect().height},onClick:He=>de(He,oe),children:[M.jsx(w1,{className:sf.CheckBox,useCheck:[+ge,void 0]}),M.jsx(a,{option:oe})]},Q)})}),document.body)]})};function lb(n,e,t,r,i){if(!e.current||!n.current||!t||t.length<1)return;const o=e.current.getBoundingClientRect(),l=Z9(o,t.length,r,i),a=window.getComputedStyle(e.current);n.current.style.top=`calc(${l.top??0}px - ${a.borderTopWidth})`,n.current.style.bottom=l.bottom?l.bottom+"px":"",n.current.style.left=l.left+"px",n.current.style.width||(n.current.style.minWidth=l.minWidth+"px"),n.current.style.minHeight=l.minHeight+"px",n.current.style.maxHeight=l.maxHeight+"px",n.current.style.visibility="visible"}function Z9(n,e,t,r){const i={top:n.bottom,bottom:void 0,left:n.left,height:"fit-content",minWidth:n.width,minHeight:n.height*Math.min(t,e),maxHeight:n.height*r>window.innerHeight-n.bottom-10?window.innerHeight-n.bottom-10:n.height*r};return window.innerHeight-n.bottom-10<i.height&&(window.innerHeight-n.bottom-10<i.minHeight?(i.top=n.top-e*n.height,i.top<0&&(i.top=10,i.minHeight=n.top-10,i.height=n.top-10)):i.height=window.innerHeight-n.bottom-10),i}const X9=n=>{const e=Vn.c(3),{OptionRenderer:t,selectedOptions:r,placeholder:i}=n;if(r.length<1)return i;if(r.length===1){let o;return e[0]!==t||e[1]!==r[0]?(o=M.jsx(t,{option:r[0]}),e[0]=t,e[1]=r[0],e[2]=o):o=e[2],o}else return`${r.length} selected`},K9=n=>{const{option:e}=n;return rr.isReactNode(e)?e:null},J9="_Container_10ion_1",Q9="_Steps_10ion_9",q9="_Step_10ion_9",j9="_OutCircle_10ion_26",$9="_IsOver_10ion_37",eI="_InCircle_10ion_41",tI="_Line_10ion_54",nI="_Left_10ion_66",rI="_Right_10ion_69",iI="_ContentContainer_10ion_73",oI="_Content_10ion_73",ku={Container:J9,Steps:Q9,Step:q9,OutCircle:j9,IsOver:$9,InCircle:eI,Line:tI,Left:nI,Right:rI,ContentContainer:iI,Content:oI},lI=n=>{const e=Vn.c(26),{useSelect:t,steps:r,StepRenderer:i,ContentRenderer:o}=n,l=i===void 0?q2:i,a=o===void 0?q2:o;if(r.length===0)throw new Error("steps should have at least one element");const h=B.useRef(null),[g,m]=Do(t,r[0]);let x;e[0]!==m?(x=G=>m==null?void 0:m(G),e[0]=m,e[1]=x):x=e[1];const w=x,_=r.indexOf(g);let E;e[2]!==_||e[3]!==w||e[4]!==r[0]?(E=()=>{_<0&&w(r[0])},e[2]=_,e[3]=w,e[4]=r[0],e[5]=E):E=e[5];let R;e[6]!==_||e[7]!==w||e[8]!==r?(R=[_,r,w],e[6]=_,e[7]=w,e[8]=r,e[9]=R):R=e[9],B.useEffect(E,R);let k;e[10]!==l||e[11]!==_||e[12]!==w||e[13]!==r?(k=r.map((G,N)=>{const J=r.indexOf(G),Y=_>=N,K=_>N;return M.jsxs("div",{className:ku.Step,children:[N!==0&&M.jsx("div",{className:bt.clsx(ku.Line,ku.Left,Y&&ku.IsOver)}),N!==r.length-1&&M.jsx("div",{className:bt.clsx(ku.Line,ku.Right,K&&ku.IsOver)}),M.jsx(Ic,{className:bt.clsx(ku.OutCircle,Y&&ku.IsOver),type:"Raw",onClick:()=>w(G),children:M.jsx("div",{className:bt.clsx(ku.InCircle,Y&&ku.IsOver)})}),M.jsx(l,{step:G,stepIdx:J})]},N)}),e[10]=l,e[11]=_,e[12]=w,e[13]=r,e[14]=k):k=e[14];let O;e[15]!==k?(O=M.jsx("div",{className:ku.Steps,children:k}),e[15]=k,e[16]=O):O=e[16];let P;e[17]!==a||e[18]!==_||e[19]!==r?(P=r.map((G,N)=>{const J=r.indexOf(G);return M.jsx("div",{className:ku.Content,style:N===0?{marginLeft:`${_*-100}%`}:{},children:M.jsx(a,{step:G,stepIdx:J})},N)}),e[17]=a,e[18]=_,e[19]=r,e[20]=P):P=e[20];let z;e[21]!==P?(z=M.jsx("div",{ref:h,className:ku.ContentContainer,children:P}),e[21]=P,e[22]=z):z=e[22];let H;return e[23]!==O||e[24]!==z?(H=M.jsxs("div",{className:ku.Container,children:[O,z]}),e[23]=O,e[24]=z,e[25]=H):H=e[25],H},q2=n=>{const{step:e}=n;return typeof e=="object"?rr.stringify(e):e},sI="_ATab_9eg6z_1",aI="_Addon_9eg6z_9",cI="_Option_9eg6z_14",uI="_Underline_9eg6z_26",fI="_IsSelected_9eg6z_26",hI="_IndicatorTrack_9eg6z_37",dI="_Indicator_9eg6z_37",gI="_Primary_9eg6z_54",pI="_Secondary_9eg6z_57",vI="_IsDisabled_9eg6z_63",bI="_Tertiary_9eg6z_77",yI="_Quaternary_9eg6z_101",Xh={ATab:sI,Addon:aI,Option:cI,Underline:uI,IsSelected:fI,IndicatorTrack:hI,Indicator:dI,Primary:gI,Secondary:pI,IsDisabled:vI,Tertiary:bI,Quaternary:yI},mI=["Primary","Secondary","Tertiary","Quaternary"],U3=n=>{const{options:e,useSelect:t,selectDisabled:r,type:i="Primary",tabProps:o,optionProps:l,optionWidth:a,OptionRenderer:h=xI,RightAddon:g,LeftAddon:m,color:x,selectedColor:w,underline:_,indicatorProps:E,indicatorTrackProps:R,height:k=40}=n;if(e.length===0)throw new Error("options should have at least one element");const O=B.useMemo(()=>e.findIndex(Me=>!(r!=null&&r(Me))),[e,r]),P=i==="Tertiary",z=i==="Secondary",H=P?k*.1:0,G=z?8:0,N=B.useMemo(()=>H+G,[H,G]),J=B.useMemo(()=>(G-H)/e.length,[e.length,H,G]),[Y,K]=Do(t,e[O]),fe=B.useRef([]),X=B.useCallback(Me=>K==null?void 0:K(Me),[K]),te=B.useMemo(()=>typeof a=="number"?a+"px":a,[a]),ne=B.useMemo(()=>e.indexOf(Y),[e,Y]),ue=B.useMemo(()=>`calc(${100/e.length}% + ${J}px)`,[e.length,J]),se=B.useMemo(()=>te||`calc(${ue} - ${N}px)`,[ue,N,te]),[$,re]=B.useState(0),[de,be]=B.useState(0),[oe,Q]=B.useState(se),ge=B.useRef(null),Te=B.useRef(null),He=KC(Te,ge),xe=B.useMemo(()=>{let Me;switch(te){case void 0:Me=`calc(${ue} * ${ne})`;break;case"fit-content":Me=`calc(${$}px)`;break;default:Me=`calc((${te} + ${N}px) * ${ne})`;break}return Me},[te,ue,ne,$,N]),Ne=B.useMemo(()=>{switch(te){case void 0:return;case"fit-content":return`calc(${de}px)`;default:return`calc((${te} + ${N}px - ${J}px) * ${e.length})`}},[te,J,N,e,de]);return B.useEffect(()=>{var Be,ke;if(e.includes(Y)||K==null||K(e[O]),te!=="fit-content"){Q(se);return}let Me=0;fe.current.forEach((Ie,ze)=>{ze<ne&&Ie.current&&(Me+=Ie.current.offsetWidth+N)}),re(Me),Q(`calc(${((ke=(Be=fe.current[ne])==null?void 0:Be.current)==null?void 0:ke.offsetWidth)||0}px)`),be(fe.current.reduce((Ie,ze)=>{var Ke;return Ie+((((Ke=ze.current)==null?void 0:Ke.offsetWidth)||0)+N-J)},0))},[te,fe,e,Y,K,O,J,N,ne,se]),M.jsxs("div",{ref:ge,...o,className:bt.clsx(Xh.ATab,"Headline2",Xh[i],o==null?void 0:o.className),style:{minHeight:k,height:k,maxHeight:k},children:[m&&M.jsx("div",{ref:Te,className:Xh.Addon,children:m}),M.jsx("div",{...E,className:bt.clsx(Xh.Indicator,E==null?void 0:E.className),style:{minWidth:oe,left:xe,marginLeft:H,transform:`translate(${He??0}px, ${P?"-50%":"0"})`,height:P?k-H*2:void 0,...E==null?void 0:E.style}}),M.jsx("div",{...R,className:bt.clsx(Xh.IndicatorTrack,R==null?void 0:R.className),style:{width:Ne,marginLeft:P?He:0,height:k,...R==null?void 0:R.style}}),e.map((Me,Be)=>{const ke=r==null?void 0:r(Me);return fe.current[Be]||(fe.current[Be]=B.createRef()),M.jsx(Wi,{abaseRef:fe.current[Be],...l,isDisabled:ke,className:bt.clsx(Xh.Option,ke&&Xh.IsDiabled,Me===Y&&Xh.IsSelected,"IsClickable",_&&Xh.Underline,l==null?void 0:l.className),style:{minWidth:se,maxWidth:se,marginLeft:H,marginRight:G,"--color":Me===Y&&w||x,height:k,...l==null?void 0:l.style},onClick:Ie=>{!ke&&X(Me),l&&l.onClick&&l.onClick(Ie)},children:M.jsx(h,{option:Me})},Be)}),M.jsx(cs,{w:H}),g&&M.jsxs(M.Fragment,{children:[M.jsx(zg,{}),M.jsx("div",{className:Xh.Addon,children:g})]})]})},xI=n=>{const{option:e}=n;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=rr.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function G3(...n){const e=Vn.c(3),t=n,r=B.useRef(!1);let i,o;e[0]!==t?(i=()=>{r.current||(r.current=!0,t.forEach(wI))},o=[t],e[0]=t,e[1]=i,e[2]=o):(i=e[1],o=e[2]),B.useEffect(i,o)}function wI(n){return n()}const Y3={String:(n,e,t,r)=>{const{value:i}=r;if(i===void 0)return!1;if(t==="")return rr.keys(e).some(m=>{const x=e[m],w=Vr.getContent(x.asText,{defKey:m,def:x,item:n});if(w!==void 0)return w.toString().toLowerCase().includes(i.toLowerCase());const _=Vr.getContent(x.content,{defKey:m,def:x,item:n});return["string","number"].includes(typeof _)&&_!==void 0&&_!==null?_.toString().toLowerCase().includes(i.toLowerCase()):!1});const o=rr.keys(e),l=t;if(!o.includes(l))return!1;const a=e[l],h=Vr.getContent(a.asText,{defKey:l,def:a,item:n});if(h!==void 0)return h.toString().toLowerCase().includes(i.toLowerCase());const g=Vr.getContent(a.content,{defKey:l,def:a,item:n});return["string","number"].includes(typeof g)&&g!==void 0&&g!==null?g.toString().toLowerCase().includes(i.toLowerCase()):!1},Select:(n,e,t,r)=>{const{value:i}=r;if(i==null)return!1;const o=rr.keys(e),l=t;if(!o.includes(l))return!1;const a=e[l],h=Vr.getContent(a.asText,{defKey:l,def:a,item:n});if(h!==void 0)return i.toString().toLowerCase()===h.toString().toLowerCase();const g=Vr.getContent(a.content,{defKey:l,def:a,item:n});return["string","number"].includes(typeof g)&&g!==void 0&&g!==null?i.toString().toLowerCase()===g.toString().toLowerCase():!1},Date:(n,e,t,r)=>{const{value:i}=r;if(i===void 0)return!1;const o=rr.keys(e),l=t;if(!o.includes(l))return!1;const a=e[l],h=Vr.getContent(a.asText,{defKey:l,def:a,item:n});if(h!==void 0){const m=Yn.toDate(h.toString());return m&&Yn.eq(m,i)}const g=Vr.getContent(a.content,{defKey:l,def:a,item:n});if(["string","number"].includes(typeof g)&&g!==void 0&&g!==null){const m=Yn.toDate(g.toString());return m&&Yn.eq(m,i)}return!1},DateRange:(n,e,t,r)=>{const{value:i}=r;if(i===void 0)return!1;const o=rr.keys(e),l=t;if(!o.includes(l))return!1;const a=e[l],h=Vr.getContent(a.asText,{defKey:l,def:a,item:n});if(h!==void 0){const m=Yn.toDate(h.toString());return m&&Yn.be(i.sDate,m,i.eDate)}const g=Vr.getContent(a.content,{defKey:l,def:a,item:n});if(["string","number"].includes(typeof g)&&g!==void 0&&g!==null){const m=Yn.toDate(g.toString());return m&&Yn.be(i.sDate,m,i.eDate)}return!1}},CI=(n,e,t)=>{let r=n;return rr.keys(t).forEach(o=>{const l=t[o];l.value===void 0||l.value===null||l.value===""||(r=r.filter(a=>{var h;return(h=l.predicate??Y3[l.type])==null?void 0:h(a,e,o,l)}))}),r},_I=(n,e,t)=>{if(!t)return n;const r=t.defKey,i=e[r];if(r===void 0)return n;const o=t.sortF??((l,a)=>{const h=Vr.getContent(i.content,{defKey:r,def:i,item:l}),g=Vr.getContent(i.content,{defKey:r,def:i,item:a});return typeof h=="string"&&typeof g=="string"?h<g?-1:h>g?1:0:typeof h=="number"&&typeof g=="number"?h-g:typeof h=="string"&&typeof g=="number"?-1:typeof h=="number"&&typeof g=="string"||h===void 0&&g!==void 0?1:h!==void 0&&g===void 0?-1:0});return typeof o=="function"&&o.length>=3?n.slice().sort((l,a)=>o(l,a,t.isAsc)):n.slice().sort((l,a)=>{const h=o(l,a);return t.isAsc?h:-h})},SI=(n,e,t)=>n.slice((e-1)*t,e*t),V3=(n,e)=>{const t=Math.max(Math.ceil(n/e),1);return Array.from({length:t},(r,i)=>i+1)},EI=(n,e,t,r)=>{const i=V3(e,t),o=Math.floor((n-1)/r),l=o*r+1,a=(o+1)*r,h=i.slice(l-1,a);return{pages:i,rangedPages:h}},TI=(n,e,t)=>{const r=[],i=Object.keys(t),o=[];i.forEach(w=>{const _=t[w],E=Vr.getContent(_.hContent,{defKey:w,def:_});if(E!==void 0){if(typeof E=="string"){o.push(E);return}else if(typeof E=="number"){o.push(E.toString());return}}const R=Vr.getContent(_.name,{defKey:w,def:_});if(R!==void 0&&typeof R=="string"){o.push(R);return}o.push(w)});const l=o.map(w=>`"${w.replaceAll('"','""')}"`);r.push(l.join(",")),e.forEach(w=>{const _=[];i.forEach(R=>{const k=t[R],O=Vr.getContent(k.content,{defKey:R,def:k,item:w});if(O!==void 0){if(typeof O=="string"){_.push(O);return}else if(typeof O=="number"){_.push(O.toString());return}}const P=w[R];typeof P=="string"?_.push(P):typeof P=="number"?_.push(P.toString()):_.push("")});const E=_.map(R=>`"${R.replaceAll('"','""')}"`);r.push(E.join(","))});const a=`${n}.csv`,h="\uFEFF"+r.join(`
|
|
286
286
|
`),g=new Blob([h],{type:"text/csv;charset=UTF-8"}),m=URL.createObjectURL(g),x=document.createElement("a");x.href=m,x.download=a,x.click(),URL.revokeObjectURL(m)},AI=n=>{const e=rr.keys(n);if(e.length!==1)return;const t=e[0];if(t!=="")return;const r=n[t];if(r.type==="String")return r.value},RI=n=>{const e=Object.entries(n);let t={};return e.forEach(([r,i])=>{!i||i.value===void 0||i.value===null||i.value===""||(i.type==="DateRange"?(t[i.sFilterKey]=i.value.sDate,t[i.eFilterKey]=i.value.eDate):t[i.filterKey??r]=i.value)}),t},II=n=>{const e=rr.keys(n).filter(i=>i!=="");if(e.length!==1)return;const t=e[0],r=n[t];return!r||r.value===void 0||r.value===null||r.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:r.value}},_d={applyFilteration:CI,applySortation:_I,applyPagination:SI,getPages:V3,getRangedPages:EI,downloadCsv:TI,getSingleFilterValue:AI,getMultiFilterValues:RI,getSelectFilterValue:II},kI="_ATable_12zow_1",MI={ATable:kI};function Z3(n,e,t,r){const i=Vn.c(6);let o,l;i[0]!==e||i[1]!==n||i[2]!==t||i[3]!==r?(o=()=>{if(n)return n.addEventListener(e,t,r),()=>{n.removeEventListener(e,t,r)}},l=[n,e,t,r],i[0]=e,i[1]=n,i[2]=t,i[3]=r,i[4]=o,i[5]=l):(o=i[4],l=i[5]),B.useEffect(o,l)}const LI="_BodyHeader_ys4y0_1",OI="_TRow_ys4y0_7",PI="_OverflowSpace_ys4y0_11",DI="_BodyBody_ys4y0_16",NI="_IsSelected_ys4y0_35",FI="_IsSelectable_ys4y0_39",BI="_IsRowMarked_ys4y0_47",zI="_TH_ys4y0_52",HI="_TD_ys4y0_57",WI="_IsMarked_ys4y0_57",UI="_Resizer_ys4y0_76",GI="_IsMoving_ys4y0_88",YI="_IsResizable_ys4y0_91",VI="_ResizerCenter_ys4y0_94",ZI="_ResizerOut_ys4y0_100",XI="_ResizerIn_ys4y0_104",KI="_IsClicked_ys4y0_139",JI="_NoItems_ys4y0_146",QI="_Content_ys4y0_152",Zl={BodyHeader:LI,TRow:OI,OverflowSpace:PI,BodyBody:DI,IsSelected:NI,IsSelectable:FI,IsRowMarked:BI,TH:zI,TD:HI,IsMarked:WI,Resizer:UI,IsMoving:GI,IsResizable:YI,ResizerCenter:VI,ResizerOut:ZI,ResizerIn:XI,IsClicked:KI,NoItems:JI,Content:QI},jd=25,sb=50,qI=n=>{const e=Vn.c(119),{defs:t,isEqual:r,rProps:i,useSelect:o,isTableDisabled:l,isSelectMulti:a,selectDisabled:h,appliedFilteration:g,useSortation:m,pagination:x,pagedItems:w,noMarking:_,noDefHeader:E,isLoading:R,onScrollToSelectedReady:k,showRows:O,RowRenderer:P,isRowRendered:z,rowHeight:H,resources:G}=n,N=P===void 0?ek:P;let J;e[0]!==o?(J=o??[],e[0]=o,e[1]=J):J=e[1];const[Y,K]=J;let fe;e[2]!==r||e[3]!==a||e[4]!==l||e[5]!==h||e[6]!==Y||e[7]!==K?(fe=Se=>{l||!K||!Y||h!=null&&h(Se)||(a?Y.some(rt=>r(rt,Se))?K(Y.filter(rt=>!r(rt,Se))):K([...Y,Se]):K([Se]))},e[2]=r,e[3]=a,e[4]=l,e[5]=h,e[6]=Y,e[7]=K,e[8]=fe):fe=e[8];const X=fe;let te,ne;e[9]!==a||e[10]!==Y||e[11]!==K?(te=()=>{a||!Y||!K||Y.length>1&&K([Y[Y.length-1]])},ne=[Y,K,a],e[9]=a,e[10]=Y,e[11]=K,e[12]=te,e[13]=ne):(te=e[12],ne=e[13]),B.useEffect(te,ne);let ue,se;e[14]!==h||e[15]!==Y||e[16]!==K?(ue=()=>{if(!Y||!K)return;Y.filter(rt=>h==null?void 0:h(rt)).length>0&&K(Y.filter(rt=>!(h!=null&&h(rt))))},se=[Y,K,h],e[14]=h,e[15]=Y,e[16]=K,e[17]=ue,e[18]=se):(ue=e[17],se=e[18]),B.useEffect(ue,se);const[$,re]=m;let de;e[19]!==re||e[20]!==$?(de=(Se,rt)=>{re&&(($==null?void 0:$.defKey)===Se?$.isAsc===!0?re({defKey:Se,isAsc:!1,sortF:rt}):$.isAsc===!1?re(void 0):re({defKey:Se,isAsc:!0,sortF:rt}):re({defKey:Se,isAsc:!0,sortF:rt}))},e[19]=re,e[20]=$,e[21]=de):de=e[21];const be=de;let oe;e[22]===Symbol.for("react.memo_cache_sentinel")?(oe={elem:null,row:null},e[22]=oe):oe=e[22];const[Q,ge]=B.useState(oe),Te=B.useRef(null),He=B.useRef(null);let xe;e[23]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>ge({elem:Te.current,row:He.current}),e[23]=xe):xe=e[23];const Ne=xe;let Me;e[24]===Symbol.for("react.memo_cache_sentinel")?(Me=()=>Ne(),e[24]=Me):Me=e[24];let Be;e[25]!==w.length?(Be=[w.length,Ne],e[25]=w.length,e[26]=Be):Be=e[26],B.useEffect(Me,Be),Z3(window,"resize",Ne);const[ke,Ie]=B.useState(H);let ze;e[27]!==Q?(ze=()=>{const{row:Se}=Q;Se!=null&&Ie(Se.clientHeight)},e[27]=Q,e[28]=ze):ze=e[28];let Ke;e[29]!==Q||e[30]!==ke?(Ke=[Q,ke],e[29]=Q,e[30]=ke,e[31]=Ke):Ke=e[31],B.useEffect(ze,Ke);let Oe;e:{const{elem:Se}=Q;if(!Se){Oe=0;break e}Oe=Math.floor(Se.clientHeight/ke)}const ht=Oe;let $e;O?$e=O:w.length<=ht?$e=ht:$e=w.length;const it=$e;let et;O===void 0?et=void 0:et=O*ke;const st=et,dt=st;let Mt;e:{const{elem:Se}=Q;if(!Se){Mt=!1;break e}let rt;e[32]!==Se?(rt=Se.getBoundingClientRect(),e[32]=Se,e[33]=rt):rt=e[33],Mt=rt.height/ke<w.length}const ot=Mt,[nt,Ot]=B.useState();let Zt;const{elem:Rt}=Q;!nt||!Rt?Zt="100%":Zt=Rt.clientHeight+(z?0:50);const tn=Zt,Ft=B.useRef(null);let yn;e[34]===Symbol.for("react.memo_cache_sentinel")?(yn={},e[34]=yn):yn=e[34];const[dn,nn]=B.useState(yn);let Bt;e[35]===Symbol.for("react.memo_cache_sentinel")?(Bt={x:0,y:0},e[35]=Bt):Bt=e[35];const on=B.useRef(Bt);let Nn;e[36]===Symbol.for("react.memo_cache_sentinel")?(Nn={},e[36]=Nn):Nn=e[36];const Rn=B.useRef(Nn);let gn;e[37]!==dn?(gn=rr.keys(dn),e[37]=dn,e[38]=gn):gn=e[38];const Ue=gn;let Ce;e[39]!==t?(Ce=(Se,rt)=>{const Et=Ft.current;if(!Et)return;const wn=[];Et.childNodes.forEach(gr=>{gr.classList.contains(Zl.TH)&&wn.push(gr)});const Tn={};rr.keys(t).forEach((gr,Cn)=>{const qn=wn[Cn];if(!qn)return;const _n=qn.getBoundingClientRect().width;Tn[gr]=_n}),Rn.current=Tn,Ot(rt),on.current={x:Se.clientX,y:Se.clientY};const Zn=gr=>{if(!Ft.current)return;const qn=gr.clientX-on.current.x,_n=$I(t,rt,Rn.current,qn);nn(_n)};document.addEventListener("mousemove",Zn);const ir=()=>{Ot(void 0),document.removeEventListener("mousemove",Zn),document.removeEventListener("mouseup",ir)};document.addEventListener("mouseup",ir)},e[39]=t,e[40]=Ce):Ce=e[40];const Ze=Ce;let wt;e[41]===Symbol.for("react.memo_cache_sentinel")?(wt=()=>{Ot(void 0),nn({})},e[41]=wt):wt=e[41];const Kt=wt;let Gt;e:{if(Ue.length===0){let rt;if(e[42]!==t){rt={};const Et=rr.keys(t);for(let wn=0;wn<Et.length;wn++){const Tn=Et[wn],Zn=t[Tn],ir=Vr.getContent(Zn.colSpan,{defKey:Tn,def:Zn}),gr=Zn.width??80,Cn=Zn.minWidth??jd,qn=Zn.maxWidth,_n={width:gr,minWidth:Cn,maxWidth:qn,flexGrow:ir??1};if(rt[Tn]=_n,ir!==void 0){for(let dr=1;dr<Math.min(ir,Et.length-wn);dr++){const li=t[Et[wn+dr]],wo=li.width??80,fo=li.minWidth??jd,Br=li.maxWidth;_n.width=_n.width+wo,_n.minWidth=_n.minWidth+fo,_n.maxWidth!==void 0&&(Br!==void 0?_n.maxWidth=_n.maxWidth+Br:_n.maxWidth=void 0)}wn=wn+(ir-1)}}e[42]=t,e[43]=rt}else rt=e[43];Gt=rt;break e}let Se;if(e[44]!==t||e[45]!==dn){Se={};const rt=rr.keys(t);for(let Et=0;Et<rt.length;Et++){const wn=rt[Et],Tn=t[wn],Zn=dn[wn],ir=Vr.getContent(Tn.colSpan,{defKey:wn,def:Tn}),gr=Tn.minWidth??jd,Cn=Tn.maxWidth,qn={width:Zn,minWidth:gr,maxWidth:Cn,flexGrow:ir??1};if(Se[wn]=qn,ir!==void 0){for(let _n=1;_n<Math.min(ir,rt.length-Et);_n++){const dr=t[rt[Et+_n]],li=dn[rt[Et+_n]],wo=dr.minWidth??jd,fo=dr.maxWidth;qn.width=qn.width+li,qn.minWidth=qn.minWidth+wo,qn.maxWidth!==void 0&&(fo!==void 0?qn.maxWidth=qn.maxWidth+fo:qn.maxWidth=void 0)}Et=Et+(ir-1)}}e[44]=t,e[45]=dn,e[46]=Se}else Se=e[46];Gt=Se}const pn=Gt,un=B.useRef(null);let ft;e[47]!==g?(ft=_d.getSingleFilterValue(g),e[47]=g,e[48]=ft):ft=e[48];const kt=ft;let Ct;e[49]===Symbol.for("react.memo_cache_sentinel")?(Ct=()=>{Te.current&&Te.current.scrollTo({top:0})},e[49]=Ct):Ct=e[49];let zt;e[50]!==x.page?(zt=[x.page],e[50]=x.page,e[51]=zt):zt=e[51],B.useEffect(Ct,zt);let ln;e[52]!==Y?(ln=Se=>{const rt=Se===void 0?"center":Se;Y&&Y.length>0&&requestAnimationFrame(()=>{var Et;return(Et=He.current)==null?void 0:Et.scrollIntoView({behavior:"auto",block:rt})})},e[52]=Y,e[53]=ln):ln=e[53];const mt=ln;let Lt,en;e[54]!==k||e[55]!==mt?(Lt=()=>{k==null||k(mt)},en=[k,mt],e[54]=k,e[55]=mt,e[56]=Lt,e[57]=en):(Lt=e[56],en=e[57]),B.useEffect(Lt,en);let bn;e[58]!==R?(bn=M.jsx(Am,{isLoading:R}),e[58]=R,e[59]=bn):bn=e[59];let xn;e[60]!==nt?(xn=bt.clsx(Zl.BodyHeader,nt!==void 0&&Zl.IsClicked),e[60]=nt,e[61]=xn):xn=e[61];const Vt=E||z?"none":"flex";let mn;e[62]!==Vt?(mn={display:Vt},e[62]=Vt,e[63]=mn):mn=e[63];let Dn;e[64]===Symbol.for("react.memo_cache_sentinel")?(Dn={minHeight:sb,maxHeight:sb},e[64]=Dn):Dn=e[64];let cr;e[65]!==nt||e[66]!==t||e[67]!==dn||e[68]!==tn||e[69]!==Ze||e[70]!==be||e[71]!==($==null?void 0:$.defKey)||e[72]!==($==null?void 0:$.isAsc)||e[73]!==Ue?(cr=rr.map(t,(Se,rt)=>{const[Et]=Se,wn=t[Et],Tn=Vr.getContent(wn.hContent,{defKey:Et,def:wn}),Zn=wn.name,ir=rt===rr.keys(t).length-1,gr=wn.width??80,Cn=wn.minWidth??jd,qn=wn.maxWidth,_n={width:gr,minWidth:Cn,maxWidth:qn,justifyContent:Vr.getContent(wn.hAlign,{defKey:Et,def:wn})??"flex-start",...Vr.getContent(wn.hStyle,{defKey:Et,def:wn})};Ue.includes(Et)&&(_n.width=dn[Et]);const dr=wn.isSortable,li=($==null?void 0:$.defKey)===Et,wo=$==null?void 0:$.isAsc;return M.jsxs(B.Fragment,{children:[M.jsxs("div",{className:bt.clsx(Zl.TH,"Label1",dr?"IsClickable":"NoSelect"),style:_n,onClick:()=>dr&&be(Et,wn.sortF),children:[M.jsx(nd,{children:Tn??Zn,className:Zl.Content}),dr&&M.jsx(uo,{icon:li?wo?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!ir&&M.jsxs("div",{className:bt.sclsx(Zl,"Resizer","IsResizable","NoSelect",nt!==void 0&&"IsMoving"),onDoubleClick:Kt,onMouseDown:fo=>Ze(fo,Et),children:[M.jsx("div",{className:Zl.ResizerOut}),M.jsx("div",{className:Zl.ResizerIn}),M.jsx("div",{className:Zl.ResizerCenter,style:{height:tn}}),M.jsx("div",{className:Zl.ResizerIn}),M.jsx("div",{className:Zl.ResizerOut})]}),ir&&M.jsx(cs,{className:Zl.OverflowSpace,h:sb,style:{color:_n.color,backgroundColor:_n.backgroundColor,transition:_n.transition},w:"var(--Scrollbar-width)"})]},Et)}),e[65]=nt,e[66]=t,e[67]=dn,e[68]=tn,e[69]=Ze,e[70]=be,e[71]=$==null?void 0:$.defKey,e[72]=$==null?void 0:$.isAsc,e[73]=Ue,e[74]=cr):cr=e[74];let En;e[75]!==cr?(En=M.jsx("div",{ref:Ft,className:Zl.TRow,style:Dn,children:cr}),e[75]=cr,e[76]=En):En=e[76];let Ln;e[77]!==xn||e[78]!==mn||e[79]!==En?(Ln=M.jsx("div",{ref:un,className:xn,style:mn,children:En}),e[77]=xn,e[78]=mn,e[79]=En,e[80]=Ln):Ln=e[80];let je;e[81]!==nt?(je=bt.clsx(Zl.BodyBody,nt!==void 0&&Zl.IsClicked),e[81]=nt,e[82]=je):je=e[82];const qt=ot?"scroll":"hidden";let rn;e[83]!==dt||e[84]!==st||e[85]!==qt?(rn={overflowY:qt,minHeight:st,maxHeight:dt},e[83]=dt,e[84]=st,e[85]=qt,e[86]=rn):rn=e[86];let zn;e[87]!==N||e[88]!==t||e[89]!==H||e[90]!==ot||e[91]!==r||e[92]!==z||e[93]!==l||e[94]!==_||e[95]!==X||e[96]!==w||e[97]!==i||e[98]!==h||e[99]!==Y||e[100]!==K||e[101]!==kt||e[102]!==pn?(zn=w.map((Se,rt)=>{const Et=Vr.getContent(i,{item:Se}),wn=K&&!l,Tn=Y==null?void 0:Y.some(Cn=>r(Cn,Se)),Zn=Y&&(h==null?void 0:h(Se)),ir=typeof Zn=="string"?Zn:void 0,gr={...Se};return z&&rr.keys(t).forEach(Cn=>{const qn=t[Cn],_n=Vr.getContent(qn.content,{defKey:Cn,def:qn,item:Se});let dr=!1;if(kt&&!_){const li=Vr.getContent(qn.asText,{defKey:Cn,def:qn,item:Se});li!==void 0?dr=li.toString().toLowerCase().includes(kt.toLowerCase()):["string","number"].includes(typeof _n)&&_n!==void 0&&_n!==null&&(dr=_n.toString().toLowerCase().includes(kt.toLowerCase()))}gr[Cn]=M.jsx("span",{className:bt.clsx(dr&&Zl.IsRowMarked),children:gr[Cn]})}),M.jsx(Wi,{isDisabled:Zn,tooltip:ir,...Et,abaseRef:Tn?He:void 0,className:bt.clsx(Et==null?void 0:Et.className,wn&&Zl.IsSelectable,Tn&&Zl.IsSelected),onClick:Cn=>{var qn;X(Se),(qn=Et==null?void 0:Et.onClick)==null||qn.call(Et,Cn)},children:M.jsx(N,{defs:t,isBodyBodyOverflowed:ot,item:Se,markedItem:gr,noMarking:_,rowHeight:H,singleFilterValue:kt,spanWidths:pn})},rt)}),e[87]=N,e[88]=t,e[89]=H,e[90]=ot,e[91]=r,e[92]=z,e[93]=l,e[94]=_,e[95]=X,e[96]=w,e[97]=i,e[98]=h,e[99]=Y,e[100]=K,e[101]=kt,e[102]=pn,e[103]=zn):zn=e[103];let $n;e[104]!==z||e[105]!==w.length||e[106]!==G||e[107]!==ke||e[108]!==it?($n=M.jsx(jI,{isRowRendered:z,itemsLength:w.length,resources:G,rowHeight:ke,showRows:it}),e[104]=z,e[105]=w.length,e[106]=G,e[107]=ke,e[108]=it,e[109]=$n):$n=e[109];let kn;e[110]!==je||e[111]!==rn||e[112]!==zn||e[113]!==$n?(kn=M.jsxs("div",{ref:Te,className:je,style:rn,children:[zn,$n]}),e[110]=je,e[111]=rn,e[112]=zn,e[113]=$n,e[114]=kn):kn=e[114];let Tt;return e[115]!==bn||e[116]!==Ln||e[117]!==kn?(Tt=M.jsxs(M.Fragment,{children:[bn,Ln,kn]}),e[115]=bn,e[116]=Ln,e[117]=kn,e[118]=Tt):Tt=e[118],Tt},jI=n=>{const e=Vn.c(13),{showRows:t,itemsLength:r,resources:i,isRowRendered:o,rowHeight:l}=n;let a;e:{if(r===0){a=t;break e}a=t-r}const h=a;let g;if(e[0]!==o||e[1]!==r||e[2]!==h||e[3]!==i||e[4]!==l||e[5]!==t){let m;e[7]!==o||e[8]!==r||e[9]!==i||e[10]!==l||e[11]!==t?(m=(x,w)=>M.jsx("div",{className:bt.clsx(Zl.TRow,"NoSelect"),style:{minHeight:l,maxHeight:l,...o&&{border:"none"}},children:r===0&&w===Math.floor(t/2)&&M.jsx(Ml,{className:Zl.NoItems,children:i["No Items"]})},w),e[7]=o,e[8]=r,e[9]=i,e[10]=l,e[11]=t,e[12]=m):m=e[12],g=Array.from({length:h},m),e[0]=o,e[1]=r,e[2]=h,e[3]=i,e[4]=l,e[5]=t,e[6]=g}else g=e[6];return g};function $I(n,e,t,r){const i={...t},o=rr.keys(n).findIndex(g=>g===e)+1,l=Object.entries(n);let a=o-1,h=o;if(r<0){for(;r<0&&!(a<0||h>=l.length);){const[g,m]=[l[a][0],l[a][1]],[x,w]=[l[h][0],l[h][1]],_=m.minWidth??jd,E=w.maxWidth,R=i[g],k=i[x];let O=R-_;E!==void 0&&(O=Math.min(O,E-k));let P=-r;P=Math.min(P,O),R-P<=_&&a--,E!==void 0&&k+P>=E&&h++,i[g]=R-P,i[x]=k+P,r+=P}return i}else if(r>0){for(;r>0&&!(a<0||h>=l.length);){const[g,m]=[l[a][0],l[a][1]],[x,w]=[l[h][0],l[h][1]],_=w.minWidth??jd,E=m.maxWidth,R=i[x],k=i[g];let O=R-_;E!==void 0&&(O=Math.min(O,E-k));let P=r;P=Math.min(P,O),R-P<=_&&h++,E!==void 0&&k+P>=E&&a--,i[x]=R-P,i[g]=k+P,r-=P}return i}return i}const ek=n=>{const e=Vn.c(14),{defs:t,item:r,noMarking:i,spanWidths:o,singleFilterValue:l,isBodyBodyOverflowed:a,rowHeight:h}=n;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=bt.clsx(Zl.TRow),e[0]=g):g=e[0];let m;e[1]!==h?(m={minHeight:h,maxHeight:h},e[1]=h,e[2]=m):m=e[2];let x;e[3]!==t||e[4]!==a||e[5]!==r||e[6]!==i||e[7]!==h||e[8]!==l||e[9]!==o?(x=rr.map(t,(_,E)=>{const[R]=_,k=o[R];if(k===void 0)return null;const O=E===rr.keys(t).length-1,P=t[R],z=Vr.getContent(P.content,{defKey:R,def:P,item:r}),H={width:k.width,minWidth:k.minWidth,maxWidth:k.maxWidth,flexGrow:k.flexGrow,justifyContent:Vr.getContent(P.align,{defKey:R,def:P,item:r})??"flex-start",...Vr.getContent(P.style,{defKey:R,def:P,item:r})};let G=!1;if(l&&!i){const N=Vr.getContent(P.asText,{defKey:R,def:P,item:r});N!==void 0?G=N.toString().toLowerCase().includes(l.toLowerCase()):["string","number"].includes(typeof z)&&z!==void 0&&z!==null&&(G=z.toString().toLowerCase().includes(l.toLowerCase()))}return M.jsxs(B.Fragment,{children:[M.jsx("div",{className:bt.clsx(Zl.TD,"Label1",G&&Zl.IsMarked),style:H,children:M.jsx(nd,{children:z,className:Zl.Content})}),!a&&O&&M.jsx(cs,{className:Zl.OverflowSpace,h,style:{color:H.color,backgroundColor:H.backgroundColor},w:"var(--Scrollbar-width)"})]},R)}),e[3]=t,e[4]=a,e[5]=r,e[6]=i,e[7]=h,e[8]=l,e[9]=o,e[10]=x):x=e[10];let w;return e[11]!==m||e[12]!==x?(w=M.jsx("div",{className:g,style:m,children:x}),e[11]=m,e[12]=x,e[13]=w):w=e[13],w},tk="_ATableFooter_w090q_1",nk="_Button_w090q_10",rk="_IsSelected_w090q_26",ik="_IsDisabled_w090q_31",Eh={ATableFooter:tk,Button:nk,IsSelected:rk,IsDisabled:ik},ok=n=>{const e=Vn.c(35),{pages:t,rangedPages:r,pageF:i,pagination:o}=n,l=t[t.length-1];let a;e[0]!==o.page?(a=bt.clsx(Eh.Button,o.page===1&&Eh.IsDisabled),e[0]=o.page,e[1]=a):a=e[1];let h;e[2]!==i.moveFirst||e[3]!==a?(h=M.jsx(uo,{className:a,icon:"FirstPage",onClick:i.moveFirst}),e[2]=i.moveFirst,e[3]=a,e[4]=h):h=e[4];let g;e[5]!==o.page?(g=bt.clsx(Eh.Button,o.page===1&&Eh.IsDisabled),e[5]=o.page,e[6]=g):g=e[6];let m;e[7]!==i.movePrev||e[8]!==g?(m=M.jsx(uo,{className:g,icon:"NavigateBefore",onClick:i.movePrev}),e[7]=i.movePrev,e[8]=g,e[9]=m):m=e[9];let x;if(e[10]!==i||e[11]!==o.page||e[12]!==r){let O;e[14]!==i||e[15]!==o.page?(O=P=>M.jsx("div",{className:bt.clsx(Eh.Button,"NoSelect",o.page===P&&Eh.IsSelected),onClick:()=>i.move(P),children:P},P),e[14]=i,e[15]=o.page,e[16]=O):O=e[16],x=r.map(O),e[10]=i,e[11]=o.page,e[12]=r,e[13]=x}else x=e[13];let w;e[17]!==l||e[18]!==o.page?(w=bt.clsx(Eh.Button,o.page===l&&Eh.IsDisabled),e[17]=l,e[18]=o.page,e[19]=w):w=e[19];let _;e[20]!==i.moveNext||e[21]!==w?(_=M.jsx(uo,{className:w,icon:"NavigateNext",onClick:i.moveNext}),e[20]=i.moveNext,e[21]=w,e[22]=_):_=e[22];let E;e[23]!==l||e[24]!==o.page?(E=bt.clsx(Eh.Button,o.page===l&&Eh.IsDisabled),e[23]=l,e[24]=o.page,e[25]=E):E=e[25];let R;e[26]!==i.moveLast||e[27]!==E?(R=M.jsx(uo,{className:E,icon:"LastPage",onClick:i.moveLast}),e[26]=i.moveLast,e[27]=E,e[28]=R):R=e[28];let k;return e[29]!==h||e[30]!==m||e[31]!==x||e[32]!==_||e[33]!==R?(k=M.jsxs(Ml,{className:Eh.ATableFooter,children:[h,m,x,_,R]}),e[29]=h,e[30]=m,e[31]=x,e[32]=_,e[33]=R,e[34]=k):k=e[34],k},lk="_Filter_1b9j0_1",sk="_SelectFilter_1b9j0_11",ak="_MainFilter_1b9j0_15",ck="_IsOpen_1b9j0_26",uk="_SubFilters_1b9j0_30",fk="_Input_1b9j0_44",hk="_Main_1b9j0_15",dk="_Sub_1b9j0_30",gk="_Actions_1b9j0_62",pk="_Icon_1b9j0_67",vk="_LeftIcon_1b9j0_74",bk="_CircleAlertOutline_1b9j0_79",yk="_Rotate_1b9j0_87",oi={Filter:lk,SelectFilter:sk,MainFilter:ak,IsOpen:ck,SubFilters:uk,Input:fk,Main:hk,Sub:dk,Actions:gk,Icon:pk,LeftIcon:vk,CircleAlertOutline:bk,Rotate:yk},mk=n=>{const e=Vn.c(79),{defs:t,useFilteration:r,hasToggleFilteration:i,filterF:o,isRowRendered:l,isFilterSort:a,filterType:h,resources:g,placeholder:m}=n;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=[],e[0]=x):x=e[0];const[w,_]=B.useState(x),[E,R]=r,k=h==="Select";let O;e[1]!==E?(O=rr.keys(E).map(Ck),e[1]=E,e[2]=O):O=e[2];const P=O,[z,H]=B.useState(k&&P.length>0?P[0]:null);let G;e[3]!==E||e[4]!==R?(G=(nn,Bt,on)=>{if(!R)return;const Nn={...E};nn.value=Bt,R(Nn),_(Rn=>Rn.map((gn,Ue)=>Ue===(on?on+1:0)?"":gn))},e[3]=E,e[4]=R,e[5]=G):G=e[5];const N=G;let J;if(e[6]!==t||e[7]!==E||e[8]!==k||e[9]!==z){J=[];let nn=rr.keys(E);if(k&&z){let Bt;e[11]!==z?(Bt=on=>on===z,e[11]=z,e[12]=Bt):Bt=e[12],nn=nn.filter(Bt)}for(const Bt of nn)J.push({key:Bt,def:t[Bt],filter:E[Bt]});e[6]=t,e[7]=E,e[8]=k,e[9]=z,e[10]=J}else J=e[10];const Y=J,K=Y.length>0?Y[0]:null,fe=w.length>0?w[0]:"";let X;e[13]!==Y?(X=Y.length>1?Y.slice(1):[],e[13]=Y,e[14]=X):X=e[14];const te=X;let ne;e[15]!==w?(ne=w.length>1?w.slice(1):[],e[15]=w,e[16]=ne):ne=e[16];const ue=ne,se=te.length>0,[$,re]=B.useState(!1),[de,be]=B.useState(!1),oe=B.useRef(null);let Q;e[17]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>re(!1),e[17]=Q):Q=e[17];const ge=Q,Te=B.useRef(null);let He;e[18]===Symbol.for("react.memo_cache_sentinel")?(He=()=>{be(!1),re(!0),Te.current&&(document.removeEventListener("mousedown",Te.current),Te.current=null)},e[18]=He):He=e[18];const xe=He;let Ne;e[19]===Symbol.for("react.memo_cache_sentinel")?(Ne=()=>{const nn=Bt=>{const on=document.getElementById("root"),Nn=Bt.target,Rn=oe.current;!on||!Rn||!Nn||!Rn.contains(Nn)&&on.contains(Nn)&&xe()};return Te.current=nn,nn},e[19]=Ne):Ne=e[19];const Me=Ne;let Be;e[20]===Symbol.for("react.memo_cache_sentinel")?(Be=()=>{re(!0),be(!0),setTimeout(()=>{const nn=Me();document.addEventListener("mousedown",nn)},0)},e[20]=Be):Be=e[20];const ke=Be,Ie=de?xe:ke;let ze;e[21]!==w||e[22]!==Y?(ze=()=>{const nn=Y.map((Bt,on)=>Bt.filter.type==="String"&&Bt.filter.validation?Bt.filter.validation(Bt.filter.value||""):Bt.filter.type==="Date"&&Bt.filter.validation||Bt.filter.type==="DateRange"&&Bt.filter.validation?Bt.filter.validation(Bt.filter.value):w[on]);return _(nn),nn.every(_k)},e[21]=w,e[22]=Y,e[23]=ze):ze=e[23];const Ke=ze;let Oe;e[24]!==o||e[25]!==Ke?(Oe=nn=>{nn.key==="Enter"?(Ke()&&o.apply(),nn.stopPropagation()):nn.key==="Escape"&&(be(!1),nn.currentTarget.focus(),nn.currentTarget.blur(),nn.stopPropagation())},e[24]=o,e[25]=Ke,e[26]=Oe):Oe=e[26];const ht=Oe;let $e;e[27]!==Ie||e[28]!==Ke?($e={open:ke,close:xe,toggle:Ie,validate:Ke},e[27]=Ie,e[28]=Ke,e[29]=$e):$e=e[29];const it=$e;let et;e[30]!==o?(et=()=>{o.clear()},e[30]=o,e[31]=et):et=e[31];const st=et;let dt;e[32]!==o||e[33]!==E||e[34]!==R?(dt=nn=>{if(!R||!nn)return;H(nn);const Bt={...E};rr.keys(Bt).forEach(on=>{if(on!==nn&&Bt[on])e:switch(Bt[on].type){case"String":{Bt[on].value="";break e}case"Select":{Bt[on].value=null;break e}case"Date":{Bt[on].value=void 0;break e}case"DateRange":Bt[on].value=void 0}}),_([]),R(Bt),o.clear(),setTimeout(()=>{var Nn;const on=(Nn=oe.current)==null?void 0:Nn.querySelector("input");on&&on.focus()},0)},e[32]=o,e[33]=E,e[34]=R,e[35]=dt):dt=e[35];const Mt=dt;if(!K)return null;let ot;e[36]!==t||e[37]!==P||e[38]!==E||e[39]!==Mt||e[40]!==k||e[41]!==z?(ot=k&&M.jsx(Td,{isAutoWidth:!0,className:bt.clsx(oi.SelectFilter),options:P,type:"Secondary",useSelect:[z,Mt],OptionRenderer:nn=>{const{option:Bt}=nn,on=t[Bt];let Nn;if(on!=null&&on.hContent){const Rn={defKey:Bt,def:on};Nn=typeof on.hContent=="function"?on.hContent(Rn):on.hContent}else{const Rn=E[Bt],gn=(on==null?void 0:on.name)||(Rn==null?void 0:Rn.placeholder)||String(Bt);Nn=M.jsx("span",{children:gn})}return Nn}}),e[36]=t,e[37]=P,e[38]=E,e[39]=Mt,e[40]=k,e[41]=z,e[42]=ot):ot=e[42];let nt;e[43]===Symbol.for("react.memo_cache_sentinel")?(nt=bt.clsx(oi.Filter),e[43]=nt):nt=e[43];const Ot=l?a?180:void 0:180,Zt=l?a?300:void 0:300;let Rt;e[44]!==Ot||e[45]!==Zt?(Rt={minWidth:Ot,maxWidth:Zt},e[44]=Ot,e[45]=Zt,e[46]=Rt):Rt=e[46];let tn;e[47]!==o||e[48]!==k||e[49]!==se||e[50]!==i||e[51]!==de||e[52]!==fe||e[53]!==K||e[54]!==N||e[55]!==m||e[56]!==it||e[57]!==g?(tn=M.jsx(xk,{errorMessage:fe,filterF:o,filterSet:K,hasSelectFilterType:k,hasSubFilters:se,hasToggleFilteration:i,isOpen:de,placeholder:m,popupF:it,resources:g,onChange:N}),e[47]=o,e[48]=k,e[49]=se,e[50]=i,e[51]=de,e[52]=fe,e[53]=K,e[54]=N,e[55]=m,e[56]=it,e[57]=g,e[58]=tn):tn=e[58];let Ft;e[59]!==o||e[60]!==k||e[61]!==de||e[62]!==$||e[63]!==N||e[64]!==st||e[65]!==m||e[66]!==g||e[67]!==ue||e[68]!==te||e[69]!==Ke?(Ft=!k&&M.jsx(wk,{errorMessages:ue,filterF:o,isOpen:de,isTransitioning:$,placeholder:m,resources:g,subFilterSets:te,validate:Ke,onChange:N,onClearClick:st,onTransitionEnd:ge}),e[59]=o,e[60]=k,e[61]=de,e[62]=$,e[63]=N,e[64]=st,e[65]=m,e[66]=g,e[67]=ue,e[68]=te,e[69]=Ke,e[70]=Ft):Ft=e[70];let yn;e[71]!==ht||e[72]!==Rt||e[73]!==tn||e[74]!==Ft?(yn=M.jsxs("div",{ref:oe,className:nt,tabIndex:-1,style:Rt,onKeyDown:ht,onClick:Sk,children:[tn,Ft]}),e[71]=ht,e[72]=Rt,e[73]=tn,e[74]=Ft,e[75]=yn):yn=e[75];let dn;return e[76]!==ot||e[77]!==yn?(dn=M.jsxs(M.Fragment,{children:[ot,yn]}),e[76]=ot,e[77]=yn,e[78]=dn):dn=e[78],dn},xk=n=>{var _,E,R,k;const e=Vn.c(182),{filterSet:t,hasToggleFilteration:r,hasSelectFilterType:i,onChange:o,filterF:l,hasSubFilters:a,popupF:h,isOpen:g,resources:m,errorMessage:x,placeholder:w}=n;if(t.filter.type==="String"){const O=t.filter.value??"";let P;e[0]!==t.filter||e[1]!==o?(P=oe=>o(t.filter,oe),e[0]=t.filter,e[1]=o,e[2]=P):P=e[2];let z;e[3]!==O||e[4]!==P?(z=[O,P],e[3]=O,e[4]=P,e[5]=z):z=e[5];const H=z,G=w??t.filter.placeholder??((_=t.def)==null?void 0:_.name),N=t.filter.icon,J=t.filter.iconTooltip??G;let Y;e[6]!==g?(Y=bt.clsx(oi.MainFilter,g&&oi.IsOpen),e[6]=g,e[7]=Y):Y=e[7];const K=N??"Type";let fe;e[8]!==J||e[9]!==g||e[10]!==K?(fe=M.jsx(Jh,{icon:K,isOpen:g,tooltip:J}),e[8]=J,e[9]=g,e[10]=K,e[11]=fe):fe=e[11];const X=t.filter.autoFocus;let te;e[12]===Symbol.for("react.memo_cache_sentinel")?(te=bt.clsx(oi.Input,oi.Main),e[12]=te):te=e[12];let ne;e[13]!==l||e[14]!==r||e[15]!==g||e[16]!==h||e[17]!==m?(ne=r&&M.jsx(d0,{isOpen:g,filterF:l,popupF:h,resources:m}),e[13]=l,e[14]=r,e[15]=g,e[16]=h,e[17]=m,e[18]=ne):ne=e[18];const ue=G??m["Search(Placeholder)"],se=x?"Error":"Primary";let $;e[19]===Symbol.for("react.memo_cache_sentinel")?($={style:{width:"100%",boxSizing:"border-box"}},e[19]=$):$=e[19];let re;e[20]!==x||e[21]!==l||e[22]!==i||e[23]!==a||e[24]!==g||e[25]!==h||e[26]!==m?(re=M.jsx(g0,{errorMessage:x,filterF:l,hasSelectFilterType:i,hasSubFilters:a,isOpen:g,popupF:h,resources:m}),e[20]=x,e[21]=l,e[22]=i,e[23]=a,e[24]=g,e[25]=h,e[26]=m,e[27]=re):re=e[27];let de;e[28]!==t.filter.autoFocus||e[29]!==t.filter.dataList||e[30]!==t.filter.maxLength||e[31]!==t.filter.pattern||e[32]!==se||e[33]!==re||e[34]!==ne||e[35]!==ue||e[36]!==H?(de=M.jsx(sg,{autoFocus:X,className:te,dataList:t.filter.dataList,LeftAddon:ne,maxLength:t.filter.maxLength,pattern:t.filter.pattern,placeholder:ue,type:se,useValue:H,wrapProps:$,RightAddon:re}),e[28]=t.filter.autoFocus,e[29]=t.filter.dataList,e[30]=t.filter.maxLength,e[31]=t.filter.pattern,e[32]=se,e[33]=re,e[34]=ne,e[35]=ue,e[36]=H,e[37]=de):de=e[37];let be;return e[38]!==de||e[39]!==Y||e[40]!==fe?(be=M.jsxs("div",{className:Y,children:[fe,de]}),e[38]=de,e[39]=Y,e[40]=fe,e[41]=be):be=e[41],be}else if(t.filter.type==="Select"){const O=t.filter.value??null;let P;e[42]!==l||e[43]!==t.filter||e[44]!==i||e[45]!==o||e[46]!==h?(P=se=>{o(t.filter,se),i&&setTimeout(()=>{h.validate()&&l.apply()},0)},e[42]=l,e[43]=t.filter,e[44]=i,e[45]=o,e[46]=h,e[47]=P):P=e[47];let z;e[48]!==O||e[49]!==P?(z=[O,P],e[48]=O,e[49]=P,e[50]=z):z=e[50];const H=z,G=w??t.filter.placeholder??((E=t.def)==null?void 0:E.name),N=t.filter.icon,J=t.filter.iconTooltip??G;let Y;e[51]!==g?(Y=bt.clsx(oi.MainFilter,g&&oi.IsOpen),e[51]=g,e[52]=Y):Y=e[52];const K=N??"Menu";let fe;e[53]!==J||e[54]!==g||e[55]!==K?(fe=M.jsx(Jh,{icon:K,isOpen:g,tooltip:J}),e[53]=J,e[54]=g,e[55]=K,e[56]=fe):fe=e[56];let X;e[57]===Symbol.for("react.memo_cache_sentinel")?(X=bt.clsx(oi.Input,oi.Main),e[57]=X):X=e[57];let te;e[58]!==l||e[59]!==t.filter.placeholder||e[60]!==i||e[61]!==a||e[62]!==r||e[63]!==g||e[64]!==G||e[65]!==h||e[66]!==m?(te=se=>{const{OptionRenderer:$,selectedOption:re}=se;return re===null?G||t.filter.placeholder:M.jsxs(M.Fragment,{children:[r&&M.jsx(d0,{isOpen:g,filterF:l,popupF:h,resources:m}),M.jsx($,{option:re}),M.jsx(g0,{filterF:l,hasSelectFilterType:i,hasSubFilters:a,hideSearchButton:!0,isOpen:g,popupF:h,resources:m})]})},e[58]=l,e[59]=t.filter.placeholder,e[60]=i,e[61]=a,e[62]=r,e[63]=g,e[64]=G,e[65]=h,e[66]=m,e[67]=te):te=e[67];let ne;e[68]!==t.filter.OptionRenderer||e[69]!==t.filter.options||e[70]!==G||e[71]!==te||e[72]!==H?(ne=M.jsx(Td,{className:X,OptionRenderer:t.filter.OptionRenderer,options:t.filter.options,placeholder:G,useSelect:H,SelectedRenderer:te}),e[68]=t.filter.OptionRenderer,e[69]=t.filter.options,e[70]=G,e[71]=te,e[72]=H,e[73]=ne):ne=e[73];let ue;return e[74]!==Y||e[75]!==fe||e[76]!==ne?(ue=M.jsxs("div",{className:Y,children:[fe,ne]}),e[74]=Y,e[75]=fe,e[76]=ne,e[77]=ue):ue=e[77],ue}else if(t.filter.type==="Date"){let O;e[78]!==t.filter||e[79]!==o?(O=ge=>o(t.filter,ge),e[78]=t.filter,e[79]=o,e[80]=O):O=e[80];let P;e[81]!==t.filter.value||e[82]!==O?(P=[t.filter.value,O],e[81]=t.filter.value,e[82]=O,e[83]=P):P=e[83];const z=P,H=w??t.filter.placeholder??((R=t.def)==null?void 0:R.name),G=t.filter.icon,N=t.filter.iconTooltip??H;let J;e[84]!==g?(J=bt.clsx(oi.MainFilter,g&&oi.IsOpen),e[84]=g,e[85]=J):J=e[85];const Y=G??"CalendarDay";let K;e[86]!==N||e[87]!==g||e[88]!==Y?(K=M.jsx(Jh,{icon:Y,isOpen:g,tooltip:N}),e[86]=N,e[87]=g,e[88]=Y,e[89]=K):K=e[89];let fe;e[90]===Symbol.for("react.memo_cache_sentinel")?(fe=bt.clsx(oi.DatePicker,oi.Input,oi.Main),e[90]=fe):fe=e[90];let X;e[91]!==l||e[92]!==r||e[93]!==g||e[94]!==h||e[95]!==m?(X=r&&M.jsx(d0,{isOpen:g,filterF:l,popupF:h,resources:m}),e[91]=l,e[92]=r,e[93]=g,e[94]=h,e[95]=m,e[96]=X):X=e[96];let te;e[97]!==r||e[98]!==g?(te=!r&&M.jsx(cs,{w:g?0:6}),e[97]=r,e[98]=g,e[99]=te):te=e[99];const ne=G??"CalendarDay",ue=!g;let se;e[100]!==N||e[101]!==ne||e[102]!==ue?(se=M.jsx(Jh,{icon:ne,isOpen:ue,tooltip:N}),e[100]=N,e[101]=ne,e[102]=ue,e[103]=se):se=e[103];const $=g?8:0;let re;e[104]!==$?(re=M.jsx(cs,{w:$}),e[104]=$,e[105]=re):re=e[105];let de;e[106]!==se||e[107]!==re||e[108]!==X||e[109]!==te?(de=M.jsxs(M.Fragment,{children:[X,te,se,re]}),e[106]=se,e[107]=re,e[108]=X,e[109]=te,e[110]=de):de=e[110];let be;e[111]!==l||e[112]!==i||e[113]!==a||e[114]!==g||e[115]!==h||e[116]!==m?(be=M.jsx(g0,{filterF:l,hasSelectFilterType:i,hasSubFilters:a,isOpen:g,popupF:h,resources:m}),e[111]=l,e[112]=i,e[113]=a,e[114]=g,e[115]=h,e[116]=m,e[117]=be):be=e[117];let oe;e[118]!==t.filter.maxDate||e[119]!==t.filter.minDate||e[120]!==H||e[121]!==de||e[122]!==be||e[123]!==z?(oe=M.jsx(Em,{className:fe,maxDate:t.filter.maxDate,minDate:t.filter.minDate,placeholder:H,type:"Raw",useDate:z,LeftAddon:de,RightAddon:be}),e[118]=t.filter.maxDate,e[119]=t.filter.minDate,e[120]=H,e[121]=de,e[122]=be,e[123]=z,e[124]=oe):oe=e[124];let Q;return e[125]!==oe||e[126]!==J||e[127]!==K?(Q=M.jsxs("div",{className:J,children:[K,oe]}),e[125]=oe,e[126]=J,e[127]=K,e[128]=Q):Q=e[128],Q}else if(t.filter.type==="DateRange"){let O;e[129]!==t.filter||e[130]!==o?(O=He=>o(t.filter,He),e[129]=t.filter,e[130]=o,e[131]=O):O=e[131];let P;e[132]!==t.filter.value||e[133]!==O?(P=[t.filter.value,O],e[132]=t.filter.value,e[133]=O,e[134]=P):P=e[134];const z=P,{noDefaultChoices:H,noClearButton:G}=t.filter,N=w??t.filter.placeholder??((k=t.def)==null?void 0:k.name),J=t.filter.icon,Y=t.filter.iconTooltip??N;let K;e[135]!==g?(K=bt.clsx(oi.MainFilter,g&&oi.IsOpen),e[135]=g,e[136]=K):K=e[136];const fe=J??"CalendarDay";let X;e[137]!==Y||e[138]!==g||e[139]!==fe?(X=M.jsx(Jh,{icon:fe,isOpen:g,tooltip:Y}),e[137]=Y,e[138]=g,e[139]=fe,e[140]=X):X=e[140];let te;e[141]===Symbol.for("react.memo_cache_sentinel")?(te=bt.clsx(oi.DatePicker,oi.Input,oi.Main),e[141]=te):te=e[141];let ne;e[142]!==l||e[143]!==r||e[144]!==g||e[145]!==h||e[146]!==m?(ne=r&&M.jsx(d0,{isOpen:g,filterF:l,popupF:h,resources:m}),e[142]=l,e[143]=r,e[144]=g,e[145]=h,e[146]=m,e[147]=ne):ne=e[147];let ue;e[148]!==r||e[149]!==g?(ue=!r&&M.jsx(cs,{w:g?0:6}),e[148]=r,e[149]=g,e[150]=ue):ue=e[150];const se=J??"CalendarDay",$=!g;let re;e[151]!==Y||e[152]!==se||e[153]!==$?(re=M.jsx(Jh,{icon:se,isOpen:$,tooltip:Y}),e[151]=Y,e[152]=se,e[153]=$,e[154]=re):re=e[154];const de=g?8:0;let be;e[155]!==de?(be=M.jsx(cs,{w:de}),e[155]=de,e[156]=be):be=e[156];let oe;e[157]!==re||e[158]!==be||e[159]!==ne||e[160]!==ue?(oe=M.jsxs(M.Fragment,{children:[ne,ue,re,be]}),e[157]=re,e[158]=be,e[159]=ne,e[160]=ue,e[161]=oe):oe=e[161];let Q;e[162]!==l||e[163]!==i||e[164]!==a||e[165]!==g||e[166]!==h||e[167]!==m?(Q=M.jsx(g0,{filterF:l,hasSelectFilterType:i,hasSubFilters:a,isOpen:g,popupF:h,resources:m}),e[162]=l,e[163]=i,e[164]=a,e[165]=g,e[166]=h,e[167]=m,e[168]=Q):Q=e[168];let ge;e[169]!==t.filter.maxDate||e[170]!==t.filter.minDate||e[171]!==G||e[172]!==H||e[173]!==N||e[174]!==oe||e[175]!==Q||e[176]!==z?(ge=M.jsx(_m,{className:te,maxDate:t.filter.maxDate,minDate:t.filter.minDate,noClearButton:G,noDefaultChoices:H,placeholder:N,type:"Raw",useDateRange:z,LeftAddon:oe,RightAddon:Q}),e[169]=t.filter.maxDate,e[170]=t.filter.minDate,e[171]=G,e[172]=H,e[173]=N,e[174]=oe,e[175]=Q,e[176]=z,e[177]=ge):ge=e[177];let Te;return e[178]!==ge||e[179]!==K||e[180]!==X?(Te=M.jsxs("div",{className:K,children:[X,ge]}),e[178]=ge,e[179]=K,e[180]=X,e[181]=Te):Te=e[181],Te}return null},d0=n=>{const e=Vn.c(10),{filterF:t,popupF:r,resources:i,isOpen:o}=n,l=o?0:24,a=o?0:8;let h;e[0]!==l||e[1]!==a?(h={width:l,marginLeft:a},e[0]=l,e[1]=a,e[2]=h):h=e[2];const g=i["Toggle Filter"];let m;e[3]!==t||e[4]!==r?(m=w=>{w.currentTarget.classList.add(oi.Rotate),t.toggle(),r.close(),w.stopPropagation()},e[3]=t,e[4]=r,e[5]=m):m=e[5];let x;return e[6]!==h||e[7]!==g||e[8]!==m?(x=M.jsx(Ba,{className:oi.Icon,icon:"Convert",style:h,tooltip:g,type:"Raw",onMouseDown:Ek,onClick:m}),e[6]=h,e[7]=g,e[8]=m,e[9]=x):x=e[9],x},g0=n=>{const e=Vn.c(29),{hasSubFilters:t,popupF:r,isOpen:i,resources:o,errorMessage:l,hideSearchButton:a,hasSelectFilterType:h,filterF:g}=n;let m;e[0]!==r?(m=G=>{G.stopPropagation(),r.open()},e[0]=r,e[1]=m):m=e[1];const x=m;let w;e[2]!==r?(w=G=>{G.stopPropagation(),r.close()},e[2]=r,e[3]=w):w=e[3];const _=w;let E;e[4]!==g||e[5]!==r?(E=G=>{G.stopPropagation(),r.validate()&&g.apply()},e[4]=g,e[5]=r,e[6]=E):E=e[6];const R=E;let k;e[7]!==l?(k=l&&M.jsx(Ba,{className:oi.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:l,type:"Raw"}),e[7]=l,e[8]=k):k=e[8];let O;e[9]!==h||e[10]!==t||e[11]!==i||e[12]!==x?(O=t&&!h&&M.jsx(Ba,{className:oi.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!i,visibility:+!i?"visible":"hidden",marginRight:-24,pointerEvents:i?"none":void 0},onClick:x}),e[9]=h,e[10]=t,e[11]=i,e[12]=x,e[13]=O):O=e[13];let P;e[14]!==h||e[15]!==t||e[16]!==i||e[17]!==_?(P=t&&!h&&M.jsx(Ba,{className:oi.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+i,visibility:+i?"visible":"hidden",marginRight:i?-24:0,pointerEvents:i?void 0:"none"},onClick:_}),e[14]=h,e[15]=t,e[16]=i,e[17]=_,e[18]=P):P=e[18];let z;e[19]!==a||e[20]!==i||e[21]!==R||e[22]!==o?(z=!a&&M.jsx(Ba,{className:oi.Icon,icon:"Search",tooltip:o["Search(Button)"],type:"Raw",style:{opacity:+!i,visibility:+!i?"visible":"hidden",pointerEvents:i?"none":void 0,marginRight:4},onClick:R}),e[19]=a,e[20]=i,e[21]=R,e[22]=o,e[23]=z):z=e[23];let H;return e[24]!==k||e[25]!==O||e[26]!==P||e[27]!==z?(H=M.jsxs(B.Fragment,{children:[k,O,P,z]}),e[24]=k,e[25]=O,e[26]=P,e[27]=z,e[28]=H):H=e[28],H},wk=n=>{const e=Vn.c(31),{subFilterSets:t,onChange:r,onClearClick:i,isOpen:o,isTransitioning:l,onTransitionEnd:a,resources:h,errorMessages:g,placeholder:m,filterF:x,validate:w}=n;if(!o&&!l)return null;const _=+o,E=+o?"visible":"hidden";let R;e[0]!==_||e[1]!==E?(R={opacity:_,visibility:E},e[0]=_,e[1]=E,e[2]=R):R=e[2];let k;if(e[3]!==g||e[4]!==m||e[5]!==r||e[6]!==h||e[7]!==t){let Y;e[9]!==g||e[10]!==m||e[11]!==r||e[12]!==h?(Y=(K,fe)=>{var X,te,ne,ue;if(K.filter.type==="String"){const se=[K.filter.value??"",oe=>r(K.filter,oe,fe)],$=g[fe],re=m??K.filter.placeholder??((X=K.def)==null?void 0:X.name),de=K.filter.icon,be=K.filter.iconTooltip??re;return M.jsxs(Ml,{style:{marginBottom:6},children:[M.jsx(Jh,{icon:de??"Type",tooltip:be}),M.jsx(sg,{autoFocus:K.filter.autoFocus,className:bt.clsx(oi.Input,oi.Sub),dataList:K.filter.dataList,maxLength:K.filter.maxLength,pattern:K.filter.pattern,placeholder:re??h["Search(Placeholder)"],type:$?"Error":"Secondary",useValue:se,wrapProps:{style:{width:"100%"}},RightAddon:$&&M.jsx(Ba,{className:oi.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:$,type:"Raw"})}),M.jsx(cs,{h:8})]},fe)}else if(K.filter.type==="Select"){const se=[K.filter.value??null,be=>r(K.filter,be)],$=m??K.filter.placeholder??((te=K.def)==null?void 0:te.name),re=K.filter.icon,de=K.filter.iconTooltip??$;return M.jsxs(Ml,{style:{marginBottom:6},children:[M.jsx(Jh,{icon:re??"Menu",tooltip:de}),M.jsx(Td,{arrowProps:{style:{marginRight:4}},className:bt.clsx(oi.Input,oi.Sub),OptionRenderer:K.filter.OptionRenderer,options:K.filter.options,placeholder:$,type:"Secondary",useSelect:se}),M.jsx(cs,{h:8})]},fe)}else if(K.filter.type==="Date"){const se=[K.filter.value,be=>r(K.filter,be)],$=m??K.filter.placeholder??((ne=K.def)==null?void 0:ne.name),re=K.filter.icon,de=K.filter.iconTooltip??$;return M.jsxs(Ml,{style:{marginBottom:6},children:[M.jsx(Jh,{icon:re??"CalendarDay",tooltip:de}),M.jsx(Em,{className:bt.clsx(oi.DatePicker,oi.Input,oi.Sub),LeftAddon:M.jsx(cs,{w:12}),maxDate:K.filter.maxDate,minDate:K.filter.minDate,placeholder:$,type:"Raw",useDate:se}),M.jsx(cs,{h:8})]},fe)}else if(K.filter.type==="DateRange"){const se=[K.filter.value,Q=>r(K.filter,Q)],{noDefaultChoices:$,noClearButton:re}=K.filter,de=m??K.filter.placeholder??((ue=K.def)==null?void 0:ue.name),be=K.filter.icon,oe=K.filter.iconTooltip??de;return M.jsxs(Ml,{style:{marginBottom:6},children:[M.jsx(Jh,{icon:be??"CalendarDay",tooltip:oe}),M.jsx(_m,{className:bt.clsx(oi.DatePicker,oi.Input,oi.Sub),LeftAddon:M.jsx(cs,{w:12}),maxDate:K.filter.maxDate,minDate:K.filter.minDate,noClearButton:re,noDefaultChoices:$,placeholder:de,type:"Raw",useDateRange:se})]},fe)}else return null},e[9]=g,e[10]=m,e[11]=r,e[12]=h,e[13]=Y):Y=e[13],k=t.map(Y),e[3]=g,e[4]=m,e[5]=r,e[6]=h,e[7]=t,e[8]=k}else k=e[8];const O=h["Clear(Button)"];let P;e[14]!==i||e[15]!==O?(P=M.jsx(Ic,{type:"Secondary",onClick:i,children:O}),e[14]=i,e[15]=O,e[16]=P):P=e[16];let z;e[17]!==x||e[18]!==w?(z=()=>{w()&&x.apply()},e[17]=x,e[18]=w,e[19]=z):z=e[19];const H=h["Search(Button)"];let G;e[20]!==z||e[21]!==H?(G=M.jsx(Ic,{onClick:z,children:H}),e[20]=z,e[21]=H,e[22]=G):G=e[22];let N;e[23]!==P||e[24]!==G?(N=M.jsxs(Ml,{className:oi.Actions,children:[P,G]}),e[23]=P,e[24]=G,e[25]=N):N=e[25];let J;return e[26]!==a||e[27]!==R||e[28]!==k||e[29]!==N?(J=M.jsxs("div",{className:oi.SubFilters,style:R,onTransitionEnd:a,children:[k,N]}),e[26]=a,e[27]=R,e[28]=k,e[29]=N,e[30]=J):J=e[30],J},Jh=n=>{const e=Vn.c(8),{icon:t,tooltip:r,isOpen:i}=n,o=i===void 0?!0:i,l=o?24:0,a=o?4:0,h=+o;let g;e[0]!==l||e[1]!==a||e[2]!==h?(g={width:l,marginRight:a,opacity:h},e[0]=l,e[1]=a,e[2]=h,e[3]=g):g=e[3];let m;return e[4]!==t||e[5]!==g||e[6]!==r?(m=M.jsx(Ba,{className:oi.LeftIcon,icon:t,tooltip:r,type:"Raw",style:g}),e[4]=t,e[5]=g,e[6]=r,e[7]=m):m=e[7],m};function Ck(n){return String(n)}function _k(n){return!n}function Sk(n){n.preventDefault(),n.stopPropagation()}function Ek(n){return n.currentTarget.classList.remove(oi.Rotate)}const Tk="_ATableHeader_1hzfz_1",Ak="_LeftHeaderContent_1hzfz_11",Rk="_RightHeaderContent_1hzfz_19",Ik="_TopRightAddon_1hzfz_27",kk="_HItem_1hzfz_32",Sg={ATableHeader:Tk,LeftHeaderContent:Ak,RightHeaderContent:Rk,TopRightAddon:Ik,HItem:kk},Mk=n=>{const{defs:e,title:t,totalCount:r,useCheck:i,useFilteration:o,hasToggleFilteration:l,filterF:a,noFilter:h,noCount:g,isFiltered:m,TopLeftAddon:x,TopRightAddon:w,useSortation:_,resources:E=Nr.ATable,filterType:R,placeholder:k}=n,[O]=B.useMemo(()=>i||[],[i]),P=B.useMemo(()=>m?E["Searched n items"](r):E["Total n items"](r),[E,m,r]),[z]=o,[H,G]=_,[N,J]=B.useState(!1),Y=B.useMemo(()=>{const re=rr.values(z).filter(oe=>oe.type==="DateRange"),de=rr.keys(z).filter(oe=>re.includes(z[oe])),be=rr.keys(e).filter(oe=>e[oe].isSortable);return de.length>0?(de.length>1&&J(!0),be.map(Q=>de.includes(Q)?[Q+"_Asc",Q+"_Desc"]:Q).flat()):be},[e,z]),K=B.useMemo(()=>n.isRowRendered&&Y.length>0,[Y.length,n.isRowRendered]),fe=B.useCallback((re,de)=>{G&&(H==null?void 0:H.defKey)===re&&(H.isAsc===!0?G({defKey:re,isAsc:!1,sortF:de}):G({defKey:re,isAsc:!0,sortF:de}))},[H,G]),X=B.useRef(null),[te,ne]=B.useState(),[ue,se]=B.useState(H?H.defKey:Y[0]),$=B.useMemo(()=>{if(!te)return{};const re=e[te];return{SortUp:{onClick:()=>{G==null||G({defKey:te,isAsc:!0,sortF:re.sortF}),se(te)},content:()=>E["Sort up"]},SortDown:{onClick:()=>{G==null||G({defKey:te,isAsc:!1,sortF:re.sortF}),se(te)},content:()=>E["Sort down"]}}},[G,te,e,E]);return M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:bt.clsx(Sg.ATableHeader),children:[M.jsxs("div",{className:bt.clsx(Sg.LeftHeaderContent,"NoSelect"),children:[M.jsxs(Ml,{style:{marginBottom:K?8:0},children:[t&&M.jsx("div",{className:bt.clsx(Sg.HItem),style:{whiteSpace:"nowrap"},children:t}),!g&&M.jsxs("div",{className:bt.clsx(Sg.HItem),style:{maxHeight:14,...K&&{minHeight:14,color:"var(--label-neutral)"}},children:[P,O&&O.length>0&&M.jsxs(M.Fragment,{children:[" / ",E["Checked n items"](O.length)]})]})]}),K&&M.jsx(U3,{options:Y,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[ue,()=>{}],optionProps:{style:{cursor:"default"},onClick:re=>{var oe;const de=re.currentTarget.textContent;if(de===E[de])return;re.currentTarget.querySelector("svg")===null&&((oe=X.current)==null||oe.open(re.currentTarget))}},OptionRenderer:re=>{const de=/_Asc|_Desc/.test(re.option),be=(H==null?void 0:H.defKey)===re.option,oe=ue===re.option,Q=H==null?void 0:H.isAsc,ge=()=>{if(de){ne(void 0),se(re.option);const[xe,Ne]=re.option.split("_"),Me=Ne==="Asc";G==null||G({defKey:xe,isAsc:Me,sortF:e[xe].sortF})}else oe?fe(re.option,e[re.option].sortF):ne(re.option)},He=de?(xe=>{const[Ne,Me]=xe.split("_");return(N?Ne+" ":"")+E[Me]})(re.option):E["Sort by x"](re.option);return M.jsxs(Ml,{className:bt.clsx(!(de&&oe)&&"IsClickable"),style:{height:"100%"},onClick:ge,children:[He,oe&&!de&&M.jsx(uo,{icon:be?Q?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},re.option)}})]}),M.jsx(zg,{}),M.jsxs("div",{className:bt.clsx(Sg.RightHeaderContent,"NoSelect"),children:[x&&M.jsx("div",{className:bt.clsx(Sg.HItem),children:x}),!h&&M.jsx(mk,{defs:e,filterF:a,filterType:R,hasToggleFilteration:l,isFilterSort:Y.length>0,isRowRendered:n.isRowRendered,placeholder:k,resources:E,useFilteration:o}),w&&M.jsx(Ml,{children:w,className:bt.clsx(Sg.TopRightAddon)})]})]}),M.jsx(H3,{actionRef:X,defs:$,position:O1.S,width:100,onClose:()=>ne(void 0)})]})},j2={page:1,pageSize:50,pageRange:10},Lk=n=>{const e=Vn.c(258),{defs:t,pk:r,defaultDef:i,rProps:o,useSelect:l,isSelectMulti:a,selectDisabled:h,useCheck:g,checkDisabled:m,isLoading:x,isDisabled:w,title:_,entireItems:E,onStateChange:R,pagedItems:k,totalCount:O,useFilteration:P,useToggleFilteration:z,filterType:H,placeholder:G,rowHeight:N,usePagination:J,useSortation:Y,showRows:K,noHeader:fe,noDefHeader:X,noFooter:te,noFilter:ne,noCount:ue,noMarking:se,noStateChangeOnMount:$,TopLeftAddon:re,TopRightAddon:de,actionRef:be,RowRenderer:oe,resources:Q}=n,ge=H===void 0?"Default":H,Te=N===void 0?40:N;let He;e[0]!==Q?(He={...Nr.ATable,...Q},e[0]=Q,e[1]=He):He=e[1];const xe=He,Ne=B.useRef(null);let Me;e[2]!==r?(Me=(Fe,yt)=>r!==void 0?Array.isArray(r)?r.every(Bn=>fh.isEqual(Fe[Bn],yt[Bn])):fh.isEqual(Fe[r],yt[r]):fh.isEqual(Fe,yt),e[2]=r,e[3]=Me):Me=e[3];const Be=Me;let ke;e[4]!==i?(ke={content:Ok,...i},e[4]=i,e[5]=ke):ke=e[5];const Ie=ke;let ze;e[6]!==Ie||e[7]!==t?(ze={},rr.keys(t).forEach(Fe=>{const yt=t[Fe],Bn={...Ie,...yt};ze[Fe]=Bn}),e[6]=Ie,e[7]=t,e[8]=ze):ze=e[8];const Ke=ze;let Oe;e[9]!==P?(Oe=fh.cloneDeep(P),e[9]=P,e[10]=Oe):Oe=e[10];const ht=xe["Search(Placeholder)"];let $e;e[11]!==ht?($e={"":{type:"String",placeholder:ht,value:""}},e[11]=ht,e[12]=$e):$e=e[12];const[it,et]=Do(Oe,$e);let st;e[13]!==z?(st=fh.cloneDeep(z),e[13]=z,e[14]=st):st=e[14];const[dt,Mt]=Do(st,void 0),[ot,nt]=B.useState(!1),Ot=B.useRef(void 0),Zt=B.useRef(void 0);let Rt,tn;e[15]!==it?(tn=()=>{Ot.current===void 0&&(Ot.current=fh.cloneDeep(it))},Rt=[it],e[15]=it,e[16]=Rt,e[17]=tn):(Rt=e[16],tn=e[17]),B.useEffect(tn,Rt);let Ft,yn;e[18]!==dt?(Ft=()=>{Zt.current===void 0&&dt&&(Zt.current=fh.cloneDeep(dt))},yn=[dt],e[18]=dt,e[19]=Ft,e[20]=yn):(Ft=e[19],yn=e[20]),B.useEffect(Ft,yn);let dn;e:{if(ot&&dt){let yt;e[21]!==Mt||e[22]!==dt?(yt=[dt,Mt],e[21]=Mt,e[22]=dt,e[23]=yt):yt=e[23],dn=yt;break e}let Fe;e[24]!==it||e[25]!==et?(Fe=[it,et],e[24]=it,e[25]=et,e[26]=Fe):Fe=e[26],dn=Fe}const[nn,Bt]=dn,[on,Nn]=B.useState(nn);let Rn;e:{if(!E){let yt;e[27]===Symbol.for("react.memo_cache_sentinel")?(yt=[],e[27]=yt):yt=e[27],Rn=yt;break e}let Fe;e[28]!==on||e[29]!==Ke||e[30]!==E?(Fe=_d.applyFilteration(E,Ke,on),e[28]=on,e[29]=Ke,e[30]=E,e[31]=Fe):Fe=e[31],Rn=Fe}const gn=Rn;let Ue;e:{for(const Fe in on){const yt=on[Fe];if(yt.value!==void 0&&yt.value!==null&&yt.value!==""){Ue=!0;break e}}Ue=!1}const Ce=Ue,[Ze,wt]=Do(Y,void 0);let Kt;e[32]!==Ke||e[33]!==gn||e[34]!==Ze?(Kt=_d.applySortation(gn,Ke,Ze),e[32]=Ke,e[33]=gn,e[34]=Ze,e[35]=Kt):Kt=e[35];const Gt=Kt;let pn;e:{if(k!==void 0){let Fe;e[36]!==Ke||e[37]!==k||e[38]!==Ze?(Fe=_d.applySortation(k,Ke,Ze),e[36]=Ke,e[37]=k,e[38]=Ze,e[39]=Fe):Fe=e[39],pn=Fe;break e}pn=void 0}const un=pn,[ft,kt]=B.useState(!1),Ct=x??ft,[zt,ln]=Do(J,j2);let mt;e[40]!==zt?(mt={...j2,...zt},e[40]=zt,e[41]=mt):mt=e[41];const Lt=mt;let en;if(e[42]!==E||e[43]!==Lt||e[44]!==O||e[45]!==Ct||e[46]!==Gt||e[47]!==un){const Fe={...Lt};if(un!==void 0){const yt=O??un.length,Bn=_d.getPages(yt,Fe.pageSize);Fe.page<1&&(Fe.page=1),O!==void 0&&!Ct&&Fe.page>Bn.length&&(Fe.page=Bn.length),en={pagedItems:un,totalCount:yt,pagination:Fe}}else if(E!==void 0){const yt=O??Gt.length,Bn=_d.getPages(yt,Fe.pageSize);Fe.page>Bn.length?Fe.page=Bn.length:Fe.page<1&&(Fe.page=1);const mr=_d.applyPagination(Gt,Fe.page,Fe.pageSize);let si;e[49]!==mr||e[50]!==Fe||e[51]!==yt?(si={pagedItems:mr,totalCount:yt,pagination:Fe},e[49]=mr,e[50]=Fe,e[51]=yt,e[52]=si):si=e[52],en=si}else{let yt;e[53]===Symbol.for("react.memo_cache_sentinel")?(yt=[],e[53]=yt):yt=e[53];const Bn=O??0;let mr;e[54]!==Lt||e[55]!==Bn?(mr={pagedItems:yt,totalCount:Bn,pagination:Lt},e[54]=Lt,e[55]=Bn,e[56]=mr):mr=e[56],en=mr}e[42]=E,e[43]=Lt,e[44]=O,e[45]=Ct,e[46]=Gt,e[47]=un,e[48]=en}else en=e[48];const{pagedItems:bn,totalCount:xn,pagination:Vt}=en;let mn;e[57]!==Vt.page||e[58]!==Vt.pageRange||e[59]!==Vt.pageSize||e[60]!==xn?(mn=_d.getRangedPages(Vt.page,xn,Vt.pageSize,Vt.pageRange),e[57]=Vt.page,e[58]=Vt.pageRange,e[59]=Vt.pageSize,e[60]=xn,e[61]=mn):mn=e[61];const{pages:Dn,rangedPages:cr}=mn;let En;e[62]!==g?(En=g??[],e[62]=g,e[63]=En):En=e[63];const[Ln,je]=En;let qt;if(e[64]!==Ln||e[65]!==Be||e[66]!==bn){let Fe;e[68]!==Ln||e[69]!==Be?(Fe=yt=>Ln==null?void 0:Ln.some(Bn=>Be(Bn,yt)),e[68]=Ln,e[69]=Be,e[70]=Fe):Fe=e[70],qt=bn.filter(Fe),e[64]=Ln,e[65]=Be,e[66]=bn,e[67]=qt}else qt=e[67];const rn=qt;let zn;if(e[71]!==m||e[72]!==bn){let Fe;e[74]!==m?(Fe=yt=>!(m!=null&&m(yt)),e[74]=m,e[75]=Fe):Fe=e[75],zn=bn.filter(Fe),e[71]=m,e[72]=bn,e[73]=zn}else zn=e[73];const $n=zn;let kn;e[76]!==Be||e[77]!==$n||e[78]!==rn?(kn=$n.length>0&&$n.every(Fe=>rn.some(yt=>Be(yt,Fe))),e[76]=Be,e[77]=$n,e[78]=rn,e[79]=kn):kn=e[79];const Tt=kn;let Se;e:{if(Tt){Se=!1;break e}let Fe;if(e[80]!==Be||e[81]!==$n||e[82]!==rn){let yt;e[84]!==Be||e[85]!==rn?(yt=Bn=>rn.some(mr=>Be(mr,Bn)),e[84]=Be,e[85]=rn,e[86]=yt):yt=e[86],Fe=$n.some(yt),e[80]=Be,e[81]=$n,e[82]=rn,e[83]=Fe}else Fe=e[83];Se=Fe}const rt=Se;let Et;e[87]!==Ln||e[88]!==w||e[89]!==Be||e[90]!==Tt||e[91]!==rt||e[92]!==$n||e[93]!==je?(Et=()=>{!Ln||!je||w||je(Tt||rt?Ln.filter(Fe=>!$n.some(yt=>Be(yt,Fe))):[...Ln,...$n])},e[87]=Ln,e[88]=w,e[89]=Be,e[90]=Tt,e[91]=rt,e[92]=$n,e[93]=je,e[94]=Et):Et=e[94];const wn=Et;let Tn;e[95]!==Ln||e[96]!==w||e[97]!==Be||e[98]!==je?(Tn=Fe=>{!Ln||!je||w||(Ln.some(yt=>Be(yt,Fe))?je(Ln.filter(yt=>!Be(yt,Fe))):je([...Ln,Fe]))},e[95]=Ln,e[96]=w,e[97]=Be,e[98]=je,e[99]=Tn):Tn=e[99];const Zn=Tn;let ir,gr;e[100]!==m||e[101]!==Ln||e[102]!==je?(ir=()=>{if(!je||!Ln||!m)return;Ln.filter(yt=>m(yt)).length>0&&je(Ln.filter(yt=>!m(yt)))},gr=[m,Ln,je],e[100]=m,e[101]=Ln,e[102]=je,e[103]=ir,e[104]=gr):(ir=e[103],gr=e[104]),B.useEffect(ir,gr);let Cn;e[105]!==Ln||e[106]!==Tt||e[107]!==rt||e[108]!==wn?(Cn=Ln&&M.jsx(w1,{isIndeterminate:rt,useCheck:[Tt,wn]}),e[105]=Ln,e[106]=Tt,e[107]=rt,e[108]=wn,e[109]=Cn):Cn=e[109];let qn;e[110]!==m||e[111]!==Ln||e[112]!==Be||e[113]!==Zn?(qn=Fe=>{const{item:yt}=Fe,Bn=m==null?void 0:m(yt),mr=typeof Bn=="string"?Bn:void 0,si=Ln==null?void 0:Ln.some(qi=>Be(qi,yt));return M.jsx(w1,{isDisabled:Bn,style:{zIndex:1},tooltip:mr,useCheck:[si,()=>Zn(yt)],onClick:Pk})},e[110]=m,e[111]=Ln,e[112]=Be,e[113]=Zn,e[114]=qn):qn=e[114];let _n;e[115]!==Cn||e[116]!==qn?(_n={hContent:Cn,content:qn,minWidth:32,maxWidth:32},e[115]=Cn,e[116]=qn,e[117]=_n):_n=e[117];const dr=_n;let li;e:{if(!g){li=Ke;break e}let Fe;e[118]!==dr||e[119]!==Ke?(Fe={checkDef:dr,...Ke},e[118]=dr,e[119]=Ke,e[120]=Fe):Fe=e[120],li=Fe}const wo=li;let fo;e[121]!==R||e[122]!==ln||e[123]!==wt?(fo=async Fe=>{R&&(kt(!0),await R(Fe),kt(!1)),ln==null||ln(Fe.pagination),wt==null||wt(Fe.sortation),Nn(Fe.filteration)},e[121]=R,e[122]=ln,e[123]=wt,e[124]=fo):fo=e[124];const Br=fo;let al;e[125]===Symbol.for("react.memo_cache_sentinel")?(al=Fe=>{var yt;(yt=Ne.current)==null||yt.call(Ne,Fe)},e[125]=al):al=e[125];const ho=al;let Si,Jl;e[126]!==be||e[127]!==E||e[128]!==nn||e[129]!==Br||e[130]!==Vt||e[131]!==Bt||e[132]!==Ze?(Si=()=>{if(!be)return;const Fe=Bn=>{const mr={entireItems:E,filteration:nn,pagination:Vt,sortation:Ze},si=Bn?Bn(mr):mr;Br(si)},yt=Bn=>{const mr={...Vt,page:1},si=Bn?Bn(nn):nn;Bt==null||Bt(si),Br({entireItems:E,filteration:si,pagination:mr,sortation:Ze})};be.current={fireOnStateChange:Fe,applyFilteration:yt,scrollToSelected:ho}},Jl=[be,Br,E,Bt,nn,Vt,Ze,ho],e[126]=be,e[127]=E,e[128]=nn,e[129]=Br,e[130]=Vt,e[131]=Bt,e[132]=Ze,e[133]=Si,e[134]=Jl):(Si=e[133],Jl=e[134]),B.useEffect(Si,Jl);let No;e[135]!==on||e[136]!==E||e[137]!==Br||e[138]!==Dn||e[139]!==Vt.page||e[140]!==Vt.pageSize||e[141]!==Ze?(No=Fe=>{Fe.page===Vt.page&&Fe.pageSize===Vt.pageSize||(Fe.page<1?Fe.page=1:Fe.page>Dn[Dn.length-1]&&(Fe.page=Dn[Dn.length-1]),Br({entireItems:E,filteration:on,pagination:Fe,sortation:Ze}))},e[135]=on,e[136]=E,e[137]=Br,e[138]=Dn,e[139]=Vt.page,e[140]=Vt.pageSize,e[141]=Ze,e[142]=No):No=e[142];const To=No;let jr;e[143]!==Bt?(jr=Fe=>{Bt&&Bt(Fe)},e[143]=Bt,e[144]=jr):jr=e[144];const fn=jr;let On;e[145]!==on||e[146]!==E||e[147]!==Br||e[148]!==Vt?(On=Fe=>{Br({entireItems:E,filteration:on,pagination:Vt,sortation:Fe})},e[145]=on,e[146]=E,e[147]=Br,e[148]=Vt,e[149]=On):On=e[149];const Ar=On;let ur;e[150]!==To||e[151]!==Vt?(ur=Fe=>{To({...Vt,page:Fe})},e[150]=To,e[151]=Vt,e[152]=ur):ur=e[152];const Fn=ur;let zr;e[153]!==Fn||e[154]!==Vt.page?(zr=()=>{Fn(Vt.page-1)},e[153]=Fn,e[154]=Vt.page,e[155]=zr):zr=e[155];const Lr=zr;let hi;e[156]!==Fn||e[157]!==Vt.page?(hi=()=>{Fn(Vt.page+1)},e[156]=Fn,e[157]=Vt.page,e[158]=hi):hi=e[158];const Ui=hi;let Fr;e[159]!==Fn?(Fr=()=>{Fn(1)},e[159]=Fn,e[160]=Fr):Fr=e[160];const Xo=Fr;let Co;e[161]!==Fn||e[162]!==Dn?(Co=()=>{Fn(Dn[Dn.length-1])},e[161]=Fn,e[162]=Dn,e[163]=Co):Co=e[163];const Fo=Co;let Ei;e[164]!==Fn||e[165]!==Xo||e[166]!==Fo||e[167]!==Ui||e[168]!==Lr?(Ei={move:Fn,movePrev:Lr,moveNext:Ui,moveFirst:Xo,moveLast:Fo},e[164]=Fn,e[165]=Xo,e[166]=Fo,e[167]=Ui,e[168]=Lr,e[169]=Ei):Ei=e[169];const $r=Ei;let xr;e[170]!==E||e[171]!==nn||e[172]!==Br||e[173]!==Vt||e[174]!==Ze?(xr=()=>{const Fe={...Vt,page:1};Br({entireItems:E,filteration:nn,pagination:Fe,sortation:Ze})},e[170]=E,e[171]=nn,e[172]=Br,e[173]=Vt,e[174]=Ze,e[175]=xr):xr=e[175];const vl=xr;let mi;e[176]!==ot?(mi=()=>{nt(!ot)},e[176]=ot,e[177]=mi):mi=e[177];const oo=mi;let Ko;e[178]!==it||e[179]!==ot||e[180]!==Bt||e[181]!==Mt||e[182]!==dt?(Ko=()=>{if(ot&&dt){const Fe=Zt.current;Fe?Mt==null||Mt(ex(dt,Fe)):Mt==null||Mt($2(dt))}else{const Fe=Ot.current;Fe?Bt==null||Bt(ex(it,Fe)):Bt==null||Bt($2(it))}},e[178]=it,e[179]=ot,e[180]=Bt,e[181]=Mt,e[182]=dt,e[183]=Ko):Ko=e[183];const Bo=Ko;let Gi;e[184]!==vl||e[185]!==Bo||e[186]!==oo?(Gi={apply:vl,toggle:oo,clear:Bo},e[184]=vl,e[185]=Bo,e[186]=oo,e[187]=Gi):Gi=e[187];const zo=Gi;let go;e[188]!==E||e[189]!==nn||e[190]!==$||e[191]!==Br||e[192]!==Vt||e[193]!==Ze?(go=()=>{$||Br({entireItems:E,filteration:nn,pagination:Vt,sortation:Ze})},e[188]=E,e[189]=nn,e[190]=$,e[191]=Br,e[192]=Vt,e[193]=Ze,e[194]=go):go=e[194],G3(go);let po;e[195]!==Ke?(po=rr.map(Ke,yt=>{const[Bn]=yt;return Ke[Bn].minWidth??jd}).reduce(Dk,0),e[195]=Ke,e[196]=po):po=e[196];const Ho=po,jn=oe!==void 0;let vo;e[197]!==Ho?(vo={minWidth:Ho},e[197]=Ho,e[198]=vo):vo=e[198];let di;e[199]!==re||e[200]!==de||e[201]!==Ln||e[202]!==Ke||e[203]!==zo||e[204]!==ge||e[205]!==nn||e[206]!==Ce||e[207]!==jn||e[208]!==ue||e[209]!==ne||e[210]!==fe||e[211]!==fn||e[212]!==Ar||e[213]!==G||e[214]!==xe||e[215]!==je||e[216]!==Ze||e[217]!==_||e[218]!==dt||e[219]!==xn||e[220]!==g?(di=!fe&&M.jsx(Mk,{defs:Ke,filterF:zo,filterType:ge,hasToggleFilteration:dt!==void 0,isFiltered:Ce,isRowRendered:jn,noCount:ue,noFilter:ne,placeholder:G,resources:xe,title:_,TopLeftAddon:re,TopRightAddon:de,totalCount:xn,useCheck:g&&Ln?[Ln,je]:void 0,useFilteration:[nn,fn],useSortation:[Ze,Ar]}),e[199]=re,e[200]=de,e[201]=Ln,e[202]=Ke,e[203]=zo,e[204]=ge,e[205]=nn,e[206]=Ce,e[207]=jn,e[208]=ue,e[209]=ne,e[210]=fe,e[211]=fn,e[212]=Ar,e[213]=G,e[214]=xe,e[215]=je,e[216]=Ze,e[217]=_,e[218]=dt,e[219]=xn,e[220]=g,e[221]=di):di=e[221];let Ao;e[222]!==Ar||e[223]!==Ze?(Ao=[Ze,Ar],e[222]=Ar,e[223]=Ze,e[224]=Ao):Ao=e[224];let er;e[225]===Symbol.for("react.memo_cache_sentinel")?(er=Fe=>Ne.current=Fe,e[225]=er):er=e[225];let wr;e[226]!==oe||e[227]!==on||e[228]!==wo||e[229]!==w||e[230]!==Be||e[231]!==Ct||e[232]!==jn||e[233]!==a||e[234]!==X||e[235]!==se||e[236]!==bn||e[237]!==Vt||e[238]!==o||e[239]!==xe||e[240]!==Te||e[241]!==h||e[242]!==K||e[243]!==Ao||e[244]!==l?(wr=M.jsx(qI,{appliedFilteration:on,defs:wo,isEqual:Be,isLoading:Ct,isRowRendered:jn,isSelectMulti:a,isTableDisabled:w,noDefHeader:X,noMarking:se,pagedItems:bn,pagination:Vt,resources:xe,rowHeight:Te,RowRenderer:oe,rProps:o,selectDisabled:h,showRows:K,useSelect:l,useSortation:Ao,onScrollToSelectedReady:er}),e[226]=oe,e[227]=on,e[228]=wo,e[229]=w,e[230]=Be,e[231]=Ct,e[232]=jn,e[233]=a,e[234]=X,e[235]=se,e[236]=bn,e[237]=Vt,e[238]=o,e[239]=xe,e[240]=Te,e[241]=h,e[242]=K,e[243]=Ao,e[244]=l,e[245]=wr):wr=e[245];let me;e[246]!==te||e[247]!==$r||e[248]!==Dn||e[249]!==Vt||e[250]!==cr?(me=!te&&M.jsx(ok,{pageF:$r,pages:Dn,pagination:Vt,rangedPages:cr}),e[246]=te,e[247]=$r,e[248]=Dn,e[249]=Vt,e[250]=cr,e[251]=me):me=e[251];let ct;return e[252]!==w||e[253]!==vo||e[254]!==di||e[255]!==wr||e[256]!==me?(ct=M.jsxs(Wi,{className:MI.ATable,isDisabled:w,style:vo,children:[di,wr,me]}),e[252]=w,e[253]=vo,e[254]=di,e[255]=wr,e[256]=me,e[257]=ct):ct=e[257],ct},Ok=n=>{const{defKey:e,item:t}=n;if(rr.hasKey(t,e)){const r=t[e];return rr.isReactNode(r)?r:null}else return null};function $2(n){const e={...n};for(const t in e)e[t].value=void 0;return e}function ex(n,e){const t={...n};for(const r in t){const i=e[r];i&&"value"in i?t[r].value=i.value:t[r].value=void 0}return t}function Pk(n){return n.stopPropagation()}function Dk(n,e){return n+e}const Nk="_AText_1asz6_1",Fk={AText:Nk},X3=n=>{const e=Vn.c(12),{text:t,styled:r,style:i}=n;let o;if(e[0]!==i||e[1]!==r||e[2]!==t){e:{if(t)if(r)if(i){if(r===!0)if(i==="bold"){let g;e[4]!==t?(g=M.jsx("b",{children:t}),e[4]=t,e[5]=g):g=e[5],o=g;break e}else{let g;e[6]!==i||e[7]!==t?(g=M.jsx("span",{style:i,children:t}),e[6]=i,e[7]=t,e[8]=g):g=e[8],o=g;break e}else if(typeof r=="string"){const g=t.split(r);if(i==="bold"){o=g.map((m,x)=>M.jsxs(B.Fragment,{children:[p0(m),x<g.length-1?M.jsx("b",{children:p0(r)}):""]},x));break e}o=g.map((m,x)=>M.jsxs(B.Fragment,{children:[p0(m),x<g.length-1&&M.jsx("span",{style:i,children:p0(r)})]},x));break e}}else{o=t;break e}else{o=t;break e}else{o="";break e}o=void 0}e[0]=i,e[1]=r,e[2]=t,e[3]=o}else o=e[3];const l=o;let a;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=bt.clsx("Body1Reading",Fk.AText,"NoSelect"),e[9]=a):a=e[9];let h;return e[10]!==l?(h=M.jsx("div",{className:a,children:l}),e[10]=l,e[11]=h):h=e[11],h};function p0(n){const e=n.split(`
|
|
287
287
|
`);return e.map((t,r)=>M.jsxs(B.Fragment,{children:[t,r!==e.length-1&&M.jsx("br",{})]},r))}const Bk="_Base_cpm4t_7",zk="_ATextArea_cpm4t_11",Hk="_Primary_cpm4t_34",Wk="_UnAvailable_cpm4t_39",Uk="_Secondary_cpm4t_47",Gk="_ReadOnly_cpm4t_59",v0={Base:Bk,ATextArea:zk,Primary:Hk,UnAvailable:Wk,Secondary:Uk,ReadOnly:Gk,Error:"_Error_cpm4t_66"},Yk=["Primary","Secondary","ReadOnly","Error"],Vk=n=>{const e=Vn.c(60);let t,r,i,o,l,a,h,g,m,x,w,_,E;if(e[0]!==n){const{onEnterPress:xe,errorMessage:Ne,type:Me,textAreaRef:Be,useValue:ke,rows:Ie,isReadonly:ze,placeholder:Ke,maxLength:Oe,tabIndex:ht,autoFocus:$e,textAreaProps:it,...et}=n;a=xe,r=Ne,_=Be,E=ke,g=Ie,i=ze,h=Ke,l=Oe,x=ht,t=$e,w=it,o=Me===void 0?"Primary":Me,m=Bg(et),e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=l,e[6]=a,e[7]=h,e[8]=g,e[9]=m,e[10]=x,e[11]=w,e[12]=_,e[13]=E}else t=e[1],r=e[2],i=e[3],o=e[4],l=e[5],a=e[6],h=e[7],g=e[8],m=e[9],x=e[10],w=e[11],_=e[12],E=e[13];const[R,k]=m;let O,P,z,H;e[14]!==R?({wrapId:P,wrapProps:z,labelProps:O,...H}=R,e[14]=R,e[15]=O,e[16]=P,e[17]=z,e[18]=H):(O=e[15],P=e[16],z=e[17],H=e[18]);let G;Zk(r)?G="Error":G=o;const N=G;let J;N==="ReadOnly"?J=!0:J=i;const Y=J,K=k.isDisabled||k.isLoading,[fe,X]=Do(E,"");let te;e[19]!==X?(te=xe=>{X&&X(xe)},e[19]=X,e[20]=te):te=e[20];const ne=te;let ue;e[21]!==ne||e[22]!==w||e[23]!==K?(ue=xe=>{var Ne;K||(ne(xe.target.value),(Ne=w==null?void 0:w.onChange)==null||Ne.call(w,xe))},e[21]=ne,e[22]=w,e[23]=K,e[24]=ue):ue=e[24];const se=ue;let $;e[25]!==a||e[26]!==w||e[27]!==K?($=xe=>{var Ne;if(!K){if((Ne=w==null?void 0:w.onKeyDown)==null||Ne.call(w,xe),xe.key==="Tab"){const Me=xe.currentTarget.selectionStart,Be=xe.currentTarget.selectionEnd;xe.currentTarget.value=xe.currentTarget.value.substring(0,Me)+" "+xe.currentTarget.value.substring(Be),xe.currentTarget.selectionStart=xe.currentTarget.selectionEnd=Me+1,xe.preventDefault()}else xe.key==="Enter"&&(a==null||a(xe.currentTarget.value),xe.stopPropagation());xe.key!=="Escape"&&xe.stopPropagation()}},e[25]=a,e[26]=w,e[27]=K,e[28]=$):$=e[28];const re=$;let de;e[29]!==O||e[30]!==P||e[31]!==z||e[32]!==H?(de={wrapId:P,wrapProps:z,labelProps:O,...H},e[29]=O,e[30]=P,e[31]=z,e[32]=H,e[33]=de):de=e[33];let be;e[34]!==k.className?(be=bt.clsx(v0.Base,k.className),e[34]=k.className,e[35]=be):be=e[35];let oe;e[36]!==(w==null?void 0:w.className)||e[37]!==N||e[38]!==K?(oe=bt.clsx(v0.ATextArea,v0[N],K&&v0.UnAvailable,w==null?void 0:w.className),e[36]=w==null?void 0:w.className,e[37]=N,e[38]=K,e[39]=oe):oe=e[39];const Q=k.isDisabled||k.isLoading?-1:x;let ge;e[40]!==t||e[41]!==Y||e[42]!==l||e[43]!==se||e[44]!==re||e[45]!==h||e[46]!==g||e[47]!==Q||e[48]!==oe||e[49]!==w||e[50]!==_||e[51]!==fe?(ge=M.jsx("textarea",{...w,ref:_,autoFocus:t,className:oe,maxLength:l,placeholder:h,readOnly:Y,rows:g,tabIndex:Q,value:fe,onChange:se,onKeyDown:re}),e[40]=t,e[41]=Y,e[42]=l,e[43]=se,e[44]=re,e[45]=h,e[46]=g,e[47]=Q,e[48]=oe,e[49]=w,e[50]=_,e[51]=fe,e[52]=ge):ge=e[52];let Te;e[53]!==k||e[54]!==ge||e[55]!==be?(Te=M.jsx(Wi,{...k,className:be,children:ge}),e[53]=k,e[54]=ge,e[55]=be,e[56]=Te):Te=e[56];let He;return e[57]!==Te||e[58]!==de?(He=M.jsx(lg,{...de,children:Te}),e[57]=Te,e[58]=de,e[59]=He):He=e[59],He};function Zk(n){return Array.isArray(n)?n.filter(Boolean).length>0:!!n}/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:K3,setPrototypeOf:tx,isFrozen:Xk,getPrototypeOf:Kk,getOwnPropertyDescriptor:Jk}=Object;let{freeze:Ou,seal:bh,create:My}=Object,{apply:Ly,construct:Oy}=typeof Reflect<"u"&&Reflect;Ou||(Ou=function(e){return e});bh||(bh=function(e){return e});Ly||(Ly=function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return e.apply(t,i)});Oy||(Oy=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return new e(...r)});const b0=Pu(Array.prototype.forEach),Qk=Pu(Array.prototype.lastIndexOf),nx=Pu(Array.prototype.pop),tp=Pu(Array.prototype.push),qk=Pu(Array.prototype.splice),Y0=Pu(String.prototype.toLowerCase),ab=Pu(String.prototype.toString),cb=Pu(String.prototype.match),np=Pu(String.prototype.replace),jk=Pu(String.prototype.indexOf),$k=Pu(String.prototype.trim),Rh=Pu(Object.prototype.hasOwnProperty),Mu=Pu(RegExp.prototype.test),rp=e7(TypeError);function Pu(n){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return Ly(n,e,r)}}function e7(n){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Oy(n,t)}}function Mi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Y0;tx&&tx(n,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=t(i);o!==i&&(Xk(e)||(e[r]=o),i=o)}n[i]=!0}return n}function t7(n){for(let e=0;e<n.length;e++)Rh(n,e)||(n[e]=null);return n}function Cd(n){const e=My(null);for(const[t,r]of K3(n))Rh(n,t)&&(Array.isArray(r)?e[t]=t7(r):r&&typeof r=="object"&&r.constructor===Object?e[t]=Cd(r):e[t]=r);return e}function ip(n,e){for(;n!==null;){const r=Jk(n,e);if(r){if(r.get)return Pu(r.get);if(typeof r.value=="function")return Pu(r.value)}n=Kk(n)}function t(){return null}return t}const rx=Ou(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ub=Ou(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fb=Ou(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),n7=Ou(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),hb=Ou(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),r7=Ou(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ix=Ou(["#text"]),ox=Ou(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),db=Ou(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lx=Ou(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),y0=Ou(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),i7=bh(/\{\{[\w\W]*|[\w\W]*\}\}/gm),o7=bh(/<%[\w\W]*|[\w\W]*%>/gm),l7=bh(/\$\{[\w\W]*/gm),s7=bh(/^data-[\-\w.\u00B7-\uFFFF]+$/),a7=bh(/^aria-[\-\w]+$/),J3=bh(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),c7=bh(/^(?:\w+script|data):/i),u7=bh(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q3=bh(/^html$/i),f7=bh(/^[a-z][.\w]*(-[.\w]+)+$/i);var sx=Object.freeze({__proto__:null,ARIA_ATTR:a7,ATTR_WHITESPACE:u7,CUSTOM_ELEMENT:f7,DATA_ATTR:s7,DOCTYPE_NAME:Q3,ERB_EXPR:o7,IS_ALLOWED_URI:J3,IS_SCRIPT_OR_DATA:c7,MUSTACHE_EXPR:i7,TMPLIT_EXPR:l7});const op={element:1,text:3,progressingInstruction:7,comment:8,document:9},h7=function(){return typeof window>"u"?null:window},d7=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(r=t.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ax=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function q3(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h7();const e=Tt=>q3(Tt);if(e.version="3.3.0",e.removed=[],!n||!n.document||n.document.nodeType!==op.document||!n.Element)return e.isSupported=!1,e;let{document:t}=n;const r=t,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:l,Node:a,Element:h,NodeFilter:g,NamedNodeMap:m=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:x,DOMParser:w,trustedTypes:_}=n,E=h.prototype,R=ip(E,"cloneNode"),k=ip(E,"remove"),O=ip(E,"nextSibling"),P=ip(E,"childNodes"),z=ip(E,"parentNode");if(typeof l=="function"){const Tt=t.createElement("template");Tt.content&&Tt.content.ownerDocument&&(t=Tt.content.ownerDocument)}let H,G="";const{implementation:N,createNodeIterator:J,createDocumentFragment:Y,getElementsByTagName:K}=t,{importNode:fe}=r;let X=ax();e.isSupported=typeof K3=="function"&&typeof z=="function"&&N&&N.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:te,ERB_EXPR:ne,TMPLIT_EXPR:ue,DATA_ATTR:se,ARIA_ATTR:$,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:de,CUSTOM_ELEMENT:be}=sx;let{IS_ALLOWED_URI:oe}=sx,Q=null;const ge=Mi({},[...rx,...ub,...fb,...hb,...ix]);let Te=null;const He=Mi({},[...ox,...db,...lx,...y0]);let xe=Object.seal(My(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,Me=null;const Be=Object.seal(My(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ke=!0,Ie=!0,ze=!1,Ke=!0,Oe=!1,ht=!0,$e=!1,it=!1,et=!1,st=!1,dt=!1,Mt=!1,ot=!0,nt=!1;const Ot="user-content-";let Zt=!0,Rt=!1,tn={},Ft=null;const yn=Mi({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let dn=null;const nn=Mi({},["audio","video","img","source","image","track"]);let Bt=null;const on=Mi({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",gn="http://www.w3.org/1999/xhtml";let Ue=gn,Ce=!1,Ze=null;const wt=Mi({},[Nn,Rn,gn],ab);let Kt=Mi({},["mi","mo","mn","ms","mtext"]),Gt=Mi({},["annotation-xml"]);const pn=Mi({},["title","style","font","a","script"]);let un=null;const ft=["application/xhtml+xml","text/html"],kt="text/html";let Ct=null,zt=null;const ln=t.createElement("form"),mt=function(Se){return Se instanceof RegExp||Se instanceof Function},Lt=function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(zt&&zt===Se)){if((!Se||typeof Se!="object")&&(Se={}),Se=Cd(Se),un=ft.indexOf(Se.PARSER_MEDIA_TYPE)===-1?kt:Se.PARSER_MEDIA_TYPE,Ct=un==="application/xhtml+xml"?ab:Y0,Q=Rh(Se,"ALLOWED_TAGS")?Mi({},Se.ALLOWED_TAGS,Ct):ge,Te=Rh(Se,"ALLOWED_ATTR")?Mi({},Se.ALLOWED_ATTR,Ct):He,Ze=Rh(Se,"ALLOWED_NAMESPACES")?Mi({},Se.ALLOWED_NAMESPACES,ab):wt,Bt=Rh(Se,"ADD_URI_SAFE_ATTR")?Mi(Cd(on),Se.ADD_URI_SAFE_ATTR,Ct):on,dn=Rh(Se,"ADD_DATA_URI_TAGS")?Mi(Cd(nn),Se.ADD_DATA_URI_TAGS,Ct):nn,Ft=Rh(Se,"FORBID_CONTENTS")?Mi({},Se.FORBID_CONTENTS,Ct):yn,Ne=Rh(Se,"FORBID_TAGS")?Mi({},Se.FORBID_TAGS,Ct):Cd({}),Me=Rh(Se,"FORBID_ATTR")?Mi({},Se.FORBID_ATTR,Ct):Cd({}),tn=Rh(Se,"USE_PROFILES")?Se.USE_PROFILES:!1,ke=Se.ALLOW_ARIA_ATTR!==!1,Ie=Se.ALLOW_DATA_ATTR!==!1,ze=Se.ALLOW_UNKNOWN_PROTOCOLS||!1,Ke=Se.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Oe=Se.SAFE_FOR_TEMPLATES||!1,ht=Se.SAFE_FOR_XML!==!1,$e=Se.WHOLE_DOCUMENT||!1,st=Se.RETURN_DOM||!1,dt=Se.RETURN_DOM_FRAGMENT||!1,Mt=Se.RETURN_TRUSTED_TYPE||!1,et=Se.FORCE_BODY||!1,ot=Se.SANITIZE_DOM!==!1,nt=Se.SANITIZE_NAMED_PROPS||!1,Zt=Se.KEEP_CONTENT!==!1,Rt=Se.IN_PLACE||!1,oe=Se.ALLOWED_URI_REGEXP||J3,Ue=Se.NAMESPACE||gn,Kt=Se.MATHML_TEXT_INTEGRATION_POINTS||Kt,Gt=Se.HTML_INTEGRATION_POINTS||Gt,xe=Se.CUSTOM_ELEMENT_HANDLING||{},Se.CUSTOM_ELEMENT_HANDLING&&mt(Se.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=Se.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Se.CUSTOM_ELEMENT_HANDLING&&mt(Se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=Se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Se.CUSTOM_ELEMENT_HANDLING&&typeof Se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(xe.allowCustomizedBuiltInElements=Se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Ie=!1),dt&&(st=!0),tn&&(Q=Mi({},ix),Te=[],tn.html===!0&&(Mi(Q,rx),Mi(Te,ox)),tn.svg===!0&&(Mi(Q,ub),Mi(Te,db),Mi(Te,y0)),tn.svgFilters===!0&&(Mi(Q,fb),Mi(Te,db),Mi(Te,y0)),tn.mathMl===!0&&(Mi(Q,hb),Mi(Te,lx),Mi(Te,y0))),Se.ADD_TAGS&&(typeof Se.ADD_TAGS=="function"?Be.tagCheck=Se.ADD_TAGS:(Q===ge&&(Q=Cd(Q)),Mi(Q,Se.ADD_TAGS,Ct))),Se.ADD_ATTR&&(typeof Se.ADD_ATTR=="function"?Be.attributeCheck=Se.ADD_ATTR:(Te===He&&(Te=Cd(Te)),Mi(Te,Se.ADD_ATTR,Ct))),Se.ADD_URI_SAFE_ATTR&&Mi(Bt,Se.ADD_URI_SAFE_ATTR,Ct),Se.FORBID_CONTENTS&&(Ft===yn&&(Ft=Cd(Ft)),Mi(Ft,Se.FORBID_CONTENTS,Ct)),Zt&&(Q["#text"]=!0),$e&&Mi(Q,["html","head","body"]),Q.table&&(Mi(Q,["tbody"]),delete Ne.tbody),Se.TRUSTED_TYPES_POLICY){if(typeof Se.TRUSTED_TYPES_POLICY.createHTML!="function")throw rp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Se.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw rp('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=Se.TRUSTED_TYPES_POLICY,G=H.createHTML("")}else H===void 0&&(H=d7(_,i)),H!==null&&typeof G=="string"&&(G=H.createHTML(""));Ou&&Ou(Se),zt=Se}},en=Mi({},[...ub,...fb,...n7]),bn=Mi({},[...hb,...r7]),xn=function(Se){let rt=z(Se);(!rt||!rt.tagName)&&(rt={namespaceURI:Ue,tagName:"template"});const Et=Y0(Se.tagName),wn=Y0(rt.tagName);return Ze[Se.namespaceURI]?Se.namespaceURI===Rn?rt.namespaceURI===gn?Et==="svg":rt.namespaceURI===Nn?Et==="svg"&&(wn==="annotation-xml"||Kt[wn]):!!en[Et]:Se.namespaceURI===Nn?rt.namespaceURI===gn?Et==="math":rt.namespaceURI===Rn?Et==="math"&&Gt[wn]:!!bn[Et]:Se.namespaceURI===gn?rt.namespaceURI===Rn&&!Gt[wn]||rt.namespaceURI===Nn&&!Kt[wn]?!1:!bn[Et]&&(pn[Et]||!en[Et]):!!(un==="application/xhtml+xml"&&Ze[Se.namespaceURI]):!1},Vt=function(Se){tp(e.removed,{element:Se});try{z(Se).removeChild(Se)}catch{k(Se)}},mn=function(Se,rt){try{tp(e.removed,{attribute:rt.getAttributeNode(Se),from:rt})}catch{tp(e.removed,{attribute:null,from:rt})}if(rt.removeAttribute(Se),Se==="is")if(st||dt)try{Vt(rt)}catch{}else try{rt.setAttribute(Se,"")}catch{}},Dn=function(Se){let rt=null,Et=null;if(et)Se="<remove></remove>"+Se;else{const Zn=cb(Se,/^[\r\n\t ]+/);Et=Zn&&Zn[0]}un==="application/xhtml+xml"&&Ue===gn&&(Se='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Se+"</body></html>");const wn=H?H.createHTML(Se):Se;if(Ue===gn)try{rt=new w().parseFromString(wn,un)}catch{}if(!rt||!rt.documentElement){rt=N.createDocument(Ue,"template",null);try{rt.documentElement.innerHTML=Ce?G:wn}catch{}}const Tn=rt.body||rt.documentElement;return Se&&Et&&Tn.insertBefore(t.createTextNode(Et),Tn.childNodes[0]||null),Ue===gn?K.call(rt,$e?"html":"body")[0]:$e?rt.documentElement:Tn},cr=function(Se){return J.call(Se.ownerDocument||Se,Se,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},En=function(Se){return Se instanceof x&&(typeof Se.nodeName!="string"||typeof Se.textContent!="string"||typeof Se.removeChild!="function"||!(Se.attributes instanceof m)||typeof Se.removeAttribute!="function"||typeof Se.setAttribute!="function"||typeof Se.namespaceURI!="string"||typeof Se.insertBefore!="function"||typeof Se.hasChildNodes!="function")},Ln=function(Se){return typeof a=="function"&&Se instanceof a};function je(Tt,Se,rt){b0(Tt,Et=>{Et.call(e,Se,rt,zt)})}const qt=function(Se){let rt=null;if(je(X.beforeSanitizeElements,Se,null),En(Se))return Vt(Se),!0;const Et=Ct(Se.nodeName);if(je(X.uponSanitizeElement,Se,{tagName:Et,allowedTags:Q}),ht&&Se.hasChildNodes()&&!Ln(Se.firstElementChild)&&Mu(/<[/\w!]/g,Se.innerHTML)&&Mu(/<[/\w!]/g,Se.textContent)||Se.nodeType===op.progressingInstruction||ht&&Se.nodeType===op.comment&&Mu(/<[/\w]/g,Se.data))return Vt(Se),!0;if(!(Be.tagCheck instanceof Function&&Be.tagCheck(Et))&&(!Q[Et]||Ne[Et])){if(!Ne[Et]&&zn(Et)&&(xe.tagNameCheck instanceof RegExp&&Mu(xe.tagNameCheck,Et)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Et)))return!1;if(Zt&&!Ft[Et]){const wn=z(Se)||Se.parentNode,Tn=P(Se)||Se.childNodes;if(Tn&&wn){const Zn=Tn.length;for(let ir=Zn-1;ir>=0;--ir){const gr=R(Tn[ir],!0);gr.__removalCount=(Se.__removalCount||0)+1,wn.insertBefore(gr,O(Se))}}}return Vt(Se),!0}return Se instanceof h&&!xn(Se)||(Et==="noscript"||Et==="noembed"||Et==="noframes")&&Mu(/<\/no(script|embed|frames)/i,Se.innerHTML)?(Vt(Se),!0):(Oe&&Se.nodeType===op.text&&(rt=Se.textContent,b0([te,ne,ue],wn=>{rt=np(rt,wn," ")}),Se.textContent!==rt&&(tp(e.removed,{element:Se.cloneNode()}),Se.textContent=rt)),je(X.afterSanitizeElements,Se,null),!1)},rn=function(Se,rt,Et){if(ot&&(rt==="id"||rt==="name")&&(Et in t||Et in ln))return!1;if(!(Ie&&!Me[rt]&&Mu(se,rt))){if(!(ke&&Mu($,rt))){if(!(Be.attributeCheck instanceof Function&&Be.attributeCheck(rt,Se))){if(!Te[rt]||Me[rt]){if(!(zn(Se)&&(xe.tagNameCheck instanceof RegExp&&Mu(xe.tagNameCheck,Se)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Se))&&(xe.attributeNameCheck instanceof RegExp&&Mu(xe.attributeNameCheck,rt)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(rt,Se))||rt==="is"&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&Mu(xe.tagNameCheck,Et)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Et))))return!1}else if(!Bt[rt]){if(!Mu(oe,np(Et,de,""))){if(!((rt==="src"||rt==="xlink:href"||rt==="href")&&Se!=="script"&&jk(Et,"data:")===0&&dn[Se])){if(!(ze&&!Mu(re,np(Et,de,"")))){if(Et)return!1}}}}}}}return!0},zn=function(Se){return Se!=="annotation-xml"&&cb(Se,be)},$n=function(Se){je(X.beforeSanitizeAttributes,Se,null);const{attributes:rt}=Se;if(!rt||En(Se))return;const Et={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let wn=rt.length;for(;wn--;){const Tn=rt[wn],{name:Zn,namespaceURI:ir,value:gr}=Tn,Cn=Ct(Zn),qn=gr;let _n=Zn==="value"?qn:$k(qn);if(Et.attrName=Cn,Et.attrValue=_n,Et.keepAttr=!0,Et.forceKeepAttr=void 0,je(X.uponSanitizeAttribute,Se,Et),_n=Et.attrValue,nt&&(Cn==="id"||Cn==="name")&&(mn(Zn,Se),_n=Ot+_n),ht&&Mu(/((--!?|])>)|<\/(style|title|textarea)/i,_n)){mn(Zn,Se);continue}if(Cn==="attributename"&&cb(_n,"href")){mn(Zn,Se);continue}if(Et.forceKeepAttr)continue;if(!Et.keepAttr){mn(Zn,Se);continue}if(!Ke&&Mu(/\/>/i,_n)){mn(Zn,Se);continue}Oe&&b0([te,ne,ue],li=>{_n=np(_n,li," ")});const dr=Ct(Se.nodeName);if(!rn(dr,Cn,_n)){mn(Zn,Se);continue}if(H&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!ir)switch(_.getAttributeType(dr,Cn)){case"TrustedHTML":{_n=H.createHTML(_n);break}case"TrustedScriptURL":{_n=H.createScriptURL(_n);break}}if(_n!==qn)try{ir?Se.setAttributeNS(ir,Zn,_n):Se.setAttribute(Zn,_n),En(Se)?Vt(Se):nx(e.removed)}catch{mn(Zn,Se)}}je(X.afterSanitizeAttributes,Se,null)},kn=function Tt(Se){let rt=null;const Et=cr(Se);for(je(X.beforeSanitizeShadowDOM,Se,null);rt=Et.nextNode();)je(X.uponSanitizeShadowNode,rt,null),qt(rt),$n(rt),rt.content instanceof o&&Tt(rt.content);je(X.afterSanitizeShadowDOM,Se,null)};return e.sanitize=function(Tt){let Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=null,Et=null,wn=null,Tn=null;if(Ce=!Tt,Ce&&(Tt="<!-->"),typeof Tt!="string"&&!Ln(Tt))if(typeof Tt.toString=="function"){if(Tt=Tt.toString(),typeof Tt!="string")throw rp("dirty is not a string, aborting")}else throw rp("toString is not a function");if(!e.isSupported)return Tt;if(it||Lt(Se),e.removed=[],typeof Tt=="string"&&(Rt=!1),Rt){if(Tt.nodeName){const gr=Ct(Tt.nodeName);if(!Q[gr]||Ne[gr])throw rp("root node is forbidden and cannot be sanitized in-place")}}else if(Tt instanceof a)rt=Dn("<!---->"),Et=rt.ownerDocument.importNode(Tt,!0),Et.nodeType===op.element&&Et.nodeName==="BODY"||Et.nodeName==="HTML"?rt=Et:rt.appendChild(Et);else{if(!st&&!Oe&&!$e&&Tt.indexOf("<")===-1)return H&&Mt?H.createHTML(Tt):Tt;if(rt=Dn(Tt),!rt)return st?null:Mt?G:""}rt&&et&&Vt(rt.firstChild);const Zn=cr(Rt?Tt:rt);for(;wn=Zn.nextNode();)qt(wn),$n(wn),wn.content instanceof o&&kn(wn.content);if(Rt)return Tt;if(st){if(dt)for(Tn=Y.call(rt.ownerDocument);rt.firstChild;)Tn.appendChild(rt.firstChild);else Tn=rt;return(Te.shadowroot||Te.shadowrootmode)&&(Tn=fe.call(r,Tn,!0)),Tn}let ir=$e?rt.outerHTML:rt.innerHTML;return $e&&Q["!doctype"]&&rt.ownerDocument&&rt.ownerDocument.doctype&&rt.ownerDocument.doctype.name&&Mu(Q3,rt.ownerDocument.doctype.name)&&(ir="<!DOCTYPE "+rt.ownerDocument.doctype.name+`>
|
|
288
|
-
`+ir),Oe&&b0([te,ne,ue],gr=>{ir=np(ir,gr," ")}),H&&Mt?H.createHTML(ir):ir},e.setConfig=function(){let Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lt(Tt),it=!0},e.clearConfig=function(){zt=null,it=!1},e.isValidAttribute=function(Tt,Se,rt){zt||Lt({});const Et=Ct(Tt),wn=Ct(Se);return rn(Et,wn,rt)},e.addHook=function(Tt,Se){typeof Se=="function"&&tp(X[Tt],Se)},e.removeHook=function(Tt,Se){if(Se!==void 0){const rt=Qk(X[Tt],Se);return rt===-1?void 0:qk(X[Tt],rt,1)[0]}return nx(X[Tt])},e.removeHooks=function(Tt){X[Tt]=[]},e.removeAllHooks=function(){X=ax()},e}var g7=q3(),m0={exports:{}},gb,cx;function p7(){if(cx)return gb;cx=1;var n=-1,e=1,t=0;function r(X,te,ne,ue,se){if(X===te)return X?[[t,X]]:[];if(ne!=null){var $=K(X,te,ne);if($)return $}var re=a(X,te),de=X.substring(0,re);X=X.substring(re),te=te.substring(re),re=g(X,te);var be=X.substring(X.length-re);X=X.substring(0,X.length-re),te=te.substring(0,te.length-re);var oe=i(X,te);return de&&oe.unshift([t,de]),be&&oe.push([t,be]),P(oe,se),ue&&x(oe),oe}function i(X,te){var ne;if(!X)return[[e,te]];if(!te)return[[n,X]];var ue=X.length>te.length?X:te,se=X.length>te.length?te:X,$=ue.indexOf(se);if($!==-1)return ne=[[e,ue.substring(0,$)],[t,se],[e,ue.substring($+se.length)]],X.length>te.length&&(ne[0][0]=ne[2][0]=n),ne;if(se.length===1)return[[n,X],[e,te]];var re=m(X,te);if(re){var de=re[0],be=re[1],oe=re[2],Q=re[3],ge=re[4],Te=r(de,oe),He=r(be,Q);return Te.concat([[t,ge]],He)}return o(X,te)}function o(X,te){for(var ne=X.length,ue=te.length,se=Math.ceil((ne+ue)/2),$=se,re=2*se,de=new Array(re),be=new Array(re),oe=0;oe<re;oe++)de[oe]=-1,be[oe]=-1;de[$+1]=0,be[$+1]=0;for(var Q=ne-ue,ge=Q%2!==0,Te=0,He=0,xe=0,Ne=0,Me=0;Me<se;Me++){for(var Be=-Me+Te;Be<=Me-He;Be+=2){var ke=$+Be,Ie;Be===-Me||Be!==Me&&de[ke-1]<de[ke+1]?Ie=de[ke+1]:Ie=de[ke-1]+1;for(var ze=Ie-Be;Ie<ne&&ze<ue&&X.charAt(Ie)===te.charAt(ze);)Ie++,ze++;if(de[ke]=Ie,Ie>ne)He+=2;else if(ze>ue)Te+=2;else if(ge){var Ke=$+Q-Be;if(Ke>=0&&Ke<re&&be[Ke]!==-1){var Oe=ne-be[Ke];if(Ie>=Oe)return l(X,te,Ie,ze)}}}for(var ht=-Me+xe;ht<=Me-Ne;ht+=2){var Ke=$+ht,Oe;ht===-Me||ht!==Me&&be[Ke-1]<be[Ke+1]?Oe=be[Ke+1]:Oe=be[Ke-1]+1;for(var $e=Oe-ht;Oe<ne&&$e<ue&&X.charAt(ne-Oe-1)===te.charAt(ue-$e-1);)Oe++,$e++;if(be[Ke]=Oe,Oe>ne)Ne+=2;else if($e>ue)xe+=2;else if(!ge){var ke=$+Q-ht;if(ke>=0&&ke<re&&de[ke]!==-1){var Ie=de[ke],ze=$+Ie-ke;if(Oe=ne-Oe,Ie>=Oe)return l(X,te,Ie,ze)}}}}return[[n,X],[e,te]]}function l(X,te,ne,ue){var se=X.substring(0,ne),$=te.substring(0,ue),re=X.substring(ne),de=te.substring(ue),be=r(se,$),oe=r(re,de);return be.concat(oe)}function a(X,te){if(!X||!te||X.charAt(0)!==te.charAt(0))return 0;for(var ne=0,ue=Math.min(X.length,te.length),se=ue,$=0;ne<se;)X.substring($,se)==te.substring($,se)?(ne=se,$=ne):ue=se,se=Math.floor((ue-ne)/2+ne);return z(X.charCodeAt(se-1))&&se--,se}function h(X,te){var ne=X.length,ue=te.length;if(ne==0||ue==0)return 0;ne>ue?X=X.substring(ne-ue):ne<ue&&(te=te.substring(0,ne));var se=Math.min(ne,ue);if(X==te)return se;for(var $=0,re=1;;){var de=X.substring(se-re),be=te.indexOf(de);if(be==-1)return $;re+=be,(be==0||X.substring(se-re)==te.substring(0,re))&&($=re,re++)}}function g(X,te){if(!X||!te||X.slice(-1)!==te.slice(-1))return 0;for(var ne=0,ue=Math.min(X.length,te.length),se=ue,$=0;ne<se;)X.substring(X.length-se,X.length-$)==te.substring(te.length-se,te.length-$)?(ne=se,$=ne):ue=se,se=Math.floor((ue-ne)/2+ne);return H(X.charCodeAt(X.length-se))&&se--,se}function m(X,te){var ne=X.length>te.length?X:te,ue=X.length>te.length?te:X;if(ne.length<4||ue.length*2<ne.length)return null;function se(He,xe,Ne){for(var Me=He.substring(Ne,Ne+Math.floor(He.length/4)),Be=-1,ke="",Ie,ze,Ke,Oe;(Be=xe.indexOf(Me,Be+1))!==-1;){var ht=a(He.substring(Ne),xe.substring(Be)),$e=g(He.substring(0,Ne),xe.substring(0,Be));ke.length<$e+ht&&(ke=xe.substring(Be-$e,Be)+xe.substring(Be,Be+ht),Ie=He.substring(0,Ne-$e),ze=He.substring(Ne+ht),Ke=xe.substring(0,Be-$e),Oe=xe.substring(Be+ht))}return ke.length*2>=He.length?[Ie,ze,Ke,Oe,ke]:null}var $=se(ne,ue,Math.ceil(ne.length/4)),re=se(ne,ue,Math.ceil(ne.length/2)),de;if(!$&&!re)return null;re?$?de=$[4].length>re[4].length?$:re:de=re:de=$;var be,oe,Q,ge;X.length>te.length?(be=de[0],oe=de[1],Q=de[2],ge=de[3]):(Q=de[0],ge=de[1],be=de[2],oe=de[3]);var Te=de[4];return[be,oe,Q,ge,Te]}function x(X){for(var te=!1,ne=[],ue=0,se=null,$=0,re=0,de=0,be=0,oe=0;$<X.length;)X[$][0]==t?(ne[ue++]=$,re=be,de=oe,be=0,oe=0,se=X[$][1]):(X[$][0]==e?be+=X[$][1].length:oe+=X[$][1].length,se&&se.length<=Math.max(re,de)&&se.length<=Math.max(be,oe)&&(X.splice(ne[ue-1],0,[n,se]),X[ne[ue-1]+1][0]=e,ue--,ue--,$=ue>0?ne[ue-1]:-1,re=0,de=0,be=0,oe=0,se=null,te=!0)),$++;for(te&&P(X),O(X),$=1;$<X.length;){if(X[$-1][0]==n&&X[$][0]==e){var Q=X[$-1][1],ge=X[$][1],Te=h(Q,ge),He=h(ge,Q);Te>=He?(Te>=Q.length/2||Te>=ge.length/2)&&(X.splice($,0,[t,ge.substring(0,Te)]),X[$-1][1]=Q.substring(0,Q.length-Te),X[$+1][1]=ge.substring(Te),$++):(He>=Q.length/2||He>=ge.length/2)&&(X.splice($,0,[t,Q.substring(0,He)]),X[$-1][0]=e,X[$-1][1]=ge.substring(0,ge.length-He),X[$+1][0]=n,X[$+1][1]=Q.substring(He),$++),$++}$++}}var w=/[^a-zA-Z0-9]/,_=/\s/,E=/[\r\n]/,R=/\n\r?\n$/,k=/^\r?\n\r?\n/;function O(X){function te(He,xe){if(!He||!xe)return 6;var Ne=He.charAt(He.length-1),Me=xe.charAt(0),Be=Ne.match(w),ke=Me.match(w),Ie=Be&&Ne.match(_),ze=ke&&Me.match(_),Ke=Ie&&Ne.match(E),Oe=ze&&Me.match(E),ht=Ke&&He.match(R),$e=Oe&&xe.match(k);return ht||$e?5:Ke||Oe?4:Be&&!Ie&&ze?3:Ie||ze?2:Be||ke?1:0}for(var ne=1;ne<X.length-1;){if(X[ne-1][0]==t&&X[ne+1][0]==t){var ue=X[ne-1][1],se=X[ne][1],$=X[ne+1][1],re=g(ue,se);if(re){var de=se.substring(se.length-re);ue=ue.substring(0,ue.length-re),se=de+se.substring(0,se.length-re),$=de+$}for(var be=ue,oe=se,Q=$,ge=te(ue,se)+te(se,$);se.charAt(0)===$.charAt(0);){ue+=se.charAt(0),se=se.substring(1)+$.charAt(0),$=$.substring(1);var Te=te(ue,se)+te(se,$);Te>=ge&&(ge=Te,be=ue,oe=se,Q=$)}X[ne-1][1]!=be&&(be?X[ne-1][1]=be:(X.splice(ne-1,1),ne--),X[ne][1]=oe,Q?X[ne+1][1]=Q:(X.splice(ne+1,1),ne--))}ne++}}function P(X,te){X.push([t,""]);for(var ne=0,ue=0,se=0,$="",re="",de;ne<X.length;){if(ne<X.length-1&&!X[ne][1]){X.splice(ne,1);continue}switch(X[ne][0]){case e:se++,re+=X[ne][1],ne++;break;case n:ue++,$+=X[ne][1],ne++;break;case t:var be=ne-se-ue-1;if(te){if(be>=0&&N(X[be][1])){var oe=X[be][1].slice(-1);if(X[be][1]=X[be][1].slice(0,-1),$=oe+$,re=oe+re,!X[be][1]){X.splice(be,1),ne--;var Q=be-1;X[Q]&&X[Q][0]===e&&(se++,re=X[Q][1]+re,Q--),X[Q]&&X[Q][0]===n&&(ue++,$=X[Q][1]+$,Q--),be=Q}}if(G(X[ne][1])){var oe=X[ne][1].charAt(0);X[ne][1]=X[ne][1].slice(1),$+=oe,re+=oe}}if(ne<X.length-1&&!X[ne][1]){X.splice(ne,1);break}if($.length>0||re.length>0){$.length>0&&re.length>0&&(de=a(re,$),de!==0&&(be>=0?X[be][1]+=re.substring(0,de):(X.splice(0,0,[t,re.substring(0,de)]),ne++),re=re.substring(de),$=$.substring(de)),de=g(re,$),de!==0&&(X[ne][1]=re.substring(re.length-de)+X[ne][1],re=re.substring(0,re.length-de),$=$.substring(0,$.length-de)));var ge=se+ue;$.length===0&&re.length===0?(X.splice(ne-ge,ge),ne=ne-ge):$.length===0?(X.splice(ne-ge,ge,[e,re]),ne=ne-ge+1):re.length===0?(X.splice(ne-ge,ge,[n,$]),ne=ne-ge+1):(X.splice(ne-ge,ge,[n,$],[e,re]),ne=ne-ge+2)}ne!==0&&X[ne-1][0]===t?(X[ne-1][1]+=X[ne][1],X.splice(ne,1)):ne++,se=0,ue=0,$="",re="";break}}X[X.length-1][1]===""&&X.pop();var Te=!1;for(ne=1;ne<X.length-1;)X[ne-1][0]===t&&X[ne+1][0]===t&&(X[ne][1].substring(X[ne][1].length-X[ne-1][1].length)===X[ne-1][1]?(X[ne][1]=X[ne-1][1]+X[ne][1].substring(0,X[ne][1].length-X[ne-1][1].length),X[ne+1][1]=X[ne-1][1]+X[ne+1][1],X.splice(ne-1,1),Te=!0):X[ne][1].substring(0,X[ne+1][1].length)==X[ne+1][1]&&(X[ne-1][1]+=X[ne+1][1],X[ne][1]=X[ne][1].substring(X[ne+1][1].length)+X[ne+1][1],X.splice(ne+1,1),Te=!0)),ne++;Te&&P(X,te)}function z(X){return X>=55296&&X<=56319}function H(X){return X>=56320&&X<=57343}function G(X){return H(X.charCodeAt(0))}function N(X){return z(X.charCodeAt(X.length-1))}function J(X){for(var te=[],ne=0;ne<X.length;ne++)X[ne][1].length>0&&te.push(X[ne]);return te}function Y(X,te,ne,ue){return N(X)||G(ue)?null:J([[t,X],[n,te],[e,ne],[t,ue]])}function K(X,te,ne){var ue=typeof ne=="number"?{index:ne,length:0}:ne.oldRange,se=typeof ne=="number"?null:ne.newRange,$=X.length,re=te.length;if(ue.length===0&&(se===null||se.length===0)){var de=ue.index,be=X.slice(0,de),oe=X.slice(de),Q=se?se.index:null;e:{var ge=de+re-$;if(Q!==null&&Q!==ge||ge<0||ge>re)break e;var Te=te.slice(0,ge),He=te.slice(ge);if(He!==oe)break e;var xe=Math.min(de,ge),Ne=be.slice(0,xe),Me=Te.slice(0,xe);if(Ne!==Me)break e;var Be=be.slice(xe),ke=Te.slice(xe);return Y(Ne,Be,ke,oe)}e:{if(Q!==null&&Q!==de)break e;var Ie=de,Te=te.slice(0,Ie),He=te.slice(Ie);if(Te!==be)break e;var ze=Math.min($-Ie,re-Ie),Ke=oe.slice(oe.length-ze),Oe=He.slice(He.length-ze);if(Ke!==Oe)break e;var Be=oe.slice(0,oe.length-ze),ke=He.slice(0,He.length-ze);return Y(be,Be,ke,Ke)}}if(ue.length>0&&se&&se.length===0)e:{var Ne=X.slice(0,ue.index),Ke=X.slice(ue.index+ue.length),xe=Ne.length,ze=Ke.length;if(re<xe+ze)break e;var Me=te.slice(0,xe),Oe=te.slice(re-ze);if(Ne!==Me||Ke!==Oe)break e;var Be=X.slice(xe,$-ze),ke=te.slice(xe,re-ze);return Y(Ne,Be,ke,Ke)}return null}function fe(X,te,ne,ue){return r(X,te,ne,ue,!0)}return fe.INSERT=e,fe.DELETE=n,fe.EQUAL=t,gb=fe,gb}var vp={exports:{}};vp.exports;var ux;function j3(){return ux||(ux=1,(function(n,e){var t=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",l="[object Array]",a="[object Boolean]",h="[object Date]",g="[object Error]",m="[object Function]",x="[object GeneratorFunction]",w="[object Map]",_="[object Number]",E="[object Object]",R="[object Promise]",k="[object RegExp]",O="[object Set]",P="[object String]",z="[object Symbol]",H="[object WeakMap]",G="[object ArrayBuffer]",N="[object DataView]",J="[object Float32Array]",Y="[object Float64Array]",K="[object Int8Array]",fe="[object Int16Array]",X="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",ue="[object Uint16Array]",se="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,re=/\w*$/,de=/^\[object .+?Constructor\]$/,be=/^(?:0|[1-9]\d*)$/,oe={};oe[o]=oe[l]=oe[G]=oe[N]=oe[a]=oe[h]=oe[J]=oe[Y]=oe[K]=oe[fe]=oe[X]=oe[w]=oe[_]=oe[E]=oe[k]=oe[O]=oe[P]=oe[z]=oe[te]=oe[ne]=oe[ue]=oe[se]=!0,oe[g]=oe[m]=oe[H]=!1;var Q=typeof jh=="object"&&jh&&jh.Object===Object&&jh,ge=typeof self=="object"&&self&&self.Object===Object&&self,Te=Q||ge||Function("return this")(),He=e&&!e.nodeType&&e,xe=He&&!0&&n&&!n.nodeType&&n,Ne=xe&&xe.exports===He;function Me(me,ct){return me.set(ct[0],ct[1]),me}function Be(me,ct){return me.add(ct),me}function ke(me,ct){for(var Fe=-1,yt=me?me.length:0;++Fe<yt&&ct(me[Fe],Fe,me)!==!1;);return me}function Ie(me,ct){for(var Fe=-1,yt=ct.length,Bn=me.length;++Fe<yt;)me[Bn+Fe]=ct[Fe];return me}function ze(me,ct,Fe,yt){for(var Bn=-1,mr=me?me.length:0;++Bn<mr;)Fe=ct(Fe,me[Bn],Bn,me);return Fe}function Ke(me,ct){for(var Fe=-1,yt=Array(me);++Fe<me;)yt[Fe]=ct(Fe);return yt}function Oe(me,ct){return me==null?void 0:me[ct]}function ht(me){var ct=!1;if(me!=null&&typeof me.toString!="function")try{ct=!!(me+"")}catch{}return ct}function $e(me){var ct=-1,Fe=Array(me.size);return me.forEach(function(yt,Bn){Fe[++ct]=[Bn,yt]}),Fe}function it(me,ct){return function(Fe){return me(ct(Fe))}}function et(me){var ct=-1,Fe=Array(me.size);return me.forEach(function(yt){Fe[++ct]=yt}),Fe}var st=Array.prototype,dt=Function.prototype,Mt=Object.prototype,ot=Te["__core-js_shared__"],nt=(function(){var me=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||"");return me?"Symbol(src)_1."+me:""})(),Ot=dt.toString,Zt=Mt.hasOwnProperty,Rt=Mt.toString,tn=RegExp("^"+Ot.call(Zt).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=Ne?Te.Buffer:void 0,yn=Te.Symbol,dn=Te.Uint8Array,nn=it(Object.getPrototypeOf,Object),Bt=Object.create,on=Mt.propertyIsEnumerable,Nn=st.splice,Rn=Object.getOwnPropertySymbols,gn=Ft?Ft.isBuffer:void 0,Ue=it(Object.keys,Object),Ce=hi(Te,"DataView"),Ze=hi(Te,"Map"),wt=hi(Te,"Promise"),Kt=hi(Te,"Set"),Gt=hi(Te,"WeakMap"),pn=hi(Object,"create"),un=mi(Ce),ft=mi(Ze),kt=mi(wt),Ct=mi(Kt),zt=mi(Gt),ln=yn?yn.prototype:void 0,mt=ln?ln.valueOf:void 0;function Lt(me){var ct=-1,Fe=me?me.length:0;for(this.clear();++ct<Fe;){var yt=me[ct];this.set(yt[0],yt[1])}}function en(){this.__data__=pn?pn(null):{}}function bn(me){return this.has(me)&&delete this.__data__[me]}function xn(me){var ct=this.__data__;if(pn){var Fe=ct[me];return Fe===r?void 0:Fe}return Zt.call(ct,me)?ct[me]:void 0}function Vt(me){var ct=this.__data__;return pn?ct[me]!==void 0:Zt.call(ct,me)}function mn(me,ct){var Fe=this.__data__;return Fe[me]=pn&&ct===void 0?r:ct,this}Lt.prototype.clear=en,Lt.prototype.delete=bn,Lt.prototype.get=xn,Lt.prototype.has=Vt,Lt.prototype.set=mn;function Dn(me){var ct=-1,Fe=me?me.length:0;for(this.clear();++ct<Fe;){var yt=me[ct];this.set(yt[0],yt[1])}}function cr(){this.__data__=[]}function En(me){var ct=this.__data__,Fe=qn(ct,me);if(Fe<0)return!1;var yt=ct.length-1;return Fe==yt?ct.pop():Nn.call(ct,Fe,1),!0}function Ln(me){var ct=this.__data__,Fe=qn(ct,me);return Fe<0?void 0:ct[Fe][1]}function je(me){return qn(this.__data__,me)>-1}function qt(me,ct){var Fe=this.__data__,yt=qn(Fe,me);return yt<0?Fe.push([me,ct]):Fe[yt][1]=ct,this}Dn.prototype.clear=cr,Dn.prototype.delete=En,Dn.prototype.get=Ln,Dn.prototype.has=je,Dn.prototype.set=qt;function rn(me){var ct=-1,Fe=me?me.length:0;for(this.clear();++ct<Fe;){var yt=me[ct];this.set(yt[0],yt[1])}}function zn(){this.__data__={hash:new Lt,map:new(Ze||Dn),string:new Lt}}function $n(me){return Lr(this,me).delete(me)}function kn(me){return Lr(this,me).get(me)}function Tt(me){return Lr(this,me).has(me)}function Se(me,ct){return Lr(this,me).set(me,ct),this}rn.prototype.clear=zn,rn.prototype.delete=$n,rn.prototype.get=kn,rn.prototype.has=Tt,rn.prototype.set=Se;function rt(me){this.__data__=new Dn(me)}function Et(){this.__data__=new Dn}function wn(me){return this.__data__.delete(me)}function Tn(me){return this.__data__.get(me)}function Zn(me){return this.__data__.has(me)}function ir(me,ct){var Fe=this.__data__;if(Fe instanceof Dn){var yt=Fe.__data__;if(!Ze||yt.length<t-1)return yt.push([me,ct]),this;Fe=this.__data__=new rn(yt)}return Fe.set(me,ct),this}rt.prototype.clear=Et,rt.prototype.delete=wn,rt.prototype.get=Tn,rt.prototype.has=Zn,rt.prototype.set=ir;function gr(me,ct){var Fe=Gi(me)||Bo(me)?Ke(me.length,String):[],yt=Fe.length,Bn=!!yt;for(var mr in me)Zt.call(me,mr)&&!(Bn&&(mr=="length"||Ei(mr,yt)))&&Fe.push(mr);return Fe}function Cn(me,ct,Fe){var yt=me[ct];(!(Zt.call(me,ct)&&Ko(yt,Fe))||Fe===void 0&&!(ct in me))&&(me[ct]=Fe)}function qn(me,ct){for(var Fe=me.length;Fe--;)if(Ko(me[Fe][0],ct))return Fe;return-1}function _n(me,ct){return me&&ur(ct,Ao(ct),me)}function dr(me,ct,Fe,yt,Bn,mr,si){var qi;if(yt&&(qi=mr?yt(me,Bn,mr,si):yt(me)),qi!==void 0)return qi;if(!vo(me))return me;var Yi=Gi(me);if(Yi){if(qi=Xo(me),!ct)return Ar(me,qi)}else{var lo=Fr(me),Ll=lo==m||lo==x;if(po(me))return ho(me,ct);if(lo==E||lo==o||Ll&&!mr){if(ht(me))return mr?me:{};if(qi=Co(Ll?{}:me),!ct)return Fn(me,_n(qi,me))}else{if(!oe[lo])return mr?me:{};qi=Fo(me,lo,dr,ct)}}si||(si=new rt);var Ql=si.get(me);if(Ql)return Ql;if(si.set(me,qi),!Yi)var sc=Fe?zr(me):Ao(me);return ke(sc||me,function(cl,za){sc&&(za=cl,cl=me[za]),Cn(qi,za,dr(cl,ct,Fe,yt,za,me,si))}),qi}function li(me){return vo(me)?Bt(me):{}}function wo(me,ct,Fe){var yt=ct(me);return Gi(me)?yt:Ie(yt,Fe(me))}function fo(me){return Rt.call(me)}function Br(me){if(!vo(me)||xr(me))return!1;var ct=Ho(me)||ht(me)?tn:de;return ct.test(mi(me))}function al(me){if(!vl(me))return Ue(me);var ct=[];for(var Fe in Object(me))Zt.call(me,Fe)&&Fe!="constructor"&&ct.push(Fe);return ct}function ho(me,ct){if(ct)return me.slice();var Fe=new me.constructor(me.length);return me.copy(Fe),Fe}function Si(me){var ct=new me.constructor(me.byteLength);return new dn(ct).set(new dn(me)),ct}function Jl(me,ct){var Fe=ct?Si(me.buffer):me.buffer;return new me.constructor(Fe,me.byteOffset,me.byteLength)}function No(me,ct,Fe){var yt=ct?Fe($e(me),!0):$e(me);return ze(yt,Me,new me.constructor)}function To(me){var ct=new me.constructor(me.source,re.exec(me));return ct.lastIndex=me.lastIndex,ct}function jr(me,ct,Fe){var yt=ct?Fe(et(me),!0):et(me);return ze(yt,Be,new me.constructor)}function fn(me){return mt?Object(mt.call(me)):{}}function On(me,ct){var Fe=ct?Si(me.buffer):me.buffer;return new me.constructor(Fe,me.byteOffset,me.length)}function Ar(me,ct){var Fe=-1,yt=me.length;for(ct||(ct=Array(yt));++Fe<yt;)ct[Fe]=me[Fe];return ct}function ur(me,ct,Fe,yt){Fe||(Fe={});for(var Bn=-1,mr=ct.length;++Bn<mr;){var si=ct[Bn],qi=void 0;Cn(Fe,si,qi===void 0?me[si]:qi)}return Fe}function Fn(me,ct){return ur(me,Ui(me),ct)}function zr(me){return wo(me,Ao,Ui)}function Lr(me,ct){var Fe=me.__data__;return $r(ct)?Fe[typeof ct=="string"?"string":"hash"]:Fe.map}function hi(me,ct){var Fe=Oe(me,ct);return Br(Fe)?Fe:void 0}var Ui=Rn?it(Rn,Object):er,Fr=fo;(Ce&&Fr(new Ce(new ArrayBuffer(1)))!=N||Ze&&Fr(new Ze)!=w||wt&&Fr(wt.resolve())!=R||Kt&&Fr(new Kt)!=O||Gt&&Fr(new Gt)!=H)&&(Fr=function(me){var ct=Rt.call(me),Fe=ct==E?me.constructor:void 0,yt=Fe?mi(Fe):void 0;if(yt)switch(yt){case un:return N;case ft:return w;case kt:return R;case Ct:return O;case zt:return H}return ct});function Xo(me){var ct=me.length,Fe=me.constructor(ct);return ct&&typeof me[0]=="string"&&Zt.call(me,"index")&&(Fe.index=me.index,Fe.input=me.input),Fe}function Co(me){return typeof me.constructor=="function"&&!vl(me)?li(nn(me)):{}}function Fo(me,ct,Fe,yt){var Bn=me.constructor;switch(ct){case G:return Si(me);case a:case h:return new Bn(+me);case N:return Jl(me,yt);case J:case Y:case K:case fe:case X:case te:case ne:case ue:case se:return On(me,yt);case w:return No(me,yt,Fe);case _:case P:return new Bn(me);case k:return To(me);case O:return jr(me,yt,Fe);case z:return fn(me)}}function Ei(me,ct){return ct=ct??i,!!ct&&(typeof me=="number"||be.test(me))&&me>-1&&me%1==0&&me<ct}function $r(me){var ct=typeof me;return ct=="string"||ct=="number"||ct=="symbol"||ct=="boolean"?me!=="__proto__":me===null}function xr(me){return!!nt&&nt in me}function vl(me){var ct=me&&me.constructor,Fe=typeof ct=="function"&&ct.prototype||Mt;return me===Fe}function mi(me){if(me!=null){try{return Ot.call(me)}catch{}try{return me+""}catch{}}return""}function oo(me){return dr(me,!0,!0)}function Ko(me,ct){return me===ct||me!==me&&ct!==ct}function Bo(me){return go(me)&&Zt.call(me,"callee")&&(!on.call(me,"callee")||Rt.call(me)==o)}var Gi=Array.isArray;function zo(me){return me!=null&&jn(me.length)&&!Ho(me)}function go(me){return di(me)&&zo(me)}var po=gn||wr;function Ho(me){var ct=vo(me)?Rt.call(me):"";return ct==m||ct==x}function jn(me){return typeof me=="number"&&me>-1&&me%1==0&&me<=i}function vo(me){var ct=typeof me;return!!me&&(ct=="object"||ct=="function")}function di(me){return!!me&&typeof me=="object"}function Ao(me){return zo(me)?gr(me):al(me)}function er(){return[]}function wr(){return!1}n.exports=oo})(vp,vp.exports)),vp.exports}var pb,fx;function $3(){return fx||(fx=1,pb=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!n(e[i],t[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=r;i--!==0;){var l=o[i];if(!n(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}),pb}var x0={},hx;function v7(){if(hx)return x0;hx=1,Object.defineProperty(x0,"__esModule",{value:!0});const n=j3(),e=$3();var t;return(function(r){function i(h={},g={},m=!1){typeof h!="object"&&(h={}),typeof g!="object"&&(g={});let x=n(g);m||(x=Object.keys(x).reduce((w,_)=>(x[_]!=null&&(w[_]=x[_]),w),{}));for(const w in h)h[w]!==void 0&&g[w]===void 0&&(x[w]=h[w]);return Object.keys(x).length>0?x:void 0}r.compose=i;function o(h={},g={}){typeof h!="object"&&(h={}),typeof g!="object"&&(g={});const m=Object.keys(h).concat(Object.keys(g)).reduce((x,w)=>(e(h[w],g[w])||(x[w]=g[w]===void 0?null:g[w]),x),{});return Object.keys(m).length>0?m:void 0}r.diff=o;function l(h={},g={}){h=h||{};const m=Object.keys(g).reduce((x,w)=>(g[w]!==h[w]&&h[w]!==void 0&&(x[w]=g[w]),x),{});return Object.keys(h).reduce((x,w)=>(h[w]!==g[w]&&g[w]===void 0&&(x[w]=null),x),m)}r.invert=l;function a(h,g,m=!1){if(typeof h!="object")return g;if(typeof g!="object")return;if(!m)return g;const x=Object.keys(g).reduce((w,_)=>(h[_]===void 0&&(w[_]=g[_]),w),{});return Object.keys(x).length>0?x:void 0}r.transform=a})(t||(t={})),x0.default=t,x0}var w0={},dx;function e4(){if(dx)return w0;dx=1,Object.defineProperty(w0,"__esModule",{value:!0});var n;return(function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t})(n||(n={})),w0.default=n,w0}var C0={},gx;function b7(){if(gx)return C0;gx=1,Object.defineProperty(C0,"__esModule",{value:!0});const n=e4();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const i=this.ops[this.index];if(i){const o=this.offset,l=n.default.length(i);if(r>=l-o?(r=l-o,this.index+=1,this.offset=0):this.offset+=r,typeof i.delete=="number")return{delete:r};{const a={};return i.attributes&&(a.attributes=i.attributes),typeof i.retain=="number"?a.retain=r:typeof i.retain=="object"&&i.retain!==null?a.retain=i.retain:typeof i.insert=="string"?a.insert=i.insert.substr(o,r):a.insert=i.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,i=this.index,o=this.next(),l=this.ops.slice(this.index);return this.offset=r,this.index=i,[o].concat(l)}}else return[]}}return C0.default=e,C0}var px;function y7(){return px||(px=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=p7(),r=j3(),i=$3(),o=v7();e.AttributeMap=o.default;const l=e4();e.Op=l.default;const a=b7();e.OpIterator=a.default;const h="\0",g=(x,w)=>{if(typeof x!="object"||x===null)throw new Error(`cannot retain a ${typeof x}`);if(typeof w!="object"||w===null)throw new Error(`cannot retain a ${typeof w}`);const _=Object.keys(x)[0];if(!_||_!==Object.keys(w)[0])throw new Error(`embed types not matched: ${_} != ${Object.keys(w)[0]}`);return[_,x[_],w[_]]};class m{constructor(w){Array.isArray(w)?this.ops=w:w!=null&&Array.isArray(w.ops)?this.ops=w.ops:this.ops=[]}static registerEmbed(w,_){this.handlers[w]=_}static unregisterEmbed(w){delete this.handlers[w]}static getHandler(w){const _=this.handlers[w];if(!_)throw new Error(`no handlers for embed type "${w}"`);return _}insert(w,_){const E={};return typeof w=="string"&&w.length===0?this:(E.insert=w,_!=null&&typeof _=="object"&&Object.keys(_).length>0&&(E.attributes=_),this.push(E))}delete(w){return w<=0?this:this.push({delete:w})}retain(w,_){if(typeof w=="number"&&w<=0)return this;const E={retain:w};return _!=null&&typeof _=="object"&&Object.keys(_).length>0&&(E.attributes=_),this.push(E)}push(w){let _=this.ops.length,E=this.ops[_-1];if(w=r(w),typeof E=="object"){if(typeof w.delete=="number"&&typeof E.delete=="number")return this.ops[_-1]={delete:E.delete+w.delete},this;if(typeof E.delete=="number"&&w.insert!=null&&(_-=1,E=this.ops[_-1],typeof E!="object"))return this.ops.unshift(w),this;if(i(w.attributes,E.attributes)){if(typeof w.insert=="string"&&typeof E.insert=="string")return this.ops[_-1]={insert:E.insert+w.insert},typeof w.attributes=="object"&&(this.ops[_-1].attributes=w.attributes),this;if(typeof w.retain=="number"&&typeof E.retain=="number")return this.ops[_-1]={retain:E.retain+w.retain},typeof w.attributes=="object"&&(this.ops[_-1].attributes=w.attributes),this}}return _===this.ops.length?this.ops.push(w):this.ops.splice(_,0,w),this}chop(){const w=this.ops[this.ops.length-1];return w&&typeof w.retain=="number"&&!w.attributes&&this.ops.pop(),this}filter(w){return this.ops.filter(w)}forEach(w){this.ops.forEach(w)}map(w){return this.ops.map(w)}partition(w){const _=[],E=[];return this.forEach(R=>{(w(R)?_:E).push(R)}),[_,E]}reduce(w,_){return this.ops.reduce(w,_)}changeLength(){return this.reduce((w,_)=>_.insert?w+l.default.length(_):_.delete?w-_.delete:w,0)}length(){return this.reduce((w,_)=>w+l.default.length(_),0)}slice(w=0,_=1/0){const E=[],R=new a.default(this.ops);let k=0;for(;k<_&&R.hasNext();){let O;k<w?O=R.next(w-k):(O=R.next(_-k),E.push(O)),k+=l.default.length(O)}return new m(E)}compose(w){const _=new a.default(this.ops),E=new a.default(w.ops),R=[],k=E.peek();if(k!=null&&typeof k.retain=="number"&&k.attributes==null){let P=k.retain;for(;_.peekType()==="insert"&&_.peekLength()<=P;)P-=_.peekLength(),R.push(_.next());k.retain-P>0&&E.next(k.retain-P)}const O=new m(R);for(;_.hasNext()||E.hasNext();)if(E.peekType()==="insert")O.push(E.next());else if(_.peekType()==="delete")O.push(_.next());else{const P=Math.min(_.peekLength(),E.peekLength()),z=_.next(P),H=E.next(P);if(H.retain){const G={};if(typeof z.retain=="number")G.retain=typeof H.retain=="number"?P:H.retain;else if(typeof H.retain=="number")z.retain==null?G.insert=z.insert:G.retain=z.retain;else{const J=z.retain==null?"insert":"retain",[Y,K,fe]=g(z[J],H.retain),X=m.getHandler(Y);G[J]={[Y]:X.compose(K,fe,J==="retain")}}const N=o.default.compose(z.attributes,H.attributes,typeof z.retain=="number");if(N&&(G.attributes=N),O.push(G),!E.hasNext()&&i(O.ops[O.ops.length-1],G)){const J=new m(_.rest());return O.concat(J).chop()}}else typeof H.delete=="number"&&(typeof z.retain=="number"||typeof z.retain=="object"&&z.retain!==null)&&O.push(H)}return O.chop()}concat(w){const _=new m(this.ops.slice());return w.ops.length>0&&(_.push(w.ops[0]),_.ops=_.ops.concat(w.ops.slice(1))),_}diff(w,_){if(this.ops===w.ops)return new m;const E=[this,w].map(z=>z.map(H=>{if(H.insert!=null)return typeof H.insert=="string"?H.insert:h;const G=z===w?"on":"with";throw new Error("diff() called "+G+" non-document")}).join("")),R=new m,k=t(E[0],E[1],_,!0),O=new a.default(this.ops),P=new a.default(w.ops);return k.forEach(z=>{let H=z[1].length;for(;H>0;){let G=0;switch(z[0]){case t.INSERT:G=Math.min(P.peekLength(),H),R.push(P.next(G));break;case t.DELETE:G=Math.min(H,O.peekLength()),O.next(G),R.delete(G);break;case t.EQUAL:G=Math.min(O.peekLength(),P.peekLength(),H);const N=O.next(G),J=P.next(G);i(N.insert,J.insert)?R.retain(G,o.default.diff(N.attributes,J.attributes)):R.push(J).delete(G);break}H-=G}}),R.chop()}eachLine(w,_=`
|
|
289
|
-
`){const E=new a.default(this.ops);let R=new m,k=0;for(;E.hasNext();){if(E.peekType()!=="insert")return;const O=E.peek(),P=l.default.length(O)-E.peekLength(),z=typeof O.insert=="string"?O.insert.indexOf(_,P)-P:-1;if(z<0)R.push(E.next());else if(z>0)R.push(E.next(z));else{if(w(R,E.next(1).attributes||{},k)===!1)return;k+=1,R=new m}}R.length()>0&&w(R,{},k)}invert(w){const _=new m;return this.reduce((E,R)=>{if(R.insert)_.delete(l.default.length(R));else{if(typeof R.retain=="number"&&R.attributes==null)return _.retain(R.retain),E+R.retain;if(R.delete||typeof R.retain=="number"){const k=R.delete||R.retain;return w.slice(E,E+k).forEach(P=>{R.delete?_.push(P):R.retain&&R.attributes&&_.retain(l.default.length(P),o.default.invert(R.attributes,P.attributes))}),E+k}else if(typeof R.retain=="object"&&R.retain!==null){const k=w.slice(E,E+1),O=new a.default(k.ops).next(),[P,z,H]=g(R.retain,O.insert),G=m.getHandler(P);return _.retain({[P]:G.invert(z,H)},o.default.invert(R.attributes,O.attributes)),E+1}}return E},0),_.chop()}transform(w,_=!1){if(_=!!_,typeof w=="number")return this.transformPosition(w,_);const E=w,R=new a.default(this.ops),k=new a.default(E.ops),O=new m;for(;R.hasNext()||k.hasNext();)if(R.peekType()==="insert"&&(_||k.peekType()!=="insert"))O.retain(l.default.length(R.next()));else if(k.peekType()==="insert")O.push(k.next());else{const P=Math.min(R.peekLength(),k.peekLength()),z=R.next(P),H=k.next(P);if(z.delete)continue;if(H.delete)O.push(H);else{const G=z.retain,N=H.retain;let J=typeof N=="object"&&N!==null?N:P;if(typeof G=="object"&&G!==null&&typeof N=="object"&&N!==null){const Y=Object.keys(G)[0];if(Y===Object.keys(N)[0]){const K=m.getHandler(Y);K&&(J={[Y]:K.transform(G[Y],N[Y],_)})}}O.retain(J,o.default.transform(z.attributes,H.attributes,_))}}return O.chop()}transformPosition(w,_=!1){_=!!_;const E=new a.default(this.ops);let R=0;for(;E.hasNext()&&R<=w;){const k=E.peekLength(),O=E.peekType();if(E.next(),O==="delete"){w-=Math.min(k,w-R);continue}else O==="insert"&&(R<w||!_)&&(w+=k);R+=k}return w}}m.Op=l.default,m.OpIterator=a.default,m.AttributeMap=o.default,m.handlers={},e.default=m,n.exports=m,n.exports.default=m})(m0,m0.exports)),m0.exports}var vh=y7();const Jn=L1(vh);var t4=typeof global=="object"&&global&&global.Object===Object&&global,m7=typeof self=="object"&&self&&self.Object===Object&&self,sd=t4||m7||Function("return this")(),ag=sd.Symbol,n4=Object.prototype,x7=n4.hasOwnProperty,w7=n4.toString,lp=ag?ag.toStringTag:void 0;function C7(n){var e=x7.call(n,lp),t=n[lp];try{n[lp]=void 0;var r=!0}catch{}var i=w7.call(n);return r&&(e?n[lp]=t:delete n[lp]),i}var _7=Object.prototype,S7=_7.toString;function E7(n){return S7.call(n)}var T7="[object Null]",A7="[object Undefined]",vx=ag?ag.toStringTag:void 0;function P1(n){return n==null?n===void 0?A7:T7:vx&&vx in Object(n)?C7(n):E7(n)}function Ad(n){return n!=null&&typeof n=="object"}var Pg=Array.isArray;function fg(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function r4(n){return n}var R7="[object AsyncFunction]",I7="[object Function]",k7="[object GeneratorFunction]",M7="[object Proxy]";function Rm(n){if(!fg(n))return!1;var e=P1(n);return e==I7||e==k7||e==R7||e==M7}var vb=sd["__core-js_shared__"],bx=(function(){var n=/[^.]+$/.exec(vb&&vb.keys&&vb.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function L7(n){return!!bx&&bx in n}var O7=Function.prototype,P7=O7.toString;function Hg(n){if(n!=null){try{return P7.call(n)}catch{}try{return n+""}catch{}}return""}var D7=/[\\^$.*+?()[\]{}|]/g,N7=/^\[object .+?Constructor\]$/,F7=Function.prototype,B7=Object.prototype,z7=F7.toString,H7=B7.hasOwnProperty,W7=RegExp("^"+z7.call(H7).replace(D7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function U7(n){if(!fg(n)||L7(n))return!1;var e=Rm(n)?W7:N7;return e.test(Hg(n))}function G7(n,e){return n==null?void 0:n[e]}function Wg(n,e){var t=G7(n,e);return U7(t)?t:void 0}var Py=Wg(sd,"WeakMap"),yx=Object.create,Y7=(function(){function n(){}return function(e){if(!fg(e))return{};if(yx)return yx(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}})();function V7(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function Z7(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var X7=800,K7=16,J7=Date.now;function Q7(n){var e=0,t=0;return function(){var r=J7(),i=K7-(r-t);if(t=r,i>0){if(++e>=X7)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function q7(n){return function(){return n}}var iv=(function(){try{var n=Wg(Object,"defineProperty");return n({},"",{}),n}catch{}})(),j7=iv?function(n,e){return iv(n,"toString",{configurable:!0,enumerable:!1,value:q7(e),writable:!0})}:r4,$7=Q7(j7);function eM(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var tM=9007199254740991,nM=/^(?:0|[1-9]\d*)$/;function i4(n,e){var t=typeof n;return e=e??tM,!!e&&(t=="number"||t!="symbol"&&nM.test(n))&&n>-1&&n%1==0&&n<e}function Im(n,e,t){e=="__proto__"&&iv?iv(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Wp(n,e){return n===e||n!==n&&e!==e}var rM=Object.prototype,iM=rM.hasOwnProperty;function o4(n,e,t){var r=n[e];(!(iM.call(n,e)&&Wp(r,t))||t===void 0&&!(e in n))&&Im(n,e,t)}function oM(n,e,t,r){var i=!t;t||(t={});for(var o=-1,l=e.length;++o<l;){var a=e[o],h=void 0;h===void 0&&(h=n[a]),i?Im(t,a,h):o4(t,a,h)}return t}var mx=Math.max;function lM(n,e,t){return e=mx(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,o=mx(r.length-e,0),l=Array(o);++i<o;)l[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=t(l),V7(n,this,a)}}function sM(n,e){return $7(lM(n,e,r4),n+"")}var aM=9007199254740991;function l4(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=aM}function Av(n){return n!=null&&l4(n.length)&&!Rm(n)}function cM(n,e,t){if(!fg(t))return!1;var r=typeof e;return(r=="number"?Av(t)&&i4(e,t.length):r=="string"&&e in t)?Wp(t[e],n):!1}function uM(n){return sM(function(e,t){var r=-1,i=t.length,o=i>1?t[i-1]:void 0,l=i>2?t[2]:void 0;for(o=n.length>3&&typeof o=="function"?(i--,o):void 0,l&&cM(t[0],t[1],l)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=t[r];a&&n(e,a,r,o)}return e})}var fM=Object.prototype;function km(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||fM;return n===t}function hM(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var dM="[object Arguments]";function xx(n){return Ad(n)&&P1(n)==dM}var s4=Object.prototype,gM=s4.hasOwnProperty,pM=s4.propertyIsEnumerable,Dy=xx((function(){return arguments})())?xx:function(n){return Ad(n)&&gM.call(n,"callee")&&!pM.call(n,"callee")};function vM(){return!1}var a4=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wx=a4&&typeof module=="object"&&module&&!module.nodeType&&module,bM=wx&&wx.exports===a4,Cx=bM?sd.Buffer:void 0,yM=Cx?Cx.isBuffer:void 0,Rp=yM||vM,mM="[object Arguments]",xM="[object Array]",wM="[object Boolean]",CM="[object Date]",_M="[object Error]",SM="[object Function]",EM="[object Map]",TM="[object Number]",AM="[object Object]",RM="[object RegExp]",IM="[object Set]",kM="[object String]",MM="[object WeakMap]",LM="[object ArrayBuffer]",OM="[object DataView]",PM="[object Float32Array]",DM="[object Float64Array]",NM="[object Int8Array]",FM="[object Int16Array]",BM="[object Int32Array]",zM="[object Uint8Array]",HM="[object Uint8ClampedArray]",WM="[object Uint16Array]",UM="[object Uint32Array]",Xl={};Xl[PM]=Xl[DM]=Xl[NM]=Xl[FM]=Xl[BM]=Xl[zM]=Xl[HM]=Xl[WM]=Xl[UM]=!0;Xl[mM]=Xl[xM]=Xl[LM]=Xl[wM]=Xl[OM]=Xl[CM]=Xl[_M]=Xl[SM]=Xl[EM]=Xl[TM]=Xl[AM]=Xl[RM]=Xl[IM]=Xl[kM]=Xl[MM]=!1;function GM(n){return Ad(n)&&l4(n.length)&&!!Xl[P1(n)]}function Mm(n){return function(e){return n(e)}}var c4=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yp=c4&&typeof module=="object"&&module&&!module.nodeType&&module,YM=yp&&yp.exports===c4,bb=YM&&t4.process,C1=(function(){try{var n=yp&&yp.require&&yp.require("util").types;return n||bb&&bb.binding&&bb.binding("util")}catch{}})(),_x=C1&&C1.isTypedArray,Lm=_x?Mm(_x):GM,VM=Object.prototype,ZM=VM.hasOwnProperty;function u4(n,e){var t=Pg(n),r=!t&&Dy(n),i=!t&&!r&&Rp(n),o=!t&&!r&&!i&&Lm(n),l=t||r||i||o,a=l?hM(n.length,String):[],h=a.length;for(var g in n)(e||ZM.call(n,g))&&!(l&&(g=="length"||i&&(g=="offset"||g=="parent")||o&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i4(g,h)))&&a.push(g);return a}function f4(n,e){return function(t){return n(e(t))}}var XM=f4(Object.keys,Object),KM=Object.prototype,JM=KM.hasOwnProperty;function QM(n){if(!km(n))return XM(n);var e=[];for(var t in Object(n))JM.call(n,t)&&t!="constructor"&&e.push(t);return e}function qM(n){return Av(n)?u4(n):QM(n)}function jM(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var $M=Object.prototype,eL=$M.hasOwnProperty;function tL(n){if(!fg(n))return jM(n);var e=km(n),t=[];for(var r in n)r=="constructor"&&(e||!eL.call(n,r))||t.push(r);return t}function h4(n){return Av(n)?u4(n,!0):tL(n)}var Ip=Wg(Object,"create");function nL(){this.__data__=Ip?Ip(null):{},this.size=0}function rL(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var iL="__lodash_hash_undefined__",oL=Object.prototype,lL=oL.hasOwnProperty;function sL(n){var e=this.__data__;if(Ip){var t=e[n];return t===iL?void 0:t}return lL.call(e,n)?e[n]:void 0}var aL=Object.prototype,cL=aL.hasOwnProperty;function uL(n){var e=this.__data__;return Ip?e[n]!==void 0:cL.call(e,n)}var fL="__lodash_hash_undefined__";function hL(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Ip&&e===void 0?fL:e,this}function Dg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Dg.prototype.clear=nL;Dg.prototype.delete=rL;Dg.prototype.get=sL;Dg.prototype.has=uL;Dg.prototype.set=hL;function dL(){this.__data__=[],this.size=0}function Rv(n,e){for(var t=n.length;t--;)if(Wp(n[t][0],e))return t;return-1}var gL=Array.prototype,pL=gL.splice;function vL(n){var e=this.__data__,t=Rv(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():pL.call(e,t,1),--this.size,!0}function bL(n){var e=this.__data__,t=Rv(e,n);return t<0?void 0:e[t][1]}function yL(n){return Rv(this.__data__,n)>-1}function mL(n,e){var t=this.__data__,r=Rv(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function kd(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}kd.prototype.clear=dL;kd.prototype.delete=vL;kd.prototype.get=bL;kd.prototype.has=yL;kd.prototype.set=mL;var kp=Wg(sd,"Map");function xL(){this.size=0,this.__data__={hash:new Dg,map:new(kp||kd),string:new Dg}}function wL(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Iv(n,e){var t=n.__data__;return wL(e)?t[typeof e=="string"?"string":"hash"]:t.map}function CL(n){var e=Iv(this,n).delete(n);return this.size-=e?1:0,e}function _L(n){return Iv(this,n).get(n)}function SL(n){return Iv(this,n).has(n)}function EL(n,e){var t=Iv(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Ug(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Ug.prototype.clear=xL;Ug.prototype.delete=CL;Ug.prototype.get=_L;Ug.prototype.has=SL;Ug.prototype.set=EL;function TL(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var d4=f4(Object.getPrototypeOf,Object),AL="[object Object]",RL=Function.prototype,IL=Object.prototype,g4=RL.toString,kL=IL.hasOwnProperty,ML=g4.call(Object);function LL(n){if(!Ad(n)||P1(n)!=AL)return!1;var e=d4(n);if(e===null)return!0;var t=kL.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&g4.call(t)==ML}function OL(){this.__data__=new kd,this.size=0}function PL(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function DL(n){return this.__data__.get(n)}function NL(n){return this.__data__.has(n)}var FL=200;function BL(n,e){var t=this.__data__;if(t instanceof kd){var r=t.__data__;if(!kp||r.length<FL-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Ug(r)}return t.set(n,e),this.size=t.size,this}function $h(n){var e=this.__data__=new kd(n);this.size=e.size}$h.prototype.clear=OL;$h.prototype.delete=PL;$h.prototype.get=DL;$h.prototype.has=NL;$h.prototype.set=BL;var p4=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sx=p4&&typeof module=="object"&&module&&!module.nodeType&&module,zL=Sx&&Sx.exports===p4,Ex=zL?sd.Buffer:void 0,Tx=Ex?Ex.allocUnsafe:void 0;function v4(n,e){if(e)return n.slice();var t=n.length,r=Tx?Tx(t):new n.constructor(t);return n.copy(r),r}function HL(n,e){for(var t=-1,r=n==null?0:n.length,i=0,o=[];++t<r;){var l=n[t];e(l,t,n)&&(o[i++]=l)}return o}function WL(){return[]}var UL=Object.prototype,GL=UL.propertyIsEnumerable,Ax=Object.getOwnPropertySymbols,YL=Ax?function(n){return n==null?[]:(n=Object(n),HL(Ax(n),function(e){return GL.call(n,e)}))}:WL;function VL(n,e,t){var r=e(n);return Pg(n)?r:TL(r,t(n))}function Ny(n){return VL(n,qM,YL)}var Fy=Wg(sd,"DataView"),By=Wg(sd,"Promise"),zy=Wg(sd,"Set"),Rx="[object Map]",ZL="[object Object]",Ix="[object Promise]",kx="[object Set]",Mx="[object WeakMap]",Lx="[object DataView]",XL=Hg(Fy),KL=Hg(kp),JL=Hg(By),QL=Hg(zy),qL=Hg(Py),kh=P1;(Fy&&kh(new Fy(new ArrayBuffer(1)))!=Lx||kp&&kh(new kp)!=Rx||By&&kh(By.resolve())!=Ix||zy&&kh(new zy)!=kx||Py&&kh(new Py)!=Mx)&&(kh=function(n){var e=P1(n),t=e==ZL?n.constructor:void 0,r=t?Hg(t):"";if(r)switch(r){case XL:return Lx;case KL:return Rx;case JL:return Ix;case QL:return kx;case qL:return Mx}return e});var jL=Object.prototype,$L=jL.hasOwnProperty;function eO(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&$L.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var ov=sd.Uint8Array;function Om(n){var e=new n.constructor(n.byteLength);return new ov(e).set(new ov(n)),e}function tO(n,e){var t=Om(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var nO=/\w*$/;function rO(n){var e=new n.constructor(n.source,nO.exec(n));return e.lastIndex=n.lastIndex,e}var Ox=ag?ag.prototype:void 0,Px=Ox?Ox.valueOf:void 0;function iO(n){return Px?Object(Px.call(n)):{}}function b4(n,e){var t=e?Om(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var oO="[object Boolean]",lO="[object Date]",sO="[object Map]",aO="[object Number]",cO="[object RegExp]",uO="[object Set]",fO="[object String]",hO="[object Symbol]",dO="[object ArrayBuffer]",gO="[object DataView]",pO="[object Float32Array]",vO="[object Float64Array]",bO="[object Int8Array]",yO="[object Int16Array]",mO="[object Int32Array]",xO="[object Uint8Array]",wO="[object Uint8ClampedArray]",CO="[object Uint16Array]",_O="[object Uint32Array]";function SO(n,e,t){var r=n.constructor;switch(e){case dO:return Om(n);case oO:case lO:return new r(+n);case gO:return tO(n);case pO:case vO:case bO:case yO:case mO:case xO:case wO:case CO:case _O:return b4(n,t);case sO:return new r;case aO:case fO:return new r(n);case cO:return rO(n);case uO:return new r;case hO:return iO(n)}}function y4(n){return typeof n.constructor=="function"&&!km(n)?Y7(d4(n)):{}}var EO="[object Map]";function TO(n){return Ad(n)&&kh(n)==EO}var Dx=C1&&C1.isMap,AO=Dx?Mm(Dx):TO,RO="[object Set]";function IO(n){return Ad(n)&&kh(n)==RO}var Nx=C1&&C1.isSet,kO=Nx?Mm(Nx):IO,MO=1,m4="[object Arguments]",LO="[object Array]",OO="[object Boolean]",PO="[object Date]",DO="[object Error]",x4="[object Function]",NO="[object GeneratorFunction]",FO="[object Map]",BO="[object Number]",w4="[object Object]",zO="[object RegExp]",HO="[object Set]",WO="[object String]",UO="[object Symbol]",GO="[object WeakMap]",YO="[object ArrayBuffer]",VO="[object DataView]",ZO="[object Float32Array]",XO="[object Float64Array]",KO="[object Int8Array]",JO="[object Int16Array]",QO="[object Int32Array]",qO="[object Uint8Array]",jO="[object Uint8ClampedArray]",$O="[object Uint16Array]",eP="[object Uint32Array]",kl={};kl[m4]=kl[LO]=kl[YO]=kl[VO]=kl[OO]=kl[PO]=kl[ZO]=kl[XO]=kl[KO]=kl[JO]=kl[QO]=kl[FO]=kl[BO]=kl[w4]=kl[zO]=kl[HO]=kl[WO]=kl[UO]=kl[qO]=kl[jO]=kl[$O]=kl[eP]=!0;kl[DO]=kl[x4]=kl[GO]=!1;function V0(n,e,t,r,i,o){var l,a=e&MO;if(l!==void 0)return l;if(!fg(n))return n;var h=Pg(n);if(h)l=eO(n);else{var g=kh(n),m=g==x4||g==NO;if(Rp(n))return v4(n,a);if(g==w4||g==m4||m&&!i)l=m?{}:y4(n);else{if(!kl[g])return i?n:{};l=SO(n,g,a)}}o||(o=new $h);var x=o.get(n);if(x)return x;o.set(n,l),kO(n)?n.forEach(function(E){l.add(V0(E,e,t,E,n,o))}):AO(n)&&n.forEach(function(E,R){l.set(R,V0(E,e,t,R,n,o))});var w=Ny,_=h?void 0:w(n);return eM(_||n,function(E,R){_&&(R=E,E=n[R]),o4(l,R,V0(E,e,t,R,n,o))}),l}var tP=1,nP=4;function g1(n){return V0(n,tP|nP)}var rP="__lodash_hash_undefined__";function iP(n){return this.__data__.set(n,rP),this}function oP(n){return this.__data__.has(n)}function lv(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Ug;++e<t;)this.add(n[e])}lv.prototype.add=lv.prototype.push=iP;lv.prototype.has=oP;function lP(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function sP(n,e){return n.has(e)}var aP=1,cP=2;function C4(n,e,t,r,i,o){var l=t&aP,a=n.length,h=e.length;if(a!=h&&!(l&&h>a))return!1;var g=o.get(n),m=o.get(e);if(g&&m)return g==e&&m==n;var x=-1,w=!0,_=t&cP?new lv:void 0;for(o.set(n,e),o.set(e,n);++x<a;){var E=n[x],R=e[x];if(r)var k=l?r(R,E,x,e,n,o):r(E,R,x,n,e,o);if(k!==void 0){if(k)continue;w=!1;break}if(_){if(!lP(e,function(O,P){if(!sP(_,P)&&(E===O||i(E,O,t,r,o)))return _.push(P)})){w=!1;break}}else if(!(E===R||i(E,R,t,r,o))){w=!1;break}}return o.delete(n),o.delete(e),w}function uP(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function fP(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var hP=1,dP=2,gP="[object Boolean]",pP="[object Date]",vP="[object Error]",bP="[object Map]",yP="[object Number]",mP="[object RegExp]",xP="[object Set]",wP="[object String]",CP="[object Symbol]",_P="[object ArrayBuffer]",SP="[object DataView]",Fx=ag?ag.prototype:void 0,yb=Fx?Fx.valueOf:void 0;function EP(n,e,t,r,i,o,l){switch(t){case SP:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case _P:return!(n.byteLength!=e.byteLength||!o(new ov(n),new ov(e)));case gP:case pP:case yP:return Wp(+n,+e);case vP:return n.name==e.name&&n.message==e.message;case mP:case wP:return n==e+"";case bP:var a=uP;case xP:var h=r&hP;if(a||(a=fP),n.size!=e.size&&!h)return!1;var g=l.get(n);if(g)return g==e;r|=dP,l.set(n,e);var m=C4(a(n),a(e),r,i,o,l);return l.delete(n),m;case CP:if(yb)return yb.call(n)==yb.call(e)}return!1}var TP=1,AP=Object.prototype,RP=AP.hasOwnProperty;function IP(n,e,t,r,i,o){var l=t&TP,a=Ny(n),h=a.length,g=Ny(e),m=g.length;if(h!=m&&!l)return!1;for(var x=h;x--;){var w=a[x];if(!(l?w in e:RP.call(e,w)))return!1}var _=o.get(n),E=o.get(e);if(_&&E)return _==e&&E==n;var R=!0;o.set(n,e),o.set(e,n);for(var k=l;++x<h;){w=a[x];var O=n[w],P=e[w];if(r)var z=l?r(P,O,w,e,n,o):r(O,P,w,n,e,o);if(!(z===void 0?O===P||i(O,P,t,r,o):z)){R=!1;break}k||(k=w=="constructor")}if(R&&!k){var H=n.constructor,G=e.constructor;H!=G&&"constructor"in n&&"constructor"in e&&!(typeof H=="function"&&H instanceof H&&typeof G=="function"&&G instanceof G)&&(R=!1)}return o.delete(n),o.delete(e),R}var kP=1,Bx="[object Arguments]",zx="[object Array]",_0="[object Object]",MP=Object.prototype,Hx=MP.hasOwnProperty;function LP(n,e,t,r,i,o){var l=Pg(n),a=Pg(e),h=l?zx:kh(n),g=a?zx:kh(e);h=h==Bx?_0:h,g=g==Bx?_0:g;var m=h==_0,x=g==_0,w=h==g;if(w&&Rp(n)){if(!Rp(e))return!1;l=!0,m=!1}if(w&&!m)return o||(o=new $h),l||Lm(n)?C4(n,e,t,r,i,o):EP(n,e,h,t,r,i,o);if(!(t&kP)){var _=m&&Hx.call(n,"__wrapped__"),E=x&&Hx.call(e,"__wrapped__");if(_||E){var R=_?n.value():n,k=E?e.value():e;return o||(o=new $h),i(R,k,t,r,o)}}return w?(o||(o=new $h),IP(n,e,t,r,i,o)):!1}function _4(n,e,t,r,i){return n===e?!0:n==null||e==null||!Ad(n)&&!Ad(e)?n!==n&&e!==e:LP(n,e,t,r,_4,i)}function OP(n){return function(e,t,r){for(var i=-1,o=Object(e),l=r(e),a=l.length;a--;){var h=l[++i];if(t(o[h],h,o)===!1)break}return e}}var PP=OP();function Hy(n,e,t){(t!==void 0&&!Wp(n[e],t)||t===void 0&&!(e in n))&&Im(n,e,t)}function DP(n){return Ad(n)&&Av(n)}function Wy(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function NP(n){return oM(n,h4(n))}function FP(n,e,t,r,i,o,l){var a=Wy(n,t),h=Wy(e,t),g=l.get(h);if(g){Hy(n,t,g);return}var m=o?o(a,h,t+"",n,e,l):void 0,x=m===void 0;if(x){var w=Pg(h),_=!w&&Rp(h),E=!w&&!_&&Lm(h);m=h,w||_||E?Pg(a)?m=a:DP(a)?m=Z7(a):_?(x=!1,m=v4(h,!0)):E?(x=!1,m=b4(h,!0)):m=[]:LL(h)||Dy(h)?(m=a,Dy(a)?m=NP(a):(!fg(a)||Rm(a))&&(m=y4(h))):x=!1}x&&(l.set(h,m),i(m,h,r,o,l),l.delete(h)),Hy(n,t,m)}function S4(n,e,t,r,i){n!==e&&PP(e,function(o,l){if(i||(i=new $h),fg(o))FP(n,e,l,t,S4,r,i);else{var a=r?r(Wy(n,l),o,l+"",n,e,i):void 0;a===void 0&&(a=o),Hy(n,l,a)}},h4)}function $d(n,e){return _4(n,e)}var og=uM(function(n,e,t){S4(n,e,t)}),Qn=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(Qn||{});class rd{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const i=Qn.TYPE&Qn.ATTRIBUTE;this.scope=r.scope!=null?r.scope&Qn.LEVEL|i:Qn.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class p1 extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const E4=class Uy{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const i=this.query(t);if(i==null)throw new p1(`Unable to create ${t} blot`);const o=i,l=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:o.create(r),a=new o(e,l,r);return Uy.blots.set(a.domNode,a),a}find(e,t=!1){return Uy.find(e,t)}query(e,t=Qn.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&Qn.LEVEL&Qn.BLOCK?r=this.types.block:e&Qn.LEVEL&Qn.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&Qn.LEVEL&r.scope&&t&Qn.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,i="attrName"in t;if(!r&&!i)throw new p1("Invalid definition");if(r&&t.blotName==="abstract")throw new p1("Cannot register abstract class");const o=r?t.blotName:i?t.attrName:void 0;return this.types[o]=t,i?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(l=>l.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(l=>{(this.tags[l]==null||t.className==null)&&(this.tags[l]=t)}))),t})}};E4.blots=new WeakMap;let _1=E4;function Wx(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class BP extends rd{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){Wx(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(Wx(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const zh=BP;function mb(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class zP extends rd{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[mb(this.keyName)]=t,!0):!1}remove(e){e.style[mb(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[mb(this.keyName)];return this.canAdd(e,t)?t:""}}const hg=zP;class HP{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=_1.find(this.domNode);if(e==null)return;const t=rd.keys(this.domNode),r=zh.keys(this.domNode),i=hg.keys(this.domNode);t.concat(r).concat(i).forEach(o=>{const l=e.scroll.query(o,Qn.ATTRIBUTE);l instanceof rd&&(this.attributes[l.attrName]=l)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const kv=HP,T4=class{constructor(e,t){this.scroll=e,this.domNode=t,_1.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new p1("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),_1.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,i){const o=this.isolate(e,t);if(this.scroll.query(r,Qn.BLOT)!=null&&i)o.wrap(r,i);else if(this.scroll.query(r,Qn.ATTRIBUTE)!=null){const l=this.scroll.create(this.statics.scope);o.wrap(l),l.format(r,i)}}insertAt(e,t,r){const i=r==null?this.scroll.create("text",t):this.scroll.create(t,r),o=this.split(e);this.parent.insertBefore(i,o||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new p1(`Cannot wrap ${e}`);return r.appendChild(this),r}};T4.blotName="abstract";let A4=T4;const R4=class extends A4{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};R4.scope=Qn.INLINE_BLOT;let WP=R4;const lu=WP;class UP{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),i=0;for(;r;){if(r===e)return i;i+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let i=r();for(;i;){const o=i.length();if(e<o||t&&e===o&&(i.next==null||i.next.length()!==0))return[i,e];e-=o,i=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[i,o]=this.find(e);let l=e-o;const a=this.iterator(i);let h=a();for(;h&&l<e+t;){const g=h.length();e>l?r(h,e-l,Math.min(t,l+g-e)):r(h,0,Math.min(g,e+t-l)),l+=g,h=a()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let i=r();for(;i;)t=e(t,i),i=r();return t}}function Ux(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(Qn.INLINE);return Array.from(n.childNodes).forEach(i=>{r.domNode.appendChild(i)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const I4=class Kd extends A4{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Kd.uiClass&&this.uiNode.classList.add(Kd.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new UP,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Ux(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof p1)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,i,o)=>{r.deleteAt(i,o)})}descendant(e,t=0){const[r,i]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,i]:r instanceof Kd?r.descendant(e,i):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let i=[],o=r;return this.children.forEachAt(t,r,(l,a,h)=>{(e.blotName==null&&e(l)||e.blotName!=null&&l instanceof e)&&i.push(l),l instanceof Kd&&(i=i.concat(l.descendants(e,a,o))),o-=h}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===Qn.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Kd?t.unwrap():t.remove())})}formatAt(e,t,r,i){this.children.forEachAt(e,t,(o,l,a)=>{o.formatAt(l,a,r,i)})}insertAt(e,t,r){const[i,o]=this.children.find(e);if(i)i.insertAt(o,t,r);else{const l=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(l)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,i]=this.children.find(e,t),o=[[this,e]];return r instanceof Kd?o.concat(r.path(i,t)):(r!=null&&o.push([r,i]),o)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof Kd&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(i,o,l)=>{const a=i.split(o,t);a!=null&&r.appendChild(a)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],i=[];e.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(r.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const l=this.scroll.find(o);l!=null&&(l.domNode.parentNode==null||l.domNode.parentNode===this.domNode)&&l.detach()}),r.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,l)=>o===l?0:o.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let l=null;o.nextSibling!=null&&(l=this.scroll.find(o.nextSibling));const a=Ux(o,this.scroll);(a.next!==l||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,l||void 0))}),this.enforceAllowedChildren()}};I4.uiClass="";let GP=I4;const Oh=GP;function YP(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const n1=class r1 extends Oh{static create(e){return super.create(e)}static formats(e,t){const r=t.query(r1.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new kv(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof r1||(r=r.wrap(r1.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,Qn.INLINE);if(r==null)return;r instanceof rd?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,i){this.formats()[r]!=null||this.scroll.query(r,Qn.ATTRIBUTE)?this.isolate(e,t).format(r,i):super.formatAt(e,t,r,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof r1&&r.prev===this&&YP(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof r1&&this.attributes.move(r),r}};n1.allowedChildren=[n1,lu],n1.blotName="inline",n1.scope=Qn.INLINE_BLOT,n1.tagName="SPAN";let VP=n1;const Pm=VP,i1=class Gy extends Oh{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Gy.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new kv(this.domNode)}format(e,t){const r=this.scroll.query(e,Qn.BLOCK);r!=null&&(r instanceof rd?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(Gy.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,i){this.scroll.query(r,Qn.BLOCK)!=null?this.format(r,i):super.formatAt(e,t,r,i)}insertAt(e,t,r){if(r==null||this.scroll.query(t,Qn.INLINE)!=null)super.insertAt(e,t,r);else{const i=this.split(e);if(i!=null){const o=this.scroll.create(t,r);i.parent.insertBefore(o,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};i1.blotName="block",i1.scope=Qn.BLOCK_BLOT,i1.tagName="P",i1.allowedChildren=[Pm,i1,lu];let ZP=i1;const Mp=ZP,Yy=class extends Oh{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,i){super.formatAt(e,t,r,i),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Yy.blotName="container",Yy.scope=Qn.BLOCK_BLOT;let XP=Yy;const Mv=XP;class KP extends lu{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,i){e===0&&t===this.length()?this.format(r,i):super.formatAt(e,t,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const zf=KP,JP={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},QP=100,o1=class extends Oh{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,JP),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=Qn.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,i){this.update(),super.formatAt(e,t,r,i)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const o=(h,g=!0)=>{h==null||h===this||h.domNode.parentNode!=null&&(r.has(h.domNode)||r.set(h.domNode,[]),g&&o(h.parent))},l=h=>{r.has(h.domNode)&&(h instanceof Oh&&h.children.forEach(l),r.delete(h.domNode),h.optimize(t))};let a=e;for(let h=0;a.length>0;h+=1){if(h>=QP)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(g=>{const m=this.find(g.target,!0);m!=null&&(m.domNode===g.target&&(g.type==="childList"?(o(this.find(g.previousSibling,!1)),Array.from(g.addedNodes).forEach(x=>{const w=this.find(x,!1);o(w,!1),w instanceof Oh&&w.children.forEach(_=>{o(_,!1)})})):g.type==="attributes"&&o(m.prev)),o(m))}),this.children.forEach(l),a=Array.from(this.observer.takeRecords()),i=a.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(i=>{const o=this.find(i.target,!0);return o==null?null:r.has(o.domNode)?(r.get(o.domNode).push(i),null):(r.set(o.domNode,[i]),o)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};o1.blotName="scroll",o1.defaultChild=Mp,o1.allowedChildren=[Mp,Mv],o1.scope=Qn.BLOCK_BLOT,o1.tagName="DIV";let qP=o1;const Dm=qP,Vy=class k4 extends lu{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof k4&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Vy.blotName="text",Vy.scope=Qn.INLINE_BLOT;let jP=Vy;const sv=jP,$P=Object.freeze(Object.defineProperty({__proto__:null,Attributor:rd,AttributorStore:kv,BlockBlot:Mp,ClassAttributor:zh,ContainerBlot:Mv,EmbedBlot:zf,InlineBlot:Pm,LeafBlot:lu,ParentBlot:Oh,Registry:_1,Scope:Qn,ScrollBlot:Dm,StyleAttributor:hg,TextBlot:sv},Symbol.toStringTag,{value:"Module"}));class Hh extends zf{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Hh.blotName="break";Hh.tagName="BR";let Dh=class extends sv{};const eD={"&":"&","<":"<",">":">",'"':""","'":"'"};function Lv(n){return n.replace(/[&<>"']/g,e=>eD[e])}const Kh=class Kh extends Pm{static compare(e,t){const r=Kh.order.indexOf(e),i=Kh.order.indexOf(t);return r>=0||i>=0?r-i:e===t?0:e<t?-1:1}formatAt(e,t,r,i){if(Kh.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Qn.BLOT)){const o=this.isolate(e,t);i&&o.wrap(r,i)}else super.formatAt(e,t,r,i)}optimize(e){if(super.optimize(e),this.parent instanceof Kh&&Kh.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};Ee(Kh,"allowedChildren",[Kh,Hh,zf,Dh]),Ee(Kh,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let id=Kh;const Gx=1;class kc extends Mp{constructor(){super(...arguments);Ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=M4(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,i,o){r<=0||(this.scroll.query(i,Qn.BLOCK)?t+r===this.length()&&this.format(i,o):super.formatAt(t,Math.min(r,this.length()-t-1),i,o),this.cache={})}insertAt(t,r,i){if(i!=null){super.insertAt(t,r,i),this.cache={};return}if(r.length===0)return;const o=r.split(`
|
|
288
|
+
`+ir),Oe&&b0([te,ne,ue],gr=>{ir=np(ir,gr," ")}),H&&Mt?H.createHTML(ir):ir},e.setConfig=function(){let Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lt(Tt),it=!0},e.clearConfig=function(){zt=null,it=!1},e.isValidAttribute=function(Tt,Se,rt){zt||Lt({});const Et=Ct(Tt),wn=Ct(Se);return rn(Et,wn,rt)},e.addHook=function(Tt,Se){typeof Se=="function"&&tp(X[Tt],Se)},e.removeHook=function(Tt,Se){if(Se!==void 0){const rt=Qk(X[Tt],Se);return rt===-1?void 0:qk(X[Tt],rt,1)[0]}return nx(X[Tt])},e.removeHooks=function(Tt){X[Tt]=[]},e.removeAllHooks=function(){X=ax()},e}var g7=q3(),m0={exports:{}},gb,cx;function p7(){if(cx)return gb;cx=1;var n=-1,e=1,t=0;function r(X,te,ne,ue,se){if(X===te)return X?[[t,X]]:[];if(ne!=null){var $=K(X,te,ne);if($)return $}var re=a(X,te),de=X.substring(0,re);X=X.substring(re),te=te.substring(re),re=g(X,te);var be=X.substring(X.length-re);X=X.substring(0,X.length-re),te=te.substring(0,te.length-re);var oe=i(X,te);return de&&oe.unshift([t,de]),be&&oe.push([t,be]),P(oe,se),ue&&x(oe),oe}function i(X,te){var ne;if(!X)return[[e,te]];if(!te)return[[n,X]];var ue=X.length>te.length?X:te,se=X.length>te.length?te:X,$=ue.indexOf(se);if($!==-1)return ne=[[e,ue.substring(0,$)],[t,se],[e,ue.substring($+se.length)]],X.length>te.length&&(ne[0][0]=ne[2][0]=n),ne;if(se.length===1)return[[n,X],[e,te]];var re=m(X,te);if(re){var de=re[0],be=re[1],oe=re[2],Q=re[3],ge=re[4],Te=r(de,oe),He=r(be,Q);return Te.concat([[t,ge]],He)}return o(X,te)}function o(X,te){for(var ne=X.length,ue=te.length,se=Math.ceil((ne+ue)/2),$=se,re=2*se,de=new Array(re),be=new Array(re),oe=0;oe<re;oe++)de[oe]=-1,be[oe]=-1;de[$+1]=0,be[$+1]=0;for(var Q=ne-ue,ge=Q%2!==0,Te=0,He=0,xe=0,Ne=0,Me=0;Me<se;Me++){for(var Be=-Me+Te;Be<=Me-He;Be+=2){var ke=$+Be,Ie;Be===-Me||Be!==Me&&de[ke-1]<de[ke+1]?Ie=de[ke+1]:Ie=de[ke-1]+1;for(var ze=Ie-Be;Ie<ne&&ze<ue&&X.charAt(Ie)===te.charAt(ze);)Ie++,ze++;if(de[ke]=Ie,Ie>ne)He+=2;else if(ze>ue)Te+=2;else if(ge){var Ke=$+Q-Be;if(Ke>=0&&Ke<re&&be[Ke]!==-1){var Oe=ne-be[Ke];if(Ie>=Oe)return l(X,te,Ie,ze)}}}for(var ht=-Me+xe;ht<=Me-Ne;ht+=2){var Ke=$+ht,Oe;ht===-Me||ht!==Me&&be[Ke-1]<be[Ke+1]?Oe=be[Ke+1]:Oe=be[Ke-1]+1;for(var $e=Oe-ht;Oe<ne&&$e<ue&&X.charAt(ne-Oe-1)===te.charAt(ue-$e-1);)Oe++,$e++;if(be[Ke]=Oe,Oe>ne)Ne+=2;else if($e>ue)xe+=2;else if(!ge){var ke=$+Q-ht;if(ke>=0&&ke<re&&de[ke]!==-1){var Ie=de[ke],ze=$+Ie-ke;if(Oe=ne-Oe,Ie>=Oe)return l(X,te,Ie,ze)}}}}return[[n,X],[e,te]]}function l(X,te,ne,ue){var se=X.substring(0,ne),$=te.substring(0,ue),re=X.substring(ne),de=te.substring(ue),be=r(se,$),oe=r(re,de);return be.concat(oe)}function a(X,te){if(!X||!te||X.charAt(0)!==te.charAt(0))return 0;for(var ne=0,ue=Math.min(X.length,te.length),se=ue,$=0;ne<se;)X.substring($,se)==te.substring($,se)?(ne=se,$=ne):ue=se,se=Math.floor((ue-ne)/2+ne);return z(X.charCodeAt(se-1))&&se--,se}function h(X,te){var ne=X.length,ue=te.length;if(ne==0||ue==0)return 0;ne>ue?X=X.substring(ne-ue):ne<ue&&(te=te.substring(0,ne));var se=Math.min(ne,ue);if(X==te)return se;for(var $=0,re=1;;){var de=X.substring(se-re),be=te.indexOf(de);if(be==-1)return $;re+=be,(be==0||X.substring(se-re)==te.substring(0,re))&&($=re,re++)}}function g(X,te){if(!X||!te||X.slice(-1)!==te.slice(-1))return 0;for(var ne=0,ue=Math.min(X.length,te.length),se=ue,$=0;ne<se;)X.substring(X.length-se,X.length-$)==te.substring(te.length-se,te.length-$)?(ne=se,$=ne):ue=se,se=Math.floor((ue-ne)/2+ne);return H(X.charCodeAt(X.length-se))&&se--,se}function m(X,te){var ne=X.length>te.length?X:te,ue=X.length>te.length?te:X;if(ne.length<4||ue.length*2<ne.length)return null;function se(He,xe,Ne){for(var Me=He.substring(Ne,Ne+Math.floor(He.length/4)),Be=-1,ke="",Ie,ze,Ke,Oe;(Be=xe.indexOf(Me,Be+1))!==-1;){var ht=a(He.substring(Ne),xe.substring(Be)),$e=g(He.substring(0,Ne),xe.substring(0,Be));ke.length<$e+ht&&(ke=xe.substring(Be-$e,Be)+xe.substring(Be,Be+ht),Ie=He.substring(0,Ne-$e),ze=He.substring(Ne+ht),Ke=xe.substring(0,Be-$e),Oe=xe.substring(Be+ht))}return ke.length*2>=He.length?[Ie,ze,Ke,Oe,ke]:null}var $=se(ne,ue,Math.ceil(ne.length/4)),re=se(ne,ue,Math.ceil(ne.length/2)),de;if(!$&&!re)return null;re?$?de=$[4].length>re[4].length?$:re:de=re:de=$;var be,oe,Q,ge;X.length>te.length?(be=de[0],oe=de[1],Q=de[2],ge=de[3]):(Q=de[0],ge=de[1],be=de[2],oe=de[3]);var Te=de[4];return[be,oe,Q,ge,Te]}function x(X){for(var te=!1,ne=[],ue=0,se=null,$=0,re=0,de=0,be=0,oe=0;$<X.length;)X[$][0]==t?(ne[ue++]=$,re=be,de=oe,be=0,oe=0,se=X[$][1]):(X[$][0]==e?be+=X[$][1].length:oe+=X[$][1].length,se&&se.length<=Math.max(re,de)&&se.length<=Math.max(be,oe)&&(X.splice(ne[ue-1],0,[n,se]),X[ne[ue-1]+1][0]=e,ue--,ue--,$=ue>0?ne[ue-1]:-1,re=0,de=0,be=0,oe=0,se=null,te=!0)),$++;for(te&&P(X),O(X),$=1;$<X.length;){if(X[$-1][0]==n&&X[$][0]==e){var Q=X[$-1][1],ge=X[$][1],Te=h(Q,ge),He=h(ge,Q);Te>=He?(Te>=Q.length/2||Te>=ge.length/2)&&(X.splice($,0,[t,ge.substring(0,Te)]),X[$-1][1]=Q.substring(0,Q.length-Te),X[$+1][1]=ge.substring(Te),$++):(He>=Q.length/2||He>=ge.length/2)&&(X.splice($,0,[t,Q.substring(0,He)]),X[$-1][0]=e,X[$-1][1]=ge.substring(0,ge.length-He),X[$+1][0]=n,X[$+1][1]=Q.substring(He),$++),$++}$++}}var w=/[^a-zA-Z0-9]/,_=/\s/,E=/[\r\n]/,R=/\n\r?\n$/,k=/^\r?\n\r?\n/;function O(X){function te(He,xe){if(!He||!xe)return 6;var Ne=He.charAt(He.length-1),Me=xe.charAt(0),Be=Ne.match(w),ke=Me.match(w),Ie=Be&&Ne.match(_),ze=ke&&Me.match(_),Ke=Ie&&Ne.match(E),Oe=ze&&Me.match(E),ht=Ke&&He.match(R),$e=Oe&&xe.match(k);return ht||$e?5:Ke||Oe?4:Be&&!Ie&&ze?3:Ie||ze?2:Be||ke?1:0}for(var ne=1;ne<X.length-1;){if(X[ne-1][0]==t&&X[ne+1][0]==t){var ue=X[ne-1][1],se=X[ne][1],$=X[ne+1][1],re=g(ue,se);if(re){var de=se.substring(se.length-re);ue=ue.substring(0,ue.length-re),se=de+se.substring(0,se.length-re),$=de+$}for(var be=ue,oe=se,Q=$,ge=te(ue,se)+te(se,$);se.charAt(0)===$.charAt(0);){ue+=se.charAt(0),se=se.substring(1)+$.charAt(0),$=$.substring(1);var Te=te(ue,se)+te(se,$);Te>=ge&&(ge=Te,be=ue,oe=se,Q=$)}X[ne-1][1]!=be&&(be?X[ne-1][1]=be:(X.splice(ne-1,1),ne--),X[ne][1]=oe,Q?X[ne+1][1]=Q:(X.splice(ne+1,1),ne--))}ne++}}function P(X,te){X.push([t,""]);for(var ne=0,ue=0,se=0,$="",re="",de;ne<X.length;){if(ne<X.length-1&&!X[ne][1]){X.splice(ne,1);continue}switch(X[ne][0]){case e:se++,re+=X[ne][1],ne++;break;case n:ue++,$+=X[ne][1],ne++;break;case t:var be=ne-se-ue-1;if(te){if(be>=0&&N(X[be][1])){var oe=X[be][1].slice(-1);if(X[be][1]=X[be][1].slice(0,-1),$=oe+$,re=oe+re,!X[be][1]){X.splice(be,1),ne--;var Q=be-1;X[Q]&&X[Q][0]===e&&(se++,re=X[Q][1]+re,Q--),X[Q]&&X[Q][0]===n&&(ue++,$=X[Q][1]+$,Q--),be=Q}}if(G(X[ne][1])){var oe=X[ne][1].charAt(0);X[ne][1]=X[ne][1].slice(1),$+=oe,re+=oe}}if(ne<X.length-1&&!X[ne][1]){X.splice(ne,1);break}if($.length>0||re.length>0){$.length>0&&re.length>0&&(de=a(re,$),de!==0&&(be>=0?X[be][1]+=re.substring(0,de):(X.splice(0,0,[t,re.substring(0,de)]),ne++),re=re.substring(de),$=$.substring(de)),de=g(re,$),de!==0&&(X[ne][1]=re.substring(re.length-de)+X[ne][1],re=re.substring(0,re.length-de),$=$.substring(0,$.length-de)));var ge=se+ue;$.length===0&&re.length===0?(X.splice(ne-ge,ge),ne=ne-ge):$.length===0?(X.splice(ne-ge,ge,[e,re]),ne=ne-ge+1):re.length===0?(X.splice(ne-ge,ge,[n,$]),ne=ne-ge+1):(X.splice(ne-ge,ge,[n,$],[e,re]),ne=ne-ge+2)}ne!==0&&X[ne-1][0]===t?(X[ne-1][1]+=X[ne][1],X.splice(ne,1)):ne++,se=0,ue=0,$="",re="";break}}X[X.length-1][1]===""&&X.pop();var Te=!1;for(ne=1;ne<X.length-1;)X[ne-1][0]===t&&X[ne+1][0]===t&&(X[ne][1].substring(X[ne][1].length-X[ne-1][1].length)===X[ne-1][1]?(X[ne][1]=X[ne-1][1]+X[ne][1].substring(0,X[ne][1].length-X[ne-1][1].length),X[ne+1][1]=X[ne-1][1]+X[ne+1][1],X.splice(ne-1,1),Te=!0):X[ne][1].substring(0,X[ne+1][1].length)==X[ne+1][1]&&(X[ne-1][1]+=X[ne+1][1],X[ne][1]=X[ne][1].substring(X[ne+1][1].length)+X[ne+1][1],X.splice(ne+1,1),Te=!0)),ne++;Te&&P(X,te)}function z(X){return X>=55296&&X<=56319}function H(X){return X>=56320&&X<=57343}function G(X){return H(X.charCodeAt(0))}function N(X){return z(X.charCodeAt(X.length-1))}function J(X){for(var te=[],ne=0;ne<X.length;ne++)X[ne][1].length>0&&te.push(X[ne]);return te}function Y(X,te,ne,ue){return N(X)||G(ue)?null:J([[t,X],[n,te],[e,ne],[t,ue]])}function K(X,te,ne){var ue=typeof ne=="number"?{index:ne,length:0}:ne.oldRange,se=typeof ne=="number"?null:ne.newRange,$=X.length,re=te.length;if(ue.length===0&&(se===null||se.length===0)){var de=ue.index,be=X.slice(0,de),oe=X.slice(de),Q=se?se.index:null;e:{var ge=de+re-$;if(Q!==null&&Q!==ge||ge<0||ge>re)break e;var Te=te.slice(0,ge),He=te.slice(ge);if(He!==oe)break e;var xe=Math.min(de,ge),Ne=be.slice(0,xe),Me=Te.slice(0,xe);if(Ne!==Me)break e;var Be=be.slice(xe),ke=Te.slice(xe);return Y(Ne,Be,ke,oe)}e:{if(Q!==null&&Q!==de)break e;var Ie=de,Te=te.slice(0,Ie),He=te.slice(Ie);if(Te!==be)break e;var ze=Math.min($-Ie,re-Ie),Ke=oe.slice(oe.length-ze),Oe=He.slice(He.length-ze);if(Ke!==Oe)break e;var Be=oe.slice(0,oe.length-ze),ke=He.slice(0,He.length-ze);return Y(be,Be,ke,Ke)}}if(ue.length>0&&se&&se.length===0)e:{var Ne=X.slice(0,ue.index),Ke=X.slice(ue.index+ue.length),xe=Ne.length,ze=Ke.length;if(re<xe+ze)break e;var Me=te.slice(0,xe),Oe=te.slice(re-ze);if(Ne!==Me||Ke!==Oe)break e;var Be=X.slice(xe,$-ze),ke=te.slice(xe,re-ze);return Y(Ne,Be,ke,Ke)}return null}function fe(X,te,ne,ue){return r(X,te,ne,ue,!0)}return fe.INSERT=e,fe.DELETE=n,fe.EQUAL=t,gb=fe,gb}var vp={exports:{}};vp.exports;var ux;function j3(){return ux||(ux=1,(function(n,e){var t=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",l="[object Array]",a="[object Boolean]",h="[object Date]",g="[object Error]",m="[object Function]",x="[object GeneratorFunction]",w="[object Map]",_="[object Number]",E="[object Object]",R="[object Promise]",k="[object RegExp]",O="[object Set]",P="[object String]",z="[object Symbol]",H="[object WeakMap]",G="[object ArrayBuffer]",N="[object DataView]",J="[object Float32Array]",Y="[object Float64Array]",K="[object Int8Array]",fe="[object Int16Array]",X="[object Int32Array]",te="[object Uint8Array]",ne="[object Uint8ClampedArray]",ue="[object Uint16Array]",se="[object Uint32Array]",$=/[\\^$.*+?()[\]{}|]/g,re=/\w*$/,de=/^\[object .+?Constructor\]$/,be=/^(?:0|[1-9]\d*)$/,oe={};oe[o]=oe[l]=oe[G]=oe[N]=oe[a]=oe[h]=oe[J]=oe[Y]=oe[K]=oe[fe]=oe[X]=oe[w]=oe[_]=oe[E]=oe[k]=oe[O]=oe[P]=oe[z]=oe[te]=oe[ne]=oe[ue]=oe[se]=!0,oe[g]=oe[m]=oe[H]=!1;var Q=typeof jh=="object"&&jh&&jh.Object===Object&&jh,ge=typeof self=="object"&&self&&self.Object===Object&&self,Te=Q||ge||Function("return this")(),He=e&&!e.nodeType&&e,xe=He&&!0&&n&&!n.nodeType&&n,Ne=xe&&xe.exports===He;function Me(me,ct){return me.set(ct[0],ct[1]),me}function Be(me,ct){return me.add(ct),me}function ke(me,ct){for(var Fe=-1,yt=me?me.length:0;++Fe<yt&&ct(me[Fe],Fe,me)!==!1;);return me}function Ie(me,ct){for(var Fe=-1,yt=ct.length,Bn=me.length;++Fe<yt;)me[Bn+Fe]=ct[Fe];return me}function ze(me,ct,Fe,yt){for(var Bn=-1,mr=me?me.length:0;++Bn<mr;)Fe=ct(Fe,me[Bn],Bn,me);return Fe}function Ke(me,ct){for(var Fe=-1,yt=Array(me);++Fe<me;)yt[Fe]=ct(Fe);return yt}function Oe(me,ct){return me==null?void 0:me[ct]}function ht(me){var ct=!1;if(me!=null&&typeof me.toString!="function")try{ct=!!(me+"")}catch{}return ct}function $e(me){var ct=-1,Fe=Array(me.size);return me.forEach(function(yt,Bn){Fe[++ct]=[Bn,yt]}),Fe}function it(me,ct){return function(Fe){return me(ct(Fe))}}function et(me){var ct=-1,Fe=Array(me.size);return me.forEach(function(yt){Fe[++ct]=yt}),Fe}var st=Array.prototype,dt=Function.prototype,Mt=Object.prototype,ot=Te["__core-js_shared__"],nt=(function(){var me=/[^.]+$/.exec(ot&&ot.keys&&ot.keys.IE_PROTO||"");return me?"Symbol(src)_1."+me:""})(),Ot=dt.toString,Zt=Mt.hasOwnProperty,Rt=Mt.toString,tn=RegExp("^"+Ot.call(Zt).replace($,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=Ne?Te.Buffer:void 0,yn=Te.Symbol,dn=Te.Uint8Array,nn=it(Object.getPrototypeOf,Object),Bt=Object.create,on=Mt.propertyIsEnumerable,Nn=st.splice,Rn=Object.getOwnPropertySymbols,gn=Ft?Ft.isBuffer:void 0,Ue=it(Object.keys,Object),Ce=hi(Te,"DataView"),Ze=hi(Te,"Map"),wt=hi(Te,"Promise"),Kt=hi(Te,"Set"),Gt=hi(Te,"WeakMap"),pn=hi(Object,"create"),un=mi(Ce),ft=mi(Ze),kt=mi(wt),Ct=mi(Kt),zt=mi(Gt),ln=yn?yn.prototype:void 0,mt=ln?ln.valueOf:void 0;function Lt(me){var ct=-1,Fe=me?me.length:0;for(this.clear();++ct<Fe;){var yt=me[ct];this.set(yt[0],yt[1])}}function en(){this.__data__=pn?pn(null):{}}function bn(me){return this.has(me)&&delete this.__data__[me]}function xn(me){var ct=this.__data__;if(pn){var Fe=ct[me];return Fe===r?void 0:Fe}return Zt.call(ct,me)?ct[me]:void 0}function Vt(me){var ct=this.__data__;return pn?ct[me]!==void 0:Zt.call(ct,me)}function mn(me,ct){var Fe=this.__data__;return Fe[me]=pn&&ct===void 0?r:ct,this}Lt.prototype.clear=en,Lt.prototype.delete=bn,Lt.prototype.get=xn,Lt.prototype.has=Vt,Lt.prototype.set=mn;function Dn(me){var ct=-1,Fe=me?me.length:0;for(this.clear();++ct<Fe;){var yt=me[ct];this.set(yt[0],yt[1])}}function cr(){this.__data__=[]}function En(me){var ct=this.__data__,Fe=qn(ct,me);if(Fe<0)return!1;var yt=ct.length-1;return Fe==yt?ct.pop():Nn.call(ct,Fe,1),!0}function Ln(me){var ct=this.__data__,Fe=qn(ct,me);return Fe<0?void 0:ct[Fe][1]}function je(me){return qn(this.__data__,me)>-1}function qt(me,ct){var Fe=this.__data__,yt=qn(Fe,me);return yt<0?Fe.push([me,ct]):Fe[yt][1]=ct,this}Dn.prototype.clear=cr,Dn.prototype.delete=En,Dn.prototype.get=Ln,Dn.prototype.has=je,Dn.prototype.set=qt;function rn(me){var ct=-1,Fe=me?me.length:0;for(this.clear();++ct<Fe;){var yt=me[ct];this.set(yt[0],yt[1])}}function zn(){this.__data__={hash:new Lt,map:new(Ze||Dn),string:new Lt}}function $n(me){return Lr(this,me).delete(me)}function kn(me){return Lr(this,me).get(me)}function Tt(me){return Lr(this,me).has(me)}function Se(me,ct){return Lr(this,me).set(me,ct),this}rn.prototype.clear=zn,rn.prototype.delete=$n,rn.prototype.get=kn,rn.prototype.has=Tt,rn.prototype.set=Se;function rt(me){this.__data__=new Dn(me)}function Et(){this.__data__=new Dn}function wn(me){return this.__data__.delete(me)}function Tn(me){return this.__data__.get(me)}function Zn(me){return this.__data__.has(me)}function ir(me,ct){var Fe=this.__data__;if(Fe instanceof Dn){var yt=Fe.__data__;if(!Ze||yt.length<t-1)return yt.push([me,ct]),this;Fe=this.__data__=new rn(yt)}return Fe.set(me,ct),this}rt.prototype.clear=Et,rt.prototype.delete=wn,rt.prototype.get=Tn,rt.prototype.has=Zn,rt.prototype.set=ir;function gr(me,ct){var Fe=Gi(me)||Bo(me)?Ke(me.length,String):[],yt=Fe.length,Bn=!!yt;for(var mr in me)Zt.call(me,mr)&&!(Bn&&(mr=="length"||Ei(mr,yt)))&&Fe.push(mr);return Fe}function Cn(me,ct,Fe){var yt=me[ct];(!(Zt.call(me,ct)&&Ko(yt,Fe))||Fe===void 0&&!(ct in me))&&(me[ct]=Fe)}function qn(me,ct){for(var Fe=me.length;Fe--;)if(Ko(me[Fe][0],ct))return Fe;return-1}function _n(me,ct){return me&&ur(ct,Ao(ct),me)}function dr(me,ct,Fe,yt,Bn,mr,si){var qi;if(yt&&(qi=mr?yt(me,Bn,mr,si):yt(me)),qi!==void 0)return qi;if(!vo(me))return me;var Yi=Gi(me);if(Yi){if(qi=Xo(me),!ct)return Ar(me,qi)}else{var lo=Fr(me),Ll=lo==m||lo==x;if(po(me))return ho(me,ct);if(lo==E||lo==o||Ll&&!mr){if(ht(me))return mr?me:{};if(qi=Co(Ll?{}:me),!ct)return Fn(me,_n(qi,me))}else{if(!oe[lo])return mr?me:{};qi=Fo(me,lo,dr,ct)}}si||(si=new rt);var Ql=si.get(me);if(Ql)return Ql;if(si.set(me,qi),!Yi)var sc=Fe?zr(me):Ao(me);return ke(sc||me,function(cl,za){sc&&(za=cl,cl=me[za]),Cn(qi,za,dr(cl,ct,Fe,yt,za,me,si))}),qi}function li(me){return vo(me)?Bt(me):{}}function wo(me,ct,Fe){var yt=ct(me);return Gi(me)?yt:Ie(yt,Fe(me))}function fo(me){return Rt.call(me)}function Br(me){if(!vo(me)||xr(me))return!1;var ct=Ho(me)||ht(me)?tn:de;return ct.test(mi(me))}function al(me){if(!vl(me))return Ue(me);var ct=[];for(var Fe in Object(me))Zt.call(me,Fe)&&Fe!="constructor"&&ct.push(Fe);return ct}function ho(me,ct){if(ct)return me.slice();var Fe=new me.constructor(me.length);return me.copy(Fe),Fe}function Si(me){var ct=new me.constructor(me.byteLength);return new dn(ct).set(new dn(me)),ct}function Jl(me,ct){var Fe=ct?Si(me.buffer):me.buffer;return new me.constructor(Fe,me.byteOffset,me.byteLength)}function No(me,ct,Fe){var yt=ct?Fe($e(me),!0):$e(me);return ze(yt,Me,new me.constructor)}function To(me){var ct=new me.constructor(me.source,re.exec(me));return ct.lastIndex=me.lastIndex,ct}function jr(me,ct,Fe){var yt=ct?Fe(et(me),!0):et(me);return ze(yt,Be,new me.constructor)}function fn(me){return mt?Object(mt.call(me)):{}}function On(me,ct){var Fe=ct?Si(me.buffer):me.buffer;return new me.constructor(Fe,me.byteOffset,me.length)}function Ar(me,ct){var Fe=-1,yt=me.length;for(ct||(ct=Array(yt));++Fe<yt;)ct[Fe]=me[Fe];return ct}function ur(me,ct,Fe,yt){Fe||(Fe={});for(var Bn=-1,mr=ct.length;++Bn<mr;){var si=ct[Bn],qi=void 0;Cn(Fe,si,qi===void 0?me[si]:qi)}return Fe}function Fn(me,ct){return ur(me,Ui(me),ct)}function zr(me){return wo(me,Ao,Ui)}function Lr(me,ct){var Fe=me.__data__;return $r(ct)?Fe[typeof ct=="string"?"string":"hash"]:Fe.map}function hi(me,ct){var Fe=Oe(me,ct);return Br(Fe)?Fe:void 0}var Ui=Rn?it(Rn,Object):er,Fr=fo;(Ce&&Fr(new Ce(new ArrayBuffer(1)))!=N||Ze&&Fr(new Ze)!=w||wt&&Fr(wt.resolve())!=R||Kt&&Fr(new Kt)!=O||Gt&&Fr(new Gt)!=H)&&(Fr=function(me){var ct=Rt.call(me),Fe=ct==E?me.constructor:void 0,yt=Fe?mi(Fe):void 0;if(yt)switch(yt){case un:return N;case ft:return w;case kt:return R;case Ct:return O;case zt:return H}return ct});function Xo(me){var ct=me.length,Fe=me.constructor(ct);return ct&&typeof me[0]=="string"&&Zt.call(me,"index")&&(Fe.index=me.index,Fe.input=me.input),Fe}function Co(me){return typeof me.constructor=="function"&&!vl(me)?li(nn(me)):{}}function Fo(me,ct,Fe,yt){var Bn=me.constructor;switch(ct){case G:return Si(me);case a:case h:return new Bn(+me);case N:return Jl(me,yt);case J:case Y:case K:case fe:case X:case te:case ne:case ue:case se:return On(me,yt);case w:return No(me,yt,Fe);case _:case P:return new Bn(me);case k:return To(me);case O:return jr(me,yt,Fe);case z:return fn(me)}}function Ei(me,ct){return ct=ct??i,!!ct&&(typeof me=="number"||be.test(me))&&me>-1&&me%1==0&&me<ct}function $r(me){var ct=typeof me;return ct=="string"||ct=="number"||ct=="symbol"||ct=="boolean"?me!=="__proto__":me===null}function xr(me){return!!nt&&nt in me}function vl(me){var ct=me&&me.constructor,Fe=typeof ct=="function"&&ct.prototype||Mt;return me===Fe}function mi(me){if(me!=null){try{return Ot.call(me)}catch{}try{return me+""}catch{}}return""}function oo(me){return dr(me,!0,!0)}function Ko(me,ct){return me===ct||me!==me&&ct!==ct}function Bo(me){return go(me)&&Zt.call(me,"callee")&&(!on.call(me,"callee")||Rt.call(me)==o)}var Gi=Array.isArray;function zo(me){return me!=null&&jn(me.length)&&!Ho(me)}function go(me){return di(me)&&zo(me)}var po=gn||wr;function Ho(me){var ct=vo(me)?Rt.call(me):"";return ct==m||ct==x}function jn(me){return typeof me=="number"&&me>-1&&me%1==0&&me<=i}function vo(me){var ct=typeof me;return!!me&&(ct=="object"||ct=="function")}function di(me){return!!me&&typeof me=="object"}function Ao(me){return zo(me)?gr(me):al(me)}function er(){return[]}function wr(){return!1}n.exports=oo})(vp,vp.exports)),vp.exports}var pb,fx;function $3(){return fx||(fx=1,pb=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!n(e[i],t[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=r;i--!==0;){var l=o[i];if(!n(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}),pb}var x0={},hx;function v7(){if(hx)return x0;hx=1,Object.defineProperty(x0,"__esModule",{value:!0});const n=j3(),e=$3();var t;return(function(r){function i(h={},g={},m=!1){typeof h!="object"&&(h={}),typeof g!="object"&&(g={});let x=n(g);m||(x=Object.keys(x).reduce((w,_)=>(x[_]!=null&&(w[_]=x[_]),w),{}));for(const w in h)h[w]!==void 0&&g[w]===void 0&&(x[w]=h[w]);return Object.keys(x).length>0?x:void 0}r.compose=i;function o(h={},g={}){typeof h!="object"&&(h={}),typeof g!="object"&&(g={});const m=Object.keys(h).concat(Object.keys(g)).reduce((x,w)=>(e(h[w],g[w])||(x[w]=g[w]===void 0?null:g[w]),x),{});return Object.keys(m).length>0?m:void 0}r.diff=o;function l(h={},g={}){h=h||{};const m=Object.keys(g).reduce((x,w)=>(g[w]!==h[w]&&h[w]!==void 0&&(x[w]=g[w]),x),{});return Object.keys(h).reduce((x,w)=>(h[w]!==g[w]&&g[w]===void 0&&(x[w]=null),x),m)}r.invert=l;function a(h,g,m=!1){if(typeof h!="object")return g;if(typeof g!="object")return;if(!m)return g;const x=Object.keys(g).reduce((w,_)=>(h[_]===void 0&&(w[_]=g[_]),w),{});return Object.keys(x).length>0?x:void 0}r.transform=a})(t||(t={})),x0.default=t,x0}var w0={},dx;function e_(){if(dx)return w0;dx=1,Object.defineProperty(w0,"__esModule",{value:!0});var n;return(function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t})(n||(n={})),w0.default=n,w0}var C0={},gx;function b7(){if(gx)return C0;gx=1,Object.defineProperty(C0,"__esModule",{value:!0});const n=e_();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const i=this.ops[this.index];if(i){const o=this.offset,l=n.default.length(i);if(r>=l-o?(r=l-o,this.index+=1,this.offset=0):this.offset+=r,typeof i.delete=="number")return{delete:r};{const a={};return i.attributes&&(a.attributes=i.attributes),typeof i.retain=="number"?a.retain=r:typeof i.retain=="object"&&i.retain!==null?a.retain=i.retain:typeof i.insert=="string"?a.insert=i.insert.substr(o,r):a.insert=i.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,i=this.index,o=this.next(),l=this.ops.slice(this.index);return this.offset=r,this.index=i,[o].concat(l)}}else return[]}}return C0.default=e,C0}var px;function y7(){return px||(px=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=p7(),r=j3(),i=$3(),o=v7();e.AttributeMap=o.default;const l=e_();e.Op=l.default;const a=b7();e.OpIterator=a.default;const h="\0",g=(x,w)=>{if(typeof x!="object"||x===null)throw new Error(`cannot retain a ${typeof x}`);if(typeof w!="object"||w===null)throw new Error(`cannot retain a ${typeof w}`);const _=Object.keys(x)[0];if(!_||_!==Object.keys(w)[0])throw new Error(`embed types not matched: ${_} != ${Object.keys(w)[0]}`);return[_,x[_],w[_]]};class m{constructor(w){Array.isArray(w)?this.ops=w:w!=null&&Array.isArray(w.ops)?this.ops=w.ops:this.ops=[]}static registerEmbed(w,_){this.handlers[w]=_}static unregisterEmbed(w){delete this.handlers[w]}static getHandler(w){const _=this.handlers[w];if(!_)throw new Error(`no handlers for embed type "${w}"`);return _}insert(w,_){const E={};return typeof w=="string"&&w.length===0?this:(E.insert=w,_!=null&&typeof _=="object"&&Object.keys(_).length>0&&(E.attributes=_),this.push(E))}delete(w){return w<=0?this:this.push({delete:w})}retain(w,_){if(typeof w=="number"&&w<=0)return this;const E={retain:w};return _!=null&&typeof _=="object"&&Object.keys(_).length>0&&(E.attributes=_),this.push(E)}push(w){let _=this.ops.length,E=this.ops[_-1];if(w=r(w),typeof E=="object"){if(typeof w.delete=="number"&&typeof E.delete=="number")return this.ops[_-1]={delete:E.delete+w.delete},this;if(typeof E.delete=="number"&&w.insert!=null&&(_-=1,E=this.ops[_-1],typeof E!="object"))return this.ops.unshift(w),this;if(i(w.attributes,E.attributes)){if(typeof w.insert=="string"&&typeof E.insert=="string")return this.ops[_-1]={insert:E.insert+w.insert},typeof w.attributes=="object"&&(this.ops[_-1].attributes=w.attributes),this;if(typeof w.retain=="number"&&typeof E.retain=="number")return this.ops[_-1]={retain:E.retain+w.retain},typeof w.attributes=="object"&&(this.ops[_-1].attributes=w.attributes),this}}return _===this.ops.length?this.ops.push(w):this.ops.splice(_,0,w),this}chop(){const w=this.ops[this.ops.length-1];return w&&typeof w.retain=="number"&&!w.attributes&&this.ops.pop(),this}filter(w){return this.ops.filter(w)}forEach(w){this.ops.forEach(w)}map(w){return this.ops.map(w)}partition(w){const _=[],E=[];return this.forEach(R=>{(w(R)?_:E).push(R)}),[_,E]}reduce(w,_){return this.ops.reduce(w,_)}changeLength(){return this.reduce((w,_)=>_.insert?w+l.default.length(_):_.delete?w-_.delete:w,0)}length(){return this.reduce((w,_)=>w+l.default.length(_),0)}slice(w=0,_=1/0){const E=[],R=new a.default(this.ops);let k=0;for(;k<_&&R.hasNext();){let O;k<w?O=R.next(w-k):(O=R.next(_-k),E.push(O)),k+=l.default.length(O)}return new m(E)}compose(w){const _=new a.default(this.ops),E=new a.default(w.ops),R=[],k=E.peek();if(k!=null&&typeof k.retain=="number"&&k.attributes==null){let P=k.retain;for(;_.peekType()==="insert"&&_.peekLength()<=P;)P-=_.peekLength(),R.push(_.next());k.retain-P>0&&E.next(k.retain-P)}const O=new m(R);for(;_.hasNext()||E.hasNext();)if(E.peekType()==="insert")O.push(E.next());else if(_.peekType()==="delete")O.push(_.next());else{const P=Math.min(_.peekLength(),E.peekLength()),z=_.next(P),H=E.next(P);if(H.retain){const G={};if(typeof z.retain=="number")G.retain=typeof H.retain=="number"?P:H.retain;else if(typeof H.retain=="number")z.retain==null?G.insert=z.insert:G.retain=z.retain;else{const J=z.retain==null?"insert":"retain",[Y,K,fe]=g(z[J],H.retain),X=m.getHandler(Y);G[J]={[Y]:X.compose(K,fe,J==="retain")}}const N=o.default.compose(z.attributes,H.attributes,typeof z.retain=="number");if(N&&(G.attributes=N),O.push(G),!E.hasNext()&&i(O.ops[O.ops.length-1],G)){const J=new m(_.rest());return O.concat(J).chop()}}else typeof H.delete=="number"&&(typeof z.retain=="number"||typeof z.retain=="object"&&z.retain!==null)&&O.push(H)}return O.chop()}concat(w){const _=new m(this.ops.slice());return w.ops.length>0&&(_.push(w.ops[0]),_.ops=_.ops.concat(w.ops.slice(1))),_}diff(w,_){if(this.ops===w.ops)return new m;const E=[this,w].map(z=>z.map(H=>{if(H.insert!=null)return typeof H.insert=="string"?H.insert:h;const G=z===w?"on":"with";throw new Error("diff() called "+G+" non-document")}).join("")),R=new m,k=t(E[0],E[1],_,!0),O=new a.default(this.ops),P=new a.default(w.ops);return k.forEach(z=>{let H=z[1].length;for(;H>0;){let G=0;switch(z[0]){case t.INSERT:G=Math.min(P.peekLength(),H),R.push(P.next(G));break;case t.DELETE:G=Math.min(H,O.peekLength()),O.next(G),R.delete(G);break;case t.EQUAL:G=Math.min(O.peekLength(),P.peekLength(),H);const N=O.next(G),J=P.next(G);i(N.insert,J.insert)?R.retain(G,o.default.diff(N.attributes,J.attributes)):R.push(J).delete(G);break}H-=G}}),R.chop()}eachLine(w,_=`
|
|
289
|
+
`){const E=new a.default(this.ops);let R=new m,k=0;for(;E.hasNext();){if(E.peekType()!=="insert")return;const O=E.peek(),P=l.default.length(O)-E.peekLength(),z=typeof O.insert=="string"?O.insert.indexOf(_,P)-P:-1;if(z<0)R.push(E.next());else if(z>0)R.push(E.next(z));else{if(w(R,E.next(1).attributes||{},k)===!1)return;k+=1,R=new m}}R.length()>0&&w(R,{},k)}invert(w){const _=new m;return this.reduce((E,R)=>{if(R.insert)_.delete(l.default.length(R));else{if(typeof R.retain=="number"&&R.attributes==null)return _.retain(R.retain),E+R.retain;if(R.delete||typeof R.retain=="number"){const k=R.delete||R.retain;return w.slice(E,E+k).forEach(P=>{R.delete?_.push(P):R.retain&&R.attributes&&_.retain(l.default.length(P),o.default.invert(R.attributes,P.attributes))}),E+k}else if(typeof R.retain=="object"&&R.retain!==null){const k=w.slice(E,E+1),O=new a.default(k.ops).next(),[P,z,H]=g(R.retain,O.insert),G=m.getHandler(P);return _.retain({[P]:G.invert(z,H)},o.default.invert(R.attributes,O.attributes)),E+1}}return E},0),_.chop()}transform(w,_=!1){if(_=!!_,typeof w=="number")return this.transformPosition(w,_);const E=w,R=new a.default(this.ops),k=new a.default(E.ops),O=new m;for(;R.hasNext()||k.hasNext();)if(R.peekType()==="insert"&&(_||k.peekType()!=="insert"))O.retain(l.default.length(R.next()));else if(k.peekType()==="insert")O.push(k.next());else{const P=Math.min(R.peekLength(),k.peekLength()),z=R.next(P),H=k.next(P);if(z.delete)continue;if(H.delete)O.push(H);else{const G=z.retain,N=H.retain;let J=typeof N=="object"&&N!==null?N:P;if(typeof G=="object"&&G!==null&&typeof N=="object"&&N!==null){const Y=Object.keys(G)[0];if(Y===Object.keys(N)[0]){const K=m.getHandler(Y);K&&(J={[Y]:K.transform(G[Y],N[Y],_)})}}O.retain(J,o.default.transform(z.attributes,H.attributes,_))}}return O.chop()}transformPosition(w,_=!1){_=!!_;const E=new a.default(this.ops);let R=0;for(;E.hasNext()&&R<=w;){const k=E.peekLength(),O=E.peekType();if(E.next(),O==="delete"){w-=Math.min(k,w-R);continue}else O==="insert"&&(R<w||!_)&&(w+=k);R+=k}return w}}m.Op=l.default,m.OpIterator=a.default,m.AttributeMap=o.default,m.handlers={},e.default=m,n.exports=m,n.exports.default=m})(m0,m0.exports)),m0.exports}var vh=y7();const Jn=L1(vh);var t_=typeof global=="object"&&global&&global.Object===Object&&global,m7=typeof self=="object"&&self&&self.Object===Object&&self,sd=t_||m7||Function("return this")(),ag=sd.Symbol,n_=Object.prototype,x7=n_.hasOwnProperty,w7=n_.toString,lp=ag?ag.toStringTag:void 0;function C7(n){var e=x7.call(n,lp),t=n[lp];try{n[lp]=void 0;var r=!0}catch{}var i=w7.call(n);return r&&(e?n[lp]=t:delete n[lp]),i}var _7=Object.prototype,S7=_7.toString;function E7(n){return S7.call(n)}var T7="[object Null]",A7="[object Undefined]",vx=ag?ag.toStringTag:void 0;function P1(n){return n==null?n===void 0?A7:T7:vx&&vx in Object(n)?C7(n):E7(n)}function Ad(n){return n!=null&&typeof n=="object"}var Pg=Array.isArray;function fg(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function r_(n){return n}var R7="[object AsyncFunction]",I7="[object Function]",k7="[object GeneratorFunction]",M7="[object Proxy]";function Rm(n){if(!fg(n))return!1;var e=P1(n);return e==I7||e==k7||e==R7||e==M7}var vb=sd["__core-js_shared__"],bx=(function(){var n=/[^.]+$/.exec(vb&&vb.keys&&vb.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function L7(n){return!!bx&&bx in n}var O7=Function.prototype,P7=O7.toString;function Hg(n){if(n!=null){try{return P7.call(n)}catch{}try{return n+""}catch{}}return""}var D7=/[\\^$.*+?()[\]{}|]/g,N7=/^\[object .+?Constructor\]$/,F7=Function.prototype,B7=Object.prototype,z7=F7.toString,H7=B7.hasOwnProperty,W7=RegExp("^"+z7.call(H7).replace(D7,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function U7(n){if(!fg(n)||L7(n))return!1;var e=Rm(n)?W7:N7;return e.test(Hg(n))}function G7(n,e){return n==null?void 0:n[e]}function Wg(n,e){var t=G7(n,e);return U7(t)?t:void 0}var Py=Wg(sd,"WeakMap"),yx=Object.create,Y7=(function(){function n(){}return function(e){if(!fg(e))return{};if(yx)return yx(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}})();function V7(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function Z7(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var X7=800,K7=16,J7=Date.now;function Q7(n){var e=0,t=0;return function(){var r=J7(),i=K7-(r-t);if(t=r,i>0){if(++e>=X7)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function q7(n){return function(){return n}}var iv=(function(){try{var n=Wg(Object,"defineProperty");return n({},"",{}),n}catch{}})(),j7=iv?function(n,e){return iv(n,"toString",{configurable:!0,enumerable:!1,value:q7(e),writable:!0})}:r_,$7=Q7(j7);function eM(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var tM=9007199254740991,nM=/^(?:0|[1-9]\d*)$/;function i_(n,e){var t=typeof n;return e=e??tM,!!e&&(t=="number"||t!="symbol"&&nM.test(n))&&n>-1&&n%1==0&&n<e}function Im(n,e,t){e=="__proto__"&&iv?iv(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Wp(n,e){return n===e||n!==n&&e!==e}var rM=Object.prototype,iM=rM.hasOwnProperty;function o_(n,e,t){var r=n[e];(!(iM.call(n,e)&&Wp(r,t))||t===void 0&&!(e in n))&&Im(n,e,t)}function oM(n,e,t,r){var i=!t;t||(t={});for(var o=-1,l=e.length;++o<l;){var a=e[o],h=void 0;h===void 0&&(h=n[a]),i?Im(t,a,h):o_(t,a,h)}return t}var mx=Math.max;function lM(n,e,t){return e=mx(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,o=mx(r.length-e,0),l=Array(o);++i<o;)l[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=t(l),V7(n,this,a)}}function sM(n,e){return $7(lM(n,e,r_),n+"")}var aM=9007199254740991;function l_(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=aM}function Av(n){return n!=null&&l_(n.length)&&!Rm(n)}function cM(n,e,t){if(!fg(t))return!1;var r=typeof e;return(r=="number"?Av(t)&&i_(e,t.length):r=="string"&&e in t)?Wp(t[e],n):!1}function uM(n){return sM(function(e,t){var r=-1,i=t.length,o=i>1?t[i-1]:void 0,l=i>2?t[2]:void 0;for(o=n.length>3&&typeof o=="function"?(i--,o):void 0,l&&cM(t[0],t[1],l)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var a=t[r];a&&n(e,a,r,o)}return e})}var fM=Object.prototype;function km(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||fM;return n===t}function hM(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var dM="[object Arguments]";function xx(n){return Ad(n)&&P1(n)==dM}var s_=Object.prototype,gM=s_.hasOwnProperty,pM=s_.propertyIsEnumerable,Dy=xx((function(){return arguments})())?xx:function(n){return Ad(n)&&gM.call(n,"callee")&&!pM.call(n,"callee")};function vM(){return!1}var a_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wx=a_&&typeof module=="object"&&module&&!module.nodeType&&module,bM=wx&&wx.exports===a_,Cx=bM?sd.Buffer:void 0,yM=Cx?Cx.isBuffer:void 0,Rp=yM||vM,mM="[object Arguments]",xM="[object Array]",wM="[object Boolean]",CM="[object Date]",_M="[object Error]",SM="[object Function]",EM="[object Map]",TM="[object Number]",AM="[object Object]",RM="[object RegExp]",IM="[object Set]",kM="[object String]",MM="[object WeakMap]",LM="[object ArrayBuffer]",OM="[object DataView]",PM="[object Float32Array]",DM="[object Float64Array]",NM="[object Int8Array]",FM="[object Int16Array]",BM="[object Int32Array]",zM="[object Uint8Array]",HM="[object Uint8ClampedArray]",WM="[object Uint16Array]",UM="[object Uint32Array]",Xl={};Xl[PM]=Xl[DM]=Xl[NM]=Xl[FM]=Xl[BM]=Xl[zM]=Xl[HM]=Xl[WM]=Xl[UM]=!0;Xl[mM]=Xl[xM]=Xl[LM]=Xl[wM]=Xl[OM]=Xl[CM]=Xl[_M]=Xl[SM]=Xl[EM]=Xl[TM]=Xl[AM]=Xl[RM]=Xl[IM]=Xl[kM]=Xl[MM]=!1;function GM(n){return Ad(n)&&l_(n.length)&&!!Xl[P1(n)]}function Mm(n){return function(e){return n(e)}}var c_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yp=c_&&typeof module=="object"&&module&&!module.nodeType&&module,YM=yp&&yp.exports===c_,bb=YM&&t_.process,C1=(function(){try{var n=yp&&yp.require&&yp.require("util").types;return n||bb&&bb.binding&&bb.binding("util")}catch{}})(),_x=C1&&C1.isTypedArray,Lm=_x?Mm(_x):GM,VM=Object.prototype,ZM=VM.hasOwnProperty;function u_(n,e){var t=Pg(n),r=!t&&Dy(n),i=!t&&!r&&Rp(n),o=!t&&!r&&!i&&Lm(n),l=t||r||i||o,a=l?hM(n.length,String):[],h=a.length;for(var g in n)(e||ZM.call(n,g))&&!(l&&(g=="length"||i&&(g=="offset"||g=="parent")||o&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||i_(g,h)))&&a.push(g);return a}function f_(n,e){return function(t){return n(e(t))}}var XM=f_(Object.keys,Object),KM=Object.prototype,JM=KM.hasOwnProperty;function QM(n){if(!km(n))return XM(n);var e=[];for(var t in Object(n))JM.call(n,t)&&t!="constructor"&&e.push(t);return e}function qM(n){return Av(n)?u_(n):QM(n)}function jM(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var $M=Object.prototype,eL=$M.hasOwnProperty;function tL(n){if(!fg(n))return jM(n);var e=km(n),t=[];for(var r in n)r=="constructor"&&(e||!eL.call(n,r))||t.push(r);return t}function h_(n){return Av(n)?u_(n,!0):tL(n)}var Ip=Wg(Object,"create");function nL(){this.__data__=Ip?Ip(null):{},this.size=0}function rL(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var iL="__lodash_hash_undefined__",oL=Object.prototype,lL=oL.hasOwnProperty;function sL(n){var e=this.__data__;if(Ip){var t=e[n];return t===iL?void 0:t}return lL.call(e,n)?e[n]:void 0}var aL=Object.prototype,cL=aL.hasOwnProperty;function uL(n){var e=this.__data__;return Ip?e[n]!==void 0:cL.call(e,n)}var fL="__lodash_hash_undefined__";function hL(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=Ip&&e===void 0?fL:e,this}function Dg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Dg.prototype.clear=nL;Dg.prototype.delete=rL;Dg.prototype.get=sL;Dg.prototype.has=uL;Dg.prototype.set=hL;function dL(){this.__data__=[],this.size=0}function Rv(n,e){for(var t=n.length;t--;)if(Wp(n[t][0],e))return t;return-1}var gL=Array.prototype,pL=gL.splice;function vL(n){var e=this.__data__,t=Rv(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():pL.call(e,t,1),--this.size,!0}function bL(n){var e=this.__data__,t=Rv(e,n);return t<0?void 0:e[t][1]}function yL(n){return Rv(this.__data__,n)>-1}function mL(n,e){var t=this.__data__,r=Rv(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function kd(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}kd.prototype.clear=dL;kd.prototype.delete=vL;kd.prototype.get=bL;kd.prototype.has=yL;kd.prototype.set=mL;var kp=Wg(sd,"Map");function xL(){this.size=0,this.__data__={hash:new Dg,map:new(kp||kd),string:new Dg}}function wL(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Iv(n,e){var t=n.__data__;return wL(e)?t[typeof e=="string"?"string":"hash"]:t.map}function CL(n){var e=Iv(this,n).delete(n);return this.size-=e?1:0,e}function _L(n){return Iv(this,n).get(n)}function SL(n){return Iv(this,n).has(n)}function EL(n,e){var t=Iv(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Ug(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Ug.prototype.clear=xL;Ug.prototype.delete=CL;Ug.prototype.get=_L;Ug.prototype.has=SL;Ug.prototype.set=EL;function TL(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var d_=f_(Object.getPrototypeOf,Object),AL="[object Object]",RL=Function.prototype,IL=Object.prototype,g_=RL.toString,kL=IL.hasOwnProperty,ML=g_.call(Object);function LL(n){if(!Ad(n)||P1(n)!=AL)return!1;var e=d_(n);if(e===null)return!0;var t=kL.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&g_.call(t)==ML}function OL(){this.__data__=new kd,this.size=0}function PL(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function DL(n){return this.__data__.get(n)}function NL(n){return this.__data__.has(n)}var FL=200;function BL(n,e){var t=this.__data__;if(t instanceof kd){var r=t.__data__;if(!kp||r.length<FL-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Ug(r)}return t.set(n,e),this.size=t.size,this}function $h(n){var e=this.__data__=new kd(n);this.size=e.size}$h.prototype.clear=OL;$h.prototype.delete=PL;$h.prototype.get=DL;$h.prototype.has=NL;$h.prototype.set=BL;var p_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sx=p_&&typeof module=="object"&&module&&!module.nodeType&&module,zL=Sx&&Sx.exports===p_,Ex=zL?sd.Buffer:void 0,Tx=Ex?Ex.allocUnsafe:void 0;function v_(n,e){if(e)return n.slice();var t=n.length,r=Tx?Tx(t):new n.constructor(t);return n.copy(r),r}function HL(n,e){for(var t=-1,r=n==null?0:n.length,i=0,o=[];++t<r;){var l=n[t];e(l,t,n)&&(o[i++]=l)}return o}function WL(){return[]}var UL=Object.prototype,GL=UL.propertyIsEnumerable,Ax=Object.getOwnPropertySymbols,YL=Ax?function(n){return n==null?[]:(n=Object(n),HL(Ax(n),function(e){return GL.call(n,e)}))}:WL;function VL(n,e,t){var r=e(n);return Pg(n)?r:TL(r,t(n))}function Ny(n){return VL(n,qM,YL)}var Fy=Wg(sd,"DataView"),By=Wg(sd,"Promise"),zy=Wg(sd,"Set"),Rx="[object Map]",ZL="[object Object]",Ix="[object Promise]",kx="[object Set]",Mx="[object WeakMap]",Lx="[object DataView]",XL=Hg(Fy),KL=Hg(kp),JL=Hg(By),QL=Hg(zy),qL=Hg(Py),kh=P1;(Fy&&kh(new Fy(new ArrayBuffer(1)))!=Lx||kp&&kh(new kp)!=Rx||By&&kh(By.resolve())!=Ix||zy&&kh(new zy)!=kx||Py&&kh(new Py)!=Mx)&&(kh=function(n){var e=P1(n),t=e==ZL?n.constructor:void 0,r=t?Hg(t):"";if(r)switch(r){case XL:return Lx;case KL:return Rx;case JL:return Ix;case QL:return kx;case qL:return Mx}return e});var jL=Object.prototype,$L=jL.hasOwnProperty;function eO(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&$L.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var ov=sd.Uint8Array;function Om(n){var e=new n.constructor(n.byteLength);return new ov(e).set(new ov(n)),e}function tO(n,e){var t=Om(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var nO=/\w*$/;function rO(n){var e=new n.constructor(n.source,nO.exec(n));return e.lastIndex=n.lastIndex,e}var Ox=ag?ag.prototype:void 0,Px=Ox?Ox.valueOf:void 0;function iO(n){return Px?Object(Px.call(n)):{}}function b_(n,e){var t=e?Om(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var oO="[object Boolean]",lO="[object Date]",sO="[object Map]",aO="[object Number]",cO="[object RegExp]",uO="[object Set]",fO="[object String]",hO="[object Symbol]",dO="[object ArrayBuffer]",gO="[object DataView]",pO="[object Float32Array]",vO="[object Float64Array]",bO="[object Int8Array]",yO="[object Int16Array]",mO="[object Int32Array]",xO="[object Uint8Array]",wO="[object Uint8ClampedArray]",CO="[object Uint16Array]",_O="[object Uint32Array]";function SO(n,e,t){var r=n.constructor;switch(e){case dO:return Om(n);case oO:case lO:return new r(+n);case gO:return tO(n);case pO:case vO:case bO:case yO:case mO:case xO:case wO:case CO:case _O:return b_(n,t);case sO:return new r;case aO:case fO:return new r(n);case cO:return rO(n);case uO:return new r;case hO:return iO(n)}}function y_(n){return typeof n.constructor=="function"&&!km(n)?Y7(d_(n)):{}}var EO="[object Map]";function TO(n){return Ad(n)&&kh(n)==EO}var Dx=C1&&C1.isMap,AO=Dx?Mm(Dx):TO,RO="[object Set]";function IO(n){return Ad(n)&&kh(n)==RO}var Nx=C1&&C1.isSet,kO=Nx?Mm(Nx):IO,MO=1,m_="[object Arguments]",LO="[object Array]",OO="[object Boolean]",PO="[object Date]",DO="[object Error]",x_="[object Function]",NO="[object GeneratorFunction]",FO="[object Map]",BO="[object Number]",w_="[object Object]",zO="[object RegExp]",HO="[object Set]",WO="[object String]",UO="[object Symbol]",GO="[object WeakMap]",YO="[object ArrayBuffer]",VO="[object DataView]",ZO="[object Float32Array]",XO="[object Float64Array]",KO="[object Int8Array]",JO="[object Int16Array]",QO="[object Int32Array]",qO="[object Uint8Array]",jO="[object Uint8ClampedArray]",$O="[object Uint16Array]",eP="[object Uint32Array]",kl={};kl[m_]=kl[LO]=kl[YO]=kl[VO]=kl[OO]=kl[PO]=kl[ZO]=kl[XO]=kl[KO]=kl[JO]=kl[QO]=kl[FO]=kl[BO]=kl[w_]=kl[zO]=kl[HO]=kl[WO]=kl[UO]=kl[qO]=kl[jO]=kl[$O]=kl[eP]=!0;kl[DO]=kl[x_]=kl[GO]=!1;function V0(n,e,t,r,i,o){var l,a=e&MO;if(l!==void 0)return l;if(!fg(n))return n;var h=Pg(n);if(h)l=eO(n);else{var g=kh(n),m=g==x_||g==NO;if(Rp(n))return v_(n,a);if(g==w_||g==m_||m&&!i)l=m?{}:y_(n);else{if(!kl[g])return i?n:{};l=SO(n,g,a)}}o||(o=new $h);var x=o.get(n);if(x)return x;o.set(n,l),kO(n)?n.forEach(function(E){l.add(V0(E,e,t,E,n,o))}):AO(n)&&n.forEach(function(E,R){l.set(R,V0(E,e,t,R,n,o))});var w=Ny,_=h?void 0:w(n);return eM(_||n,function(E,R){_&&(R=E,E=n[R]),o_(l,R,V0(E,e,t,R,n,o))}),l}var tP=1,nP=4;function g1(n){return V0(n,tP|nP)}var rP="__lodash_hash_undefined__";function iP(n){return this.__data__.set(n,rP),this}function oP(n){return this.__data__.has(n)}function lv(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Ug;++e<t;)this.add(n[e])}lv.prototype.add=lv.prototype.push=iP;lv.prototype.has=oP;function lP(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function sP(n,e){return n.has(e)}var aP=1,cP=2;function C_(n,e,t,r,i,o){var l=t&aP,a=n.length,h=e.length;if(a!=h&&!(l&&h>a))return!1;var g=o.get(n),m=o.get(e);if(g&&m)return g==e&&m==n;var x=-1,w=!0,_=t&cP?new lv:void 0;for(o.set(n,e),o.set(e,n);++x<a;){var E=n[x],R=e[x];if(r)var k=l?r(R,E,x,e,n,o):r(E,R,x,n,e,o);if(k!==void 0){if(k)continue;w=!1;break}if(_){if(!lP(e,function(O,P){if(!sP(_,P)&&(E===O||i(E,O,t,r,o)))return _.push(P)})){w=!1;break}}else if(!(E===R||i(E,R,t,r,o))){w=!1;break}}return o.delete(n),o.delete(e),w}function uP(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function fP(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var hP=1,dP=2,gP="[object Boolean]",pP="[object Date]",vP="[object Error]",bP="[object Map]",yP="[object Number]",mP="[object RegExp]",xP="[object Set]",wP="[object String]",CP="[object Symbol]",_P="[object ArrayBuffer]",SP="[object DataView]",Fx=ag?ag.prototype:void 0,yb=Fx?Fx.valueOf:void 0;function EP(n,e,t,r,i,o,l){switch(t){case SP:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case _P:return!(n.byteLength!=e.byteLength||!o(new ov(n),new ov(e)));case gP:case pP:case yP:return Wp(+n,+e);case vP:return n.name==e.name&&n.message==e.message;case mP:case wP:return n==e+"";case bP:var a=uP;case xP:var h=r&hP;if(a||(a=fP),n.size!=e.size&&!h)return!1;var g=l.get(n);if(g)return g==e;r|=dP,l.set(n,e);var m=C_(a(n),a(e),r,i,o,l);return l.delete(n),m;case CP:if(yb)return yb.call(n)==yb.call(e)}return!1}var TP=1,AP=Object.prototype,RP=AP.hasOwnProperty;function IP(n,e,t,r,i,o){var l=t&TP,a=Ny(n),h=a.length,g=Ny(e),m=g.length;if(h!=m&&!l)return!1;for(var x=h;x--;){var w=a[x];if(!(l?w in e:RP.call(e,w)))return!1}var _=o.get(n),E=o.get(e);if(_&&E)return _==e&&E==n;var R=!0;o.set(n,e),o.set(e,n);for(var k=l;++x<h;){w=a[x];var O=n[w],P=e[w];if(r)var z=l?r(P,O,w,e,n,o):r(O,P,w,n,e,o);if(!(z===void 0?O===P||i(O,P,t,r,o):z)){R=!1;break}k||(k=w=="constructor")}if(R&&!k){var H=n.constructor,G=e.constructor;H!=G&&"constructor"in n&&"constructor"in e&&!(typeof H=="function"&&H instanceof H&&typeof G=="function"&&G instanceof G)&&(R=!1)}return o.delete(n),o.delete(e),R}var kP=1,Bx="[object Arguments]",zx="[object Array]",_0="[object Object]",MP=Object.prototype,Hx=MP.hasOwnProperty;function LP(n,e,t,r,i,o){var l=Pg(n),a=Pg(e),h=l?zx:kh(n),g=a?zx:kh(e);h=h==Bx?_0:h,g=g==Bx?_0:g;var m=h==_0,x=g==_0,w=h==g;if(w&&Rp(n)){if(!Rp(e))return!1;l=!0,m=!1}if(w&&!m)return o||(o=new $h),l||Lm(n)?C_(n,e,t,r,i,o):EP(n,e,h,t,r,i,o);if(!(t&kP)){var _=m&&Hx.call(n,"__wrapped__"),E=x&&Hx.call(e,"__wrapped__");if(_||E){var R=_?n.value():n,k=E?e.value():e;return o||(o=new $h),i(R,k,t,r,o)}}return w?(o||(o=new $h),IP(n,e,t,r,i,o)):!1}function __(n,e,t,r,i){return n===e?!0:n==null||e==null||!Ad(n)&&!Ad(e)?n!==n&&e!==e:LP(n,e,t,r,__,i)}function OP(n){return function(e,t,r){for(var i=-1,o=Object(e),l=r(e),a=l.length;a--;){var h=l[++i];if(t(o[h],h,o)===!1)break}return e}}var PP=OP();function Hy(n,e,t){(t!==void 0&&!Wp(n[e],t)||t===void 0&&!(e in n))&&Im(n,e,t)}function DP(n){return Ad(n)&&Av(n)}function Wy(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function NP(n){return oM(n,h_(n))}function FP(n,e,t,r,i,o,l){var a=Wy(n,t),h=Wy(e,t),g=l.get(h);if(g){Hy(n,t,g);return}var m=o?o(a,h,t+"",n,e,l):void 0,x=m===void 0;if(x){var w=Pg(h),_=!w&&Rp(h),E=!w&&!_&&Lm(h);m=h,w||_||E?Pg(a)?m=a:DP(a)?m=Z7(a):_?(x=!1,m=v_(h,!0)):E?(x=!1,m=b_(h,!0)):m=[]:LL(h)||Dy(h)?(m=a,Dy(a)?m=NP(a):(!fg(a)||Rm(a))&&(m=y_(h))):x=!1}x&&(l.set(h,m),i(m,h,r,o,l),l.delete(h)),Hy(n,t,m)}function S_(n,e,t,r,i){n!==e&&PP(e,function(o,l){if(i||(i=new $h),fg(o))FP(n,e,l,t,S_,r,i);else{var a=r?r(Wy(n,l),o,l+"",n,e,i):void 0;a===void 0&&(a=o),Hy(n,l,a)}},h_)}function $d(n,e){return __(n,e)}var og=uM(function(n,e,t){S_(n,e,t)}),Qn=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(Qn||{});class rd{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const i=Qn.TYPE&Qn.ATTRIBUTE;this.scope=r.scope!=null?r.scope&Qn.LEVEL|i:Qn.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class p1 extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const E_=class Uy{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const i=this.query(t);if(i==null)throw new p1(`Unable to create ${t} blot`);const o=i,l=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:o.create(r),a=new o(e,l,r);return Uy.blots.set(a.domNode,a),a}find(e,t=!1){return Uy.find(e,t)}query(e,t=Qn.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&Qn.LEVEL&Qn.BLOCK?r=this.types.block:e&Qn.LEVEL&Qn.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&Qn.LEVEL&r.scope&&t&Qn.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,i="attrName"in t;if(!r&&!i)throw new p1("Invalid definition");if(r&&t.blotName==="abstract")throw new p1("Cannot register abstract class");const o=r?t.blotName:i?t.attrName:void 0;return this.types[o]=t,i?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(l=>l.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(l=>{(this.tags[l]==null||t.className==null)&&(this.tags[l]=t)}))),t})}};E_.blots=new WeakMap;let _1=E_;function Wx(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class BP extends rd{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){Wx(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(Wx(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const zh=BP;function mb(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class zP extends rd{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[mb(this.keyName)]=t,!0):!1}remove(e){e.style[mb(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[mb(this.keyName)];return this.canAdd(e,t)?t:""}}const hg=zP;class HP{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=_1.find(this.domNode);if(e==null)return;const t=rd.keys(this.domNode),r=zh.keys(this.domNode),i=hg.keys(this.domNode);t.concat(r).concat(i).forEach(o=>{const l=e.scroll.query(o,Qn.ATTRIBUTE);l instanceof rd&&(this.attributes[l.attrName]=l)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const kv=HP,T_=class{constructor(e,t){this.scroll=e,this.domNode=t,_1.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new p1("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),_1.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,i){const o=this.isolate(e,t);if(this.scroll.query(r,Qn.BLOT)!=null&&i)o.wrap(r,i);else if(this.scroll.query(r,Qn.ATTRIBUTE)!=null){const l=this.scroll.create(this.statics.scope);o.wrap(l),l.format(r,i)}}insertAt(e,t,r){const i=r==null?this.scroll.create("text",t):this.scroll.create(t,r),o=this.split(e);this.parent.insertBefore(i,o||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new p1(`Cannot wrap ${e}`);return r.appendChild(this),r}};T_.blotName="abstract";let A_=T_;const R_=class extends A_{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};R_.scope=Qn.INLINE_BLOT;let WP=R_;const lu=WP;class UP{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),i=0;for(;r;){if(r===e)return i;i+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let i=r();for(;i;){const o=i.length();if(e<o||t&&e===o&&(i.next==null||i.next.length()!==0))return[i,e];e-=o,i=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[i,o]=this.find(e);let l=e-o;const a=this.iterator(i);let h=a();for(;h&&l<e+t;){const g=h.length();e>l?r(h,e-l,Math.min(t,l+g-e)):r(h,0,Math.min(g,e+t-l)),l+=g,h=a()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let i=r();for(;i;)t=e(t,i),i=r();return t}}function Ux(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(Qn.INLINE);return Array.from(n.childNodes).forEach(i=>{r.domNode.appendChild(i)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const I_=class Kd extends A_{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Kd.uiClass&&this.uiNode.classList.add(Kd.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new UP,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=Ux(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof p1)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,i,o)=>{r.deleteAt(i,o)})}descendant(e,t=0){const[r,i]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,i]:r instanceof Kd?r.descendant(e,i):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let i=[],o=r;return this.children.forEachAt(t,r,(l,a,h)=>{(e.blotName==null&&e(l)||e.blotName!=null&&l instanceof e)&&i.push(l),l instanceof Kd&&(i=i.concat(l.descendants(e,a,o))),o-=h}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===Qn.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Kd?t.unwrap():t.remove())})}formatAt(e,t,r,i){this.children.forEachAt(e,t,(o,l,a)=>{o.formatAt(l,a,r,i)})}insertAt(e,t,r){const[i,o]=this.children.find(e);if(i)i.insertAt(o,t,r);else{const l=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(l)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,i]=this.children.find(e,t),o=[[this,e]];return r instanceof Kd?o.concat(r.path(i,t)):(r!=null&&o.push([r,i]),o)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof Kd&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(i,o,l)=>{const a=i.split(o,t);a!=null&&r.appendChild(a)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],i=[];e.forEach(o=>{o.target===this.domNode&&o.type==="childList"&&(r.push(...o.addedNodes),i.push(...o.removedNodes))}),i.forEach(o=>{if(o.parentNode!=null&&o.tagName!=="IFRAME"&&document.body.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const l=this.scroll.find(o);l!=null&&(l.domNode.parentNode==null||l.domNode.parentNode===this.domNode)&&l.detach()}),r.filter(o=>o.parentNode===this.domNode&&o!==this.uiNode).sort((o,l)=>o===l?0:o.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(o=>{let l=null;o.nextSibling!=null&&(l=this.scroll.find(o.nextSibling));const a=Ux(o,this.scroll);(a.next!==l||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,l||void 0))}),this.enforceAllowedChildren()}};I_.uiClass="";let GP=I_;const Oh=GP;function YP(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const n1=class r1 extends Oh{static create(e){return super.create(e)}static formats(e,t){const r=t.query(r1.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new kv(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof r1||(r=r.wrap(r1.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,Qn.INLINE);if(r==null)return;r instanceof rd?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,i){this.formats()[r]!=null||this.scroll.query(r,Qn.ATTRIBUTE)?this.isolate(e,t).format(r,i):super.formatAt(e,t,r,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof r1&&r.prev===this&&YP(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof r1&&this.attributes.move(r),r}};n1.allowedChildren=[n1,lu],n1.blotName="inline",n1.scope=Qn.INLINE_BLOT,n1.tagName="SPAN";let VP=n1;const Pm=VP,i1=class Gy extends Oh{static create(e){return super.create(e)}static formats(e,t){const r=t.query(Gy.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new kv(this.domNode)}format(e,t){const r=this.scroll.query(e,Qn.BLOCK);r!=null&&(r instanceof rd?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(Gy.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,i){this.scroll.query(r,Qn.BLOCK)!=null?this.format(r,i):super.formatAt(e,t,r,i)}insertAt(e,t,r){if(r==null||this.scroll.query(t,Qn.INLINE)!=null)super.insertAt(e,t,r);else{const i=this.split(e);if(i!=null){const o=this.scroll.create(t,r);i.parent.insertBefore(o,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};i1.blotName="block",i1.scope=Qn.BLOCK_BLOT,i1.tagName="P",i1.allowedChildren=[Pm,i1,lu];let ZP=i1;const Mp=ZP,Yy=class extends Oh{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,i){super.formatAt(e,t,r,i),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Yy.blotName="container",Yy.scope=Qn.BLOCK_BLOT;let XP=Yy;const Mv=XP;class KP extends lu{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,i){e===0&&t===this.length()?this.format(r,i):super.formatAt(e,t,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const zf=KP,JP={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},QP=100,o1=class extends Oh{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,JP),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=Qn.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,i){this.update(),super.formatAt(e,t,r,i)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const o=(h,g=!0)=>{h==null||h===this||h.domNode.parentNode!=null&&(r.has(h.domNode)||r.set(h.domNode,[]),g&&o(h.parent))},l=h=>{r.has(h.domNode)&&(h instanceof Oh&&h.children.forEach(l),r.delete(h.domNode),h.optimize(t))};let a=e;for(let h=0;a.length>0;h+=1){if(h>=QP)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(g=>{const m=this.find(g.target,!0);m!=null&&(m.domNode===g.target&&(g.type==="childList"?(o(this.find(g.previousSibling,!1)),Array.from(g.addedNodes).forEach(x=>{const w=this.find(x,!1);o(w,!1),w instanceof Oh&&w.children.forEach(_=>{o(_,!1)})})):g.type==="attributes"&&o(m.prev)),o(m))}),this.children.forEach(l),a=Array.from(this.observer.takeRecords()),i=a.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(i=>{const o=this.find(i.target,!0);return o==null?null:r.has(o.domNode)?(r.get(o.domNode).push(i),null):(r.set(o.domNode,[i]),o)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};o1.blotName="scroll",o1.defaultChild=Mp,o1.allowedChildren=[Mp,Mv],o1.scope=Qn.BLOCK_BLOT,o1.tagName="DIV";let qP=o1;const Dm=qP,Vy=class k_ extends lu{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof k_&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Vy.blotName="text",Vy.scope=Qn.INLINE_BLOT;let jP=Vy;const sv=jP,$P=Object.freeze(Object.defineProperty({__proto__:null,Attributor:rd,AttributorStore:kv,BlockBlot:Mp,ClassAttributor:zh,ContainerBlot:Mv,EmbedBlot:zf,InlineBlot:Pm,LeafBlot:lu,ParentBlot:Oh,Registry:_1,Scope:Qn,ScrollBlot:Dm,StyleAttributor:hg,TextBlot:sv},Symbol.toStringTag,{value:"Module"}));class Hh extends zf{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Hh.blotName="break";Hh.tagName="BR";let Dh=class extends sv{};const eD={"&":"&","<":"<",">":">",'"':""","'":"'"};function Lv(n){return n.replace(/[&<>"']/g,e=>eD[e])}const Kh=class Kh extends Pm{static compare(e,t){const r=Kh.order.indexOf(e),i=Kh.order.indexOf(t);return r>=0||i>=0?r-i:e===t?0:e<t?-1:1}formatAt(e,t,r,i){if(Kh.compare(this.statics.blotName,r)<0&&this.scroll.query(r,Qn.BLOT)){const o=this.isolate(e,t);i&&o.wrap(r,i)}else super.formatAt(e,t,r,i)}optimize(e){if(super.optimize(e),this.parent instanceof Kh&&Kh.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};Ee(Kh,"allowedChildren",[Kh,Hh,zf,Dh]),Ee(Kh,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let id=Kh;const Gx=1;class kc extends Mp{constructor(){super(...arguments);Ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=M_(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,i,o){r<=0||(this.scroll.query(i,Qn.BLOCK)?t+r===this.length()&&this.format(i,o):super.formatAt(t,Math.min(r,this.length()-t-1),i,o),this.cache={})}insertAt(t,r,i){if(i!=null){super.insertAt(t,r,i),this.cache={};return}if(r.length===0)return;const o=r.split(`
|
|
290
290
|
`),l=o.shift();l.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),l):this.children.tail.insertAt(this.children.tail.length(),l),this.cache={});let a=this;o.reduce((h,g)=>(a=a.split(h,!0),a.insertAt(0,g),g.length),t+l.length)}insertBefore(t,r){const{head:i}=this.children;super.insertBefore(t,r),i instanceof Hh&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+Gx),this.cache.length}moveChildren(t,r){super.moveChildren(t,r),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(t===0||t>=this.length()-Gx)){const o=this.clone();return t===0?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}const i=super.split(t,r);return this.cache={},i}}kc.blotName="block";kc.tagName="P";kc.defaultChild=Hh;kc.allowedChildren=[Hh,id,zf,Dh];let ph=class extends zf{attach(){super.attach(),this.attributes=new kv(this.domNode)}delta(){return new Jn().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const r=this.scroll.query(e,Qn.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(e,t,r,i){this.format(r,i)}insertAt(e,t,r){if(r!=null){super.insertAt(e,t,r);return}const i=t.split(`
|
|
291
|
-
`),o=i.pop(),l=i.map(h=>{const g=this.scroll.create(kc.blotName);return g.insertAt(0,h),g}),a=this.split(e);l.forEach(h=>{this.parent.insertBefore(h,a)}),o&&this.parent.insertBefore(this.scroll.create("text",o),a)}};ph.scope=Qn.BLOCK_BLOT;function
|
|
292
|
-
`,dh(n))}function dh(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n==null||("formats"in n&&typeof n.formats=="function"&&(e={...e,...n.formats()},t&&delete e["code-token"]),n.parent==null||n.parent.statics.blotName==="scroll"||n.parent.statics.scope!==n.statics.scope)?e:dh(n.parent,e,t)}const ch=class ch extends zf{static value(){}constructor(e,t,r){super(e,t),this.selection=r,this.textNode=document.createTextNode(ch.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let r=this,i=0;for(;r!=null&&r.statics.scope!==Qn.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=ch.CONTENTS.length,r.optimize(),r.formatAt(i,ch.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof Dh?this.prev:null,r=t?t.length():0,i=this.next instanceof Dh?this.next:null,o=i?i.text:"",{textNode:l}=this,a=l.data.split(ch.CONTENTS).join("");l.data=ch.CONTENTS;let h;if(t)h=t,(a||i)&&(t.insertAt(t.length(),a+o),i&&i.remove());else if(i)h=i,i.insertAt(0,a);else{const g=document.createTextNode(a);h=this.scroll.create(g),this.parent.insertBefore(h,this)}if(this.remove(),e){const g=(w,_)=>t&&w===t.domNode?_:w===l?r+_-1:i&&w===i.domNode?r+a.length+_:null,m=g(e.start.node,e.start.offset),x=g(e.end.node,e.end.offset);if(m!==null&&x!==null)return{startNode:h.domNode,startOffset:m,endNode:h.domNode,endOffset:x}}return null}update(e,t){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(t.range=r)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=ch.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};Ee(ch,"blotName","cursor"),Ee(ch,"className","ql-cursor"),Ee(ch,"tagName","span"),Ee(ch,"CONTENTS","\uFEFF");let S1=ch;var xb={exports:{}},Yx;function tD(){return Yx||(Yx=1,(function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function i(h,g,m){this.fn=h,this.context=g,this.once=m||!1}function o(h,g,m,x,w){if(typeof m!="function")throw new TypeError("The listener must be a function");var _=new i(m,x||h,w),E=t?t+g:g;return h._events[E]?h._events[E].fn?h._events[E]=[h._events[E],_]:h._events[E].push(_):(h._events[E]=_,h._eventsCount++),h}function l(h,g){--h._eventsCount===0?h._events=new r:delete h._events[g]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var g=[],m,x;if(this._eventsCount===0)return g;for(x in m=this._events)e.call(m,x)&&g.push(t?x.slice(1):x);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(m)):g},a.prototype.listeners=function(g){var m=t?t+g:g,x=this._events[m];if(!x)return[];if(x.fn)return[x.fn];for(var w=0,_=x.length,E=new Array(_);w<_;w++)E[w]=x[w].fn;return E},a.prototype.listenerCount=function(g){var m=t?t+g:g,x=this._events[m];return x?x.fn?1:x.length:0},a.prototype.emit=function(g,m,x,w,_,E){var R=t?t+g:g;if(!this._events[R])return!1;var k=this._events[R],O=arguments.length,P,z;if(k.fn){switch(k.once&&this.removeListener(g,k.fn,void 0,!0),O){case 1:return k.fn.call(k.context),!0;case 2:return k.fn.call(k.context,m),!0;case 3:return k.fn.call(k.context,m,x),!0;case 4:return k.fn.call(k.context,m,x,w),!0;case 5:return k.fn.call(k.context,m,x,w,_),!0;case 6:return k.fn.call(k.context,m,x,w,_,E),!0}for(z=1,P=new Array(O-1);z<O;z++)P[z-1]=arguments[z];k.fn.apply(k.context,P)}else{var H=k.length,G;for(z=0;z<H;z++)switch(k[z].once&&this.removeListener(g,k[z].fn,void 0,!0),O){case 1:k[z].fn.call(k[z].context);break;case 2:k[z].fn.call(k[z].context,m);break;case 3:k[z].fn.call(k[z].context,m,x);break;case 4:k[z].fn.call(k[z].context,m,x,w);break;default:if(!P)for(G=1,P=new Array(O-1);G<O;G++)P[G-1]=arguments[G];k[z].fn.apply(k[z].context,P)}}return!0},a.prototype.on=function(g,m,x){return o(this,g,m,x,!1)},a.prototype.once=function(g,m,x){return o(this,g,m,x,!0)},a.prototype.removeListener=function(g,m,x,w){var _=t?t+g:g;if(!this._events[_])return this;if(!m)return l(this,_),this;var E=this._events[_];if(E.fn)E.fn===m&&(!w||E.once)&&(!x||E.context===x)&&l(this,_);else{for(var R=0,k=[],O=E.length;R<O;R++)(E[R].fn!==m||w&&!E[R].once||x&&E[R].context!==x)&&k.push(E[R]);k.length?this._events[_]=k.length===1?k[0]:k:l(this,_)}return this},a.prototype.removeAllListeners=function(g){var m;return g?(m=t?t+g:g,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=t,a.EventEmitter=a,n.exports=a})(xb)),xb.exports}var nD=tD();const rD=L1(nD),Zy=new WeakMap,Xy=["error","warn","log","info"];let Ky="warn";function L4(n){if(Ky&&Xy.indexOf(n)<=Xy.indexOf(Ky)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function Md(n){return Xy.reduce((e,t)=>(e[t]=L4.bind(console,t,n),e),{})}Md.level=n=>{Ky=n};L4.level=Md.level;const wb=Md("quill:events"),iD=["selectionchange","mousedown","mouseup","click"];iD.forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const o=Zy.get(i);o&&o.emitter&&o.emitter.handleDOM(...t)})})});class Un extends rD{constructor(){super(),this.domListeners={},this.on("error",wb.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return wb.log.call(wb,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach(o=>{let{node:l,handler:a}=o;(e.target===l||l.contains(e.target))&&a(e,...r)})}listenDOM(e,t,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:r})}}Ee(Un,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Ee(Un,"sources",{API:"api",SILENT:"silent",USER:"user"});const Cb=Md("quill:selection");class Ng{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class oD{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Ng(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Un.sources.USER),1)}),this.emitter.on(Un.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(Un.events.SCROLL_UPDATE,(i,o)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const l=o.some(a=>a.type==="characterData"||a.type==="childList"||a.type==="attributes"&&a.target===this.root);this.update(l?Un.sources.SILENT:i)}catch{}})}),this.emitter.on(Un.events.SCROLL_OPTIMIZE,(r,i)=>{if(i.range){const{startNode:o,startOffset:l,endNode:a,endOffset:h}=i.range;this.setNativeRange(o,l,a,h),this.update(Un.sources.SILENT)}}),this.update(Un.sources.SILENT)}handleComposition(){this.emitter.on(Un.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Un.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Un.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,Qn.BLOCK))){if(r.start.node!==this.cursor.textNode){const i=this.scroll.find(r.start.node,!1);if(i==null)return;if(i instanceof lu){const o=i.split(r.start.offset);i.parent.insertBefore(this.cursor,o)}else i.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;let i,[o,l]=this.scroll.leaf(e);if(o==null)return null;if(t>0&&l===o.length()){const[m]=this.scroll.leaf(e+1);if(m){const[x]=this.scroll.line(e),[w]=this.scroll.line(e+1);x===w&&(o=m,l=0)}}[i,l]=o.position(l,!0);const a=document.createRange();if(t>0)return a.setStart(i,l),[o,l]=this.scroll.leaf(e+t),o==null?null:([i,l]=o.position(l,!0),a.setEnd(i,l),a.getBoundingClientRect());let h="left",g;if(i instanceof Text){if(!i.data.length)return null;l<i.data.length?(a.setStart(i,l),a.setEnd(i,l+1)):(a.setStart(i,l-1),a.setEnd(i,l),h="right"),g=a.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;g=o.domNode.getBoundingClientRect(),l>0&&(h="right")}return{bottom:g.top+g.height,height:g.height,left:g[h],right:g[h],top:g.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const r=this.normalizeNative(t);return Cb.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&_b(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const r=t.map(l=>{const[a,h]=l,g=this.scroll.find(a,!0),m=g.offset(this.scroll);return h===0?m:g instanceof lu?m+g.index(a,h):m+g.length()}),i=Math.min(Math.max(...r),this.scroll.length()-1),o=Math.min(i,...r);return new Ng(o,i-o)}normalizeNative(e){if(!_b(this.root,e.startContainer)||!e.collapsed&&!_b(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(r=>{let{node:i,offset:o}=r;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>o)i=i.childNodes[o],o=0;else if(i.childNodes.length===o)i=i.lastChild,i instanceof Text?o=i.data.length:i.childNodes.length>0?o=i.childNodes.length:o=i.childNodes.length+1;else break;r.node=i,r.offset=o}),t}rangeToNative(e){const t=this.scroll.length(),r=(i,o)=>{i=Math.min(t-1,i);const[l,a]=this.scroll.leaf(i);return l?l.position(a,o):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Cb.info("setNativeRange",e,t,r,i),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const l=document.getSelection();if(l!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(a==null||o||e!==a.startContainer||t!==a.startOffset||r!==a.endContainer||i!==a.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(i=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const h=document.createRange();h.setStart(e,t),h.setEnd(r,i),l.removeAllRanges(),l.addRange(h)}}else l.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Un.sources.API;if(typeof t=="string"&&(r=t,t=!1),Cb.info("setRange",e),e!=null){const i=this.rangeToNative(e);this.setNativeRange(...i,t)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Un.sources.USER;const t=this.lastRange,[r,i]=this.getRange();if(this.lastRange=r,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!$d(t,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const l=this.cursor.restore();l&&this.setNativeRange(l.startNode,l.startOffset,l.endNode,l.endOffset)}const o=[Un.events.SELECTION_CHANGE,g1(this.lastRange),g1(t),e];this.emitter.emit(Un.events.EDITOR_CHANGE,...o),e!==Un.sources.SILENT&&this.emitter.emit(...o)}}}function _b(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const lD=/^[ -~]*$/;class sD{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=Vx(e),i=new Jn;return cD(r.ops.slice()).reduce((l,a)=>{const h=vh.Op.length(a);let g=a.attributes||{},m=!1,x=!1;if(a.insert!=null){if(i.retain(h),typeof a.insert=="string"){const E=a.insert;x=!E.endsWith(`
|
|
291
|
+
`),o=i.pop(),l=i.map(h=>{const g=this.scroll.create(kc.blotName);return g.insertAt(0,h),g}),a=this.split(e);l.forEach(h=>{this.parent.insertBefore(h,a)}),o&&this.parent.insertBefore(this.scroll.create("text",o),a)}};ph.scope=Qn.BLOCK_BLOT;function M_(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(lu).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),dh(r,{},e)),new Jn).insert(`
|
|
292
|
+
`,dh(n))}function dh(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n==null||("formats"in n&&typeof n.formats=="function"&&(e={...e,...n.formats()},t&&delete e["code-token"]),n.parent==null||n.parent.statics.blotName==="scroll"||n.parent.statics.scope!==n.statics.scope)?e:dh(n.parent,e,t)}const ch=class ch extends zf{static value(){}constructor(e,t,r){super(e,t),this.selection=r,this.textNode=document.createTextNode(ch.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let r=this,i=0;for(;r!=null&&r.statics.scope!==Qn.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=ch.CONTENTS.length,r.optimize(),r.formatAt(i,ch.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof Dh?this.prev:null,r=t?t.length():0,i=this.next instanceof Dh?this.next:null,o=i?i.text:"",{textNode:l}=this,a=l.data.split(ch.CONTENTS).join("");l.data=ch.CONTENTS;let h;if(t)h=t,(a||i)&&(t.insertAt(t.length(),a+o),i&&i.remove());else if(i)h=i,i.insertAt(0,a);else{const g=document.createTextNode(a);h=this.scroll.create(g),this.parent.insertBefore(h,this)}if(this.remove(),e){const g=(w,_)=>t&&w===t.domNode?_:w===l?r+_-1:i&&w===i.domNode?r+a.length+_:null,m=g(e.start.node,e.start.offset),x=g(e.end.node,e.end.offset);if(m!==null&&x!==null)return{startNode:h.domNode,startOffset:m,endNode:h.domNode,endOffset:x}}return null}update(e,t){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(t.range=r)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=ch.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};Ee(ch,"blotName","cursor"),Ee(ch,"className","ql-cursor"),Ee(ch,"tagName","span"),Ee(ch,"CONTENTS","\uFEFF");let S1=ch;var xb={exports:{}},Yx;function tD(){return Yx||(Yx=1,(function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function i(h,g,m){this.fn=h,this.context=g,this.once=m||!1}function o(h,g,m,x,w){if(typeof m!="function")throw new TypeError("The listener must be a function");var _=new i(m,x||h,w),E=t?t+g:g;return h._events[E]?h._events[E].fn?h._events[E]=[h._events[E],_]:h._events[E].push(_):(h._events[E]=_,h._eventsCount++),h}function l(h,g){--h._eventsCount===0?h._events=new r:delete h._events[g]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var g=[],m,x;if(this._eventsCount===0)return g;for(x in m=this._events)e.call(m,x)&&g.push(t?x.slice(1):x);return Object.getOwnPropertySymbols?g.concat(Object.getOwnPropertySymbols(m)):g},a.prototype.listeners=function(g){var m=t?t+g:g,x=this._events[m];if(!x)return[];if(x.fn)return[x.fn];for(var w=0,_=x.length,E=new Array(_);w<_;w++)E[w]=x[w].fn;return E},a.prototype.listenerCount=function(g){var m=t?t+g:g,x=this._events[m];return x?x.fn?1:x.length:0},a.prototype.emit=function(g,m,x,w,_,E){var R=t?t+g:g;if(!this._events[R])return!1;var k=this._events[R],O=arguments.length,P,z;if(k.fn){switch(k.once&&this.removeListener(g,k.fn,void 0,!0),O){case 1:return k.fn.call(k.context),!0;case 2:return k.fn.call(k.context,m),!0;case 3:return k.fn.call(k.context,m,x),!0;case 4:return k.fn.call(k.context,m,x,w),!0;case 5:return k.fn.call(k.context,m,x,w,_),!0;case 6:return k.fn.call(k.context,m,x,w,_,E),!0}for(z=1,P=new Array(O-1);z<O;z++)P[z-1]=arguments[z];k.fn.apply(k.context,P)}else{var H=k.length,G;for(z=0;z<H;z++)switch(k[z].once&&this.removeListener(g,k[z].fn,void 0,!0),O){case 1:k[z].fn.call(k[z].context);break;case 2:k[z].fn.call(k[z].context,m);break;case 3:k[z].fn.call(k[z].context,m,x);break;case 4:k[z].fn.call(k[z].context,m,x,w);break;default:if(!P)for(G=1,P=new Array(O-1);G<O;G++)P[G-1]=arguments[G];k[z].fn.apply(k[z].context,P)}}return!0},a.prototype.on=function(g,m,x){return o(this,g,m,x,!1)},a.prototype.once=function(g,m,x){return o(this,g,m,x,!0)},a.prototype.removeListener=function(g,m,x,w){var _=t?t+g:g;if(!this._events[_])return this;if(!m)return l(this,_),this;var E=this._events[_];if(E.fn)E.fn===m&&(!w||E.once)&&(!x||E.context===x)&&l(this,_);else{for(var R=0,k=[],O=E.length;R<O;R++)(E[R].fn!==m||w&&!E[R].once||x&&E[R].context!==x)&&k.push(E[R]);k.length?this._events[_]=k.length===1?k[0]:k:l(this,_)}return this},a.prototype.removeAllListeners=function(g){var m;return g?(m=t?t+g:g,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=t,a.EventEmitter=a,n.exports=a})(xb)),xb.exports}var nD=tD();const rD=L1(nD),Zy=new WeakMap,Xy=["error","warn","log","info"];let Ky="warn";function L_(n){if(Ky&&Xy.indexOf(n)<=Xy.indexOf(Ky)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function Md(n){return Xy.reduce((e,t)=>(e[t]=L_.bind(console,t,n),e),{})}Md.level=n=>{Ky=n};L_.level=Md.level;const wb=Md("quill:events"),iD=["selectionchange","mousedown","mouseup","click"];iD.forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const o=Zy.get(i);o&&o.emitter&&o.emitter.handleDOM(...t)})})});class Un extends rD{constructor(){super(),this.domListeners={},this.on("error",wb.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return wb.log.call(wb,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach(o=>{let{node:l,handler:a}=o;(e.target===l||l.contains(e.target))&&a(e,...r)})}listenDOM(e,t,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:r})}}Ee(Un,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Ee(Un,"sources",{API:"api",SILENT:"silent",USER:"user"});const Cb=Md("quill:selection");class Ng{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class oD{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Ng(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,Un.sources.USER),1)}),this.emitter.on(Un.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(Un.events.SCROLL_UPDATE,(i,o)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const l=o.some(a=>a.type==="characterData"||a.type==="childList"||a.type==="attributes"&&a.target===this.root);this.update(l?Un.sources.SILENT:i)}catch{}})}),this.emitter.on(Un.events.SCROLL_OPTIMIZE,(r,i)=>{if(i.range){const{startNode:o,startOffset:l,endNode:a,endOffset:h}=i.range;this.setNativeRange(o,l,a,h),this.update(Un.sources.SILENT)}}),this.update(Un.sources.SILENT)}handleComposition(){this.emitter.on(Un.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(Un.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(Un.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,Qn.BLOCK))){if(r.start.node!==this.cursor.textNode){const i=this.scroll.find(r.start.node,!1);if(i==null)return;if(i instanceof lu){const o=i.split(r.start.offset);i.parent.insertBefore(this.cursor,o)}else i.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;let i,[o,l]=this.scroll.leaf(e);if(o==null)return null;if(t>0&&l===o.length()){const[m]=this.scroll.leaf(e+1);if(m){const[x]=this.scroll.line(e),[w]=this.scroll.line(e+1);x===w&&(o=m,l=0)}}[i,l]=o.position(l,!0);const a=document.createRange();if(t>0)return a.setStart(i,l),[o,l]=this.scroll.leaf(e+t),o==null?null:([i,l]=o.position(l,!0),a.setEnd(i,l),a.getBoundingClientRect());let h="left",g;if(i instanceof Text){if(!i.data.length)return null;l<i.data.length?(a.setStart(i,l),a.setEnd(i,l+1)):(a.setStart(i,l-1),a.setEnd(i,l),h="right"),g=a.getBoundingClientRect()}else{if(!(o.domNode instanceof Element))return null;g=o.domNode.getBoundingClientRect(),l>0&&(h="right")}return{bottom:g.top+g.height,height:g.height,left:g[h],right:g[h],top:g.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const r=this.normalizeNative(t);return Cb.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&_b(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const r=t.map(l=>{const[a,h]=l,g=this.scroll.find(a,!0),m=g.offset(this.scroll);return h===0?m:g instanceof lu?m+g.index(a,h):m+g.length()}),i=Math.min(Math.max(...r),this.scroll.length()-1),o=Math.min(i,...r);return new Ng(o,i-o)}normalizeNative(e){if(!_b(this.root,e.startContainer)||!e.collapsed&&!_b(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(r=>{let{node:i,offset:o}=r;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>o)i=i.childNodes[o],o=0;else if(i.childNodes.length===o)i=i.lastChild,i instanceof Text?o=i.data.length:i.childNodes.length>0?o=i.childNodes.length:o=i.childNodes.length+1;else break;r.node=i,r.offset=o}),t}rangeToNative(e){const t=this.scroll.length(),r=(i,o)=>{i=Math.min(t-1,i);const[l,a]=this.scroll.leaf(i);return l?l.position(a,o):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Cb.info("setNativeRange",e,t,r,i),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const l=document.getSelection();if(l!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(a==null||o||e!==a.startContainer||t!==a.startOffset||r!==a.endContainer||i!==a.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(i=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const h=document.createRange();h.setStart(e,t),h.setEnd(r,i),l.removeAllRanges(),l.addRange(h)}}else l.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Un.sources.API;if(typeof t=="string"&&(r=t,t=!1),Cb.info("setRange",e),e!=null){const i=this.rangeToNative(e);this.setNativeRange(...i,t)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Un.sources.USER;const t=this.lastRange,[r,i]=this.getRange();if(this.lastRange=r,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!$d(t,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const l=this.cursor.restore();l&&this.setNativeRange(l.startNode,l.startOffset,l.endNode,l.endOffset)}const o=[Un.events.SELECTION_CHANGE,g1(this.lastRange),g1(t),e];this.emitter.emit(Un.events.EDITOR_CHANGE,...o),e!==Un.sources.SILENT&&this.emitter.emit(...o)}}}function _b(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const lD=/^[ -~]*$/;class sD{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=Vx(e),i=new Jn;return cD(r.ops.slice()).reduce((l,a)=>{const h=vh.Op.length(a);let g=a.attributes||{},m=!1,x=!1;if(a.insert!=null){if(i.retain(h),typeof a.insert=="string"){const E=a.insert;x=!E.endsWith(`
|
|
293
293
|
`)&&(t<=l||!!this.scroll.descendant(ph,l)[0]),this.scroll.insertAt(l,E);const[R,k]=this.scroll.line(l);let O=og({},dh(R));if(R instanceof kc){const[P]=R.descendant(lu,k);P&&(O=og(O,dh(P)))}g=vh.AttributeMap.diff(O,g)||{}}else if(typeof a.insert=="object"){const E=Object.keys(a.insert)[0];if(E==null)return l;const R=this.scroll.query(E,Qn.INLINE)!=null;if(R)(t<=l||this.scroll.descendant(ph,l)[0])&&(x=!0);else if(l>0){const[k,O]=this.scroll.descendant(lu,l-1);k instanceof Dh?k.value()[O]!==`
|
|
294
294
|
`&&(m=!0):k instanceof zf&&k.statics.scope===Qn.INLINE_BLOT&&(m=!0)}if(this.scroll.insertAt(l,E,a.insert[E]),R){const[k]=this.scroll.descendant(lu,l);if(k){const O=og({},dh(k));g=vh.AttributeMap.diff(O,g)||{}}}}t+=h}else if(i.push(a),a.retain!==null&&typeof a.retain=="object"){const E=Object.keys(a.retain)[0];if(E==null)return l;this.scroll.updateEmbedAt(l,E,a.retain[E])}Object.keys(g).forEach(E=>{this.scroll.formatAt(l,h,E,g[E])});const w=m?1:0,_=x?1:0;return t+=w+_,i.retain(w),i.delete(_),l+h+w+_},0),i.reduce((l,a)=>typeof a.delete=="number"?(this.scroll.deleteAt(l,a.delete),l):l+vh.Op.length(a),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new Jn().retain(e).delete(t))}formatLine(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(o=>{this.scroll.lines(e,Math.max(t,1)).forEach(l=>{l.format(o,r[o])})}),this.scroll.optimize();const i=new Jn().retain(e).retain(t,g1(r));return this.update(i)}formatText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(o=>{this.scroll.formatAt(e,t,o,r[o])});const i=new Jn().retain(e).retain(t,g1(r));return this.update(i)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new Jn)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],i=[];t===0?this.scroll.path(e).forEach(a=>{const[h]=a;h instanceof kc?r.push(h):h instanceof lu&&i.push(h)}):(r=this.scroll.lines(e,t),i=this.scroll.descendants(lu,e,t));const[o,l]=[r,i].map(a=>{const h=a.shift();if(h==null)return{};let g=dh(h);for(;Object.keys(g).length>0;){const m=a.shift();if(m==null)return g;g=aD(dh(m),g)}return g});return{...o,...l}}getHTML(e,t){const[r,i]=this.scroll.line(e);if(r){const o=r.length();return r.length()>=i+t&&!(i===0&&t===o)?Lp(r,i,t,!0):Lp(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(e,t){const r=Vx(t),i=new Jn().retain(e).concat(r);return this.scroll.insertContents(e,r),this.update(i)}insertEmbed(e,t,r){return this.scroll.insertAt(e,t,r),this.update(new Jn().retain(e).insert({[t]:r}))}insertText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
|
|
295
295
|
`).replace(/\r/g,`
|
|
@@ -303,17 +303,17 @@ ${N["Invalid file(s)"]}: ${yn}${Ft?`
|
|
|
303
303
|
`)?i.insertAt(0,t.slice(0,-1),r):i.insertAt(0,t,r)}else{const i=this.scroll.create(t,r);this.appendChild(i)}else super.insertAt(e,t,r);this.optimize()}insertBefore(e,t){if(e.statics.scope===Qn.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(e),super.insertBefore(r,t)}else super.insertBefore(e,t)}insertContents(e,t){const r=this.deltaToRenderBlocks(t.concat(new Jn().insert(`
|
|
304
304
|
`))),i=r.pop();if(i==null)return;this.batchStart();const o=r.shift();if(o){const h=o.type==="block"&&(o.delta.length()===0||!this.descendant(ph,e)[0]&&e<this.length()),g=o.type==="block"?o.delta:new Jn().insert({[o.key]:o.value});Tb(this,e,g);const m=o.type==="block"?1:0,x=e+g.length()+m;h&&this.insertAt(x-1,`
|
|
305
305
|
`);const w=dh(this.line(e)[0]),_=vh.AttributeMap.diff(w,o.attributes)||{};Object.keys(_).forEach(E=>{this.formatAt(x-1,1,E,_[E])}),e=x}let[l,a]=this.children.find(e);if(r.length&&(l&&(l=l.split(a),a=0),r.forEach(h=>{if(h.type==="block"){const g=this.createBlock(h.attributes,l||void 0);Tb(g,0,h.delta)}else{const g=this.create(h.key,h.value);this.insertBefore(g,l||void 0),Object.keys(h.attributes).forEach(m=>{g.format(m,h.attributes[m])})}})),i.type==="block"&&i.delta.length()){const h=l?l.offset(l.scroll)+a:this.length();Tb(this,h,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[r,i]=t;return r instanceof lu?[r,i]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(qx,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(i,o,l)=>{let a=[],h=l;return i.children.forEachAt(o,l,(g,m,x)=>{qx(g)?a.push(g):g instanceof Mv&&(a=a.concat(r(g,m,h))),h-=x}),a};return r(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(Un.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=Un.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(r=>{let{target:i}=r;const o=this.find(i,!0);return o&&!jx(o)}),e.length>0&&this.emitter.emit(Un.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(Un.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,r){const[i]=this.descendant(o=>o instanceof ph,e);i&&i.statics.blotName===t&&jx(i)&&i.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let r=new Jn;return e.forEach(i=>{const o=i==null?void 0:i.insert;if(o)if(typeof o=="string"){const l=o.split(`
|
|
306
|
-
`);l.slice(0,-1).forEach(h=>{r.insert(h,i.attributes),t.push({type:"block",delta:r,attributes:i.attributes??{}}),r=new Jn});const a=l[l.length-1];a&&r.insert(a,i.attributes)}else{const l=Object.keys(o)[0];if(!l)return;this.query(l,Qn.INLINE)?r.push(i):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Jn,t.push({type:"blockEmbed",key:l,value:o[l],attributes:i.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(e,t){let r;const i={};Object.entries(e).forEach(a=>{let[h,g]=a;this.query(h,Qn.BLOCK&Qn.BLOT)!=null?r=h:i[h]=g});const o=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(o,t||void 0);const l=o.length();return Object.entries(i).forEach(a=>{let[h,g]=a;o.formatAt(0,l,h,g)}),o}}Ee(s1,"blotName","scroll"),Ee(s1,"className","ql-editor"),Ee(s1,"tagName","DIV"),Ee(s1,"defaultChild",kc),Ee(s1,"allowedChildren",[kc,ph,Gg]);function Tb(n,e,t){t.reduce((r,i)=>{const o=vh.Op.length(i);let l=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const a=i.insert;n.insertAt(r,a);const[h]=n.descendant(lu,r),g=dh(h);l=vh.AttributeMap.diff(g,l)||{}}else if(typeof i.insert=="object"){const a=Object.keys(i.insert)[0];if(a==null)return r;if(n.insertAt(r,a,i.insert[a]),n.scroll.query(a,Qn.INLINE)!=null){const[g]=n.descendant(lu,r),m=dh(g);l=vh.AttributeMap.diff(m,l)||{}}}}return Object.keys(l).forEach(a=>{n.formatAt(r,o,a,l[a])}),r+o},e)}const Fm={scope:Qn.BLOCK,whitelist:["right","center","justify"]},yD=new rd("align","align",Fm),
|
|
306
|
+
`);l.slice(0,-1).forEach(h=>{r.insert(h,i.attributes),t.push({type:"block",delta:r,attributes:i.attributes??{}}),r=new Jn});const a=l[l.length-1];a&&r.insert(a,i.attributes)}else{const l=Object.keys(o)[0];if(!l)return;this.query(l,Qn.INLINE)?r.push(i):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Jn,t.push({type:"blockEmbed",key:l,value:o[l],attributes:i.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(e,t){let r;const i={};Object.entries(e).forEach(a=>{let[h,g]=a;this.query(h,Qn.BLOCK&Qn.BLOT)!=null?r=h:i[h]=g});const o=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(o,t||void 0);const l=o.length();return Object.entries(i).forEach(a=>{let[h,g]=a;o.formatAt(0,l,h,g)}),o}}Ee(s1,"blotName","scroll"),Ee(s1,"className","ql-editor"),Ee(s1,"tagName","DIV"),Ee(s1,"defaultChild",kc),Ee(s1,"allowedChildren",[kc,ph,Gg]);function Tb(n,e,t){t.reduce((r,i)=>{const o=vh.Op.length(i);let l=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const a=i.insert;n.insertAt(r,a);const[h]=n.descendant(lu,r),g=dh(h);l=vh.AttributeMap.diff(g,l)||{}}else if(typeof i.insert=="object"){const a=Object.keys(i.insert)[0];if(a==null)return r;if(n.insertAt(r,a,i.insert[a]),n.scroll.query(a,Qn.INLINE)!=null){const[g]=n.descendant(lu,r),m=dh(g);l=vh.AttributeMap.diff(m,l)||{}}}}return Object.keys(l).forEach(a=>{n.formatAt(r,o,a,l[a])}),r+o},e)}const Fm={scope:Qn.BLOCK,whitelist:["right","center","justify"]},yD=new rd("align","align",Fm),O_=new zh("align","ql-align",Fm),P_=new hg("align","text-align",Fm);class D_ extends hg{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(i=>`00${parseInt(i,10).toString(16)}`.slice(-2)).join("")}`):t}}const mD=new zh("color","ql-color",{scope:Qn.INLINE}),Bm=new D_("color","color",{scope:Qn.INLINE}),xD=new zh("background","ql-bg",{scope:Qn.INLINE}),zm=new D_("background","background-color",{scope:Qn.INLINE});class Yg extends Gg{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
|
|
307
307
|
`).slice(e,e+t)}html(e,t){return`<pre>
|
|
308
308
|
${Lv(this.code(e,t))}
|
|
309
|
-
</pre>`}}class au extends kc{static register(){Xe.register(Yg)}}Ee(au,"TAB"," ");class Hm extends id{}Hm.blotName="code";Hm.tagName="CODE";au.blotName="code-block";au.className="ql-code-block";au.tagName="DIV";Yg.blotName="code-block-container";Yg.className="ql-code-block-container";Yg.tagName="DIV";Yg.allowedChildren=[au];au.allowedChildren=[Dh,Hh,S1];au.requiredContainer=Yg;const Wm={scope:Qn.BLOCK,whitelist:["rtl"]},
|
|
309
|
+
</pre>`}}class au extends kc{static register(){Xe.register(Yg)}}Ee(au,"TAB"," ");class Hm extends id{}Hm.blotName="code";Hm.tagName="CODE";au.blotName="code-block";au.className="ql-code-block";au.tagName="DIV";Yg.blotName="code-block-container";Yg.className="ql-code-block-container";Yg.tagName="DIV";Yg.allowedChildren=[au];au.allowedChildren=[Dh,Hh,S1];au.requiredContainer=Yg;const Wm={scope:Qn.BLOCK,whitelist:["rtl"]},N_=new rd("direction","dir",Wm),F_=new zh("direction","ql-direction",Wm),B_=new hg("direction","direction",Wm),z_={scope:Qn.INLINE,whitelist:["serif","monospace"]},H_=new zh("font","ql-font",z_);class wD extends hg{value(e){return super.value(e).replace(/["']/g,"")}}const W_=new wD("font","font-family",z_),U_=new zh("size","ql-size",{scope:Qn.INLINE,whitelist:["small","large","huge"]}),G_=new hg("size","font-size",{scope:Qn.INLINE,whitelist:["10px","18px","32px"]}),CD=Md("quill:keyboard"),_D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";let Y_=class V_ extends Wh{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!t[r]!==e[r]&&t[r]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=ED(e);if(i==null){CD.warn("Attempted to add invalid keyboard binding",i);return}typeof t=="function"&&(t={handler:t}),typeof r=="function"&&(r={handler:r}),(Array.isArray(i.key)?i.key:[i.key]).forEach(l=>{const a={...i,key:l,...t,...r};this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const i=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(O=>V_.match(e,O));if(i.length===0)return;const o=Xe.find(e.target,!0);if(o&&o.scroll!==this.quill.scroll)return;const l=this.quill.getSelection();if(l==null||!this.quill.hasFocus())return;const[a,h]=this.quill.getLine(l.index),[g,m]=this.quill.getLeaf(l.index),[x,w]=l.length===0?[g,m]:this.quill.getLeaf(l.index+l.length),_=g instanceof sv?g.value().slice(0,m):"",E=x instanceof sv?x.value().slice(w):"",R={collapsed:l.length===0,empty:l.length===0&&a.length()<=1,format:this.quill.getFormat(l),line:a,offset:h,prefix:_,suffix:E,event:e};i.some(O=>{if(O.collapsed!=null&&O.collapsed!==R.collapsed||O.empty!=null&&O.empty!==R.empty||O.offset!=null&&O.offset!==R.offset)return!1;if(Array.isArray(O.format)){if(O.format.every(P=>R.format[P]==null))return!1}else if(typeof O.format=="object"&&!Object.keys(O.format).every(P=>O.format[P]===!0?R.format[P]!=null:O.format[P]===!1?R.format[P]==null:$d(O.format[P],R.format[P])))return!1;return O.prefix!=null&&!O.prefix.test(R.prefix)||O.suffix!=null&&!O.suffix.test(R.suffix)?!1:O.handler.call(this,l,R,O)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let i={};const[o]=this.quill.getLine(e.index);let l=new Jn().retain(e.index-r).delete(r);if(t.offset===0){const[a]=this.quill.getLine(e.index-1);if(a&&!(a.statics.blotName==="block"&&a.length()<=1)){const g=o.formats(),m=this.quill.getFormat(e.index-1,1);if(i=vh.AttributeMap.diff(g,m)||{},Object.keys(i).length>0){const x=new Jn().retain(e.index+o.length()-2).retain(1,i);l=l.compose(x)}}}this.quill.updateContents(l,Xe.sources.USER),this.quill.focus()}handleDelete(e,t){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let i={};const[o]=this.quill.getLine(e.index);let l=new Jn().retain(e.index).delete(r);if(t.offset>=o.length()-1){const[a]=this.quill.getLine(e.index+1);if(a){const h=o.formats(),g=this.quill.getFormat(e.index,1);i=vh.AttributeMap.diff(h,g)||{},Object.keys(i).length>0&&(l=l.retain(a.length()-1).retain(1,i))}}this.quill.updateContents(l,Xe.sources.USER),this.quill.focus()}handleDeleteRange(e){Um({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const r=Object.keys(t.format).reduce((o,l)=>(this.quill.scroll.query(l,Qn.BLOCK)&&!Array.isArray(t.format[l])&&(o[l]=t.format[l]),o),{}),i=new Jn().retain(e.index).delete(e.length).insert(`
|
|
310
310
|
`,r);this.quill.updateContents(i,Xe.sources.USER),this.quill.setSelection(e.index+1,Xe.sources.SILENT),this.quill.focus()}};const SD={bindings:{bold:Ab("bold"),italic:Ab("italic"),underline:Ab("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",Xe.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",Xe.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(n,e){e.format.indent!=null?this.quill.format("indent","-1",Xe.sources.USER):e.format.list!=null&&this.quill.format("list",!1,Xe.sources.USER)}},"indent code-block":$x(!0),"outdent code-block":$x(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(n){this.quill.deleteText(n.index-1,1,Xe.sources.USER)}},tab:{key:"Tab",handler(n,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new Jn().retain(n.index).delete(n.length).insert(" ");return this.quill.updateContents(t,Xe.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index+1,Xe.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Xe.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(n,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(n.index,n.length,t,Xe.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(n){const[e,t]=this.quill.getLine(n.index),r={...e.formats(),list:"checked"},i=new Jn().retain(n.index).insert(`
|
|
311
311
|
`,r).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,Xe.sources.USER),this.quill.setSelection(n.index+1,Xe.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(n,e){const[t,r]=this.quill.getLine(n.index),i=new Jn().retain(n.index).insert(`
|
|
312
312
|
`,e.format).retain(t.length()-r-1).retain(1,{header:null});this.quill.updateContents(i,Xe.sources.USER),this.quill.setSelection(n.index+1,Xe.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(n){const e=this.quill.getModule("table");if(e){const[t,r,i,o]=e.getTable(n),l=TD(t,r,i,o);if(l==null)return;let a=t.offset();if(l<0){const h=new Jn().retain(a).insert(`
|
|
313
313
|
`);this.quill.updateContents(h,Xe.sources.USER),this.quill.setSelection(n.index+1,n.length,Xe.sources.SILENT)}else if(l>0){a+=t.length();const h=new Jn().retain(a).insert(`
|
|
314
|
-
`);this.quill.updateContents(h,Xe.sources.USER),this.quill.setSelection(a,Xe.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(n,e){const{event:t,line:r}=e,i=r.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(i-1,Xe.sources.USER):this.quill.setSelection(i+r.length(),Xe.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(n,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[r,i]=this.quill.getLine(n.index);if(i>t)return!0;let o;switch(e.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(n.index," ",Xe.sources.USER),this.quill.history.cutoff();const l=new Jn().retain(n.index-i).delete(t+1).retain(r.length()-2-i).retain(1,{list:o});return this.quill.updateContents(l,Xe.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index-t,Xe.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(n){const[e,t]=this.quill.getLine(n.index);let r=2,i=e;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,r-=1,r<=0){const o=new Jn().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Xe.sources.USER),this.quill.setSelection(n.index-1,Xe.sources.SILENT),!1}return!0}},"embed left":A0("ArrowLeft",!1),"embed left shift":A0("ArrowLeft",!0),"embed right":A0("ArrowRight",!1),"embed right shift":A0("ArrowRight",!0),"table down":ew(!1),"table up":ew(!0)}};
|
|
314
|
+
`);this.quill.updateContents(h,Xe.sources.USER),this.quill.setSelection(a,Xe.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(n,e){const{event:t,line:r}=e,i=r.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(i-1,Xe.sources.USER):this.quill.setSelection(i+r.length(),Xe.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(n,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[r,i]=this.quill.getLine(n.index);if(i>t)return!0;let o;switch(e.prefix.trim()){case"[]":case"[ ]":o="unchecked";break;case"[x]":o="checked";break;case"-":case"*":o="bullet";break;default:o="ordered"}this.quill.insertText(n.index," ",Xe.sources.USER),this.quill.history.cutoff();const l=new Jn().retain(n.index-i).delete(t+1).retain(r.length()-2-i).retain(1,{list:o});return this.quill.updateContents(l,Xe.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index-t,Xe.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(n){const[e,t]=this.quill.getLine(n.index);let r=2,i=e;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,r-=1,r<=0){const o=new Jn().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(o,Xe.sources.USER),this.quill.setSelection(n.index-1,Xe.sources.SILENT),!1}return!0}},"embed left":A0("ArrowLeft",!1),"embed left shift":A0("ArrowLeft",!0),"embed right":A0("ArrowRight",!1),"embed right shift":A0("ArrowRight",!0),"table down":ew(!1),"table up":ew(!0)}};Y_.DEFAULTS=SD;function $x(n){return{key:"Tab",shiftKey:!n,format:{"code-block":!0},handler(e,t){let{event:r}=t;const i=this.quill.scroll.query("code-block"),{TAB:o}=i;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,o,Xe.sources.USER),this.quill.setSelection(e.index+o.length,Xe.sources.SILENT);return}const l=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:a,length:h}=e;l.forEach((g,m)=>{n?(g.insertAt(0,o),m===0?a+=o.length:h+=o.length):g.domNode.textContent.startsWith(o)&&(g.deleteAt(0,o.length),m===0?a-=o.length:h-=o.length)}),this.quill.update(Xe.sources.USER),this.quill.setSelection(a,h,Xe.sources.SILENT)}}}function A0(n,e){return{key:n,shiftKey:e,altKey:null,[n==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:i}=r;n==="ArrowRight"&&(i+=r.length+1);const[o]=this.quill.getLeaf(i);return o instanceof zf?(n==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,Xe.sources.USER):this.quill.setSelection(r.index-1,Xe.sources.USER):e?this.quill.setSelection(r.index,r.length+1,Xe.sources.USER):this.quill.setSelection(r.index+r.length+1,Xe.sources.USER),!1):!0}}}function Ab(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],Xe.sources.USER)}}}function ew(n){return{key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const r=n?"prev":"next",i=t.line,o=i.parent[r];if(o!=null){if(o.statics.blotName==="table-row"){let l=o.children.head,a=i;for(;a.prev!=null;)a=a.prev,l=l.next;const h=l.offset(this.quill.scroll)+Math.min(t.offset,l.length()-1);this.quill.setSelection(h,0,Xe.sources.USER)}}else{const l=i.table()[r];l!=null&&(n?this.quill.setSelection(l.offset(this.quill.scroll)+l.length()-1,0,Xe.sources.USER):this.quill.setSelection(l.offset(this.quill.scroll),0,Xe.sources.USER))}return!1}}}function ED(n){if(typeof n=="string"||typeof n=="number")n={key:n};else if(typeof n=="object")n=g1(n);else return null;return n.shortKey&&(n[_D]=n.shortKey,delete n.shortKey),n}function Um(n){let{quill:e,range:t}=n;const r=e.getLines(t);let i={};if(r.length>1){const o=r[0].formats(),l=r[r.length-1].formats();i=vh.AttributeMap.diff(l,o)||{}}e.deleteText(t,Xe.sources.USER),Object.keys(i).length>0&&e.formatLine(t.index,1,i,Xe.sources.USER),e.setSelection(t.index,Xe.sources.SILENT)}function TD(n,e,t,r){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?r===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const AD=/font-weight:\s*normal/,RD=["P","OL","UL"],tw=n=>n&&RD.includes(n.tagName),ID=n=>{Array.from(n.querySelectorAll("br")).filter(e=>tw(e.previousElementSibling)&&tw(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},kD=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(AD)}).forEach(e=>{var r;const t=n.createDocumentFragment();t.append(...e.childNodes),(r=e.parentNode)==null||r.replaceChild(t,e)})};function MD(n){n.querySelector('[id^="docs-internal-guid-"]')&&(kD(n),ID(n))}const LD=/\bmso-list:[^;]*ignore/i,OD=/\bmso-list:[^;]*\bl(\d+)/i,PD=/\bmso-list:[^;]*\blevel(\d+)/i,DD=(n,e)=>{const t=n.getAttribute("style"),r=t==null?void 0:t.match(OD);if(!r)return null;const i=Number(r[1]),o=t==null?void 0:t.match(PD),l=o?Number(o[1]):1,a=new RegExp(`@list l${i}:level${l}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),h=e.match(a),g=h&&h[1]==="bullet"?"bullet":"ordered";return{id:i,indent:l,type:g,element:n}},ND=n=>{var l,a;const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(h=>{(h.getAttribute("style")||"").match(LD)?t.push(h):r.push(h)}),t.forEach(h=>{var g;return(g=h.parentNode)==null?void 0:g.removeChild(h)});const i=n.documentElement.innerHTML,o=r.map(h=>DD(h,i)).filter(h=>h);for(;o.length;){const h=[];let g=o.shift();for(;g;)h.push(g),g=o.length&&((l=o[0])==null?void 0:l.element)===g.element.nextElementSibling&&o[0].id===g.id?o.shift():null;const m=document.createElement("ul");h.forEach(_=>{const E=document.createElement("li");E.setAttribute("data-list",_.type),_.indent>1&&E.setAttribute("class",`ql-indent-${_.indent-1}`),E.innerHTML=_.element.innerHTML,m.appendChild(E)});const x=(a=h[0])==null?void 0:a.element,{parentNode:w}=x??{};x&&(w==null||w.replaceChild(m,x)),h.slice(1).forEach(_=>{let{element:E}=_;w==null||w.removeChild(E)})}};function FD(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&ND(n)}const BD=[FD,MD],zD=n=>{n.documentElement&&BD.forEach(e=>{e(n)})},HD=Md("quill:clipboard"),WD=[[Node.TEXT_NODE,eN],[Node.TEXT_NODE,rw],["br",XD],[Node.ELEMENT_NODE,rw],[Node.ELEMENT_NODE,ZD],[Node.ELEMENT_NODE,VD],[Node.ELEMENT_NODE,jD],["li",QD],["ol, ul",qD],["pre",KD],["tr",$D],["b",Rb("bold")],["i",Rb("italic")],["strike",Rb("strike")],["style",JD]],UD=[yD,N_].reduce((n,e)=>(n[e.keyName]=e,n),{}),nw=[P_,zm,Bm,B_,W_,G_].reduce((n,e)=>(n[e.keyName]=e,n),{});var Iy;let GD=(Iy=class extends Wh{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],WD.concat(this.options.matchers??[]).forEach(r=>{let[i,o]=r;this.addMatcher(i,o)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:r}=e,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[au.blotName])return new Jn().insert(r||"",{[au.blotName]:i[au.blotName]});if(!t)return new Jn().insert(r||"",i);const o=this.convertHTML(t);return Up(o,`
|
|
315
315
|
`)&&(o.ops[o.ops.length-1].attributes==null||i.table)?o.compose(new Jn().retain(o.length()-1).delete(1)):o}normalizeHTML(e){zD(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const r=t.body,i=new WeakMap,[o,l]=this.prepareMatching(r,i);return Gm(this.quill.scroll,r,o,l,i)}dangerouslyPasteHTML(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Xe.sources.API;if(typeof e=="string"){const i=this.convert({html:e,text:""});this.quill.setContents(i,t),this.quill.setSelection(0,Xe.sources.SILENT)}else{const i=this.convert({html:t,text:""});this.quill.updateContents(new Jn().retain(e).concat(i),r),this.quill.setSelection(e+i.length(),Xe.sources.SILENT)}}onCaptureCopy(e){var l,a;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:i,text:o}=this.onCopy(r,t);(l=e.clipboardData)==null||l.setData("text/plain",o),(a=e.clipboardData)==null||a.setData("text/html",i),t&&Um({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
|
|
316
|
-
`)}onCapturePaste(e){var l,a,h,g,m;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=(l=e.clipboardData)==null?void 0:l.getData("text/html");let i=(a=e.clipboardData)==null?void 0:a.getData("text/plain");if(!r&&!i){const x=(h=e.clipboardData)==null?void 0:h.getData("text/uri-list");x&&(i=this.normalizeURIList(x))}const o=Array.from(((g=e.clipboardData)==null?void 0:g.files)||[]);if(!r&&o.length>0){this.quill.uploader.upload(t,o);return}if(r&&o.length>0){const x=new DOMParser().parseFromString(r,"text/html");if(x.body.childElementCount===1&&((m=x.body.firstElementChild)==null?void 0:m.tagName)==="IMG"){this.quill.uploader.upload(t,o);return}}this.onPaste(t,{html:r,text:i})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:r,html:i}=t;const o=this.quill.getFormat(e.index),l=this.convert({text:r,html:i},o);HD.log("onPaste",l,{text:r,html:i});const a=new Jn().retain(e.index).delete(e.length).concat(l);this.quill.updateContents(a,Xe.sources.USER),this.quill.setSelection(a.length()-e.length,Xe.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const r=[],i=[];return this.matchers.forEach(o=>{const[l,a]=o;switch(l){case Node.TEXT_NODE:i.push(a);break;case Node.ELEMENT_NODE:r.push(a);break;default:Array.from(e.querySelectorAll(l)).forEach(h=>{if(t.has(h)){const g=t.get(h);g==null||g.push(a)}else t.set(h,[a])});break}}),[r,i]}},Ee(Iy,"DEFAULTS",{matchers:[]}),Iy);function Vg(n,e,t,r){return r.query(e)?n.reduce((i,o)=>{if(!o.insert)return i;if(o.attributes&&o.attributes[e])return i.push(o);const l=t?{[e]:t}:{};return i.insert(o.insert,{...l,...o.attributes})},new Jn):n}function Up(n,e){let t="";for(let r=n.ops.length-1;r>=0&&t.length<e.length;--r){const i=n.ops[r];if(typeof i.insert!="string")break;t=i.insert+t}return t.slice(-1*e.length)===e}function ng(n,e){if(!(n instanceof Element))return!1;const t=e.query(n);return t&&t.prototype instanceof zf?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(n.tagName.toLowerCase())}function YD(n,e){return n.previousElementSibling&&n.nextElementSibling&&!ng(n.previousElementSibling,e)&&!ng(n.nextElementSibling,e)}const R0=new WeakMap;function
|
|
316
|
+
`)}onCapturePaste(e){var l,a,h,g,m;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=(l=e.clipboardData)==null?void 0:l.getData("text/html");let i=(a=e.clipboardData)==null?void 0:a.getData("text/plain");if(!r&&!i){const x=(h=e.clipboardData)==null?void 0:h.getData("text/uri-list");x&&(i=this.normalizeURIList(x))}const o=Array.from(((g=e.clipboardData)==null?void 0:g.files)||[]);if(!r&&o.length>0){this.quill.uploader.upload(t,o);return}if(r&&o.length>0){const x=new DOMParser().parseFromString(r,"text/html");if(x.body.childElementCount===1&&((m=x.body.firstElementChild)==null?void 0:m.tagName)==="IMG"){this.quill.uploader.upload(t,o);return}}this.onPaste(t,{html:r,text:i})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:r,html:i}=t;const o=this.quill.getFormat(e.index),l=this.convert({text:r,html:i},o);HD.log("onPaste",l,{text:r,html:i});const a=new Jn().retain(e.index).delete(e.length).concat(l);this.quill.updateContents(a,Xe.sources.USER),this.quill.setSelection(a.length()-e.length,Xe.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const r=[],i=[];return this.matchers.forEach(o=>{const[l,a]=o;switch(l){case Node.TEXT_NODE:i.push(a);break;case Node.ELEMENT_NODE:r.push(a);break;default:Array.from(e.querySelectorAll(l)).forEach(h=>{if(t.has(h)){const g=t.get(h);g==null||g.push(a)}else t.set(h,[a])});break}}),[r,i]}},Ee(Iy,"DEFAULTS",{matchers:[]}),Iy);function Vg(n,e,t,r){return r.query(e)?n.reduce((i,o)=>{if(!o.insert)return i;if(o.attributes&&o.attributes[e])return i.push(o);const l=t?{[e]:t}:{};return i.insert(o.insert,{...l,...o.attributes})},new Jn):n}function Up(n,e){let t="";for(let r=n.ops.length-1;r>=0&&t.length<e.length;--r){const i=n.ops[r];if(typeof i.insert!="string")break;t=i.insert+t}return t.slice(-1*e.length)===e}function ng(n,e){if(!(n instanceof Element))return!1;const t=e.query(n);return t&&t.prototype instanceof zf?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(n.tagName.toLowerCase())}function YD(n,e){return n.previousElementSibling&&n.nextElementSibling&&!ng(n.previousElementSibling,e)&&!ng(n.nextElementSibling,e)}const R0=new WeakMap;function Z_(n){return n==null?!1:(R0.has(n)||(n.tagName==="PRE"?R0.set(n,!0):R0.set(n,Z_(n.parentNode))),R0.get(n))}function Gm(n,e,t,r,i){return e.nodeType===e.TEXT_NODE?r.reduce((o,l)=>l(e,o,n),new Jn):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((o,l)=>{let a=Gm(n,l,t,r,i);return l.nodeType===e.ELEMENT_NODE&&(a=t.reduce((h,g)=>g(l,h,n),a),a=(i.get(l)||[]).reduce((h,g)=>g(l,h,n),a)),o.concat(a)},new Jn):new Jn}function Rb(n){return(e,t,r)=>Vg(t,n,!0,r)}function VD(n,e,t){const r=rd.keys(n),i=zh.keys(n),o=hg.keys(n),l={};return r.concat(i).concat(o).forEach(a=>{let h=t.query(a,Qn.ATTRIBUTE);h!=null&&(l[h.attrName]=h.value(n),l[h.attrName])||(h=UD[a],h!=null&&(h.attrName===a||h.keyName===a)&&(l[h.attrName]=h.value(n)||void 0),h=nw[a],h!=null&&(h.attrName===a||h.keyName===a)&&(h=nw[a],l[h.attrName]=h.value(n)||void 0))}),Object.entries(l).reduce((a,h)=>{let[g,m]=h;return Vg(a,g,m,t)},e)}function ZD(n,e,t){const r=t.query(n);if(r==null)return e;if(r.prototype instanceof zf){const i={},o=r.value(n);if(o!=null)return i[r.blotName]=o,new Jn().insert(i,r.formats(n,t))}else if(r.prototype instanceof Mp&&!Up(e,`
|
|
317
317
|
`)&&e.insert(`
|
|
318
318
|
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return Vg(e,r.blotName,r.formats(n,t),t);return e}function XD(n,e){return Up(e,`
|
|
319
319
|
`)||e.insert(`
|
|
@@ -322,21 +322,21 @@ ${Lv(this.code(e,t))}
|
|
|
322
322
|
`)){if(ng(n,t)&&(n.childNodes.length>0||n instanceof HTMLParagraphElement))return e.insert(`
|
|
323
323
|
`);if(e.length()>0&&n.nextSibling){let r=n.nextSibling;for(;r!=null;){if(ng(r,t))return e.insert(`
|
|
324
324
|
`);const i=t.query(r);if(i&&i.prototype instanceof ph)return e.insert(`
|
|
325
|
-
`);r=r.firstChild}}}return e}function jD(n,e,t){var o;const r={},i=n.style||{};return i.fontStyle==="italic"&&(r.italic=!0),i.textDecoration==="underline"&&(r.underline=!0),i.textDecoration==="line-through"&&(r.strike=!0),((o=i.fontWeight)!=null&&o.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((l,a)=>{let[h,g]=a;return Vg(l,h,g,t)},e),parseFloat(i.textIndent||0)>0?new Jn().insert(" ").concat(e):e}function $D(n,e,t){var i,o;const r=((i=n.parentElement)==null?void 0:i.tagName)==="TABLE"?n.parentElement:(o=n.parentElement)==null?void 0:o.parentElement;if(r!=null){const a=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return Vg(e,"table",a,t)}return e}function eN(n,e,t){var i;let r=n.data;if(((i=n.parentElement)==null?void 0:i.tagName)==="O:P")return e.insert(r.trim());if(!
|
|
326
|
-
`)&&!YD(n,t))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(n.previousSibling==null&&n.parentElement!=null&&ng(n.parentElement,t)||n.previousSibling instanceof Element&&ng(n.previousSibling,t))&&(r=r.replace(/^ /,"")),(n.nextSibling==null&&n.parentElement!=null&&ng(n.parentElement,t)||n.nextSibling instanceof Element&&ng(n.nextSibling,t))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class
|
|
327
|
-
`):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,Qn.BLOCK)!=null):!1}function nN(n,e){const t=e.reduce((i,o)=>i+(o.delete||0),0);let r=e.length()-t;return tN(n,e)&&(r-=1),r}function Jy(n,e){if(!n)return n;const t=e.transformPosition(n.index),r=e.transformPosition(n.index+n.length);return{index:t,length:r-t}}class K4 extends Wh{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{var l;r.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(r.clientX,r.clientY);i=document.createRange(),i.setStart(a.offsetNode,a.offset),i.setEnd(a.offsetNode,a.offset)}const o=i&&e.selection.normalizeNative(i);if(o){const a=e.selection.normalizedToRange(o);(l=r.dataTransfer)!=null&&l.files&&this.upload(a,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(i=>{var o;i&&((o=this.options.mimetypes)!=null&&o.includes(i.type))&&r.push(i)}),r.length>0&&this.options.handler.call(this,e,r)}}K4.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(n,e){if(!this.quill.scroll.query("image"))return;const t=e.map(r=>new Promise(i=>{const o=new FileReader;o.onload=()=>{i(o.result)},o.readAsDataURL(r)}));Promise.all(t).then(r=>{const i=r.reduce((o,l)=>o.insert({image:l}),new Jn().retain(n.index).delete(n.length));this.quill.updateContents(i,Un.sources.USER),this.quill.setSelection(n.index+r.length,Un.sources.SILENT)})}};const rN=["insertText","insertReplacementText"];class iN extends Wh{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(Xe.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Um({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new Jn().retain(e.index).insert(t,r),Xe.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,Xe.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!rN.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=oN(e);if(r==null)return;const i=this.quill.selection.normalizeNative(t),o=i?this.quill.selection.normalizedToRange(i):null;o&&this.replaceText(o,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function oN(n){var e;return typeof n.data=="string"?n.data:(e=n.dataTransfer)!=null&&e.types.includes("text/plain")?n.dataTransfer.getData("text/plain"):null}const lN=/Mac/i.test(navigator.platform),sN=100,aN=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||lN&&n.key==="a"&&n.ctrlKey===!0);class cN extends Wh{constructor(t,r){super(t,r);Ee(this,"isListening",!1);Ee(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,r){let{line:i,event:o}=r;if(!(i instanceof Oh)||!i.uiNode)return!0;const l=getComputedStyle(i.domNode).direction==="rtl";return l&&o.key!=="ArrowRight"||!l&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(o.shiftKey?1:0),Xe.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&aN(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+sN,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const r=t.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)return;const i=this.quill.scroll.find(r.startContainer);if(!(i instanceof Oh)||!i.uiNode)return;const o=document.createRange();o.setStartAfter(i.uiNode),o.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(o)}}Xe.register({"blots/block":kc,"blots/block/embed":ph,"blots/break":Hh,"blots/container":Gg,"blots/cursor":S1,"blots/embed":Nm,"blots/inline":id,"blots/scroll":s1,"blots/text":Dh,"modules/clipboard":GD,"modules/history":X4,"modules/keyboard":Y4,"modules/uploader":K4,"modules/input":iN,"modules/uiNode":cN});class uN extends zh{add(e,t){let r=0;if(t==="+1"||t==="-1"){const i=this.value(e)||0;r=t==="+1"?i+1:i-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const fN=new uN("indent","ql-indent",{scope:Qn.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class Qy extends kc{}Ee(Qy,"blotName","blockquote"),Ee(Qy,"tagName","blockquote");class qy extends kc{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(qy,"blotName","header"),Ee(qy,"tagName",["H1","H2","H3","H4","H5","H6"]);class Gp extends Gg{}Gp.blotName="list-container";Gp.tagName="OL";class Yp extends kc{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){Xe.register(Gp)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),i=o=>{if(!e.isEnabled())return;const l=this.statics.formats(t,e);l==="checked"?(this.format("list","unchecked"),o.preventDefault()):l==="unchecked"&&(this.format("list","checked"),o.preventDefault())};r.addEventListener("mousedown",i),r.addEventListener("touchstart",i),this.attachUI(r)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}Yp.blotName="list";Yp.tagName="LI";Gp.allowedChildren=[Yp];Yp.requiredContainer=Gp;class Op extends id{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Ee(Op,"blotName","bold"),Ee(Op,"tagName",["STRONG","B"]);class jy extends Op{}Ee(jy,"blotName","italic"),Ee(jy,"tagName",["EM","I"]);class rg extends id{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return J4(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}Ee(rg,"blotName","link"),Ee(rg,"tagName","A"),Ee(rg,"SANITIZED_URL","about:blank"),Ee(rg,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function J4(n,e){const t=document.createElement("a");t.href=n;const r=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(r)>-1}class $y extends id{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}Ee($y,"blotName","script"),Ee($y,"tagName",["SUB","SUP"]);class em extends Op{}Ee(em,"blotName","strike"),Ee(em,"tagName",["S","STRIKE"]);class tm extends id{}Ee(tm,"blotName","underline"),Ee(tm,"tagName","U");class Z0 extends Nm{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}Ee(Z0,"blotName","formula"),Ee(Z0,"className","ql-formula"),Ee(Z0,"tagName","SPAN");const ow=["alt","height","width"];var z0;let hN=(z0=class extends zf{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return ow.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return J4(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){ow.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}},Ee(z0,"blotName","image"),Ee(z0,"tagName","IMG"),z0);const lw=["height","width"];class X0 extends ph{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return lw.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return rg.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){lw.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}Ee(X0,"blotName","video"),Ee(X0,"className","ql-video"),Ee(X0,"tagName","IFRAME");const bp=new zh("code-token","hljs",{scope:Qn.INLINE});class Rd extends id{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(au.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,r){super(e,t,r),bp.add(this.domNode,r)}format(e,t){e!==Rd.blotName?super.format(e,t):t?bp.add(this.domNode,t):(bp.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),bp.value(this.domNode)||this.unwrap()}}Rd.blotName="code-token";Rd.className="ql-token";class gh extends au{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),Rd.blotName,!1),super.replaceWith(e,t)}}class mp extends Yg{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===gh.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,t)}))}formatAt(e,t,r,i){r===gh.blotName&&(this.forceNext=!0),super.formatAt(e,t,r,i)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(l=>l!==this.uiNode).map(l=>l.textContent).join(`
|
|
325
|
+
`);r=r.firstChild}}}return e}function jD(n,e,t){var o;const r={},i=n.style||{};return i.fontStyle==="italic"&&(r.italic=!0),i.textDecoration==="underline"&&(r.underline=!0),i.textDecoration==="line-through"&&(r.strike=!0),((o=i.fontWeight)!=null&&o.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((l,a)=>{let[h,g]=a;return Vg(l,h,g,t)},e),parseFloat(i.textIndent||0)>0?new Jn().insert(" ").concat(e):e}function $D(n,e,t){var i,o;const r=((i=n.parentElement)==null?void 0:i.tagName)==="TABLE"?n.parentElement:(o=n.parentElement)==null?void 0:o.parentElement;if(r!=null){const a=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return Vg(e,"table",a,t)}return e}function eN(n,e,t){var i;let r=n.data;if(((i=n.parentElement)==null?void 0:i.tagName)==="O:P")return e.insert(r.trim());if(!Z_(n)){if(r.trim().length===0&&r.includes(`
|
|
326
|
+
`)&&!YD(n,t))return e;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(n.previousSibling==null&&n.parentElement!=null&&ng(n.parentElement,t)||n.previousSibling instanceof Element&&ng(n.previousSibling,t))&&(r=r.replace(/^ /,"")),(n.nextSibling==null&&n.parentElement!=null&&ng(n.parentElement,t)||n.nextSibling instanceof Element&&ng(n.nextSibling,t))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return e.insert(r)}class X_ extends Wh{constructor(t,r){super(t,r);Ee(this,"lastRecorded",0);Ee(this,"ignoreChange",!1);Ee(this,"stack",{undo:[],redo:[]});Ee(this,"currentRange",null);this.quill.on(Xe.events.EDITOR_CHANGE,(i,o,l,a)=>{i===Xe.events.SELECTION_CHANGE?o&&a!==Xe.sources.SILENT&&(this.currentRange=o):i===Xe.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||a===Xe.sources.USER?this.record(o,l):this.transform(o)),this.currentRange=Jy(this.currentRange,o))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",i=>{i.inputType==="historyUndo"?(this.undo(),i.preventDefault()):i.inputType==="historyRedo"&&(this.redo(),i.preventDefault())})}change(t,r){if(this.stack[t].length===0)return;const i=this.stack[t].pop();if(!i)return;const o=this.quill.getContents(),l=i.delta.invert(o);this.stack[r].push({delta:l,range:Jy(i.range,l)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Xe.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,r){if(t.ops.length===0)return;this.stack.redo=[];let i=t.invert(r),o=this.currentRange;const l=Date.now();if(this.lastRecorded+this.options.delay>l&&this.stack.undo.length>0){const a=this.stack.undo.pop();a&&(i=i.compose(a.delta),o=a.range)}else this.lastRecorded=l;i.length()!==0&&(this.stack.undo.push({delta:i,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){iw(this.stack.undo,t),iw(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Xe.sources.USER);else{const r=nN(this.quill.scroll,t.delta);this.quill.setSelection(r,Xe.sources.USER)}}}Ee(X_,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function iw(n,e){let t=e;for(let r=n.length-1;r>=0;r-=1){const i=n[r];n[r]={delta:t.transform(i.delta,!0),range:i.range&&Jy(i.range,t)},t=i.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function tN(n,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
|
|
327
|
+
`):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,Qn.BLOCK)!=null):!1}function nN(n,e){const t=e.reduce((i,o)=>i+(o.delete||0),0);let r=e.length()-t;return tN(n,e)&&(r-=1),r}function Jy(n,e){if(!n)return n;const t=e.transformPosition(n.index),r=e.transformPosition(n.index+n.length);return{index:t,length:r-t}}class K_ extends Wh{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{var l;r.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(r.clientX,r.clientY);i=document.createRange(),i.setStart(a.offsetNode,a.offset),i.setEnd(a.offsetNode,a.offset)}const o=i&&e.selection.normalizeNative(i);if(o){const a=e.selection.normalizedToRange(o);(l=r.dataTransfer)!=null&&l.files&&this.upload(a,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(i=>{var o;i&&((o=this.options.mimetypes)!=null&&o.includes(i.type))&&r.push(i)}),r.length>0&&this.options.handler.call(this,e,r)}}K_.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(n,e){if(!this.quill.scroll.query("image"))return;const t=e.map(r=>new Promise(i=>{const o=new FileReader;o.onload=()=>{i(o.result)},o.readAsDataURL(r)}));Promise.all(t).then(r=>{const i=r.reduce((o,l)=>o.insert({image:l}),new Jn().retain(n.index).delete(n.length));this.quill.updateContents(i,Un.sources.USER),this.quill.setSelection(n.index+r.length,Un.sources.SILENT)})}};const rN=["insertText","insertReplacementText"];class iN extends Wh{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(Xe.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Um({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new Jn().retain(e.index).insert(t,r),Xe.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,Xe.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!rN.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=oN(e);if(r==null)return;const i=this.quill.selection.normalizeNative(t),o=i?this.quill.selection.normalizedToRange(i):null;o&&this.replaceText(o,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function oN(n){var e;return typeof n.data=="string"?n.data:(e=n.dataTransfer)!=null&&e.types.includes("text/plain")?n.dataTransfer.getData("text/plain"):null}const lN=/Mac/i.test(navigator.platform),sN=100,aN=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||lN&&n.key==="a"&&n.ctrlKey===!0);class cN extends Wh{constructor(t,r){super(t,r);Ee(this,"isListening",!1);Ee(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,r){let{line:i,event:o}=r;if(!(i instanceof Oh)||!i.uiNode)return!0;const l=getComputedStyle(i.domNode).direction==="rtl";return l&&o.key!=="ArrowRight"||!l&&o.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(o.shiftKey?1:0),Xe.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&aN(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+sN,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const r=t.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)return;const i=this.quill.scroll.find(r.startContainer);if(!(i instanceof Oh)||!i.uiNode)return;const o=document.createRange();o.setStartAfter(i.uiNode),o.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(o)}}Xe.register({"blots/block":kc,"blots/block/embed":ph,"blots/break":Hh,"blots/container":Gg,"blots/cursor":S1,"blots/embed":Nm,"blots/inline":id,"blots/scroll":s1,"blots/text":Dh,"modules/clipboard":GD,"modules/history":X_,"modules/keyboard":Y_,"modules/uploader":K_,"modules/input":iN,"modules/uiNode":cN});class uN extends zh{add(e,t){let r=0;if(t==="+1"||t==="-1"){const i=this.value(e)||0;r=t==="+1"?i+1:i-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const fN=new uN("indent","ql-indent",{scope:Qn.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class Qy extends kc{}Ee(Qy,"blotName","blockquote"),Ee(Qy,"tagName","blockquote");class qy extends kc{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Ee(qy,"blotName","header"),Ee(qy,"tagName",["H1","H2","H3","H4","H5","H6"]);class Gp extends Gg{}Gp.blotName="list-container";Gp.tagName="OL";class Yp extends kc{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){Xe.register(Gp)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),i=o=>{if(!e.isEnabled())return;const l=this.statics.formats(t,e);l==="checked"?(this.format("list","unchecked"),o.preventDefault()):l==="unchecked"&&(this.format("list","checked"),o.preventDefault())};r.addEventListener("mousedown",i),r.addEventListener("touchstart",i),this.attachUI(r)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}Yp.blotName="list";Yp.tagName="LI";Gp.allowedChildren=[Yp];Yp.requiredContainer=Gp;class Op extends id{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Ee(Op,"blotName","bold"),Ee(Op,"tagName",["STRONG","B"]);class jy extends Op{}Ee(jy,"blotName","italic"),Ee(jy,"tagName",["EM","I"]);class rg extends id{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return J_(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}Ee(rg,"blotName","link"),Ee(rg,"tagName","A"),Ee(rg,"SANITIZED_URL","about:blank"),Ee(rg,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function J_(n,e){const t=document.createElement("a");t.href=n;const r=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(r)>-1}class $y extends id{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}Ee($y,"blotName","script"),Ee($y,"tagName",["SUB","SUP"]);class em extends Op{}Ee(em,"blotName","strike"),Ee(em,"tagName",["S","STRIKE"]);class tm extends id{}Ee(tm,"blotName","underline"),Ee(tm,"tagName","U");class Z0 extends Nm{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}Ee(Z0,"blotName","formula"),Ee(Z0,"className","ql-formula"),Ee(Z0,"tagName","SPAN");const ow=["alt","height","width"];var z0;let hN=(z0=class extends zf{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return ow.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return J_(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){ow.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}},Ee(z0,"blotName","image"),Ee(z0,"tagName","IMG"),z0);const lw=["height","width"];class X0 extends ph{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return lw.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return rg.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){lw.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}Ee(X0,"blotName","video"),Ee(X0,"className","ql-video"),Ee(X0,"tagName","IFRAME");const bp=new zh("code-token","hljs",{scope:Qn.INLINE});class Rd extends id{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(au.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,r){super(e,t,r),bp.add(this.domNode,r)}format(e,t){e!==Rd.blotName?super.format(e,t):t?bp.add(this.domNode,t):(bp.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),bp.value(this.domNode)||this.unwrap()}}Rd.blotName="code-token";Rd.className="ql-token";class gh extends au{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),Rd.blotName,!1),super.replaceWith(e,t)}}class mp extends Yg{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===gh.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,t)}))}formatAt(e,t,r,i){r===gh.blotName&&(this.forceNext=!0),super.formatAt(e,t,r,i)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(l=>l!==this.uiNode).map(l=>l.textContent).join(`
|
|
328
328
|
`)}
|
|
329
|
-
`,o=gh.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const l=this.children.reduce((h,g)=>h.concat(
|
|
329
|
+
`,o=gh.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const l=this.children.reduce((h,g)=>h.concat(M_(g,!1)),new Jn),a=e(i,o);l.diff(a).reduce((h,g)=>{let{retain:m,attributes:x}=g;return m?(x&&Object.keys(x).forEach(w=>{[gh.blotName,Rd.blotName].includes(w)&&this.formatAt(h,m,w,x[w])}),h+m):h},0)}this.cachedText=i,this.forceNext=!1}}html(e,t){const[r]=this.children.find(e);return`<pre data-language="${r?gh.formats(r.domNode):"plain"}">
|
|
330
330
|
${Lv(this.code(e,t))}
|
|
331
|
-
</pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=gh.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}mp.allowedChildren=[gh];gh.requiredContainer=mp;gh.allowedChildren=[Rd,S1,Dh,Hh];const dN=(n,e,t)=>{if(typeof n.versionString=="string"){const r=n.versionString.split(".")[0];if(parseInt(r,10)>=11)return n.highlight(t,{language:e}).value}return n.highlight(e,t).value};class
|
|
331
|
+
</pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=gh.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}mp.allowedChildren=[gh];gh.requiredContainer=mp;gh.allowedChildren=[Rd,S1,Dh,Hh];const dN=(n,e,t)=>{if(typeof n.versionString=="string"){const r=n.versionString.split(".")[0];if(parseInt(r,10)>=11)return n.highlight(t,{language:e}).value}return n.highlight(e,t).value};class Q_ extends Wh{static register(){Xe.register(Rd,!0),Xe.register(gh,!0),Xe.register(mp,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,i)=>{let{key:o}=i;return r[o]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Xe.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof mp))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:i,label:o}=r;const l=t.ownerDocument.createElement("option");l.textContent=o,l.setAttribute("value",i),t.appendChild(l)}),t.addEventListener("change",()=>{e.format(gh.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=gh.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(Xe.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(Xe.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(mp):[e]).forEach(o=>{o.highlight(this.highlightBlot,t)}),this.quill.update(Xe.sources.SILENT),r!=null&&this.quill.setSelection(r,Xe.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return Lv(e).split(`
|
|
332
332
|
`).reduce((i,o,l)=>(l!==0&&i.insert(`
|
|
333
333
|
`,{[au.blotName]:t}),i.insert(o)),new Jn);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(au.className),r.innerHTML=dN(this.options.hljs,t,e),Gm(this.quill.scroll,r,[(i,o)=>{const l=bp.value(i);return l?o.compose(new Jn().retain(o.length(),{[Rd.blotName]:l})):o}],[(i,o)=>i.data.split(`
|
|
334
334
|
`).reduce((l,a,h)=>(h!==0&&l.insert(`
|
|
335
|
-
`,{[au.blotName]:t}),l.insert(a)),o)],new WeakMap)}}
|
|
336
|
-
`).join("");return o.insert(l,{table:Ym()})},new Jn().retain(r.index));this.quill.updateContents(i,Xe.sources.USER),this.quill.setSelection(r.index,Xe.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Xe.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Xe.events.TEXT_CHANGE,(r,i,o)=>{o===Xe.sources.USER&&this.balanceTables()}),!0):!1)})}}const sw=Md("quill:toolbar");let Vm=class extends Wh{constructor(e,t){var r,i;if(super(e,t),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),pN(o,this.options.container),(i=(r=e.container)==null?void 0:r.parentNode)==null||i.insertBefore(o,e.container),this.container=o}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){sw.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(o=>{var a;const l=(a=this.options.handlers)==null?void 0:a[o];l&&this.addHandler(o,l)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(Xe.events.EDITOR_CHANGE,()=>{const[o]=this.quill.selection.getRange();this.update(o)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){sw.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,i=>{let o;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const a=e.options[e.selectedIndex];a.hasAttribute("selected")?o=!1:o=a.value||!1}else e.classList.contains("ql-active")?o=!1:o=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[l]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,o);else if(this.quill.scroll.query(t).prototype instanceof zf){if(o=prompt(`Enter ${t}`),!o)return;this.quill.updateContents(new Jn().retain(l.index).delete(l.length).insert({[t]:o}),Xe.sources.USER)}else this.quill.format(t,o,Xe.sources.USER);this.update(l)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[i,o]=r;if(o.tagName==="SELECT"){let l=null;if(e==null)l=null;else if(t[i]==null)l=o.querySelector("option[selected]");else if(!Array.isArray(t[i])){let a=t[i];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),l=o.querySelector(`option[value="${a}"]`)}l==null?(o.value="",o.selectedIndex=-1):l.selected=!0}else if(e==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const l=t[i],a=l===o.getAttribute("value")||l!=null&&l.toString()===o.getAttribute("value")||l==null&&!o.getAttribute("value");o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}else{const l=t[i]!=null;o.classList.toggle("ql-active",l),o.setAttribute("aria-pressed",l.toString())}})}};Vm.DEFAULTS={};function aw(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function pN(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")aw(r,i);else{const o=Object.keys(i)[0],l=i[o];Array.isArray(l)?vN(r,o,l):aw(r,o,l)}}),n.appendChild(r)})}function vN(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(i=>{const o=document.createElement("option");i!==!1?o.setAttribute("value",String(i)):o.setAttribute("selected","selected"),r.appendChild(o)}),n.appendChild(r)}Vm.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Qn.INLINE)!=null&&this.quill.format(t,!1,Xe.sources.USER)})}else this.quill.removeFormat(n.index,n.length,Xe.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",Xe.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,Xe.sources.USER),this.quill.format("direction",n,Xe.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let i=n==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,Xe.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,Xe.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,Xe.sources.USER):this.quill.format("list","unchecked",Xe.sources.USER):this.quill.format("list",n,Xe.sources.USER)}}};const bN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',yN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',mN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',xN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',wN='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',CN='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',_N='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',SN='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',cw='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',EN='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',TN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',AN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',RN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',IN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',kN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',MN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',LN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',ON='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',PN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',DN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',NN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',FN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',BN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',zN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',HN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',WN='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',UN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',GN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',YN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',VN='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',ZN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',XN='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',KN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',Pp={align:{"":bN,center:yN,right:mN,justify:xN},background:wN,blockquote:CN,bold:_N,clean:SN,code:cw,"code-block":cw,color:EN,direction:{"":TN,rtl:AN},formula:RN,header:{1:IN,2:kN,3:MN,4:LN,5:ON,6:PN},italic:DN,image:NN,indent:{"+1":FN,"-1":BN},link:zN,list:{bullet:HN,check:WN,ordered:UN},script:{sub:GN,super:YN},strike:VN,table:ZN,underline:XN,video:KN},JN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let uw=0;function fw(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Ov{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),fw(this.label,"aria-expanded"),fw(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=JN,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${uw}`,uw+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r!=null&&r.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class q4 extends Ov{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class j4 extends Ov{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const QN=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class $4{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,QN(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let l=0;if(o.right>i.right&&(l=i.right-o.right,this.root.style.left=`${t+l}px`),o.left<i.left&&(l=i.left-o.left,this.root.style.left=`${t+l}px`),o.bottom>i.bottom){const a=o.bottom-o.top,h=e.bottom-e.top+a;this.root.style.top=`${r-h}px`,this.root.classList.add("ql-flip")}return l}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const qN=[!1,"center","right","justify"],jN=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],$N=[!1,"serif","monospace"],eF=["1","2","3",!1],tF=["small",!1,"large","huge"];class Vp extends E1{constructor(e,t){super(e,t);const r=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(o=>{o.container.contains(i.target)||o.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(o=>{if(o.startsWith("ql-")&&(o=o.slice(3),t[o]!=null))if(o==="direction")r.innerHTML=t[o][""]+t[o].rtl;else if(typeof t[o]=="string")r.innerHTML=t[o];else{const l=r.value||"";l!=null&&t[o][l]&&(r.innerHTML=t[o][l])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&sp(i,qN),typeof t.align=="object"))return new j4(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const o=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&sp(i,jN,o==="background"?"#ffffff":"#000000"),new q4(i,t[o])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?sp(i,$N):i.classList.contains("ql-header")?sp(i,eF):i.classList.contains("ql-size")&&sp(i,tF)),new Ov(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Un.events.EDITOR_CHANGE,r)}}Vp.DEFAULTS=og({},E1.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class e_ extends $4{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Un.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Un.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=nF(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Un.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Un.sources.USER),this.quill.setSelection(r+2,Un.sources.USER)}break}}this.textbox.value="",this.hide()}}function nF(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function sp(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const i=document.createElement("option");r===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),n.appendChild(i)})}const rF=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class t_ extends e_{constructor(e,t){super(e,t),this.quill.on(Un.events.EDITOR_CHANGE,(r,i,o,l)=>{if(r===Un.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&l===Un.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(i.index,i.length);if(a.length===1){const h=this.quill.getBounds(i);h!=null&&this.position(h)}else{const h=a[a.length-1],g=this.quill.getIndex(h),m=Math.min(h.length()-1,i.index+i.length-g),x=this.quill.getBounds(new Ng(g,m));x!=null&&this.position(x)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Un.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}Ee(t_,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class n_ extends Vp{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=rF),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new t_(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Pp),this.buildPickers(e.container.querySelectorAll("select"),Pp))}}n_.DEFAULTS=og({},Vp.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Xe.sources.USER)}}}}});const iF=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class r_ extends e_{constructor(){super(...arguments);Ee(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Un.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Un.events.SELECTION_CHANGE,(t,r,i)=>{if(t!=null){if(t.length===0&&i===Un.sources.USER){const[o,l]=this.quill.scroll.descendant(rg,t.index);if(o!=null){this.linkRange=new Ng(t.index-l,o.length());const a=rg.formats(o.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const h=this.quill.getBounds(this.linkRange);h!=null&&this.position(h);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(r_,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class i_ extends Vp{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=iF),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Pp),this.buildPickers(e.container.querySelectorAll("select"),Pp),this.tooltip=new r_(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}i_.DEFAULTS=og({},Vp.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,Xe.sources.USER)}}}}});Xe.register({"attributors/attribute/direction":N4,"attributors/class/align":O4,"attributors/class/background":xD,"attributors/class/color":mD,"attributors/class/direction":F4,"attributors/class/font":H4,"attributors/class/size":U4,"attributors/style/align":P4,"attributors/style/background":zm,"attributors/style/color":Bm,"attributors/style/direction":B4,"attributors/style/font":W4,"attributors/style/size":G4},!0);Xe.register({"formats/align":O4,"formats/direction":F4,"formats/indent":fN,"formats/background":zm,"formats/color":Bm,"formats/font":H4,"formats/size":U4,"formats/blockquote":Qy,"formats/code-block":au,"formats/header":qy,"formats/list":Yp,"formats/bold":Op,"formats/code":Hm,"formats/italic":jy,"formats/link":rg,"formats/script":$y,"formats/strike":em,"formats/underline":tm,"formats/formula":Z0,"formats/image":hN,"formats/video":X0,"modules/syntax":Q4,"modules/table":gN,"modules/toolbar":Vm,"themes/bubble":n_,"themes/snow":i_,"ui/icons":Pp,"ui/picker":Ov,"ui/icon-picker":j4,"ui/color-picker":q4,"ui/tooltip":$4},!0);class Pv extends B.Component{constructor(e){super(e),this.editingAreaRef=B.createRef(),this.containerRef=B.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(r,i,o,l)=>{var a,h;r==="text-change"?(a=this.onEditorChangeText)==null||a.call(this,this.editor.root.innerHTML,i,l,this.unprivilegedEditor):r==="selection-change"&&((h=this.onEditorChangeSelection)==null||h.call(this,i,l,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(B.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(B.Children.count(e.children)){const t=B.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const r=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,r)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(r=>!$d(e[r],this.props[r]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!$d(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const r=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:r,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const o=this.editor;o.setContents(r),hw(()=>this.setEditorSelection(o,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){var r,i;if(!this.editor)return;this.unhookEditor(this.editor);const e=(r=this.props.modules)==null?void 0:r.toolbar;if(!(typeof e=="object"&&e&&"container"in e&&typeof e.container=="string"||typeof e=="string")){const o=(i=this.containerRef.current)==null?void 0:i.querySelector(".ql-toolbar");o&&o.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const r=new Xe(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(r,t.tabIndex),this.hookEditor(r),r}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?$d(e.ops,t.ops):$d(e,t)}setEditorContents(e,t){this.value=t;const r=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),hw(()=>this.setEditorSelection(e,r))}setEditorSelection(e,t){if(this.selection=t,t){const r=e.getLength();t.index=Math.max(0,Math.min(t.index,r-1)),t.length=Math.max(0,Math.min(t.length,r-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){var r;(r=e==null?void 0:e.scroll)!=null&&r.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:r}=this.state,i={key:r,ref:this.editingAreaRef};return B.Children.count(e)?B.cloneElement(B.Children.only(e),i):t?B.createElement("pre",{...i}):B.createElement("div",{...i})}render(){return B.createElement("div",{ref:this.containerRef,id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,r,i){var l,a;if(!this.editor)return;const o=this.isDelta(this.value)?i.getContents():i.getHTML();o!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=o,(a=(l=this.props).onChange)==null||a.call(l,e,t,r,i))}onEditorChangeSelection(e,t,r){var a,h,g,m,x,w;if(!this.editor)return;const i=this.getEditorSelection(),o=!i&&e,l=i&&!e;$d(e,i)||(this.selection=e,(h=(a=this.props).onChangeSelection)==null||h.call(a,e,t,r),o?(m=(g=this.props).onFocus)==null||m.call(g,e,t,r):l&&((w=(x=this.props).onBlur)==null||w.call(x,i,t,r)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Pv.displayName="React Quill";Pv.Quill=Xe;Pv.defaultProps={theme:"snow",modules:{},readOnly:!1};function hw(n){Promise.resolve().then(n)}class o_{constructor(e,t={}){Ee(this,"quill");Ee(this,"options");Ee(this,"_toolbarEl",null);Ee(this,"_button",null);Ee(this,"_resizeObserver",null);Ee(this,"_placeholder",null);if(this.quill=e,this.options=t,this.options.type==="Raw")return;if(this.options.type==="ReadOnly"){this._createButton();return}const r=e.getModule("toolbar");if(!r){console.warn("Toolbar module not found");return}if(this._toolbarEl=r.container,!this._toolbarEl){console.warn("Toolbar container not found");return}this._createButton()}_createButton(){switch(this.options.type){case"ReadOnly":this._createReadOnlyButton();break;case"Error":case"Primary":this._createToolbarButton();break}}_createToolbarButton(){this._toolbarEl&&(!this.options.maximize||!this.options.minimize||(this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-right-action"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",this._toolbarEl.classList.add("ql-toolbar-has-right-action"),this._toolbarEl.append(this._button)))}_createReadOnlyButton(){var r;const e=(r=this.quill.root)==null?void 0:r.closest(".ql-container");if(!e||!this.options.maximize||!this.options.minimize)return;this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-readonly-fullscreen"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",e.appendChild(this._button),this._checkScrollbar(),requestAnimationFrame(()=>this._checkScrollbar());const t=this.quill.root;this._resizeObserver=new ResizeObserver(()=>this._checkScrollbar()),this._resizeObserver.observe(t)}_checkScrollbar(){const e=this.quill.root,t=e==null?void 0:e.closest(".ql-container");if(!e||!t||!this._button)return;e.scrollHeight>e.clientHeight?(t.classList.add("ql-has-v-scrollbar"),this._button.style.removeProperty("right")):(t.classList.remove("ql-has-v-scrollbar"),this._button.style.removeProperty("right"))}_toggleFullscreen(e){var o,l;e.preventDefault();const t=(o=this.quill.root)==null?void 0:o.closest(".ql-container");if(!t)throw new Error("Quill editor container not exist");let r=t.closest(".ql-editor-wrap");if(r){if(t instanceof HTMLElement&&(t.classList.remove("is-fullscreen"),t.style.height=""),this._placeholder){const a=t.parentElement;this._placeholder.after(a),this._placeholder.remove(),this._placeholder=null}r.remove(),this._button&&(this._button.classList.remove("ql-active"),this._button.innerHTML=this.options.maximize??""),document.documentElement.style.removeProperty("overflow");return}if(r=document.createElement("div"),r.classList.add("ql-editor-wrap"),t instanceof HTMLElement){const a=((l=this._toolbarEl)==null?void 0:l.offsetHeight)||0;t.style.height=`calc(100% - ${a}px)`,t.classList.add("is-fullscreen")}const i=t.parentElement;this._placeholder=document.createComment("ql-fullscreen-placeholder"),i.after(this._placeholder),r.append(i),document.body.append(r),this._button&&(this._button.classList.add("ql-active"),this._button.innerHTML=this.options.minimize??""),document.documentElement.style.overflow="hidden"}}window.QuillToggleFullscreenButton=o_;var Ib={exports:{}},dw;function oF(){return dw||(dw=1,(function(n,e){(function(t,r){n.exports=r()})(window,(function(){return(function(t){var r={};function i(o){if(r[o])return r[o].exports;var l=r[o]={i:o,l:!1,exports:{}};return t[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=t,i.c=r,i.d=function(o,l,a){i.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:a})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,l){if(1&l&&(o=i(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var h in o)i.d(a,h,(function(g){return o[g]}).bind(null,h));return a},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=17)})([function(t,r,i){var o=i(7),l=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a=Object.prototype.toString,h=Array.prototype.concat,g=Object.defineProperty,m=i(25)(),x=g&&m,w=function(E,R,k,O){var P;(!(R in E)||typeof(P=O)=="function"&&a.call(P)==="[object Function]"&&O())&&(x?g(E,R,{configurable:!0,enumerable:!1,value:k,writable:!0}):E[R]=k)},_=function(E,R){var k=arguments.length>2?arguments[2]:{},O=o(R);l&&(O=h.call(O,Object.getOwnPropertySymbols(R)));for(var P=0;P<O.length;P+=1)w(E,O[P],R[O[P]],k[O[P]])};_.supportsDescriptors=!!x,t.exports=_},function(t,r,i){var o=i(9);t.exports=function(){return o()&&!!Symbol.toStringTag}},function(t,r,i){var o=SyntaxError,l=Function,a=TypeError,h=function(ne){try{return l('"use strict"; return ('+ne+").constructor;")()}catch{}},g=Object.getOwnPropertyDescriptor;if(g)try{g({},"")}catch{g=null}var m=function(){throw new a},x=g?(function(){try{return m}catch{try{return g(arguments,"callee").get}catch{return m}}})():m,w=i(21)(),_=Object.getPrototypeOf||function(ne){return ne.__proto__},E={},R=typeof Uint8Array>"u"?void 0:_(Uint8Array),k={"%AggregateError%":typeof AggregateError>"u"?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":w?_([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%BigInt%":typeof BigInt>"u"?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?void 0:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w?_(_([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&w?_(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&w?_(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w?_(""[Symbol.iterator]()):void 0,"%Symbol%":w?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":x,"%TypedArray%":R,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakRef%":typeof WeakRef>"u"?void 0:WeakRef,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet},O={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=i(3),z=i(23),H=P.call(Function.call,Array.prototype.concat),G=P.call(Function.apply,Array.prototype.splice),N=P.call(Function.call,String.prototype.replace),J=P.call(Function.call,String.prototype.slice),Y=P.call(Function.call,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,X=function(ne){var ue=J(ne,0,1),se=J(ne,-1);if(ue==="%"&&se!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(se==="%"&&ue!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var $=[];return N(ne,K,(function(re,de,be,oe){$[$.length]=be?N(oe,fe,"$1"):de||re})),$},te=function(ne,ue){var se,$=ne;if(z(O,$)&&($="%"+(se=O[$])[0]+"%"),z(k,$)){var re=k[$];if(re===E&&(re=(function de(be){var oe;if(be==="%AsyncFunction%")oe=h("async function () {}");else if(be==="%GeneratorFunction%")oe=h("function* () {}");else if(be==="%AsyncGeneratorFunction%")oe=h("async function* () {}");else if(be==="%AsyncGenerator%"){var Q=de("%AsyncGeneratorFunction%");Q&&(oe=Q.prototype)}else if(be==="%AsyncIteratorPrototype%"){var ge=de("%AsyncGenerator%");ge&&(oe=_(ge.prototype))}return k[be]=oe,oe})($)),re===void 0&&!ue)throw new a("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:se,name:$,value:re}}throw new o("intrinsic "+ne+" does not exist!")};t.exports=function(ne,ue){if(typeof ne!="string"||ne.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ue!="boolean")throw new a('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/g,ne)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var se=X(ne),$=se.length>0?se[0]:"",re=te("%"+$+"%",ue),de=re.name,be=re.value,oe=!1,Q=re.alias;Q&&($=Q[0],G(se,H([0,1],Q)));for(var ge=1,Te=!0;ge<se.length;ge+=1){var He=se[ge],xe=J(He,0,1),Ne=J(He,-1);if((xe==='"'||xe==="'"||xe==="`"||Ne==='"'||Ne==="'"||Ne==="`")&&xe!==Ne)throw new o("property names with quotes must have matching quotes");if(He!=="constructor"&&Te||(oe=!0),z(k,de="%"+($+="."+He)+"%"))be=k[de];else if(be!=null){if(!(He in be)){if(!ue)throw new a("base intrinsic for "+ne+" exists, but the property is not available.");return}if(g&&ge+1>=se.length){var Me=g(be,He);be=(Te=!!Me)&&"get"in Me&&!("originalValue"in Me.get)?Me.get:be[He]}else Te=z(be,He),be=be[He];Te&&!oe&&(k[de]=be)}}return be}},function(t,r,i){var o=i(22);t.exports=Function.prototype.bind||o},function(t,r,i){var o=i(3),l=i(2),a=l("%Function.prototype.apply%"),h=l("%Function.prototype.call%"),g=l("%Reflect.apply%",!0)||o.call(h,a),m=l("%Object.getOwnPropertyDescriptor%",!0),x=l("%Object.defineProperty%",!0),w=l("%Math.max%");if(x)try{x({},"a",{value:1})}catch{x=null}t.exports=function(E){var R=g(o,h,arguments);if(m&&x){var k=m(R,"length");k.configurable&&x(R,"length",{value:1+w(0,E.length-(arguments.length-1))})}return R};var _=function(){return g(o,a,arguments)};x?x(t.exports,"apply",{value:_}):t.exports.apply=_},function(t,r,i){var o=i(18),l=i(6),a=i(15),h=i(32),g="\0",m=function(x){Array.isArray(x)?this.ops=x:x!=null&&Array.isArray(x.ops)?this.ops=x.ops:this.ops=[]};m.prototype.insert=function(x,w){var _={};return x.length===0?this:(_.insert=x,w!=null&&typeof w=="object"&&Object.keys(w).length>0&&(_.attributes=w),this.push(_))},m.prototype.delete=function(x){return x<=0?this:this.push({delete:x})},m.prototype.retain=function(x,w){if(x<=0)return this;var _={retain:x};return w!=null&&typeof w=="object"&&Object.keys(w).length>0&&(_.attributes=w),this.push(_)},m.prototype.push=function(x){var w=this.ops.length,_=this.ops[w-1];if(x=a(!0,{},x),typeof _=="object"){if(typeof x.delete=="number"&&typeof _.delete=="number")return this.ops[w-1]={delete:_.delete+x.delete},this;if(typeof _.delete=="number"&&x.insert!=null&&(w-=1,typeof(_=this.ops[w-1])!="object"))return this.ops.unshift(x),this;if(l(x.attributes,_.attributes)){if(typeof x.insert=="string"&&typeof _.insert=="string")return this.ops[w-1]={insert:_.insert+x.insert},typeof x.attributes=="object"&&(this.ops[w-1].attributes=x.attributes),this;if(typeof x.retain=="number"&&typeof _.retain=="number")return this.ops[w-1]={retain:_.retain+x.retain},typeof x.attributes=="object"&&(this.ops[w-1].attributes=x.attributes),this}}return w===this.ops.length?this.ops.push(x):this.ops.splice(w,0,x),this},m.prototype.chop=function(){var x=this.ops[this.ops.length-1];return x&&x.retain&&!x.attributes&&this.ops.pop(),this},m.prototype.filter=function(x){return this.ops.filter(x)},m.prototype.forEach=function(x){this.ops.forEach(x)},m.prototype.map=function(x){return this.ops.map(x)},m.prototype.partition=function(x){var w=[],_=[];return this.forEach((function(E){(x(E)?w:_).push(E)})),[w,_]},m.prototype.reduce=function(x,w){return this.ops.reduce(x,w)},m.prototype.changeLength=function(){return this.reduce((function(x,w){return w.insert?x+h.length(w):w.delete?x-w.delete:x}),0)},m.prototype.length=function(){return this.reduce((function(x,w){return x+h.length(w)}),0)},m.prototype.slice=function(x,w){x=x||0,typeof w!="number"&&(w=1/0);for(var _=[],E=h.iterator(this.ops),R=0;R<w&&E.hasNext();){var k;R<x?k=E.next(x-R):(k=E.next(w-R),_.push(k)),R+=h.length(k)}return new m(_)},m.prototype.compose=function(x){var w=h.iterator(this.ops),_=h.iterator(x.ops),E=[],R=_.peek();if(R!=null&&typeof R.retain=="number"&&R.attributes==null){for(var k=R.retain;w.peekType()==="insert"&&w.peekLength()<=k;)k-=w.peekLength(),E.push(w.next());R.retain-k>0&&_.next(R.retain-k)}for(var O=new m(E);w.hasNext()||_.hasNext();)if(_.peekType()==="insert")O.push(_.next());else if(w.peekType()==="delete")O.push(w.next());else{var P=Math.min(w.peekLength(),_.peekLength()),z=w.next(P),H=_.next(P);if(typeof H.retain=="number"){var G={};typeof z.retain=="number"?G.retain=P:G.insert=z.insert;var N=h.attributes.compose(z.attributes,H.attributes,typeof z.retain=="number");if(N&&(G.attributes=N),O.push(G),!_.hasNext()&&l(O.ops[O.ops.length-1],G)){var J=new m(w.rest());return O.concat(J).chop()}}else typeof H.delete=="number"&&typeof z.retain=="number"&&O.push(H)}return O.chop()},m.prototype.concat=function(x){var w=new m(this.ops.slice());return x.ops.length>0&&(w.push(x.ops[0]),w.ops=w.ops.concat(x.ops.slice(1))),w},m.prototype.diff=function(x,w){if(this.ops===x.ops)return new m;var _=[this,x].map((function(P){return P.map((function(z){if(z.insert!=null)return typeof z.insert=="string"?z.insert:g;throw new Error("diff() called "+(P===x?"on":"with")+" non-document")})).join("")})),E=new m,R=o(_[0],_[1],w),k=h.iterator(this.ops),O=h.iterator(x.ops);return R.forEach((function(P){for(var z=P[1].length;z>0;){var H=0;switch(P[0]){case o.INSERT:H=Math.min(O.peekLength(),z),E.push(O.next(H));break;case o.DELETE:H=Math.min(z,k.peekLength()),k.next(H),E.delete(H);break;case o.EQUAL:H=Math.min(k.peekLength(),O.peekLength(),z);var G=k.next(H),N=O.next(H);l(G.insert,N.insert)?E.retain(H,h.attributes.diff(G.attributes,N.attributes)):E.push(N).delete(H)}z-=H}})),E.chop()},m.prototype.eachLine=function(x,w){w=w||`
|
|
335
|
+
`,{[au.blotName]:t}),l.insert(a)),o)],new WeakMap)}}Q_.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Sp=class Sp extends kc{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",Ym()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===Sp.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Ee(Sp,"blotName","table"),Ee(Sp,"tagName","TD");let Lh=Sp;class Id extends Gg{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return e.table===t.table&&e.table===r.table&&e.table===i.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const r=t.formats(),i=t.next.formats();if(r.table!==i.table){const o=this.splitAfter(t);o&&o.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Ee(Id,"blotName","table-row"),Ee(Id,"tagName","TR");class ed extends Gg{}Ee(ed,"blotName","table-body"),Ee(ed,"tagName","TBODY");class T1 extends Gg{balanceCells(){const e=this.descendants(Id),t=e.reduce((r,i)=>Math.max(i.children.length,r),0);e.forEach(r=>{new Array(t-r.children.length).fill(0).forEach(()=>{let i;r.children.head!=null&&(i=Lh.formats(r.children.head.domNode));const o=this.scroll.create(Lh.blotName,i);r.appendChild(o),o.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(ed);t==null||t.children.head==null||t.children.forEach(r=>{const i=r.children.at(e);i!=null&&i.remove()})}insertColumn(e){const[t]=this.descendant(ed);t==null||t.children.head==null||t.children.forEach(r=>{const i=r.children.at(e),o=Lh.formats(r.children.head.domNode),l=this.scroll.create(Lh.blotName,o);r.insertBefore(l,i)})}insertRow(e){const[t]=this.descendant(ed);if(t==null||t.children.head==null)return;const r=Ym(),i=this.scroll.create(Id.blotName);t.children.head.children.forEach(()=>{const l=this.scroll.create(Lh.blotName,r);i.appendChild(l)});const o=t.children.at(e);t.insertBefore(i,o)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Ee(T1,"blotName","table-container"),Ee(T1,"tagName","TABLE");T1.allowedChildren=[ed];ed.requiredContainer=T1;ed.allowedChildren=[Id];Id.requiredContainer=ed;Id.allowedChildren=[Lh];Lh.requiredContainer=Id;function Ym(){return`row-${Math.random().toString(36).slice(2,6)}`}class gN extends Wh{static register(){Xe.register(Lh),Xe.register(Id),Xe.register(ed),Xe.register(T1)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(T1).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(Xe.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(Xe.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(Xe.sources.USER),this.quill.setSelection(t,Xe.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,r]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Lh.blotName)return[null,null,null,-1];const i=t.parent;return[i.parent.parent,i,t,r]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[r,i,o]=this.getTable(t);if(o==null)return;const l=o.cellOffset();r.insertColumn(l+e),this.quill.update(Xe.sources.USER);let a=i.rowOffset();e===0&&(a+=1),this.quill.setSelection(t.index+a,t.length,Xe.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[r,i,o]=this.getTable(t);if(o==null)return;const l=i.rowOffset();r.insertRow(l+e),this.quill.update(Xe.sources.USER),e>0?this.quill.setSelection(t,Xe.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,Xe.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const r=this.quill.getSelection();if(r==null)return;const i=new Array(e).fill(0).reduce(o=>{const l=new Array(t).fill(`
|
|
336
|
+
`).join("");return o.insert(l,{table:Ym()})},new Jn().retain(r.index));this.quill.updateContents(i,Xe.sources.USER),this.quill.setSelection(r.index,Xe.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Xe.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Xe.events.TEXT_CHANGE,(r,i,o)=>{o===Xe.sources.USER&&this.balanceTables()}),!0):!1)})}}const sw=Md("quill:toolbar");let Vm=class extends Wh{constructor(e,t){var r,i;if(super(e,t),Array.isArray(this.options.container)){const o=document.createElement("div");o.setAttribute("role","toolbar"),pN(o,this.options.container),(i=(r=e.container)==null?void 0:r.parentNode)==null||i.insertBefore(o,e.container),this.container=o}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){sw.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(o=>{var a;const l=(a=this.options.handlers)==null?void 0:a[o];l&&this.addHandler(o,l)}),Array.from(this.container.querySelectorAll("button, select")).forEach(o=>{this.attach(o)}),this.quill.on(Xe.events.EDITOR_CHANGE,()=>{const[o]=this.quill.selection.getRange();this.update(o)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){sw.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,i=>{let o;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const a=e.options[e.selectedIndex];a.hasAttribute("selected")?o=!1:o=a.value||!1}else e.classList.contains("ql-active")?o=!1:o=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[l]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,o);else if(this.quill.scroll.query(t).prototype instanceof zf){if(o=prompt(`Enter ${t}`),!o)return;this.quill.updateContents(new Jn().retain(l.index).delete(l.length).insert({[t]:o}),Xe.sources.USER)}else this.quill.format(t,o,Xe.sources.USER);this.update(l)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[i,o]=r;if(o.tagName==="SELECT"){let l=null;if(e==null)l=null;else if(t[i]==null)l=o.querySelector("option[selected]");else if(!Array.isArray(t[i])){let a=t[i];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),l=o.querySelector(`option[value="${a}"]`)}l==null?(o.value="",o.selectedIndex=-1):l.selected=!0}else if(e==null)o.classList.remove("ql-active"),o.setAttribute("aria-pressed","false");else if(o.hasAttribute("value")){const l=t[i],a=l===o.getAttribute("value")||l!=null&&l.toString()===o.getAttribute("value")||l==null&&!o.getAttribute("value");o.classList.toggle("ql-active",a),o.setAttribute("aria-pressed",a.toString())}else{const l=t[i]!=null;o.classList.toggle("ql-active",l),o.setAttribute("aria-pressed",l.toString())}})}};Vm.DEFAULTS={};function aw(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function pN(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")aw(r,i);else{const o=Object.keys(i)[0],l=i[o];Array.isArray(l)?vN(r,o,l):aw(r,o,l)}}),n.appendChild(r)})}function vN(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(i=>{const o=document.createElement("option");i!==!1?o.setAttribute("value",String(i)):o.setAttribute("selected","selected"),r.appendChild(o)}),n.appendChild(r)}Vm.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Qn.INLINE)!=null&&this.quill.format(t,!1,Xe.sources.USER)})}else this.quill.removeFormat(n.index,n.length,Xe.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",Xe.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,Xe.sources.USER),this.quill.format("direction",n,Xe.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let i=n==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,Xe.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,Xe.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,Xe.sources.USER):this.quill.format("list","unchecked",Xe.sources.USER):this.quill.format("list",n,Xe.sources.USER)}}};const bN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',yN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',mN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',xN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',wN='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',CN='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',_N='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',SN='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',cw='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',EN='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',TN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',AN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',RN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',IN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',kN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',MN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',LN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',ON='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',PN='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',DN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',NN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',FN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',BN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',zN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',HN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',WN='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',UN='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',GN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',YN='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',VN='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',ZN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',XN='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',KN='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',Pp={align:{"":bN,center:yN,right:mN,justify:xN},background:wN,blockquote:CN,bold:_N,clean:SN,code:cw,"code-block":cw,color:EN,direction:{"":TN,rtl:AN},formula:RN,header:{1:IN,2:kN,3:MN,4:LN,5:ON,6:PN},italic:DN,image:NN,indent:{"+1":FN,"-1":BN},link:zN,list:{bullet:HN,check:WN,ordered:UN},script:{sub:GN,super:YN},strike:VN,table:ZN,underline:XN,video:KN},JN='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let uw=0;function fw(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class Ov{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),fw(this.label,"aria-expanded"),fw(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=JN,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${uw}`,uw+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r!=null&&r.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class q_ extends Ov{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class j_ extends Ov{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const QN=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class $_{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,QN(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect();let l=0;if(o.right>i.right&&(l=i.right-o.right,this.root.style.left=`${t+l}px`),o.left<i.left&&(l=i.left-o.left,this.root.style.left=`${t+l}px`),o.bottom>i.bottom){const a=o.bottom-o.top,h=e.bottom-e.top+a;this.root.style.top=`${r-h}px`,this.root.classList.add("ql-flip")}return l}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const qN=[!1,"center","right","justify"],jN=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],$N=[!1,"serif","monospace"],eF=["1","2","3",!1],tF=["small",!1,"large","huge"];class Vp extends E1{constructor(e,t){super(e,t);const r=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(o=>{o.container.contains(i.target)||o.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(o=>{if(o.startsWith("ql-")&&(o=o.slice(3),t[o]!=null))if(o==="direction")r.innerHTML=t[o][""]+t[o].rtl;else if(typeof t[o]=="string")r.innerHTML=t[o];else{const l=r.value||"";l!=null&&t[o][l]&&(r.innerHTML=t[o][l])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&sp(i,qN),typeof t.align=="object"))return new j_(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const o=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&sp(i,jN,o==="background"?"#ffffff":"#000000"),new q_(i,t[o])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?sp(i,$N):i.classList.contains("ql-header")?sp(i,eF):i.classList.contains("ql-size")&&sp(i,tF)),new Ov(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Un.events.EDITOR_CHANGE,r)}}Vp.DEFAULTS=og({},E1.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class e4 extends $_{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Un.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Un.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=nF(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,Un.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Un.sources.USER),this.quill.setSelection(r+2,Un.sources.USER)}break}}this.textbox.value="",this.hide()}}function nF(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function sp(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const i=document.createElement("option");r===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),n.appendChild(i)})}const rF=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class t4 extends e4{constructor(e,t){super(e,t),this.quill.on(Un.events.EDITOR_CHANGE,(r,i,o,l)=>{if(r===Un.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&l===Un.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(i.index,i.length);if(a.length===1){const h=this.quill.getBounds(i);h!=null&&this.position(h)}else{const h=a[a.length-1],g=this.quill.getIndex(h),m=Math.min(h.length()-1,i.index+i.length-g),x=this.quill.getBounds(new Ng(g,m));x!=null&&this.position(x)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Un.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}Ee(t4,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class n4 extends Vp{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=rF),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new t4(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Pp),this.buildPickers(e.container.querySelectorAll("select"),Pp))}}n4.DEFAULTS=og({},Vp.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Xe.sources.USER)}}}}});const iF=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class r4 extends e4{constructor(){super(...arguments);Ee(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Un.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Un.events.SELECTION_CHANGE,(t,r,i)=>{if(t!=null){if(t.length===0&&i===Un.sources.USER){const[o,l]=this.quill.scroll.descendant(rg,t.index);if(o!=null){this.linkRange=new Ng(t.index-l,o.length());const a=rg.formats(o.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const h=this.quill.getBounds(this.linkRange);h!=null&&this.position(h);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Ee(r4,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class i4 extends Vp{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=iF),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Pp),this.buildPickers(e.container.querySelectorAll("select"),Pp),this.tooltip=new r4(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}i4.DEFAULTS=og({},Vp.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,Xe.sources.USER)}}}}});Xe.register({"attributors/attribute/direction":N_,"attributors/class/align":O_,"attributors/class/background":xD,"attributors/class/color":mD,"attributors/class/direction":F_,"attributors/class/font":H_,"attributors/class/size":U_,"attributors/style/align":P_,"attributors/style/background":zm,"attributors/style/color":Bm,"attributors/style/direction":B_,"attributors/style/font":W_,"attributors/style/size":G_},!0);Xe.register({"formats/align":O_,"formats/direction":F_,"formats/indent":fN,"formats/background":zm,"formats/color":Bm,"formats/font":H_,"formats/size":U_,"formats/blockquote":Qy,"formats/code-block":au,"formats/header":qy,"formats/list":Yp,"formats/bold":Op,"formats/code":Hm,"formats/italic":jy,"formats/link":rg,"formats/script":$y,"formats/strike":em,"formats/underline":tm,"formats/formula":Z0,"formats/image":hN,"formats/video":X0,"modules/syntax":Q_,"modules/table":gN,"modules/toolbar":Vm,"themes/bubble":n4,"themes/snow":i4,"ui/icons":Pp,"ui/picker":Ov,"ui/icon-picker":j_,"ui/color-picker":q_,"ui/tooltip":$_},!0);class Pv extends B.Component{constructor(e){super(e),this.editingAreaRef=B.createRef(),this.containerRef=B.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(r,i,o,l)=>{var a,h;r==="text-change"?(a=this.onEditorChangeText)==null||a.call(this,this.editor.root.innerHTML,i,l,this.unprivilegedEditor):r==="selection-change"&&((h=this.onEditorChangeSelection)==null||h.call(this,i,l,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(B.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(B.Children.count(e.children)){const t=B.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const r=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,r)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(r=>!$d(e[r],this.props[r]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!$d(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const r=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:r,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.editor&&e.placeholder!==this.props.placeholder&&(this.editor.root.dataset.placeholder=this.props.placeholder||""),this.state.generation!==t.generation){const{delta:r,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const o=this.editor;o.setContents(r),hw(()=>this.setEditorSelection(o,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){var r,i;if(!this.editor)return;this.unhookEditor(this.editor);const e=(r=this.props.modules)==null?void 0:r.toolbar;if(!(typeof e=="object"&&e&&"container"in e&&typeof e.container=="string"||typeof e=="string")){const o=(i=this.containerRef.current)==null?void 0:i.querySelector(".ql-toolbar");o&&o.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const r=new Xe(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(r,t.tabIndex),this.hookEditor(r),r}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?$d(e.ops,t.ops):$d(e,t)}setEditorContents(e,t){this.value=t;const r=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),hw(()=>this.setEditorSelection(e,r))}setEditorSelection(e,t){if(this.selection=t,t){const r=e.getLength();t.index=Math.max(0,Math.min(t.index,r-1)),t.length=Math.max(0,Math.min(t.length,r-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){var r;(r=e==null?void 0:e.scroll)!=null&&r.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:r}=this.state,i={key:r,ref:this.editingAreaRef};return B.Children.count(e)?B.cloneElement(B.Children.only(e),i):t?B.createElement("pre",{...i}):B.createElement("div",{...i})}render(){return B.createElement("div",{ref:this.containerRef,id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,r,i){var l,a;if(!this.editor)return;const o=this.isDelta(this.value)?i.getContents():i.getHTML();o!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=o,(a=(l=this.props).onChange)==null||a.call(l,e,t,r,i))}onEditorChangeSelection(e,t,r){var a,h,g,m,x,w;if(!this.editor)return;const i=this.getEditorSelection(),o=!i&&e,l=i&&!e;$d(e,i)||(this.selection=e,(h=(a=this.props).onChangeSelection)==null||h.call(a,e,t,r),o?(m=(g=this.props).onFocus)==null||m.call(g,e,t,r):l&&((w=(x=this.props).onBlur)==null||w.call(x,i,t,r)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Pv.displayName="React Quill";Pv.Quill=Xe;Pv.defaultProps={theme:"snow",modules:{},readOnly:!1};function hw(n){Promise.resolve().then(n)}class o4{constructor(e,t={}){Ee(this,"quill");Ee(this,"options");Ee(this,"_toolbarEl",null);Ee(this,"_button",null);Ee(this,"_resizeObserver",null);Ee(this,"_placeholder",null);if(this.quill=e,this.options=t,this.options.type==="Raw")return;if(this.options.type==="ReadOnly"){this._createButton();return}const r=e.getModule("toolbar");if(!r){console.warn("Toolbar module not found");return}if(this._toolbarEl=r.container,!this._toolbarEl){console.warn("Toolbar container not found");return}this._createButton()}_createButton(){switch(this.options.type){case"ReadOnly":this._createReadOnlyButton();break;case"Error":case"Primary":this._createToolbarButton();break}}_createToolbarButton(){this._toolbarEl&&(!this.options.maximize||!this.options.minimize||(this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-right-action"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",this._toolbarEl.classList.add("ql-toolbar-has-right-action"),this._toolbarEl.append(this._button)))}_createReadOnlyButton(){var r;const e=(r=this.quill.root)==null?void 0:r.closest(".ql-container");if(!e||!this.options.maximize||!this.options.minimize)return;this._button=document.createElement("button"),this._button.type="button",this._button.classList.add("ql-fullscreen","ql-readonly-fullscreen"),this._button.onclick=this._toggleFullscreen.bind(this),this._button.innerHTML=this.options.maximize??"",this._button.title=this.options.buttonTitle||"",e.appendChild(this._button),this._checkScrollbar(),requestAnimationFrame(()=>this._checkScrollbar());const t=this.quill.root;this._resizeObserver=new ResizeObserver(()=>this._checkScrollbar()),this._resizeObserver.observe(t)}_checkScrollbar(){const e=this.quill.root,t=e==null?void 0:e.closest(".ql-container");if(!e||!t||!this._button)return;e.scrollHeight>e.clientHeight?(t.classList.add("ql-has-v-scrollbar"),this._button.style.removeProperty("right")):(t.classList.remove("ql-has-v-scrollbar"),this._button.style.removeProperty("right"))}_toggleFullscreen(e){var o,l;e.preventDefault();const t=(o=this.quill.root)==null?void 0:o.closest(".ql-container");if(!t)throw new Error("Quill editor container not exist");let r=t.closest(".ql-editor-wrap");if(r){if(t instanceof HTMLElement&&(t.classList.remove("is-fullscreen"),t.style.height=""),this._placeholder){const a=t.parentElement;this._placeholder.after(a),this._placeholder.remove(),this._placeholder=null}r.remove(),this._button&&(this._button.classList.remove("ql-active"),this._button.innerHTML=this.options.maximize??""),document.documentElement.style.removeProperty("overflow");return}if(r=document.createElement("div"),r.classList.add("ql-editor-wrap"),t instanceof HTMLElement){const a=((l=this._toolbarEl)==null?void 0:l.offsetHeight)||0;t.style.height=`calc(100% - ${a}px)`,t.classList.add("is-fullscreen")}const i=t.parentElement;this._placeholder=document.createComment("ql-fullscreen-placeholder"),i.after(this._placeholder),r.append(i),document.body.append(r),this._button&&(this._button.classList.add("ql-active"),this._button.innerHTML=this.options.minimize??""),document.documentElement.style.overflow="hidden"}}window.QuillToggleFullscreenButton=o4;var Ib={exports:{}},dw;function oF(){return dw||(dw=1,(function(n,e){(function(t,r){n.exports=r()})(window,(function(){return(function(t){var r={};function i(o){if(r[o])return r[o].exports;var l=r[o]={i:o,l:!1,exports:{}};return t[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=t,i.c=r,i.d=function(o,l,a){i.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:a})},i.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},i.t=function(o,l){if(1&l&&(o=i(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var h in o)i.d(a,h,(function(g){return o[g]}).bind(null,h));return a},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=17)})([function(t,r,i){var o=i(7),l=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",a=Object.prototype.toString,h=Array.prototype.concat,g=Object.defineProperty,m=i(25)(),x=g&&m,w=function(E,R,k,O){var P;(!(R in E)||typeof(P=O)=="function"&&a.call(P)==="[object Function]"&&O())&&(x?g(E,R,{configurable:!0,enumerable:!1,value:k,writable:!0}):E[R]=k)},_=function(E,R){var k=arguments.length>2?arguments[2]:{},O=o(R);l&&(O=h.call(O,Object.getOwnPropertySymbols(R)));for(var P=0;P<O.length;P+=1)w(E,O[P],R[O[P]],k[O[P]])};_.supportsDescriptors=!!x,t.exports=_},function(t,r,i){var o=i(9);t.exports=function(){return o()&&!!Symbol.toStringTag}},function(t,r,i){var o=SyntaxError,l=Function,a=TypeError,h=function(ne){try{return l('"use strict"; return ('+ne+").constructor;")()}catch{}},g=Object.getOwnPropertyDescriptor;if(g)try{g({},"")}catch{g=null}var m=function(){throw new a},x=g?(function(){try{return m}catch{try{return g(arguments,"callee").get}catch{return m}}})():m,w=i(21)(),_=Object.getPrototypeOf||function(ne){return ne.__proto__},E={},R=typeof Uint8Array>"u"?void 0:_(Uint8Array),k={"%AggregateError%":typeof AggregateError>"u"?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":w?_([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":typeof Atomics>"u"?void 0:Atomics,"%BigInt%":typeof BigInt>"u"?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?void 0:Float32Array,"%Float64Array%":typeof Float64Array>"u"?void 0:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?void 0:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":E,"%Int8Array%":typeof Int8Array>"u"?void 0:Int8Array,"%Int16Array%":typeof Int16Array>"u"?void 0:Int16Array,"%Int32Array%":typeof Int32Array>"u"?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w?_(_([][Symbol.iterator]())):void 0,"%JSON%":typeof JSON=="object"?JSON:void 0,"%Map%":typeof Map>"u"?void 0:Map,"%MapIteratorPrototype%":typeof Map<"u"&&w?_(new Map()[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?void 0:Promise,"%Proxy%":typeof Proxy>"u"?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?void 0:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?void 0:Set,"%SetIteratorPrototype%":typeof Set<"u"&&w?_(new Set()[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w?_(""[Symbol.iterator]()):void 0,"%Symbol%":w?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":x,"%TypedArray%":R,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?void 0:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?void 0:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?void 0:WeakMap,"%WeakRef%":typeof WeakRef>"u"?void 0:WeakRef,"%WeakSet%":typeof WeakSet>"u"?void 0:WeakSet},O={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=i(3),z=i(23),H=P.call(Function.call,Array.prototype.concat),G=P.call(Function.apply,Array.prototype.splice),N=P.call(Function.call,String.prototype.replace),J=P.call(Function.call,String.prototype.slice),Y=P.call(Function.call,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,X=function(ne){var ue=J(ne,0,1),se=J(ne,-1);if(ue==="%"&&se!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(se==="%"&&ue!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var $=[];return N(ne,K,(function(re,de,be,oe){$[$.length]=be?N(oe,fe,"$1"):de||re})),$},te=function(ne,ue){var se,$=ne;if(z(O,$)&&($="%"+(se=O[$])[0]+"%"),z(k,$)){var re=k[$];if(re===E&&(re=(function de(be){var oe;if(be==="%AsyncFunction%")oe=h("async function () {}");else if(be==="%GeneratorFunction%")oe=h("function* () {}");else if(be==="%AsyncGeneratorFunction%")oe=h("async function* () {}");else if(be==="%AsyncGenerator%"){var Q=de("%AsyncGeneratorFunction%");Q&&(oe=Q.prototype)}else if(be==="%AsyncIteratorPrototype%"){var ge=de("%AsyncGenerator%");ge&&(oe=_(ge.prototype))}return k[be]=oe,oe})($)),re===void 0&&!ue)throw new a("intrinsic "+ne+" exists, but is not available. Please file an issue!");return{alias:se,name:$,value:re}}throw new o("intrinsic "+ne+" does not exist!")};t.exports=function(ne,ue){if(typeof ne!="string"||ne.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ue!="boolean")throw new a('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/g,ne)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var se=X(ne),$=se.length>0?se[0]:"",re=te("%"+$+"%",ue),de=re.name,be=re.value,oe=!1,Q=re.alias;Q&&($=Q[0],G(se,H([0,1],Q)));for(var ge=1,Te=!0;ge<se.length;ge+=1){var He=se[ge],xe=J(He,0,1),Ne=J(He,-1);if((xe==='"'||xe==="'"||xe==="`"||Ne==='"'||Ne==="'"||Ne==="`")&&xe!==Ne)throw new o("property names with quotes must have matching quotes");if(He!=="constructor"&&Te||(oe=!0),z(k,de="%"+($+="."+He)+"%"))be=k[de];else if(be!=null){if(!(He in be)){if(!ue)throw new a("base intrinsic for "+ne+" exists, but the property is not available.");return}if(g&&ge+1>=se.length){var Me=g(be,He);be=(Te=!!Me)&&"get"in Me&&!("originalValue"in Me.get)?Me.get:be[He]}else Te=z(be,He),be=be[He];Te&&!oe&&(k[de]=be)}}return be}},function(t,r,i){var o=i(22);t.exports=Function.prototype.bind||o},function(t,r,i){var o=i(3),l=i(2),a=l("%Function.prototype.apply%"),h=l("%Function.prototype.call%"),g=l("%Reflect.apply%",!0)||o.call(h,a),m=l("%Object.getOwnPropertyDescriptor%",!0),x=l("%Object.defineProperty%",!0),w=l("%Math.max%");if(x)try{x({},"a",{value:1})}catch{x=null}t.exports=function(E){var R=g(o,h,arguments);if(m&&x){var k=m(R,"length");k.configurable&&x(R,"length",{value:1+w(0,E.length-(arguments.length-1))})}return R};var _=function(){return g(o,a,arguments)};x?x(t.exports,"apply",{value:_}):t.exports.apply=_},function(t,r,i){var o=i(18),l=i(6),a=i(15),h=i(32),g="\0",m=function(x){Array.isArray(x)?this.ops=x:x!=null&&Array.isArray(x.ops)?this.ops=x.ops:this.ops=[]};m.prototype.insert=function(x,w){var _={};return x.length===0?this:(_.insert=x,w!=null&&typeof w=="object"&&Object.keys(w).length>0&&(_.attributes=w),this.push(_))},m.prototype.delete=function(x){return x<=0?this:this.push({delete:x})},m.prototype.retain=function(x,w){if(x<=0)return this;var _={retain:x};return w!=null&&typeof w=="object"&&Object.keys(w).length>0&&(_.attributes=w),this.push(_)},m.prototype.push=function(x){var w=this.ops.length,_=this.ops[w-1];if(x=a(!0,{},x),typeof _=="object"){if(typeof x.delete=="number"&&typeof _.delete=="number")return this.ops[w-1]={delete:_.delete+x.delete},this;if(typeof _.delete=="number"&&x.insert!=null&&(w-=1,typeof(_=this.ops[w-1])!="object"))return this.ops.unshift(x),this;if(l(x.attributes,_.attributes)){if(typeof x.insert=="string"&&typeof _.insert=="string")return this.ops[w-1]={insert:_.insert+x.insert},typeof x.attributes=="object"&&(this.ops[w-1].attributes=x.attributes),this;if(typeof x.retain=="number"&&typeof _.retain=="number")return this.ops[w-1]={retain:_.retain+x.retain},typeof x.attributes=="object"&&(this.ops[w-1].attributes=x.attributes),this}}return w===this.ops.length?this.ops.push(x):this.ops.splice(w,0,x),this},m.prototype.chop=function(){var x=this.ops[this.ops.length-1];return x&&x.retain&&!x.attributes&&this.ops.pop(),this},m.prototype.filter=function(x){return this.ops.filter(x)},m.prototype.forEach=function(x){this.ops.forEach(x)},m.prototype.map=function(x){return this.ops.map(x)},m.prototype.partition=function(x){var w=[],_=[];return this.forEach((function(E){(x(E)?w:_).push(E)})),[w,_]},m.prototype.reduce=function(x,w){return this.ops.reduce(x,w)},m.prototype.changeLength=function(){return this.reduce((function(x,w){return w.insert?x+h.length(w):w.delete?x-w.delete:x}),0)},m.prototype.length=function(){return this.reduce((function(x,w){return x+h.length(w)}),0)},m.prototype.slice=function(x,w){x=x||0,typeof w!="number"&&(w=1/0);for(var _=[],E=h.iterator(this.ops),R=0;R<w&&E.hasNext();){var k;R<x?k=E.next(x-R):(k=E.next(w-R),_.push(k)),R+=h.length(k)}return new m(_)},m.prototype.compose=function(x){var w=h.iterator(this.ops),_=h.iterator(x.ops),E=[],R=_.peek();if(R!=null&&typeof R.retain=="number"&&R.attributes==null){for(var k=R.retain;w.peekType()==="insert"&&w.peekLength()<=k;)k-=w.peekLength(),E.push(w.next());R.retain-k>0&&_.next(R.retain-k)}for(var O=new m(E);w.hasNext()||_.hasNext();)if(_.peekType()==="insert")O.push(_.next());else if(w.peekType()==="delete")O.push(w.next());else{var P=Math.min(w.peekLength(),_.peekLength()),z=w.next(P),H=_.next(P);if(typeof H.retain=="number"){var G={};typeof z.retain=="number"?G.retain=P:G.insert=z.insert;var N=h.attributes.compose(z.attributes,H.attributes,typeof z.retain=="number");if(N&&(G.attributes=N),O.push(G),!_.hasNext()&&l(O.ops[O.ops.length-1],G)){var J=new m(w.rest());return O.concat(J).chop()}}else typeof H.delete=="number"&&typeof z.retain=="number"&&O.push(H)}return O.chop()},m.prototype.concat=function(x){var w=new m(this.ops.slice());return x.ops.length>0&&(w.push(x.ops[0]),w.ops=w.ops.concat(x.ops.slice(1))),w},m.prototype.diff=function(x,w){if(this.ops===x.ops)return new m;var _=[this,x].map((function(P){return P.map((function(z){if(z.insert!=null)return typeof z.insert=="string"?z.insert:g;throw new Error("diff() called "+(P===x?"on":"with")+" non-document")})).join("")})),E=new m,R=o(_[0],_[1],w),k=h.iterator(this.ops),O=h.iterator(x.ops);return R.forEach((function(P){for(var z=P[1].length;z>0;){var H=0;switch(P[0]){case o.INSERT:H=Math.min(O.peekLength(),z),E.push(O.next(H));break;case o.DELETE:H=Math.min(z,k.peekLength()),k.next(H),E.delete(H);break;case o.EQUAL:H=Math.min(k.peekLength(),O.peekLength(),z);var G=k.next(H),N=O.next(H);l(G.insert,N.insert)?E.retain(H,h.attributes.diff(G.attributes,N.attributes)):E.push(N).delete(H)}z-=H}})),E.chop()},m.prototype.eachLine=function(x,w){w=w||`
|
|
337
337
|
`;for(var _=h.iterator(this.ops),E=new m,R=0;_.hasNext();){if(_.peekType()!=="insert")return;var k=_.peek(),O=h.length(k)-_.peekLength(),P=typeof k.insert=="string"?k.insert.indexOf(w,O)-O:-1;if(P<0)E.push(_.next());else if(P>0)E.push(_.next(P));else{if(x(E,_.next(1).attributes||{},R)===!1)return;R+=1,E=new m}}E.length()>0&&x(E,{},R)},m.prototype.transform=function(x,w){if(w=!!w,typeof x=="number")return this.transformPosition(x,w);for(var _=h.iterator(this.ops),E=h.iterator(x.ops),R=new m;_.hasNext()||E.hasNext();)if(_.peekType()!=="insert"||!w&&E.peekType()==="insert")if(E.peekType()==="insert")R.push(E.next());else{var k=Math.min(_.peekLength(),E.peekLength()),O=_.next(k),P=E.next(k);if(O.delete)continue;P.delete?R.push(P):R.retain(k,h.attributes.transform(O.attributes,P.attributes,w))}else R.retain(h.length(_.next()));return R.chop()},m.prototype.transformPosition=function(x,w){w=!!w;for(var _=h.iterator(this.ops),E=0;_.hasNext()&&E<=x;){var R=_.peekLength(),k=_.peekType();_.next(),k!=="delete"?(k==="insert"&&(E<x||!w)&&(x+=R),E+=R):x-=Math.min(R,x-E)}return x},t.exports=m},function(t,r,i){var o=i(7),l=i(20),a=i(24),h=i(27),g=i(28),m=i(31),x=Date.prototype.getTime;function w(R,k,O){var P=O||{};return!!(P.strict?a(R,k):R===k)||(!R||!k||typeof R!="object"&&typeof k!="object"?P.strict?a(R,k):R==k:(function(z,H,G){var N,J;if(typeof z!=typeof H||_(z)||_(H)||z.prototype!==H.prototype||l(z)!==l(H))return!1;var Y=h(z),K=h(H);if(Y!==K)return!1;if(Y||K)return z.source===H.source&&g(z)===g(H);if(m(z)&&m(H))return x.call(z)===x.call(H);var fe=E(z),X=E(H);if(fe!==X)return!1;if(fe||X){if(z.length!==H.length)return!1;for(N=0;N<z.length;N++)if(z[N]!==H[N])return!1;return!0}if(typeof z!=typeof H)return!1;try{var te=o(z),ne=o(H)}catch{return!1}if(te.length!==ne.length)return!1;for(te.sort(),ne.sort(),N=te.length-1;N>=0;N--)if(te[N]!=ne[N])return!1;for(N=te.length-1;N>=0;N--)if(J=te[N],!w(z[J],H[J],G))return!1;return!0})(R,k,P))}function _(R){return R==null}function E(R){return!(!R||typeof R!="object"||typeof R.length!="number")&&typeof R.copy=="function"&&typeof R.slice=="function"&&!(R.length>0&&typeof R[0]!="number")}t.exports=w},function(t,r,i){var o=Array.prototype.slice,l=i(8),a=Object.keys,h=a?function(m){return a(m)}:i(19),g=Object.keys;h.shim=function(){return Object.keys?(function(){var m=Object.keys(arguments);return m&&m.length===arguments.length})(1,2)||(Object.keys=function(m){return l(m)?g(o.call(m)):g(m)}):Object.keys=h,Object.keys||h},t.exports=h},function(t,r,i){var o=Object.prototype.toString;t.exports=function(l){var a=o.call(l),h=a==="[object Arguments]";return h||(h=a!=="[object Array]"&&l!==null&&typeof l=="object"&&typeof l.length=="number"&&l.length>=0&&o.call(l.callee)==="[object Function]"),h}},function(t,r,i){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},l=Symbol("test"),a=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;for(l in o[l]=42,o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var h=Object.getOwnPropertySymbols(o);if(h.length!==1||h[0]!==l||!Object.prototype.propertyIsEnumerable.call(o,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(o,l);if(g.value!==42||g.enumerable!==!0)return!1}return!0}},function(t,r,i){var o=i(2),l=i(4),a=l(o("String.prototype.indexOf"));t.exports=function(h,g){var m=o(h,!!g);return typeof m=="function"&&a(h,".prototype.")>-1?l(m):m}},function(t,r,i){var o=function(l){return l!=l};t.exports=function(l,a){return l===0&&a===0?1/l==1/a:l===a||!(!o(l)||!o(a))}},function(t,r,i){var o=i(11);t.exports=function(){return typeof Object.is=="function"?Object.is:o}},function(t,r,i){var o=i(29).functionsHaveConfigurableNames(),l=Object,a=TypeError;t.exports=function(){if(this!=null&&this!==l(this))throw new a("RegExp.prototype.flags getter called on non-object");var h="";return this.hasIndices&&(h+="d"),this.global&&(h+="g"),this.ignoreCase&&(h+="i"),this.multiline&&(h+="m"),this.dotAll&&(h+="s"),this.unicode&&(h+="u"),this.sticky&&(h+="y"),h},o&&Object.defineProperty&&Object.defineProperty(t.exports,"name",{value:"get flags"})},function(t,r,i){var o=i(13),l=i(0).supportsDescriptors,a=Object.getOwnPropertyDescriptor;t.exports=function(){if(l&&/a/gim.flags==="gim"){var h=a(RegExp.prototype,"flags");if(h&&typeof h.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var g="",m={};if(Object.defineProperty(m,"hasIndices",{get:function(){g+="d"}}),Object.defineProperty(m,"sticky",{get:function(){g+="y"}}),g==="dy")return h.get}}return o}},function(t,r,i){var o=Object.prototype.hasOwnProperty,l=Object.prototype.toString,a=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=function(_){return typeof Array.isArray=="function"?Array.isArray(_):l.call(_)==="[object Array]"},m=function(_){if(!_||l.call(_)!=="[object Object]")return!1;var E,R=o.call(_,"constructor"),k=_.constructor&&_.constructor.prototype&&o.call(_.constructor.prototype,"isPrototypeOf");if(_.constructor&&!R&&!k)return!1;for(E in _);return E===void 0||o.call(_,E)},x=function(_,E){a&&E.name==="__proto__"?a(_,E.name,{enumerable:!0,configurable:!0,value:E.newValue,writable:!0}):_[E.name]=E.newValue},w=function(_,E){if(E==="__proto__"){if(!o.call(_,E))return;if(h)return h(_,E).value}return _[E]};t.exports=function _(){var E,R,k,O,P,z,H=arguments[0],G=1,N=arguments.length,J=!1;for(typeof H=="boolean"&&(J=H,H=arguments[1]||{},G=2),(H==null||typeof H!="object"&&typeof H!="function")&&(H={});G<N;++G)if((E=arguments[G])!=null)for(R in E)k=w(H,R),H!==(O=w(E,R))&&(J&&O&&(m(O)||(P=g(O)))?(P?(P=!1,z=k&&g(k)?k:[]):z=k&&m(k)?k:{},x(H,{name:R,newValue:_(J,z,O)})):O!==void 0&&x(H,{name:R,newValue:O}));return H}},function(t,r,i){const o=typeof URL>"u"?i(33).URL:URL,l=(h,g)=>g.some(m=>m instanceof RegExp?m.test(h):m===h),a=(h,g)=>{if(g={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...g},Reflect.has(g,"normalizeHttps"))throw new Error("options.normalizeHttps is renamed to options.forceHttp");if(Reflect.has(g,"normalizeHttp"))throw new Error("options.normalizeHttp is renamed to options.forceHttps");if(Reflect.has(g,"stripFragment"))throw new Error("options.stripFragment is renamed to options.stripHash");if(h=h.trim(),/^data:/i.test(h))return((w,{stripHash:_})=>{const E=w.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!E)throw new Error("Invalid URL: "+w);const R=E[1].split(";"),k=E[2],O=_?"":E[3];let P=!1;R[R.length-1]==="base64"&&(R.pop(),P=!0);const z=(R.shift()||"").toLowerCase(),H=[...R.map(G=>{let[N,J=""]=G.split("=").map(Y=>Y.trim());return N==="charset"&&(J=J.toLowerCase(),J==="us-ascii")?"":`${N}${J?"="+J:""}`}).filter(Boolean)];return P&&H.push("base64"),(H.length!==0||z&&z!=="text/plain")&&H.unshift(z),`data:${H.join(";")},${P?k.trim():k}${O?"#"+O:""}`})(h,g);const m=h.startsWith("//");!m&&/^\.*\//.test(h)||(h=h.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,g.defaultProtocol));const x=new o(h);if(g.forceHttp&&g.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(g.forceHttp&&x.protocol==="https:"&&(x.protocol="http:"),g.forceHttps&&x.protocol==="http:"&&(x.protocol="https:"),g.stripAuthentication&&(x.username="",x.password=""),g.stripHash&&(x.hash=""),x.pathname&&(x.pathname=x.pathname.replace(/((?!:).|^)\/{2,}/g,(w,_)=>/^(?!\/)/g.test(_)?_+"/":"/")),x.pathname&&(x.pathname=decodeURI(x.pathname)),g.removeDirectoryIndex===!0&&(g.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(g.removeDirectoryIndex)&&g.removeDirectoryIndex.length>0){let w=x.pathname.split("/");const _=w[w.length-1];l(_,g.removeDirectoryIndex)&&(w=w.slice(0,w.length-1),x.pathname=w.slice(1).join("/")+"/")}if(x.hostname&&(x.hostname=x.hostname.replace(/\.$/,""),g.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(x.hostname)&&(x.hostname=x.hostname.replace(/^www\./,""))),Array.isArray(g.removeQueryParameters))for(const w of[...x.searchParams.keys()])l(w,g.removeQueryParameters)&&x.searchParams.delete(w);return g.sortQueryParameters&&x.searchParams.sort(),g.removeTrailingSlash&&(x.pathname=x.pathname.replace(/\/$/,"")),h=x.toString(),!g.removeTrailingSlash&&x.pathname!=="/"||x.hash!==""||(h=h.replace(/\/$/,"")),m&&!g.normalizeProtocol&&(h=h.replace(/^http:\/\//,"//")),g.stripProtocol&&(h=h.replace(/^(?:https?:)?\/\//,"")),h};t.exports=a,t.exports.default=a},function(t,r,i){i.r(r),i.d(r,"default",(function(){return k}));var o=i(5),l=i.n(o),a=i(16),h=i.n(a);function g(O,P){return(function(z){if(Array.isArray(z))return z})(O)||(function(z,H){var G=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(G!=null){var N,J,Y=[],K=!0,fe=!1;try{for(G=G.call(z);!(K=(N=G.next()).done)&&(Y.push(N.value),!H||Y.length!==H);K=!0);}catch(X){fe=!0,J=X}finally{try{K||G.return==null||G.return()}finally{if(fe)throw J}}return Y}})(O,P)||(function(z,H){if(z){if(typeof z=="string")return m(z,H);var G=Object.prototype.toString.call(z).slice(8,-1);if(G==="Object"&&z.constructor&&(G=z.constructor.name),G==="Map"||G==="Set")return Array.from(z);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return m(z,H)}})(O,P)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
338
338
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function m(O,P){(P==null||P>O.length)&&(P=O.length);for(var z=0,H=new Array(P);z<P;z++)H[z]=O[z];return H}function x(O,P){var z=Object.keys(O);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(O);P&&(H=H.filter((function(G){return Object.getOwnPropertyDescriptor(O,G).enumerable}))),z.push.apply(z,H)}return z}function w(O){for(var P=1;P<arguments.length;P++){var z=arguments[P]!=null?arguments[P]:{};P%2?x(Object(z),!0).forEach((function(H){_(O,H,z[H])})):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(z)):x(Object(z)).forEach((function(H){Object.defineProperty(O,H,Object.getOwnPropertyDescriptor(z,H))}))}return O}function _(O,P,z){return P in O?Object.defineProperty(O,P,{value:z,enumerable:!0,configurable:!0,writable:!0}):O[P]=z,O}function E(O,P){for(var z=0;z<P.length;z++){var H=P[z];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(O,H.key,H)}}var R={globalRegularExpression:/(https?:\/\/|www\.)[\w-\.]+\.[\w-\.]+(\/([\S]+)?)?/gi,urlRegularExpression:/(https?:\/\/|www\.)[\w-\.]+\.[\w-\.]+(\/([\S]+)?)?/gi,globalMailRegularExpression:/([\w-\.]+@[\w-\.]+\.[\w-\.]+)/gi,mailRegularExpression:/([\w-\.]+@[\w-\.]+\.[\w-\.]+)/gi,normalizeRegularExpression:/(https?:\/\/|www\.)[\S]+/i,normalizeUrlOptions:{stripWWW:!1}},k=(function(){function O(H,G){var N=this;(function(J,Y){if(!(J instanceof Y))throw new TypeError("Cannot call a class as a function")})(this,O),this.quill=H,G=G||{},this.options=w(w({},R),G),this.urlNormalizer=function(J){return N.normalize(J)},this.mailNormalizer=function(J){return"mailto:".concat(J)},this.registerTypeListener(),this.registerPasteListener(),this.registerBlurListener()}var P,z;return P=O,(z=[{key:"registerPasteListener",value:function(){var H=this;this.quill.clipboard.addMatcher("A",(function(G,N){var J,Y=G.getAttribute("href"),K=(J=N.ops[0])===null||J===void 0?void 0:J.attributes;return(K==null?void 0:K.link)!=null&&(K.link=Y),N})),this.quill.clipboard.addMatcher(Node.TEXT_NODE,(function(G,N){if(typeof G.data=="string"){var J=H.options.globalRegularExpression,Y=H.options.globalMailRegularExpression;J.lastIndex=0,Y.lastIndex=0;for(var K=new l.a,fe=0,X=J.exec(G.data),te=Y.exec(G.data),ne=function(se,$,re){var de=G.data.substring(fe,se.index);K.insert(de);var be=se[0];return K.insert(be,{link:re(be)}),fe=$.lastIndex,$.exec(G.data)};X!==null||te!==null;)if(X===null)te=ne(te,Y,H.mailNormalizer);else if(te===null)X=ne(X,J,H.urlNormalizer);else if(te.index<=X.index){for(;X!==null&&X.index<Y.lastIndex;)X=J.exec(G.data);te=ne(te,Y,H.mailNormalizer)}else{for(;te!==null&&te.index<J.lastIndex;)te=Y.exec(G.data);X=ne(X,J,H.urlNormalizer)}if(fe>0){var ue=G.data.substring(fe);K.insert(ue),N.ops=K.ops}return N}}))}},{key:"registerTypeListener",value:function(){var H=this;this.quill.on("text-change",(function(G){var N=G.ops;if(!(!N||N.length<1||N.length>2)){var J=N[N.length-1];J.insert&&typeof J.insert=="string"&&J.insert.match(/\s/)&&H.checkTextForUrl(!!J.insert.match(/ |\t/))}}))}},{key:"registerBlurListener",value:function(){var H=this;this.quill.root.addEventListener("blur",(function(){H.checkTextForUrl()}))}},{key:"checkTextForUrl",value:function(){var H=arguments.length>0&&arguments[0]!==void 0&&arguments[0],G=this.quill.getSelection();if(G){var N=this.quill.getLeaf(G.index),J=g(N,1),Y=J[0],K=this.quill.getIndex(Y);if(Y.text){var fe=G.index-K,X=Y.text.slice(0,fe);if(X&&Y.parent.domNode.localName!=="a"){var te=Y.text[fe];if(te==null||!te.match(/\S/)){var ne=H?/\s\s$/:/\s$/;if(!X.match(ne)){var ue=X.match(this.options.urlRegularExpression),se=X.match(this.options.mailRegularExpression);ue?this.handleMatches(K,X,ue,this.urlNormalizer):se&&this.handleMatches(K,X,se,this.mailNormalizer)}}}}}}},{key:"handleMatches",value:function(H,G,N,J){var Y=N.pop(),K=G.lastIndexOf(Y);G.split(Y).pop().match(/\S/)||this.updateText(H+K,Y.trim(),J)}},{key:"updateText",value:function(H,G,N){var J=new l.a().retain(H).retain(G.length,{link:N(G)});this.quill.updateContents(J)}},{key:"normalize",value:function(H){if(this.options.normalizeRegularExpression.test(H))try{return h()(H,this.options.normalizeUrlOptions)}catch(G){console.error(G)}return H}}])&&E(P.prototype,z),Object.defineProperty(P,"prototype",{writable:!1}),O})();window!=null&&window.Quill&&window.Quill.register("modules/magicUrl",k)},function(t,r){function i(m,x,w){if(m==x)return m?[[0,m]]:[];(w<0||m.length<w)&&(w=null);var _=l(m,x),E=m.substring(0,_);_=a(m=m.substring(_),x=x.substring(_));var R=m.substring(m.length-_),k=(function(O,P){var z;if(!O)return[[1,P]];if(!P)return[[-1,O]];var H=O.length>P.length?O:P,G=O.length>P.length?P:O,N=H.indexOf(G);if(N!=-1)return z=[[1,H.substring(0,N)],[0,G],[1,H.substring(N+G.length)]],O.length>P.length&&(z[0][0]=z[2][0]=-1),z;if(G.length==1)return[[-1,O],[1,P]];var J=(function(se,$){var re=se.length>$.length?se:$,de=se.length>$.length?$:se;if(re.length<4||2*de.length<re.length)return null;function be(Be,ke,Ie){for(var ze,Ke,Oe,ht,$e=Be.substring(Ie,Ie+Math.floor(Be.length/4)),it=-1,et="";(it=ke.indexOf($e,it+1))!=-1;){var st=l(Be.substring(Ie),ke.substring(it)),dt=a(Be.substring(0,Ie),ke.substring(0,it));et.length<dt+st&&(et=ke.substring(it-dt,it)+ke.substring(it,it+st),ze=Be.substring(0,Ie-dt),Ke=Be.substring(Ie+st),Oe=ke.substring(0,it-dt),ht=ke.substring(it+st))}return 2*et.length>=Be.length?[ze,Ke,Oe,ht,et]:null}var oe,Q,ge,Te,He,xe=be(re,de,Math.ceil(re.length/4)),Ne=be(re,de,Math.ceil(re.length/2));if(!xe&&!Ne)return null;oe=Ne?xe&&xe[4].length>Ne[4].length?xe:Ne:xe,se.length>$.length?(Q=oe[0],ge=oe[1],Te=oe[2],He=oe[3]):(Te=oe[0],He=oe[1],Q=oe[2],ge=oe[3]);var Me=oe[4];return[Q,ge,Te,He,Me]})(O,P);if(J){var Y=J[0],K=J[1],fe=J[2],X=J[3],te=J[4],ne=i(Y,fe),ue=i(K,X);return ne.concat([[0,te]],ue)}return(function(se,$){for(var re=se.length,de=$.length,be=Math.ceil((re+de)/2),oe=be,Q=2*be,ge=new Array(Q),Te=new Array(Q),He=0;He<Q;He++)ge[He]=-1,Te[He]=-1;ge[oe+1]=0,Te[oe+1]=0;for(var xe=re-de,Ne=xe%2!=0,Me=0,Be=0,ke=0,Ie=0,ze=0;ze<be;ze++){for(var Ke=-ze+Me;Ke<=ze-Be;Ke+=2){for(var Oe=oe+Ke,ht=(dt=Ke==-ze||Ke!=ze&&ge[Oe-1]<ge[Oe+1]?ge[Oe+1]:ge[Oe-1]+1)-Ke;dt<re&&ht<de&&se.charAt(dt)==$.charAt(ht);)dt++,ht++;if(ge[Oe]=dt,dt>re)Be+=2;else if(ht>de)Me+=2;else if(Ne&&(et=oe+xe-Ke)>=0&&et<Q&&Te[et]!=-1){var $e=re-Te[et];if(dt>=$e)return o(se,$,dt,ht)}}for(var it=-ze+ke;it<=ze-Ie;it+=2){for(var et=oe+it,st=($e=it==-ze||it!=ze&&Te[et-1]<Te[et+1]?Te[et+1]:Te[et-1]+1)-it;$e<re&&st<de&&se.charAt(re-$e-1)==$.charAt(de-st-1);)$e++,st++;if(Te[et]=$e,$e>re)Ie+=2;else if(st>de)ke+=2;else if(!Ne&&(Oe=oe+xe-it)>=0&&Oe<Q&&ge[Oe]!=-1){var dt=ge[Oe];if(ht=oe+dt-Oe,dt>=($e=re-$e))return o(se,$,dt,ht)}}}return[[-1,se],[1,$]]})(O,P)})(m=m.substring(0,m.length-_),x=x.substring(0,x.length-_));return E&&k.unshift([0,E]),R&&k.push([0,R]),(function O(P){P.push([0,""]);for(var z,H=0,G=0,N=0,J="",Y="";H<P.length;)switch(P[H][0]){case 1:N++,Y+=P[H][1],H++;break;case-1:G++,J+=P[H][1],H++;break;case 0:G+N>1?(G!==0&&N!==0&&((z=l(Y,J))!==0&&(H-G-N>0&&P[H-G-N-1][0]==0?P[H-G-N-1][1]+=Y.substring(0,z):(P.splice(0,0,[0,Y.substring(0,z)]),H++),Y=Y.substring(z),J=J.substring(z)),(z=a(Y,J))!==0&&(P[H][1]=Y.substring(Y.length-z)+P[H][1],Y=Y.substring(0,Y.length-z),J=J.substring(0,J.length-z))),G===0?P.splice(H-N,G+N,[1,Y]):N===0?P.splice(H-G,G+N,[-1,J]):P.splice(H-G-N,G+N,[-1,J],[1,Y]),H=H-G-N+(G?1:0)+(N?1:0)+1):H!==0&&P[H-1][0]==0?(P[H-1][1]+=P[H][1],P.splice(H,1)):H++,N=0,G=0,J="",Y=""}P[P.length-1][1]===""&&P.pop();var K=!1;for(H=1;H<P.length-1;)P[H-1][0]==0&&P[H+1][0]==0&&(P[H][1].substring(P[H][1].length-P[H-1][1].length)==P[H-1][1]?(P[H][1]=P[H-1][1]+P[H][1].substring(0,P[H][1].length-P[H-1][1].length),P[H+1][1]=P[H-1][1]+P[H+1][1],P.splice(H-1,1),K=!0):P[H][1].substring(0,P[H+1][1].length)==P[H+1][1]&&(P[H-1][1]+=P[H+1][1],P[H][1]=P[H][1].substring(P[H+1][1].length)+P[H+1][1],P.splice(H+1,1),K=!0)),H++;K&&O(P)})(k),w!=null&&(k=(function(O,P){var z=(function(K,fe){if(fe===0)return[0,K];for(var X=0,te=0;te<K.length;te++){var ne=K[te];if(ne[0]===-1||ne[0]===0){var ue=X+ne[1].length;if(fe===ue)return[te+1,K];if(fe<ue){K=K.slice();var se=fe-X,$=[ne[0],ne[1].slice(0,se)],re=[ne[0],ne[1].slice(se)];return K.splice(te,1,$,re),[te+1,K]}X=ue}}throw new Error("cursor_pos is out of bounds!")})(O,P),H=z[1],G=z[0],N=H[G],J=H[G+1];if(N==null||N[0]!==0)return O;if(J!=null&&N[1]+J[1]===J[1]+N[1])return H.splice(G,2,J,N),g(H,G,2);if(J!=null&&J[1].indexOf(N[1])===0){H.splice(G,2,[J[0],N[1]],[0,N[1]]);var Y=J[1].slice(N[1].length);return Y.length>0&&H.splice(G+2,0,[J[0],Y]),g(H,G,3)}return O})(k,w)),k=(function(O){for(var P=!1,z=function(J){return J.charCodeAt(0)>=56320&&J.charCodeAt(0)<=57343},H=2;H<O.length;H+=1)O[H-2][0]===0&&(G=O[H-2][1]).charCodeAt(G.length-1)>=55296&&G.charCodeAt(G.length-1)<=56319&&O[H-1][0]===-1&&z(O[H-1][1])&&O[H][0]===1&&z(O[H][1])&&(P=!0,O[H-1][1]=O[H-2][1].slice(-1)+O[H-1][1],O[H][1]=O[H-2][1].slice(-1)+O[H][1],O[H-2][1]=O[H-2][1].slice(0,-1));var G;if(!P)return O;var N=[];for(H=0;H<O.length;H+=1)O[H][1].length>0&&N.push(O[H]);return N})(k)}function o(m,x,w,_){var E=m.substring(0,w),R=x.substring(0,_),k=m.substring(w),O=x.substring(_),P=i(E,R),z=i(k,O);return P.concat(z)}function l(m,x){if(!m||!x||m.charAt(0)!=x.charAt(0))return 0;for(var w=0,_=Math.min(m.length,x.length),E=_,R=0;w<E;)m.substring(R,E)==x.substring(R,E)?R=w=E:_=E,E=Math.floor((_-w)/2+w);return E}function a(m,x){if(!m||!x||m.charAt(m.length-1)!=x.charAt(x.length-1))return 0;for(var w=0,_=Math.min(m.length,x.length),E=_,R=0;w<E;)m.substring(m.length-E,m.length-R)==x.substring(x.length-E,x.length-R)?R=w=E:_=E,E=Math.floor((_-w)/2+w);return E}var h=i;function g(m,x,w){for(var _=x+w-1;_>=0&&_>=x-1;_--)if(_+1<m.length){var E=m[_],R=m[_+1];E[0]===R[1]&&m.splice(_,2,[E[0],E[1]+R[1]])}return m}h.INSERT=1,h.DELETE=-1,h.EQUAL=0,t.exports=h},function(t,r,i){var o;if(!Object.keys){var l=Object.prototype.hasOwnProperty,a=Object.prototype.toString,h=i(8),g=Object.prototype.propertyIsEnumerable,m=!g.call({toString:null},"toString"),x=g.call((function(){}),"prototype"),w=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],_=function(k){var O=k.constructor;return O&&O.prototype===k},E={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},R=(function(){if(typeof window>"u")return!1;for(var k in window)try{if(!E["$"+k]&&l.call(window,k)&&window[k]!==null&&typeof window[k]=="object")try{_(window[k])}catch{return!0}}catch{return!0}return!1})();o=function(k){var O=k!==null&&typeof k=="object",P=a.call(k)==="[object Function]",z=h(k),H=O&&a.call(k)==="[object String]",G=[];if(!O&&!P&&!z)throw new TypeError("Object.keys called on a non-object");var N=x&&P;if(H&&k.length>0&&!l.call(k,0))for(var J=0;J<k.length;++J)G.push(String(J));if(z&&k.length>0)for(var Y=0;Y<k.length;++Y)G.push(String(Y));else for(var K in k)N&&K==="prototype"||!l.call(k,K)||G.push(String(K));if(m)for(var fe=(function(te){if(typeof window>"u"||!R)return _(te);try{return _(te)}catch{return!1}})(k),X=0;X<w.length;++X)fe&&w[X]==="constructor"||!l.call(k,w[X])||G.push(w[X]);return G}}t.exports=o},function(t,r,i){var o=i(1)(),l=i(10)("Object.prototype.toString"),a=function(m){return!(o&&m&&typeof m=="object"&&Symbol.toStringTag in m)&&l(m)==="[object Arguments]"},h=function(m){return!!a(m)||m!==null&&typeof m=="object"&&typeof m.length=="number"&&m.length>=0&&l(m)!=="[object Array]"&&l(m.callee)==="[object Function]"},g=(function(){return a(arguments)})();a.isLegacyArguments=h,t.exports=g?a:h},function(t,r,i){var o=typeof Symbol<"u"&&Symbol,l=i(9);t.exports=function(){return typeof o=="function"&&typeof Symbol=="function"&&typeof o("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&l()}},function(t,r,i){var o="Function.prototype.bind called on incompatible ",l=Array.prototype.slice,a=Object.prototype.toString;t.exports=function(h){var g=this;if(typeof g!="function"||a.call(g)!=="[object Function]")throw new TypeError(o+g);for(var m,x=l.call(arguments,1),w=function(){if(this instanceof m){var O=g.apply(this,x.concat(l.call(arguments)));return Object(O)===O?O:this}return g.apply(h,x.concat(l.call(arguments)))},_=Math.max(0,g.length-x.length),E=[],R=0;R<_;R++)E.push("$"+R);if(m=Function("binder","return function ("+E.join(",")+"){ return binder.apply(this,arguments); }")(w),g.prototype){var k=function(){};k.prototype=g.prototype,m.prototype=new k,k.prototype=null}return m}},function(t,r,i){var o=i(3);t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(t,r,i){var o=i(0),l=i(4),a=i(11),h=i(12),g=i(26),m=l(h(),Object);o(m,{getPolyfill:h,implementation:a,shim:g}),t.exports=m},function(t,r,i){var o=i(2)("%Object.defineProperty%",!0),l=function(){if(o)try{return o({},"a",{value:1}),!0}catch{return!1}return!1};l.hasArrayLengthDefineBug=function(){if(!l())return null;try{return o([],"length",{value:1}).length!==1}catch{return!0}},t.exports=l},function(t,r,i){var o=i(12),l=i(0);t.exports=function(){var a=o();return l(Object,{is:a},{is:function(){return Object.is!==a}}),a}},function(t,r,i){var o,l,a,h,g=i(10),m=i(1)();if(m){o=g("Object.prototype.hasOwnProperty"),l=g("RegExp.prototype.exec"),a={};var x=function(){throw a};h={toString:x,valueOf:x},typeof Symbol.toPrimitive=="symbol"&&(h[Symbol.toPrimitive]=x)}var w=g("Object.prototype.toString"),_=Object.getOwnPropertyDescriptor;t.exports=m?function(E){if(!E||typeof E!="object")return!1;var R=_(E,"lastIndex");if(!(R&&o(R,"value")))return!1;try{l(E,h)}catch(k){return k===a}}:function(E){return!(!E||typeof E!="object"&&typeof E!="function")&&w(E)==="[object RegExp]"}},function(t,r,i){var o=i(0),l=i(4),a=i(13),h=i(14),g=i(30),m=l(h());o(m,{getPolyfill:h,implementation:a,shim:g}),t.exports=m},function(t,r,i){var o=function(){return typeof(function(){}).name=="string"},l=Object.getOwnPropertyDescriptor;if(l)try{l([],"length")}catch{l=null}o.functionsHaveConfigurableNames=function(){if(!o()||!l)return!1;var h=l((function(){}),"name");return!!h&&!!h.configurable};var a=Function.prototype.bind;o.boundFunctionsHaveNames=function(){return o()&&typeof a=="function"&&(function(){}).bind().name!==""},t.exports=o},function(t,r,i){var o=i(0).supportsDescriptors,l=i(14),a=Object.getOwnPropertyDescriptor,h=Object.defineProperty,g=TypeError,m=Object.getPrototypeOf,x=/a/;t.exports=function(){if(!o||!m)throw new g("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var w=l(),_=m(x),E=a(_,"flags");return E&&E.get===w||h(_,"flags",{configurable:!0,enumerable:!1,get:w}),w}},function(t,r,i){var o=Date.prototype.getDay,l=Object.prototype.toString,a=i(1)();t.exports=function(h){return typeof h=="object"&&h!==null&&(a?(function(g){try{return o.call(g),!0}catch{return!1}})(h):l.call(h)==="[object Date]")}},function(t,r,i){var o=i(6),l=i(15),a={attributes:{compose:function(g,m,x){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});var w=l(!0,{},m);for(var _ in x||(w=Object.keys(w).reduce((function(E,R){return w[R]!=null&&(E[R]=w[R]),E}),{})),g)g[_]!==void 0&&m[_]===void 0&&(w[_]=g[_]);return Object.keys(w).length>0?w:void 0},diff:function(g,m){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});var x=Object.keys(g).concat(Object.keys(m)).reduce((function(w,_){return o(g[_],m[_])||(w[_]=m[_]===void 0?null:m[_]),w}),{});return Object.keys(x).length>0?x:void 0},transform:function(g,m,x){if(typeof g!="object")return m;if(typeof m=="object"){if(!x)return m;var w=Object.keys(m).reduce((function(_,E){return g[E]===void 0&&(_[E]=m[E]),_}),{});return Object.keys(w).length>0?w:void 0}}},iterator:function(g){return new h(g)},length:function(g){return typeof g.delete=="number"?g.delete:typeof g.retain=="number"?g.retain:typeof g.insert=="string"?g.insert.length:1}};function h(g){this.ops=g,this.index=0,this.offset=0}h.prototype.hasNext=function(){return this.peekLength()<1/0},h.prototype.next=function(g){g||(g=1/0);var m=this.ops[this.index];if(m){var x=this.offset,w=a.length(m);if(g>=w-x?(g=w-x,this.index+=1,this.offset=0):this.offset+=g,typeof m.delete=="number")return{delete:g};var _={};return m.attributes&&(_.attributes=m.attributes),typeof m.retain=="number"?_.retain=g:typeof m.insert=="string"?_.insert=m.insert.substr(x,g):_.insert=m.insert,_}return{retain:1/0}},h.prototype.peek=function(){return this.ops[this.index]},h.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},h.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},h.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var g=this.offset,m=this.index,x=this.next(),w=this.ops.slice(this.index);return this.offset=g,this.index=m,[x].concat(w)}return[]},t.exports=a},function(t,r,i){var o=i(34),l=i(37);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=G,r.resolve=function(N,J){return G(N,!1,!0).resolve(J)},r.resolveObject=function(N,J){return N?G(N,!1,!0).resolveObject(J):J},r.format=function(N){return l.isString(N)&&(N=G(N)),N instanceof a?N.format():a.prototype.format.call(N)},r.Url=a;var h=/^([a-z0-9.+-]+:)/i,g=/:[0-9]*$/,m=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,x=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
|
|
339
|
-
`," "]),w=["'"].concat(x),_=["%","/","?",";","#"].concat(w),E=["/","?","#"],R=/^[+a-z0-9A-Z_-]{0,63}$/,k=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,O={javascript:!0,"javascript:":!0},P={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},H=i(38);function G(N,J,Y){if(N&&l.isObject(N)&&N instanceof a)return N;var K=new a;return K.parse(N,J,Y),K}a.prototype.parse=function(N,J,Y){if(!l.isString(N))throw new TypeError("Parameter 'url' must be a string, not "+typeof N);var K=N.indexOf("?"),fe=K!==-1&&K<N.indexOf("#")?"?":"#",X=N.split(fe);X[0]=X[0].replace(/\\/g,"/");var te=N=X.join(fe);if(te=te.trim(),!Y&&N.split("#").length===1){var ne=m.exec(te);if(ne)return this.path=te,this.href=te,this.pathname=ne[1],ne[2]?(this.search=ne[2],this.query=J?H.parse(this.search.substr(1)):this.search.substr(1)):J&&(this.search="",this.query={}),this}var ue=h.exec(te);if(ue){var se=(ue=ue[0]).toLowerCase();this.protocol=se,te=te.substr(ue.length)}if(Y||ue||te.match(/^\/\/[^@\/]+@[^@\/]+/)){var $=te.substr(0,2)==="//";!$||ue&&P[ue]||(te=te.substr(2),this.slashes=!0)}if(!P[ue]&&($||ue&&!z[ue])){for(var re,de,be=-1,oe=0;oe<E.length;oe++)(Q=te.indexOf(E[oe]))!==-1&&(be===-1||Q<be)&&(be=Q);for((de=be===-1?te.lastIndexOf("@"):te.lastIndexOf("@",be))!==-1&&(re=te.slice(0,de),te=te.slice(de+1),this.auth=decodeURIComponent(re)),be=-1,oe=0;oe<_.length;oe++){var Q;(Q=te.indexOf(_[oe]))!==-1&&(be===-1||Q<be)&&(be=Q)}be===-1&&(be=te.length),this.host=te.slice(0,be),te=te.slice(be),this.parseHost(),this.hostname=this.hostname||"";var ge=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ge)for(var Te=this.hostname.split(/\./),He=(oe=0,Te.length);oe<He;oe++){var xe=Te[oe];if(xe&&!xe.match(R)){for(var Ne="",Me=0,Be=xe.length;Me<Be;Me++)xe.charCodeAt(Me)>127?Ne+="x":Ne+=xe[Me];if(!Ne.match(R)){var ke=Te.slice(0,oe),Ie=Te.slice(oe+1),ze=xe.match(k);ze&&(ke.push(ze[1]),Ie.unshift(ze[2])),Ie.length&&(te="/"+Ie.join(".")+te),this.hostname=ke.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),ge||(this.hostname=o.toASCII(this.hostname));var Ke=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+Ke,this.href+=this.host,ge&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),te[0]!=="/"&&(te="/"+te))}if(!O[se])for(oe=0,He=w.length;oe<He;oe++){var ht=w[oe];if(te.indexOf(ht)!==-1){var $e=encodeURIComponent(ht);$e===ht&&($e=escape(ht)),te=te.split(ht).join($e)}}var it=te.indexOf("#");it!==-1&&(this.hash=te.substr(it),te=te.slice(0,it));var et=te.indexOf("?");if(et!==-1?(this.search=te.substr(et),this.query=te.substr(et+1),J&&(this.query=H.parse(this.query)),te=te.slice(0,et)):J&&(this.search="",this.query={}),te&&(this.pathname=te),z[se]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Ke=this.pathname||"";var st=this.search||"";this.path=Ke+st}return this.href=this.format(),this},a.prototype.format=function(){var N=this.auth||"";N&&(N=(N=encodeURIComponent(N)).replace(/%3A/i,":"),N+="@");var J=this.protocol||"",Y=this.pathname||"",K=this.hash||"",fe=!1,X="";this.host?fe=N+this.host:this.hostname&&(fe=N+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(fe+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(X=H.stringify(this.query));var te=this.search||X&&"?"+X||"";return J&&J.substr(-1)!==":"&&(J+=":"),this.slashes||(!J||z[J])&&fe!==!1?(fe="//"+(fe||""),Y&&Y.charAt(0)!=="/"&&(Y="/"+Y)):fe||(fe=""),K&&K.charAt(0)!=="#"&&(K="#"+K),te&&te.charAt(0)!=="?"&&(te="?"+te),J+fe+(Y=Y.replace(/[?#]/g,(function(ne){return encodeURIComponent(ne)})))+(te=te.replace("#","%23"))+K},a.prototype.resolve=function(N){return this.resolveObject(G(N,!1,!0)).format()},a.prototype.resolveObject=function(N){if(l.isString(N)){var J=new a;J.parse(N,!1,!0),N=J}for(var Y=new a,K=Object.keys(this),fe=0;fe<K.length;fe++){var X=K[fe];Y[X]=this[X]}if(Y.hash=N.hash,N.href==="")return Y.href=Y.format(),Y;if(N.slashes&&!N.protocol){for(var te=Object.keys(N),ne=0;ne<te.length;ne++){var ue=te[ne];ue!=="protocol"&&(Y[ue]=N[ue])}return z[Y.protocol]&&Y.hostname&&!Y.pathname&&(Y.path=Y.pathname="/"),Y.href=Y.format(),Y}if(N.protocol&&N.protocol!==Y.protocol){if(!z[N.protocol]){for(var se=Object.keys(N),$=0;$<se.length;$++){var re=se[$];Y[re]=N[re]}return Y.href=Y.format(),Y}if(Y.protocol=N.protocol,N.host||P[N.protocol])Y.pathname=N.pathname;else{for(var de=(N.pathname||"").split("/");de.length&&!(N.host=de.shift()););N.host||(N.host=""),N.hostname||(N.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),Y.pathname=de.join("/")}if(Y.search=N.search,Y.query=N.query,Y.host=N.host||"",Y.auth=N.auth,Y.hostname=N.hostname||N.host,Y.port=N.port,Y.pathname||Y.search){var be=Y.pathname||"",oe=Y.search||"";Y.path=be+oe}return Y.slashes=Y.slashes||N.slashes,Y.href=Y.format(),Y}var Q=Y.pathname&&Y.pathname.charAt(0)==="/",ge=N.host||N.pathname&&N.pathname.charAt(0)==="/",Te=ge||Q||Y.host&&N.pathname,He=Te,xe=Y.pathname&&Y.pathname.split("/")||[],Ne=(de=N.pathname&&N.pathname.split("/")||[],Y.protocol&&!z[Y.protocol]);if(Ne&&(Y.hostname="",Y.port=null,Y.host&&(xe[0]===""?xe[0]=Y.host:xe.unshift(Y.host)),Y.host="",N.protocol&&(N.hostname=null,N.port=null,N.host&&(de[0]===""?de[0]=N.host:de.unshift(N.host)),N.host=null),Te=Te&&(de[0]===""||xe[0]==="")),ge)Y.host=N.host||N.host===""?N.host:Y.host,Y.hostname=N.hostname||N.hostname===""?N.hostname:Y.hostname,Y.search=N.search,Y.query=N.query,xe=de;else if(de.length)xe||(xe=[]),xe.pop(),xe=xe.concat(de),Y.search=N.search,Y.query=N.query;else if(!l.isNullOrUndefined(N.search))return Ne&&(Y.hostname=Y.host=xe.shift(),(ze=!!(Y.host&&Y.host.indexOf("@")>0)&&Y.host.split("@"))&&(Y.auth=ze.shift(),Y.host=Y.hostname=ze.shift())),Y.search=N.search,Y.query=N.query,l.isNull(Y.pathname)&&l.isNull(Y.search)||(Y.path=(Y.pathname?Y.pathname:"")+(Y.search?Y.search:"")),Y.href=Y.format(),Y;if(!xe.length)return Y.pathname=null,Y.search?Y.path="/"+Y.search:Y.path=null,Y.href=Y.format(),Y;for(var Me=xe.slice(-1)[0],Be=(Y.host||N.host||xe.length>1)&&(Me==="."||Me==="..")||Me==="",ke=0,Ie=xe.length;Ie>=0;Ie--)(Me=xe[Ie])==="."?xe.splice(Ie,1):Me===".."?(xe.splice(Ie,1),ke++):ke&&(xe.splice(Ie,1),ke--);if(!Te&&!He)for(;ke--;ke)xe.unshift("..");!Te||xe[0]===""||xe[0]&&xe[0].charAt(0)==="/"||xe.unshift(""),Be&&xe.join("/").substr(-1)!=="/"&&xe.push("");var ze,Ke=xe[0]===""||xe[0]&&xe[0].charAt(0)==="/";return Ne&&(Y.hostname=Y.host=Ke?"":xe.length?xe.shift():"",(ze=!!(Y.host&&Y.host.indexOf("@")>0)&&Y.host.split("@"))&&(Y.auth=ze.shift(),Y.host=Y.hostname=ze.shift())),(Te=Te||Y.host&&xe.length)&&!Ke&&xe.unshift(""),xe.length?Y.pathname=xe.join("/"):(Y.pathname=null,Y.path=null),l.isNull(Y.pathname)&&l.isNull(Y.search)||(Y.path=(Y.pathname?Y.pathname:"")+(Y.search?Y.search:"")),Y.auth=N.auth||Y.auth,Y.slashes=Y.slashes||N.slashes,Y.href=Y.format(),Y},a.prototype.parseHost=function(){var N=this.host,J=g.exec(N);J&&((J=J[0])!==":"&&(this.port=J.substr(1)),N=N.substr(0,N.length-J.length)),N&&(this.hostname=N)}},function(t,r,i){(function(o,l){var a;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(h){r&&r.nodeType,o&&o.nodeType;var g=typeof l=="object"&&l;g.global!==g&&g.window!==g&&g.self;var m,x=2147483647,w=/^xn--/,_=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=Math.floor,O=String.fromCharCode;function P(X){throw new RangeError(R[X])}function z(X,te){for(var ne=X.length,ue=[];ne--;)ue[ne]=te(X[ne]);return ue}function H(X,te){var ne=X.split("@"),ue="";return ne.length>1&&(ue=ne[0]+"@",X=ne[1]),ue+z((X=X.replace(E,".")).split("."),te).join(".")}function G(X){for(var te,ne,ue=[],se=0,$=X.length;se<$;)(te=X.charCodeAt(se++))>=55296&&te<=56319&&se<$?(64512&(ne=X.charCodeAt(se++)))==56320?ue.push(((1023&te)<<10)+(1023&ne)+65536):(ue.push(te),se--):ue.push(te);return ue}function N(X){return z(X,(function(te){var ne="";return te>65535&&(ne+=O((te-=65536)>>>10&1023|55296),te=56320|1023&te),ne+=O(te)})).join("")}function J(X,te){return X+22+75*(X<26)-((te!=0)<<5)}function Y(X,te,ne){var ue=0;for(X=ne?k(X/700):X>>1,X+=k(X/te);X>455;ue+=36)X=k(X/35);return k(ue+36*X/(X+38))}function K(X){var te,ne,ue,se,$,re,de,be,oe,Q,ge,Te=[],He=X.length,xe=0,Ne=128,Me=72;for((ne=X.lastIndexOf("-"))<0&&(ne=0),ue=0;ue<ne;++ue)X.charCodeAt(ue)>=128&&P("not-basic"),Te.push(X.charCodeAt(ue));for(se=ne>0?ne+1:0;se<He;){for($=xe,re=1,de=36;se>=He&&P("invalid-input"),((be=(ge=X.charCodeAt(se++))-48<10?ge-22:ge-65<26?ge-65:ge-97<26?ge-97:36)>=36||be>k((x-xe)/re))&&P("overflow"),xe+=be*re,!(be<(oe=de<=Me?1:de>=Me+26?26:de-Me));de+=36)re>k(x/(Q=36-oe))&&P("overflow"),re*=Q;Me=Y(xe-$,te=Te.length+1,$==0),k(xe/te)>x-Ne&&P("overflow"),Ne+=k(xe/te),xe%=te,Te.splice(xe++,0,Ne)}return N(Te)}function fe(X){var te,ne,ue,se,$,re,de,be,oe,Q,ge,Te,He,xe,Ne,Me=[];for(Te=(X=G(X)).length,te=128,ne=0,$=72,re=0;re<Te;++re)(ge=X[re])<128&&Me.push(O(ge));for(ue=se=Me.length,se&&Me.push("-");ue<Te;){for(de=x,re=0;re<Te;++re)(ge=X[re])>=te&&ge<de&&(de=ge);for(de-te>k((x-ne)/(He=ue+1))&&P("overflow"),ne+=(de-te)*He,te=de,re=0;re<Te;++re)if((ge=X[re])<te&&++ne>x&&P("overflow"),ge==te){for(be=ne,oe=36;!(be<(Q=oe<=$?1:oe>=$+26?26:oe-$));oe+=36)Ne=be-Q,xe=36-Q,Me.push(O(J(Q+Ne%xe,0))),be=k(Ne/xe);Me.push(O(J(be,0))),$=Y(ne,He,ue==se),ne=0,++ue}++ne,++te}return Me.join("")}m={version:"1.4.1",ucs2:{decode:G,encode:N},decode:K,encode:fe,toASCII:function(X){return H(X,(function(te){return _.test(te)?"xn--"+fe(te):te}))},toUnicode:function(X){return H(X,(function(te){return w.test(te)?K(te.slice(4).toLowerCase()):te}))}},(a=(function(){return m}).call(r,i,r,o))===void 0||(o.exports=a)})()}).call(this,i(35)(t),i(36))},function(t,r){t.exports=function(i){return i.webpackPolyfill||(i.deprecate=function(){},i.paths=[],i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),i.webpackPolyfill=1),i}},function(t,r){var i;i=(function(){return this})();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}t.exports=i},function(t,r,i){t.exports={isString:function(o){return typeof o=="string"},isObject:function(o){return typeof o=="object"&&o!==null},isNull:function(o){return o===null},isNullOrUndefined:function(o){return o==null}}},function(t,r,i){r.decode=r.parse=i(39),r.encode=r.stringify=i(40)},function(t,r,i){function o(a,h){return Object.prototype.hasOwnProperty.call(a,h)}t.exports=function(a,h,g,m){h=h||"&",g=g||"=";var x={};if(typeof a!="string"||a.length===0)return x;var w=/\+/g;a=a.split(h);var _=1e3;m&&typeof m.maxKeys=="number"&&(_=m.maxKeys);var E=a.length;_>0&&E>_&&(E=_);for(var R=0;R<E;++R){var k,O,P,z,H=a[R].replace(w,"%20"),G=H.indexOf(g);G>=0?(k=H.substr(0,G),O=H.substr(G+1)):(k=H,O=""),P=decodeURIComponent(k),z=decodeURIComponent(O),o(x,P)?l(x[P])?x[P].push(z):x[P]=[x[P],z]:x[P]=z}return x};var l=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(t,r,i){var o=function(g){switch(typeof g){case"string":return g;case"boolean":return g?"true":"false";case"number":return isFinite(g)?g:"";default:return""}};t.exports=function(g,m,x,w){return m=m||"&",x=x||"=",g===null&&(g=void 0),typeof g=="object"?a(h(g),(function(_){var E=encodeURIComponent(o(_))+x;return l(g[_])?a(g[_],(function(R){return E+encodeURIComponent(o(R))})).join(m):E+encodeURIComponent(o(g[_]))})).join(m):w?encodeURIComponent(o(w))+x+encodeURIComponent(o(g)):""};var l=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"};function a(g,m){if(g.map)return g.map(m);for(var x=[],w=0;w<g.length;w++)x.push(m(g[w],w));return x}var h=Object.keys||function(g){var m=[];for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&m.push(x);return m}}])}))})(Ib)),Ib.exports}var lF=oF();const sF=L1(lF),qe={container:"table-up-container",tableCaption:"table-up-caption",tableWrapper:"table-up",tableMain:"table-up-main",tableColgroup:"table-up-colgroup",tableCol:"table-up-col",tableBody:"table-up-body",tableRow:"table-up-row",tableCell:"table-up-cell",tableCellInner:"table-up-cell-inner"},Ss={colMinWidthPre:5,colMinWidthPx:40,colDefaultWidth:100,rowMinHeightPx:36},av={AFTER_TABLE_RESIZE:"after-table-resize"},kb={moduleName:"table-up"},aF=[["rgb(255, 255, 255)","rgb(0, 0, 0)","rgb(72, 83, 104)","rgb(41, 114, 244)","rgb(0, 163, 245)","rgb(49, 155, 98)","rgb(222, 60, 54)","rgb(248, 136, 37)","rgb(245, 196, 0)","rgb(153, 56, 215)"],["rgb(242, 242, 242)","rgb(127, 127, 127)","rgb(243, 245, 247)","rgb(229, 239, 255)","rgb(229, 246, 255)","rgb(234, 250, 241)","rgb(254, 233, 232)","rgb(254, 243, 235)","rgb(254, 249, 227)","rgb(253, 235, 255)"],["rgb(216, 216, 216)","rgb(89, 89, 89)","rgb(197, 202, 211)","rgb(199, 220, 255)","rgb(199, 236, 255)","rgb(195, 234, 213)","rgb(255, 201, 199)","rgb(255, 220, 196)","rgb(255, 238, 173)","rgb(242, 199, 255)"],["rgb(191, 191, 191)","rgb(63, 63, 63)","rgb(128, 139, 158)","rgb(153, 190, 255)","rgb(153, 221, 255)","rgb(152, 215, 182)","rgb(255, 156, 153)","rgb(255, 186, 132)","rgb(255, 226, 112)","rgb(213, 142, 255)"],["rgb(165, 165, 165)","rgb(38, 38, 38)","rgb(53, 59, 69)","rgb(20, 80, 184)","rgb(18, 116, 165)","rgb(39, 124, 79)","rgb(158, 30, 26)","rgb(184, 96, 20)","rgb(163, 130, 0)","rgb(94, 34, 129)"],["rgb(147, 147, 147)","rgb(13, 13, 13)","rgb(36, 39, 46)","rgb(12, 48, 110)","rgb(10, 65, 92)","rgb(24, 78, 50)","rgb(88, 17, 14)","rgb(92, 48, 10)","rgb(102, 82, 0)","rgb(59, 21, 81)"]],cF="table-up",uF=new Set([qe.tableCellInner]),fF=n=>uF.has(n.statics.blotName);function l_(n){return n&&n.parent?fF(n.parent)?!0:l_(n.parent):!1}function cu(n,e=cF){let t=e?`${e}-`:"";return{b:()=>`${t}${n}`,be:r=>r?`${t}${n}__${r}`:"",bm:r=>r?`${t}${n}--${r}`:"",bem:(r,i)=>r&&i?`${t}${n}__${r}--${i}`:"",ns:r=>r?`${t}${r}`:"",bs:r=>r?`${t}${n}-${r}`:"",cv:r=>r?`--${t}${r}`:"",is:r=>`is-${r}`}}function Kl(n,e){let t=n.parent;for(;t&&t.statics.blotName!==e&&t!==n.scroll;)t=t.parent;if(t===n.scroll)throw Error(`${n.statics.blotName} must be a child of ${e}`);return t}function A1(n,e){let t=Array(e.length),r=new Map(e.map((o,l)=>[o,l])),i=n.parent;for(;i&&i!==n.scroll&&r.size!==0;){if(r.has(i.statics.blotName)){let o=r.get(i.statics.blotName);t[o]=i,r.delete(i.statics.blotName)}i=i.parent}if(r.size>0)throw Error(`${n.statics.blotName} must be a child of ${Array.from(r.keys()).join(", ")}`);return t}function gw(n){let e=new Map,t=n;for(;t&&t.statics.blotName!=="scroll";)e.set(t.statics.blotName,t),t=t.parent;return e}function hF(n,e){let t=[],r=n.children.iterator(),i=null;for(;i=r();)i instanceof e&&t.push(i);return t}function dF(n,e,t){for(let r of Object.getOwnPropertyNames(e))t&&t.test(r)||Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r));return n}function gF(n,e){let t=class extends n{constructor(...r){super(...r)}};for(let r of e)dF(t.prototype,r.prototype,/^constructor$/);return t}function I0(n,e){return n.prototype instanceof e}function b1(n,e){return n=Math.min(e,Math.max(0,Number.parseFloat(`${n}`))),Math.abs(n-e)<1e-6?1:n%e/Number.parseFloat(e)}function pw(n){return{h:Math.min(360,Math.max(0,n.h)),s:Math.min(100,Math.max(0,n.s)),b:Math.min(100,Math.max(0,n.b)),a:Math.min(1,Math.max(0,n.a))}}function pF(n){n=n.startsWith("#")?n.slice(1):n;let e=Number.parseInt(n.slice(0,2),16),t=Number.parseInt(n.slice(2,4),16),r=Number.parseInt(n.slice(4,6),16),i=Number((Number.parseInt(n.slice(6,8)||"ff",16)/255).toFixed(2));return{r:e,g:t,b:r,a:i}}function vw(n){let{r:e,g:t,b:r,a:i}=n;e=b1(e,255),t=b1(t,255),r=b1(r,255);let o=Math.max(e,t,r),l=Math.min(e,t,r),a,h=o,g=o-l,m=o===0?0:g/o;if(o===l)a=0;else{switch(o){case e:a=(t-r)/g+(t<r?6:0);break;case t:a=(r-e)/g+2;break;case r:a=(e-t)/g+4;break}a/=6}return{h:a*360,s:m*100,b:h*100,a:i}}function K0(n){let{h:e,s:t,b:r,a:i}=n;e=b1(e,360)*6,t=b1(t,100),r=b1(r,100);let o=Math.floor(e),l=e-o,a=r*(1-t),h=r*(1-l*t),g=r*(1-(1-l)*t),m=o%6,x=[r,h,a,a,g,r][m],w=[g,r,r,h,a,a][m],_=[a,a,g,r,r,h][m];return{r:Math.round(x*255),g:Math.round(w*255),b:Math.round(_*255),a:i}}function s_(n){let e=[n.r.toString(16),n.g.toString(16),n.b.toString(16),Math.round(n.a*255).toString(16)];for(let t in e)e[t].length===1&&(e[t]=`0${e[t]}`);return e.join("")}const bw=n=>s_(K0(n)),nm=n=>typeof n=="function",a_=Array.isArray,Lg=n=>typeof n=="string",vF=n=>typeof n=="number",k0=n=>typeof n=="object"&&!!n,bF=n=>!Number.isNaN(n)&&Number(n)>0,yF=n=>a_(n)?n:[n];function cv(n){let{type:e="default",content:t}=n||{},r=cu("button"),i=document.createElement("button");return i.classList.add(r.b(),e),t&&(Lg(t)?i.textContent=t:i.appendChild(t)),i}function mF(n={}){let e=230,t=150,r=10,i=vw(pF(n.color||"#ff0000")),o=cu("color-picker"),l=document.createElement("div");l.classList.add(o.b());let a=document.createElement("div");a.classList.add(o.be("content"));let h=document.createElement("div");h.classList.add(o.be("selector"));let g=document.createElement("div");g.classList.add(o.be("background")),h.appendChild(g);let m=document.createElement("div");m.classList.add(o.be("background-handle")),g.appendChild(m);let x=document.createElement("div");x.classList.add(o.be("alpha"));let w=document.createElement("div");w.classList.add(o.be("alpha-bg"));let _=document.createElement("div");_.classList.add(o.be("alpha-handle")),x.appendChild(w),x.appendChild(_);let E=document.createElement("div");E.classList.add(o.be("hue"));let R=document.createElement("div");R.classList.add(o.be("hue-handle")),E.appendChild(R);let k=document.createElement("div");k.classList.add(o.be("action"));let[O,P,z,H]=["r","g","b","a"].map(Ne=>{let Me=document.createElement("div");Me.classList.add(o.be("action-item"),Ne);let Be=document.createElement("label");Be.textContent=Ne.toUpperCase();let ke=document.createElement("input");return ke.classList.add(o.be("input")),ke.addEventListener("input",()=>{ke.value=ke.value.replaceAll(/[^0-9]/g,"")}),ke.addEventListener("change",()=>{let Ie=Math.round(Number(ke.value));Ne==="a"&&(Ie/=100);let ze=pw(vw(Object.assign({},K0(i),{[Ne]:Ie})));se(ze),ue()}),Me.appendChild(Be),Me.appendChild(ke),k.appendChild(Me),ke});a.appendChild(E),a.appendChild(h),a.appendChild(x),l.appendChild(a),l.appendChild(k);let G=!1,N=!1,J=!1;function Y(){let Ne=bw(i);for(let[Me,Be]of[O,P,z].entries())Be.value=String(Number.parseInt(Ne[Me*2]+Ne[Me*2+1],16));H.value=String((i.a*100).toFixed(0))}function K(){Object.assign(m.style,{left:`${Math.floor(e*i.s/100)}px`,top:`${Math.floor(t*(100-i.b)/100)}px`})}function fe(){h.style.backgroundColor=`#${s_(K0({h:i.h,s:100,b:100,a:1}))}`}function X(){R.style.top=`${Math.floor(t-t*i.h/360)}px`}function te(){_.style.left=`${i.a*100}%`}function ne(){let{r:Ne,g:Me,b:Be}=K0(i);w.style.background=`linear-gradient(to right, rgba(${Ne}, ${Me}, ${Be}, 0) 0%, rgba(${Ne}, ${Me}, ${Be}, 1) 100%)`}function ue(){K(),fe(),X(),te(),ne(),Y()}function se(Ne){i=pw(Object.assign({},i,Ne)),Y(),n.onChange&&n.onChange(`#${bw(i)}`)}function $(Ne){let Me=h.getBoundingClientRect(),Be=Me.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),ke=Me.left+document.body.scrollLeft,Ie=Math.floor(100*Math.max(0,Math.min(e,Ne.pageX-ke))/e),ze=Math.floor(100*(t-Math.max(0,Math.min(t,Ne.pageY-Be)))/t);se({s:Ie,b:ze}),ue()}function re(Ne){let Me=E.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);se({h:Math.floor(360*(t-Math.max(0,Math.min(t,Ne.pageY-Me)))/t)}),ue()}function de(Ne){let{pageX:Me}=Ne,Be=x.getBoundingClientRect(),ke=Me-Be.left;ke=Math.max(r/2,ke),ke=Math.min(ke,Be.width-r/2),se({a:Math.round((ke-10/2)/(Be.width-10)*100)/100}),ue()}function be(Ne){G&&(Ne.preventDefault(),$(Ne)),N&&(Ne.preventDefault(),re(Ne)),J&&(Ne.preventDefault(),de(Ne))}function oe(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",oe),G=!1}function Q(Ne){document.addEventListener("mousemove",be),document.addEventListener("mouseup",oe),G=!0,$(Ne)}h.addEventListener("mousedown",Q);function ge(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",ge),N=!1}function Te(Ne){document.addEventListener("mousemove",be),document.addEventListener("mouseup",ge),N=!0,re(Ne)}E.addEventListener("mousedown",Te);function He(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",He),J=!1}function xe(Ne){document.addEventListener("mousemove",be),document.addEventListener("mouseup",He),J=!0,de(Ne)}return x.addEventListener("mousedown",xe),ue(),l}let yw=8e3;function c_({child:n,target:e=document.body,beforeClose:t=()=>{}}={}){let r=cu("dialog"),i=e,o=document.createElement("div");o.classList.add(r.b()),o.style.zIndex=String(yw);let l=document.createElement("div");if(l.classList.add(r.be("overlay")),o.appendChild(l),n){let g=document.createElement("div");g.classList.add(r.be("content")),g.appendChild(n),l.appendChild(g),g.addEventListener("click",m=>{m.stopPropagation()})}let a=getComputedStyle(i).overflow;i.style.overflow="hidden",i.appendChild(o);let h=()=>{t(),o.remove(),i.style.overflow=a};return o.addEventListener("click",h),yw+=1,{dialog:o,close:h}}function mw(n,e){let t=cu("input");e.type||(e.type="text"),e.value||(e.value="");let r=document.createElement("div");if(r.classList.add(t.be("item")),n){let a=document.createElement("span");a.classList.add(t.be("label")),a.textContent=n,r.appendChild(a)}let i=document.createElement("div");i.classList.add(t.be("input"));let o=document.createElement("input");for(let a in e)o.setAttribute(a,e[a]);return(e.max||e.min)&&o.addEventListener("blur",()=>{e.max&&e.max<=Number(o.value)&&(o.value=String(e.max)),e.min&&e.min>=Number(o.value)&&(o.value=String(e.min))}),i.appendChild(o),r.appendChild(i),o.addEventListener("focus",()=>{i.classList.add("focus")}),o.addEventListener("blur",()=>{i.classList.remove("focus")}),{item:r,input:o,errorTip:a=>{let h;return i.classList.contains("error")?h=i.querySelector(`.${t.be("error-tip")}`):(h=document.createElement("span"),h.classList.add(t.be("error-tip")),i.appendChild(h)),h.textContent=a,i.classList.add("error"),{removeError:()=>{i.classList.remove("error"),h.remove()}}}}}async function xF(n={}){let e=cu("creator"),t=document.createElement("div");t.classList.add(e.b());let r=document.createElement("div");r.classList.add(e.be("input"));let{item:i,input:o,errorTip:l}=mw(n.rowText||"Row",{type:"number",value:String(n.row||""),max:99}),{item:a,input:h,errorTip:g}=mw(n.colText||"Column",{type:"number",value:String(n.col||""),max:99});r.appendChild(i),r.appendChild(a),t.appendChild(r);let m=document.createElement("div");m.classList.add(e.be("control"));let x=cv({type:"confirm",content:n.confirmText||"Confirm"}),w=cv({type:"default",content:n.cancelText||"Cancel"});m.appendChild(x),m.appendChild(w),t.appendChild(m);let _=(R=Number(o.value),k=Number(h.value))=>{if(Number.isNaN(R)||R<=0){l(n.notPositiveNumberError||"Please enter a positive integer");return}if(Number.isNaN(k)||k<=0){g(n.notPositiveNumberError||"Please enter a positive integer");return}return{row:R,col:k}},E=R=>{R.key==="Escape"&&(close(),document.removeEventListener("keydown",E))};return new Promise((R,k)=>{let{close:O}=c_({child:t,beforeClose:k});o.focus();for(let P of[o,h])P.addEventListener("keydown",z=>{if(z.key==="Enter"){let H=_();H&&(R(H),O())}});x.addEventListener("click",async()=>{let P=_();P&&(R(P),O())}),document.addEventListener("keydown",E),w.addEventListener("click",O)})}function wF(n={}){let e=cu("select-box"),t=document.createElement("div");t.classList.add(e.b());let r=document.createElement("div");r.classList.add(e.be("block"));for(let o=0;o<(n.row||8);o++)for(let l=0;l<(n.col||8);l++){let a=document.createElement("div");a.classList.add(e.be("item")),a.dataset.row=String(o+1),a.dataset.col=String(l+1),r.appendChild(a)}let i=()=>{let{row:o,col:l}=t.dataset;for(let h of Array.from(r.querySelectorAll(".active")))h.classList.remove("active");if(!o||!l)return;let a=Array.from(r.children);for(let h=0;h<a.length;h++){let{row:g,col:m}=a[h].dataset;if(g>o&&m>l)return;g<=o&&m<=l?a[h].classList.add("active"):a[h].classList.remove("active")}};if(r.addEventListener("mousemove",o=>{if(!o.target)return;let{row:l,col:a}=o.target.dataset;!l||!a||(t.dataset.row=l,t.dataset.col=a,i())}),r.addEventListener("mouseleave",()=>{t.removeAttribute("data-row"),t.removeAttribute("data-col"),i()}),r.addEventListener("click",()=>{let{row:o,col:l}=t.dataset;!o||!l||n.onSelect&&n.onSelect(Number(o),Number(l))}),t.appendChild(r),n.customBtn){let o=n.texts||{},l=document.createElement("div");l.classList.add(e.be("custom")),l.textContent=o.customBtnText||"Custom",l.addEventListener("click",async()=>{let a=await xF(o);a&&n.onSelect&&n.onSelect(a.row,a.col)}),t.appendChild(l)}return t}const uv=Math.min,Og=Math.max,fv=Math.round,M0=Math.floor,td=n=>({x:n,y:n}),CF={left:"right",right:"left",bottom:"top",top:"bottom"},_F={start:"end",end:"start"};function xw(n,e,t){return Og(n,uv(e,t))}function R1(n,e){return typeof n=="function"?n(e):n}function cg(n){return n.split("-")[0]}function Dv(n){return n.split("-")[1]}function Zm(n){return n==="x"?"y":"x"}function u_(n){return n==="y"?"height":"width"}function Ed(n){return["top","bottom"].includes(cg(n))?"y":"x"}function f_(n){return Zm(Ed(n))}function SF(n,e,t){t===void 0&&(t=!1);let r=Dv(n),i=f_(n),o=u_(i),l=i==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=hv(l)),[l,hv(l)]}function EF(n){let e=hv(n);return[rm(n),e,rm(e)]}function rm(n){return n.replace(/start|end/g,e=>_F[e])}function TF(n,e,t){let r=["left","right"],i=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(n){case"top":case"bottom":return t?e?i:r:e?r:i;case"left":case"right":return e?o:l;default:return[]}}function AF(n,e,t,r){let i=Dv(n),o=TF(cg(n),t==="start",r);return i&&(o=o.map(l=>l+"-"+i),e&&(o=o.concat(o.map(rm)))),o}function hv(n){return n.replace(/left|right|bottom|top/g,e=>CF[e])}function RF(n){return{top:0,right:0,bottom:0,left:0,...n}}function IF(n){return typeof n=="number"?{top:n,right:n,bottom:n,left:n}:RF(n)}function dv(n){let{x:e,y:t,width:r,height:i}=n;return{width:r,height:i,top:t,left:e,right:e+r,bottom:t+i,x:e,y:t}}function ww(n,e,t){let{reference:r,floating:i}=n,o=Ed(e),l=f_(e),a=u_(l),h=cg(e),g=o==="y",m=r.x+r.width/2-i.width/2,x=r.y+r.height/2-i.height/2,w=r[a]/2-i[a]/2,_;switch(h){case"top":_={x:m,y:r.y-i.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:x};break;case"left":_={x:r.x-i.width,y:x};break;default:_={x:r.x,y:r.y}}switch(Dv(e)){case"start":_[l]-=w*(t&&g?-1:1);break;case"end":_[l]+=w*(t&&g?-1:1);break}return _}const kF=async(n,e,t)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=t,a=o.filter(Boolean),h=await(l.isRTL==null?void 0:l.isRTL(e)),g=await l.getElementRects({reference:n,floating:e,strategy:i}),{x:m,y:x}=ww(g,r,h),w=r,_={},E=0;for(let R=0;R<a.length;R++){let{name:k,fn:O}=a[R],{x:P,y:z,data:H,reset:G}=await O({x:m,y:x,initialPlacement:r,placement:w,strategy:i,middlewareData:_,rects:g,platform:l,elements:{reference:n,floating:e}});m=P??m,x=z??x,_={..._,[k]:{..._[k],...H}},G&&E<=50&&(E++,typeof G=="object"&&(G.placement&&(w=G.placement),G.rects&&(g=G.rects===!0?await l.getElementRects({reference:n,floating:e,strategy:i}):G.rects),{x:m,y:x}=ww(g,w,h)),R=-1)}return{x:m,y:x,placement:w,strategy:i,middlewareData:_}};async function h_(n,e){e===void 0&&(e={});let{x:t,y:r,platform:i,rects:o,elements:l,strategy:a}=n,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:x=!1,padding:w=0}=R1(e,n),_=IF(w),E=m==="floating"?"reference":"floating",R=l[x?E:m],k=dv(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(R))??!0?R:R.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:h,rootBoundary:g,strategy:a})),O=m==="floating"?{x:t,y:r,width:o.floating.width,height:o.floating.height}:o.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),z=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},H=dv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:P,strategy:a}):O);return{top:(k.top-H.top+_.top)/z.y,bottom:(H.bottom-k.bottom+_.bottom)/z.y,left:(k.left-H.left+_.left)/z.x,right:(H.right-k.right+_.right)/z.x}}const MF=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var fe,X,te,ne;var t;let{placement:r,middlewareData:i,rects:o,initialPlacement:l,platform:a,elements:h}=e,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:E=!0,...R}=R1(n,e);if((t=i.arrow)!=null&&t.alignmentOffset)return{};let k=cg(r),O=Ed(l),P=cg(l)===l,z=await(a.isRTL==null?void 0:a.isRTL(h.floating)),H=x||(P||!E?[hv(l)]:EF(l)),G=_!=="none";!x&&G&&H.push(...AF(l,E,_,z));let N=[l,...H],J=await h_(e,R),Y=[],K=((fe=i.flip)==null?void 0:fe.overflows)||[];if(g&&Y.push(J[k]),m){let ue=SF(r,o,z);Y.push(J[ue[0]],J[ue[1]])}if(K=[...K,{placement:r,overflows:Y}],!Y.every(ue=>ue<=0)){let ue=(((X=i.flip)==null?void 0:X.index)||0)+1,se=N[ue];if(se&&(!(m==="alignment"?O!==Ed(se):!1)||K.every(de=>de.overflows[0]>0&&Ed(de.placement)===O)))return{data:{index:ue,overflows:K},reset:{placement:se}};let $=(te=K.filter(re=>re.overflows[0]<=0).sort((re,de)=>re.overflows[1]-de.overflows[1])[0])==null?void 0:te.placement;if(!$)switch(w){case"bestFit":{let re=(ne=K.filter(de=>{if(G){let be=Ed(de.placement);return be===O||be==="y"}return!0}).map(de=>[de.placement,de.overflows.filter(be=>be>0).reduce((be,oe)=>be+oe,0)]).sort((de,be)=>de[1]-be[1])[0])==null?void 0:ne[0];re&&($=re);break}case"initialPlacement":$=l;break}if(r!==$)return{reset:{placement:$}}}return{}}}};async function LF(n,e){let{placement:t,platform:r,elements:i}=n,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=cg(t),a=Dv(t),h=Ed(t)==="y",g=["left","top"].includes(l)?-1:1,m=o&&h?-1:1,x=R1(e,n),{mainAxis:w,crossAxis:_,alignmentAxis:E}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return a&&typeof E=="number"&&(_=a==="end"?E*-1:E),h?{x:_*m,y:w*g}:{x:w*g,y:_*m}}const OF=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var h;var t;let{x:r,y:i,placement:o,middlewareData:l}=e,a=await LF(e,n);return o===((h=l.offset)==null?void 0:h.placement)&&(t=l.arrow)!=null&&t.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:o}}}}},PF=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:k=>{let{x:O,y:P}=k;return{x:O,y:P}}},...h}=R1(n,e),g={x:t,y:r},m=await h_(e,h),x=Ed(cg(i)),w=Zm(x),_=g[w],E=g[x];if(o){let k=w==="y"?"top":"left",O=w==="y"?"bottom":"right",P=_+m[k],z=_-m[O];_=xw(P,_,z)}if(l){let k=x==="y"?"top":"left",O=x==="y"?"bottom":"right",P=E+m[k],z=E-m[O];E=xw(P,E,z)}let R=a.fn({...e,[w]:_,[x]:E});return{...R,data:{x:R.x-t,y:R.y-r,enabled:{[w]:o,[x]:l}}}}}},DF=function(n){return n===void 0&&(n={}),{options:n,fn(e){var O,P;let{x:t,y:r,placement:i,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:h=!0,crossAxis:g=!0}=R1(n,e),m={x:t,y:r},x=Ed(i),w=Zm(x),_=m[w],E=m[x],R=R1(a,e),k=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(h){let z=w==="y"?"height":"width",H=o.reference[w]-o.floating[z]+k.mainAxis,G=o.reference[w]+o.reference[z]-k.mainAxis;_<H?_=H:_>G&&(_=G)}if(g){let z=w==="y"?"width":"height",H=["top","left"].includes(cg(i)),G=o.reference[x]-o.floating[z]+(H&&((O=l.offset)==null?void 0:O[x])||0)+(H?0:k.crossAxis),N=o.reference[x]+o.reference[z]+(H?0:((P=l.offset)==null?void 0:P[x])||0)-(H?k.crossAxis:0);E<G?E=G:E>N&&(E=N)}return{[w]:_,[x]:E}}}};function Nv(){return typeof window<"u"}function D1(n){return d_(n)?(n.nodeName||"").toLowerCase():"#document"}function Bf(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function ad(n){var e;return(e=(d_(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function d_(n){return Nv()?n instanceof Node||n instanceof Bf(n).Node:!1}function Nh(n){return Nv()?n instanceof Element||n instanceof Bf(n).Element:!1}function od(n){return Nv()?n instanceof HTMLElement||n instanceof Bf(n).HTMLElement:!1}function Cw(n){return!Nv()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Bf(n).ShadowRoot}function Zp(n){let{overflow:e,overflowX:t,overflowY:r,display:i}=Fh(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(i)}function NF(n){return["table","td","th"].includes(D1(n))}function Fv(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function Xm(n){let e=Km(),t=Nh(n)?Fh(n):n;return["transform","translate","scale","rotate","perspective"].some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(t.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(t.contain||"").includes(r))}function FF(n){let e=ug(n);for(;od(e)&&!I1(e);){if(Xm(e))return e;if(Fv(e))return null;e=ug(e)}return null}function Km(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function I1(n){return["html","body","#document"].includes(D1(n))}function Fh(n){return Bf(n).getComputedStyle(n)}function Bv(n){return Nh(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function ug(n){if(D1(n)==="html")return n;let e=n.assignedSlot||n.parentNode||Cw(n)&&n.host||ad(n);return Cw(e)?e.host:e}function g_(n){let e=ug(n);return I1(e)?n.ownerDocument?n.ownerDocument.body:n.body:od(e)&&Zp(e)?e:g_(e)}function Dp(n,e,t){var l;e===void 0&&(e=[]),t===void 0&&(t=!0);let r=g_(n),i=r===((l=n.ownerDocument)==null?void 0:l.body),o=Bf(r);if(i){let a=im(o);return e.concat(o,o.visualViewport||[],Zp(r)?r:[],a&&t?Dp(a):[])}return e.concat(r,Dp(r,[],t))}function im(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function p_(n){let e=Fh(n),t=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=od(n),o=i?n.offsetWidth:t,l=i?n.offsetHeight:r,a=fv(t)!==o||fv(r)!==l;return a&&(t=o,r=l),{width:t,height:r,$:a}}function Jm(n){return Nh(n)?n:n.contextElement}function y1(n){let e=Jm(n);if(!od(e))return td(1);let t=e.getBoundingClientRect(),{width:r,height:i,$:o}=p_(e),l=(o?fv(t.width):t.width)/r,a=(o?fv(t.height):t.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const BF=td(0);function v_(n){let e=Bf(n);return!Km()||!e.visualViewport?BF:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zF(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Bf(n)?!1:e}function Fg(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),o=Jm(n),l=td(1);e&&(r?Nh(r)&&(l=y1(r)):l=y1(n));let a=zF(o,t,r)?v_(o):td(0),h=(i.left+a.x)/l.x,g=(i.top+a.y)/l.y,m=i.width/l.x,x=i.height/l.y;if(o){let w=Bf(o),_=r&&Nh(r)?Bf(r):r,E=w,R=im(E);for(;R&&r&&_!==E;){let k=y1(R),O=R.getBoundingClientRect(),P=Fh(R),z=O.left+(R.clientLeft+parseFloat(P.paddingLeft))*k.x,H=O.top+(R.clientTop+parseFloat(P.paddingTop))*k.y;h*=k.x,g*=k.y,m*=k.x,x*=k.y,h+=z,g+=H,E=Bf(R),R=im(E)}}return dv({width:m,height:x,x:h,y:g})}function Qm(n,e){let t=Bv(n).scrollLeft;return e?e.left+t:Fg(ad(n)).left+t}function b_(n,e,t){t===void 0&&(t=!1);let r=n.getBoundingClientRect(),i=r.left+e.scrollLeft-(t?0:Qm(n,r)),o=r.top+e.scrollTop;return{x:i,y:o}}function HF(n){let{elements:e,rect:t,offsetParent:r,strategy:i}=n,o=i==="fixed",l=ad(r),a=e?Fv(e.floating):!1;if(r===l||a&&o)return t;let h={scrollLeft:0,scrollTop:0},g=td(1),m=td(0),x=od(r);if((x||!x&&!o)&&((D1(r)!=="body"||Zp(l))&&(h=Bv(r)),od(r))){let _=Fg(r);g=y1(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}let w=l&&!x&&!o?b_(l,h,!0):td(0);return{width:t.width*g.x,height:t.height*g.y,x:t.x*g.x-h.scrollLeft*g.x+m.x+w.x,y:t.y*g.y-h.scrollTop*g.y+m.y+w.y}}function WF(n){return Array.from(n.getClientRects())}function UF(n){let e=ad(n),t=Bv(n),r=n.ownerDocument.body,i=Og(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Og(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),l=-t.scrollLeft+Qm(n),a=-t.scrollTop;return Fh(r).direction==="rtl"&&(l+=Og(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:a}}function GF(n,e){let t=Bf(n),r=ad(n),i=t.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,h=0;if(i){o=i.width,l=i.height;let g=Km();(!g||g&&e==="fixed")&&(a=i.offsetLeft,h=i.offsetTop)}return{width:o,height:l,x:a,y:h}}function YF(n,e){let t=Fg(n,!0,e==="fixed"),r=t.top+n.clientTop,i=t.left+n.clientLeft,o=od(n)?y1(n):td(1),l=n.clientWidth*o.x,a=n.clientHeight*o.y,h=i*o.x,g=r*o.y;return{width:l,height:a,x:h,y:g}}function _w(n,e,t){let r;if(e==="viewport")r=GF(n,t);else if(e==="document")r=UF(ad(n));else if(Nh(e))r=YF(e,t);else{let i=v_(n);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return dv(r)}function y_(n,e){let t=ug(n);return t===e||!Nh(t)||I1(t)?!1:Fh(t).position==="fixed"||y_(t,e)}function VF(n,e){let t=e.get(n);if(t)return t;let r=Dp(n,[],!1).filter(a=>Nh(a)&&D1(a)!=="body"),i=null,o=Fh(n).position==="fixed",l=o?ug(n):n;for(;Nh(l)&&!I1(l);){let a=Fh(l),h=Xm(l);!h&&a.position==="fixed"&&(i=null),(o?!h&&!i:!h&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Zp(l)&&!h&&y_(n,l))?r=r.filter(m=>m!==l):i=a,l=ug(l)}return e.set(n,r),r}function ZF(n){let{element:e,boundary:t,rootBoundary:r,strategy:i}=n,o=t==="clippingAncestors"?Fv(e)?[]:VF(e,this._c):[].concat(t),l=[...o,r],a=l[0],h=l.reduce((g,m)=>{let x=_w(e,m,i);return g.top=Og(x.top,g.top),g.right=uv(x.right,g.right),g.bottom=uv(x.bottom,g.bottom),g.left=Og(x.left,g.left),g},_w(e,a,i));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function XF(n){let{width:e,height:t}=p_(n);return{width:e,height:t}}function KF(n,e,t){let r=od(e),i=ad(e),o=t==="fixed",l=Fg(n,!0,o,e),a={scrollLeft:0,scrollTop:0},h=td(0);function g(){h.x=Qm(i)}if(r||!r&&!o)if((D1(e)!=="body"||Zp(i))&&(a=Bv(e)),r){let _=Fg(e,!0,o,e);h.x=_.x+e.clientLeft,h.y=_.y+e.clientTop}else i&&g();o&&!r&&i&&g();let m=i&&!r&&!o?b_(i,a):td(0),x=l.left+a.scrollLeft-h.x-m.x,w=l.top+a.scrollTop-h.y-m.y;return{x,y:w,width:l.width,height:l.height}}function Mb(n){return Fh(n).position==="static"}function Sw(n,e){if(!od(n)||Fh(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return ad(n)===t&&(t=t.ownerDocument.body),t}function m_(n,e){let t=Bf(n);if(Fv(n))return t;if(!od(n)){let i=ug(n);for(;i&&!I1(i);){if(Nh(i)&&!Mb(i))return i;i=ug(i)}return t}let r=Sw(n,e);for(;r&&NF(r)&&Mb(r);)r=Sw(r,e);return r&&I1(r)&&Mb(r)&&!Xm(r)?t:r||FF(n)||t}const JF=async function(n){let e=this.getOffsetParent||m_,t=this.getDimensions,r=await t(n.floating);return{reference:KF(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function QF(n){return Fh(n).direction==="rtl"}const qF={convertOffsetParentRelativeRectToViewportRelativeRect:HF,getDocumentElement:ad,getClippingRect:ZF,getOffsetParent:m_,getElementRects:JF,getClientRects:WF,getDimensions:XF,getScale:y1,isElement:Nh,isRTL:QF};function x_(n,e){return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height}function jF(n,e){let t=null,r,i=ad(n);function o(){var a;clearTimeout(r),(a=t)==null||a.disconnect(),t=null}function l(a,h){a===void 0&&(a=!1),h===void 0&&(h=1),o();let g=n.getBoundingClientRect(),{left:m,top:x,width:w,height:_}=g;if(a||e(),!w||!_)return;let E=M0(x),R=M0(i.clientWidth-(m+w)),k=M0(i.clientHeight-(x+_)),O=M0(m),P=-E+"px "+-R+"px "+-k+"px "+-O+"px",z={rootMargin:P,threshold:Og(0,uv(1,h))||1},H=!0;function G(N){let J=N[0].intersectionRatio;if(J!==h){if(!H)return l();J?l(!1,J):r=setTimeout(()=>{l(!1,1e-7)},1e3)}J===1&&!x_(g,n.getBoundingClientRect())&&l(),H=!1}try{t=new IntersectionObserver(G,{...z,root:i.ownerDocument})}catch{t=new IntersectionObserver(G,z)}t.observe(n)}return l(!0),o}function $F(n,e,t,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,g=Jm(n),m=i||o?[...g?Dp(g):[],...Dp(e)]:[];m.forEach(O=>{i&&O.addEventListener("scroll",t,{passive:!0}),o&&O.addEventListener("resize",t)});let x=g&&a?jF(g,t):null,w=-1,_=null;l&&(_=new ResizeObserver(O=>{let[P]=O;P&&P.target===g&&_&&(_.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var z;(z=_)==null||z.observe(e)})),t()}),g&&!h&&_.observe(g),_.observe(e));let E,R=h?Fg(n):null;h&&k();function k(){let O=Fg(n);R&&!x_(R,O)&&t(),R=O,E=requestAnimationFrame(k)}return t(),()=>{var O;m.forEach(P=>{i&&P.removeEventListener("scroll",t),o&&P.removeEventListener("resize",t)}),x==null||x(),(O=_)==null||O.disconnect(),_=null,h&&cancelAnimationFrame(E)}}const w_=OF,C_=PF,__=MF,S_=DF,E_=(n,e,t)=>{let r=new Map,i={platform:qF,...t},o={...i.platform,_c:r};return kF(n,e,{...i,platform:o})};function eB(n,e,t,r,i){return n.addEventListener("transitionend",t,r),setTimeout(()=>{t()},e)}const tB=4;let L0;function Lb(n,e={}){let{msg:t="",delay:r=150,content:i,direction:o="bottom",type:l="hover",container:a,onOpen:h,onClose:g,closed:m,onDestroy:x}=e,w=cu("tooltip");if(t||i){L0||(L0=document.createElement("div"),document.body.appendChild(L0));let _=a||L0,E=document.createElement("div");E.classList.add(w.b(),"hidden","transparent"),i?E.appendChild(i):t&&(E.textContent=t);let R,k,O,P=()=>{O&&O(),E_(n,E,{placement:o,middleware:[__(),C_({limiter:S_()}),w_(tB)]}).then(({x:ue,y:se})=>{Object.assign(E.style,{left:`${ue}px`,top:`${se}px`})})},z=()=>{E.classList.add("hidden"),_.contains(E)&&_.removeChild(E),O&&O(),m&&m()},H=(ue=!1)=>{k&&clearTimeout(k),R=setTimeout(()=>{if(h){let se=h(ue);if(!ue&&se)return}_.appendChild(E),E.removeEventListener("transitionend",z),E.classList.remove("hidden"),O=$F(n,E,P),E.classList.remove("transparent")},r)},G=(ue=!1)=>{R&&clearTimeout(R),k=setTimeout(()=>{if(g){let se=g(ue);if(!ue&&se)return}eB(E,150,z,{once:!0}),E.classList.add("transparent")},r)},N=()=>{let ue=[n,E],se=G.bind(void 0,!1),$=H.bind(void 0,!1);return{prepare:()=>{for(let de of ue)de.addEventListener("mouseenter",$),de.addEventListener("mouseleave",se)},show:H,hide:G,destroy:()=>{for(let de of ue)de.removeEventListener("mouseenter",$),de.removeEventListener("mouseleave",se)}}},J=()=>{let ue=$=>{$.stopPropagation(),G(!1)},se=$=>{$.stopPropagation(),H(),document.removeEventListener("click",ue),document.addEventListener("click",ue,{once:!0})};return{prepare:()=>{E.addEventListener("click",$=>$.stopPropagation()),n.addEventListener("click",se)},show:H,hide:($=!1)=>{G($),document.removeEventListener("click",ue)},destroy:()=>{n.removeEventListener("click",se),document.removeEventListener("click",ue)}}},Y={hover:N,click:J},{prepare:K,show:fe,hide:X,destroy:te}=Y[l]();return K(),{show:fe,hide:X,destroy:()=>{X(!0),x&&x(),te(),O&&O(),E.remove()}}}return null}function nB(n,e,t=0,r=!0){let{x:i,y:o,x1:l,y1:a}=n,{x:h,y:g,x1:m,y1:x}=e,w,_;return r?(w=l<h+t||i-t>m,_=a<g+t||o-t>x):(w=l<=h+t||i-t>=m,_=a<=g+t||o-t>=x),!(w||_)}function rB(n,e){let t=e.getBoundingClientRect();return{x:n.x-t.x-e.scrollLeft,y:n.y-t.y-e.scrollTop,x1:n.x-t.x-e.scrollLeft+n.width,y1:n.y-t.y-e.scrollTop+n.height,width:n.width,height:n.height}}const O0=8;function iB(n){let{left:e,top:t,width:r,height:i}=n,{clientWidth:o,clientHeight:l}=document.documentElement,a=!1,h=!1;return e+r>o?(e=o-r-O0,a=!0):e<0&&(e=O0,a=!0),t+i>l?(t=l-i-O0,h=!0):t<0&&(t=O0,h=!0),{left:e,top:t,leftLimited:a,topLimited:h}}function oB(n,e={}){let t=Symbol("ignoreFirstBind"),r=new Set,i=new ResizeObserver(h=>{e.ignoreFirstBind&&h.some(g=>{let m=g.target,x=m[t];return m[t]=!0,!x})||n(h)}),o=i.observe;i.observe=(h,g)=>{r.add(h),o.call(i,h,g)};let l=i.unobserve;i.unobserve=h=>{r.has(h)&&(r.delete(h),h[t]=void 0),l.call(i,h)};let a=i.disconnect;return i.disconnect=()=>{for(let h of r.values())h[t]=void 0;a.call(i)},i}function gv(n,e){n.addEventListener("scroll",e),this.scrollHandler.push([n,e])}function J0(){for(let n=0;n<this.scrollHandler.length;n++){let[e,t]=this.scrollHandler[n];e.removeEventListener("scroll",t)}this.scrollHandler=[]}function ap(n){return{y:n.scrollTop,x:n.scrollLeft}}function pv(n){let e={},t=n.trim().split(";");for(let r=0;r<t.length;r++){let i=t[r].trim();if(!i)continue;let o=i.indexOf(":");if(o===-1)continue;let l=i.slice(0,Math.max(0,o)).trim(),a=i.slice(Math.max(0,o+1)).trim();e[k1(l)]=a}return e}function om(n){return Object.entries(n).map(([e,t])=>`${lB(e)}: ${t};`).join(" ")}function lB(n){return n.replaceAll(/([A-Z])/g," $1").trim().split(" ").join("-").toLowerCase()}function k1(n){return n.replaceAll(/-(\w)/g,(e,t)=>t.toUpperCase())}const Na=()=>Math.random().toString(36).slice(2);function T_(n,e){let t;return function(...r){t&&clearTimeout(t),t=setTimeout(()=>{n.apply(this,r)},e)}}const Ob=Xe.import("parchment"),Ew=Xe.import("blots/container"),sB=Xe.import("blots/block"),aB=Xe.import("blots/block/embed");var uh,dg=(uh=class extends Ew{static create(e){let t=document.createElement(this.tagName);return this.className&&t.classList.add(this.className),t}optimize(e){if(this.children.length===0)if(this.statics.defaultChild!=null){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove();this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}enforceAllowedChildren(){this.children.forEach(e=>{this.statics.allowedChildren.some(r=>e instanceof r)||(e.statics.scope===Ob.Scope.BLOCK_BLOT?(e.parent instanceof uh?(e.next!=null&&e.parent.splitAfter(e),e.prev!=null&&e.parent.splitAfter(e.prev)):(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev)),e.parent.unwrap()):e instanceof Ob.ParentBlot?e.unwrap():e.remove())})}},Ee(uh,"tagName"),Ee(uh,"blotName",qe.container),Ee(uh,"scope",Ob.Scope.BLOCK_BLOT),Ee(uh,"allowedChildren",[sB,aB,Ew]),Ee(uh,"requiredContainer"),Ee(uh,"defaultChild"),uh);const ig=n=>bF(n)?n:1,Tw=Xe.import("blots/block"),cB=Xe.import("blots/block/embed");var Zd,cf=(Zd=class extends dg{static isAllowStyle(n){let e=k1(n);for(let t of this.allowStyle)if(e.startsWith(k1(t)))return!0;return!1}static create(n){let{tableId:e,rowId:t,colId:r,rowspan:i,colspan:o,style:l,emptyRow:a,tag:h="td"}=n,g=super.create();g.dataset.tableId=e,g.dataset.rowId=t,g.dataset.colId=r,g.dataset.rowspan=String(ig(i)),g.dataset.colspan=String(ig(o)),g.dataset.tag=h,l&&(g.dataset.style=l);try{a&&(g.dataset.emptyRow=JSON.stringify(a))}catch{}return g}static formats(n){let{tableId:e,rowId:t,colId:r,rowspan:i,colspan:o,style:l,emptyRow:a,tag:h="td"}=n.dataset,g={tableId:String(e),rowId:String(t),colId:String(r),rowspan:Number(ig(i)),colspan:Number(ig(o)),tag:h};l&&(g.style=l);try{a&&(g.emptyRow=JSON.parse(a))}catch{}return g}constructor(n,e,t){super(n,e),e.setAttribute("contenteditable",String(n.isEnabled()))}setFormatValue(n,e,t=!1){if(t){if(!this.statics.isAllowStyle(n))return;this.parent&&this.parent.statics.blotName===qe.tableCell&&this.parent.setFormatValue(n,e)}else{if(!this.statics.allowDataAttrs.has(n))return;let r=`data-${n}`;e?this.domNode.setAttribute(r,e):this.domNode.removeAttribute(r),this.parent&&this.parent.statics.blotName===qe.tableCell&&this.parent.setFormatValue(n,e)}this.clearCache()}clearCache(){let n=this.descendants(Tw,0);for(let e of n)e.cache={}}get tableId(){return this.domNode.dataset.tableId}get rowId(){return this.domNode.dataset.rowId}set rowId(n){this.setFormatValue("row-id",n)}get colId(){return this.domNode.dataset.colId}set colId(n){this.setFormatValue("col-id",n)}get rowspan(){return Number(this.domNode.dataset.rowspan)}set rowspan(n){this.setFormatValue("rowspan",n)}get colspan(){return Number(this.domNode.dataset.colspan)}set colspan(n){this.setFormatValue("colspan",n)}get emptyRow(){try{return JSON.parse(this.domNode.dataset.emptyRow)}catch{return[]}}set emptyRow(n){if(this.emptyRow.toString()!==n.toString())try{n.length>0?this.setFormatValue("empty-row",JSON.stringify(n),!1):this.setFormatValue("empty-row",null,!1)}catch{this.setFormatValue("empty-row",null,!1)}}getColumnIndex(){return Kl(this,qe.tableMain).getColIds().indexOf(this.colId)}setStyleByString(n){let e=pv(n);for(let[t,r]of Object.entries(e))this.setFormatValue(t,r,!0)}convertTableCell(){this.parent.statics.blotName===qe.tableCell&&(this.parent.convertTableCell(),this.clearCache())}formatAt(n,e,t,r){this.children.length===0&&(this.appendChild(this.scroll.create(this.statics.defaultChild.blotName)),e+=1),super.formatAt(n,e,t,r),r&&r.style&&this.setStyleByString(r.style)}insertAt(n,e,t){let[r]=this.children.find(n);if(!r&&this.statics.defaultChild){let i=this.scroll.create(this.statics.defaultChild.blotName||"block");this.appendChild(i)}super.insertAt(n,e,t)}formats(){let n=this.statics.formats(this.domNode);return{[this.statics.blotName]:n}}checkMerge(){let{colId:n,rowId:e,colspan:t,rowspan:r}=this,i=this.next;return i!==null&&i.statics.blotName===this.statics.blotName&&i.rowId===e&&i.colId===n&&i.colspan===t&&i.rowspan===r}optimize(){let n=this.parent,e=this.statics.formats(this.domNode);if(this.prev&&this.prev instanceof cB){let r=this.prev;if(this.insertBefore(r,this.children.head),this.length()<=1){let i=this.scroll.create("block");this.insertBefore(i,r.next)}}let t=n!==null&&n.statics.blotName!==qe.tableCell;if(t&&(this.wrap(qe.tableCell,e),this.children.length===0)){let r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r)}this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove()),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0?this.remove():this.domNode.dataset.style&&t&&n.domNode.style.cssText!==this.domNode.dataset.style&&this.setStyleByString(this.domNode.dataset.style)}insertBefore(n,e){if(n.statics.blotName===this.statics.blotName){let t=n,r=this.statics.formats(t.domNode),i=this.statics.formats(this.domNode);if(Object.entries(i).every(([l,a])=>String(a)===String(r[l]))){let l=this.split(e?e.offset():0);return this.parent.insertBefore(t,l)}else{let[l,a]=A1(this,[qe.tableRow,qe.tableCell]);if(e){let h=e.offset(),g=this.length();if(h+1<g){let m=this.scroll.create(qe.tableCellInner,i);this.children.forEachAt(h+1,this.length(),x=>{m.appendChild(x)}),l.insertBefore(m.wrap(qe.tableCell,i),a.next)}}if(this.rowId!==t.rowId){if(e){let m=e.offset(l);l.split(m)}else if(a.next){let m=a.next.offset(l);l.split(m)}let h=this.scroll.create(qe.tableRow,r),g=this.scroll.create(qe.tableCell,r);return g.appendChild(t),h.appendChild(g),l.parent.insertBefore(h,l.next)}return l.insertBefore(t.wrap(qe.tableCell,r),e?a:a.next)}}else if(n.statics.blotName===qe.tableCol){try{let t=Kl(this,qe.tableBody),r=this.offset(t),i=t.split(r);t.parent.insertBefore(n,i),n.optimize({})}catch{console.warn("TableCellInner not in TableBody")}return}super.insertBefore(n,e)}},Ee(Zd,"blotName",qe.tableCellInner),Ee(Zd,"tagName","div"),Ee(Zd,"className","ql-table-cell-inner"),Ee(Zd,"allowDataAttrs",new Set(["table-id","row-id","col-id","rowspan","colspan","empty-row"])),Ee(Zd,"defaultChild",Tw),Ee(Zd,"allowStyle",new Set(["background-color","border","height"])),Zd),up,qh=(up=class extends dg{static create(n){let e=super.create();return e.dataset.tableId=n.tableId,e.dataset.rowId=n.rowId,e}get rowId(){return this.domNode.dataset.rowId}get tableId(){return this.domNode.dataset.tableId}setHeight(n){this.foreachCellInner(e=>{e.setFormatValue("height",n,!0)})}getCellByColId(n,e){let t=Kl(this,qe.tableMain),r=t.getColIds(),i=r.indexOf(n),o=this.children.iterator(),l=null;for(;l=o();){if(l.colId===n)return l;let a=r.indexOf(l.colId);if(a<i&&a+l.colspan>i)return l}return this[e]&&this[e].statics.blotName===qe.tableRow?this[e].getCellByColId(n,e):null}insertCell(n,e){let t=[],r=this.children.iterator(),i=0,o;for(;(o=r())&&(i+=o.colspan,!(i>n));)if(o.rowspan!==1)for(let l=0;l<o.rowspan-1;l++)t[l]=(t[l]||0)+o.colspan;if(o&&i-o.colspan<n){let l=o.getCellInner();l.colspan+=1,o.rowspan!==1&&(t.skipRowNum=o.rowspan-1)}else{let l=this.scroll.create(qe.tableCell,e),a=this.scroll.create(qe.tableCellInner,e),h=this.scroll.create("block");h.appendChild(this.scroll.create("break")),a.appendChild(h),l.appendChild(a),this.insertBefore(l,o)}return t}getCellByColumIndex(n){let e=[],t=null,r=0;if(n<0)return[t,r,e];let i=this.children.iterator();for(;t=i();){if(r+=t.colspan,t.rowspan!==1)for(let o=0;o<t.rowspan-1;o++)e[o]=(e[o]||0)+t.colspan;if(r>n)break}return[t,r,e]}removeCell(n){if(n<0)return[];let e=this.getCellByColumIndex(n),[t,r]=e,i=e[2];if(!t)return i;if(r-t.colspan<n||t.colspan>1){let[o]=t.descendants(cf);if(t.colspan!==1&&n===r-t.colspan){let l=Kl(this,qe.tableMain),a=l.getColIds();o.colId=a[a.indexOf(o.colId)+1]}t.rowspan!==1&&(i.skipRowNum=t.rowspan-1),--o.colspan}else t.remove();return i}foreachCellInner(n){let e=this.children.iterator(),t=0,r;for(;r=e();){let[i]=r.descendants(cf);if(n(i,t++))break}}checkMerge(){let n=this.next;return n!==null&&n.statics.blotName===this.statics.blotName&&n.rowId===this.rowId}optimize(n){let e=this.parent,{tableId:t}=this;e!==null&&e.statics.blotName!==qe.tableBody&&this.wrap(qe.tableBody,t),this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName),this.enforceAllowedChildren(),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}},Ee(up,"blotName",qe.tableRow),Ee(up,"tagName","tr"),Ee(up,"className","ql-table-row"),up),H0,eg=(H0=class extends dg{static create(n){let e=super.create();return e.dataset.tableId=n,e}get tableId(){return this.domNode.dataset.tableId}insertRow(n){let e=Kl(this,qe.tableMain);if(!e)return;let t=e.getColIds(),r=this.descendants(qh),i=new Set(t),o=0;for(let g of r){if(o===n)break;g.foreachCellInner(m=>{if(o+m.rowspan>n&&(m.rowspan+=1,i.delete(m.colId),m.colspan!==1)){let x=t.indexOf(m.colId);for(let w=0;w<m.colspan-1;w++)i.delete(t[x+w+1])}}),o+=1}let l=e.tableId,a=Na(),h=this.scroll.create(qe.tableRow,{tableId:l,rowId:a});for(let g of i){let m=this.scroll.create("break"),x=m.wrap("block"),w=x.wrap(qe.tableCellInner,{tableId:l,rowId:a,colId:g,rowspan:1,colspan:1}),_=w.wrap(qe.tableCell,{tableId:l,rowId:a,colId:g,rowspan:1,colspan:1});h.appendChild(_)}this.insertBefore(h,r[n]||null)}checkMerge(){let n=this.next;return n!==null&&n.statics.blotName===this.statics.blotName&&n.tableId===this.tableId}optimize(n){let e=this.parent;if(e!==null&&e.statics.blotName!==qe.tableMain){let{tableId:t}=this;this.wrap(qe.tableMain,{tableId:t})}super.optimize(n)}},Ee(H0,"blotName",qe.tableBody),Ee(H0,"tagName","tbody"),H0);const uB=Xe.import("parchment"),fB=Xe.import("blots/block"),hB=Xe.import("blots/container");var lm=class extends fB{replaceWith(n,e){let t=Lg(n)?this.scroll.create(n,e):n;if(t instanceof uB.ParentBlot)if(t.statics.blotName===qe.tableCellInner){try{let i=Kl(this,qe.tableCellInner),o=i.formats(),l=t.formats();if(Object.keys(o).every(h=>JSON.stringify(o[h])===JSON.stringify(l[h])))return i}catch{}let r=this.parent;if(r.statics.blotName===qe.tableCellInner){if(r==null||r.insertBefore(t,this.prev?null:this.next),r.statics.blotName===qe.tableCellInner){let i=this;for(;i;){let o=i.next;t.appendChild(i),i=o}}else t.appendChild(this);if(r&&r.length()===0){r.remove(),r.parent.statics.blotName===qe.tableCell&&r.parent.length()===0&&r.parent.remove();let i=r.parent.parent;i.statics.blotName===qe.tableRow&&i.children.length===0&&i.remove()}}else r instanceof hB?r.parent.insertBefore(t,r):r==null||r.insertBefore(t,this.next),t.appendChild(this);return t}else this.moveChildren(t);return this.parent!=null&&(this.parent.insertBefore(t,this.next),this.remove()),this.attributes.copy(t),t}format(n,e){if(n===qe.tableCellInner&&this.parent.statics.blotName===n&&!e)try{Kl(this,qe.tableCellInner).unwrap()}catch{console.error("unwrap TableCellInner error")}else super.format(n,e)}};const dB=Xe.import("blots/block/embed");var Aw=class extends dB{delta(){let n=super.delta(),e=sm(this);return e[qe.tableCellInner]&&n.insert(`
|
|
339
|
+
`," "]),w=["'"].concat(x),_=["%","/","?",";","#"].concat(w),E=["/","?","#"],R=/^[+a-z0-9A-Z_-]{0,63}$/,k=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,O={javascript:!0,"javascript:":!0},P={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},H=i(38);function G(N,J,Y){if(N&&l.isObject(N)&&N instanceof a)return N;var K=new a;return K.parse(N,J,Y),K}a.prototype.parse=function(N,J,Y){if(!l.isString(N))throw new TypeError("Parameter 'url' must be a string, not "+typeof N);var K=N.indexOf("?"),fe=K!==-1&&K<N.indexOf("#")?"?":"#",X=N.split(fe);X[0]=X[0].replace(/\\/g,"/");var te=N=X.join(fe);if(te=te.trim(),!Y&&N.split("#").length===1){var ne=m.exec(te);if(ne)return this.path=te,this.href=te,this.pathname=ne[1],ne[2]?(this.search=ne[2],this.query=J?H.parse(this.search.substr(1)):this.search.substr(1)):J&&(this.search="",this.query={}),this}var ue=h.exec(te);if(ue){var se=(ue=ue[0]).toLowerCase();this.protocol=se,te=te.substr(ue.length)}if(Y||ue||te.match(/^\/\/[^@\/]+@[^@\/]+/)){var $=te.substr(0,2)==="//";!$||ue&&P[ue]||(te=te.substr(2),this.slashes=!0)}if(!P[ue]&&($||ue&&!z[ue])){for(var re,de,be=-1,oe=0;oe<E.length;oe++)(Q=te.indexOf(E[oe]))!==-1&&(be===-1||Q<be)&&(be=Q);for((de=be===-1?te.lastIndexOf("@"):te.lastIndexOf("@",be))!==-1&&(re=te.slice(0,de),te=te.slice(de+1),this.auth=decodeURIComponent(re)),be=-1,oe=0;oe<_.length;oe++){var Q;(Q=te.indexOf(_[oe]))!==-1&&(be===-1||Q<be)&&(be=Q)}be===-1&&(be=te.length),this.host=te.slice(0,be),te=te.slice(be),this.parseHost(),this.hostname=this.hostname||"";var ge=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ge)for(var Te=this.hostname.split(/\./),He=(oe=0,Te.length);oe<He;oe++){var xe=Te[oe];if(xe&&!xe.match(R)){for(var Ne="",Me=0,Be=xe.length;Me<Be;Me++)xe.charCodeAt(Me)>127?Ne+="x":Ne+=xe[Me];if(!Ne.match(R)){var ke=Te.slice(0,oe),Ie=Te.slice(oe+1),ze=xe.match(k);ze&&(ke.push(ze[1]),Ie.unshift(ze[2])),Ie.length&&(te="/"+Ie.join(".")+te),this.hostname=ke.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),ge||(this.hostname=o.toASCII(this.hostname));var Ke=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+Ke,this.href+=this.host,ge&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),te[0]!=="/"&&(te="/"+te))}if(!O[se])for(oe=0,He=w.length;oe<He;oe++){var ht=w[oe];if(te.indexOf(ht)!==-1){var $e=encodeURIComponent(ht);$e===ht&&($e=escape(ht)),te=te.split(ht).join($e)}}var it=te.indexOf("#");it!==-1&&(this.hash=te.substr(it),te=te.slice(0,it));var et=te.indexOf("?");if(et!==-1?(this.search=te.substr(et),this.query=te.substr(et+1),J&&(this.query=H.parse(this.query)),te=te.slice(0,et)):J&&(this.search="",this.query={}),te&&(this.pathname=te),z[se]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){Ke=this.pathname||"";var st=this.search||"";this.path=Ke+st}return this.href=this.format(),this},a.prototype.format=function(){var N=this.auth||"";N&&(N=(N=encodeURIComponent(N)).replace(/%3A/i,":"),N+="@");var J=this.protocol||"",Y=this.pathname||"",K=this.hash||"",fe=!1,X="";this.host?fe=N+this.host:this.hostname&&(fe=N+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(fe+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(X=H.stringify(this.query));var te=this.search||X&&"?"+X||"";return J&&J.substr(-1)!==":"&&(J+=":"),this.slashes||(!J||z[J])&&fe!==!1?(fe="//"+(fe||""),Y&&Y.charAt(0)!=="/"&&(Y="/"+Y)):fe||(fe=""),K&&K.charAt(0)!=="#"&&(K="#"+K),te&&te.charAt(0)!=="?"&&(te="?"+te),J+fe+(Y=Y.replace(/[?#]/g,(function(ne){return encodeURIComponent(ne)})))+(te=te.replace("#","%23"))+K},a.prototype.resolve=function(N){return this.resolveObject(G(N,!1,!0)).format()},a.prototype.resolveObject=function(N){if(l.isString(N)){var J=new a;J.parse(N,!1,!0),N=J}for(var Y=new a,K=Object.keys(this),fe=0;fe<K.length;fe++){var X=K[fe];Y[X]=this[X]}if(Y.hash=N.hash,N.href==="")return Y.href=Y.format(),Y;if(N.slashes&&!N.protocol){for(var te=Object.keys(N),ne=0;ne<te.length;ne++){var ue=te[ne];ue!=="protocol"&&(Y[ue]=N[ue])}return z[Y.protocol]&&Y.hostname&&!Y.pathname&&(Y.path=Y.pathname="/"),Y.href=Y.format(),Y}if(N.protocol&&N.protocol!==Y.protocol){if(!z[N.protocol]){for(var se=Object.keys(N),$=0;$<se.length;$++){var re=se[$];Y[re]=N[re]}return Y.href=Y.format(),Y}if(Y.protocol=N.protocol,N.host||P[N.protocol])Y.pathname=N.pathname;else{for(var de=(N.pathname||"").split("/");de.length&&!(N.host=de.shift()););N.host||(N.host=""),N.hostname||(N.hostname=""),de[0]!==""&&de.unshift(""),de.length<2&&de.unshift(""),Y.pathname=de.join("/")}if(Y.search=N.search,Y.query=N.query,Y.host=N.host||"",Y.auth=N.auth,Y.hostname=N.hostname||N.host,Y.port=N.port,Y.pathname||Y.search){var be=Y.pathname||"",oe=Y.search||"";Y.path=be+oe}return Y.slashes=Y.slashes||N.slashes,Y.href=Y.format(),Y}var Q=Y.pathname&&Y.pathname.charAt(0)==="/",ge=N.host||N.pathname&&N.pathname.charAt(0)==="/",Te=ge||Q||Y.host&&N.pathname,He=Te,xe=Y.pathname&&Y.pathname.split("/")||[],Ne=(de=N.pathname&&N.pathname.split("/")||[],Y.protocol&&!z[Y.protocol]);if(Ne&&(Y.hostname="",Y.port=null,Y.host&&(xe[0]===""?xe[0]=Y.host:xe.unshift(Y.host)),Y.host="",N.protocol&&(N.hostname=null,N.port=null,N.host&&(de[0]===""?de[0]=N.host:de.unshift(N.host)),N.host=null),Te=Te&&(de[0]===""||xe[0]==="")),ge)Y.host=N.host||N.host===""?N.host:Y.host,Y.hostname=N.hostname||N.hostname===""?N.hostname:Y.hostname,Y.search=N.search,Y.query=N.query,xe=de;else if(de.length)xe||(xe=[]),xe.pop(),xe=xe.concat(de),Y.search=N.search,Y.query=N.query;else if(!l.isNullOrUndefined(N.search))return Ne&&(Y.hostname=Y.host=xe.shift(),(ze=!!(Y.host&&Y.host.indexOf("@")>0)&&Y.host.split("@"))&&(Y.auth=ze.shift(),Y.host=Y.hostname=ze.shift())),Y.search=N.search,Y.query=N.query,l.isNull(Y.pathname)&&l.isNull(Y.search)||(Y.path=(Y.pathname?Y.pathname:"")+(Y.search?Y.search:"")),Y.href=Y.format(),Y;if(!xe.length)return Y.pathname=null,Y.search?Y.path="/"+Y.search:Y.path=null,Y.href=Y.format(),Y;for(var Me=xe.slice(-1)[0],Be=(Y.host||N.host||xe.length>1)&&(Me==="."||Me==="..")||Me==="",ke=0,Ie=xe.length;Ie>=0;Ie--)(Me=xe[Ie])==="."?xe.splice(Ie,1):Me===".."?(xe.splice(Ie,1),ke++):ke&&(xe.splice(Ie,1),ke--);if(!Te&&!He)for(;ke--;ke)xe.unshift("..");!Te||xe[0]===""||xe[0]&&xe[0].charAt(0)==="/"||xe.unshift(""),Be&&xe.join("/").substr(-1)!=="/"&&xe.push("");var ze,Ke=xe[0]===""||xe[0]&&xe[0].charAt(0)==="/";return Ne&&(Y.hostname=Y.host=Ke?"":xe.length?xe.shift():"",(ze=!!(Y.host&&Y.host.indexOf("@")>0)&&Y.host.split("@"))&&(Y.auth=ze.shift(),Y.host=Y.hostname=ze.shift())),(Te=Te||Y.host&&xe.length)&&!Ke&&xe.unshift(""),xe.length?Y.pathname=xe.join("/"):(Y.pathname=null,Y.path=null),l.isNull(Y.pathname)&&l.isNull(Y.search)||(Y.path=(Y.pathname?Y.pathname:"")+(Y.search?Y.search:"")),Y.auth=N.auth||Y.auth,Y.slashes=Y.slashes||N.slashes,Y.href=Y.format(),Y},a.prototype.parseHost=function(){var N=this.host,J=g.exec(N);J&&((J=J[0])!==":"&&(this.port=J.substr(1)),N=N.substr(0,N.length-J.length)),N&&(this.hostname=N)}},function(t,r,i){(function(o,l){var a;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(h){r&&r.nodeType,o&&o.nodeType;var g=typeof l=="object"&&l;g.global!==g&&g.window!==g&&g.self;var m,x=2147483647,w=/^xn--/,_=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=Math.floor,O=String.fromCharCode;function P(X){throw new RangeError(R[X])}function z(X,te){for(var ne=X.length,ue=[];ne--;)ue[ne]=te(X[ne]);return ue}function H(X,te){var ne=X.split("@"),ue="";return ne.length>1&&(ue=ne[0]+"@",X=ne[1]),ue+z((X=X.replace(E,".")).split("."),te).join(".")}function G(X){for(var te,ne,ue=[],se=0,$=X.length;se<$;)(te=X.charCodeAt(se++))>=55296&&te<=56319&&se<$?(64512&(ne=X.charCodeAt(se++)))==56320?ue.push(((1023&te)<<10)+(1023&ne)+65536):(ue.push(te),se--):ue.push(te);return ue}function N(X){return z(X,(function(te){var ne="";return te>65535&&(ne+=O((te-=65536)>>>10&1023|55296),te=56320|1023&te),ne+=O(te)})).join("")}function J(X,te){return X+22+75*(X<26)-((te!=0)<<5)}function Y(X,te,ne){var ue=0;for(X=ne?k(X/700):X>>1,X+=k(X/te);X>455;ue+=36)X=k(X/35);return k(ue+36*X/(X+38))}function K(X){var te,ne,ue,se,$,re,de,be,oe,Q,ge,Te=[],He=X.length,xe=0,Ne=128,Me=72;for((ne=X.lastIndexOf("-"))<0&&(ne=0),ue=0;ue<ne;++ue)X.charCodeAt(ue)>=128&&P("not-basic"),Te.push(X.charCodeAt(ue));for(se=ne>0?ne+1:0;se<He;){for($=xe,re=1,de=36;se>=He&&P("invalid-input"),((be=(ge=X.charCodeAt(se++))-48<10?ge-22:ge-65<26?ge-65:ge-97<26?ge-97:36)>=36||be>k((x-xe)/re))&&P("overflow"),xe+=be*re,!(be<(oe=de<=Me?1:de>=Me+26?26:de-Me));de+=36)re>k(x/(Q=36-oe))&&P("overflow"),re*=Q;Me=Y(xe-$,te=Te.length+1,$==0),k(xe/te)>x-Ne&&P("overflow"),Ne+=k(xe/te),xe%=te,Te.splice(xe++,0,Ne)}return N(Te)}function fe(X){var te,ne,ue,se,$,re,de,be,oe,Q,ge,Te,He,xe,Ne,Me=[];for(Te=(X=G(X)).length,te=128,ne=0,$=72,re=0;re<Te;++re)(ge=X[re])<128&&Me.push(O(ge));for(ue=se=Me.length,se&&Me.push("-");ue<Te;){for(de=x,re=0;re<Te;++re)(ge=X[re])>=te&&ge<de&&(de=ge);for(de-te>k((x-ne)/(He=ue+1))&&P("overflow"),ne+=(de-te)*He,te=de,re=0;re<Te;++re)if((ge=X[re])<te&&++ne>x&&P("overflow"),ge==te){for(be=ne,oe=36;!(be<(Q=oe<=$?1:oe>=$+26?26:oe-$));oe+=36)Ne=be-Q,xe=36-Q,Me.push(O(J(Q+Ne%xe,0))),be=k(Ne/xe);Me.push(O(J(be,0))),$=Y(ne,He,ue==se),ne=0,++ue}++ne,++te}return Me.join("")}m={version:"1.4.1",ucs2:{decode:G,encode:N},decode:K,encode:fe,toASCII:function(X){return H(X,(function(te){return _.test(te)?"xn--"+fe(te):te}))},toUnicode:function(X){return H(X,(function(te){return w.test(te)?K(te.slice(4).toLowerCase()):te}))}},(a=(function(){return m}).call(r,i,r,o))===void 0||(o.exports=a)})()}).call(this,i(35)(t),i(36))},function(t,r){t.exports=function(i){return i.webpackPolyfill||(i.deprecate=function(){},i.paths=[],i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),i.webpackPolyfill=1),i}},function(t,r){var i;i=(function(){return this})();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}t.exports=i},function(t,r,i){t.exports={isString:function(o){return typeof o=="string"},isObject:function(o){return typeof o=="object"&&o!==null},isNull:function(o){return o===null},isNullOrUndefined:function(o){return o==null}}},function(t,r,i){r.decode=r.parse=i(39),r.encode=r.stringify=i(40)},function(t,r,i){function o(a,h){return Object.prototype.hasOwnProperty.call(a,h)}t.exports=function(a,h,g,m){h=h||"&",g=g||"=";var x={};if(typeof a!="string"||a.length===0)return x;var w=/\+/g;a=a.split(h);var _=1e3;m&&typeof m.maxKeys=="number"&&(_=m.maxKeys);var E=a.length;_>0&&E>_&&(E=_);for(var R=0;R<E;++R){var k,O,P,z,H=a[R].replace(w,"%20"),G=H.indexOf(g);G>=0?(k=H.substr(0,G),O=H.substr(G+1)):(k=H,O=""),P=decodeURIComponent(k),z=decodeURIComponent(O),o(x,P)?l(x[P])?x[P].push(z):x[P]=[x[P],z]:x[P]=z}return x};var l=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},function(t,r,i){var o=function(g){switch(typeof g){case"string":return g;case"boolean":return g?"true":"false";case"number":return isFinite(g)?g:"";default:return""}};t.exports=function(g,m,x,w){return m=m||"&",x=x||"=",g===null&&(g=void 0),typeof g=="object"?a(h(g),(function(_){var E=encodeURIComponent(o(_))+x;return l(g[_])?a(g[_],(function(R){return E+encodeURIComponent(o(R))})).join(m):E+encodeURIComponent(o(g[_]))})).join(m):w?encodeURIComponent(o(w))+x+encodeURIComponent(o(g)):""};var l=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"};function a(g,m){if(g.map)return g.map(m);for(var x=[],w=0;w<g.length;w++)x.push(m(g[w],w));return x}var h=Object.keys||function(g){var m=[];for(var x in g)Object.prototype.hasOwnProperty.call(g,x)&&m.push(x);return m}}])}))})(Ib)),Ib.exports}var lF=oF();const sF=L1(lF),qe={container:"table-up-container",tableCaption:"table-up-caption",tableWrapper:"table-up",tableMain:"table-up-main",tableColgroup:"table-up-colgroup",tableCol:"table-up-col",tableBody:"table-up-body",tableRow:"table-up-row",tableCell:"table-up-cell",tableCellInner:"table-up-cell-inner"},Ss={colMinWidthPre:5,colMinWidthPx:40,colDefaultWidth:100,rowMinHeightPx:36},av={AFTER_TABLE_RESIZE:"after-table-resize"},kb={moduleName:"table-up"},aF=[["rgb(255, 255, 255)","rgb(0, 0, 0)","rgb(72, 83, 104)","rgb(41, 114, 244)","rgb(0, 163, 245)","rgb(49, 155, 98)","rgb(222, 60, 54)","rgb(248, 136, 37)","rgb(245, 196, 0)","rgb(153, 56, 215)"],["rgb(242, 242, 242)","rgb(127, 127, 127)","rgb(243, 245, 247)","rgb(229, 239, 255)","rgb(229, 246, 255)","rgb(234, 250, 241)","rgb(254, 233, 232)","rgb(254, 243, 235)","rgb(254, 249, 227)","rgb(253, 235, 255)"],["rgb(216, 216, 216)","rgb(89, 89, 89)","rgb(197, 202, 211)","rgb(199, 220, 255)","rgb(199, 236, 255)","rgb(195, 234, 213)","rgb(255, 201, 199)","rgb(255, 220, 196)","rgb(255, 238, 173)","rgb(242, 199, 255)"],["rgb(191, 191, 191)","rgb(63, 63, 63)","rgb(128, 139, 158)","rgb(153, 190, 255)","rgb(153, 221, 255)","rgb(152, 215, 182)","rgb(255, 156, 153)","rgb(255, 186, 132)","rgb(255, 226, 112)","rgb(213, 142, 255)"],["rgb(165, 165, 165)","rgb(38, 38, 38)","rgb(53, 59, 69)","rgb(20, 80, 184)","rgb(18, 116, 165)","rgb(39, 124, 79)","rgb(158, 30, 26)","rgb(184, 96, 20)","rgb(163, 130, 0)","rgb(94, 34, 129)"],["rgb(147, 147, 147)","rgb(13, 13, 13)","rgb(36, 39, 46)","rgb(12, 48, 110)","rgb(10, 65, 92)","rgb(24, 78, 50)","rgb(88, 17, 14)","rgb(92, 48, 10)","rgb(102, 82, 0)","rgb(59, 21, 81)"]],cF="table-up",uF=new Set([qe.tableCellInner]),fF=n=>uF.has(n.statics.blotName);function l4(n){return n&&n.parent?fF(n.parent)?!0:l4(n.parent):!1}function cu(n,e=cF){let t=e?`${e}-`:"";return{b:()=>`${t}${n}`,be:r=>r?`${t}${n}__${r}`:"",bm:r=>r?`${t}${n}--${r}`:"",bem:(r,i)=>r&&i?`${t}${n}__${r}--${i}`:"",ns:r=>r?`${t}${r}`:"",bs:r=>r?`${t}${n}-${r}`:"",cv:r=>r?`--${t}${r}`:"",is:r=>`is-${r}`}}function Kl(n,e){let t=n.parent;for(;t&&t.statics.blotName!==e&&t!==n.scroll;)t=t.parent;if(t===n.scroll)throw Error(`${n.statics.blotName} must be a child of ${e}`);return t}function A1(n,e){let t=Array(e.length),r=new Map(e.map((o,l)=>[o,l])),i=n.parent;for(;i&&i!==n.scroll&&r.size!==0;){if(r.has(i.statics.blotName)){let o=r.get(i.statics.blotName);t[o]=i,r.delete(i.statics.blotName)}i=i.parent}if(r.size>0)throw Error(`${n.statics.blotName} must be a child of ${Array.from(r.keys()).join(", ")}`);return t}function gw(n){let e=new Map,t=n;for(;t&&t.statics.blotName!=="scroll";)e.set(t.statics.blotName,t),t=t.parent;return e}function hF(n,e){let t=[],r=n.children.iterator(),i=null;for(;i=r();)i instanceof e&&t.push(i);return t}function dF(n,e,t){for(let r of Object.getOwnPropertyNames(e))t&&t.test(r)||Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(e,r));return n}function gF(n,e){let t=class extends n{constructor(...r){super(...r)}};for(let r of e)dF(t.prototype,r.prototype,/^constructor$/);return t}function I0(n,e){return n.prototype instanceof e}function b1(n,e){return n=Math.min(e,Math.max(0,Number.parseFloat(`${n}`))),Math.abs(n-e)<1e-6?1:n%e/Number.parseFloat(e)}function pw(n){return{h:Math.min(360,Math.max(0,n.h)),s:Math.min(100,Math.max(0,n.s)),b:Math.min(100,Math.max(0,n.b)),a:Math.min(1,Math.max(0,n.a))}}function pF(n){n=n.startsWith("#")?n.slice(1):n;let e=Number.parseInt(n.slice(0,2),16),t=Number.parseInt(n.slice(2,4),16),r=Number.parseInt(n.slice(4,6),16),i=Number((Number.parseInt(n.slice(6,8)||"ff",16)/255).toFixed(2));return{r:e,g:t,b:r,a:i}}function vw(n){let{r:e,g:t,b:r,a:i}=n;e=b1(e,255),t=b1(t,255),r=b1(r,255);let o=Math.max(e,t,r),l=Math.min(e,t,r),a,h=o,g=o-l,m=o===0?0:g/o;if(o===l)a=0;else{switch(o){case e:a=(t-r)/g+(t<r?6:0);break;case t:a=(r-e)/g+2;break;case r:a=(e-t)/g+4;break}a/=6}return{h:a*360,s:m*100,b:h*100,a:i}}function K0(n){let{h:e,s:t,b:r,a:i}=n;e=b1(e,360)*6,t=b1(t,100),r=b1(r,100);let o=Math.floor(e),l=e-o,a=r*(1-t),h=r*(1-l*t),g=r*(1-(1-l)*t),m=o%6,x=[r,h,a,a,g,r][m],w=[g,r,r,h,a,a][m],_=[a,a,g,r,r,h][m];return{r:Math.round(x*255),g:Math.round(w*255),b:Math.round(_*255),a:i}}function s4(n){let e=[n.r.toString(16),n.g.toString(16),n.b.toString(16),Math.round(n.a*255).toString(16)];for(let t in e)e[t].length===1&&(e[t]=`0${e[t]}`);return e.join("")}const bw=n=>s4(K0(n)),nm=n=>typeof n=="function",a4=Array.isArray,Lg=n=>typeof n=="string",vF=n=>typeof n=="number",k0=n=>typeof n=="object"&&!!n,bF=n=>!Number.isNaN(n)&&Number(n)>0,yF=n=>a4(n)?n:[n];function cv(n){let{type:e="default",content:t}=n||{},r=cu("button"),i=document.createElement("button");return i.classList.add(r.b(),e),t&&(Lg(t)?i.textContent=t:i.appendChild(t)),i}function mF(n={}){let e=230,t=150,r=10,i=vw(pF(n.color||"#ff0000")),o=cu("color-picker"),l=document.createElement("div");l.classList.add(o.b());let a=document.createElement("div");a.classList.add(o.be("content"));let h=document.createElement("div");h.classList.add(o.be("selector"));let g=document.createElement("div");g.classList.add(o.be("background")),h.appendChild(g);let m=document.createElement("div");m.classList.add(o.be("background-handle")),g.appendChild(m);let x=document.createElement("div");x.classList.add(o.be("alpha"));let w=document.createElement("div");w.classList.add(o.be("alpha-bg"));let _=document.createElement("div");_.classList.add(o.be("alpha-handle")),x.appendChild(w),x.appendChild(_);let E=document.createElement("div");E.classList.add(o.be("hue"));let R=document.createElement("div");R.classList.add(o.be("hue-handle")),E.appendChild(R);let k=document.createElement("div");k.classList.add(o.be("action"));let[O,P,z,H]=["r","g","b","a"].map(Ne=>{let Me=document.createElement("div");Me.classList.add(o.be("action-item"),Ne);let Be=document.createElement("label");Be.textContent=Ne.toUpperCase();let ke=document.createElement("input");return ke.classList.add(o.be("input")),ke.addEventListener("input",()=>{ke.value=ke.value.replaceAll(/[^0-9]/g,"")}),ke.addEventListener("change",()=>{let Ie=Math.round(Number(ke.value));Ne==="a"&&(Ie/=100);let ze=pw(vw(Object.assign({},K0(i),{[Ne]:Ie})));se(ze),ue()}),Me.appendChild(Be),Me.appendChild(ke),k.appendChild(Me),ke});a.appendChild(E),a.appendChild(h),a.appendChild(x),l.appendChild(a),l.appendChild(k);let G=!1,N=!1,J=!1;function Y(){let Ne=bw(i);for(let[Me,Be]of[O,P,z].entries())Be.value=String(Number.parseInt(Ne[Me*2]+Ne[Me*2+1],16));H.value=String((i.a*100).toFixed(0))}function K(){Object.assign(m.style,{left:`${Math.floor(e*i.s/100)}px`,top:`${Math.floor(t*(100-i.b)/100)}px`})}function fe(){h.style.backgroundColor=`#${s4(K0({h:i.h,s:100,b:100,a:1}))}`}function X(){R.style.top=`${Math.floor(t-t*i.h/360)}px`}function te(){_.style.left=`${i.a*100}%`}function ne(){let{r:Ne,g:Me,b:Be}=K0(i);w.style.background=`linear-gradient(to right, rgba(${Ne}, ${Me}, ${Be}, 0) 0%, rgba(${Ne}, ${Me}, ${Be}, 1) 100%)`}function ue(){K(),fe(),X(),te(),ne(),Y()}function se(Ne){i=pw(Object.assign({},i,Ne)),Y(),n.onChange&&n.onChange(`#${bw(i)}`)}function $(Ne){let Me=h.getBoundingClientRect(),Be=Me.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),ke=Me.left+document.body.scrollLeft,Ie=Math.floor(100*Math.max(0,Math.min(e,Ne.pageX-ke))/e),ze=Math.floor(100*(t-Math.max(0,Math.min(t,Ne.pageY-Be)))/t);se({s:Ie,b:ze}),ue()}function re(Ne){let Me=E.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);se({h:Math.floor(360*(t-Math.max(0,Math.min(t,Ne.pageY-Me)))/t)}),ue()}function de(Ne){let{pageX:Me}=Ne,Be=x.getBoundingClientRect(),ke=Me-Be.left;ke=Math.max(r/2,ke),ke=Math.min(ke,Be.width-r/2),se({a:Math.round((ke-10/2)/(Be.width-10)*100)/100}),ue()}function be(Ne){G&&(Ne.preventDefault(),$(Ne)),N&&(Ne.preventDefault(),re(Ne)),J&&(Ne.preventDefault(),de(Ne))}function oe(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",oe),G=!1}function Q(Ne){document.addEventListener("mousemove",be),document.addEventListener("mouseup",oe),G=!0,$(Ne)}h.addEventListener("mousedown",Q);function ge(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",ge),N=!1}function Te(Ne){document.addEventListener("mousemove",be),document.addEventListener("mouseup",ge),N=!0,re(Ne)}E.addEventListener("mousedown",Te);function He(){document.removeEventListener("mousemove",be),document.removeEventListener("mouseup",He),J=!1}function xe(Ne){document.addEventListener("mousemove",be),document.addEventListener("mouseup",He),J=!0,de(Ne)}return x.addEventListener("mousedown",xe),ue(),l}let yw=8e3;function c4({child:n,target:e=document.body,beforeClose:t=()=>{}}={}){let r=cu("dialog"),i=e,o=document.createElement("div");o.classList.add(r.b()),o.style.zIndex=String(yw);let l=document.createElement("div");if(l.classList.add(r.be("overlay")),o.appendChild(l),n){let g=document.createElement("div");g.classList.add(r.be("content")),g.appendChild(n),l.appendChild(g),g.addEventListener("click",m=>{m.stopPropagation()})}let a=getComputedStyle(i).overflow;i.style.overflow="hidden",i.appendChild(o);let h=()=>{t(),o.remove(),i.style.overflow=a};return o.addEventListener("click",h),yw+=1,{dialog:o,close:h}}function mw(n,e){let t=cu("input");e.type||(e.type="text"),e.value||(e.value="");let r=document.createElement("div");if(r.classList.add(t.be("item")),n){let a=document.createElement("span");a.classList.add(t.be("label")),a.textContent=n,r.appendChild(a)}let i=document.createElement("div");i.classList.add(t.be("input"));let o=document.createElement("input");for(let a in e)o.setAttribute(a,e[a]);return(e.max||e.min)&&o.addEventListener("blur",()=>{e.max&&e.max<=Number(o.value)&&(o.value=String(e.max)),e.min&&e.min>=Number(o.value)&&(o.value=String(e.min))}),i.appendChild(o),r.appendChild(i),o.addEventListener("focus",()=>{i.classList.add("focus")}),o.addEventListener("blur",()=>{i.classList.remove("focus")}),{item:r,input:o,errorTip:a=>{let h;return i.classList.contains("error")?h=i.querySelector(`.${t.be("error-tip")}`):(h=document.createElement("span"),h.classList.add(t.be("error-tip")),i.appendChild(h)),h.textContent=a,i.classList.add("error"),{removeError:()=>{i.classList.remove("error"),h.remove()}}}}}async function xF(n={}){let e=cu("creator"),t=document.createElement("div");t.classList.add(e.b());let r=document.createElement("div");r.classList.add(e.be("input"));let{item:i,input:o,errorTip:l}=mw(n.rowText||"Row",{type:"number",value:String(n.row||""),max:99}),{item:a,input:h,errorTip:g}=mw(n.colText||"Column",{type:"number",value:String(n.col||""),max:99});r.appendChild(i),r.appendChild(a),t.appendChild(r);let m=document.createElement("div");m.classList.add(e.be("control"));let x=cv({type:"confirm",content:n.confirmText||"Confirm"}),w=cv({type:"default",content:n.cancelText||"Cancel"});m.appendChild(x),m.appendChild(w),t.appendChild(m);let _=(R=Number(o.value),k=Number(h.value))=>{if(Number.isNaN(R)||R<=0){l(n.notPositiveNumberError||"Please enter a positive integer");return}if(Number.isNaN(k)||k<=0){g(n.notPositiveNumberError||"Please enter a positive integer");return}return{row:R,col:k}},E=R=>{R.key==="Escape"&&(close(),document.removeEventListener("keydown",E))};return new Promise((R,k)=>{let{close:O}=c4({child:t,beforeClose:k});o.focus();for(let P of[o,h])P.addEventListener("keydown",z=>{if(z.key==="Enter"){let H=_();H&&(R(H),O())}});x.addEventListener("click",async()=>{let P=_();P&&(R(P),O())}),document.addEventListener("keydown",E),w.addEventListener("click",O)})}function wF(n={}){let e=cu("select-box"),t=document.createElement("div");t.classList.add(e.b());let r=document.createElement("div");r.classList.add(e.be("block"));for(let o=0;o<(n.row||8);o++)for(let l=0;l<(n.col||8);l++){let a=document.createElement("div");a.classList.add(e.be("item")),a.dataset.row=String(o+1),a.dataset.col=String(l+1),r.appendChild(a)}let i=()=>{let{row:o,col:l}=t.dataset;for(let h of Array.from(r.querySelectorAll(".active")))h.classList.remove("active");if(!o||!l)return;let a=Array.from(r.children);for(let h=0;h<a.length;h++){let{row:g,col:m}=a[h].dataset;if(g>o&&m>l)return;g<=o&&m<=l?a[h].classList.add("active"):a[h].classList.remove("active")}};if(r.addEventListener("mousemove",o=>{if(!o.target)return;let{row:l,col:a}=o.target.dataset;!l||!a||(t.dataset.row=l,t.dataset.col=a,i())}),r.addEventListener("mouseleave",()=>{t.removeAttribute("data-row"),t.removeAttribute("data-col"),i()}),r.addEventListener("click",()=>{let{row:o,col:l}=t.dataset;!o||!l||n.onSelect&&n.onSelect(Number(o),Number(l))}),t.appendChild(r),n.customBtn){let o=n.texts||{},l=document.createElement("div");l.classList.add(e.be("custom")),l.textContent=o.customBtnText||"Custom",l.addEventListener("click",async()=>{let a=await xF(o);a&&n.onSelect&&n.onSelect(a.row,a.col)}),t.appendChild(l)}return t}const uv=Math.min,Og=Math.max,fv=Math.round,M0=Math.floor,td=n=>({x:n,y:n}),CF={left:"right",right:"left",bottom:"top",top:"bottom"},_F={start:"end",end:"start"};function xw(n,e,t){return Og(n,uv(e,t))}function R1(n,e){return typeof n=="function"?n(e):n}function cg(n){return n.split("-")[0]}function Dv(n){return n.split("-")[1]}function Zm(n){return n==="x"?"y":"x"}function u4(n){return n==="y"?"height":"width"}function Ed(n){return["top","bottom"].includes(cg(n))?"y":"x"}function f4(n){return Zm(Ed(n))}function SF(n,e,t){t===void 0&&(t=!1);let r=Dv(n),i=f4(n),o=u4(i),l=i==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=hv(l)),[l,hv(l)]}function EF(n){let e=hv(n);return[rm(n),e,rm(e)]}function rm(n){return n.replace(/start|end/g,e=>_F[e])}function TF(n,e,t){let r=["left","right"],i=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(n){case"top":case"bottom":return t?e?i:r:e?r:i;case"left":case"right":return e?o:l;default:return[]}}function AF(n,e,t,r){let i=Dv(n),o=TF(cg(n),t==="start",r);return i&&(o=o.map(l=>l+"-"+i),e&&(o=o.concat(o.map(rm)))),o}function hv(n){return n.replace(/left|right|bottom|top/g,e=>CF[e])}function RF(n){return{top:0,right:0,bottom:0,left:0,...n}}function IF(n){return typeof n=="number"?{top:n,right:n,bottom:n,left:n}:RF(n)}function dv(n){let{x:e,y:t,width:r,height:i}=n;return{width:r,height:i,top:t,left:e,right:e+r,bottom:t+i,x:e,y:t}}function ww(n,e,t){let{reference:r,floating:i}=n,o=Ed(e),l=f4(e),a=u4(l),h=cg(e),g=o==="y",m=r.x+r.width/2-i.width/2,x=r.y+r.height/2-i.height/2,w=r[a]/2-i[a]/2,_;switch(h){case"top":_={x:m,y:r.y-i.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:x};break;case"left":_={x:r.x-i.width,y:x};break;default:_={x:r.x,y:r.y}}switch(Dv(e)){case"start":_[l]-=w*(t&&g?-1:1);break;case"end":_[l]+=w*(t&&g?-1:1);break}return _}const kF=async(n,e,t)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=t,a=o.filter(Boolean),h=await(l.isRTL==null?void 0:l.isRTL(e)),g=await l.getElementRects({reference:n,floating:e,strategy:i}),{x:m,y:x}=ww(g,r,h),w=r,_={},E=0;for(let R=0;R<a.length;R++){let{name:k,fn:O}=a[R],{x:P,y:z,data:H,reset:G}=await O({x:m,y:x,initialPlacement:r,placement:w,strategy:i,middlewareData:_,rects:g,platform:l,elements:{reference:n,floating:e}});m=P??m,x=z??x,_={..._,[k]:{..._[k],...H}},G&&E<=50&&(E++,typeof G=="object"&&(G.placement&&(w=G.placement),G.rects&&(g=G.rects===!0?await l.getElementRects({reference:n,floating:e,strategy:i}):G.rects),{x:m,y:x}=ww(g,w,h)),R=-1)}return{x:m,y:x,placement:w,strategy:i,middlewareData:_}};async function h4(n,e){e===void 0&&(e={});let{x:t,y:r,platform:i,rects:o,elements:l,strategy:a}=n,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:m="floating",altBoundary:x=!1,padding:w=0}=R1(e,n),_=IF(w),E=m==="floating"?"reference":"floating",R=l[x?E:m],k=dv(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(R))??!0?R:R.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:h,rootBoundary:g,strategy:a})),O=m==="floating"?{x:t,y:r,width:o.floating.width,height:o.floating.height}:o.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),z=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},H=dv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:P,strategy:a}):O);return{top:(k.top-H.top+_.top)/z.y,bottom:(H.bottom-k.bottom+_.bottom)/z.y,left:(k.left-H.left+_.left)/z.x,right:(H.right-k.right+_.right)/z.x}}const MF=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var fe,X,te,ne;var t;let{placement:r,middlewareData:i,rects:o,initialPlacement:l,platform:a,elements:h}=e,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:x,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:E=!0,...R}=R1(n,e);if((t=i.arrow)!=null&&t.alignmentOffset)return{};let k=cg(r),O=Ed(l),P=cg(l)===l,z=await(a.isRTL==null?void 0:a.isRTL(h.floating)),H=x||(P||!E?[hv(l)]:EF(l)),G=_!=="none";!x&&G&&H.push(...AF(l,E,_,z));let N=[l,...H],J=await h4(e,R),Y=[],K=((fe=i.flip)==null?void 0:fe.overflows)||[];if(g&&Y.push(J[k]),m){let ue=SF(r,o,z);Y.push(J[ue[0]],J[ue[1]])}if(K=[...K,{placement:r,overflows:Y}],!Y.every(ue=>ue<=0)){let ue=(((X=i.flip)==null?void 0:X.index)||0)+1,se=N[ue];if(se&&(!(m==="alignment"?O!==Ed(se):!1)||K.every(de=>de.overflows[0]>0&&Ed(de.placement)===O)))return{data:{index:ue,overflows:K},reset:{placement:se}};let $=(te=K.filter(re=>re.overflows[0]<=0).sort((re,de)=>re.overflows[1]-de.overflows[1])[0])==null?void 0:te.placement;if(!$)switch(w){case"bestFit":{let re=(ne=K.filter(de=>{if(G){let be=Ed(de.placement);return be===O||be==="y"}return!0}).map(de=>[de.placement,de.overflows.filter(be=>be>0).reduce((be,oe)=>be+oe,0)]).sort((de,be)=>de[1]-be[1])[0])==null?void 0:ne[0];re&&($=re);break}case"initialPlacement":$=l;break}if(r!==$)return{reset:{placement:$}}}return{}}}};async function LF(n,e){let{placement:t,platform:r,elements:i}=n,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=cg(t),a=Dv(t),h=Ed(t)==="y",g=["left","top"].includes(l)?-1:1,m=o&&h?-1:1,x=R1(e,n),{mainAxis:w,crossAxis:_,alignmentAxis:E}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return a&&typeof E=="number"&&(_=a==="end"?E*-1:E),h?{x:_*m,y:w*g}:{x:w*g,y:_*m}}const OF=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var h;var t;let{x:r,y:i,placement:o,middlewareData:l}=e,a=await LF(e,n);return o===((h=l.offset)==null?void 0:h.placement)&&(t=l.arrow)!=null&&t.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:o}}}}},PF=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:k=>{let{x:O,y:P}=k;return{x:O,y:P}}},...h}=R1(n,e),g={x:t,y:r},m=await h4(e,h),x=Ed(cg(i)),w=Zm(x),_=g[w],E=g[x];if(o){let k=w==="y"?"top":"left",O=w==="y"?"bottom":"right",P=_+m[k],z=_-m[O];_=xw(P,_,z)}if(l){let k=x==="y"?"top":"left",O=x==="y"?"bottom":"right",P=E+m[k],z=E-m[O];E=xw(P,E,z)}let R=a.fn({...e,[w]:_,[x]:E});return{...R,data:{x:R.x-t,y:R.y-r,enabled:{[w]:o,[x]:l}}}}}},DF=function(n){return n===void 0&&(n={}),{options:n,fn(e){var O,P;let{x:t,y:r,placement:i,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:h=!0,crossAxis:g=!0}=R1(n,e),m={x:t,y:r},x=Ed(i),w=Zm(x),_=m[w],E=m[x],R=R1(a,e),k=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:0,crossAxis:0,...R};if(h){let z=w==="y"?"height":"width",H=o.reference[w]-o.floating[z]+k.mainAxis,G=o.reference[w]+o.reference[z]-k.mainAxis;_<H?_=H:_>G&&(_=G)}if(g){let z=w==="y"?"width":"height",H=["top","left"].includes(cg(i)),G=o.reference[x]-o.floating[z]+(H&&((O=l.offset)==null?void 0:O[x])||0)+(H?0:k.crossAxis),N=o.reference[x]+o.reference[z]+(H?0:((P=l.offset)==null?void 0:P[x])||0)-(H?k.crossAxis:0);E<G?E=G:E>N&&(E=N)}return{[w]:_,[x]:E}}}};function Nv(){return typeof window<"u"}function D1(n){return d4(n)?(n.nodeName||"").toLowerCase():"#document"}function Bf(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function ad(n){var e;return(e=(d4(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function d4(n){return Nv()?n instanceof Node||n instanceof Bf(n).Node:!1}function Nh(n){return Nv()?n instanceof Element||n instanceof Bf(n).Element:!1}function od(n){return Nv()?n instanceof HTMLElement||n instanceof Bf(n).HTMLElement:!1}function Cw(n){return!Nv()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Bf(n).ShadowRoot}function Zp(n){let{overflow:e,overflowX:t,overflowY:r,display:i}=Fh(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(i)}function NF(n){return["table","td","th"].includes(D1(n))}function Fv(n){return[":popover-open",":modal"].some(e=>{try{return n.matches(e)}catch{return!1}})}function Xm(n){let e=Km(),t=Nh(n)?Fh(n):n;return["transform","translate","scale","rotate","perspective"].some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(t.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(t.contain||"").includes(r))}function FF(n){let e=ug(n);for(;od(e)&&!I1(e);){if(Xm(e))return e;if(Fv(e))return null;e=ug(e)}return null}function Km(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function I1(n){return["html","body","#document"].includes(D1(n))}function Fh(n){return Bf(n).getComputedStyle(n)}function Bv(n){return Nh(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function ug(n){if(D1(n)==="html")return n;let e=n.assignedSlot||n.parentNode||Cw(n)&&n.host||ad(n);return Cw(e)?e.host:e}function g4(n){let e=ug(n);return I1(e)?n.ownerDocument?n.ownerDocument.body:n.body:od(e)&&Zp(e)?e:g4(e)}function Dp(n,e,t){var l;e===void 0&&(e=[]),t===void 0&&(t=!0);let r=g4(n),i=r===((l=n.ownerDocument)==null?void 0:l.body),o=Bf(r);if(i){let a=im(o);return e.concat(o,o.visualViewport||[],Zp(r)?r:[],a&&t?Dp(a):[])}return e.concat(r,Dp(r,[],t))}function im(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function p4(n){let e=Fh(n),t=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=od(n),o=i?n.offsetWidth:t,l=i?n.offsetHeight:r,a=fv(t)!==o||fv(r)!==l;return a&&(t=o,r=l),{width:t,height:r,$:a}}function Jm(n){return Nh(n)?n:n.contextElement}function y1(n){let e=Jm(n);if(!od(e))return td(1);let t=e.getBoundingClientRect(),{width:r,height:i,$:o}=p4(e),l=(o?fv(t.width):t.width)/r,a=(o?fv(t.height):t.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const BF=td(0);function v4(n){let e=Bf(n);return!Km()||!e.visualViewport?BF:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zF(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Bf(n)?!1:e}function Fg(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=n.getBoundingClientRect(),o=Jm(n),l=td(1);e&&(r?Nh(r)&&(l=y1(r)):l=y1(n));let a=zF(o,t,r)?v4(o):td(0),h=(i.left+a.x)/l.x,g=(i.top+a.y)/l.y,m=i.width/l.x,x=i.height/l.y;if(o){let w=Bf(o),_=r&&Nh(r)?Bf(r):r,E=w,R=im(E);for(;R&&r&&_!==E;){let k=y1(R),O=R.getBoundingClientRect(),P=Fh(R),z=O.left+(R.clientLeft+parseFloat(P.paddingLeft))*k.x,H=O.top+(R.clientTop+parseFloat(P.paddingTop))*k.y;h*=k.x,g*=k.y,m*=k.x,x*=k.y,h+=z,g+=H,E=Bf(R),R=im(E)}}return dv({width:m,height:x,x:h,y:g})}function Qm(n,e){let t=Bv(n).scrollLeft;return e?e.left+t:Fg(ad(n)).left+t}function b4(n,e,t){t===void 0&&(t=!1);let r=n.getBoundingClientRect(),i=r.left+e.scrollLeft-(t?0:Qm(n,r)),o=r.top+e.scrollTop;return{x:i,y:o}}function HF(n){let{elements:e,rect:t,offsetParent:r,strategy:i}=n,o=i==="fixed",l=ad(r),a=e?Fv(e.floating):!1;if(r===l||a&&o)return t;let h={scrollLeft:0,scrollTop:0},g=td(1),m=td(0),x=od(r);if((x||!x&&!o)&&((D1(r)!=="body"||Zp(l))&&(h=Bv(r)),od(r))){let _=Fg(r);g=y1(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}let w=l&&!x&&!o?b4(l,h,!0):td(0);return{width:t.width*g.x,height:t.height*g.y,x:t.x*g.x-h.scrollLeft*g.x+m.x+w.x,y:t.y*g.y-h.scrollTop*g.y+m.y+w.y}}function WF(n){return Array.from(n.getClientRects())}function UF(n){let e=ad(n),t=Bv(n),r=n.ownerDocument.body,i=Og(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Og(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),l=-t.scrollLeft+Qm(n),a=-t.scrollTop;return Fh(r).direction==="rtl"&&(l+=Og(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:a}}function GF(n,e){let t=Bf(n),r=ad(n),i=t.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,h=0;if(i){o=i.width,l=i.height;let g=Km();(!g||g&&e==="fixed")&&(a=i.offsetLeft,h=i.offsetTop)}return{width:o,height:l,x:a,y:h}}function YF(n,e){let t=Fg(n,!0,e==="fixed"),r=t.top+n.clientTop,i=t.left+n.clientLeft,o=od(n)?y1(n):td(1),l=n.clientWidth*o.x,a=n.clientHeight*o.y,h=i*o.x,g=r*o.y;return{width:l,height:a,x:h,y:g}}function _w(n,e,t){let r;if(e==="viewport")r=GF(n,t);else if(e==="document")r=UF(ad(n));else if(Nh(e))r=YF(e,t);else{let i=v4(n);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return dv(r)}function y4(n,e){let t=ug(n);return t===e||!Nh(t)||I1(t)?!1:Fh(t).position==="fixed"||y4(t,e)}function VF(n,e){let t=e.get(n);if(t)return t;let r=Dp(n,[],!1).filter(a=>Nh(a)&&D1(a)!=="body"),i=null,o=Fh(n).position==="fixed",l=o?ug(n):n;for(;Nh(l)&&!I1(l);){let a=Fh(l),h=Xm(l);!h&&a.position==="fixed"&&(i=null),(o?!h&&!i:!h&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Zp(l)&&!h&&y4(n,l))?r=r.filter(m=>m!==l):i=a,l=ug(l)}return e.set(n,r),r}function ZF(n){let{element:e,boundary:t,rootBoundary:r,strategy:i}=n,o=t==="clippingAncestors"?Fv(e)?[]:VF(e,this._c):[].concat(t),l=[...o,r],a=l[0],h=l.reduce((g,m)=>{let x=_w(e,m,i);return g.top=Og(x.top,g.top),g.right=uv(x.right,g.right),g.bottom=uv(x.bottom,g.bottom),g.left=Og(x.left,g.left),g},_w(e,a,i));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function XF(n){let{width:e,height:t}=p4(n);return{width:e,height:t}}function KF(n,e,t){let r=od(e),i=ad(e),o=t==="fixed",l=Fg(n,!0,o,e),a={scrollLeft:0,scrollTop:0},h=td(0);function g(){h.x=Qm(i)}if(r||!r&&!o)if((D1(e)!=="body"||Zp(i))&&(a=Bv(e)),r){let _=Fg(e,!0,o,e);h.x=_.x+e.clientLeft,h.y=_.y+e.clientTop}else i&&g();o&&!r&&i&&g();let m=i&&!r&&!o?b4(i,a):td(0),x=l.left+a.scrollLeft-h.x-m.x,w=l.top+a.scrollTop-h.y-m.y;return{x,y:w,width:l.width,height:l.height}}function Mb(n){return Fh(n).position==="static"}function Sw(n,e){if(!od(n)||Fh(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return ad(n)===t&&(t=t.ownerDocument.body),t}function m4(n,e){let t=Bf(n);if(Fv(n))return t;if(!od(n)){let i=ug(n);for(;i&&!I1(i);){if(Nh(i)&&!Mb(i))return i;i=ug(i)}return t}let r=Sw(n,e);for(;r&&NF(r)&&Mb(r);)r=Sw(r,e);return r&&I1(r)&&Mb(r)&&!Xm(r)?t:r||FF(n)||t}const JF=async function(n){let e=this.getOffsetParent||m4,t=this.getDimensions,r=await t(n.floating);return{reference:KF(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function QF(n){return Fh(n).direction==="rtl"}const qF={convertOffsetParentRelativeRectToViewportRelativeRect:HF,getDocumentElement:ad,getClippingRect:ZF,getOffsetParent:m4,getElementRects:JF,getClientRects:WF,getDimensions:XF,getScale:y1,isElement:Nh,isRTL:QF};function x4(n,e){return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height}function jF(n,e){let t=null,r,i=ad(n);function o(){var a;clearTimeout(r),(a=t)==null||a.disconnect(),t=null}function l(a,h){a===void 0&&(a=!1),h===void 0&&(h=1),o();let g=n.getBoundingClientRect(),{left:m,top:x,width:w,height:_}=g;if(a||e(),!w||!_)return;let E=M0(x),R=M0(i.clientWidth-(m+w)),k=M0(i.clientHeight-(x+_)),O=M0(m),P=-E+"px "+-R+"px "+-k+"px "+-O+"px",z={rootMargin:P,threshold:Og(0,uv(1,h))||1},H=!0;function G(N){let J=N[0].intersectionRatio;if(J!==h){if(!H)return l();J?l(!1,J):r=setTimeout(()=>{l(!1,1e-7)},1e3)}J===1&&!x4(g,n.getBoundingClientRect())&&l(),H=!1}try{t=new IntersectionObserver(G,{...z,root:i.ownerDocument})}catch{t=new IntersectionObserver(G,z)}t.observe(n)}return l(!0),o}function $F(n,e,t,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,g=Jm(n),m=i||o?[...g?Dp(g):[],...Dp(e)]:[];m.forEach(O=>{i&&O.addEventListener("scroll",t,{passive:!0}),o&&O.addEventListener("resize",t)});let x=g&&a?jF(g,t):null,w=-1,_=null;l&&(_=new ResizeObserver(O=>{let[P]=O;P&&P.target===g&&_&&(_.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var z;(z=_)==null||z.observe(e)})),t()}),g&&!h&&_.observe(g),_.observe(e));let E,R=h?Fg(n):null;h&&k();function k(){let O=Fg(n);R&&!x4(R,O)&&t(),R=O,E=requestAnimationFrame(k)}return t(),()=>{var O;m.forEach(P=>{i&&P.removeEventListener("scroll",t),o&&P.removeEventListener("resize",t)}),x==null||x(),(O=_)==null||O.disconnect(),_=null,h&&cancelAnimationFrame(E)}}const w4=OF,C4=PF,_4=MF,S4=DF,E4=(n,e,t)=>{let r=new Map,i={platform:qF,...t},o={...i.platform,_c:r};return kF(n,e,{...i,platform:o})};function eB(n,e,t,r,i){return n.addEventListener("transitionend",t,r),setTimeout(()=>{t()},e)}const tB=4;let L0;function Lb(n,e={}){let{msg:t="",delay:r=150,content:i,direction:o="bottom",type:l="hover",container:a,onOpen:h,onClose:g,closed:m,onDestroy:x}=e,w=cu("tooltip");if(t||i){L0||(L0=document.createElement("div"),document.body.appendChild(L0));let _=a||L0,E=document.createElement("div");E.classList.add(w.b(),"hidden","transparent"),i?E.appendChild(i):t&&(E.textContent=t);let R,k,O,P=()=>{O&&O(),E4(n,E,{placement:o,middleware:[_4(),C4({limiter:S4()}),w4(tB)]}).then(({x:ue,y:se})=>{Object.assign(E.style,{left:`${ue}px`,top:`${se}px`})})},z=()=>{E.classList.add("hidden"),_.contains(E)&&_.removeChild(E),O&&O(),m&&m()},H=(ue=!1)=>{k&&clearTimeout(k),R=setTimeout(()=>{if(h){let se=h(ue);if(!ue&&se)return}_.appendChild(E),E.removeEventListener("transitionend",z),E.classList.remove("hidden"),O=$F(n,E,P),E.classList.remove("transparent")},r)},G=(ue=!1)=>{R&&clearTimeout(R),k=setTimeout(()=>{if(g){let se=g(ue);if(!ue&&se)return}eB(E,150,z,{once:!0}),E.classList.add("transparent")},r)},N=()=>{let ue=[n,E],se=G.bind(void 0,!1),$=H.bind(void 0,!1);return{prepare:()=>{for(let de of ue)de.addEventListener("mouseenter",$),de.addEventListener("mouseleave",se)},show:H,hide:G,destroy:()=>{for(let de of ue)de.removeEventListener("mouseenter",$),de.removeEventListener("mouseleave",se)}}},J=()=>{let ue=$=>{$.stopPropagation(),G(!1)},se=$=>{$.stopPropagation(),H(),document.removeEventListener("click",ue),document.addEventListener("click",ue,{once:!0})};return{prepare:()=>{E.addEventListener("click",$=>$.stopPropagation()),n.addEventListener("click",se)},show:H,hide:($=!1)=>{G($),document.removeEventListener("click",ue)},destroy:()=>{n.removeEventListener("click",se),document.removeEventListener("click",ue)}}},Y={hover:N,click:J},{prepare:K,show:fe,hide:X,destroy:te}=Y[l]();return K(),{show:fe,hide:X,destroy:()=>{X(!0),x&&x(),te(),O&&O(),E.remove()}}}return null}function nB(n,e,t=0,r=!0){let{x:i,y:o,x1:l,y1:a}=n,{x:h,y:g,x1:m,y1:x}=e,w,_;return r?(w=l<h+t||i-t>m,_=a<g+t||o-t>x):(w=l<=h+t||i-t>=m,_=a<=g+t||o-t>=x),!(w||_)}function rB(n,e){let t=e.getBoundingClientRect();return{x:n.x-t.x-e.scrollLeft,y:n.y-t.y-e.scrollTop,x1:n.x-t.x-e.scrollLeft+n.width,y1:n.y-t.y-e.scrollTop+n.height,width:n.width,height:n.height}}const O0=8;function iB(n){let{left:e,top:t,width:r,height:i}=n,{clientWidth:o,clientHeight:l}=document.documentElement,a=!1,h=!1;return e+r>o?(e=o-r-O0,a=!0):e<0&&(e=O0,a=!0),t+i>l?(t=l-i-O0,h=!0):t<0&&(t=O0,h=!0),{left:e,top:t,leftLimited:a,topLimited:h}}function oB(n,e={}){let t=Symbol("ignoreFirstBind"),r=new Set,i=new ResizeObserver(h=>{e.ignoreFirstBind&&h.some(g=>{let m=g.target,x=m[t];return m[t]=!0,!x})||n(h)}),o=i.observe;i.observe=(h,g)=>{r.add(h),o.call(i,h,g)};let l=i.unobserve;i.unobserve=h=>{r.has(h)&&(r.delete(h),h[t]=void 0),l.call(i,h)};let a=i.disconnect;return i.disconnect=()=>{for(let h of r.values())h[t]=void 0;a.call(i)},i}function gv(n,e){n.addEventListener("scroll",e),this.scrollHandler.push([n,e])}function J0(){for(let n=0;n<this.scrollHandler.length;n++){let[e,t]=this.scrollHandler[n];e.removeEventListener("scroll",t)}this.scrollHandler=[]}function ap(n){return{y:n.scrollTop,x:n.scrollLeft}}function pv(n){let e={},t=n.trim().split(";");for(let r=0;r<t.length;r++){let i=t[r].trim();if(!i)continue;let o=i.indexOf(":");if(o===-1)continue;let l=i.slice(0,Math.max(0,o)).trim(),a=i.slice(Math.max(0,o+1)).trim();e[k1(l)]=a}return e}function om(n){return Object.entries(n).map(([e,t])=>`${lB(e)}: ${t};`).join(" ")}function lB(n){return n.replaceAll(/([A-Z])/g," $1").trim().split(" ").join("-").toLowerCase()}function k1(n){return n.replaceAll(/-(\w)/g,(e,t)=>t.toUpperCase())}const Na=()=>Math.random().toString(36).slice(2);function T4(n,e){let t;return function(...r){t&&clearTimeout(t),t=setTimeout(()=>{n.apply(this,r)},e)}}const Ob=Xe.import("parchment"),Ew=Xe.import("blots/container"),sB=Xe.import("blots/block"),aB=Xe.import("blots/block/embed");var uh,dg=(uh=class extends Ew{static create(e){let t=document.createElement(this.tagName);return this.className&&t.classList.add(this.className),t}optimize(e){if(this.children.length===0)if(this.statics.defaultChild!=null){let t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove();this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}enforceAllowedChildren(){this.children.forEach(e=>{this.statics.allowedChildren.some(r=>e instanceof r)||(e.statics.scope===Ob.Scope.BLOCK_BLOT?(e.parent instanceof uh?(e.next!=null&&e.parent.splitAfter(e),e.prev!=null&&e.parent.splitAfter(e.prev)):(e.next!=null&&this.splitAfter(e),e.prev!=null&&this.splitAfter(e.prev)),e.parent.unwrap()):e instanceof Ob.ParentBlot?e.unwrap():e.remove())})}},Ee(uh,"tagName"),Ee(uh,"blotName",qe.container),Ee(uh,"scope",Ob.Scope.BLOCK_BLOT),Ee(uh,"allowedChildren",[sB,aB,Ew]),Ee(uh,"requiredContainer"),Ee(uh,"defaultChild"),uh);const ig=n=>bF(n)?n:1,Tw=Xe.import("blots/block"),cB=Xe.import("blots/block/embed");var Zd,cf=(Zd=class extends dg{static isAllowStyle(n){let e=k1(n);for(let t of this.allowStyle)if(e.startsWith(k1(t)))return!0;return!1}static create(n){let{tableId:e,rowId:t,colId:r,rowspan:i,colspan:o,style:l,emptyRow:a,tag:h="td"}=n,g=super.create();g.dataset.tableId=e,g.dataset.rowId=t,g.dataset.colId=r,g.dataset.rowspan=String(ig(i)),g.dataset.colspan=String(ig(o)),g.dataset.tag=h,l&&(g.dataset.style=l);try{a&&(g.dataset.emptyRow=JSON.stringify(a))}catch{}return g}static formats(n){let{tableId:e,rowId:t,colId:r,rowspan:i,colspan:o,style:l,emptyRow:a,tag:h="td"}=n.dataset,g={tableId:String(e),rowId:String(t),colId:String(r),rowspan:Number(ig(i)),colspan:Number(ig(o)),tag:h};l&&(g.style=l);try{a&&(g.emptyRow=JSON.parse(a))}catch{}return g}constructor(n,e,t){super(n,e),e.setAttribute("contenteditable",String(n.isEnabled()))}setFormatValue(n,e,t=!1){if(t){if(!this.statics.isAllowStyle(n))return;this.parent&&this.parent.statics.blotName===qe.tableCell&&this.parent.setFormatValue(n,e)}else{if(!this.statics.allowDataAttrs.has(n))return;let r=`data-${n}`;e?this.domNode.setAttribute(r,e):this.domNode.removeAttribute(r),this.parent&&this.parent.statics.blotName===qe.tableCell&&this.parent.setFormatValue(n,e)}this.clearCache()}clearCache(){let n=this.descendants(Tw,0);for(let e of n)e.cache={}}get tableId(){return this.domNode.dataset.tableId}get rowId(){return this.domNode.dataset.rowId}set rowId(n){this.setFormatValue("row-id",n)}get colId(){return this.domNode.dataset.colId}set colId(n){this.setFormatValue("col-id",n)}get rowspan(){return Number(this.domNode.dataset.rowspan)}set rowspan(n){this.setFormatValue("rowspan",n)}get colspan(){return Number(this.domNode.dataset.colspan)}set colspan(n){this.setFormatValue("colspan",n)}get emptyRow(){try{return JSON.parse(this.domNode.dataset.emptyRow)}catch{return[]}}set emptyRow(n){if(this.emptyRow.toString()!==n.toString())try{n.length>0?this.setFormatValue("empty-row",JSON.stringify(n),!1):this.setFormatValue("empty-row",null,!1)}catch{this.setFormatValue("empty-row",null,!1)}}getColumnIndex(){return Kl(this,qe.tableMain).getColIds().indexOf(this.colId)}setStyleByString(n){let e=pv(n);for(let[t,r]of Object.entries(e))this.setFormatValue(t,r,!0)}convertTableCell(){this.parent.statics.blotName===qe.tableCell&&(this.parent.convertTableCell(),this.clearCache())}formatAt(n,e,t,r){this.children.length===0&&(this.appendChild(this.scroll.create(this.statics.defaultChild.blotName)),e+=1),super.formatAt(n,e,t,r),r&&r.style&&this.setStyleByString(r.style)}insertAt(n,e,t){let[r]=this.children.find(n);if(!r&&this.statics.defaultChild){let i=this.scroll.create(this.statics.defaultChild.blotName||"block");this.appendChild(i)}super.insertAt(n,e,t)}formats(){let n=this.statics.formats(this.domNode);return{[this.statics.blotName]:n}}checkMerge(){let{colId:n,rowId:e,colspan:t,rowspan:r}=this,i=this.next;return i!==null&&i.statics.blotName===this.statics.blotName&&i.rowId===e&&i.colId===n&&i.colspan===t&&i.rowspan===r}optimize(){let n=this.parent,e=this.statics.formats(this.domNode);if(this.prev&&this.prev instanceof cB){let r=this.prev;if(this.insertBefore(r,this.children.head),this.length()<=1){let i=this.scroll.create("block");this.insertBefore(i,r.next)}}let t=n!==null&&n.statics.blotName!==qe.tableCell;if(t&&(this.wrap(qe.tableCell,e),this.children.length===0)){let r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r)}this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove()),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0?this.remove():this.domNode.dataset.style&&t&&n.domNode.style.cssText!==this.domNode.dataset.style&&this.setStyleByString(this.domNode.dataset.style)}insertBefore(n,e){if(n.statics.blotName===this.statics.blotName){let t=n,r=this.statics.formats(t.domNode),i=this.statics.formats(this.domNode);if(Object.entries(i).every(([l,a])=>String(a)===String(r[l]))){let l=this.split(e?e.offset():0);return this.parent.insertBefore(t,l)}else{let[l,a]=A1(this,[qe.tableRow,qe.tableCell]);if(e){let h=e.offset(),g=this.length();if(h+1<g){let m=this.scroll.create(qe.tableCellInner,i);this.children.forEachAt(h+1,this.length(),x=>{m.appendChild(x)}),l.insertBefore(m.wrap(qe.tableCell,i),a.next)}}if(this.rowId!==t.rowId){if(e){let m=e.offset(l);l.split(m)}else if(a.next){let m=a.next.offset(l);l.split(m)}let h=this.scroll.create(qe.tableRow,r),g=this.scroll.create(qe.tableCell,r);return g.appendChild(t),h.appendChild(g),l.parent.insertBefore(h,l.next)}return l.insertBefore(t.wrap(qe.tableCell,r),e?a:a.next)}}else if(n.statics.blotName===qe.tableCol){try{let t=Kl(this,qe.tableBody),r=this.offset(t),i=t.split(r);t.parent.insertBefore(n,i),n.optimize({})}catch{console.warn("TableCellInner not in TableBody")}return}super.insertBefore(n,e)}},Ee(Zd,"blotName",qe.tableCellInner),Ee(Zd,"tagName","div"),Ee(Zd,"className","ql-table-cell-inner"),Ee(Zd,"allowDataAttrs",new Set(["table-id","row-id","col-id","rowspan","colspan","empty-row"])),Ee(Zd,"defaultChild",Tw),Ee(Zd,"allowStyle",new Set(["background-color","border","height"])),Zd),up,qh=(up=class extends dg{static create(n){let e=super.create();return e.dataset.tableId=n.tableId,e.dataset.rowId=n.rowId,e}get rowId(){return this.domNode.dataset.rowId}get tableId(){return this.domNode.dataset.tableId}setHeight(n){this.foreachCellInner(e=>{e.setFormatValue("height",n,!0)})}getCellByColId(n,e){let t=Kl(this,qe.tableMain),r=t.getColIds(),i=r.indexOf(n),o=this.children.iterator(),l=null;for(;l=o();){if(l.colId===n)return l;let a=r.indexOf(l.colId);if(a<i&&a+l.colspan>i)return l}return this[e]&&this[e].statics.blotName===qe.tableRow?this[e].getCellByColId(n,e):null}insertCell(n,e){let t=[],r=this.children.iterator(),i=0,o;for(;(o=r())&&(i+=o.colspan,!(i>n));)if(o.rowspan!==1)for(let l=0;l<o.rowspan-1;l++)t[l]=(t[l]||0)+o.colspan;if(o&&i-o.colspan<n){let l=o.getCellInner();l.colspan+=1,o.rowspan!==1&&(t.skipRowNum=o.rowspan-1)}else{let l=this.scroll.create(qe.tableCell,e),a=this.scroll.create(qe.tableCellInner,e),h=this.scroll.create("block");h.appendChild(this.scroll.create("break")),a.appendChild(h),l.appendChild(a),this.insertBefore(l,o)}return t}getCellByColumIndex(n){let e=[],t=null,r=0;if(n<0)return[t,r,e];let i=this.children.iterator();for(;t=i();){if(r+=t.colspan,t.rowspan!==1)for(let o=0;o<t.rowspan-1;o++)e[o]=(e[o]||0)+t.colspan;if(r>n)break}return[t,r,e]}removeCell(n){if(n<0)return[];let e=this.getCellByColumIndex(n),[t,r]=e,i=e[2];if(!t)return i;if(r-t.colspan<n||t.colspan>1){let[o]=t.descendants(cf);if(t.colspan!==1&&n===r-t.colspan){let l=Kl(this,qe.tableMain),a=l.getColIds();o.colId=a[a.indexOf(o.colId)+1]}t.rowspan!==1&&(i.skipRowNum=t.rowspan-1),--o.colspan}else t.remove();return i}foreachCellInner(n){let e=this.children.iterator(),t=0,r;for(;r=e();){let[i]=r.descendants(cf);if(n(i,t++))break}}checkMerge(){let n=this.next;return n!==null&&n.statics.blotName===this.statics.blotName&&n.rowId===this.rowId}optimize(n){let e=this.parent,{tableId:t}=this;e!==null&&e.statics.blotName!==qe.tableBody&&this.wrap(qe.tableBody,t),this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName),this.enforceAllowedChildren(),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}},Ee(up,"blotName",qe.tableRow),Ee(up,"tagName","tr"),Ee(up,"className","ql-table-row"),up),H0,eg=(H0=class extends dg{static create(n){let e=super.create();return e.dataset.tableId=n,e}get tableId(){return this.domNode.dataset.tableId}insertRow(n){let e=Kl(this,qe.tableMain);if(!e)return;let t=e.getColIds(),r=this.descendants(qh),i=new Set(t),o=0;for(let g of r){if(o===n)break;g.foreachCellInner(m=>{if(o+m.rowspan>n&&(m.rowspan+=1,i.delete(m.colId),m.colspan!==1)){let x=t.indexOf(m.colId);for(let w=0;w<m.colspan-1;w++)i.delete(t[x+w+1])}}),o+=1}let l=e.tableId,a=Na(),h=this.scroll.create(qe.tableRow,{tableId:l,rowId:a});for(let g of i){let m=this.scroll.create("break"),x=m.wrap("block"),w=x.wrap(qe.tableCellInner,{tableId:l,rowId:a,colId:g,rowspan:1,colspan:1}),_=w.wrap(qe.tableCell,{tableId:l,rowId:a,colId:g,rowspan:1,colspan:1});h.appendChild(_)}this.insertBefore(h,r[n]||null)}checkMerge(){let n=this.next;return n!==null&&n.statics.blotName===this.statics.blotName&&n.tableId===this.tableId}optimize(n){let e=this.parent;if(e!==null&&e.statics.blotName!==qe.tableMain){let{tableId:t}=this;this.wrap(qe.tableMain,{tableId:t})}super.optimize(n)}},Ee(H0,"blotName",qe.tableBody),Ee(H0,"tagName","tbody"),H0);const uB=Xe.import("parchment"),fB=Xe.import("blots/block"),hB=Xe.import("blots/container");var lm=class extends fB{replaceWith(n,e){let t=Lg(n)?this.scroll.create(n,e):n;if(t instanceof uB.ParentBlot)if(t.statics.blotName===qe.tableCellInner){try{let i=Kl(this,qe.tableCellInner),o=i.formats(),l=t.formats();if(Object.keys(o).every(h=>JSON.stringify(o[h])===JSON.stringify(l[h])))return i}catch{}let r=this.parent;if(r.statics.blotName===qe.tableCellInner){if(r==null||r.insertBefore(t,this.prev?null:this.next),r.statics.blotName===qe.tableCellInner){let i=this;for(;i;){let o=i.next;t.appendChild(i),i=o}}else t.appendChild(this);if(r&&r.length()===0){r.remove(),r.parent.statics.blotName===qe.tableCell&&r.parent.length()===0&&r.parent.remove();let i=r.parent.parent;i.statics.blotName===qe.tableRow&&i.children.length===0&&i.remove()}}else r instanceof hB?r.parent.insertBefore(t,r):r==null||r.insertBefore(t,this.next),t.appendChild(this);return t}else this.moveChildren(t);return this.parent!=null&&(this.parent.insertBefore(t,this.next),this.remove()),this.attributes.copy(t),t}format(n,e){if(n===qe.tableCellInner&&this.parent.statics.blotName===n&&!e)try{Kl(this,qe.tableCellInner).unwrap()}catch{console.error("unwrap TableCellInner error")}else super.format(n,e)}};const dB=Xe.import("blots/block/embed");var Aw=class extends dB{delta(){let n=super.delta(),e=sm(this);return e[qe.tableCellInner]&&n.insert(`
|
|
340
340
|
`,{[qe.tableCellInner]:e[qe.tableCellInner]}),n}length(){return sm(this)[qe.tableCellInner]&&(!this.next||this.next.length()<=1)?super.length()+1:super.length()}};function sm(n,e={},t=!0){return n==null||("formats"in n&&typeof n.formats=="function"&&(e={...e,...n.formats()},t&&delete e["code-token"]),n.parent==null||n.parent.statics.blotName==="scroll"||n.parent.statics.scope!==n.statics.scope)?e:sm(n.parent,e,t)}const Rw=Xe.import("parchment"),gB=Xe.import("blots/scroll");var pB=class extends gB{enable(n=!0){let e=Xe.import(`formats/${qe.tableCellInner}`),t=this.domNode.querySelectorAll(`.${e.className}`);for(let o of Array.from(t))o.setAttribute("contenteditable",String(!!n));let r=Xe.import(`formats/${qe.tableCaption}`),i=this.domNode.querySelectorAll(`.${r.className}`);for(let o of Array.from(i))o.setAttribute("contenteditable",String(!!n));super.enable(n)}createBlock(n,e){let t,r={};if(n[qe.tableCellInner])t=qe.tableCellInner;else for(let[l,a]of Object.entries(n))this.query(l,Rw.Scope.BLOCK&Rw.Scope.BLOT)!=null?t=l:r[l]=a;t===qe.tableCellInner&&(r={...n},delete r[t]);let i=this.create(t||this.statics.defaultChild.blotName,t?n[t]:void 0);this.insertBefore(i,e||void 0);let o=i.length();i instanceof cf&&o===0&&(o+=1);for(let[l,a]of Object.entries(r))i.formatAt(0,o,l,a);return i}},vB=`<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">\r
|
|
341
341
|
<!-- Icon from Tabler Icons by Paweł Kuna - https://github.com/tabler/tabler-icons/blob/master/LICENSE -->\r
|
|
342
342
|
<path\r
|
|
@@ -455,8 +455,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
455
455
|
<!-- Icon from TDesign Icons by TDesign - https://github.com/Tencent/tdesign-icons/blob/main/LICENSE -->
|
|
456
456
|
<path fill="currentColor" d="M21 10v12h-2V12H5v10H3V10zm0-8v6H3V2zm-2 2H5v2h14z" />
|
|
457
457
|
</svg>
|
|
458
|
-
`;const WB="color-selector",io={Break:{name:"break"},CopyCell:{name:"CopyCell",tip:"Copy cell",icon:IB,handle:(n,e)=>{let t=n.getTextByCell(e),r=n.getHTMLByCell(e),i=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([r],{type:"text/html"})});navigator.clipboard.write([i]),n.hideTableTools()}},CutCell:{name:"CutCell",tip:"Cut cell",icon:kB,handle:(n,e)=>{let t=n.getTextByCell(e),r=n.getHTMLByCell(e,!0),i=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([r],{type:"text/html"})});navigator.clipboard.write([i]),n.hideTableTools()}},InsertTop:{name:"InsertTop",icon:PB,tip:"Insert row above",handle:(n,e)=>{n.appendRow(e,!1),n.hideTableTools()}},InsertRight:{name:"InsertRight",icon:OB,tip:"Insert column right",handle:(n,e)=>{n.appendCol(e,!0),n.hideTableTools()}},InsertBottom:{name:"InsertBottom",icon:MB,tip:"Insert row below",handle:(n,e)=>{n.appendRow(e,!0),n.hideTableTools()}},InsertLeft:{name:"InsertLeft",icon:LB,tip:"Insert column Left",handle:(n,e)=>{n.appendCol(e,!1),n.hideTableTools()}},MergeCell:{name:"MergeCell",icon:DB,tip:"Merge Cell",handle:(n,e)=>{n.mergeCells(e),n.hideTableTools()}},SplitCell:{name:"SplitCell",icon:zB,tip:"Split Cell",handle:(n,e)=>{n.splitCell(e),n.hideTableTools()}},DeleteRow:{name:"DeleteRow",icon:FB,tip:"Delete Row",handle:(n,e)=>{n.removeRow(e),n.hideTableTools()}},DeleteColumn:{name:"DeleteColumn",icon:NB,tip:"Delete Column",handle:(n,e)=>{n.removeCol(e),n.hideTableTools()}},DeleteTable:{name:"DeleteTable",icon:BB,tip:"Delete table",handle:(n,e)=>{n.deleteTable(e)}},BackgroundColor:{name:"BackgroundColor",icon:AB,isColorChoose:!0,tip:"Set background color",key:"background-color",handle:(n,e,t)=>{n.setCellAttrs(e,"background-color",t,!0)}},BorderColor:{name:"BorderColor",icon:RB,isColorChoose:!0,tip:"Set border color",key:"border-color",handle:(n,e,t)=>{n.setCellAttrs(e,"border-color",t,!0)}},SwitchWidth:{name:"SwitchWidth",icon:TB,tip:"Switch table width",handle:n=>{if(!n.table)return;let e=Xe.find(n.table);e&&(e.full?e.cancelFull():e.setFull())}},InsertCaption:{name:"InsertCaption",icon:HB,tip:"Insert table caption",handle:n=>{if(!n.table)return;let e=Xe.find(n.table);if(!e)return;let t=n.quill.scroll.create("text","Table Caption").wrap(qe.tableCaption,{tableId:e.tableId});e.insertBefore(t,e.children.head)}}},P0=10,e1=cu("color-map"),Lu={selectWrapper:e1.b(),used:e1.bm("used"),item:e1.be("item"),btn:e1.be("btn"),map:e1.be("content"),mapRow:e1.be("content-row")};var UB=class{constructor(n,e,t){Ee(this,"usedColors",new Set);Ee(this,"options");Ee(this,"menu",null);Ee(this,"isMenuDisplay",!1);Ee(this,"isColorPicking",!1);Ee(this,"updateUsedColor");Ee(this,"tooltipItem",[]);Ee(this,"activeTooltip",null);Ee(this,"bem",cu("menu"));Ee(this,"colorItemClass",`color-${Na()}`);Ee(this,"colorChooseTooltipOption",{direction:"top"});Ee(this,"updateWhenTextChange",()=>{this.isMenuDisplay&&this.update()});this.tableModule=n,this.quill=e,this.options=this.resolveOptions(t);try{let r=localStorage.getItem(this.options.localstorageKey)||"[]",i=JSON.parse(r);a_(i)||(i=[]),i.slice(-1*P0).map(o=>this.usedColors.add(o))}catch{}this.updateUsedColor=T_(r=>{if(!r)return;if(this.usedColors.add(r),this.usedColors.size>P0){let o=Array.from(this.usedColors).slice(-1*P0);this.usedColors.clear(),o.map(l=>this.usedColors.add(l))}localStorage.setItem(this.options.localstorageKey,JSON.stringify(Array.from(this.usedColors)));let i=Array.from(document.querySelectorAll(`.${this.colorItemClass}.${Lu.used}`));for(let o of i){let l=document.createElement("div");l.classList.add(Lu.item),l.style.backgroundColor=String(r),Array.from(o.querySelectorAll(`.${Lu.item}[style*="background-color: ${l.style.backgroundColor}"]`)).length<=0&&o.appendChild(l);let h=Array.from(o.querySelectorAll(`.${Lu.item}`)).slice(0,-1*P0);for(let g of h)g.remove()}},1e3),this.quill.on(Xe.events.TEXT_CHANGE,this.updateWhenTextChange)}resolveOptions(n){return Object.assign({tipText:!0,tools:[io.InsertTop,io.InsertRight,io.InsertBottom,io.InsertLeft,io.Break,io.MergeCell,io.SplitCell,io.Break,io.DeleteRow,io.DeleteColumn,io.DeleteTable,io.Break,io.BackgroundColor,io.BorderColor],localstorageKey:"__table-bg-used-color",defaultColorMap:aF},n)}buildTools(){let n=document.createElement("div");n.classList.add(this.bem.b()),Object.assign(n.style,{display:"flex"});for(let e of this.options.tools){let{name:t,icon:r,handle:i,isColorChoose:o,key:l,tip:a=""}=e,h=document.createElement("span");if(h.classList.add(this.bem.be("item")),t==="break")h.classList.add(this.bem.is("break"));else{let g=document.createElement("i");if(g.classList.add("icon"),nm(r)?g.appendChild(r(this.tableModule)):g.innerHTML=r,h.appendChild(g),o&&l){let x=this.createColorChoose(h,{name:t,icon:r,handle:i,isColorChoose:o,key:l,tip:a});this.tooltipItem.push(x),h.classList.add(WB)}else nm(i)&&h.addEventListener("click",x=>{this.quill.focus(),i(this.tableModule,this.getSelectedTds(),x)},!1);let m=this.tableModule.options.texts[t]||a;this.options.tipText&&m&&a&&this.createTipText(h,m)}n.appendChild(h)}return n}createColorChoose(n,{handle:e,key:t}){let r=document.createElement("div");if(r.classList.add(Lu.selectWrapper),this.options.defaultColorMap.length>0){let _=document.createElement("div");_.classList.add(Lu.map);for(let E of this.options.defaultColorMap){let R=document.createElement("div");R.classList.add(Lu.mapRow);for(let k of E){let O=document.createElement("div");O.classList.add(Lu.item),O.style.backgroundColor=k,R.appendChild(O)}_.appendChild(R)}r.appendChild(_)}let i=document.createElement("div");i.classList.add(Lu.mapRow),Object.assign(i.style,{marginTop:"4px"});let o=document.createElement("div");o.classList.add(Lu.btn,"transparent"),o.textContent=this.tableModule.options.texts.transparent,o.addEventListener("click",()=>{e(this.tableModule,this.getSelectedTds(),"transparent")});let l=document.createElement("div");l.classList.add(Lu.btn,"clear"),l.textContent=this.tableModule.options.texts.clear,l.addEventListener("click",()=>{e(this.tableModule,this.getSelectedTds(),null)});let a=document.createElement("div");a.classList.add(Lu.btn,"custom"),a.textContent=this.tableModule.options.texts.custom;let h=mF({onChange:_=>{e(this.tableModule,this.getSelectedTds(),_),this.updateUsedColor(_)}}),{hide:g,destroy:m}=Lb(a,{direction:"right",type:"click",content:h,container:a});i.appendChild(o),i.appendChild(l),i.appendChild(a),r.appendChild(i);let x=document.createElement("div");x.classList.add(Lu.used,this.colorItemClass);for(let _ of this.usedColors){let E=document.createElement("div");E.classList.add(Lu.item),E.style.backgroundColor=_,x.appendChild(E)}r.appendChild(x),r.addEventListener("click",_=>{_.stopPropagation(),g();let E=_.target,R=E.style.backgroundColor,k=this.getSelectedTds();if(E&&R&&k.length>0){if(this.tableModule.setCellAttrs(k,t,R,!0),!E.closest(`.${Lu.item}`))return;this.updateUsedColor(R)}});let w=Lb(n,{type:"click",content:r,onOpen:()=>(this.isMenuDisplay&&this.tableModule.tableSelection&&this.tableModule.tableSelection.hideDisplay(),this.setActiveTooltip(w),!1),onClose:()=>(this.isMenuDisplay&&this.tableModule.tableSelection&&(this.tableModule.tableSelection.updateWithSelectedTds(),this.tableModule.tableSelection.showDisplay()),r.contains(h)&&g(),this.activeTooltip===w&&(this.activeTooltip=null),!1),onDestroy:()=>{m(),this.activeTooltip===w&&(this.activeTooltip=null)},...this.colorChooseTooltipOption});return w.isColorPick=!0,w}setActiveTooltip(n){this.activeTooltip&&this.activeTooltip!==n&&this.activeTooltip.hide(!0),this.activeTooltip=n}getSelectedTds(){var n;return((n=this.tableModule.tableSelection)==null?void 0:n.selectedTds)||[]}createTipText(n,e){let t=Lb(n,{msg:e});t&&this.tooltipItem.push(t)}show(){!this.menu||!this.tableModule.tableSelection||!this.tableModule.tableSelection.boundary||(Object.assign(this.menu.style,{display:"flex"}),this.isMenuDisplay=!0,this.update())}update(){}hide(){this.menu&&Object.assign(this.menu.style,{display:"none"});for(let n of this.tooltipItem)n.hide(!0);this.isMenuDisplay=!1}destroy(){this.quill.off(Xe.events.TEXT_CHANGE,this.updateWhenTextChange),this.activeTooltip=null;for(let n of this.tooltipItem)n.destroy();this.menu&&(this.hide(),this.menu.remove(),this.menu=null)}},GB=class extends UB{constructor(n,e,t){super(n,e,t),this.tableModule=n,this.quill=e,this.menu=this.buildTools(),this.tableModule.addContainer(this.menu),this.show(),this.update()}update(){!this.isMenuDisplay||!this.menu||!this.tableModule.tableSelection||!this.tableModule.tableSelection.isDisplaySelection||(super.update(),E_(this.tableModule.tableSelection.cellSelect,this.menu,{placement:"bottom",middleware:[__(),C_({limiter:S_()}),w_(20)]}).then(({x:n,y:e})=>{Object.assign(this.menu.style,{left:`${n}px`,top:`${e}px`})}))}};const Np=n=>!n.full&&n.align==="right";var YB=class{constructor(n,e){Ee(this,"colIndex",-1);Ee(this,"tableMain");Ee(this,"dragging",!1);Ee(this,"dragColBreak",null);Ee(this,"handleColMouseUpFunc",this.handleColMouseUp.bind(this));Ee(this,"handleColMouseMoveFunc",this.handleColMouseMove.bind(this));Ee(this,"handleColMouseDownFunc",this.handleColMouseDown.bind(this));Ee(this,"rowIndex",-1);Ee(this,"dragRowBreak",null);Ee(this,"handleRowMouseUpFunc",this.handleRowMouseUp.bind(this));Ee(this,"handleRowMouseMoveFunc",this.handleRowMouseMove.bind(this));Ee(this,"handleRowMouseDownFunc",this.handleRowMouseDown.bind(this));Ee(this,"dragBEM",cu("drag-line"));this.tableModule=n,this.quill=e}findCurrentColIndex(n){return-1}colWidthChange(n,e,t){}async createConfirmDialog({message:n,confirm:e,cancel:t}){return new Promise(r=>{let i=document.createElement("div");Object.assign(i.style,{padding:"8px 12px",fontSize:"14px",lineHeight:"1.5"});let o=document.createElement("p");o.textContent=n;let l=document.createElement("div");Object.assign(l.style,{display:"flex",justifyContent:"flex-end",gap:"6px"});let a=cv({content:t}),h=cv({type:"confirm",content:e});l.appendChild(a),l.appendChild(h),i.appendChild(o),i.appendChild(l);let{close:g}=c_({child:i});a.addEventListener("click",()=>{r(!1),g()}),h.addEventListener("click",()=>{r(!0),g()})})}async handleColMouseUp(){if(!this.dragColBreak||!this.tableMain||this.colIndex===-1)return;let n=this.tableMain.getCols(),e=Number.parseInt(this.dragColBreak.dataset.w||"0"),t=this.tableMain.full,r=!1,i=[];if(t){let o=this.tableMain.domNode.getBoundingClientRect().width,l=e/o*100,a=n[this.colIndex].width;if(l<a){if(l=Math.max(Ss.colMinWidthPre,l),n[this.colIndex+1]||n[this.colIndex-1]){let h=n[this.colIndex+1]?this.colIndex+1:this.colIndex-1;i.push({index:h,width:n[h].width+a-l})}else l=100;r=!0,i.push({index:this.colIndex,width:l})}else if(n[this.colIndex+1]){let h=a+n[this.colIndex+1].width;l=Math.min(h-Ss.colMinWidthPre,l),r=!0,i.push({index:this.colIndex,width:l},{index:this.colIndex+1,width:h-l})}}else this.tableMain.domNode.style.width=`${Number.parseFloat(this.tableMain.domNode.style.width)-n[this.colIndex].domNode.getBoundingClientRect().width+e}px`,r=!0,i.push({index:this.colIndex,width:e});if(document.body.removeChild(this.dragColBreak),this.dragColBreak=null,document.removeEventListener("mouseup",this.handleColMouseUpFunc),document.removeEventListener("mousemove",this.handleColMouseMoveFunc),this.dragging=!1,r){let o=this.tableMain.domNode.getBoundingClientRect().width;if(t){let l=0,a=new Set(i.map(({index:h,width:g})=>(l+=g,h)));for(let[h,g]of n.entries())a.has(h)||(l+=g.width);if(l>100){if(!await this.createConfirmDialog({message:this.tableModule.options.texts.perWidthInsufficient,confirm:this.tableModule.options.texts.confirmText,cancel:this.tableModule.options.texts.cancelText}))return;this.tableMain.cancelFull(),t=!1;for(let[h,g]of i.entries()){let{width:m,index:x}=g;i[h]={index:x,width:m/100*o}}}}for(let{index:l,width:a}of i)n[l].width=`${Math.round(a)}${t?"%":"px"}`,this.colWidthChange(l,{px:Math.round(a/100*o),pre:Math.round(a)},t)}this.quill.emitter.emit(av.AFTER_TABLE_RESIZE)}getColumnRect(n){if(!this.tableMain)return null;let e=this.tableMain.getCols();if(n>=e.length)return null;let t=e[0].domNode.getBoundingClientRect().left;for(let o=0;o<n;o++){let l=e[o].domNode.getBoundingClientRect();t+=l.width}let r=e[n],i=r.domNode.getBoundingClientRect().width;return{left:t,right:t+i,width:i}}handleColMouseMove(n){if(n.preventDefault(),!this.dragColBreak||!this.tableMain||this.colIndex===-1)return;let e=this.tableMain.getCols(),t=this.getColumnRect(this.colIndex),r=this.tableMain.domNode.getBoundingClientRect(),i=n.clientX;if(this.tableMain.full){let l=Ss.colMinWidthPre/100*r.width,a=r.right;i>t.right&&e[this.colIndex+1]&&(a=Math.max(this.getColumnRect(this.colIndex+1).right-l,t.left+l));let h=t.left+l;i=Math.min(Math.max(i,h),a)}else Np(this.tableMain)?t.right-i<Ss.colMinWidthPx&&(i=t.right-Ss.colMinWidthPx):i-t.left<Ss.colMinWidthPx&&(i=t.left+Ss.colMinWidthPx);let o=i-t.left;return Np(this.tableMain)&&(o=t.right-i),this.dragColBreak.style.left=`${i}px`,this.dragColBreak.dataset.w=String(o),{left:i,width:o}}handleColMouseDown(n){if(n.button!==0||(n.preventDefault(),!this.tableMain))return;let{rect:e,body:t}=qm(this.tableMain);if(!t||!e)return;let r=this.tableMain.getCols();if(this.colIndex=this.findCurrentColIndex(n),this.colIndex===-1)return;let i=r[this.colIndex].width,o=this.tableMain.full?i/100*e.width:i;document.addEventListener("mouseup",this.handleColMouseUpFunc),document.addEventListener("mousemove",this.handleColMouseMoveFunc),this.dragging=!0;let l=document.createElement("div");l.classList.add(this.dragBEM.b(),this.dragBEM.is("col")),l.dataset.w=String(o);let a={top:e.y,left:n.clientX,height:e.height};Object.assign(l.style,{top:`${a.top}px`,left:`${a.left}px`,height:`${a.height}px`});let h=document.body;return h.appendChild(l),this.dragColBreak&&h.removeChild(this.dragColBreak),this.dragColBreak=l,a}findCurrentRowIndex(n){return-1}rowHeightChange(n,e){}handleRowMouseUp(){if(!this.tableMain||!this.dragRowBreak||this.rowIndex===-1)return;let n=Number.parseInt(this.dragRowBreak.dataset.h||"0");this.tableMain.getRows()[this.rowIndex].setHeight(`${n}px`),this.rowHeightChange(this.rowIndex,n),document.body.removeChild(this.dragRowBreak),this.dragRowBreak=null,document.removeEventListener("mouseup",this.handleRowMouseUpFunc),document.removeEventListener("mousemove",this.handleRowMouseMoveFunc),this.dragging=!1,this.quill.emitter.emit(av.AFTER_TABLE_RESIZE)}handleRowMouseMove(n){if(!this.tableMain||!this.dragRowBreak||this.rowIndex===-1)return;n.preventDefault();let e=this.tableMain.getRows(),t=e[this.rowIndex].domNode.getBoundingClientRect(),r=n.clientY;return r-t.y<Ss.rowMinHeightPx&&(r=t.y+Ss.rowMinHeightPx),this.dragRowBreak.style.top=`${r}px`,this.dragRowBreak.dataset.h=String(r-t.y),{top:r,height:r-t.y}}handleRowMouseDown(n){if(n.button!==0||(n.preventDefault(),!this.tableMain)||(this.rowIndex=this.findCurrentRowIndex(n),this.rowIndex===-1))return;this.dragging=!0,document.addEventListener("mouseup",this.handleRowMouseUpFunc),document.addEventListener("mousemove",this.handleRowMouseMoveFunc);let e=this.tableMain.getRows(),t=e[this.rowIndex].domNode.getBoundingClientRect().height,r=this.tableMain.domNode.getBoundingClientRect(),i=document.createElement("div");i.classList.add(this.dragBEM.b(),this.dragBEM.is("row")),i.dataset.h=String(t);let o={top:n.clientY,left:r.x,width:r.width};Object.assign(i.style,{top:`${o.top}px`,left:`${o.left}px`,width:`${o.width}px`});let l=document.body;return l.appendChild(i),this.dragRowBreak&&l.removeChild(this.dragRowBreak),this.dragRowBreak=i,o}update(){}destroy(){}},VB=class extends YB{constructor(e,t,r){super(e,r);Ee(this,"colResizer");Ee(this,"rowResizer");Ee(this,"currentTableCell");Ee(this,"dragging",!1);Ee(this,"curColIndex",-1);Ee(this,"curRowIndex",-1);Ee(this,"tableCellBlot");Ee(this,"bem",cu("resize-line"));Ee(this,"mousemoveHandler",e=>{if(this.dragging||this.tableModule.tableSelection&&this.tableModule.tableSelection.dragging)return;let t=this.findTableCell(e);if(!t)return this.hide();let r=Xe.find(t);r&&this.currentTableCell!==t&&(this.show(),this.currentTableCell=t,this.tableCellBlot=r,this.tableMain=Kl(r,qe.tableMain),this.tableMain.getCols().length>0&&this.updateColResizer(),this.updateRowResizer())});Ee(this,"hideWhenTextChange",()=>{this.hide()});Ee(this,"handleColMouseUpFunc",(async function(){await this.handleColMouseUp(),this.updateColResizer()}).bind(this));Ee(this,"handleRowMouseUpFunc",(function(){this.handleRowMouseUp(),this.updateRowResizer()}).bind(this));this.tableModule=e,this.table=t,this.colResizer=this.tableModule.addContainer(this.bem.be("col")),this.rowResizer=this.tableModule.addContainer(this.bem.be("row")),this.table.addEventListener("mousemove",this.mousemoveHandler),this.quill.on(Xe.events.TEXT_CHANGE,this.hideWhenTextChange)}findTableCell(e){for(let t of e.composedPath()){if(t instanceof HTMLElement&&t.tagName==="TD")return t;if(t===document.body)return null}return null}findCurrentColIndex(){var e;return this.curColIndex+(((e=this.tableCellBlot)==null?void 0:e.colspan)||1)-1}updateColResizer(){if(!this.tableMain||!this.tableCellBlot)return;let e=this.tableCellBlot;this.tableModule.toolBox.removeChild(this.colResizer),this.colResizer=this.tableModule.addContainer(this.bem.be("col"));let[t]=A1(e,[qe.tableBody]),r=t.domNode.getBoundingClientRect(),i=e.domNode.getBoundingClientRect(),o=this.quill.root.getBoundingClientRect(),l=i.right-o.x;Np(this.tableMain)&&(l=i.left-o.x),Object.assign(this.colResizer.style,{top:`${r.y-o.y}px`,left:`${l}px`,height:`${r.height}px`});let a=this.tableMain.getCols();this.curColIndex=a.findIndex(h=>h.colId===e.colId),this.colResizer.addEventListener("mousedown",this.handleColMouseDownFunc),this.colResizer.addEventListener("dragstart",h=>{h.preventDefault()})}findCurrentRowIndex(){return this.curRowIndex}updateRowResizer(){if(!this.tableMain||!this.tableCellBlot)return;let e=this.tableCellBlot;this.tableModule.toolBox.removeChild(this.rowResizer),this.rowResizer=this.tableModule.addContainer(this.bem.be("row"));let t=e.parent;if(!(t instanceof qh))return;let[r]=A1(e,[qe.tableBody]),i=r.domNode.getBoundingClientRect(),o=e.domNode.getBoundingClientRect(),l=this.quill.root.getBoundingClientRect();Object.assign(this.rowResizer.style,{top:`${o.bottom-l.y}px`,left:`${i.x-l.x}px`,width:`${i.width}px`});let a=this.tableMain.getRows();this.curRowIndex=a.indexOf(t),this.rowResizer.addEventListener("mousedown",this.handleRowMouseDownFunc),this.rowResizer.addEventListener("dragstart",h=>{h.preventDefault()})}show(){this.rowResizer.classList.remove(this.bem.is("hidden")),this.colResizer.classList.remove(this.bem.is("hidden"))}hide(){this.currentTableCell=void 0,this.rowResizer.classList.add(this.bem.is("hidden")),this.colResizer.classList.add(this.bem.is("hidden"))}update(){this.updateColResizer(),this.updateRowResizer()}destroy(){this.colResizer.remove(),this.rowResizer.remove(),this.table.removeEventListener("mousemove",this.mousemoveHandler),this.quill.off(Xe.events.TEXT_CHANGE,this.hideWhenTextChange)}},ZB=class{constructor(n,e,t,r){Ee(this,"scrollHandler",[]);Ee(this,"tableMainBlot",null);Ee(this,"tableWrapperBlot",null);Ee(this,"bem",cu("scale"));Ee(this,"startX",0);Ee(this,"startY",0);Ee(this,"offset",6);Ee(this,"options");Ee(this,"root");Ee(this,"block");Ee(this,"resizeobserver",new ResizeObserver(()=>this.update()));Ee(this,"updateWhenTextChange",()=>{this.update()});this.tableModule=n,this.table=e,this.quill=t,this.options=this.resolveOptions(r),this.tableMainBlot=Xe.find(e),this.tableMainBlot&&!this.tableMainBlot.full&&(this.tableWrapperBlot=this.tableMainBlot.parent,this.buildResizer(),this.show()),this.quill.on(Xe.events.TEXT_CHANGE,this.updateWhenTextChange)}resolveOptions(n){return Object.assign({blockSize:12},n)}buildResizer(){if(!this.tableMainBlot||!this.tableWrapperBlot)return;this.root=this.tableModule.addContainer(this.bem.b()),this.root.classList.add(this.bem.is("hidden")),this.block=document.createElement("div"),this.block.classList.add(this.bem.be("block")),Object.assign(this.block.style,{width:`${this.options.blockSize}px`,height:`${this.options.blockSize}px`}),this.root.appendChild(this.block);let n=[],e=[],t=i=>{if(!this.tableMainBlot)return;let o=Np(this.tableMainBlot)?-1:1,l=(i.clientX-this.startX)*o,a=i.clientY-this.startY,h=Math.floor(l/n.length),g=Math.floor(a/e.length);for(let{blot:m,width:x}of n)m.width=Math.max(x+h,Ss.colMinWidthPx);for(let{blot:m,height:x}of e)m.setHeight(`${Math.max(x+g,Ss.rowMinHeightPx)}px`)},r=()=>{n=[],e=[],document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",r)};this.block.addEventListener("mousedown",i=>{!this.tableMainBlot||this.isTableOutofEditor()||(this.startX=i.clientX,this.startY=i.clientY,n=this.tableMainBlot.getCols().map(o=>({blot:o,width:Math.floor(o.width)})),e=this.tableMainBlot.getRows().map(o=>({blot:o,height:Math.floor(o.domNode.getBoundingClientRect().height)})),document.addEventListener("mousemove",t),document.addEventListener("mouseup",r))}),this.block.addEventListener("dragstart",i=>i.preventDefault()),this.resizeobserver.observe(this.tableMainBlot.domNode),gv.call(this,this.quill.root,()=>this.update()),gv.call(this,this.tableWrapperBlot.domNode,()=>this.update())}isTableOutofEditor(){if(!this.tableMainBlot||!this.tableWrapperBlot||this.tableMainBlot.full)return!1;let n=this.tableMainBlot.domNode.getBoundingClientRect(),e=this.tableWrapperBlot.domNode.getBoundingClientRect();if(n.width>e.width){for(let t of this.tableMainBlot.getCols())t.width=Math.floor(t.width/n.width*e.width);return this.tableMainBlot.colWidthFillTable(),!0}return!1}update(){if(!this.block||!this.root||!this.tableMainBlot||!this.tableWrapperBlot)return;if(this.tableMainBlot.full){this.hide();return}let{rect:n,body:e}=qm(this.tableMainBlot);if(!e||!n)return;let t=this.tableWrapperBlot.domNode.getBoundingClientRect(),r=this.quill.root.getBoundingClientRect(),{scrollTop:i,scrollLeft:o}=this.tableWrapperBlot.domNode,l=this.options.blockSize*2+this.offset,a=Math.min(n.width,t.width)+l,h=Math.min(n.height,t.height)+l;Object.assign(this.root.style,{width:`${a}px`,height:`${h}px`,left:`${Math.max(n.x,t.x)-r.x-this.options.blockSize}px`,top:`${Math.max(n.y,t.y)-r.y-this.options.blockSize}px`});let g={left:`${n.width+l-o}px`,top:`${h-i}px`};Np(this.tableMainBlot)?(this.root.classList.add(this.bem.is("align-right")),g.left=`${this.options.blockSize+-1*o}px`):this.root.classList.remove(this.bem.is("align-right")),Object.assign(this.block.style,g)}show(){this.root&&(this.root.classList.remove(this.bem.is("hidden")),this.update())}hide(){this.root&&this.root.classList.add(this.bem.is("hidden"))}destroy(){this.hide(),this.quill.off(Xe.events.TEXT_CHANGE,this.updateWhenTextChange),this.resizeobserver.disconnect(),this.root&&this.root.remove(),J0.call(this)}};const XB=0;var KB=class{constructor(n,e,t={}){Ee(this,"options");Ee(this,"boundary",null);Ee(this,"scrollRecordEls",[]);Ee(this,"startScrollRecordPosition",[]);Ee(this,"selectedTableScrollX",0);Ee(this,"selectedTableScrollY",0);Ee(this,"selectedEditorScrollX",0);Ee(this,"selectedEditorScrollY",0);Ee(this,"selectedTds",[]);Ee(this,"cellSelectWrap");Ee(this,"cellSelect");Ee(this,"dragging",!1);Ee(this,"scrollHandler",[]);Ee(this,"tableMenu");Ee(this,"resizeObserver");Ee(this,"table");Ee(this,"isDisplaySelection",!1);Ee(this,"bem",cu("selection"));Ee(this,"lastSelection",{anchorNode:null,anchorOffset:0,focusNode:null,focusOffset:0});Ee(this,"updateAfterEvent",()=>{this.updateWithSelectedTds()});Ee(this,"quillSelectionChangeHandler",(n,e,t)=>{if(t!==Xe.sources.API&&n&&!this.quill.composition.isComposing&&this.selectedTds.length>0){let r=this.quill.getFormat(n),[i]=this.quill.getLine(n.index),o=!!r[qe.tableCellInner]&&!!i,l=this.selectedTds.some(a=>a.children.contains(i));if(o&&!l)try{let a=Kl(i,qe.tableCellInner);this.selectedTds=[a],this.updateWithSelectedTds()}catch{}else o&&l||this.hide()}});Ee(this,"selectionChangeHandler",()=>{let n=window.getSelection();if(!n)return;let{anchorNode:e,focusNode:t,anchorOffset:r,focusOffset:i}=n;if(!e||!t)return;let o=Xe.find(e),l=Xe.find(t);if(!o||!l||o.scroll!==this.quill.scroll||l.scroll!==this.quill.scroll)return;let a=gw(o),h=gw(l),g=a.has(qe.tableColgroup),m=h.has(qe.tableColgroup);if(g||m){let E=e,R=r,k=t,O=i;if(g){let P=a.get(qe.tableWrapper),z=P.descendants(cf);z.length>0&&(E=z[0].domNode,R=0)}if(m){let P=h.get(qe.tableWrapper),z=P.descendants(cf);z.length>0&&(k=z[0].domNode,O=0)}this.setSelectionData(n,{anchorNode:E,anchorOffset:R,focusNode:k,focusOffset:O});return}let x=a.has(qe.tableCellInner),w=h.has(qe.tableCellInner),_=x&&w;if(_){let E=a.get(qe.tableCellInner),R=h.get(qe.tableCellInner);_&&(_=E!==R)}if(x&&w&&_||!x&&w||!w&&x){this.setSelectionData(n,this.lastSelection),this.selectedTds.length>0&&this.hide();return}this.lastSelection={anchorNode:e,anchorOffset:r,focusNode:t,focusOffset:i}});Ee(this,"mouseDownHandler",n=>{let{button:e,target:t,clientX:r,clientY:i}=n,o=t.closest(".ql-table"),l=t.closest("caption");if(e!==0||!o||l)return;this.setSelectionTable(o);let a=o.dataset.tableId,h={x:r,y:i};this.recordScrollPosition(),this.selectedTds=this.computeSelectedTds(h,h),this.dragging=!0,this.show();let g=x=>{this.tableMenu&&this.tableMenu.hide(),this.tableModule.tableResize&&this.tableModule.tableResize.hide();let{button:w,target:_,clientX:E,clientY:R}=x,k=_.closest(".ql-table"),O=_.closest("caption");if(w!==0||O||!k||k.dataset.tableId!==a)return;let P={x:E,y:R};this.selectedTds=this.computeSelectedTds(h,P),this.selectedTds.length>1&&this.quill.blur(),this.update()},m=()=>{document.body.removeEventListener("mousemove",g,!1),document.body.removeEventListener("mouseup",m,!1),this.dragging=!1,this.clearRecordScrollPosition(),this.tableMenu&&this.selectedTds.length>0&&this.tableMenu.show()};document.body.addEventListener("mousemove",g,!1),document.body.addEventListener("mouseup",m,!1)});Ee(this,"removeCell",n=>{let e=this.quill.getSelection(),t=document.activeElement;if(!(e||n.key!=="Backspace"&&n.key!=="Delete"||!this.quill.root.contains(t))){if(this.table){let r=Xe.find(this.table),i=r.descendants(cf);if(this.selectedTds.length===i.length){r.remove();return}}for(let r of this.selectedTds)r.deleteAt(0,r.length()-1)}});this.tableModule=n,this.quill=e,this.options=this.resolveOptions(t),this.scrollRecordEls=[this.quill.root,document.documentElement],this.cellSelectWrap=n.addContainer(this.bem.b()),this.cellSelect=this.helpLinesInitial(),this.resizeObserver=oB(()=>this.updateAfterEvent(),{ignoreFirstBind:!0}),this.resizeObserver.observe(this.quill.root),this.quill.root.addEventListener("mousedown",this.mouseDownHandler,{passive:!1}),document.addEventListener("selectionchange",this.selectionChangeHandler,{passive:!1}),this.quill.on(av.AFTER_TABLE_RESIZE,this.updateAfterEvent),this.quill.on(Xe.events.SELECTION_CHANGE,this.quillSelectionChangeHandler),this.quill.on(Xe.events.TEXT_CHANGE,this.updateAfterEvent),this.options.tableMenu&&(this.tableMenu=new this.options.tableMenu(n,e,this.options.tableMenuOptions)),this.hide()}getFirstTextNode(n){for(let e of Array.from(n.childNodes))if(e.nodeType===Node.TEXT_NODE)return e;return n}getLastTextNode(n){for(let e=n.childNodes.length-1;e>=0;e--){let t=n.childNodes[e];if(t.nodeType===Node.TEXT_NODE)return t}return n}getNodeTailOffset(n){let e=document.createRange();return e.selectNodeContents(n),e.collapse(!1),e.startOffset}setSelectionData(n,e){let{anchorNode:t,anchorOffset:r,focusNode:i,focusOffset:o}=e;if(!t||!i)return;let l=document.createRange(),a=this.selectionDirectionUp(e);a?(l.setStart(t,r),l.setEnd(t,r)):(l.setStart(t,r),l.setEnd(i,o)),n.removeAllRanges(),n.addRange(l),a&&n.extend(i,o)}selectionDirectionUp(n){let{anchorNode:e,anchorOffset:t,focusNode:r,focusOffset:i}=n;if(!e||!r)return!1;if(e===r)return t>i;let o=e.compareDocumentPosition(r);return o&Node.DOCUMENT_POSITION_CONTAINS||o&Node.DOCUMENT_POSITION_CONTAINED_BY?(o&Node.DOCUMENT_POSITION_FOLLOWING)!==0:(o&Node.DOCUMENT_POSITION_PRECEDING)!==0}findWrapSelection(n){let e=null,t=0,r=null,i=0;for(let{node:o,offset:l}of n)o&&((!e||this.selectionDirectionUp({anchorNode:e,anchorOffset:t,focusNode:o,focusOffset:l}))&&(e=o,t=l),(!r||this.selectionDirectionUp({anchorNode:o,anchorOffset:l,focusNode:r,focusOffset:i}))&&(r=o,i=l));return{startNode:e,startOffset:t,endNode:r,endOffset:i}}resolveOptions(n){return Object.assign({selectColor:"#0589f340",tableMenuOptions:{}},n)}helpLinesInitial(){this.cellSelectWrap.style.setProperty("--select-color",this.options.selectColor);let n=document.createElement("div");return n.classList.add(this.bem.be("line")),this.cellSelectWrap.appendChild(n),n}computeSelectedTds(n,e){if(!this.table)return[];let t=Xe.find(this.table);if(!t)return[];let r=t.descendants(eg)[0];if(!r)return[];let i=new Set(r.descendants(Nf).map((w,_)=>(w.index=_,w))),o=this.getScrollPositionDiff(),{rect:l}=qm(t);if(!l)return[];let a=n.x+o.x,h=n.y+o.y,g={x:Math.max(l.left,Math.min(e.x,a)),y:Math.max(l.top,Math.min(e.y,h)),x1:Math.min(l.right,Math.max(e.x,a)),y1:Math.min(l.bottom,Math.max(e.y,h))},m=new Set,x=!0;for(;x;){x=!1;for(let w of i){w.__rect||(w.__rect=w.domNode.getBoundingClientRect());let{x:_,y:E,right:R,bottom:k}=w.__rect;if(nB({x:Math.floor(g.x),y:Math.floor(g.y),x1:Math.floor(g.x1),y1:Math.floor(g.y1)},{x:Math.floor(_),y:Math.floor(E),x1:Math.floor(R),y1:Math.floor(k)},XB,m.size===0)){m.add(w),i.delete(w),g={x:Math.min(g.x,_),y:Math.min(g.y,E),x1:Math.max(g.x1,R),y1:Math.max(g.y1,k)},x=!0;break}}}for(let w of[...m,...i])delete w.__rect;return this.boundary=rB({...g,width:g.x1-g.x,height:g.y1-g.y},this.quill.root),Array.from(m).sort((w,_)=>w.index-_.index).map(w=>(delete w.index,w.getCellInner()))}getScrollPositionDiff(){let{x:n,y:e}=this.getTableViewScroll(),{x:t,y:r}=ap(this.quill.root);return this.selectedTableScrollX=n,this.selectedTableScrollY=e,this.selectedEditorScrollX=t,this.selectedEditorScrollY=r,this.startScrollRecordPosition.reduce((i,{x:o,y:l},a)=>{let{x:h,y:g}=ap(this.scrollRecordEls[a]);return i.x+=o-h,i.y+=l-g,i},{x:0,y:0})}recordScrollPosition(){this.clearRecordScrollPosition();for(let n of this.scrollRecordEls)this.startScrollRecordPosition.push(ap(n))}clearRecordScrollPosition(){this.startScrollRecordPosition=[]}updateWithSelectedTds(){if(this.selectedTds.length<=0)return;let n={x:1/0,y:1/0},e={x:-1/0,y:-1/0};for(let t of this.selectedTds){let r=t.domNode.getBoundingClientRect();n.x=Math.min(n.x,r.left),n.y=Math.min(n.y,r.top),e.x=Math.max(e.x,r.right),e.y=Math.max(e.y,r.bottom)}this.selectedTds=this.computeSelectedTds(n,e),this.selectedTds.length>0?this.update():this.hide()}update(){if(this.selectedTds.length===0||!this.boundary||!this.table)return;let{x:n,y:e}=ap(this.quill.root),{x:t,y:r}=this.getTableViewScroll(),i=this.table.parentElement.getBoundingClientRect(),o=this.quill.root.getBoundingClientRect(),l=i.x-o.x,a=i.y-o.y;Object.assign(this.cellSelect.style,{left:`${this.selectedEditorScrollX*2-n+this.boundary.x+this.selectedTableScrollX-t-l}px`,top:`${this.selectedEditorScrollY*2-e+this.boundary.y+this.selectedTableScrollY-r-a}px`,width:`${this.boundary.width}px`,height:`${this.boundary.height}px`}),Object.assign(this.cellSelectWrap.style,{left:`${l}px`,top:`${a}px`,width:`${i.width}px`,height:`${i.height}px`}),!this.dragging&&this.tableMenu&&this.tableMenu.update()}getTableViewScroll(){return this.table?ap(this.table.parentElement):{x:0,y:0}}setSelectionTable(n){this.table!==n&&(this.table=n,this.table?this.scrollRecordEls.push(this.table.parentElement):this.scrollRecordEls.pop())}showDisplay(){Object.assign(this.cellSelectWrap.style,{display:"block"}),this.isDisplaySelection=!0,this.table&&this.resizeObserver.observe(this.table)}show(){this.table&&(J0.call(this),this.update(),this.showDisplay(),document.addEventListener("keydown",this.removeCell),gv.call(this,this.quill.root,()=>{this.update()}),gv.call(this,this.table.parentElement,()=>{this.update()}))}hideDisplay(){Object.assign(this.cellSelectWrap.style,{display:"none"}),this.isDisplaySelection=!1,this.table&&this.resizeObserver.unobserve(this.table)}hide(){J0.call(this),document.removeEventListener("keydown",this.removeCell),this.hideDisplay(),this.boundary=null,this.selectedTds=[],this.setSelectionTable(void 0),this.tableMenu&&this.tableMenu.hide()}destroy(){this.resizeObserver.disconnect(),this.hide(),this.cellSelectWrap.remove(),this.tableMenu&&this.tableMenu.destroy(),J0.call(this),this.quill.root.removeEventListener("mousedown",this.mouseDownHandler),document.removeEventListener("selectionchange",this.selectionChangeHandler),this.quill.off(Xe.events.SELECTION_CHANGE,this.quillSelectionChangeHandler),this.quill.off(Xe.events.TEXT_CHANGE,this.updateAfterEvent),this.quill.on(av.AFTER_TABLE_RESIZE,this.updateAfterEvent)}};const Iw=Xe.import("parchment"),Yd=Xe.import("delta"),JB=Xe.import("ui/icons"),QB=Xe.import("blots/break"),qB=Xe.import("blots/block"),kw=Xe.import("blots/block/embed");function jB(n,{tableId:e,rowId:t,colId:r}){let i={tableId:e,rowId:t,colId:r,colspan:1,rowspan:1},o=n.create(qe.tableCell,i),l=n.create(qe.tableCellInner,i),a=n.create("block");return a.appendChild(n.create("break")),l.appendChild(a),o.appendChild(l),o}function $B(n,e){return wF({onSelect:(t,r)=>{n.insertTable(t,r),e&&e.close()},customBtn:n.options.customBtn,texts:n.options.texts})}function Mw(n){return{bindInHead:!1,key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:[qe.tableCellInner],handler(e,t){let r=n?"prev":"next",i=n?"tail":"head";if(t.line[r])return!0;let o=this.quill.selection.getBounds(e.index),l=t.line.domNode.getBoundingClientRect();if(!o||!l)return!0;if(n){if(o.top-l.top>3)return!0}else if(l.bottom-o.bottom>3)return!0;let a,h,g,m;try{[a,h,g,m]=A1(t.line,[qe.tableWrapper,qe.tableMain,qe.tableRow,qe.tableCell])}catch{return!0}let x=h.getColIds(),w=a.descendants(Q0,0)[0],_;if(w){let R=window.getComputedStyle(w.domNode);_=r==="next"&&R.captionSide==="bottom"?w:r==="next"?a.next:w}else _=a[r];if(t.line[r]||!_)return!0;let E=g[r];if(E){let R=x.indexOf(m.colId),k=E.getCellByColId(x[R],r);if(!k)return!0;let O=k.children[i];O.children&&(O=O.children[i]);let P=O.offset(this.quill.scroll)+Math.min(t.offset,O.length()-1);this.quill.setSelection(P,0,Xe.sources.USER)}else{let R=_.offset(this.quill.scroll)+(n?_.length()-1:0);this.quill.setSelection(R,0,Xe.sources.USER)}return!1}}}var Sd,ez=(Sd=class{constructor(e,t){Ee(this,"quill");Ee(this,"options");Ee(this,"toolBox");Ee(this,"fixTableByLisenter",T_(this.balanceTables,100));Ee(this,"selector");Ee(this,"table");Ee(this,"tableSelection");Ee(this,"tableResize");Ee(this,"tableScrollbar");Ee(this,"tableAlign");Ee(this,"tableResizeScale");Ee(this,"resizeOb");if(this.quill=e,this.options=this.resolveOptions(t||{}),this.toolBox=this.initialContainer(),!this.options.scrollbar){let o=cu("scrollbar");this.quill.container.classList.add(o.bm("origin"))}this.options.selection&&(this.tableSelection=new this.options.selection(this,this.quill,this.options.selectionOptions));let r=this.quill.getModule("toolbar");if(r&&this.quill.theme.pickers){let[,o]=(r.controls||[]).find(([l])=>l===this.statics.toolName)||[];if(o&&o.tagName.toLocaleLowerCase()==="select"){let l=this.quill.theme.pickers.find(a=>a.select===o);l&&(l.label.innerHTML=this.options.icon,this.buildCustomSelect(this.options.customSelect,l),l.label.addEventListener("mousedown",()=>{if(!this.selector||!l)return;let a=this.selector.getBoundingClientRect(),{leftLimited:h}=iB(a);if(h){let g=l.label.getBoundingClientRect();Object.assign(l.options.style,{transform:`translateX(calc(-100% + ${g.width}px))`})}else Object.assign(l.options.style,{transform:void 0})}))}}let i=this.quill.getModule("keyboard");for(let o of Object.values(Sd.keyboradHandler))o.bindInHead?i.bindings[o.key].unshift(o):i.addBinding(o.key,o);this.quill.root.addEventListener("click",o=>{let l=o.composedPath();if(!l||l.length<=0)return;let a=l.find(h=>h.tagName&&h.tagName.toUpperCase()==="TABLE"&&h.classList.contains("ql-table"));if(a){if(this.table===a){this.tableSelection&&this.tableSelection.show(),this.tableAlign&&this.tableAlign.update(),this.tableResize&&this.tableResize.update(),this.tableScrollbar&&this.tableScrollbar.update();return}this.table&&this.hideTableTools(),this.showTableTools(a)}else this.table&&this.hideTableTools()},!1),this.quill.on(Xe.events.EDITOR_CHANGE,o=>{o===Xe.events.TEXT_CHANGE&&(!this.table||!this.quill.root.contains(this.table))&&this.hideTableTools()}),this.quillHack(),this.listenBalanceCells()}static register(){$g.allowedChildren=[Ff],Ff.allowedChildren=[eg,Ag,Q0],Ff.requiredContainer=$g,Q0.requiredContainer=Ff,Ag.allowedChildren=[Ig],Ag.requiredContainer=Ff,eg.allowedChildren=[qh],eg.requiredContainer=Ff,qh.allowedChildren=[Nf],Nf.requiredContainer=eg,Nf.allowedChildren=[cf,QB],Nf.requiredContainer=qh,cf.requiredContainer=Nf;let e=new Set(["table"]),t=Object.entries(Xe.imports).filter(([i,o])=>{let l=i.split("formats/")[1];return i.startsWith("formats/")&&!e.has(l)&&!I0(o,Iw.Attributor)&&(I0(o,qB)||I0(o,kw))}),r=t.reduce((i,[o,l])=>{let a=I0(l,kw)?Aw:lm;return i[o]=class extends gF(l,[a]){static register(){}},i},{});Xe.register({"blots/scroll":pB,"blots/block":lm,"blots/block/embed":Aw,...r,[`blots/${qe.container}`]:dg,[`formats/${qe.tableCell}`]:Nf,[`formats/${qe.tableCellInner}`]:cf,[`formats/${qe.tableRow}`]:qh,[`formats/${qe.tableBody}`]:eg,[`formats/${qe.tableCol}`]:Ig,[`formats/${qe.tableColgroup}`]:Ag,[`formats/${qe.tableCaption}`]:Q0,[`formats/${qe.tableMain}`]:Ff,[`formats/${qe.tableWrapper}`]:$g,"modules/clipboard":EB},!0)}get statics(){return this.constructor}initialContainer(){let e=cu("toolbox"),t=this.quill.addContainer(e.b()),r=()=>{let i=this.quill.root.getBoundingClientRect(),{offsetLeft:o,offsetTop:l}=this.quill.root;Object.assign(t.style,{top:`${l}px`,left:`${o}px`,width:`${i.width}px`,height:`${i.height}px`})};return this.resizeOb=new ResizeObserver(r),this.resizeOb.observe(this.quill.root),t}addContainer(e){if(Lg(e)){let t=document.createElement("div");for(let r of e.split(" "))t.classList.add(r);return this.toolBox.appendChild(t),t}else return this.toolBox.appendChild(e),e}resolveOptions(e){return Object.assign({customBtn:!1,texts:this.resolveTexts(e.texts||{}),full:!1,fullSwitch:!0,icon:JB.table,selectionOptions:{},alignOptions:{},scrollbarOptions:{},resizeOptions:{},resizeScaleOptions:{},autoMergeCell:!0},e)}resolveTexts(e){return Object.assign({fullCheckboxText:"Insert full width table",customBtnText:"Custom",confirmText:"Confirm",cancelText:"Cancel",rowText:"Row",colText:"Column",notPositiveNumberError:"Please enter a positive integer",custom:"Custom",clear:"Clear",transparent:"Transparent",perWidthInsufficient:"The percentage width is insufficient. To complete the operation, the table needs to be converted to a fixed width. Do you want to continue?",CopyCell:"Copy cell",CutCell:"Cut cell",InsertTop:"Insert row above",InsertRight:"Insert column right",InsertBottom:"Insert row below",InsertLeft:"Insert column Left",MergeCell:"Merge Cell",SplitCell:"Split Cell",DeleteRow:"Delete Row",DeleteColumn:"Delete Column",DeleteTable:"Delete table",BackgroundColor:"Set background color",BorderColor:"Set border color"},e)}quillHack(){var i;let e=this.quill.getSemanticHTML;this.quill.getSemanticHTML=(o=0,l)=>{let a=e.call(this.quill,o,l),h=Xe.import(`formats/${qe.tableWrapper}`),g=new DOMParser,m=g.parseFromString(a,"text/html");for(let x of Array.from(m.querySelectorAll(`.${h.className} caption[contenteditable], .${h.className} td > [contenteditable]`)))x.removeAttribute("contenteditable");return m.body.innerHTML};let t=this.quill.format;this.quill.format=function(o,l,a=Xe.sources.API){if(!(this.scroll.query(o).prototype instanceof Iw.EmbedBlot)){let g=this.getModule(kb.moduleName),m=this.getSelection(!0);if(!this.getFormat(m)[qe.tableCellInner]||m.length>0||g&&g.tableSelection&&g.tableSelection.selectedTds.length<=1)return t.call(this,o,l,a);if(g&&g.tableSelection&&g.tableSelection.selectedTds.length>0){let w=g.tableSelection.selectedTds,_=!1,E=[];for(let P of w){let z=P.offset(this.scroll),H=P.length();E.push({index:z,length:H}),this.getFormat(z,H)[o]!==l&&(_=!0)}let R=_?l:!1,k=new Yd;for(let[P,{index:z,length:H}]of E.entries()){let G=P===0?0:E[P-1].index+E[P-1].length;k.retain(z-G).retain(H,{[o]:R})}let O=this.updateContents(k,a);return this.blur(),O}}return t.call(this,o,l,a)};let r=this.quill.theme.modules.toolbar;if(r){let o=(i=r.handlers)==null?void 0:i.clean;if(o){let l=(a,h,g=()=>"")=>{let m=this.quill.getText(a,h),[x,w]=this.quill.getLine(a+h),_=0,E=new Yd;x!=null&&(_=x.length()-w,E=x.delta().slice(w,w+_-1).insert(`
|
|
459
|
-
`));let R=this.quill.getContents(a,h+_),k=R.diff(new Yd().insert(m).concat(E)),O=0,P=k.ops.map(z=>{let{attributes:H,...G}=z;if(z.insert?O-=Lg(z.insert)?z.insert.length:1:z.retain?O+=vF(z.retain)?z.retain:1:z.delete&&(O+=z.delete),H){let{[qe.tableCellInner]:N,...J}=H;if(g){let Y=R.slice(O-1,O).ops[0];if(Y&&Y.attributes&&Y.attributes[qe.tableCellInner]){let K=Y.attributes[qe.tableCellInner],{style:fe,...X}=K,te=g(fe);return te?{...G,attributes:{...J,[qe.tableCellInner]:{style:te,...X}}}:{...G,attributes:{...J,[qe.tableCellInner]:X}}}}return{...G,attributes:{...J}}}return z});return new Yd(P)};r.handlers.clean=function(a){let h=this.quill.getModule(kb.moduleName),g=this.quill.getSelection();if(g&&g.length>0&&this.quill.getFormat(g)[qe.tableCellInner]){let x=l(g.index,g.length,!1),w=new Yd().retain(g.index).concat(x);this.quill.updateContents(w,Xe.sources.USER);return}if(h&&h.tableSelection&&h.tableSelection.selectedTds.length>0&&h.tableSelection.table){let m=Xe.find(h.tableSelection.table);if(!m){console.warn("TableMainFormat not found");return}let x=h.tableSelection.selectedTds,w=new Set,_=[];for(let P of x)if(P.parent instanceof Nf){for(let z of P.parent.getNearByCell("top"))w.has(z)||(w.add(z),_.push({td:z,cleanBorder:"bottom"}));for(let z of P.parent.getNearByCell("left"))w.has(z)||(w.add(z),_.push({td:z,cleanBorder:"right"}));w.add(P.parent),_.push({td:P.parent,cleanBorder:!0})}let E=m.descendants(Nf),R=new Map(E.map((P,z)=>[P,z]));_.sort((P,z)=>R.get(P.td)-R.get(z.td));let k=new Yd,O=0;for(let{td:P,cleanBorder:z}of _){let H=P.getCellInner().offset(this.quill.scroll),G=P.getCellInner().length(),N=l(H,G-1,Y=>{if(!Y||z===!0)return"";let K=pv(Y),fe=Object.keys(K).filter(X=>!X.startsWith(k1(`border-${z}`))).reduce((X,te)=>(X[te]=K[te],X),{});return om(fe)}),J=new Yd().retain(H-O).concat(N);k=k.concat(J),O=H+G}this.quill.updateContents(k,Xe.sources.USER),x.length>1&&this.quill.blur();return}return o.call(this,a)}}}}showTableTools(e){var t;e&&(this.table=e,(t=this.tableSelection)==null||t.show(),this.options.align&&(this.tableAlign=new this.options.align(this,e,this.quill,this.options.alignOptions)),this.options.scrollbar&&(this.tableScrollbar=new this.options.scrollbar(this,e,this.quill,this.options.scrollbarOptions)),this.options.resize&&(this.tableResize=new this.options.resize(this,e,this.quill,this.options.resizeOptions)),this.options.resizeScale&&(this.tableResizeScale=new this.options.resizeScale(this,e,this.quill,this.options.resizeScaleOptions)))}hideTableTools(){var e;(e=this.tableSelection)==null||e.hide(),this.tableScrollbar&&(this.tableScrollbar.destroy(),this.tableScrollbar=void 0),this.tableAlign&&(this.tableAlign.destroy(),this.tableAlign=void 0),this.tableResize&&(this.tableResize.destroy(),this.tableResize=void 0),this.tableResizeScale&&this.tableResizeScale.destroy(),this.table=void 0}async buildCustomSelect(e,t){if(!e||!nm(e))return;let r=document.createElement("div");if(r.classList.add("ql-custom-select"),this.selector=await e(this,t),r.appendChild(this.selector),this.options.fullSwitch){let i=cu("creator"),o=document.createElement("label");o.classList.add(i.be("checkbox"));let l=document.createElement("input");l.type="checkbox",l.checked=this.options.full,l.addEventListener("change",()=>{this.options.full=l.checked});let a=document.createElement("span");a.textContent=this.options.texts.fullCheckboxText,o.appendChild(l),o.appendChild(a),r.appendChild(o)}t.options.innerHTML="",t.options.appendChild(r)}setCellAttrs(e,t,r,i=!1){if(e.length!==0)for(let o of e)o.setFormatValue(t,r,i)}getTextByCell(e){let t="";for(let r of e){let i=r.offset(this.quill.scroll),o=r.length();for(let l of this.quill.getContents(i,o).ops)Lg(l.insert)&&(t+=l.insert)}return t}getHTMLByCell(e,t=!1){if(e.length===0)return"";let r=null;try{for(let k of e){let O=Kl(k,qe.tableMain);if(r||(r=O),O!==r)return console.error("tableMain is not same"),""}}catch{return console.error("tds must be in same tableMain"),""}if(!r)return"";let i=this.quill.getIndex(r),o=r.length(),l=this.quill.getSemanticHTML(i,o),a=new DOMParser,h=a.parseFromString(l,"text/html"),g=[],m=new Set,x=new Set;for(let k of e)m.add(k.colId),x.add(`${k.rowId}-${k.colId}`);for(let k of Array.from(h.querySelectorAll("col")))m.has(k.dataset.colId)?g.push(k.getAttribute("width")):k.remove();let w=0,_=null;for(let k of Array.from(h.querySelectorAll("td")))if(x.has(`${k.dataset.rowId}-${k.dataset.colId}`))_!==k.dataset.rowId&&(w+=1,_=k.dataset.rowId);else{let O=k.parentElement;k.remove(),O&&O.children.length<=0&&O.remove()}let E=Array.from(h.querySelectorAll("col")),R=E.map(k=>Ig.value(k));if(r.full){let k=R.reduce((O,P)=>P.width+O,0);for(let[O,P]of R.entries())P.width=Math.round(P.width/k*100),E[O].setAttribute("width",`${P.width}%`)}else{let k=0;for(let P of R)k+=P.width;let O=h.querySelector("table");O.style.width=`${k}px`}if(t){let k=r.getRows();if(w===k.length)this.removeCol(e);else for(let O of e)O.domNode.innerHTML="<p><br></p>"}return h.body.innerHTML}insertTable(e,t){if(e>=30||t>=30)throw Error("Both rows and columns must be less than 30.");this.quill.focus();let r=this.quill.getSelection();if(r==null)return;let[i]=this.quill.getLeaf(r.index);if(!i)return;if(
|
|
458
|
+
`;const WB="color-selector",io={Break:{name:"break"},CopyCell:{name:"CopyCell",tip:"Copy cell",icon:IB,handle:(n,e)=>{let t=n.getTextByCell(e),r=n.getHTMLByCell(e),i=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([r],{type:"text/html"})});navigator.clipboard.write([i]),n.hideTableTools()}},CutCell:{name:"CutCell",tip:"Cut cell",icon:kB,handle:(n,e)=>{let t=n.getTextByCell(e),r=n.getHTMLByCell(e,!0),i=new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([r],{type:"text/html"})});navigator.clipboard.write([i]),n.hideTableTools()}},InsertTop:{name:"InsertTop",icon:PB,tip:"Insert row above",handle:(n,e)=>{n.appendRow(e,!1),n.hideTableTools()}},InsertRight:{name:"InsertRight",icon:OB,tip:"Insert column right",handle:(n,e)=>{n.appendCol(e,!0),n.hideTableTools()}},InsertBottom:{name:"InsertBottom",icon:MB,tip:"Insert row below",handle:(n,e)=>{n.appendRow(e,!0),n.hideTableTools()}},InsertLeft:{name:"InsertLeft",icon:LB,tip:"Insert column Left",handle:(n,e)=>{n.appendCol(e,!1),n.hideTableTools()}},MergeCell:{name:"MergeCell",icon:DB,tip:"Merge Cell",handle:(n,e)=>{n.mergeCells(e),n.hideTableTools()}},SplitCell:{name:"SplitCell",icon:zB,tip:"Split Cell",handle:(n,e)=>{n.splitCell(e),n.hideTableTools()}},DeleteRow:{name:"DeleteRow",icon:FB,tip:"Delete Row",handle:(n,e)=>{n.removeRow(e),n.hideTableTools()}},DeleteColumn:{name:"DeleteColumn",icon:NB,tip:"Delete Column",handle:(n,e)=>{n.removeCol(e),n.hideTableTools()}},DeleteTable:{name:"DeleteTable",icon:BB,tip:"Delete table",handle:(n,e)=>{n.deleteTable(e)}},BackgroundColor:{name:"BackgroundColor",icon:AB,isColorChoose:!0,tip:"Set background color",key:"background-color",handle:(n,e,t)=>{n.setCellAttrs(e,"background-color",t,!0)}},BorderColor:{name:"BorderColor",icon:RB,isColorChoose:!0,tip:"Set border color",key:"border-color",handle:(n,e,t)=>{n.setCellAttrs(e,"border-color",t,!0)}},SwitchWidth:{name:"SwitchWidth",icon:TB,tip:"Switch table width",handle:n=>{if(!n.table)return;let e=Xe.find(n.table);e&&(e.full?e.cancelFull():e.setFull())}},InsertCaption:{name:"InsertCaption",icon:HB,tip:"Insert table caption",handle:n=>{if(!n.table)return;let e=Xe.find(n.table);if(!e)return;let t=n.quill.scroll.create("text","Table Caption").wrap(qe.tableCaption,{tableId:e.tableId});e.insertBefore(t,e.children.head)}}},P0=10,e1=cu("color-map"),Lu={selectWrapper:e1.b(),used:e1.bm("used"),item:e1.be("item"),btn:e1.be("btn"),map:e1.be("content"),mapRow:e1.be("content-row")};var UB=class{constructor(n,e,t){Ee(this,"usedColors",new Set);Ee(this,"options");Ee(this,"menu",null);Ee(this,"isMenuDisplay",!1);Ee(this,"isColorPicking",!1);Ee(this,"updateUsedColor");Ee(this,"tooltipItem",[]);Ee(this,"activeTooltip",null);Ee(this,"bem",cu("menu"));Ee(this,"colorItemClass",`color-${Na()}`);Ee(this,"colorChooseTooltipOption",{direction:"top"});Ee(this,"updateWhenTextChange",()=>{this.isMenuDisplay&&this.update()});this.tableModule=n,this.quill=e,this.options=this.resolveOptions(t);try{let r=localStorage.getItem(this.options.localstorageKey)||"[]",i=JSON.parse(r);a4(i)||(i=[]),i.slice(-1*P0).map(o=>this.usedColors.add(o))}catch{}this.updateUsedColor=T4(r=>{if(!r)return;if(this.usedColors.add(r),this.usedColors.size>P0){let o=Array.from(this.usedColors).slice(-1*P0);this.usedColors.clear(),o.map(l=>this.usedColors.add(l))}localStorage.setItem(this.options.localstorageKey,JSON.stringify(Array.from(this.usedColors)));let i=Array.from(document.querySelectorAll(`.${this.colorItemClass}.${Lu.used}`));for(let o of i){let l=document.createElement("div");l.classList.add(Lu.item),l.style.backgroundColor=String(r),Array.from(o.querySelectorAll(`.${Lu.item}[style*="background-color: ${l.style.backgroundColor}"]`)).length<=0&&o.appendChild(l);let h=Array.from(o.querySelectorAll(`.${Lu.item}`)).slice(0,-1*P0);for(let g of h)g.remove()}},1e3),this.quill.on(Xe.events.TEXT_CHANGE,this.updateWhenTextChange)}resolveOptions(n){return Object.assign({tipText:!0,tools:[io.InsertTop,io.InsertRight,io.InsertBottom,io.InsertLeft,io.Break,io.MergeCell,io.SplitCell,io.Break,io.DeleteRow,io.DeleteColumn,io.DeleteTable,io.Break,io.BackgroundColor,io.BorderColor],localstorageKey:"__table-bg-used-color",defaultColorMap:aF},n)}buildTools(){let n=document.createElement("div");n.classList.add(this.bem.b()),Object.assign(n.style,{display:"flex"});for(let e of this.options.tools){let{name:t,icon:r,handle:i,isColorChoose:o,key:l,tip:a=""}=e,h=document.createElement("span");if(h.classList.add(this.bem.be("item")),t==="break")h.classList.add(this.bem.is("break"));else{let g=document.createElement("i");if(g.classList.add("icon"),nm(r)?g.appendChild(r(this.tableModule)):g.innerHTML=r,h.appendChild(g),o&&l){let x=this.createColorChoose(h,{name:t,icon:r,handle:i,isColorChoose:o,key:l,tip:a});this.tooltipItem.push(x),h.classList.add(WB)}else nm(i)&&h.addEventListener("click",x=>{this.quill.focus(),i(this.tableModule,this.getSelectedTds(),x)},!1);let m=this.tableModule.options.texts[t]||a;this.options.tipText&&m&&a&&this.createTipText(h,m)}n.appendChild(h)}return n}createColorChoose(n,{handle:e,key:t}){let r=document.createElement("div");if(r.classList.add(Lu.selectWrapper),this.options.defaultColorMap.length>0){let _=document.createElement("div");_.classList.add(Lu.map);for(let E of this.options.defaultColorMap){let R=document.createElement("div");R.classList.add(Lu.mapRow);for(let k of E){let O=document.createElement("div");O.classList.add(Lu.item),O.style.backgroundColor=k,R.appendChild(O)}_.appendChild(R)}r.appendChild(_)}let i=document.createElement("div");i.classList.add(Lu.mapRow),Object.assign(i.style,{marginTop:"4px"});let o=document.createElement("div");o.classList.add(Lu.btn,"transparent"),o.textContent=this.tableModule.options.texts.transparent,o.addEventListener("click",()=>{e(this.tableModule,this.getSelectedTds(),"transparent")});let l=document.createElement("div");l.classList.add(Lu.btn,"clear"),l.textContent=this.tableModule.options.texts.clear,l.addEventListener("click",()=>{e(this.tableModule,this.getSelectedTds(),null)});let a=document.createElement("div");a.classList.add(Lu.btn,"custom"),a.textContent=this.tableModule.options.texts.custom;let h=mF({onChange:_=>{e(this.tableModule,this.getSelectedTds(),_),this.updateUsedColor(_)}}),{hide:g,destroy:m}=Lb(a,{direction:"right",type:"click",content:h,container:a});i.appendChild(o),i.appendChild(l),i.appendChild(a),r.appendChild(i);let x=document.createElement("div");x.classList.add(Lu.used,this.colorItemClass);for(let _ of this.usedColors){let E=document.createElement("div");E.classList.add(Lu.item),E.style.backgroundColor=_,x.appendChild(E)}r.appendChild(x),r.addEventListener("click",_=>{_.stopPropagation(),g();let E=_.target,R=E.style.backgroundColor,k=this.getSelectedTds();if(E&&R&&k.length>0){if(this.tableModule.setCellAttrs(k,t,R,!0),!E.closest(`.${Lu.item}`))return;this.updateUsedColor(R)}});let w=Lb(n,{type:"click",content:r,onOpen:()=>(this.isMenuDisplay&&this.tableModule.tableSelection&&this.tableModule.tableSelection.hideDisplay(),this.setActiveTooltip(w),!1),onClose:()=>(this.isMenuDisplay&&this.tableModule.tableSelection&&(this.tableModule.tableSelection.updateWithSelectedTds(),this.tableModule.tableSelection.showDisplay()),r.contains(h)&&g(),this.activeTooltip===w&&(this.activeTooltip=null),!1),onDestroy:()=>{m(),this.activeTooltip===w&&(this.activeTooltip=null)},...this.colorChooseTooltipOption});return w.isColorPick=!0,w}setActiveTooltip(n){this.activeTooltip&&this.activeTooltip!==n&&this.activeTooltip.hide(!0),this.activeTooltip=n}getSelectedTds(){var n;return((n=this.tableModule.tableSelection)==null?void 0:n.selectedTds)||[]}createTipText(n,e){let t=Lb(n,{msg:e});t&&this.tooltipItem.push(t)}show(){!this.menu||!this.tableModule.tableSelection||!this.tableModule.tableSelection.boundary||(Object.assign(this.menu.style,{display:"flex"}),this.isMenuDisplay=!0,this.update())}update(){}hide(){this.menu&&Object.assign(this.menu.style,{display:"none"});for(let n of this.tooltipItem)n.hide(!0);this.isMenuDisplay=!1}destroy(){this.quill.off(Xe.events.TEXT_CHANGE,this.updateWhenTextChange),this.activeTooltip=null;for(let n of this.tooltipItem)n.destroy();this.menu&&(this.hide(),this.menu.remove(),this.menu=null)}},GB=class extends UB{constructor(n,e,t){super(n,e,t),this.tableModule=n,this.quill=e,this.menu=this.buildTools(),this.tableModule.addContainer(this.menu),this.show(),this.update()}update(){!this.isMenuDisplay||!this.menu||!this.tableModule.tableSelection||!this.tableModule.tableSelection.isDisplaySelection||(super.update(),E4(this.tableModule.tableSelection.cellSelect,this.menu,{placement:"bottom",middleware:[_4(),C4({limiter:S4()}),w4(20)]}).then(({x:n,y:e})=>{Object.assign(this.menu.style,{left:`${n}px`,top:`${e}px`})}))}};const Np=n=>!n.full&&n.align==="right";var YB=class{constructor(n,e){Ee(this,"colIndex",-1);Ee(this,"tableMain");Ee(this,"dragging",!1);Ee(this,"dragColBreak",null);Ee(this,"handleColMouseUpFunc",this.handleColMouseUp.bind(this));Ee(this,"handleColMouseMoveFunc",this.handleColMouseMove.bind(this));Ee(this,"handleColMouseDownFunc",this.handleColMouseDown.bind(this));Ee(this,"rowIndex",-1);Ee(this,"dragRowBreak",null);Ee(this,"handleRowMouseUpFunc",this.handleRowMouseUp.bind(this));Ee(this,"handleRowMouseMoveFunc",this.handleRowMouseMove.bind(this));Ee(this,"handleRowMouseDownFunc",this.handleRowMouseDown.bind(this));Ee(this,"dragBEM",cu("drag-line"));this.tableModule=n,this.quill=e}findCurrentColIndex(n){return-1}colWidthChange(n,e,t){}async createConfirmDialog({message:n,confirm:e,cancel:t}){return new Promise(r=>{let i=document.createElement("div");Object.assign(i.style,{padding:"8px 12px",fontSize:"14px",lineHeight:"1.5"});let o=document.createElement("p");o.textContent=n;let l=document.createElement("div");Object.assign(l.style,{display:"flex",justifyContent:"flex-end",gap:"6px"});let a=cv({content:t}),h=cv({type:"confirm",content:e});l.appendChild(a),l.appendChild(h),i.appendChild(o),i.appendChild(l);let{close:g}=c4({child:i});a.addEventListener("click",()=>{r(!1),g()}),h.addEventListener("click",()=>{r(!0),g()})})}async handleColMouseUp(){if(!this.dragColBreak||!this.tableMain||this.colIndex===-1)return;let n=this.tableMain.getCols(),e=Number.parseInt(this.dragColBreak.dataset.w||"0"),t=this.tableMain.full,r=!1,i=[];if(t){let o=this.tableMain.domNode.getBoundingClientRect().width,l=e/o*100,a=n[this.colIndex].width;if(l<a){if(l=Math.max(Ss.colMinWidthPre,l),n[this.colIndex+1]||n[this.colIndex-1]){let h=n[this.colIndex+1]?this.colIndex+1:this.colIndex-1;i.push({index:h,width:n[h].width+a-l})}else l=100;r=!0,i.push({index:this.colIndex,width:l})}else if(n[this.colIndex+1]){let h=a+n[this.colIndex+1].width;l=Math.min(h-Ss.colMinWidthPre,l),r=!0,i.push({index:this.colIndex,width:l},{index:this.colIndex+1,width:h-l})}}else this.tableMain.domNode.style.width=`${Number.parseFloat(this.tableMain.domNode.style.width)-n[this.colIndex].domNode.getBoundingClientRect().width+e}px`,r=!0,i.push({index:this.colIndex,width:e});if(document.body.removeChild(this.dragColBreak),this.dragColBreak=null,document.removeEventListener("mouseup",this.handleColMouseUpFunc),document.removeEventListener("mousemove",this.handleColMouseMoveFunc),this.dragging=!1,r){let o=this.tableMain.domNode.getBoundingClientRect().width;if(t){let l=0,a=new Set(i.map(({index:h,width:g})=>(l+=g,h)));for(let[h,g]of n.entries())a.has(h)||(l+=g.width);if(l>100){if(!await this.createConfirmDialog({message:this.tableModule.options.texts.perWidthInsufficient,confirm:this.tableModule.options.texts.confirmText,cancel:this.tableModule.options.texts.cancelText}))return;this.tableMain.cancelFull(),t=!1;for(let[h,g]of i.entries()){let{width:m,index:x}=g;i[h]={index:x,width:m/100*o}}}}for(let{index:l,width:a}of i)n[l].width=`${Math.round(a)}${t?"%":"px"}`,this.colWidthChange(l,{px:Math.round(a/100*o),pre:Math.round(a)},t)}this.quill.emitter.emit(av.AFTER_TABLE_RESIZE)}getColumnRect(n){if(!this.tableMain)return null;let e=this.tableMain.getCols();if(n>=e.length)return null;let t=e[0].domNode.getBoundingClientRect().left;for(let o=0;o<n;o++){let l=e[o].domNode.getBoundingClientRect();t+=l.width}let r=e[n],i=r.domNode.getBoundingClientRect().width;return{left:t,right:t+i,width:i}}handleColMouseMove(n){if(n.preventDefault(),!this.dragColBreak||!this.tableMain||this.colIndex===-1)return;let e=this.tableMain.getCols(),t=this.getColumnRect(this.colIndex),r=this.tableMain.domNode.getBoundingClientRect(),i=n.clientX;if(this.tableMain.full){let l=Ss.colMinWidthPre/100*r.width,a=r.right;i>t.right&&e[this.colIndex+1]&&(a=Math.max(this.getColumnRect(this.colIndex+1).right-l,t.left+l));let h=t.left+l;i=Math.min(Math.max(i,h),a)}else Np(this.tableMain)?t.right-i<Ss.colMinWidthPx&&(i=t.right-Ss.colMinWidthPx):i-t.left<Ss.colMinWidthPx&&(i=t.left+Ss.colMinWidthPx);let o=i-t.left;return Np(this.tableMain)&&(o=t.right-i),this.dragColBreak.style.left=`${i}px`,this.dragColBreak.dataset.w=String(o),{left:i,width:o}}handleColMouseDown(n){if(n.button!==0||(n.preventDefault(),!this.tableMain))return;let{rect:e,body:t}=qm(this.tableMain);if(!t||!e)return;let r=this.tableMain.getCols();if(this.colIndex=this.findCurrentColIndex(n),this.colIndex===-1)return;let i=r[this.colIndex].width,o=this.tableMain.full?i/100*e.width:i;document.addEventListener("mouseup",this.handleColMouseUpFunc),document.addEventListener("mousemove",this.handleColMouseMoveFunc),this.dragging=!0;let l=document.createElement("div");l.classList.add(this.dragBEM.b(),this.dragBEM.is("col")),l.dataset.w=String(o);let a={top:e.y,left:n.clientX,height:e.height};Object.assign(l.style,{top:`${a.top}px`,left:`${a.left}px`,height:`${a.height}px`});let h=document.body;return h.appendChild(l),this.dragColBreak&&h.removeChild(this.dragColBreak),this.dragColBreak=l,a}findCurrentRowIndex(n){return-1}rowHeightChange(n,e){}handleRowMouseUp(){if(!this.tableMain||!this.dragRowBreak||this.rowIndex===-1)return;let n=Number.parseInt(this.dragRowBreak.dataset.h||"0");this.tableMain.getRows()[this.rowIndex].setHeight(`${n}px`),this.rowHeightChange(this.rowIndex,n),document.body.removeChild(this.dragRowBreak),this.dragRowBreak=null,document.removeEventListener("mouseup",this.handleRowMouseUpFunc),document.removeEventListener("mousemove",this.handleRowMouseMoveFunc),this.dragging=!1,this.quill.emitter.emit(av.AFTER_TABLE_RESIZE)}handleRowMouseMove(n){if(!this.tableMain||!this.dragRowBreak||this.rowIndex===-1)return;n.preventDefault();let e=this.tableMain.getRows(),t=e[this.rowIndex].domNode.getBoundingClientRect(),r=n.clientY;return r-t.y<Ss.rowMinHeightPx&&(r=t.y+Ss.rowMinHeightPx),this.dragRowBreak.style.top=`${r}px`,this.dragRowBreak.dataset.h=String(r-t.y),{top:r,height:r-t.y}}handleRowMouseDown(n){if(n.button!==0||(n.preventDefault(),!this.tableMain)||(this.rowIndex=this.findCurrentRowIndex(n),this.rowIndex===-1))return;this.dragging=!0,document.addEventListener("mouseup",this.handleRowMouseUpFunc),document.addEventListener("mousemove",this.handleRowMouseMoveFunc);let e=this.tableMain.getRows(),t=e[this.rowIndex].domNode.getBoundingClientRect().height,r=this.tableMain.domNode.getBoundingClientRect(),i=document.createElement("div");i.classList.add(this.dragBEM.b(),this.dragBEM.is("row")),i.dataset.h=String(t);let o={top:n.clientY,left:r.x,width:r.width};Object.assign(i.style,{top:`${o.top}px`,left:`${o.left}px`,width:`${o.width}px`});let l=document.body;return l.appendChild(i),this.dragRowBreak&&l.removeChild(this.dragRowBreak),this.dragRowBreak=i,o}update(){}destroy(){}},VB=class extends YB{constructor(e,t,r){super(e,r);Ee(this,"colResizer");Ee(this,"rowResizer");Ee(this,"currentTableCell");Ee(this,"dragging",!1);Ee(this,"curColIndex",-1);Ee(this,"curRowIndex",-1);Ee(this,"tableCellBlot");Ee(this,"bem",cu("resize-line"));Ee(this,"mousemoveHandler",e=>{if(this.dragging||this.tableModule.tableSelection&&this.tableModule.tableSelection.dragging)return;let t=this.findTableCell(e);if(!t)return this.hide();let r=Xe.find(t);r&&this.currentTableCell!==t&&(this.show(),this.currentTableCell=t,this.tableCellBlot=r,this.tableMain=Kl(r,qe.tableMain),this.tableMain.getCols().length>0&&this.updateColResizer(),this.updateRowResizer())});Ee(this,"hideWhenTextChange",()=>{this.hide()});Ee(this,"handleColMouseUpFunc",(async function(){await this.handleColMouseUp(),this.updateColResizer()}).bind(this));Ee(this,"handleRowMouseUpFunc",(function(){this.handleRowMouseUp(),this.updateRowResizer()}).bind(this));this.tableModule=e,this.table=t,this.colResizer=this.tableModule.addContainer(this.bem.be("col")),this.rowResizer=this.tableModule.addContainer(this.bem.be("row")),this.table.addEventListener("mousemove",this.mousemoveHandler),this.quill.on(Xe.events.TEXT_CHANGE,this.hideWhenTextChange)}findTableCell(e){for(let t of e.composedPath()){if(t instanceof HTMLElement&&t.tagName==="TD")return t;if(t===document.body)return null}return null}findCurrentColIndex(){var e;return this.curColIndex+(((e=this.tableCellBlot)==null?void 0:e.colspan)||1)-1}updateColResizer(){if(!this.tableMain||!this.tableCellBlot)return;let e=this.tableCellBlot;this.tableModule.toolBox.removeChild(this.colResizer),this.colResizer=this.tableModule.addContainer(this.bem.be("col"));let[t]=A1(e,[qe.tableBody]),r=t.domNode.getBoundingClientRect(),i=e.domNode.getBoundingClientRect(),o=this.quill.root.getBoundingClientRect(),l=i.right-o.x;Np(this.tableMain)&&(l=i.left-o.x),Object.assign(this.colResizer.style,{top:`${r.y-o.y}px`,left:`${l}px`,height:`${r.height}px`});let a=this.tableMain.getCols();this.curColIndex=a.findIndex(h=>h.colId===e.colId),this.colResizer.addEventListener("mousedown",this.handleColMouseDownFunc),this.colResizer.addEventListener("dragstart",h=>{h.preventDefault()})}findCurrentRowIndex(){return this.curRowIndex}updateRowResizer(){if(!this.tableMain||!this.tableCellBlot)return;let e=this.tableCellBlot;this.tableModule.toolBox.removeChild(this.rowResizer),this.rowResizer=this.tableModule.addContainer(this.bem.be("row"));let t=e.parent;if(!(t instanceof qh))return;let[r]=A1(e,[qe.tableBody]),i=r.domNode.getBoundingClientRect(),o=e.domNode.getBoundingClientRect(),l=this.quill.root.getBoundingClientRect();Object.assign(this.rowResizer.style,{top:`${o.bottom-l.y}px`,left:`${i.x-l.x}px`,width:`${i.width}px`});let a=this.tableMain.getRows();this.curRowIndex=a.indexOf(t),this.rowResizer.addEventListener("mousedown",this.handleRowMouseDownFunc),this.rowResizer.addEventListener("dragstart",h=>{h.preventDefault()})}show(){this.rowResizer.classList.remove(this.bem.is("hidden")),this.colResizer.classList.remove(this.bem.is("hidden"))}hide(){this.currentTableCell=void 0,this.rowResizer.classList.add(this.bem.is("hidden")),this.colResizer.classList.add(this.bem.is("hidden"))}update(){this.updateColResizer(),this.updateRowResizer()}destroy(){this.colResizer.remove(),this.rowResizer.remove(),this.table.removeEventListener("mousemove",this.mousemoveHandler),this.quill.off(Xe.events.TEXT_CHANGE,this.hideWhenTextChange)}},ZB=class{constructor(n,e,t,r){Ee(this,"scrollHandler",[]);Ee(this,"tableMainBlot",null);Ee(this,"tableWrapperBlot",null);Ee(this,"bem",cu("scale"));Ee(this,"startX",0);Ee(this,"startY",0);Ee(this,"offset",6);Ee(this,"options");Ee(this,"root");Ee(this,"block");Ee(this,"resizeobserver",new ResizeObserver(()=>this.update()));Ee(this,"updateWhenTextChange",()=>{this.update()});this.tableModule=n,this.table=e,this.quill=t,this.options=this.resolveOptions(r),this.tableMainBlot=Xe.find(e),this.tableMainBlot&&!this.tableMainBlot.full&&(this.tableWrapperBlot=this.tableMainBlot.parent,this.buildResizer(),this.show()),this.quill.on(Xe.events.TEXT_CHANGE,this.updateWhenTextChange)}resolveOptions(n){return Object.assign({blockSize:12},n)}buildResizer(){if(!this.tableMainBlot||!this.tableWrapperBlot)return;this.root=this.tableModule.addContainer(this.bem.b()),this.root.classList.add(this.bem.is("hidden")),this.block=document.createElement("div"),this.block.classList.add(this.bem.be("block")),Object.assign(this.block.style,{width:`${this.options.blockSize}px`,height:`${this.options.blockSize}px`}),this.root.appendChild(this.block);let n=[],e=[],t=i=>{if(!this.tableMainBlot)return;let o=Np(this.tableMainBlot)?-1:1,l=(i.clientX-this.startX)*o,a=i.clientY-this.startY,h=Math.floor(l/n.length),g=Math.floor(a/e.length);for(let{blot:m,width:x}of n)m.width=Math.max(x+h,Ss.colMinWidthPx);for(let{blot:m,height:x}of e)m.setHeight(`${Math.max(x+g,Ss.rowMinHeightPx)}px`)},r=()=>{n=[],e=[],document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",r)};this.block.addEventListener("mousedown",i=>{!this.tableMainBlot||this.isTableOutofEditor()||(this.startX=i.clientX,this.startY=i.clientY,n=this.tableMainBlot.getCols().map(o=>({blot:o,width:Math.floor(o.width)})),e=this.tableMainBlot.getRows().map(o=>({blot:o,height:Math.floor(o.domNode.getBoundingClientRect().height)})),document.addEventListener("mousemove",t),document.addEventListener("mouseup",r))}),this.block.addEventListener("dragstart",i=>i.preventDefault()),this.resizeobserver.observe(this.tableMainBlot.domNode),gv.call(this,this.quill.root,()=>this.update()),gv.call(this,this.tableWrapperBlot.domNode,()=>this.update())}isTableOutofEditor(){if(!this.tableMainBlot||!this.tableWrapperBlot||this.tableMainBlot.full)return!1;let n=this.tableMainBlot.domNode.getBoundingClientRect(),e=this.tableWrapperBlot.domNode.getBoundingClientRect();if(n.width>e.width){for(let t of this.tableMainBlot.getCols())t.width=Math.floor(t.width/n.width*e.width);return this.tableMainBlot.colWidthFillTable(),!0}return!1}update(){if(!this.block||!this.root||!this.tableMainBlot||!this.tableWrapperBlot)return;if(this.tableMainBlot.full){this.hide();return}let{rect:n,body:e}=qm(this.tableMainBlot);if(!e||!n)return;let t=this.tableWrapperBlot.domNode.getBoundingClientRect(),r=this.quill.root.getBoundingClientRect(),{scrollTop:i,scrollLeft:o}=this.tableWrapperBlot.domNode,l=this.options.blockSize*2+this.offset,a=Math.min(n.width,t.width)+l,h=Math.min(n.height,t.height)+l;Object.assign(this.root.style,{width:`${a}px`,height:`${h}px`,left:`${Math.max(n.x,t.x)-r.x-this.options.blockSize}px`,top:`${Math.max(n.y,t.y)-r.y-this.options.blockSize}px`});let g={left:`${n.width+l-o}px`,top:`${h-i}px`};Np(this.tableMainBlot)?(this.root.classList.add(this.bem.is("align-right")),g.left=`${this.options.blockSize+-1*o}px`):this.root.classList.remove(this.bem.is("align-right")),Object.assign(this.block.style,g)}show(){this.root&&(this.root.classList.remove(this.bem.is("hidden")),this.update())}hide(){this.root&&this.root.classList.add(this.bem.is("hidden"))}destroy(){this.hide(),this.quill.off(Xe.events.TEXT_CHANGE,this.updateWhenTextChange),this.resizeobserver.disconnect(),this.root&&this.root.remove(),J0.call(this)}};const XB=0;var KB=class{constructor(n,e,t={}){Ee(this,"options");Ee(this,"boundary",null);Ee(this,"scrollRecordEls",[]);Ee(this,"startScrollRecordPosition",[]);Ee(this,"selectedTableScrollX",0);Ee(this,"selectedTableScrollY",0);Ee(this,"selectedEditorScrollX",0);Ee(this,"selectedEditorScrollY",0);Ee(this,"selectedTds",[]);Ee(this,"cellSelectWrap");Ee(this,"cellSelect");Ee(this,"dragging",!1);Ee(this,"scrollHandler",[]);Ee(this,"tableMenu");Ee(this,"resizeObserver");Ee(this,"table");Ee(this,"isDisplaySelection",!1);Ee(this,"bem",cu("selection"));Ee(this,"lastSelection",{anchorNode:null,anchorOffset:0,focusNode:null,focusOffset:0});Ee(this,"updateAfterEvent",()=>{this.updateWithSelectedTds()});Ee(this,"quillSelectionChangeHandler",(n,e,t)=>{if(t!==Xe.sources.API&&n&&!this.quill.composition.isComposing&&this.selectedTds.length>0){let r=this.quill.getFormat(n),[i]=this.quill.getLine(n.index),o=!!r[qe.tableCellInner]&&!!i,l=this.selectedTds.some(a=>a.children.contains(i));if(o&&!l)try{let a=Kl(i,qe.tableCellInner);this.selectedTds=[a],this.updateWithSelectedTds()}catch{}else o&&l||this.hide()}});Ee(this,"selectionChangeHandler",()=>{let n=window.getSelection();if(!n)return;let{anchorNode:e,focusNode:t,anchorOffset:r,focusOffset:i}=n;if(!e||!t)return;let o=Xe.find(e),l=Xe.find(t);if(!o||!l||o.scroll!==this.quill.scroll||l.scroll!==this.quill.scroll)return;let a=gw(o),h=gw(l),g=a.has(qe.tableColgroup),m=h.has(qe.tableColgroup);if(g||m){let E=e,R=r,k=t,O=i;if(g){let P=a.get(qe.tableWrapper),z=P.descendants(cf);z.length>0&&(E=z[0].domNode,R=0)}if(m){let P=h.get(qe.tableWrapper),z=P.descendants(cf);z.length>0&&(k=z[0].domNode,O=0)}this.setSelectionData(n,{anchorNode:E,anchorOffset:R,focusNode:k,focusOffset:O});return}let x=a.has(qe.tableCellInner),w=h.has(qe.tableCellInner),_=x&&w;if(_){let E=a.get(qe.tableCellInner),R=h.get(qe.tableCellInner);_&&(_=E!==R)}if(x&&w&&_||!x&&w||!w&&x){this.setSelectionData(n,this.lastSelection),this.selectedTds.length>0&&this.hide();return}this.lastSelection={anchorNode:e,anchorOffset:r,focusNode:t,focusOffset:i}});Ee(this,"mouseDownHandler",n=>{let{button:e,target:t,clientX:r,clientY:i}=n,o=t.closest(".ql-table"),l=t.closest("caption");if(e!==0||!o||l)return;this.setSelectionTable(o);let a=o.dataset.tableId,h={x:r,y:i};this.recordScrollPosition(),this.selectedTds=this.computeSelectedTds(h,h),this.dragging=!0,this.show();let g=x=>{this.tableMenu&&this.tableMenu.hide(),this.tableModule.tableResize&&this.tableModule.tableResize.hide();let{button:w,target:_,clientX:E,clientY:R}=x,k=_.closest(".ql-table"),O=_.closest("caption");if(w!==0||O||!k||k.dataset.tableId!==a)return;let P={x:E,y:R};this.selectedTds=this.computeSelectedTds(h,P),this.selectedTds.length>1&&this.quill.blur(),this.update()},m=()=>{document.body.removeEventListener("mousemove",g,!1),document.body.removeEventListener("mouseup",m,!1),this.dragging=!1,this.clearRecordScrollPosition(),this.tableMenu&&this.selectedTds.length>0&&this.tableMenu.show()};document.body.addEventListener("mousemove",g,!1),document.body.addEventListener("mouseup",m,!1)});Ee(this,"removeCell",n=>{let e=this.quill.getSelection(),t=document.activeElement;if(!(e||n.key!=="Backspace"&&n.key!=="Delete"||!this.quill.root.contains(t))){if(this.table){let r=Xe.find(this.table),i=r.descendants(cf);if(this.selectedTds.length===i.length){r.remove();return}}for(let r of this.selectedTds)r.deleteAt(0,r.length()-1)}});this.tableModule=n,this.quill=e,this.options=this.resolveOptions(t),this.scrollRecordEls=[this.quill.root,document.documentElement],this.cellSelectWrap=n.addContainer(this.bem.b()),this.cellSelect=this.helpLinesInitial(),this.resizeObserver=oB(()=>this.updateAfterEvent(),{ignoreFirstBind:!0}),this.resizeObserver.observe(this.quill.root),this.quill.root.addEventListener("mousedown",this.mouseDownHandler,{passive:!1}),document.addEventListener("selectionchange",this.selectionChangeHandler,{passive:!1}),this.quill.on(av.AFTER_TABLE_RESIZE,this.updateAfterEvent),this.quill.on(Xe.events.SELECTION_CHANGE,this.quillSelectionChangeHandler),this.quill.on(Xe.events.TEXT_CHANGE,this.updateAfterEvent),this.options.tableMenu&&(this.tableMenu=new this.options.tableMenu(n,e,this.options.tableMenuOptions)),this.hide()}getFirstTextNode(n){for(let e of Array.from(n.childNodes))if(e.nodeType===Node.TEXT_NODE)return e;return n}getLastTextNode(n){for(let e=n.childNodes.length-1;e>=0;e--){let t=n.childNodes[e];if(t.nodeType===Node.TEXT_NODE)return t}return n}getNodeTailOffset(n){let e=document.createRange();return e.selectNodeContents(n),e.collapse(!1),e.startOffset}setSelectionData(n,e){let{anchorNode:t,anchorOffset:r,focusNode:i,focusOffset:o}=e;if(!t||!i)return;let l=document.createRange(),a=this.selectionDirectionUp(e);a?(l.setStart(t,r),l.setEnd(t,r)):(l.setStart(t,r),l.setEnd(i,o)),n.removeAllRanges(),n.addRange(l),a&&n.extend(i,o)}selectionDirectionUp(n){let{anchorNode:e,anchorOffset:t,focusNode:r,focusOffset:i}=n;if(!e||!r)return!1;if(e===r)return t>i;let o=e.compareDocumentPosition(r);return o&Node.DOCUMENT_POSITION_CONTAINS||o&Node.DOCUMENT_POSITION_CONTAINED_BY?(o&Node.DOCUMENT_POSITION_FOLLOWING)!==0:(o&Node.DOCUMENT_POSITION_PRECEDING)!==0}findWrapSelection(n){let e=null,t=0,r=null,i=0;for(let{node:o,offset:l}of n)o&&((!e||this.selectionDirectionUp({anchorNode:e,anchorOffset:t,focusNode:o,focusOffset:l}))&&(e=o,t=l),(!r||this.selectionDirectionUp({anchorNode:o,anchorOffset:l,focusNode:r,focusOffset:i}))&&(r=o,i=l));return{startNode:e,startOffset:t,endNode:r,endOffset:i}}resolveOptions(n){return Object.assign({selectColor:"#0589f340",tableMenuOptions:{}},n)}helpLinesInitial(){this.cellSelectWrap.style.setProperty("--select-color",this.options.selectColor);let n=document.createElement("div");return n.classList.add(this.bem.be("line")),this.cellSelectWrap.appendChild(n),n}computeSelectedTds(n,e){if(!this.table)return[];let t=Xe.find(this.table);if(!t)return[];let r=t.descendants(eg)[0];if(!r)return[];let i=new Set(r.descendants(Nf).map((w,_)=>(w.index=_,w))),o=this.getScrollPositionDiff(),{rect:l}=qm(t);if(!l)return[];let a=n.x+o.x,h=n.y+o.y,g={x:Math.max(l.left,Math.min(e.x,a)),y:Math.max(l.top,Math.min(e.y,h)),x1:Math.min(l.right,Math.max(e.x,a)),y1:Math.min(l.bottom,Math.max(e.y,h))},m=new Set,x=!0;for(;x;){x=!1;for(let w of i){w.__rect||(w.__rect=w.domNode.getBoundingClientRect());let{x:_,y:E,right:R,bottom:k}=w.__rect;if(nB({x:Math.floor(g.x),y:Math.floor(g.y),x1:Math.floor(g.x1),y1:Math.floor(g.y1)},{x:Math.floor(_),y:Math.floor(E),x1:Math.floor(R),y1:Math.floor(k)},XB,m.size===0)){m.add(w),i.delete(w),g={x:Math.min(g.x,_),y:Math.min(g.y,E),x1:Math.max(g.x1,R),y1:Math.max(g.y1,k)},x=!0;break}}}for(let w of[...m,...i])delete w.__rect;return this.boundary=rB({...g,width:g.x1-g.x,height:g.y1-g.y},this.quill.root),Array.from(m).sort((w,_)=>w.index-_.index).map(w=>(delete w.index,w.getCellInner()))}getScrollPositionDiff(){let{x:n,y:e}=this.getTableViewScroll(),{x:t,y:r}=ap(this.quill.root);return this.selectedTableScrollX=n,this.selectedTableScrollY=e,this.selectedEditorScrollX=t,this.selectedEditorScrollY=r,this.startScrollRecordPosition.reduce((i,{x:o,y:l},a)=>{let{x:h,y:g}=ap(this.scrollRecordEls[a]);return i.x+=o-h,i.y+=l-g,i},{x:0,y:0})}recordScrollPosition(){this.clearRecordScrollPosition();for(let n of this.scrollRecordEls)this.startScrollRecordPosition.push(ap(n))}clearRecordScrollPosition(){this.startScrollRecordPosition=[]}updateWithSelectedTds(){if(this.selectedTds.length<=0)return;let n={x:1/0,y:1/0},e={x:-1/0,y:-1/0};for(let t of this.selectedTds){let r=t.domNode.getBoundingClientRect();n.x=Math.min(n.x,r.left),n.y=Math.min(n.y,r.top),e.x=Math.max(e.x,r.right),e.y=Math.max(e.y,r.bottom)}this.selectedTds=this.computeSelectedTds(n,e),this.selectedTds.length>0?this.update():this.hide()}update(){if(this.selectedTds.length===0||!this.boundary||!this.table)return;let{x:n,y:e}=ap(this.quill.root),{x:t,y:r}=this.getTableViewScroll(),i=this.table.parentElement.getBoundingClientRect(),o=this.quill.root.getBoundingClientRect(),l=i.x-o.x,a=i.y-o.y;Object.assign(this.cellSelect.style,{left:`${this.selectedEditorScrollX*2-n+this.boundary.x+this.selectedTableScrollX-t-l}px`,top:`${this.selectedEditorScrollY*2-e+this.boundary.y+this.selectedTableScrollY-r-a}px`,width:`${this.boundary.width}px`,height:`${this.boundary.height}px`}),Object.assign(this.cellSelectWrap.style,{left:`${l}px`,top:`${a}px`,width:`${i.width}px`,height:`${i.height}px`}),!this.dragging&&this.tableMenu&&this.tableMenu.update()}getTableViewScroll(){return this.table?ap(this.table.parentElement):{x:0,y:0}}setSelectionTable(n){this.table!==n&&(this.table=n,this.table?this.scrollRecordEls.push(this.table.parentElement):this.scrollRecordEls.pop())}showDisplay(){Object.assign(this.cellSelectWrap.style,{display:"block"}),this.isDisplaySelection=!0,this.table&&this.resizeObserver.observe(this.table)}show(){this.table&&(J0.call(this),this.update(),this.showDisplay(),document.addEventListener("keydown",this.removeCell),gv.call(this,this.quill.root,()=>{this.update()}),gv.call(this,this.table.parentElement,()=>{this.update()}))}hideDisplay(){Object.assign(this.cellSelectWrap.style,{display:"none"}),this.isDisplaySelection=!1,this.table&&this.resizeObserver.unobserve(this.table)}hide(){J0.call(this),document.removeEventListener("keydown",this.removeCell),this.hideDisplay(),this.boundary=null,this.selectedTds=[],this.setSelectionTable(void 0),this.tableMenu&&this.tableMenu.hide()}destroy(){this.resizeObserver.disconnect(),this.hide(),this.cellSelectWrap.remove(),this.tableMenu&&this.tableMenu.destroy(),J0.call(this),this.quill.root.removeEventListener("mousedown",this.mouseDownHandler),document.removeEventListener("selectionchange",this.selectionChangeHandler),this.quill.off(Xe.events.SELECTION_CHANGE,this.quillSelectionChangeHandler),this.quill.off(Xe.events.TEXT_CHANGE,this.updateAfterEvent),this.quill.on(av.AFTER_TABLE_RESIZE,this.updateAfterEvent)}};const Iw=Xe.import("parchment"),Yd=Xe.import("delta"),JB=Xe.import("ui/icons"),QB=Xe.import("blots/break"),qB=Xe.import("blots/block"),kw=Xe.import("blots/block/embed");function jB(n,{tableId:e,rowId:t,colId:r}){let i={tableId:e,rowId:t,colId:r,colspan:1,rowspan:1},o=n.create(qe.tableCell,i),l=n.create(qe.tableCellInner,i),a=n.create("block");return a.appendChild(n.create("break")),l.appendChild(a),o.appendChild(l),o}function $B(n,e){return wF({onSelect:(t,r)=>{n.insertTable(t,r),e&&e.close()},customBtn:n.options.customBtn,texts:n.options.texts})}function Mw(n){return{bindInHead:!1,key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:[qe.tableCellInner],handler(e,t){let r=n?"prev":"next",i=n?"tail":"head";if(t.line[r])return!0;let o=this.quill.selection.getBounds(e.index),l=t.line.domNode.getBoundingClientRect();if(!o||!l)return!0;if(n){if(o.top-l.top>3)return!0}else if(l.bottom-o.bottom>3)return!0;let a,h,g,m;try{[a,h,g,m]=A1(t.line,[qe.tableWrapper,qe.tableMain,qe.tableRow,qe.tableCell])}catch{return!0}let x=h.getColIds(),w=a.descendants(Q0,0)[0],_;if(w){let R=window.getComputedStyle(w.domNode);_=r==="next"&&R.captionSide==="bottom"?w:r==="next"?a.next:w}else _=a[r];if(t.line[r]||!_)return!0;let E=g[r];if(E){let R=x.indexOf(m.colId),k=E.getCellByColId(x[R],r);if(!k)return!0;let O=k.children[i];O.children&&(O=O.children[i]);let P=O.offset(this.quill.scroll)+Math.min(t.offset,O.length()-1);this.quill.setSelection(P,0,Xe.sources.USER)}else{let R=_.offset(this.quill.scroll)+(n?_.length()-1:0);this.quill.setSelection(R,0,Xe.sources.USER)}return!1}}}var Sd,ez=(Sd=class{constructor(e,t){Ee(this,"quill");Ee(this,"options");Ee(this,"toolBox");Ee(this,"fixTableByLisenter",T4(this.balanceTables,100));Ee(this,"selector");Ee(this,"table");Ee(this,"tableSelection");Ee(this,"tableResize");Ee(this,"tableScrollbar");Ee(this,"tableAlign");Ee(this,"tableResizeScale");Ee(this,"resizeOb");if(this.quill=e,this.options=this.resolveOptions(t||{}),this.toolBox=this.initialContainer(),!this.options.scrollbar){let o=cu("scrollbar");this.quill.container.classList.add(o.bm("origin"))}this.options.selection&&(this.tableSelection=new this.options.selection(this,this.quill,this.options.selectionOptions));let r=this.quill.getModule("toolbar");if(r&&this.quill.theme.pickers){let[,o]=(r.controls||[]).find(([l])=>l===this.statics.toolName)||[];if(o&&o.tagName.toLocaleLowerCase()==="select"){let l=this.quill.theme.pickers.find(a=>a.select===o);l&&(l.label.innerHTML=this.options.icon,this.buildCustomSelect(this.options.customSelect,l),l.label.addEventListener("mousedown",()=>{if(!this.selector||!l)return;let a=this.selector.getBoundingClientRect(),{leftLimited:h}=iB(a);if(h){let g=l.label.getBoundingClientRect();Object.assign(l.options.style,{transform:`translateX(calc(-100% + ${g.width}px))`})}else Object.assign(l.options.style,{transform:void 0})}))}}let i=this.quill.getModule("keyboard");for(let o of Object.values(Sd.keyboradHandler))o.bindInHead?i.bindings[o.key].unshift(o):i.addBinding(o.key,o);this.quill.root.addEventListener("click",o=>{let l=o.composedPath();if(!l||l.length<=0)return;let a=l.find(h=>h.tagName&&h.tagName.toUpperCase()==="TABLE"&&h.classList.contains("ql-table"));if(a){if(this.table===a){this.tableSelection&&this.tableSelection.show(),this.tableAlign&&this.tableAlign.update(),this.tableResize&&this.tableResize.update(),this.tableScrollbar&&this.tableScrollbar.update();return}this.table&&this.hideTableTools(),this.showTableTools(a)}else this.table&&this.hideTableTools()},!1),this.quill.on(Xe.events.EDITOR_CHANGE,o=>{o===Xe.events.TEXT_CHANGE&&(!this.table||!this.quill.root.contains(this.table))&&this.hideTableTools()}),this.quillHack(),this.listenBalanceCells()}static register(){$g.allowedChildren=[Ff],Ff.allowedChildren=[eg,Ag,Q0],Ff.requiredContainer=$g,Q0.requiredContainer=Ff,Ag.allowedChildren=[Ig],Ag.requiredContainer=Ff,eg.allowedChildren=[qh],eg.requiredContainer=Ff,qh.allowedChildren=[Nf],Nf.requiredContainer=eg,Nf.allowedChildren=[cf,QB],Nf.requiredContainer=qh,cf.requiredContainer=Nf;let e=new Set(["table"]),t=Object.entries(Xe.imports).filter(([i,o])=>{let l=i.split("formats/")[1];return i.startsWith("formats/")&&!e.has(l)&&!I0(o,Iw.Attributor)&&(I0(o,qB)||I0(o,kw))}),r=t.reduce((i,[o,l])=>{let a=I0(l,kw)?Aw:lm;return i[o]=class extends gF(l,[a]){static register(){}},i},{});Xe.register({"blots/scroll":pB,"blots/block":lm,"blots/block/embed":Aw,...r,[`blots/${qe.container}`]:dg,[`formats/${qe.tableCell}`]:Nf,[`formats/${qe.tableCellInner}`]:cf,[`formats/${qe.tableRow}`]:qh,[`formats/${qe.tableBody}`]:eg,[`formats/${qe.tableCol}`]:Ig,[`formats/${qe.tableColgroup}`]:Ag,[`formats/${qe.tableCaption}`]:Q0,[`formats/${qe.tableMain}`]:Ff,[`formats/${qe.tableWrapper}`]:$g,"modules/clipboard":EB},!0)}get statics(){return this.constructor}initialContainer(){let e=cu("toolbox"),t=this.quill.addContainer(e.b()),r=()=>{let i=this.quill.root.getBoundingClientRect(),{offsetLeft:o,offsetTop:l}=this.quill.root;Object.assign(t.style,{top:`${l}px`,left:`${o}px`,width:`${i.width}px`,height:`${i.height}px`})};return this.resizeOb=new ResizeObserver(r),this.resizeOb.observe(this.quill.root),t}addContainer(e){if(Lg(e)){let t=document.createElement("div");for(let r of e.split(" "))t.classList.add(r);return this.toolBox.appendChild(t),t}else return this.toolBox.appendChild(e),e}resolveOptions(e){return Object.assign({customBtn:!1,texts:this.resolveTexts(e.texts||{}),full:!1,fullSwitch:!0,icon:JB.table,selectionOptions:{},alignOptions:{},scrollbarOptions:{},resizeOptions:{},resizeScaleOptions:{},autoMergeCell:!0},e)}resolveTexts(e){return Object.assign({fullCheckboxText:"Insert full width table",customBtnText:"Custom",confirmText:"Confirm",cancelText:"Cancel",rowText:"Row",colText:"Column",notPositiveNumberError:"Please enter a positive integer",custom:"Custom",clear:"Clear",transparent:"Transparent",perWidthInsufficient:"The percentage width is insufficient. To complete the operation, the table needs to be converted to a fixed width. Do you want to continue?",CopyCell:"Copy cell",CutCell:"Cut cell",InsertTop:"Insert row above",InsertRight:"Insert column right",InsertBottom:"Insert row below",InsertLeft:"Insert column Left",MergeCell:"Merge Cell",SplitCell:"Split Cell",DeleteRow:"Delete Row",DeleteColumn:"Delete Column",DeleteTable:"Delete table",BackgroundColor:"Set background color",BorderColor:"Set border color"},e)}quillHack(){var i;let e=this.quill.getSemanticHTML;this.quill.getSemanticHTML=(o=0,l)=>{let a=e.call(this.quill,o,l),h=Xe.import(`formats/${qe.tableWrapper}`),g=new DOMParser,m=g.parseFromString(a,"text/html");for(let x of Array.from(m.querySelectorAll(`.${h.className} caption[contenteditable], .${h.className} td > [contenteditable]`)))x.removeAttribute("contenteditable");return m.body.innerHTML};let t=this.quill.format;this.quill.format=function(o,l,a=Xe.sources.API){if(!(this.scroll.query(o).prototype instanceof Iw.EmbedBlot)){let g=this.getModule(kb.moduleName),m=this.getSelection(!0);if(!this.getFormat(m)[qe.tableCellInner]||m.length>0||g&&g.tableSelection&&g.tableSelection.selectedTds.length<=1)return t.call(this,o,l,a);if(g&&g.tableSelection&&g.tableSelection.selectedTds.length>0){let w=g.tableSelection.selectedTds,_=!1,E=[];for(let P of w){let z=P.offset(this.scroll),H=P.length();E.push({index:z,length:H}),this.getFormat(z,H)[o]!==l&&(_=!0)}let R=_?l:!1,k=new Yd;for(let[P,{index:z,length:H}]of E.entries()){let G=P===0?0:E[P-1].index+E[P-1].length;k.retain(z-G).retain(H,{[o]:R})}let O=this.updateContents(k,a);return this.blur(),O}}return t.call(this,o,l,a)};let r=this.quill.theme.modules.toolbar;if(r){let o=(i=r.handlers)==null?void 0:i.clean;if(o){let l=(a,h,g=()=>"")=>{let m=this.quill.getText(a,h),[x,w]=this.quill.getLine(a+h),_=0,E=new Yd;x!=null&&(_=x.length()-w,E=x.delta().slice(w,w+_-1).insert(`
|
|
459
|
+
`));let R=this.quill.getContents(a,h+_),k=R.diff(new Yd().insert(m).concat(E)),O=0,P=k.ops.map(z=>{let{attributes:H,...G}=z;if(z.insert?O-=Lg(z.insert)?z.insert.length:1:z.retain?O+=vF(z.retain)?z.retain:1:z.delete&&(O+=z.delete),H){let{[qe.tableCellInner]:N,...J}=H;if(g){let Y=R.slice(O-1,O).ops[0];if(Y&&Y.attributes&&Y.attributes[qe.tableCellInner]){let K=Y.attributes[qe.tableCellInner],{style:fe,...X}=K,te=g(fe);return te?{...G,attributes:{...J,[qe.tableCellInner]:{style:te,...X}}}:{...G,attributes:{...J,[qe.tableCellInner]:X}}}}return{...G,attributes:{...J}}}return z});return new Yd(P)};r.handlers.clean=function(a){let h=this.quill.getModule(kb.moduleName),g=this.quill.getSelection();if(g&&g.length>0&&this.quill.getFormat(g)[qe.tableCellInner]){let x=l(g.index,g.length,!1),w=new Yd().retain(g.index).concat(x);this.quill.updateContents(w,Xe.sources.USER);return}if(h&&h.tableSelection&&h.tableSelection.selectedTds.length>0&&h.tableSelection.table){let m=Xe.find(h.tableSelection.table);if(!m){console.warn("TableMainFormat not found");return}let x=h.tableSelection.selectedTds,w=new Set,_=[];for(let P of x)if(P.parent instanceof Nf){for(let z of P.parent.getNearByCell("top"))w.has(z)||(w.add(z),_.push({td:z,cleanBorder:"bottom"}));for(let z of P.parent.getNearByCell("left"))w.has(z)||(w.add(z),_.push({td:z,cleanBorder:"right"}));w.add(P.parent),_.push({td:P.parent,cleanBorder:!0})}let E=m.descendants(Nf),R=new Map(E.map((P,z)=>[P,z]));_.sort((P,z)=>R.get(P.td)-R.get(z.td));let k=new Yd,O=0;for(let{td:P,cleanBorder:z}of _){let H=P.getCellInner().offset(this.quill.scroll),G=P.getCellInner().length(),N=l(H,G-1,Y=>{if(!Y||z===!0)return"";let K=pv(Y),fe=Object.keys(K).filter(X=>!X.startsWith(k1(`border-${z}`))).reduce((X,te)=>(X[te]=K[te],X),{});return om(fe)}),J=new Yd().retain(H-O).concat(N);k=k.concat(J),O=H+G}this.quill.updateContents(k,Xe.sources.USER),x.length>1&&this.quill.blur();return}return o.call(this,a)}}}}showTableTools(e){var t;e&&(this.table=e,(t=this.tableSelection)==null||t.show(),this.options.align&&(this.tableAlign=new this.options.align(this,e,this.quill,this.options.alignOptions)),this.options.scrollbar&&(this.tableScrollbar=new this.options.scrollbar(this,e,this.quill,this.options.scrollbarOptions)),this.options.resize&&(this.tableResize=new this.options.resize(this,e,this.quill,this.options.resizeOptions)),this.options.resizeScale&&(this.tableResizeScale=new this.options.resizeScale(this,e,this.quill,this.options.resizeScaleOptions)))}hideTableTools(){var e;(e=this.tableSelection)==null||e.hide(),this.tableScrollbar&&(this.tableScrollbar.destroy(),this.tableScrollbar=void 0),this.tableAlign&&(this.tableAlign.destroy(),this.tableAlign=void 0),this.tableResize&&(this.tableResize.destroy(),this.tableResize=void 0),this.tableResizeScale&&this.tableResizeScale.destroy(),this.table=void 0}async buildCustomSelect(e,t){if(!e||!nm(e))return;let r=document.createElement("div");if(r.classList.add("ql-custom-select"),this.selector=await e(this,t),r.appendChild(this.selector),this.options.fullSwitch){let i=cu("creator"),o=document.createElement("label");o.classList.add(i.be("checkbox"));let l=document.createElement("input");l.type="checkbox",l.checked=this.options.full,l.addEventListener("change",()=>{this.options.full=l.checked});let a=document.createElement("span");a.textContent=this.options.texts.fullCheckboxText,o.appendChild(l),o.appendChild(a),r.appendChild(o)}t.options.innerHTML="",t.options.appendChild(r)}setCellAttrs(e,t,r,i=!1){if(e.length!==0)for(let o of e)o.setFormatValue(t,r,i)}getTextByCell(e){let t="";for(let r of e){let i=r.offset(this.quill.scroll),o=r.length();for(let l of this.quill.getContents(i,o).ops)Lg(l.insert)&&(t+=l.insert)}return t}getHTMLByCell(e,t=!1){if(e.length===0)return"";let r=null;try{for(let k of e){let O=Kl(k,qe.tableMain);if(r||(r=O),O!==r)return console.error("tableMain is not same"),""}}catch{return console.error("tds must be in same tableMain"),""}if(!r)return"";let i=this.quill.getIndex(r),o=r.length(),l=this.quill.getSemanticHTML(i,o),a=new DOMParser,h=a.parseFromString(l,"text/html"),g=[],m=new Set,x=new Set;for(let k of e)m.add(k.colId),x.add(`${k.rowId}-${k.colId}`);for(let k of Array.from(h.querySelectorAll("col")))m.has(k.dataset.colId)?g.push(k.getAttribute("width")):k.remove();let w=0,_=null;for(let k of Array.from(h.querySelectorAll("td")))if(x.has(`${k.dataset.rowId}-${k.dataset.colId}`))_!==k.dataset.rowId&&(w+=1,_=k.dataset.rowId);else{let O=k.parentElement;k.remove(),O&&O.children.length<=0&&O.remove()}let E=Array.from(h.querySelectorAll("col")),R=E.map(k=>Ig.value(k));if(r.full){let k=R.reduce((O,P)=>P.width+O,0);for(let[O,P]of R.entries())P.width=Math.round(P.width/k*100),E[O].setAttribute("width",`${P.width}%`)}else{let k=0;for(let P of R)k+=P.width;let O=h.querySelector("table");O.style.width=`${k}px`}if(t){let k=r.getRows();if(w===k.length)this.removeCol(e);else for(let O of e)O.domNode.innerHTML="<p><br></p>"}return h.body.innerHTML}insertTable(e,t){if(e>=30||t>=30)throw Error("Both rows and columns must be less than 30.");this.quill.focus();let r=this.quill.getSelection();if(r==null)return;let[i]=this.quill.getLeaf(r.index);if(!i)return;if(l4(i))throw Error(`Not supported ${i.statics.blotName} insert into table.`);let o=this.calculateTableCellBorderWidth(),l=getComputedStyle(this.quill.root),a=Number.parseInt(l.paddingLeft),h=Number.parseInt(l.paddingRight),g=Number.parseInt(l.width)-a-h-o,m=Na(),x=Array(t).fill(0).map(()=>Na()),w=this.options.full?`${Math.max(1/t*100,Ss.colMinWidthPre)}%`:`${Math.max(Math.floor(g/t),Ss.colMinWidthPx)}px`,_=[{retain:r.index}],E=this.quill.getContents(r.index,1),[,R]=this.quill.getLine(r.index);E.ops[0].insert!==`
|
|
460
460
|
`&&R!==0&&_.push({insert:`
|
|
461
461
|
`});for(let k=0;k<t;k++)_.push({insert:{[qe.tableCol]:{width:w,tableId:m,colId:x[k],full:this.options.full}}});for(let k=0;k<e;k++){let O=Na();for(let P=0;P<t;P++)_.push({insert:`
|
|
462
462
|
`,attributes:{[qe.tableCellInner]:{tableId:m,rowId:O,colId:x[P],rowspan:1,colspan:1}}})}this.quill.updateContents(new Yd(_),Xe.sources.USER),this.quill.setSelection(r.index+t,Xe.sources.SILENT),this.quill.focus()}calculateTableCellBorderWidth(){let e=`
|
|
@@ -467,7 +467,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
467
467
|
</tr>
|
|
468
468
|
</tbody>
|
|
469
469
|
</table>
|
|
470
|
-
`,t=document.createElement("div");t.className=$g.className,t.innerHTML=e,t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.visibility="hidden",this.quill.root.appendChild(t);let r=window.getComputedStyle(t.querySelector("td")),i=Number.parseFloat(r.borderWidth)||0;return this.quill.root.removeChild(t),i}fixUnusuaDeletelTable(e){let t=e.getRows(),r=e.getColIds();if(t.length===0)return e.remove();if(r.length===0)return;let i=Array(t.length).fill(0).map(()=>Array(r.length).fill(!1)),o=e.tableId;for(let[l,a]of t.entries()){let h=0,g=0,m=i[l],x=a.descendants(Nf);for(;g<r.length;){if(m[g]){g+=1;continue}let w=x[h];if(!w||w.colId!==r[g])a.insertBefore(jB(this.quill.scroll,{tableId:o,colId:r[g],rowId:a.rowId}),w);else{l+w.rowspan-1>=t.length&&(w.getCellInner().rowspan=t.length-l);let{colspan:_,rowspan:E}=w;if(_>1)for(let R=1;R<_;R++)m[g+R]=!0;if(E>1)for(let R=l+1;R<l+E;R++)for(let k=0;k<_;k++)i[R][g+k]=!0;h+=1}g+=1}if(h<x.length)for(let w=h;w<x.length;w++)x[w].remove()}}balanceTables(){for(let e of this.quill.scroll.descendants(Ff))e.checkEmptyCol(this.options.autoMergeCell),e.checkEmptyRow(this.options.autoMergeCell),this.fixUnusuaDeletelTable(e)}listenBalanceCells(){this.quill.on(Xe.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.fixTableByLisenter(),!0):!1);for(let t of e){let r=t.target;if(r.tagName==="TABLE"){let i=Xe.find(r);if(i){i.sortMergeChildren();break}}}})}deleteTable(e){if(e.length===0)return;let t=Kl(e[0],qe.tableMain);t&&t.remove(),this.hideTableTools()}appendRow(e,t){if(e.length<=0)return;let r=e[t?e.length-1:0],[i,o,l]=A1(r,[qe.tableMain,qe.tableBody,qe.tableRow]),a=i.getRows(),h=a.indexOf(l),g=h+(t?r.rowspan:0);o.insertRow(g)}appendCol(e,t){if(e.length<=0)return;let[r]=e.reduce((w,_)=>{let E=_.getColumnIndex();return(!t&&E<=w[1]||t&&E>=w[1])&&(w=[_,E]),w},[e[0],e[0].getColumnIndex()]),i=r.getColumnIndex()+(t?r.colspan:0),o=Kl(r,qe.tableMain),l=o.tableId,a=Na(),[h]=o.descendants(Ag);h&&h.insertColByIndex(i,{tableId:l,colId:a,width:o.full?6:160,full:o.full});let g=o.getRows(),m=[],x=0;for(let w of Object.values(g)){let _=m.shift()||0;if(x>0){--x;continue}let E=w.insertCell(i-_,{tableId:l,rowId:w.rowId,colId:a,rowspan:1,colspan:1});E.skipRowNum&&(x+=E.skipRowNum);for(let[R,k]of E.entries())m[R]=(m[R]||0)+k}}fixTableByRemove(e){if(!this.options.autoMergeCell)return;let t=e.getRows(),r=e.getCols(),i=r.reduce((h,g)=>(h[g.colId]=0,h),{}),o=[...t].reverse(),l=[];for(let[h,g]of o.entries()){let m=t.length-h-1;g.children.length<=0?l.push(m):g.foreachCellInner(x=>{let w=l.reduce((_,E)=>x.rowspan+m>E?_+1:_,0);x.rowspan-=w,i[x.colId]+=1})}let a=0;for(let h of Object.values(i))if(h===0){let g=[],m=0;for(let x of Object.values(t)){let w=g.shift()||0,_=[];m>0?(_=x.getCellByColumIndex(a-w)[2],--m):(_=x.removeCell(a-w),_.skipRowNum&&(m+=_.skipRowNum));for(let[E,R]of _.entries())g[E]=(g[E]||0)+R}}else a+=1;for(let h of r)i[h.colId]===0&&(h.prev?h.prev.width+=h.width:h.next&&(h.next.width+=h.width),h.remove())}removeRow(e){if(e.length<=0)return;let t=e[0],r=Kl(t,qe.tableMain),i=r.getRows(),o=i.length,l=-1;for(let h of e){let g=Kl(h,qe.tableRow),m=i.indexOf(g);m<o&&(o=m),m+h.rowspan>l&&(l=m+h.rowspan)}let a={};for(let h=o;h<Math.min(i.length,l);h++){let g=i[h];g.foreachCellInner(m=>{m.rowspan+h>l&&(a[m.colId]={rowspan:m.rowspan+h-l,colspan:m.colspan,colIndex:m.getColumnIndex()}),m.parent.remove()}),g.length()===0&&g.remove()}if(i[l]){let h=i[l],g=r.tableId;for(let[m,{colIndex:x,colspan:w,rowspan:_}]of Object.entries(a))h.insertCell(x,{tableId:g,rowId:h.rowId,colId:m,colspan:w,rowspan:_})}this.fixTableByRemove(r)}removeCol(e){if(e.length<=0)return;let t=e[0],r=Kl(t,qe.tableMain),i={};for(let g of e)i[g.rowId]||(i[g.rowId]=0),i[g.rowId]+=g.colspan;let o=Math.max(...Object.values(i)),l=t.getColumnIndex(),a=r.descendants(qh);for(let g=0;g<o;g++){let m=[],x=0;for(let w of Object.values(a)){let _=m.shift()||0;if(x>0){--x;continue}let E=w.removeCell(l-_);E.skipRowNum&&(x+=E.skipRowNum);for(let[R,k]of E.entries())m[R]=(m[R]||0)+k}}let[h]=r.descendants(Ag);if(h)for(let g=0;g<o;g++)h.removeColByIndex(l);this.fixTableByRemove(r)}mergeCells(e){if(e.length<=1)return;let t=e.reduce((a,h,g)=>{let m=h.colId;a[0][m]||(a[0][m]=0),a[0][m]+=h.rowspan;let x=h.rowId;return a[1][x]||(a[1][x]=0),a[1][x]+=h.colspan,g!==0&&(h.moveChildren(a[2]),h.parent.remove()),a},[{},{},e[0]]),r=Math.max(...Object.values(t[0])),i=Math.max(...Object.values(t[1])),o=t[2];o.colspan=i,o.rowspan=r;let l=Kl(o,qe.tableMain);this.fixTableByRemove(l)}splitCell(e){if(e.length!==1)return;let t=e[0];if(t.colspan===1&&t.rowspan===1)return;let[r,i]=A1(t,[qe.tableMain,qe.tableRow]),o=r.tableId,l=t.getColumnIndex(),a=r.getColIds().slice(l,l+t.colspan).reverse(),h=t.formats()[qe.tableCellInner].style,g=i,m=t.rowspan;for(t.colspan=1,t.rowspan=1;g&&m>0;){for(let x of a){if(g===i&&x===t.colId)continue;let w={tableId:o,rowId:g.rowId,colId:x,rowspan:1,colspan:1};h&&(w.style=h),g.insertCell(l+(g===i?1:0),w)}--m,g=g.next}}},Ee(Sd,"moduleName",kb.moduleName),Ee(Sd,"toolName",qe.tableWrapper),Ee(Sd,"keyboradHandler",{"forbid remove table by backspace":{bindInHead:!0,key:"Backspace",collapsed:!0,offset:0,handler(e,t){let r=this.quill.getLine(e.index),i=r[0];return i.prev instanceof $g?(i.prev.remove(),!1):!(t.format[qe.tableCellInner]&&i.offset(Kl(i,qe.tableCellInner))===0)}},"forbid remove table by delete":{bindInHead:!0,key:"Delete",collapsed:!0,handler(e,t){let r=this.quill.getLine(e.index),i=r[0],o=r[1];if((i.next instanceof $g||i.next instanceof Ig)&&o===i.length()-1)return!1;if(t.format[qe.tableCellInner]){let l=Kl(i,qe.tableCellInner);if(i===l.children.tail&&o===i.length()-1)return!1}return!0}},"table up":Mw(!0),"table down":Mw(!1),"table caption break":{bindInHead:!0,key:"Enter",shiftKey:null,format:[qe.tableCaption],handler(e,t){return!1}}}),Sd),A_=ez;const tz="_AEditorWrapper_gy9qb_1",nz="_AEditorContainer_gy9qb_7",rz="_AEditor_gy9qb_1",iz="_Primary_gy9qb_24",oz="_ReadOnly_gy9qb_54",lz="_Raw_gy9qb_128",sz="_LimitContainer_gy9qb_145",az="_Limit_gy9qb_145",cz="_Indicator_gy9qb_168",uz="_Resizer_gy9qb_176",af={AEditorWrapper:tz,AEditorContainer:nz,AEditor:rz,Primary:iz,"ql-toolbar":"_ql-toolbar_gy9qb_24","ql-snow":"_ql-snow_gy9qb_24",ReadOnly:oz,Error:"_Error_gy9qb_91",Raw:lz,LimitContainer:sz,Limit:az,Indicator:cz,Resizer:uz,"ql-image-resizer-overlay":"_ql-image-resizer-overlay_gy9qb_209","ql-image-resizer-handle":"_ql-image-resizer-handle_gy9qb_216","ql-image-resizer-display":"_ql-image-resizer-display_gy9qb_226","ql-image-resizer-toolbar":"_ql-image-resizer-toolbar_gy9qb_237","ql-image-resizer-toolbar-button":"_ql-image-resizer-toolbar-button_gy9qb_245"};class fz{constructor(e,t={}){Ee(this,"quill");Ee(this,"cleanupFunctions",[]);this.quill=e,t.isTitleMode&&this.setupTitleModePaste()}setupTitleModePaste(){const e=this.quill.root,t=r=>{if(r.preventDefault(),!r.clipboardData)return;const i=r.clipboardData.getData("text/html"),o=r.clipboardData.getData("text/plain"),l=this.quill.getSelection(!0);if(l)if(l.length>0&&this.quill.deleteText(l.index,l.length,Xe.sources.USER),i){const a=document.createElement("div");a.innerHTML=i,this.replaceBreaksWithSpaces(a);const g=this.quill.getModule("clipboard").convert({html:a.innerHTML});this.quill.updateContents(g,Xe.sources.USER),setTimeout(()=>{const m=g.reduce((x,w)=>x+(typeof w.insert=="string"?w.insert.length:1),0);this.quill.setSelection(l.index+m,0,Xe.sources.SILENT)},0)}else{const a=o.replace(/[\r\n]+/g," ").trim();this.quill.insertText(l.index,a,Xe.sources.USER),this.quill.setSelection(l.index+a.length,0,Xe.sources.SILENT)}};e.addEventListener("paste",t,{capture:!0}),this.cleanupFunctions.push(()=>{e.removeEventListener("paste",t,{capture:!0})})}replaceBreaksWithSpaces(e){var i,o;const t=l=>{var a;if(l.nodeType===Node.TEXT_NODE)l.textContent=((a=l.textContent)==null?void 0:a.replace(/[\r\n]+/g," "))??"";else for(const h of Array.from(l.childNodes))t(h)};t(e);const r=e.querySelectorAll("br, p, div");for(const l of Array.from(r))l.tagName==="BR"?(i=l.parentNode)==null||i.replaceChild(document.createTextNode(" "),l):(l.tagName==="P"||l.tagName==="DIV")&&l.nextSibling&&!((o=l.textContent)!=null&&o.endsWith(" "))&&l.appendChild(document.createTextNode(" "));e.innerHTML=e.innerHTML.replace(/\s+$/,""),e.innerHTML=e.innerHTML.replace(/\s{2,}/g," ")}destroy(){this.cleanupFunctions.forEach(e=>e()),this.cleanupFunctions=[]}async copyContent(e){var t;try{const r=this.quill.getText(),i=this.quill.root.innerHTML;return this.copyToClipboard(r,i,e)}catch(r){return console.error("Error in copyContent:",r),(t=e==null?void 0:e.onError)==null||t.call(e),!1}}async copyToClipboard(e,t,r){var i,o;try{return await this.tryModernClipboardWithHtml(e,t,r)||await this.tryModernClipboardText(e,r)||t&&this.tryLegacyClipboardWithHtml(t,r)||this.tryLegacyClipboardText(e,r)?!0:((i=r==null?void 0:r.onError)==null||i.call(r),!1)}catch(l){return console.error("복사 중 오류 발생:",l),(o=r==null?void 0:r.onError)==null||o.call(r),!1}}async tryModernClipboardWithHtml(e,t,r){var i;if(!navigator.clipboard||!t||!window.ClipboardItem||!window.isSecureContext)return!1;try{return await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([t],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]),(i=r==null?void 0:r.onSuccess)==null||i.call(r),!0}catch{return!1}}async tryModernClipboardText(e,t){var r;if(!navigator.clipboard||!window.isSecureContext)return!1;try{return await navigator.clipboard.writeText(e),(r=t==null?void 0:t.onSuccess)==null||r.call(t),!0}catch{return!1}}tryLegacyClipboardWithHtml(e,t){const r=document.createElement("div");r.innerHTML=e,r.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;",document.body.appendChild(r);try{const i=document.createRange();i.selectNodeContents(r);const o=window.getSelection();return o?(o.removeAllRanges(),o.addRange(i),this.tryClipboardEventCopy({html:e,text:r.textContent??""},t)):!1}finally{document.body.removeChild(r)}}tryLegacyClipboardText(e,t){const r=document.createElement("textarea");r.value=e,r.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;",document.body.appendChild(r);try{return r.focus(),r.select(),this.tryClipboardEventCopy({text:e},t)}finally{document.body.removeChild(r)}}tryClipboardEventCopy(e,t){var o;let r=!1;const i=l=>{l.preventDefault(),l.clipboardData&&(l.clipboardData.setData("text/plain",e.text),e.html&&l.clipboardData.setData("text/html",e.html),r=!0)};document.addEventListener("copy",i);try{const l=new ClipboardEvent("copy",{clipboardData:new DataTransfer});if(document.dispatchEvent(l),r)return(o=t==null?void 0:t.onSuccess)==null||o.call(t),!0}catch{return!1}return document.removeEventListener("copy",i),!1}}const hz=Xe.import("blots/block/embed"),dz=Xe.import("ui/icons");dz.divider=a1.renderToString(M.jsx(uo,{icon:"Minus",strokeWidth:2.5,width:"100%"}));class am extends hz{static create(e){const t=super.create(e);return t.style.border="var(--AEditor_Addon_Primary_border)",t.style.borderBottom="none",t.style.transition="border var(--Transition)",t}}Ee(am,"blotName","divider"),Ee(am,"tagName","hr");class gz{constructor(e,t){this.debug=e,this.suppressErrorLogging=t}prefixString(){return"</> quill-image-compress: "}get log(){return this.debug?console.warn.bind(console,this.prefixString()):()=>{}}get error(){return this.suppressErrorLogging?()=>{}:console.error.bind(console,this.prefixString())}get warn(){return this.suppressErrorLogging?()=>{}:console.warn.bind(console,this.prefixString())}}async function R_(n){const e=new FileReader,t=new Promise((r,i)=>{e.addEventListener("load",()=>{const o=e.result;typeof o=="string"?r(o):i(new Error("could not convert file to base64"))},!1)});return e.readAsDataURL(n),t}function pz(n,e,t,r){if(t&&r&&n<=t&&e<=r)return[n,e];if(t&&n>t){const i=t,o=Math.floor(e/n*i);if(r&&o>r){const l=r;return[Math.floor(n/e*l),l]}else return[i,o]}if(r&&e>r){const i=r;return[Math.floor(n/e*i),i]}return[n,e]}async function vz(n,e,t={}){const r=e.split(";")[0].split(":")[1],{maxWidth:i,maxHeight:o,imageType:l="image/jpeg",keepImageTypes:a,ignoreImageTypes:h,imageQuality:g=.7}=t,m=new Image;m.src=e,await new Promise(k=>{m.onload=()=>{k()}});const[x,w]=pz(m.width,m.height,i,o),_=document.createElement("canvas");_.width=x,_.height=w;const E=_.getContext("2d");if(l==="image/jpeg"&&(E.fillStyle="#FFFFFF",E.fillRect(0,0,m.width,m.height)),h!=null&&h.includes(r))return e;a!=null&&a.includes(r)&&(t.imageType=r),E.drawImage(m,0,0,x,w);const R=_.toDataURL(t.imageType??l,g);return n.log("downscaling image...",{args:{dataUrl:e,...t},newHeight:w,newWidth:x}),R}function bz(n,e){n.maxWidth??(n.maxWidth=1e3),n.maxHeight??(n.maxHeight=1e3),yz(n,e),mz(n,e),xz(n,e),wz(n,e),Cz(n,e)}function yz(n,e){n.maxWidth&&typeof n.maxWidth!="number"&&(e.warn(`[config error] 'maxWidth' is required to be a "number" (in pixels),
|
|
470
|
+
`,t=document.createElement("div");t.className=$g.className,t.innerHTML=e,t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.visibility="hidden",this.quill.root.appendChild(t);let r=window.getComputedStyle(t.querySelector("td")),i=Number.parseFloat(r.borderWidth)||0;return this.quill.root.removeChild(t),i}fixUnusuaDeletelTable(e){let t=e.getRows(),r=e.getColIds();if(t.length===0)return e.remove();if(r.length===0)return;let i=Array(t.length).fill(0).map(()=>Array(r.length).fill(!1)),o=e.tableId;for(let[l,a]of t.entries()){let h=0,g=0,m=i[l],x=a.descendants(Nf);for(;g<r.length;){if(m[g]){g+=1;continue}let w=x[h];if(!w||w.colId!==r[g])a.insertBefore(jB(this.quill.scroll,{tableId:o,colId:r[g],rowId:a.rowId}),w);else{l+w.rowspan-1>=t.length&&(w.getCellInner().rowspan=t.length-l);let{colspan:_,rowspan:E}=w;if(_>1)for(let R=1;R<_;R++)m[g+R]=!0;if(E>1)for(let R=l+1;R<l+E;R++)for(let k=0;k<_;k++)i[R][g+k]=!0;h+=1}g+=1}if(h<x.length)for(let w=h;w<x.length;w++)x[w].remove()}}balanceTables(){for(let e of this.quill.scroll.descendants(Ff))e.checkEmptyCol(this.options.autoMergeCell),e.checkEmptyRow(this.options.autoMergeCell),this.fixUnusuaDeletelTable(e)}listenBalanceCells(){this.quill.on(Xe.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.fixTableByLisenter(),!0):!1);for(let t of e){let r=t.target;if(r.tagName==="TABLE"){let i=Xe.find(r);if(i){i.sortMergeChildren();break}}}})}deleteTable(e){if(e.length===0)return;let t=Kl(e[0],qe.tableMain);t&&t.remove(),this.hideTableTools()}appendRow(e,t){if(e.length<=0)return;let r=e[t?e.length-1:0],[i,o,l]=A1(r,[qe.tableMain,qe.tableBody,qe.tableRow]),a=i.getRows(),h=a.indexOf(l),g=h+(t?r.rowspan:0);o.insertRow(g)}appendCol(e,t){if(e.length<=0)return;let[r]=e.reduce((w,_)=>{let E=_.getColumnIndex();return(!t&&E<=w[1]||t&&E>=w[1])&&(w=[_,E]),w},[e[0],e[0].getColumnIndex()]),i=r.getColumnIndex()+(t?r.colspan:0),o=Kl(r,qe.tableMain),l=o.tableId,a=Na(),[h]=o.descendants(Ag);h&&h.insertColByIndex(i,{tableId:l,colId:a,width:o.full?6:160,full:o.full});let g=o.getRows(),m=[],x=0;for(let w of Object.values(g)){let _=m.shift()||0;if(x>0){--x;continue}let E=w.insertCell(i-_,{tableId:l,rowId:w.rowId,colId:a,rowspan:1,colspan:1});E.skipRowNum&&(x+=E.skipRowNum);for(let[R,k]of E.entries())m[R]=(m[R]||0)+k}}fixTableByRemove(e){if(!this.options.autoMergeCell)return;let t=e.getRows(),r=e.getCols(),i=r.reduce((h,g)=>(h[g.colId]=0,h),{}),o=[...t].reverse(),l=[];for(let[h,g]of o.entries()){let m=t.length-h-1;g.children.length<=0?l.push(m):g.foreachCellInner(x=>{let w=l.reduce((_,E)=>x.rowspan+m>E?_+1:_,0);x.rowspan-=w,i[x.colId]+=1})}let a=0;for(let h of Object.values(i))if(h===0){let g=[],m=0;for(let x of Object.values(t)){let w=g.shift()||0,_=[];m>0?(_=x.getCellByColumIndex(a-w)[2],--m):(_=x.removeCell(a-w),_.skipRowNum&&(m+=_.skipRowNum));for(let[E,R]of _.entries())g[E]=(g[E]||0)+R}}else a+=1;for(let h of r)i[h.colId]===0&&(h.prev?h.prev.width+=h.width:h.next&&(h.next.width+=h.width),h.remove())}removeRow(e){if(e.length<=0)return;let t=e[0],r=Kl(t,qe.tableMain),i=r.getRows(),o=i.length,l=-1;for(let h of e){let g=Kl(h,qe.tableRow),m=i.indexOf(g);m<o&&(o=m),m+h.rowspan>l&&(l=m+h.rowspan)}let a={};for(let h=o;h<Math.min(i.length,l);h++){let g=i[h];g.foreachCellInner(m=>{m.rowspan+h>l&&(a[m.colId]={rowspan:m.rowspan+h-l,colspan:m.colspan,colIndex:m.getColumnIndex()}),m.parent.remove()}),g.length()===0&&g.remove()}if(i[l]){let h=i[l],g=r.tableId;for(let[m,{colIndex:x,colspan:w,rowspan:_}]of Object.entries(a))h.insertCell(x,{tableId:g,rowId:h.rowId,colId:m,colspan:w,rowspan:_})}this.fixTableByRemove(r)}removeCol(e){if(e.length<=0)return;let t=e[0],r=Kl(t,qe.tableMain),i={};for(let g of e)i[g.rowId]||(i[g.rowId]=0),i[g.rowId]+=g.colspan;let o=Math.max(...Object.values(i)),l=t.getColumnIndex(),a=r.descendants(qh);for(let g=0;g<o;g++){let m=[],x=0;for(let w of Object.values(a)){let _=m.shift()||0;if(x>0){--x;continue}let E=w.removeCell(l-_);E.skipRowNum&&(x+=E.skipRowNum);for(let[R,k]of E.entries())m[R]=(m[R]||0)+k}}let[h]=r.descendants(Ag);if(h)for(let g=0;g<o;g++)h.removeColByIndex(l);this.fixTableByRemove(r)}mergeCells(e){if(e.length<=1)return;let t=e.reduce((a,h,g)=>{let m=h.colId;a[0][m]||(a[0][m]=0),a[0][m]+=h.rowspan;let x=h.rowId;return a[1][x]||(a[1][x]=0),a[1][x]+=h.colspan,g!==0&&(h.moveChildren(a[2]),h.parent.remove()),a},[{},{},e[0]]),r=Math.max(...Object.values(t[0])),i=Math.max(...Object.values(t[1])),o=t[2];o.colspan=i,o.rowspan=r;let l=Kl(o,qe.tableMain);this.fixTableByRemove(l)}splitCell(e){if(e.length!==1)return;let t=e[0];if(t.colspan===1&&t.rowspan===1)return;let[r,i]=A1(t,[qe.tableMain,qe.tableRow]),o=r.tableId,l=t.getColumnIndex(),a=r.getColIds().slice(l,l+t.colspan).reverse(),h=t.formats()[qe.tableCellInner].style,g=i,m=t.rowspan;for(t.colspan=1,t.rowspan=1;g&&m>0;){for(let x of a){if(g===i&&x===t.colId)continue;let w={tableId:o,rowId:g.rowId,colId:x,rowspan:1,colspan:1};h&&(w.style=h),g.insertCell(l+(g===i?1:0),w)}--m,g=g.next}}},Ee(Sd,"moduleName",kb.moduleName),Ee(Sd,"toolName",qe.tableWrapper),Ee(Sd,"keyboradHandler",{"forbid remove table by backspace":{bindInHead:!0,key:"Backspace",collapsed:!0,offset:0,handler(e,t){let r=this.quill.getLine(e.index),i=r[0];return i.prev instanceof $g?(i.prev.remove(),!1):!(t.format[qe.tableCellInner]&&i.offset(Kl(i,qe.tableCellInner))===0)}},"forbid remove table by delete":{bindInHead:!0,key:"Delete",collapsed:!0,handler(e,t){let r=this.quill.getLine(e.index),i=r[0],o=r[1];if((i.next instanceof $g||i.next instanceof Ig)&&o===i.length()-1)return!1;if(t.format[qe.tableCellInner]){let l=Kl(i,qe.tableCellInner);if(i===l.children.tail&&o===i.length()-1)return!1}return!0}},"table up":Mw(!0),"table down":Mw(!1),"table caption break":{bindInHead:!0,key:"Enter",shiftKey:null,format:[qe.tableCaption],handler(e,t){return!1}}}),Sd),A4=ez;const tz="_AEditorWrapper_gy9qb_1",nz="_AEditorContainer_gy9qb_7",rz="_AEditor_gy9qb_1",iz="_Primary_gy9qb_24",oz="_ReadOnly_gy9qb_54",lz="_Raw_gy9qb_128",sz="_LimitContainer_gy9qb_145",az="_Limit_gy9qb_145",cz="_Indicator_gy9qb_168",uz="_Resizer_gy9qb_176",af={AEditorWrapper:tz,AEditorContainer:nz,AEditor:rz,Primary:iz,"ql-toolbar":"_ql-toolbar_gy9qb_24","ql-snow":"_ql-snow_gy9qb_24",ReadOnly:oz,Error:"_Error_gy9qb_91",Raw:lz,LimitContainer:sz,Limit:az,Indicator:cz,Resizer:uz,"ql-image-resizer-overlay":"_ql-image-resizer-overlay_gy9qb_209","ql-image-resizer-handle":"_ql-image-resizer-handle_gy9qb_216","ql-image-resizer-display":"_ql-image-resizer-display_gy9qb_226","ql-image-resizer-toolbar":"_ql-image-resizer-toolbar_gy9qb_237","ql-image-resizer-toolbar-button":"_ql-image-resizer-toolbar-button_gy9qb_245"};class fz{constructor(e,t={}){Ee(this,"quill");Ee(this,"cleanupFunctions",[]);this.quill=e,t.isTitleMode&&this.setupTitleModePaste()}setupTitleModePaste(){const e=this.quill.root,t=r=>{if(r.preventDefault(),!r.clipboardData)return;const i=r.clipboardData.getData("text/html"),o=r.clipboardData.getData("text/plain"),l=this.quill.getSelection(!0);if(l)if(l.length>0&&this.quill.deleteText(l.index,l.length,Xe.sources.USER),i){const a=document.createElement("div");a.innerHTML=i,this.replaceBreaksWithSpaces(a);const g=this.quill.getModule("clipboard").convert({html:a.innerHTML});this.quill.updateContents(g,Xe.sources.USER),setTimeout(()=>{const m=g.reduce((x,w)=>x+(typeof w.insert=="string"?w.insert.length:1),0);this.quill.setSelection(l.index+m,0,Xe.sources.SILENT)},0)}else{const a=o.replace(/[\r\n]+/g," ").trim();this.quill.insertText(l.index,a,Xe.sources.USER),this.quill.setSelection(l.index+a.length,0,Xe.sources.SILENT)}};e.addEventListener("paste",t,{capture:!0}),this.cleanupFunctions.push(()=>{e.removeEventListener("paste",t,{capture:!0})})}replaceBreaksWithSpaces(e){var i,o;const t=l=>{var a;if(l.nodeType===Node.TEXT_NODE)l.textContent=((a=l.textContent)==null?void 0:a.replace(/[\r\n]+/g," "))??"";else for(const h of Array.from(l.childNodes))t(h)};t(e);const r=e.querySelectorAll("br, p, div");for(const l of Array.from(r))l.tagName==="BR"?(i=l.parentNode)==null||i.replaceChild(document.createTextNode(" "),l):(l.tagName==="P"||l.tagName==="DIV")&&l.nextSibling&&!((o=l.textContent)!=null&&o.endsWith(" "))&&l.appendChild(document.createTextNode(" "));e.innerHTML=e.innerHTML.replace(/\s+$/,""),e.innerHTML=e.innerHTML.replace(/\s{2,}/g," ")}destroy(){this.cleanupFunctions.forEach(e=>e()),this.cleanupFunctions=[]}async copyContent(e){var t;try{const r=this.quill.getText(),i=this.quill.root.innerHTML;return this.copyToClipboard(r,i,e)}catch(r){return console.error("Error in copyContent:",r),(t=e==null?void 0:e.onError)==null||t.call(e),!1}}async copyToClipboard(e,t,r){var i,o;try{return await this.tryModernClipboardWithHtml(e,t,r)||await this.tryModernClipboardText(e,r)||t&&this.tryLegacyClipboardWithHtml(t,r)||this.tryLegacyClipboardText(e,r)?!0:((i=r==null?void 0:r.onError)==null||i.call(r),!1)}catch(l){return console.error("복사 중 오류 발생:",l),(o=r==null?void 0:r.onError)==null||o.call(r),!1}}async tryModernClipboardWithHtml(e,t,r){var i;if(!navigator.clipboard||!t||!window.ClipboardItem||!window.isSecureContext)return!1;try{return await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([t],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]),(i=r==null?void 0:r.onSuccess)==null||i.call(r),!0}catch{return!1}}async tryModernClipboardText(e,t){var r;if(!navigator.clipboard||!window.isSecureContext)return!1;try{return await navigator.clipboard.writeText(e),(r=t==null?void 0:t.onSuccess)==null||r.call(t),!0}catch{return!1}}tryLegacyClipboardWithHtml(e,t){const r=document.createElement("div");r.innerHTML=e,r.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;",document.body.appendChild(r);try{const i=document.createRange();i.selectNodeContents(r);const o=window.getSelection();return o?(o.removeAllRanges(),o.addRange(i),this.tryClipboardEventCopy({html:e,text:r.textContent??""},t)):!1}finally{document.body.removeChild(r)}}tryLegacyClipboardText(e,t){const r=document.createElement("textarea");r.value=e,r.style.cssText="position:fixed;left:-9999px;top:-9999px;opacity:0;",document.body.appendChild(r);try{return r.focus(),r.select(),this.tryClipboardEventCopy({text:e},t)}finally{document.body.removeChild(r)}}tryClipboardEventCopy(e,t){var o;let r=!1;const i=l=>{l.preventDefault(),l.clipboardData&&(l.clipboardData.setData("text/plain",e.text),e.html&&l.clipboardData.setData("text/html",e.html),r=!0)};document.addEventListener("copy",i);try{const l=new ClipboardEvent("copy",{clipboardData:new DataTransfer});if(document.dispatchEvent(l),r)return(o=t==null?void 0:t.onSuccess)==null||o.call(t),!0}catch{return!1}return document.removeEventListener("copy",i),!1}}const hz=Xe.import("blots/block/embed"),dz=Xe.import("ui/icons");dz.divider=a1.renderToString(M.jsx(uo,{icon:"Minus",strokeWidth:2.5,width:"100%"}));class am extends hz{static create(e){const t=super.create(e);return t.style.border="var(--AEditor_Addon_Primary_border)",t.style.borderBottom="none",t.style.transition="border var(--Transition)",t}}Ee(am,"blotName","divider"),Ee(am,"tagName","hr");class gz{constructor(e,t){this.debug=e,this.suppressErrorLogging=t}prefixString(){return"</> quill-image-compress: "}get log(){return this.debug?console.warn.bind(console,this.prefixString()):()=>{}}get error(){return this.suppressErrorLogging?()=>{}:console.error.bind(console,this.prefixString())}get warn(){return this.suppressErrorLogging?()=>{}:console.warn.bind(console,this.prefixString())}}async function R4(n){const e=new FileReader,t=new Promise((r,i)=>{e.addEventListener("load",()=>{const o=e.result;typeof o=="string"?r(o):i(new Error("could not convert file to base64"))},!1)});return e.readAsDataURL(n),t}function pz(n,e,t,r){if(t&&r&&n<=t&&e<=r)return[n,e];if(t&&n>t){const i=t,o=Math.floor(e/n*i);if(r&&o>r){const l=r;return[Math.floor(n/e*l),l]}else return[i,o]}if(r&&e>r){const i=r;return[Math.floor(n/e*i),i]}return[n,e]}async function vz(n,e,t={}){const r=e.split(";")[0].split(":")[1],{maxWidth:i,maxHeight:o,imageType:l="image/jpeg",keepImageTypes:a,ignoreImageTypes:h,imageQuality:g=.7}=t,m=new Image;m.src=e,await new Promise(k=>{m.onload=()=>{k()}});const[x,w]=pz(m.width,m.height,i,o),_=document.createElement("canvas");_.width=x,_.height=w;const E=_.getContext("2d");if(l==="image/jpeg"&&(E.fillStyle="#FFFFFF",E.fillRect(0,0,m.width,m.height)),h!=null&&h.includes(r))return e;a!=null&&a.includes(r)&&(t.imageType=r),E.drawImage(m,0,0,x,w);const R=_.toDataURL(t.imageType??l,g);return n.log("downscaling image...",{args:{dataUrl:e,...t},newHeight:w,newWidth:x}),R}function bz(n,e){n.maxWidth??(n.maxWidth=1e3),n.maxHeight??(n.maxHeight=1e3),yz(n,e),mz(n,e),xz(n,e),wz(n,e),Cz(n,e)}function yz(n,e){n.maxWidth&&typeof n.maxWidth!="number"&&(e.warn(`[config error] 'maxWidth' is required to be a "number" (in pixels),
|
|
471
471
|
received: ${n.maxWidth}
|
|
472
472
|
-> using default 1000`),n.maxWidth=1e3),n.maxHeight&&typeof n.maxHeight!="number"&&(e.warn(`[config error] 'maxHeight' is required to be a "number" (in pixels),
|
|
473
473
|
received: ${n.maxHeight}
|
|
@@ -475,13 +475,13 @@ received: ${n.maxHeight}
|
|
|
475
475
|
received: ${n.quality}
|
|
476
476
|
-> using default 0.7`),n.quality=.7)}function xz(n,e){n.imageType&&(typeof n.imageType!="string"||!n.imageType.startsWith("image/"))&&(e.warn(`quill.imageCompressor: [config error] 'imageType' is required be in the form of "image/png" or "image/jpeg" etc ...,
|
|
477
477
|
received: ${n.imageType}
|
|
478
|
-
-> using default image/jpeg`),n.imageType="image/jpeg")}function wz(n,e){n.keepImageTypes??(n.keepImageTypes=[]),n.keepImageTypes&&!Array.isArray(n.keepImageTypes)&&(e.warn(`quill.imageCompressor: [config error] 'keepImageTypes' is required to be a "array", received: ${n.keepImageTypes} -> using default []`),n.keepImageTypes=[]),n.ignoreImageTypes??(n.ignoreImageTypes=[]),n.ignoreImageTypes&&!Array.isArray(n.ignoreImageTypes)&&(e.warn(`quill.imageCompressor: [config error] 'ignoreImageTypes' is required to be a "array", received: ${n.ignoreImageTypes} -> using default []`),n.ignoreImageTypes=[])}function Cz(n,e){n.handleOnPaste&&typeof n.handleOnPaste!="boolean"&&typeof n.handleOnPaste!="function"&&(e.warn(`quill.imageCompressor: [config error] 'handlePaste' is required to be a "boolean" or a "function", received: ${n.ignoreImageTypes} -> using default true`),n.handleOnPaste=!0),n.insertIntoEditor&&typeof n.insertIntoEditor!="function"&&(e.warn(`quill.imageCompressor: [config error] 'insertIntoEditor' is required to be a "function", received: ${n.insertIntoEditor} -> using default undefined`),n.insertIntoEditor=void 0)}function Lw(n){return!!/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i.exec(n)}class _z{constructor(e,t,r,i){Ee(this,"localDrag",!1);this.quill=e,this.onNewDataUrl=t,this.logger=r,this.handleOnPaste=i,this.quill.root.addEventListener("dragstart",o=>this.handleDragStart(o),!1),this.quill.root.addEventListener("dragend",o=>this.handleDragEnd(o),!1),this.quill.root.addEventListener("drop",o=>this.handleDrop(o),!0),this.handleOnPaste!==!1&&this.quill.root.addEventListener("paste",o=>this.handlePaste(o),!0)}handleDragStart(e){this.localDrag=!0}handleDragEnd(e){this.localDrag=!1}async handleDrop(e){var l,a,h,g;if(this.localDrag)return;e.preventDefault();const t=document.getSelection();if(t&&document.caretPositionFromPoint){const m=document.caretPositionFromPoint(e.clientX,e.clientY);m&&t.setBaseAndExtent(m.offsetNode,m.offset,m.offsetNode,m.offset)}this.logger.log("handleDrop",{evt:e});const r=(l=e.dataTransfer)==null?void 0:l.files,i=Array.from(r||[]).filter(m=>Lw(m.type));if(i.length>0){e.stopPropagation(),this.logger.log("handleDrop","found files",{evt:e,files:r,imageFiles:i}),await this.pasteFilesIntoQuill(i);return}if((a=e.dataTransfer)!=null&&a.items){e.stopPropagation(),this.logger.log("handleDrop","found items",{evt:e,files:r,imageFiles:i}),await this.handleDataTransferList((h=e.dataTransfer)==null?void 0:h.items,e);return}const o=(g=e.dataTransfer)==null?void 0:g.getData("URL");if(this.logger.log("handleDrop","trying getData('URL')",{draggedUrl:o}),o){const m=await(await fetch(o)).blob();this.logger.log("handleDrop","blob from drag event",{evt:e,files:r,imageFiles:i}),await this.pasteFilesIntoQuill([m])}}async handlePaste(e){var t;typeof this.handleOnPaste=="function"&&!this.handleOnPaste(e)||await this.handleDataTransferList((t=e.clipboardData)==null?void 0:t.items,e)}async handleDataTransferList(e,t){const r=Array.from(e||[]),i=r.filter(a=>a.kind==="file"&&Lw(a.type)),o=r.map(a=>({type:a.type,kind:a.kind}));if(this.logger.log("handleDataTransferList",{fileTypes:o,imageCount:i.length}),!i.length)return;t.preventDefault(),t.stopPropagation();const l=i.map(a=>a.getAsFile());await this.pasteFilesIntoQuill(l)}async pasteFilesIntoQuill(e){this.logger.log(" pasteFilesIntoQuill",`pasting ${e.length} images...`),await Promise.all(e.map(async(t,r)=>{if(!t)return;const i=await R_(t);this.logger.log(" pasteFilesIntoQuill",`pasting image (${r})`),this.onNewDataUrl(i)})),this.logger.log(" pasteFilesIntoQuill","done")}}class Fp{constructor(e,t){Ee(this,"quill");Ee(this,"range");Ee(this,"options");Ee(this,"imageDrop");Ee(this,"fileHolder");Ee(this,"Logger");this.quill=e,this.options=t||{};const r=!!t.debug,i=!!t.suppressErrorLogging;this.Logger=new gz(r,i),bz(t,this.Logger);const o=async a=>{this.Logger.log("onImageDrop",{dataUrl:a});const h=await this.downscaleImageFromUrl(a);this.insertToEditor(h,Fp.b64toBlob(h))};this.imageDrop=new _z(e,o,this.Logger,typeof this.options.handleOnPaste=="function"?this.options.handleOnPaste:this.options.handleOnPaste!==!1),this.Logger.log("fileChanged",{options:t,quill:e,debug:r});const l=this.quill.getModule("toolbar");l?l.addHandler("image",()=>this.selectLocalImage()):this.Logger.error("Quill toolbar module not found! need { toolbar: // options } in Quill.modules for image icon to sit in")}static b64toBlob(e){const t=atob(e.split(",")[1]),r=e.slice(5).split(";")[0],i=new ArrayBuffer(t.length);let o=new Uint8Array(i);for(let l=0;l<t.length;l++)o[l]=t.charCodeAt(l);return new Blob([i],{type:r})}destroy(){this.imageDrop&&console.warn("ImageDrop instance cleanup")}selectLocalImage(e){this.range=this.quill.getSelection(),this.fileHolder=document.createElement("input"),this.fileHolder.setAttribute("type","file"),this.fileHolder.setAttribute("accept","image/*"),this.fileHolder.setAttribute("style","visibility:hidden"),this.fileHolder.onchange=()=>this.fileChanged().then(()=>e&&e()),document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(()=>{this.fileHolder&&document.body.removeChild(this.fileHolder)})}async fileChanged(e){var l;const t=e||((l=this.fileHolder)==null?void 0:l.files);if(!(t!=null&&t.length))return;const r=t[0];if(this.Logger.log("fileChanged",{file:r}),!r)return;const i=await R_(r),o=await this.downscaleImageFromUrl(i);this.insertToEditor(o,Fp.b64toBlob(o))}async downscaleImageFromUrl(e){const t=await vz(this.Logger,e,{maxWidth:this.options.maxWidth,maxHeight:this.options.maxHeight,imageType:this.options.imageType,keepImageTypes:this.options.keepImageTypes,ignoreImageTypes:this.options.ignoreImageTypes,imageQuality:this.options.quality});return this.Logger.log("downscaleImageFromUrl",{dataUrl:e,dataUrlCompressed:t}),t}insertToEditor(e,t){if(this.options.insertIntoEditor)this.options.insertIntoEditor(e,t,this.quill);else{this.Logger.log("insertToEditor",{url:e}),this.range=this.quill.getSelection();const r=this.range;if(!r)return;this.logFileSize(e),this.quill.insertEmbed(r.index,"image",`${e}`,"user"),r.index++,this.quill.setSelection(r,"api")}}logFileSize(e){const i=(Math.round((e.length-"data:image/png;base64,".length)*3/4)/1024).toFixed(0);this.Logger.log("estimated img size: "+i+" kb")}}window.imageCompressor=Fp;const Bp={OVERLAY:"ql-image-resizer-overlay",HANDLE:"ql-image-resizer-handle",DISPLAY:"ql-image-resizer-display",TOOLBAR:"ql-image-resizer-toolbar",TOOLBAR_BUTTON:"ql-image-resizer-toolbar-button"},Vd={BACKSPACE:8,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40},D0=(n,e)=>{const t=n?"top":"bottom",r=e?"left":"right",i=n===e?"nwse-resize":"nesw-resize";return{[t]:"-5px",[r]:"-5px",cursor:i}},Sz={tl:D0(!0,!0),tr:D0(!0,!1),bl:D0(!1,!0),br:D0(!1,!1)},Ez={modules:["DisplaySize","Toolbar","Resize","Keyboard"],embedTags:["VIDEO","IFRAME"],tools:["left","center","right","justify"],contentOptions:[{attribute:["width"],limit:{minWidth:100},blotName:"image"},{attribute:["width","height"],limit:{minWidth:200,ratio:.5625},blotName:"video"}]},Tz=Xe.import("formats/image");class q0 extends Tz{static get ATTRIBUTES(){return["alt","height","width","class","style","data-align"]}static formats(e){return this.ATTRIBUTES.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)??""),t),{})}format(e,t){this.constructor.ATTRIBUTES.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(q0,"blotName","image"),Ee(q0,"tagName","img"),Ee(q0,"scope",Qn.INLINE);Xe.register("formats/image",q0,!0);class Xp{constructor(e){Ee(this,"resizer");Ee(this,"quill");Ee(this,"overlay");Ee(this,"activeEle");Ee(this,"blot");Ee(this,"options");Ee(this,"requestUpdate");this.resizer=e,this.quill=e.quill,this.overlay=e.overlay,this.activeEle=e.activeEle,this.blot=e.blot,this.options=e.options,this.requestUpdate=()=>e.onUpdate(!0)}onCreate(){}onDestroy(){}onUpdate(){}}class Az extends Xp{constructor(){super(...arguments);Ee(this,"display")}onCreate(){var t;this.display=document.createElement("div"),this.display.className=af[Bp.DISPLAY],(t=this.overlay)==null||t.appendChild(this.display)}onUpdate(){if(!this.display||!this.activeEle)return;const[t,r]=[this.activeEle.offsetWidth,this.activeEle.offsetHeight];this.display.innerHTML=`${t} × ${r}`,this.positionDisplay(t,r)}positionDisplay(t,r){var a;if(!this.display)return;const i=this.display.getBoundingClientRect(),o=t>120&&r>30,l=((a=this.activeEle)==null?void 0:a.style.float)==="right";Object.assign(this.display.style,{right:o?"4px":l?"auto":`-${i.width+4}px`,bottom:o?"4px":`-${i.height+4}px`,left:o?"auto":l?`-${i.width+4}px`:"auto"})}}class Rz extends Xp{constructor(){super(...arguments);Ee(this,"boxes",[]);Ee(this,"dragBox",null);Ee(this,"dragStartX",0);Ee(this,"dragStartY",0);Ee(this,"contentOption");Ee(this,"preDragSize",{width:0,height:0});Ee(this,"naturalSize",[0,0]);Ee(this,"handleDragProxy",null);Ee(this,"handleMouseupProxy",null);Ee(this,"handleMousedown",t=>{!this.blot||!this.activeEle||(this.dragBox=t.target,this.dragStartX=t.clientX,this.dragStartY=t.clientY,this.preDragSize={width:this.activeEle.offsetWidth,height:this.activeEle.offsetHeight},this.naturalSize=this.getNaturalSize(),this.setCursor(window.getComputedStyle(this.dragBox).cursor),this.handleDragProxy=this.handleDrag.bind(this),this.handleMouseupProxy=this.handleMouseup.bind(this),document.addEventListener("mousemove",this.handleDragProxy,!0),document.addEventListener("mouseup",this.handleMouseupProxy,!0))});Ee(this,"handleMouseup",t=>{if(!this.activeEle||!this.blot||!this.contentOption)return;const r=this.calcSize(t,this.contentOption.limit);Object.assign(this.activeEle,r),Object.assign(this.activeEle.style,{width:null,height:null}),this.setCursor(""),this.removeEventListeners()});Ee(this,"handleDrag",t=>{!this.activeEle||!this.blot||!this.contentOption||(Object.assign(this.activeEle.style,this.calcSize(t,{...this.contentOption.limit,unit:!0})),this.requestUpdate())});Ee(this,"handleDoubleClick",t=>{if(!this.blot||!this.activeEle||!this.contentOption)return;t.stopPropagation();const[r,i]=this.naturalSize,o={};this.contentOption.attribute.includes("width")&&(o.width=r),this.contentOption.attribute.includes("height")&&(o.height=i);const l=this.applyConstraints(o,this.contentOption.limit);Object.assign(this.activeEle,l),this.requestUpdate()})}onCreate(){!this.blot||!this.options.contentOptions||(this.contentOption=this.options.contentOptions.find(t=>t.blotName===this.blot.statics.blotName),this.boxes=[],["tl","tr","br","bl"].forEach(this.addBox.bind(this)))}onDestroy(){this.setCursor("")}addBox(t){var i;const r=document.createElement("div");r.className=`${af[Bp.HANDLE]} ${t}`,r.addEventListener("mousedown",this.handleMousedown,!1),r.addEventListener("dblclick",this.handleDoubleClick,!1),Object.assign(r.style,Sz[t]),(i=this.overlay)==null||i.appendChild(r),this.boxes.push(r)}removeEventListeners(){this.handleDragProxy&&(document.removeEventListener("mousemove",this.handleDragProxy,!0),this.handleDragProxy=null),this.handleMouseupProxy&&(document.removeEventListener("mouseup",this.handleMouseupProxy,!0),this.handleMouseupProxy=null)}calcSize(t,r={}){var h;if(!this.dragBox||!this.activeEle)return{};const i=t.clientX-this.dragStartX,o=t.clientY-this.dragStartY,l=this.dragBox===this.boxes[0]||this.dragBox===this.boxes[3]?-1:1,a={};return(h=this.contentOption)!=null&&h.attribute?this.contentOption.attribute.forEach(g=>a[g]=this.preDragSize[g]):a.width=this.preDragSize.width,a.width&&(a.width=Math.round(this.preDragSize.width+i*l)),a.height&&(a.height=Math.round(this.preDragSize.height+o*l)),this.applyConstraints(a,r)}applyConstraints(t,r={}){const i=typeof t.width=="string"?parseInt(t.width,10):t.width||0,o=typeof t.height=="string"?parseInt(t.height,10):t.height||0;let l=i,a=o;if(r.ratio){l=this.applyLimit(l,r.minWidth,r.maxWidth),a=l*r.ratio;const g=this.applyLimit(a,r.minHeight,r.maxHeight);g!==a&&(a=g,l=a/r.ratio)}else i&&(l=this.applyLimit(l,r.minWidth,r.maxWidth)),o&&(a=this.applyLimit(a,r.minHeight,r.maxHeight));const h={};return t.width!==void 0&&(h.width=r.unit?`${l}px`:l),t.height!==void 0&&(h.height=r.unit?`${a}px`:a),h}applyLimit(t,r,i){let o=t;return r!==void 0&&(o=Math.max(r,o)),i!==void 0&&(o=Math.min(i,o)),o}getNaturalSize(){if(!this.activeEle)return[0,0];const t=this.activeEle.getAttribute("data-size");if(!t){const r=this.activeEle,i=[r.offsetWidth,r.offsetHeight];return r.setAttribute("data-size",i.join(",")),i}return t.split(",").map(Number)}setCursor(t){[document.body,this.activeEle].forEach(r=>r&&(r.style.cursor=t))}}const qd=class qd extends Xp{constructor(){super(...arguments);Ee(this,"keyboardProxy",null)}static injectInit(t){var i;const r=(i=t.keyboard)==null?void 0:i.bindings;r&&[qd.keys.LEFT,qd.keys.RIGHT].forEach(o=>(r[o]||[]).unshift(qd.makeArrowHandler(o)))}static makeArrowHandler(t){const r=t===qd.keys.LEFT;return{key:t,shiftKey:!1,altKey:null,[r?"prefix":"suffix"]:/^$/,handler(i){const o=this.quill;if(!o.resizer)return!0;let l=i.index;const a=t===qd.keys.RIGHT,[h]=o.getLine(l+(r?-1:0));if(!h)return!0;if(o.resizer.judgeShow(h))return!1;const g=o.getIndex(h);if(a&&g+h.length()-1===l)return!0;a&&(l+=i.length+1);const[m]=o.getLeaf(l);if(!m)return!0;const x=m.offset(m.parent),w=m.constructor&&"scope"in m.constructor&&m.constructor.scope===Qn.BLOCK_BLOT;if(r&&(w&&l===x||l===0||l===g))return!0;let _=m;if(r&&x===0){const[E]=o.getLeaf(l-1);E&&(_=E)}return!_||!o.resizer.judgeShow(_)}}}onCreate(){this.keyboardProxy=this.keyboardHandle.bind(this),document.addEventListener("keydown",this.keyboardProxy,!0)}onDestroy(){this.keyboardProxy&&document.removeEventListener("keydown",this.keyboardProxy,!0)}keyboardHandle(t){if(t.defaultPrevented||t.shiftKey||t.ctrlKey||t.altKey||!this.activeEle)return;const r=t.keyCode;let i=this.blot.offset(this.quill.scroll),o=null,l=!1;r===Vd.BACKSPACE||r===Vd.DELETE?(this.handleDelete(),l=!0):r>=Vd.LEFT&&r<=Vd.DOWN&&([i,o]=this.handleArrowKeys(r,i),l=!0),l&&(t.stopPropagation(),t.preventDefault()),!(o&&this.resizer.judgeShow(o,o.domNode))&&(this.quill.setSelection(i),this.resizer.hide())}handleDelete(){this.blot&&(this.blot.deleteAt(0,1),this.blot.parent.optimize({}))}handleArrowKeys(t,r){let i=null;return t===Vd.RIGHT?r+=this.blot.length()||1:t===Vd.UP?(r=this.getOtherLineIndex(-1),i=this.quill.getLeaf(r)[0]):t===Vd.DOWN&&(r=this.getOtherLineIndex(1),i=this.quill.getLeaf(r)[0]),[r,i]}getOtherLineIndex(t){if(!this.blot)return 0;const r=this.blot.offset(this.quill.scroll),[i]=this.quill.getLine(r);if(!i)return r;const o=this.blot.offset(i)+1,l=t>0?i.next:i.prev;if(!l)return r;let a=l.length();return l.statics.blotName==="block"&&a--,l.offset(this.quill.scroll)+Math.min(a,o)}};Ee(qd,"keys",Vd);let vv=qd;const f1=class f1 extends Xp{constructor(t){super(t);Ee(this,"toolbar");Ee(this,"blot");this.blot=t.blot}createStyleTool(t,r){const i={left:{float:"left"},right:{float:"right"},center:{display:"block",margin:"0 auto",float:"none"},justify:{display:"block",float:"none",margin:"0",width:"100%"}};return{icon:t,apply:o=>{const l=i[r];Object.assign(o.style,l),o.setAttribute("data-align",r)},isApplied:o=>{const l=o.style;switch(r){case"center":return l.float==="none";case"justify":return l.display==="block"&&l.width==="100%";case"left":case"right":return l.float===r;default:return!1}}}}onCreate(){var t;this.toolbar=document.createElement("div"),this.toolbar.className=af[Bp.TOOLBAR],(t=this.overlay)==null||t.appendChild(this.toolbar),Object.keys(f1.Tools).forEach(r=>{const i=r;f1.Tools[i]=this.createStyleTool(f1.Tools[i].icon,i)}),this._addToolbarButtons()}_addToolbarButtons(){if(!this.toolbar||!this.activeEle)return;const{Tools:t}=this.constructor;this.options.tools.forEach(r=>{const i=r,o=t[i];if(!o)return;const l=document.createElement("button");l.type="button",l.className=af[Bp.TOOLBAR_BUTTON],l.innerHTML=a1.renderToString(M.jsx(uo,{icon:o.icon,size:"xs"})),l.setAttribute("data-tool",i),o.isApplied&&o.isApplied.call(this,this.activeEle)&&(l.style.backgroundColor="var(--AEditor_Addon_Secondary_color)"),this.addButtonClickHandler(l,o),this.toolbar.appendChild(l)})}addButtonClickHandler(t,r){!this.activeEle||!this.blot||t.addEventListener("click",i=>{var l;if(i.stopPropagation(),r.handler&&r.handler.call(this,i,t,this.activeEle)!==!0)return;const o=r.isApplied&&r.isApplied.call(this,this.activeEle);return this.toolbar&&Array.from(this.toolbar.querySelectorAll("button")).forEach(a=>a.style.backgroundColor=""),o?(this.activeEle.style.cssText="",this.activeEle.setAttribute("data-align","")):(t.style.backgroundColor="var(--AEditor_Addon_Secondary_color)",(l=r.apply)==null||l.call(r,this.activeEle)),this.requestUpdate(),!1})}};Ee(f1,"Tools",{left:{icon:"AlignLeft"},center:{icon:"AlignCenter"},right:{icon:"AlignRight"},justify:{icon:"AlignJustify"}});let cm=f1;class I_{constructor(e,t={}){Ee(this,"quill");Ee(this,"options");Ee(this,"moduleClasses");Ee(this,"modules",[]);Ee(this,"blot");Ee(this,"selectedBlots",[]);Ee(this,"embedClassName","");Ee(this,"activeEle");Ee(this,"overlay");Ee(this,"updateFromModule",!1);Ee(this,"hideProxy",null);Ee(this,"updateOverlayPositionProxy",null);var i;e.resizer=this,this.quill=e;const r=t.modules?[...t.modules]:null;this.options={...Ez,...t},r&&(this.options.modules=r),document.execCommand("enableObjectResizing",!1,"false"),this.moduleClasses=this.options.modules,this.quill.root.addEventListener("mousedown",this.handleClick.bind(this),!1),this.quill.on("text-change",this.handleChange.bind(this)),this.quill.container.style.position=this.quill.container.style.position||"relative",this.quill.on("selection-change",this.addBlotsSelectedClass.bind(this)),vv.injectInit(this.quill),(i=this.options.embedTags)!=null&&i.length&&this.initializeEmbed()}initializeModules(){this.modules.forEach(e=>e.onDestroy()),this.modules=[],this.modules=this.moduleClasses.map(e=>new(this.constructor.Modules[e]||e)(this)),this.modules.forEach(e=>e.onCreate()),this.repositionElements(),this.modules.forEach(e=>e.onUpdate())}initializeEmbed(){if(!this.options.embedTags.length)return;this.embedClassName=`ql-${Array.from({length},()=>[Math.floor(Math.random()*62)]).join("")}`;const e=[""].concat(this.options.embedTags).join(`, .${this.embedClassName} `).slice(2)+"{pointer-events: none;}",t=document.createElement("style");t.textContent=e,this.quill.container.appendChild(t),this.quill.root.classList.add(this.embedClassName)}onUpdate(e){this.updateFromModule=!!e,this.repositionElements(),this.modules.forEach(t=>t.onUpdate())}handleClick(e){if(this.overlay&&(e.target===this.overlay||this.overlay.contains(e.target)))return;let t=e.target;if(t=this.getEventTarget(e,t),t!=null&&t.tagName){const r=this.quill.scroll.find(t);if(r&&this.judgeShow(r,t)){e.preventDefault();return}}this.activeEle&&this.hide()}getEventTarget(e,t){var o;const r=(o=this.options.embedTags)==null?void 0:o.join();if(!r)return t;const i=this.quill.root;return(t===i||t.querySelectorAll(r).length)&&(i.classList.remove(this.embedClassName),t=document.elementFromPoint(e.clientX,e.clientY),i.classList.add(this.embedClassName)),t}judgeShow(e,t){if(!e||!this.options.contentOptions)return!1;!t&&e.domNode&&(t=e.domNode);const r=this.options.contentOptions.find(o=>o.blotName===e.statics.blotName);if(!r)return!1;if(this.activeEle===t)return!0;const i=r.limit||{};return!i.minWidth||i.minWidth&&t.offsetWidth>=i.minWidth?(this.activeEle&&this.hide(),this.activeEle=t,this.blot=e,this.showOverlay(),this.initializeModules(),!0):!1}handleChange(e,t,r){if(this.updateFromModule){this.updateFromModule=!1;return}r!=="user"||!this.overlay||!this.activeEle||this.onUpdate()}showOverlay(){this.overlay&&this.hideOverlay(),this.quill.setSelection(null),[document.body,this.quill.root].forEach(e=>e.style.userSelect="none"),this.overlay=document.createElement("div"),this.overlay.className=`${af[Bp.OVERLAY]}`,this.overlay.addEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation(),this.quill.root.scrollTop+=e.deltaY*.5},{passive:!1}),this.quill.container.appendChild(this.overlay),this.hideProxy=()=>this.activeEle&&this.hide(),this.updateOverlayPositionProxy=()=>this.overlay&&(this.overlay.style.marginTop=-1*this.quill.root.scrollTop+"px"),this.quill.root.addEventListener("input",this.hideProxy,!0),this.quill.root.addEventListener("scroll",this.updateOverlayPositionProxy),this.repositionElements()}hideOverlay(){this.overlay&&(this.quill.container.removeChild(this.overlay),this.overlay=void 0,this.hideProxy&&this.quill.root.removeEventListener("input",this.hideProxy,!0),this.updateOverlayPositionProxy&&this.quill.root.removeEventListener("scroll",this.updateOverlayPositionProxy),[document.body,this.quill.root].forEach(e=>e.style.userSelect=""))}repositionElements(){if(!this.overlay||!this.activeEle)return;const e=this.quill.container,t=this.activeEle.getBoundingClientRect(),r=e.getBoundingClientRect();Object.assign(this.overlay.style,{left:`${t.left-r.left-1+e.scrollLeft}px`,top:`${t.top-r.top+this.quill.root.scrollTop}px`,width:`${t.width}px`,height:`${t.height}px`,marginTop:-1*this.quill.root.scrollTop+"px"})}addBlotsSelectedClass(e){if(!e){this.selectedBlots=[];return}try{const t=i=>{var o;return["image","iframe","video"].includes((o=i.statics)==null?void 0:o.blotName)},r=this.quill.scroll.descendants(t,e.index,e.length);this.selectedBlots=r.filter(i=>!i.statics||!this.options.contentOptions?!1:!!this.options.contentOptions.find(o=>o.blotName===i.statics.blotName))}catch{}}hide(){this.hideOverlay(),this.modules.forEach(e=>e.onDestroy()),this.modules=[],this.activeEle=void 0,this.blot=void 0}}Ee(I_,"Modules",{Base:Xp,DisplaySize:Az,Toolbar:cm,Resize:Rz,Keyboard:vv});const N0=Xe.import("delta"),Iz=Xe.import("modules/clipboard");function kz(n){let e=Number.parseFloat(n.getAttribute("width")||String(Ss.colDefaultWidth));if(Number.isNaN(e)){const t=n.style.width;e=t?Number.parseFloat(t):n.offsetWidth}return e}function Mz(n,e){const t=new Array(e).fill(Ss.colDefaultWidth),r=Array.from(n.querySelectorAll("tr"));for(const i of r){const o=Array.from(i.querySelectorAll("td"));for(const[l,a]of o.entries())if(l<e){const h=kz(a);t[l]=h||t[l]}else break}return t}class Lz extends Iz{constructor(t,r){super(t,r);Ee(this,"tableId",Na());Ee(this,"rowId",Na());Ee(this,"colIds",[]);Ee(this,"rowspanCount",[]);Ee(this,"cellCount",0);Ee(this,"colCount",0);Ee(this,"STYLE_PROPERTIES",["color","background","background-color","mso-pattern","border","border-color","border-top","border-right","border-bottom","border-left"]);this.quill=t,this.addMatcher("table",this.matchTable.bind(this)),this.addMatcher("colgroup",this.matchColgroup.bind(this)),this.addMatcher("col",this.matchCol.bind(this)),this.addMatcher("tr",this.matchTr.bind(this)),this.addMatcher("td",this.matchTd.bind(this)),this.addMatcher("th",this.matchTd.bind(this)),this.addMatcher("caption",this.matchCaption.bind(this))}matchTable(t,r){if(r.ops.length===0)return r;const i=[],o=[];let l=-1;for(let g=0;g<r.ops.length;g++){const{attributes:m,insert:x}=r.ops[g],{table:w,[qe.tableCell]:_,...E}=m||{},R=tg.isObject(x)&&x[qe.tableCol];R?o.push({insert:x}):i.push({attributes:E,insert:x}),!(E!=null&&E[qe.tableCellInner])&&!R&&(l=g)}const h=Mz(t,this.colIds.length).reduce((g,m,x)=>(o[x]?g.push(o[x]):g.push({insert:{[qe.tableCol]:{tableId:this.tableId,colId:this.colIds[x],width:m,full:!0}}}),g),[]);return i.splice(l+1,0,...h),this.tableId=Na(),this.colIds=[],this.rowspanCount=[],this.cellCount=0,this.colCount=0,new N0(i)}matchColgroup(t,r){const i=[];for(let o=0;o<r.ops.length;o++){const l=r.ops[o];l&&tg.isObject(l.insert)&&l.insert[qe.tableCol]&&i.push(l)}return new N0(i)}matchCol(t){this.colIds[this.colCount]=Na();const r=new N0().insert({[qe.tableCol]:Object.assign(Ig.value(t),{tableId:this.tableId,colId:this.colIds[this.colCount]})});return this.colCount+=1,r}matchTr(t,r){this.rowId=Na(),this.cellCount=0;for(const[i,o]of this.rowspanCount.entries())o.rowspan>0&&(o.rowspan-=1),o.rowspan<=0&&(this.rowspanCount[i]={rowspan:0,colspan:0});return r}matchTd(t,r){const i=t,o=Nf.formats(i);if(!this.colIds[this.cellCount]||!this.rowspanCount[this.cellCount])for(let m=this.cellCount;m>=0;m--)this.colIds[m]||(this.colIds[m]=Na()),this.rowspanCount[m]||(this.rowspanCount[m]={rowspan:0,colspan:0});const{colspan:l}=this.rowspanCount[this.cellCount];this.cellCount+=l,o.rowspan>0&&(this.rowspanCount[this.cellCount]={rowspan:o.rowspan,colspan:o.colspan});const a=this.colIds[this.cellCount];this.cellCount+=o.colspan;const h=Object.assign(o,{tableId:this.tableId,rowId:this.rowId,colId:a});this.handleBorderNoneStyles(i,h);const g=[];for(const m of r.ops){const{attributes:x={},...w}=m,{[qe.tableCell]:_,...E}=x;g.push({...w,attributes:{...E,[qe.tableCellInner]:h}})}return(g.length<=0||!tg.isString(g[g.length-1].insert)||!g[g.length-1].insert.endsWith(`
|
|
478
|
+
-> using default image/jpeg`),n.imageType="image/jpeg")}function wz(n,e){n.keepImageTypes??(n.keepImageTypes=[]),n.keepImageTypes&&!Array.isArray(n.keepImageTypes)&&(e.warn(`quill.imageCompressor: [config error] 'keepImageTypes' is required to be a "array", received: ${n.keepImageTypes} -> using default []`),n.keepImageTypes=[]),n.ignoreImageTypes??(n.ignoreImageTypes=[]),n.ignoreImageTypes&&!Array.isArray(n.ignoreImageTypes)&&(e.warn(`quill.imageCompressor: [config error] 'ignoreImageTypes' is required to be a "array", received: ${n.ignoreImageTypes} -> using default []`),n.ignoreImageTypes=[])}function Cz(n,e){n.handleOnPaste&&typeof n.handleOnPaste!="boolean"&&typeof n.handleOnPaste!="function"&&(e.warn(`quill.imageCompressor: [config error] 'handlePaste' is required to be a "boolean" or a "function", received: ${n.ignoreImageTypes} -> using default true`),n.handleOnPaste=!0),n.insertIntoEditor&&typeof n.insertIntoEditor!="function"&&(e.warn(`quill.imageCompressor: [config error] 'insertIntoEditor' is required to be a "function", received: ${n.insertIntoEditor} -> using default undefined`),n.insertIntoEditor=void 0)}function Lw(n){return!!/^image\/(gif|jpe?g|a?png|svg|webp|bmp)/i.exec(n)}class _z{constructor(e,t,r,i){Ee(this,"localDrag",!1);this.quill=e,this.onNewDataUrl=t,this.logger=r,this.handleOnPaste=i,this.quill.root.addEventListener("dragstart",o=>this.handleDragStart(o),!1),this.quill.root.addEventListener("dragend",o=>this.handleDragEnd(o),!1),this.quill.root.addEventListener("drop",o=>this.handleDrop(o),!0),this.handleOnPaste!==!1&&this.quill.root.addEventListener("paste",o=>this.handlePaste(o),!0)}handleDragStart(e){this.localDrag=!0}handleDragEnd(e){this.localDrag=!1}async handleDrop(e){var l,a,h,g;if(this.localDrag)return;e.preventDefault();const t=document.getSelection();if(t&&document.caretPositionFromPoint){const m=document.caretPositionFromPoint(e.clientX,e.clientY);m&&t.setBaseAndExtent(m.offsetNode,m.offset,m.offsetNode,m.offset)}this.logger.log("handleDrop",{evt:e});const r=(l=e.dataTransfer)==null?void 0:l.files,i=Array.from(r||[]).filter(m=>Lw(m.type));if(i.length>0){e.stopPropagation(),this.logger.log("handleDrop","found files",{evt:e,files:r,imageFiles:i}),await this.pasteFilesIntoQuill(i);return}if((a=e.dataTransfer)!=null&&a.items){e.stopPropagation(),this.logger.log("handleDrop","found items",{evt:e,files:r,imageFiles:i}),await this.handleDataTransferList((h=e.dataTransfer)==null?void 0:h.items,e);return}const o=(g=e.dataTransfer)==null?void 0:g.getData("URL");if(this.logger.log("handleDrop","trying getData('URL')",{draggedUrl:o}),o){const m=await(await fetch(o)).blob();this.logger.log("handleDrop","blob from drag event",{evt:e,files:r,imageFiles:i}),await this.pasteFilesIntoQuill([m])}}async handlePaste(e){var t;typeof this.handleOnPaste=="function"&&!this.handleOnPaste(e)||await this.handleDataTransferList((t=e.clipboardData)==null?void 0:t.items,e)}async handleDataTransferList(e,t){const r=Array.from(e||[]),i=r.filter(a=>a.kind==="file"&&Lw(a.type)),o=r.map(a=>({type:a.type,kind:a.kind}));if(this.logger.log("handleDataTransferList",{fileTypes:o,imageCount:i.length}),!i.length)return;t.preventDefault(),t.stopPropagation();const l=i.map(a=>a.getAsFile());await this.pasteFilesIntoQuill(l)}async pasteFilesIntoQuill(e){this.logger.log(" pasteFilesIntoQuill",`pasting ${e.length} images...`),await Promise.all(e.map(async(t,r)=>{if(!t)return;const i=await R4(t);this.logger.log(" pasteFilesIntoQuill",`pasting image (${r})`),this.onNewDataUrl(i)})),this.logger.log(" pasteFilesIntoQuill","done")}}class Fp{constructor(e,t){Ee(this,"quill");Ee(this,"range");Ee(this,"options");Ee(this,"imageDrop");Ee(this,"fileHolder");Ee(this,"Logger");this.quill=e,this.options=t||{};const r=!!t.debug,i=!!t.suppressErrorLogging;this.Logger=new gz(r,i),bz(t,this.Logger);const o=async a=>{this.Logger.log("onImageDrop",{dataUrl:a});const h=await this.downscaleImageFromUrl(a);this.insertToEditor(h,Fp.b64toBlob(h))};this.imageDrop=new _z(e,o,this.Logger,typeof this.options.handleOnPaste=="function"?this.options.handleOnPaste:this.options.handleOnPaste!==!1),this.Logger.log("fileChanged",{options:t,quill:e,debug:r});const l=this.quill.getModule("toolbar");l?l.addHandler("image",()=>this.selectLocalImage()):this.Logger.error("Quill toolbar module not found! need { toolbar: // options } in Quill.modules for image icon to sit in")}static b64toBlob(e){const t=atob(e.split(",")[1]),r=e.slice(5).split(";")[0],i=new ArrayBuffer(t.length);let o=new Uint8Array(i);for(let l=0;l<t.length;l++)o[l]=t.charCodeAt(l);return new Blob([i],{type:r})}destroy(){this.imageDrop&&console.warn("ImageDrop instance cleanup")}selectLocalImage(e){this.range=this.quill.getSelection(),this.fileHolder=document.createElement("input"),this.fileHolder.setAttribute("type","file"),this.fileHolder.setAttribute("accept","image/*"),this.fileHolder.setAttribute("style","visibility:hidden"),this.fileHolder.onchange=()=>this.fileChanged().then(()=>e&&e()),document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame(()=>{this.fileHolder&&document.body.removeChild(this.fileHolder)})}async fileChanged(e){var l;const t=e||((l=this.fileHolder)==null?void 0:l.files);if(!(t!=null&&t.length))return;const r=t[0];if(this.Logger.log("fileChanged",{file:r}),!r)return;const i=await R4(r),o=await this.downscaleImageFromUrl(i);this.insertToEditor(o,Fp.b64toBlob(o))}async downscaleImageFromUrl(e){const t=await vz(this.Logger,e,{maxWidth:this.options.maxWidth,maxHeight:this.options.maxHeight,imageType:this.options.imageType,keepImageTypes:this.options.keepImageTypes,ignoreImageTypes:this.options.ignoreImageTypes,imageQuality:this.options.quality});return this.Logger.log("downscaleImageFromUrl",{dataUrl:e,dataUrlCompressed:t}),t}insertToEditor(e,t){if(this.options.insertIntoEditor)this.options.insertIntoEditor(e,t,this.quill);else{this.Logger.log("insertToEditor",{url:e}),this.range=this.quill.getSelection();const r=this.range;if(!r)return;this.logFileSize(e),this.quill.insertEmbed(r.index,"image",`${e}`,"user"),r.index++,this.quill.setSelection(r,"api")}}logFileSize(e){const i=(Math.round((e.length-"data:image/png;base64,".length)*3/4)/1024).toFixed(0);this.Logger.log("estimated img size: "+i+" kb")}}window.imageCompressor=Fp;const Bp={OVERLAY:"ql-image-resizer-overlay",HANDLE:"ql-image-resizer-handle",DISPLAY:"ql-image-resizer-display",TOOLBAR:"ql-image-resizer-toolbar",TOOLBAR_BUTTON:"ql-image-resizer-toolbar-button"},Vd={BACKSPACE:8,DELETE:46,LEFT:37,UP:38,RIGHT:39,DOWN:40},D0=(n,e)=>{const t=n?"top":"bottom",r=e?"left":"right",i=n===e?"nwse-resize":"nesw-resize";return{[t]:"-5px",[r]:"-5px",cursor:i}},Sz={tl:D0(!0,!0),tr:D0(!0,!1),bl:D0(!1,!0),br:D0(!1,!1)},Ez={modules:["DisplaySize","Toolbar","Resize","Keyboard"],embedTags:["VIDEO","IFRAME"],tools:["left","center","right","justify"],contentOptions:[{attribute:["width"],limit:{minWidth:100},blotName:"image"},{attribute:["width","height"],limit:{minWidth:200,ratio:.5625},blotName:"video"}]},Tz=Xe.import("formats/image");class q0 extends Tz{static get ATTRIBUTES(){return["alt","height","width","class","style","data-align"]}static formats(e){return this.ATTRIBUTES.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)??""),t),{})}format(e,t){this.constructor.ATTRIBUTES.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Ee(q0,"blotName","image"),Ee(q0,"tagName","img"),Ee(q0,"scope",Qn.INLINE);Xe.register("formats/image",q0,!0);class Xp{constructor(e){Ee(this,"resizer");Ee(this,"quill");Ee(this,"overlay");Ee(this,"activeEle");Ee(this,"blot");Ee(this,"options");Ee(this,"requestUpdate");this.resizer=e,this.quill=e.quill,this.overlay=e.overlay,this.activeEle=e.activeEle,this.blot=e.blot,this.options=e.options,this.requestUpdate=()=>e.onUpdate(!0)}onCreate(){}onDestroy(){}onUpdate(){}}class Az extends Xp{constructor(){super(...arguments);Ee(this,"display")}onCreate(){var t;this.display=document.createElement("div"),this.display.className=af[Bp.DISPLAY],(t=this.overlay)==null||t.appendChild(this.display)}onUpdate(){if(!this.display||!this.activeEle)return;const[t,r]=[this.activeEle.offsetWidth,this.activeEle.offsetHeight];this.display.innerHTML=`${t} × ${r}`,this.positionDisplay(t,r)}positionDisplay(t,r){var a;if(!this.display)return;const i=this.display.getBoundingClientRect(),o=t>120&&r>30,l=((a=this.activeEle)==null?void 0:a.style.float)==="right";Object.assign(this.display.style,{right:o?"4px":l?"auto":`-${i.width+4}px`,bottom:o?"4px":`-${i.height+4}px`,left:o?"auto":l?`-${i.width+4}px`:"auto"})}}class Rz extends Xp{constructor(){super(...arguments);Ee(this,"boxes",[]);Ee(this,"dragBox",null);Ee(this,"dragStartX",0);Ee(this,"dragStartY",0);Ee(this,"contentOption");Ee(this,"preDragSize",{width:0,height:0});Ee(this,"naturalSize",[0,0]);Ee(this,"handleDragProxy",null);Ee(this,"handleMouseupProxy",null);Ee(this,"handleMousedown",t=>{!this.blot||!this.activeEle||(this.dragBox=t.target,this.dragStartX=t.clientX,this.dragStartY=t.clientY,this.preDragSize={width:this.activeEle.offsetWidth,height:this.activeEle.offsetHeight},this.naturalSize=this.getNaturalSize(),this.setCursor(window.getComputedStyle(this.dragBox).cursor),this.handleDragProxy=this.handleDrag.bind(this),this.handleMouseupProxy=this.handleMouseup.bind(this),document.addEventListener("mousemove",this.handleDragProxy,!0),document.addEventListener("mouseup",this.handleMouseupProxy,!0))});Ee(this,"handleMouseup",t=>{if(!this.activeEle||!this.blot||!this.contentOption)return;const r=this.calcSize(t,this.contentOption.limit);Object.assign(this.activeEle,r),Object.assign(this.activeEle.style,{width:null,height:null}),this.setCursor(""),this.removeEventListeners()});Ee(this,"handleDrag",t=>{!this.activeEle||!this.blot||!this.contentOption||(Object.assign(this.activeEle.style,this.calcSize(t,{...this.contentOption.limit,unit:!0})),this.requestUpdate())});Ee(this,"handleDoubleClick",t=>{if(!this.blot||!this.activeEle||!this.contentOption)return;t.stopPropagation();const[r,i]=this.naturalSize,o={};this.contentOption.attribute.includes("width")&&(o.width=r),this.contentOption.attribute.includes("height")&&(o.height=i);const l=this.applyConstraints(o,this.contentOption.limit);Object.assign(this.activeEle,l),this.requestUpdate()})}onCreate(){!this.blot||!this.options.contentOptions||(this.contentOption=this.options.contentOptions.find(t=>t.blotName===this.blot.statics.blotName),this.boxes=[],["tl","tr","br","bl"].forEach(this.addBox.bind(this)))}onDestroy(){this.setCursor("")}addBox(t){var i;const r=document.createElement("div");r.className=`${af[Bp.HANDLE]} ${t}`,r.addEventListener("mousedown",this.handleMousedown,!1),r.addEventListener("dblclick",this.handleDoubleClick,!1),Object.assign(r.style,Sz[t]),(i=this.overlay)==null||i.appendChild(r),this.boxes.push(r)}removeEventListeners(){this.handleDragProxy&&(document.removeEventListener("mousemove",this.handleDragProxy,!0),this.handleDragProxy=null),this.handleMouseupProxy&&(document.removeEventListener("mouseup",this.handleMouseupProxy,!0),this.handleMouseupProxy=null)}calcSize(t,r={}){var h;if(!this.dragBox||!this.activeEle)return{};const i=t.clientX-this.dragStartX,o=t.clientY-this.dragStartY,l=this.dragBox===this.boxes[0]||this.dragBox===this.boxes[3]?-1:1,a={};return(h=this.contentOption)!=null&&h.attribute?this.contentOption.attribute.forEach(g=>a[g]=this.preDragSize[g]):a.width=this.preDragSize.width,a.width&&(a.width=Math.round(this.preDragSize.width+i*l)),a.height&&(a.height=Math.round(this.preDragSize.height+o*l)),this.applyConstraints(a,r)}applyConstraints(t,r={}){const i=typeof t.width=="string"?parseInt(t.width,10):t.width||0,o=typeof t.height=="string"?parseInt(t.height,10):t.height||0;let l=i,a=o;if(r.ratio){l=this.applyLimit(l,r.minWidth,r.maxWidth),a=l*r.ratio;const g=this.applyLimit(a,r.minHeight,r.maxHeight);g!==a&&(a=g,l=a/r.ratio)}else i&&(l=this.applyLimit(l,r.minWidth,r.maxWidth)),o&&(a=this.applyLimit(a,r.minHeight,r.maxHeight));const h={};return t.width!==void 0&&(h.width=r.unit?`${l}px`:l),t.height!==void 0&&(h.height=r.unit?`${a}px`:a),h}applyLimit(t,r,i){let o=t;return r!==void 0&&(o=Math.max(r,o)),i!==void 0&&(o=Math.min(i,o)),o}getNaturalSize(){if(!this.activeEle)return[0,0];const t=this.activeEle.getAttribute("data-size");if(!t){const r=this.activeEle,i=[r.offsetWidth,r.offsetHeight];return r.setAttribute("data-size",i.join(",")),i}return t.split(",").map(Number)}setCursor(t){[document.body,this.activeEle].forEach(r=>r&&(r.style.cursor=t))}}const qd=class qd extends Xp{constructor(){super(...arguments);Ee(this,"keyboardProxy",null)}static injectInit(t){var i;const r=(i=t.keyboard)==null?void 0:i.bindings;r&&[qd.keys.LEFT,qd.keys.RIGHT].forEach(o=>(r[o]||[]).unshift(qd.makeArrowHandler(o)))}static makeArrowHandler(t){const r=t===qd.keys.LEFT;return{key:t,shiftKey:!1,altKey:null,[r?"prefix":"suffix"]:/^$/,handler(i){const o=this.quill;if(!o.resizer)return!0;let l=i.index;const a=t===qd.keys.RIGHT,[h]=o.getLine(l+(r?-1:0));if(!h)return!0;if(o.resizer.judgeShow(h))return!1;const g=o.getIndex(h);if(a&&g+h.length()-1===l)return!0;a&&(l+=i.length+1);const[m]=o.getLeaf(l);if(!m)return!0;const x=m.offset(m.parent),w=m.constructor&&"scope"in m.constructor&&m.constructor.scope===Qn.BLOCK_BLOT;if(r&&(w&&l===x||l===0||l===g))return!0;let _=m;if(r&&x===0){const[E]=o.getLeaf(l-1);E&&(_=E)}return!_||!o.resizer.judgeShow(_)}}}onCreate(){this.keyboardProxy=this.keyboardHandle.bind(this),document.addEventListener("keydown",this.keyboardProxy,!0)}onDestroy(){this.keyboardProxy&&document.removeEventListener("keydown",this.keyboardProxy,!0)}keyboardHandle(t){if(t.defaultPrevented||t.shiftKey||t.ctrlKey||t.altKey||!this.activeEle)return;const r=t.keyCode;let i=this.blot.offset(this.quill.scroll),o=null,l=!1;r===Vd.BACKSPACE||r===Vd.DELETE?(this.handleDelete(),l=!0):r>=Vd.LEFT&&r<=Vd.DOWN&&([i,o]=this.handleArrowKeys(r,i),l=!0),l&&(t.stopPropagation(),t.preventDefault()),!(o&&this.resizer.judgeShow(o,o.domNode))&&(this.quill.setSelection(i),this.resizer.hide())}handleDelete(){this.blot&&(this.blot.deleteAt(0,1),this.blot.parent.optimize({}))}handleArrowKeys(t,r){let i=null;return t===Vd.RIGHT?r+=this.blot.length()||1:t===Vd.UP?(r=this.getOtherLineIndex(-1),i=this.quill.getLeaf(r)[0]):t===Vd.DOWN&&(r=this.getOtherLineIndex(1),i=this.quill.getLeaf(r)[0]),[r,i]}getOtherLineIndex(t){if(!this.blot)return 0;const r=this.blot.offset(this.quill.scroll),[i]=this.quill.getLine(r);if(!i)return r;const o=this.blot.offset(i)+1,l=t>0?i.next:i.prev;if(!l)return r;let a=l.length();return l.statics.blotName==="block"&&a--,l.offset(this.quill.scroll)+Math.min(a,o)}};Ee(qd,"keys",Vd);let vv=qd;const f1=class f1 extends Xp{constructor(t){super(t);Ee(this,"toolbar");Ee(this,"blot");this.blot=t.blot}createStyleTool(t,r){const i={left:{float:"left"},right:{float:"right"},center:{display:"block",margin:"0 auto",float:"none"},justify:{display:"block",float:"none",margin:"0",width:"100%"}};return{icon:t,apply:o=>{const l=i[r];Object.assign(o.style,l),o.setAttribute("data-align",r)},isApplied:o=>{const l=o.style;switch(r){case"center":return l.float==="none";case"justify":return l.display==="block"&&l.width==="100%";case"left":case"right":return l.float===r;default:return!1}}}}onCreate(){var t;this.toolbar=document.createElement("div"),this.toolbar.className=af[Bp.TOOLBAR],(t=this.overlay)==null||t.appendChild(this.toolbar),Object.keys(f1.Tools).forEach(r=>{const i=r;f1.Tools[i]=this.createStyleTool(f1.Tools[i].icon,i)}),this._addToolbarButtons()}_addToolbarButtons(){if(!this.toolbar||!this.activeEle)return;const{Tools:t}=this.constructor;this.options.tools.forEach(r=>{const i=r,o=t[i];if(!o)return;const l=document.createElement("button");l.type="button",l.className=af[Bp.TOOLBAR_BUTTON],l.innerHTML=a1.renderToString(M.jsx(uo,{icon:o.icon,size:"xs"})),l.setAttribute("data-tool",i),o.isApplied&&o.isApplied.call(this,this.activeEle)&&(l.style.backgroundColor="var(--AEditor_Addon_Secondary_color)"),this.addButtonClickHandler(l,o),this.toolbar.appendChild(l)})}addButtonClickHandler(t,r){!this.activeEle||!this.blot||t.addEventListener("click",i=>{var l;if(i.stopPropagation(),r.handler&&r.handler.call(this,i,t,this.activeEle)!==!0)return;const o=r.isApplied&&r.isApplied.call(this,this.activeEle);return this.toolbar&&Array.from(this.toolbar.querySelectorAll("button")).forEach(a=>a.style.backgroundColor=""),o?(this.activeEle.style.cssText="",this.activeEle.setAttribute("data-align","")):(t.style.backgroundColor="var(--AEditor_Addon_Secondary_color)",(l=r.apply)==null||l.call(r,this.activeEle)),this.requestUpdate(),!1})}};Ee(f1,"Tools",{left:{icon:"AlignLeft"},center:{icon:"AlignCenter"},right:{icon:"AlignRight"},justify:{icon:"AlignJustify"}});let cm=f1;class I4{constructor(e,t={}){Ee(this,"quill");Ee(this,"options");Ee(this,"moduleClasses");Ee(this,"modules",[]);Ee(this,"blot");Ee(this,"selectedBlots",[]);Ee(this,"embedClassName","");Ee(this,"activeEle");Ee(this,"overlay");Ee(this,"updateFromModule",!1);Ee(this,"hideProxy",null);Ee(this,"updateOverlayPositionProxy",null);var i;e.resizer=this,this.quill=e;const r=t.modules?[...t.modules]:null;this.options={...Ez,...t},r&&(this.options.modules=r),document.execCommand("enableObjectResizing",!1,"false"),this.moduleClasses=this.options.modules,this.quill.root.addEventListener("mousedown",this.handleClick.bind(this),!1),this.quill.on("text-change",this.handleChange.bind(this)),this.quill.container.style.position=this.quill.container.style.position||"relative",this.quill.on("selection-change",this.addBlotsSelectedClass.bind(this)),vv.injectInit(this.quill),(i=this.options.embedTags)!=null&&i.length&&this.initializeEmbed()}initializeModules(){this.modules.forEach(e=>e.onDestroy()),this.modules=[],this.modules=this.moduleClasses.map(e=>new(this.constructor.Modules[e]||e)(this)),this.modules.forEach(e=>e.onCreate()),this.repositionElements(),this.modules.forEach(e=>e.onUpdate())}initializeEmbed(){if(!this.options.embedTags.length)return;this.embedClassName=`ql-${Array.from({length},()=>[Math.floor(Math.random()*62)]).join("")}`;const e=[""].concat(this.options.embedTags).join(`, .${this.embedClassName} `).slice(2)+"{pointer-events: none;}",t=document.createElement("style");t.textContent=e,this.quill.container.appendChild(t),this.quill.root.classList.add(this.embedClassName)}onUpdate(e){this.updateFromModule=!!e,this.repositionElements(),this.modules.forEach(t=>t.onUpdate())}handleClick(e){if(this.overlay&&(e.target===this.overlay||this.overlay.contains(e.target)))return;let t=e.target;if(t=this.getEventTarget(e,t),t!=null&&t.tagName){const r=this.quill.scroll.find(t);if(r&&this.judgeShow(r,t)){e.preventDefault();return}}this.activeEle&&this.hide()}getEventTarget(e,t){var o;const r=(o=this.options.embedTags)==null?void 0:o.join();if(!r)return t;const i=this.quill.root;return(t===i||t.querySelectorAll(r).length)&&(i.classList.remove(this.embedClassName),t=document.elementFromPoint(e.clientX,e.clientY),i.classList.add(this.embedClassName)),t}judgeShow(e,t){if(!e||!this.options.contentOptions)return!1;!t&&e.domNode&&(t=e.domNode);const r=this.options.contentOptions.find(o=>o.blotName===e.statics.blotName);if(!r)return!1;if(this.activeEle===t)return!0;const i=r.limit||{};return!i.minWidth||i.minWidth&&t.offsetWidth>=i.minWidth?(this.activeEle&&this.hide(),this.activeEle=t,this.blot=e,this.showOverlay(),this.initializeModules(),!0):!1}handleChange(e,t,r){if(this.updateFromModule){this.updateFromModule=!1;return}r!=="user"||!this.overlay||!this.activeEle||this.onUpdate()}showOverlay(){this.overlay&&this.hideOverlay(),this.quill.setSelection(null),[document.body,this.quill.root].forEach(e=>e.style.userSelect="none"),this.overlay=document.createElement("div"),this.overlay.className=`${af[Bp.OVERLAY]}`,this.overlay.addEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation(),this.quill.root.scrollTop+=e.deltaY*.5},{passive:!1}),this.quill.container.appendChild(this.overlay),this.hideProxy=()=>this.activeEle&&this.hide(),this.updateOverlayPositionProxy=()=>this.overlay&&(this.overlay.style.marginTop=-1*this.quill.root.scrollTop+"px"),this.quill.root.addEventListener("input",this.hideProxy,!0),this.quill.root.addEventListener("scroll",this.updateOverlayPositionProxy),this.repositionElements()}hideOverlay(){this.overlay&&(this.quill.container.removeChild(this.overlay),this.overlay=void 0,this.hideProxy&&this.quill.root.removeEventListener("input",this.hideProxy,!0),this.updateOverlayPositionProxy&&this.quill.root.removeEventListener("scroll",this.updateOverlayPositionProxy),[document.body,this.quill.root].forEach(e=>e.style.userSelect=""))}repositionElements(){if(!this.overlay||!this.activeEle)return;const e=this.quill.container,t=this.activeEle.getBoundingClientRect(),r=e.getBoundingClientRect();Object.assign(this.overlay.style,{left:`${t.left-r.left-1+e.scrollLeft}px`,top:`${t.top-r.top+this.quill.root.scrollTop}px`,width:`${t.width}px`,height:`${t.height}px`,marginTop:-1*this.quill.root.scrollTop+"px"})}addBlotsSelectedClass(e){if(!e){this.selectedBlots=[];return}try{const t=i=>{var o;return["image","iframe","video"].includes((o=i.statics)==null?void 0:o.blotName)},r=this.quill.scroll.descendants(t,e.index,e.length);this.selectedBlots=r.filter(i=>!i.statics||!this.options.contentOptions?!1:!!this.options.contentOptions.find(o=>o.blotName===i.statics.blotName))}catch{}}hide(){this.hideOverlay(),this.modules.forEach(e=>e.onDestroy()),this.modules=[],this.activeEle=void 0,this.blot=void 0}}Ee(I4,"Modules",{Base:Xp,DisplaySize:Az,Toolbar:cm,Resize:Rz,Keyboard:vv});const N0=Xe.import("delta"),Iz=Xe.import("modules/clipboard");function kz(n){let e=Number.parseFloat(n.getAttribute("width")||String(Ss.colDefaultWidth));if(Number.isNaN(e)){const t=n.style.width;e=t?Number.parseFloat(t):n.offsetWidth}return e}function Mz(n,e){const t=new Array(e).fill(Ss.colDefaultWidth),r=Array.from(n.querySelectorAll("tr"));for(const i of r){const o=Array.from(i.querySelectorAll("td"));for(const[l,a]of o.entries())if(l<e){const h=kz(a);t[l]=h||t[l]}else break}return t}class Lz extends Iz{constructor(t,r){super(t,r);Ee(this,"tableId",Na());Ee(this,"rowId",Na());Ee(this,"colIds",[]);Ee(this,"rowspanCount",[]);Ee(this,"cellCount",0);Ee(this,"colCount",0);Ee(this,"STYLE_PROPERTIES",["color","background","background-color","mso-pattern","border","border-color","border-top","border-right","border-bottom","border-left"]);this.quill=t,this.addMatcher("table",this.matchTable.bind(this)),this.addMatcher("colgroup",this.matchColgroup.bind(this)),this.addMatcher("col",this.matchCol.bind(this)),this.addMatcher("tr",this.matchTr.bind(this)),this.addMatcher("td",this.matchTd.bind(this)),this.addMatcher("th",this.matchTd.bind(this)),this.addMatcher("caption",this.matchCaption.bind(this))}matchTable(t,r){if(r.ops.length===0)return r;const i=[],o=[];let l=-1;for(let g=0;g<r.ops.length;g++){const{attributes:m,insert:x}=r.ops[g],{table:w,[qe.tableCell]:_,...E}=m||{},R=tg.isObject(x)&&x[qe.tableCol];R?o.push({insert:x}):i.push({attributes:E,insert:x}),!(E!=null&&E[qe.tableCellInner])&&!R&&(l=g)}const h=Mz(t,this.colIds.length).reduce((g,m,x)=>(o[x]?g.push(o[x]):g.push({insert:{[qe.tableCol]:{tableId:this.tableId,colId:this.colIds[x],width:m,full:!0}}}),g),[]);return i.splice(l+1,0,...h),this.tableId=Na(),this.colIds=[],this.rowspanCount=[],this.cellCount=0,this.colCount=0,new N0(i)}matchColgroup(t,r){const i=[];for(let o=0;o<r.ops.length;o++){const l=r.ops[o];l&&tg.isObject(l.insert)&&l.insert[qe.tableCol]&&i.push(l)}return new N0(i)}matchCol(t){this.colIds[this.colCount]=Na();const r=new N0().insert({[qe.tableCol]:Object.assign(Ig.value(t),{tableId:this.tableId,colId:this.colIds[this.colCount]})});return this.colCount+=1,r}matchTr(t,r){this.rowId=Na(),this.cellCount=0;for(const[i,o]of this.rowspanCount.entries())o.rowspan>0&&(o.rowspan-=1),o.rowspan<=0&&(this.rowspanCount[i]={rowspan:0,colspan:0});return r}matchTd(t,r){const i=t,o=Nf.formats(i);if(!this.colIds[this.cellCount]||!this.rowspanCount[this.cellCount])for(let m=this.cellCount;m>=0;m--)this.colIds[m]||(this.colIds[m]=Na()),this.rowspanCount[m]||(this.rowspanCount[m]={rowspan:0,colspan:0});const{colspan:l}=this.rowspanCount[this.cellCount];this.cellCount+=l,o.rowspan>0&&(this.rowspanCount[this.cellCount]={rowspan:o.rowspan,colspan:o.colspan});const a=this.colIds[this.cellCount];this.cellCount+=o.colspan;const h=Object.assign(o,{tableId:this.tableId,rowId:this.rowId,colId:a});this.handleBorderNoneStyles(i,h);const g=[];for(const m of r.ops){const{attributes:x={},...w}=m,{[qe.tableCell]:_,...E}=x;g.push({...w,attributes:{...E,[qe.tableCellInner]:h}})}return(g.length<=0||!tg.isString(g[g.length-1].insert)||!g[g.length-1].insert.endsWith(`
|
|
479
479
|
`))&&g.push({insert:`
|
|
480
|
-
`,attributes:{[qe.tableCellInner]:h}}),new N0(g)}handleBorderNoneStyles(t,r){if(!(r!=null&&r.style))return;["border",...["top","right","bottom","left"].flatMap(o=>[`border-${o}`,`border-${o}-style`])].filter(o=>t.style[o]==="none").forEach(o=>r.style=r.style.replaceAll(new RegExp(`${o}:none;?`,"g"),""))}convert({html:t,text:r},i={}){if(t){const a=new DOMParser().parseFromString(t,"text/html");this.preprocessTableHtml(a),this.mergeClassStylesToInline(a),t=a.body.innerHTML}const o=super.convert({html:t,text:r},i);if(i[qe.tableCellInner])for(const l of o.ops){if(tg.isObject(l.insert)&&l.insert[qe.tableCol]){l.insert="";continue}l.attributes||(l.attributes={}),l.attributes[qe.tableCellInner]=i[qe.tableCellInner]}return o}parseStyleWithFilter(t,r){if(!t)return{};const i={};let o="",l="",a=!0,h=0;for(let g=0;g<t.length;g++){const m=t[g];m===":"&&a?(o=t.substring(h,g).trim(),h=g+1,a=!1):m===";"&&(!a&&o&&(l=t.substring(h,g).trim(),(!r||r(o))&&(i[o]=l)),h=g+1,a=!0)}return!a&&o&&h<t.length&&(l=t.substring(h).trim(),(!r||r(o))&&(i[o]=l)),i}mergeClassStylesToInline(t){var r;try{const i=t.querySelectorAll("td[class], th[class]");if(i.length===0)return;const o=new Set;for(const m of i)(m.getAttribute("class")||"").split(/\s+/).filter(Boolean).forEach(w=>o.add(w));if(o.size===0)return;const l=t.querySelectorAll("style");if(l.length===0)return;const a=Array.from(l).map(m=>m.textContent||"").join("");if(!a)return;const h={},g=m=>this.STYLE_PROPERTIES.some(x=>m.startsWith(x));for(const m of o){const x=new RegExp(`\\.${m}[^{]*{([^}]*)}`,"g");let w;for(;(w=x.exec(a))!==null;){const _=w[1],E=this.parseStyleWithFilter(_),R={};let k=!1;for(const O in E)g(O)&&(R[O]=E[O],k=!0);k&&(h[m]=R)}}if(Object.keys(h).length===0)return;for(let m=0;m<i.length;m++){const x=i[m],w=((r=x.getAttribute("class"))==null?void 0:r.split(/\s+/).filter(Boolean))||[],_=x.getAttribute("style")||"",E=this.parseStyleWithFilter(_);let R=!1;for(const k of w){const O=h[k];if(O)for(const P in O)E[P]||(E[P]=O[P],R=!0)}if(R){let k="";for(const O in E)k+=O+":"+E[O]+";";k&&x.setAttribute("style",k)}x.removeAttribute("class")}}catch(i){console.error("스타일 처리 오류",i)}}matchCaption(t,r){for(let i=0;i<r.ops.length;i++){const o=r.ops[i],{attributes:l}=o;l&&l[qe.tableCaption]&&(l[qe.tableCaption].tableId=this.tableId,o.attributes=l)}return r}preprocessTableHtml(t){try{const r=t.querySelectorAll("table");for(const i of Array.from(r))i.querySelectorAll("tr").length!==0&&(this.cleanupTableStyles(i),this.applyRowspanHeights(i),this.fixRowspanCells(i));this.mergeClassStylesToInline(t)}catch(r){console.error("테이블 전처리 오류",r)}}cleanupTableStyles(t){const r=t.querySelectorAll("td, th, tr, colgroup");for(const i of r){const o=i;o.removeAttribute("height");const l=o.getAttribute("style");if(l){const a=l.replace(/height\s*:[^;]*;?/gi,"").trim();o.setAttribute("style",a||"")}}}applyRowspanHeights(t){const i=t.querySelectorAll("td, th");t.style.borderCollapse="collapse";for(const o of i){const l=o,h=parseInt(l.getAttribute("rowspan")||"1")*24,g=l.getAttribute("style")||"",m=g+(g?"; ":"")+`height: ${h}px`;l.setAttribute("style",m)}}fixRowspanCells(t){const r=t.querySelectorAll("tr");if(r.length<=1)return;const i=[],o=new Map;for(let l=0;l<r.length;l++){const h=r[l].querySelectorAll("td, th");if(h.length===0&&l<r.length-1){i.push(l);continue}for(const g of Array.from(h)){const m=parseInt(g.getAttribute("rowspan")||"1");if(m>1)for(let x=1;x<m;x++){const w=l+x;if(w>=r.length)break;o.has(w)||o.set(w,[]),o.get(w).push(g)}}}i.length>0&&this.processEmptyRows(i,r,o)}processEmptyRows(t,r,i){for(const o of t){const l=i.get(o);if(l)for(const a of l){const h=parseInt(a.getAttribute("rowspan")||"1");h>1&&a.setAttribute("rowspan",(h-1).toString())}}for(const o of t.reverse())r[o].remove()}}class Oz extends A_{fixUnusuaDeletelTable(){}mergeCells(e){if(!this.table||!this.tableSelection)return;const t=this.tableSelection.selectedTds||[];if(t.length>1&&(e=t),!e||e.length<=1)return;const r=Kl(e[0],qe.tableMain),i=r.getRows(),o=e.map(w=>{if(!w||!w.parent||!w.parent.domNode)return null;const _=w.parent.domNode;if(!_)return null;const E=i.findIndex(O=>O.rowId===w.rowId);if(E===-1)return null;const R=w.getColumnIndex();if(R===-1)return null;const k=_.getBoundingClientRect();return!k||k.width===0||k.height===0?null:{td:w,rowIndex:E,colIndex:R,rowspan:w.rowspan,colspan:w.colspan,visualLeft:k.left,visualRight:k.right,visualTop:k.top,visualBottom:k.bottom}}).filter(Boolean);if(o.length<=1)return;o.sort((w,_)=>w.visualTop-_.visualTop||w.visualLeft-_.visualLeft);const l=o[0],a=l.td,h=Math.max(...o.map(w=>w.rowIndex+w.rowspan-1)),g=Math.max(...o.map(w=>w.colIndex+w.colspan-1)),m=h-l.rowIndex+1,x=g-l.colIndex+1;for(const w of o)w.td!==a&&(w.td.moveChildren(a),w.td.parent.remove());a.rowspan=m,a.colspan=x,this.fixTableByRemove(r)}}Xe.register({"modules/imageCompress":Fp,"modules/resize":I_,"modules/tableUp":Oz,"modules/magicUrl":sF,"formats/divider":am,"modules/clipboard":Lz,"modules/copy":fz,"modules/toggleFullscreen":o_},!0);const u1={KB:1024,QUALITY:.7,IMAGE_SIZES:new Map},Pz={getCharLength:n=>Array.from(n).length,calculateTextSize:n=>{if(!n.ops||n.ops.length===0)return 0;let e=0;for(const t of n.ops)if(typeof t.insert=="string")e+=new TextEncoder().encode(t.insert).length-1;else if(typeof t.insert=="object"&&t.insert.image){const r=t.insert.image;r&&(e+=u1.IMAGE_SIZES.get(r)||Math.ceil(r.length*u1.QUALITY))}return e}},Dz=n=>{const{type:e="Primary",editorRef:t,useValue:r,useError:i,placeholder:o,tabIndex:l,autoFocus:a,editorProps:h,style:g,minHeight:m,maxHeight:x,contentHeight:w,contentMaxHeight:_=1e3,toolbarSize:E="Med",toolbarType:R="Default",readOnly:k,limitPosition:O="Bottom",maxLength:P,size:z=100,editorClassName:H,editorStyle:G,noImageResize:N,...J}=n,[{wrapId:Y,wrapProps:K,labelProps:fe,...X},te]=Bg(J),ne=B.useMemo(()=>e==="ReadOnly"||k,[e,k]),ue=B.useMemo(()=>w?20:0,[w]),[se,$]=B.useState(E==="Med"?40:50),re=B.useMemo(()=>ne?0:se,[ne,se]),[de,be]=B.useMemo(()=>!i||ne||O==="Top"?[0,0]:[20,6],[i,ne,O]),oe=B.useMemo(()=>de+be,[de,be]),[Q,ge]=B.useState(w),[Te,He]=B.useState(!1),[xe,Ne]=B.useState(!1),Me=B.useRef(null),Be=B.useRef(0),ke=B.useRef(0),Ie=B.useMemo(()=>X.label?24:0,[X.label]),ze=B.useMemo(()=>R==="Title",[R]),Ke=B.useMemo(()=>w||m||ze,[w,m,ze]),Oe=B.useMemo(()=>Ke?"fit-content":x?x+Ie:`calc(100% - ${Ie}px)`,[Ke,x,Ie]),ht=B.useMemo(()=>{if(w){if(Q)switch(e){case"ReadOnly":return Q;case"Raw":return Q+oe;default:return Q+re+oe}}else return},[w,Q,e,re,oe]),$e=B.useMemo(()=>{if(!(!x||x<=re+oe))switch(e){case"ReadOnly":return x;case"Raw":return x-oe;default:return x-re-oe}},[e,re,oe,x]),it=B.useMemo(()=>{if(m&&w){const ft=Math.min(m-re-oe,w);return ne?ft:ft+re+oe}else return m||(w?void 0:`calc(100% - ${Ie}px)`)},[m,w,Ie,re,oe,ne]),et=B.useMemo(()=>(Array.isArray(X.errorMessage)?X.errorMessage.some(Boolean):!!X.errorMessage)?"Error":e,[X.errorMessage,e]),st=B.useCallback(ft=>{let kt=ft;kt=g7.sanitize(ft);const Ct=document.createElement("div");return Ct.innerHTML=kt,new Xe(Ct,{readOnly:!0}).getContents()},[]),[dt,Mt]=Do(r,""),[ot,nt]=B.useState(()=>st(dt));B.useEffect(()=>{Mt===void 0&&nt(st(dt))},[st,Mt,dt]);const Ot=B.useMemo(()=>M.jsx(Nz,{htmlDelta:ot,isReadonly:ne,limit:z*u1.KB,useError:i}),[ot,ne,z,i]),Zt=B.useRef(null),Rt=B.useRef([]),[tn,Ft]=B.useState(!0);B.useEffect(()=>{const ft=setTimeout(()=>Ft(!1),0);return()=>{clearTimeout(ft),Rt.current.forEach(kt=>kt()),Rt.current=[]}},[]);const yn=B.useCallback((ft,kt)=>{if(!w)return kt;const Ct=m?m-re-oe:w,zt=Math.max(Ct,0),ln=x?x-re-oe:_;return Math.min(ln,Math.max(zt,kt+ft))},[w,m,re,oe,x,_]),dn=B.useCallback(ft=>{if(!Te||!w)return;const kt=ft.clientY-ke.current,Ct=yn(kt,Be.current);Q!==Ct&&ge(Ct),ft.preventDefault(),ft.stopPropagation()},[Te,w,yn,Q]),nn=B.useCallback(ft=>{He(!1),Ne(!1),document.removeEventListener("mousemove",dn),document.removeEventListener("mouseup",nn),ft.preventDefault(),ft.stopPropagation()},[dn]),Bt=B.useCallback(ft=>{if(!w)return;if(ft.detail===2){ge(w);return}Q===void 0?(ge(w),Be.current=w):Be.current=Q,He(!0),Ne(!0),ke.current=ft.clientY;const kt=zt=>{if(!w)return;const ln=zt.clientY-ke.current,mt=yn(ln,Be.current);ge(mt),zt.preventDefault(),zt.stopPropagation()},Ct=zt=>{He(!1),Ne(!1),document.removeEventListener("mousemove",kt),document.removeEventListener("mouseup",Ct),zt.preventDefault(),zt.stopPropagation()};document.addEventListener("mousemove",kt),document.addEventListener("mouseup",Ct),ft.preventDefault(),ft.stopPropagation()},[w,Q,yn]),on=B.useCallback((ft,kt,Ct,zt)=>{if(Ct!=="user"&&Ct!=="api")return;const ln=zt.getContents(),mt=zt.getLength()-1,Lt=P!==void 0&&mt>P,en=cr=>cr.replace(/\s{2,}/g,En=>" ".repeat(En.length)),bn=ft.replace(/^<p><br><\/p>$/,"").trim(),xn=en(bn);if(!Lt){nt(ln),Mt==null||Mt(xn);return}const Vt=Nn(ln,P);nt(Vt);const mn=new Xe(document.createElement("div"));mn.setContents(Vt);const Dn=en(mn.root.innerHTML.replace(/^<p><br><\/p>$/,"").trim());Mt==null||Mt(Dn)},[P,Mt]),Nn=(ft,kt)=>{var ln,mt,Lt;if(!ft.ops)return ft;const Ct=new Jn;let zt=0;for(const en of ft.ops){if(zt>=kt)break;if(en.insert&&typeof en.insert=="string"){const bn=en.insert,xn=kt-zt;if(bn.length<=xn)(ln=Ct.ops)==null||ln.push(en),zt+=bn.length;else{const Vt={...en,insert:bn.substring(0,xn)};(mt=Ct.ops)==null||mt.push(Vt),zt+=xn;break}}else zt<kt&&((Lt=Ct.ops)==null||Lt.push(en),zt+=1)}return Ct},Rn=B.useCallback(ft=>{var ln,mt;const kt=ft.getEditor().container;if(!kt)return null;const Ct=(ln=kt.closest(".AEditorContainer"))==null?void 0:ln.querySelector(".ql-toolbar");return Ct||((mt=kt.parentElement)==null?void 0:mt.querySelector(".ql-toolbar"))||null},[]),gn=B.useCallback((ft,kt,Ct,zt)=>{if(!ft)return;const ln=Ct;ft.addEventListener(kt,ln,zt),Rt.current.push(()=>ft.removeEventListener(kt,ln,zt))},[]),Ue=B.useCallback((ft,kt,Ct)=>{const zt=kt.getFormat();ft.forEach(ln=>{if(zt[ln]){const mt=zt[ln],Lt=`.ql-${ln}`,en=Ct.querySelector(`${Lt} .ql-picker-label`),bn=Ct.querySelectorAll(`${Lt} .ql-picker-item`),xn=Array.from(bn).find(Vt=>Vt.getAttribute("data-value")===mt);xn&&(xn.classList.add("ql-selected"),en==null||en.classList.add("ql-active"))}})},[]),Ce=B.useCallback(ft=>{if(!ft.length)return;const zt=ft[0].target.getBoundingClientRect(),ln=Math.ceil(zt.height);$(mt=>Math.abs(mt-ln)<.1?mt:ln)},[]),Ze=B.useCallback((ft,kt)=>{if(ft.key!=="Backspace")return;const Ct=kt.getSelection(!1);if(!Ct||Ct.length>0)return;const zt=Ct.index;if(zt<=0)return;const[ln]=kt.getLine(zt);if(ln&&zt===kt.getIndex(ln)||kt.getFormat(zt,1).link)return;const mt=kt.getFormat(zt-1,1);if(mt.link){ft.preventDefault();let Lt=zt-1;for(;Lt>0&&kt.getFormat(Lt-1,1).link===mt.link;)Lt--;const[en]=kt.scroll.descendant(bn=>{var xn;return((xn=bn==null?void 0:bn.statics)==null?void 0:xn.blotName)==="link"},Lt);if(en!=null&&en.domNode){const bn=(en.domNode.textContent||"").length;kt.removeFormat(Lt,bn)}}},[]),wt=B.useCallback(()=>({clipboard:{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>!1],["blockquote",()=>!1],["hr",()=>!1]]},copy:{isTitleMode:!0},keyboard:{bindings:{enter:{key:"Enter",handler:()=>!1},newline:{key:"Enter",shiftKey:!0,handler:()=>!1},tab:{key:"Tab",handler:()=>!1},"remove-newline":{key:"Backspace",collapsed:!0,format:["blockquote","list","code-block"],offset:0,handler:function(ft){const{blockquote:kt,list:Ct,["code-block"]:zt}=ft.getFormat();return kt||Ct||zt?(ft.format("blockquote",!1),ft.format("list",!1),ft.format("code-block",!1),!1):!0}}}},magicUrl:!0,toolbar:{container:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}}),[]),Kt=B.useCallback(()=>({clipboard:{},copy:{},keyboard:{},magicUrl:!0,toggleFullscreen:{type:et,maximize:a1.renderToString(M.jsx(uo,{icon:"Maximize",size:E==="Med"?"sm":"md"})),minimize:a1.renderToString(M.jsx(uo,{icon:"Minimize",size:E==="Med"?"sm":"md"}))},imageCompress:{quality:u1.QUALITY,imageType:"image/jpeg",maxWidth:1500,maxHeight:1500,debug:!1,handleOnPaste:ft=>{var kt,Ct;try{const zt=(kt=ft.clipboardData)==null?void 0:kt.items;if(!zt)return!0;const ln=Array.from(zt).some(en=>{const bn=en.type.toLowerCase();return bn.includes("Excel")||bn.includes("text/html")}),mt=(Ct=ft.clipboardData)==null?void 0:Ct.getData("text/html"),Lt=mt&&(mt.includes("<table")||mt.includes("<tbody")||mt.includes("<td"));return!(ln||Lt)}catch(zt){return console.warn("Error in handleOnPaste:",zt),!0}},insertIntoEditor:(ft,kt,Ct)=>{u1.IMAGE_SIZES.has(ft)||u1.IMAGE_SIZES.set(ft,kt.size);const zt=Ct.getSelection();zt&&Ct.insertEmbed(zt.index,"image",ft,Xe.sources.USER)}},...!ne&&{...!N&&{resize:{}},table:!1,tableUp:{fullSwitch:!1,icon:a1.renderToString(M.jsx(uo,{icon:"Table",size:E==="Med"?"sm":"md",strokeWidth:2.5})),resize:VB,resizeScale:ZB,customSelect:$B,selection:KB,fixUnusuaDeletelTable:!1,selectionOptions:{tableMenu:GB,tableMenuOptions:{localstorageKey:"used-color",tipText:!0,tools:[io.InsertCaption,io.InsertTop,io.InsertRight,io.InsertBottom,io.InsertLeft,io.Break,io.MergeCell,io.SplitCell,io.Break,io.DeleteRow,io.DeleteColumn,io.DeleteTable,io.Break,io.BackgroundColor,io.BorderColor,io.Break,io.CopyCell,io.CutCell,io.Break,io.SwitchWidth]}},texts:{fullCheckboxText:Nr.AEditor["Insert Full Width Table"],customBtnText:Nr.AEditor.Custom,confirmText:Nr.AEditor.Confirm,cancelText:Nr.AEditor.Cancel,rowText:Nr.AEditor.Row,colText:Nr.AEditor.Column,CopyCell:Nr.AEditor["Copy Cell"],CutCell:Nr.AEditor["Cut Cell"],notPositiveNumberError:Nr.AEditor["Not Positive Number Error"],custom:Nr.AEditor.Custom,clear:Nr.AEditor.Clear,transparent:Nr.AEditor.Transparent,perWidthInsufficient:Nr.AEditor.perWidthInsufficient,InsertTop:Nr.AEditor["Insert Row Top"],InsertRight:Nr.AEditor["Insert Column Right"],InsertBottom:Nr.AEditor["Insert Row Bottom"],InsertLeft:Nr.AEditor["Insert Column Left"],MergeCell:Nr.AEditor["Merge Cell"],SplitCell:Nr.AEditor["Split Cell"],DeleteRow:Nr.AEditor["Delete Row"],DeleteColumn:Nr.AEditor["Delete Column"],DeleteTable:Nr.AEditor["Delete Table"],BackgroundColor:Nr.AEditor["Set Background Color"],BorderColor:Nr.AEditor["Set Border Color"],SwitchWidth:Nr.AEditor["Switch Table Width"],InsertCaption:Nr.AEditor["Insert Table Caption"]}},toolbar:{container:[[{header:[1,2,3,!1,4]}],["bold","italic","underline","strike","blockquote","divider",{[A_.toolName]:[]},{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],handlers:{divider:function(){const ft=this.quill,kt=ft.getSelection(!0);if(!kt)return;const Ct=Math.min(kt.index+1,ft.getLength()-1);ft.insertEmbed(Ct,"divider",!0,Xe.sources.USER),setTimeout(()=>ft.setSelection(Math.min(Ct+1,ft.getLength()-1),0,Xe.sources.SILENT),0)}}}}}),[ne,N,E,et]),Gt=B.useMemo(()=>ze?wt():Kt(),[ze,wt,Kt]),pn=B.useCallback(ft=>{if(!ft)return;const kt=ft.getEditor();if(!kt)return;const Ct=kt.root,zt=Rn(ft);Ct&&H&&Ct.classList.add(...H.split(" ")),Ct&&G&&Object.entries(G).forEach(([mt,Lt])=>{const en=mt.replace(/([A-Z])/g,bn=>`-${bn[0].toLowerCase()}`);Ct.style[en]=Lt}),gn(Ct,"keydown",mt=>Ze(mt,kt));const ln=new ResizeObserver(Ce);if(zt){ln.observe(zt),Rt.current.push(()=>ln.disconnect());const mt=["header","color","background"];mt.forEach(Lt=>{const en=zt.querySelector(`.ql-${Lt} .ql-picker-label`);en&&gn(en,"click",()=>Ue(mt,kt,zt))})}},[Rn,H,G,gn,Ce,Ze,Ue]),un=B.useCallback(ft=>{if(Rt.current.forEach(Ct=>Ct()),Rt.current=[],Zt.current=ft,!ft){tg.isFunction(t)?t(null):t!=null&&t.current&&(t.current=null);return}const kt=ft;kt.copyContent=Ct=>{ft.getEditor().getModule("copy").copyContent(Ct)},tg.isFunction(t)?t(kt):t&&(t.current=kt),pn(ft)},[t,pn]);return M.jsx(lg,{wrapId:Y,...X,label:M.jsxs(Ml,{style:{gap:4},children:[X.label,O==="Top"&&Ot]}),labelProps:{...fe,style:{minHeight:X.label?20:void 0,marginBottom:X.label?4:0,...fe==null?void 0:fe.style}},wrapProps:{...K,className:bt.clsx(K==null?void 0:K.className,!Ke&&af.AEditorWrapper),style:{...K==null?void 0:K.style,height:Oe}},children:M.jsxs(Wi,{...te,className:bt.clsx(te.className,af.AEditorContainer,tn&&"NoTransition"),style:{...g,height:ht,minHeight:it},children:[M.jsx(Pv,{...h,ref:un,preserveWhitespace:!0,modules:Gt,placeholder:o,readOnly:ne,theme:"snow",value:ot,className:bt.clsx(h==null?void 0:h.className,af.AEditor,af[et],ze&&"Title",tn&&"NoTransition"),style:{...h==null?void 0:h.style,maxHeight:$e?$e+re:void 0,"--icon-size":`${E==="Med"?20:24}px`,"--editor-padding":ze?"8px 12px":"12px","--toolbar-padding":`${E==="Med"?7.5:12.5}px`,"--content-height":ze?"fit-content":Q?`${Q}px`:"100%","--content-max-height":$e?`${$e}px`:"100%","--default-text":`'${Nr.AEditor.Default}'`,"--visit-url-text":`'${Nr.AEditor["Visit URL:"]}'`,"--enter-link-text":`'${Nr.AEditor["Enter link:"]}'`,"--enter-video-text":`'${Nr.AEditor["Enter video:"]}'`,"--edit-text":`'${Nr.AEditor.Edit}'`,"--save-text":`'${Nr.AEditor.Save}'`,"--remove-text":`'${Nr.AEditor.Remove}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(a1.renderToString(M.jsx(uo,{icon:"EditorArrow"})))}`,"--title-color-picker-row":ze?1:4,"--title-header-font-size":`${E==="Med"?12:14}px`},onChange:on}),w&&M.jsxs(M.Fragment,{children:[M.jsx("div",{ref:Me,className:bt.clsx(af.Resizer,tn&&"NoTransition"),style:{height:ue,bottom:i&&!ne?oe:0},onMouseDown:Bt}),M.jsx("div",{children:`${Math.round(Q)}px`,className:bt.clsx(af.Indicator,"NoSelect","Label1",tn&&"NoTransition"),style:{height:ue,bottom:i&&!ne?oe:0,display:xe?"flex":"none"}})]}),M.jsx("div",{children:Ot,className:bt.clsx(af.LimitContainer,"NoSelect",tn&&"NoTransition"),style:{marginTop:be,minHeight:de,display:O==="Bottom"?"flex":"none"}})]})})},Nz=n=>{const e=Vn.c(17),{htmlDelta:t,limit:r,useError:i,isReadonly:o}=n,[l,a]=Do(i,!1),h=Pz.calculateTextSize(t);let g,m;if(e[0]!==h||e[1]!==r||e[2]!==a?(g=()=>{a&&a(h>r)},m=[h,r,a],e[0]=h,e[1]=r,e[2]=a,e[3]=g,e[4]=m):(g=e[3],m=e[4]),B.useEffect(g,m),!i||o)return null;let x;e[5]!==l?(x=bt.clsx(l&&af.Error),e[5]=l,e[6]=x):x=e[6];let w;e[7]!==h?(w=Mg(h),e[7]=h,e[8]=w):w=e[8];let _;e[9]!==x||e[10]!==w?(_=M.jsx("span",{className:x,children:w}),e[9]=x,e[10]=w,e[11]=_):_=e[11];let E;e[12]!==r?(E=Mg(r),e[12]=r,e[13]=E):E=e[13];let R;return e[14]!==_||e[15]!==E?(R=M.jsxs(nd,{className:af.Limit,children:["(",_," / ",E,")"]}),e[14]=_,e[15]=E,e[16]=R):R=e[16],R};function Fz(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return B.useMemo(()=>r=>{e.forEach(i=>i(r))},e)}const zv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function N1(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function jm(n){return"nodeType"in n}function uf(n){var e,t;return n?N1(n)?n:jm(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function $m(n){const{Document:e}=uf(n);return n instanceof e}function Kp(n){return N1(n)?!1:n instanceof uf(n).HTMLElement}function k_(n){return n instanceof uf(n).SVGElement}function F1(n){return n?N1(n)?n.document:jm(n)?$m(n)?n:Kp(n)||k_(n)?n.ownerDocument:document:document:document}const ld=zv?B.useLayoutEffect:B.useEffect;function e2(n){const e=B.useRef(n);return ld(()=>{e.current=n}),B.useCallback(function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function Bz(){const n=B.useRef(null),e=B.useCallback((r,i)=>{n.current=setInterval(r,i)},[]),t=B.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function zp(n,e){e===void 0&&(e=[n]);const t=B.useRef(n);return ld(()=>{t.current!==n&&(t.current=n)},e),t}function Jp(n,e){const t=B.useRef();return B.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function bv(n){const e=e2(n),t=B.useRef(null),r=B.useCallback(i=>{i!==t.current&&(e==null||e(i,t.current)),t.current=i},[]);return[t,r]}function um(n){const e=B.useRef();return B.useEffect(()=>{e.current=n},[n]),e.current}let Pb={};function Qp(n,e){return B.useMemo(()=>{if(e)return e;const t=Pb[n]==null?0:Pb[n]+1;return Pb[n]=t,n+"-"+t},[n,e])}function M_(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return r.reduce((o,l)=>{const a=Object.entries(l);for(const[h,g]of a){const m=o[h];m!=null&&(o[h]=m+n*g)}return o},{...e})}}const m1=M_(1),yv=M_(-1);function zz(n){return"clientX"in n&&"clientY"in n}function t2(n){if(!n)return!1;const{KeyboardEvent:e}=uf(n.target);return e&&n instanceof e}function Hz(n){if(!n)return!1;const{TouchEvent:e}=uf(n.target);return e&&n instanceof e}function fm(n){if(Hz(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return zz(n)?{x:n.clientX,y:n.clientY}:null}const Hp=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Hp.Translate.toString(n),Hp.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Ow="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Wz(n){return n.matches(Ow)?n:n.querySelector(Ow)}const Uz={display:"none"};function Gz(n){let{id:e,value:t}=n;return B.createElement("div",{id:e,style:Uz},t)}function Yz(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return B.createElement("div",{id:e,style:i,role:"status","aria-live":r,"aria-atomic":!0},t)}function Vz(){const[n,e]=B.useState("");return{announce:B.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const L_=B.createContext(null);function Zz(n){const e=B.useContext(L_);B.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(n)},[n,e])}function Xz(){const[n]=B.useState(()=>new Set),e=B.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[B.useCallback(r=>{let{type:i,event:o}=r;n.forEach(l=>{var a;return(a=l[i])==null?void 0:a.call(l,o)})},[n]),e]}const Kz={draggable:`
|
|
480
|
+
`,attributes:{[qe.tableCellInner]:h}}),new N0(g)}handleBorderNoneStyles(t,r){if(!(r!=null&&r.style))return;["border",...["top","right","bottom","left"].flatMap(o=>[`border-${o}`,`border-${o}-style`])].filter(o=>t.style[o]==="none").forEach(o=>r.style=r.style.replaceAll(new RegExp(`${o}:none;?`,"g"),""))}convert({html:t,text:r},i={}){if(t){const a=new DOMParser().parseFromString(t,"text/html");this.preprocessTableHtml(a),this.mergeClassStylesToInline(a),t=a.body.innerHTML}const o=super.convert({html:t,text:r},i);if(i[qe.tableCellInner])for(const l of o.ops){if(tg.isObject(l.insert)&&l.insert[qe.tableCol]){l.insert="";continue}l.attributes||(l.attributes={}),l.attributes[qe.tableCellInner]=i[qe.tableCellInner]}return o}parseStyleWithFilter(t,r){if(!t)return{};const i={};let o="",l="",a=!0,h=0;for(let g=0;g<t.length;g++){const m=t[g];m===":"&&a?(o=t.substring(h,g).trim(),h=g+1,a=!1):m===";"&&(!a&&o&&(l=t.substring(h,g).trim(),(!r||r(o))&&(i[o]=l)),h=g+1,a=!0)}return!a&&o&&h<t.length&&(l=t.substring(h).trim(),(!r||r(o))&&(i[o]=l)),i}mergeClassStylesToInline(t){var r;try{const i=t.querySelectorAll("td[class], th[class]");if(i.length===0)return;const o=new Set;for(const m of i)(m.getAttribute("class")||"").split(/\s+/).filter(Boolean).forEach(w=>o.add(w));if(o.size===0)return;const l=t.querySelectorAll("style");if(l.length===0)return;const a=Array.from(l).map(m=>m.textContent||"").join("");if(!a)return;const h={},g=m=>this.STYLE_PROPERTIES.some(x=>m.startsWith(x));for(const m of o){const x=new RegExp(`\\.${m}[^{]*{([^}]*)}`,"g");let w;for(;(w=x.exec(a))!==null;){const _=w[1],E=this.parseStyleWithFilter(_),R={};let k=!1;for(const O in E)g(O)&&(R[O]=E[O],k=!0);k&&(h[m]=R)}}if(Object.keys(h).length===0)return;for(let m=0;m<i.length;m++){const x=i[m],w=((r=x.getAttribute("class"))==null?void 0:r.split(/\s+/).filter(Boolean))||[],_=x.getAttribute("style")||"",E=this.parseStyleWithFilter(_);let R=!1;for(const k of w){const O=h[k];if(O)for(const P in O)E[P]||(E[P]=O[P],R=!0)}if(R){let k="";for(const O in E)k+=O+":"+E[O]+";";k&&x.setAttribute("style",k)}x.removeAttribute("class")}}catch(i){console.error("스타일 처리 오류",i)}}matchCaption(t,r){for(let i=0;i<r.ops.length;i++){const o=r.ops[i],{attributes:l}=o;l&&l[qe.tableCaption]&&(l[qe.tableCaption].tableId=this.tableId,o.attributes=l)}return r}preprocessTableHtml(t){try{const r=t.querySelectorAll("table");for(const i of Array.from(r))i.querySelectorAll("tr").length!==0&&(this.cleanupTableStyles(i),this.applyRowspanHeights(i),this.fixRowspanCells(i));this.mergeClassStylesToInline(t)}catch(r){console.error("테이블 전처리 오류",r)}}cleanupTableStyles(t){const r=t.querySelectorAll("td, th, tr, colgroup");for(const i of r){const o=i;o.removeAttribute("height");const l=o.getAttribute("style");if(l){const a=l.replace(/height\s*:[^;]*;?/gi,"").trim();o.setAttribute("style",a||"")}}}applyRowspanHeights(t){const i=t.querySelectorAll("td, th");t.style.borderCollapse="collapse";for(const o of i){const l=o,h=parseInt(l.getAttribute("rowspan")||"1")*24,g=l.getAttribute("style")||"",m=g+(g?"; ":"")+`height: ${h}px`;l.setAttribute("style",m)}}fixRowspanCells(t){const r=t.querySelectorAll("tr");if(r.length<=1)return;const i=[],o=new Map;for(let l=0;l<r.length;l++){const h=r[l].querySelectorAll("td, th");if(h.length===0&&l<r.length-1){i.push(l);continue}for(const g of Array.from(h)){const m=parseInt(g.getAttribute("rowspan")||"1");if(m>1)for(let x=1;x<m;x++){const w=l+x;if(w>=r.length)break;o.has(w)||o.set(w,[]),o.get(w).push(g)}}}i.length>0&&this.processEmptyRows(i,r,o)}processEmptyRows(t,r,i){for(const o of t){const l=i.get(o);if(l)for(const a of l){const h=parseInt(a.getAttribute("rowspan")||"1");h>1&&a.setAttribute("rowspan",(h-1).toString())}}for(const o of t.reverse())r[o].remove()}}class Oz extends A4{fixUnusuaDeletelTable(){}mergeCells(e){if(!this.table||!this.tableSelection)return;const t=this.tableSelection.selectedTds||[];if(t.length>1&&(e=t),!e||e.length<=1)return;const r=Kl(e[0],qe.tableMain),i=r.getRows(),o=e.map(w=>{if(!w||!w.parent||!w.parent.domNode)return null;const _=w.parent.domNode;if(!_)return null;const E=i.findIndex(O=>O.rowId===w.rowId);if(E===-1)return null;const R=w.getColumnIndex();if(R===-1)return null;const k=_.getBoundingClientRect();return!k||k.width===0||k.height===0?null:{td:w,rowIndex:E,colIndex:R,rowspan:w.rowspan,colspan:w.colspan,visualLeft:k.left,visualRight:k.right,visualTop:k.top,visualBottom:k.bottom}}).filter(Boolean);if(o.length<=1)return;o.sort((w,_)=>w.visualTop-_.visualTop||w.visualLeft-_.visualLeft);const l=o[0],a=l.td,h=Math.max(...o.map(w=>w.rowIndex+w.rowspan-1)),g=Math.max(...o.map(w=>w.colIndex+w.colspan-1)),m=h-l.rowIndex+1,x=g-l.colIndex+1;for(const w of o)w.td!==a&&(w.td.moveChildren(a),w.td.parent.remove());a.rowspan=m,a.colspan=x,this.fixTableByRemove(r)}}Xe.register({"modules/imageCompress":Fp,"modules/resize":I4,"modules/tableUp":Oz,"modules/magicUrl":sF,"formats/divider":am,"modules/clipboard":Lz,"modules/copy":fz,"modules/toggleFullscreen":o4},!0);const u1={KB:1024,QUALITY:.7,IMAGE_SIZES:new Map},Pz={getCharLength:n=>Array.from(n).length,calculateTextSize:n=>{if(!n.ops||n.ops.length===0)return 0;let e=0;for(const t of n.ops)if(typeof t.insert=="string")e+=new TextEncoder().encode(t.insert).length-1;else if(typeof t.insert=="object"&&t.insert.image){const r=t.insert.image;r&&(e+=u1.IMAGE_SIZES.get(r)||Math.ceil(r.length*u1.QUALITY))}return e}},Dz=n=>{const{type:e="Primary",editorRef:t,useValue:r,useError:i,placeholder:o,tabIndex:l,autoFocus:a,editorProps:h,style:g,minHeight:m,maxHeight:x,contentHeight:w,contentMaxHeight:_=1e3,toolbarSize:E="Med",toolbarType:R="Default",readOnly:k,limitPosition:O="Bottom",maxLength:P,size:z=100,editorClassName:H,editorStyle:G,noImageResize:N,...J}=n,[{wrapId:Y,wrapProps:K,labelProps:fe,...X},te]=Bg(J),ne=B.useMemo(()=>e==="ReadOnly"||k,[e,k]),ue=B.useMemo(()=>w?20:0,[w]),[se,$]=B.useState(E==="Med"?40:50),re=B.useMemo(()=>ne?0:se,[ne,se]),[de,be]=B.useMemo(()=>!i||ne||O==="Top"?[0,0]:[20,6],[i,ne,O]),oe=B.useMemo(()=>de+be,[de,be]),[Q,ge]=B.useState(w),[Te,He]=B.useState(!1),[xe,Ne]=B.useState(!1),Me=B.useRef(null),Be=B.useRef(0),ke=B.useRef(0),Ie=B.useMemo(()=>X.label?24:0,[X.label]),ze=B.useMemo(()=>R==="Title",[R]),Ke=B.useMemo(()=>w||m||ze,[w,m,ze]),Oe=B.useMemo(()=>Ke?"fit-content":x?x+Ie:`calc(100% - ${Ie}px)`,[Ke,x,Ie]),ht=B.useMemo(()=>{if(w){if(Q)switch(e){case"ReadOnly":return Q;case"Raw":return Q+oe;default:return Q+re+oe}}else return},[w,Q,e,re,oe]),$e=B.useMemo(()=>{if(!(!x||x<=re+oe))switch(e){case"ReadOnly":return x;case"Raw":return x-oe;default:return x-re-oe}},[e,re,oe,x]),it=B.useMemo(()=>{if(m&&w){const ft=Math.min(m-re-oe,w);return ne?ft:ft+re+oe}else return m||(w?void 0:`calc(100% - ${Ie}px)`)},[m,w,Ie,re,oe,ne]),et=B.useMemo(()=>(Array.isArray(X.errorMessage)?X.errorMessage.some(Boolean):!!X.errorMessage)?"Error":e,[X.errorMessage,e]),st=B.useCallback(ft=>{let kt=ft;kt=g7.sanitize(ft);const Ct=document.createElement("div");return Ct.innerHTML=kt,new Xe(Ct,{readOnly:!0}).getContents()},[]),[dt,Mt]=Do(r,""),[ot,nt]=B.useState(()=>st(dt));B.useEffect(()=>{Mt===void 0&&nt(st(dt))},[st,Mt,dt]);const Ot=B.useMemo(()=>M.jsx(Nz,{htmlDelta:ot,isReadonly:ne,limit:z*u1.KB,useError:i}),[ot,ne,z,i]),Zt=B.useRef(null),Rt=B.useRef([]),[tn,Ft]=B.useState(!0);B.useEffect(()=>{const ft=setTimeout(()=>Ft(!1),0);return()=>{clearTimeout(ft),Rt.current.forEach(kt=>kt()),Rt.current=[]}},[]);const yn=B.useCallback((ft,kt)=>{if(!w)return kt;const Ct=m?m-re-oe:w,zt=Math.max(Ct,0),ln=x?x-re-oe:_;return Math.min(ln,Math.max(zt,kt+ft))},[w,m,re,oe,x,_]),dn=B.useCallback(ft=>{if(!Te||!w)return;const kt=ft.clientY-ke.current,Ct=yn(kt,Be.current);Q!==Ct&&ge(Ct),ft.preventDefault(),ft.stopPropagation()},[Te,w,yn,Q]),nn=B.useCallback(ft=>{He(!1),Ne(!1),document.removeEventListener("mousemove",dn),document.removeEventListener("mouseup",nn),ft.preventDefault(),ft.stopPropagation()},[dn]),Bt=B.useCallback(ft=>{if(!w)return;if(ft.detail===2){ge(w);return}Q===void 0?(ge(w),Be.current=w):Be.current=Q,He(!0),Ne(!0),ke.current=ft.clientY;const kt=zt=>{if(!w)return;const ln=zt.clientY-ke.current,mt=yn(ln,Be.current);ge(mt),zt.preventDefault(),zt.stopPropagation()},Ct=zt=>{He(!1),Ne(!1),document.removeEventListener("mousemove",kt),document.removeEventListener("mouseup",Ct),zt.preventDefault(),zt.stopPropagation()};document.addEventListener("mousemove",kt),document.addEventListener("mouseup",Ct),ft.preventDefault(),ft.stopPropagation()},[w,Q,yn]),on=B.useCallback((ft,kt,Ct,zt)=>{if(Ct!=="user"&&Ct!=="api")return;const ln=zt.getContents(),mt=zt.getLength()-1,Lt=P!==void 0&&mt>P,en=cr=>cr.replace(/\s{2,}/g,En=>" ".repeat(En.length)),bn=ft.replace(/^<p><br><\/p>$/,"").trim(),xn=en(bn);if(!Lt){nt(ln),Mt==null||Mt(xn);return}const Vt=Nn(ln,P);nt(Vt);const mn=new Xe(document.createElement("div"));mn.setContents(Vt);const Dn=en(mn.root.innerHTML.replace(/^<p><br><\/p>$/,"").trim());Mt==null||Mt(Dn)},[P,Mt]),Nn=(ft,kt)=>{var ln,mt,Lt;if(!ft.ops)return ft;const Ct=new Jn;let zt=0;for(const en of ft.ops){if(zt>=kt)break;if(en.insert&&typeof en.insert=="string"){const bn=en.insert,xn=kt-zt;if(bn.length<=xn)(ln=Ct.ops)==null||ln.push(en),zt+=bn.length;else{const Vt={...en,insert:bn.substring(0,xn)};(mt=Ct.ops)==null||mt.push(Vt),zt+=xn;break}}else zt<kt&&((Lt=Ct.ops)==null||Lt.push(en),zt+=1)}return Ct},Rn=B.useCallback(ft=>{var ln,mt;const kt=ft.getEditor().container;if(!kt)return null;const Ct=(ln=kt.closest(".AEditorContainer"))==null?void 0:ln.querySelector(".ql-toolbar");return Ct||((mt=kt.parentElement)==null?void 0:mt.querySelector(".ql-toolbar"))||null},[]),gn=B.useCallback((ft,kt,Ct,zt)=>{if(!ft)return;const ln=Ct;ft.addEventListener(kt,ln,zt),Rt.current.push(()=>ft.removeEventListener(kt,ln,zt))},[]),Ue=B.useCallback((ft,kt,Ct)=>{const zt=kt.getFormat();ft.forEach(ln=>{if(zt[ln]){const mt=zt[ln],Lt=`.ql-${ln}`,en=Ct.querySelector(`${Lt} .ql-picker-label`),bn=Ct.querySelectorAll(`${Lt} .ql-picker-item`),xn=Array.from(bn).find(Vt=>Vt.getAttribute("data-value")===mt);xn&&(xn.classList.add("ql-selected"),en==null||en.classList.add("ql-active"))}})},[]),Ce=B.useCallback(ft=>{if(!ft.length)return;const zt=ft[0].target.getBoundingClientRect(),ln=Math.ceil(zt.height);$(mt=>Math.abs(mt-ln)<.1?mt:ln)},[]),Ze=B.useCallback((ft,kt)=>{if(ft.key!=="Backspace")return;const Ct=kt.getSelection(!1);if(!Ct||Ct.length>0)return;const zt=Ct.index;if(zt<=0)return;const[ln]=kt.getLine(zt);if(ln&&zt===kt.getIndex(ln)||kt.getFormat(zt,1).link)return;const mt=kt.getFormat(zt-1,1);if(mt.link){ft.preventDefault();let Lt=zt-1;for(;Lt>0&&kt.getFormat(Lt-1,1).link===mt.link;)Lt--;const[en]=kt.scroll.descendant(bn=>{var xn;return((xn=bn==null?void 0:bn.statics)==null?void 0:xn.blotName)==="link"},Lt);if(en!=null&&en.domNode){const bn=(en.domNode.textContent||"").length;kt.removeFormat(Lt,bn)}}},[]),wt=B.useCallback(()=>({clipboard:{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>!1],["blockquote",()=>!1],["hr",()=>!1]]},copy:{isTitleMode:!0},keyboard:{bindings:{enter:{key:"Enter",handler:()=>!1},newline:{key:"Enter",shiftKey:!0,handler:()=>!1},tab:{key:"Tab",handler:()=>!1},"remove-newline":{key:"Backspace",collapsed:!0,format:["blockquote","list","code-block"],offset:0,handler:function(ft){const{blockquote:kt,list:Ct,["code-block"]:zt}=ft.getFormat();return kt||Ct||zt?(ft.format("blockquote",!1),ft.format("list",!1),ft.format("code-block",!1),!1):!0}}}},magicUrl:!0,toolbar:{container:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}}),[]),Kt=B.useCallback(()=>({clipboard:{},copy:{},keyboard:{},magicUrl:!0,toggleFullscreen:{type:et,maximize:a1.renderToString(M.jsx(uo,{icon:"Maximize",size:E==="Med"?"sm":"md"})),minimize:a1.renderToString(M.jsx(uo,{icon:"Minimize",size:E==="Med"?"sm":"md"}))},imageCompress:{quality:u1.QUALITY,imageType:"image/jpeg",maxWidth:1500,maxHeight:1500,debug:!1,handleOnPaste:ft=>{var kt,Ct;try{const zt=(kt=ft.clipboardData)==null?void 0:kt.items;if(!zt)return!0;const ln=Array.from(zt).some(en=>{const bn=en.type.toLowerCase();return bn.includes("Excel")||bn.includes("text/html")}),mt=(Ct=ft.clipboardData)==null?void 0:Ct.getData("text/html"),Lt=mt&&(mt.includes("<table")||mt.includes("<tbody")||mt.includes("<td"));return!(ln||Lt)}catch(zt){return console.warn("Error in handleOnPaste:",zt),!0}},insertIntoEditor:(ft,kt,Ct)=>{u1.IMAGE_SIZES.has(ft)||u1.IMAGE_SIZES.set(ft,kt.size);const zt=Ct.getSelection();zt&&Ct.insertEmbed(zt.index,"image",ft,Xe.sources.USER)}},...!ne&&{...!N&&{resize:{}},table:!1,tableUp:{fullSwitch:!1,icon:a1.renderToString(M.jsx(uo,{icon:"Table",size:E==="Med"?"sm":"md",strokeWidth:2.5})),resize:VB,resizeScale:ZB,customSelect:$B,selection:KB,fixUnusuaDeletelTable:!1,selectionOptions:{tableMenu:GB,tableMenuOptions:{localstorageKey:"used-color",tipText:!0,tools:[io.InsertCaption,io.InsertTop,io.InsertRight,io.InsertBottom,io.InsertLeft,io.Break,io.MergeCell,io.SplitCell,io.Break,io.DeleteRow,io.DeleteColumn,io.DeleteTable,io.Break,io.BackgroundColor,io.BorderColor,io.Break,io.CopyCell,io.CutCell,io.Break,io.SwitchWidth]}},texts:{fullCheckboxText:Nr.AEditor["Insert Full Width Table"],customBtnText:Nr.AEditor.Custom,confirmText:Nr.AEditor.Confirm,cancelText:Nr.AEditor.Cancel,rowText:Nr.AEditor.Row,colText:Nr.AEditor.Column,CopyCell:Nr.AEditor["Copy Cell"],CutCell:Nr.AEditor["Cut Cell"],notPositiveNumberError:Nr.AEditor["Not Positive Number Error"],custom:Nr.AEditor.Custom,clear:Nr.AEditor.Clear,transparent:Nr.AEditor.Transparent,perWidthInsufficient:Nr.AEditor.perWidthInsufficient,InsertTop:Nr.AEditor["Insert Row Top"],InsertRight:Nr.AEditor["Insert Column Right"],InsertBottom:Nr.AEditor["Insert Row Bottom"],InsertLeft:Nr.AEditor["Insert Column Left"],MergeCell:Nr.AEditor["Merge Cell"],SplitCell:Nr.AEditor["Split Cell"],DeleteRow:Nr.AEditor["Delete Row"],DeleteColumn:Nr.AEditor["Delete Column"],DeleteTable:Nr.AEditor["Delete Table"],BackgroundColor:Nr.AEditor["Set Background Color"],BorderColor:Nr.AEditor["Set Border Color"],SwitchWidth:Nr.AEditor["Switch Table Width"],InsertCaption:Nr.AEditor["Insert Table Caption"]}},toolbar:{container:[[{header:[1,2,3,!1,4]}],["bold","italic","underline","strike","blockquote","divider",{[A4.toolName]:[]},{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],handlers:{divider:function(){const ft=this.quill,kt=ft.getSelection(!0);if(!kt)return;const Ct=Math.min(kt.index+1,ft.getLength()-1);ft.insertEmbed(Ct,"divider",!0,Xe.sources.USER),setTimeout(()=>ft.setSelection(Math.min(Ct+1,ft.getLength()-1),0,Xe.sources.SILENT),0)}}}}}),[ne,N,E,et]),Gt=B.useMemo(()=>ze?wt():Kt(),[ze,wt,Kt]),pn=B.useCallback(ft=>{if(!ft)return;const kt=ft.getEditor();if(!kt)return;const Ct=kt.root,zt=Rn(ft);Ct&&H&&Ct.classList.add(...H.split(" ")),Ct&&G&&Object.entries(G).forEach(([mt,Lt])=>{const en=mt.replace(/([A-Z])/g,bn=>`-${bn[0].toLowerCase()}`);Ct.style[en]=Lt}),gn(Ct,"keydown",mt=>Ze(mt,kt));const ln=new ResizeObserver(Ce);if(zt){ln.observe(zt),Rt.current.push(()=>ln.disconnect());const mt=["header","color","background"];mt.forEach(Lt=>{const en=zt.querySelector(`.ql-${Lt} .ql-picker-label`);en&&gn(en,"click",()=>Ue(mt,kt,zt))})}},[Rn,H,G,gn,Ce,Ze,Ue]),un=B.useCallback(ft=>{if(Rt.current.forEach(Ct=>Ct()),Rt.current=[],Zt.current=ft,!ft){tg.isFunction(t)?t(null):t!=null&&t.current&&(t.current=null);return}const kt=ft;kt.copyContent=Ct=>{ft.getEditor().getModule("copy").copyContent(Ct)},tg.isFunction(t)?t(kt):t&&(t.current=kt),pn(ft)},[t,pn]);return M.jsx(lg,{wrapId:Y,...X,label:M.jsxs(Ml,{style:{gap:4},children:[X.label,O==="Top"&&Ot]}),labelProps:{...fe,style:{minHeight:X.label?20:void 0,marginBottom:X.label?4:0,...fe==null?void 0:fe.style}},wrapProps:{...K,className:bt.clsx(K==null?void 0:K.className,!Ke&&af.AEditorWrapper),style:{...K==null?void 0:K.style,height:Oe}},children:M.jsxs(Wi,{...te,className:bt.clsx(te.className,af.AEditorContainer,tn&&"NoTransition"),style:{...g,height:ht,minHeight:it},children:[M.jsx(Pv,{...h,ref:un,preserveWhitespace:!0,modules:Gt,placeholder:o,readOnly:ne,theme:"snow",value:ot,className:bt.clsx(h==null?void 0:h.className,af.AEditor,af[et],ze&&"Title",tn&&"NoTransition"),style:{...h==null?void 0:h.style,maxHeight:$e?$e+re:void 0,"--icon-size":`${E==="Med"?20:24}px`,"--editor-padding":ze?"8px 12px":"12px","--toolbar-padding":`${E==="Med"?7.5:12.5}px`,"--content-height":ze?"fit-content":Q?`${Q}px`:"100%","--content-max-height":$e?`${$e}px`:"100%","--default-text":`'${Nr.AEditor.Default}'`,"--visit-url-text":`'${Nr.AEditor["Visit URL:"]}'`,"--enter-link-text":`'${Nr.AEditor["Enter link:"]}'`,"--enter-video-text":`'${Nr.AEditor["Enter video:"]}'`,"--edit-text":`'${Nr.AEditor.Edit}'`,"--save-text":`'${Nr.AEditor.Save}'`,"--remove-text":`'${Nr.AEditor.Remove}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(a1.renderToString(M.jsx(uo,{icon:"EditorArrow"})))}`,"--title-color-picker-row":ze?1:4,"--title-header-font-size":`${E==="Med"?12:14}px`},onChange:on}),w&&M.jsxs(M.Fragment,{children:[M.jsx("div",{ref:Me,className:bt.clsx(af.Resizer,tn&&"NoTransition"),style:{height:ue,bottom:i&&!ne?oe:0},onMouseDown:Bt}),M.jsx("div",{children:`${Math.round(Q)}px`,className:bt.clsx(af.Indicator,"NoSelect","Label1",tn&&"NoTransition"),style:{height:ue,bottom:i&&!ne?oe:0,display:xe?"flex":"none"}})]}),M.jsx("div",{children:Ot,className:bt.clsx(af.LimitContainer,"NoSelect",tn&&"NoTransition"),style:{marginTop:be,minHeight:de,display:O==="Bottom"?"flex":"none"}})]})})},Nz=n=>{const e=Vn.c(17),{htmlDelta:t,limit:r,useError:i,isReadonly:o}=n,[l,a]=Do(i,!1),h=Pz.calculateTextSize(t);let g,m;if(e[0]!==h||e[1]!==r||e[2]!==a?(g=()=>{a&&a(h>r)},m=[h,r,a],e[0]=h,e[1]=r,e[2]=a,e[3]=g,e[4]=m):(g=e[3],m=e[4]),B.useEffect(g,m),!i||o)return null;let x;e[5]!==l?(x=bt.clsx(l&&af.Error),e[5]=l,e[6]=x):x=e[6];let w;e[7]!==h?(w=Mg(h),e[7]=h,e[8]=w):w=e[8];let _;e[9]!==x||e[10]!==w?(_=M.jsx("span",{className:x,children:w}),e[9]=x,e[10]=w,e[11]=_):_=e[11];let E;e[12]!==r?(E=Mg(r),e[12]=r,e[13]=E):E=e[13];let R;return e[14]!==_||e[15]!==E?(R=M.jsxs(nd,{className:af.Limit,children:["(",_," / ",E,")"]}),e[14]=_,e[15]=E,e[16]=R):R=e[16],R};function Fz(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return B.useMemo(()=>r=>{e.forEach(i=>i(r))},e)}const zv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function N1(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function jm(n){return"nodeType"in n}function uf(n){var e,t;return n?N1(n)?n:jm(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function $m(n){const{Document:e}=uf(n);return n instanceof e}function Kp(n){return N1(n)?!1:n instanceof uf(n).HTMLElement}function k4(n){return n instanceof uf(n).SVGElement}function F1(n){return n?N1(n)?n.document:jm(n)?$m(n)?n:Kp(n)||k4(n)?n.ownerDocument:document:document:document}const ld=zv?B.useLayoutEffect:B.useEffect;function e2(n){const e=B.useRef(n);return ld(()=>{e.current=n}),B.useCallback(function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function Bz(){const n=B.useRef(null),e=B.useCallback((r,i)=>{n.current=setInterval(r,i)},[]),t=B.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function zp(n,e){e===void 0&&(e=[n]);const t=B.useRef(n);return ld(()=>{t.current!==n&&(t.current=n)},e),t}function Jp(n,e){const t=B.useRef();return B.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function bv(n){const e=e2(n),t=B.useRef(null),r=B.useCallback(i=>{i!==t.current&&(e==null||e(i,t.current)),t.current=i},[]);return[t,r]}function um(n){const e=B.useRef();return B.useEffect(()=>{e.current=n},[n]),e.current}let Pb={};function Qp(n,e){return B.useMemo(()=>{if(e)return e;const t=Pb[n]==null?0:Pb[n]+1;return Pb[n]=t,n+"-"+t},[n,e])}function M4(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return r.reduce((o,l)=>{const a=Object.entries(l);for(const[h,g]of a){const m=o[h];m!=null&&(o[h]=m+n*g)}return o},{...e})}}const m1=M4(1),yv=M4(-1);function zz(n){return"clientX"in n&&"clientY"in n}function t2(n){if(!n)return!1;const{KeyboardEvent:e}=uf(n.target);return e&&n instanceof e}function Hz(n){if(!n)return!1;const{TouchEvent:e}=uf(n.target);return e&&n instanceof e}function fm(n){if(Hz(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return zz(n)?{x:n.clientX,y:n.clientY}:null}const Hp=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Hp.Translate.toString(n),Hp.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Ow="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Wz(n){return n.matches(Ow)?n:n.querySelector(Ow)}const Uz={display:"none"};function Gz(n){let{id:e,value:t}=n;return B.createElement("div",{id:e,style:Uz},t)}function Yz(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return B.createElement("div",{id:e,style:i,role:"status","aria-live":r,"aria-atomic":!0},t)}function Vz(){const[n,e]=B.useState("");return{announce:B.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const L4=B.createContext(null);function Zz(n){const e=B.useContext(L4);B.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(n)},[n,e])}function Xz(){const[n]=B.useState(()=>new Set),e=B.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[B.useCallback(r=>{let{type:i,event:o}=r;n.forEach(l=>{var a;return(a=l[i])==null?void 0:a.call(l,o)})},[n]),e]}const Kz={draggable:`
|
|
481
481
|
To pick up a draggable item, press the space bar.
|
|
482
482
|
While dragging, use the arrow keys to move the item.
|
|
483
483
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
484
|
-
`},Jz={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Qz(n){let{announcements:e=Jz,container:t,hiddenTextDescribedById:r,screenReaderInstructions:i=Kz}=n;const{announce:o,announcement:l}=Vz(),a=Qp("DndLiveRegion"),[h,g]=B.useState(!1);if(B.useEffect(()=>{g(!0)},[]),Zz(B.useMemo(()=>({onDragStart(x){let{active:w}=x;o(e.onDragStart({active:w}))},onDragMove(x){let{active:w,over:_}=x;e.onDragMove&&o(e.onDragMove({active:w,over:_}))},onDragOver(x){let{active:w,over:_}=x;o(e.onDragOver({active:w,over:_}))},onDragEnd(x){let{active:w,over:_}=x;o(e.onDragEnd({active:w,over:_}))},onDragCancel(x){let{active:w,over:_}=x;o(e.onDragCancel({active:w,over:_}))}}),[o,e])),!h)return null;const m=B.createElement(B.Fragment,null,B.createElement(Gz,{id:r,value:i.draggable}),B.createElement(Yz,{id:a,announcement:l}));return t?su.createPortal(m,t):m}var Fa;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Fa||(Fa={}));function mv(){}function Pw(n,e){return B.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function qz(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return B.useMemo(()=>[...e].filter(r=>r!=null),[...e])}const Bh=Object.freeze({x:0,y:0});function jz(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function $z(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function eH(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function tH(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function Dw(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const nH=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const i=Dw(e,e.left,e.top),o=[];for(const l of r){const{id:a}=l,h=t.get(a);if(h){const g=jz(Dw(h),i);o.push({id:a,data:{droppableContainer:l,value:g}})}}return o.sort($z)};function rH(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),i=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),l=i-r,a=o-t;if(r<i&&t<o){const h=e.width*e.height,g=n.width*n.height,m=l*a,x=m/(h+g-m);return Number(x.toFixed(4))}return 0}const iH=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const i=[];for(const o of r){const{id:l}=o,a=t.get(l);if(a){const h=rH(a,e);h>0&&i.push({id:l,data:{droppableContainer:o,value:h}})}}return i.sort(eH)};function oH(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function O_(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Bh}function lH(n){return function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((l,a)=>({...l,top:l.top+n*a.y,bottom:l.bottom+n*a.y,left:l.left+n*a.x,right:l.right+n*a.x}),{...t})}}const sH=lH(1);function aH(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function cH(n,e,t){const r=aH(e);if(!r)return n;const{scaleX:i,scaleY:o,x:l,y:a}=r,h=n.left-l-(1-i)*parseFloat(t),g=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),m=i?n.width/i:n.width,x=o?n.height/o:n.height;return{width:m,height:x,top:g,right:h+m,bottom:g+x,left:h}}const uH={ignoreTransform:!1};function B1(n,e){e===void 0&&(e=uH);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:g,transformOrigin:m}=uf(n).getComputedStyle(n);g&&(t=cH(t,g,m))}const{top:r,left:i,width:o,height:l,bottom:a,right:h}=t;return{top:r,left:i,width:o,height:l,bottom:a,right:h}}function Nw(n){return B1(n,{ignoreTransform:!0})}function fH(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function hH(n,e){return e===void 0&&(e=uf(n).getComputedStyle(n)),e.position==="fixed"}function dH(n,e){e===void 0&&(e=uf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=e[i];return typeof o=="string"?t.test(o):!1})}function n2(n,e){const t=[];function r(i){if(e!=null&&t.length>=e||!i)return t;if($m(i)&&i.scrollingElement!=null&&!t.includes(i.scrollingElement))return t.push(i.scrollingElement),t;if(!Kp(i)||k_(i)||t.includes(i))return t;const o=uf(n).getComputedStyle(i);return i!==n&&dH(i,o)&&t.push(i),hH(i,o)?t:r(i.parentNode)}return n?r(n):t}function P_(n){const[e]=n2(n,1);return e??null}function Db(n){return!zv||!n?null:N1(n)?n:jm(n)?$m(n)||n===F1(n).scrollingElement?window:Kp(n)?n:null:null}function D_(n){return N1(n)?n.scrollX:n.scrollLeft}function N_(n){return N1(n)?n.scrollY:n.scrollTop}function hm(n){return{x:D_(n),y:N_(n)}}var oc;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(oc||(oc={}));function F_(n){return!zv||!n?!1:n===document.scrollingElement}function B_(n){const e={x:0,y:0},t=F_(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},i=n.scrollTop<=e.y,o=n.scrollLeft<=e.x,l=n.scrollTop>=r.y,a=n.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:l,isRight:a,maxScroll:r,minScroll:e}}const gH={x:.2,y:.2};function pH(n,e,t,r,i){let{top:o,left:l,right:a,bottom:h}=t;r===void 0&&(r=10),i===void 0&&(i=gH);const{isTop:g,isBottom:m,isLeft:x,isRight:w}=B_(n),_={x:0,y:0},E={x:0,y:0},R={height:e.height*i.y,width:e.width*i.x};return!g&&o<=e.top+R.height?(_.y=oc.Backward,E.y=r*Math.abs((e.top+R.height-o)/R.height)):!m&&h>=e.bottom-R.height&&(_.y=oc.Forward,E.y=r*Math.abs((e.bottom-R.height-h)/R.height)),!w&&a>=e.right-R.width?(_.x=oc.Forward,E.x=r*Math.abs((e.right-R.width-a)/R.width)):!x&&l<=e.left+R.width&&(_.x=oc.Backward,E.x=r*Math.abs((e.left+R.width-l)/R.width)),{direction:_,speed:E}}function vH(n){if(n===document.scrollingElement){const{innerWidth:o,innerHeight:l}=window;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}const{top:e,left:t,right:r,bottom:i}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:i,width:n.clientWidth,height:n.clientHeight}}function z_(n){return n.reduce((e,t)=>m1(e,hm(t)),Bh)}function bH(n){return n.reduce((e,t)=>e+D_(t),0)}function yH(n){return n.reduce((e,t)=>e+N_(t),0)}function mH(n,e){if(e===void 0&&(e=B1),!n)return;const{top:t,left:r,bottom:i,right:o}=e(n);P_(n)&&(i<=0||o<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const xH=[["x",["left","right"],bH],["y",["top","bottom"],yH]];class r2{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=n2(t),i=z_(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[o,l,a]of xH)for(const h of l)Object.defineProperty(this,h,{get:()=>{const g=a(r),m=i[o]-g;return this.rect[h]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class xp{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var i;(i=this.target)==null||i.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function wH(n){const{EventTarget:e}=uf(n);return n instanceof e?n:F1(n)}function Nb(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var hh;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(hh||(hh={}));function Fw(n){n.preventDefault()}function CH(n){n.stopPropagation()}var Eo;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter",n.Tab="Tab"})(Eo||(Eo={}));const H_={start:[Eo.Space,Eo.Enter],cancel:[Eo.Esc],end:[Eo.Space,Eo.Enter,Eo.Tab]},_H=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case Eo.Right:return{...t,x:t.x+25};case Eo.Left:return{...t,x:t.x-25};case Eo.Down:return{...t,y:t.y+25};case Eo.Up:return{...t,y:t.y-25}}};class i2{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new xp(F1(t)),this.windowListeners=new xp(uf(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hh.Resize,this.handleCancel),this.windowListeners.add(hh.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hh.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&mH(r),t(Bh)}handleKeyDown(e){if(t2(e)){const{active:t,context:r,options:i}=this.props,{keyboardCodes:o=H_,coordinateGetter:l=_H,scrollBehavior:a="smooth"}=i,{code:h}=e;if(o.end.includes(h)){this.handleEnd(e);return}if(o.cancel.includes(h)){this.handleCancel(e);return}const{collisionRect:g}=r.current,m=g?{x:g.left,y:g.top}:Bh;this.referenceCoordinates||(this.referenceCoordinates=m);const x=l(e,{active:t,context:r.current,currentCoordinates:m});if(x){const w=yv(x,m),_={x:0,y:0},{scrollableAncestors:E}=r.current;for(const R of E){const k=e.code,{isTop:O,isRight:P,isLeft:z,isBottom:H,maxScroll:G,minScroll:N}=B_(R),J=vH(R),Y={x:Math.min(k===Eo.Right?J.right-J.width/2:J.right,Math.max(k===Eo.Right?J.left:J.left+J.width/2,x.x)),y:Math.min(k===Eo.Down?J.bottom-J.height/2:J.bottom,Math.max(k===Eo.Down?J.top:J.top+J.height/2,x.y))},K=k===Eo.Right&&!P||k===Eo.Left&&!z,fe=k===Eo.Down&&!H||k===Eo.Up&&!O;if(K&&Y.x!==x.x){const X=R.scrollLeft+w.x,te=k===Eo.Right&&X<=G.x||k===Eo.Left&&X>=N.x;if(te&&!w.y){R.scrollTo({left:X,behavior:a});return}te?_.x=R.scrollLeft-X:_.x=k===Eo.Right?R.scrollLeft-G.x:R.scrollLeft-N.x,_.x&&R.scrollBy({left:-_.x,behavior:a});break}else if(fe&&Y.y!==x.y){const X=R.scrollTop+w.y,te=k===Eo.Down&&X<=G.y||k===Eo.Up&&X>=N.y;if(te&&!w.x){R.scrollTo({top:X,behavior:a});return}te?_.y=R.scrollTop-X:_.y=k===Eo.Down?R.scrollTop-G.y:R.scrollTop-N.y,_.y&&R.scrollBy({top:-_.y,behavior:a});break}}this.handleMove(e,m1(yv(x,this.referenceCoordinates),_))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}i2.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=H_,onActivation:i}=e,{active:o}=t;const{code:l}=n.nativeEvent;if(r.start.includes(l)){const a=o.activatorNode.current;return a&&n.target!==a?!1:(n.preventDefault(),i==null||i({event:n.nativeEvent}),!0)}return!1}}];function Bw(n){return!!(n&&"distance"in n)}function zw(n){return!!(n&&"delay"in n)}class o2{constructor(e,t,r){var i;r===void 0&&(r=wH(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:l}=o;this.props=e,this.events=t,this.document=F1(l),this.documentListeners=new xp(this.document),this.listeners=new xp(r),this.windowListeners=new xp(uf(l)),this.initialCoordinates=(i=fm(o))!=null?i:Bh,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(hh.Resize,this.handleCancel),this.windowListeners.add(hh.DragStart,Fw),this.windowListeners.add(hh.VisibilityChange,this.handleCancel),this.windowListeners.add(hh.ContextMenu,Fw),this.documentListeners.add(hh.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(zw(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(Bw(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:r,onPending:i}=this.props;i(r,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(hh.Click,CH,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hh.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:l,options:{activationConstraint:a}}=o;if(!i)return;const h=(t=fm(e))!=null?t:Bh,g=yv(i,h);if(!r&&a){if(Bw(a)){if(a.tolerance!=null&&Nb(g,a.tolerance))return this.handleCancel();if(Nb(g,a.distance))return this.handleStart()}if(zw(a)&&Nb(g,a.tolerance))return this.handleCancel();this.handlePending(a,g);return}e.cancelable&&e.preventDefault(),l(h)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Eo.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const SH={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class l2 extends o2{constructor(e){const{event:t}=e,r=F1(t.target);super(e,SH,r)}}l2.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EH={move:{name:"mousemove"},end:{name:"mouseup"}};var dm;(function(n){n[n.RightClick=2]="RightClick"})(dm||(dm={}));class TH extends o2{constructor(e){super(e,EH,F1(e.event.target))}}TH.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===dm.RightClick?!1:(r==null||r({event:t}),!0)}}];const Fb={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class AH extends o2{constructor(e){super(e,Fb)}static setup(){return window.addEventListener(Fb.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Fb.move.name,e)};function e(){}}}AH.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:i}=t;return i.length>1?!1:(r==null||r({event:t}),!0)}}];var wp;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(wp||(wp={}));var xv;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(xv||(xv={}));function RH(n){let{acceleration:e,activator:t=wp.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:l=5,order:a=xv.TreeOrder,pointerCoordinates:h,scrollableAncestors:g,scrollableAncestorRects:m,delta:x,threshold:w}=n;const _=kH({delta:x,disabled:!o}),[E,R]=Bz(),k=B.useRef({x:0,y:0}),O=B.useRef({x:0,y:0}),P=B.useMemo(()=>{switch(t){case wp.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case wp.DraggableRect:return i}},[t,i,h]),z=B.useRef(null),H=B.useCallback(()=>{const N=z.current;if(!N)return;const J=k.current.x*O.current.x,Y=k.current.y*O.current.y;N.scrollBy(J,Y)},[]),G=B.useMemo(()=>a===xv.TreeOrder?[...g].reverse():g,[a,g]);B.useEffect(()=>{if(!o||!g.length||!P){R();return}for(const N of G){if((r==null?void 0:r(N))===!1)continue;const J=g.indexOf(N),Y=m[J];if(!Y)continue;const{direction:K,speed:fe}=pH(N,Y,P,e,w);for(const X of["x","y"])_[X][K[X]]||(fe[X]=0,K[X]=0);if(fe.x>0||fe.y>0){R(),z.current=N,E(H,l),k.current=fe,O.current=K;return}}k.current={x:0,y:0},O.current={x:0,y:0},R()},[e,H,r,R,o,l,JSON.stringify(P),JSON.stringify(_),E,g,G,m,JSON.stringify(w)])}const IH={x:{[oc.Backward]:!1,[oc.Forward]:!1},y:{[oc.Backward]:!1,[oc.Forward]:!1}};function kH(n){let{delta:e,disabled:t}=n;const r=um(e);return Jp(i=>{if(t||!r||!i)return IH;const o={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[oc.Backward]:i.x[oc.Backward]||o.x===-1,[oc.Forward]:i.x[oc.Forward]||o.x===1},y:{[oc.Backward]:i.y[oc.Backward]||o.y===-1,[oc.Forward]:i.y[oc.Forward]||o.y===1}}},[t,e,r])}function MH(n,e){const t=e!=null?n.get(e):void 0,r=t?t.node.current:null;return Jp(i=>{var o;return e==null?null:(o=r??i)!=null?o:null},[r,e])}function LH(n,e){return B.useMemo(()=>n.reduce((t,r)=>{const{sensor:i}=r,o=i.activators.map(l=>({eventName:l.eventName,handler:e(l.handler,r)}));return[...t,...o]},[]),[n,e])}var M1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(M1||(M1={}));var gm;(function(n){n.Optimized="optimized"})(gm||(gm={}));const Hw=new Map;function OH(n,e){let{dragging:t,dependencies:r,config:i}=e;const[o,l]=B.useState(null),{frequency:a,measure:h,strategy:g}=i,m=B.useRef(n),x=k(),w=zp(x),_=B.useCallback(function(O){O===void 0&&(O=[]),!w.current&&l(P=>P===null?O:P.concat(O.filter(z=>!P.includes(z))))},[w]),E=B.useRef(null),R=Jp(O=>{if(x&&!t)return Hw;if(!O||O===Hw||m.current!==n||o!=null){const P=new Map;for(let z of n){if(!z)continue;if(o&&o.length>0&&!o.includes(z.id)&&z.rect.current){P.set(z.id,z.rect.current);continue}const H=z.node.current,G=H?new r2(h(H),H):null;z.rect.current=G,G&&P.set(z.id,G)}return P}return O},[n,o,t,x,h]);return B.useEffect(()=>{m.current=n},[n]),B.useEffect(()=>{x||_()},[t,x]),B.useEffect(()=>{o&&o.length>0&&l(null)},[JSON.stringify(o)]),B.useEffect(()=>{x||typeof a!="number"||E.current!==null||(E.current=setTimeout(()=>{_(),E.current=null},a))},[a,x,_,...r]),{droppableRects:R,measureDroppableContainers:_,measuringScheduled:o!=null};function k(){switch(g){case M1.Always:return!1;case M1.BeforeDragging:return t;default:return!t}}}function W_(n,e){return Jp(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function PH(n,e){return W_(n,e)}function DH(n){let{callback:e,disabled:t}=n;const r=e2(e),i=B.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,t]);return B.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Hv(n){let{callback:e,disabled:t}=n;const r=e2(e),i=B.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[t]);return B.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function NH(n){return new r2(B1(n),n)}function Ww(n,e,t){e===void 0&&(e=NH);const[r,i]=B.useState(null);function o(){i(h=>{if(!n)return null;if(n.isConnected===!1){var g;return(g=h??t)!=null?g:null}const m=e(n);return JSON.stringify(h)===JSON.stringify(m)?h:m})}const l=DH({callback(h){if(n)for(const g of h){const{type:m,target:x}=g;if(m==="childList"&&x instanceof HTMLElement&&x.contains(n)){o();break}}}}),a=Hv({callback:o});return ld(()=>{o(),n?(a==null||a.observe(n),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),l==null||l.disconnect())},[n]),r}function FH(n){const e=W_(n);return O_(n,e)}const Uw=[];function BH(n){const e=B.useRef(n),t=Jp(r=>n?r&&r!==Uw&&n&&e.current&&n.parentNode===e.current.parentNode?r:n2(n):Uw,[n]);return B.useEffect(()=>{e.current=n},[n]),t}function zH(n){const[e,t]=B.useState(null),r=B.useRef(n),i=B.useCallback(o=>{const l=Db(o.target);l&&t(a=>a?(a.set(l,hm(l)),new Map(a)):null)},[]);return B.useEffect(()=>{const o=r.current;if(n!==o){l(o);const a=n.map(h=>{const g=Db(h);return g?(g.addEventListener("scroll",i,{passive:!0}),[g,hm(g)]):null}).filter(h=>h!=null);t(a.length?new Map(a):null),r.current=n}return()=>{l(n),l(o)};function l(a){a.forEach(h=>{const g=Db(h);g==null||g.removeEventListener("scroll",i)})}},[i,n]),B.useMemo(()=>n.length?e?Array.from(e.values()).reduce((o,l)=>m1(o,l),Bh):z_(n):Bh,[n,e])}function Gw(n,e){e===void 0&&(e=[]);const t=B.useRef(null);return B.useEffect(()=>{t.current=null},e),B.useEffect(()=>{const r=n!==Bh;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?yv(n,t.current):Bh}function HH(n){B.useEffect(()=>{if(!zv)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function WH(n,e){return B.useMemo(()=>n.reduce((t,r)=>{let{eventName:i,handler:o}=r;return t[i]=l=>{o(l,e)},t},{}),[n,e])}function U_(n){return B.useMemo(()=>n?fH(n):null,[n])}const Yw=[];function UH(n,e){e===void 0&&(e=B1);const[t]=n,r=U_(t?uf(t):null),[i,o]=B.useState(Yw);function l(){o(()=>n.length?n.map(h=>F_(h)?r:new r2(e(h),h)):Yw)}const a=Hv({callback:l});return ld(()=>{a==null||a.disconnect(),l(),n.forEach(h=>a==null?void 0:a.observe(h))},[n]),i}function GH(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return Kp(e)?e:n}function YH(n){let{measure:e}=n;const[t,r]=B.useState(null),i=B.useCallback(g=>{for(const{target:m}of g)if(Kp(m)){r(x=>{const w=e(m);return x?{...x,width:w.width,height:w.height}:w});break}},[e]),o=Hv({callback:i}),l=B.useCallback(g=>{const m=GH(g);o==null||o.disconnect(),m&&(o==null||o.observe(m)),r(m?e(m):null)},[e,o]),[a,h]=bv(l);return B.useMemo(()=>({nodeRef:a,rect:t,setRef:h}),[t,a,h])}const VH=[{sensor:l2,options:{}},{sensor:i2,options:{}}],ZH={current:{}},j0={draggable:{measure:Nw},droppable:{measure:Nw,strategy:M1.WhileDragging,frequency:gm.Optimized},dragOverlay:{measure:B1}};class Cp extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const XH={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Cp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:mv},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:j0,measureDroppableContainers:mv,windowRect:null,measuringScheduled:!1},KH={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:mv,draggableNodes:new Map,over:null,measureDroppableContainers:mv},Wv=B.createContext(KH),G_=B.createContext(XH);function JH(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Cp}}}function QH(n,e){switch(e.type){case Fa.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case Fa.DragMove:return n.draggable.active==null?n:{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}};case Fa.DragEnd:case Fa.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Fa.RegisterDroppable:{const{element:t}=e,{id:r}=t,i=new Cp(n.droppable.containers);return i.set(r,t),{...n,droppable:{...n.droppable,containers:i}}}case Fa.SetDroppableDisabled:{const{id:t,key:r,disabled:i}=e,o=n.droppable.containers.get(t);if(!o||r!==o.key)return n;const l=new Cp(n.droppable.containers);return l.set(t,{...o,disabled:i}),{...n,droppable:{...n.droppable,containers:l}}}case Fa.UnregisterDroppable:{const{id:t,key:r}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Cp(n.droppable.containers);return o.delete(t),{...n,droppable:{...n.droppable,containers:o}}}default:return n}}function qH(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:i}=B.useContext(Wv),o=um(r),l=um(t==null?void 0:t.id);return B.useEffect(()=>{if(!e&&!r&&o&&l!=null){if(!t2(o)||document.activeElement===o.target)return;const a=i.get(l);if(!a)return;const{activatorNode:h,node:g}=a;if(!h.current&&!g.current)return;requestAnimationFrame(()=>{for(const m of[h.current,g.current]){if(!m)continue;const x=Wz(m);if(x){x.focus();break}}})}},[r,e,i,l,o]),null}function jH(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((i,o)=>o({transform:i,...r}),t):t}function $H(n){return B.useMemo(()=>({draggable:{...j0.draggable,...n==null?void 0:n.draggable},droppable:{...j0.droppable,...n==null?void 0:n.droppable},dragOverlay:{...j0.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function eW(n){let{activeNode:e,measure:t,initialRect:r,config:i=!0}=n;const o=B.useRef(!1),{x:l,y:a}=typeof i=="boolean"?{x:i,y:i}:i;ld(()=>{if(!l&&!a||!e){o.current=!1;return}if(o.current||!r)return;const g=e==null?void 0:e.node.current;if(!g||g.isConnected===!1)return;const m=t(g),x=O_(m,r);if(l||(x.x=0),a||(x.y=0),o.current=!0,Math.abs(x.x)>0||Math.abs(x.y)>0){const w=P_(g);w&&w.scrollBy({top:x.y,left:x.x})}},[e,l,a,r,t])}const Y_=B.createContext({...Bh,scaleX:1,scaleY:1});var Jd;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(Jd||(Jd={}));const tW=B.memo(function(e){var t,r,i,o;let{id:l,accessibility:a,autoScroll:h=!0,children:g,sensors:m=VH,collisionDetection:x=iH,measuring:w,modifiers:_,...E}=e;const R=B.useReducer(QH,void 0,JH),[k,O]=R,[P,z]=Xz(),[H,G]=B.useState(Jd.Uninitialized),N=H===Jd.Initialized,{draggable:{active:J,nodes:Y,translate:K},droppable:{containers:fe}}=k,X=J!=null?Y.get(J):null,te=B.useRef({initial:null,translated:null}),ne=B.useMemo(()=>{var pn;return J!=null?{id:J,data:(pn=X==null?void 0:X.data)!=null?pn:ZH,rect:te}:null},[J,X]),ue=B.useRef(null),[se,$]=B.useState(null),[re,de]=B.useState(null),be=zp(E,Object.values(E)),oe=Qp("DndDescribedBy",l),Q=B.useMemo(()=>fe.getEnabled(),[fe]),ge=$H(w),{droppableRects:Te,measureDroppableContainers:He,measuringScheduled:xe}=OH(Q,{dragging:N,dependencies:[K.x,K.y],config:ge.droppable}),Ne=MH(Y,J),Me=B.useMemo(()=>re?fm(re):null,[re]),Be=Gt(),ke=PH(Ne,ge.draggable.measure);eW({activeNode:J!=null?Y.get(J):null,config:Be.layoutShiftCompensation,initialRect:ke,measure:ge.draggable.measure});const Ie=Ww(Ne,ge.draggable.measure,ke),ze=Ww(Ne?Ne.parentElement:null),Ke=B.useRef({activatorEvent:null,active:null,activeNode:Ne,collisionRect:null,collisions:null,droppableRects:Te,draggableNodes:Y,draggingNode:null,draggingNodeRect:null,droppableContainers:fe,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Oe=fe.getNodeFor((t=Ke.current.over)==null?void 0:t.id),ht=YH({measure:ge.dragOverlay.measure}),$e=(r=ht.nodeRef.current)!=null?r:Ne,it=N?(i=ht.rect)!=null?i:Ie:null,et=!!(ht.nodeRef.current&&ht.rect),st=FH(et?null:Ie),dt=U_($e?uf($e):null),Mt=BH(N?Oe??Ne:null),ot=UH(Mt),nt=jH(_,{transform:{x:K.x-st.x,y:K.y-st.y,scaleX:1,scaleY:1},activatorEvent:re,active:ne,activeNodeRect:Ie,containerNodeRect:ze,draggingNodeRect:it,over:Ke.current.over,overlayNodeRect:ht.rect,scrollableAncestors:Mt,scrollableAncestorRects:ot,windowRect:dt}),Ot=Me?m1(Me,K):null,Zt=zH(Mt),Rt=Gw(Zt),tn=Gw(Zt,[Ie]),Ft=m1(nt,Rt),yn=it?sH(it,nt):null,dn=ne&&yn?x({active:ne,collisionRect:yn,droppableRects:Te,droppableContainers:Q,pointerCoordinates:Ot}):null,nn=tH(dn,"id"),[Bt,on]=B.useState(null),Nn=et?nt:m1(nt,tn),Rn=oH(Nn,(o=Bt==null?void 0:Bt.rect)!=null?o:null,Ie),gn=B.useRef(null),Ue=B.useCallback((pn,un)=>{let{sensor:ft,options:kt}=un;if(ue.current==null)return;const Ct=Y.get(ue.current);if(!Ct)return;const zt=pn.nativeEvent,ln=new ft({active:ue.current,activeNode:Ct,event:zt,options:kt,context:Ke,onAbort(Lt){if(!Y.get(Lt))return;const{onDragAbort:bn}=be.current,xn={id:Lt};bn==null||bn(xn),P({type:"onDragAbort",event:xn})},onPending(Lt,en,bn,xn){if(!Y.get(Lt))return;const{onDragPending:mn}=be.current,Dn={id:Lt,constraint:en,initialCoordinates:bn,offset:xn};mn==null||mn(Dn),P({type:"onDragPending",event:Dn})},onStart(Lt){const en=ue.current;if(en==null)return;const bn=Y.get(en);if(!bn)return;const{onDragStart:xn}=be.current,Vt={activatorEvent:zt,active:{id:en,data:bn.data,rect:te}};su.unstable_batchedUpdates(()=>{xn==null||xn(Vt),G(Jd.Initializing),O({type:Fa.DragStart,initialCoordinates:Lt,active:en}),P({type:"onDragStart",event:Vt}),$(gn.current),de(zt)})},onMove(Lt){O({type:Fa.DragMove,coordinates:Lt})},onEnd:mt(Fa.DragEnd),onCancel:mt(Fa.DragCancel)});gn.current=ln;function mt(Lt){return async function(){const{active:bn,collisions:xn,over:Vt,scrollAdjustedTranslate:mn}=Ke.current;let Dn=null;if(bn&&mn){const{cancelDrop:cr}=be.current;Dn={activatorEvent:zt,active:bn,collisions:xn,delta:mn,over:Vt},Lt===Fa.DragEnd&&typeof cr=="function"&&await Promise.resolve(cr(Dn))&&(Lt=Fa.DragCancel)}ue.current=null,su.unstable_batchedUpdates(()=>{O({type:Lt}),G(Jd.Uninitialized),on(null),$(null),de(null),gn.current=null;const cr=Lt===Fa.DragEnd?"onDragEnd":"onDragCancel";if(Dn){const En=be.current[cr];En==null||En(Dn),P({type:cr,event:Dn})}})}}},[Y]),Ce=B.useCallback((pn,un)=>(ft,kt)=>{const Ct=ft.nativeEvent,zt=Y.get(kt);if(ue.current!==null||!zt||Ct.dndKit||Ct.defaultPrevented)return;const ln={active:zt};pn(ft,un.options,ln)===!0&&(Ct.dndKit={capturedBy:un.sensor},ue.current=kt,Ue(ft,un))},[Y,Ue]),Ze=LH(m,Ce);HH(m),ld(()=>{Ie&&H===Jd.Initializing&&G(Jd.Initialized)},[Ie,H]),B.useEffect(()=>{const{onDragMove:pn}=be.current,{active:un,activatorEvent:ft,collisions:kt,over:Ct}=Ke.current;if(!un||!ft)return;const zt={active:un,activatorEvent:ft,collisions:kt,delta:{x:Ft.x,y:Ft.y},over:Ct};su.unstable_batchedUpdates(()=>{pn==null||pn(zt),P({type:"onDragMove",event:zt})})},[Ft.x,Ft.y]),B.useEffect(()=>{const{active:pn,activatorEvent:un,collisions:ft,droppableContainers:kt,scrollAdjustedTranslate:Ct}=Ke.current;if(!pn||ue.current==null||!un||!Ct)return;const{onDragOver:zt}=be.current,ln=kt.get(nn),mt=ln&&ln.rect.current?{id:ln.id,rect:ln.rect.current,data:ln.data,disabled:ln.disabled}:null,Lt={active:pn,activatorEvent:un,collisions:ft,delta:{x:Ct.x,y:Ct.y},over:mt};su.unstable_batchedUpdates(()=>{on(mt),zt==null||zt(Lt),P({type:"onDragOver",event:Lt})})},[nn]),ld(()=>{Ke.current={activatorEvent:re,active:ne,activeNode:Ne,collisionRect:yn,collisions:dn,droppableRects:Te,draggableNodes:Y,draggingNode:$e,draggingNodeRect:it,droppableContainers:fe,over:Bt,scrollableAncestors:Mt,scrollAdjustedTranslate:Ft},te.current={initial:it,translated:yn}},[ne,Ne,dn,yn,Y,$e,it,Te,fe,Bt,Mt,Ft]),RH({...Be,delta:K,draggingRect:yn,pointerCoordinates:Ot,scrollableAncestors:Mt,scrollableAncestorRects:ot});const wt=B.useMemo(()=>({active:ne,activeNode:Ne,activeNodeRect:Ie,activatorEvent:re,collisions:dn,containerNodeRect:ze,dragOverlay:ht,draggableNodes:Y,droppableContainers:fe,droppableRects:Te,over:Bt,measureDroppableContainers:He,scrollableAncestors:Mt,scrollableAncestorRects:ot,measuringConfiguration:ge,measuringScheduled:xe,windowRect:dt}),[ne,Ne,Ie,re,dn,ze,ht,Y,fe,Te,Bt,He,Mt,ot,ge,xe,dt]),Kt=B.useMemo(()=>({activatorEvent:re,activators:Ze,active:ne,activeNodeRect:Ie,ariaDescribedById:{draggable:oe},dispatch:O,draggableNodes:Y,over:Bt,measureDroppableContainers:He}),[re,Ze,ne,Ie,O,oe,Y,Bt,He]);return B.createElement(L_.Provider,{value:z},B.createElement(Wv.Provider,{value:Kt},B.createElement(G_.Provider,{value:wt},B.createElement(Y_.Provider,{value:Rn},g)),B.createElement(qH,{disabled:(a==null?void 0:a.restoreFocus)===!1})),B.createElement(Qz,{...a,hiddenTextDescribedById:oe}));function Gt(){const pn=(se==null?void 0:se.autoScrollEnabled)===!1,un=typeof h=="object"?h.enabled===!1:h===!1,ft=N&&!pn&&!un;return typeof h=="object"?{...h,enabled:ft}:{enabled:ft}}}),nW=B.createContext(null),Vw="button",rW="Draggable";function iW(n){let{id:e,data:t,disabled:r=!1,attributes:i}=n;const o=Qp(rW),{activators:l,activatorEvent:a,active:h,activeNodeRect:g,ariaDescribedById:m,draggableNodes:x,over:w}=B.useContext(Wv),{role:_=Vw,roleDescription:E="draggable",tabIndex:R=0}=i??{},k=(h==null?void 0:h.id)===e,O=B.useContext(k?Y_:nW),[P,z]=bv(),[H,G]=bv(),N=WH(l,e),J=zp(t);ld(()=>(x.set(e,{id:e,key:o,node:P,activatorNode:H,data:J}),()=>{const K=x.get(e);K&&K.key===o&&x.delete(e)}),[x,e]);const Y=B.useMemo(()=>({role:_,tabIndex:R,"aria-disabled":r,"aria-pressed":k&&_===Vw?!0:void 0,"aria-roledescription":E,"aria-describedby":m.draggable}),[r,_,R,k,E,m.draggable]);return{active:h,activatorEvent:a,activeNodeRect:g,attributes:Y,isDragging:k,listeners:r?void 0:N,node:P,over:w,setNodeRef:z,setActivatorNodeRef:G,transform:O}}function oW(){return B.useContext(G_)}const lW="Droppable",sW={timeout:25};function aW(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:i}=n;const o=Qp(lW),{active:l,dispatch:a,over:h,measureDroppableContainers:g}=B.useContext(Wv),m=B.useRef({disabled:t}),x=B.useRef(!1),w=B.useRef(null),_=B.useRef(null),{disabled:E,updateMeasurementsFor:R,timeout:k}={...sW,...i},O=zp(R??r),P=B.useCallback(()=>{if(!x.current){x.current=!0;return}_.current!=null&&clearTimeout(_.current),_.current=setTimeout(()=>{g(Array.isArray(O.current)?O.current:[O.current]),_.current=null},k)},[k]),z=Hv({callback:P,disabled:E||!l}),H=B.useCallback((Y,K)=>{z&&(K&&(z.unobserve(K),x.current=!1),Y&&z.observe(Y))},[z]),[G,N]=bv(H),J=zp(e);return B.useEffect(()=>{!z||!G.current||(z.disconnect(),x.current=!1,z.observe(G.current))},[G,z]),B.useEffect(()=>(a({type:Fa.RegisterDroppable,element:{id:r,key:o,disabled:t,node:G,rect:w,data:J}}),()=>a({type:Fa.UnregisterDroppable,key:o,id:r})),[r]),B.useEffect(()=>{t!==m.current.disabled&&(a({type:Fa.SetDroppableDisabled,id:r,key:o,disabled:t}),m.current.disabled=t)},[r,o,t,a]),{active:l,rect:w,isOver:(h==null?void 0:h.id)===r,node:G,over:h,setNodeRef:N}}function V_(n,e,t){const r={...n};return e.top+n.y<=t.top?r.y=t.top-e.top:e.bottom+n.y>=t.top+t.height&&(r.y=t.top+t.height-e.bottom),e.left+n.x<=t.left?r.x=t.left-e.left:e.right+n.x>=t.left+t.width&&(r.x=t.left+t.width-e.right),r}const cW=n=>{let{containerNodeRect:e,draggingNodeRect:t,transform:r}=n;return!t||!e?r:V_(r,t,e)},uW=n=>{let{transform:e,draggingNodeRect:t,windowRect:r}=n;return!t||!r?e:V_(e,t,r)};function wv(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function fW(n,e){return n.reduce((t,r,i)=>{const o=e.get(r);return o&&(t[i]=o),t},Array(n.length))}function F0(n){return n!==null&&n>=0}function hW(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function dW(n){return typeof n=="boolean"?{draggable:n,droppable:n}:n}const Z_=n=>{let{rects:e,activeIndex:t,overIndex:r,index:i}=n;const o=wv(e,r,t),l=e[i],a=o[i];return!a||!l?null:{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}},B0={scaleX:1,scaleY:1},gW=n=>{var e;let{activeIndex:t,activeNodeRect:r,index:i,rects:o,overIndex:l}=n;const a=(e=o[t])!=null?e:r;if(!a)return null;if(i===t){const g=o[l];return g?{x:0,y:t<l?g.top+g.height-(a.top+a.height):g.top-a.top,...B0}:null}const h=pW(o,i,t);return i>t&&i<=l?{x:0,y:-a.height-h,...B0}:i<t&&i>=l?{x:0,y:a.height+h,...B0}:{x:0,y:0,...B0}};function pW(n,e,t){const r=n[e],i=n[e-1],o=n[e+1];return r?t<e?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const X_="Sortable",K_=B.createContext({activeIndex:-1,containerId:X_,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Z_,disabled:{draggable:!1,droppable:!1}});function vW(n){let{children:e,id:t,items:r,strategy:i=Z_,disabled:o=!1}=n;const{active:l,dragOverlay:a,droppableRects:h,over:g,measureDroppableContainers:m}=oW(),x=Qp(X_,t),w=a.rect!==null,_=B.useMemo(()=>r.map(N=>typeof N=="object"&&"id"in N?N.id:N),[r]),E=l!=null,R=l?_.indexOf(l.id):-1,k=g?_.indexOf(g.id):-1,O=B.useRef(_),P=!hW(_,O.current),z=k!==-1&&R===-1||P,H=dW(o);ld(()=>{P&&E&&m(_)},[P,_,E,m]),B.useEffect(()=>{O.current=_},[_]);const G=B.useMemo(()=>({activeIndex:R,containerId:x,disabled:H,disableTransforms:z,items:_,overIndex:k,useDragOverlay:w,sortedRects:fW(_,h),strategy:i}),[R,x,H.draggable,H.droppable,z,_,k,h,w,i]);return B.createElement(K_.Provider,{value:G},e)}const bW=n=>{let{id:e,items:t,activeIndex:r,overIndex:i}=n;return wv(t,r,i).indexOf(e)},yW=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:i,items:o,newIndex:l,previousItems:a,previousContainerId:h,transition:g}=n;return!g||!r||a!==o&&i===l?!1:t?!0:l!==i&&e===h},mW={duration:200,easing:"ease"},J_="transform",xW=Hp.Transition.toString({property:J_,duration:0,easing:"linear"}),wW={roleDescription:"sortable"};function CW(n){let{disabled:e,index:t,node:r,rect:i}=n;const[o,l]=B.useState(null),a=B.useRef(t);return ld(()=>{if(!e&&t!==a.current&&r.current){const h=i.current;if(h){const g=B1(r.current,{ignoreTransform:!0}),m={x:h.left-g.left,y:h.top-g.top,scaleX:h.width/g.width,scaleY:h.height/g.height};(m.x||m.y)&&l(m)}}t!==a.current&&(a.current=t)},[e,t,r,i]),B.useEffect(()=>{o&&l(null)},[o]),o}function _W(n){let{animateLayoutChanges:e=yW,attributes:t,disabled:r,data:i,getNewIndex:o=bW,id:l,strategy:a,resizeObserverConfig:h,transition:g=mW}=n;const{items:m,containerId:x,activeIndex:w,disabled:_,disableTransforms:E,sortedRects:R,overIndex:k,useDragOverlay:O,strategy:P}=B.useContext(K_),z=SW(r,_),H=m.indexOf(l),G=B.useMemo(()=>({sortable:{containerId:x,index:H,items:m},...i}),[x,i,H,m]),N=B.useMemo(()=>m.slice(m.indexOf(l)),[m,l]),{rect:J,node:Y,isOver:K,setNodeRef:fe}=aW({id:l,data:G,disabled:z.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...h}}),{active:X,activatorEvent:te,activeNodeRect:ne,attributes:ue,setNodeRef:se,listeners:$,isDragging:re,over:de,setActivatorNodeRef:be,transform:oe}=iW({id:l,data:G,attributes:{...wW,...t},disabled:z.draggable}),Q=Fz(fe,se),ge=!!X,Te=ge&&!E&&F0(w)&&F0(k),He=!O&&re,xe=He&&Te?oe:null,Me=Te?xe??(a??P)({rects:R,activeNodeRect:ne,activeIndex:w,overIndex:k,index:H}):null,Be=F0(w)&&F0(k)?o({id:l,items:m,activeIndex:w,overIndex:k}):H,ke=X==null?void 0:X.id,Ie=B.useRef({activeId:ke,items:m,newIndex:Be,containerId:x}),ze=m!==Ie.current.items,Ke=e({active:X,containerId:x,isDragging:re,isSorting:ge,id:l,index:H,items:m,newIndex:Ie.current.newIndex,previousItems:Ie.current.items,previousContainerId:Ie.current.containerId,transition:g,wasDragging:Ie.current.activeId!=null}),Oe=CW({disabled:!Ke,index:H,node:Y,rect:J});return B.useEffect(()=>{ge&&Ie.current.newIndex!==Be&&(Ie.current.newIndex=Be),x!==Ie.current.containerId&&(Ie.current.containerId=x),m!==Ie.current.items&&(Ie.current.items=m)},[ge,Be,x,m]),B.useEffect(()=>{if(ke===Ie.current.activeId)return;if(ke!=null&&Ie.current.activeId==null){Ie.current.activeId=ke;return}const $e=setTimeout(()=>{Ie.current.activeId=ke},50);return()=>clearTimeout($e)},[ke]),{active:X,activeIndex:w,attributes:ue,data:G,rect:J,index:H,newIndex:Be,items:m,isOver:K,isSorting:ge,isDragging:re,listeners:$,node:Y,overIndex:k,over:de,setNodeRef:Q,setActivatorNodeRef:be,setDroppableNodeRef:fe,setDraggableNodeRef:se,transform:Oe??Me,transition:ht()};function ht(){if(Oe||ze&&Ie.current.newIndex===H)return xW;if(!(He&&!t2(te)||!g)&&(ge||Ke))return Hp.Transition.toString({...g,property:J_})}}function SW(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}Eo.Down,Eo.Right,Eo.Up,Eo.Left;function Cv(n,e){Array.isArray(n)||(n=[n]);for(const t of n){if(e(t))return t;if(!t.children||t.children.length<1)continue;const r=Cv(t.children,e);if(r)return r}}function qp(n,e){Array.isArray(n)||(n=[n]);for(const t of n)e(t),!(!t.children||t.children.length<1)&&qp(t.children,e)}function Q_(n,e){Array.isArray(n)||(n=[n]);const t=[];return qp(n,(r,i)=>t.push(e(r,i))),t}function q_(n,e){Array.isArray(n)||(n=[n]);for(const t of n){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!q_(t.children,e))return!1}return!0}function EW(n,e){Array.isArray(n)||(n=[n]);const t=[];return qp(n,(r,i)=>{e(r,i)&&t.push(r)}),t}function TW(n){Array.isArray(n)||(n=[n]);let e=0;return qp(n,()=>e++),e}function AW(n,e,t,r){if(r(e,t))return null;Array.isArray(n)||(n=[n]);const i=Cv(n,l=>{var a;return(a=l.children)==null?void 0:a.some(h=>r(h,e))}),o=Cv(n,l=>{var a;return(a=l.children)==null?void 0:a.some(h=>r(h,t))});if(i===void 0&&o===void 0){const l=n.findIndex(h=>r(h,e)),a=n.findIndex(h=>r(h,t));return n.splice(l,1),n.splice(a,0,e),[...n]}else if(i!==void 0&&o!==void 0&&r(i,o)&&i.children){const l=i.children.findIndex(h=>r(h,e)),a=i.children.findIndex(h=>r(h,t));return l===void 0||a===void 0?null:(i.children.splice(l,1),i.children.splice(a,0,e),i.children=[...i.children],[...n])}return null}function RW(n,e,t){const r=[],i=[...e];for(;i.length>0;){const o=i.shift();if(o&&!r.find(l=>t(l,o))&&(r.push(o),!(!o.children||o.children.length<1)))for(const l of o.children)i.push(l)}return r}function IW(n,e,t){Array.isArray(n)||(n=[n]);const r=Q_(n,l=>l),i=[],o=[...e];for(;o.length>0;){const l=o.shift();if(!l||i.find(h=>t(h,l)))continue;i.push(l);const a=r.find(h=>{var g;return(g=h.children)==null?void 0:g.some(m=>t(m,l))});a&&o.push(a)}return i}const Qd={find:Cv,forEach:qp,map:Q_,every:q_,filter:EW,length:TW,replace:AW,descendants:RW,ancestors:IW},kW="_AWrap_1mpkv_1",MW="_AContainer_1mpkv_10",LW="_ATree_1mpkv_18",OW="_ATreeBody_1mpkv_30",PW="_TreeTopAddon_1mpkv_36",DW="_CoverBorder_1mpkv_46",NW="_InsertBorder_1mpkv_55",FW="_ATreeHeader_1mpkv_86",BW="_ATreeBodyHeader_1mpkv_92",zW="_ATreeBodyHeaderResources_1mpkv_102",HW="_ATreeItem_1mpkv_108",WW="_IsSelectUsed_1mpkv_124",UW="_IsSelected_1mpkv_127",GW="_IsSearchSelected_1mpkv_132",YW="_IsHovered_1mpkv_143",VW="_CheckBox_1mpkv_147",ZW="_Indents_1mpkv_159",XW="_ExpandIcon_1mpkv_166",KW="_Content_1mpkv_178",JW="_RightSticky_1mpkv_187",QW="_SearchInputWrap_1mpkv_196",qW="_SearchInput_1mpkv_196",jW="_RightAddon_1mpkv_208",$W="_RightAddonIcon_1mpkv_219",eU="_Loader_1mpkv_226",tU="_IsChildOfDragSource_1mpkv_231",Po={AWrap:kW,AContainer:MW,ATree:LW,ATreeBody:OW,TreeTopAddon:PW,CoverBorder:DW,InsertBorder:NW,ATreeHeader:FW,ATreeBodyHeader:BW,ATreeBodyHeaderResources:zW,ATreeItem:HW,IsSelectUsed:WW,IsSelected:UW,IsSearchSelected:GW,IsHovered:YW,CheckBox:VW,Indents:ZW,ExpandIcon:XW,Content:KW,RightSticky:JW,SearchInputWrap:QW,SearchInput:qW,RightAddon:jW,RightAddonIcon:$W,Loader:eU,IsChildOfDragSource:tU},nU=n=>{const{isEqual:e,item:t,itemId:r,selectDisabled:i,selectUnused:o,isParentDisabled:l,indents:a,extIndents:h,useExpand:g,useSelect:m,useSearch:x,showCheckbox:w,icons:_,iconWidth:E,isSelectMulti:R,isDraggable:k,isParentCheckHovered:O,hoverdItem:P,onMouseOver:z,onMouseLeave:H,ContentRenderer:G,TreeItemRenderer:N,RightStickyAddon:J,resources:Y,containerRef:K,TreeItemStyle:fe,TreeItemClassName:X,searchItemStyle:te,searchItemClassName:ne,height:ue,isDragSrcItem:se,isChildOfDragItem:$,getItemId:re,treeItemTooltip:de,treeItemTooltipDelay:be,treeItemTooltipDirection:oe,treeItemTooltipDistance:Q}=n,{children:ge}=B.useMemo(()=>t,[t]),[Te,He]=B.useMemo(()=>g,[g]),[xe,Ne]=B.useMemo(()=>m,[m]),[Me,Be]=B.useMemo(()=>x,[x]),ke=B.useMemo(()=>o?o(t):!1,[o,t]),Ie=B.useMemo(()=>!i||l?l:i(t),[i,l,t]),ze=B.useMemo(()=>Te.some(mt=>e(mt,t)),[Te,e,t]),Ke=B.useMemo(()=>!ge||ge.length<1?"noChild":ze?"expanded":"collapsed",[ge,ze]),Oe=B.useMemo(()=>Vr.getContent(_,n),[_,n]),ht=B.useMemo(()=>{const mt=Oe==null?void 0:Oe[Ke];return ym.includes(mt)?M.jsx(uo,{icon:mt,style:{width:E,height:E}}):mt},[Oe,E,Ke]),$e=B.useCallback(mt=>{!He||Ke==="noChild"||(He(ze?Te.filter(Lt=>!e(Lt,t)):[...Te,t]),mt.stopPropagation())},[He,Te,ze,t,e,Ke]),it=B.useMemo(()=>xe.some(mt=>e(mt,t)),[xe,e,t]),et=B.useCallback(()=>{!Ne||Ie||(Ne(R?it?xe.filter(mt=>!e(mt,t)):[...xe,t]:[t]),Me&&Be&&Me.items.some(mt=>e(mt,t))&&Be({...Me,item:t}))},[R,Ie,it,Me,Be,Ne,e,xe,t]),st=B.useMemo(()=>Me==null?void 0:Me.items.some(mt=>e(mt,t)),[Me,e,t]),dt=B.useMemo(()=>st&&(Me==null?void 0:Me.item)&&e(Me.item,t),[st,Me,e,t]),Mt=B.useRef(null),ot=B.useRef(null),{attributes:nt,listeners:Ot,setNodeRef:Zt,transform:Rt,transition:tn,isDragging:Ft}=_W({id:r||`item-${JSON.stringify(t)}`,disabled:!k||!!l||!r}),yn=B.useMemo(()=>$?$(t):!1,[$,t]),dn=B.useMemo(()=>{const mt=Rt?{transform:Hp.Transform.toString(Rt),transition:tn,opacity:Ft?.5:1,zIndex:Ft?1:"auto"}:{};return se||yn?{...mt,opacity:.5,zIndex:10}:mt},[Rt,tn,Ft,se,yn]);B.useEffect(()=>{r&&Zt&&ot.current&&Zt(ot.current)},[r,Zt]),B.useEffect(()=>{setTimeout(()=>{if(dt&&Mt.current&&K.current){const{top:mt,bottom:Lt}=Mt.current.getBoundingClientRect(),{top:en,bottom:bn}=K.current.getBoundingClientRect();(mt<en||Lt>bn)&&Mt.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[K,dt]);const[nn,Bt]=B.useState(!1),on=B.useCallback(()=>!Ie&&Bt(!0),[Ie]),Nn=B.useCallback(()=>!Ie&&Bt(!1),[Ie]),Rn=B.useMemo(()=>Qd.map(t,mt=>mt).filter(mt=>!(i!=null&&i(mt))&&!(o!=null&&o(mt))),[i,o,t]),gn=B.useMemo(()=>!w||!R?!1:it&&Rn.some(mt=>xe.some(Lt=>e(mt,Lt)))&&Rn.some(mt=>!xe.some(Lt=>e(mt,Lt))),[w,R,it,Rn,e,xe]),Ue=B.useMemo(()=>w?R?Rn.every(mt=>xe.some(Lt=>e(mt,Lt))):xe.some(mt=>e(mt,t)):!1,[w,R,Rn,t,e,xe]),Ce=B.useCallback(()=>{if(!(!Ne||Ie))if(R)if(it){const mt=xe.filter(Lt=>!(o!=null&&o(Lt))&&!(i!=null&&i(Lt))&&Rn.some(en=>e(en,Lt)));mt.length>0&&Ne(xe.filter(Lt=>!mt.some(en=>e(Lt,en))))}else{const mt=Rn.filter(Lt=>!(o!=null&&o(Lt))&&!(i!=null&&i(Lt))&&!xe.some(en=>e(en,Lt)));mt.length>0&&Ne([...xe,...mt])}else Ne([t])},[Ie,i,o,R,Ne,e,it,xe,Rn,t]),Ze=B.useCallback(mt=>{Ie||Ce(),mt.stopPropagation()},[Ie,Ce]),wt=B.useMemo(()=>{if(!w||!R||Ie)return"";if(it){const Lt=xe.filter(en=>!(o!=null&&o(en))&&!(i!=null&&i(en))&&Rn.some(bn=>e(bn,en)));if(Lt.length>0)return Y["deselect n"](Lt.length)}const mt=Rn.filter(Lt=>!(o!=null&&o(Lt))&&!(i!=null&&i(Lt))&&!xe.some(en=>e(en,Lt)));return Y["select n"](mt.length)},[i,o,Y,Ie,w,R,it,Rn,e,xe]),Kt=B.useMemo(()=>Vr.getContent(J,n),[J,n]),Gt=B.useMemo(()=>Vr.getContent(fe,n),[n,fe]),pn=B.useMemo(()=>Vr.getContent(X,n),[n,X]),un=B.useMemo(()=>Vr.getContent(ne,n),[n,ne]),ft=B.useMemo(()=>Vr.getContent(te,n),[n,te]),kt=B.useMemo(()=>Vr.getContent(de,n),[n,de]),Ct=B.useMemo(()=>Vr.getContent(be,n),[n,be]),zt=B.useMemo(()=>Vr.getContent(oe,n),[n,oe]),ln=B.useMemo(()=>Vr.getContent(Q,n),[n,Q]);return M.jsxs(B.Fragment,{children:[M.jsxs(Wi,{abaseRef:ot,isDisabled:Ie,className:bt.clsx(Po.ATreeItem,it&&Po.IsSelected,!Ie&&(nn||O)&&Po.IsHovered,st&&Po.IsSearched,dt&&(un||Po.IsSearchSelected),!ke&&Po.IsSelectUsed,yn&&Po.IsChildOfDragSource,"NoSelect",pn),style:{...Gt,...dt&&ft?ft:{},"--ATreeItem_height":`${ue}px`,...dn||{}},onClick:et,onMouseLeave:mt=>H==null?void 0:H(mt,t),onMouseOver:mt=>z==null?void 0:z(mt,t),...k&&!Ie&&nt?nt:{},...k&&!Ie&&Ot?Ot:{},tooltip:kt,tooltipDelay:Ct,tooltipDirection:zt,tooltipDistance:ln,children:[w&&M.jsx(w1,{className:Po.CheckBox,isDisabled:Ie,isIndeterminate:gn,tooltip:wt,useCheck:[+Ue,Ce],style:{visibility:Ie||ke?"hidden":"visible",zIndex:Ie||ke?0:2},onClick:Ze,onMouseOut:Nn,onMouseOver:on}),M.jsx("div",{className:Po.Indents,style:{paddingLeft:w?0:Oe!=null&&Oe.noChild?12:0},children:a.map((mt,Lt)=>{const en=Lt===a.length-1;return M.jsx(N3,{value:mt,map:{Collapsed:h?h({iconWidth:E}).collapsed:M.jsx(iU,{iconWidth:E}),Expanded:h?h({iconWidth:E,isLast:en}).expanded:M.jsx(rU,{iconWidth:E,isLast:en}),IsLast:h?h({iconWidth:E}).isLast:M.jsx(oU,{iconWidth:E})}},Lt)})}),ht&&M.jsx("div",{className:Po.ExpandIcon,style:{width:E,minWidth:E,maxWidth:E},onClick:$e,children:ht}),M.jsx("div",{className:bt.clsx(Po.Content,"NoSelect"),children:M.jsx(G,{containerRef:K,ContentRenderer:G,extIndents:h,height:ue,hoverdItem:P,icons:_,iconWidth:E,indents:a,isDraggable:k,isEqual:e,isParentCheckHovered:R&&(nn||O),isSelectMulti:R,item:t,itemId:r,resources:Y,RightStickyAddon:J,searchItemClassName:un,searchItemStyle:te,showCheckbox:w,TreeItemClassName:X,TreeItemRenderer:N,TreeItemStyle:fe,treeItemTooltip:de,treeItemTooltipDelay:be,treeItemTooltipDirection:oe,treeItemTooltipDistance:Q,useExpand:g,useSearch:x,useSelect:m,onMouseLeave:H,onMouseOver:z})}),Kt&&M.jsx("div",{className:Po.RightSticky,children:Kt})]}),ze&&(ge==null?void 0:ge.map((mt,Lt)=>M.jsx(N,{containerRef:K,ContentRenderer:G,extIndents:h,height:ue,hoverdItem:P,icons:_,iconWidth:E,isChildOfDragItem:$,isDraggable:k,isDragSrcItem:se,isEqual:e,isParentCheckHovered:R&&(nn||O),isSelectMulti:R,item:mt,itemId:re?`${re(t)}-child-${Lt}`:r?`${r}-child-${Lt}`:void 0,resources:Y,RightStickyAddon:J,searchItemClassName:un,searchItemStyle:te,selectDisabled:i,selectUnused:o,showCheckbox:w,TreeItemClassName:X,TreeItemRenderer:N,TreeItemStyle:fe,treeItemTooltip:de,treeItemTooltipDelay:be,treeItemTooltipDirection:oe,treeItemTooltipDistance:Q,useExpand:g,useSearch:x,useSelect:m,indents:[...a.map(en=>en==="IsLast"?"Collapsed":en),Lt===ge.length-1?"IsLast":"Expanded"],onMouseLeave:H,onMouseOver:z},re?re(mt):Lt)))]})},rU=n=>{const e=Vn.c(9),{iconWidth:t,isLast:r}=n,i=t/8*3,o=t/2,l=t/8;let a;e[0]!==i||e[1]!==o||e[2]!==l?(a={width:i,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:o,marginRight:l,boxSizing:"border-box",transition:"border-color var(--Transition)"},e[0]=i,e[1]=o,e[2]=l,e[3]=a):a=e[3];let h;e[4]!==r?(h=r&&M.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}}),e[4]=r,e[5]=h):h=e[5];let g;return e[6]!==a||e[7]!==h?(g=M.jsx("div",{style:a,children:h}),e[6]=a,e[7]=h,e[8]=g):g=e[8],g},iU=n=>{const e=Vn.c(2),{iconWidth:t}=n;let r;return e[0]!==t?(r=M.jsx("div",{style:{width:t,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),e[0]=t,e[1]=r):r=e[1],r},oU=n=>{const e=Vn.c(4),{iconWidth:t}=n,r=t/8*3,i=t/2,o=t/8;let l;return e[0]!==r||e[1]!==i||e[2]!==o?(l=M.jsx("div",{style:{width:r,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:i,marginRight:o,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),e[0]=r,e[1]=i,e[2]=o,e[3]=l):l=e[3],l},lU=n=>{const e=Vn.c(26),{isEqual:t,searchResult:r,initSearch:i,searchUp:o,searchDown:l,searchEnter:a,isDisabled:h,isLoading:g,resources:m,maxLength:x,autoFocus:w}=n;let _;e[0]!==l||e[1]!==a||e[2]!==o?(_=K=>{K.key==="Enter"?a():K.key==="ArrowDown"?l():K.key==="ArrowUp"&&o(),K.preventDefault(),K.stopPropagation()},e[0]=l,e[1]=a,e[2]=o,e[3]=_):_=e[3];const E=_;let R;e[4]!==i?(R=K=>{i(K)},e[4]=i,e[5]=R):R=e[5];const k=R;let O;h||g?O=-1:O=void 0;const P=O,z=m["Search(Placeholder)"],H=(r==null?void 0:r.keyword)??"";let G;e[6]!==k||e[7]!==H?(G=[H,k],e[6]=k,e[7]=H,e[8]=G):G=e[8];let N;e[9]!==t||e[10]!==m||e[11]!==l||e[12]!==a||e[13]!==r||e[14]!==o?(N=M.jsx(sU,{isEqual:t,resources:m,searchDown:l,searchEnter:a,searchResult:r,searchUp:o}),e[9]=t,e[10]=m,e[11]=l,e[12]=a,e[13]=r,e[14]=o,e[15]=N):N=e[15];let J;e[16]===Symbol.for("react.memo_cache_sentinel")?(J={className:Po.SearchInputWrap},e[16]=J):J=e[16];let Y;return e[17]!==w||e[18]!==h||e[19]!==x||e[20]!==E||e[21]!==z||e[22]!==G||e[23]!==N||e[24]!==P?(Y=M.jsx(sg,{autoFocus:w,className:Po.SearchInput,isDisabled:h,maxLength:x,placeholder:z,tabIndex:P,useValue:G,RightAddon:N,wrapProps:J,onKeyDown:E}),e[17]=w,e[18]=h,e[19]=x,e[20]=E,e[21]=z,e[22]=G,e[23]=N,e[24]=P,e[25]=Y):Y=e[25],Y},sU=n=>{const e=Vn.c(22),{isEqual:t,searchResult:r,searchUp:i,searchDown:o,searchEnter:l,resources:a}=n;let h;if(!r||r.items.length<1)h=0;else{let Y;e[0]!==t||e[1]!==r.item?(Y=K=>r.item&&t(K,r.item),e[0]=t,e[1]=r.item,e[2]=Y):Y=e[2],h=r.items.findIndex(Y)+1}const g=h;let m;!r||r.items.length<1?m=0:m=r.items.length;const x=m;let w;g<2?w=!0:w=!1;const _=w;let E;g>=x?E=!0:E=!1;const R=E;let k;e[3]!==_||e[4]!==i?(k=Y=>{Y.stopPropagation(),!_&&i()},e[3]=_,e[4]=i,e[5]=k):k=e[5];const O=k;let P;e[6]!==R||e[7]!==o?(P=Y=>{Y.stopPropagation(),!R&&o()},e[6]=R,e[7]=o,e[8]=P):P=e[8];const z=P;let H;e[9]!==l?(H=Y=>{Y.stopPropagation(),l()},e[9]=l,e[10]=H):H=e[10];const G=H;let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=bt.clsx(Po.RightAddon,"NoSelect"),e[11]=N):N=e[11];let J;return e[12]!==R||e[13]!==_||e[14]!==x||e[15]!==z||e[16]!==G||e[17]!==O||e[18]!==g||e[19]!==a||e[20]!==r?(J=M.jsx("div",{className:N,children:r?M.jsxs(M.Fragment,{children:[g,"/",x,M.jsx(Wi,{isDisabled:_,onClick:O,children:M.jsx(uo,{className:Po.RightAddonIcon,icon:"ArrowUp",mask:""})}),M.jsx(Wi,{isDisabled:R,onClick:z,children:M.jsx(uo,{className:Po.RightAddonIcon,icon:"ArrowDown"})})]}):M.jsx(Ba,{className:Po.RightAddonIcon,icon:"Search",style:{marginRight:4},tooltip:a["Search(Button)"],type:"Raw",onClick:G})}),e[12]=R,e[13]=_,e[14]=x,e[15]=z,e[16]=G,e[17]=O,e[18]=g,e[19]=a,e[20]=r,e[21]=J):J=e[21],J},aU=n=>{var Ln;const{pk:e,selectDisabled:t,selectUnused:r,useItems:i,useExpand:o,useSelect:l,useSearch:a,showCheckbox:h,iconWidth:g=24,icons:m={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:x,isSelectMulti:w=!1,noSearch:_=!1,isDraggable:E,noSyncSearchSelect:R=!1,actionRef:k,placeholder:O,searchPredicate:P=uU,isDisabled:z,isLoading:H,ContentRenderer:G=cU,TreeItemRenderer:N=nU,RightStickyAddon:J,TopRightAddon:Y,TreeTopAddon:K,resources:fe,maxLength:X,autoFocus:te,TreeHeaderStyle:ne,TreeHeaderClassName:ue,TreeItemStyle:se,TreeItemClassName:$,OverflowPadding:re,insertBorder:de,width:be,searchItemClassName:oe,searchItemStyle:Q,height:ge=40,treeItemTooltip:Te,treeItemTooltipDelay:He,treeItemTooltipDirection:xe,treeItemTooltipDistance:Ne,...Me}=n,Be=B.useMemo(()=>({...Nr.ATree,...fe}),[fe]),ke=B.useCallback((je,qt)=>!je||!qt?!1:e!==void 0?Array.isArray(e)?e.every(rn=>je&&qt&&je[rn]!==void 0&&qt[rn]!==void 0&&fh.isEqual(je[rn],qt[rn])):je&&qt&&je[e]!==void 0&&qt[e]!==void 0&&fh.isEqual(je[e],qt[e]):fh.isEqual(je,qt),[e]),Ie=B.useRef(null),[ze,Ke]=Do(i,[]),Oe=B.useMemo(()=>Qd.map(ze,je=>je),[ze]),[ht,$e]=Do(o,[]),[it,et]=Do(l,[]),[st,dt]=Do(a,void 0),Mt=B.useCallback(je=>{if(z||!$e||ht.some(zn=>ke(zn,je)))return;const qt=[];let rn=je;for(;rn;){const zn=rn;ht.find($n=>ke($n,zn))||qt.push(zn),rn=Oe.find($n=>{var kn;return(kn=$n.children)==null?void 0:kn.some(Tt=>ke(Tt,zn))})}$e([...ht,...qt])},[ht,z,ke,$e,Oe]),ot=B.useCallback(()=>{!$e||z||$e([...Oe])},[Oe,z,$e]),nt=B.useCallback(()=>{!$e||z||$e([])},[$e,z]),Ot=B.useCallback(je=>{!et||z||r!=null&&r(je)||(et([je]),Mt(je))},[et,z,r,Mt]),Zt=B.useCallback(je=>{if(!dt||z)return;if(!je||_){dt(void 0),R||et==null||et([]);return}const qt=Qd.filter(ze,zn=>P(je,zn));let rn;if(qt.find(zn=>(st==null?void 0:st.item)&&ke(zn,st.item))?rn=st==null?void 0:st.item:qt.length>0&&(rn=qt[0]),dt({keyword:je,items:qt,item:rn}),rn&&Mt(rn),et&&!R)if(w)et(qt);else{const zn=qt.find($n=>rn&&ke($n,rn));et(zn?[zn]:[])}},[ze,z,ke,P,dt,et,Mt,R,_,w,st]),Rt=B.useRef(!1);B.useEffect(()=>{Rt.current=!0},[ze]),B.useEffect(()=>{st&&Rt.current&&(Zt(st.keyword),Rt.current=!1)},[Zt,st]);const tn=B.useCallback(()=>{if(!st||!dt||z)return;let je=st.items.findIndex(qt=>st.item&&ke(qt,st.item))-1;je<0||(dt({...st,item:st.items[je]}),Mt(st.items[je]),R||Ot(st.items[je]))},[st,Mt,dt,z,Ot,ke,R]),Ft=B.useCallback(()=>{if(!st||!dt||z)return;let je=st.items.findIndex(qt=>st.item&&ke(qt,st.item))+1;je>=st.items.length||(dt({...st,item:st.items[je]}),Mt(st.items[je]),R||Ot(st.items[je]))},[st,Mt,z,dt,Ot,ke,R]),yn=B.useCallback(()=>{if(!st||!dt||z)return;let je=st.items.findIndex(rn=>st.item&&ke(rn,st.item));if(!R||r!=null&&r(st.items[je])){Ft();return}if(it.some(rn=>st.item&&ke(rn,st.item))){let rn=je+1;const zn=st.items[rn];if(rn>=st.items.length)return;dt({...st,item:zn}),Ot(zn)}else Ot(st.items[je])},[st,dt,z,it,R,Ft,ke,Ot,r]),[dn,nn]=B.useState(!1),Bt=B.useCallback(()=>nn(!0),[]),on=B.useCallback(()=>nn(!1),[]),Nn=B.useMemo(()=>r?Qd.map(ze,je=>je).filter(je=>!r(je)):t?Qd.map(ze,je=>je).filter(je=>!t(je)):Qd.map(ze,je=>je),[r,t,ze]),Rn=B.useMemo(()=>!h||!w?!1:it.length>0&&Nn.length>it.length,[h,w,it,Nn]),gn=B.useMemo(()=>!h||!w?!1:it.length>0&&Nn.length===it.length,[h,w,it,Nn]),Ue=B.useCallback(()=>{if(!et||!w||z)return;const je=it.filter(qt=>!(r!=null&&r(qt))&&!(t!=null&&t(qt))&&Nn.some(rn=>ke(rn,qt)));if(je.length>0)et(it.filter(qt=>!je.some(rn=>ke(qt,rn))));else{const qt=Nn.filter(rn=>!(r!=null&&r(rn))&&!(t!=null&&t(rn))&&!it.some(zn=>ke(zn,rn)));qt.length>0&&et([...it,...qt])}},[w,z,r,t,et,it,Nn,ke]),Ce=B.useMemo(()=>{if(!h||!w||z)return"";const je=it.filter(qt=>!(r!=null&&r(qt))&&!(t!=null&&t(qt))&&Nn.some(rn=>ke(rn,qt)));if(je.length>0)return Be["deselect n"](je.length);{const qt=Nn.filter(rn=>!(r!=null&&r(rn))&&!(t!=null&&t(rn))&&!it.some(zn=>ke(zn,rn)));return Be["select n"](qt.length)}},[r,t,z,Be,h,w,Nn,it,ke]),[Ze,wt]=B.useState(),Kt=qz(Pw(l2,{activationConstraint:{distance:8}}),Pw(i2)),Gt=B.useRef(new Map),pn=B.useCallback(je=>{if(!Gt.current.has(je)){const qt=`item_${fh.uniqueId()}`;Gt.current.set(je,qt)}return Gt.current.get(je)},[]),un=B.useCallback(je=>Oe.find(qt=>pn(qt)===je),[Oe,pn]),ft=B.useCallback(je=>!Ze||!Ze.children?!1:Ze.children.some(rn=>ke(rn,je))?!0:Ze.children.some(rn=>rn.children?Qd.find(rn,zn=>ke(zn,je))!==void 0:!1),[Ze,ke]),kt=B.useCallback(je=>{if(!E||z)return;const qt=un(je.active.id);qt&&wt(qt)},[E,z,un]),Ct=B.useCallback((je,qt,rn,zn)=>{const $n=je.findIndex(Tt=>zn(Tt,qt)),kn=je.findIndex(Tt=>zn(Tt,rn));return $n!==-1&&kn!==-1?wv(je,$n,kn):je.map(Tt=>{if(!Tt.children)return Tt;const Se=Tt.children.findIndex(Et=>zn(Et,qt)),rt=Tt.children.findIndex(Et=>zn(Et,rn));return Se!==-1&&rt!==-1?{...Tt,children:wv(Tt.children,Se,rt)}:Tt.children?{...Tt,children:Ct(Tt.children,qt,rn,zn)}:Tt})},[]),zt=B.useCallback(je=>{!E||z||!Ze||!je.over||un(je.over.id)},[E,z,Ze,un]),ln=B.useCallback(je=>{if(!E||z||!Ke||!Ze||!je.over)return;const qt=un(je.over.id);if(!qt||ke(Ze,qt)){wt(void 0);return}const rn=Ct(ze,Ze,qt,ke);Ke(rn),wt(void 0)},[E,z,Ke,Ze,un,ke,ze,Ct]),mt=B.useMemo(()=>ze.map(je=>pn(je)),[ze,pn]);B.useEffect(()=>{var je;h||(je=Ie.current)==null||je.scrollTo(0,0)},[h,Ie]),B.useEffect(()=>{!w&&it.length>1&&(et==null||et([it[it.length-1]]))},[w,et,it]),B.useEffect(()=>{k&&(k.current={expandAll:ot,collapseAll:nt})},[k,ot,nt]),B.useEffect(()=>{if(!t||!et)return;const je=it.filter(qt=>!t(qt));it.length!==je.length&&et(je)},[t,it,et]),B.useEffect(()=>{if(!r||!et)return;const je=it.filter(qt=>!r(qt));it.length!==je.length&&et(je)},[r,it,et]),B.useEffect(()=>{dt&&dt(void 0)},[dt]);const[Lt,en]=B.useState(null),bn=B.useCallback((je,qt)=>{z||(je.stopPropagation(),je.preventDefault(),en(qt))},[z]),xn=B.useCallback((je,qt)=>{Lt===null||z||ke(qt,Lt)&&(je.stopPropagation(),je.preventDefault(),en(null))},[Lt,z,ke]),Vt=B.useRef(null),[mn,Dn]=B.useState(!1),[cr,En]=B.useState((Ln=Vt.current)==null?void 0:Ln.scrollHeight);return B.useEffect(()=>{if(ht.length<0)return;const je=Ie.current,qt=Vt.current,rn=je.clientHeight<qt.clientHeight;En(rn?qt.scrollHeight:je.clientHeight),Dn(rn)},[ht]),M.jsxs(Wi,{...Me,className:bt.clsx(Me.className,Po.AWrap),isDisabled:z,children:[(!_||Y)&&M.jsxs(Ml,{className:bt.clsx(Po.ATreeHeader,ue),style:ne,children:[!_&&M.jsx(lU,{autoFocus:te,initSearch:Zt,isDisabled:z,isEqual:ke,isLoading:H,maxLength:X,resources:Be,searchDown:Ft,searchEnter:yn,searchResult:st,searchUp:tn}),!_&&Y&&M.jsx(cs,{w:8}),Y]}),(!_||Y||h&&w||E)&&M.jsx(Am,{isLoading:H&&ze.length!==0}),(h&&w||E)&&M.jsxs("div",{className:bt.clsx(Po.ATreeBodyHeader,"NoSelect"),children:[h&&M.jsx(w1,{className:Po.CheckBox,isDisabled:z,isIndeterminate:Rn,tooltip:Ce,useCheck:[+gn,()=>Ue()],onMouseOut:on,onMouseOver:Bt}),Be.Items,M.jsx(zg,{}),M.jsxs("div",{className:bt.clsx(Po.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:mn?8:0},children:[M.jsx("span",{children:h&&Be["*Click row for single select"]}),M.jsx("span",{children:E&&Be["*Change order to row drag"]})]})]}),K&&M.jsx("div",{className:Po.TreeTopAddon,children:K}),M.jsx("div",{ref:Ie,className:bt.clsx(Me.className,Po.AContainer),children:M.jsxs("div",{className:Po.ATree,style:{minWidth:be||"fit-content",marginRight:re&&mn?8:0},children:[M.jsxs("div",{ref:Vt,className:Po.ATreeBody,children:[ze.length===0?H?M.jsx(fU,{text:Be["Loading Contents..."]}):O:null,M.jsx(tW,{collisionDetection:nH,modifiers:[cW,uW],sensors:Kt,measuring:{droppable:{strategy:M1.Always}},onDragEnd:ln,onDragOver:zt,onDragStart:kt,children:M.jsx(vW,{items:mt,strategy:gW,children:ze.map(je=>M.jsx(N,{containerRef:Ie,ContentRenderer:G,extIndents:x,getItemId:pn,height:ge,hoverdItem:Lt,icons:m,iconWidth:g,indents:[],isChildOfDragItem:ft,isDraggable:E,isDragSrcItem:ke(je,Ze),isEqual:ke,isParentCheckHovered:w&&dn,isParentDisabled:z,isSelectMulti:w,item:je,itemId:pn(je),resources:Be,RightStickyAddon:J,searchItemClassName:oe,searchItemStyle:Q,selectDisabled:t,selectUnused:r,showCheckbox:h,TreeItemClassName:$,TreeItemRenderer:N,TreeItemStyle:se,treeItemTooltip:Te,treeItemTooltipDelay:He,treeItemTooltipDirection:xe,treeItemTooltipDistance:Ne,useExpand:[ht,$e],useSearch:[st,dt],useSelect:[it,et],onMouseLeave:xn,onMouseOver:bn},pn(je)))})})]}),de&&M.jsxs(M.Fragment,{children:[M.jsx("div",{className:Po.CoverBorder}),M.jsx("div",{className:Po.InsertBorder,style:{"--InsertBorder_height":`${ge}px`,height:mn?cr:"100%"}})]})]})})]})},cU=n=>{const{item:e}=n,t={};return rr.keys(e).forEach(r=>{r!=="children"&&(t[r]=e[r])}),JSON.stringify(t)};function uU(n,e){return rr.some(e,(t,r)=>{var i;return(i=rr.stringify(r))==null?void 0:i.toLowerCase().includes(n.toLowerCase())})}const fU=n=>{const e=Vn.c(4),{text:t}=n;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=bt.clsx(Po.Loader,"NoSelect"),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=M.jsx(uo,{height:40,icon:"Spinner",style:{height:40},width:40}),e[1]=i):i=e[1];let o;return e[2]!==t?(o=M.jsxs(Ml,{className:r,children:[i,M.jsx(X3,{text:t})]}),e[2]=t,e[3]=o):o=e[3],o};var Bb,Zw;function z1(){return Zw||(Zw=1,Bb=TypeError),Bb}const hU={},dU=Object.freeze(Object.defineProperty({__proto__:null,default:hU},Symbol.toStringTag,{value:"Module"})),gU=RE(dU);var zb,Xw;function Uv(){if(Xw)return zb;Xw=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,r=n&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&o&&typeof o.get=="function"?o.get:null,a=i&&Set.prototype.forEach,h=typeof WeakMap=="function"&&WeakMap.prototype,g=h?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,x=m?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,_=w?WeakRef.prototype.deref:null,E=Boolean.prototype.valueOf,R=Object.prototype.toString,k=Function.prototype.toString,O=String.prototype.match,P=String.prototype.slice,z=String.prototype.replace,H=String.prototype.toUpperCase,G=String.prototype.toLowerCase,N=RegExp.prototype.test,J=Array.prototype.concat,Y=Array.prototype.join,K=Array.prototype.slice,fe=Math.floor,X=typeof BigInt=="function"?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ue=typeof Symbol=="function"&&typeof Symbol.iterator=="object",se=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ue||!0)?Symbol.toStringTag:null,$=Object.prototype.propertyIsEnumerable,re=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Ue){return Ue.__proto__}:null);function de(Ue,Ce){if(Ue===1/0||Ue===-1/0||Ue!==Ue||Ue&&Ue>-1e3&&Ue<1e3||N.call(/e/,Ce))return Ce;var Ze=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Ue=="number"){var wt=Ue<0?-fe(-Ue):fe(Ue);if(wt!==Ue){var Kt=String(wt),Gt=P.call(Ce,Kt.length+1);return z.call(Kt,Ze,"$&_")+"."+z.call(z.call(Gt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return z.call(Ce,Ze,"$&_")}var be=gU,oe=be.custom,Q=ht(oe)?oe:null,ge={__proto__:null,double:'"',single:"'"},Te={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};zb=function Ue(Ce,Ze,wt,Kt){var Gt=Ze||{};if(et(Gt,"quoteStyle")&&!et(ge,Gt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(et(Gt,"maxStringLength")&&(typeof Gt.maxStringLength=="number"?Gt.maxStringLength<0&&Gt.maxStringLength!==1/0:Gt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var pn=et(Gt,"customInspect")?Gt.customInspect:!0;if(typeof pn!="boolean"&&pn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(et(Gt,"indent")&&Gt.indent!==null&&Gt.indent!==" "&&!(parseInt(Gt.indent,10)===Gt.indent&&Gt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(et(Gt,"numericSeparator")&&typeof Gt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var un=Gt.numericSeparator;if(typeof Ce>"u")return"undefined";if(Ce===null)return"null";if(typeof Ce=="boolean")return Ce?"true":"false";if(typeof Ce=="string")return Ft(Ce,Gt);if(typeof Ce=="number"){if(Ce===0)return 1/0/Ce>0?"0":"-0";var ft=String(Ce);return un?de(Ce,ft):ft}if(typeof Ce=="bigint"){var kt=String(Ce)+"n";return un?de(Ce,kt):kt}var Ct=typeof Gt.depth>"u"?5:Gt.depth;if(typeof wt>"u"&&(wt=0),wt>=Ct&&Ct>0&&typeof Ce=="object")return Me(Ce)?"[Array]":"[Object]";var zt=Nn(Gt,wt);if(typeof Kt>"u")Kt=[];else if(Mt(Kt,Ce)>=0)return"[Circular]";function ln(kn,Tt,Se){if(Tt&&(Kt=K.call(Kt),Kt.push(Tt)),Se){var rt={depth:Gt.depth};return et(Gt,"quoteStyle")&&(rt.quoteStyle=Gt.quoteStyle),Ue(kn,rt,wt+1,Kt)}return Ue(kn,Gt,wt+1,Kt)}if(typeof Ce=="function"&&!ke(Ce)){var mt=dt(Ce),Lt=gn(Ce,ln);return"[Function"+(mt?": "+mt:" (anonymous)")+"]"+(Lt.length>0?" { "+Y.call(Lt,", ")+" }":"")}if(ht(Ce)){var en=ue?z.call(String(Ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):ne.call(Ce);return typeof Ce=="object"&&!ue?dn(en):en}if(tn(Ce)){for(var bn="<"+G.call(String(Ce.nodeName)),xn=Ce.attributes||[],Vt=0;Vt<xn.length;Vt++)bn+=" "+xn[Vt].name+"="+He(xe(xn[Vt].value),"double",Gt);return bn+=">",Ce.childNodes&&Ce.childNodes.length&&(bn+="..."),bn+="</"+G.call(String(Ce.nodeName))+">",bn}if(Me(Ce)){if(Ce.length===0)return"[]";var mn=gn(Ce,ln);return zt&&!on(mn)?"["+Rn(mn,zt)+"]":"[ "+Y.call(mn,", ")+" ]"}if(Ie(Ce)){var Dn=gn(Ce,ln);return!("cause"in Error.prototype)&&"cause"in Ce&&!$.call(Ce,"cause")?"{ ["+String(Ce)+"] "+Y.call(J.call("[cause]: "+ln(Ce.cause),Dn),", ")+" }":Dn.length===0?"["+String(Ce)+"]":"{ ["+String(Ce)+"] "+Y.call(Dn,", ")+" }"}if(typeof Ce=="object"&&pn){if(Q&&typeof Ce[Q]=="function"&&be)return be(Ce,{depth:Ct-wt});if(pn!=="symbol"&&typeof Ce.inspect=="function")return Ce.inspect()}if(ot(Ce)){var cr=[];return r&&r.call(Ce,function(kn,Tt){cr.push(ln(Tt,Ce,!0)+" => "+ln(kn,Ce))}),Bt("Map",t.call(Ce),cr,zt)}if(Zt(Ce)){var En=[];return a&&a.call(Ce,function(kn){En.push(ln(kn,Ce))}),Bt("Set",l.call(Ce),En,zt)}if(nt(Ce))return nn("WeakMap");if(Rt(Ce))return nn("WeakSet");if(Ot(Ce))return nn("WeakRef");if(Ke(Ce))return dn(ln(Number(Ce)));if($e(Ce))return dn(ln(X.call(Ce)));if(Oe(Ce))return dn(E.call(Ce));if(ze(Ce))return dn(ln(String(Ce)));if(typeof window<"u"&&Ce===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Ce===globalThis||typeof jh<"u"&&Ce===jh)return"{ [object globalThis] }";if(!Be(Ce)&&!ke(Ce)){var Ln=gn(Ce,ln),je=re?re(Ce)===Object.prototype:Ce instanceof Object||Ce.constructor===Object,qt=Ce instanceof Object?"":"null prototype",rn=!je&&se&&Object(Ce)===Ce&&se in Ce?P.call(st(Ce),8,-1):qt?"Object":"",zn=je||typeof Ce.constructor!="function"?"":Ce.constructor.name?Ce.constructor.name+" ":"",$n=zn+(rn||qt?"["+Y.call(J.call([],rn||[],qt||[]),": ")+"] ":"");return Ln.length===0?$n+"{}":zt?$n+"{"+Rn(Ln,zt)+"}":$n+"{ "+Y.call(Ln,", ")+" }"}return String(Ce)};function He(Ue,Ce,Ze){var wt=Ze.quoteStyle||Ce,Kt=ge[wt];return Kt+Ue+Kt}function xe(Ue){return z.call(String(Ue),/"/g,""")}function Ne(Ue){return!se||!(typeof Ue=="object"&&(se in Ue||typeof Ue[se]<"u"))}function Me(Ue){return st(Ue)==="[object Array]"&&Ne(Ue)}function Be(Ue){return st(Ue)==="[object Date]"&&Ne(Ue)}function ke(Ue){return st(Ue)==="[object RegExp]"&&Ne(Ue)}function Ie(Ue){return st(Ue)==="[object Error]"&&Ne(Ue)}function ze(Ue){return st(Ue)==="[object String]"&&Ne(Ue)}function Ke(Ue){return st(Ue)==="[object Number]"&&Ne(Ue)}function Oe(Ue){return st(Ue)==="[object Boolean]"&&Ne(Ue)}function ht(Ue){if(ue)return Ue&&typeof Ue=="object"&&Ue instanceof Symbol;if(typeof Ue=="symbol")return!0;if(!Ue||typeof Ue!="object"||!ne)return!1;try{return ne.call(Ue),!0}catch{}return!1}function $e(Ue){if(!Ue||typeof Ue!="object"||!X)return!1;try{return X.call(Ue),!0}catch{}return!1}var it=Object.prototype.hasOwnProperty||function(Ue){return Ue in this};function et(Ue,Ce){return it.call(Ue,Ce)}function st(Ue){return R.call(Ue)}function dt(Ue){if(Ue.name)return Ue.name;var Ce=O.call(k.call(Ue),/^function\s*([\w$]+)/);return Ce?Ce[1]:null}function Mt(Ue,Ce){if(Ue.indexOf)return Ue.indexOf(Ce);for(var Ze=0,wt=Ue.length;Ze<wt;Ze++)if(Ue[Ze]===Ce)return Ze;return-1}function ot(Ue){if(!t||!Ue||typeof Ue!="object")return!1;try{t.call(Ue);try{l.call(Ue)}catch{return!0}return Ue instanceof Map}catch{}return!1}function nt(Ue){if(!g||!Ue||typeof Ue!="object")return!1;try{g.call(Ue,g);try{x.call(Ue,x)}catch{return!0}return Ue instanceof WeakMap}catch{}return!1}function Ot(Ue){if(!_||!Ue||typeof Ue!="object")return!1;try{return _.call(Ue),!0}catch{}return!1}function Zt(Ue){if(!l||!Ue||typeof Ue!="object")return!1;try{l.call(Ue);try{t.call(Ue)}catch{return!0}return Ue instanceof Set}catch{}return!1}function Rt(Ue){if(!x||!Ue||typeof Ue!="object")return!1;try{x.call(Ue,x);try{g.call(Ue,g)}catch{return!0}return Ue instanceof WeakSet}catch{}return!1}function tn(Ue){return!Ue||typeof Ue!="object"?!1:typeof HTMLElement<"u"&&Ue instanceof HTMLElement?!0:typeof Ue.nodeName=="string"&&typeof Ue.getAttribute=="function"}function Ft(Ue,Ce){if(Ue.length>Ce.maxStringLength){var Ze=Ue.length-Ce.maxStringLength,wt="... "+Ze+" more character"+(Ze>1?"s":"");return Ft(P.call(Ue,0,Ce.maxStringLength),Ce)+wt}var Kt=Te[Ce.quoteStyle||"single"];Kt.lastIndex=0;var Gt=z.call(z.call(Ue,Kt,"\\$1"),/[\x00-\x1f]/g,yn);return He(Gt,"single",Ce)}function yn(Ue){var Ce=Ue.charCodeAt(0),Ze={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ce];return Ze?"\\"+Ze:"\\x"+(Ce<16?"0":"")+H.call(Ce.toString(16))}function dn(Ue){return"Object("+Ue+")"}function nn(Ue){return Ue+" { ? }"}function Bt(Ue,Ce,Ze,wt){var Kt=wt?Rn(Ze,wt):Y.call(Ze,", ");return Ue+" ("+Ce+") {"+Kt+"}"}function on(Ue){for(var Ce=0;Ce<Ue.length;Ce++)if(Mt(Ue[Ce],`
|
|
484
|
+
`},Jz={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Qz(n){let{announcements:e=Jz,container:t,hiddenTextDescribedById:r,screenReaderInstructions:i=Kz}=n;const{announce:o,announcement:l}=Vz(),a=Qp("DndLiveRegion"),[h,g]=B.useState(!1);if(B.useEffect(()=>{g(!0)},[]),Zz(B.useMemo(()=>({onDragStart(x){let{active:w}=x;o(e.onDragStart({active:w}))},onDragMove(x){let{active:w,over:_}=x;e.onDragMove&&o(e.onDragMove({active:w,over:_}))},onDragOver(x){let{active:w,over:_}=x;o(e.onDragOver({active:w,over:_}))},onDragEnd(x){let{active:w,over:_}=x;o(e.onDragEnd({active:w,over:_}))},onDragCancel(x){let{active:w,over:_}=x;o(e.onDragCancel({active:w,over:_}))}}),[o,e])),!h)return null;const m=B.createElement(B.Fragment,null,B.createElement(Gz,{id:r,value:i.draggable}),B.createElement(Yz,{id:a,announcement:l}));return t?su.createPortal(m,t):m}var Fa;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Fa||(Fa={}));function mv(){}function Pw(n,e){return B.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function qz(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return B.useMemo(()=>[...e].filter(r=>r!=null),[...e])}const Bh=Object.freeze({x:0,y:0});function jz(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function $z(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function eH(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function tH(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function Dw(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const nH=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const i=Dw(e,e.left,e.top),o=[];for(const l of r){const{id:a}=l,h=t.get(a);if(h){const g=jz(Dw(h),i);o.push({id:a,data:{droppableContainer:l,value:g}})}}return o.sort($z)};function rH(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),i=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),l=i-r,a=o-t;if(r<i&&t<o){const h=e.width*e.height,g=n.width*n.height,m=l*a,x=m/(h+g-m);return Number(x.toFixed(4))}return 0}const iH=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const i=[];for(const o of r){const{id:l}=o,a=t.get(l);if(a){const h=rH(a,e);h>0&&i.push({id:l,data:{droppableContainer:o,value:h}})}}return i.sort(eH)};function oH(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function O4(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Bh}function lH(n){return function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((l,a)=>({...l,top:l.top+n*a.y,bottom:l.bottom+n*a.y,left:l.left+n*a.x,right:l.right+n*a.x}),{...t})}}const sH=lH(1);function aH(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function cH(n,e,t){const r=aH(e);if(!r)return n;const{scaleX:i,scaleY:o,x:l,y:a}=r,h=n.left-l-(1-i)*parseFloat(t),g=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),m=i?n.width/i:n.width,x=o?n.height/o:n.height;return{width:m,height:x,top:g,right:h+m,bottom:g+x,left:h}}const uH={ignoreTransform:!1};function B1(n,e){e===void 0&&(e=uH);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:g,transformOrigin:m}=uf(n).getComputedStyle(n);g&&(t=cH(t,g,m))}const{top:r,left:i,width:o,height:l,bottom:a,right:h}=t;return{top:r,left:i,width:o,height:l,bottom:a,right:h}}function Nw(n){return B1(n,{ignoreTransform:!0})}function fH(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function hH(n,e){return e===void 0&&(e=uf(n).getComputedStyle(n)),e.position==="fixed"}function dH(n,e){e===void 0&&(e=uf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=e[i];return typeof o=="string"?t.test(o):!1})}function n2(n,e){const t=[];function r(i){if(e!=null&&t.length>=e||!i)return t;if($m(i)&&i.scrollingElement!=null&&!t.includes(i.scrollingElement))return t.push(i.scrollingElement),t;if(!Kp(i)||k4(i)||t.includes(i))return t;const o=uf(n).getComputedStyle(i);return i!==n&&dH(i,o)&&t.push(i),hH(i,o)?t:r(i.parentNode)}return n?r(n):t}function P4(n){const[e]=n2(n,1);return e??null}function Db(n){return!zv||!n?null:N1(n)?n:jm(n)?$m(n)||n===F1(n).scrollingElement?window:Kp(n)?n:null:null}function D4(n){return N1(n)?n.scrollX:n.scrollLeft}function N4(n){return N1(n)?n.scrollY:n.scrollTop}function hm(n){return{x:D4(n),y:N4(n)}}var oc;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(oc||(oc={}));function F4(n){return!zv||!n?!1:n===document.scrollingElement}function B4(n){const e={x:0,y:0},t=F4(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},i=n.scrollTop<=e.y,o=n.scrollLeft<=e.x,l=n.scrollTop>=r.y,a=n.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:l,isRight:a,maxScroll:r,minScroll:e}}const gH={x:.2,y:.2};function pH(n,e,t,r,i){let{top:o,left:l,right:a,bottom:h}=t;r===void 0&&(r=10),i===void 0&&(i=gH);const{isTop:g,isBottom:m,isLeft:x,isRight:w}=B4(n),_={x:0,y:0},E={x:0,y:0},R={height:e.height*i.y,width:e.width*i.x};return!g&&o<=e.top+R.height?(_.y=oc.Backward,E.y=r*Math.abs((e.top+R.height-o)/R.height)):!m&&h>=e.bottom-R.height&&(_.y=oc.Forward,E.y=r*Math.abs((e.bottom-R.height-h)/R.height)),!w&&a>=e.right-R.width?(_.x=oc.Forward,E.x=r*Math.abs((e.right-R.width-a)/R.width)):!x&&l<=e.left+R.width&&(_.x=oc.Backward,E.x=r*Math.abs((e.left+R.width-l)/R.width)),{direction:_,speed:E}}function vH(n){if(n===document.scrollingElement){const{innerWidth:o,innerHeight:l}=window;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}const{top:e,left:t,right:r,bottom:i}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:i,width:n.clientWidth,height:n.clientHeight}}function z4(n){return n.reduce((e,t)=>m1(e,hm(t)),Bh)}function bH(n){return n.reduce((e,t)=>e+D4(t),0)}function yH(n){return n.reduce((e,t)=>e+N4(t),0)}function mH(n,e){if(e===void 0&&(e=B1),!n)return;const{top:t,left:r,bottom:i,right:o}=e(n);P4(n)&&(i<=0||o<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const xH=[["x",["left","right"],bH],["y",["top","bottom"],yH]];class r2{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=n2(t),i=z4(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[o,l,a]of xH)for(const h of l)Object.defineProperty(this,h,{get:()=>{const g=a(r),m=i[o]-g;return this.rect[h]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class xp{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var i;(i=this.target)==null||i.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function wH(n){const{EventTarget:e}=uf(n);return n instanceof e?n:F1(n)}function Nb(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var hh;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(hh||(hh={}));function Fw(n){n.preventDefault()}function CH(n){n.stopPropagation()}var Eo;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter",n.Tab="Tab"})(Eo||(Eo={}));const H4={start:[Eo.Space,Eo.Enter],cancel:[Eo.Esc],end:[Eo.Space,Eo.Enter,Eo.Tab]},_H=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case Eo.Right:return{...t,x:t.x+25};case Eo.Left:return{...t,x:t.x-25};case Eo.Down:return{...t,y:t.y+25};case Eo.Up:return{...t,y:t.y-25}}};class i2{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new xp(F1(t)),this.windowListeners=new xp(uf(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(hh.Resize,this.handleCancel),this.windowListeners.add(hh.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(hh.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&mH(r),t(Bh)}handleKeyDown(e){if(t2(e)){const{active:t,context:r,options:i}=this.props,{keyboardCodes:o=H4,coordinateGetter:l=_H,scrollBehavior:a="smooth"}=i,{code:h}=e;if(o.end.includes(h)){this.handleEnd(e);return}if(o.cancel.includes(h)){this.handleCancel(e);return}const{collisionRect:g}=r.current,m=g?{x:g.left,y:g.top}:Bh;this.referenceCoordinates||(this.referenceCoordinates=m);const x=l(e,{active:t,context:r.current,currentCoordinates:m});if(x){const w=yv(x,m),_={x:0,y:0},{scrollableAncestors:E}=r.current;for(const R of E){const k=e.code,{isTop:O,isRight:P,isLeft:z,isBottom:H,maxScroll:G,minScroll:N}=B4(R),J=vH(R),Y={x:Math.min(k===Eo.Right?J.right-J.width/2:J.right,Math.max(k===Eo.Right?J.left:J.left+J.width/2,x.x)),y:Math.min(k===Eo.Down?J.bottom-J.height/2:J.bottom,Math.max(k===Eo.Down?J.top:J.top+J.height/2,x.y))},K=k===Eo.Right&&!P||k===Eo.Left&&!z,fe=k===Eo.Down&&!H||k===Eo.Up&&!O;if(K&&Y.x!==x.x){const X=R.scrollLeft+w.x,te=k===Eo.Right&&X<=G.x||k===Eo.Left&&X>=N.x;if(te&&!w.y){R.scrollTo({left:X,behavior:a});return}te?_.x=R.scrollLeft-X:_.x=k===Eo.Right?R.scrollLeft-G.x:R.scrollLeft-N.x,_.x&&R.scrollBy({left:-_.x,behavior:a});break}else if(fe&&Y.y!==x.y){const X=R.scrollTop+w.y,te=k===Eo.Down&&X<=G.y||k===Eo.Up&&X>=N.y;if(te&&!w.x){R.scrollTo({top:X,behavior:a});return}te?_.y=R.scrollTop-X:_.y=k===Eo.Down?R.scrollTop-G.y:R.scrollTop-N.y,_.y&&R.scrollBy({top:-_.y,behavior:a});break}}this.handleMove(e,m1(yv(x,this.referenceCoordinates),_))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}i2.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=H4,onActivation:i}=e,{active:o}=t;const{code:l}=n.nativeEvent;if(r.start.includes(l)){const a=o.activatorNode.current;return a&&n.target!==a?!1:(n.preventDefault(),i==null||i({event:n.nativeEvent}),!0)}return!1}}];function Bw(n){return!!(n&&"distance"in n)}function zw(n){return!!(n&&"delay"in n)}class o2{constructor(e,t,r){var i;r===void 0&&(r=wH(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:l}=o;this.props=e,this.events=t,this.document=F1(l),this.documentListeners=new xp(this.document),this.listeners=new xp(r),this.windowListeners=new xp(uf(l)),this.initialCoordinates=(i=fm(o))!=null?i:Bh,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(hh.Resize,this.handleCancel),this.windowListeners.add(hh.DragStart,Fw),this.windowListeners.add(hh.VisibilityChange,this.handleCancel),this.windowListeners.add(hh.ContextMenu,Fw),this.documentListeners.add(hh.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(zw(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(Bw(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:r,onPending:i}=this.props;i(r,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(hh.Click,CH,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(hh.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:l,options:{activationConstraint:a}}=o;if(!i)return;const h=(t=fm(e))!=null?t:Bh,g=yv(i,h);if(!r&&a){if(Bw(a)){if(a.tolerance!=null&&Nb(g,a.tolerance))return this.handleCancel();if(Nb(g,a.distance))return this.handleStart()}if(zw(a)&&Nb(g,a.tolerance))return this.handleCancel();this.handlePending(a,g);return}e.cancelable&&e.preventDefault(),l(h)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Eo.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const SH={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class l2 extends o2{constructor(e){const{event:t}=e,r=F1(t.target);super(e,SH,r)}}l2.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EH={move:{name:"mousemove"},end:{name:"mouseup"}};var dm;(function(n){n[n.RightClick=2]="RightClick"})(dm||(dm={}));class TH extends o2{constructor(e){super(e,EH,F1(e.event.target))}}TH.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===dm.RightClick?!1:(r==null||r({event:t}),!0)}}];const Fb={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class AH extends o2{constructor(e){super(e,Fb)}static setup(){return window.addEventListener(Fb.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Fb.move.name,e)};function e(){}}}AH.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:i}=t;return i.length>1?!1:(r==null||r({event:t}),!0)}}];var wp;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(wp||(wp={}));var xv;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(xv||(xv={}));function RH(n){let{acceleration:e,activator:t=wp.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:l=5,order:a=xv.TreeOrder,pointerCoordinates:h,scrollableAncestors:g,scrollableAncestorRects:m,delta:x,threshold:w}=n;const _=kH({delta:x,disabled:!o}),[E,R]=Bz(),k=B.useRef({x:0,y:0}),O=B.useRef({x:0,y:0}),P=B.useMemo(()=>{switch(t){case wp.Pointer:return h?{top:h.y,bottom:h.y,left:h.x,right:h.x}:null;case wp.DraggableRect:return i}},[t,i,h]),z=B.useRef(null),H=B.useCallback(()=>{const N=z.current;if(!N)return;const J=k.current.x*O.current.x,Y=k.current.y*O.current.y;N.scrollBy(J,Y)},[]),G=B.useMemo(()=>a===xv.TreeOrder?[...g].reverse():g,[a,g]);B.useEffect(()=>{if(!o||!g.length||!P){R();return}for(const N of G){if((r==null?void 0:r(N))===!1)continue;const J=g.indexOf(N),Y=m[J];if(!Y)continue;const{direction:K,speed:fe}=pH(N,Y,P,e,w);for(const X of["x","y"])_[X][K[X]]||(fe[X]=0,K[X]=0);if(fe.x>0||fe.y>0){R(),z.current=N,E(H,l),k.current=fe,O.current=K;return}}k.current={x:0,y:0},O.current={x:0,y:0},R()},[e,H,r,R,o,l,JSON.stringify(P),JSON.stringify(_),E,g,G,m,JSON.stringify(w)])}const IH={x:{[oc.Backward]:!1,[oc.Forward]:!1},y:{[oc.Backward]:!1,[oc.Forward]:!1}};function kH(n){let{delta:e,disabled:t}=n;const r=um(e);return Jp(i=>{if(t||!r||!i)return IH;const o={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[oc.Backward]:i.x[oc.Backward]||o.x===-1,[oc.Forward]:i.x[oc.Forward]||o.x===1},y:{[oc.Backward]:i.y[oc.Backward]||o.y===-1,[oc.Forward]:i.y[oc.Forward]||o.y===1}}},[t,e,r])}function MH(n,e){const t=e!=null?n.get(e):void 0,r=t?t.node.current:null;return Jp(i=>{var o;return e==null?null:(o=r??i)!=null?o:null},[r,e])}function LH(n,e){return B.useMemo(()=>n.reduce((t,r)=>{const{sensor:i}=r,o=i.activators.map(l=>({eventName:l.eventName,handler:e(l.handler,r)}));return[...t,...o]},[]),[n,e])}var M1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(M1||(M1={}));var gm;(function(n){n.Optimized="optimized"})(gm||(gm={}));const Hw=new Map;function OH(n,e){let{dragging:t,dependencies:r,config:i}=e;const[o,l]=B.useState(null),{frequency:a,measure:h,strategy:g}=i,m=B.useRef(n),x=k(),w=zp(x),_=B.useCallback(function(O){O===void 0&&(O=[]),!w.current&&l(P=>P===null?O:P.concat(O.filter(z=>!P.includes(z))))},[w]),E=B.useRef(null),R=Jp(O=>{if(x&&!t)return Hw;if(!O||O===Hw||m.current!==n||o!=null){const P=new Map;for(let z of n){if(!z)continue;if(o&&o.length>0&&!o.includes(z.id)&&z.rect.current){P.set(z.id,z.rect.current);continue}const H=z.node.current,G=H?new r2(h(H),H):null;z.rect.current=G,G&&P.set(z.id,G)}return P}return O},[n,o,t,x,h]);return B.useEffect(()=>{m.current=n},[n]),B.useEffect(()=>{x||_()},[t,x]),B.useEffect(()=>{o&&o.length>0&&l(null)},[JSON.stringify(o)]),B.useEffect(()=>{x||typeof a!="number"||E.current!==null||(E.current=setTimeout(()=>{_(),E.current=null},a))},[a,x,_,...r]),{droppableRects:R,measureDroppableContainers:_,measuringScheduled:o!=null};function k(){switch(g){case M1.Always:return!1;case M1.BeforeDragging:return t;default:return!t}}}function W4(n,e){return Jp(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function PH(n,e){return W4(n,e)}function DH(n){let{callback:e,disabled:t}=n;const r=e2(e),i=B.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,t]);return B.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Hv(n){let{callback:e,disabled:t}=n;const r=e2(e),i=B.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[t]);return B.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function NH(n){return new r2(B1(n),n)}function Ww(n,e,t){e===void 0&&(e=NH);const[r,i]=B.useState(null);function o(){i(h=>{if(!n)return null;if(n.isConnected===!1){var g;return(g=h??t)!=null?g:null}const m=e(n);return JSON.stringify(h)===JSON.stringify(m)?h:m})}const l=DH({callback(h){if(n)for(const g of h){const{type:m,target:x}=g;if(m==="childList"&&x instanceof HTMLElement&&x.contains(n)){o();break}}}}),a=Hv({callback:o});return ld(()=>{o(),n?(a==null||a.observe(n),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),l==null||l.disconnect())},[n]),r}function FH(n){const e=W4(n);return O4(n,e)}const Uw=[];function BH(n){const e=B.useRef(n),t=Jp(r=>n?r&&r!==Uw&&n&&e.current&&n.parentNode===e.current.parentNode?r:n2(n):Uw,[n]);return B.useEffect(()=>{e.current=n},[n]),t}function zH(n){const[e,t]=B.useState(null),r=B.useRef(n),i=B.useCallback(o=>{const l=Db(o.target);l&&t(a=>a?(a.set(l,hm(l)),new Map(a)):null)},[]);return B.useEffect(()=>{const o=r.current;if(n!==o){l(o);const a=n.map(h=>{const g=Db(h);return g?(g.addEventListener("scroll",i,{passive:!0}),[g,hm(g)]):null}).filter(h=>h!=null);t(a.length?new Map(a):null),r.current=n}return()=>{l(n),l(o)};function l(a){a.forEach(h=>{const g=Db(h);g==null||g.removeEventListener("scroll",i)})}},[i,n]),B.useMemo(()=>n.length?e?Array.from(e.values()).reduce((o,l)=>m1(o,l),Bh):z4(n):Bh,[n,e])}function Gw(n,e){e===void 0&&(e=[]);const t=B.useRef(null);return B.useEffect(()=>{t.current=null},e),B.useEffect(()=>{const r=n!==Bh;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?yv(n,t.current):Bh}function HH(n){B.useEffect(()=>{if(!zv)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function WH(n,e){return B.useMemo(()=>n.reduce((t,r)=>{let{eventName:i,handler:o}=r;return t[i]=l=>{o(l,e)},t},{}),[n,e])}function U4(n){return B.useMemo(()=>n?fH(n):null,[n])}const Yw=[];function UH(n,e){e===void 0&&(e=B1);const[t]=n,r=U4(t?uf(t):null),[i,o]=B.useState(Yw);function l(){o(()=>n.length?n.map(h=>F4(h)?r:new r2(e(h),h)):Yw)}const a=Hv({callback:l});return ld(()=>{a==null||a.disconnect(),l(),n.forEach(h=>a==null?void 0:a.observe(h))},[n]),i}function GH(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return Kp(e)?e:n}function YH(n){let{measure:e}=n;const[t,r]=B.useState(null),i=B.useCallback(g=>{for(const{target:m}of g)if(Kp(m)){r(x=>{const w=e(m);return x?{...x,width:w.width,height:w.height}:w});break}},[e]),o=Hv({callback:i}),l=B.useCallback(g=>{const m=GH(g);o==null||o.disconnect(),m&&(o==null||o.observe(m)),r(m?e(m):null)},[e,o]),[a,h]=bv(l);return B.useMemo(()=>({nodeRef:a,rect:t,setRef:h}),[t,a,h])}const VH=[{sensor:l2,options:{}},{sensor:i2,options:{}}],ZH={current:{}},j0={draggable:{measure:Nw},droppable:{measure:Nw,strategy:M1.WhileDragging,frequency:gm.Optimized},dragOverlay:{measure:B1}};class Cp extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const XH={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Cp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:mv},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:j0,measureDroppableContainers:mv,windowRect:null,measuringScheduled:!1},KH={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:mv,draggableNodes:new Map,over:null,measureDroppableContainers:mv},Wv=B.createContext(KH),G4=B.createContext(XH);function JH(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Cp}}}function QH(n,e){switch(e.type){case Fa.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case Fa.DragMove:return n.draggable.active==null?n:{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}};case Fa.DragEnd:case Fa.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Fa.RegisterDroppable:{const{element:t}=e,{id:r}=t,i=new Cp(n.droppable.containers);return i.set(r,t),{...n,droppable:{...n.droppable,containers:i}}}case Fa.SetDroppableDisabled:{const{id:t,key:r,disabled:i}=e,o=n.droppable.containers.get(t);if(!o||r!==o.key)return n;const l=new Cp(n.droppable.containers);return l.set(t,{...o,disabled:i}),{...n,droppable:{...n.droppable,containers:l}}}case Fa.UnregisterDroppable:{const{id:t,key:r}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Cp(n.droppable.containers);return o.delete(t),{...n,droppable:{...n.droppable,containers:o}}}default:return n}}function qH(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:i}=B.useContext(Wv),o=um(r),l=um(t==null?void 0:t.id);return B.useEffect(()=>{if(!e&&!r&&o&&l!=null){if(!t2(o)||document.activeElement===o.target)return;const a=i.get(l);if(!a)return;const{activatorNode:h,node:g}=a;if(!h.current&&!g.current)return;requestAnimationFrame(()=>{for(const m of[h.current,g.current]){if(!m)continue;const x=Wz(m);if(x){x.focus();break}}})}},[r,e,i,l,o]),null}function jH(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((i,o)=>o({transform:i,...r}),t):t}function $H(n){return B.useMemo(()=>({draggable:{...j0.draggable,...n==null?void 0:n.draggable},droppable:{...j0.droppable,...n==null?void 0:n.droppable},dragOverlay:{...j0.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function eW(n){let{activeNode:e,measure:t,initialRect:r,config:i=!0}=n;const o=B.useRef(!1),{x:l,y:a}=typeof i=="boolean"?{x:i,y:i}:i;ld(()=>{if(!l&&!a||!e){o.current=!1;return}if(o.current||!r)return;const g=e==null?void 0:e.node.current;if(!g||g.isConnected===!1)return;const m=t(g),x=O4(m,r);if(l||(x.x=0),a||(x.y=0),o.current=!0,Math.abs(x.x)>0||Math.abs(x.y)>0){const w=P4(g);w&&w.scrollBy({top:x.y,left:x.x})}},[e,l,a,r,t])}const Y4=B.createContext({...Bh,scaleX:1,scaleY:1});var Jd;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(Jd||(Jd={}));const tW=B.memo(function(e){var t,r,i,o;let{id:l,accessibility:a,autoScroll:h=!0,children:g,sensors:m=VH,collisionDetection:x=iH,measuring:w,modifiers:_,...E}=e;const R=B.useReducer(QH,void 0,JH),[k,O]=R,[P,z]=Xz(),[H,G]=B.useState(Jd.Uninitialized),N=H===Jd.Initialized,{draggable:{active:J,nodes:Y,translate:K},droppable:{containers:fe}}=k,X=J!=null?Y.get(J):null,te=B.useRef({initial:null,translated:null}),ne=B.useMemo(()=>{var pn;return J!=null?{id:J,data:(pn=X==null?void 0:X.data)!=null?pn:ZH,rect:te}:null},[J,X]),ue=B.useRef(null),[se,$]=B.useState(null),[re,de]=B.useState(null),be=zp(E,Object.values(E)),oe=Qp("DndDescribedBy",l),Q=B.useMemo(()=>fe.getEnabled(),[fe]),ge=$H(w),{droppableRects:Te,measureDroppableContainers:He,measuringScheduled:xe}=OH(Q,{dragging:N,dependencies:[K.x,K.y],config:ge.droppable}),Ne=MH(Y,J),Me=B.useMemo(()=>re?fm(re):null,[re]),Be=Gt(),ke=PH(Ne,ge.draggable.measure);eW({activeNode:J!=null?Y.get(J):null,config:Be.layoutShiftCompensation,initialRect:ke,measure:ge.draggable.measure});const Ie=Ww(Ne,ge.draggable.measure,ke),ze=Ww(Ne?Ne.parentElement:null),Ke=B.useRef({activatorEvent:null,active:null,activeNode:Ne,collisionRect:null,collisions:null,droppableRects:Te,draggableNodes:Y,draggingNode:null,draggingNodeRect:null,droppableContainers:fe,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Oe=fe.getNodeFor((t=Ke.current.over)==null?void 0:t.id),ht=YH({measure:ge.dragOverlay.measure}),$e=(r=ht.nodeRef.current)!=null?r:Ne,it=N?(i=ht.rect)!=null?i:Ie:null,et=!!(ht.nodeRef.current&&ht.rect),st=FH(et?null:Ie),dt=U4($e?uf($e):null),Mt=BH(N?Oe??Ne:null),ot=UH(Mt),nt=jH(_,{transform:{x:K.x-st.x,y:K.y-st.y,scaleX:1,scaleY:1},activatorEvent:re,active:ne,activeNodeRect:Ie,containerNodeRect:ze,draggingNodeRect:it,over:Ke.current.over,overlayNodeRect:ht.rect,scrollableAncestors:Mt,scrollableAncestorRects:ot,windowRect:dt}),Ot=Me?m1(Me,K):null,Zt=zH(Mt),Rt=Gw(Zt),tn=Gw(Zt,[Ie]),Ft=m1(nt,Rt),yn=it?sH(it,nt):null,dn=ne&&yn?x({active:ne,collisionRect:yn,droppableRects:Te,droppableContainers:Q,pointerCoordinates:Ot}):null,nn=tH(dn,"id"),[Bt,on]=B.useState(null),Nn=et?nt:m1(nt,tn),Rn=oH(Nn,(o=Bt==null?void 0:Bt.rect)!=null?o:null,Ie),gn=B.useRef(null),Ue=B.useCallback((pn,un)=>{let{sensor:ft,options:kt}=un;if(ue.current==null)return;const Ct=Y.get(ue.current);if(!Ct)return;const zt=pn.nativeEvent,ln=new ft({active:ue.current,activeNode:Ct,event:zt,options:kt,context:Ke,onAbort(Lt){if(!Y.get(Lt))return;const{onDragAbort:bn}=be.current,xn={id:Lt};bn==null||bn(xn),P({type:"onDragAbort",event:xn})},onPending(Lt,en,bn,xn){if(!Y.get(Lt))return;const{onDragPending:mn}=be.current,Dn={id:Lt,constraint:en,initialCoordinates:bn,offset:xn};mn==null||mn(Dn),P({type:"onDragPending",event:Dn})},onStart(Lt){const en=ue.current;if(en==null)return;const bn=Y.get(en);if(!bn)return;const{onDragStart:xn}=be.current,Vt={activatorEvent:zt,active:{id:en,data:bn.data,rect:te}};su.unstable_batchedUpdates(()=>{xn==null||xn(Vt),G(Jd.Initializing),O({type:Fa.DragStart,initialCoordinates:Lt,active:en}),P({type:"onDragStart",event:Vt}),$(gn.current),de(zt)})},onMove(Lt){O({type:Fa.DragMove,coordinates:Lt})},onEnd:mt(Fa.DragEnd),onCancel:mt(Fa.DragCancel)});gn.current=ln;function mt(Lt){return async function(){const{active:bn,collisions:xn,over:Vt,scrollAdjustedTranslate:mn}=Ke.current;let Dn=null;if(bn&&mn){const{cancelDrop:cr}=be.current;Dn={activatorEvent:zt,active:bn,collisions:xn,delta:mn,over:Vt},Lt===Fa.DragEnd&&typeof cr=="function"&&await Promise.resolve(cr(Dn))&&(Lt=Fa.DragCancel)}ue.current=null,su.unstable_batchedUpdates(()=>{O({type:Lt}),G(Jd.Uninitialized),on(null),$(null),de(null),gn.current=null;const cr=Lt===Fa.DragEnd?"onDragEnd":"onDragCancel";if(Dn){const En=be.current[cr];En==null||En(Dn),P({type:cr,event:Dn})}})}}},[Y]),Ce=B.useCallback((pn,un)=>(ft,kt)=>{const Ct=ft.nativeEvent,zt=Y.get(kt);if(ue.current!==null||!zt||Ct.dndKit||Ct.defaultPrevented)return;const ln={active:zt};pn(ft,un.options,ln)===!0&&(Ct.dndKit={capturedBy:un.sensor},ue.current=kt,Ue(ft,un))},[Y,Ue]),Ze=LH(m,Ce);HH(m),ld(()=>{Ie&&H===Jd.Initializing&&G(Jd.Initialized)},[Ie,H]),B.useEffect(()=>{const{onDragMove:pn}=be.current,{active:un,activatorEvent:ft,collisions:kt,over:Ct}=Ke.current;if(!un||!ft)return;const zt={active:un,activatorEvent:ft,collisions:kt,delta:{x:Ft.x,y:Ft.y},over:Ct};su.unstable_batchedUpdates(()=>{pn==null||pn(zt),P({type:"onDragMove",event:zt})})},[Ft.x,Ft.y]),B.useEffect(()=>{const{active:pn,activatorEvent:un,collisions:ft,droppableContainers:kt,scrollAdjustedTranslate:Ct}=Ke.current;if(!pn||ue.current==null||!un||!Ct)return;const{onDragOver:zt}=be.current,ln=kt.get(nn),mt=ln&&ln.rect.current?{id:ln.id,rect:ln.rect.current,data:ln.data,disabled:ln.disabled}:null,Lt={active:pn,activatorEvent:un,collisions:ft,delta:{x:Ct.x,y:Ct.y},over:mt};su.unstable_batchedUpdates(()=>{on(mt),zt==null||zt(Lt),P({type:"onDragOver",event:Lt})})},[nn]),ld(()=>{Ke.current={activatorEvent:re,active:ne,activeNode:Ne,collisionRect:yn,collisions:dn,droppableRects:Te,draggableNodes:Y,draggingNode:$e,draggingNodeRect:it,droppableContainers:fe,over:Bt,scrollableAncestors:Mt,scrollAdjustedTranslate:Ft},te.current={initial:it,translated:yn}},[ne,Ne,dn,yn,Y,$e,it,Te,fe,Bt,Mt,Ft]),RH({...Be,delta:K,draggingRect:yn,pointerCoordinates:Ot,scrollableAncestors:Mt,scrollableAncestorRects:ot});const wt=B.useMemo(()=>({active:ne,activeNode:Ne,activeNodeRect:Ie,activatorEvent:re,collisions:dn,containerNodeRect:ze,dragOverlay:ht,draggableNodes:Y,droppableContainers:fe,droppableRects:Te,over:Bt,measureDroppableContainers:He,scrollableAncestors:Mt,scrollableAncestorRects:ot,measuringConfiguration:ge,measuringScheduled:xe,windowRect:dt}),[ne,Ne,Ie,re,dn,ze,ht,Y,fe,Te,Bt,He,Mt,ot,ge,xe,dt]),Kt=B.useMemo(()=>({activatorEvent:re,activators:Ze,active:ne,activeNodeRect:Ie,ariaDescribedById:{draggable:oe},dispatch:O,draggableNodes:Y,over:Bt,measureDroppableContainers:He}),[re,Ze,ne,Ie,O,oe,Y,Bt,He]);return B.createElement(L4.Provider,{value:z},B.createElement(Wv.Provider,{value:Kt},B.createElement(G4.Provider,{value:wt},B.createElement(Y4.Provider,{value:Rn},g)),B.createElement(qH,{disabled:(a==null?void 0:a.restoreFocus)===!1})),B.createElement(Qz,{...a,hiddenTextDescribedById:oe}));function Gt(){const pn=(se==null?void 0:se.autoScrollEnabled)===!1,un=typeof h=="object"?h.enabled===!1:h===!1,ft=N&&!pn&&!un;return typeof h=="object"?{...h,enabled:ft}:{enabled:ft}}}),nW=B.createContext(null),Vw="button",rW="Draggable";function iW(n){let{id:e,data:t,disabled:r=!1,attributes:i}=n;const o=Qp(rW),{activators:l,activatorEvent:a,active:h,activeNodeRect:g,ariaDescribedById:m,draggableNodes:x,over:w}=B.useContext(Wv),{role:_=Vw,roleDescription:E="draggable",tabIndex:R=0}=i??{},k=(h==null?void 0:h.id)===e,O=B.useContext(k?Y4:nW),[P,z]=bv(),[H,G]=bv(),N=WH(l,e),J=zp(t);ld(()=>(x.set(e,{id:e,key:o,node:P,activatorNode:H,data:J}),()=>{const K=x.get(e);K&&K.key===o&&x.delete(e)}),[x,e]);const Y=B.useMemo(()=>({role:_,tabIndex:R,"aria-disabled":r,"aria-pressed":k&&_===Vw?!0:void 0,"aria-roledescription":E,"aria-describedby":m.draggable}),[r,_,R,k,E,m.draggable]);return{active:h,activatorEvent:a,activeNodeRect:g,attributes:Y,isDragging:k,listeners:r?void 0:N,node:P,over:w,setNodeRef:z,setActivatorNodeRef:G,transform:O}}function oW(){return B.useContext(G4)}const lW="Droppable",sW={timeout:25};function aW(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:i}=n;const o=Qp(lW),{active:l,dispatch:a,over:h,measureDroppableContainers:g}=B.useContext(Wv),m=B.useRef({disabled:t}),x=B.useRef(!1),w=B.useRef(null),_=B.useRef(null),{disabled:E,updateMeasurementsFor:R,timeout:k}={...sW,...i},O=zp(R??r),P=B.useCallback(()=>{if(!x.current){x.current=!0;return}_.current!=null&&clearTimeout(_.current),_.current=setTimeout(()=>{g(Array.isArray(O.current)?O.current:[O.current]),_.current=null},k)},[k]),z=Hv({callback:P,disabled:E||!l}),H=B.useCallback((Y,K)=>{z&&(K&&(z.unobserve(K),x.current=!1),Y&&z.observe(Y))},[z]),[G,N]=bv(H),J=zp(e);return B.useEffect(()=>{!z||!G.current||(z.disconnect(),x.current=!1,z.observe(G.current))},[G,z]),B.useEffect(()=>(a({type:Fa.RegisterDroppable,element:{id:r,key:o,disabled:t,node:G,rect:w,data:J}}),()=>a({type:Fa.UnregisterDroppable,key:o,id:r})),[r]),B.useEffect(()=>{t!==m.current.disabled&&(a({type:Fa.SetDroppableDisabled,id:r,key:o,disabled:t}),m.current.disabled=t)},[r,o,t,a]),{active:l,rect:w,isOver:(h==null?void 0:h.id)===r,node:G,over:h,setNodeRef:N}}function V4(n,e,t){const r={...n};return e.top+n.y<=t.top?r.y=t.top-e.top:e.bottom+n.y>=t.top+t.height&&(r.y=t.top+t.height-e.bottom),e.left+n.x<=t.left?r.x=t.left-e.left:e.right+n.x>=t.left+t.width&&(r.x=t.left+t.width-e.right),r}const cW=n=>{let{containerNodeRect:e,draggingNodeRect:t,transform:r}=n;return!t||!e?r:V4(r,t,e)},uW=n=>{let{transform:e,draggingNodeRect:t,windowRect:r}=n;return!t||!r?e:V4(e,t,r)};function wv(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function fW(n,e){return n.reduce((t,r,i)=>{const o=e.get(r);return o&&(t[i]=o),t},Array(n.length))}function F0(n){return n!==null&&n>=0}function hW(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function dW(n){return typeof n=="boolean"?{draggable:n,droppable:n}:n}const Z4=n=>{let{rects:e,activeIndex:t,overIndex:r,index:i}=n;const o=wv(e,r,t),l=e[i],a=o[i];return!a||!l?null:{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}},B0={scaleX:1,scaleY:1},gW=n=>{var e;let{activeIndex:t,activeNodeRect:r,index:i,rects:o,overIndex:l}=n;const a=(e=o[t])!=null?e:r;if(!a)return null;if(i===t){const g=o[l];return g?{x:0,y:t<l?g.top+g.height-(a.top+a.height):g.top-a.top,...B0}:null}const h=pW(o,i,t);return i>t&&i<=l?{x:0,y:-a.height-h,...B0}:i<t&&i>=l?{x:0,y:a.height+h,...B0}:{x:0,y:0,...B0}};function pW(n,e,t){const r=n[e],i=n[e-1],o=n[e+1];return r?t<e?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const X4="Sortable",K4=B.createContext({activeIndex:-1,containerId:X4,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Z4,disabled:{draggable:!1,droppable:!1}});function vW(n){let{children:e,id:t,items:r,strategy:i=Z4,disabled:o=!1}=n;const{active:l,dragOverlay:a,droppableRects:h,over:g,measureDroppableContainers:m}=oW(),x=Qp(X4,t),w=a.rect!==null,_=B.useMemo(()=>r.map(N=>typeof N=="object"&&"id"in N?N.id:N),[r]),E=l!=null,R=l?_.indexOf(l.id):-1,k=g?_.indexOf(g.id):-1,O=B.useRef(_),P=!hW(_,O.current),z=k!==-1&&R===-1||P,H=dW(o);ld(()=>{P&&E&&m(_)},[P,_,E,m]),B.useEffect(()=>{O.current=_},[_]);const G=B.useMemo(()=>({activeIndex:R,containerId:x,disabled:H,disableTransforms:z,items:_,overIndex:k,useDragOverlay:w,sortedRects:fW(_,h),strategy:i}),[R,x,H.draggable,H.droppable,z,_,k,h,w,i]);return B.createElement(K4.Provider,{value:G},e)}const bW=n=>{let{id:e,items:t,activeIndex:r,overIndex:i}=n;return wv(t,r,i).indexOf(e)},yW=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:i,items:o,newIndex:l,previousItems:a,previousContainerId:h,transition:g}=n;return!g||!r||a!==o&&i===l?!1:t?!0:l!==i&&e===h},mW={duration:200,easing:"ease"},J4="transform",xW=Hp.Transition.toString({property:J4,duration:0,easing:"linear"}),wW={roleDescription:"sortable"};function CW(n){let{disabled:e,index:t,node:r,rect:i}=n;const[o,l]=B.useState(null),a=B.useRef(t);return ld(()=>{if(!e&&t!==a.current&&r.current){const h=i.current;if(h){const g=B1(r.current,{ignoreTransform:!0}),m={x:h.left-g.left,y:h.top-g.top,scaleX:h.width/g.width,scaleY:h.height/g.height};(m.x||m.y)&&l(m)}}t!==a.current&&(a.current=t)},[e,t,r,i]),B.useEffect(()=>{o&&l(null)},[o]),o}function _W(n){let{animateLayoutChanges:e=yW,attributes:t,disabled:r,data:i,getNewIndex:o=bW,id:l,strategy:a,resizeObserverConfig:h,transition:g=mW}=n;const{items:m,containerId:x,activeIndex:w,disabled:_,disableTransforms:E,sortedRects:R,overIndex:k,useDragOverlay:O,strategy:P}=B.useContext(K4),z=SW(r,_),H=m.indexOf(l),G=B.useMemo(()=>({sortable:{containerId:x,index:H,items:m},...i}),[x,i,H,m]),N=B.useMemo(()=>m.slice(m.indexOf(l)),[m,l]),{rect:J,node:Y,isOver:K,setNodeRef:fe}=aW({id:l,data:G,disabled:z.droppable,resizeObserverConfig:{updateMeasurementsFor:N,...h}}),{active:X,activatorEvent:te,activeNodeRect:ne,attributes:ue,setNodeRef:se,listeners:$,isDragging:re,over:de,setActivatorNodeRef:be,transform:oe}=iW({id:l,data:G,attributes:{...wW,...t},disabled:z.draggable}),Q=Fz(fe,se),ge=!!X,Te=ge&&!E&&F0(w)&&F0(k),He=!O&&re,xe=He&&Te?oe:null,Me=Te?xe??(a??P)({rects:R,activeNodeRect:ne,activeIndex:w,overIndex:k,index:H}):null,Be=F0(w)&&F0(k)?o({id:l,items:m,activeIndex:w,overIndex:k}):H,ke=X==null?void 0:X.id,Ie=B.useRef({activeId:ke,items:m,newIndex:Be,containerId:x}),ze=m!==Ie.current.items,Ke=e({active:X,containerId:x,isDragging:re,isSorting:ge,id:l,index:H,items:m,newIndex:Ie.current.newIndex,previousItems:Ie.current.items,previousContainerId:Ie.current.containerId,transition:g,wasDragging:Ie.current.activeId!=null}),Oe=CW({disabled:!Ke,index:H,node:Y,rect:J});return B.useEffect(()=>{ge&&Ie.current.newIndex!==Be&&(Ie.current.newIndex=Be),x!==Ie.current.containerId&&(Ie.current.containerId=x),m!==Ie.current.items&&(Ie.current.items=m)},[ge,Be,x,m]),B.useEffect(()=>{if(ke===Ie.current.activeId)return;if(ke!=null&&Ie.current.activeId==null){Ie.current.activeId=ke;return}const $e=setTimeout(()=>{Ie.current.activeId=ke},50);return()=>clearTimeout($e)},[ke]),{active:X,activeIndex:w,attributes:ue,data:G,rect:J,index:H,newIndex:Be,items:m,isOver:K,isSorting:ge,isDragging:re,listeners:$,node:Y,overIndex:k,over:de,setNodeRef:Q,setActivatorNodeRef:be,setDroppableNodeRef:fe,setDraggableNodeRef:se,transform:Oe??Me,transition:ht()};function ht(){if(Oe||ze&&Ie.current.newIndex===H)return xW;if(!(He&&!t2(te)||!g)&&(ge||Ke))return Hp.Transition.toString({...g,property:J4})}}function SW(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}Eo.Down,Eo.Right,Eo.Up,Eo.Left;function Cv(n,e){Array.isArray(n)||(n=[n]);for(const t of n){if(e(t))return t;if(!t.children||t.children.length<1)continue;const r=Cv(t.children,e);if(r)return r}}function qp(n,e){Array.isArray(n)||(n=[n]);for(const t of n)e(t),!(!t.children||t.children.length<1)&&qp(t.children,e)}function Q4(n,e){Array.isArray(n)||(n=[n]);const t=[];return qp(n,(r,i)=>t.push(e(r,i))),t}function q4(n,e){Array.isArray(n)||(n=[n]);for(const t of n){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!q4(t.children,e))return!1}return!0}function EW(n,e){Array.isArray(n)||(n=[n]);const t=[];return qp(n,(r,i)=>{e(r,i)&&t.push(r)}),t}function TW(n){Array.isArray(n)||(n=[n]);let e=0;return qp(n,()=>e++),e}function AW(n,e,t,r){if(r(e,t))return null;Array.isArray(n)||(n=[n]);const i=Cv(n,l=>{var a;return(a=l.children)==null?void 0:a.some(h=>r(h,e))}),o=Cv(n,l=>{var a;return(a=l.children)==null?void 0:a.some(h=>r(h,t))});if(i===void 0&&o===void 0){const l=n.findIndex(h=>r(h,e)),a=n.findIndex(h=>r(h,t));return n.splice(l,1),n.splice(a,0,e),[...n]}else if(i!==void 0&&o!==void 0&&r(i,o)&&i.children){const l=i.children.findIndex(h=>r(h,e)),a=i.children.findIndex(h=>r(h,t));return l===void 0||a===void 0?null:(i.children.splice(l,1),i.children.splice(a,0,e),i.children=[...i.children],[...n])}return null}function RW(n,e,t){const r=[],i=[...e];for(;i.length>0;){const o=i.shift();if(o&&!r.find(l=>t(l,o))&&(r.push(o),!(!o.children||o.children.length<1)))for(const l of o.children)i.push(l)}return r}function IW(n,e,t){Array.isArray(n)||(n=[n]);const r=Q4(n,l=>l),i=[],o=[...e];for(;o.length>0;){const l=o.shift();if(!l||i.find(h=>t(h,l)))continue;i.push(l);const a=r.find(h=>{var g;return(g=h.children)==null?void 0:g.some(m=>t(m,l))});a&&o.push(a)}return i}const Qd={find:Cv,forEach:qp,map:Q4,every:q4,filter:EW,length:TW,replace:AW,descendants:RW,ancestors:IW},kW="_AWrap_1mpkv_1",MW="_AContainer_1mpkv_10",LW="_ATree_1mpkv_18",OW="_ATreeBody_1mpkv_30",PW="_TreeTopAddon_1mpkv_36",DW="_CoverBorder_1mpkv_46",NW="_InsertBorder_1mpkv_55",FW="_ATreeHeader_1mpkv_86",BW="_ATreeBodyHeader_1mpkv_92",zW="_ATreeBodyHeaderResources_1mpkv_102",HW="_ATreeItem_1mpkv_108",WW="_IsSelectUsed_1mpkv_124",UW="_IsSelected_1mpkv_127",GW="_IsSearchSelected_1mpkv_132",YW="_IsHovered_1mpkv_143",VW="_CheckBox_1mpkv_147",ZW="_Indents_1mpkv_159",XW="_ExpandIcon_1mpkv_166",KW="_Content_1mpkv_178",JW="_RightSticky_1mpkv_187",QW="_SearchInputWrap_1mpkv_196",qW="_SearchInput_1mpkv_196",jW="_RightAddon_1mpkv_208",$W="_RightAddonIcon_1mpkv_219",eU="_Loader_1mpkv_226",tU="_IsChildOfDragSource_1mpkv_231",Po={AWrap:kW,AContainer:MW,ATree:LW,ATreeBody:OW,TreeTopAddon:PW,CoverBorder:DW,InsertBorder:NW,ATreeHeader:FW,ATreeBodyHeader:BW,ATreeBodyHeaderResources:zW,ATreeItem:HW,IsSelectUsed:WW,IsSelected:UW,IsSearchSelected:GW,IsHovered:YW,CheckBox:VW,Indents:ZW,ExpandIcon:XW,Content:KW,RightSticky:JW,SearchInputWrap:QW,SearchInput:qW,RightAddon:jW,RightAddonIcon:$W,Loader:eU,IsChildOfDragSource:tU},nU=n=>{const{isEqual:e,item:t,itemId:r,selectDisabled:i,selectUnused:o,isParentDisabled:l,indents:a,extIndents:h,useExpand:g,useSelect:m,useSearch:x,showCheckbox:w,icons:_,iconWidth:E,isSelectMulti:R,isDraggable:k,isParentCheckHovered:O,hoverdItem:P,onMouseOver:z,onMouseLeave:H,ContentRenderer:G,TreeItemRenderer:N,RightStickyAddon:J,resources:Y,containerRef:K,TreeItemStyle:fe,TreeItemClassName:X,searchItemStyle:te,searchItemClassName:ne,height:ue,isDragSrcItem:se,isChildOfDragItem:$,getItemId:re,treeItemTooltip:de,treeItemTooltipDelay:be,treeItemTooltipDirection:oe,treeItemTooltipDistance:Q}=n,{children:ge}=B.useMemo(()=>t,[t]),[Te,He]=B.useMemo(()=>g,[g]),[xe,Ne]=B.useMemo(()=>m,[m]),[Me,Be]=B.useMemo(()=>x,[x]),ke=B.useMemo(()=>o?o(t):!1,[o,t]),Ie=B.useMemo(()=>!i||l?l:i(t),[i,l,t]),ze=B.useMemo(()=>Te.some(mt=>e(mt,t)),[Te,e,t]),Ke=B.useMemo(()=>!ge||ge.length<1?"noChild":ze?"expanded":"collapsed",[ge,ze]),Oe=B.useMemo(()=>Vr.getContent(_,n),[_,n]),ht=B.useMemo(()=>{const mt=Oe==null?void 0:Oe[Ke];return ym.includes(mt)?M.jsx(uo,{icon:mt,style:{width:E,height:E}}):mt},[Oe,E,Ke]),$e=B.useCallback(mt=>{!He||Ke==="noChild"||(He(ze?Te.filter(Lt=>!e(Lt,t)):[...Te,t]),mt.stopPropagation())},[He,Te,ze,t,e,Ke]),it=B.useMemo(()=>xe.some(mt=>e(mt,t)),[xe,e,t]),et=B.useCallback(()=>{!Ne||Ie||(Ne(R?it?xe.filter(mt=>!e(mt,t)):[...xe,t]:[t]),Me&&Be&&Me.items.some(mt=>e(mt,t))&&Be({...Me,item:t}))},[R,Ie,it,Me,Be,Ne,e,xe,t]),st=B.useMemo(()=>Me==null?void 0:Me.items.some(mt=>e(mt,t)),[Me,e,t]),dt=B.useMemo(()=>st&&(Me==null?void 0:Me.item)&&e(Me.item,t),[st,Me,e,t]),Mt=B.useRef(null),ot=B.useRef(null),{attributes:nt,listeners:Ot,setNodeRef:Zt,transform:Rt,transition:tn,isDragging:Ft}=_W({id:r||`item-${JSON.stringify(t)}`,disabled:!k||!!l||!r}),yn=B.useMemo(()=>$?$(t):!1,[$,t]),dn=B.useMemo(()=>{const mt=Rt?{transform:Hp.Transform.toString(Rt),transition:tn,opacity:Ft?.5:1,zIndex:Ft?1:"auto"}:{};return se||yn?{...mt,opacity:.5,zIndex:10}:mt},[Rt,tn,Ft,se,yn]);B.useEffect(()=>{r&&Zt&&ot.current&&Zt(ot.current)},[r,Zt]),B.useEffect(()=>{setTimeout(()=>{if(dt&&Mt.current&&K.current){const{top:mt,bottom:Lt}=Mt.current.getBoundingClientRect(),{top:en,bottom:bn}=K.current.getBoundingClientRect();(mt<en||Lt>bn)&&Mt.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[K,dt]);const[nn,Bt]=B.useState(!1),on=B.useCallback(()=>!Ie&&Bt(!0),[Ie]),Nn=B.useCallback(()=>!Ie&&Bt(!1),[Ie]),Rn=B.useMemo(()=>Qd.map(t,mt=>mt).filter(mt=>!(i!=null&&i(mt))&&!(o!=null&&o(mt))),[i,o,t]),gn=B.useMemo(()=>!w||!R?!1:it&&Rn.some(mt=>xe.some(Lt=>e(mt,Lt)))&&Rn.some(mt=>!xe.some(Lt=>e(mt,Lt))),[w,R,it,Rn,e,xe]),Ue=B.useMemo(()=>w?R?Rn.every(mt=>xe.some(Lt=>e(mt,Lt))):xe.some(mt=>e(mt,t)):!1,[w,R,Rn,t,e,xe]),Ce=B.useCallback(()=>{if(!(!Ne||Ie))if(R)if(it){const mt=xe.filter(Lt=>!(o!=null&&o(Lt))&&!(i!=null&&i(Lt))&&Rn.some(en=>e(en,Lt)));mt.length>0&&Ne(xe.filter(Lt=>!mt.some(en=>e(Lt,en))))}else{const mt=Rn.filter(Lt=>!(o!=null&&o(Lt))&&!(i!=null&&i(Lt))&&!xe.some(en=>e(en,Lt)));mt.length>0&&Ne([...xe,...mt])}else Ne([t])},[Ie,i,o,R,Ne,e,it,xe,Rn,t]),Ze=B.useCallback(mt=>{Ie||Ce(),mt.stopPropagation()},[Ie,Ce]),wt=B.useMemo(()=>{if(!w||!R||Ie)return"";if(it){const Lt=xe.filter(en=>!(o!=null&&o(en))&&!(i!=null&&i(en))&&Rn.some(bn=>e(bn,en)));if(Lt.length>0)return Y["deselect n"](Lt.length)}const mt=Rn.filter(Lt=>!(o!=null&&o(Lt))&&!(i!=null&&i(Lt))&&!xe.some(en=>e(en,Lt)));return Y["select n"](mt.length)},[i,o,Y,Ie,w,R,it,Rn,e,xe]),Kt=B.useMemo(()=>Vr.getContent(J,n),[J,n]),Gt=B.useMemo(()=>Vr.getContent(fe,n),[n,fe]),pn=B.useMemo(()=>Vr.getContent(X,n),[n,X]),un=B.useMemo(()=>Vr.getContent(ne,n),[n,ne]),ft=B.useMemo(()=>Vr.getContent(te,n),[n,te]),kt=B.useMemo(()=>Vr.getContent(de,n),[n,de]),Ct=B.useMemo(()=>Vr.getContent(be,n),[n,be]),zt=B.useMemo(()=>Vr.getContent(oe,n),[n,oe]),ln=B.useMemo(()=>Vr.getContent(Q,n),[n,Q]);return M.jsxs(B.Fragment,{children:[M.jsxs(Wi,{abaseRef:ot,isDisabled:Ie,className:bt.clsx(Po.ATreeItem,it&&Po.IsSelected,!Ie&&(nn||O)&&Po.IsHovered,st&&Po.IsSearched,dt&&(un||Po.IsSearchSelected),!ke&&Po.IsSelectUsed,yn&&Po.IsChildOfDragSource,"NoSelect",pn),style:{...Gt,...dt&&ft?ft:{},"--ATreeItem_height":`${ue}px`,...dn||{}},onClick:et,onMouseLeave:mt=>H==null?void 0:H(mt,t),onMouseOver:mt=>z==null?void 0:z(mt,t),...k&&!Ie&&nt?nt:{},...k&&!Ie&&Ot?Ot:{},tooltip:kt,tooltipDelay:Ct,tooltipDirection:zt,tooltipDistance:ln,children:[w&&M.jsx(w1,{className:Po.CheckBox,isDisabled:Ie,isIndeterminate:gn,tooltip:wt,useCheck:[+Ue,Ce],style:{visibility:Ie||ke?"hidden":"visible",zIndex:Ie||ke?0:2},onClick:Ze,onMouseOut:Nn,onMouseOver:on}),M.jsx("div",{className:Po.Indents,style:{paddingLeft:w?0:Oe!=null&&Oe.noChild?12:0},children:a.map((mt,Lt)=>{const en=Lt===a.length-1;return M.jsx(N3,{value:mt,map:{Collapsed:h?h({iconWidth:E}).collapsed:M.jsx(iU,{iconWidth:E}),Expanded:h?h({iconWidth:E,isLast:en}).expanded:M.jsx(rU,{iconWidth:E,isLast:en}),IsLast:h?h({iconWidth:E}).isLast:M.jsx(oU,{iconWidth:E})}},Lt)})}),ht&&M.jsx("div",{className:Po.ExpandIcon,style:{width:E,minWidth:E,maxWidth:E},onClick:$e,children:ht}),M.jsx("div",{className:bt.clsx(Po.Content,"NoSelect"),children:M.jsx(G,{containerRef:K,ContentRenderer:G,extIndents:h,height:ue,hoverdItem:P,icons:_,iconWidth:E,indents:a,isDraggable:k,isEqual:e,isParentCheckHovered:R&&(nn||O),isSelectMulti:R,item:t,itemId:r,resources:Y,RightStickyAddon:J,searchItemClassName:un,searchItemStyle:te,showCheckbox:w,TreeItemClassName:X,TreeItemRenderer:N,TreeItemStyle:fe,treeItemTooltip:de,treeItemTooltipDelay:be,treeItemTooltipDirection:oe,treeItemTooltipDistance:Q,useExpand:g,useSearch:x,useSelect:m,onMouseLeave:H,onMouseOver:z})}),Kt&&M.jsx("div",{className:Po.RightSticky,children:Kt})]}),ze&&(ge==null?void 0:ge.map((mt,Lt)=>M.jsx(N,{containerRef:K,ContentRenderer:G,extIndents:h,height:ue,hoverdItem:P,icons:_,iconWidth:E,isChildOfDragItem:$,isDraggable:k,isDragSrcItem:se,isEqual:e,isParentCheckHovered:R&&(nn||O),isSelectMulti:R,item:mt,itemId:re?`${re(t)}-child-${Lt}`:r?`${r}-child-${Lt}`:void 0,resources:Y,RightStickyAddon:J,searchItemClassName:un,searchItemStyle:te,selectDisabled:i,selectUnused:o,showCheckbox:w,TreeItemClassName:X,TreeItemRenderer:N,TreeItemStyle:fe,treeItemTooltip:de,treeItemTooltipDelay:be,treeItemTooltipDirection:oe,treeItemTooltipDistance:Q,useExpand:g,useSearch:x,useSelect:m,indents:[...a.map(en=>en==="IsLast"?"Collapsed":en),Lt===ge.length-1?"IsLast":"Expanded"],onMouseLeave:H,onMouseOver:z},re?re(mt):Lt)))]})},rU=n=>{const e=Vn.c(9),{iconWidth:t,isLast:r}=n,i=t/8*3,o=t/2,l=t/8;let a;e[0]!==i||e[1]!==o||e[2]!==l?(a={width:i,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:o,marginRight:l,boxSizing:"border-box",transition:"border-color var(--Transition)"},e[0]=i,e[1]=o,e[2]=l,e[3]=a):a=e[3];let h;e[4]!==r?(h=r&&M.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}}),e[4]=r,e[5]=h):h=e[5];let g;return e[6]!==a||e[7]!==h?(g=M.jsx("div",{style:a,children:h}),e[6]=a,e[7]=h,e[8]=g):g=e[8],g},iU=n=>{const e=Vn.c(2),{iconWidth:t}=n;let r;return e[0]!==t?(r=M.jsx("div",{style:{width:t,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),e[0]=t,e[1]=r):r=e[1],r},oU=n=>{const e=Vn.c(4),{iconWidth:t}=n,r=t/8*3,i=t/2,o=t/8;let l;return e[0]!==r||e[1]!==i||e[2]!==o?(l=M.jsx("div",{style:{width:r,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:i,marginRight:o,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),e[0]=r,e[1]=i,e[2]=o,e[3]=l):l=e[3],l},lU=n=>{const e=Vn.c(26),{isEqual:t,searchResult:r,initSearch:i,searchUp:o,searchDown:l,searchEnter:a,isDisabled:h,isLoading:g,resources:m,maxLength:x,autoFocus:w}=n;let _;e[0]!==l||e[1]!==a||e[2]!==o?(_=K=>{K.key==="Enter"?a():K.key==="ArrowDown"?l():K.key==="ArrowUp"&&o(),K.preventDefault(),K.stopPropagation()},e[0]=l,e[1]=a,e[2]=o,e[3]=_):_=e[3];const E=_;let R;e[4]!==i?(R=K=>{i(K)},e[4]=i,e[5]=R):R=e[5];const k=R;let O;h||g?O=-1:O=void 0;const P=O,z=m["Search(Placeholder)"],H=(r==null?void 0:r.keyword)??"";let G;e[6]!==k||e[7]!==H?(G=[H,k],e[6]=k,e[7]=H,e[8]=G):G=e[8];let N;e[9]!==t||e[10]!==m||e[11]!==l||e[12]!==a||e[13]!==r||e[14]!==o?(N=M.jsx(sU,{isEqual:t,resources:m,searchDown:l,searchEnter:a,searchResult:r,searchUp:o}),e[9]=t,e[10]=m,e[11]=l,e[12]=a,e[13]=r,e[14]=o,e[15]=N):N=e[15];let J;e[16]===Symbol.for("react.memo_cache_sentinel")?(J={className:Po.SearchInputWrap},e[16]=J):J=e[16];let Y;return e[17]!==w||e[18]!==h||e[19]!==x||e[20]!==E||e[21]!==z||e[22]!==G||e[23]!==N||e[24]!==P?(Y=M.jsx(sg,{autoFocus:w,className:Po.SearchInput,isDisabled:h,maxLength:x,placeholder:z,tabIndex:P,useValue:G,RightAddon:N,wrapProps:J,onKeyDown:E}),e[17]=w,e[18]=h,e[19]=x,e[20]=E,e[21]=z,e[22]=G,e[23]=N,e[24]=P,e[25]=Y):Y=e[25],Y},sU=n=>{const e=Vn.c(22),{isEqual:t,searchResult:r,searchUp:i,searchDown:o,searchEnter:l,resources:a}=n;let h;if(!r||r.items.length<1)h=0;else{let Y;e[0]!==t||e[1]!==r.item?(Y=K=>r.item&&t(K,r.item),e[0]=t,e[1]=r.item,e[2]=Y):Y=e[2],h=r.items.findIndex(Y)+1}const g=h;let m;!r||r.items.length<1?m=0:m=r.items.length;const x=m;let w;g<2?w=!0:w=!1;const _=w;let E;g>=x?E=!0:E=!1;const R=E;let k;e[3]!==_||e[4]!==i?(k=Y=>{Y.stopPropagation(),!_&&i()},e[3]=_,e[4]=i,e[5]=k):k=e[5];const O=k;let P;e[6]!==R||e[7]!==o?(P=Y=>{Y.stopPropagation(),!R&&o()},e[6]=R,e[7]=o,e[8]=P):P=e[8];const z=P;let H;e[9]!==l?(H=Y=>{Y.stopPropagation(),l()},e[9]=l,e[10]=H):H=e[10];const G=H;let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=bt.clsx(Po.RightAddon,"NoSelect"),e[11]=N):N=e[11];let J;return e[12]!==R||e[13]!==_||e[14]!==x||e[15]!==z||e[16]!==G||e[17]!==O||e[18]!==g||e[19]!==a||e[20]!==r?(J=M.jsx("div",{className:N,children:r?M.jsxs(M.Fragment,{children:[g,"/",x,M.jsx(Wi,{isDisabled:_,onClick:O,children:M.jsx(uo,{className:Po.RightAddonIcon,icon:"ArrowUp",mask:""})}),M.jsx(Wi,{isDisabled:R,onClick:z,children:M.jsx(uo,{className:Po.RightAddonIcon,icon:"ArrowDown"})})]}):M.jsx(Ba,{className:Po.RightAddonIcon,icon:"Search",style:{marginRight:4},tooltip:a["Search(Button)"],type:"Raw",onClick:G})}),e[12]=R,e[13]=_,e[14]=x,e[15]=z,e[16]=G,e[17]=O,e[18]=g,e[19]=a,e[20]=r,e[21]=J):J=e[21],J},aU=n=>{var Ln;const{pk:e,selectDisabled:t,selectUnused:r,useItems:i,useExpand:o,useSelect:l,useSearch:a,showCheckbox:h,iconWidth:g=24,icons:m={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:x,isSelectMulti:w=!1,noSearch:_=!1,isDraggable:E,noSyncSearchSelect:R=!1,actionRef:k,placeholder:O,searchPredicate:P=uU,isDisabled:z,isLoading:H,ContentRenderer:G=cU,TreeItemRenderer:N=nU,RightStickyAddon:J,TopRightAddon:Y,TreeTopAddon:K,resources:fe,maxLength:X,autoFocus:te,TreeHeaderStyle:ne,TreeHeaderClassName:ue,TreeItemStyle:se,TreeItemClassName:$,OverflowPadding:re,insertBorder:de,width:be,searchItemClassName:oe,searchItemStyle:Q,height:ge=40,treeItemTooltip:Te,treeItemTooltipDelay:He,treeItemTooltipDirection:xe,treeItemTooltipDistance:Ne,...Me}=n,Be=B.useMemo(()=>({...Nr.ATree,...fe}),[fe]),ke=B.useCallback((je,qt)=>!je||!qt?!1:e!==void 0?Array.isArray(e)?e.every(rn=>je&&qt&&je[rn]!==void 0&&qt[rn]!==void 0&&fh.isEqual(je[rn],qt[rn])):je&&qt&&je[e]!==void 0&&qt[e]!==void 0&&fh.isEqual(je[e],qt[e]):fh.isEqual(je,qt),[e]),Ie=B.useRef(null),[ze,Ke]=Do(i,[]),Oe=B.useMemo(()=>Qd.map(ze,je=>je),[ze]),[ht,$e]=Do(o,[]),[it,et]=Do(l,[]),[st,dt]=Do(a,void 0),Mt=B.useCallback(je=>{if(z||!$e||ht.some(zn=>ke(zn,je)))return;const qt=[];let rn=je;for(;rn;){const zn=rn;ht.find($n=>ke($n,zn))||qt.push(zn),rn=Oe.find($n=>{var kn;return(kn=$n.children)==null?void 0:kn.some(Tt=>ke(Tt,zn))})}$e([...ht,...qt])},[ht,z,ke,$e,Oe]),ot=B.useCallback(()=>{!$e||z||$e([...Oe])},[Oe,z,$e]),nt=B.useCallback(()=>{!$e||z||$e([])},[$e,z]),Ot=B.useCallback(je=>{!et||z||r!=null&&r(je)||(et([je]),Mt(je))},[et,z,r,Mt]),Zt=B.useCallback(je=>{if(!dt||z)return;if(!je||_){dt(void 0),R||et==null||et([]);return}const qt=Qd.filter(ze,zn=>P(je,zn));let rn;if(qt.find(zn=>(st==null?void 0:st.item)&&ke(zn,st.item))?rn=st==null?void 0:st.item:qt.length>0&&(rn=qt[0]),dt({keyword:je,items:qt,item:rn}),rn&&Mt(rn),et&&!R)if(w)et(qt);else{const zn=qt.find($n=>rn&&ke($n,rn));et(zn?[zn]:[])}},[ze,z,ke,P,dt,et,Mt,R,_,w,st]),Rt=B.useRef(!1);B.useEffect(()=>{Rt.current=!0},[ze]),B.useEffect(()=>{st&&Rt.current&&(Zt(st.keyword),Rt.current=!1)},[Zt,st]);const tn=B.useCallback(()=>{if(!st||!dt||z)return;let je=st.items.findIndex(qt=>st.item&&ke(qt,st.item))-1;je<0||(dt({...st,item:st.items[je]}),Mt(st.items[je]),R||Ot(st.items[je]))},[st,Mt,dt,z,Ot,ke,R]),Ft=B.useCallback(()=>{if(!st||!dt||z)return;let je=st.items.findIndex(qt=>st.item&&ke(qt,st.item))+1;je>=st.items.length||(dt({...st,item:st.items[je]}),Mt(st.items[je]),R||Ot(st.items[je]))},[st,Mt,z,dt,Ot,ke,R]),yn=B.useCallback(()=>{if(!st||!dt||z)return;let je=st.items.findIndex(rn=>st.item&&ke(rn,st.item));if(!R||r!=null&&r(st.items[je])){Ft();return}if(it.some(rn=>st.item&&ke(rn,st.item))){let rn=je+1;const zn=st.items[rn];if(rn>=st.items.length)return;dt({...st,item:zn}),Ot(zn)}else Ot(st.items[je])},[st,dt,z,it,R,Ft,ke,Ot,r]),[dn,nn]=B.useState(!1),Bt=B.useCallback(()=>nn(!0),[]),on=B.useCallback(()=>nn(!1),[]),Nn=B.useMemo(()=>r?Qd.map(ze,je=>je).filter(je=>!r(je)):t?Qd.map(ze,je=>je).filter(je=>!t(je)):Qd.map(ze,je=>je),[r,t,ze]),Rn=B.useMemo(()=>!h||!w?!1:it.length>0&&Nn.length>it.length,[h,w,it,Nn]),gn=B.useMemo(()=>!h||!w?!1:it.length>0&&Nn.length===it.length,[h,w,it,Nn]),Ue=B.useCallback(()=>{if(!et||!w||z)return;const je=it.filter(qt=>!(r!=null&&r(qt))&&!(t!=null&&t(qt))&&Nn.some(rn=>ke(rn,qt)));if(je.length>0)et(it.filter(qt=>!je.some(rn=>ke(qt,rn))));else{const qt=Nn.filter(rn=>!(r!=null&&r(rn))&&!(t!=null&&t(rn))&&!it.some(zn=>ke(zn,rn)));qt.length>0&&et([...it,...qt])}},[w,z,r,t,et,it,Nn,ke]),Ce=B.useMemo(()=>{if(!h||!w||z)return"";const je=it.filter(qt=>!(r!=null&&r(qt))&&!(t!=null&&t(qt))&&Nn.some(rn=>ke(rn,qt)));if(je.length>0)return Be["deselect n"](je.length);{const qt=Nn.filter(rn=>!(r!=null&&r(rn))&&!(t!=null&&t(rn))&&!it.some(zn=>ke(zn,rn)));return Be["select n"](qt.length)}},[r,t,z,Be,h,w,Nn,it,ke]),[Ze,wt]=B.useState(),Kt=qz(Pw(l2,{activationConstraint:{distance:8}}),Pw(i2)),Gt=B.useRef(new Map),pn=B.useCallback(je=>{if(!Gt.current.has(je)){const qt=`item_${fh.uniqueId()}`;Gt.current.set(je,qt)}return Gt.current.get(je)},[]),un=B.useCallback(je=>Oe.find(qt=>pn(qt)===je),[Oe,pn]),ft=B.useCallback(je=>!Ze||!Ze.children?!1:Ze.children.some(rn=>ke(rn,je))?!0:Ze.children.some(rn=>rn.children?Qd.find(rn,zn=>ke(zn,je))!==void 0:!1),[Ze,ke]),kt=B.useCallback(je=>{if(!E||z)return;const qt=un(je.active.id);qt&&wt(qt)},[E,z,un]),Ct=B.useCallback((je,qt,rn,zn)=>{const $n=je.findIndex(Tt=>zn(Tt,qt)),kn=je.findIndex(Tt=>zn(Tt,rn));return $n!==-1&&kn!==-1?wv(je,$n,kn):je.map(Tt=>{if(!Tt.children)return Tt;const Se=Tt.children.findIndex(Et=>zn(Et,qt)),rt=Tt.children.findIndex(Et=>zn(Et,rn));return Se!==-1&&rt!==-1?{...Tt,children:wv(Tt.children,Se,rt)}:Tt.children?{...Tt,children:Ct(Tt.children,qt,rn,zn)}:Tt})},[]),zt=B.useCallback(je=>{!E||z||!Ze||!je.over||un(je.over.id)},[E,z,Ze,un]),ln=B.useCallback(je=>{if(!E||z||!Ke||!Ze||!je.over)return;const qt=un(je.over.id);if(!qt||ke(Ze,qt)){wt(void 0);return}const rn=Ct(ze,Ze,qt,ke);Ke(rn),wt(void 0)},[E,z,Ke,Ze,un,ke,ze,Ct]),mt=B.useMemo(()=>ze.map(je=>pn(je)),[ze,pn]);B.useEffect(()=>{var je;h||(je=Ie.current)==null||je.scrollTo(0,0)},[h,Ie]),B.useEffect(()=>{!w&&it.length>1&&(et==null||et([it[it.length-1]]))},[w,et,it]),B.useEffect(()=>{k&&(k.current={expandAll:ot,collapseAll:nt})},[k,ot,nt]),B.useEffect(()=>{if(!t||!et)return;const je=it.filter(qt=>!t(qt));it.length!==je.length&&et(je)},[t,it,et]),B.useEffect(()=>{if(!r||!et)return;const je=it.filter(qt=>!r(qt));it.length!==je.length&&et(je)},[r,it,et]),B.useEffect(()=>{dt&&dt(void 0)},[dt]);const[Lt,en]=B.useState(null),bn=B.useCallback((je,qt)=>{z||(je.stopPropagation(),je.preventDefault(),en(qt))},[z]),xn=B.useCallback((je,qt)=>{Lt===null||z||ke(qt,Lt)&&(je.stopPropagation(),je.preventDefault(),en(null))},[Lt,z,ke]),Vt=B.useRef(null),[mn,Dn]=B.useState(!1),[cr,En]=B.useState((Ln=Vt.current)==null?void 0:Ln.scrollHeight);return B.useEffect(()=>{if(ht.length<0)return;const je=Ie.current,qt=Vt.current,rn=je.clientHeight<qt.clientHeight;En(rn?qt.scrollHeight:je.clientHeight),Dn(rn)},[ht]),M.jsxs(Wi,{...Me,className:bt.clsx(Me.className,Po.AWrap),isDisabled:z,children:[(!_||Y)&&M.jsxs(Ml,{className:bt.clsx(Po.ATreeHeader,ue),style:ne,children:[!_&&M.jsx(lU,{autoFocus:te,initSearch:Zt,isDisabled:z,isEqual:ke,isLoading:H,maxLength:X,resources:Be,searchDown:Ft,searchEnter:yn,searchResult:st,searchUp:tn}),!_&&Y&&M.jsx(cs,{w:8}),Y]}),(!_||Y||h&&w||E)&&M.jsx(Am,{isLoading:H&&ze.length!==0}),(h&&w||E)&&M.jsxs("div",{className:bt.clsx(Po.ATreeBodyHeader,"NoSelect"),children:[h&&M.jsx(w1,{className:Po.CheckBox,isDisabled:z,isIndeterminate:Rn,tooltip:Ce,useCheck:[+gn,()=>Ue()],onMouseOut:on,onMouseOver:Bt}),Be.Items,M.jsx(zg,{}),M.jsxs("div",{className:bt.clsx(Po.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:mn?8:0},children:[M.jsx("span",{children:h&&Be["*Click row for single select"]}),M.jsx("span",{children:E&&Be["*Change order to row drag"]})]})]}),K&&M.jsx("div",{className:Po.TreeTopAddon,children:K}),M.jsx("div",{ref:Ie,className:bt.clsx(Me.className,Po.AContainer),children:M.jsxs("div",{className:Po.ATree,style:{minWidth:be||"fit-content",marginRight:re&&mn?8:0},children:[M.jsxs("div",{ref:Vt,className:Po.ATreeBody,children:[ze.length===0?H?M.jsx(fU,{text:Be["Loading Contents..."]}):O:null,M.jsx(tW,{collisionDetection:nH,modifiers:[cW,uW],sensors:Kt,measuring:{droppable:{strategy:M1.Always}},onDragEnd:ln,onDragOver:zt,onDragStart:kt,children:M.jsx(vW,{items:mt,strategy:gW,children:ze.map(je=>M.jsx(N,{containerRef:Ie,ContentRenderer:G,extIndents:x,getItemId:pn,height:ge,hoverdItem:Lt,icons:m,iconWidth:g,indents:[],isChildOfDragItem:ft,isDraggable:E,isDragSrcItem:ke(je,Ze),isEqual:ke,isParentCheckHovered:w&&dn,isParentDisabled:z,isSelectMulti:w,item:je,itemId:pn(je),resources:Be,RightStickyAddon:J,searchItemClassName:oe,searchItemStyle:Q,selectDisabled:t,selectUnused:r,showCheckbox:h,TreeItemClassName:$,TreeItemRenderer:N,TreeItemStyle:se,treeItemTooltip:Te,treeItemTooltipDelay:He,treeItemTooltipDirection:xe,treeItemTooltipDistance:Ne,useExpand:[ht,$e],useSearch:[st,dt],useSelect:[it,et],onMouseLeave:xn,onMouseOver:bn},pn(je)))})})]}),de&&M.jsxs(M.Fragment,{children:[M.jsx("div",{className:Po.CoverBorder}),M.jsx("div",{className:Po.InsertBorder,style:{"--InsertBorder_height":`${ge}px`,height:mn?cr:"100%"}})]})]})})]})},cU=n=>{const{item:e}=n,t={};return rr.keys(e).forEach(r=>{r!=="children"&&(t[r]=e[r])}),JSON.stringify(t)};function uU(n,e){return rr.some(e,(t,r)=>{var i;return(i=rr.stringify(r))==null?void 0:i.toLowerCase().includes(n.toLowerCase())})}const fU=n=>{const e=Vn.c(4),{text:t}=n;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=bt.clsx(Po.Loader,"NoSelect"),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=M.jsx(uo,{height:40,icon:"Spinner",style:{height:40},width:40}),e[1]=i):i=e[1];let o;return e[2]!==t?(o=M.jsxs(Ml,{className:r,children:[i,M.jsx(X3,{text:t})]}),e[2]=t,e[3]=o):o=e[3],o};var Bb,Zw;function z1(){return Zw||(Zw=1,Bb=TypeError),Bb}const hU={},dU=Object.freeze(Object.defineProperty({__proto__:null,default:hU},Symbol.toStringTag,{value:"Module"})),gU=RE(dU);var zb,Xw;function Uv(){if(Xw)return zb;Xw=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,r=n&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&o&&typeof o.get=="function"?o.get:null,a=i&&Set.prototype.forEach,h=typeof WeakMap=="function"&&WeakMap.prototype,g=h?WeakMap.prototype.has:null,m=typeof WeakSet=="function"&&WeakSet.prototype,x=m?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,_=w?WeakRef.prototype.deref:null,E=Boolean.prototype.valueOf,R=Object.prototype.toString,k=Function.prototype.toString,O=String.prototype.match,P=String.prototype.slice,z=String.prototype.replace,H=String.prototype.toUpperCase,G=String.prototype.toLowerCase,N=RegExp.prototype.test,J=Array.prototype.concat,Y=Array.prototype.join,K=Array.prototype.slice,fe=Math.floor,X=typeof BigInt=="function"?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ue=typeof Symbol=="function"&&typeof Symbol.iterator=="object",se=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ue||!0)?Symbol.toStringTag:null,$=Object.prototype.propertyIsEnumerable,re=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(Ue){return Ue.__proto__}:null);function de(Ue,Ce){if(Ue===1/0||Ue===-1/0||Ue!==Ue||Ue&&Ue>-1e3&&Ue<1e3||N.call(/e/,Ce))return Ce;var Ze=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof Ue=="number"){var wt=Ue<0?-fe(-Ue):fe(Ue);if(wt!==Ue){var Kt=String(wt),Gt=P.call(Ce,Kt.length+1);return z.call(Kt,Ze,"$&_")+"."+z.call(z.call(Gt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return z.call(Ce,Ze,"$&_")}var be=gU,oe=be.custom,Q=ht(oe)?oe:null,ge={__proto__:null,double:'"',single:"'"},Te={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};zb=function Ue(Ce,Ze,wt,Kt){var Gt=Ze||{};if(et(Gt,"quoteStyle")&&!et(ge,Gt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(et(Gt,"maxStringLength")&&(typeof Gt.maxStringLength=="number"?Gt.maxStringLength<0&&Gt.maxStringLength!==1/0:Gt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var pn=et(Gt,"customInspect")?Gt.customInspect:!0;if(typeof pn!="boolean"&&pn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(et(Gt,"indent")&&Gt.indent!==null&&Gt.indent!==" "&&!(parseInt(Gt.indent,10)===Gt.indent&&Gt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(et(Gt,"numericSeparator")&&typeof Gt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var un=Gt.numericSeparator;if(typeof Ce>"u")return"undefined";if(Ce===null)return"null";if(typeof Ce=="boolean")return Ce?"true":"false";if(typeof Ce=="string")return Ft(Ce,Gt);if(typeof Ce=="number"){if(Ce===0)return 1/0/Ce>0?"0":"-0";var ft=String(Ce);return un?de(Ce,ft):ft}if(typeof Ce=="bigint"){var kt=String(Ce)+"n";return un?de(Ce,kt):kt}var Ct=typeof Gt.depth>"u"?5:Gt.depth;if(typeof wt>"u"&&(wt=0),wt>=Ct&&Ct>0&&typeof Ce=="object")return Me(Ce)?"[Array]":"[Object]";var zt=Nn(Gt,wt);if(typeof Kt>"u")Kt=[];else if(Mt(Kt,Ce)>=0)return"[Circular]";function ln(kn,Tt,Se){if(Tt&&(Kt=K.call(Kt),Kt.push(Tt)),Se){var rt={depth:Gt.depth};return et(Gt,"quoteStyle")&&(rt.quoteStyle=Gt.quoteStyle),Ue(kn,rt,wt+1,Kt)}return Ue(kn,Gt,wt+1,Kt)}if(typeof Ce=="function"&&!ke(Ce)){var mt=dt(Ce),Lt=gn(Ce,ln);return"[Function"+(mt?": "+mt:" (anonymous)")+"]"+(Lt.length>0?" { "+Y.call(Lt,", ")+" }":"")}if(ht(Ce)){var en=ue?z.call(String(Ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):ne.call(Ce);return typeof Ce=="object"&&!ue?dn(en):en}if(tn(Ce)){for(var bn="<"+G.call(String(Ce.nodeName)),xn=Ce.attributes||[],Vt=0;Vt<xn.length;Vt++)bn+=" "+xn[Vt].name+"="+He(xe(xn[Vt].value),"double",Gt);return bn+=">",Ce.childNodes&&Ce.childNodes.length&&(bn+="..."),bn+="</"+G.call(String(Ce.nodeName))+">",bn}if(Me(Ce)){if(Ce.length===0)return"[]";var mn=gn(Ce,ln);return zt&&!on(mn)?"["+Rn(mn,zt)+"]":"[ "+Y.call(mn,", ")+" ]"}if(Ie(Ce)){var Dn=gn(Ce,ln);return!("cause"in Error.prototype)&&"cause"in Ce&&!$.call(Ce,"cause")?"{ ["+String(Ce)+"] "+Y.call(J.call("[cause]: "+ln(Ce.cause),Dn),", ")+" }":Dn.length===0?"["+String(Ce)+"]":"{ ["+String(Ce)+"] "+Y.call(Dn,", ")+" }"}if(typeof Ce=="object"&&pn){if(Q&&typeof Ce[Q]=="function"&&be)return be(Ce,{depth:Ct-wt});if(pn!=="symbol"&&typeof Ce.inspect=="function")return Ce.inspect()}if(ot(Ce)){var cr=[];return r&&r.call(Ce,function(kn,Tt){cr.push(ln(Tt,Ce,!0)+" => "+ln(kn,Ce))}),Bt("Map",t.call(Ce),cr,zt)}if(Zt(Ce)){var En=[];return a&&a.call(Ce,function(kn){En.push(ln(kn,Ce))}),Bt("Set",l.call(Ce),En,zt)}if(nt(Ce))return nn("WeakMap");if(Rt(Ce))return nn("WeakSet");if(Ot(Ce))return nn("WeakRef");if(Ke(Ce))return dn(ln(Number(Ce)));if($e(Ce))return dn(ln(X.call(Ce)));if(Oe(Ce))return dn(E.call(Ce));if(ze(Ce))return dn(ln(String(Ce)));if(typeof window<"u"&&Ce===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Ce===globalThis||typeof jh<"u"&&Ce===jh)return"{ [object globalThis] }";if(!Be(Ce)&&!ke(Ce)){var Ln=gn(Ce,ln),je=re?re(Ce)===Object.prototype:Ce instanceof Object||Ce.constructor===Object,qt=Ce instanceof Object?"":"null prototype",rn=!je&&se&&Object(Ce)===Ce&&se in Ce?P.call(st(Ce),8,-1):qt?"Object":"",zn=je||typeof Ce.constructor!="function"?"":Ce.constructor.name?Ce.constructor.name+" ":"",$n=zn+(rn||qt?"["+Y.call(J.call([],rn||[],qt||[]),": ")+"] ":"");return Ln.length===0?$n+"{}":zt?$n+"{"+Rn(Ln,zt)+"}":$n+"{ "+Y.call(Ln,", ")+" }"}return String(Ce)};function He(Ue,Ce,Ze){var wt=Ze.quoteStyle||Ce,Kt=ge[wt];return Kt+Ue+Kt}function xe(Ue){return z.call(String(Ue),/"/g,""")}function Ne(Ue){return!se||!(typeof Ue=="object"&&(se in Ue||typeof Ue[se]<"u"))}function Me(Ue){return st(Ue)==="[object Array]"&&Ne(Ue)}function Be(Ue){return st(Ue)==="[object Date]"&&Ne(Ue)}function ke(Ue){return st(Ue)==="[object RegExp]"&&Ne(Ue)}function Ie(Ue){return st(Ue)==="[object Error]"&&Ne(Ue)}function ze(Ue){return st(Ue)==="[object String]"&&Ne(Ue)}function Ke(Ue){return st(Ue)==="[object Number]"&&Ne(Ue)}function Oe(Ue){return st(Ue)==="[object Boolean]"&&Ne(Ue)}function ht(Ue){if(ue)return Ue&&typeof Ue=="object"&&Ue instanceof Symbol;if(typeof Ue=="symbol")return!0;if(!Ue||typeof Ue!="object"||!ne)return!1;try{return ne.call(Ue),!0}catch{}return!1}function $e(Ue){if(!Ue||typeof Ue!="object"||!X)return!1;try{return X.call(Ue),!0}catch{}return!1}var it=Object.prototype.hasOwnProperty||function(Ue){return Ue in this};function et(Ue,Ce){return it.call(Ue,Ce)}function st(Ue){return R.call(Ue)}function dt(Ue){if(Ue.name)return Ue.name;var Ce=O.call(k.call(Ue),/^function\s*([\w$]+)/);return Ce?Ce[1]:null}function Mt(Ue,Ce){if(Ue.indexOf)return Ue.indexOf(Ce);for(var Ze=0,wt=Ue.length;Ze<wt;Ze++)if(Ue[Ze]===Ce)return Ze;return-1}function ot(Ue){if(!t||!Ue||typeof Ue!="object")return!1;try{t.call(Ue);try{l.call(Ue)}catch{return!0}return Ue instanceof Map}catch{}return!1}function nt(Ue){if(!g||!Ue||typeof Ue!="object")return!1;try{g.call(Ue,g);try{x.call(Ue,x)}catch{return!0}return Ue instanceof WeakMap}catch{}return!1}function Ot(Ue){if(!_||!Ue||typeof Ue!="object")return!1;try{return _.call(Ue),!0}catch{}return!1}function Zt(Ue){if(!l||!Ue||typeof Ue!="object")return!1;try{l.call(Ue);try{t.call(Ue)}catch{return!0}return Ue instanceof Set}catch{}return!1}function Rt(Ue){if(!x||!Ue||typeof Ue!="object")return!1;try{x.call(Ue,x);try{g.call(Ue,g)}catch{return!0}return Ue instanceof WeakSet}catch{}return!1}function tn(Ue){return!Ue||typeof Ue!="object"?!1:typeof HTMLElement<"u"&&Ue instanceof HTMLElement?!0:typeof Ue.nodeName=="string"&&typeof Ue.getAttribute=="function"}function Ft(Ue,Ce){if(Ue.length>Ce.maxStringLength){var Ze=Ue.length-Ce.maxStringLength,wt="... "+Ze+" more character"+(Ze>1?"s":"");return Ft(P.call(Ue,0,Ce.maxStringLength),Ce)+wt}var Kt=Te[Ce.quoteStyle||"single"];Kt.lastIndex=0;var Gt=z.call(z.call(Ue,Kt,"\\$1"),/[\x00-\x1f]/g,yn);return He(Gt,"single",Ce)}function yn(Ue){var Ce=Ue.charCodeAt(0),Ze={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ce];return Ze?"\\"+Ze:"\\x"+(Ce<16?"0":"")+H.call(Ce.toString(16))}function dn(Ue){return"Object("+Ue+")"}function nn(Ue){return Ue+" { ? }"}function Bt(Ue,Ce,Ze,wt){var Kt=wt?Rn(Ze,wt):Y.call(Ze,", ");return Ue+" ("+Ce+") {"+Kt+"}"}function on(Ue){for(var Ce=0;Ce<Ue.length;Ce++)if(Mt(Ue[Ce],`
|
|
485
485
|
`)>=0)return!1;return!0}function Nn(Ue,Ce){var Ze;if(Ue.indent===" ")Ze=" ";else if(typeof Ue.indent=="number"&&Ue.indent>0)Ze=Y.call(Array(Ue.indent+1)," ");else return null;return{base:Ze,prev:Y.call(Array(Ce+1),Ze)}}function Rn(Ue,Ce){if(Ue.length===0)return"";var Ze=`
|
|
486
486
|
`+Ce.prev+Ce.base;return Ze+Y.call(Ue,","+Ze)+`
|
|
487
|
-
`+Ce.prev}function gn(Ue,Ce){var Ze=Me(Ue),wt=[];if(Ze){wt.length=Ue.length;for(var Kt=0;Kt<Ue.length;Kt++)wt[Kt]=et(Ue,Kt)?Ce(Ue[Kt],Ue):""}var Gt=typeof te=="function"?te(Ue):[],pn;if(ue){pn={};for(var un=0;un<Gt.length;un++)pn["$"+Gt[un]]=Gt[un]}for(var ft in Ue)et(Ue,ft)&&(Ze&&String(Number(ft))===ft&&ft<Ue.length||ue&&pn["$"+ft]instanceof Symbol||(N.call(/[^\w$]/,ft)?wt.push(Ce(ft,Ue)+": "+Ce(Ue[ft],Ue)):wt.push(ft+": "+Ce(Ue[ft],Ue))));if(typeof te=="function")for(var kt=0;kt<Gt.length;kt++)$.call(Ue,Gt[kt])&&wt.push("["+Ce(Gt[kt])+"]: "+Ce(Ue[Gt[kt]],Ue));return wt}return zb}var Hb,Kw;function pU(){if(Kw)return Hb;Kw=1;var n=Uv(),e=z1(),t=function(a,h,g){for(var m=a,x;(x=m.next)!=null;m=x)if(x.key===h)return m.next=x.next,g||(x.next=a.next,a.next=x),x},r=function(a,h){if(a){var g=t(a,h);return g&&g.value}},i=function(a,h,g){var m=t(a,h);m?m.value=g:a.next={key:h,next:a.next,value:g}},o=function(a,h){return a?!!t(a,h):!1},l=function(a,h){if(a)return t(a,h,!0)};return Hb=function(){var h,g={assert:function(m){if(!g.has(m))throw new e("Side channel does not contain "+n(m))},delete:function(m){var x=h&&h.next,w=l(h,m);return w&&x&&x===w&&(h=void 0),!!w},get:function(m){return r(h,m)},has:function(m){return o(h,m)},set:function(m,x){h||(h={next:void 0}),i(h,m,x)}};return g},Hb}var Wb,Jw;function j_(){return Jw||(Jw=1,Wb=Object),Wb}var Ub,Qw;function vU(){return Qw||(Qw=1,Ub=Error),Ub}var Gb,qw;function bU(){return qw||(qw=1,Gb=EvalError),Gb}var Yb,jw;function yU(){return jw||(jw=1,Yb=RangeError),Yb}var Vb,$w;function mU(){return $w||($w=1,Vb=ReferenceError),Vb}var Zb,eC;function xU(){return eC||(eC=1,Zb=SyntaxError),Zb}var Xb,tC;function wU(){return tC||(tC=1,Xb=URIError),Xb}var Kb,nC;function CU(){return nC||(nC=1,Kb=Math.abs),Kb}var Jb,rC;function _U(){return rC||(rC=1,Jb=Math.floor),Jb}var Qb,iC;function SU(){return iC||(iC=1,Qb=Math.max),Qb}var qb,oC;function EU(){return oC||(oC=1,qb=Math.min),qb}var jb,lC;function TU(){return lC||(lC=1,jb=Math.pow),jb}var $b,sC;function AU(){return sC||(sC=1,$b=Math.round),$b}var ey,aC;function RU(){return aC||(aC=1,ey=Number.isNaN||function(e){return e!==e}),ey}var ty,cC;function IU(){if(cC)return ty;cC=1;var n=RU();return ty=function(t){return n(t)||t===0?t:t<0?-1:1},ty}var ny,uC;function kU(){return uC||(uC=1,ny=Object.getOwnPropertyDescriptor),ny}var ry,fC;function $_(){if(fC)return ry;fC=1;var n=kU();if(n)try{n([],"length")}catch{n=null}return ry=n,ry}var iy,hC;function MU(){if(hC)return iy;hC=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return iy=n,iy}var oy,dC;function LU(){return dC||(dC=1,oy=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),oy}var ly,gC;function OU(){if(gC)return ly;gC=1;var n=typeof Symbol<"u"&&Symbol,e=LU();return ly=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ly}var sy,pC;function e5(){return pC||(pC=1,sy=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),sy}var ay,vC;function t5(){if(vC)return ay;vC=1;var n=j_();return ay=n.getPrototypeOf||null,ay}var cy,bC;function PU(){if(bC)return cy;bC=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(h,g){for(var m=[],x=0;x<h.length;x+=1)m[x]=h[x];for(var w=0;w<g.length;w+=1)m[w+h.length]=g[w];return m},o=function(h,g){for(var m=[],x=g,w=0;x<h.length;x+=1,w+=1)m[w]=h[x];return m},l=function(a,h){for(var g="",m=0;m<a.length;m+=1)g+=a[m],m+1<a.length&&(g+=h);return g};return cy=function(h){var g=this;if(typeof g!="function"||e.apply(g)!==r)throw new TypeError(n+g);for(var m=o(arguments,1),x,w=function(){if(this instanceof x){var O=g.apply(this,i(m,arguments));return Object(O)===O?O:this}return g.apply(h,i(m,arguments))},_=t(0,g.length-m.length),E=[],R=0;R<_;R++)E[R]="$"+R;if(x=Function("binder","return function ("+l(E,",")+"){ return binder.apply(this,arguments); }")(w),g.prototype){var k=function(){};k.prototype=g.prototype,x.prototype=new k,k.prototype=null}return x},cy}var uy,yC;function Gv(){if(yC)return uy;yC=1;var n=PU();return uy=Function.prototype.bind||n,uy}var fy,mC;function s2(){return mC||(mC=1,fy=Function.prototype.call),fy}var hy,xC;function n5(){return xC||(xC=1,hy=Function.prototype.apply),hy}var dy,wC;function DU(){return wC||(wC=1,dy=typeof Reflect<"u"&&Reflect&&Reflect.apply),dy}var gy,CC;function NU(){if(CC)return gy;CC=1;var n=Gv(),e=n5(),t=s2(),r=DU();return gy=r||n.call(t,e),gy}var py,_C;function r5(){if(_C)return py;_C=1;var n=Gv(),e=z1(),t=s2(),r=NU();return py=function(o){if(o.length<1||typeof o[0]!="function")throw new e("a function is required");return r(n,t,o)},py}var vy,SC;function FU(){if(SC)return vy;SC=1;var n=r5(),e=$_(),t;try{t=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var r=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return vy=r&&typeof r.get=="function"?n([r.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,vy}var by,EC;function BU(){if(EC)return by;EC=1;var n=e5(),e=t5(),t=FU();return by=n?function(i){return n(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,by}var yy,TC;function zU(){if(TC)return yy;TC=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Gv();return yy=t.call(n,e),yy}var my,AC;function a2(){if(AC)return my;AC=1;var n,e=j_(),t=vU(),r=bU(),i=yU(),o=mU(),l=xU(),a=z1(),h=wU(),g=CU(),m=_U(),x=SU(),w=EU(),_=TU(),E=AU(),R=IU(),k=Function,O=function(ke){try{return k('"use strict"; return ('+ke+").constructor;")()}catch{}},P=$_(),z=MU(),H=function(){throw new a},G=P?(function(){try{return arguments.callee,H}catch{try{return P(arguments,"callee").get}catch{return H}}})():H,N=OU()(),J=BU(),Y=t5(),K=e5(),fe=n5(),X=s2(),te={},ne=typeof Uint8Array>"u"||!J?n:J(Uint8Array),ue={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":N&&J?J([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":k,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&J?J(J([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N||!J?n:J(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":P,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N||!J?n:J(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&J?J(""[Symbol.iterator]()):n,"%Symbol%":N?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":G,"%TypedArray%":ne,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":fe,"%Object.defineProperty%":z,"%Object.getPrototypeOf%":Y,"%Math.abs%":g,"%Math.floor%":m,"%Math.max%":x,"%Math.min%":w,"%Math.pow%":_,"%Math.round%":E,"%Math.sign%":R,"%Reflect.getPrototypeOf%":K};if(J)try{null.error}catch(ke){var se=J(J(ke));ue["%Error.prototype%"]=se}var $=function ke(Ie){var ze;if(Ie==="%AsyncFunction%")ze=O("async function () {}");else if(Ie==="%GeneratorFunction%")ze=O("function* () {}");else if(Ie==="%AsyncGeneratorFunction%")ze=O("async function* () {}");else if(Ie==="%AsyncGenerator%"){var Ke=ke("%AsyncGeneratorFunction%");Ke&&(ze=Ke.prototype)}else if(Ie==="%AsyncIteratorPrototype%"){var Oe=ke("%AsyncGenerator%");Oe&&J&&(ze=J(Oe.prototype))}return ue[Ie]=ze,ze},re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=Gv(),be=zU(),oe=de.call(X,Array.prototype.concat),Q=de.call(fe,Array.prototype.splice),ge=de.call(X,String.prototype.replace),Te=de.call(X,String.prototype.slice),He=de.call(X,RegExp.prototype.exec),xe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ne=/\\(\\)?/g,Me=function(Ie){var ze=Te(Ie,0,1),Ke=Te(Ie,-1);if(ze==="%"&&Ke!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(Ke==="%"&&ze!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var Oe=[];return ge(Ie,xe,function(ht,$e,it,et){Oe[Oe.length]=it?ge(et,Ne,"$1"):$e||ht}),Oe},Be=function(Ie,ze){var Ke=Ie,Oe;if(be(re,Ke)&&(Oe=re[Ke],Ke="%"+Oe[0]+"%"),be(ue,Ke)){var ht=ue[Ke];if(ht===te&&(ht=$(Ke)),typeof ht>"u"&&!ze)throw new a("intrinsic "+Ie+" exists, but is not available. Please file an issue!");return{alias:Oe,name:Ke,value:ht}}throw new l("intrinsic "+Ie+" does not exist!")};return my=function(Ie,ze){if(typeof Ie!="string"||Ie.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ze!="boolean")throw new a('"allowMissing" argument must be a boolean');if(He(/^%?[^%]*%?$/,Ie)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ke=Me(Ie),Oe=Ke.length>0?Ke[0]:"",ht=Be("%"+Oe+"%",ze),$e=ht.name,it=ht.value,et=!1,st=ht.alias;st&&(Oe=st[0],Q(Ke,oe([0,1],st)));for(var dt=1,Mt=!0;dt<Ke.length;dt+=1){var ot=Ke[dt],nt=Te(ot,0,1),Ot=Te(ot,-1);if((nt==='"'||nt==="'"||nt==="`"||Ot==='"'||Ot==="'"||Ot==="`")&&nt!==Ot)throw new l("property names with quotes must have matching quotes");if((ot==="constructor"||!Mt)&&(et=!0),Oe+="."+ot,$e="%"+Oe+"%",be(ue,$e))it=ue[$e];else if(it!=null){if(!(ot in it)){if(!ze)throw new a("base intrinsic for "+Ie+" exists, but the property is not available.");return}if(P&&dt+1>=Ke.length){var Zt=P(it,ot);Mt=!!Zt,Mt&&"get"in Zt&&!("originalValue"in Zt.get)?it=Zt.get:it=it[ot]}else Mt=be(it,ot),it=it[ot];Mt&&!et&&(ue[$e]=it)}}return it},my}var xy,RC;function i5(){if(RC)return xy;RC=1;var n=a2(),e=r5(),t=e([n("%String.prototype.indexOf%")]);return xy=function(i,o){var l=n(i,!!o);return typeof l=="function"&&t(i,".prototype.")>-1?e([l]):l},xy}var wy,IC;function o5(){if(IC)return wy;IC=1;var n=a2(),e=i5(),t=Uv(),r=z1(),i=n("%Map%",!0),o=e("Map.prototype.get",!0),l=e("Map.prototype.set",!0),a=e("Map.prototype.has",!0),h=e("Map.prototype.delete",!0),g=e("Map.prototype.size",!0);return wy=!!i&&function(){var x,w={assert:function(_){if(!w.has(_))throw new r("Side channel does not contain "+t(_))},delete:function(_){if(x){var E=h(x,_);return g(x)===0&&(x=void 0),E}return!1},get:function(_){if(x)return o(x,_)},has:function(_){return x?a(x,_):!1},set:function(_,E){x||(x=new i),l(x,_,E)}};return w},wy}var Cy,kC;function HU(){if(kC)return Cy;kC=1;var n=a2(),e=i5(),t=Uv(),r=o5(),i=z1(),o=n("%WeakMap%",!0),l=e("WeakMap.prototype.get",!0),a=e("WeakMap.prototype.set",!0),h=e("WeakMap.prototype.has",!0),g=e("WeakMap.prototype.delete",!0);return Cy=o?function(){var x,w,_={assert:function(E){if(!_.has(E))throw new i("Side channel does not contain "+t(E))},delete:function(E){if(o&&E&&(typeof E=="object"||typeof E=="function")){if(x)return g(x,E)}else if(r&&w)return w.delete(E);return!1},get:function(E){return o&&E&&(typeof E=="object"||typeof E=="function")&&x?l(x,E):w&&w.get(E)},has:function(E){return o&&E&&(typeof E=="object"||typeof E=="function")&&x?h(x,E):!!w&&w.has(E)},set:function(E,R){o&&E&&(typeof E=="object"||typeof E=="function")?(x||(x=new o),a(x,E,R)):r&&(w||(w=r()),w.set(E,R))}};return _}:r,Cy}var _y,MC;function WU(){if(MC)return _y;MC=1;var n=z1(),e=Uv(),t=pU(),r=o5(),i=HU(),o=i||r||t;return _y=function(){var a,h={assert:function(g){if(!h.has(g))throw new n("Side channel does not contain "+e(g))},delete:function(g){return!!a&&a.delete(g)},get:function(g){return a&&a.get(g)},has:function(g){return!!a&&a.has(g)},set:function(g,m){a||(a=o()),a.set(g,m)}};return h},_y}var Sy,LC;function c2(){if(LC)return Sy;LC=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Sy={default:t.RFC3986,formatters:{RFC1738:function(r){return n.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},Sy}var Ey,OC;function l5(){if(OC)return Ey;OC=1;var n=c2(),e=Object.prototype.hasOwnProperty,t=Array.isArray,r=(function(){for(var k=[],O=0;O<256;++O)k.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return k})(),i=function(O){for(;O.length>1;){var P=O.pop(),z=P.obj[P.prop];if(t(z)){for(var H=[],G=0;G<z.length;++G)typeof z[G]<"u"&&H.push(z[G]);P.obj[P.prop]=H}}},o=function(O,P){for(var z=P&&P.plainObjects?{__proto__:null}:{},H=0;H<O.length;++H)typeof O[H]<"u"&&(z[H]=O[H]);return z},l=function k(O,P,z){if(!P)return O;if(typeof P!="object"&&typeof P!="function"){if(t(O))O.push(P);else if(O&&typeof O=="object")(z&&(z.plainObjects||z.allowPrototypes)||!e.call(Object.prototype,P))&&(O[P]=!0);else return[O,P];return O}if(!O||typeof O!="object")return[O].concat(P);var H=O;return t(O)&&!t(P)&&(H=o(O,z)),t(O)&&t(P)?(P.forEach(function(G,N){if(e.call(O,N)){var J=O[N];J&&typeof J=="object"&&G&&typeof G=="object"?O[N]=k(J,G,z):O.push(G)}else O[N]=G}),O):Object.keys(P).reduce(function(G,N){var J=P[N];return e.call(G,N)?G[N]=k(G[N],J,z):G[N]=J,G},H)},a=function(O,P){return Object.keys(P).reduce(function(z,H){return z[H]=P[H],z},O)},h=function(k,O,P){var z=k.replace(/\+/g," ");if(P==="iso-8859-1")return z.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(z)}catch{return z}},g=1024,m=function(O,P,z,H,G){if(O.length===0)return O;var N=O;if(typeof O=="symbol"?N=Symbol.prototype.toString.call(O):typeof O!="string"&&(N=String(O)),z==="iso-8859-1")return escape(N).replace(/%u[0-9a-f]{4}/gi,function(ne){return"%26%23"+parseInt(ne.slice(2),16)+"%3B"});for(var J="",Y=0;Y<N.length;Y+=g){for(var K=N.length>=g?N.slice(Y,Y+g):N,fe=[],X=0;X<K.length;++X){var te=K.charCodeAt(X);if(te===45||te===46||te===95||te===126||te>=48&&te<=57||te>=65&&te<=90||te>=97&&te<=122||G===n.RFC1738&&(te===40||te===41)){fe[fe.length]=K.charAt(X);continue}if(te<128){fe[fe.length]=r[te];continue}if(te<2048){fe[fe.length]=r[192|te>>6]+r[128|te&63];continue}if(te<55296||te>=57344){fe[fe.length]=r[224|te>>12]+r[128|te>>6&63]+r[128|te&63];continue}X+=1,te=65536+((te&1023)<<10|K.charCodeAt(X)&1023),fe[fe.length]=r[240|te>>18]+r[128|te>>12&63]+r[128|te>>6&63]+r[128|te&63]}J+=fe.join("")}return J},x=function(O){for(var P=[{obj:{o:O},prop:"o"}],z=[],H=0;H<P.length;++H)for(var G=P[H],N=G.obj[G.prop],J=Object.keys(N),Y=0;Y<J.length;++Y){var K=J[Y],fe=N[K];typeof fe=="object"&&fe!==null&&z.indexOf(fe)===-1&&(P.push({obj:N,prop:K}),z.push(fe))}return i(P),O},w=function(O){return Object.prototype.toString.call(O)==="[object RegExp]"},_=function(O){return!O||typeof O!="object"?!1:!!(O.constructor&&O.constructor.isBuffer&&O.constructor.isBuffer(O))},E=function(O,P){return[].concat(O,P)},R=function(O,P){if(t(O)){for(var z=[],H=0;H<O.length;H+=1)z.push(P(O[H]));return z}return P(O)};return Ey={arrayToObject:o,assign:a,combine:E,compact:x,decode:h,encode:m,isBuffer:_,isRegExp:w,maybeMap:R,merge:l},Ey}var Ty,PC;function UU(){if(PC)return Ty;PC=1;var n=WU(),e=l5(),t=c2(),r=Object.prototype.hasOwnProperty,i={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,O){return k+"["+O+"]"},repeat:function(k){return k}},o=Array.isArray,l=Array.prototype.push,a=function(R,k){l.apply(R,o(k)?k:[k])},h=Date.prototype.toISOString,g=t.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:g,formatter:t.formatters[g],indices:!1,serializeDate:function(k){return h.call(k)},skipNulls:!1,strictNullHandling:!1},x=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},w={},_=function R(k,O,P,z,H,G,N,J,Y,K,fe,X,te,ne,ue,se,$,re){for(var de=k,be=re,oe=0,Q=!1;(be=be.get(w))!==void 0&&!Q;){var ge=be.get(k);if(oe+=1,typeof ge<"u"){if(ge===oe)throw new RangeError("Cyclic object value");Q=!0}typeof be.get(w)>"u"&&(oe=0)}if(typeof K=="function"?de=K(O,de):de instanceof Date?de=te(de):P==="comma"&&o(de)&&(de=e.maybeMap(de,function($e){return $e instanceof Date?te($e):$e})),de===null){if(G)return Y&&!se?Y(O,m.encoder,$,"key",ne):O;de=""}if(x(de)||e.isBuffer(de)){if(Y){var Te=se?O:Y(O,m.encoder,$,"key",ne);return[ue(Te)+"="+ue(Y(de,m.encoder,$,"value",ne))]}return[ue(O)+"="+ue(String(de))]}var He=[];if(typeof de>"u")return He;var xe;if(P==="comma"&&o(de))se&&Y&&(de=e.maybeMap(de,Y)),xe=[{value:de.length>0?de.join(",")||null:void 0}];else if(o(K))xe=K;else{var Ne=Object.keys(de);xe=fe?Ne.sort(fe):Ne}var Me=J?String(O).replace(/\./g,"%2E"):String(O),Be=z&&o(de)&&de.length===1?Me+"[]":Me;if(H&&o(de)&&de.length===0)return Be+"[]";for(var ke=0;ke<xe.length;++ke){var Ie=xe[ke],ze=typeof Ie=="object"&&Ie&&typeof Ie.value<"u"?Ie.value:de[Ie];if(!(N&&ze===null)){var Ke=X&&J?String(Ie).replace(/\./g,"%2E"):String(Ie),Oe=o(de)?typeof P=="function"?P(Be,Ke):Be:Be+(X?"."+Ke:"["+Ke+"]");re.set(k,oe);var ht=n();ht.set(w,re),a(He,R(ze,Oe,P,z,H,G,N,J,P==="comma"&&se&&o(de)?null:Y,K,fe,X,te,ne,ue,se,$,ht))}}return He},E=function(k){if(!k)return m;if(typeof k.allowEmptyArrays<"u"&&typeof k.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof k.encodeDotInKeys<"u"&&typeof k.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(k.encoder!==null&&typeof k.encoder<"u"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var O=k.charset||m.charset;if(typeof k.charset<"u"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var P=t.default;if(typeof k.format<"u"){if(!r.call(t.formatters,k.format))throw new TypeError("Unknown format option provided.");P=k.format}var z=t.formatters[P],H=m.filter;(typeof k.filter=="function"||o(k.filter))&&(H=k.filter);var G;if(k.arrayFormat in i?G=k.arrayFormat:"indices"in k?G=k.indices?"indices":"repeat":G=m.arrayFormat,"commaRoundTrip"in k&&typeof k.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var N=typeof k.allowDots>"u"?k.encodeDotInKeys===!0?!0:m.allowDots:!!k.allowDots;return{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:m.addQueryPrefix,allowDots:N,allowEmptyArrays:typeof k.allowEmptyArrays=="boolean"?!!k.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:G,charset:O,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!k.commaRoundTrip,delimiter:typeof k.delimiter>"u"?m.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:m.encode,encodeDotInKeys:typeof k.encodeDotInKeys=="boolean"?k.encodeDotInKeys:m.encodeDotInKeys,encoder:typeof k.encoder=="function"?k.encoder:m.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:m.encodeValuesOnly,filter:H,format:P,formatter:z,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:m.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:m.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:m.strictNullHandling}};return Ty=function(R,k){var O=R,P=E(k),z,H;typeof P.filter=="function"?(H=P.filter,O=H("",O)):o(P.filter)&&(H=P.filter,z=H);var G=[];if(typeof O!="object"||O===null)return"";var N=i[P.arrayFormat],J=N==="comma"&&P.commaRoundTrip;z||(z=Object.keys(O)),P.sort&&z.sort(P.sort);for(var Y=n(),K=0;K<z.length;++K){var fe=z[K],X=O[fe];P.skipNulls&&X===null||a(G,_(X,fe,N,J,P.allowEmptyArrays,P.strictNullHandling,P.skipNulls,P.encodeDotInKeys,P.encode?P.encoder:null,P.filter,P.sort,P.allowDots,P.serializeDate,P.format,P.formatter,P.encodeValuesOnly,P.charset,Y))}var te=G.join(P.delimiter),ne=P.addQueryPrefix===!0?"?":"";return P.charsetSentinel&&(P.charset==="iso-8859-1"?ne+="utf8=%26%2310003%3B&":ne+="utf8=%E2%9C%93&"),te.length>0?ne+te:""},Ty}var Ay,DC;function GU(){if(DC)return Ay;DC=1;var n=l5(),e=Object.prototype.hasOwnProperty,t=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(w){return w.replace(/&#(\d+);/g,function(_,E){return String.fromCharCode(parseInt(E,10))})},o=function(w,_,E){if(w&&typeof w=="string"&&_.comma&&w.indexOf(",")>-1)return w.split(",");if(_.throwOnLimitExceeded&&E>=_.arrayLimit)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");return w},l="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",h=function(_,E){var R={__proto__:null},k=E.ignoreQueryPrefix?_.replace(/^\?/,""):_;k=k.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var O=E.parameterLimit===1/0?void 0:E.parameterLimit,P=k.split(E.delimiter,E.throwOnLimitExceeded?O+1:O);if(E.throwOnLimitExceeded&&P.length>O)throw new RangeError("Parameter limit exceeded. Only "+O+" parameter"+(O===1?"":"s")+" allowed.");var z=-1,H,G=E.charset;if(E.charsetSentinel)for(H=0;H<P.length;++H)P[H].indexOf("utf8=")===0&&(P[H]===a?G="utf-8":P[H]===l&&(G="iso-8859-1"),z=H,H=P.length);for(H=0;H<P.length;++H)if(H!==z){var N=P[H],J=N.indexOf("]="),Y=J===-1?N.indexOf("="):J+1,K,fe;Y===-1?(K=E.decoder(N,r.decoder,G,"key"),fe=E.strictNullHandling?null:""):(K=E.decoder(N.slice(0,Y),r.decoder,G,"key"),fe=n.maybeMap(o(N.slice(Y+1),E,t(R[K])?R[K].length:0),function(te){return E.decoder(te,r.decoder,G,"value")})),fe&&E.interpretNumericEntities&&G==="iso-8859-1"&&(fe=i(String(fe))),N.indexOf("[]=")>-1&&(fe=t(fe)?[fe]:fe);var X=e.call(R,K);X&&E.duplicates==="combine"?R[K]=n.combine(R[K],fe):(!X||E.duplicates==="last")&&(R[K]=fe)}return R},g=function(w,_,E,R){var k=0;if(w.length>0&&w[w.length-1]==="[]"){var O=w.slice(0,-1).join("");k=Array.isArray(_)&&_[O]?_[O].length:0}for(var P=R?_:o(_,E,k),z=w.length-1;z>=0;--z){var H,G=w[z];if(G==="[]"&&E.parseArrays)H=E.allowEmptyArrays&&(P===""||E.strictNullHandling&&P===null)?[]:n.combine([],P);else{H=E.plainObjects?{__proto__:null}:{};var N=G.charAt(0)==="["&&G.charAt(G.length-1)==="]"?G.slice(1,-1):G,J=E.decodeDotInKeys?N.replace(/%2E/g,"."):N,Y=parseInt(J,10);!E.parseArrays&&J===""?H={0:P}:!isNaN(Y)&&G!==J&&String(Y)===J&&Y>=0&&E.parseArrays&&Y<=E.arrayLimit?(H=[],H[Y]=P):J!=="__proto__"&&(H[J]=P)}P=H}return P},m=function(_,E,R,k){if(_){var O=R.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,P=/(\[[^[\]]*])/,z=/(\[[^[\]]*])/g,H=R.depth>0&&P.exec(O),G=H?O.slice(0,H.index):O,N=[];if(G){if(!R.plainObjects&&e.call(Object.prototype,G)&&!R.allowPrototypes)return;N.push(G)}for(var J=0;R.depth>0&&(H=z.exec(O))!==null&&J<R.depth;){if(J+=1,!R.plainObjects&&e.call(Object.prototype,H[1].slice(1,-1))&&!R.allowPrototypes)return;N.push(H[1])}if(H){if(R.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+R.depth+" and strictDepth is true");N.push("["+O.slice(H.index)+"]")}return g(N,E,R,k)}},x=function(_){if(!_)return r;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.decodeDotInKeys<"u"&&typeof _.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(_.decoder!==null&&typeof _.decoder<"u"&&typeof _.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof _.throwOnLimitExceeded<"u"&&typeof _.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var E=typeof _.charset>"u"?r.charset:_.charset,R=typeof _.duplicates>"u"?r.duplicates:_.duplicates;if(R!=="combine"&&R!=="first"&&R!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var k=typeof _.allowDots>"u"?_.decodeDotInKeys===!0?!0:r.allowDots:!!_.allowDots;return{allowDots:k,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes=="boolean"?_.allowPrototypes:r.allowPrototypes,allowSparse:typeof _.allowSparse=="boolean"?_.allowSparse:r.allowSparse,arrayLimit:typeof _.arrayLimit=="number"?_.arrayLimit:r.arrayLimit,charset:E,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:r.charsetSentinel,comma:typeof _.comma=="boolean"?_.comma:r.comma,decodeDotInKeys:typeof _.decodeDotInKeys=="boolean"?_.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof _.decoder=="function"?_.decoder:r.decoder,delimiter:typeof _.delimiter=="string"||n.isRegExp(_.delimiter)?_.delimiter:r.delimiter,depth:typeof _.depth=="number"||_.depth===!1?+_.depth:r.depth,duplicates:R,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities=="boolean"?_.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof _.parameterLimit=="number"?_.parameterLimit:r.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects=="boolean"?_.plainObjects:r.plainObjects,strictDepth:typeof _.strictDepth=="boolean"?!!_.strictDepth:r.strictDepth,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof _.throwOnLimitExceeded=="boolean"?_.throwOnLimitExceeded:!1}};return Ay=function(w,_){var E=x(_);if(w===""||w===null||typeof w>"u")return E.plainObjects?{__proto__:null}:{};for(var R=typeof w=="string"?h(w,E):w,k=E.plainObjects?{__proto__:null}:{},O=Object.keys(R),P=0;P<O.length;++P){var z=O[P],H=m(z,R[z],E,typeof w=="string");k=n.merge(k,H,E)}return E.allowSparse===!0?k:n.compact(k)},Ay}var Ry,NC;function YU(){if(NC)return Ry;NC=1;var n=UU(),e=GU(),t=c2();return Ry={formats:t,parse:e,stringify:n},Ry}var VU=YU();const ZU=L1(VU),pm={StoredContexts:{},defaultHandler:()=>{}},s5={Init:()=>{},Create:n=>{const e=n.method+n.url;return pm.StoredContexts[e]=n,XU(n)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:n=>{pm.defaultHandler=n}};function XU(n){const e=`[${n.method}] ${n.url}`;return{Call:async r=>{let{url:i,method:o,stream:l,paramType:a}=n;const{po:h,onStream:g,onStreamEnd:m,noDefaultHandle:x=[]}=r??{};(a==="query"||o==="GET")&&h!==void 0&&(i+="?"+ZU.stringify(h,{arrayFormat:"comma"}));const w={method:o,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(a==="form"){const R=new FormData;if(h!==void 0)for(const k in h){const O=h[k];R.append(k,O)}w.body=R}else(a==="body"||a===void 0&&n.method!=="GET")&&(w.body=JSON.stringify(h),w.headers["Content-Type"]="application/json;charset=UTF-8");let _={errorCode:0,message:""};const E=Date.now();i=s5.FetchBaseUrl()+i;try{let R=await fetch(i,w);if(R.ok===!1)return _.errorCode=R.status,_.message=R.statusText,_;{const k=new TextDecoder("utf-8");if(l){if(R.body){let O=R.body.getReader(),P="";for(;;){const z=await O.read();if(z.done)break;const H=k.decode(z.value).trim();P+=H;let G=null;try{const N=H.split("\0");let J=N[N.length-1];for(let Y=N.length-2;Y>=0;Y--)if(N[Y].trim().length!==0){J=N[Y];break}G=await JSON.parse(J)}catch{try{const J=P.split("\0");let Y=J[J.length-1];for(let K=J.length-2;K>=0;K--)if(J[K].trim().length!==0){Y=J[K];break}G=await JSON.parse(Y)}catch{}}if(G!=null&&(Object.keys(G).includes("err_code")?_.errorCode=G.err_code:(_.errorCode=0,_.data=G,P="",z.done?m==null||m(_.data):g==null||g(_.data))),z.done)break}}}else if(R.body){const P=await R.body.getReader().read(),z=k.decode(P.value);if(z==="null")return _;{let H=await JSON.parse(z.replaceAll("\0",""));Object.keys(H).includes("err_code")?(_.errorCode=H.err_code,_.message=H.err_msg):_.data=H}}}}catch(R){console.warn(R),_.errorCode=-1,_.message=R.message}return console.debug(`${e} ${Date.now()-E}ms`),x!==!0&&await pm.defaultHandler(_,x),_}}}exports.ABase=Wi;exports.ABaseStyleKeys=o3;exports.AButton=Ic;exports.AButtonStyleKeys=s3;exports.AButtonTypes=aA;exports.ACheckBox=w1;exports.ACheckBoxStyleKeys=f3;exports.AChip=wm;exports.AChipKeys=M3;exports.AChips=x6;exports.AClock=N6;exports.AColFrame=D3;exports.ADatePicker=Em;exports.ADatePickerStyleKeys=C3;exports.ADatePickerTypes=h8;exports.ADateRangePicker=_m;exports.ADateRangePickerStyleKeys=_3;exports.ADialog=w8;exports.ADialogStyleKeys=h3;exports.ADialogTypes=x8;exports.ADivideFrame=F3;exports.AEditor=Dz;exports.AEditorStyleKeys=u3;exports.AFileBox=L8;exports.AFileBoxStyleKeys=y3;exports.AFileUploader=s9;exports.AFileUploaderStyleKeys=m3;exports.AFloatMenu=H3;exports.AFloatMenuKeys=A3;exports.AFrameStyleKeys=T3;exports.AGrow=zg;exports.AIcon=uo;exports.AIconButton=Ba;exports.AIconButtonStyleKeys=S3;exports.AIconButtonTypes=cA;exports.AIconHOC=gT;exports.AIcons=ym;exports.AInput=sg;exports.AInputStyleKeys=a3;exports.AInputTypes=q6;exports.AListView=y9;exports.AListViewStyleKeys=x3;exports.ALoadingBorder=Am;exports.ALoadingBorderKeys=R3;exports.AMultiSelect=V9;exports.AMultiSelectStyleKeys=g3;exports.ANumInput=d9;exports.AOverflowFrame=nd;exports.AProgressBar=ZC;exports.ARadioSelect=k9;exports.ARadioSelectKeys=k3;exports.ARowFrame=Ml;exports.ASelect=Td;exports.ASelectStyleKeys=d3;exports.ASelectTypes=dR;exports.ASpace=cs;exports.AStepper=lI;exports.AStepperStyleKeys=w3;exports.ASwitch=jC;exports.ASwitchFrame=N3;exports.ASwitchStyleKeys=v3;exports.ATab=U3;exports.ATabStyleKeys=b3;exports.ATabTypes=mI;exports.ATable=Lk;exports.ATableStyleKeys=E3;exports.AText=X3;exports.ATextArea=Vk;exports.ATextAreaStyleKeys=c3;exports.ATextAreaTypes=Yk;exports.AThemeButton=DA;exports.AThemes=pp;exports.ATooltip=qC;exports.ATooltipStyleKeys=l3;exports.ATree=aU;exports.ATreeStyleKeys=p3;exports.AWrap=lg;exports.AWrapKeys=I3;exports.AWrapPropsExtract=Bg;exports.AWrapTypes=pA;exports.ApiContext=s5;exports.BodyStyleKeys=i3;exports.CreateADC=A8;exports.DefaultOptionRenderer=W3;exports.EDir12=O1;exports.EDir4=ic;exports.FileSizeTrans=Mg;exports.Icons=_v;exports.IsCursorPointer=UC;exports.IsFixedShape=WC;exports.IsInteractive=GC;exports.NoSelect=zC;exports.NoTransition=HC;exports.Resources=Nr;exports.SetResources=IT;exports.alphanumericRegex=_6;exports.bound=gp;exports.cbF=Vr;exports.changeSemanticMode=xm;exports.componentStyleKeys=AA;exports.createEvent=Eg;exports.dateF=Yn;exports.dbF=Ah;exports.defaultPredicate=Y3;exports.dlgF=R8;exports.emailIdRegex=T6;exports.emailRegex=E6;exports.fileF=Tg;exports.getFileKey=z3;exports.getMonthsOptions=Ap;exports.getYearsOptions=Sm;exports.hangulRegex=R6;exports.hexRegex=A6;exports.key=BC;exports.noHanguljamoRegex=k6;exports.noSpaceRegex=I6;exports.numF=G0;exports.objF=rr;exports.onlyAlphanumericRegex=S6;exports.paletteKeys=$C;exports.paletteModes=Sv;exports.passwordRegex=L6;exports.refinedDesignTokens=lc;exports.sF=bt;exports.semanticKeys=n3;exports.semanticModes=x1;exports.setDir12Style=mm;exports.setDir12StyleElem=JC;exports.specialCharRegex=M6;exports.strF=Cm;exports.tableF=_d;exports.textMeasurement=kg;exports.treeF=Qd;exports.useADialogCore=E8;exports.useADialogCores=S8;exports.useDB=O3;exports.useEvent=Z3;exports.useInit=G3;exports.useLayoutDB=P3;exports.useOffset=KC;exports.useValues=Do;exports.uuidRegex=O6;
|
|
487
|
+
`+Ce.prev}function gn(Ue,Ce){var Ze=Me(Ue),wt=[];if(Ze){wt.length=Ue.length;for(var Kt=0;Kt<Ue.length;Kt++)wt[Kt]=et(Ue,Kt)?Ce(Ue[Kt],Ue):""}var Gt=typeof te=="function"?te(Ue):[],pn;if(ue){pn={};for(var un=0;un<Gt.length;un++)pn["$"+Gt[un]]=Gt[un]}for(var ft in Ue)et(Ue,ft)&&(Ze&&String(Number(ft))===ft&&ft<Ue.length||ue&&pn["$"+ft]instanceof Symbol||(N.call(/[^\w$]/,ft)?wt.push(Ce(ft,Ue)+": "+Ce(Ue[ft],Ue)):wt.push(ft+": "+Ce(Ue[ft],Ue))));if(typeof te=="function")for(var kt=0;kt<Gt.length;kt++)$.call(Ue,Gt[kt])&&wt.push("["+Ce(Gt[kt])+"]: "+Ce(Ue[Gt[kt]],Ue));return wt}return zb}var Hb,Kw;function pU(){if(Kw)return Hb;Kw=1;var n=Uv(),e=z1(),t=function(a,h,g){for(var m=a,x;(x=m.next)!=null;m=x)if(x.key===h)return m.next=x.next,g||(x.next=a.next,a.next=x),x},r=function(a,h){if(a){var g=t(a,h);return g&&g.value}},i=function(a,h,g){var m=t(a,h);m?m.value=g:a.next={key:h,next:a.next,value:g}},o=function(a,h){return a?!!t(a,h):!1},l=function(a,h){if(a)return t(a,h,!0)};return Hb=function(){var h,g={assert:function(m){if(!g.has(m))throw new e("Side channel does not contain "+n(m))},delete:function(m){var x=h&&h.next,w=l(h,m);return w&&x&&x===w&&(h=void 0),!!w},get:function(m){return r(h,m)},has:function(m){return o(h,m)},set:function(m,x){h||(h={next:void 0}),i(h,m,x)}};return g},Hb}var Wb,Jw;function j4(){return Jw||(Jw=1,Wb=Object),Wb}var Ub,Qw;function vU(){return Qw||(Qw=1,Ub=Error),Ub}var Gb,qw;function bU(){return qw||(qw=1,Gb=EvalError),Gb}var Yb,jw;function yU(){return jw||(jw=1,Yb=RangeError),Yb}var Vb,$w;function mU(){return $w||($w=1,Vb=ReferenceError),Vb}var Zb,eC;function xU(){return eC||(eC=1,Zb=SyntaxError),Zb}var Xb,tC;function wU(){return tC||(tC=1,Xb=URIError),Xb}var Kb,nC;function CU(){return nC||(nC=1,Kb=Math.abs),Kb}var Jb,rC;function _U(){return rC||(rC=1,Jb=Math.floor),Jb}var Qb,iC;function SU(){return iC||(iC=1,Qb=Math.max),Qb}var qb,oC;function EU(){return oC||(oC=1,qb=Math.min),qb}var jb,lC;function TU(){return lC||(lC=1,jb=Math.pow),jb}var $b,sC;function AU(){return sC||(sC=1,$b=Math.round),$b}var ey,aC;function RU(){return aC||(aC=1,ey=Number.isNaN||function(e){return e!==e}),ey}var ty,cC;function IU(){if(cC)return ty;cC=1;var n=RU();return ty=function(t){return n(t)||t===0?t:t<0?-1:1},ty}var ny,uC;function kU(){return uC||(uC=1,ny=Object.getOwnPropertyDescriptor),ny}var ry,fC;function $4(){if(fC)return ry;fC=1;var n=kU();if(n)try{n([],"length")}catch{n=null}return ry=n,ry}var iy,hC;function MU(){if(hC)return iy;hC=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return iy=n,iy}var oy,dC;function LU(){return dC||(dC=1,oy=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),oy}var ly,gC;function OU(){if(gC)return ly;gC=1;var n=typeof Symbol<"u"&&Symbol,e=LU();return ly=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ly}var sy,pC;function e5(){return pC||(pC=1,sy=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),sy}var ay,vC;function t5(){if(vC)return ay;vC=1;var n=j4();return ay=n.getPrototypeOf||null,ay}var cy,bC;function PU(){if(bC)return cy;bC=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(h,g){for(var m=[],x=0;x<h.length;x+=1)m[x]=h[x];for(var w=0;w<g.length;w+=1)m[w+h.length]=g[w];return m},o=function(h,g){for(var m=[],x=g,w=0;x<h.length;x+=1,w+=1)m[w]=h[x];return m},l=function(a,h){for(var g="",m=0;m<a.length;m+=1)g+=a[m],m+1<a.length&&(g+=h);return g};return cy=function(h){var g=this;if(typeof g!="function"||e.apply(g)!==r)throw new TypeError(n+g);for(var m=o(arguments,1),x,w=function(){if(this instanceof x){var O=g.apply(this,i(m,arguments));return Object(O)===O?O:this}return g.apply(h,i(m,arguments))},_=t(0,g.length-m.length),E=[],R=0;R<_;R++)E[R]="$"+R;if(x=Function("binder","return function ("+l(E,",")+"){ return binder.apply(this,arguments); }")(w),g.prototype){var k=function(){};k.prototype=g.prototype,x.prototype=new k,k.prototype=null}return x},cy}var uy,yC;function Gv(){if(yC)return uy;yC=1;var n=PU();return uy=Function.prototype.bind||n,uy}var fy,mC;function s2(){return mC||(mC=1,fy=Function.prototype.call),fy}var hy,xC;function n5(){return xC||(xC=1,hy=Function.prototype.apply),hy}var dy,wC;function DU(){return wC||(wC=1,dy=typeof Reflect<"u"&&Reflect&&Reflect.apply),dy}var gy,CC;function NU(){if(CC)return gy;CC=1;var n=Gv(),e=n5(),t=s2(),r=DU();return gy=r||n.call(t,e),gy}var py,_C;function r5(){if(_C)return py;_C=1;var n=Gv(),e=z1(),t=s2(),r=NU();return py=function(o){if(o.length<1||typeof o[0]!="function")throw new e("a function is required");return r(n,t,o)},py}var vy,SC;function FU(){if(SC)return vy;SC=1;var n=r5(),e=$4(),t;try{t=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var r=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return vy=r&&typeof r.get=="function"?n([r.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,vy}var by,EC;function BU(){if(EC)return by;EC=1;var n=e5(),e=t5(),t=FU();return by=n?function(i){return n(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,by}var yy,TC;function zU(){if(TC)return yy;TC=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Gv();return yy=t.call(n,e),yy}var my,AC;function a2(){if(AC)return my;AC=1;var n,e=j4(),t=vU(),r=bU(),i=yU(),o=mU(),l=xU(),a=z1(),h=wU(),g=CU(),m=_U(),x=SU(),w=EU(),_=TU(),E=AU(),R=IU(),k=Function,O=function(ke){try{return k('"use strict"; return ('+ke+").constructor;")()}catch{}},P=$4(),z=MU(),H=function(){throw new a},G=P?(function(){try{return arguments.callee,H}catch{try{return P(arguments,"callee").get}catch{return H}}})():H,N=OU()(),J=BU(),Y=t5(),K=e5(),fe=n5(),X=s2(),te={},ne=typeof Uint8Array>"u"||!J?n:J(Uint8Array),ue={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":N&&J?J([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":k,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N&&J?J(J([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N||!J?n:J(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":P,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N||!J?n:J(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N&&J?J(""[Symbol.iterator]()):n,"%Symbol%":N?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":G,"%TypedArray%":ne,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":h,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":fe,"%Object.defineProperty%":z,"%Object.getPrototypeOf%":Y,"%Math.abs%":g,"%Math.floor%":m,"%Math.max%":x,"%Math.min%":w,"%Math.pow%":_,"%Math.round%":E,"%Math.sign%":R,"%Reflect.getPrototypeOf%":K};if(J)try{null.error}catch(ke){var se=J(J(ke));ue["%Error.prototype%"]=se}var $=function ke(Ie){var ze;if(Ie==="%AsyncFunction%")ze=O("async function () {}");else if(Ie==="%GeneratorFunction%")ze=O("function* () {}");else if(Ie==="%AsyncGeneratorFunction%")ze=O("async function* () {}");else if(Ie==="%AsyncGenerator%"){var Ke=ke("%AsyncGeneratorFunction%");Ke&&(ze=Ke.prototype)}else if(Ie==="%AsyncIteratorPrototype%"){var Oe=ke("%AsyncGenerator%");Oe&&J&&(ze=J(Oe.prototype))}return ue[Ie]=ze,ze},re={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},de=Gv(),be=zU(),oe=de.call(X,Array.prototype.concat),Q=de.call(fe,Array.prototype.splice),ge=de.call(X,String.prototype.replace),Te=de.call(X,String.prototype.slice),He=de.call(X,RegExp.prototype.exec),xe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ne=/\\(\\)?/g,Me=function(Ie){var ze=Te(Ie,0,1),Ke=Te(Ie,-1);if(ze==="%"&&Ke!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(Ke==="%"&&ze!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var Oe=[];return ge(Ie,xe,function(ht,$e,it,et){Oe[Oe.length]=it?ge(et,Ne,"$1"):$e||ht}),Oe},Be=function(Ie,ze){var Ke=Ie,Oe;if(be(re,Ke)&&(Oe=re[Ke],Ke="%"+Oe[0]+"%"),be(ue,Ke)){var ht=ue[Ke];if(ht===te&&(ht=$(Ke)),typeof ht>"u"&&!ze)throw new a("intrinsic "+Ie+" exists, but is not available. Please file an issue!");return{alias:Oe,name:Ke,value:ht}}throw new l("intrinsic "+Ie+" does not exist!")};return my=function(Ie,ze){if(typeof Ie!="string"||Ie.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ze!="boolean")throw new a('"allowMissing" argument must be a boolean');if(He(/^%?[^%]*%?$/,Ie)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ke=Me(Ie),Oe=Ke.length>0?Ke[0]:"",ht=Be("%"+Oe+"%",ze),$e=ht.name,it=ht.value,et=!1,st=ht.alias;st&&(Oe=st[0],Q(Ke,oe([0,1],st)));for(var dt=1,Mt=!0;dt<Ke.length;dt+=1){var ot=Ke[dt],nt=Te(ot,0,1),Ot=Te(ot,-1);if((nt==='"'||nt==="'"||nt==="`"||Ot==='"'||Ot==="'"||Ot==="`")&&nt!==Ot)throw new l("property names with quotes must have matching quotes");if((ot==="constructor"||!Mt)&&(et=!0),Oe+="."+ot,$e="%"+Oe+"%",be(ue,$e))it=ue[$e];else if(it!=null){if(!(ot in it)){if(!ze)throw new a("base intrinsic for "+Ie+" exists, but the property is not available.");return}if(P&&dt+1>=Ke.length){var Zt=P(it,ot);Mt=!!Zt,Mt&&"get"in Zt&&!("originalValue"in Zt.get)?it=Zt.get:it=it[ot]}else Mt=be(it,ot),it=it[ot];Mt&&!et&&(ue[$e]=it)}}return it},my}var xy,RC;function i5(){if(RC)return xy;RC=1;var n=a2(),e=r5(),t=e([n("%String.prototype.indexOf%")]);return xy=function(i,o){var l=n(i,!!o);return typeof l=="function"&&t(i,".prototype.")>-1?e([l]):l},xy}var wy,IC;function o5(){if(IC)return wy;IC=1;var n=a2(),e=i5(),t=Uv(),r=z1(),i=n("%Map%",!0),o=e("Map.prototype.get",!0),l=e("Map.prototype.set",!0),a=e("Map.prototype.has",!0),h=e("Map.prototype.delete",!0),g=e("Map.prototype.size",!0);return wy=!!i&&function(){var x,w={assert:function(_){if(!w.has(_))throw new r("Side channel does not contain "+t(_))},delete:function(_){if(x){var E=h(x,_);return g(x)===0&&(x=void 0),E}return!1},get:function(_){if(x)return o(x,_)},has:function(_){return x?a(x,_):!1},set:function(_,E){x||(x=new i),l(x,_,E)}};return w},wy}var Cy,kC;function HU(){if(kC)return Cy;kC=1;var n=a2(),e=i5(),t=Uv(),r=o5(),i=z1(),o=n("%WeakMap%",!0),l=e("WeakMap.prototype.get",!0),a=e("WeakMap.prototype.set",!0),h=e("WeakMap.prototype.has",!0),g=e("WeakMap.prototype.delete",!0);return Cy=o?function(){var x,w,_={assert:function(E){if(!_.has(E))throw new i("Side channel does not contain "+t(E))},delete:function(E){if(o&&E&&(typeof E=="object"||typeof E=="function")){if(x)return g(x,E)}else if(r&&w)return w.delete(E);return!1},get:function(E){return o&&E&&(typeof E=="object"||typeof E=="function")&&x?l(x,E):w&&w.get(E)},has:function(E){return o&&E&&(typeof E=="object"||typeof E=="function")&&x?h(x,E):!!w&&w.has(E)},set:function(E,R){o&&E&&(typeof E=="object"||typeof E=="function")?(x||(x=new o),a(x,E,R)):r&&(w||(w=r()),w.set(E,R))}};return _}:r,Cy}var _y,MC;function WU(){if(MC)return _y;MC=1;var n=z1(),e=Uv(),t=pU(),r=o5(),i=HU(),o=i||r||t;return _y=function(){var a,h={assert:function(g){if(!h.has(g))throw new n("Side channel does not contain "+e(g))},delete:function(g){return!!a&&a.delete(g)},get:function(g){return a&&a.get(g)},has:function(g){return!!a&&a.has(g)},set:function(g,m){a||(a=o()),a.set(g,m)}};return h},_y}var Sy,LC;function c2(){if(LC)return Sy;LC=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Sy={default:t.RFC3986,formatters:{RFC1738:function(r){return n.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},Sy}var Ey,OC;function l5(){if(OC)return Ey;OC=1;var n=c2(),e=Object.prototype.hasOwnProperty,t=Array.isArray,r=(function(){for(var k=[],O=0;O<256;++O)k.push("%"+((O<16?"0":"")+O.toString(16)).toUpperCase());return k})(),i=function(O){for(;O.length>1;){var P=O.pop(),z=P.obj[P.prop];if(t(z)){for(var H=[],G=0;G<z.length;++G)typeof z[G]<"u"&&H.push(z[G]);P.obj[P.prop]=H}}},o=function(O,P){for(var z=P&&P.plainObjects?{__proto__:null}:{},H=0;H<O.length;++H)typeof O[H]<"u"&&(z[H]=O[H]);return z},l=function k(O,P,z){if(!P)return O;if(typeof P!="object"&&typeof P!="function"){if(t(O))O.push(P);else if(O&&typeof O=="object")(z&&(z.plainObjects||z.allowPrototypes)||!e.call(Object.prototype,P))&&(O[P]=!0);else return[O,P];return O}if(!O||typeof O!="object")return[O].concat(P);var H=O;return t(O)&&!t(P)&&(H=o(O,z)),t(O)&&t(P)?(P.forEach(function(G,N){if(e.call(O,N)){var J=O[N];J&&typeof J=="object"&&G&&typeof G=="object"?O[N]=k(J,G,z):O.push(G)}else O[N]=G}),O):Object.keys(P).reduce(function(G,N){var J=P[N];return e.call(G,N)?G[N]=k(G[N],J,z):G[N]=J,G},H)},a=function(O,P){return Object.keys(P).reduce(function(z,H){return z[H]=P[H],z},O)},h=function(k,O,P){var z=k.replace(/\+/g," ");if(P==="iso-8859-1")return z.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(z)}catch{return z}},g=1024,m=function(O,P,z,H,G){if(O.length===0)return O;var N=O;if(typeof O=="symbol"?N=Symbol.prototype.toString.call(O):typeof O!="string"&&(N=String(O)),z==="iso-8859-1")return escape(N).replace(/%u[0-9a-f]{4}/gi,function(ne){return"%26%23"+parseInt(ne.slice(2),16)+"%3B"});for(var J="",Y=0;Y<N.length;Y+=g){for(var K=N.length>=g?N.slice(Y,Y+g):N,fe=[],X=0;X<K.length;++X){var te=K.charCodeAt(X);if(te===45||te===46||te===95||te===126||te>=48&&te<=57||te>=65&&te<=90||te>=97&&te<=122||G===n.RFC1738&&(te===40||te===41)){fe[fe.length]=K.charAt(X);continue}if(te<128){fe[fe.length]=r[te];continue}if(te<2048){fe[fe.length]=r[192|te>>6]+r[128|te&63];continue}if(te<55296||te>=57344){fe[fe.length]=r[224|te>>12]+r[128|te>>6&63]+r[128|te&63];continue}X+=1,te=65536+((te&1023)<<10|K.charCodeAt(X)&1023),fe[fe.length]=r[240|te>>18]+r[128|te>>12&63]+r[128|te>>6&63]+r[128|te&63]}J+=fe.join("")}return J},x=function(O){for(var P=[{obj:{o:O},prop:"o"}],z=[],H=0;H<P.length;++H)for(var G=P[H],N=G.obj[G.prop],J=Object.keys(N),Y=0;Y<J.length;++Y){var K=J[Y],fe=N[K];typeof fe=="object"&&fe!==null&&z.indexOf(fe)===-1&&(P.push({obj:N,prop:K}),z.push(fe))}return i(P),O},w=function(O){return Object.prototype.toString.call(O)==="[object RegExp]"},_=function(O){return!O||typeof O!="object"?!1:!!(O.constructor&&O.constructor.isBuffer&&O.constructor.isBuffer(O))},E=function(O,P){return[].concat(O,P)},R=function(O,P){if(t(O)){for(var z=[],H=0;H<O.length;H+=1)z.push(P(O[H]));return z}return P(O)};return Ey={arrayToObject:o,assign:a,combine:E,compact:x,decode:h,encode:m,isBuffer:_,isRegExp:w,maybeMap:R,merge:l},Ey}var Ty,PC;function UU(){if(PC)return Ty;PC=1;var n=WU(),e=l5(),t=c2(),r=Object.prototype.hasOwnProperty,i={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,O){return k+"["+O+"]"},repeat:function(k){return k}},o=Array.isArray,l=Array.prototype.push,a=function(R,k){l.apply(R,o(k)?k:[k])},h=Date.prototype.toISOString,g=t.default,m={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:g,formatter:t.formatters[g],indices:!1,serializeDate:function(k){return h.call(k)},skipNulls:!1,strictNullHandling:!1},x=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},w={},_=function R(k,O,P,z,H,G,N,J,Y,K,fe,X,te,ne,ue,se,$,re){for(var de=k,be=re,oe=0,Q=!1;(be=be.get(w))!==void 0&&!Q;){var ge=be.get(k);if(oe+=1,typeof ge<"u"){if(ge===oe)throw new RangeError("Cyclic object value");Q=!0}typeof be.get(w)>"u"&&(oe=0)}if(typeof K=="function"?de=K(O,de):de instanceof Date?de=te(de):P==="comma"&&o(de)&&(de=e.maybeMap(de,function($e){return $e instanceof Date?te($e):$e})),de===null){if(G)return Y&&!se?Y(O,m.encoder,$,"key",ne):O;de=""}if(x(de)||e.isBuffer(de)){if(Y){var Te=se?O:Y(O,m.encoder,$,"key",ne);return[ue(Te)+"="+ue(Y(de,m.encoder,$,"value",ne))]}return[ue(O)+"="+ue(String(de))]}var He=[];if(typeof de>"u")return He;var xe;if(P==="comma"&&o(de))se&&Y&&(de=e.maybeMap(de,Y)),xe=[{value:de.length>0?de.join(",")||null:void 0}];else if(o(K))xe=K;else{var Ne=Object.keys(de);xe=fe?Ne.sort(fe):Ne}var Me=J?String(O).replace(/\./g,"%2E"):String(O),Be=z&&o(de)&&de.length===1?Me+"[]":Me;if(H&&o(de)&&de.length===0)return Be+"[]";for(var ke=0;ke<xe.length;++ke){var Ie=xe[ke],ze=typeof Ie=="object"&&Ie&&typeof Ie.value<"u"?Ie.value:de[Ie];if(!(N&&ze===null)){var Ke=X&&J?String(Ie).replace(/\./g,"%2E"):String(Ie),Oe=o(de)?typeof P=="function"?P(Be,Ke):Be:Be+(X?"."+Ke:"["+Ke+"]");re.set(k,oe);var ht=n();ht.set(w,re),a(He,R(ze,Oe,P,z,H,G,N,J,P==="comma"&&se&&o(de)?null:Y,K,fe,X,te,ne,ue,se,$,ht))}}return He},E=function(k){if(!k)return m;if(typeof k.allowEmptyArrays<"u"&&typeof k.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof k.encodeDotInKeys<"u"&&typeof k.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(k.encoder!==null&&typeof k.encoder<"u"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var O=k.charset||m.charset;if(typeof k.charset<"u"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var P=t.default;if(typeof k.format<"u"){if(!r.call(t.formatters,k.format))throw new TypeError("Unknown format option provided.");P=k.format}var z=t.formatters[P],H=m.filter;(typeof k.filter=="function"||o(k.filter))&&(H=k.filter);var G;if(k.arrayFormat in i?G=k.arrayFormat:"indices"in k?G=k.indices?"indices":"repeat":G=m.arrayFormat,"commaRoundTrip"in k&&typeof k.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var N=typeof k.allowDots>"u"?k.encodeDotInKeys===!0?!0:m.allowDots:!!k.allowDots;return{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:m.addQueryPrefix,allowDots:N,allowEmptyArrays:typeof k.allowEmptyArrays=="boolean"?!!k.allowEmptyArrays:m.allowEmptyArrays,arrayFormat:G,charset:O,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:m.charsetSentinel,commaRoundTrip:!!k.commaRoundTrip,delimiter:typeof k.delimiter>"u"?m.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:m.encode,encodeDotInKeys:typeof k.encodeDotInKeys=="boolean"?k.encodeDotInKeys:m.encodeDotInKeys,encoder:typeof k.encoder=="function"?k.encoder:m.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:m.encodeValuesOnly,filter:H,format:P,formatter:z,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:m.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:m.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:m.strictNullHandling}};return Ty=function(R,k){var O=R,P=E(k),z,H;typeof P.filter=="function"?(H=P.filter,O=H("",O)):o(P.filter)&&(H=P.filter,z=H);var G=[];if(typeof O!="object"||O===null)return"";var N=i[P.arrayFormat],J=N==="comma"&&P.commaRoundTrip;z||(z=Object.keys(O)),P.sort&&z.sort(P.sort);for(var Y=n(),K=0;K<z.length;++K){var fe=z[K],X=O[fe];P.skipNulls&&X===null||a(G,_(X,fe,N,J,P.allowEmptyArrays,P.strictNullHandling,P.skipNulls,P.encodeDotInKeys,P.encode?P.encoder:null,P.filter,P.sort,P.allowDots,P.serializeDate,P.format,P.formatter,P.encodeValuesOnly,P.charset,Y))}var te=G.join(P.delimiter),ne=P.addQueryPrefix===!0?"?":"";return P.charsetSentinel&&(P.charset==="iso-8859-1"?ne+="utf8=%26%2310003%3B&":ne+="utf8=%E2%9C%93&"),te.length>0?ne+te:""},Ty}var Ay,DC;function GU(){if(DC)return Ay;DC=1;var n=l5(),e=Object.prototype.hasOwnProperty,t=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(w){return w.replace(/&#(\d+);/g,function(_,E){return String.fromCharCode(parseInt(E,10))})},o=function(w,_,E){if(w&&typeof w=="string"&&_.comma&&w.indexOf(",")>-1)return w.split(",");if(_.throwOnLimitExceeded&&E>=_.arrayLimit)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");return w},l="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",h=function(_,E){var R={__proto__:null},k=E.ignoreQueryPrefix?_.replace(/^\?/,""):_;k=k.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var O=E.parameterLimit===1/0?void 0:E.parameterLimit,P=k.split(E.delimiter,E.throwOnLimitExceeded?O+1:O);if(E.throwOnLimitExceeded&&P.length>O)throw new RangeError("Parameter limit exceeded. Only "+O+" parameter"+(O===1?"":"s")+" allowed.");var z=-1,H,G=E.charset;if(E.charsetSentinel)for(H=0;H<P.length;++H)P[H].indexOf("utf8=")===0&&(P[H]===a?G="utf-8":P[H]===l&&(G="iso-8859-1"),z=H,H=P.length);for(H=0;H<P.length;++H)if(H!==z){var N=P[H],J=N.indexOf("]="),Y=J===-1?N.indexOf("="):J+1,K,fe;Y===-1?(K=E.decoder(N,r.decoder,G,"key"),fe=E.strictNullHandling?null:""):(K=E.decoder(N.slice(0,Y),r.decoder,G,"key"),fe=n.maybeMap(o(N.slice(Y+1),E,t(R[K])?R[K].length:0),function(te){return E.decoder(te,r.decoder,G,"value")})),fe&&E.interpretNumericEntities&&G==="iso-8859-1"&&(fe=i(String(fe))),N.indexOf("[]=")>-1&&(fe=t(fe)?[fe]:fe);var X=e.call(R,K);X&&E.duplicates==="combine"?R[K]=n.combine(R[K],fe):(!X||E.duplicates==="last")&&(R[K]=fe)}return R},g=function(w,_,E,R){var k=0;if(w.length>0&&w[w.length-1]==="[]"){var O=w.slice(0,-1).join("");k=Array.isArray(_)&&_[O]?_[O].length:0}for(var P=R?_:o(_,E,k),z=w.length-1;z>=0;--z){var H,G=w[z];if(G==="[]"&&E.parseArrays)H=E.allowEmptyArrays&&(P===""||E.strictNullHandling&&P===null)?[]:n.combine([],P);else{H=E.plainObjects?{__proto__:null}:{};var N=G.charAt(0)==="["&&G.charAt(G.length-1)==="]"?G.slice(1,-1):G,J=E.decodeDotInKeys?N.replace(/%2E/g,"."):N,Y=parseInt(J,10);!E.parseArrays&&J===""?H={0:P}:!isNaN(Y)&&G!==J&&String(Y)===J&&Y>=0&&E.parseArrays&&Y<=E.arrayLimit?(H=[],H[Y]=P):J!=="__proto__"&&(H[J]=P)}P=H}return P},m=function(_,E,R,k){if(_){var O=R.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,P=/(\[[^[\]]*])/,z=/(\[[^[\]]*])/g,H=R.depth>0&&P.exec(O),G=H?O.slice(0,H.index):O,N=[];if(G){if(!R.plainObjects&&e.call(Object.prototype,G)&&!R.allowPrototypes)return;N.push(G)}for(var J=0;R.depth>0&&(H=z.exec(O))!==null&&J<R.depth;){if(J+=1,!R.plainObjects&&e.call(Object.prototype,H[1].slice(1,-1))&&!R.allowPrototypes)return;N.push(H[1])}if(H){if(R.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+R.depth+" and strictDepth is true");N.push("["+O.slice(H.index)+"]")}return g(N,E,R,k)}},x=function(_){if(!_)return r;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.decodeDotInKeys<"u"&&typeof _.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(_.decoder!==null&&typeof _.decoder<"u"&&typeof _.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof _.throwOnLimitExceeded<"u"&&typeof _.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var E=typeof _.charset>"u"?r.charset:_.charset,R=typeof _.duplicates>"u"?r.duplicates:_.duplicates;if(R!=="combine"&&R!=="first"&&R!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var k=typeof _.allowDots>"u"?_.decodeDotInKeys===!0?!0:r.allowDots:!!_.allowDots;return{allowDots:k,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes=="boolean"?_.allowPrototypes:r.allowPrototypes,allowSparse:typeof _.allowSparse=="boolean"?_.allowSparse:r.allowSparse,arrayLimit:typeof _.arrayLimit=="number"?_.arrayLimit:r.arrayLimit,charset:E,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:r.charsetSentinel,comma:typeof _.comma=="boolean"?_.comma:r.comma,decodeDotInKeys:typeof _.decodeDotInKeys=="boolean"?_.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof _.decoder=="function"?_.decoder:r.decoder,delimiter:typeof _.delimiter=="string"||n.isRegExp(_.delimiter)?_.delimiter:r.delimiter,depth:typeof _.depth=="number"||_.depth===!1?+_.depth:r.depth,duplicates:R,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities=="boolean"?_.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof _.parameterLimit=="number"?_.parameterLimit:r.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects=="boolean"?_.plainObjects:r.plainObjects,strictDepth:typeof _.strictDepth=="boolean"?!!_.strictDepth:r.strictDepth,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof _.throwOnLimitExceeded=="boolean"?_.throwOnLimitExceeded:!1}};return Ay=function(w,_){var E=x(_);if(w===""||w===null||typeof w>"u")return E.plainObjects?{__proto__:null}:{};for(var R=typeof w=="string"?h(w,E):w,k=E.plainObjects?{__proto__:null}:{},O=Object.keys(R),P=0;P<O.length;++P){var z=O[P],H=m(z,R[z],E,typeof w=="string");k=n.merge(k,H,E)}return E.allowSparse===!0?k:n.compact(k)},Ay}var Ry,NC;function YU(){if(NC)return Ry;NC=1;var n=UU(),e=GU(),t=c2();return Ry={formats:t,parse:e,stringify:n},Ry}var VU=YU();const ZU=L1(VU),pm={StoredContexts:{},defaultHandler:()=>{}},s5={Init:()=>{},Create:n=>{const e=n.method+n.url;return pm.StoredContexts[e]=n,XU(n)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:n=>{pm.defaultHandler=n}};function XU(n){const e=`[${n.method}] ${n.url}`;return{Call:async r=>{let{url:i,method:o,stream:l,paramType:a}=n;const{po:h,onStream:g,onStreamEnd:m,noDefaultHandle:x=[]}=r??{};(a==="query"||o==="GET")&&h!==void 0&&(i+="?"+ZU.stringify(h,{arrayFormat:"comma"}));const w={method:o,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(a==="form"){const R=new FormData;if(h!==void 0)for(const k in h){const O=h[k];R.append(k,O)}w.body=R}else(a==="body"||a===void 0&&n.method!=="GET")&&(w.body=JSON.stringify(h),w.headers["Content-Type"]="application/json;charset=UTF-8");let _={errorCode:0,message:""};const E=Date.now();i=s5.FetchBaseUrl()+i;try{let R=await fetch(i,w);if(R.ok===!1)return _.errorCode=R.status,_.message=R.statusText,_;{const k=new TextDecoder("utf-8");if(l){if(R.body){let O=R.body.getReader(),P="";for(;;){const z=await O.read();if(z.done)break;const H=k.decode(z.value).trim();P+=H;let G=null;try{const N=H.split("\0");let J=N[N.length-1];for(let Y=N.length-2;Y>=0;Y--)if(N[Y].trim().length!==0){J=N[Y];break}G=await JSON.parse(J)}catch{try{const J=P.split("\0");let Y=J[J.length-1];for(let K=J.length-2;K>=0;K--)if(J[K].trim().length!==0){Y=J[K];break}G=await JSON.parse(Y)}catch{}}if(G!=null&&(Object.keys(G).includes("err_code")?_.errorCode=G.err_code:(_.errorCode=0,_.data=G,P="",z.done?m==null||m(_.data):g==null||g(_.data))),z.done)break}}}else if(R.body){const P=await R.body.getReader().read(),z=k.decode(P.value);if(z==="null")return _;{let H=await JSON.parse(z.replaceAll("\0",""));Object.keys(H).includes("err_code")?(_.errorCode=H.err_code,_.message=H.err_msg):_.data=H}}}}catch(R){console.warn(R),_.errorCode=-1,_.message=R.message}return console.debug(`${e} ${Date.now()-E}ms`),x!==!0&&await pm.defaultHandler(_,x),_}}}exports.ABase=Wi;exports.ABaseStyleKeys=o3;exports.AButton=Ic;exports.AButtonStyleKeys=s3;exports.AButtonTypes=aA;exports.ACheckBox=w1;exports.ACheckBoxStyleKeys=f3;exports.AChip=wm;exports.AChipKeys=M3;exports.AChips=x6;exports.AClock=N6;exports.AColFrame=D3;exports.ADatePicker=Em;exports.ADatePickerStyleKeys=C3;exports.ADatePickerTypes=h8;exports.ADateRangePicker=_m;exports.ADateRangePickerStyleKeys=_3;exports.ADialog=w8;exports.ADialogStyleKeys=h3;exports.ADialogTypes=x8;exports.ADivideFrame=F3;exports.AEditor=Dz;exports.AEditorStyleKeys=u3;exports.AFileBox=L8;exports.AFileBoxStyleKeys=y3;exports.AFileUploader=s9;exports.AFileUploaderStyleKeys=m3;exports.AFloatMenu=H3;exports.AFloatMenuKeys=A3;exports.AFrameStyleKeys=T3;exports.AGrow=zg;exports.AIcon=uo;exports.AIconButton=Ba;exports.AIconButtonStyleKeys=S3;exports.AIconButtonTypes=cA;exports.AIconHOC=gT;exports.AIcons=ym;exports.AInput=sg;exports.AInputStyleKeys=a3;exports.AInputTypes=q6;exports.AListView=y9;exports.AListViewStyleKeys=x3;exports.ALoadingBorder=Am;exports.ALoadingBorderKeys=R3;exports.AMultiSelect=V9;exports.AMultiSelectStyleKeys=g3;exports.ANumInput=d9;exports.AOverflowFrame=nd;exports.AProgressBar=ZC;exports.ARadioSelect=k9;exports.ARadioSelectKeys=k3;exports.ARowFrame=Ml;exports.ASelect=Td;exports.ASelectStyleKeys=d3;exports.ASelectTypes=dR;exports.ASpace=cs;exports.AStepper=lI;exports.AStepperStyleKeys=w3;exports.ASwitch=jC;exports.ASwitchFrame=N3;exports.ASwitchStyleKeys=v3;exports.ATab=U3;exports.ATabStyleKeys=b3;exports.ATabTypes=mI;exports.ATable=Lk;exports.ATableStyleKeys=E3;exports.AText=X3;exports.ATextArea=Vk;exports.ATextAreaStyleKeys=c3;exports.ATextAreaTypes=Yk;exports.AThemeButton=DA;exports.AThemes=pp;exports.ATooltip=qC;exports.ATooltipStyleKeys=l3;exports.ATree=aU;exports.ATreeStyleKeys=p3;exports.AWrap=lg;exports.AWrapKeys=I3;exports.AWrapPropsExtract=Bg;exports.AWrapTypes=pA;exports.ApiContext=s5;exports.BodyStyleKeys=i3;exports.CreateADC=A8;exports.DefaultOptionRenderer=W3;exports.EDir12=O1;exports.EDir4=ic;exports.FileSizeTrans=Mg;exports.Icons=_v;exports.IsCursorPointer=UC;exports.IsFixedShape=WC;exports.IsInteractive=GC;exports.NoSelect=zC;exports.NoTransition=HC;exports.Resources=Nr;exports.SetResources=IT;exports.alphanumericRegex=_6;exports.bound=gp;exports.cbF=Vr;exports.changeSemanticMode=xm;exports.componentStyleKeys=AA;exports.createEvent=Eg;exports.dateF=Yn;exports.dbF=Ah;exports.defaultPredicate=Y3;exports.dlgF=R8;exports.emailIdRegex=T6;exports.emailRegex=E6;exports.fileF=Tg;exports.getFileKey=z3;exports.getMonthsOptions=Ap;exports.getYearsOptions=Sm;exports.hangulRegex=R6;exports.hexRegex=A6;exports.key=BC;exports.noHanguljamoRegex=k6;exports.noSpaceRegex=I6;exports.numF=G0;exports.objF=rr;exports.onlyAlphanumericRegex=S6;exports.paletteKeys=$C;exports.paletteModes=Sv;exports.passwordRegex=L6;exports.refinedDesignTokens=lc;exports.sF=bt;exports.semanticKeys=n3;exports.semanticModes=x1;exports.setDir12Style=mm;exports.setDir12StyleElem=JC;exports.specialCharRegex=M6;exports.strF=Cm;exports.tableF=_d;exports.textMeasurement=kg;exports.treeF=Qd;exports.useADialogCore=E8;exports.useADialogCores=S8;exports.useDB=O3;exports.useEvent=Z3;exports.useInit=G3;exports.useLayoutDB=P3;exports.useOffset=KC;exports.useValues=Do;exports.uuidRegex=O6;
|