@sheetxl/utils-react 0.8.0-beta.20 → 0.8.0-beta.21
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/browser/esm/{BkN0y4Hrj2g5dSIG.mjs → B6U1YOdlMBIiMwIo.mjs} +1 -1
- package/browser/esm/{DakbiWfgAxYtLuB9.mjs → B8oCr4YRlNEgrVTE.mjs} +2 -2
- package/browser/esm/{C_Ask1OF1UxIDB6Z.mjs → C74v7_u2uwgwlCTV.mjs} +2 -2
- package/browser/esm/index.mjs +760 -760
- package/node/esm/{BILf4bRupmxScC5R.mjs → BRFcIf1L6jIUdzP7.mjs} +1 -1
- package/node/esm/{Dmps0ZIoLh14qvGI.mjs → CZoJwu33P3QdiHsu.mjs} +1 -1
- package/node/esm/index.mjs +472 -472
- package/package.json +2 -2
package/browser/esm/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--icon-size-sm:calc(var(--icon-size,1rem) * .875);--icon-size-md:var(--icon-size,1rem);--icon-size-lg:calc(var(--icon-size,1rem) * 1.25);--icon-size-xl:calc(var(--icon-size,1rem) * 1.5)}._Icon_16f7r_10{font-size:var(--icon-size,var(--icon-size-md));min-width:var(--icon-size,var(--icon-size-md));min-height:var(--icon-size,var(--icon-size-md));--icon-stroke-em:.085em;--icon-color:currentColor;--icon-secondary-color:color-mix(in oklab, currentColor 65%, transparent);--icon-tertiary-color:color-mix(in oklab, currentColor 40%, transparent);--icon-line-color:currentColor;--icon-main-opacity:1;--icon-secondary-opacity:.45;--icon-tertiary-opacity:.25;--icon-line-opacity:1;--icon-filter:none;filter:var(--icon-filter);vertical-align:middle;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}._Icon_16f7r_10 .sm{--icon-size:var(--icon-size-sm)}._Icon_16f7r_10 .md{--icon-size:var(--icon-size-md)}._Icon_16f7r_10 .lg{--icon-size:var(--icon-size-lg)}._Icon_16f7r_10 .xl{--icon-size:var(--icon-size-xl)}._Icon_16f7r_10>svg{width:var(--icon-size);height:var(--icon-size)}._Icon_16f7r_10>img{aspect-ratio:1;line-height:1;display:block}._Icon_16f7r_10 .fill,._Icon_16f7r_10 .line{--layer-color:var(--icon-color);--layer-opacity:var(--icon-main-opacity)}._Icon_16f7r_10 .tertiary{--layer-color:var(--icon-tertiary-color)}._Icon_16f7r_10 .primary{--layer-color:var(--icon-primary,var(--sxl-color-primary,#595b5e))}._Icon_16f7r_10 .accent{--layer-color:var(--icon-accent,var(--sxl-color-accent,#9c27b0))}._Icon_16f7r_10 .accent.tint{--layer-color:color-mix(in srgb, var(--icon-accent,var(--sxl-color-accent,#9c27b0)) 80%, white)}._Icon_16f7r_10 .success{--layer-color:var(--icon-success,var(--sxl-color-success,#22c55e))}._Icon_16f7r_10 .success.tint{--layer-color:color-mix(in srgb, var(--icon-success,var(--sxl-color-success,#22c55e)) 80%, white)}._Icon_16f7r_10 .info{--layer-color:var(--icon-info,var(--sxl-color-info,#3b82f6))}._Icon_16f7r_10 .warning{--layer-color:var(--icon-warning,var(--sxl-color-warning,#f59e0b))}._Icon_16f7r_10 .error{--layer-color:var(--icon-error,var(--sxl-color-error,#ef4444))}._Icon_16f7r_10 .error.tint{--layer-color:color-mix(in srgb, var(--icon-error,var(--sxl-color-error,#ef4444)) 80%, white)}._Icon_16f7r_10 .grey{--layer-color:var(--sxl-color-neutral,#ccc)}._Icon_16f7r_10 .shadow{--layer-color:var(--sxl-color-shadow,#ccc)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]){fill:var(--layer-color);stroke:none}._Icon_16f7r_10 .line:not(.fixed):not([stroke]){fill:none;stroke:var(--layer-color,var(--icon-line-color));stroke-width:var(--icon-stroke-em);vector-effect:non-scaling-stroke;pointer-events:none;stroke-linecap:var(--icon-linecap,round);stroke-linejoin:var(--icon-linejoin,round);stroke-miterlimit:var(--icon-miter,4)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]):not([opacity]){opacity:var(--layer-opacity)}._Icon_16f7r_10 .line:not(.fixed):not([stroke]):not([opacity]){opacity:var(--layer-opacity,var(--icon-line-opacity))}._Icon_16f7r_10 .fill.outlined:not(.fixed):not([fill]){stroke:var(--icon-outline,color-mix(in srgb, var(--layer-color) 62%, black));stroke-width:var(--icon-outline-width,1.25);stroke-linejoin:round;paint-order:stroke fill}._Icon_16f7r_10 .fill.rimmed:not(.fixed):not([fill]){--icon-outline:var(--icon-rim,light-dark(#3c3c3c,#101010));--icon-outline-width:2}._Icon_16f7r_10 .knockout{--layer-color:var(--icon-knockout,#fff)}._Icon_16f7r_10 .line.heavy:not(.fixed):not([stroke]){stroke-width:var(--icon-stroke-heavy-em,.155em)}._Icon_16f7r_10 .invert-dark{filter:var(--sxl-image-filter,none)}._Icon_16f7r_10 .muted{opacity:calc(var(--layer-opacity,1) * .6)}@keyframes _sxl-walk_16f7r_1{to{stroke-dashoffset:0}}.icon.walking .walkable.line{stroke-dasharray:var(--walk-dash-length,5px) var(--walk-dash-gap,2px);stroke-dashoffset:calc(var(--walk-dash-length,5px) + var(--walk-dash-gap,2px));animation:_sxl-walk_16f7r_1 var(--walk-duration,.96s) linear infinite;will-change:stroke-dashoffset}._portal-root_105xh_14{pointer-events:none;z-index:1200;width:100%;height:100%;position:absolute;inset:0}._portal-root_105xh_14>*{pointer-events:auto}._fullscreen_105xh_31{z-index:1200}._dragging_at5p4_10,._dragging_at5p4_10 *{user-select:text!important}._float-popper_1z06c_1{max-width:100%;max-height:100%;font-family:var(--sxl-font-family,inherit);font-size:var(--sxl-font-size,inherit);font-weight:var(--sxl-font-weight,inherit);font-style:var(--sxl-font-style,inherit);color:var(--sxl-color-base-content,inherit);display:flex}._float-popper-grow_1z06c_14{opacity:0;will-change:transform, opacity;transition:transform .18s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.75)}._float-popper-grow_1z06c_14._entered_1z06c_22{opacity:1;transform:scale(1)}._float-popup_juap7_1{flex-direction:column;display:flex}._float-panel_qj0za_1{box-sizing:border-box;background:var(--sxl-color-base-100,#fff);color:var(--sxl-color-base-content,#000000de);border:1px solid var(--sxl-color-elevated-border,transparent);box-shadow:0 5px 5px -3px var(--sxl-color-shadow,#0003), 0 8px 10px 1px var(--sxl-color-shadow,#00000024), 0 3px 14px 2px var(--sxl-color-shadow,#0000001f);border-radius:4px;outline:none;display:flex;overflow:auto}:root{--scrollbar-track-color:#0000000f;--scrollbar-thumb-color:#00000059;--scrollbar-button-color:var(--scrollbar-thumb-color);--scrollbar-active-color:#0000008c;--scrollbar-corner-color:transparent;--scrollbar-border-color:transparent;& .has-touch-thumb,& .has-touch-thumb *{--scrollbar-size:0px;--scrollbar-border-width:0px;--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size)}--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size);--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar_2chse_24{& ::-webkit-scrollbar-button{background:0 0}border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;flex:100%;align-items:center;display:flex;overflow:hidden;& ._track_2chse_35{background:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;touch-action:none;box-sizing:border-box;flex:100%;position:relative;overflow:hidden}& ._thumb_2chse_47{background:var(--scrollbar-thumb-color);border-radius:var(--scrollbar-border-radius);touch-action:none;transition:background .12s}& ._thumb_2chse_47:hover{background:var(--scrollbar-active-color)}&.vertical{min-width:var(--scrollbar-width,0px);max-width:var(--scrollbar-width,100%);flex-direction:column;& ._thumb_2chse_47{min-height:var(--scrollbar-min-thumb-size)}& ._track_2chse_35{width:100%}}&.horizontal{min-height:var(--scrollbar-height,0px);max-height:var(--scrollbar-height,100%);flex-direction:row;& ._thumb_2chse_47{min-width:var(--scrollbar-min-thumb-size)}& ._track_2chse_35{height:100%}}&.dragging{& ._thumb_2chse_47{background:var(--scrollbar-active-color)}}&.has-touch-thumb{visibility:hidden}& ._scrollbar-button_2chse_96{background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;&>*{fill:var(--scrollbar-button-color);transition:fill .12s}&:hover:not([disabled])>*{fill:var(--scrollbar-active-color)}&[disabled]>*{fill:var(--scrollbar-button-color);opacity:.5}&.vertical{width:var(--scrollbar-width)}&.horizontal{height:var(--scrollbar-height)}}}._touch-thumb_2chse_131{cursor:grab;pointer-events:all;touch-action:none;will-change:opacity;opacity:.7;border-radius:9999px;transition-property:opacity;position:absolute;&:hover,&.dragging{opacity:1}}._scrollpane_zdrii_2{min-width:min-content;min-height:min-content;display:flex;position:relative}._scrollpane-content_zdrii_20{box-sizing:border-box;flex:100%;grid-template-rows:1fr auto;grid-template-columns:1fr auto;width:100%;min-width:0;min-height:0;display:grid;position:relative}._scrollpane-content-cell_zdrii_33{grid-area:1/1/2/2;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}._vertical-container_zdrii_42{grid-area:1/2/2/3;min-height:0;display:flex}._horizontal-container_zdrii_50{grid-area:2/1/3/2;min-width:0;display:flex;overflow:hidden}._corner-container_zdrii_59{grid-area:2/2/3/3;display:flex}._touch-thumb-overlay_zdrii_68{pointer-events:none;grid-area:1/1/2/2;min-width:0;min-height:0;position:relative}._scrollbar-themed_nj3vu_7{--scrollbar-track-color:color-mix(in srgb, var(--sxl-color-base-content) 4%, transparent);--scrollbar-thumb-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-button-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-active-color:var(--sxl-color-primary);--scrollbar-corner-color:var(--sxl-color-base-100);--scrollbar-border-color:color-mix(in srgb, var(--sxl-color-base-content) 5%, transparent);--scrollbar-width:13px;--scrollbar-height:13px;--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar-themed_nj3vu_7::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-button{display:none}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32{fill:var(--scrollbar-thumb-color);transition:fill opacity .26s ease;width:var(--scrollbar-width);height:var(--scrollbar-height);background-color:#0000}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:hover:not([disabled]){fill:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:disabled{opacity:.8}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70{scrollbar-color:var(--scrollbar-thumb-color) transparent}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70:hover:not([disabled]){scrollbar-color:var(--scrollbar-active-color) transparent}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--icon-size-sm:calc(var(--icon-size,1rem) * .875);--icon-size-md:var(--icon-size,1rem);--icon-size-lg:calc(var(--icon-size,1rem) * 1.25);--icon-size-xl:calc(var(--icon-size,1rem) * 1.5)}._Icon_16f7r_10{font-size:var(--icon-size,var(--icon-size-md));min-width:var(--icon-size,var(--icon-size-md));min-height:var(--icon-size,var(--icon-size-md));--icon-stroke-em:.085em;--icon-color:currentColor;--icon-secondary-color:color-mix(in oklab, currentColor 65%, transparent);--icon-tertiary-color:color-mix(in oklab, currentColor 40%, transparent);--icon-line-color:currentColor;--icon-main-opacity:1;--icon-secondary-opacity:.45;--icon-tertiary-opacity:.25;--icon-line-opacity:1;--icon-filter:none;filter:var(--icon-filter);vertical-align:middle;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}._Icon_16f7r_10 .sm{--icon-size:var(--icon-size-sm)}._Icon_16f7r_10 .md{--icon-size:var(--icon-size-md)}._Icon_16f7r_10 .lg{--icon-size:var(--icon-size-lg)}._Icon_16f7r_10 .xl{--icon-size:var(--icon-size-xl)}._Icon_16f7r_10>svg{width:var(--icon-size);height:var(--icon-size)}._Icon_16f7r_10>img{aspect-ratio:1;line-height:1;display:block}._Icon_16f7r_10 .fill,._Icon_16f7r_10 .line{--layer-color:var(--icon-color);--layer-opacity:var(--icon-main-opacity)}._Icon_16f7r_10 .tertiary{--layer-color:var(--icon-tertiary-color)}._Icon_16f7r_10 .primary{--layer-color:var(--icon-primary,var(--sxl-color-primary,#595b5e))}._Icon_16f7r_10 .accent{--layer-color:var(--icon-accent,var(--sxl-color-accent,#9c27b0))}._Icon_16f7r_10 .accent.tint{--layer-color:color-mix(in srgb, var(--icon-accent,var(--sxl-color-accent,#9c27b0)) 80%, white)}._Icon_16f7r_10 .success{--layer-color:var(--icon-success,var(--sxl-color-success,#22c55e))}._Icon_16f7r_10 .success.tint{--layer-color:color-mix(in srgb, var(--icon-success,var(--sxl-color-success,#22c55e)) 80%, white)}._Icon_16f7r_10 .info{--layer-color:var(--icon-info,var(--sxl-color-info,#3b82f6))}._Icon_16f7r_10 .warning{--layer-color:var(--icon-warning,var(--sxl-color-warning,#f59e0b))}._Icon_16f7r_10 .error{--layer-color:var(--icon-error,var(--sxl-color-error,#ef4444))}._Icon_16f7r_10 .error.tint{--layer-color:color-mix(in srgb, var(--icon-error,var(--sxl-color-error,#ef4444)) 80%, white)}._Icon_16f7r_10 .grey{--layer-color:var(--sxl-color-neutral,#ccc)}._Icon_16f7r_10 .shadow{--layer-color:var(--sxl-color-shadow,#ccc)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]){fill:var(--layer-color);stroke:none}._Icon_16f7r_10 .line:not(.fixed):not([stroke]){fill:none;stroke:var(--layer-color,var(--icon-line-color));stroke-width:var(--icon-stroke-em);vector-effect:non-scaling-stroke;pointer-events:none;stroke-linecap:var(--icon-linecap,round);stroke-linejoin:var(--icon-linejoin,round);stroke-miterlimit:var(--icon-miter,4)}._Icon_16f7r_10 .fill:not(.fixed):not([fill]):not([opacity]){opacity:var(--layer-opacity)}._Icon_16f7r_10 .line:not(.fixed):not([stroke]):not([opacity]){opacity:var(--layer-opacity,var(--icon-line-opacity))}._Icon_16f7r_10 .fill.outlined:not(.fixed):not([fill]){stroke:var(--icon-outline,color-mix(in srgb, var(--layer-color) 62%, black));stroke-width:var(--icon-outline-width,1.25);stroke-linejoin:round;paint-order:stroke fill}._Icon_16f7r_10 .fill.rimmed:not(.fixed):not([fill]){--icon-outline:var(--icon-rim,light-dark(#3c3c3c,#101010));--icon-outline-width:2}._Icon_16f7r_10 .knockout{--layer-color:var(--icon-knockout,#fff)}._Icon_16f7r_10 .line.heavy:not(.fixed):not([stroke]){stroke-width:var(--icon-stroke-heavy-em,.155em)}._Icon_16f7r_10 .invert-dark{filter:var(--sxl-image-filter,none)}._Icon_16f7r_10 .muted{opacity:calc(var(--layer-opacity,1) * .6)}@keyframes _sxl-walk_16f7r_1{to{stroke-dashoffset:0}}.icon.walking .walkable.line{stroke-dasharray:var(--walk-dash-length,5px) var(--walk-dash-gap,2px);stroke-dashoffset:calc(var(--walk-dash-length,5px) + var(--walk-dash-gap,2px));animation:_sxl-walk_16f7r_1 var(--walk-duration,.96s) linear infinite;will-change:stroke-dashoffset}._portal-root_105xh_14{pointer-events:none;z-index:1200;width:100%;height:100%;position:absolute;inset:0}._portal-root_105xh_14>*{pointer-events:auto}._fullscreen_105xh_31{z-index:1200}._dragging_at5p4_10,._dragging_at5p4_10 *{user-select:text!important}._float-popper_1z06c_1{max-width:100%;max-height:100%;font-family:var(--sxl-font-family,inherit);font-size:var(--sxl-font-size,inherit);font-weight:var(--sxl-font-weight,inherit);font-style:var(--sxl-font-style,inherit);color:var(--sxl-color-base-content,inherit);display:flex}._float-popper-grow_1z06c_14{opacity:0;will-change:transform, opacity;transition:transform .18s cubic-bezier(.4,0,.2,1),opacity .18s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.75)}._float-popper-grow_1z06c_14._entered_1z06c_22{opacity:1;transform:scale(1)}._float-popup_juap7_1{flex-direction:column;display:flex}._float-panel_qj0za_1{box-sizing:border-box;background:var(--sxl-color-base-100,#fff);color:var(--sxl-color-base-content,#000000de);border:1px solid var(--sxl-color-elevated-border,transparent);box-shadow:0 5px 5px -3px var(--sxl-color-shadow,#0003), 0 8px 10px 1px var(--sxl-color-shadow,#00000024), 0 3px 14px 2px var(--sxl-color-shadow,#0000001f);border-radius:4px;outline:none;display:flex;overflow:auto}:root{--scrollbar-track-color:#0000000f;--scrollbar-thumb-color:#00000059;--scrollbar-button-color:var(--scrollbar-thumb-color);--scrollbar-active-color:#0000008c;--scrollbar-corner-color:transparent;--scrollbar-border-color:transparent;& .sxl-has-touch-thumb,& .sxl-has-touch-thumb *{--scrollbar-size:0px;--scrollbar-border-width:0px;--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size)}--scrollbar-width:var(--scrollbar-size);--scrollbar-height:var(--scrollbar-size);--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar_1kbpg_24{& ::-webkit-scrollbar-button{background:0 0}border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;flex:100%;align-items:center;display:flex;overflow:hidden;& ._track_1kbpg_35{background:var(--scrollbar-track-color);border-radius:var(--scrollbar-border-radius);border:var(--scrollbar-border-width) solid transparent;touch-action:none;box-sizing:border-box;flex:100%;position:relative;overflow:hidden}& ._thumb_1kbpg_47{background:var(--scrollbar-thumb-color);border-radius:var(--scrollbar-border-radius);touch-action:none;transition:background .12s}& ._thumb_1kbpg_47:hover{background:var(--scrollbar-active-color)}&.sxl-vertical{min-width:var(--scrollbar-width,0px);max-width:var(--scrollbar-width,100%);flex-direction:column;& ._thumb_1kbpg_47{min-height:var(--scrollbar-min-thumb-size)}& ._track_1kbpg_35{width:100%}}&.sxl-horizontal{min-height:var(--scrollbar-height,0px);max-height:var(--scrollbar-height,100%);flex-direction:row;& ._thumb_1kbpg_47{min-width:var(--scrollbar-min-thumb-size)}& ._track_1kbpg_35{height:100%}}&.sxl-dragging{& ._thumb_1kbpg_47{background:var(--scrollbar-active-color)}}&.sxl-has-touch-thumb{visibility:hidden}& ._scrollbar-button_1kbpg_96{background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;&>*{fill:var(--scrollbar-button-color);transition:fill .12s}&:hover:not([disabled])>*{fill:var(--scrollbar-active-color)}&[disabled]>*{fill:var(--scrollbar-button-color);opacity:.5}&.sxl-vertical{width:var(--scrollbar-width)}&.sxl-horizontal{height:var(--scrollbar-height)}}}._touch-thumb_1kbpg_131{cursor:grab;pointer-events:all;touch-action:none;will-change:opacity;opacity:.7;border-radius:9999px;transition-property:opacity;position:absolute;&:hover,&.sxl-dragging{opacity:1}}._scrollpane_zdrii_2{min-width:min-content;min-height:min-content;display:flex;position:relative}._scrollpane-content_zdrii_20{box-sizing:border-box;flex:100%;grid-template-rows:1fr auto;grid-template-columns:1fr auto;width:100%;min-width:0;min-height:0;display:grid;position:relative}._scrollpane-content-cell_zdrii_33{grid-area:1/1/2/2;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}._vertical-container_zdrii_42{grid-area:1/2/2/3;min-height:0;display:flex}._horizontal-container_zdrii_50{grid-area:2/1/3/2;min-width:0;display:flex;overflow:hidden}._corner-container_zdrii_59{grid-area:2/2/3/3;display:flex}._touch-thumb-overlay_zdrii_68{pointer-events:none;grid-area:1/1/2/2;min-width:0;min-height:0;position:relative}._scrollbar-themed_nj3vu_7{--scrollbar-track-color:color-mix(in srgb, var(--sxl-color-base-content) 4%, transparent);--scrollbar-thumb-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-button-color:color-mix(in srgb, var(--sxl-color-base-content) 26%, transparent);--scrollbar-active-color:var(--sxl-color-primary);--scrollbar-corner-color:var(--sxl-color-base-100);--scrollbar-border-color:color-mix(in srgb, var(--sxl-color-base-content) 5%, transparent);--scrollbar-width:13px;--scrollbar-height:13px;--scrollbar-border-radius:9999px;--scrollbar-border-width:2px;--scrollbar-min-thumb-size:24px}._scrollbar-themed_nj3vu_7::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar{background-color:var(--scrollbar-track-color);width:var(--scrollbar-width);height:var(--scrollbar-height)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-button{display:none}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32{fill:var(--scrollbar-thumb-color);transition:fill opacity .26s ease;width:var(--scrollbar-width);height:var(--scrollbar-height);background-color:#0000}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:hover:not([disabled]){fill:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ._scrollbar-button_nj3vu_32:disabled{opacity:.8}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb{border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-thumb-color);min-height:var(--scrollbar-min-thumb-size);min-width:var(--scrollbar-min-thumb-size);border:var(--scrollbar-border-width) solid var(--scrollbar-border-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-active-color)}._scrollbar-themed_nj3vu_7::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner-color)}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70{scrollbar-color:var(--scrollbar-thumb-color) transparent}._scrollbar-themed_nj3vu_7 ._pseudo-scrollbar_nj3vu_70:hover:not([disabled]){scrollbar-color:var(--scrollbar-active-color) transparent}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
2
|
/**
|
|
3
|
-
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.
|
|
3
|
+
* @license @sheetxl/utils-react - Utils React - Utilities for React capabilities needed for all SheetXL components. - v0.8.0-beta.21
|
|
4
4
|
*
|
|
5
5
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: MIT
|
|
7
7
|
*/
|
|
8
|
-
import { i as e, n as t, r as n, t as r } from "./
|
|
8
|
+
import { i as e, n as t, r as n, t as r } from "./C74v7_u2uwgwlCTV.mjs";
|
|
9
9
|
import { CommonUtils as i, DefaultLanguagePackService as a, ExpectedError as o, InternalClipboard as s, Notifier as c, TimerUtils as l, fetchLocaleResourceAll as u, formatMessage as d, loadPackageLocales as f, mergeMessageFiles as p, onResourceRootsChange as m, resolveLocaleChain as h } from "@sheetxl/utils";
|
|
10
10
|
import * as g from "react";
|
|
11
11
|
import _, { Component as v, cloneElement as y, createContext as b, createElement as x, forwardRef as S, isValidElement as C, lazy as w, memo as T, useCallback as E, useContext as D, useEffect as O, useId as k, useImperativeHandle as A, useLayoutEffect as j, useMemo as M, useReducer as N, useRef as P, useState as F, useSyncExternalStore as I, version as ee } from "react";
|
|
@@ -1313,7 +1313,7 @@ function Vt({ tracker: e, debounce: t, keyBindings: n, root: r, elementRef: i, c
|
|
|
1313
1313
|
}, [u, e]), L(zt.Provider, s ? {
|
|
1314
1314
|
value: c,
|
|
1315
1315
|
children: L("div", {
|
|
1316
|
-
className: "command-key-seam",
|
|
1316
|
+
className: "sxl-command-key-seam",
|
|
1317
1317
|
style: { display: "contents" },
|
|
1318
1318
|
ref: l,
|
|
1319
1319
|
onKeyDown: (e) => {
|
|
@@ -1615,20 +1615,20 @@ function En(e = {}) {
|
|
|
1615
1615
|
toggleFullscreen: p
|
|
1616
1616
|
};
|
|
1617
1617
|
}
|
|
1618
|
-
var Dn = "_portal-root_105xh_14", On = "_fullscreen_105xh_31", kn = 0, An = () => {
|
|
1619
|
-
let e = document.fullscreenElement, t = e ?? document.body, n = document.querySelector(".
|
|
1620
|
-
n || (n = document.createElement("div"), n.className =
|
|
1618
|
+
var Dn = "_portal-root_105xh_14", On = "_fullscreen_105xh_31", kn = 0, An = "sxl-portal-root", jn = () => {
|
|
1619
|
+
let e = document.fullscreenElement, t = e ?? document.body, n = document.querySelector("." + An);
|
|
1620
|
+
n || (n = document.createElement("div"), n.className = `${An} ${Dn}`), n.parentElement !== t && t.appendChild(n);
|
|
1621
1621
|
let r = !!e;
|
|
1622
|
-
return n.classList.toggle("fullscreen", r), n.classList.toggle(On, r), n;
|
|
1622
|
+
return n.classList.toggle("sxl-fullscreen", r), n.classList.toggle(On, r), n;
|
|
1623
1623
|
};
|
|
1624
|
-
function
|
|
1625
|
-
let [e, t] = F(!!document.fullscreenElement), n = E(() =>
|
|
1624
|
+
function Mn() {
|
|
1625
|
+
let [e, t] = F(!!document.fullscreenElement), n = E(() => jn(), []);
|
|
1626
1626
|
return O(() => {
|
|
1627
1627
|
let e = () => {
|
|
1628
|
-
t(!!document.fullscreenElement),
|
|
1628
|
+
t(!!document.fullscreenElement), jn();
|
|
1629
1629
|
};
|
|
1630
|
-
return kn++,
|
|
1631
|
-
document.removeEventListener("fullscreenchange", e), --kn <= 0 && (kn = 0, document.querySelectorAll(".
|
|
1630
|
+
return kn++, jn(), document.addEventListener("fullscreenchange", e), () => {
|
|
1631
|
+
document.removeEventListener("fullscreenchange", e), --kn <= 0 && (kn = 0, document.querySelectorAll("." + An).forEach((e) => {
|
|
1632
1632
|
e.parentNode?.removeChild(e);
|
|
1633
1633
|
}));
|
|
1634
1634
|
};
|
|
@@ -1637,32 +1637,32 @@ function jn() {
|
|
|
1637
1637
|
isFullscreen: e
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
|
-
var
|
|
1640
|
+
var Nn, Pn = "_dragging_at5p4_10", Fn = /* @__PURE__ */ new Set([
|
|
1641
1641
|
"text",
|
|
1642
1642
|
"search",
|
|
1643
1643
|
"url",
|
|
1644
1644
|
"tel",
|
|
1645
1645
|
"password",
|
|
1646
1646
|
""
|
|
1647
|
-
]),
|
|
1647
|
+
]), In = (e, t, n) => {
|
|
1648
1648
|
let r = e.getBoundingClientRect();
|
|
1649
1649
|
if (!r.width || !r.height) return null;
|
|
1650
1650
|
let i = Math.min(Math.max(t, r.left + 1), r.right - 1), a = Math.min(Math.max(n, r.top + 1), r.bottom - 1), o = e.ownerDocument, s = o.caretPositionFromPoint?.(i, a);
|
|
1651
1651
|
if (s) return s.offset;
|
|
1652
1652
|
let c = o.caretRangeFromPoint?.(i, a);
|
|
1653
1653
|
return c ? c.startOffset : null;
|
|
1654
|
-
},
|
|
1654
|
+
}, Ln = () => {
|
|
1655
1655
|
let e = P(null);
|
|
1656
1656
|
return O(() => () => {
|
|
1657
1657
|
e.current?.();
|
|
1658
1658
|
}, []), M(() => ({
|
|
1659
1659
|
onPointerDown: (t) => {
|
|
1660
1660
|
if (t?.button !== void 0 && t.button !== 0 || e.current) return;
|
|
1661
|
-
let n = t?.shiftKey ? null : (r = t?.target, r instanceof HTMLTextAreaElement ? r.disabled ? null : r : r instanceof HTMLInputElement && !r.disabled &&
|
|
1661
|
+
let n = t?.shiftKey ? null : (r = t?.target, r instanceof HTMLTextAreaElement ? r.disabled ? null : r : r instanceof HTMLInputElement && !r.disabled && Fn.has(r.type) ? r : null);
|
|
1662
1662
|
var r;
|
|
1663
|
-
let i = n && t?.clientX !== void 0 && t?.clientY !== void 0 ?
|
|
1663
|
+
let i = n && t?.clientX !== void 0 && t?.clientY !== void 0 ? In(n, t.clientX, t.clientY) : null, a = n !== null && i !== null, o = t?.clientX ?? 0, s = t?.clientY ?? 0, c = (e, t) => {
|
|
1664
1664
|
if (!a || !n || i === null) return;
|
|
1665
|
-
let r =
|
|
1665
|
+
let r = In(n, e, t);
|
|
1666
1666
|
r !== null && n.setSelectionRange(Math.min(i, r), Math.max(i, r), r < i ? "backward" : "forward");
|
|
1667
1667
|
}, l = (e) => {
|
|
1668
1668
|
o = e.clientX, s = e.clientY, c(o, s);
|
|
@@ -1679,9 +1679,9 @@ var Mn, Nn = "_dragging_at5p4_10", Pn = /* @__PURE__ */ new Set([
|
|
|
1679
1679
|
let i = (e) => Math.max(-24, Math.min(24, e));
|
|
1680
1680
|
n.scrollLeft += i(t), n.scrollTop += i(r), c(o, s);
|
|
1681
1681
|
}, 50) : 0, p = () => {
|
|
1682
|
-
e.current = null, d.classList.remove(
|
|
1682
|
+
e.current = null, d.classList.remove(Pn), f && window.clearInterval(f), window.removeEventListener("mousedown", u, !0), window.removeEventListener("pointermove", l, !0), window.removeEventListener("pointerup", p, !0), window.removeEventListener("pointercancel", p, !0);
|
|
1683
1683
|
};
|
|
1684
|
-
e.current = p, d.classList.add(
|
|
1684
|
+
e.current = p, d.classList.add(Pn), a && window.addEventListener("mousedown", u, {
|
|
1685
1685
|
capture: !0,
|
|
1686
1686
|
once: !0
|
|
1687
1687
|
}), window.addEventListener("pointermove", l, !0), window.addEventListener("pointerup", p, !0), window.addEventListener("pointercancel", p, !0);
|
|
@@ -1691,15 +1691,15 @@ var Mn, Nn = "_dragging_at5p4_10", Pn = /* @__PURE__ */ new Set([
|
|
|
1691
1691
|
}
|
|
1692
1692
|
}), []);
|
|
1693
1693
|
};
|
|
1694
|
-
function
|
|
1694
|
+
function Rn(e, t) {
|
|
1695
1695
|
let n = (() => {
|
|
1696
|
-
if (
|
|
1696
|
+
if (Nn !== void 0) return Nn;
|
|
1697
1697
|
try {
|
|
1698
|
-
|
|
1698
|
+
Nn = typeof document > "u" ? null : document.createElement("canvas").getContext("2d") ?? null;
|
|
1699
1699
|
} catch {
|
|
1700
|
-
|
|
1700
|
+
Nn = null;
|
|
1701
1701
|
}
|
|
1702
|
-
return
|
|
1702
|
+
return Nn;
|
|
1703
1703
|
})();
|
|
1704
1704
|
return n ? (n.font = `${t.style ?? "normal"} ${t.weight ?? "normal"} ${t.size}px ${r = t.family || "sans-serif", r.split(",").map((e) => {
|
|
1705
1705
|
let t = e.trim();
|
|
@@ -1707,7 +1707,7 @@ function Ln(e, t) {
|
|
|
1707
1707
|
}).join(", ")}`, n.measureText(e).width) : e.length * t.size * .6;
|
|
1708
1708
|
var r;
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function zn(e) {
|
|
1711
1711
|
if (!e) throw Error("must have a PointerHandlerOptions");
|
|
1712
1712
|
let { onPointerDown: t, onPointerUp: n, onPointerMoveOrWait: r, processTouch: i = !1 } = e, a = Y(t, [t]), o = Y(n, [n]), s = Y(r, [r]), c = P(!1), l = e?.timerInitial ?? 230, u = e?.timerContinuous ?? l / 2, d = P(null), f = P(null), p = P(null), m = P(null), h = E(() => {
|
|
1713
1713
|
m.current &&= (clearTimeout(m.current), null);
|
|
@@ -1768,8 +1768,8 @@ function Rn(e) {
|
|
|
1768
1768
|
}, !1 !== a(e, p.current) && (d.current = e, f.current = e.nativeEvent, document.addEventListener(`${_}up`, v, { passive: !1 }), document.addEventListener(`${_}move`, x, { passive: !1 }), document.addEventListener("pointercancel", v, { passive: !1 }), document.addEventListener("keydown", S, { passive: !1 }), document.addEventListener("keyup", C, { passive: !1 }), window.addEventListener("blur", y, { passive: !0 }), c.current = !0, g(l)));
|
|
1769
1769
|
}, [l, i]);
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1772
|
-
return
|
|
1771
|
+
function Bn(e, t) {
|
|
1772
|
+
return zn({
|
|
1773
1773
|
onPointerDown: e,
|
|
1774
1774
|
onPointerMoveOrWait: (t, n, r) => {
|
|
1775
1775
|
e?.(r);
|
|
@@ -1777,62 +1777,62 @@ function zn(e, t) {
|
|
|
1777
1777
|
...t
|
|
1778
1778
|
});
|
|
1779
1779
|
}
|
|
1780
|
-
var
|
|
1780
|
+
var Vn = null, Hn = /* @__PURE__ */ new Set(), Un = !1, Wn = () => (ft().primaryInput === "touch" ? "touch" : "mouse") == "touch" ? "touch" : Vn ?? "mouse", Gn = (e) => {
|
|
1781
1781
|
let t = e.pointerType === "touch" ? "touch" : "mouse";
|
|
1782
|
-
if (t ===
|
|
1783
|
-
let n =
|
|
1784
|
-
|
|
1785
|
-
},
|
|
1782
|
+
if (t === Vn) return;
|
|
1783
|
+
let n = Wn();
|
|
1784
|
+
Vn = t, Wn() !== n && Hn.forEach((e) => e());
|
|
1785
|
+
}, Kn = (e) => (Hn.add(e), Un || typeof document > "u" || (document.addEventListener("pointerdown", Gn, {
|
|
1786
1786
|
capture: !0,
|
|
1787
1787
|
passive: !0
|
|
1788
|
-
}),
|
|
1789
|
-
|
|
1790
|
-
}),
|
|
1788
|
+
}), Un = !0), () => {
|
|
1789
|
+
Hn.delete(e), Hn.size === 0 && Un && (document.removeEventListener("pointerdown", Gn, { capture: !0 }), Un = !1);
|
|
1790
|
+
}), qn = () => "mouse", Jn = () => I(Kn, Wn, qn), Yn = ({ initValue: e, useHookBody: t, applyStateChange: n }) => {
|
|
1791
1791
|
let r = P(e);
|
|
1792
1792
|
if (typeof t != "function") throw Error("function expected as hook body parameter. got " + typeof t);
|
|
1793
1793
|
let i = t();
|
|
1794
1794
|
return j(() => {
|
|
1795
1795
|
r.current !== i && (r.current = i, n(i));
|
|
1796
1796
|
}, [n, i]), null;
|
|
1797
|
-
},
|
|
1797
|
+
}, Xn = (e) => {
|
|
1798
1798
|
console && console.warn && console.warn(e);
|
|
1799
|
-
},
|
|
1800
|
-
|
|
1801
|
-
},
|
|
1799
|
+
}, Zn = globalThis, Qn = 1, $n = !1, er = !1, tr = [], nr = [], rr = () => {
|
|
1800
|
+
nr.forEach((e) => e());
|
|
1801
|
+
}, ir = ({ automaticContainerInternalUseOnly: e }) => {
|
|
1802
1802
|
let [t, n] = F([]), r = P([]);
|
|
1803
|
-
return r.current = t, e || !1 !==
|
|
1803
|
+
return r.current = t, e || !1 !== $n || (er = !0), O(() => {
|
|
1804
1804
|
let t = !0;
|
|
1805
1805
|
function i() {
|
|
1806
|
-
if (t) return
|
|
1806
|
+
if (t) return nr[0] === i ? void n([...tr]) : (e || !0 !== $n || Xn("SingletonHooksContainer is mounted after some singleton hook has been used.Your SingletonHooksContainer will not be used in favor of internal one."), void n((e) => []));
|
|
1807
1807
|
}
|
|
1808
|
-
return
|
|
1809
|
-
t = !1, r.current?.length > 0 &&
|
|
1808
|
+
return nr.push(i), rr(), () => {
|
|
1809
|
+
t = !1, r.current?.length > 0 && Xn("SingletonHooksContainer is unmounted, but it has active singleton hooks. They will be reevaluated once SingletonHooksContainer is mounted again"), nr.splice(nr.indexOf(i), 1), rr();
|
|
1810
1810
|
};
|
|
1811
|
-
}, [e]), L(te, { children: t.map(({ hook: e, key: t }) => x(
|
|
1811
|
+
}, [e]), L(te, { children: t.map(({ hook: e, key: t }) => x(Yn, {
|
|
1812
1812
|
...e,
|
|
1813
1813
|
key: t
|
|
1814
1814
|
})) });
|
|
1815
|
-
},
|
|
1816
|
-
let t =
|
|
1817
|
-
return
|
|
1815
|
+
}, ar = (e) => {
|
|
1816
|
+
let t = Qn++;
|
|
1817
|
+
return tr.push({
|
|
1818
1818
|
hook: e,
|
|
1819
1819
|
key: t
|
|
1820
|
-
}),
|
|
1821
|
-
if (
|
|
1822
|
-
let t =
|
|
1820
|
+
}), nr.length === 0 && !1 === er && ($n = !0, ((e) => {
|
|
1821
|
+
if (Zn.document && Zn.document.createElement) {
|
|
1822
|
+
let t = Zn.document.createElement("div");
|
|
1823
1823
|
z(t).render(L(e, { automaticContainerInternalUseOnly: !0 }));
|
|
1824
|
-
} else
|
|
1825
|
-
})(
|
|
1826
|
-
|
|
1824
|
+
} else Xn("Can not mount SingletonHooksContainer on server side. Did you manage to run useEffect on server? Please mount SingletonHooksContainer into your components tree manually.");
|
|
1825
|
+
})(ir)), rr(), () => {
|
|
1826
|
+
tr.splice(tr.findIndex((e) => e.key === t), 1), rr();
|
|
1827
1827
|
};
|
|
1828
|
-
},
|
|
1829
|
-
|
|
1828
|
+
}, or = null;
|
|
1829
|
+
or ||= (e, t, n = {}) => {
|
|
1830
1830
|
let r, i, a = !1, o = !1, s = [], { unmountIfNoConsumers: c = !1 } = n, l = (e) => {
|
|
1831
1831
|
i = e, H(() => s.forEach((t) => t(e)));
|
|
1832
1832
|
}, u = () => (o ||= (i = typeof e == "function" ? e() : e, !0), i);
|
|
1833
1833
|
return () => {
|
|
1834
1834
|
let [n, o] = F(u);
|
|
1835
|
-
return O(() => (a || (a = !0, r =
|
|
1835
|
+
return O(() => (a || (a = !0, r = ar({
|
|
1836
1836
|
initValue: e,
|
|
1837
1837
|
useHookBody: t,
|
|
1838
1838
|
applyStateChange: l
|
|
@@ -1841,32 +1841,32 @@ ar ||= (e, t, n = {}) => {
|
|
|
1841
1841
|
}), []), n;
|
|
1842
1842
|
};
|
|
1843
1843
|
};
|
|
1844
|
-
var
|
|
1844
|
+
var sr = or, cr = () => {
|
|
1845
1845
|
console.warn("You must call useEditMode before setting its state.");
|
|
1846
|
-
},
|
|
1846
|
+
}, lr = sr(null, () => {
|
|
1847
1847
|
let [e, t] = F(null);
|
|
1848
|
-
return
|
|
1849
|
-
}),
|
|
1850
|
-
|
|
1851
|
-
},
|
|
1852
|
-
|
|
1853
|
-
},
|
|
1854
|
-
|
|
1855
|
-
}),
|
|
1856
|
-
let e =
|
|
1848
|
+
return cr = t, e;
|
|
1849
|
+
}), ur = (e) => {
|
|
1850
|
+
cr((t) => (typeof e == "function" && (e = e(t)), t?.onModeChange?.(e ?? null), e));
|
|
1851
|
+
}, dr = /* @__PURE__ */ new Set(), fr = (e, t) => {
|
|
1852
|
+
dr.forEach((n) => n(e, t)), t === "done" ? e.done?.() : e.cancel?.();
|
|
1853
|
+
}, pr = (e) => (dr.add(e), () => {
|
|
1854
|
+
dr.delete(e);
|
|
1855
|
+
}), mr = () => {
|
|
1856
|
+
let e = lr();
|
|
1857
1857
|
return M(() => ({
|
|
1858
|
-
setMode:
|
|
1858
|
+
setMode: ur,
|
|
1859
1859
|
getMode: () => e
|
|
1860
1860
|
}), [e]);
|
|
1861
|
-
},
|
|
1862
|
-
function
|
|
1861
|
+
}, hr = { Active: "language" };
|
|
1862
|
+
function gr() {
|
|
1863
1863
|
return I((e) => a.addChangeListener(e), () => a.getActive(), () => a.getActive());
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function _r() {
|
|
1866
1866
|
let e = I((e) => a.addChangeListener(e), () => a.getRevision(), () => a.getRevision());
|
|
1867
1867
|
return M(() => (e, t) => a.lookup(e, t) ?? e, [e]);
|
|
1868
1868
|
}
|
|
1869
|
-
var
|
|
1869
|
+
var vr = (e, t, n, r) => ({
|
|
1870
1870
|
x: e,
|
|
1871
1871
|
y: t,
|
|
1872
1872
|
width: n,
|
|
@@ -1885,18 +1885,18 @@ var _r = (e, t, n, r) => ({
|
|
|
1885
1885
|
right: e + n,
|
|
1886
1886
|
bottom: t + r
|
|
1887
1887
|
})
|
|
1888
|
-
}),
|
|
1889
|
-
if (!e || typeof document > "u") return
|
|
1888
|
+
}), yr = (e) => vr(e.textareaRect.left + (e.markerRect.left - e.mirrorRect.left) - e.scrollLeft, e.textareaRect.top + (e.markerRect.top - e.mirrorRect.top) - e.scrollTop, 0, e.markerRect.height), br = /* @__PURE__ */ "paddingTop.paddingRight.paddingBottom.paddingLeft.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderTopStyle.borderRightStyle.borderBottomStyle.borderLeftStyle.fontFamily.fontSize.fontWeight.fontStyle.fontVariant.fontStretch.lineHeight.letterSpacing.wordSpacing.textAlign.textIndent.textTransform.textRendering.whiteSpace.wordBreak.overflowWrap.tabSize".split("."), xr = (e, t, n, r = 0) => {
|
|
1889
|
+
if (!e || typeof document > "u") return vr(0, 0, 0, 0);
|
|
1890
1890
|
let i = e.value, a = Math.max(0, Math.min(t ?? e.selectionStart ?? i.length, i.length)), o = !n, s = n ?? document.createElement("div");
|
|
1891
1891
|
s.setAttribute("aria-hidden", "true"), ((e, t) => {
|
|
1892
1892
|
let n = getComputedStyle(t), r = e.style;
|
|
1893
|
-
for (let e of
|
|
1893
|
+
for (let e of br) r[e] = n[e];
|
|
1894
1894
|
r.position = "absolute", r.top = "0", r.left = "0", r.visibility = "hidden", r.pointerEvents = "none", r.overflow = "hidden", r.boxSizing = "border-box", r.height = "auto", r.width = `${t.offsetWidth}px`;
|
|
1895
1895
|
})(s, e), s.textContent = i.slice(0, a);
|
|
1896
1896
|
let c = document.createElement("span");
|
|
1897
1897
|
c.textContent = i.slice(a) || "", s.appendChild(c), o && document.body.appendChild(s);
|
|
1898
1898
|
try {
|
|
1899
|
-
let t = getComputedStyle(e), n = c.getBoundingClientRect(), i = s.getBoundingClientRect(), a = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, o =
|
|
1899
|
+
let t = getComputedStyle(e), n = c.getBoundingClientRect(), i = s.getBoundingClientRect(), a = n.height || parseFloat(t.lineHeight) || 1.2 * parseFloat(t.fontSize) || 0, o = yr({
|
|
1900
1900
|
textareaRect: e.getBoundingClientRect(),
|
|
1901
1901
|
mirrorRect: i,
|
|
1902
1902
|
markerRect: {
|
|
@@ -1907,11 +1907,11 @@ var _r = (e, t, n, r) => ({
|
|
|
1907
1907
|
scrollLeft: e.scrollLeft,
|
|
1908
1908
|
scrollTop: e.scrollTop
|
|
1909
1909
|
});
|
|
1910
|
-
return r ?
|
|
1910
|
+
return r ? vr(o.left - r, o.top, 0, o.height) : o;
|
|
1911
1911
|
} finally {
|
|
1912
1912
|
o ? s.remove() : s.textContent = "";
|
|
1913
1913
|
}
|
|
1914
|
-
},
|
|
1914
|
+
}, Sr = (e) => {
|
|
1915
1915
|
let t = P(null);
|
|
1916
1916
|
O(() => {
|
|
1917
1917
|
if (typeof document > "u") return;
|
|
@@ -1920,12 +1920,12 @@ var _r = (e, t, n, r) => ({
|
|
|
1920
1920
|
e.remove(), t.current = null;
|
|
1921
1921
|
};
|
|
1922
1922
|
}, []);
|
|
1923
|
-
let n = E((n, r) =>
|
|
1923
|
+
let n = E((n, r) => xr(e.current, n, t.current ?? void 0, r), [e]);
|
|
1924
1924
|
return {
|
|
1925
1925
|
getCaretRect: n,
|
|
1926
1926
|
caretAnchor: E((e, t) => ({ getBoundingClientRect: () => n(typeof e == "function" ? e() : e, typeof t == "function" ? t() : t) }), [n])
|
|
1927
1927
|
};
|
|
1928
|
-
},
|
|
1928
|
+
}, Cr = sr({
|
|
1929
1929
|
setClipboard: (e) => {
|
|
1930
1930
|
throw Error("This is only available via the useClipboard.");
|
|
1931
1931
|
},
|
|
@@ -1941,7 +1941,7 @@ var _r = (e, t, n, r) => ({
|
|
|
1941
1941
|
refNativeLastKey: P(null)
|
|
1942
1942
|
};
|
|
1943
1943
|
});
|
|
1944
|
-
function
|
|
1944
|
+
function wr(e, t = !0) {
|
|
1945
1945
|
let n = P(e);
|
|
1946
1946
|
O(() => {
|
|
1947
1947
|
if (t) {
|
|
@@ -1951,15 +1951,15 @@ function Cr(e, t = !0) {
|
|
|
1951
1951
|
n.current = e;
|
|
1952
1952
|
});
|
|
1953
1953
|
}
|
|
1954
|
-
var
|
|
1955
|
-
let [e, t] = F(() =>
|
|
1956
|
-
return
|
|
1957
|
-
e ?? t(
|
|
1954
|
+
var Tr = !1, Er = 0, Dr = typeof document < "u" ? j : O, Or = () => "sheetxl-ui-" + Er++, kr = _.useId ?? function() {
|
|
1955
|
+
let [e, t] = F(() => Tr ? Or() : void 0);
|
|
1956
|
+
return Dr(() => {
|
|
1957
|
+
e ?? t(Or());
|
|
1958
1958
|
}, []), O(() => {
|
|
1959
|
-
|
|
1959
|
+
Tr ||= !0;
|
|
1960
1960
|
}, []), e;
|
|
1961
|
-
},
|
|
1962
|
-
function
|
|
1961
|
+
}, Ar = [];
|
|
1962
|
+
function jr(e, t, n = Ar, r) {
|
|
1963
1963
|
let i = P(null), a = P(null);
|
|
1964
1964
|
return A(e ?? a, () => {
|
|
1965
1965
|
let e = r === void 0 ? i.current : r;
|
|
@@ -1979,20 +1979,20 @@ function Ar(e, t, n = kr, r) {
|
|
|
1979
1979
|
return e;
|
|
1980
1980
|
}, r === void 0 ? n : [...n, r]), i;
|
|
1981
1981
|
}
|
|
1982
|
-
var
|
|
1983
|
-
let e =
|
|
1984
|
-
return e ?
|
|
1982
|
+
var Mr = () => typeof navigator > "u" ? null : navigator.virtualKeyboard ?? null, Nr = null, Pr = () => typeof window < "u" ? window.visualViewport ?? null : null, Fr = () => {
|
|
1983
|
+
let e = Pr();
|
|
1984
|
+
return e ? Nr && Nr.width === e.width && Nr.height === e.height && Nr.offsetTop === e.offsetTop && Nr.offsetLeft === e.offsetLeft ? Nr : Nr = {
|
|
1985
1985
|
width: e.width,
|
|
1986
1986
|
height: e.height,
|
|
1987
1987
|
offsetTop: e.offsetTop,
|
|
1988
1988
|
offsetLeft: e.offsetLeft
|
|
1989
1989
|
} : null;
|
|
1990
|
-
},
|
|
1991
|
-
let t =
|
|
1990
|
+
}, Ir = (e) => {
|
|
1991
|
+
let t = Pr(), n = Mr();
|
|
1992
1992
|
return t || n ? (t?.addEventListener("resize", e), t?.addEventListener("scroll", e), n?.addEventListener("geometrychange", e), () => {
|
|
1993
1993
|
t?.removeEventListener("resize", e), t?.removeEventListener("scroll", e), n?.removeEventListener("geometrychange", e);
|
|
1994
1994
|
}) : () => {};
|
|
1995
|
-
},
|
|
1995
|
+
}, Lr = () => () => {}, Rr = () => null, zr = (e = !0) => I(e ? Ir : Lr, e ? Fr : Rr, Rr), Br = typeof window < "u" ? j : O, Vr = Object.freeze({
|
|
1996
1996
|
x: 0,
|
|
1997
1997
|
y: 0,
|
|
1998
1998
|
width: 0,
|
|
@@ -2002,9 +2002,9 @@ var jr = () => typeof navigator > "u" ? null : navigator.virtualKeyboard ?? null
|
|
|
2002
2002
|
bottom: 0,
|
|
2003
2003
|
right: 0
|
|
2004
2004
|
});
|
|
2005
|
-
function
|
|
2006
|
-
let [e, t] = F(null), [n, r] = F(
|
|
2007
|
-
return
|
|
2005
|
+
function Hr() {
|
|
2006
|
+
let [e, t] = F(null), [n, r] = F(Vr), i = P(n), a = E((e) => t(e), []);
|
|
2007
|
+
return Br(() => {
|
|
2008
2008
|
if (!e || typeof ResizeObserver > "u") return;
|
|
2009
2009
|
let t = (e) => {
|
|
2010
2010
|
var t = i.current, n = e;
|
|
@@ -2042,24 +2042,24 @@ function Vr() {
|
|
|
2042
2042
|
return a.observe(e), () => a.disconnect();
|
|
2043
2043
|
}, [e]), [a, n];
|
|
2044
2044
|
}
|
|
2045
|
-
var
|
|
2046
|
-
if (
|
|
2047
|
-
|
|
2045
|
+
var Ur = "sxl-history-change", Wr = !1, Gr = () => {
|
|
2046
|
+
if (Wr) return;
|
|
2047
|
+
Wr = !0;
|
|
2048
2048
|
let e = window.history;
|
|
2049
2049
|
for (let t of ["pushState", "replaceState"]) {
|
|
2050
2050
|
let n = e[t];
|
|
2051
2051
|
e[t] = function(...e) {
|
|
2052
2052
|
let t = n.apply(this, e);
|
|
2053
|
-
return window.dispatchEvent(new Event(
|
|
2053
|
+
return window.dispatchEvent(new Event(Ur)), t;
|
|
2054
2054
|
};
|
|
2055
2055
|
}
|
|
2056
|
-
},
|
|
2057
|
-
window.removeEventListener("popstate", e), window.removeEventListener(
|
|
2058
|
-
}),
|
|
2059
|
-
function
|
|
2060
|
-
return I(
|
|
2056
|
+
}, Kr = (e) => (Gr(), window.addEventListener("popstate", e), window.addEventListener(Ur, e), () => {
|
|
2057
|
+
window.removeEventListener("popstate", e), window.removeEventListener(Ur, e);
|
|
2058
|
+
}), qr = () => window.location.search, Jr = () => "";
|
|
2059
|
+
function Yr() {
|
|
2060
|
+
return I(Kr, qr, Jr);
|
|
2061
2061
|
}
|
|
2062
|
-
var
|
|
2062
|
+
var Xr = 3, Zr = .5, Qr = 50, $r = (e) => ({
|
|
2063
2063
|
x: e.x,
|
|
2064
2064
|
y: e.y,
|
|
2065
2065
|
width: e.width,
|
|
@@ -2069,8 +2069,8 @@ var Yr = 3, Xr = .5, Zr = 50, Qr = (e) => ({
|
|
|
2069
2069
|
right: e.right,
|
|
2070
2070
|
bottom: e.bottom
|
|
2071
2071
|
});
|
|
2072
|
-
function
|
|
2073
|
-
let { threshold: t =
|
|
2072
|
+
function ei(e = {}) {
|
|
2073
|
+
let { threshold: t = Zr, stillnessThreshold: n = Xr, maxHierarchyDepth: r = Qr } = e, [i, a] = Hr(), o = P(null), [s, c] = N((e) => e + 1, 0), l = P(void 0), u = P({
|
|
2074
2074
|
x: 0,
|
|
2075
2075
|
y: 0,
|
|
2076
2076
|
width: 0,
|
|
@@ -2090,7 +2090,7 @@ function $r(e = {}) {
|
|
|
2090
2090
|
let i = !1, a = 0, s = () => {
|
|
2091
2091
|
if (!e) return;
|
|
2092
2092
|
let r = e.getBoundingClientRect(), o = u.current;
|
|
2093
|
-
Math.abs(r.x - o.x) > t || Math.abs(r.y - o.y) > t || Math.abs(r.width - o.width) > t || Math.abs(r.height - o.height) > t ? (i || (i = !0, p(
|
|
2093
|
+
Math.abs(r.x - o.x) > t || Math.abs(r.y - o.y) > t || Math.abs(r.width - o.width) > t || Math.abs(r.height - o.height) > t ? (i || (i = !0, p($r(r)), c()), a = 0) : a++, i && a >= n && (i = !1, p($r(r)), c()), u.current = $r(r), l.current = requestAnimationFrame(s);
|
|
2094
2094
|
};
|
|
2095
2095
|
l.current = requestAnimationFrame(s);
|
|
2096
2096
|
let d = (e) => {
|
|
@@ -2112,16 +2112,16 @@ function $r(e = {}) {
|
|
|
2112
2112
|
r
|
|
2113
2113
|
]), [d, f];
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2115
|
+
function ti(e, t) {
|
|
2116
2116
|
if (typeof e == "function") return e(t);
|
|
2117
2117
|
e && (e.current = t);
|
|
2118
2118
|
}
|
|
2119
|
-
var
|
|
2119
|
+
var ni = parseInt(ee.split(".")[0], 10) >= 19 ? function(e) {
|
|
2120
2120
|
return (t) => {
|
|
2121
2121
|
let n = [];
|
|
2122
2122
|
for (let r of e) {
|
|
2123
|
-
let e =
|
|
2124
|
-
n.push(i ? e : () =>
|
|
2123
|
+
let e = ti(r, t), i = typeof e == "function";
|
|
2124
|
+
n.push(i ? e : () => ti(r, null));
|
|
2125
2125
|
}
|
|
2126
2126
|
return () => {
|
|
2127
2127
|
for (let e of n) e();
|
|
@@ -2129,13 +2129,13 @@ var ti = parseInt(ee.split(".")[0], 10) >= 19 ? function(e) {
|
|
|
2129
2129
|
};
|
|
2130
2130
|
} : function(e) {
|
|
2131
2131
|
return (t) => {
|
|
2132
|
-
for (let n of e)
|
|
2132
|
+
for (let n of e) ti(n, t);
|
|
2133
2133
|
};
|
|
2134
2134
|
};
|
|
2135
|
-
function
|
|
2136
|
-
return M(() =>
|
|
2135
|
+
function ri(e) {
|
|
2136
|
+
return M(() => ni(e), e);
|
|
2137
2137
|
}
|
|
2138
|
-
var
|
|
2138
|
+
var ii = T(S((e, t) => {
|
|
2139
2139
|
let { refFocusStart: n, ...r } = e, i = P(null), a = E(() => {
|
|
2140
2140
|
if (n) return void n?.current?.focus();
|
|
2141
2141
|
let e = i.current?.parentElement;
|
|
@@ -2151,18 +2151,18 @@ var ri = T(S((e, t) => {
|
|
|
2151
2151
|
r.length !== 0 && (r.sort(function(e, t) {
|
|
2152
2152
|
return e.tabindex - t.tabindex;
|
|
2153
2153
|
}), r[0].child.focus());
|
|
2154
|
-
}, [n]), o =
|
|
2154
|
+
}, [n]), o = ri([i, t]);
|
|
2155
2155
|
return L("div", {
|
|
2156
2156
|
tabIndex: 0,
|
|
2157
2157
|
ref: o,
|
|
2158
2158
|
onFocus: a,
|
|
2159
2159
|
...r
|
|
2160
2160
|
});
|
|
2161
|
-
})),
|
|
2161
|
+
})), ai = (e) => {
|
|
2162
2162
|
let { render: t, props: n } = e;
|
|
2163
2163
|
return t ? t(n) : null;
|
|
2164
2164
|
};
|
|
2165
|
-
function
|
|
2165
|
+
function oi(e, t, n = !1) {
|
|
2166
2166
|
if (t === 0) return e;
|
|
2167
2167
|
function r(e, t, n) {
|
|
2168
2168
|
let r = t.x - e.x, a = t.y - e.y, o = Math.sqrt(r * r + a * a);
|
|
@@ -2222,10 +2222,10 @@ function ai(e, t, n = !1) {
|
|
|
2222
2222
|
return e + t.join(" ") + " ";
|
|
2223
2223
|
}, "");
|
|
2224
2224
|
}
|
|
2225
|
-
var
|
|
2226
|
-
let { className: n, style: r, children: i, radius: a = 4, strokeWidth: o = 1, strokeColor: s = "grey", variant: c = "tab", clipInset: l, ...u } = e, [d, { width: f, height: p }] =
|
|
2225
|
+
var si = T(S((e, t) => {
|
|
2226
|
+
let { className: n, style: r, children: i, radius: a = 4, strokeWidth: o = 1, strokeColor: s = "grey", variant: c = "tab", clipInset: l, ...u } = e, [d, { width: f, height: p }] = Hr(), m = P(null), h = l?.top ?? 0, g = l?.right ?? 0, _ = l?.bottom ?? 0, v = l?.left ?? 0, b = M(() => {
|
|
2227
2227
|
let e = f - g, t = p - _;
|
|
2228
|
-
return
|
|
2228
|
+
return oi(`M ${v} ${h} L ${e} ${h} L ${e} ${t} L ${v} ${t} Z`, a);
|
|
2229
2229
|
}, [
|
|
2230
2230
|
f,
|
|
2231
2231
|
p,
|
|
@@ -2236,7 +2236,7 @@ var oi = T(S((e, t) => {
|
|
|
2236
2236
|
v
|
|
2237
2237
|
]), x = M(() => c === "rounded" ? b : ((e, t = 0) => {
|
|
2238
2238
|
let n = e / 2, r = p - n + t;
|
|
2239
|
-
return
|
|
2239
|
+
return oi(`M 0 ${n} L ${a} ${n} L ${a} ${r} L ${2 * a} ${r} L ${f - 2 * a} ${r} M ${f - 2 * a} ${r} L ${f - a} ${r} L ${f - a} ${n} L ${f} ${n}`, a);
|
|
2240
2240
|
})(o), [
|
|
2241
2241
|
c,
|
|
2242
2242
|
b,
|
|
@@ -2248,7 +2248,7 @@ var oi = T(S((e, t) => {
|
|
|
2248
2248
|
if (a === 0) return;
|
|
2249
2249
|
if (c === "rounded") return b;
|
|
2250
2250
|
let e = p - o / 2;
|
|
2251
|
-
return
|
|
2251
|
+
return oi(`M 0 0 L ${a} 0 L ${a} ${e} L ${f - a} ${e} L ${f - a} 0 L ${f} 0`, a);
|
|
2252
2252
|
}, [
|
|
2253
2253
|
f,
|
|
2254
2254
|
p,
|
|
@@ -2259,7 +2259,7 @@ var oi = T(S((e, t) => {
|
|
|
2259
2259
|
]), w = M(() => ({ style: {
|
|
2260
2260
|
...C(i) ? i.props?.style : void 0,
|
|
2261
2261
|
clipPath: `path('${S}')`
|
|
2262
|
-
} }), [S, i]), T =
|
|
2262
|
+
} }), [S, i]), T = ri([
|
|
2263
2263
|
m,
|
|
2264
2264
|
d,
|
|
2265
2265
|
t
|
|
@@ -2292,11 +2292,11 @@ var oi = T(S((e, t) => {
|
|
|
2292
2292
|
})
|
|
2293
2293
|
})]
|
|
2294
2294
|
});
|
|
2295
|
-
})),
|
|
2296
|
-
function
|
|
2297
|
-
return D(
|
|
2295
|
+
})), ci = b(null);
|
|
2296
|
+
function li() {
|
|
2297
|
+
return D(ci);
|
|
2298
2298
|
}
|
|
2299
|
-
function
|
|
2299
|
+
function ui(e, t) {
|
|
2300
2300
|
let n = t?.renderError, r = null, i = () => {
|
|
2301
2301
|
let t = {
|
|
2302
2302
|
failed: !1,
|
|
@@ -2321,13 +2321,13 @@ function li(e, t) {
|
|
|
2321
2321
|
let [t, n] = F(a), o = E(() => {
|
|
2322
2322
|
n(() => (r && !r.failed || (r = i()), r.component));
|
|
2323
2323
|
}, []);
|
|
2324
|
-
return L(
|
|
2324
|
+
return L(ci.Provider, {
|
|
2325
2325
|
value: o,
|
|
2326
2326
|
children: L(t, { ...e })
|
|
2327
2327
|
});
|
|
2328
2328
|
};
|
|
2329
2329
|
}
|
|
2330
|
-
var
|
|
2330
|
+
var di = class extends v {
|
|
2331
2331
|
constructor(...e) {
|
|
2332
2332
|
super(...e), this.state = { error: null }, this._reportedMessage = null;
|
|
2333
2333
|
}
|
|
@@ -2343,27 +2343,27 @@ var ui = class extends v {
|
|
|
2343
2343
|
render() {
|
|
2344
2344
|
return this.state.error ? this.props.fallback ?? null : this.props.children;
|
|
2345
2345
|
}
|
|
2346
|
-
},
|
|
2346
|
+
}, fi = ({ children: e, fallback: t }) => {
|
|
2347
2347
|
let n = _n(), r = E((e) => {
|
|
2348
2348
|
n.showError(e);
|
|
2349
2349
|
}, [n]);
|
|
2350
|
-
return L(
|
|
2350
|
+
return L(di, {
|
|
2351
2351
|
fallback: t,
|
|
2352
2352
|
onError: r,
|
|
2353
2353
|
children: e
|
|
2354
2354
|
});
|
|
2355
|
-
},
|
|
2356
|
-
function
|
|
2355
|
+
}, pi = /\b(?:chrome|moz|safari-web|ms-browser)-extension:\/\//, mi = /\breact_devtools_backend/;
|
|
2356
|
+
function hi(e, t) {
|
|
2357
2357
|
let n = `${e ?? ""}\n${t instanceof Error ? t.stack ?? "" : ""}`;
|
|
2358
|
-
return
|
|
2358
|
+
return pi.test(n) || mi.test(n);
|
|
2359
2359
|
}
|
|
2360
|
-
var
|
|
2360
|
+
var gi = class {
|
|
2361
2361
|
constructor(e) {
|
|
2362
2362
|
this.notifier = e, this.handleUnhandledRejection = (e) => {
|
|
2363
2363
|
let t = e.reason;
|
|
2364
|
-
t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && t.name === "AbortError" ||
|
|
2364
|
+
t instanceof Error && t.message && t.message.startsWith("Maximum update depth exceeded") ? console.warn(t) : t instanceof DOMException && t.name === "AbortError" || hi(void 0, t) || (this.notifier.showError(t), t instanceof o && e.preventDefault());
|
|
2365
2365
|
}, this.handleGlobalError = (e) => {
|
|
2366
|
-
typeof e.message == "string" && e.message.includes("ResizeObserver loop") ||
|
|
2366
|
+
typeof e.message == "string" && e.message.includes("ResizeObserver loop") || hi(e.filename, e.error) || this.notifier.showError(e.error ?? e.message);
|
|
2367
2367
|
}, this.setupGlobalHandlers();
|
|
2368
2368
|
}
|
|
2369
2369
|
setupGlobalHandlers() {
|
|
@@ -2372,19 +2372,19 @@ var hi = class {
|
|
|
2372
2372
|
cleanup() {
|
|
2373
2373
|
window.removeEventListener("unhandledrejection", this.handleUnhandledRejection), window.removeEventListener("error", this.handleGlobalError);
|
|
2374
2374
|
}
|
|
2375
|
-
},
|
|
2375
|
+
}, _i = ({ children: e }) => {
|
|
2376
2376
|
let t = _n();
|
|
2377
2377
|
return O(() => {
|
|
2378
|
-
let e = new
|
|
2378
|
+
let e = new gi(t);
|
|
2379
2379
|
return () => {
|
|
2380
2380
|
e.cleanup();
|
|
2381
2381
|
};
|
|
2382
2382
|
}, [t]), L(te, { children: e });
|
|
2383
|
-
},
|
|
2383
|
+
}, vi = {
|
|
2384
2384
|
grid: 1250,
|
|
2385
2385
|
popup: 1300,
|
|
2386
2386
|
tooltip: 1500
|
|
2387
|
-
},
|
|
2387
|
+
}, yi = (e, t = 0) => bi(`var(--sxl-z-${e}, ${vi[e]})`, t), bi = (e, t) => t ? typeof e == "number" ? e + t : `calc(${e} ${t < 0 ? "-" : "+"} ${Math.abs(t)})` : e, xi = 7, Si = {
|
|
2388
2388
|
light: {
|
|
2389
2389
|
"color-base-100": "#ffffff",
|
|
2390
2390
|
"color-base-200": "#f5f5f5",
|
|
@@ -2431,9 +2431,9 @@ var hi = class {
|
|
|
2431
2431
|
"radius-field": "4px",
|
|
2432
2432
|
"radius-box": "6px",
|
|
2433
2433
|
border: "1px",
|
|
2434
|
-
"z-grid": String(
|
|
2435
|
-
"z-popup": String(
|
|
2436
|
-
"z-tooltip": String(
|
|
2434
|
+
"z-grid": String(vi.grid),
|
|
2435
|
+
"z-popup": String(vi.popup),
|
|
2436
|
+
"z-tooltip": String(vi.tooltip),
|
|
2437
2437
|
"image-background": "none"
|
|
2438
2438
|
},
|
|
2439
2439
|
dark: {
|
|
@@ -2482,31 +2482,31 @@ var hi = class {
|
|
|
2482
2482
|
"radius-field": "4px",
|
|
2483
2483
|
"radius-box": "6px",
|
|
2484
2484
|
border: "1px",
|
|
2485
|
-
"z-grid": String(
|
|
2486
|
-
"z-popup": String(
|
|
2487
|
-
"z-tooltip": String(
|
|
2485
|
+
"z-grid": String(vi.grid),
|
|
2486
|
+
"z-popup": String(vi.popup),
|
|
2487
|
+
"z-tooltip": String(vi.tooltip),
|
|
2488
2488
|
"image-background": "linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10))"
|
|
2489
2489
|
}
|
|
2490
|
-
},
|
|
2491
|
-
function
|
|
2490
|
+
}, Ci = "--sxl-";
|
|
2491
|
+
function wi(e) {
|
|
2492
2492
|
let t = {};
|
|
2493
2493
|
for (let n in e) {
|
|
2494
2494
|
let r = e[n];
|
|
2495
2495
|
r != null && (Array.isArray(r) ? r.forEach((e, r) => {
|
|
2496
|
-
e != null && (t[`${
|
|
2497
|
-
}) : t[`${
|
|
2496
|
+
e != null && (t[`${Ci}${n}-${r + 1}`] = String(e));
|
|
2497
|
+
}) : t[`${Ci}${n}`] = String(r));
|
|
2498
2498
|
}
|
|
2499
2499
|
return t;
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2502
|
-
return
|
|
2501
|
+
function Ti(e, ...t) {
|
|
2502
|
+
return wi(Object.assign({}, Si[e], ...t.filter(Boolean)));
|
|
2503
2503
|
}
|
|
2504
|
-
var
|
|
2504
|
+
var Ei = ["light", "dark"], Di = "--sxl-input-selection", Oi = "color-mix(in srgb, var(--sxl-color-primary, rgb(0, 120, 215)) 20%, transparent)", ki = `:where(input,textarea,[contenteditable]:not([contenteditable="false"]))::selection{background-color:var(${Di},${Oi});}`, Ai = [
|
|
2505
2505
|
"sxl-defaults",
|
|
2506
2506
|
"sxl-app",
|
|
2507
2507
|
"sxl-overrides"
|
|
2508
|
-
],
|
|
2509
|
-
function
|
|
2508
|
+
], ji = `@layer ${Ai.join(", ")};`;
|
|
2509
|
+
function Mi(e) {
|
|
2510
2510
|
let t = "";
|
|
2511
2511
|
for (let n in e) {
|
|
2512
2512
|
let r = e[n];
|
|
@@ -2516,52 +2516,52 @@ function ji(e) {
|
|
|
2516
2516
|
}
|
|
2517
2517
|
return t;
|
|
2518
2518
|
}
|
|
2519
|
-
function
|
|
2520
|
-
let { app: t =
|
|
2519
|
+
function Ni(e = {}) {
|
|
2520
|
+
let { app: t = Si, surfaces: n = {}, hc: r, modeAttr: i = "data-sxl-theme-mode", surfaceAttr: a = "data-sxl-theme-surface", layer: o, scope: s } = e, c = [], l = {
|
|
2521
2521
|
app: {
|
|
2522
2522
|
light: t.light,
|
|
2523
2523
|
dark: t.dark
|
|
2524
2524
|
},
|
|
2525
2525
|
...n
|
|
2526
2526
|
}, u = s ? ":scope" : ":root", d = (e) => s ? `:scope${e},${e}` : e, f = (e) => s ? `:where(:scope[${a}="${e}"],[${a}="${e}"])` : `:where([${a}="${e}"])`, p = (e, t) => `${e} ${t}`;
|
|
2527
|
-
c.push(`:where(${u}){color-scheme:light;${
|
|
2527
|
+
c.push(`:where(${u}){color-scheme:light;${Mi(t.light)}}`);
|
|
2528
2528
|
for (let [e, t] of Object.entries(l)) {
|
|
2529
2529
|
let n = t?.light;
|
|
2530
|
-
n && Object.keys(n).length && c.push(`${f(e)}{${
|
|
2530
|
+
n && Object.keys(n).length && c.push(`${f(e)}{${Mi(n)}}`);
|
|
2531
2531
|
}
|
|
2532
|
-
for (let e of
|
|
2533
|
-
c.push(`${d(`[${i}="${e}"]`)}{color-scheme:${e};${
|
|
2532
|
+
for (let e of Ei) {
|
|
2533
|
+
c.push(`${d(`[${i}="${e}"]`)}{color-scheme:${e};${Mi(t[e])}}`);
|
|
2534
2534
|
for (let [t, n] of Object.entries(l)) {
|
|
2535
2535
|
let r = n?.[e];
|
|
2536
|
-
r && Object.keys(r).length && c.push(`${p(`[${i}="${e}"]`, `[${a}="${t}"]`)}{${
|
|
2536
|
+
r && Object.keys(r).length && c.push(`${p(`[${i}="${e}"]`, `[${a}="${t}"]`)}{${Mi(r)}}`);
|
|
2537
2537
|
}
|
|
2538
2538
|
}
|
|
2539
|
-
for (let e of
|
|
2539
|
+
for (let e of Ei) for (let [t, n] of Object.entries(l)) {
|
|
2540
2540
|
let r = n?.[e];
|
|
2541
|
-
r && Object.keys(r).length && c.push(`${d(`[${i}="${e}"][${a}="${t}"]`)}{${
|
|
2541
|
+
r && Object.keys(r).length && c.push(`${d(`[${i}="${e}"][${a}="${t}"]`)}{${Mi(r)}}`);
|
|
2542
2542
|
}
|
|
2543
|
-
r && Object.keys(r).length && c.push(`${d(`[${i}="hc"]`)}{${
|
|
2543
|
+
r && Object.keys(r).length && c.push(`${d(`[${i}="hc"]`)}{${Mi(r)}}`), c.push(ki);
|
|
2544
2544
|
let m = c.join("\n");
|
|
2545
|
-
return s && (m = `@scope (${s}){\n${m}\n}`), o && (m = `${
|
|
2546
|
-
}
|
|
2547
|
-
var
|
|
2548
|
-
let n = { [
|
|
2549
|
-
return t && (n[
|
|
2550
|
-
},
|
|
2551
|
-
function
|
|
2552
|
-
let { mode: t, fallback: n } = e || {}, r = D(
|
|
2545
|
+
return s && (m = `@scope (${s}){\n${m}\n}`), o && (m = `${ji}\n@layer ${o}{\n${m}\n}`), m;
|
|
2546
|
+
}
|
|
2547
|
+
var Pi = "data-sxl-theme-mode", Fi = "data-sxl-theme-surface", Ii = (e, t) => {
|
|
2548
|
+
let n = { [Fi]: e };
|
|
2549
|
+
return t && (n[Pi] = t), n;
|
|
2550
|
+
}, Li = (e, t) => `sheetxl-${e}-${t.replace(/[^A-Za-z0-9_-]/g, "")}`, Ri = b("light");
|
|
2551
|
+
function zi(e) {
|
|
2552
|
+
let { mode: t, fallback: n } = e || {}, r = D(Ri), i = n ?? r, [a, o] = F(() => {
|
|
2553
2553
|
if (t === "light" || t === "dark") return {
|
|
2554
2554
|
themeMode: t,
|
|
2555
2555
|
source: "prop"
|
|
2556
2556
|
};
|
|
2557
2557
|
if (typeof document < "u") {
|
|
2558
|
-
let e =
|
|
2558
|
+
let e = Vi();
|
|
2559
2559
|
if (e) return {
|
|
2560
2560
|
themeMode: e,
|
|
2561
2561
|
source: "class"
|
|
2562
2562
|
};
|
|
2563
2563
|
}
|
|
2564
|
-
return
|
|
2564
|
+
return Bi(i);
|
|
2565
2565
|
});
|
|
2566
2566
|
return O(() => {
|
|
2567
2567
|
let e = () => {
|
|
@@ -2570,11 +2570,11 @@ function Ri(e) {
|
|
|
2570
2570
|
themeMode: t,
|
|
2571
2571
|
source: "prop"
|
|
2572
2572
|
})));
|
|
2573
|
-
let e =
|
|
2573
|
+
let e = Vi();
|
|
2574
2574
|
o(e ? {
|
|
2575
2575
|
themeMode: e,
|
|
2576
2576
|
source: "class"
|
|
2577
|
-
} :
|
|
2577
|
+
} : Bi(i));
|
|
2578
2578
|
}, n = new MutationObserver(e), r = [document.documentElement, document.body].filter(Boolean);
|
|
2579
2579
|
for (let e of r) n.observe(e, {
|
|
2580
2580
|
attributes: !0,
|
|
@@ -2586,25 +2586,25 @@ function Ri(e) {
|
|
|
2586
2586
|
};
|
|
2587
2587
|
}, [t, i]), a;
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2589
|
+
function Bi(e) {
|
|
2590
2590
|
return e === "system" ? {
|
|
2591
|
-
themeMode:
|
|
2591
|
+
themeMode: Hi(),
|
|
2592
2592
|
source: "media"
|
|
2593
2593
|
} : {
|
|
2594
2594
|
themeMode: e,
|
|
2595
2595
|
source: "fallback"
|
|
2596
2596
|
};
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function Vi() {
|
|
2599
2599
|
if (typeof document > "u") return null;
|
|
2600
2600
|
let e = [...Array.from(document.body.classList), ...document.documentElement ? Array.from(document.documentElement.classList) : []];
|
|
2601
2601
|
return e.includes("dark") ? "dark" : e.includes("light") ? "light" : null;
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2603
|
+
function Hi() {
|
|
2604
2604
|
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
2605
2605
|
}
|
|
2606
|
-
var
|
|
2607
|
-
let { light: t, dark: n, base: r, surfaces: i, mode: a, surface: o, isolate: s = !1, layer: c = "sxl-overrides", children: l } = e, u =
|
|
2606
|
+
var Ui = b(null), Wi = () => D(Ui), Gi = (e) => {
|
|
2607
|
+
let { light: t, dark: n, base: r, surfaces: i, mode: a, surface: o, isolate: s = !1, layer: c = "sxl-overrides", children: l } = e, u = Wi(), d = M(() => ({
|
|
2608
2608
|
...r?.light ?? {},
|
|
2609
2609
|
...u?.light ?? {},
|
|
2610
2610
|
...t ?? {}
|
|
@@ -2620,7 +2620,7 @@ var Hi = b(null), Ui = () => D(Hi), Wi = (e) => {
|
|
|
2620
2620
|
r?.dark,
|
|
2621
2621
|
u?.dark,
|
|
2622
2622
|
n
|
|
2623
|
-
]), p =
|
|
2623
|
+
]), p = Li("token", k()), { themeMode: m } = zi(a === "light" || a === "dark" ? { mode: a } : { fallback: "system" }), h = a === void 0 ? void 0 : a === "auto" ? m : a, g = h ?? u?.mode, v = M(() => Ni({
|
|
2624
2624
|
app: {
|
|
2625
2625
|
light: d,
|
|
2626
2626
|
dark: f
|
|
@@ -2647,37 +2647,37 @@ var Hi = b(null), Ui = () => D(Hi), Wi = (e) => {
|
|
|
2647
2647
|
d,
|
|
2648
2648
|
f
|
|
2649
2649
|
]), b = L("style", { children: v }), x = {};
|
|
2650
|
-
h && (x[
|
|
2650
|
+
h && (x[Pi] = h), o && (x[Fi] = o);
|
|
2651
2651
|
let S = l;
|
|
2652
2652
|
if (s || Object.keys(x).length > 0) {
|
|
2653
2653
|
let e = _.Children.only(l);
|
|
2654
2654
|
s && (x.className = [p, e.props?.className].filter(Boolean).join(" ") || void 0), S = _.cloneElement(e, x);
|
|
2655
2655
|
}
|
|
2656
|
-
return R(
|
|
2656
|
+
return R(Ui.Provider, {
|
|
2657
2657
|
value: y,
|
|
2658
2658
|
children: [b, S]
|
|
2659
2659
|
});
|
|
2660
2660
|
};
|
|
2661
|
-
function
|
|
2661
|
+
function Ki(e, t) {
|
|
2662
2662
|
if (!e || typeof getComputedStyle > "u") return;
|
|
2663
|
-
let n = getComputedStyle(e).getPropertyValue(
|
|
2663
|
+
let n = getComputedStyle(e).getPropertyValue(Ji(t)).trim();
|
|
2664
2664
|
return n === "" ? void 0 : n;
|
|
2665
2665
|
}
|
|
2666
|
-
function
|
|
2666
|
+
function qi(e, t) {
|
|
2667
2667
|
let n = {};
|
|
2668
2668
|
if (!e || typeof getComputedStyle > "u") return n;
|
|
2669
2669
|
let r = getComputedStyle(e);
|
|
2670
2670
|
for (let e of t) {
|
|
2671
|
-
let t = r.getPropertyValue(
|
|
2671
|
+
let t = r.getPropertyValue(Ji(e)).trim();
|
|
2672
2672
|
t !== "" && (n[e] = t);
|
|
2673
2673
|
}
|
|
2674
2674
|
return n;
|
|
2675
2675
|
}
|
|
2676
|
-
function
|
|
2676
|
+
function Ji(e) {
|
|
2677
2677
|
return e.startsWith("--") ? e : `--sxl-${e}`;
|
|
2678
2678
|
}
|
|
2679
|
-
|
|
2680
|
-
var
|
|
2679
|
+
Gi.displayName = "TokenThemeProvider";
|
|
2680
|
+
var Yi = b(null), Xi = () => {
|
|
2681
2681
|
let e = (t, n) => {
|
|
2682
2682
|
if (n === null) return;
|
|
2683
2683
|
t.add(n);
|
|
@@ -2740,80 +2740,80 @@ var Ji = b(null), Yi = () => {
|
|
|
2740
2740
|
})
|
|
2741
2741
|
};
|
|
2742
2742
|
return i;
|
|
2743
|
-
},
|
|
2743
|
+
}, Zi = () => D(Yi), Qi = (e) => {
|
|
2744
2744
|
let t = {};
|
|
2745
|
-
return e ? (e.mode && (t[
|
|
2745
|
+
return e ? (e.mode && (t[Pi] = e.mode), e.surface && (t[Fi] = e.surface), {
|
|
2746
2746
|
className: e.classes?.length ? e.classes.join(" ") : void 0,
|
|
2747
2747
|
attrs: t
|
|
2748
2748
|
}) : { attrs: t };
|
|
2749
2749
|
};
|
|
2750
|
-
function
|
|
2750
|
+
function $i(e) {
|
|
2751
2751
|
var t, n, r = "";
|
|
2752
2752
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
2753
2753
|
else if (typeof e == "object") {
|
|
2754
2754
|
if (Array.isArray(e)) {
|
|
2755
2755
|
var i = e.length;
|
|
2756
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
2756
|
+
for (t = 0; t < i; t++) e[t] && (n = $i(e[t])) && (r && (r += " "), r += n);
|
|
2757
2757
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
2758
2758
|
}
|
|
2759
2759
|
return r;
|
|
2760
2760
|
}
|
|
2761
2761
|
function X() {
|
|
2762
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
2762
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = $i(e)) && (r && (r += " "), r += t);
|
|
2763
2763
|
return r;
|
|
2764
2764
|
}
|
|
2765
|
-
var
|
|
2765
|
+
var ea = Math.min, ta = Math.max, na = Math.round, ra = Math.floor, ia = (e) => ({
|
|
2766
2766
|
x: e,
|
|
2767
2767
|
y: e
|
|
2768
|
-
}),
|
|
2768
|
+
}), aa = {
|
|
2769
2769
|
left: "right",
|
|
2770
2770
|
right: "left",
|
|
2771
2771
|
bottom: "top",
|
|
2772
2772
|
top: "bottom"
|
|
2773
2773
|
};
|
|
2774
|
-
function
|
|
2774
|
+
function oa(e, t) {
|
|
2775
2775
|
return typeof e == "function" ? e(t) : e;
|
|
2776
2776
|
}
|
|
2777
|
-
function
|
|
2777
|
+
function sa(e) {
|
|
2778
2778
|
return e.split("-")[0];
|
|
2779
2779
|
}
|
|
2780
|
-
function
|
|
2780
|
+
function ca(e) {
|
|
2781
2781
|
return e.split("-")[1];
|
|
2782
2782
|
}
|
|
2783
|
-
function
|
|
2783
|
+
function la(e) {
|
|
2784
2784
|
return e === "x" ? "y" : "x";
|
|
2785
2785
|
}
|
|
2786
|
-
function
|
|
2786
|
+
function ua(e) {
|
|
2787
2787
|
return e === "y" ? "height" : "width";
|
|
2788
2788
|
}
|
|
2789
|
-
function
|
|
2789
|
+
function da(e) {
|
|
2790
2790
|
let t = e[0];
|
|
2791
2791
|
return t === "t" || t === "b" ? "y" : "x";
|
|
2792
2792
|
}
|
|
2793
|
-
function da(e) {
|
|
2794
|
-
return ca(ua(e));
|
|
2795
|
-
}
|
|
2796
2793
|
function fa(e) {
|
|
2794
|
+
return la(da(e));
|
|
2795
|
+
}
|
|
2796
|
+
function pa(e) {
|
|
2797
2797
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
2798
2798
|
}
|
|
2799
|
-
var
|
|
2800
|
-
function
|
|
2801
|
-
let i =
|
|
2799
|
+
var ma = ["left", "right"], ha = ["right", "left"], ga = ["top", "bottom"], _a = ["bottom", "top"];
|
|
2800
|
+
function va(e, t, n, r) {
|
|
2801
|
+
let i = ca(e), a = function(e, t, n) {
|
|
2802
2802
|
switch (e) {
|
|
2803
2803
|
case "top":
|
|
2804
|
-
case "bottom": return n ? t ?
|
|
2804
|
+
case "bottom": return n ? t ? ha : ma : t ? ma : ha;
|
|
2805
2805
|
case "left":
|
|
2806
|
-
case "right": return t ?
|
|
2806
|
+
case "right": return t ? ga : _a;
|
|
2807
2807
|
default: return [];
|
|
2808
2808
|
}
|
|
2809
|
-
}(
|
|
2810
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
2811
|
-
}
|
|
2812
|
-
function va(e) {
|
|
2813
|
-
let t = oa(e);
|
|
2814
|
-
return ia[t] + e.slice(t.length);
|
|
2809
|
+
}(sa(e), n === "start", r);
|
|
2810
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(pa)))), a;
|
|
2815
2811
|
}
|
|
2816
2812
|
function ya(e) {
|
|
2813
|
+
let t = sa(e);
|
|
2814
|
+
return aa[t] + e.slice(t.length);
|
|
2815
|
+
}
|
|
2816
|
+
function ba(e) {
|
|
2817
2817
|
let { x: t, y: n, width: r, height: i } = e;
|
|
2818
2818
|
return {
|
|
2819
2819
|
width: r,
|
|
@@ -2826,8 +2826,8 @@ function ya(e) {
|
|
|
2826
2826
|
y: n
|
|
2827
2827
|
};
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2830
|
-
let { reference: r, floating: i } = e, a =
|
|
2829
|
+
function xa(e, t, n) {
|
|
2830
|
+
let { reference: r, floating: i } = e, a = da(t), o = fa(t), s = ua(o), c = sa(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
2831
2831
|
switch (c) {
|
|
2832
2832
|
case "top":
|
|
2833
2833
|
p = {
|
|
@@ -2858,13 +2858,13 @@ function ba(e, t, n) {
|
|
|
2858
2858
|
y: r.y
|
|
2859
2859
|
};
|
|
2860
2860
|
}
|
|
2861
|
-
let m =
|
|
2861
|
+
let m = ca(t);
|
|
2862
2862
|
return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
|
|
2863
2863
|
}
|
|
2864
|
-
async function
|
|
2864
|
+
async function Sa(e, t) {
|
|
2865
2865
|
var n;
|
|
2866
2866
|
t === void 0 && (t = {});
|
|
2867
|
-
let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } =
|
|
2867
|
+
let { x: r, y: i, platform: a, rects: o, elements: s, strategy: c } = e, { boundary: l = "clippingAncestors", rootBoundary: u = "viewport", elementContext: d = "floating", altBoundary: f = !1, padding: p = 0 } = oa(t, e), m = function(e) {
|
|
2868
2868
|
return typeof e == "number" ? {
|
|
2869
2869
|
top: e,
|
|
2870
2870
|
right: e,
|
|
@@ -2878,7 +2878,7 @@ async function xa(e, t) {
|
|
|
2878
2878
|
left: e.left ?? 0
|
|
2879
2879
|
};
|
|
2880
2880
|
}(e);
|
|
2881
|
-
}(p), h = s[f ? d === "floating" ? "reference" : "floating" : d], g =
|
|
2881
|
+
}(p), h = s[f ? d === "floating" ? "reference" : "floating" : d], g = ba(await a.getClippingRect({
|
|
2882
2882
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(h))) == null || n ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
2883
2883
|
boundary: l,
|
|
2884
2884
|
rootBoundary: u,
|
|
@@ -2891,7 +2891,7 @@ async function xa(e, t) {
|
|
|
2891
2891
|
} : o.reference, v = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), y = await (a.isElement == null ? void 0 : a.isElement(v)) && await (a.getScale == null ? void 0 : a.getScale(v)) || {
|
|
2892
2892
|
x: 1,
|
|
2893
2893
|
y: 1
|
|
2894
|
-
}, b =
|
|
2894
|
+
}, b = ba(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2895
2895
|
elements: s,
|
|
2896
2896
|
rect: _,
|
|
2897
2897
|
offsetParent: v,
|
|
@@ -2904,40 +2904,40 @@ async function xa(e, t) {
|
|
|
2904
2904
|
right: (b.right - g.right + m.right) / y.x
|
|
2905
2905
|
};
|
|
2906
2906
|
}
|
|
2907
|
-
var
|
|
2908
|
-
function
|
|
2907
|
+
var Ca = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2908
|
+
function wa() {
|
|
2909
2909
|
return typeof window < "u";
|
|
2910
2910
|
}
|
|
2911
|
-
function wa(e) {
|
|
2912
|
-
return Da(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2913
|
-
}
|
|
2914
2911
|
function Ta(e) {
|
|
2915
|
-
|
|
2916
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2912
|
+
return Oa(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2917
2913
|
}
|
|
2918
2914
|
function Ea(e) {
|
|
2919
|
-
|
|
2915
|
+
var t;
|
|
2916
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2920
2917
|
}
|
|
2921
2918
|
function Da(e) {
|
|
2922
|
-
return
|
|
2919
|
+
return ((Oa(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
2923
2920
|
}
|
|
2924
2921
|
function Oa(e) {
|
|
2925
|
-
return !!
|
|
2922
|
+
return !!wa() && (e instanceof Node || e instanceof Ea(e).Node);
|
|
2926
2923
|
}
|
|
2927
2924
|
function ka(e) {
|
|
2928
|
-
return !!
|
|
2925
|
+
return !!wa() && (e instanceof Element || e instanceof Ea(e).Element);
|
|
2929
2926
|
}
|
|
2930
2927
|
function Aa(e) {
|
|
2931
|
-
return
|
|
2928
|
+
return !!wa() && (e instanceof HTMLElement || e instanceof Ea(e).HTMLElement);
|
|
2932
2929
|
}
|
|
2933
2930
|
function ja(e) {
|
|
2934
|
-
|
|
2935
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
2931
|
+
return !(!wa() || typeof ShadowRoot > "u") && (e instanceof ShadowRoot || e instanceof Ea(e).ShadowRoot);
|
|
2936
2932
|
}
|
|
2937
2933
|
function Ma(e) {
|
|
2938
|
-
|
|
2934
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Ha(e);
|
|
2935
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
2939
2936
|
}
|
|
2940
2937
|
function Na(e) {
|
|
2938
|
+
return /^(table|td|th)$/.test(Ta(e));
|
|
2939
|
+
}
|
|
2940
|
+
function Pa(e) {
|
|
2941
2941
|
try {
|
|
2942
2942
|
if (e.matches(":popover-open")) return !0;
|
|
2943
2943
|
} catch {}
|
|
@@ -2947,22 +2947,22 @@ function Na(e) {
|
|
|
2947
2947
|
return !1;
|
|
2948
2948
|
}
|
|
2949
2949
|
}
|
|
2950
|
-
var
|
|
2951
|
-
function
|
|
2952
|
-
let t =
|
|
2953
|
-
return
|
|
2954
|
-
}
|
|
2955
|
-
function za() {
|
|
2956
|
-
return Pa ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Pa;
|
|
2950
|
+
var Fa, Ia = /transform|translate|scale|rotate|perspective|filter/, La = /paint|layout|strict|content/, Ra = (e) => !!e && e !== "none";
|
|
2951
|
+
function za(e) {
|
|
2952
|
+
let t = ka(e) ? Ha(e) : e;
|
|
2953
|
+
return Ra(t.transform) || Ra(t.translate) || Ra(t.scale) || Ra(t.rotate) || Ra(t.perspective) || !Ba() && (Ra(t.backdropFilter) || Ra(t.filter)) || Ia.test(t.willChange || "") || La.test(t.contain || "");
|
|
2957
2954
|
}
|
|
2958
|
-
function Ba(
|
|
2959
|
-
return
|
|
2955
|
+
function Ba() {
|
|
2956
|
+
return Fa ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), Fa;
|
|
2960
2957
|
}
|
|
2961
2958
|
function Va(e) {
|
|
2962
|
-
return
|
|
2959
|
+
return /^(html|body|#document)$/.test(Ta(e));
|
|
2963
2960
|
}
|
|
2964
2961
|
function Ha(e) {
|
|
2965
|
-
return
|
|
2962
|
+
return Ea(e).getComputedStyle(e);
|
|
2963
|
+
}
|
|
2964
|
+
function Ua(e) {
|
|
2965
|
+
return ka(e) ? {
|
|
2966
2966
|
scrollLeft: e.scrollLeft,
|
|
2967
2967
|
scrollTop: e.scrollTop
|
|
2968
2968
|
} : {
|
|
@@ -2970,97 +2970,97 @@ function Ha(e) {
|
|
|
2970
2970
|
scrollTop: e.scrollY
|
|
2971
2971
|
};
|
|
2972
2972
|
}
|
|
2973
|
-
function Ua(e) {
|
|
2974
|
-
if (wa(e) === "html") return e;
|
|
2975
|
-
let t = e.assignedSlot || e.parentNode || Aa(e) && e.host || Ea(e);
|
|
2976
|
-
return Aa(t) ? t.host : t;
|
|
2977
|
-
}
|
|
2978
2973
|
function Wa(e) {
|
|
2979
|
-
|
|
2980
|
-
|
|
2974
|
+
if (Ta(e) === "html") return e;
|
|
2975
|
+
let t = e.assignedSlot || e.parentNode || ja(e) && e.host || Da(e);
|
|
2976
|
+
return ja(t) ? t.host : t;
|
|
2977
|
+
}
|
|
2978
|
+
function Ga(e) {
|
|
2979
|
+
let t = Wa(e);
|
|
2980
|
+
return Va(t) ? (e.ownerDocument || e).body : Aa(t) && Ma(t) ? t : Ga(t);
|
|
2981
2981
|
}
|
|
2982
|
-
function
|
|
2982
|
+
function Ka(e, t, n) {
|
|
2983
2983
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2984
|
-
let r =
|
|
2984
|
+
let r = Ga(e), i = r === e.ownerDocument?.body, a = Ea(r);
|
|
2985
2985
|
if (i) {
|
|
2986
|
-
let e =
|
|
2987
|
-
return t.concat(a, a.visualViewport || [],
|
|
2986
|
+
let e = qa(a);
|
|
2987
|
+
return t.concat(a, a.visualViewport || [], Ma(r) ? r : [], e && n ? Ka(e) : []);
|
|
2988
2988
|
}
|
|
2989
|
-
return t.concat(r,
|
|
2989
|
+
return t.concat(r, Ka(r, [], n));
|
|
2990
2990
|
}
|
|
2991
|
-
function
|
|
2991
|
+
function qa(e) {
|
|
2992
2992
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2993
2993
|
}
|
|
2994
|
-
function
|
|
2995
|
-
let t =
|
|
2994
|
+
function Ja(e) {
|
|
2995
|
+
let t = Ha(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Aa(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = na(n) !== a || na(r) !== o;
|
|
2996
2996
|
return s && (n = a, r = o), {
|
|
2997
2997
|
width: n,
|
|
2998
2998
|
height: r,
|
|
2999
2999
|
$: s
|
|
3000
3000
|
};
|
|
3001
3001
|
}
|
|
3002
|
-
function Ja(e) {
|
|
3003
|
-
return Oa(e) ? e : e.contextElement;
|
|
3004
|
-
}
|
|
3005
3002
|
function Ya(e) {
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3003
|
+
return ka(e) ? e : e.contextElement;
|
|
3004
|
+
}
|
|
3005
|
+
function Xa(e) {
|
|
3006
|
+
let t = Ya(e);
|
|
3007
|
+
if (!Aa(t)) return ia(1);
|
|
3008
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Ja(t), o = (a ? na(n.width) : n.width) / r, s = (a ? na(n.height) : n.height) / i;
|
|
3009
3009
|
return o && Number.isFinite(o) || (o = 1), s && Number.isFinite(s) || (s = 1), {
|
|
3010
3010
|
x: o,
|
|
3011
3011
|
y: s
|
|
3012
3012
|
};
|
|
3013
3013
|
}
|
|
3014
|
-
var
|
|
3015
|
-
function
|
|
3016
|
-
let t =
|
|
3017
|
-
return
|
|
3014
|
+
var Za = ia(0);
|
|
3015
|
+
function Qa(e) {
|
|
3016
|
+
let t = Ea(e);
|
|
3017
|
+
return Ba() && t.visualViewport ? {
|
|
3018
3018
|
x: t.visualViewport.offsetLeft,
|
|
3019
3019
|
y: t.visualViewport.offsetTop
|
|
3020
|
-
} :
|
|
3020
|
+
} : Za;
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3022
|
+
function $a(e, t, n, r) {
|
|
3023
3023
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
3024
|
-
let i = e.getBoundingClientRect(), a =
|
|
3025
|
-
t && (r ?
|
|
3024
|
+
let i = e.getBoundingClientRect(), a = Ya(e), o = ia(1);
|
|
3025
|
+
t && (r ? ka(r) && (o = Xa(r)) : o = Xa(e));
|
|
3026
3026
|
let s = function(e, t, n) {
|
|
3027
|
-
return t === void 0 && (t = !1), !!n && t && n ===
|
|
3028
|
-
}(a, n, r) ?
|
|
3027
|
+
return t === void 0 && (t = !1), !!n && t && n === Ea(e);
|
|
3028
|
+
}(a, n, r) ? Qa(a) : ia(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
3029
3029
|
if (a && r) {
|
|
3030
|
-
let e =
|
|
3030
|
+
let e = Ea(a), t = ka(r) ? Ea(r) : r, n = e, i = qa(n);
|
|
3031
3031
|
for (; i && t !== n;) {
|
|
3032
|
-
let e =
|
|
3033
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n =
|
|
3032
|
+
let e = Xa(i), t = i.getBoundingClientRect(), r = Ha(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
3033
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Ea(i), i = qa(n);
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
3036
|
-
return
|
|
3036
|
+
return ba({
|
|
3037
3037
|
width: u,
|
|
3038
3038
|
height: d,
|
|
3039
3039
|
x: c,
|
|
3040
3040
|
y: l
|
|
3041
3041
|
});
|
|
3042
3042
|
}
|
|
3043
|
-
function $a(e, t) {
|
|
3044
|
-
let n = Ha(e).scrollLeft;
|
|
3045
|
-
return t ? t.left + n : Qa(Ea(e)).left + n;
|
|
3046
|
-
}
|
|
3047
3043
|
function eo(e, t) {
|
|
3044
|
+
let n = Ua(e).scrollLeft;
|
|
3045
|
+
return t ? t.left + n : $a(Da(e)).left + n;
|
|
3046
|
+
}
|
|
3047
|
+
function to(e, t) {
|
|
3048
3048
|
let n = e.getBoundingClientRect();
|
|
3049
3049
|
return {
|
|
3050
|
-
x: n.left + t.scrollLeft -
|
|
3050
|
+
x: n.left + t.scrollLeft - eo(e, n),
|
|
3051
3051
|
y: n.top + t.scrollTop
|
|
3052
3052
|
};
|
|
3053
3053
|
}
|
|
3054
|
-
function
|
|
3054
|
+
function no(e, t, n) {
|
|
3055
3055
|
let r;
|
|
3056
3056
|
if (t === "viewport" || t === "layoutViewport") r = function(e, t, n) {
|
|
3057
3057
|
n === void 0 && (n = "viewport");
|
|
3058
|
-
let r = n === "layoutViewport", i =
|
|
3058
|
+
let r = n === "layoutViewport", i = Ea(e), a = Da(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
|
|
3059
3059
|
if (o) {
|
|
3060
|
-
let e = !
|
|
3060
|
+
let e = !Ba() || t === "fixed";
|
|
3061
3061
|
r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
|
|
3062
3062
|
}
|
|
3063
|
-
if (
|
|
3063
|
+
if (eo(a) <= 0) {
|
|
3064
3064
|
let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
|
|
3065
3065
|
o <= 25 && (s -= o);
|
|
3066
3066
|
}
|
|
@@ -3072,16 +3072,16 @@ function to(e, t, n) {
|
|
|
3072
3072
|
};
|
|
3073
3073
|
}(e, n, t);
|
|
3074
3074
|
else if (t === "document") r = function(e) {
|
|
3075
|
-
let t =
|
|
3076
|
-
return
|
|
3075
|
+
let t = Ua(e), n = e.ownerDocument.body, r = ta(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = ta(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + eo(e), o = -t.scrollTop;
|
|
3076
|
+
return Ha(n).direction === "rtl" && (a += ta(e.clientWidth, n.clientWidth) - r), {
|
|
3077
3077
|
width: r,
|
|
3078
3078
|
height: i,
|
|
3079
3079
|
x: a,
|
|
3080
3080
|
y: o
|
|
3081
3081
|
};
|
|
3082
|
-
}(
|
|
3083
|
-
else if (
|
|
3084
|
-
let n =
|
|
3082
|
+
}(Da(e));
|
|
3083
|
+
else if (ka(t)) r = function(e, t) {
|
|
3084
|
+
let n = $a(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Xa(e);
|
|
3085
3085
|
return {
|
|
3086
3086
|
width: e.clientWidth * a.x,
|
|
3087
3087
|
height: e.clientHeight * a.y,
|
|
@@ -3090,7 +3090,7 @@ function to(e, t, n) {
|
|
|
3090
3090
|
};
|
|
3091
3091
|
}(t, n);
|
|
3092
3092
|
else {
|
|
3093
|
-
let n =
|
|
3093
|
+
let n = Qa(e);
|
|
3094
3094
|
r = {
|
|
3095
3095
|
x: t.x - n.x,
|
|
3096
3096
|
y: t.y - n.y,
|
|
@@ -3098,29 +3098,29 @@ function to(e, t, n) {
|
|
|
3098
3098
|
height: t.height
|
|
3099
3099
|
};
|
|
3100
3100
|
}
|
|
3101
|
-
return
|
|
3101
|
+
return ba(r);
|
|
3102
3102
|
}
|
|
3103
|
-
function
|
|
3103
|
+
function ro(e, t) {
|
|
3104
3104
|
let n = t.get(e);
|
|
3105
3105
|
if (n) return n;
|
|
3106
|
-
let r =
|
|
3107
|
-
for (;
|
|
3108
|
-
let e =
|
|
3109
|
-
t || n !== "fixed" && (n !== "absolute" || e.position !== "static") ? i = e : r = r.filter((e) => e !== o), o =
|
|
3106
|
+
let r = Ka(e, [], !1).filter((e) => ka(e) && Ta(e) !== "body"), i = null, a = Ha(e).position === "fixed", o = a ? Wa(e) : e;
|
|
3107
|
+
for (; ka(o) && !Va(o);) {
|
|
3108
|
+
let e = Ha(o), t = za(o), n = i ? i.position : a ? "fixed" : "";
|
|
3109
|
+
t || n !== "fixed" && (n !== "absolute" || e.position !== "static") ? i = e : r = r.filter((e) => e !== o), o = Wa(o);
|
|
3110
3110
|
}
|
|
3111
3111
|
return t.set(e, r), r;
|
|
3112
3112
|
}
|
|
3113
|
-
function
|
|
3114
|
-
let r =
|
|
3113
|
+
function io(e, t, n) {
|
|
3114
|
+
let r = Aa(t), i = Da(t), a = n === "fixed", o = $a(e, !0, a, t), s = {
|
|
3115
3115
|
scrollLeft: 0,
|
|
3116
3116
|
scrollTop: 0
|
|
3117
|
-
}, c =
|
|
3118
|
-
if ((r || !a) && ((
|
|
3119
|
-
let e =
|
|
3117
|
+
}, c = ia(0);
|
|
3118
|
+
if ((r || !a) && ((Ta(t) !== "body" || Ma(i)) && (s = Ua(t)), r)) {
|
|
3119
|
+
let e = $a(t, !0, a, t);
|
|
3120
3120
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
3121
3121
|
}
|
|
3122
|
-
!r && i && (c.x =
|
|
3123
|
-
let l = !i || r || a ?
|
|
3122
|
+
!r && i && (c.x = eo(i));
|
|
3123
|
+
let l = !i || r || a ? ia(0) : to(i, s);
|
|
3124
3124
|
return {
|
|
3125
3125
|
x: o.left + s.scrollLeft - c.x - l.x,
|
|
3126
3126
|
y: o.top + s.scrollTop - c.y - l.y,
|
|
@@ -3128,51 +3128,51 @@ function ro(e, t, n) {
|
|
|
3128
3128
|
height: o.height
|
|
3129
3129
|
};
|
|
3130
3130
|
}
|
|
3131
|
-
function
|
|
3132
|
-
return
|
|
3131
|
+
function ao(e) {
|
|
3132
|
+
return Ha(e).position === "static";
|
|
3133
3133
|
}
|
|
3134
|
-
function
|
|
3135
|
-
if (!
|
|
3134
|
+
function oo(e, t) {
|
|
3135
|
+
if (!Aa(e) || Ha(e).position === "fixed") return null;
|
|
3136
3136
|
if (t) return t(e);
|
|
3137
3137
|
let n = e.offsetParent;
|
|
3138
|
-
return
|
|
3139
|
-
}
|
|
3140
|
-
function
|
|
3141
|
-
let n =
|
|
3142
|
-
if (
|
|
3143
|
-
if (!
|
|
3144
|
-
let t =
|
|
3145
|
-
for (; t && !
|
|
3146
|
-
if (
|
|
3147
|
-
t =
|
|
3138
|
+
return Da(e) === n && (n = n.ownerDocument.body), n;
|
|
3139
|
+
}
|
|
3140
|
+
function so(e, t) {
|
|
3141
|
+
let n = Ea(e);
|
|
3142
|
+
if (Pa(e)) return n;
|
|
3143
|
+
if (!Aa(e)) {
|
|
3144
|
+
let t = Wa(e);
|
|
3145
|
+
for (; t && !Va(t);) {
|
|
3146
|
+
if (ka(t) && !ao(t)) return t;
|
|
3147
|
+
t = Wa(t);
|
|
3148
3148
|
}
|
|
3149
3149
|
return n;
|
|
3150
3150
|
}
|
|
3151
|
-
let r =
|
|
3152
|
-
for (; r &&
|
|
3153
|
-
return r &&
|
|
3154
|
-
let t =
|
|
3155
|
-
for (;
|
|
3156
|
-
if (
|
|
3157
|
-
if (
|
|
3158
|
-
t =
|
|
3151
|
+
let r = oo(e, t);
|
|
3152
|
+
for (; r && Na(r) && ao(r);) r = oo(r, t);
|
|
3153
|
+
return r && Va(r) && ao(r) && !za(r) ? n : r || function(e) {
|
|
3154
|
+
let t = Wa(e);
|
|
3155
|
+
for (; Aa(t) && !Va(t);) {
|
|
3156
|
+
if (za(t)) return t;
|
|
3157
|
+
if (Pa(t)) return null;
|
|
3158
|
+
t = Wa(t);
|
|
3159
3159
|
}
|
|
3160
3160
|
return null;
|
|
3161
3161
|
}(e) || n;
|
|
3162
3162
|
}
|
|
3163
|
-
var
|
|
3163
|
+
var co = {
|
|
3164
3164
|
convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
|
|
3165
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o =
|
|
3165
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Da(r), s = !!t && Pa(t.floating);
|
|
3166
3166
|
if (r === o || s && a) return n;
|
|
3167
3167
|
let c = {
|
|
3168
3168
|
scrollLeft: 0,
|
|
3169
3169
|
scrollTop: 0
|
|
3170
|
-
}, l =
|
|
3171
|
-
if ((d || !a) && ((
|
|
3172
|
-
let e =
|
|
3173
|
-
l =
|
|
3170
|
+
}, l = ia(1), u = ia(0), d = Aa(r);
|
|
3171
|
+
if ((d || !a) && ((Ta(r) !== "body" || Ma(o)) && (c = Ua(r)), d)) {
|
|
3172
|
+
let e = $a(r);
|
|
3173
|
+
l = Xa(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
3174
3174
|
}
|
|
3175
|
-
let f = !o || d || a ?
|
|
3175
|
+
let f = !o || d || a ? ia(0) : to(o, c);
|
|
3176
3176
|
return {
|
|
3177
3177
|
width: n.width * l.x,
|
|
3178
3178
|
height: n.height * l.y,
|
|
@@ -3180,12 +3180,12 @@ var so = {
|
|
|
3180
3180
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
3181
3181
|
};
|
|
3182
3182
|
},
|
|
3183
|
-
getDocumentElement:
|
|
3183
|
+
getDocumentElement: Da,
|
|
3184
3184
|
getClippingRect: function(e) {
|
|
3185
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
3185
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Pa(t) ? [] : ro(t, this._c) : [].concat(n), r], o = no(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
3186
3186
|
for (let e = 1; e < a.length; e++) {
|
|
3187
|
-
let n =
|
|
3188
|
-
s =
|
|
3187
|
+
let n = no(t, a[e], i);
|
|
3188
|
+
s = ta(n.top, s), c = ea(n.right, c), l = ea(n.bottom, l), u = ta(n.left, u);
|
|
3189
3189
|
}
|
|
3190
3190
|
return {
|
|
3191
3191
|
width: c - u,
|
|
@@ -3194,11 +3194,11 @@ var so = {
|
|
|
3194
3194
|
y: s
|
|
3195
3195
|
};
|
|
3196
3196
|
},
|
|
3197
|
-
getOffsetParent:
|
|
3197
|
+
getOffsetParent: so,
|
|
3198
3198
|
getElementRects: async function(e) {
|
|
3199
|
-
let t = this.getOffsetParent ||
|
|
3199
|
+
let t = this.getOffsetParent || so, n = this.getDimensions, r = await n(e.floating);
|
|
3200
3200
|
return {
|
|
3201
|
-
reference:
|
|
3201
|
+
reference: io(e.reference, await t(e.floating), e.strategy),
|
|
3202
3202
|
floating: {
|
|
3203
3203
|
x: 0,
|
|
3204
3204
|
y: 0,
|
|
@@ -3211,29 +3211,29 @@ var so = {
|
|
|
3211
3211
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
3212
3212
|
},
|
|
3213
3213
|
getDimensions: function(e) {
|
|
3214
|
-
let { width: t, height: n } =
|
|
3214
|
+
let { width: t, height: n } = Ja(e);
|
|
3215
3215
|
return {
|
|
3216
3216
|
width: t,
|
|
3217
3217
|
height: n
|
|
3218
3218
|
};
|
|
3219
3219
|
},
|
|
3220
|
-
getScale:
|
|
3221
|
-
isElement:
|
|
3220
|
+
getScale: Xa,
|
|
3221
|
+
isElement: ka,
|
|
3222
3222
|
isRTL: function(e) {
|
|
3223
|
-
return
|
|
3223
|
+
return Ha(e).direction === "rtl";
|
|
3224
3224
|
}
|
|
3225
3225
|
};
|
|
3226
|
-
function
|
|
3226
|
+
function lo(e, t) {
|
|
3227
3227
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
3228
3228
|
}
|
|
3229
|
-
function
|
|
3229
|
+
function uo(e, t, n, r) {
|
|
3230
3230
|
r === void 0 && (r = {});
|
|
3231
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l =
|
|
3231
|
+
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ya(e), u = i || a ? [...l ? Ka(l) : [], ...t ? Ka(t) : []] : [];
|
|
3232
3232
|
u.forEach((e) => {
|
|
3233
3233
|
i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
|
|
3234
3234
|
});
|
|
3235
3235
|
let d = l && s ? function(e, t, n) {
|
|
3236
|
-
let r, i = null, a =
|
|
3236
|
+
let r, i = null, a = Da(e);
|
|
3237
3237
|
function o() {
|
|
3238
3238
|
var e;
|
|
3239
3239
|
clearTimeout(r), (e = i) == null || e.disconnect(), i = null;
|
|
@@ -3243,12 +3243,12 @@ function lo(e, t, n, r) {
|
|
|
3243
3243
|
let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
|
|
3244
3244
|
if (n || t(), !f || !p) return;
|
|
3245
3245
|
let m = {
|
|
3246
|
-
rootMargin: -
|
|
3247
|
-
threshold:
|
|
3246
|
+
rootMargin: -ra(d) + "px " + -ra(a.clientWidth - (u + f)) + "px " + -ra(a.clientHeight - (d + p)) + "px " + -ra(u) + "px",
|
|
3247
|
+
threshold: ta(0, ea(1, c)) || 1
|
|
3248
3248
|
}, h = !0;
|
|
3249
3249
|
function g(t) {
|
|
3250
3250
|
let n = t[0].intersectionRatio;
|
|
3251
|
-
if (!
|
|
3251
|
+
if (!lo(l, e.getBoundingClientRect())) return s();
|
|
3252
3252
|
if (n !== c) {
|
|
3253
3253
|
if (!h) return s();
|
|
3254
3254
|
n ? s(!1, n) : r = setTimeout(() => {
|
|
@@ -3267,7 +3267,7 @@ function lo(e, t, n, r) {
|
|
|
3267
3267
|
}
|
|
3268
3268
|
i.observe(e);
|
|
3269
3269
|
}
|
|
3270
|
-
let c =
|
|
3270
|
+
let c = Ea(e), l = () => s(n);
|
|
3271
3271
|
return c.addEventListener("resize", l), s(!0), () => {
|
|
3272
3272
|
c.removeEventListener("resize", l), o();
|
|
3273
3273
|
};
|
|
@@ -3279,10 +3279,10 @@ function lo(e, t, n, r) {
|
|
|
3279
3279
|
(e = m) == null || e.observe(t);
|
|
3280
3280
|
})), n();
|
|
3281
3281
|
}), l && !c && m.observe(l), t && m.observe(t));
|
|
3282
|
-
let h = c ?
|
|
3282
|
+
let h = c ? $a(e) : null;
|
|
3283
3283
|
return c && function t() {
|
|
3284
|
-
let r =
|
|
3285
|
-
h && !
|
|
3284
|
+
let r = $a(e);
|
|
3285
|
+
h && !lo(h, r) && n(), h = r, f = requestAnimationFrame(t);
|
|
3286
3286
|
}(), n(), () => {
|
|
3287
3287
|
var e;
|
|
3288
3288
|
u.forEach((e) => {
|
|
@@ -3290,14 +3290,14 @@ function lo(e, t, n, r) {
|
|
|
3290
3290
|
}), d?.(), (e = m) == null || e.disconnect(), m = null, c && cancelAnimationFrame(f);
|
|
3291
3291
|
};
|
|
3292
3292
|
}
|
|
3293
|
-
var
|
|
3293
|
+
var fo = function(e) {
|
|
3294
3294
|
return e === void 0 && (e = 0), {
|
|
3295
3295
|
name: "offset",
|
|
3296
3296
|
options: e,
|
|
3297
3297
|
async fn(t) {
|
|
3298
3298
|
var n;
|
|
3299
3299
|
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await async function(e, t) {
|
|
3300
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
3300
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = sa(n), s = ca(n), c = da(n) === "y", l = Ca.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = oa(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
3301
3301
|
mainAxis: d,
|
|
3302
3302
|
crossAxis: 0,
|
|
3303
3303
|
alignmentAxis: null
|
|
@@ -3324,7 +3324,7 @@ var uo = function(e) {
|
|
|
3324
3324
|
};
|
|
3325
3325
|
}
|
|
3326
3326
|
};
|
|
3327
|
-
},
|
|
3327
|
+
}, po = function(e) {
|
|
3328
3328
|
return e === void 0 && (e = {}), {
|
|
3329
3329
|
name: "shift",
|
|
3330
3330
|
options: e,
|
|
@@ -3335,11 +3335,11 @@ var uo = function(e) {
|
|
|
3335
3335
|
x: t,
|
|
3336
3336
|
y: n
|
|
3337
3337
|
};
|
|
3338
|
-
} }, ...l } =
|
|
3338
|
+
} }, ...l } = oa(e, t), u = {
|
|
3339
3339
|
x: n,
|
|
3340
3340
|
y: r
|
|
3341
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
3342
|
-
return
|
|
3341
|
+
}, d = await a.detectOverflow(t, l), f = da(i), p = la(f), m = u[p], h = u[f], g = (e, t) => function(e, t, n) {
|
|
3342
|
+
return ta(e, ea(t, n));
|
|
3343
3343
|
}(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
|
|
3344
3344
|
o && (m = g(p, m)), s && (h = g(f, h));
|
|
3345
3345
|
let _ = c.fn({
|
|
@@ -3360,29 +3360,29 @@ var uo = function(e) {
|
|
|
3360
3360
|
};
|
|
3361
3361
|
}
|
|
3362
3362
|
};
|
|
3363
|
-
},
|
|
3363
|
+
}, mo = function(e) {
|
|
3364
3364
|
return e === void 0 && (e = {}), {
|
|
3365
3365
|
name: "flip",
|
|
3366
3366
|
options: e,
|
|
3367
3367
|
async fn(t) {
|
|
3368
3368
|
var n;
|
|
3369
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
3369
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = oa(e, t);
|
|
3370
3370
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
3371
|
-
let g =
|
|
3372
|
-
let t =
|
|
3371
|
+
let g = sa(r), _ = da(o), v = sa(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [ya(o)] : function(e) {
|
|
3372
|
+
let t = ya(e);
|
|
3373
3373
|
return [
|
|
3374
|
-
|
|
3374
|
+
pa(e),
|
|
3375
3375
|
t,
|
|
3376
|
-
|
|
3376
|
+
pa(t)
|
|
3377
3377
|
];
|
|
3378
3378
|
}(o)), x = p !== "none";
|
|
3379
|
-
!d && x && b.push(...
|
|
3379
|
+
!d && x && b.push(...va(o, m, p, y));
|
|
3380
3380
|
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
3381
3381
|
if (l && w.push(C[g]), u) {
|
|
3382
3382
|
let e = function(e, t, n) {
|
|
3383
3383
|
n === void 0 && (n = !1);
|
|
3384
|
-
let r =
|
|
3385
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
3384
|
+
let r = ca(e), i = fa(e), a = ua(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
3385
|
+
return t.reference[a] > t.floating[a] && (o = ya(o)), [o, ya(o)];
|
|
3386
3386
|
}(r, a, y);
|
|
3387
3387
|
w.push(C[e[0]], C[e[1]]);
|
|
3388
3388
|
}
|
|
@@ -3391,7 +3391,7 @@ var uo = function(e) {
|
|
|
3391
3391
|
overflows: w
|
|
3392
3392
|
}], !w.every((e) => e <= 0)) {
|
|
3393
3393
|
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
3394
|
-
if (t && (u !== "alignment" || _ ===
|
|
3394
|
+
if (t && (u !== "alignment" || _ === da(t) || T.every((e) => da(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
3395
3395
|
data: {
|
|
3396
3396
|
index: e,
|
|
3397
3397
|
overflows: T
|
|
@@ -3403,7 +3403,7 @@ var uo = function(e) {
|
|
|
3403
3403
|
case "bestFit": {
|
|
3404
3404
|
let e = T.filter((e) => {
|
|
3405
3405
|
if (x) {
|
|
3406
|
-
let t =
|
|
3406
|
+
let t = da(e.placement);
|
|
3407
3407
|
return t === _ || t === "y";
|
|
3408
3408
|
}
|
|
3409
3409
|
return !0;
|
|
@@ -3418,15 +3418,15 @@ var uo = function(e) {
|
|
|
3418
3418
|
return {};
|
|
3419
3419
|
}
|
|
3420
3420
|
};
|
|
3421
|
-
},
|
|
3421
|
+
}, ho = function(e) {
|
|
3422
3422
|
return e === void 0 && (e = {}), {
|
|
3423
3423
|
name: "size",
|
|
3424
3424
|
options: e,
|
|
3425
3425
|
async fn(t) {
|
|
3426
|
-
let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } =
|
|
3426
|
+
let { placement: n, rects: r, platform: i, elements: a } = t, { apply: o = () => {}, ...s } = oa(e, t), c = await i.detectOverflow(t, s), l = sa(n), u = ca(n), d = da(n) === "y", { width: f, height: p } = r.floating, m, h;
|
|
3427
3427
|
l === "top" || l === "bottom" ? (m = l, h = u === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (h = l, m = u === "end" ? "top" : "bottom");
|
|
3428
|
-
let g = p - c.top - c.bottom, _ = f - c.left - c.right, v =
|
|
3429
|
-
b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 *
|
|
3428
|
+
let g = p - c.top - c.bottom, _ = f - c.left - c.right, v = ea(p - c[m], g), y = ea(f - c[h], _), b = t.middlewareData.shift, x = !b, S = v, C = y;
|
|
3429
|
+
b != null && b.enabled.x && (C = _), b != null && b.enabled.y && (S = g), x && !u && (d ? C = f - 2 * ta(c.left, c.right) : S = p - 2 * ta(c.top, c.bottom)), await o({
|
|
3430
3430
|
...t,
|
|
3431
3431
|
availableWidth: C,
|
|
3432
3432
|
availableHeight: S
|
|
@@ -3435,21 +3435,21 @@ var uo = function(e) {
|
|
|
3435
3435
|
return f !== w.width || p !== w.height ? { reset: { rects: !0 } } : {};
|
|
3436
3436
|
}
|
|
3437
3437
|
};
|
|
3438
|
-
},
|
|
3438
|
+
}, go = (e, t, n) => {
|
|
3439
3439
|
let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
|
|
3440
|
-
...
|
|
3440
|
+
...co,
|
|
3441
3441
|
...i.platform,
|
|
3442
3442
|
_c: r
|
|
3443
3443
|
};
|
|
3444
3444
|
return (async (e, t, n) => {
|
|
3445
3445
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
3446
3446
|
...o,
|
|
3447
|
-
detectOverflow:
|
|
3447
|
+
detectOverflow: Sa
|
|
3448
3448
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
3449
3449
|
reference: e,
|
|
3450
3450
|
floating: t,
|
|
3451
3451
|
strategy: i
|
|
3452
|
-
}), { x: u, y: d } =
|
|
3452
|
+
}), { x: u, y: d } = xa(l, r, c), f = r, p = 0, m = {};
|
|
3453
3453
|
for (let n = 0; n < a.length; n++) {
|
|
3454
3454
|
let h = a[n];
|
|
3455
3455
|
if (!h) continue;
|
|
@@ -3474,7 +3474,7 @@ var uo = function(e) {
|
|
|
3474
3474
|
reference: e,
|
|
3475
3475
|
floating: t,
|
|
3476
3476
|
strategy: i
|
|
3477
|
-
}) : x.rects), {x: u, y: d} =
|
|
3477
|
+
}) : x.rects), {x: u, y: d} = xa(l, f, c)), n = -1);
|
|
3478
3478
|
}
|
|
3479
3479
|
return {
|
|
3480
3480
|
x: u,
|
|
@@ -3487,8 +3487,8 @@ var uo = function(e) {
|
|
|
3487
3487
|
...i,
|
|
3488
3488
|
platform: a
|
|
3489
3489
|
});
|
|
3490
|
-
},
|
|
3491
|
-
function
|
|
3490
|
+
}, _o = typeof document < "u" ? j : function() {};
|
|
3491
|
+
function vo(e, t) {
|
|
3492
3492
|
if (e === t) return !0;
|
|
3493
3493
|
if (typeof e != typeof t) return !1;
|
|
3494
3494
|
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
@@ -3496,66 +3496,66 @@ function _o(e, t) {
|
|
|
3496
3496
|
if (e && t && typeof e == "object") {
|
|
3497
3497
|
if (Array.isArray(e)) {
|
|
3498
3498
|
if (n = e.length, n !== t.length) return !1;
|
|
3499
|
-
for (r = n; r-- !== 0;) if (!
|
|
3499
|
+
for (r = n; r-- !== 0;) if (!vo(e[r], t[r])) return !1;
|
|
3500
3500
|
return !0;
|
|
3501
3501
|
}
|
|
3502
3502
|
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
3503
3503
|
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
3504
3504
|
for (r = n; r-- !== 0;) {
|
|
3505
3505
|
let n = i[r];
|
|
3506
|
-
if ((n !== "_owner" || !e.$$typeof) && !
|
|
3506
|
+
if ((n !== "_owner" || !e.$$typeof) && !vo(e[n], t[n])) return !1;
|
|
3507
3507
|
}
|
|
3508
3508
|
return !0;
|
|
3509
3509
|
}
|
|
3510
3510
|
return e != e && t != t;
|
|
3511
3511
|
}
|
|
3512
|
-
function
|
|
3512
|
+
function yo(e) {
|
|
3513
3513
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3516
|
-
let n =
|
|
3515
|
+
function bo(e, t) {
|
|
3516
|
+
let n = yo(e);
|
|
3517
3517
|
return Math.round(t * n) / n;
|
|
3518
3518
|
}
|
|
3519
|
-
function
|
|
3519
|
+
function xo(e) {
|
|
3520
3520
|
let t = g.useRef(e);
|
|
3521
|
-
return
|
|
3521
|
+
return _o(() => {
|
|
3522
3522
|
t.current = e;
|
|
3523
3523
|
}), t;
|
|
3524
3524
|
}
|
|
3525
|
-
var
|
|
3526
|
-
let n =
|
|
3525
|
+
var So = (e, t) => {
|
|
3526
|
+
let n = fo(e);
|
|
3527
3527
|
return {
|
|
3528
3528
|
name: n.name,
|
|
3529
3529
|
fn: n.fn,
|
|
3530
3530
|
options: [e, t]
|
|
3531
3531
|
};
|
|
3532
|
-
},
|
|
3533
|
-
let n =
|
|
3532
|
+
}, Co = (e, t) => {
|
|
3533
|
+
let n = mo(e);
|
|
3534
3534
|
return {
|
|
3535
3535
|
name: n.name,
|
|
3536
3536
|
fn: n.fn,
|
|
3537
3537
|
options: [e, t]
|
|
3538
3538
|
};
|
|
3539
|
-
},
|
|
3540
|
-
let n =
|
|
3539
|
+
}, wo = (e, t) => {
|
|
3540
|
+
let n = ho(e);
|
|
3541
3541
|
return {
|
|
3542
3542
|
name: n.name,
|
|
3543
3543
|
fn: n.fn,
|
|
3544
3544
|
options: [e, t]
|
|
3545
3545
|
};
|
|
3546
|
-
},
|
|
3546
|
+
}, To = (e) => {
|
|
3547
3547
|
let t = e?.ownerDocument, n = E((e) => {
|
|
3548
3548
|
if (!t || typeof MutationObserver > "u") return () => {};
|
|
3549
3549
|
let n = new MutationObserver(e);
|
|
3550
3550
|
return n.observe(t.documentElement, {
|
|
3551
3551
|
attributes: !0,
|
|
3552
3552
|
subtree: !0,
|
|
3553
|
-
attributeFilter: [
|
|
3553
|
+
attributeFilter: [Pi, Fi]
|
|
3554
3554
|
}), () => n.disconnect();
|
|
3555
3555
|
}, [t]), r = () => `${e?.closest("[data-sxl-theme-mode]")?.getAttribute("data-sxl-theme-mode") ?? ""}\n${e?.closest("[data-sxl-theme-surface]")?.getAttribute("data-sxl-theme-surface") ?? ""}`, [i, a] = I(n, r, r).split("\n"), o = {};
|
|
3556
|
-
return i && (o[
|
|
3557
|
-
},
|
|
3558
|
-
let e = D(
|
|
3556
|
+
return i && (o[Pi] = i), a && (o[Fi] = a), o;
|
|
3557
|
+
}, Eo = () => {
|
|
3558
|
+
let e = D(Yi), t = Wi();
|
|
3559
3559
|
return M(() => {
|
|
3560
3560
|
let n = e?.themeScope;
|
|
3561
3561
|
return t?.scopeClass || t?.mode ? {
|
|
@@ -3568,16 +3568,16 @@ var xo = (e, t) => {
|
|
|
3568
3568
|
t?.scopeClass,
|
|
3569
3569
|
t?.mode
|
|
3570
3570
|
]);
|
|
3571
|
-
},
|
|
3571
|
+
}, Do = "_float-popper_1z06c_1", Oo = "_float-popper-grow_1z06c_14", ko = "_entered_1z06c_22", Ao = [0, 2], jo = (e) => {
|
|
3572
3572
|
let t = typeof e == "function" ? e() : e;
|
|
3573
3573
|
if (!t) return null;
|
|
3574
3574
|
if (t.nodeType === 1) return t;
|
|
3575
3575
|
let n = t.contextElement;
|
|
3576
3576
|
return n && n.nodeType === 1 ? n : null;
|
|
3577
|
-
},
|
|
3578
|
-
let { open: n, children: r, label: a, offsets: o =
|
|
3577
|
+
}, Mo = T(S((e, t) => {
|
|
3578
|
+
let { open: n, children: r, label: a, offsets: o = Ao, anchorEl: s, anchorPosition: c, placement: l = "bottom-start", resizeOnOverflow: u = !0, boundary: d, shift: f = !1, transition: p = !0, container: m, zIndex: h, strategy: _ = "absolute", themeFrom: v = "provider", followAnchor: y = !1, style: b, className: x, onMount: S, onOpening: C, onOpen: w, onClosing: T, onClose: D, ...k } = e;
|
|
3579
3579
|
if (Array.isArray(r)) throw Error("children can not be an array");
|
|
3580
|
-
let j = Y(S ?? (() => {}), [S]), N = Y(C ?? (() => {}), [C]), I = Y(w ?? (() => {}), [w]), ee = Y(T ?? (() => {}), [T]), te = Y(D ?? (() => {}), [D]), [R, z] = F(!1), [B, H] = F(!1), [U, W] = F(!1), [re, ie] = F(), [ae, G] = F(), oe = P(null), se = P(null), { getPortalContainer: ce } =
|
|
3580
|
+
let j = Y(S ?? (() => {}), [S]), N = Y(C ?? (() => {}), [C]), I = Y(w ?? (() => {}), [w]), ee = Y(T ?? (() => {}), [T]), te = Y(D ?? (() => {}), [D]), [R, z] = F(!1), [B, H] = F(!1), [U, W] = F(!1), [re, ie] = F(), [ae, G] = F(), oe = P(null), se = P(null), { getPortalContainer: ce } = Mn(), le = Eo(), ue = To(c ? null : jo(s)), de = P(d);
|
|
3581
3581
|
de.current = d;
|
|
3582
3582
|
let fe = !!d, pe = f ? typeof f == "object" ? f.padding ?? 0 : 0 : null, { mainAxis: me, crossAxis: K, alignmentAxis: q } = Array.isArray(o) ? {
|
|
3583
3583
|
mainAxis: o[1] ?? 0,
|
|
@@ -3588,13 +3588,13 @@ var xo = (e, t) => {
|
|
|
3588
3588
|
crossAxis: o.crossAxis ?? 0,
|
|
3589
3589
|
alignmentAxis: o.alignmentAxis
|
|
3590
3590
|
}, he = M(() => {
|
|
3591
|
-
let e = () => de.current?.(), t = [
|
|
3591
|
+
let e = () => de.current?.(), t = [So({
|
|
3592
3592
|
mainAxis: me,
|
|
3593
3593
|
crossAxis: K,
|
|
3594
3594
|
alignmentAxis: q
|
|
3595
|
-
}),
|
|
3595
|
+
}), Co(fe ? () => ({ boundary: e() }) : { rootBoundary: "document" })];
|
|
3596
3596
|
if (pe !== null && t.push(((e, t) => {
|
|
3597
|
-
let n =
|
|
3597
|
+
let n = po(e);
|
|
3598
3598
|
return {
|
|
3599
3599
|
name: n.name,
|
|
3600
3600
|
fn: n.fn,
|
|
@@ -3610,7 +3610,7 @@ var xo = (e, t) => {
|
|
|
3610
3610
|
let r = Math.max(0, Math.round(t - 10));
|
|
3611
3611
|
G((e) => e === r ? e : r);
|
|
3612
3612
|
};
|
|
3613
|
-
t.push(
|
|
3613
|
+
t.push(wo(fe ? () => ({
|
|
3614
3614
|
boundary: e(),
|
|
3615
3615
|
apply: n
|
|
3616
3616
|
}) : {
|
|
@@ -3633,7 +3633,7 @@ var xo = (e, t) => {
|
|
|
3633
3633
|
return e && (e.width || e.height || e.x || e.y) ? (se.current = e, e) : se.current ?? new DOMRect(0, 0, 0, 0);
|
|
3634
3634
|
},
|
|
3635
3635
|
get contextElement() {
|
|
3636
|
-
if (!c) return
|
|
3636
|
+
if (!c) return jo(s) ?? void 0;
|
|
3637
3637
|
}
|
|
3638
3638
|
}), [c, s]), { refs: J, floatingStyles: _e, isPositioned: ve, placement: ye, update: be } = function(e) {
|
|
3639
3639
|
e === void 0 && (e = {});
|
|
@@ -3645,24 +3645,24 @@ var xo = (e, t) => {
|
|
|
3645
3645
|
middlewareData: {},
|
|
3646
3646
|
isPositioned: !1
|
|
3647
3647
|
}), [f, p] = g.useState(r);
|
|
3648
|
-
|
|
3648
|
+
vo(f, r) || p(r);
|
|
3649
3649
|
let [m, h] = g.useState(null), [_, v] = g.useState(null), y = g.useCallback((e) => {
|
|
3650
3650
|
e !== C.current && (C.current = e, h(e));
|
|
3651
3651
|
}, []), b = g.useCallback((e) => {
|
|
3652
3652
|
e !== w.current && (w.current = e, v(e));
|
|
3653
|
-
}, []), x = a || m, S = o || _, C = g.useRef(null), w = g.useRef(null), T = g.useRef(u), E = c != null, D =
|
|
3653
|
+
}, []), x = a || m, S = o || _, C = g.useRef(null), w = g.useRef(null), T = g.useRef(u), E = c != null, D = xo(c), O = xo(i), k = xo(l), A = g.useCallback(() => {
|
|
3654
3654
|
if (!C.current || !w.current) return;
|
|
3655
3655
|
let e = {
|
|
3656
3656
|
placement: t,
|
|
3657
3657
|
strategy: n,
|
|
3658
3658
|
middleware: f
|
|
3659
3659
|
};
|
|
3660
|
-
O.current && (e.platform = O.current),
|
|
3660
|
+
O.current && (e.platform = O.current), go(C.current, w.current, e).then((e) => {
|
|
3661
3661
|
let t = {
|
|
3662
3662
|
...e,
|
|
3663
3663
|
isPositioned: !1 !== k.current
|
|
3664
3664
|
};
|
|
3665
|
-
j.current && !
|
|
3665
|
+
j.current && !vo(T.current, t) && (T.current = t, ne.flushSync(() => {
|
|
3666
3666
|
d(t);
|
|
3667
3667
|
}));
|
|
3668
3668
|
});
|
|
@@ -3673,16 +3673,16 @@ var xo = (e, t) => {
|
|
|
3673
3673
|
O,
|
|
3674
3674
|
k
|
|
3675
3675
|
]);
|
|
3676
|
-
|
|
3676
|
+
_o(() => {
|
|
3677
3677
|
!1 === l && T.current.isPositioned && (T.current.isPositioned = !1, d((e) => ({
|
|
3678
3678
|
...e,
|
|
3679
3679
|
isPositioned: !1
|
|
3680
3680
|
})));
|
|
3681
3681
|
}, [l]);
|
|
3682
3682
|
let j = g.useRef(!1);
|
|
3683
|
-
|
|
3683
|
+
_o(() => (j.current = !0, () => {
|
|
3684
3684
|
j.current = !1;
|
|
3685
|
-
}), []),
|
|
3685
|
+
}), []), _o(() => {
|
|
3686
3686
|
if (x && (C.current = x), S && (w.current = S), x && S) {
|
|
3687
3687
|
if (D.current) return D.current(x, S, A);
|
|
3688
3688
|
A();
|
|
@@ -3709,11 +3709,11 @@ var xo = (e, t) => {
|
|
|
3709
3709
|
top: 0
|
|
3710
3710
|
};
|
|
3711
3711
|
if (!N.floating) return e;
|
|
3712
|
-
let t =
|
|
3712
|
+
let t = bo(N.floating, u.x), r = bo(N.floating, u.y);
|
|
3713
3713
|
return s ? {
|
|
3714
3714
|
...e,
|
|
3715
3715
|
transform: "translate(" + t + "px, " + r + "px)",
|
|
3716
|
-
...
|
|
3716
|
+
...yo(N.floating) >= 1.5 && { willChange: "transform" }
|
|
3717
3717
|
} : {
|
|
3718
3718
|
position: n,
|
|
3719
3719
|
left: t,
|
|
@@ -3743,7 +3743,7 @@ var xo = (e, t) => {
|
|
|
3743
3743
|
placement: l,
|
|
3744
3744
|
strategy: _,
|
|
3745
3745
|
middleware: he,
|
|
3746
|
-
whileElementsMounted: M(() => y ? (e, t, n) =>
|
|
3746
|
+
whileElementsMounted: M(() => y ? (e, t, n) => uo(e, t, n, { animationFrame: !0 }) : uo, [y]),
|
|
3747
3747
|
elements: { reference: ge }
|
|
3748
3748
|
}), xe = E((e) => {
|
|
3749
3749
|
oe.current = e, J.setFloating(e);
|
|
@@ -3779,15 +3779,15 @@ var xo = (e, t) => {
|
|
|
3779
3779
|
e.target === e.currentTarget && n && U && I?.();
|
|
3780
3780
|
}, [n, U]);
|
|
3781
3781
|
if (!R) return null;
|
|
3782
|
-
let Ce = (ye ?? l).startsWith("bottom") ? "left top" : "center bottom", { className: we, attrs: Te } =
|
|
3782
|
+
let Ce = (ye ?? l).startsWith("bottom") ? "left top" : "center bottom", { className: we, attrs: Te } = Qi(le), Ee;
|
|
3783
3783
|
Ee = v === "anchor" ? {
|
|
3784
3784
|
...Te,
|
|
3785
3785
|
...ue
|
|
3786
3786
|
} : we || Te["data-sxl-theme-mode"] || Te["data-sxl-theme-surface"] ? Te : ue;
|
|
3787
|
-
let De = h ??
|
|
3787
|
+
let De = h ?? yi("popup"), Oe = r || i.EmptyArray;
|
|
3788
3788
|
return V(L("div", {
|
|
3789
3789
|
ref: xe,
|
|
3790
|
-
className: X(
|
|
3790
|
+
className: X(Do, x, we),
|
|
3791
3791
|
role: void 0,
|
|
3792
3792
|
"data-placement": ye ?? l,
|
|
3793
3793
|
...Ee,
|
|
@@ -3795,29 +3795,29 @@ var xo = (e, t) => {
|
|
|
3795
3795
|
..._e,
|
|
3796
3796
|
maxHeight: u ? re : void 0,
|
|
3797
3797
|
maxWidth: u ? ae : void 0,
|
|
3798
|
-
zIndex: n ? De :
|
|
3798
|
+
zIndex: n ? De : bi(De, -1),
|
|
3799
3799
|
pointerEvents: R && n ? void 0 : "none",
|
|
3800
3800
|
...b
|
|
3801
3801
|
},
|
|
3802
3802
|
...k,
|
|
3803
3803
|
children: p ? L("div", {
|
|
3804
|
-
className: X(
|
|
3804
|
+
className: X(Oo, { [ko]: U }),
|
|
3805
3805
|
style: { transformOrigin: Ce },
|
|
3806
3806
|
onTransitionEnd: Se,
|
|
3807
3807
|
children: Oe
|
|
3808
3808
|
}) : Oe
|
|
3809
3809
|
}), m ?? ce());
|
|
3810
3810
|
}));
|
|
3811
|
-
|
|
3812
|
-
var
|
|
3811
|
+
Mo.displayName = "FloatPopper";
|
|
3812
|
+
var No = "_float-popup_juap7_1", Po = (e) => {
|
|
3813
3813
|
let { closeFloat: t, closeFloatAll: n, floatReference: r, popupContainer: i, children: a, className: o, ...s } = e;
|
|
3814
3814
|
return L("div", {
|
|
3815
|
-
className: X("menu",
|
|
3815
|
+
className: X("sxl-menu", No, o),
|
|
3816
3816
|
...s,
|
|
3817
3817
|
children: a
|
|
3818
3818
|
});
|
|
3819
|
-
},
|
|
3820
|
-
let { floatReference: n, popupContainer: r, renderPopupPanel: i =
|
|
3819
|
+
}, Fo = "_float-panel_qj0za_1", Io = T(S((e, t) => {
|
|
3820
|
+
let { floatReference: n, popupContainer: r, renderPopupPanel: i = Po, children: a, className: o, ...s } = e, c = {
|
|
3821
3821
|
popupContainer: r,
|
|
3822
3822
|
floatReference: n,
|
|
3823
3823
|
children: a,
|
|
@@ -3825,19 +3825,19 @@ var Mo = "_float-popup_juap7_1", No = (e) => {
|
|
|
3825
3825
|
};
|
|
3826
3826
|
return L("div", {
|
|
3827
3827
|
ref: t,
|
|
3828
|
-
className: X(
|
|
3828
|
+
className: X(Fo, o),
|
|
3829
3829
|
tabIndex: 0,
|
|
3830
|
-
children: L(
|
|
3830
|
+
children: L(ai, {
|
|
3831
3831
|
render: i,
|
|
3832
3832
|
props: c
|
|
3833
3833
|
})
|
|
3834
3834
|
});
|
|
3835
3835
|
}));
|
|
3836
|
-
|
|
3837
|
-
var
|
|
3838
|
-
let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, renderPopupPanel: s =
|
|
3836
|
+
Io.displayName = "FloatPanelSurface";
|
|
3837
|
+
var Lo = T(S((e, t) => {
|
|
3838
|
+
let { open: n, anchorEl: r, anchorPosition: i, label: a, floatReference: o, renderPopupPanel: s = Po, propsPopper: c, onMount: l, onClosing: u, onClose: d, onOpening: f, onOpen: p, children: m, className: h, ...g } = e, _ = Y(u ?? (() => {}), [u]), v = Y(d ?? (() => {}), [d]), y = Y(f ?? (() => {}), [f]), b = Y(p ?? (() => {}), [p]), [x, S] = F(), C = P(null), w = Y((e, t) => {
|
|
3839
3839
|
S(e), l?.(C.current, t);
|
|
3840
|
-
}, [l]), T = M(() => L(
|
|
3840
|
+
}, [l]), T = M(() => L(Io, {
|
|
3841
3841
|
ref: C,
|
|
3842
3842
|
className: h,
|
|
3843
3843
|
floatReference: o,
|
|
@@ -3851,7 +3851,7 @@ var Io = T(S((e, t) => {
|
|
|
3851
3851
|
x,
|
|
3852
3852
|
o
|
|
3853
3853
|
]);
|
|
3854
|
-
return L(
|
|
3854
|
+
return L(Mo, {
|
|
3855
3855
|
ref: t,
|
|
3856
3856
|
anchorEl: r,
|
|
3857
3857
|
anchorPosition: i,
|
|
@@ -3866,9 +3866,9 @@ var Io = T(S((e, t) => {
|
|
|
3866
3866
|
children: T
|
|
3867
3867
|
});
|
|
3868
3868
|
}));
|
|
3869
|
-
|
|
3870
|
-
var
|
|
3871
|
-
let { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: r, themeScopeClass: i, themeSurface: a, themeMode: o, isolate: s, rootRef: c, children: l } = e, u = D(
|
|
3869
|
+
Lo.displayName = "FloatPanel";
|
|
3870
|
+
var Ro = (e) => L(Lo, { ...e }), zo = (e) => {
|
|
3871
|
+
let { renderFloatPanel: t, renderPopupPanel: n, propsFloatPanel: r, themeScopeClass: i, themeSurface: a, themeMode: o, isolate: s, rootRef: c, children: l } = e, u = D(Yi), d = M(() => {
|
|
3872
3872
|
let e = u?.themeScope, s = i ? [...e?.classes ?? [], i] : e?.classes, c = a ?? e?.surface, l = o ?? e?.mode, d = s?.length || c || l ? {
|
|
3873
3873
|
classes: s,
|
|
3874
3874
|
surface: c,
|
|
@@ -3888,11 +3888,11 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
3888
3888
|
a,
|
|
3889
3889
|
o,
|
|
3890
3890
|
u
|
|
3891
|
-
]), f = Qt(), p = L(
|
|
3891
|
+
]), f = Qt(), p = L(Yi.Provider, {
|
|
3892
3892
|
value: d,
|
|
3893
3893
|
children: l
|
|
3894
3894
|
}), m = s || !f, h = P(null);
|
|
3895
|
-
m && h.current === null && (h.current =
|
|
3895
|
+
m && h.current === null && (h.current = Xi());
|
|
3896
3896
|
let g = m ? h.current : null;
|
|
3897
3897
|
g && (p = L(Zt, {
|
|
3898
3898
|
value: g,
|
|
@@ -3906,8 +3906,8 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
3906
3906
|
c.current = null;
|
|
3907
3907
|
});
|
|
3908
3908
|
}, [c, _]), p;
|
|
3909
|
-
},
|
|
3910
|
-
let { anchor: t, autoFocus: n = !0, disableClickAway: r = !1, label: i = null, parentFloat: a = null, onOpen: o, onClose: s, propsPopper: c, renderPopupPanel: l, renderFloatPanel: u } = e ?? {}, d = Y(o ?? (() => {}), [o]), f = Y(s ?? (() => {}), [s]), p =
|
|
3909
|
+
}, Bo = (e) => {
|
|
3910
|
+
let { anchor: t, autoFocus: n = !0, disableClickAway: r = !1, label: i = null, parentFloat: a = null, onOpen: o, onClose: s, propsPopper: c, renderPopupPanel: l, renderFloatPanel: u } = e ?? {}, d = Y(o ?? (() => {}), [o]), f = Y(s ?? (() => {}), [s]), p = Zi(), m = u ?? p?.renderFloatPanel ?? Ro, h = l === void 0 ? p?.renderPopupPanel ?? Po : l, g = Qt(), [_, v] = F(null), [y, b] = F(!1), [x, S] = F(!1), C = M(() => a ?? g ?? Xi(), []), w = M(() => C.getRoot(), []), T = M(() => ({ label: i }), []), D = P(null), k = P(t);
|
|
3911
3911
|
O(() => {
|
|
3912
3912
|
k.current = t;
|
|
3913
3913
|
}, [t]);
|
|
@@ -3998,7 +3998,7 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
3998
3998
|
O(() => {
|
|
3999
3999
|
U && (_ ? d?.() : !1 === _ && f?.()), de(y ? L(Zt, {
|
|
4000
4000
|
value: G,
|
|
4001
|
-
children: L(
|
|
4001
|
+
children: L(ai, {
|
|
4002
4002
|
render: m,
|
|
4003
4003
|
props: {
|
|
4004
4004
|
...p?.propsFloatPanel,
|
|
@@ -4061,8 +4061,8 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4061
4061
|
reference: G,
|
|
4062
4062
|
isOpen: !0 === _
|
|
4063
4063
|
};
|
|
4064
|
-
},
|
|
4065
|
-
let { onPointerDown: t, style: n, splitDirection: r, paddingBefore: i = 0, paddingAfter: a = 0, disabled: o, key: s, propsHitArea: c =
|
|
4064
|
+
}, Vo = {}, Ho = (e) => {
|
|
4065
|
+
let { onPointerDown: t, style: n, splitDirection: r, paddingBefore: i = 0, paddingAfter: a = 0, disabled: o, key: s, propsHitArea: c = Vo, ...l } = e, u = r === "row", { style: d, className: f, ...p } = c;
|
|
4066
4066
|
return L("div", {
|
|
4067
4067
|
style: {
|
|
4068
4068
|
...n,
|
|
@@ -4070,7 +4070,7 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4070
4070
|
},
|
|
4071
4071
|
...l,
|
|
4072
4072
|
children: L("div", {
|
|
4073
|
-
className: X("hit-box", f),
|
|
4073
|
+
className: X("sxl-hit-box", f),
|
|
4074
4074
|
style: {
|
|
4075
4075
|
left: (u ? -i : 0) + "px",
|
|
4076
4076
|
width: `calc(100% + ${u ? i + a : 0}px)`,
|
|
@@ -4083,15 +4083,15 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4083
4083
|
...p
|
|
4084
4084
|
})
|
|
4085
4085
|
}, s);
|
|
4086
|
-
},
|
|
4086
|
+
}, Uo = {}, Wo = (e, t, n = !0) => e === null ? null : e.pixels === null ? (n ? e.percent : 100 - e.percent) / 100 * t : n ? e.pixels : t - e.pixels, Go = (e, t = !0) => e?.percent ? `${t ? e.percent : 100 - e.percent}%` : e?.pixels ? `${e.pixels}px` : void 0, Ko = (e, t) => {
|
|
4087
4087
|
if (e == null) return null;
|
|
4088
4088
|
let n = {
|
|
4089
4089
|
percent: null,
|
|
4090
4090
|
pixels: null
|
|
4091
4091
|
}, r = t;
|
|
4092
4092
|
return typeof e == "string" && ((e = e.trim().toLowerCase()).endsWith("px") ? (e = e.substring(0, e.length - 2), r = !1) : e.endsWith("%") && (e = e.substring(0, e.length - 1), r = !0), e = parseFloat(e)), r ? n.percent = e : n.pixels = e, Object.freeze(n);
|
|
4093
|
-
},
|
|
4094
|
-
let { elementBefore: n, elementAfter: r, splitDirection: i = "row", fixedPane: a = null, position: o, onPositionChange: s, minBefore: c, maxBefore: l, minAfter: u, maxAfter: d, children: f, className: p, style: m, disabled: h = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: y =
|
|
4093
|
+
}, qo = T(S((e, t) => {
|
|
4094
|
+
let { elementBefore: n, elementAfter: r, splitDirection: i = "row", fixedPane: a = null, position: o, onPositionChange: s, minBefore: c, maxBefore: l, minAfter: u, maxAfter: d, children: f, className: p, style: m, disabled: h = !1, onDragStart: g, onDragResize: _, onDragFinish: v, propsResizer: y = Uo, propsPane: b = Uo, propsPaneBefore: x = Uo, propsPaneAfter: S = Uo, renderResizer: w = Ho } = e;
|
|
4095
4095
|
if (f) throw Error("Use elementBefore and elementAfter instead of children.");
|
|
4096
4096
|
let T = M(() => C(r) && C(n), [r, n]), E = M(() => {
|
|
4097
4097
|
let e = null;
|
|
@@ -4100,21 +4100,21 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4100
4100
|
return {
|
|
4101
4101
|
fixedPaneOffset: e,
|
|
4102
4102
|
isPercent: t,
|
|
4103
|
-
minBefore:
|
|
4104
|
-
maxBefore:
|
|
4105
|
-
minAfter:
|
|
4106
|
-
maxAfter:
|
|
4103
|
+
minBefore: Ko(c, t),
|
|
4104
|
+
maxBefore: Ko(l, t),
|
|
4105
|
+
minAfter: Ko(u, t),
|
|
4106
|
+
maxAfter: Ko(d, t)
|
|
4107
4107
|
};
|
|
4108
4108
|
}, [
|
|
4109
4109
|
c,
|
|
4110
4110
|
l,
|
|
4111
4111
|
u,
|
|
4112
4112
|
d
|
|
4113
|
-
]), D = Y(s ?? (() => {}), [s]), [k, A] = F(() =>
|
|
4113
|
+
]), D = Y(s ?? (() => {}), [s]), [k, A] = F(() => Ko(o, a === null));
|
|
4114
4114
|
O(() => {
|
|
4115
|
-
A(
|
|
4115
|
+
A(Ko(o, a === null));
|
|
4116
4116
|
}, [o, a]);
|
|
4117
|
-
let [j, { width: N, height: I }] =
|
|
4117
|
+
let [j, { width: N, height: I }] = Hr(), [ee, { width: te, height: z }] = Hr(), ne = i === "row" ? te : z, B = i === "row" ? N : I, V = M(() => ((e, t, n, r) => {
|
|
4118
4118
|
let i = [null, null], a = [null, null];
|
|
4119
4119
|
if (e ||= {
|
|
4120
4120
|
percent: r.fixedPaneOffset === null ? 50 : null,
|
|
@@ -4122,13 +4122,13 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4122
4122
|
}, t === 0) return e.pixels !== void 0 && e.pixels !== null ? r.fixedPaneOffset === 1 ? (i[1] = e.pixels - n, a[0] = 100) : (i[0] = e.pixels, a[1] = 100) : e.percent !== void 0 && e.percent !== null && (r.fixedPaneOffset === 1 ? (a[1] = e.percent, a[0] = 100 - e.percent) : (a[0] = e.percent, a[1] = 100 - e.percent)), {
|
|
4123
4123
|
percents: a,
|
|
4124
4124
|
pixels: i,
|
|
4125
|
-
minBefore:
|
|
4126
|
-
maxBefore:
|
|
4127
|
-
minAfter:
|
|
4128
|
-
maxAfter:
|
|
4125
|
+
minBefore: Go(r.minBefore, !0),
|
|
4126
|
+
maxBefore: Go(r.maxBefore, !0),
|
|
4127
|
+
minAfter: Go(r.minAfter),
|
|
4128
|
+
maxAfter: Go(r.maxAfter)
|
|
4129
4129
|
};
|
|
4130
|
-
let o =
|
|
4131
|
-
u = (
|
|
4130
|
+
let o = Wo(e, t, r.fixedPaneOffset !== 1) ?? 0, s = t - n, c = Wo(r.minBefore, s, !0) ?? 0, l = Wo(r.maxBefore, s, !0) ?? s, u = 0, d = 0, f = 0, p = s;
|
|
4131
|
+
u = (Wo(r.maxAfter, t, !1) ?? n) - n, d = Wo(r.minAfter, t, !1) ?? t, f = Math.max(c, u), p = Math.min(l, d), o = Math.max(f, Math.min(o, p)), d = Math.min(s - o, Wo(r.maxAfter, s - o, !0) ?? s), u = Math.min(s - o, Wo(r.minAfter, s - o, !0) ?? s), i[0] = o, i[1] = s - o;
|
|
4132
4132
|
let m = Math.max(0, Math.min(100, o / s * 100));
|
|
4133
4133
|
return a[0] = m, a[1] = 100 - m, {
|
|
4134
4134
|
percents: a,
|
|
@@ -4162,7 +4162,7 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4162
4162
|
flexDirection: i,
|
|
4163
4163
|
display: "flex"
|
|
4164
4164
|
}, { className: ge, style: J, onPointerDown: _e, ...ve } = y, ye = Y((e) => {
|
|
4165
|
-
let t =
|
|
4165
|
+
let t = Ko(e, a === null);
|
|
4166
4166
|
A(t);
|
|
4167
4167
|
}, [a]), be = Y((e) => {
|
|
4168
4168
|
if (h || !H) return;
|
|
@@ -4180,7 +4180,7 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4180
4180
|
B
|
|
4181
4181
|
]), xe = Y((e) => {
|
|
4182
4182
|
if (document.removeEventListener("pointermove", be), document.removeEventListener("touchmove", be), document.removeEventListener("pointerup", xe), H && (U(!1), k)) {
|
|
4183
|
-
if (ie(k.pixels ?? 0), !
|
|
4183
|
+
if (ie(k.pixels ?? 0), !Ko(o, a === null) || k.pixels !== o) {
|
|
4184
4184
|
let e = k.pixels ?? 0, t = {
|
|
4185
4185
|
pixels: e,
|
|
4186
4186
|
percent: k.percent ?? e / B * 100
|
|
@@ -4197,14 +4197,14 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4197
4197
|
B
|
|
4198
4198
|
]), Se = Y((e) => {
|
|
4199
4199
|
_e?.(e), e.defaultPrevented || h || H || (U(!0), W(), document.addEventListener("pointermove", be, { passive: !1 }), document.addEventListener("touchmove", be, { passive: !1 }), document.addEventListener("pointerup", xe, { passive: !1 }));
|
|
4200
|
-
}, [_e]), Ce =
|
|
4200
|
+
}, [_e]), Ce = jr(t, () => ({
|
|
4201
4201
|
setPosition: ye,
|
|
4202
4202
|
isSplitPane: () => !0
|
|
4203
|
-
}), []), we =
|
|
4203
|
+
}), []), we = ri([ee, G]), Te = M(() => T ? L(ai, {
|
|
4204
4204
|
render: w,
|
|
4205
4205
|
props: {
|
|
4206
4206
|
ref: we,
|
|
4207
|
-
className: X("resizer", ge),
|
|
4207
|
+
className: X("sxl-resizer", ge),
|
|
4208
4208
|
onPointerDownCapture: Se,
|
|
4209
4209
|
style: {
|
|
4210
4210
|
cursor: h ? void 0 : i === "row" ? "ew-resize" : "ns-resize",
|
|
@@ -4238,7 +4238,7 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4238
4238
|
};
|
|
4239
4239
|
return L("div", {
|
|
4240
4240
|
ref: ae,
|
|
4241
|
-
className: X("before", ce, de),
|
|
4241
|
+
className: X("sxl-before", ce, de),
|
|
4242
4242
|
style: e,
|
|
4243
4243
|
...le,
|
|
4244
4244
|
...pe,
|
|
@@ -4261,7 +4261,7 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4261
4261
|
};
|
|
4262
4262
|
return L("div", {
|
|
4263
4263
|
ref: oe,
|
|
4264
|
-
className: X("after", ce, me),
|
|
4264
|
+
className: X("sxl-after", ce, me),
|
|
4265
4265
|
style: e,
|
|
4266
4266
|
...le,
|
|
4267
4267
|
...q,
|
|
@@ -4273,10 +4273,10 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4273
4273
|
S,
|
|
4274
4274
|
E,
|
|
4275
4275
|
V
|
|
4276
|
-
]), ke =
|
|
4276
|
+
]), ke = ri([j, Ce]);
|
|
4277
4277
|
return R("div", {
|
|
4278
4278
|
ref: ke,
|
|
4279
|
-
className: X("splitPane", i === "row" ? "vertical" : "horizontal", { dragging: H }, p),
|
|
4279
|
+
className: X("sxl-splitPane", i === "row" ? "sxl-vertical" : "sxl-horizontal", { "sxl-dragging": H }, p),
|
|
4280
4280
|
style: he,
|
|
4281
4281
|
children: [
|
|
4282
4282
|
De,
|
|
@@ -4285,8 +4285,8 @@ var Lo = (e) => L(Io, { ...e }), Ro = (e) => {
|
|
|
4285
4285
|
]
|
|
4286
4286
|
});
|
|
4287
4287
|
}));
|
|
4288
|
-
|
|
4289
|
-
var
|
|
4288
|
+
qo.displayName = "SplitPane";
|
|
4289
|
+
var Jo = class {
|
|
4290
4290
|
constructor() {
|
|
4291
4291
|
this.store = /* @__PURE__ */ new Map();
|
|
4292
4292
|
}
|
|
@@ -4299,32 +4299,32 @@ var qo = class {
|
|
|
4299
4299
|
removeItem(e) {
|
|
4300
4300
|
this.store.delete(e);
|
|
4301
4301
|
}
|
|
4302
|
-
},
|
|
4302
|
+
}, Yo = b(null), Xo = Object.freeze({}), Zo = {
|
|
4303
4303
|
parse: (e) => e ? JSON.parse(e) : null,
|
|
4304
4304
|
stringify: JSON.stringify
|
|
4305
|
-
},
|
|
4306
|
-
store: new
|
|
4305
|
+
}, Qo = /* @__PURE__ */ new Map(), $o = {
|
|
4306
|
+
store: new Jo(),
|
|
4307
4307
|
namespace: "",
|
|
4308
|
-
serializer:
|
|
4308
|
+
serializer: Zo,
|
|
4309
4309
|
onReady: (e) => {
|
|
4310
4310
|
e();
|
|
4311
4311
|
},
|
|
4312
4312
|
debounceMs: 0,
|
|
4313
|
-
defaultValues:
|
|
4313
|
+
defaultValues: Xo,
|
|
4314
4314
|
notify: (e, t) => {
|
|
4315
|
-
let n =
|
|
4315
|
+
let n = Qo.get(e);
|
|
4316
4316
|
n && n.forEach((e) => e(t));
|
|
4317
4317
|
},
|
|
4318
4318
|
subscribeKey: (e, t) => {
|
|
4319
|
-
let n =
|
|
4320
|
-
return n.add(t),
|
|
4321
|
-
let n =
|
|
4322
|
-
n && (n.delete(t), n.size === 0 &&
|
|
4319
|
+
let n = Qo.get(e) ?? /* @__PURE__ */ new Set();
|
|
4320
|
+
return n.add(t), Qo.set(e, n), () => {
|
|
4321
|
+
let n = Qo.get(e);
|
|
4322
|
+
n && (n.delete(t), n.size === 0 && Qo.delete(e));
|
|
4323
4323
|
};
|
|
4324
4324
|
}
|
|
4325
4325
|
};
|
|
4326
|
-
function
|
|
4327
|
-
let { store: r, namespace: i, serializer: a, debounceMs: o, subscribeKey: s, notify: c, defaultValues: l } = D(
|
|
4326
|
+
function es(e, t, n = ts) {
|
|
4327
|
+
let { store: r, namespace: i, serializer: a, debounceMs: o, subscribeKey: s, notify: c, defaultValues: l } = D(Yo) || $o, u = n.serializer ?? a ?? Zo, d = P(null), f = M(() => e == null ? null : `${i}:${e}`, [i, e]), p = f ? `${f}::v` : null, m = () => {
|
|
4328
4328
|
if (e != null && Object.prototype.hasOwnProperty.call(l, e)) return l[e];
|
|
4329
4329
|
let n = t;
|
|
4330
4330
|
return typeof n == "function" ? n() : n;
|
|
@@ -4404,11 +4404,11 @@ function $o(e, t, n = es) {
|
|
|
4404
4404
|
E(() => C.current(), [])
|
|
4405
4405
|
];
|
|
4406
4406
|
}
|
|
4407
|
-
var
|
|
4408
|
-
function
|
|
4409
|
-
let { store: t, namespace: n = "", serializer: r =
|
|
4410
|
-
|
|
4411
|
-
let c = s.current, l = M(() => typeof window > "u" ? new
|
|
4407
|
+
var ts = {};
|
|
4408
|
+
function ns(e) {
|
|
4409
|
+
let { store: t, namespace: n = "", serializer: r = as, debounceMs: i = 150, defaultValues: a = Xo, children: o } = e, s = P(a);
|
|
4410
|
+
os(s.current, a) || (s.current = a);
|
|
4411
|
+
let c = s.current, l = M(() => typeof window > "u" ? new Jo() : t ?? new Jo(), [t]), u = P(/* @__PURE__ */ new Map()), d = M(() => ({
|
|
4412
4412
|
store: l,
|
|
4413
4413
|
namespace: n,
|
|
4414
4414
|
serializer: r,
|
|
@@ -4441,19 +4441,19 @@ function ts(e) {
|
|
|
4441
4441
|
let t = e.slice(d.namespace.length + 1);
|
|
4442
4442
|
d.notify(t);
|
|
4443
4443
|
});
|
|
4444
|
-
}, [d]), L(
|
|
4444
|
+
}, [d]), L(Yo.Provider, {
|
|
4445
4445
|
value: d,
|
|
4446
4446
|
children: o
|
|
4447
4447
|
});
|
|
4448
4448
|
}
|
|
4449
|
-
var
|
|
4449
|
+
var rs, is, as = {
|
|
4450
4450
|
parse: (e) => e == null ? null : JSON.parse(e),
|
|
4451
4451
|
stringify: JSON.stringify
|
|
4452
|
-
},
|
|
4452
|
+
}, os = (e, t) => {
|
|
4453
4453
|
if (e === t) return !0;
|
|
4454
4454
|
let n = Object.keys(e);
|
|
4455
4455
|
return n.length === Object.keys(t).length && n.every((n) => Object.prototype.hasOwnProperty.call(t, n) && Object.is(e[n], t[n]));
|
|
4456
|
-
},
|
|
4456
|
+
}, ss = class {
|
|
4457
4457
|
constructor(e = window.localStorage) {
|
|
4458
4458
|
this.storage = e;
|
|
4459
4459
|
}
|
|
@@ -4480,10 +4480,10 @@ var ns, rs, is = {
|
|
|
4480
4480
|
};
|
|
4481
4481
|
return window.addEventListener("storage", t), () => window.removeEventListener("storage", t);
|
|
4482
4482
|
}
|
|
4483
|
-
},
|
|
4484
|
-
(
|
|
4485
|
-
let t =
|
|
4486
|
-
t || (t = /* @__PURE__ */ new Set(),
|
|
4483
|
+
}, cs = /* @__PURE__ */ new WeakMap();
|
|
4484
|
+
(is = rs ||= {}).begin = function(e) {
|
|
4485
|
+
let t = cs.get(e);
|
|
4486
|
+
t || (t = /* @__PURE__ */ new Set(), cs.set(e, t));
|
|
4487
4487
|
let n = () => {}, r = new Promise((e) => {
|
|
4488
4488
|
n = e;
|
|
4489
4489
|
});
|
|
@@ -4492,25 +4492,25 @@ var ns, rs, is = {
|
|
|
4492
4492
|
return () => {
|
|
4493
4493
|
i || (i = !0, a.delete(r), n());
|
|
4494
4494
|
};
|
|
4495
|
-
},
|
|
4496
|
-
return (
|
|
4495
|
+
}, is.isPending = function(e) {
|
|
4496
|
+
return (cs.get(e)?.size ?? 0) > 0;
|
|
4497
4497
|
};
|
|
4498
|
-
var
|
|
4499
|
-
let t =
|
|
4498
|
+
var ls = async (e) => {
|
|
4499
|
+
let t = cs.get(e);
|
|
4500
4500
|
for (; t && t.size > 0;) await Promise.allSettled([...t]);
|
|
4501
|
-
},
|
|
4502
|
-
let n = D(
|
|
4501
|
+
}, us = b(null), ds = (e) => _.createElement(us.Provider, { value: e.scope }, e.children), fs = (e, t) => {
|
|
4502
|
+
let n = D(us), r = t === void 0 ? n : t;
|
|
4503
4503
|
O(() => {
|
|
4504
|
-
if (r && e) return
|
|
4504
|
+
if (r && e) return rs.begin(r);
|
|
4505
4505
|
}, [r, e]);
|
|
4506
4506
|
}, Z = {
|
|
4507
4507
|
Horizontal: "horizontal",
|
|
4508
4508
|
Vertical: "vertical"
|
|
4509
|
-
},
|
|
4510
|
-
let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ?
|
|
4509
|
+
}, ps = "_scrollbar_1kbpg_24", ms = "_track_1kbpg_35", hs = "_thumb_1kbpg_47", gs = "_scrollbar-button_1kbpg_96", _s = "_touch-thumb_1kbpg_131", vs = "M 5.4951012,0.62494002 7.1746358,3.4734472 8.8557603,6.3226744 c 0.13425,0.2277477 0.18228,0.4945506 0.1356,0.7535218 -0.04665,0.2589712 -0.18504,0.4935661 -0.3908099,0.6625402 C 8.3948254,7.9076371 8.1348905,8.0001761 7.8664506,7.9999997 H 1.1503225 c -0.30278993,0 -0.59312985,-0.117841 -0.80720983,-0.3275159 -0.2140799,-0.2097042 -0.3343649,-0.4941244 -0.3343649,-0.7907107 -4.5e-4,-0.1955399 0.05205,-0.3876855 0.152205,-0.55688 L 1.8390472,3.4734031 3.5178618,0.62488125 C 3.7217717,0.27898385 4.0986166,0.0658413 4.5064365,0.0658413 c 0.4078199,0 0.7846648,0.21314255 0.9885747,0.55903995 z", ys = "M 0.6632643,3.5136438 3.5117715,1.8341092 6.3609987,0.15298466 c 0.2277477,-0.13425 0.4945506,-0.18228 0.7535218,-0.1356 0.2589712,0.04665 0.4935661,0.18504 0.6625402,0.3908099 0.1689007,0.205725 0.2614397,0.4656599 0.2612633,0.73409984 v 6.7161281 c 0,0.3027899 -0.117841,0.5931298 -0.3275159,0.8072098 -0.2097042,0.2140799 -0.4941244,0.3343649 -0.7907107,0.3343649 -0.1955399,4.5e-4 -0.3876855,-0.05205 -0.55688,-0.152205 L 3.5117274,7.1696978 0.6632056,5.4908832 C 0.31730817,5.2869733 0.10416562,4.9101284 0.10416562,4.5023085 c 0,-0.4078199 0.21314255,-0.7846648 0.55903998,-0.9885747 z", bs = { transform: "rotate(180deg)" }, xs = (e) => {
|
|
4510
|
+
let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? vs : ys;
|
|
4511
4511
|
return L("button", {
|
|
4512
4512
|
style: t,
|
|
4513
|
-
className: X(
|
|
4513
|
+
className: X(gs, `sxl-${n}`, "sxl-scroll-button"),
|
|
4514
4514
|
disabled: i,
|
|
4515
4515
|
...a,
|
|
4516
4516
|
children: L("svg", {
|
|
@@ -4520,22 +4520,22 @@ var cs = async (e) => {
|
|
|
4520
4520
|
children: L("path", { d: o })
|
|
4521
4521
|
})
|
|
4522
4522
|
});
|
|
4523
|
-
},
|
|
4524
|
-
let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ?
|
|
4523
|
+
}, Ss = (e) => {
|
|
4524
|
+
let { style: t, orientation: n = Z.Vertical, isBefore: r, disabled: i, ...a } = e, o = n === Z.Vertical ? vs : ys;
|
|
4525
4525
|
return L("button", {
|
|
4526
4526
|
style: t,
|
|
4527
|
-
className: X(
|
|
4527
|
+
className: X(gs, `sxl-${n}`, "sxl-scroll-button"),
|
|
4528
4528
|
disabled: i,
|
|
4529
4529
|
...a,
|
|
4530
4530
|
children: L("svg", {
|
|
4531
4531
|
width: "9",
|
|
4532
4532
|
height: "9",
|
|
4533
4533
|
viewBox: "0 0 9 9",
|
|
4534
|
-
style:
|
|
4534
|
+
style: bs,
|
|
4535
4535
|
children: L("path", { d: o })
|
|
4536
4536
|
})
|
|
4537
4537
|
});
|
|
4538
|
-
},
|
|
4538
|
+
}, Cs = (e) => {
|
|
4539
4539
|
let { style: n, orientation: r = Z.Vertical, isBefore: i, ...a } = e, o = r === Z.Vertical;
|
|
4540
4540
|
return L("div", {
|
|
4541
4541
|
style: {
|
|
@@ -4548,7 +4548,7 @@ var cs = async (e) => {
|
|
|
4548
4548
|
height: "24px",
|
|
4549
4549
|
...n
|
|
4550
4550
|
},
|
|
4551
|
-
className: `scrollbar-button ${o ? "vertical" : "horizontal"} edge`,
|
|
4551
|
+
className: `sxl-scrollbar-button ${o ? "sxl-vertical" : "sxl-horizontal"} sxl-edge`,
|
|
4552
4552
|
...a,
|
|
4553
4553
|
children: L(t, {
|
|
4554
4554
|
style: {
|
|
@@ -4560,7 +4560,7 @@ var cs = async (e) => {
|
|
|
4560
4560
|
iconKey: "MoreHorizontal"
|
|
4561
4561
|
})
|
|
4562
4562
|
});
|
|
4563
|
-
},
|
|
4563
|
+
}, ws = 60, Ts = 260, Es = 120, Ds = (e) => {
|
|
4564
4564
|
let { vertical: t, getTrackRect: n, getThumb: r, onStart: i, onDragModeChange: a, edgeHoldIntervalMs: o = 60, pageInitialDelayMs: s = 260, pageRepeatDelayMs: c = 120 } = e, l = null, u = null, d = 0, f = 0, p = 1, m = 0, h = 0, g = 0, _ = null, v = () => {
|
|
4565
4565
|
_ && clearTimeout(_), _ = null;
|
|
4566
4566
|
}, y = (e) => {
|
|
@@ -4608,10 +4608,10 @@ var cs = async (e) => {
|
|
|
4608
4608
|
},
|
|
4609
4609
|
dispose: () => v()
|
|
4610
4610
|
};
|
|
4611
|
-
},
|
|
4611
|
+
}, Os = (e) => {
|
|
4612
4612
|
let [t, n] = F(null), r = P(e);
|
|
4613
4613
|
r.current = e;
|
|
4614
|
-
let i = M(() =>
|
|
4614
|
+
let i = M(() => Ds({
|
|
4615
4615
|
vertical: r.current.vertical,
|
|
4616
4616
|
getTrackRect: () => r.current.getTrackRect(),
|
|
4617
4617
|
getThumb: () => r.current.getThumb(),
|
|
@@ -4627,16 +4627,16 @@ var cs = async (e) => {
|
|
|
4627
4627
|
onPointerUp: i.onPointerUp,
|
|
4628
4628
|
dragMode: t
|
|
4629
4629
|
};
|
|
4630
|
-
},
|
|
4630
|
+
}, ks = 22, As = 1.8, js = 8, Ms = 4, Ns = 8, Ps = -2, Fs = (e = 22) => e / 2 + 8, Is = (e = 22) => e + 16, Ls = b(null), Rs = (e) => {
|
|
4631
4631
|
let { value: t, children: n } = e;
|
|
4632
|
-
return L(
|
|
4632
|
+
return L(Ls.Provider, {
|
|
4633
4633
|
value: t,
|
|
4634
4634
|
children: n
|
|
4635
4635
|
});
|
|
4636
|
-
},
|
|
4636
|
+
}, zs = () => D(Ls), Bs = ft().supportsTouchEvents, Vs = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Hs = T(S((e, t) => {
|
|
4637
4637
|
let { borderColor: n = "var(--sxl-color-primary, rgb(33, 115, 70))", backgroundColor: r = "var(--sxl-color-base-100, white)", fillColor: i = "var(--sxl-color-neutral, grey)", borderWidth: a = 3, size: o = 22, style: s, className: c, orientation: l = Z.Vertical, fraction: u = 0, onScrollToFraction: d, onEdgeHold: f, onDraggingChange: p, currentTouchAnchor: m, key: h, ...g } = e;
|
|
4638
|
-
if (!
|
|
4639
|
-
let _ = l === Z.Vertical, v =
|
|
4638
|
+
if (!Bs) return null;
|
|
4639
|
+
let _ = l === Z.Vertical, v = zs(), y = Y(d ?? (() => {}), [d]), b = Y(f ?? (() => {}), [f]), x = Y(p ?? (() => {}), [p]), S = P(null), C = ri([S, t]), w = Y((e) => ({
|
|
4640
4640
|
dragging: e,
|
|
4641
4641
|
element: S.current,
|
|
4642
4642
|
source: "touch"
|
|
@@ -4654,7 +4654,7 @@ var cs = async (e) => {
|
|
|
4654
4654
|
count: 0,
|
|
4655
4655
|
timer: null
|
|
4656
4656
|
});
|
|
4657
|
-
D.current.isVertical = _, D.current.fraction =
|
|
4657
|
+
D.current.isVertical = _, D.current.fraction = Vs(u), D.current.hasEdgeHold = !!f;
|
|
4658
4658
|
let k = Y(() => {
|
|
4659
4659
|
let e = D.current;
|
|
4660
4660
|
e.timer && clearTimeout(e.timer), e.timer = null;
|
|
@@ -4673,7 +4673,7 @@ var cs = async (e) => {
|
|
|
4673
4673
|
if (!e.hasEdgeHold) return;
|
|
4674
4674
|
let t = e.rawFraction < 0 ? -1 : +(e.rawFraction > 1);
|
|
4675
4675
|
t !== e.edge && (e.edge = t, k(), t && (e.engagedAt = Date.now(), e.count = 0, e.timer = setTimeout(A, 60)));
|
|
4676
|
-
}, []), N =
|
|
4676
|
+
}, []), N = zn(M(() => ({
|
|
4677
4677
|
processTouch: !0,
|
|
4678
4678
|
onPointerDown: (e, t) => {
|
|
4679
4679
|
let n = D.current;
|
|
@@ -4681,7 +4681,7 @@ var cs = async (e) => {
|
|
|
4681
4681
|
},
|
|
4682
4682
|
onPointerMoveOrWait: (e) => {
|
|
4683
4683
|
let t = D.current, n = (t.isVertical ? e.clientY : e.clientX) - t.startAlong;
|
|
4684
|
-
t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(
|
|
4684
|
+
t.rawFraction = t.startFraction + (t.travel > 0 ? n / t.travel : 0), y?.(Vs(t.rawFraction)), j();
|
|
4685
4685
|
},
|
|
4686
4686
|
onPointerUp: (e) => {
|
|
4687
4687
|
let t = D.current;
|
|
@@ -4694,9 +4694,9 @@ var cs = async (e) => {
|
|
|
4694
4694
|
}, []), !v?.portalTarget) return null;
|
|
4695
4695
|
let I = 1.8 * o, ee = _ ? o : I, te = _ ? I : o, R = _ ? v.viewportHeight : v.viewportWidth, z = _ ? v.height : v.width, ne = Math.max(0, z - R), B = _ ? v.reserveVertical : v.reserveHorizontal, H = B > 0 ? -2 : 4, U = Math.max(0, R - B - I - 4 - H);
|
|
4696
4696
|
D.current.travel = U;
|
|
4697
|
-
let W = ne + 4 + I / 2 +
|
|
4697
|
+
let W = ne + 4 + I / 2 + Vs(u) * U, re, ie;
|
|
4698
4698
|
return _ ? (re = v.width - v.crossInset - ee / 2, ie = W - te / 2) : (ie = v.height - v.crossInset - te / 2, re = W - ee / 2), V(L("div", {
|
|
4699
|
-
className: X("touch-thumb",
|
|
4699
|
+
className: X("sxl-touch-thumb", _s, c, { "sxl-dragging": T }),
|
|
4700
4700
|
ref: C,
|
|
4701
4701
|
style: {
|
|
4702
4702
|
left: re,
|
|
@@ -4721,15 +4721,15 @@ var cs = async (e) => {
|
|
|
4721
4721
|
...g
|
|
4722
4722
|
}), v.portalTarget, h);
|
|
4723
4723
|
}));
|
|
4724
|
-
|
|
4725
|
-
var
|
|
4726
|
-
let { offset: n = 0, totalSize: r = 0, viewportSize: i = 0, style: a, className: o, orientation: s = Z.Vertical, onScrollOffset: c, onScroll: l, showCustomScrollButtons: u, scrollButtonIncrement: d = 200, scrollButtonInitialRepeatDelay: f = 260, scrollButtonAdditionalRepeatDelay: p = 120, minThumbSize: m =
|
|
4724
|
+
Hs.displayName = "TouchThumbHandle";
|
|
4725
|
+
var Us = 24, Ws = T(S((e, t) => {
|
|
4726
|
+
let { offset: n = 0, totalSize: r = 0, viewportSize: i = 0, style: a, className: o, orientation: s = Z.Vertical, onScrollOffset: c, onScroll: l, showCustomScrollButtons: u, scrollButtonIncrement: d = 200, scrollButtonInitialRepeatDelay: f = 260, scrollButtonAdditionalRepeatDelay: p = 120, minThumbSize: m = Us, maxThumbSize: h, renderScrollButtonStart: g = xs, renderScrollButtonEnd: _ = Ss, propsTouchThumb: v, propsThumb: y, onThumbEdgeHold: b, onThumbDrag: x, onMouseDown: S, ...C } = e, w = Jn() === "touch", T = u ?? !w;
|
|
4727
4727
|
Y(l ?? (() => {}), [l]);
|
|
4728
4728
|
let [D, k] = F({
|
|
4729
4729
|
offset: 0,
|
|
4730
4730
|
length: 0,
|
|
4731
4731
|
disabled: !1
|
|
4732
|
-
}), A = P(-1), j = s === Z.Vertical, [N, { width: I, height: ee }] =
|
|
4732
|
+
}), A = P(-1), j = s === Z.Vertical, [N, { width: I, height: ee }] = Hr(), z = j ? ee : I, ne = P(null), B = ri([N, ne]), V = Y((e, t, n) => {
|
|
4733
4733
|
if (t === 0 || n === 0) {
|
|
4734
4734
|
let e = {
|
|
4735
4735
|
offset: 0,
|
|
@@ -4779,14 +4779,14 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
4779
4779
|
j,
|
|
4780
4780
|
z
|
|
4781
4781
|
]);
|
|
4782
|
-
let W = Math.max(0, r - i), re =
|
|
4782
|
+
let W = Math.max(0, r - i), re = jr(t, () => ({ isScrollbar: () => !0 }), []), ie = Y((e) => {
|
|
4783
4783
|
let t = Math.max(1, Math.floor(.9 * i)), r = e > 0 ? Math.min(W, n + t) : Math.max(0, n - t);
|
|
4784
4784
|
U(r);
|
|
4785
4785
|
}, [
|
|
4786
4786
|
i,
|
|
4787
4787
|
n,
|
|
4788
4788
|
W
|
|
4789
|
-
]), ae =
|
|
4789
|
+
]), ae = Os({
|
|
4790
4790
|
vertical: j,
|
|
4791
4791
|
getTrackRect: () => ne.current?.getBoundingClientRect() ?? null,
|
|
4792
4792
|
getThumb: () => D.disabled ? null : {
|
|
@@ -4828,7 +4828,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
4828
4828
|
if (e) return null;
|
|
4829
4829
|
let t = L("div", {
|
|
4830
4830
|
...y,
|
|
4831
|
-
className: X(
|
|
4831
|
+
className: X(hs, { "sxl-disabled": e }),
|
|
4832
4832
|
ref: se,
|
|
4833
4833
|
role: "slider",
|
|
4834
4834
|
"aria-label": j ? "Rows" : "Columns",
|
|
@@ -4849,7 +4849,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
4849
4849
|
});
|
|
4850
4850
|
if (!w || e) return t;
|
|
4851
4851
|
let r = Math.max(0, z - D.length);
|
|
4852
|
-
return R(te, { children: [t, L(
|
|
4852
|
+
return R(te, { children: [t, L(Hs, {
|
|
4853
4853
|
...v,
|
|
4854
4854
|
orientation: j ? Z.Vertical : Z.Horizontal,
|
|
4855
4855
|
fraction: r > 0 ? D.offset / r : 0,
|
|
@@ -4904,7 +4904,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
4904
4904
|
K
|
|
4905
4905
|
]);
|
|
4906
4906
|
O(() => () => K(), [K]);
|
|
4907
|
-
let he = M(() => T ? L(
|
|
4907
|
+
let he = M(() => T ? L(ai, {
|
|
4908
4908
|
render: g,
|
|
4909
4909
|
props: {
|
|
4910
4910
|
orientation: s,
|
|
@@ -4918,7 +4918,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
4918
4918
|
s,
|
|
4919
4919
|
n,
|
|
4920
4920
|
le
|
|
4921
|
-
]), ge = M(() => T ? L(
|
|
4921
|
+
]), ge = M(() => T ? L(ai, {
|
|
4922
4922
|
render: _,
|
|
4923
4923
|
props: {
|
|
4924
4924
|
orientation: s,
|
|
@@ -4933,12 +4933,12 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
4933
4933
|
n,
|
|
4934
4934
|
W,
|
|
4935
4935
|
le
|
|
4936
|
-
]), J = j ? "vertical" : "horizontal", _e =
|
|
4936
|
+
]), J = j ? "vertical" : "horizontal", _e = ri([re, t]);
|
|
4937
4937
|
return R("div", {
|
|
4938
4938
|
ref: _e,
|
|
4939
|
-
className: X(o,
|
|
4940
|
-
dragging: G,
|
|
4941
|
-
"has-touch-thumb": w
|
|
4939
|
+
className: X(o, ps, J, {
|
|
4940
|
+
"sxl-dragging": G,
|
|
4941
|
+
"sxl-has-touch-thumb": w
|
|
4942
4942
|
}),
|
|
4943
4943
|
style: a,
|
|
4944
4944
|
...C,
|
|
@@ -4952,7 +4952,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
4952
4952
|
"aria-valuemax": W,
|
|
4953
4953
|
"aria-valuenow": n,
|
|
4954
4954
|
tabIndex: 0,
|
|
4955
|
-
className: X(
|
|
4955
|
+
className: X(ms, "sxl-track", J),
|
|
4956
4956
|
onMouseDown: S,
|
|
4957
4957
|
onPointerDown: ae.onPointerDown,
|
|
4958
4958
|
onPointerMove: ae.onPointerMove,
|
|
@@ -4963,24 +4963,24 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
4963
4963
|
ge
|
|
4964
4964
|
]
|
|
4965
4965
|
});
|
|
4966
|
-
})),
|
|
4967
|
-
let t =
|
|
4968
|
-
return t && (
|
|
4969
|
-
},
|
|
4970
|
-
let a =
|
|
4966
|
+
})), Gs = Date.now, Ks = 1e3, qs = {}, Js = 1, Ys = (e) => {
|
|
4967
|
+
let t = qs[e] !== null;
|
|
4968
|
+
return t && (qs[e] = null), t;
|
|
4969
|
+
}, Xs = (e, t, n, r = 0, i) => {
|
|
4970
|
+
let a = Gs(), o = a, s = 0, c = 0, l = 0, u = Js++;
|
|
4971
4971
|
if (u % 20 == 0) {
|
|
4972
4972
|
let e = {};
|
|
4973
|
-
for (let t in
|
|
4974
|
-
|
|
4973
|
+
for (let t in qs) e[t] = !0;
|
|
4974
|
+
qs = e;
|
|
4975
4975
|
}
|
|
4976
4976
|
let d = function(f) {
|
|
4977
|
-
let p = !0 !== f, m =
|
|
4977
|
+
let p = !0 !== f, m = Gs(), h = !0;
|
|
4978
4978
|
try {
|
|
4979
4979
|
h = (!t || t(u)) ?? !0;
|
|
4980
4980
|
} catch {
|
|
4981
4981
|
h = !1;
|
|
4982
4982
|
}
|
|
4983
|
-
if (!
|
|
4983
|
+
if (!qs[u] || !h) return qs[u] = null, void n?.(60 - c / ((m - a) / Ks), u, !1);
|
|
4984
4984
|
if (p) {
|
|
4985
4985
|
l = Math.round((m - o) / 16.666666666666668) - 1;
|
|
4986
4986
|
for (let e = 0; e < Math.min(l, 4); e++) d(!0), c++;
|
|
@@ -4992,17 +4992,17 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
4992
4992
|
} catch {
|
|
4993
4993
|
_ = !1;
|
|
4994
4994
|
}
|
|
4995
|
-
!1 !== _ && s !== 1 || !p ? p && (o = m, requestAnimationFrame(d)) : (
|
|
4995
|
+
!1 !== _ && s !== 1 || !p ? p && (o = m, requestAnimationFrame(d)) : (qs[u] = null, n?.(60 - c / ((m - a) / Ks), u, s === 1 || r == null));
|
|
4996
4996
|
};
|
|
4997
|
-
return
|
|
4998
|
-
}, Xs = function(e) {
|
|
4999
|
-
return (e - 1) ** 3 + 1;
|
|
4997
|
+
return qs[u] = !0, requestAnimationFrame(d), u;
|
|
5000
4998
|
}, Zs = function(e) {
|
|
4999
|
+
return (e - 1) ** 3 + 1;
|
|
5000
|
+
}, Qs = function(e) {
|
|
5001
5001
|
return (e /= .5) < 1 ? .5 * e ** 3 : .5 * ((e - 2) ** 3 + 2);
|
|
5002
|
-
},
|
|
5002
|
+
}, $s = Math.log(1.15) / 100, ec = (e) => {
|
|
5003
5003
|
let t = e[1].pageX - e[0].pageX, n = e[1].pageY - e[0].pageY;
|
|
5004
5004
|
return Math.sqrt(t * t + n * n);
|
|
5005
|
-
},
|
|
5005
|
+
}, tc = class {
|
|
5006
5006
|
constructor(e, t) {
|
|
5007
5007
|
this.__isSingleTouch = !1, this.__isTracking = !1, this.__didDecelerationComplete = !1, this.__isGesturing = !1, this.__isZooming = !1, this.__pinchStartDistance = 0, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__isDragging = !1, this.__isDecelerating = 0, this.__isAnimating = 0, this.__interruptedAnimation = !1, this.__lastScale = 1, this.__enableScrollX = !0, this.__enableScrollY = !0, this.__clientLeft = 0, this.__clientTop = 0, this.__clientWidth = 0, this.__clientHeight = 0, this.__contentWidth = 0, this.__contentHeight = 0, this.__snapWidth = 100, this.__snapHeight = 100, this.__zoomLevel = 1, this.__scrollLeft = 0, this.__scrollTop = 0, this.__maxScrollLeft = 0, this.__maxScrollTop = 0, this.__scheduledLeft = 0, this.__scheduledTop = 0, this.__scheduledZoom = 0, this.__lastTouchLeft = 0, this.__lastTouchTop = 0, this.__lastTouchMove = 0, this.__positions = [], this.__initialTouchLeft = 0, this.__initialTouchTop = 0, this.__zoomLevelStart = 1, this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = 0, this.__maxDecelerationScrollTop = 0, this.__decelerationVelocityX = 0, this.__decelerationVelocityY = 0, this.__zoomComplete = null, this.__callback = e, this.options = {
|
|
5008
5008
|
scrollingX: !0,
|
|
@@ -5056,7 +5056,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5056
5056
|
}
|
|
5057
5057
|
zoomTo(e, t = !1, n, r, i) {
|
|
5058
5058
|
if (!this.options.zooming) throw Error("Zooming is not enabled!");
|
|
5059
|
-
i && (this.__zoomComplete = i), this.__isDecelerating &&= (
|
|
5059
|
+
i && (this.__zoomComplete = i), this.__isDecelerating &&= (Ys(this.__isDecelerating), 0);
|
|
5060
5060
|
let a = this.__zoomLevel;
|
|
5061
5061
|
n === void 0 && (n = this.__clientWidth / 2), r === void 0 && (r = this.__clientHeight / 2), e = Math.max(Math.min(e, this.options.maxZoom), this.options.minZoom), this.__computeScrollMax(e);
|
|
5062
5062
|
let o = e / a, s = o * (this.__scrollLeft + n) - n, c = o * (this.__scrollTop + r) - r;
|
|
@@ -5074,7 +5074,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5074
5074
|
this.zoomTo(this.__zoomLevel * e, t, n, r, i);
|
|
5075
5075
|
}
|
|
5076
5076
|
scrollTo(e, t, n = !1, r) {
|
|
5077
|
-
if (this.__isDecelerating &&= (
|
|
5077
|
+
if (this.__isDecelerating &&= (Ys(this.__isDecelerating), 0), r !== void 0 && r !== this.__zoomLevel) {
|
|
5078
5078
|
if (!this.options.zooming) throw Error("Zooming is not enabled!");
|
|
5079
5079
|
e *= r, t *= r, this.__computeScrollMax(r);
|
|
5080
5080
|
} else r = this.__zoomLevel;
|
|
@@ -5085,16 +5085,16 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5085
5085
|
this.scrollTo(r + (e || 0), i + (t || 0), n);
|
|
5086
5086
|
}
|
|
5087
5087
|
doMouseZoom(e, t, n, r) {
|
|
5088
|
-
let i = Math.exp(-e *
|
|
5088
|
+
let i = Math.exp(-e * $s);
|
|
5089
5089
|
return this.zoomTo(this.__zoomLevel * i, !1, n - this.__clientLeft, r - this.__clientTop);
|
|
5090
5090
|
}
|
|
5091
5091
|
doTouchStart(e, t) {
|
|
5092
5092
|
if (e.length === void 0) throw Error("Invalid touch list: " + e);
|
|
5093
5093
|
if (t instanceof Date && (t = t.valueOf()), typeof t != "number") throw Error("Invalid timestamp value: " + t);
|
|
5094
5094
|
let n, r;
|
|
5095
|
-
this.__interruptedAnimation = !0, this.__isDecelerating && (
|
|
5095
|
+
this.__interruptedAnimation = !0, this.__isDecelerating && (Ys(this.__isDecelerating), this.__isDecelerating = 0, this.__interruptedAnimation = !0), this.__isAnimating && (Ys(this.__isAnimating), this.__isAnimating = 0, this.__interruptedAnimation = !0);
|
|
5096
5096
|
let i = e.length === 1;
|
|
5097
|
-
i ? (n = e[0].pageX, r = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = r, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = i ? 0 :
|
|
5097
|
+
i ? (n = e[0].pageX, r = e[0].pageY) : (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2), this.__initialTouchLeft = n, this.__initialTouchTop = r, this.__zoomLevelStart = this.__zoomLevel, this.__pinchStartDistance = i ? 0 : ec(e), this.__isGesturing = !i && !!this.options.zooming, this.__gestureMoveX = 0, this.__gestureMoveY = 0, this.__lastTouchLeft = n, this.__lastTouchTop = r, this.__lastTouchMove = t, this.__lastScale = 1, this.__enableScrollX = !i && !!this.options.scrollingX, this.__enableScrollY = !i && !!this.options.scrollingY, this.__isTracking = !0, this.__didDecelerationComplete = !1, this.__isDragging = !i, this.__isSingleTouch = i, this.__positions = [], this.__enableScrollX, this.__enableScrollY, this.__isDragging, this.__maxScrollLeft, this.__maxScrollTop;
|
|
5098
5098
|
}
|
|
5099
5099
|
doTouchMove(e, t) {
|
|
5100
5100
|
if (e.length === void 0) throw Error("Invalid touch list: " + e);
|
|
@@ -5102,7 +5102,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5102
5102
|
if (!this.__isTracking) return;
|
|
5103
5103
|
let n, r;
|
|
5104
5104
|
e.length === 2 ? (n = Math.abs(e[0].pageX + e[1].pageX) / 2, r = Math.abs(e[0].pageY + e[1].pageY) / 2) : (n = e[0].pageX, r = e[0].pageY);
|
|
5105
|
-
let i = this.__positions, a = e.length === 2 && this.__pinchStartDistance > 0 ?
|
|
5105
|
+
let i = this.__positions, a = e.length === 2 && this.__pinchStartDistance > 0 ? ec(e) / this.__pinchStartDistance : 1;
|
|
5106
5106
|
if (this.__isDragging) {
|
|
5107
5107
|
let e = n - this.__lastTouchLeft, o = r - this.__lastTouchTop;
|
|
5108
5108
|
this.__gestureMoveX = e, this.__gestureMoveY = o;
|
|
@@ -5151,14 +5151,14 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5151
5151
|
}
|
|
5152
5152
|
__publish(e, t, n, r = !1) {
|
|
5153
5153
|
let i = this.__isAnimating;
|
|
5154
|
-
if (i && (
|
|
5154
|
+
if (i && (Ys(i), this.__isAnimating = 0), r && this.options.animating) {
|
|
5155
5155
|
this.__scheduledLeft = e, this.__scheduledTop = t, this.__scheduledZoom = n;
|
|
5156
5156
|
let r = this.__scrollLeft, a = this.__scrollTop, o = this.__zoomLevel, s = e - r, c = t - a, l = n - o, u = (e, t, n = !1) => {
|
|
5157
5157
|
n && (this.__scrollLeft = r + s * e, this.__scrollTop = a + c * e, this.__zoomLevel = o + l * e, this.__callback && this.__callback(this.__scrollLeft, this.__scrollTop, this.__zoomLevel));
|
|
5158
5158
|
}, d = (e) => this.__isAnimating === e, f = (e, t, n = !1) => {
|
|
5159
5159
|
t === this.__isAnimating && (this.__isAnimating = 0), (this.__didDecelerationComplete || n) && this.options.scrollingComplete?.(), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete &&= (this.__zoomComplete(), null));
|
|
5160
5160
|
};
|
|
5161
|
-
this.__isAnimating =
|
|
5161
|
+
this.__isAnimating = Xs(u, d, f, this.options.animationDuration, i ? Zs : Qs);
|
|
5162
5162
|
} else this.__scheduledLeft = this.__scrollLeft = e, this.__scheduledTop = this.__scrollTop = t, this.__scheduledZoom = this.__zoomLevel = n, this.__callback && this.__callback(e, t, n), this.options.zooming && (this.__computeScrollMax(), this.__zoomComplete &&= (this.__zoomComplete(), null));
|
|
5163
5163
|
}
|
|
5164
5164
|
__computeScrollMax(e = this.__zoomLevel) {
|
|
@@ -5170,7 +5170,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5170
5170
|
this.__minDecelerationScrollLeft = Math.floor(e / n) * n, this.__minDecelerationScrollTop = Math.floor(t / r) * r, this.__maxDecelerationScrollLeft = Math.ceil(e / n) * n, this.__maxDecelerationScrollTop = Math.ceil(t / r) * r;
|
|
5171
5171
|
} else this.__minDecelerationScrollLeft = 0, this.__minDecelerationScrollTop = 0, this.__maxDecelerationScrollLeft = this.__maxScrollLeft, this.__maxDecelerationScrollTop = this.__maxScrollTop;
|
|
5172
5172
|
let t = this.options.snapping ? 4 : .1;
|
|
5173
|
-
this.__isDecelerating =
|
|
5173
|
+
this.__isDecelerating = Xs((e, t, n = !1) => {
|
|
5174
5174
|
this.__stepThroughDeceleration(n);
|
|
5175
5175
|
}, () => {
|
|
5176
5176
|
let e = Math.abs(this.__decelerationVelocityX) >= t || Math.abs(this.__decelerationVelocityY) >= t;
|
|
@@ -5196,11 +5196,11 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5196
5196
|
t < this.__minDecelerationScrollLeft ? e = this.__minDecelerationScrollLeft - t : t > this.__maxDecelerationScrollLeft && (e = this.__maxDecelerationScrollLeft - t), n < this.__minDecelerationScrollTop ? r = this.__minDecelerationScrollTop - n : n > this.__maxDecelerationScrollTop && (r = this.__maxDecelerationScrollTop - n), e !== 0 && (e * this.__decelerationVelocityX <= 0 ? this.__decelerationVelocityX += e * i : this.__decelerationVelocityX = e * a), r !== 0 && (r * this.__decelerationVelocityY <= 0 ? this.__decelerationVelocityY += r * i : this.__decelerationVelocityY = r * a);
|
|
5197
5197
|
}
|
|
5198
5198
|
}
|
|
5199
|
-
},
|
|
5199
|
+
}, nc = /* @__PURE__ */ new Set([
|
|
5200
5200
|
"auto",
|
|
5201
5201
|
"scroll",
|
|
5202
5202
|
"overlay"
|
|
5203
|
-
]),
|
|
5203
|
+
]), rc = /* @__PURE__ */ new Set(["contain", "none"]), ic = (e, t) => {
|
|
5204
5204
|
let { deltaX: n, deltaY: r, shiftKey: i } = e, a = i || Math.abs(n) > Math.abs(r), o = i ? r : a ? n : r;
|
|
5205
5205
|
if (o === 0) return null;
|
|
5206
5206
|
let s = e.target instanceof Element ? e.target : null;
|
|
@@ -5209,21 +5209,21 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5209
5209
|
let e = a ? s.scrollWidth - s.clientWidth : s.scrollHeight - s.clientHeight;
|
|
5210
5210
|
if (e > 0) {
|
|
5211
5211
|
let t = getComputedStyle(s);
|
|
5212
|
-
if (
|
|
5212
|
+
if (nc.has(a ? t.overflowX : t.overflowY)) {
|
|
5213
5213
|
let n = a ? s.scrollLeft : s.scrollTop;
|
|
5214
5214
|
if (o < 0 ? n > 0 : n < e - 1) return "native";
|
|
5215
|
-
if (
|
|
5215
|
+
if (rc.has(a ? t.overscrollBehaviorX : t.overscrollBehaviorY)) return "contained";
|
|
5216
5216
|
}
|
|
5217
5217
|
}
|
|
5218
5218
|
s = s.parentElement;
|
|
5219
5219
|
}
|
|
5220
5220
|
return null;
|
|
5221
|
-
},
|
|
5221
|
+
}, ac = 100 / 3, oc = se({
|
|
5222
5222
|
PANE_SCROLLER_ATTRIBUTE: () => "data-sxl-pane-scroller",
|
|
5223
|
-
defaultRenderScrollbar: () =>
|
|
5224
|
-
getScrollTo: () =>
|
|
5225
|
-
getWheelOwner: () =>
|
|
5226
|
-
}),
|
|
5223
|
+
defaultRenderScrollbar: () => cc,
|
|
5224
|
+
getScrollTo: () => sc,
|
|
5225
|
+
getWheelOwner: () => ic
|
|
5226
|
+
}), sc = (e, t, n, r, i = 0) => {
|
|
5227
5227
|
for (let i = 0; i < n.length; i++) {
|
|
5228
5228
|
let a = n[i].getBoundingClientRect(), o = a.left - t, s = o + a.width;
|
|
5229
5229
|
if (r) {
|
|
@@ -5231,18 +5231,18 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5231
5231
|
} else if (Math.ceil(s) > Math.ceil(e) + 2) return s;
|
|
5232
5232
|
}
|
|
5233
5233
|
return i;
|
|
5234
|
-
},
|
|
5234
|
+
}, cc = (e) => L(Ws, { ...e }), lc = (e) => {
|
|
5235
5235
|
let t = e.ownerDocument?.defaultView;
|
|
5236
5236
|
return t ? t.getComputedStyle(e).touchAction : "";
|
|
5237
|
-
},
|
|
5237
|
+
}, uc = (e) => {
|
|
5238
5238
|
let t = e.trim();
|
|
5239
5239
|
return t === "" || t === "auto" || t === "manipulation" || t.split(/\s+/).some((e) => e.startsWith("pan-"));
|
|
5240
|
-
},
|
|
5241
|
-
let { children: n, viewport: r, disableMouseWheel: i = !1, onWheelScroll: a, zoomable: o = !1, showHorizontalScrollbar: s = !0, showVerticalScrollbar: c = !0, renderScrollCorner: l =
|
|
5240
|
+
}, dc = "_scrollpane_zdrii_2", fc = "_scrollpane-content_zdrii_20", pc = "_scrollpane-content-cell_zdrii_33", mc = "_vertical-container_zdrii_42", hc = "_horizontal-container_zdrii_50", gc = "_corner-container_zdrii_59", _c = "_touch-thumb-overlay_zdrii_68", vc = T(S((e, t) => {
|
|
5241
|
+
let { children: n, viewport: r, disableMouseWheel: i = !1, onWheelScroll: a, zoomable: o = !1, showHorizontalScrollbar: s = !0, showVerticalScrollbar: c = !0, renderScrollCorner: l = yc, renderScrollbarHorizontal: u = cc, renderScrollbarVertical: d = cc, style: f, className: p, disableTouch: m, ...h } = e, g = s && u, _ = c && d, v = Sn(r, (e) => e.getMetrics()), y = E((e, t) => {
|
|
5242
5242
|
if (!r) return;
|
|
5243
5243
|
let n = r.getTarget();
|
|
5244
5244
|
r.setTarget(e.left ?? n.left, e.top ?? n.top, t);
|
|
5245
|
-
}, [r]), b =
|
|
5245
|
+
}, [r]), b = jr(t, () => ({ isScrollPane: () => !0 }), []);
|
|
5246
5246
|
O(() => {}, []);
|
|
5247
5247
|
let x = P(null), S = Y((e) => {
|
|
5248
5248
|
r?.requestZoom(e);
|
|
@@ -5287,12 +5287,12 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5287
5287
|
}), p = Y((t) => {
|
|
5288
5288
|
let n = t.shiftKey, { deltaX: r, deltaY: i, deltaMode: a } = t, p = l.current && !n && (t.ctrlKey || t.metaKey);
|
|
5289
5289
|
if (!p && e.current) {
|
|
5290
|
-
let n =
|
|
5290
|
+
let n = ic(t, e.current);
|
|
5291
5291
|
if (n === "native") return;
|
|
5292
5292
|
if (n === "contained") return void t.preventDefault();
|
|
5293
5293
|
}
|
|
5294
5294
|
if (t.preventDefault(), p) {
|
|
5295
|
-
let e = a === 1 ?
|
|
5295
|
+
let e = a === 1 ? ac : a === 2 ? 800 : 1, n = f.current;
|
|
5296
5296
|
if (n.deltaY += i * e, n.clientX = t.clientX, n.clientY = t.clientY, d.current) return;
|
|
5297
5297
|
d.current = window.requestAnimationFrame(() => {
|
|
5298
5298
|
d.current = null;
|
|
@@ -5370,10 +5370,10 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5370
5370
|
top: t
|
|
5371
5371
|
});
|
|
5372
5372
|
}, []), j = P(!1), N = E((e) => {
|
|
5373
|
-
e.touches.length === 1 && (j.current = ((e, t, n =
|
|
5373
|
+
e.touches.length === 1 && (j.current = ((e, t, n = lc) => {
|
|
5374
5374
|
let r = e instanceof Element ? e : null;
|
|
5375
5375
|
for (; r && r !== t;) {
|
|
5376
|
-
if (!
|
|
5376
|
+
if (!uc(n(r))) return !0;
|
|
5377
5377
|
r = r.parentElement;
|
|
5378
5378
|
}
|
|
5379
5379
|
return !1;
|
|
@@ -5391,7 +5391,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5391
5391
|
O(() => {
|
|
5392
5392
|
let e = b.current, t = !m && ft().supportsTouchEvents;
|
|
5393
5393
|
if ((t || o) && e && v) {
|
|
5394
|
-
x.current || (x.current = new
|
|
5394
|
+
x.current || (x.current = new tc(A, {
|
|
5395
5395
|
scrollingX: !0,
|
|
5396
5396
|
scrollingY: !0,
|
|
5397
5397
|
decelerationRate: .95,
|
|
@@ -5420,11 +5420,11 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5420
5420
|
m,
|
|
5421
5421
|
o
|
|
5422
5422
|
]);
|
|
5423
|
-
let z = ft().supportsTouchEvents, [ne, B] = F(null), [V, { width: H, height: U }] =
|
|
5423
|
+
let z = ft().supportsTouchEvents, [ne, B] = F(null), [V, { width: H, height: U }] = Hr(), W = E((e) => {
|
|
5424
5424
|
B(e), V(e);
|
|
5425
5425
|
}, [V]), re = M(() => {
|
|
5426
5426
|
if (!ne) return null;
|
|
5427
|
-
let e =
|
|
5427
|
+
let e = Is(), t = Math.min(H, v?.width ?? H), n = Math.min(U, v?.height ?? U);
|
|
5428
5428
|
return {
|
|
5429
5429
|
portalTarget: ne,
|
|
5430
5430
|
width: H,
|
|
@@ -5433,7 +5433,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5433
5433
|
viewportHeight: n,
|
|
5434
5434
|
reserveVertical: g ? e : 0,
|
|
5435
5435
|
reserveHorizontal: _ ? e : 0,
|
|
5436
|
-
crossInset:
|
|
5436
|
+
crossInset: Fs()
|
|
5437
5437
|
};
|
|
5438
5438
|
}, [
|
|
5439
5439
|
ne,
|
|
@@ -5445,7 +5445,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5445
5445
|
_
|
|
5446
5446
|
]), ie = M(() => {
|
|
5447
5447
|
if (!_) return null;
|
|
5448
|
-
let e = L(
|
|
5448
|
+
let e = L(ai, {
|
|
5449
5449
|
render: d,
|
|
5450
5450
|
props: {
|
|
5451
5451
|
orientation: Z.Vertical,
|
|
@@ -5458,7 +5458,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5458
5458
|
}
|
|
5459
5459
|
});
|
|
5460
5460
|
return L("div", {
|
|
5461
|
-
className: X("vertical-container",
|
|
5461
|
+
className: X("sxl-vertical-container", mc),
|
|
5462
5462
|
children: e
|
|
5463
5463
|
});
|
|
5464
5464
|
}, [
|
|
@@ -5468,7 +5468,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5468
5468
|
v?.totalHeight
|
|
5469
5469
|
]), ae = M(() => {
|
|
5470
5470
|
if (!g) return null;
|
|
5471
|
-
let e = L(
|
|
5471
|
+
let e = L(ai, {
|
|
5472
5472
|
render: u,
|
|
5473
5473
|
props: {
|
|
5474
5474
|
orientation: Z.Horizontal,
|
|
@@ -5481,7 +5481,7 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5481
5481
|
}
|
|
5482
5482
|
});
|
|
5483
5483
|
return L("div", {
|
|
5484
|
-
className: X("horizontal-container",
|
|
5484
|
+
className: X("sxl-horizontal-container", hc),
|
|
5485
5485
|
children: e
|
|
5486
5486
|
});
|
|
5487
5487
|
}, [
|
|
@@ -5490,8 +5490,8 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5490
5490
|
v?.width,
|
|
5491
5491
|
v?.totalWidth
|
|
5492
5492
|
]), G = M(() => _ && g ? L("div", {
|
|
5493
|
-
className: X("corner-container",
|
|
5494
|
-
children: L(
|
|
5493
|
+
className: X("sxl-corner-container", gc),
|
|
5494
|
+
children: L(ai, {
|
|
5495
5495
|
render: l,
|
|
5496
5496
|
props: {}
|
|
5497
5497
|
})
|
|
@@ -5501,17 +5501,17 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5501
5501
|
l
|
|
5502
5502
|
]);
|
|
5503
5503
|
return L("div", {
|
|
5504
|
-
className: X(p, "scrollpane",
|
|
5504
|
+
className: X(p, "sxl-scrollpane", dc),
|
|
5505
5505
|
style: f,
|
|
5506
5506
|
...h,
|
|
5507
5507
|
ref: b,
|
|
5508
|
-
children: L(
|
|
5508
|
+
children: L(Rs, {
|
|
5509
5509
|
value: re,
|
|
5510
5510
|
children: R("div", {
|
|
5511
|
-
className: X("scrollpane-content",
|
|
5511
|
+
className: X("sxl-scrollpane-content", fc),
|
|
5512
5512
|
children: [
|
|
5513
5513
|
L("div", {
|
|
5514
|
-
className: X("scrollpane-content-cell",
|
|
5514
|
+
className: X("sxl-scrollpane-content-cell", pc),
|
|
5515
5515
|
children: n
|
|
5516
5516
|
}),
|
|
5517
5517
|
_ ? ie : null,
|
|
@@ -5519,18 +5519,18 @@ var Hs = 24, Us = T(S((e, t) => {
|
|
|
5519
5519
|
G,
|
|
5520
5520
|
z ? L("div", {
|
|
5521
5521
|
ref: W,
|
|
5522
|
-
className: X("touch-thumb-overlay",
|
|
5522
|
+
className: X("sxl-touch-thumb-overlay", _c)
|
|
5523
5523
|
}) : null
|
|
5524
5524
|
]
|
|
5525
5525
|
})
|
|
5526
5526
|
})
|
|
5527
5527
|
});
|
|
5528
5528
|
}));
|
|
5529
|
-
|
|
5530
|
-
var
|
|
5529
|
+
vc.displayName = "ScrollPane";
|
|
5530
|
+
var yc = (e) => {
|
|
5531
5531
|
let { size: t, style: n, ...r } = e;
|
|
5532
5532
|
return L("div", {
|
|
5533
|
-
className: "corner",
|
|
5533
|
+
className: "sxl-corner",
|
|
5534
5534
|
style: {
|
|
5535
5535
|
width: "100%",
|
|
5536
5536
|
height: "100%",
|
|
@@ -5538,7 +5538,7 @@ var vc = (e) => {
|
|
|
5538
5538
|
},
|
|
5539
5539
|
...r
|
|
5540
5540
|
});
|
|
5541
|
-
},
|
|
5541
|
+
}, bc = class {
|
|
5542
5542
|
constructor(e) {
|
|
5543
5543
|
this._bounds = {
|
|
5544
5544
|
minLeft: 0,
|
|
@@ -5657,7 +5657,7 @@ var vc = (e) => {
|
|
|
5657
5657
|
}
|
|
5658
5658
|
_applyBounds(e) {
|
|
5659
5659
|
this._bounds = e;
|
|
5660
|
-
let t =
|
|
5660
|
+
let t = Oc(this._target.left, e.minLeft, e.maxLeft), n = Oc(this._target.top, e.minTop, e.maxTop);
|
|
5661
5661
|
t === this._target.left && n === this._target.top || (this._target = {
|
|
5662
5662
|
left: t,
|
|
5663
5663
|
top: n
|
|
@@ -5679,12 +5679,12 @@ var vc = (e) => {
|
|
|
5679
5679
|
return this._observe(e, "both");
|
|
5680
5680
|
}
|
|
5681
5681
|
_observe(e, t) {
|
|
5682
|
-
if (!e) return
|
|
5682
|
+
if (!e) return Dc;
|
|
5683
5683
|
let n = (e, n) => {
|
|
5684
5684
|
let r = this._measuredClient;
|
|
5685
5685
|
this._setMeasuredClient(t === "height" ? r?.width ?? 0 : e, t === "width" ? r?.height ?? 0 : n);
|
|
5686
5686
|
};
|
|
5687
|
-
if (!
|
|
5687
|
+
if (!Ec()) return n(0, 0), Dc;
|
|
5688
5688
|
let r = new ResizeObserver((e) => {
|
|
5689
5689
|
let t = e[0]?.contentRect;
|
|
5690
5690
|
t && n(t.width, t.height);
|
|
@@ -5731,17 +5731,17 @@ var vc = (e) => {
|
|
|
5731
5731
|
}
|
|
5732
5732
|
setTarget(e, t, n) {
|
|
5733
5733
|
let r = this._bounds;
|
|
5734
|
-
return e =
|
|
5734
|
+
return e = Oc(e, r.minLeft, r.maxLeft), t = Oc(t, r.minTop, r.maxTop), this._target.left === e && this._target.top === t ? (this._current.left === e && this._current.top === t || this._ensureTicking(), !1) : (this._target = {
|
|
5735
5735
|
left: e,
|
|
5736
5736
|
top: t
|
|
5737
5737
|
}, n ? this._startAnimation() : this._anim = null, this._ensureTicking(), !0);
|
|
5738
5738
|
}
|
|
5739
5739
|
_startAnimation() {
|
|
5740
|
-
let e = this._current, t = this._target, n = this._effClient(), r = n.width > 0 ? n.width *
|
|
5741
|
-
this._anim = c <=
|
|
5740
|
+
let e = this._current, t = this._target, n = this._effClient(), r = n.width > 0 ? n.width * Cc : 1 / 0, i = n.height > 0 ? n.height * Cc : 1 / 0, a = Oc(e.left, t.left - r, t.left + r), o = Oc(e.top, t.top - i, t.top + i), s = Math.max(Math.abs(t.left - a), Math.abs(t.top - o)), c = Math.min(200, s * Sc);
|
|
5741
|
+
this._anim = c <= wc ? null : {
|
|
5742
5742
|
fromLeft: a,
|
|
5743
5743
|
fromTop: o,
|
|
5744
|
-
start:
|
|
5744
|
+
start: Tc(),
|
|
5745
5745
|
duration: c
|
|
5746
5746
|
};
|
|
5747
5747
|
}
|
|
@@ -5781,7 +5781,7 @@ var vc = (e) => {
|
|
|
5781
5781
|
_advance() {
|
|
5782
5782
|
let e = this._current, t = this._target, n = this._anim, r, i, a = !1;
|
|
5783
5783
|
if (n) {
|
|
5784
|
-
let e = (
|
|
5784
|
+
let e = (Tc() - n.start) / n.duration;
|
|
5785
5785
|
if (e >= 1) r = t.left, i = t.top, this._anim = null;
|
|
5786
5786
|
else {
|
|
5787
5787
|
let o = 1 - (1 - e) ** 3;
|
|
@@ -5793,7 +5793,7 @@ var vc = (e) => {
|
|
|
5793
5793
|
top: i
|
|
5794
5794
|
}, this._viewport = null, this._emit()), a;
|
|
5795
5795
|
}
|
|
5796
|
-
},
|
|
5796
|
+
}, xc = 200, Sc = 2.5, Cc = 1.5, wc = 17, Tc = () => typeof performance < "u" ? performance.now() : Date.now(), Ec = () => typeof ResizeObserver < "u", Dc = () => {}, Oc = (e, t, n) => Math.min(n, Math.max(t, e)), kc = class {
|
|
5797
5797
|
constructor(e, t, n, r, i) {
|
|
5798
5798
|
this._h = e, this._v = t, this._followH = n, this._followV = r, this._zoomCtrl = i, this._combined = null, this._hSnap = null, this._vSnap = null, this._vp = null, this._vpH = null, this._vpV = null;
|
|
5799
5799
|
}
|
|
@@ -5906,8 +5906,8 @@ var vc = (e) => {
|
|
|
5906
5906
|
setContent(e, t, n = 0, r = 0) {
|
|
5907
5907
|
this._same ? this._h.setContent(e, t, n, r) : (this._followH || this._h.setContentAxis("width", e, n), this._followV || this._v.setContentAxis("height", t, r));
|
|
5908
5908
|
}
|
|
5909
|
-
},
|
|
5910
|
-
let { offset: n = 0, viewportSize: r = 0, totalSize: i = 0, minSize: a = 0, endGap: o =
|
|
5909
|
+
}, Ac = 300, jc = 100, Mc = 1e6, Nc = 100, Pc = 50, Fc = T(S((e, t) => {
|
|
5910
|
+
let { offset: n = 0, viewportSize: r = 0, totalSize: i = 0, minSize: a = 0, endGap: o = Ac, endScrollIncrement: s = jc, style: c = ct, onMouseDown: l, onThumbDrag: u, onScrollOffset: d, onScroll: f, scaleLimit: p = Mc, scaleFactor: m = Nc, precisionFactor: h = Pc, renderScrollbar: g = cc, ..._ } = e;
|
|
5911
5911
|
f && console.warn("onScroll not supported for VirtualScrollbar. Use onScrollOffset instead");
|
|
5912
5912
|
let v = Y(l ?? (() => {}), [l]), [y, b] = F(!1), x = P(0), S = M(() => {
|
|
5913
5913
|
let e = p === 0 ? i : Math.min(i ?? 0, Math.max(a ?? 0, (n ?? 0) + (r ?? 0)) + (o ?? 0));
|
|
@@ -5948,7 +5948,7 @@ var vc = (e) => {
|
|
|
5948
5948
|
}, []), k = E((e) => {
|
|
5949
5949
|
b(!0), v?.(e), document.addEventListener("mousemove", D, { passive: !0 }), document.addEventListener("mouseup", O, { passive: !0 });
|
|
5950
5950
|
}, [D, O]);
|
|
5951
|
-
return L(
|
|
5951
|
+
return L(ai, {
|
|
5952
5952
|
render: g,
|
|
5953
5953
|
props: {
|
|
5954
5954
|
style: c,
|
|
@@ -5964,8 +5964,8 @@ var vc = (e) => {
|
|
|
5964
5964
|
}
|
|
5965
5965
|
});
|
|
5966
5966
|
}));
|
|
5967
|
-
|
|
5968
|
-
var
|
|
5967
|
+
Fc.displayName = "VirtualScrollbar";
|
|
5968
|
+
var Ic = "_scrollbar-themed_nj3vu_7", Lc = (e) => ({
|
|
5969
5969
|
"--scrollbar-track-color": e.track,
|
|
5970
5970
|
"--scrollbar-thumb-color": e.thumb,
|
|
5971
5971
|
"--scrollbar-button-color": e.button || e.thumb,
|
|
@@ -5977,13 +5977,13 @@ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
|
|
|
5977
5977
|
"--scrollbar-border-radius": "9999px",
|
|
5978
5978
|
"--scrollbar-border-width": "2px",
|
|
5979
5979
|
"--scrollbar-min-thumb-size": "24px"
|
|
5980
|
-
}),
|
|
5980
|
+
}), Rc = (e) => {
|
|
5981
5981
|
if (typeof window > "u") return !1;
|
|
5982
|
-
let t =
|
|
5982
|
+
let t = Mr();
|
|
5983
5983
|
if (t?.overlaysContent) return t.boundingRect.height > 150;
|
|
5984
5984
|
let n = window.visualViewport;
|
|
5985
5985
|
return !!n && (e ?? window.innerHeight) - n.height * n.scale > 150;
|
|
5986
|
-
},
|
|
5986
|
+
}, zc = (e) => {
|
|
5987
5987
|
let t = Object.freeze({ ...e }), n = !(t.disabled ?? ft().deviceType === "mouseOnly"), r = {
|
|
5988
5988
|
active: !1,
|
|
5989
5989
|
inputMode: "text"
|
|
@@ -6014,8 +6014,8 @@ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
|
|
|
6014
6014
|
a.delete(e);
|
|
6015
6015
|
})
|
|
6016
6016
|
};
|
|
6017
|
-
},
|
|
6018
|
-
let { store: t, disabled: n, disableScrollIntoView: r, keepOnTap: i, children: a } = e, o = M(() => t ??
|
|
6017
|
+
}, Bc = null, Vc = b(null), Hc = (e) => {
|
|
6018
|
+
let { store: t, disabled: n, disableScrollIntoView: r, keepOnTap: i, children: a } = e, o = M(() => t ?? zc({
|
|
6019
6019
|
disabled: n,
|
|
6020
6020
|
disableScrollIntoView: r,
|
|
6021
6021
|
keepOnTap: i
|
|
@@ -6025,15 +6025,15 @@ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
|
|
|
6025
6025
|
r,
|
|
6026
6026
|
i
|
|
6027
6027
|
]);
|
|
6028
|
-
return x(
|
|
6029
|
-
},
|
|
6030
|
-
let e =
|
|
6028
|
+
return x(Vc.Provider, { value: o }, a);
|
|
6029
|
+
}, Uc = () => D(Vc) ?? (Bc ||= zc(), Bc), Wc = () => {
|
|
6030
|
+
let e = Uc();
|
|
6031
6031
|
return I(e.subscribe, e.getState, e.getState), e;
|
|
6032
|
-
},
|
|
6033
|
-
t === null &&
|
|
6034
|
-
},
|
|
6035
|
-
|
|
6036
|
-
}),
|
|
6032
|
+
}, Gc = null, Kc = null, qc = /* @__PURE__ */ new Set(), Jc = (e, t) => {
|
|
6033
|
+
t === null && Kc !== e || Gc === t && Kc === e || (Gc = t, Kc = t === null ? null : e, qc.forEach((e) => e()));
|
|
6034
|
+
}, Yc = () => Gc, Xc = (e) => (qc.add(e), () => {
|
|
6035
|
+
qc.delete(e);
|
|
6036
|
+
}), Zc = S((e, t) => {
|
|
6037
6037
|
let { floating: n, anchor: r = null, onShownChange: i, onKeyboardClose: a, className: o, style: s, children: c } = e, [l, u] = F(null), d = E((e) => {
|
|
6038
6038
|
u(e), typeof t == "function" ? t(e) : t && (t.current = e);
|
|
6039
6039
|
}, [t]), f = P(n);
|
|
@@ -6047,12 +6047,12 @@ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
|
|
|
6047
6047
|
onKeyboardClose: a
|
|
6048
6048
|
};
|
|
6049
6049
|
let m = P(null);
|
|
6050
|
-
|
|
6050
|
+
Br(() => {
|
|
6051
6051
|
if (!l || typeof window > "u") return;
|
|
6052
|
-
let e = {}, t = 0, n = 0, r = !1, i = !1, a = window.innerHeight, o = !1, s =
|
|
6052
|
+
let e = {}, t = 0, n = 0, r = !1, i = !1, a = window.innerHeight, o = !1, s = Mr(), c = !1, u = (e) => {
|
|
6053
6053
|
s && e !== c && (c = e, s.overlaysContent = e);
|
|
6054
6054
|
}, d = (t) => {
|
|
6055
|
-
t !== i && (i = t, l.style.opacity = t ? "1" : "0", l.style.pointerEvents = t ? "auto" : "none", t ||
|
|
6055
|
+
t !== i && (i = t, l.style.opacity = t ? "1" : "0", l.style.pointerEvents = t ? "auto" : "none", t || Jc(e, null), p.current.onShownChange?.(t));
|
|
6056
6056
|
}, h = () => {
|
|
6057
6057
|
t = 0;
|
|
6058
6058
|
let n = window.visualViewport, i = n?.scale ?? 1, a = n?.offsetTop ?? 0, o = n?.height ?? window.innerHeight, u = f.current && !r;
|
|
@@ -6061,11 +6061,11 @@ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
|
|
|
6061
6061
|
let e = s.boundingRect.height;
|
|
6062
6062
|
l.style.bottom = "auto", l.style.top = a + o - (e + l.offsetHeight) / i + "px", l.style.left = `${n.offsetLeft}px`, l.style.width = n.width * i + "px", l.style.transform = `scale(${1 / i})`;
|
|
6063
6063
|
} else l.style.top = "auto", l.style.bottom = "env(keyboard-inset-height, 0px)", l.style.left = "0px", l.style.width = "100%", l.style.transform = "";
|
|
6064
|
-
l.style.transition = "opacity 150ms ease-out", d(!0),
|
|
6064
|
+
l.style.transition = "opacity 150ms ease-out", d(!0), Jc(e, l.getBoundingClientRect().top);
|
|
6065
6065
|
return;
|
|
6066
6066
|
}
|
|
6067
6067
|
let p = u ? a + o - l.offsetHeight / i : a;
|
|
6068
|
-
l.style.bottom = "auto", l.style.top = `${p}px`, l.style.left = `${n?.offsetLeft ?? 0}px`, l.style.width = (n?.width ?? window.innerWidth) * i + "px", l.style.transform = i === 1 ? "" : `scale(${1 / i})`, u ? (l.style.transition = "opacity 150ms ease-out", d(!0),
|
|
6068
|
+
l.style.bottom = "auto", l.style.top = `${p}px`, l.style.left = `${n?.offsetLeft ?? 0}px`, l.style.width = (n?.width ?? window.innerWidth) * i + "px", l.style.transform = i === 1 ? "" : `scale(${1 / i})`, u ? (l.style.transition = "opacity 150ms ease-out", d(!0), Jc(e, p)) : (l.style.transition = "none", d(!1));
|
|
6069
6069
|
}, g = () => {
|
|
6070
6070
|
t ||= requestAnimationFrame(h);
|
|
6071
6071
|
}, _ = () => {
|
|
@@ -6075,10 +6075,10 @@ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
|
|
|
6075
6075
|
}, v = () => {
|
|
6076
6076
|
_(), g();
|
|
6077
6077
|
}, y = () => {
|
|
6078
|
-
v(), f.current && (
|
|
6078
|
+
v(), f.current && (Rc(a) ? o = !0 : o && (o = !1, p.current.onKeyboardClose?.()));
|
|
6079
6079
|
}, b = () => {
|
|
6080
6080
|
o = !1, window.setTimeout(() => {
|
|
6081
|
-
|
|
6081
|
+
Rc() || (a = window.innerHeight);
|
|
6082
6082
|
}, 300);
|
|
6083
6083
|
};
|
|
6084
6084
|
m.current = () => {
|
|
@@ -6092,17 +6092,17 @@ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
|
|
|
6092
6092
|
l.addEventListener("focusin", S), l.addEventListener("focusout", C), s?.addEventListener("geometrychange", y);
|
|
6093
6093
|
let w = window.visualViewport;
|
|
6094
6094
|
return w?.addEventListener("resize", y), w?.addEventListener("scroll", v), window.addEventListener("scroll", v, { passive: !0 }), window.addEventListener("resize", v), window.addEventListener("orientationchange", b), f.current && m.current(), h(), () => {
|
|
6095
|
-
cancelAnimationFrame(t), clearTimeout(n), x?.disconnect(), w?.removeEventListener("resize", y), w?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), l.removeEventListener("focusin", S), l.removeEventListener("focusout", C), s?.removeEventListener("geometrychange", y), u(!1), m.current = null,
|
|
6095
|
+
cancelAnimationFrame(t), clearTimeout(n), x?.disconnect(), w?.removeEventListener("resize", y), w?.removeEventListener("scroll", v), window.removeEventListener("scroll", v), window.removeEventListener("resize", v), window.removeEventListener("orientationchange", b), l.removeEventListener("focusin", S), l.removeEventListener("focusout", C), s?.removeEventListener("geometrychange", y), u(!1), m.current = null, Jc(e, null), i && p.current.onShownChange?.(!1);
|
|
6096
6096
|
};
|
|
6097
6097
|
}, [l]), O(() => {
|
|
6098
6098
|
m.current?.();
|
|
6099
6099
|
}, [n]);
|
|
6100
|
-
let h =
|
|
6100
|
+
let h = Eo(), g = To(r), { className: _, attrs: v } = Qi(h), y = _ || Object.keys(v).length > 0 ? v : g, { getPortalContainer: b } = Mn(), [, x] = F(0);
|
|
6101
6101
|
return O(() => {
|
|
6102
6102
|
l && !l.isConnected && x((e) => e + 1);
|
|
6103
6103
|
}), typeof document > "u" ? null : V(L("div", {
|
|
6104
6104
|
ref: d,
|
|
6105
|
-
className: X("keyboard-accessory", _, o),
|
|
6105
|
+
className: X("sxl-keyboard-accessory", _, o),
|
|
6106
6106
|
...y,
|
|
6107
6107
|
style: {
|
|
6108
6108
|
position: "fixed",
|
|
@@ -6110,7 +6110,7 @@ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
|
|
|
6110
6110
|
left: 0,
|
|
6111
6111
|
boxSizing: "border-box",
|
|
6112
6112
|
transformOrigin: "top left",
|
|
6113
|
-
zIndex:
|
|
6113
|
+
zIndex: yi("grid"),
|
|
6114
6114
|
opacity: 0,
|
|
6115
6115
|
pointerEvents: "none",
|
|
6116
6116
|
...s
|
|
@@ -6118,12 +6118,12 @@ var Fc = "_scrollbar-themed_nj3vu_7", Ic = (e) => ({
|
|
|
6118
6118
|
children: c
|
|
6119
6119
|
}), b());
|
|
6120
6120
|
});
|
|
6121
|
-
|
|
6122
|
-
var
|
|
6121
|
+
Zc.displayName = "KeyboardAccessory";
|
|
6122
|
+
var Qc = {
|
|
6123
6123
|
inset: 0,
|
|
6124
6124
|
offsetTop: 0
|
|
6125
|
-
},
|
|
6126
|
-
let t =
|
|
6125
|
+
}, $c = (e) => {
|
|
6126
|
+
let t = zr(e), n = !!t && Rc(), r = t?.height, i = P(!1);
|
|
6127
6127
|
return O(() => {
|
|
6128
6128
|
if (r === void 0) return;
|
|
6129
6129
|
let e = i.current;
|
|
@@ -6131,11 +6131,11 @@ var Zc = {
|
|
|
6131
6131
|
}, [r, n]), t && n ? {
|
|
6132
6132
|
inset: Math.max(0, Math.round(window.innerHeight - t.height)),
|
|
6133
6133
|
offsetTop: Math.round(t.offsetTop)
|
|
6134
|
-
} :
|
|
6135
|
-
},
|
|
6134
|
+
} : Qc;
|
|
6135
|
+
}, el = oe((e, t) => {
|
|
6136
6136
|
t.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
6137
|
-
}),
|
|
6138
|
-
var n =
|
|
6137
|
+
}), tl = oe((e, t) => {
|
|
6138
|
+
var n = el();
|
|
6139
6139
|
function r() {}
|
|
6140
6140
|
function i() {}
|
|
6141
6141
|
i.resetWarningCache = r, t.exports = function() {
|
|
@@ -6175,70 +6175,70 @@ var Zc = {
|
|
|
6175
6175
|
return a.PropTypes = a, a;
|
|
6176
6176
|
};
|
|
6177
6177
|
}), Q = ce(oe((e, t) => {
|
|
6178
|
-
t.exports =
|
|
6178
|
+
t.exports = tl()();
|
|
6179
6179
|
})(), 1);
|
|
6180
|
-
function
|
|
6180
|
+
function nl(e, t) {
|
|
6181
6181
|
for (let n = 0, r = e.length; n < r; n++) if (t.apply(t, [
|
|
6182
6182
|
e[n],
|
|
6183
6183
|
n,
|
|
6184
6184
|
e
|
|
6185
6185
|
])) return e[n];
|
|
6186
6186
|
}
|
|
6187
|
-
function
|
|
6187
|
+
function rl(e) {
|
|
6188
6188
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
6189
6189
|
}
|
|
6190
|
-
function
|
|
6190
|
+
function il(e) {
|
|
6191
6191
|
return typeof e == "number" && !isNaN(e);
|
|
6192
6192
|
}
|
|
6193
6193
|
function $(e) {
|
|
6194
6194
|
return parseInt(e, 10);
|
|
6195
6195
|
}
|
|
6196
|
-
function
|
|
6196
|
+
function al(e, t, n) {
|
|
6197
6197
|
if (e[t]) return /* @__PURE__ */ Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`);
|
|
6198
6198
|
}
|
|
6199
|
-
var
|
|
6199
|
+
var ol = [
|
|
6200
6200
|
"Moz",
|
|
6201
6201
|
"Webkit",
|
|
6202
6202
|
"O",
|
|
6203
6203
|
"ms"
|
|
6204
6204
|
];
|
|
6205
|
-
function
|
|
6205
|
+
function sl(e, t) {
|
|
6206
6206
|
return t ? `${t}${function(e) {
|
|
6207
6207
|
let t = "", n = !0;
|
|
6208
6208
|
for (let r = 0; r < e.length; r++) n ? (t += e[r].toUpperCase(), n = !1) : e[r] === "-" ? n = !0 : t += e[r];
|
|
6209
6209
|
return t;
|
|
6210
6210
|
}(e)}` : e;
|
|
6211
6211
|
}
|
|
6212
|
-
var
|
|
6212
|
+
var cl = function(e = "transform") {
|
|
6213
6213
|
if (typeof window > "u") return "";
|
|
6214
6214
|
let t = window.document?.documentElement?.style;
|
|
6215
6215
|
if (!t || e in t) return "";
|
|
6216
|
-
for (let n = 0; n <
|
|
6216
|
+
for (let n = 0; n < ol.length; n++) if (sl(e, ol[n]) in t) return ol[n];
|
|
6217
6217
|
return "";
|
|
6218
|
-
}(),
|
|
6219
|
-
function
|
|
6220
|
-
|
|
6218
|
+
}(), ll = "";
|
|
6219
|
+
function ul(e, t) {
|
|
6220
|
+
ll ||= nl([
|
|
6221
6221
|
"matches",
|
|
6222
6222
|
"webkitMatchesSelector",
|
|
6223
6223
|
"mozMatchesSelector",
|
|
6224
6224
|
"msMatchesSelector",
|
|
6225
6225
|
"oMatchesSelector"
|
|
6226
6226
|
], function(t) {
|
|
6227
|
-
return
|
|
6227
|
+
return rl(e[t]);
|
|
6228
6228
|
}) ?? "";
|
|
6229
|
-
let n = e[
|
|
6230
|
-
return !!
|
|
6229
|
+
let n = e[ll];
|
|
6230
|
+
return !!rl(n) && !!n.call(e, t);
|
|
6231
6231
|
}
|
|
6232
|
-
function
|
|
6232
|
+
function dl(e, t, n) {
|
|
6233
6233
|
let r = e;
|
|
6234
6234
|
do {
|
|
6235
|
-
if (
|
|
6235
|
+
if (ul(r, t)) return !0;
|
|
6236
6236
|
if (r === n) return !1;
|
|
6237
6237
|
r = r.parentNode;
|
|
6238
6238
|
} while (r);
|
|
6239
6239
|
return !1;
|
|
6240
6240
|
}
|
|
6241
|
-
function
|
|
6241
|
+
function fl(e, t, n, r) {
|
|
6242
6242
|
if (!e) return;
|
|
6243
6243
|
let i = {
|
|
6244
6244
|
capture: !0,
|
|
@@ -6246,7 +6246,7 @@ function dl(e, t, n, r) {
|
|
|
6246
6246
|
}, a = n;
|
|
6247
6247
|
e.addEventListener ? e.addEventListener(t, a, i) : e.attachEvent ? e.attachEvent("on" + t, a) : e["on" + t] = a;
|
|
6248
6248
|
}
|
|
6249
|
-
function
|
|
6249
|
+
function pl(e, t, n, r) {
|
|
6250
6250
|
if (!e) return;
|
|
6251
6251
|
let i = {
|
|
6252
6252
|
capture: !0,
|
|
@@ -6254,27 +6254,27 @@ function fl(e, t, n, r) {
|
|
|
6254
6254
|
}, a = n;
|
|
6255
6255
|
e.removeEventListener ? e.removeEventListener(t, a, i) : e.detachEvent ? e.detachEvent("on" + t, a) : e["on" + t] = null;
|
|
6256
6256
|
}
|
|
6257
|
-
function
|
|
6257
|
+
function ml(e) {
|
|
6258
6258
|
let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
6259
6259
|
return t += $(n.borderTopWidth), t += $(n.borderBottomWidth), t;
|
|
6260
6260
|
}
|
|
6261
|
-
function
|
|
6261
|
+
function hl(e) {
|
|
6262
6262
|
let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
6263
6263
|
return t += $(n.borderLeftWidth), t += $(n.borderRightWidth), t;
|
|
6264
6264
|
}
|
|
6265
|
-
function
|
|
6265
|
+
function gl(e) {
|
|
6266
6266
|
let t = e.clientHeight, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
6267
6267
|
return t -= $(n.paddingTop), t -= $(n.paddingBottom), t;
|
|
6268
6268
|
}
|
|
6269
|
-
function
|
|
6269
|
+
function _l(e) {
|
|
6270
6270
|
let t = e.clientWidth, n = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
6271
6271
|
return t -= $(n.paddingLeft), t -= $(n.paddingRight), t;
|
|
6272
6272
|
}
|
|
6273
|
-
function
|
|
6273
|
+
function vl({ x: e, y: t }, n, r) {
|
|
6274
6274
|
let i = `translate(${e}${r},${t}${r})`;
|
|
6275
6275
|
return n && (i = `translate(${typeof n.x == "string" ? n.x : n.x + r}, ${typeof n.y == "string" ? n.y : n.y + r})` + i), i;
|
|
6276
6276
|
}
|
|
6277
|
-
function
|
|
6277
|
+
function yl(e, t) {
|
|
6278
6278
|
if (!e) return;
|
|
6279
6279
|
let n = e.getElementById("react-draggable-style-el");
|
|
6280
6280
|
if (!n) {
|
|
@@ -6285,12 +6285,12 @@ function vl(e, t) {
|
|
|
6285
6285
|
var r, i;
|
|
6286
6286
|
e.body && (r = e.body, i = "react-draggable-transparent-selection", r.classList ? r.classList.add(i) : r.className.match(RegExp(`(?:^|\\s)${i}(?!\\S)`)) || (r.className += ` ${i}`));
|
|
6287
6287
|
}
|
|
6288
|
-
function
|
|
6288
|
+
function bl(e) {
|
|
6289
6289
|
window.requestAnimationFrame ? window.requestAnimationFrame(() => {
|
|
6290
|
-
|
|
6291
|
-
}) :
|
|
6290
|
+
xl(e);
|
|
6291
|
+
}) : xl(e);
|
|
6292
6292
|
}
|
|
6293
|
-
function
|
|
6293
|
+
function xl(e) {
|
|
6294
6294
|
var t, n;
|
|
6295
6295
|
if (e) try {
|
|
6296
6296
|
e.body && (t = e.body, n = "react-draggable-transparent-selection", t.classList ? t.classList.remove(n) : t.className = t.className.replace(RegExp(`(?:^|\\s)${n}(?!\\S)`, "g"), ""));
|
|
@@ -6302,21 +6302,21 @@ function bl(e) {
|
|
|
6302
6302
|
}
|
|
6303
6303
|
} catch {}
|
|
6304
6304
|
}
|
|
6305
|
-
function
|
|
6305
|
+
function Sl(e, t, n) {
|
|
6306
6306
|
return [Math.round(t / e[0]) * e[0], Math.round(n / e[1]) * e[1]];
|
|
6307
6307
|
}
|
|
6308
|
-
function
|
|
6308
|
+
function Cl(e) {
|
|
6309
6309
|
return e.props.axis === "both" || e.props.axis === "x";
|
|
6310
6310
|
}
|
|
6311
|
-
function
|
|
6311
|
+
function wl(e) {
|
|
6312
6312
|
return e.props.axis === "both" || e.props.axis === "y";
|
|
6313
6313
|
}
|
|
6314
|
-
function
|
|
6314
|
+
function Tl(e, t, n) {
|
|
6315
6315
|
let r = typeof t == "number" ? function(e, t) {
|
|
6316
|
-
return e.targetTouches &&
|
|
6316
|
+
return e.targetTouches && nl(e.targetTouches, (e) => t === e.identifier) || e.changedTouches && nl(e.changedTouches, (e) => t === e.identifier);
|
|
6317
6317
|
}(e, t) : null;
|
|
6318
6318
|
if (typeof t == "number" && !r) return null;
|
|
6319
|
-
let i =
|
|
6319
|
+
let i = Ol(n);
|
|
6320
6320
|
return function(e, t, n) {
|
|
6321
6321
|
let r = t === t.ownerDocument.body ? {
|
|
6322
6322
|
left: 0,
|
|
@@ -6328,8 +6328,8 @@ function wl(e, t, n) {
|
|
|
6328
6328
|
};
|
|
6329
6329
|
}(r || e, n.props.offsetParent || i.offsetParent || i.ownerDocument.body, n.props.scale);
|
|
6330
6330
|
}
|
|
6331
|
-
function
|
|
6332
|
-
let r = !
|
|
6331
|
+
function El(e, t, n) {
|
|
6332
|
+
let r = !il(e.lastX), i = Ol(e);
|
|
6333
6333
|
return r ? {
|
|
6334
6334
|
node: i,
|
|
6335
6335
|
deltaX: 0,
|
|
@@ -6348,7 +6348,7 @@ function Tl(e, t, n) {
|
|
|
6348
6348
|
y: n
|
|
6349
6349
|
};
|
|
6350
6350
|
}
|
|
6351
|
-
function
|
|
6351
|
+
function Dl(e, t) {
|
|
6352
6352
|
let n = e.props.scale;
|
|
6353
6353
|
return {
|
|
6354
6354
|
node: t.node,
|
|
@@ -6360,46 +6360,46 @@ function El(e, t) {
|
|
|
6360
6360
|
lastY: e.state.y
|
|
6361
6361
|
};
|
|
6362
6362
|
}
|
|
6363
|
-
function
|
|
6363
|
+
function Ol(e) {
|
|
6364
6364
|
let t = e.findDOMNode();
|
|
6365
6365
|
if (!t) throw Error("<DraggableCore>: Unmounted during event!");
|
|
6366
6366
|
return t;
|
|
6367
6367
|
}
|
|
6368
|
-
var
|
|
6368
|
+
var kl = {
|
|
6369
6369
|
start: "touchstart",
|
|
6370
6370
|
move: "touchmove",
|
|
6371
6371
|
stop: "touchend"
|
|
6372
|
-
},
|
|
6372
|
+
}, Al = {
|
|
6373
6373
|
start: "mousedown",
|
|
6374
6374
|
move: "mousemove",
|
|
6375
6375
|
stop: "mouseup"
|
|
6376
|
-
},
|
|
6376
|
+
}, jl = Al, Ml = class extends g.Component {
|
|
6377
6377
|
constructor() {
|
|
6378
6378
|
super(...arguments), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, this.touchIdentifier = null, this.mounted = !1, this.handleDragStart = (e) => {
|
|
6379
6379
|
if (this.props.onMouseDown(e), !this.props.allowAnyClick && (typeof e.button == "number" && e.button !== 0 || e.ctrlKey)) return !1;
|
|
6380
6380
|
let t = this.findDOMNode();
|
|
6381
6381
|
if (!t || !t.ownerDocument || !t.ownerDocument.body) throw Error("<DraggableCore> not mounted on DragStart!");
|
|
6382
6382
|
let { ownerDocument: n } = t;
|
|
6383
|
-
if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !
|
|
6383
|
+
if (this.props.disabled || !(e.target instanceof n.defaultView.Node) || this.props.handle && !dl(e.target, this.props.handle, t) || this.props.cancel && dl(e.target, this.props.cancel, t)) return;
|
|
6384
6384
|
e.type !== "touchstart" || this.props.allowMobileScroll || e.preventDefault();
|
|
6385
6385
|
let r = function(e) {
|
|
6386
6386
|
return e.targetTouches && e.targetTouches[0] ? e.targetTouches[0].identifier : e.changedTouches && e.changedTouches[0] ? e.changedTouches[0].identifier : void 0;
|
|
6387
6387
|
}(e);
|
|
6388
6388
|
this.touchIdentifier = r;
|
|
6389
|
-
let i =
|
|
6389
|
+
let i = Tl(e, r, this);
|
|
6390
6390
|
if (i == null) return;
|
|
6391
|
-
let { x: a, y: o } = i, s =
|
|
6392
|
-
this.props.onStart, !1 !== this.props.onStart(e, s) && !1 !== this.mounted && (this.props.enableUserSelectHack &&
|
|
6391
|
+
let { x: a, y: o } = i, s = El(this, a, o);
|
|
6392
|
+
this.props.onStart, !1 !== this.props.onStart(e, s) && !1 !== this.mounted && (this.props.enableUserSelectHack && yl(n, this.props.nonce), this.dragging = !0, this.lastX = a, this.lastY = o, fl(n, jl.move, this.handleDrag), fl(n, jl.stop, this.handleDragStop));
|
|
6393
6393
|
}, this.handleDrag = (e) => {
|
|
6394
|
-
let t =
|
|
6394
|
+
let t = Tl(e, this.touchIdentifier, this);
|
|
6395
6395
|
if (t == null) return;
|
|
6396
6396
|
let { x: n, y: r } = t;
|
|
6397
6397
|
if (Array.isArray(this.props.grid)) {
|
|
6398
6398
|
let e = n - this.lastX, t = r - this.lastY;
|
|
6399
|
-
if ([e, t] =
|
|
6399
|
+
if ([e, t] = Sl(this.props.grid, e, t), !e && !t) return;
|
|
6400
6400
|
n = this.lastX + e, r = this.lastY + t;
|
|
6401
6401
|
}
|
|
6402
|
-
let i =
|
|
6402
|
+
let i = El(this, n, r);
|
|
6403
6403
|
if (!1 !== this.props.onDrag(e, i) && !1 !== this.mounted) this.lastX = n, this.lastY = r;
|
|
6404
6404
|
else try {
|
|
6405
6405
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
@@ -6409,30 +6409,30 @@ var Ol = {
|
|
|
6409
6409
|
}
|
|
6410
6410
|
}, this.handleDragStop = (e) => {
|
|
6411
6411
|
if (!this.dragging) return;
|
|
6412
|
-
let t =
|
|
6412
|
+
let t = Tl(e, this.touchIdentifier, this);
|
|
6413
6413
|
if (t == null) return;
|
|
6414
6414
|
let { x: n, y: r } = t;
|
|
6415
6415
|
if (Array.isArray(this.props.grid)) {
|
|
6416
6416
|
let e = n - this.lastX || 0, t = r - this.lastY || 0;
|
|
6417
|
-
[e, t] =
|
|
6417
|
+
[e, t] = Sl(this.props.grid, e, t), n = this.lastX + e, r = this.lastY + t;
|
|
6418
6418
|
}
|
|
6419
|
-
let i =
|
|
6419
|
+
let i = El(this, n, r);
|
|
6420
6420
|
if (!1 === this.props.onStop(e, i) || !1 === this.mounted) return !1;
|
|
6421
6421
|
let a = this.findDOMNode();
|
|
6422
|
-
a && this.props.enableUserSelectHack &&
|
|
6423
|
-
}, this.onMouseDown = (e) => (
|
|
6422
|
+
a && this.props.enableUserSelectHack && bl(a.ownerDocument), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, a && (pl(a.ownerDocument, jl.move, this.handleDrag), pl(a.ownerDocument, jl.stop, this.handleDragStop));
|
|
6423
|
+
}, this.onMouseDown = (e) => (jl = Al, this.handleDragStart(e)), this.onMouseUp = (e) => (jl = Al, this.handleDragStop(e)), this.onTouchStart = (e) => (jl = kl, this.handleDragStart(e)), this.onTouchEnd = (e) => (jl = kl, this.handleDragStop(e));
|
|
6424
6424
|
}
|
|
6425
6425
|
componentDidMount() {
|
|
6426
6426
|
this.mounted = !0;
|
|
6427
6427
|
let e = this.findDOMNode();
|
|
6428
|
-
e &&
|
|
6428
|
+
e && fl(e, kl.start, this.onTouchStart, { passive: !1 });
|
|
6429
6429
|
}
|
|
6430
6430
|
componentWillUnmount() {
|
|
6431
6431
|
this.mounted = !1;
|
|
6432
6432
|
let e = this.findDOMNode();
|
|
6433
6433
|
if (e) {
|
|
6434
6434
|
let { ownerDocument: t } = e;
|
|
6435
|
-
|
|
6435
|
+
pl(t, Al.move, this.handleDrag), pl(t, kl.move, this.handleDrag), pl(t, Al.stop, this.handleDragStop), pl(t, kl.stop, this.handleDragStop), pl(e, kl.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && bl(t);
|
|
6436
6436
|
}
|
|
6437
6437
|
}
|
|
6438
6438
|
findDOMNode() {
|
|
@@ -6448,7 +6448,7 @@ var Ol = {
|
|
|
6448
6448
|
});
|
|
6449
6449
|
}
|
|
6450
6450
|
};
|
|
6451
|
-
|
|
6451
|
+
Ml.displayName = "DraggableCore", Ml.propTypes = {
|
|
6452
6452
|
allowAnyClick: Q.default.bool,
|
|
6453
6453
|
allowMobileScroll: Q.default.bool,
|
|
6454
6454
|
children: Q.default.node.isRequired,
|
|
@@ -6467,10 +6467,10 @@ jl.displayName = "DraggableCore", jl.propTypes = {
|
|
|
6467
6467
|
onStop: Q.default.func,
|
|
6468
6468
|
onMouseDown: Q.default.func,
|
|
6469
6469
|
scale: Q.default.number,
|
|
6470
|
-
className:
|
|
6471
|
-
style:
|
|
6472
|
-
transform:
|
|
6473
|
-
},
|
|
6470
|
+
className: al,
|
|
6471
|
+
style: al,
|
|
6472
|
+
transform: al
|
|
6473
|
+
}, Ml.defaultProps = {
|
|
6474
6474
|
allowAnyClick: !1,
|
|
6475
6475
|
allowMobileScroll: !1,
|
|
6476
6476
|
disabled: !1,
|
|
@@ -6481,17 +6481,17 @@ jl.displayName = "DraggableCore", jl.propTypes = {
|
|
|
6481
6481
|
onMouseDown: function() {},
|
|
6482
6482
|
scale: 1
|
|
6483
6483
|
};
|
|
6484
|
-
var
|
|
6484
|
+
var Nl = class extends g.Component {
|
|
6485
6485
|
constructor(e) {
|
|
6486
6486
|
super(e), this.onDragStart = (e, t) => {
|
|
6487
|
-
if (!1 === this.props.onStart(e,
|
|
6487
|
+
if (!1 === this.props.onStart(e, Dl(this, t))) return !1;
|
|
6488
6488
|
this.setState({
|
|
6489
6489
|
dragging: !0,
|
|
6490
6490
|
dragged: !0
|
|
6491
6491
|
});
|
|
6492
6492
|
}, this.onDrag = (e, t) => {
|
|
6493
6493
|
if (!this.state.dragging) return !1;
|
|
6494
|
-
let n =
|
|
6494
|
+
let n = Dl(this, t), r = {
|
|
6495
6495
|
x: n.x,
|
|
6496
6496
|
y: n.y,
|
|
6497
6497
|
slackX: 0,
|
|
@@ -6511,7 +6511,7 @@ var Ml = class extends g.Component {
|
|
|
6511
6511
|
bottom: e.bottom
|
|
6512
6512
|
};
|
|
6513
6513
|
}(r);
|
|
6514
|
-
let i =
|
|
6514
|
+
let i = Ol(e);
|
|
6515
6515
|
if (typeof r == "string") {
|
|
6516
6516
|
let { ownerDocument: e } = i, t = e.defaultView;
|
|
6517
6517
|
if (!t) throw Error("Cannot resolve the owner window of the draggable node.");
|
|
@@ -6521,18 +6521,18 @@ var Ml = class extends g.Component {
|
|
|
6521
6521
|
r = {
|
|
6522
6522
|
left: -i.offsetLeft + $(s.paddingLeft) + $(o.marginLeft),
|
|
6523
6523
|
top: -i.offsetTop + $(s.paddingTop) + $(o.marginTop),
|
|
6524
|
-
right:
|
|
6525
|
-
bottom:
|
|
6524
|
+
right: _l(a) - hl(i) - i.offsetLeft + $(s.paddingRight) - $(o.marginRight),
|
|
6525
|
+
bottom: gl(a) - ml(i) - i.offsetTop + $(s.paddingBottom) - $(o.marginBottom)
|
|
6526
6526
|
};
|
|
6527
6527
|
}
|
|
6528
|
-
return
|
|
6528
|
+
return il(r.right) && (t = Math.min(t, r.right)), il(r.bottom) && (n = Math.min(n, r.bottom)), il(r.left) && (t = Math.max(t, r.left)), il(r.top) && (n = Math.max(n, r.top)), [t, n];
|
|
6529
6529
|
}(this, r.x, r.y);
|
|
6530
6530
|
r.x = i, r.y = a, r.slackX = this.state.slackX + (e - r.x), r.slackY = this.state.slackY + (t - r.y), n.x = r.x, n.y = r.y, n.deltaX = r.x - this.state.x, n.deltaY = r.y - this.state.y;
|
|
6531
6531
|
}
|
|
6532
6532
|
if (!1 === this.props.onDrag(e, n)) return !1;
|
|
6533
6533
|
this.setState(r);
|
|
6534
6534
|
}, this.onDragStop = (e, t) => {
|
|
6535
|
-
if (!this.state.dragging || !1 === this.props.onStop(e,
|
|
6535
|
+
if (!this.state.dragging || !1 === this.props.onStop(e, Dl(this, t))) return !1;
|
|
6536
6536
|
let n = {
|
|
6537
6537
|
dragging: !1,
|
|
6538
6538
|
slackX: 0,
|
|
@@ -6574,20 +6574,20 @@ var Ml = class extends g.Component {
|
|
|
6574
6574
|
}
|
|
6575
6575
|
render() {
|
|
6576
6576
|
let { axis: e, bounds: t, children: n, defaultPosition: r, defaultClassName: i, defaultClassNameDragging: a, defaultClassNameDragged: o, position: s, positionOffset: c, scale: l, ...u } = this.props, d = {}, f = null, p = !s || this.state.dragging, m = s || r, h = {
|
|
6577
|
-
x:
|
|
6578
|
-
y:
|
|
6577
|
+
x: Cl(this) && p ? this.state.x : m.x,
|
|
6578
|
+
y: wl(this) && p ? this.state.y : m.y
|
|
6579
6579
|
};
|
|
6580
6580
|
this.state.isElementSVG ? f = function(e, t) {
|
|
6581
|
-
return
|
|
6581
|
+
return vl(e, t, "");
|
|
6582
6582
|
}(h, c) : d = function(e, t) {
|
|
6583
|
-
let n =
|
|
6584
|
-
return { [
|
|
6583
|
+
let n = vl(e, t, "px");
|
|
6584
|
+
return { [sl("transform", cl)]: n };
|
|
6585
6585
|
}(h, c);
|
|
6586
6586
|
let _ = g.Children.only(n), v = X(_.props.className || "", i, {
|
|
6587
6587
|
[a]: this.state.dragging,
|
|
6588
6588
|
[o]: this.state.dragged
|
|
6589
6589
|
});
|
|
6590
|
-
return g.createElement(
|
|
6590
|
+
return g.createElement(Ml, {
|
|
6591
6591
|
...u,
|
|
6592
6592
|
onStart: this.onDragStart,
|
|
6593
6593
|
onDrag: this.onDrag,
|
|
@@ -6602,8 +6602,8 @@ var Ml = class extends g.Component {
|
|
|
6602
6602
|
}));
|
|
6603
6603
|
}
|
|
6604
6604
|
};
|
|
6605
|
-
|
|
6606
|
-
...
|
|
6605
|
+
Nl.displayName = "Draggable", Nl.propTypes = {
|
|
6606
|
+
...Ml.propTypes,
|
|
6607
6607
|
axis: Q.default.oneOf([
|
|
6608
6608
|
"both",
|
|
6609
6609
|
"x",
|
|
@@ -6635,11 +6635,11 @@ Ml.displayName = "Draggable", Ml.propTypes = {
|
|
|
6635
6635
|
x: Q.default.number,
|
|
6636
6636
|
y: Q.default.number
|
|
6637
6637
|
}),
|
|
6638
|
-
className:
|
|
6639
|
-
style:
|
|
6640
|
-
transform:
|
|
6641
|
-
},
|
|
6642
|
-
...
|
|
6638
|
+
className: al,
|
|
6639
|
+
style: al,
|
|
6640
|
+
transform: al
|
|
6641
|
+
}, Nl.defaultProps = {
|
|
6642
|
+
...Ml.defaultProps,
|
|
6643
6643
|
axis: "both",
|
|
6644
6644
|
bounds: !1,
|
|
6645
6645
|
defaultClassName: "react-draggable",
|
|
@@ -6651,7 +6651,7 @@ Ml.displayName = "Draggable", Ml.propTypes = {
|
|
|
6651
6651
|
},
|
|
6652
6652
|
scale: 1
|
|
6653
6653
|
};
|
|
6654
|
-
var
|
|
6654
|
+
var Pl = {
|
|
6655
6655
|
axis: Q.default.oneOf([
|
|
6656
6656
|
"both",
|
|
6657
6657
|
"x",
|
|
@@ -6703,12 +6703,12 @@ var Nl = {
|
|
|
6703
6703
|
let [t] = e;
|
|
6704
6704
|
return t.axis === "both" || t.axis === "x" ? Q.default.number.isRequired(...e) : Q.default.number(...e);
|
|
6705
6705
|
}
|
|
6706
|
-
},
|
|
6706
|
+
}, Fl = class extends g.Component {
|
|
6707
6707
|
constructor(...e) {
|
|
6708
6708
|
super(...e), this.handleRefs = {}, this.lastHandleRect = null, this.slack = null, this.lastSize = null;
|
|
6709
6709
|
}
|
|
6710
6710
|
static {
|
|
6711
|
-
this.propTypes =
|
|
6711
|
+
this.propTypes = Pl;
|
|
6712
6712
|
}
|
|
6713
6713
|
static {
|
|
6714
6714
|
this.defaultProps = {
|
|
@@ -6782,7 +6782,7 @@ var Nl = {
|
|
|
6782
6782
|
className: (t ? `${t} ` : "") + "react-resizable",
|
|
6783
6783
|
children: [...g.Children.toArray(e.props.children), ...m.map((e) => {
|
|
6784
6784
|
let t = this.handleRefs[e] ?? (this.handleRefs[e] = g.createRef());
|
|
6785
|
-
return x(
|
|
6785
|
+
return x(Ml, {
|
|
6786
6786
|
...n,
|
|
6787
6787
|
nodeRef: t,
|
|
6788
6788
|
key: `resizableHandle-${e}`,
|
|
@@ -6797,7 +6797,7 @@ var Nl = {
|
|
|
6797
6797
|
}), b.className && y.props.className && (b.className = `${y.props.className} ${b.className}`), _.cloneElement(y, b);
|
|
6798
6798
|
var y, b;
|
|
6799
6799
|
}
|
|
6800
|
-
},
|
|
6800
|
+
}, Il = class extends g.Component {
|
|
6801
6801
|
constructor(...e) {
|
|
6802
6802
|
super(...e), this.state = {
|
|
6803
6803
|
width: this.props.width,
|
|
@@ -6811,7 +6811,7 @@ var Nl = {
|
|
|
6811
6811
|
}
|
|
6812
6812
|
static {
|
|
6813
6813
|
this.propTypes = {
|
|
6814
|
-
...
|
|
6814
|
+
...Pl,
|
|
6815
6815
|
children: Q.default.element
|
|
6816
6816
|
};
|
|
6817
6817
|
}
|
|
@@ -6825,7 +6825,7 @@ var Nl = {
|
|
|
6825
6825
|
}
|
|
6826
6826
|
render() {
|
|
6827
6827
|
let { handle: e, handleSize: t, onResize: n, onResizeStart: r, onResizeStop: i, draggableOpts: a, minConstraints: o, maxConstraints: s, lockAspectRatio: c, axis: l, width: u, height: d, resizeHandles: f, style: p, transformScale: m, ...h } = this.props;
|
|
6828
|
-
return L(
|
|
6828
|
+
return L(Fl, {
|
|
6829
6829
|
axis: l,
|
|
6830
6830
|
draggableOpts: a,
|
|
6831
6831
|
handle: e,
|
|
@@ -6851,4 +6851,4 @@ var Nl = {
|
|
|
6851
6851
|
});
|
|
6852
6852
|
}
|
|
6853
6853
|
};
|
|
6854
|
-
export { pe as ACCUMULATE, cn as AnimationModeProvider,
|
|
6854
|
+
export { pe as ACCUMULATE, cn as AnimationModeProvider, kc as AxisViewport, rn as Command, Vt as CommandAnchorProvider, xe as CommandButtonEntryLabel, _e as CommandButtonRegistryContext, ye as CommandButtonRegistryProvider, fe as CommandButtonType, At as CommandChainContext, Ut as CommandFallbackContext, Kt as CommandFallbackProvider, Jt as CommandFocusProvider, Mt as CommandOrderContext, K as CommandRegistry, Fe as CommandRegistryContext, kt as CommandResolver, zt as CommandResolverContext, Le as CommandScope, Pt as CommandScopeContext, Lt as CommandScopeProvider, Be as ConstantActivation, J as DefaultCommandButtonRegistry, Pe as DefaultCommandCatalogService, q as DefaultCommandRegistry, n as DefaultIconService, t as DynamicIcon, ws as EDGE_HOLD_INTERVAL_MS, Lo as FloatPanel, Io as FloatPanelSurface, Mo as FloatPopper, zo as FloatProvider, Zt as FloatStackProvider, Ve as FocusActivation, ii as FocusKeyNavigation, Oi as INPUT_SELECTION_TINT, Di as INPUT_SELECTION_VAR, Jo as InMemoryStore, wt as KeyBindingDispatcher, ue as KeyCodes, le as KeyModifiers, Zc as KeyboardAccessory, hr as LanguageStateKey, He as LayerActivation, ss as LocalStorageStore, ze as ManualActivation, de as MouseButtonCodes, ln as NotifierType, Ts as PAGE_INITIAL_DELAY_MS, Es as PAGE_REPEAT_DELAY_MS, rs as PendingRender, ds as PendingRenderScope, ns as PersistentStateProvider, Se as QUICK_ACTION_TAG, fi as ReactErrorBoundary, gn as ReactNotifierProvider, ot as ReactUtils, ai as RenderSlot, Fl as Resizable, Il as ResizableBox, si as RoundedTab, xc as SCROLL_ANIMATION_MS, xi as SERIES_COUNT, Ai as SXL_THEME_LAYERS, ji as SXL_THEME_LAYER_ORDER, vc as ScrollPane, oc as ScrollUtils, Ws as Scrollbar, Z as ScrollbarOrientation, qo as SplitPane, Ho as SplitPaneResizer, Pi as THEME_MODE_ATTR, Fi as THEME_SURFACE_ATTR, As as TOUCH_THUMB_ASPECT, js as TOUCH_THUMB_MARGIN, Ns as TOUCH_THUMB_MARGIN_CROSS, Ps as TOUCH_THUMB_MARGIN_END, Ms as TOUCH_THUMB_MARGIN_START, ks as TOUCH_THUMB_SIZE, Ri as ThemeModeFallbackContext, Ui as TokenThemeContext, Gi as TokenThemeProvider, Rs as TouchThumbFrameProvider, Hs as TouchThumbHandle, _i as UncaughtErrorBoundary, bc as Viewport, Hc as VirtualKeyboardProvider, Fc as VirtualScrollbar, r as WalkingIcon, vi as Z_INDEX, ke as asCommandCatalog, It as attachWhenReady, Ni as buildThemeCSS, je as chromeToPartial, yr as composeCaretRect, un as createBusyHandle, Ne as createCommandCatalogService, e as createDynamicIconService, dn as createNoopBusyHandle, we as createResolvedCommand, Li as createThemeScopeClass, Ds as createTrackDrag, zc as createVirtualKeyboardStore, Ro as defaultRenderFloatPanel, Po as defaultRenderFloatPopupPanel, Cs as defaultRenderScrollButtonEdge, Ss as defaultRenderScrollButtonEnd, xs as defaultRenderScrollButtonStart, yc as defaultRenderScrollCorner, Si as defaultTheme, fr as exitEditMode, Ae as fetchCatalog, Qi as floatThemeScopeProps, wn as getDevicePixelRatio, Wn as getInputModality, Yc as getKeyboardAccessoryTop, Lc as getScrollbarCssVariables, xr as getTextareaCaretRect, Fr as getVisualViewportRect, Ct as isCaretKey, Rc as isVirtualKeyboardUp, Et as keyEventCanonicals, Tt as keyStrokeToCanonical, ui as lazyComponent, Rn as measureUIText, Me as mergeChrome, bi as offsetZIndex, De as parseShortcutString, me as reduceDefinitions, Re as resolveAnchorSource, Ki as resolveToken, qi as resolveTokens, Ic as scrollbarThemedClassName, Oe as serializeShortcut, ur as setEditMode, pr as subscribeEditModeExit, Kn as subscribeInputModality, Xc as subscribeKeyboardAccessoryTop, Ir as subscribeVisualViewport, Ii as themeSurfaceProps, Ti as themeVars, wi as toVars, Is as touchThumbCornerReserve, Fs as touchThumbCrossInset, ei as useAnimatedMeasure, sn as useAnimationMode, bn as useBoundSyncExternalStore, Y as useCallbackRef, be as useCommandButtonEntry, ve as useCommandButtonRegistry, jt as useCommandChain, Rt as useCommandElement, Ht as useCommandExecute, Wt as useCommandFallback, Yt as useCommandFocusRestore, Nt as useCommandOrder, Ie as useCommandRegistry, Bt as useCommandResolver, Ft as useCommandScope, tn as useCommands, nn as useContributeCommands, Cn as useDevicePixelRatio, mr as useEditMode, Qt as useFloat, en as useFloatPopupOpen, Bo as useFloatStack, Zi as useFloatSurface, En as useFullscreen, Mn as useFullscreenPortal, Cr as useGlobalClipboard, kr as useId, jr as useImperativeElement, Jn as useInputModality, Br as useIsomorphicLayoutEffect, $c as useKeyboardResize, gr as useLanguage, li as useLazyRetry, Yr as useLocationSearch, Hr as useMeasure, Bn as useMouseDownAndHoldListener, _n as useNotifier, Tn as useOnClickOrFocusAway, Sn as useOptionalBoundSyncExternalStore, yn as useOptionalSyncExternalStore, fs as usePendingRender, es as usePersistentState, zi as useResolvedThemeMode, zn as useSynchronizedPointerHandler, Ln as useTextSelectionDrag, Sr as useTextareaCaretRect, Wi as useTokenThemeContext, zs as useTouchThumbFrame, wr as useTraceUpdate, Os as useTrackDrag, _r as useTranslator, Wc as useVirtualKeyboard, Uc as useVirtualKeyboardStore, zr as useVisualViewportRect, ls as whenRenderSettled, yi as zIndexVar };
|