pixedi 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`._button_1vpzl_1{cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box;background-color:#0000;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;gap:8px;height:32px;padding:0 8px;font-family:inherit;font-size:14px;font-weight:500;transition:background-color .2s,border-color .2s,opacity .2s;display:inline-flex}._button_1vpzl_1:disabled{pointer-events:none;opacity:.5}._button_1vpzl_1 svg{flex-shrink:0;width:16px;height:16px}._default_1vpzl_35{background-color:var(--primary);color:var(--primary-foreground)}._default_1vpzl_35:hover{opacity:.9}._outline_1vpzl_44{border-color:var(--border);background-color:var(--background);color:var(--foreground)}._outline_1vpzl_44:hover{background-color:var(--secondary)}._ghost_1vpzl_54{color:var(--foreground);padding:0 8px}._ghost_1vpzl_54:hover{background-color:var(--secondary)}._rect_1vpzl_63{width:32px;height:32px}._separator_gp8ff_1{background-color:var(--border);box-sizing:border-box;border:none;flex-shrink:0;display:block}._separator_gp8ff_1[data-orientation=horizontal]{width:100%;height:1px}._separator_gp8ff_1[data-orientation=vertical]{align-self:stretch;width:1px;height:100%;margin:0}._wrapper_1aw0m_1{box-sizing:border-box;width:100%;position:relative}._trigger_1aw0m_6{width:100%;height:32px;color:var(--foreground);background-color:var(--background);border:1px solid var(--border);cursor:pointer;box-sizing:border-box;-webkit-user-select:none;user-select:none;border-radius:4px;outline:none;justify-content:space-between;align-items:center;padding:0 8px 0 10px;font-family:inherit;font-size:14px;transition:border-color .2s;display:flex}._trigger_1aw0m_6:hover,._trigger_1aw0m_6:focus{border-color:var(--muted-foreground)}._triggerArrow_1aw0m_31{width:16px;height:16px;color:var(--muted-foreground);transition:transform .2s}._wrapper_1aw0m_1[data-state=open] ._triggerArrow_1aw0m_31{transform:rotate(180deg)}._content_1aw0m_40{background-color:var(--background);border:1px solid var(--border);z-index:50;box-sizing:border-box;border-radius:4px;width:100%;max-height:282px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;overflow-y:auto;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}._content_1aw0m_40::-webkit-scrollbar{width:4px}._content_1aw0m_40::-webkit-scrollbar-track{background:0 0}._content_1aw0m_40::-webkit-scrollbar-thumb{background-color:var(--border);border-radius:10px}._wrapper_1aw0m_1[data-state=closed] ._content_1aw0m_40{display:none}._groupLabel_1aw0m_74{color:var(--muted-foreground);-webkit-user-select:none;user-select:none;padding:8px 10px;font-size:12px;font-weight:500}._item_1aw0m_81{width:100%;color:var(--foreground);cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;background:0 0;border-radius:4px;justify-content:space-between;align-items:center;padding:4px 10px;display:flex}._item_1aw0m_81:hover{background-color:var(--secondary)}._itemLeft_1aw0m_98{font-size:14px;font-weight:400}._itemAddon_1aw0m_102{align-items:center;gap:8px;display:flex}._itemAddon_1aw0m_102 span{color:var(--muted-foreground);font-size:12px}._itemAddon_1aw0m_102 svg{font-size:14px}._itemAddon_1aw0m_102 b{flex-shrink:0;width:16px;height:16px}._itemRightContainer_1aw0m_122{align-items:center;gap:8px;display:flex}._itemRight_1aw0m_122{color:var(--muted-foreground);font-size:14px}._itemCheck_1aw0m_131{width:16px;height:16px;color:var(--foreground);flex-shrink:0}:host{height:100%;display:block}:host *{box-sizing:border-box}._root_c6gk7_8{width:100%;height:100%;font-size:16px;font-family:var(--font-sans);--font-sans:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, Helvetica, Arial, sans-serif;--font-mono:"Courier New", Courier, monospace;--color-white:#fff;--color-white-fade:color-mix(in srgb, var(--color-white) 40%, transparent);--color-black:#000;--color-red:oklch(63.7% .237 25.331);--color-green:oklch(76.8% .188 151.716);--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(75.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--accent-blue:oklch(60.9% .221 251.687);--accent-blue-light:oklch(96% .02 250);--accent-blue-fade:color-mix(in srgb, var(--accent-blue) 60%, transparent);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--overlay-bg:color-mix(in srgb, var(--color-black) 50%, transparent);--overlay-bg-white:color-mix(in srgb, var(--color-white) 80%, transparent);position:relative}._root_c6gk7_8[data-theme=dark]{--background:oklch(24.5% 0 0);--foreground:oklch(78.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(24.5% 0 0);--muted-foreground:oklch(50% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--accent-blue-light:oklch(25% .06 250);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--overlay-bg:color-mix(in srgb, var(--color-black) 75%, transparent)}._root_c6gk7_8 h1,._root_c6gk7_8 h2,._root_c6gk7_8 h3,._root_c6gk7_8 h4,._root_c6gk7_8 h5,._root_c6gk7_8 h6{color:var(--foreground);margin:0;font-weight:600}._textRed_c6gk7_73{color:var(--color-red)}._bgRed_c6gk7_76{background-color:var(--color-red)}._bgGreen_c6gk7_79{background-color:var(--color-green)}._textGreen_c6gk7_82{color:var(--color-green)}._mask_c6gk7_85{background-color:var(--overlay-bg)}._semibold_c6gk7_88{letter-spacing:.4px;font-weight:600}._bold_c6gk7_92{letter-spacing:.4px;font-weight:700}._system_c6gk7_96{color:var(--muted-foreground);background-color:var(--background);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}._wrapper_c6gk7_106{width:100%;height:100%;min-height:480px;position:relative;overflow:hidden}._grid_c6gk7_113{grid-template:"header header"48px"sidebar frame"minmax(0,1fr)"sidebar infobar"32px/48px 1fr;height:100%;display:grid;position:relative}._grid_c6gk7_113._mobile_c6gk7_124{grid-template-columns:0 1fr}._gridNoInfobar_c6gk7_128{grid-template:"header header"48px"sidebar frame"1fr/48px 1fr;height:100%;display:grid;position:relative}._gridNoInfobar_c6gk7_128._mobile_c6gk7_124{grid-template-columns:0 1fr}._input_kyavx_1{width:100%;height:32px;color:var(--foreground);background-color:var(--background);border:1px solid var(--input);box-sizing:border-box;border-radius:4px;outline:none;padding:0 8px;font-family:inherit;font-size:14px;line-height:normal;transition:border-color .2s,box-shadow .2s;display:block}._input_kyavx_1:hover:not(:disabled):not(:focus){border-color:var(--muted-foreground)}._input_kyavx_1:focus{box-shadow:0 0 0 1px var(--ring)}._input_kyavx_1:disabled{cursor:not-allowed;opacity:.5;background-color:var(--secondary)}._input_kyavx_1::placeholder{color:var(--muted-foreground);opacity:1}._numberClean_kyavx_39::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._numberClean_kyavx_39::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}._numberClean_kyavx_39[type=number]{-moz-appearance:textfield}._container_14vsv_1{position:relative}._legend_14vsv_4{color:var(--muted-foreground);background:var(--background);margin-left:8px;padding:0 4px;font-size:12px;position:absolute;top:-9px}._suffix_14vsv_13{color:var(--muted-foreground);pointer-events:none;-webkit-user-select:none;user-select:none;font-size:14px;position:absolute;bottom:2px;right:8px}._group_1e7jm_1{margin-left:4px;display:flex}._save_1e7jm_6{width:36px;color:var(--color-green);border-top-right-radius:0;border-bottom-right-radius:0}._close_1e7jm_13{width:36px;color:var(--color-red);border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}._tooltip_gohf2_1{position:relative}._container_gohf2_5{gap:0;display:flex}._container_gohf2_5[data-orientation=vertical]{flex-direction:column}._container_gohf2_5 [data-tooltip]{pointer-events:auto}._popup_gohf2_18{top:var(--tooltip-y,0px);left:var(--tooltip-x,0px);background-color:var(--foreground);color:var(--background);z-index:999;pointer-events:none;opacity:var(--tooltip-opacity,0);width:var(--tooltip-w,auto);height:var(--tooltip-h,auto);transition:opacity var(--tooltip-fade,.2s);border-radius:4px;font-size:14px;position:absolute;transform:translate(-50%,-100%);box-shadow:0 2px 8px #0000001a}._popup_gohf2_18:before{content:"";background-color:inherit;width:10px;height:10px;position:absolute;bottom:-3px;left:50%;transform:translate(-50%)rotate(45deg)}._popup_gohf2_18[data-orientation=vertical]{transform:translateY(-50%)}._popup_gohf2_18[data-orientation=vertical]:before{content:"";background-color:inherit;width:10px;height:10px;position:absolute;top:50%;left:-3px;transform:translateY(-50%)rotate(45deg)}._popup_gohf2_18._animated_gohf2_62{transition:left var(--tooltip-slide,.4s), top var(--tooltip-slide,.4s), width var(--tooltip-slide,.4s), height var(--tooltip-slide,.4s), opacity var(--tooltip-fade,.2s)}._mask_gohf2_71{border-radius:inherit;width:100%;height:100%;overflow:hidden}._track_gohf2_78{width:max-content;height:max-content;transform:translateX(calc(-1 * var(--tooltip-offset,0px)));display:flex}._track_gohf2_78[data-orientation=vertical]{transform:translateY(calc(-1 * var(--tooltip-offset,0px)));flex-direction:column}._animated_gohf2_62 ._track_gohf2_78{transition:transform var(--tooltip-slide,.4s)}._title_gohf2_94{min-width:var(--tooltip-item-w,auto);max-width:var(--tooltip-item-w,none);min-height:var(--tooltip-item-h,32px);max-height:var(--tooltip-item-h,none);white-space:nowrap;box-sizing:border-box;flex:none;justify-content:center;align-items:center;padding:0 10px;display:flex}._header_1yueu_1{box-sizing:border-box;background-color:var(--background);border-bottom:1px solid var(--border);grid-area:header;justify-content:space-between;align-items:center;height:48px;padding:0 8px;display:flex}._left_1yueu_12{align-items:center;gap:0;display:flex}._sidebarToggle_1yueu_17{border-right:solid 1px var(--border);cursor:pointer;justify-content:center;align-items:center;width:48px;height:48px;transition:all .2s;display:none;position:relative;left:-8px}._sidebarToggle_1yueu_17._mobile_1yueu_29{display:flex}._sidebarIcon_1yueu_33{stroke-width:1.6px;width:18px;height:18px}._tools_1yueu_38{gap:8px;display:flex}._history_1yueu_42{align-items:center;gap:6px;display:flex}._historyText_1yueu_47{color:var(--muted-foreground);font-size:14px;font-family:var(--font-mono)}._sidebar_1j9gh_1{background:var(--background);border-right:1px solid var(--border);z-index:10;grid-area:sidebar;width:48px;position:relative}._sidebar_1j9gh_1._mobile_1j9gh_9{transition:transform .2s ease-out;transform:translate(-110%);box-shadow:0 2px 8px #0000001a}._sidebar_1j9gh_1._mobile_1j9gh_9._open_1j9gh_14{transform:translate(0%)}._wrapper_1j9gh_19{flex-direction:column;display:flex}._item_1j9gh_23{cursor:pointer;justify-content:center;align-items:center;height:48px;transition:all .2s;display:flex;position:relative}._item_1j9gh_23 svg{width:16px;height:16px}._item_1j9gh_23:hover{background-color:var(--accent)}._item_1j9gh_23._selected_1j9gh_41{color:var(--accent-blue);background-color:var(--accent)}._item_1j9gh_23._selected_1j9gh_41:before{content:"";background-color:var(--accent-blue);width:2px;position:absolute;top:0;bottom:0;left:0}._infobar_ofe91_1{background:var(--muted);font-family:var(--font-mono);grid-area:infobar;justify-content:space-between;align-items:center;padding:0 16px;font-size:14px;display:flex}._resize_s127g_1{background-color:var(--background);border-radius:4px;align-items:center;gap:6px;padding:15px 8px 8px;display:flex;position:absolute;bottom:24px;left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 2px 8px #0000001a}._toolsLock_s127g_15{width:12px;height:12px;color:var(--muted-foreground)}._indicatorWrapper_s127g_20{justify-content:center;width:100%;height:1px;display:flex;position:absolute;top:0;left:0}._indicator_s127g_20{background:var(--accent-blue);opacity:.6;border-radius:2px;width:30%;height:100%;transition:width .2s}._preview_dvanl_1{box-sizing:border-box;max-width:calc(100% - 32px);max-height:calc(100% - 32px);margin:auto;transition:all .2s linear;position:absolute;inset:0;overflow:hidden}._rotate_dvanl_12{box-sizing:border-box;width:100%;height:100%;transition:all .2s linear;position:absolute;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}._flip_dvanl_24{box-sizing:border-box;transition:all .2s linear;position:absolute;inset:0;overflow:hidden}._image_dvanl_32{max-width:none;max-height:none;transition:all .2s linear;display:block;position:absolute}._wrapper_1yhyo_1{box-sizing:border-box;max-width:calc(100% - 32px);max-height:calc(100% - 32px);margin:auto;position:absolute;inset:0}._box_1yhyo_9{cursor:move;box-sizing:border-box;-webkit-user-select:none;user-select:none;touch-action:none;border:1px solid var(--color-white-fade);position:absolute}._tools_1yhyo_18{background-color:var(--background);box-sizing:border-box;border:1px solid var(--border);border-radius:4px;align-items:center;gap:6px;padding:4px;display:flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}._toolsInfo_1yhyo_35{-webkit-user-select:none;user-select:none;min-width:54px;margin-top:-2px;display:inline-block}._toolsInfoLabel_1yhyo_42{color:var(--muted-foreground);font-size:12px;line-height:12px}._toolsInfoValue_1yhyo_47{color:var(--foreground);font-size:14px;line-height:14px}._linesBox_1yhyo_52{pointer-events:none;position:absolute;inset:1px}._line_1yhyo_52{border:1px dashed var(--color-white);opacity:.5;position:absolute}._lineV_1yhyo_62{border-top:0;border-bottom:0;width:33%;height:100%;top:0;left:33%}._lineH_1yhyo_70{border-left:0;border-right:0;width:100%;height:33%;top:33%;left:0}._pointer_1yhyo_78{box-sizing:border-box;width:14px;height:14px;position:absolute}._pointerTopLeft_1yhyo_84{border-top:3px solid var(--accent-blue);border-left:3px solid var(--accent-blue);cursor:nwse-resize;top:-6px;left:-6px}._pointerTopRight_1yhyo_91{border-top:3px solid var(--accent-blue);border-right:3px solid var(--accent-blue);cursor:nesw-resize;top:-6px;right:-6px}._pointerBottomRight_1yhyo_98{border-bottom:3px solid var(--accent-blue);border-right:3px solid var(--accent-blue);cursor:nwse-resize;bottom:-6px;right:-6px}._pointerBottomLeft_1yhyo_105{border-bottom:3px solid var(--accent-blue);border-left:3px solid var(--accent-blue);cursor:nesw-resize;bottom:-6px;left:-6px}._mobileBorder_1yhyo_112{box-sizing:border-box;border:2px solid var(--accent-blue);position:absolute;inset:0}._mobilePointer_1yhyo_118{background-color:var(--overlay-bg-white);border:3px solid var(--accent-blue);box-sizing:border-box;border-radius:50%;width:32px;height:32px;position:absolute;bottom:-16px;right:-16px}._info_1yhyo_129{height:16px;font-family:var(--font-mono);color:#000;background-color:var(--color-white-fade);box-sizing:border-box;align-items:center;padding:0 6px;font-size:12px;display:flex;position:absolute}._info_1yhyo_129 b{font-weight:600;transform:translateY(1px)}._infoX_1yhyo_146{border-left:solid 2px var(--accent-blue);top:-12px;left:16px}._infoY_1yhyo_151{transform-origin:100%;border-right:solid 2px var(--accent-blue);top:8px;right:calc(100% + 4px);transform:rotate(-90deg)}._infoW_1yhyo_158{border-right:solid 2px var(--accent-blue);bottom:-12px;right:16px}._infoH_1yhyo_163{transform-origin:0%;border-left:solid 2px var(--accent-blue);bottom:8px;left:calc(100% + 4px);transform:rotate(-90deg)}._group_1yhyo_170{flex-shrink:0;width:max-content;display:flex}._group_1yhyo_170 button{color:var(--foreground);border-radius:0}._group_1yhyo_170 button._active_1yhyo_179{color:var(--accent-blue);background:var(--muted)}._group_1yhyo_170 button:not(:first-child){margin-left:-1px}._group_1yhyo_170 button:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._group_1yhyo_170 button:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}._preset_1rbuc_1{background-color:var(--background);border-radius:4px;gap:4px;padding:4px;display:flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #0000001a}._select_1rbuc_14{width:210px}._flip_17ic5_1{background-color:var(--background);border-radius:4px;gap:4px;padding:4px;display:flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #0000001a}._btnH_17ic5_14{border-top-right-radius:0;border-bottom-right-radius:0;width:36px}._btnV_17ic5_20{border-top-left-radius:0;border-bottom-left-radius:0;width:36px;margin-left:-1px}._rotate_gkt07_1{background-color:var(--background);border-radius:4px;gap:4px;padding:4px;display:flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #0000001a}._btnH_gkt07_14{border-top-right-radius:0;border-bottom-right-radius:0;width:36px}._btnV_gkt07_20{border-top-left-radius:0;border-bottom-left-radius:0;width:36px;margin-left:-1px}._frame_15mog_1{box-sizing:border-box;grid-area:frame;width:100%;height:100%;margin:0 auto;position:relative;overflow:hidden}/*$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(`._button_1vpzl_1{cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box;background-color:#0000;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;gap:8px;height:32px;padding:0 8px;font-family:inherit;font-size:14px;font-weight:500;transition:background-color .2s,border-color .2s,opacity .2s;display:inline-flex}._button_1vpzl_1:disabled{pointer-events:none;opacity:.5}._button_1vpzl_1 svg{flex-shrink:0;width:16px;height:16px}._default_1vpzl_35{background-color:var(--primary);color:var(--primary-foreground)}._default_1vpzl_35:hover{opacity:.9}._outline_1vpzl_44{border-color:var(--border);background-color:var(--background);color:var(--foreground)}._outline_1vpzl_44:hover{background-color:var(--secondary)}._ghost_1vpzl_54{color:var(--foreground);padding:0 8px}._ghost_1vpzl_54:hover{background-color:var(--secondary)}._rect_1vpzl_63{width:32px;height:32px}._separator_gp8ff_1{background-color:var(--border);box-sizing:border-box;border:none;flex-shrink:0;display:block}._separator_gp8ff_1[data-orientation=horizontal]{width:100%;height:1px}._separator_gp8ff_1[data-orientation=vertical]{align-self:stretch;width:1px;height:100%;margin:0}._wrapper_1aw0m_1{box-sizing:border-box;width:100%;position:relative}._trigger_1aw0m_6{width:100%;height:32px;color:var(--foreground);background-color:var(--background);border:1px solid var(--border);cursor:pointer;box-sizing:border-box;-webkit-user-select:none;user-select:none;border-radius:4px;outline:none;justify-content:space-between;align-items:center;padding:0 8px 0 10px;font-family:inherit;font-size:14px;transition:border-color .2s;display:flex}._trigger_1aw0m_6:hover,._trigger_1aw0m_6:focus{border-color:var(--muted-foreground)}._triggerArrow_1aw0m_31{width:16px;height:16px;color:var(--muted-foreground);transition:transform .2s}._wrapper_1aw0m_1[data-state=open] ._triggerArrow_1aw0m_31{transform:rotate(180deg)}._content_1aw0m_40{background-color:var(--background);border:1px solid var(--border);z-index:50;box-sizing:border-box;border-radius:4px;width:100%;max-height:282px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;overflow-y:auto;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}._content_1aw0m_40::-webkit-scrollbar{width:4px}._content_1aw0m_40::-webkit-scrollbar-track{background:0 0}._content_1aw0m_40::-webkit-scrollbar-thumb{background-color:var(--border);border-radius:10px}._wrapper_1aw0m_1[data-state=closed] ._content_1aw0m_40{display:none}._groupLabel_1aw0m_74{color:var(--muted-foreground);-webkit-user-select:none;user-select:none;padding:8px 10px;font-size:12px;font-weight:500}._item_1aw0m_81{width:100%;color:var(--foreground);cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;background:0 0;border-radius:4px;justify-content:space-between;align-items:center;padding:4px 10px;display:flex}._item_1aw0m_81:hover{background-color:var(--secondary)}._itemLeft_1aw0m_98{font-size:14px;font-weight:400}._itemAddon_1aw0m_102{align-items:center;gap:8px;display:flex}._itemAddon_1aw0m_102 span{color:var(--muted-foreground);font-size:12px}._itemAddon_1aw0m_102 svg{font-size:14px}._itemAddon_1aw0m_102 b{flex-shrink:0;width:16px;height:16px}._itemRightContainer_1aw0m_122{align-items:center;gap:8px;display:flex}._itemRight_1aw0m_122{color:var(--muted-foreground);font-size:14px}._itemCheck_1aw0m_131{width:16px;height:16px;color:var(--foreground);flex-shrink:0}:host{height:100%;display:block}:host *{box-sizing:border-box}._root_c6gk7_8{width:100%;height:100%;font-size:16px;font-family:var(--font-sans);--font-sans:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, Helvetica, Arial, sans-serif;--font-mono:"Courier New", Courier, monospace;--color-white:#fff;--color-white-fade:color-mix(in srgb, var(--color-white) 40%, transparent);--color-black:#000;--color-red:oklch(63.7% .237 25.331);--color-green:oklch(76.8% .188 151.716);--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(75.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--accent-blue:oklch(60.9% .221 251.687);--accent-blue-light:oklch(96% .02 250);--accent-blue-fade:color-mix(in srgb, var(--accent-blue) 60%, transparent);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--overlay-bg:color-mix(in srgb, var(--color-black) 50%, transparent);--overlay-bg-white:color-mix(in srgb, var(--color-white) 80%, transparent);position:relative}._root_c6gk7_8[data-theme=dark]{--background:oklch(24.5% 0 0);--foreground:oklch(78.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(24.5% 0 0);--muted-foreground:oklch(50% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--accent-blue-light:oklch(25% .06 250);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--overlay-bg:color-mix(in srgb, var(--color-black) 75%, transparent)}._root_c6gk7_8 h1,._root_c6gk7_8 h2,._root_c6gk7_8 h3,._root_c6gk7_8 h4,._root_c6gk7_8 h5,._root_c6gk7_8 h6{color:var(--foreground);margin:0;font-weight:600}._textRed_c6gk7_73{color:var(--color-red)}._bgRed_c6gk7_76{background-color:var(--color-red)}._bgGreen_c6gk7_79{background-color:var(--color-green)}._textGreen_c6gk7_82{color:var(--color-green)}._mask_c6gk7_85{background-color:var(--overlay-bg)}._semibold_c6gk7_88{letter-spacing:.4px;font-weight:600}._bold_c6gk7_92{letter-spacing:.4px;font-weight:700}._system_c6gk7_96{color:var(--muted-foreground);background-color:var(--background);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}._wrapper_c6gk7_106{width:100%;height:100%;min-height:480px;position:relative;overflow:hidden}._grid_c6gk7_113{grid-template:"header header"48px"sidebar frame"minmax(0,1fr)"sidebar infobar"32px/48px 1fr;height:100%;display:grid;position:relative}._grid_c6gk7_113._mobile_c6gk7_124{grid-template-columns:0 1fr}._gridNoInfobar_c6gk7_128{grid-template:"header header"48px"sidebar frame"1fr/48px 1fr;height:100%;display:grid;position:relative}._gridNoInfobar_c6gk7_128._mobile_c6gk7_124{grid-template-columns:0 1fr}._input_kyavx_1{width:100%;height:32px;color:var(--foreground);background-color:var(--background);border:1px solid var(--input);box-sizing:border-box;border-radius:4px;outline:none;padding:0 8px;font-family:inherit;font-size:14px;line-height:normal;transition:border-color .2s,box-shadow .2s;display:block}._input_kyavx_1:hover:not(:disabled):not(:focus){border-color:var(--muted-foreground)}._input_kyavx_1:focus{box-shadow:0 0 0 1px var(--ring)}._input_kyavx_1:disabled{cursor:not-allowed;opacity:.5;background-color:var(--secondary)}._input_kyavx_1::placeholder{color:var(--muted-foreground);opacity:1}._numberClean_kyavx_39::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._numberClean_kyavx_39::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}._numberClean_kyavx_39[type=number]{-moz-appearance:textfield}._container_14vsv_1{position:relative}._legend_14vsv_4{color:var(--muted-foreground);background:var(--background);margin-left:8px;padding:0 4px;font-size:12px;position:absolute;top:-9px}._suffix_14vsv_13{color:var(--muted-foreground);pointer-events:none;-webkit-user-select:none;user-select:none;font-size:14px;position:absolute;bottom:2px;right:8px}._group_1e7jm_1{margin-left:4px;display:flex}._save_1e7jm_6{width:36px;color:var(--color-green);border-top-right-radius:0;border-bottom-right-radius:0}._close_1e7jm_13{width:36px;color:var(--color-red);border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}._tooltip_gohf2_1{position:relative}._container_gohf2_5{gap:0;display:flex}._container_gohf2_5[data-orientation=vertical]{flex-direction:column}._container_gohf2_5 [data-tooltip]{pointer-events:auto}._popup_gohf2_18{top:var(--tooltip-y,0px);left:var(--tooltip-x,0px);background-color:var(--foreground);color:var(--background);z-index:999;pointer-events:none;opacity:var(--tooltip-opacity,0);width:var(--tooltip-w,auto);height:var(--tooltip-h,auto);transition:opacity var(--tooltip-fade,.2s);border-radius:4px;font-size:14px;position:absolute;transform:translate(-50%,-100%);box-shadow:0 2px 8px #0000001a}._popup_gohf2_18:before{content:"";background-color:inherit;width:10px;height:10px;position:absolute;bottom:-3px;left:50%;transform:translate(-50%)rotate(45deg)}._popup_gohf2_18[data-orientation=vertical]{transform:translateY(-50%)}._popup_gohf2_18[data-orientation=vertical]:before{content:"";background-color:inherit;width:10px;height:10px;position:absolute;top:50%;left:-3px;transform:translateY(-50%)rotate(45deg)}._popup_gohf2_18._animated_gohf2_62{transition:left var(--tooltip-slide,.4s), top var(--tooltip-slide,.4s), width var(--tooltip-slide,.4s), height var(--tooltip-slide,.4s), opacity var(--tooltip-fade,.2s)}._mask_gohf2_71{border-radius:inherit;width:100%;height:100%;overflow:hidden}._track_gohf2_78{width:max-content;height:max-content;transform:translateX(calc(-1 * var(--tooltip-offset,0px)));display:flex}._track_gohf2_78[data-orientation=vertical]{transform:translateY(calc(-1 * var(--tooltip-offset,0px)));flex-direction:column}._animated_gohf2_62 ._track_gohf2_78{transition:transform var(--tooltip-slide,.4s)}._title_gohf2_94{min-width:var(--tooltip-item-w,auto);max-width:var(--tooltip-item-w,none);min-height:var(--tooltip-item-h,32px);max-height:var(--tooltip-item-h,none);white-space:nowrap;box-sizing:border-box;flex:none;justify-content:center;align-items:center;padding:0 10px;display:flex}._surfaceTool_h38e6_1{background-color:var(--background);border-radius:4px;gap:4px;padding:4px;display:flex;position:absolute;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #0000001a}._header_1yueu_1{box-sizing:border-box;background-color:var(--background);border-bottom:1px solid var(--border);grid-area:header;justify-content:space-between;align-items:center;height:48px;padding:0 8px;display:flex}._left_1yueu_12{align-items:center;gap:0;display:flex}._sidebarToggle_1yueu_17{border-right:solid 1px var(--border);cursor:pointer;justify-content:center;align-items:center;width:48px;height:48px;transition:all .2s;display:none;position:relative;left:-8px}._sidebarToggle_1yueu_17._mobile_1yueu_29{display:flex}._sidebarIcon_1yueu_33{stroke-width:1.6px;width:18px;height:18px}._tools_1yueu_38{gap:8px;display:flex}._history_1yueu_42{align-items:center;gap:6px;display:flex}._historyText_1yueu_47{color:var(--muted-foreground);font-size:14px;font-family:var(--font-mono)}._sidebar_1j9gh_1{background:var(--background);border-right:1px solid var(--border);z-index:10;grid-area:sidebar;width:48px;position:relative}._sidebar_1j9gh_1._mobile_1j9gh_9{transition:transform .2s ease-out;transform:translate(-110%);box-shadow:0 2px 8px #0000001a}._sidebar_1j9gh_1._mobile_1j9gh_9._open_1j9gh_14{transform:translate(0%)}._wrapper_1j9gh_19{flex-direction:column;display:flex}._item_1j9gh_23{cursor:pointer;justify-content:center;align-items:center;height:48px;transition:all .2s;display:flex;position:relative}._item_1j9gh_23 svg{width:16px;height:16px}._item_1j9gh_23:hover{background-color:var(--accent)}._item_1j9gh_23._selected_1j9gh_41{color:var(--accent-blue);background-color:var(--accent)}._item_1j9gh_23._selected_1j9gh_41:before{content:"";background-color:var(--accent-blue);width:2px;position:absolute;top:0;bottom:0;left:0}._infobar_ofe91_1{background:var(--muted);font-family:var(--font-mono);grid-area:infobar;justify-content:space-between;align-items:center;padding:0 16px;font-size:14px;display:flex}._resize_1sbig_1{align-items:center;padding-top:16px}._toolsLock_1sbig_5{width:12px;height:12px;color:var(--muted-foreground)}._indicatorWrapper_1sbig_10{justify-content:center;width:100%;height:2px;display:flex;position:absolute;top:0;left:0}._indicator_1sbig_10{background:var(--accent-blue);opacity:.6;border-radius:2px;width:30%;height:100%;transition:width .2s}._preview_dvanl_1{box-sizing:border-box;max-width:calc(100% - 32px);max-height:calc(100% - 32px);margin:auto;transition:all .2s linear;position:absolute;inset:0;overflow:hidden}._rotate_dvanl_12{box-sizing:border-box;width:100%;height:100%;transition:all .2s linear;position:absolute;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}._flip_dvanl_24{box-sizing:border-box;transition:all .2s linear;position:absolute;inset:0;overflow:hidden}._image_dvanl_32{max-width:none;max-height:none;transition:all .2s linear;display:block;position:absolute}._wrapper_1co2u_1{box-sizing:border-box;max-width:calc(100% - 32px);max-height:calc(100% - 32px);margin:auto;position:absolute;inset:0}._box_1co2u_9{cursor:move;box-sizing:border-box;-webkit-user-select:none;user-select:none;touch-action:none;border:1px solid var(--color-white-fade);position:absolute}._toolsInfo_1co2u_18{-webkit-user-select:none;user-select:none;min-width:54px;margin-top:-2px;display:inline-block}._toolsInfoLabel_1co2u_25{color:var(--muted-foreground);font-size:12px;line-height:12px}._toolsInfoValue_1co2u_30{color:var(--foreground);font-size:14px;line-height:14px}._linesBox_1co2u_35{pointer-events:none;position:absolute;inset:1px}._line_1co2u_35{border:1px dashed var(--color-white);opacity:.5;position:absolute}._lineV_1co2u_45{border-top:0;border-bottom:0;width:33%;height:100%;top:0;left:33%}._lineH_1co2u_53{border-left:0;border-right:0;width:100%;height:33%;top:33%;left:0}._pointer_1co2u_61{box-sizing:border-box;width:14px;height:14px;position:absolute}._pointerTopLeft_1co2u_67{border-top:3px solid var(--accent-blue);border-left:3px solid var(--accent-blue);cursor:nwse-resize;top:-6px;left:-6px}._pointerTopRight_1co2u_74{border-top:3px solid var(--accent-blue);border-right:3px solid var(--accent-blue);cursor:nesw-resize;top:-6px;right:-6px}._pointerBottomRight_1co2u_81{border-bottom:3px solid var(--accent-blue);border-right:3px solid var(--accent-blue);cursor:nwse-resize;bottom:-6px;right:-6px}._pointerBottomLeft_1co2u_88{border-bottom:3px solid var(--accent-blue);border-left:3px solid var(--accent-blue);cursor:nesw-resize;bottom:-6px;left:-6px}._mobileBorder_1co2u_95{box-sizing:border-box;border:2px solid var(--accent-blue);position:absolute;inset:0}._mobilePointer_1co2u_101{background-color:var(--overlay-bg-white);border:3px solid var(--accent-blue);box-sizing:border-box;border-radius:50%;width:32px;height:32px;position:absolute;bottom:-16px;right:-16px}._info_1co2u_112{height:16px;font-family:var(--font-mono);color:#000;background-color:var(--color-white-fade);box-sizing:border-box;align-items:center;padding:0 6px;font-size:12px;display:flex;position:absolute}._info_1co2u_112 b{font-weight:600;transform:translateY(1px)}._infoX_1co2u_129{border-left:solid 2px var(--accent-blue);top:-12px;left:16px}._infoY_1co2u_134{transform-origin:100%;border-right:solid 2px var(--accent-blue);top:8px;right:calc(100% + 4px);transform:rotate(-90deg)}._infoW_1co2u_141{border-right:solid 2px var(--accent-blue);bottom:-12px;right:16px}._infoH_1co2u_146{transform-origin:0%;border-left:solid 2px var(--accent-blue);bottom:8px;left:calc(100% + 4px);transform:rotate(-90deg)}._group_1co2u_153{flex-shrink:0;width:max-content;display:flex}._group_1co2u_153 button{color:var(--foreground);border-radius:0}._group_1co2u_153 button._active_1co2u_162{color:var(--accent-blue);background:var(--muted)}._group_1co2u_153 button:not(:first-child){margin-left:-1px}._group_1co2u_153 button:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._group_1co2u_153 button:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}._select_1ip4k_1{width:210px}._btnH_15adi_1{border-top-right-radius:0;border-bottom-right-radius:0;width:36px}._btnV_15adi_7{border-top-left-radius:0;border-bottom-left-radius:0;width:36px;margin-left:-1px}._frame_15mog_1{box-sizing:border-box;grid-area:frame;width:100%;height:100%;margin:0 auto;position:relative;overflow:hidden}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  import { Children as e, createContext as t, forwardRef as n, isValidElement as r, useCallback as i, useContext as a, useEffect as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
3
3
  //#region \0rolldown/runtime.js
4
4
  var d = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), f = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
@@ -136,7 +136,7 @@ var d = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
136
136
  }
137
137
  function c(e, t) {
138
138
  function n() {
139
- M || (M = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
139
+ ne || (ne = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
140
140
  }
141
141
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
142
142
  get: n,
@@ -145,7 +145,7 @@ var d = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
145
145
  }
146
146
  function l() {
147
147
  var e = t(this.type);
148
- return ne[e] || (ne[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
148
+ return re[e] || (re[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
149
149
  }
150
150
  function u(e, t, n, r, i, a) {
151
151
  var o = n.ref;
@@ -195,7 +195,7 @@ var d = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
195
195
  var m = Object.keys(n).filter(function(e) {
196
196
  return e !== "key";
197
197
  });
198
- o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", ie[f + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, m, f), ie[f + o] = !0);
198
+ o = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", ae[f + o] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", o, f, m, f), ae[f + o] = !0);
199
199
  }
200
200
  if (f = null, i !== void 0 && (r(i), f = "" + i), s(n) && (r(n.key), f = "" + n.key), "key" in n) for (var h in i = {}, n) h !== "key" && (i[h] = n[h]);
201
201
  else i = n;
@@ -213,13 +213,13 @@ var d = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
213
213
  h = { react_stack_bottom_frame: function(e) {
214
214
  return e();
215
215
  } };
216
- var M, ne = {}, re = h.react_stack_bottom_frame.bind(h, o)(), N = j(i(o)), ie = {};
216
+ var ne, re = {}, ie = h.react_stack_bottom_frame.bind(h, o)(), M = j(i(o)), ae = {};
217
217
  e.Fragment = v, e.jsx = function(e, t, n) {
218
218
  var r = 1e4 > A.recentlyCreatedOwnerStacks++;
219
- return d(e, t, n, !1, r ? Error("react-stack-top-frame") : re, r ? j(i(e)) : N);
219
+ return d(e, t, n, !1, r ? Error("react-stack-top-frame") : ie, r ? j(i(e)) : M);
220
220
  }, e.jsxs = function(e, t, n) {
221
221
  var r = 1e4 > A.recentlyCreatedOwnerStacks++;
222
- return d(e, t, n, !0, r ? Error("react-stack-top-frame") : re, r ? j(i(e)) : N);
222
+ return d(e, t, n, !0, r ? Error("react-stack-top-frame") : ie, r ? j(i(e)) : M);
223
223
  };
224
224
  })();
225
225
  })), b = (/* @__PURE__ */ d(((e, t) => {
@@ -401,23 +401,23 @@ var k = {
401
401
  ...k,
402
402
  ...e,
403
403
  children: [/* @__PURE__ */ (0, b.jsx)("path", { d: "m12 19-7-7 7-7" }), /* @__PURE__ */ (0, b.jsx)("path", { d: "M19 12H5" })]
404
- }), M = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
404
+ }), ne = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
405
405
  ...k,
406
406
  ...e,
407
407
  children: /* @__PURE__ */ (0, b.jsx)("path", { d: "m6 9 6 6 6-6" })
408
- }), ne = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
408
+ }), re = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
409
409
  ...k,
410
410
  ...e,
411
411
  children: [/* @__PURE__ */ (0, b.jsx)("path", { d: "M3 7v6h6" }), /* @__PURE__ */ (0, b.jsx)("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })]
412
- }), re = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
412
+ }), ie = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
413
413
  ...k,
414
414
  ...e,
415
415
  children: [/* @__PURE__ */ (0, b.jsx)("path", { d: "M21 7v6h-6" }), /* @__PURE__ */ (0, b.jsx)("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })]
416
- }), N = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
416
+ }), M = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
417
417
  ...k,
418
418
  ...e,
419
419
  children: [/* @__PURE__ */ (0, b.jsx)("path", { d: "M6 2v14a2 2 0 0 0 2 2h14" }), /* @__PURE__ */ (0, b.jsx)("path", { d: "M18 22V8a2 2 0 0 0-2-2H2" })]
420
- }), ie = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
420
+ }), ae = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
421
421
  ...k,
422
422
  ...e,
423
423
  children: [
@@ -436,7 +436,7 @@ var k = {
436
436
  }),
437
437
  /* @__PURE__ */ (0, b.jsx)("path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" })
438
438
  ]
439
- }), ae = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
439
+ }), oe = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
440
440
  ...k,
441
441
  ...e,
442
442
  children: /* @__PURE__ */ (0, b.jsx)("rect", {
@@ -446,7 +446,7 @@ var k = {
446
446
  y: "3",
447
447
  rx: "2"
448
448
  })
449
- }), oe = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
449
+ }), se = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
450
450
  ...k,
451
451
  ...e,
452
452
  children: /* @__PURE__ */ (0, b.jsx)("rect", {
@@ -456,7 +456,7 @@ var k = {
456
456
  y: "6",
457
457
  rx: "2"
458
458
  })
459
- }), se = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
459
+ }), ce = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
460
460
  ...k,
461
461
  ...e,
462
462
  children: /* @__PURE__ */ (0, b.jsx)("rect", {
@@ -466,7 +466,7 @@ var k = {
466
466
  y: "4.5",
467
467
  rx: "2"
468
468
  })
469
- }), ce = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
469
+ }), le = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
470
470
  ...k,
471
471
  ...e,
472
472
  children: [
@@ -482,7 +482,7 @@ var k = {
482
482
  rx: "1"
483
483
  })
484
484
  ]
485
- }), le = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
485
+ }), ue = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
486
486
  ...k,
487
487
  ...e,
488
488
  children: [
@@ -493,7 +493,7 @@ var k = {
493
493
  /* @__PURE__ */ (0, b.jsx)("path", { d: "M12 8v2" }),
494
494
  /* @__PURE__ */ (0, b.jsx)("path", { d: "M12 2v2" })
495
495
  ]
496
- }), ue = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
496
+ }), de = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
497
497
  ...k,
498
498
  ...e,
499
499
  children: [
@@ -504,15 +504,15 @@ var k = {
504
504
  /* @__PURE__ */ (0, b.jsx)("path", { d: "M16 12h-2" }),
505
505
  /* @__PURE__ */ (0, b.jsx)("path", { d: "M22 12h-2" })
506
506
  ]
507
- }), de = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
507
+ }), fe = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
508
508
  ...k,
509
509
  ...e,
510
510
  children: [/* @__PURE__ */ (0, b.jsx)("path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8" }), /* @__PURE__ */ (0, b.jsx)("path", { d: "M21 3v5h-5" })]
511
- }), fe = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
511
+ }), pe = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
512
512
  ...k,
513
513
  ...e,
514
514
  children: [/* @__PURE__ */ (0, b.jsx)("path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }), /* @__PURE__ */ (0, b.jsx)("path", { d: "M3 3v5h5" })]
515
- }), pe = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
515
+ }), me = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
516
516
  ...k,
517
517
  ...e,
518
518
  children: [
@@ -535,7 +535,7 @@ var k = {
535
535
  /* @__PURE__ */ (0, b.jsx)("path", { d: "M14 15h7" }),
536
536
  /* @__PURE__ */ (0, b.jsx)("path", { d: "M14 20h7" })
537
537
  ]
538
- }), me = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
538
+ }), he = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
539
539
  ...k,
540
540
  ...e,
541
541
  children: [
@@ -549,7 +549,7 @@ var k = {
549
549
  /* @__PURE__ */ (0, b.jsx)("path", { d: "M9 3v18" }),
550
550
  /* @__PURE__ */ (0, b.jsx)("path", { d: "m14 9 3 3-3 3" })
551
551
  ]
552
- }), he = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
552
+ }), ge = (e) => /* @__PURE__ */ (0, b.jsxs)("svg", {
553
553
  ...k,
554
554
  ...e,
555
555
  children: [
@@ -563,7 +563,7 @@ var k = {
563
563
  /* @__PURE__ */ (0, b.jsx)("path", { d: "M9 3v18" }),
564
564
  /* @__PURE__ */ (0, b.jsx)("path", { d: "m16 15-3-3 3-3" })
565
565
  ]
566
- }), ge = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
566
+ }), _e = (e) => /* @__PURE__ */ (0, b.jsx)("svg", {
567
567
  ...k,
568
568
  ...e,
569
569
  children: /* @__PURE__ */ (0, b.jsx)("path", {
@@ -578,31 +578,31 @@ var k = {
578
578
  repeatCount: "indefinite"
579
579
  })
580
580
  })
581
- }), P = () => {
581
+ }), N = () => {
582
582
  let e = a(_);
583
583
  if (!e) throw Error("usePixediContext must be used within an PixediProvider");
584
584
  return e;
585
- }, F = {
585
+ }, P = {
586
586
  button: "_button_1vpzl_1",
587
587
  default: "_default_1vpzl_35",
588
588
  outline: "_outline_1vpzl_44",
589
589
  ghost: "_ghost_1vpzl_54",
590
590
  rect: "_rect_1vpzl_63"
591
- }, I = ({ className: e = "", variant: t = "default", children: n, ref: r, ...i }) => /* @__PURE__ */ (0, b.jsx)("button", {
591
+ }, F = ({ className: e = "", variant: t = "default", children: n, ref: r, ...i }) => /* @__PURE__ */ (0, b.jsx)("button", {
592
592
  ref: r,
593
- className: `${F.button} ${F[t]} ${e}`.trim(),
593
+ className: `${P.button} ${P[t]} ${e}`.trim(),
594
594
  ...i,
595
595
  children: n
596
- }), _e = { separator: "_separator_gp8ff_1" }, ve = n(({ className: e = "", orientation: t = "horizontal", ...n }, r) => /* @__PURE__ */ (0, b.jsx)("hr", {
596
+ }), ve = { separator: "_separator_gp8ff_1" }, ye = n(({ className: e = "", orientation: t = "horizontal", ...n }, r) => /* @__PURE__ */ (0, b.jsx)("hr", {
597
597
  ref: r,
598
598
  role: "separator",
599
599
  "aria-orientation": t,
600
600
  "data-orientation": t,
601
- className: `${_e.separator} ${e}`.trim(),
601
+ className: `${ve.separator} ${e}`.trim(),
602
602
  ...n
603
603
  }));
604
- ve.displayName = "Separator";
605
- var L = {
604
+ ye.displayName = "Separator";
605
+ var I = {
606
606
  wrapper: "_wrapper_1aw0m_1",
607
607
  trigger: "_trigger_1aw0m_6",
608
608
  triggerArrow: "_triggerArrow_1aw0m_31",
@@ -614,7 +614,7 @@ var L = {
614
614
  itemRightContainer: "_itemRightContainer_1aw0m_122",
615
615
  itemRight: "_itemRight_1aw0m_122",
616
616
  itemCheck: "_itemCheck_1aw0m_131"
617
- }, R = {
617
+ }, L = {
618
618
  root: "_root_c6gk7_8",
619
619
  textRed: "_textRed_c6gk7_73",
620
620
  bgRed: "_bgRed_c6gk7_76",
@@ -628,7 +628,7 @@ var L = {
628
628
  grid: "_grid_c6gk7_113",
629
629
  mobile: "_mobile_c6gk7_124",
630
630
  gridNoInfobar: "_gridNoInfobar_c6gk7_128"
631
- }, ye = (e) => {
631
+ }, be = (e) => {
632
632
  let t = 0, n = window.innerHeight;
633
633
  for (let r = e.parentElement; r; r = r.parentElement) {
634
634
  let { overflow: e, overflowY: i } = getComputedStyle(r);
@@ -640,7 +640,7 @@ var L = {
640
640
  top: t,
641
641
  bottom: n
642
642
  };
643
- }, be = ({ items: e, value: t, onChange: n, placeholder: r = "Select an option", className: i = "", renderOption: a }) => {
643
+ }, xe = ({ items: e, value: t, onChange: n, placeholder: r = "Select an option", className: i = "", renderOption: a }) => {
644
644
  let [d, f] = u(!1), p = l(null), m = l(null), h = l(null), g = c(() => {
645
645
  let t = (e) => e.reduce((e, n) => n.options ? [...e, ...t(n.options.map((e) => ({
646
646
  ...e,
@@ -657,7 +657,7 @@ var L = {
657
657
  let e = p.current, t = m.current, n = h.current;
658
658
  if (!d || !e || !t || !n) return;
659
659
  n.style.removeProperty("top"), n.style.removeProperty("max-height");
660
- let { top: r, bottom: i } = ye(e), a = e.getBoundingClientRect().top, o = t.getBoundingClientRect(), s = n.offsetHeight, c = i - 8 - o.bottom - 4, l = o.top - 4 - r - 8, u = o.bottom + 4, f = 0;
660
+ let { top: r, bottom: i } = be(e), a = e.getBoundingClientRect().top, o = t.getBoundingClientRect(), s = n.offsetHeight, c = i - 8 - o.bottom - 4, l = o.top - 4 - r - 8, u = o.bottom + 4, f = 0;
661
661
  s > c && (s <= l ? u = o.top - 4 - s : l > c ? (f = Math.max(l, 0), u = o.top - 4 - f) : f = Math.max(c, 0)), f && (n.style.maxHeight = `${f}px`), n.style.top = `${u - a}px`;
662
662
  }, [d, e]);
663
663
  let _ = (e) => {
@@ -665,99 +665,99 @@ var L = {
665
665
  };
666
666
  return /* @__PURE__ */ (0, b.jsxs)("div", {
667
667
  ref: p,
668
- className: `${L.wrapper} ${i}`.trim(),
668
+ className: `${I.wrapper} ${i}`.trim(),
669
669
  "data-state": d ? "open" : "closed",
670
670
  children: [/* @__PURE__ */ (0, b.jsxs)("button", {
671
671
  ref: m,
672
672
  type: "button",
673
- className: L.trigger,
673
+ className: I.trigger,
674
674
  onClick: () => f(!d),
675
- children: [/* @__PURE__ */ (0, b.jsx)("span", { children: g ? g.fullName : r }), /* @__PURE__ */ (0, b.jsx)(M, { className: L.triggerArrow })]
675
+ children: [/* @__PURE__ */ (0, b.jsx)("span", { children: g ? g.fullName : r }), /* @__PURE__ */ (0, b.jsx)(ne, { className: I.triggerArrow })]
676
676
  }), /* @__PURE__ */ (0, b.jsx)("div", {
677
677
  ref: h,
678
- className: L.content,
678
+ className: I.content,
679
679
  children: e.map((e, n) => e.options ? /* @__PURE__ */ (0, b.jsxs)("div", { children: [/* @__PURE__ */ (0, b.jsx)("div", {
680
- className: `${L.groupLabel} ${R.semibold}`,
680
+ className: `${I.groupLabel} ${L.semibold}`,
681
681
  children: e.label
682
682
  }), e.options.map((e) => /* @__PURE__ */ (0, b.jsxs)("div", {
683
- className: L.item,
683
+ className: I.item,
684
684
  onClick: () => _(e.value),
685
685
  children: [a ? a(e) : /* @__PURE__ */ (0, b.jsx)("span", {
686
- className: L.itemLeft,
686
+ className: I.itemLeft,
687
687
  children: e.label
688
688
  }), /* @__PURE__ */ (0, b.jsxs)("div", {
689
- className: L.itemAddon,
689
+ className: I.itemAddon,
690
690
  children: [
691
691
  e.rightLabel && /* @__PURE__ */ (0, b.jsx)("span", { children: e.rightLabel }),
692
- t === e.value && /* @__PURE__ */ (0, b.jsx)(A, { className: L.itemCheck }),
692
+ t === e.value && /* @__PURE__ */ (0, b.jsx)(A, { className: I.itemCheck }),
693
693
  t !== e.value && /* @__PURE__ */ (0, b.jsx)("b", {})
694
694
  ]
695
695
  })]
696
696
  }, e.value))] }, `group-${n}`) : /* @__PURE__ */ (0, b.jsxs)("div", {
697
- className: L.item,
697
+ className: I.item,
698
698
  onClick: () => _(e.value),
699
699
  children: [a ? a(e) : /* @__PURE__ */ (0, b.jsx)("span", {
700
- className: L.itemLeft,
700
+ className: I.itemLeft,
701
701
  children: e.label
702
- }), t === e.value && /* @__PURE__ */ (0, b.jsx)(A, { className: L.itemCheck })]
702
+ }), t === e.value && /* @__PURE__ */ (0, b.jsx)(A, { className: I.itemCheck })]
703
703
  }, e.value))
704
704
  })]
705
705
  });
706
- }, xe = {
706
+ }, Se = {
707
707
  input: "_input_kyavx_1",
708
708
  numberClean: "_numberClean_kyavx_39"
709
- }, Se = ({ className: e = "", type: t = "text", hideArrows: n = !0, ref: r, ...i }) => {
710
- let a = t === "number" && n ? xe.numberClean : "";
709
+ }, Ce = ({ className: e = "", type: t = "text", hideArrows: n = !0, ref: r, ...i }) => {
710
+ let a = t === "number" && n ? Se.numberClean : "";
711
711
  return /* @__PURE__ */ (0, b.jsx)("input", {
712
712
  ref: r,
713
713
  type: t,
714
- className: `${xe.input} ${a} ${e}`.trim(),
714
+ className: `${Se.input} ${a} ${e}`.trim(),
715
715
  ...i
716
716
  });
717
- }, Ce = {
717
+ }, we = {
718
718
  container: "_container_14vsv_1",
719
719
  legend: "_legend_14vsv_4",
720
720
  suffix: "_suffix_14vsv_13"
721
- }, we = ({ label: e, className: t = "", style: n, ref: r, ...i }) => /* @__PURE__ */ (0, b.jsxs)("div", {
722
- className: `${Ce.container} ${t}`.trim(),
721
+ }, Te = ({ label: e, className: t = "", style: n, ref: r, ...i }) => /* @__PURE__ */ (0, b.jsxs)("div", {
722
+ className: `${we.container} ${t}`.trim(),
723
723
  style: n,
724
724
  children: [
725
725
  /* @__PURE__ */ (0, b.jsx)("span", {
726
- className: Ce.legend,
726
+ className: we.legend,
727
727
  children: e
728
728
  }),
729
- /* @__PURE__ */ (0, b.jsx)(Se, {
729
+ /* @__PURE__ */ (0, b.jsx)(Ce, {
730
730
  ref: r,
731
731
  type: "number",
732
732
  ...i
733
733
  }),
734
734
  /* @__PURE__ */ (0, b.jsx)("span", {
735
- className: Ce.suffix,
735
+ className: we.suffix,
736
736
  children: "px"
737
737
  })
738
738
  ]
739
- }), Te = {
739
+ }), Ee = {
740
740
  group: "_group_1e7jm_1",
741
741
  save: "_save_1e7jm_6",
742
742
  close: "_close_1e7jm_13"
743
- }, z = ({ onSave: e, onClose: t, saving: n = !1, disabled: r = !1 }) => /* @__PURE__ */ (0, b.jsxs)("div", {
744
- className: Te.group,
745
- children: [/* @__PURE__ */ (0, b.jsx)(I, {
743
+ }, R = ({ onSave: e, onClose: t, saving: n = !1, disabled: r = !1 }) => /* @__PURE__ */ (0, b.jsxs)("div", {
744
+ className: Ee.group,
745
+ children: [/* @__PURE__ */ (0, b.jsx)(F, {
746
746
  variant: "outline",
747
- className: Te.save,
747
+ className: Ee.save,
748
748
  "aria-label": "Save",
749
749
  disabled: r || n,
750
750
  onClick: e,
751
- children: n ? /* @__PURE__ */ (0, b.jsx)(ge, {}) : /* @__PURE__ */ (0, b.jsx)(A, {})
752
- }), /* @__PURE__ */ (0, b.jsx)(I, {
751
+ children: n ? /* @__PURE__ */ (0, b.jsx)(_e, {}) : /* @__PURE__ */ (0, b.jsx)(A, {})
752
+ }), /* @__PURE__ */ (0, b.jsx)(F, {
753
753
  variant: "outline",
754
- className: Te.close,
754
+ className: Ee.close,
755
755
  "aria-label": "Close",
756
756
  disabled: n,
757
757
  onClick: t,
758
758
  children: /* @__PURE__ */ (0, b.jsx)(ee, {})
759
759
  })]
760
- }), B = {
760
+ }), z = {
761
761
  tooltip: "_tooltip_gohf2_1",
762
762
  container: "_container_gohf2_5",
763
763
  popup: "_popup_gohf2_18",
@@ -765,7 +765,7 @@ var L = {
765
765
  mask: "_mask_gohf2_71",
766
766
  track: "_track_gohf2_78",
767
767
  title: "_title_gohf2_94"
768
- }, Ee = (t, n = "horizontal") => {
768
+ }, De = (t, n = "horizontal") => {
769
769
  let [i, a] = u(null), [d, f] = u(null), [p, m] = u(!1), [h, g] = u(!1), [_, v] = u([]), y = l(null), b = l(null), x = l([]), S = n === "vertical", C = c(() => {
770
770
  let n = [];
771
771
  return e.forEach(t, (e) => {
@@ -837,41 +837,45 @@ var L = {
837
837
  handleMouseMove: E,
838
838
  handleMouseLeave: D
839
839
  };
840
- }, V = ({ children: e, orientation: t = "horizontal", className: n = "", classNameTitle: r = "" }) => {
841
- let { containerRef: i, trackRef: a, titleRefs: o, titles: s, isVertical: c, isAnimated: l, cssVars: u, handleMouseMove: d, handleMouseLeave: f } = Ee(e, t);
840
+ }, B = ({ children: e, orientation: t = "horizontal", className: n = "", classNameTitle: r = "" }) => {
841
+ let { containerRef: i, trackRef: a, titleRefs: o, titles: s, isVertical: c, isAnimated: l, cssVars: u, handleMouseMove: d, handleMouseLeave: f } = De(e, t);
842
842
  return /* @__PURE__ */ (0, b.jsxs)("div", {
843
843
  ref: i,
844
844
  onMouseMove: d,
845
845
  onMouseLeave: f,
846
846
  onBlur: f,
847
- className: B.tooltip,
847
+ className: z.tooltip,
848
848
  style: u,
849
849
  children: [/* @__PURE__ */ (0, b.jsx)("div", {
850
850
  "data-orientation": c ? "vertical" : "horizontal",
851
- className: B.container,
851
+ className: z.container,
852
852
  children: e
853
853
  }), /* @__PURE__ */ (0, b.jsx)("div", {
854
854
  "aria-hidden": "true",
855
855
  "data-orientation": c ? "vertical" : "horizontal",
856
- className: `${B.popup} ${l ? B.animated : ""} ${n}`,
856
+ className: `${z.popup} ${l ? z.animated : ""} ${n}`,
857
857
  children: /* @__PURE__ */ (0, b.jsx)("div", {
858
- className: B.mask,
858
+ className: z.mask,
859
859
  children: /* @__PURE__ */ (0, b.jsx)("div", {
860
860
  ref: a,
861
861
  "data-orientation": c ? "vertical" : "horizontal",
862
- className: B.track,
862
+ className: z.track,
863
863
  children: s.map((e, t) => /* @__PURE__ */ (0, b.jsx)("div", {
864
864
  ref: (e) => {
865
865
  o.current[t] = e;
866
866
  },
867
- className: `${B.title} ${r}`,
867
+ className: `${z.title} ${r}`,
868
868
  children: e
869
869
  }, t))
870
870
  })
871
871
  })
872
872
  })]
873
873
  });
874
- }, De = 1920, Oe = .85, ke = [
874
+ }, Oe = { surfaceTool: "_surfaceTool_h38e6_1" }, V = ({ children: e, className: t = "", ref: n }) => /* @__PURE__ */ (0, b.jsx)("div", {
875
+ ref: n,
876
+ className: `${Oe.surfaceTool} ${t}`,
877
+ children: e
878
+ }), ke = 1920, Ae = .85, je = [
875
879
  {
876
880
  label: "Facebook",
877
881
  value: "facebook",
@@ -974,7 +978,7 @@ var L = {
974
978
  }
975
979
  ]
976
980
  }
977
- ], H = 32, Ae = (e, t, n, r, i, a, o, s, c, l) => {
981
+ ], H = 32, Me = (e, t, n, r, i, a, o, s, c, l) => {
978
982
  let { x: u, y: d, w: f, h: p } = c;
979
983
  if (e) {
980
984
  let e = o - c.w - c.x;
@@ -997,7 +1001,7 @@ var L = {
997
1001
  w: f,
998
1002
  h: p
999
1003
  };
1000
- }, je = (e, t, n, r, i, a, o, s, c, l) => {
1004
+ }, Ne = (e, t, n, r, i, a, o, s, c, l) => {
1001
1005
  let { x: u } = c, { y: d, w: f, h: p } = c;
1002
1006
  if (e) {
1003
1007
  f += i - n, f + u > o && (f = o - u), f < H && (f = H);
@@ -1019,7 +1023,7 @@ var L = {
1019
1023
  w: f,
1020
1024
  h: p
1021
1025
  };
1022
- }, Me = (e, t, n, r, i, a, o, s, c, l) => {
1026
+ }, Pe = (e, t, n, r, i, a, o, s, c, l) => {
1023
1027
  let { y: u } = c, { x: d, w: f, h: p } = c;
1024
1028
  if (e) {
1025
1029
  p += a - r, p + u > s && (p = s - u), p < H && (p = H);
@@ -1041,7 +1045,7 @@ var L = {
1041
1045
  w: f,
1042
1046
  h: p
1043
1047
  };
1044
- }, Ne = (e, t, n, r, i, a, o, s, c, l) => {
1048
+ }, Fe = (e, t, n, r, i, a, o, s, c, l) => {
1045
1049
  let { x: u, y: d } = c, { w: f, h: p } = c;
1046
1050
  if (e) f += i - n, f + u > o && (f = o - u), f < H && (f = H), p += a - r, p + d > s && (p = s - d), p < H && (p = H);
1047
1051
  else {
@@ -1060,7 +1064,7 @@ var L = {
1060
1064
  w: f,
1061
1065
  h: p
1062
1066
  };
1063
- }, Pe = (e, t, n, r, i, a, o, s, c) => {
1067
+ }, Ie = (e, t, n, r, i, a, o, s, c) => {
1064
1068
  let l = e === "tl" || e === "bl", u = e === "tl" || e === "tr", d = c.x + c.w, f = c.y + c.h, p = i - n, m = a - r, h = t >= 1 ? c.w + (l ? -p : p) : (c.h + (u ? -m : m)) * t, g = l ? d : o - c.x, _ = u ? f : s - c.y, v = Math.min(g, _ * t), y = Math.max(H, H * t), b = Math.min(Math.max(h, y), v), x = b / t;
1065
1069
  return {
1066
1070
  x: l ? d - b : c.x,
@@ -1068,12 +1072,12 @@ var L = {
1068
1072
  w: b,
1069
1073
  h: x
1070
1074
  };
1071
- }, Fe = (e, t, n, r, i, a, o, s, c, l, u) => t ? e === "tl" ? Ae(t, n, r, i, a, o, s, c, l, u) : e === "tr" ? je(t, n, r, i, a, o, s, c, l, u) : e === "bl" ? Me(t, n, r, i, a, o, s, c, l, u) : e === "br" ? Ne(t, n, r, i, a, o, s, c, l, u) : {
1075
+ }, Le = (e, t, n, r, i, a, o, s, c, l, u) => t ? e === "tl" ? Me(t, n, r, i, a, o, s, c, l, u) : e === "tr" ? Ne(t, n, r, i, a, o, s, c, l, u) : e === "bl" ? Pe(t, n, r, i, a, o, s, c, l, u) : e === "br" ? Fe(t, n, r, i, a, o, s, c, l, u) : {
1072
1076
  x: 0,
1073
1077
  y: 0,
1074
1078
  w: 0,
1075
1079
  h: 0
1076
- } : Pe(e, n, r, i, a, o, s, c, l), U = (e, t, n) => {
1080
+ } : Ie(e, n, r, i, a, o, s, c, l), U = (e, t, n) => {
1077
1081
  let r = .12, i = t / n, a = 0, o = 0;
1078
1082
  e === 1 && (a = (i > 1 ? n : t) * (1 - r * 2), o = a), e > 1 && (i > e ? (o = n * (1 - r * 2), a = o * e) : (a = t * (1 - r * 2), o = a / e)), e < 1 && (i > e ? (o = n * (1 - r * 2), a = o * e) : (a = t * (1 - r * 2), o = a / e));
1079
1083
  let s = a / t * 100, c = o / n * 100, l = (t - a) / 2 / t * 100, u = (n - o) / 2 / n * 100;
@@ -1087,7 +1091,7 @@ var L = {
1087
1091
  wP: Math.round(s / 100 * t),
1088
1092
  hP: Math.round(c / 100 * n)
1089
1093
  };
1090
- }, Ie = (e, t, n, r) => {
1094
+ }, Re = (e, t, n, r) => {
1091
1095
  let i = e.w / 100 * n, a = e.h / 100 * r;
1092
1096
  t >= 1 ? a = i / t : i = a * t;
1093
1097
  let o = i / n * 100, s = a / r * 100, c = Math.max(o / (100 - e.x), s / (100 - e.y), 1);
@@ -1096,21 +1100,21 @@ var L = {
1096
1100
  w: o,
1097
1101
  h: s
1098
1102
  };
1099
- }, W = (e) => Math.abs(Math.round(e / 90)) % 2 == 1, Le = (e, t, n, r) => W(n) === W(r) ? {
1103
+ }, W = (e) => Math.abs(Math.round(e / 90)) % 2 == 1, ze = (e, t, n, r) => W(n) === W(r) ? {
1100
1104
  width: e,
1101
1105
  height: t
1102
1106
  } : {
1103
1107
  width: t,
1104
1108
  height: e
1105
- }, Re = async (e) => {
1106
- let { width: t, height: n } = e, r = Math.min(1, De / Math.max(t, n)), i = Math.round(t * r), a = Math.round(n * r), o = new OffscreenCanvas(i, a), s = o.getContext("2d");
1109
+ }, Be = async (e) => {
1110
+ let { width: t, height: n } = e, r = Math.min(1, ke / Math.max(t, n)), i = Math.round(t * r), a = Math.round(n * r), o = new OffscreenCanvas(i, a), s = o.getContext("2d");
1107
1111
  if (!s) throw Error("Failed to get 2D context for preview canvas");
1108
1112
  return s.drawImage(e, 0, 0, i, a), o.convertToBlob({
1109
1113
  type: "image/webp",
1110
- quality: Oe
1114
+ quality: Ae
1111
1115
  });
1112
1116
  };
1113
- function ze(e) {
1117
+ function Ve(e) {
1114
1118
  let t = new OffscreenCanvas(e.width, e.height), n = t.getContext("2d");
1115
1119
  if (!n) throw Error("Failed to create 2D context for canvas.");
1116
1120
  n.drawImage(e, 0, 0);
@@ -1124,14 +1128,14 @@ function ze(e) {
1124
1128
  }
1125
1129
  //#endregion
1126
1130
  //#region src/shared/components/Pixedi/utils/imageProcessor.ts
1127
- var Be = (e) => new Promise((t, n) => {
1131
+ var He = (e) => new Promise((t, n) => {
1128
1132
  let r = new FileReader();
1129
1133
  r.onloadend = () => {
1130
1134
  let e = r.result;
1131
1135
  typeof e == "string" ? t(e) : n(/* @__PURE__ */ Error("Failed to read blob as base64"));
1132
1136
  }, r.onerror = () => n(r.error ?? /* @__PURE__ */ Error("FileReader error")), r.readAsDataURL(e);
1133
1137
  });
1134
- async function Ve(e) {
1138
+ async function Ue(e) {
1135
1139
  let t = await createImageBitmap(e), n = e.type || "image/png", r = n === "image/gif" ? "image/png" : n, i = document.createElement("canvas"), a = i.getContext("2d", { alpha: !0 });
1136
1140
  i.width = t.width, i.height = t.height, a?.drawImage(t, 0, 0), t.close();
1137
1141
  let o = () => {
@@ -1166,7 +1170,7 @@ async function Ve(e) {
1166
1170
  }, a, t) : i.toBlob((t) => {
1167
1171
  t ? e(t) : o(/* @__PURE__ */ Error("Failed to encode image as image/png"));
1168
1172
  }, "image/png");
1169
- }), s = await createImageBitmap(o), c = await Re(s), { width: l, height: u } = s, d = ze(s);
1173
+ }), s = await createImageBitmap(o), c = await Be(s), { width: l, height: u } = s, d = Ve(s);
1170
1174
  return s.close(), {
1171
1175
  newBlob: o,
1172
1176
  previewBlob: c,
@@ -1180,17 +1184,17 @@ async function Ve(e) {
1180
1184
  }
1181
1185
  //#endregion
1182
1186
  //#region src/shared/components/Pixedi/utils/preview.ts
1183
- var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0][0] + e[0][1] * t[1][0], e[0][0] * t[0][1] + e[0][1] * t[1][1]], [e[1][0] * t[0][0] + e[1][1] * t[1][0], e[1][0] * t[0][1] + e[1][1] * t[1][1]]], Ue = (e) => (Math.round(e / 90) % 4 + 4) % 4 * 90, We = (e) => {
1184
- switch (Ue(e)) {
1187
+ var G = (e, t, n) => Math.max(t, Math.min(n, e)), We = (e, t) => [[e[0][0] * t[0][0] + e[0][1] * t[1][0], e[0][0] * t[0][1] + e[0][1] * t[1][1]], [e[1][0] * t[0][0] + e[1][1] * t[1][0], e[1][0] * t[0][1] + e[1][1] * t[1][1]]], Ge = (e) => (Math.round(e / 90) % 4 + 4) % 4 * 90, Ke = (e) => {
1188
+ switch (Ge(e)) {
1185
1189
  case 90: return [[0, -1], [1, 0]];
1186
1190
  case 180: return [[-1, 0], [0, -1]];
1187
1191
  case 270: return [[0, 1], [-1, 0]];
1188
1192
  default: return [[1, 0], [0, 1]];
1189
1193
  }
1190
- }, Ge = (e, t) => [[e ? -1 : 1, 0], [0, t ? -1 : 1]], Ke = (e, t, n) => He(Ge(t, n), We(-e)), qe = (e) => [+(e[0][0] < 0 || e[0][1] < 0), +(e[1][0] < 0 || e[1][1] < 0)], K = (e, t, n) => {
1191
- let r = qe(e);
1194
+ }, qe = (e, t) => [[e ? -1 : 1, 0], [0, t ? -1 : 1]], Je = (e, t, n) => We(qe(t, n), Ke(-e)), Ye = (e) => [+(e[0][0] < 0 || e[0][1] < 0), +(e[1][0] < 0 || e[1][1] < 0)], K = (e, t, n) => {
1195
+ let r = Ye(e);
1192
1196
  return [e[0][0] * t + e[0][1] * n + r[0], e[1][0] * t + e[1][1] * n + r[1]];
1193
- }, Je = (e) => {
1197
+ }, Xe = (e) => {
1194
1198
  let t = 1, n = 1, r = {
1195
1199
  x: 0,
1196
1200
  y: 0,
@@ -1206,7 +1210,7 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1206
1210
  h: 1
1207
1211
  }, i = 0, a = !1, o = !1;
1208
1212
  else if (c.action.name === m.CROP) {
1209
- let e = (c.action.args.x ?? 0) / 100, t = (c.action.args.y ?? 0) / 100, n = (c.action.args.w ?? 100) / 100, s = (c.action.args.h ?? 100) / 100, l = Ke(i, a, o), u = [
1213
+ let e = (c.action.args.x ?? 0) / 100, t = (c.action.args.y ?? 0) / 100, n = (c.action.args.w ?? 100) / 100, s = (c.action.args.h ?? 100) / 100, l = Je(i, a, o), u = [
1210
1214
  K(l, e, t),
1211
1215
  K(l, e + n, t),
1212
1216
  K(l, e, t + s),
@@ -1238,13 +1242,13 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1238
1242
  flipH: a,
1239
1243
  flipV: o
1240
1244
  };
1241
- }, Ye = (e) => {
1242
- let { box: t, flipH: n, flipV: r, rotation: i, newWidth: a, newHeight: o, initWidth: s, initHeight: c, viewWidth: l, viewHeight: u } = Je(e), d = G(t.x, 0, 1), f = G(t.y, 0, 1), p = {
1245
+ }, Ze = (e) => {
1246
+ let { box: t, flipH: n, flipV: r, rotation: i, newWidth: a, newHeight: o, initWidth: s, initHeight: c, viewWidth: l, viewHeight: u } = Xe(e), d = G(t.x, 0, 1), f = G(t.y, 0, 1), p = {
1243
1247
  x: d,
1244
1248
  y: f,
1245
1249
  w: G(t.w, 0, 1 - d),
1246
1250
  h: G(t.h, 0, 1 - f)
1247
- }, m = Ue(i);
1251
+ }, m = Ge(i);
1248
1252
  return {
1249
1253
  ...p.x === 0 && p.y === 0 && p.w === 1 && p.h === 1 ? {} : { crop: {
1250
1254
  x: Math.round(s * t.x),
@@ -1262,18 +1266,18 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1262
1266
  height: o
1263
1267
  } } : {}
1264
1268
  };
1265
- }, Xe = (e) => {
1266
- let [t, n] = u(!1), { setImage: r, settings: i, history: a, originalBlob: o, setCurrentAction: s, resetHistory: c } = P();
1269
+ }, Qe = (e) => {
1270
+ let [t, n] = u(!1), { setImage: r, settings: i, history: a, originalBlob: o, setCurrentAction: s, resetHistory: c } = N();
1267
1271
  return {
1268
1272
  save: async () => {
1269
1273
  if (!o) return;
1270
1274
  n(!0);
1271
- let t = Ye(a.items.slice(0, a.pointer + 1));
1275
+ let t = Ze(a.items.slice(0, a.pointer + 1));
1272
1276
  try {
1273
- let n = await Ve(o);
1277
+ let n = await Ue(o);
1274
1278
  t.crop && n.crop(t.crop.x, t.crop.y, t.crop.w, t.crop.h), t.flip && n.flip(t.flip.horizontal, t.flip.vertical), t.rotate && n.rotate(t.rotate.degrees), t.resize && n.resize(t.resize.width, t.resize.height);
1275
1279
  let { newBlob: a, previewBlob: s, mimeType: c, width: l, height: u, isAlpha: d } = await n.get(i), f = "";
1276
- i.exportAs === "base64" && (f = await Be(a)), await e(f || a), r({
1280
+ i.exportAs === "base64" && (f = await He(a)), await e(f || a), r({
1277
1281
  newBlob: a,
1278
1282
  previewBlob: s,
1279
1283
  mimeType: c,
@@ -1301,8 +1305,8 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1301
1305
  tools: "_tools_1yueu_38",
1302
1306
  history: "_history_1yueu_42",
1303
1307
  historyText: "_historyText_1yueu_47"
1304
- }, Ze = ({ onBack: e, onSave: t, isMobile: n }) => {
1305
- let { save: r, reset: i, isSaving: a } = Xe(t), { sidebar: o, history: s, undo: c, redo: l, setSidebar: u, setCurrentAction: d } = P(), f = s.items.length > 1 && !a, p = s.pointer === 0, m = s.pointer === s.items.length - 1, h = s.items.length < 2 || a, g = h || s.pointer === 0;
1308
+ }, $e = ({ onBack: e, onSave: t, isMobile: n }) => {
1309
+ let { save: r, reset: i, isSaving: a } = Qe(t), { sidebar: o, history: s, undo: c, redo: l, setSidebar: u, setCurrentAction: d } = N(), f = s.items.length > 1 && !a, p = s.pointer === 0, m = s.pointer === s.items.length - 1, h = s.items.length < 2 || a, g = h || s.pointer === 0;
1306
1310
  return /* @__PURE__ */ (0, b.jsxs)("div", {
1307
1311
  className: q.header,
1308
1312
  children: [/* @__PURE__ */ (0, b.jsxs)("div", {
@@ -1312,10 +1316,10 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1312
1316
  onClick: () => {
1313
1317
  u(!o);
1314
1318
  },
1315
- children: o ? /* @__PURE__ */ (0, b.jsx)(he, { className: q.sidebarIcon }) : /* @__PURE__ */ (0, b.jsx)(me, { className: q.sidebarIcon })
1316
- }), /* @__PURE__ */ (0, b.jsx)(I, {
1319
+ children: o ? /* @__PURE__ */ (0, b.jsx)(ge, { className: q.sidebarIcon }) : /* @__PURE__ */ (0, b.jsx)(he, { className: q.sidebarIcon })
1320
+ }), /* @__PURE__ */ (0, b.jsx)(F, {
1317
1321
  variant: "ghost",
1318
- className: F.rect,
1322
+ className: P.rect,
1319
1323
  onClick: e,
1320
1324
  children: /* @__PURE__ */ (0, b.jsx)(j, {})
1321
1325
  })]
@@ -1325,14 +1329,14 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1325
1329
  f && /* @__PURE__ */ (0, b.jsxs)("div", {
1326
1330
  className: q.history,
1327
1331
  children: [
1328
- /* @__PURE__ */ (0, b.jsx)(I, {
1332
+ /* @__PURE__ */ (0, b.jsx)(F, {
1329
1333
  variant: "outline",
1330
1334
  disabled: p,
1331
- className: F.rect,
1335
+ className: P.rect,
1332
1336
  onClick: () => {
1333
1337
  c(), d(null);
1334
1338
  },
1335
- children: /* @__PURE__ */ (0, b.jsx)(ne, {})
1339
+ children: /* @__PURE__ */ (0, b.jsx)(re, {})
1336
1340
  }),
1337
1341
  /* @__PURE__ */ (0, b.jsxs)("div", {
1338
1342
  className: q.historyText,
@@ -1342,54 +1346,54 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1342
1346
  s.items.length
1343
1347
  ]
1344
1348
  }),
1345
- /* @__PURE__ */ (0, b.jsx)(I, {
1349
+ /* @__PURE__ */ (0, b.jsx)(F, {
1346
1350
  variant: "outline",
1347
1351
  disabled: m,
1348
- className: F.rect,
1352
+ className: P.rect,
1349
1353
  onClick: () => {
1350
1354
  l(), d(null);
1351
1355
  },
1352
- children: /* @__PURE__ */ (0, b.jsx)(re, {})
1356
+ children: /* @__PURE__ */ (0, b.jsx)(ie, {})
1353
1357
  })
1354
1358
  ]
1355
1359
  }),
1356
- /* @__PURE__ */ (0, b.jsx)(I, {
1360
+ /* @__PURE__ */ (0, b.jsx)(F, {
1357
1361
  variant: "outline",
1358
1362
  disabled: h,
1359
1363
  onClick: i,
1360
1364
  children: "Reset"
1361
1365
  }),
1362
- /* @__PURE__ */ (0, b.jsxs)(I, {
1366
+ /* @__PURE__ */ (0, b.jsxs)(F, {
1363
1367
  disabled: g,
1364
1368
  onClick: r,
1365
- children: [a ? /* @__PURE__ */ (0, b.jsx)(ge, {}) : /* @__PURE__ */ (0, b.jsx)(A, {}), "Save"]
1369
+ children: [a ? /* @__PURE__ */ (0, b.jsx)(_e, {}) : /* @__PURE__ */ (0, b.jsx)(A, {}), "Save"]
1366
1370
  })
1367
1371
  ]
1368
1372
  })]
1369
1373
  });
1370
- }, Qe = {
1374
+ }, et = {
1371
1375
  [m.RESIZE]: {
1372
- icon: /* @__PURE__ */ (0, b.jsx)(ce, {}),
1376
+ icon: /* @__PURE__ */ (0, b.jsx)(le, {}),
1373
1377
  label: "Resize"
1374
1378
  },
1375
1379
  [m.CROP]: {
1376
- icon: /* @__PURE__ */ (0, b.jsx)(N, {}),
1380
+ icon: /* @__PURE__ */ (0, b.jsx)(M, {}),
1377
1381
  label: "Crop"
1378
1382
  },
1379
1383
  [m.PRESET_CROP]: {
1380
- icon: /* @__PURE__ */ (0, b.jsx)(pe, {}),
1384
+ icon: /* @__PURE__ */ (0, b.jsx)(me, {}),
1381
1385
  label: "Presets"
1382
1386
  },
1383
1387
  [m.FLIP]: {
1384
- icon: /* @__PURE__ */ (0, b.jsx)(le, {}),
1388
+ icon: /* @__PURE__ */ (0, b.jsx)(ue, {}),
1385
1389
  label: "Flip"
1386
1390
  },
1387
1391
  [m.ROTATE]: {
1388
- icon: /* @__PURE__ */ (0, b.jsx)(de, {}),
1392
+ icon: /* @__PURE__ */ (0, b.jsx)(fe, {}),
1389
1393
  label: "Rotate"
1390
1394
  }
1391
- }, $e = (e) => Qe[e] ?? null, et = () => {
1392
- let { settings: e, currentAction: t, getLastRotation: n, getLastHistoryItem: r, setCurrentAction: i, setSidebar: a } = P(), o = e?.tools || [], s = t?.name, { width: c, height: l } = r();
1395
+ }, tt = (e) => et[e] ?? null, nt = () => {
1396
+ let { settings: e, currentAction: t, getLastRotation: n, getLastHistoryItem: r, setCurrentAction: i, setSidebar: a } = N(), o = e?.tools || [], s = t?.name, { width: c, height: l } = r();
1393
1397
  return { click: (e) => {
1394
1398
  if (o.includes(e) && s === e) {
1395
1399
  i(null);
@@ -1454,15 +1458,15 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1454
1458
  wrapper: "_wrapper_1j9gh_19",
1455
1459
  item: "_item_1j9gh_23",
1456
1460
  selected: "_selected_1j9gh_41"
1457
- }, tt = ({ isMobile: e }) => {
1458
- let { settings: t, sidebar: n, currentAction: r } = P(), i = t?.tools || [], a = r?.name, { click: o } = et();
1461
+ }, rt = ({ isMobile: e }) => {
1462
+ let { settings: t, sidebar: n, currentAction: r } = N(), i = t?.tools || [], a = r?.name, { click: o } = nt();
1459
1463
  return /* @__PURE__ */ (0, b.jsx)("nav", {
1460
1464
  className: `${J.sidebar} ${e ? J.mobile : ""} ${e && n ? J.open : ""}`,
1461
- children: /* @__PURE__ */ (0, b.jsx)(V, {
1465
+ children: /* @__PURE__ */ (0, b.jsx)(B, {
1462
1466
  orientation: "vertical",
1463
1467
  className: J.tooltip,
1464
1468
  children: i.map((e) => {
1465
- let t = $e(e);
1469
+ let t = tt(e);
1466
1470
  if (!t) return null;
1467
1471
  let { icon: n, label: r } = t;
1468
1472
  return /* @__PURE__ */ (0, b.jsx)("div", {
@@ -1475,15 +1479,15 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1475
1479
  })
1476
1480
  })
1477
1481
  });
1478
- }, nt = { infobar: "_infobar_ofe91_1" }, rt = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(2)} KB` : `${(e / 1024 / 1024).toFixed(2)} MB`, it = () => {
1479
- let { originalBlob: e, getLastHistoryItem: t } = P(), { width: n, height: r } = t();
1482
+ }, it = { infobar: "_infobar_ofe91_1" }, at = (e) => e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(2)} KB` : `${(e / 1024 / 1024).toFixed(2)} MB`, ot = () => {
1483
+ let { originalBlob: e, getLastHistoryItem: t } = N(), { width: n, height: r } = t();
1480
1484
  return /* @__PURE__ */ (0, b.jsxs)("div", {
1481
- className: nt.infobar,
1485
+ className: it.infobar,
1482
1486
  children: [/* @__PURE__ */ (0, b.jsx)("div", {
1483
- className: nt.filesize,
1484
- children: e ? rt(e.size) : "0 B"
1487
+ className: it.filesize,
1488
+ children: e ? at(e.size) : "0 B"
1485
1489
  }), /* @__PURE__ */ (0, b.jsxs)("div", {
1486
- className: nt.sizes,
1490
+ className: it.sizes,
1487
1491
  children: [
1488
1492
  n,
1489
1493
  " / ",
@@ -1491,26 +1495,26 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1491
1495
  ]
1492
1496
  })]
1493
1497
  });
1494
- }, at = (e, t) => {
1498
+ }, st = (e, t) => {
1495
1499
  let n = new CustomEvent("crop-update", { detail: t });
1496
1500
  e.dispatchEvent(n);
1497
- }, ot = (e, t) => {
1501
+ }, ct = (e, t) => {
1498
1502
  let n = new CustomEvent("clip-path-update", { detail: t });
1499
1503
  e.dispatchEvent(n);
1500
- }, st = (e, t) => {
1504
+ }, lt = (e, t) => {
1501
1505
  let n = new CustomEvent("resize-update", { detail: t });
1502
1506
  e.dispatchEvent(n);
1503
- }, ct = 15, lt = 200, ut = 2, dt = (e, t, n) => {
1504
- let r = Math.min(lt, Math.max(ct, e));
1507
+ }, ut = 15, dt = 200, ft = 2, pt = (e, t, n) => {
1508
+ let r = Math.min(dt, Math.max(ut, e));
1505
1509
  return {
1506
1510
  scale: r,
1507
1511
  width: Math.round(r / 100 * t),
1508
1512
  height: Math.round(r / 100 * n)
1509
1513
  };
1510
- }, ft = () => {
1511
- let { getLastHistoryItem: e, setCurrentAction: t, addToHistory: n, setSidebar: r, eventBus: a } = P(), { width: s, height: c } = e(), [d, f] = u(s), [p, h] = u(c), [g, _] = u(100), v = l(g), y = l(0), b = l(null), x = i((e) => {
1512
- let t = dt(e, s, c);
1513
- f(t.width), h(t.height), _(t.scale), v.current = t.scale, st(a, t.scale);
1514
+ }, mt = () => {
1515
+ let { getLastHistoryItem: e, setCurrentAction: t, addToHistory: n, setSidebar: r, eventBus: a } = N(), { width: s, height: c } = e(), [d, f] = u(s), [p, h] = u(c), [g, _] = u(100), v = l(g), y = l(0), b = l(null), x = i((e) => {
1516
+ let t = pt(e, s, c);
1517
+ f(t.width), h(t.height), _(t.scale), v.current = t.scale, lt(a, t.scale);
1514
1518
  }, [
1515
1519
  c,
1516
1520
  s,
@@ -1528,13 +1532,13 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1528
1532
  let t = b.current?.parentElement;
1529
1533
  return e.target instanceof Node && !!t?.contains(e.target);
1530
1534
  }, t = (t) => {
1531
- e(t) && x(v.current - Math.sign(t.deltaY) * ut);
1535
+ e(t) && x(v.current - Math.sign(t.deltaY) * ft);
1532
1536
  }, n = (t) => {
1533
1537
  e(t) && (y.current = t.touches[0].clientY);
1534
1538
  }, r = (t) => {
1535
1539
  if (!e(t)) return;
1536
1540
  let n = t.touches[0].clientY, r = y.current - n;
1537
- Math.abs(r) < 10 || (x(v.current + Math.sign(r) * ut), y.current = n);
1541
+ Math.abs(r) < 10 || (x(v.current + Math.sign(r) * ft), y.current = n);
1538
1542
  }, i = new AbortController(), { signal: a } = i;
1539
1543
  return window.addEventListener("wheel", t, { signal: a }), window.addEventListener("touchstart", n, { signal: a }), window.addEventListener("touchmove", r, { signal: a }), () => i.abort();
1540
1544
  }, [x]), {
@@ -1563,20 +1567,20 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1563
1567
  height: p
1564
1568
  }
1565
1569
  }
1566
- }), st(a, 100), r(!0);
1570
+ }), lt(a, 100), r(!0);
1567
1571
  },
1568
1572
  close: () => {
1569
- st(a, 100), t(null), r(!0);
1573
+ lt(a, 100), t(null), r(!0);
1570
1574
  }
1571
1575
  };
1572
1576
  }, Y = {
1573
- resize: "_resize_s127g_1",
1574
- toolsLock: "_toolsLock_s127g_15",
1575
- indicatorWrapper: "_indicatorWrapper_s127g_20",
1576
- indicator: "_indicator_s127g_20"
1577
- }, pt = () => {
1578
- let { resizeRef: e, width: t, height: n, scale: r, currentWidth: i, currentHeight: a, setWidth: o, setHeight: s, handleWidthBlur: c, handleHeightBlur: l, save: u, close: d } = ft();
1579
- return /* @__PURE__ */ (0, b.jsxs)("div", {
1577
+ resize: "_resize_1sbig_1",
1578
+ toolsLock: "_toolsLock_1sbig_5",
1579
+ indicatorWrapper: "_indicatorWrapper_1sbig_10",
1580
+ indicator: "_indicator_1sbig_10"
1581
+ }, ht = () => {
1582
+ let { resizeRef: e, width: t, height: n, scale: r, currentWidth: i, currentHeight: a, setWidth: o, setHeight: s, handleWidthBlur: c, handleHeightBlur: l, save: u, close: d } = mt();
1583
+ return /* @__PURE__ */ (0, b.jsxs)(V, {
1580
1584
  ref: e,
1581
1585
  className: Y.resize,
1582
1586
  children: [
@@ -1587,7 +1591,7 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1587
1591
  style: { width: `${r / 2}%` }
1588
1592
  })
1589
1593
  }),
1590
- /* @__PURE__ */ (0, b.jsx)(we, {
1594
+ /* @__PURE__ */ (0, b.jsx)(Te, {
1591
1595
  value: t,
1592
1596
  name: "width",
1593
1597
  label: "Width",
@@ -1596,7 +1600,7 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1596
1600
  onBlur: c
1597
1601
  }),
1598
1602
  /* @__PURE__ */ (0, b.jsx)(te, { className: Y.toolsLock }),
1599
- /* @__PURE__ */ (0, b.jsx)(we, {
1603
+ /* @__PURE__ */ (0, b.jsx)(Te, {
1600
1604
  value: n,
1601
1605
  name: "height",
1602
1606
  label: "Height",
@@ -1604,15 +1608,15 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1604
1608
  onChange: (e) => s(Number(e.target.value)),
1605
1609
  onBlur: l
1606
1610
  }),
1607
- /* @__PURE__ */ (0, b.jsx)(z, {
1611
+ /* @__PURE__ */ (0, b.jsx)(R, {
1608
1612
  onSave: u,
1609
1613
  onClose: d,
1610
1614
  disabled: t === i && n === a
1611
1615
  })
1612
1616
  ]
1613
1617
  });
1614
- }, mt = ({ isClipped: e }) => {
1615
- let { history: t, previewUrl: n, currentAction: r, getLastRotation: i, eventBus: a } = P(), c = l(null), u = l(r?.name), d = l(n);
1618
+ }, gt = ({ isClipped: e }) => {
1619
+ let { history: t, previewUrl: n, currentAction: r, getLastRotation: i, eventBus: a } = N(), c = l(null), u = l(r?.name), d = l(n);
1616
1620
  s(() => {
1617
1621
  let e = u.current, t = r?.name, i = d.current !== n;
1618
1622
  if (u.current = t, d.current = n, !(e && t && e !== t) && !i) return;
@@ -1635,14 +1639,14 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1635
1639
  if (r) {
1636
1640
  let { width: e, height: n } = t.items.at(t.pointer);
1637
1641
  f.push({
1638
- ...r.name === m.ROTATE ? Le(e, n, i(), r.args.degrees) : {
1642
+ ...r.name === m.ROTATE ? ze(e, n, i(), r.args.degrees) : {
1639
1643
  width: e,
1640
1644
  height: n
1641
1645
  },
1642
1646
  action: r
1643
1647
  });
1644
1648
  }
1645
- let p = Je(f);
1649
+ let p = Xe(f);
1646
1650
  return o(() => {
1647
1651
  e && c.current && (c.current.style.transition = "none"), r?.name !== m.RESIZE && c.current && (c.current.style.transform = "scale(1)");
1648
1652
  let t = (e) => {
@@ -1670,8 +1674,8 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1670
1674
  rotate: "_rotate_dvanl_12",
1671
1675
  flip: "_flip_dvanl_24",
1672
1676
  image: "_image_dvanl_32"
1673
- }, ht = ({ isClipped: e, style: t = {} }) => {
1674
- let { previewRef: n, previewUrl: r, box: i, boxWidth: a, boxHeight: o, viewWidth: s, viewHeight: c, rotation: l, flipH: u, flipV: d } = mt({ isClipped: e });
1677
+ }, _t = ({ isClipped: e, style: t = {} }) => {
1678
+ let { previewRef: n, previewUrl: r, box: i, boxWidth: a, boxHeight: o, viewWidth: s, viewHeight: c, rotation: l, flipH: u, flipV: d } = gt({ isClipped: e });
1675
1679
  return /* @__PURE__ */ (0, b.jsx)("div", {
1676
1680
  ref: n,
1677
1681
  className: X.preview,
@@ -1704,33 +1708,32 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1704
1708
  })
1705
1709
  });
1706
1710
  }, Z = {
1707
- wrapper: "_wrapper_1yhyo_1",
1708
- box: "_box_1yhyo_9",
1709
- tools: "_tools_1yhyo_18",
1710
- toolsInfo: "_toolsInfo_1yhyo_35",
1711
- toolsInfoLabel: "_toolsInfoLabel_1yhyo_42",
1712
- toolsInfoValue: "_toolsInfoValue_1yhyo_47",
1713
- linesBox: "_linesBox_1yhyo_52",
1714
- line: "_line_1yhyo_52",
1715
- lineV: "_lineV_1yhyo_62",
1716
- lineH: "_lineH_1yhyo_70",
1717
- pointer: "_pointer_1yhyo_78",
1718
- pointerTopLeft: "_pointerTopLeft_1yhyo_84",
1719
- pointerTopRight: "_pointerTopRight_1yhyo_91",
1720
- pointerBottomRight: "_pointerBottomRight_1yhyo_98",
1721
- pointerBottomLeft: "_pointerBottomLeft_1yhyo_105",
1722
- mobileBorder: "_mobileBorder_1yhyo_112",
1723
- mobilePointer: "_mobilePointer_1yhyo_118",
1724
- info: "_info_1yhyo_129",
1725
- infoX: "_infoX_1yhyo_146",
1726
- infoY: "_infoY_1yhyo_151",
1727
- infoW: "_infoW_1yhyo_158",
1728
- infoH: "_infoH_1yhyo_163",
1729
- group: "_group_1yhyo_170",
1730
- active: "_active_1yhyo_179"
1731
- }, gt = () => {
1732
- let { getLastHistoryItem: e } = P(), t = D(), n = l(null), { handleCropStart: r, initialCrop: i } = Ot({ boxRef: n }), { width: a, height: o } = e(), { x: s, y: c, w: u, h: d } = i;
1733
- return /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, b.jsx)(ht, {
1711
+ wrapper: "_wrapper_1co2u_1",
1712
+ box: "_box_1co2u_9",
1713
+ toolsInfo: "_toolsInfo_1co2u_18",
1714
+ toolsInfoLabel: "_toolsInfoLabel_1co2u_25",
1715
+ toolsInfoValue: "_toolsInfoValue_1co2u_30",
1716
+ linesBox: "_linesBox_1co2u_35",
1717
+ line: "_line_1co2u_35",
1718
+ lineV: "_lineV_1co2u_45",
1719
+ lineH: "_lineH_1co2u_53",
1720
+ pointer: "_pointer_1co2u_61",
1721
+ pointerTopLeft: "_pointerTopLeft_1co2u_67",
1722
+ pointerTopRight: "_pointerTopRight_1co2u_74",
1723
+ pointerBottomRight: "_pointerBottomRight_1co2u_81",
1724
+ pointerBottomLeft: "_pointerBottomLeft_1co2u_88",
1725
+ mobileBorder: "_mobileBorder_1co2u_95",
1726
+ mobilePointer: "_mobilePointer_1co2u_101",
1727
+ info: "_info_1co2u_112",
1728
+ infoX: "_infoX_1co2u_129",
1729
+ infoY: "_infoY_1co2u_134",
1730
+ infoW: "_infoW_1co2u_141",
1731
+ infoH: "_infoH_1co2u_146",
1732
+ group: "_group_1co2u_153",
1733
+ active: "_active_1co2u_162"
1734
+ }, vt = () => {
1735
+ let { getLastHistoryItem: e } = N(), t = D(), n = l(null), { handleCropStart: r, initialCrop: i } = At({ boxRef: n }), { width: a, height: o } = e(), { x: s, y: c, w: u, h: d } = i;
1736
+ return /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, b.jsx)(_t, {
1734
1737
  isClipped: !0,
1735
1738
  style: { clipPath: `xywh(${s}% ${c}% ${u}% ${d}%)` }
1736
1739
  }), /* @__PURE__ */ (0, b.jsx)("div", {
@@ -1745,41 +1748,41 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1745
1748
  top: `${c}%`,
1746
1749
  left: `${s}%`
1747
1750
  },
1748
- children: [/* @__PURE__ */ (0, b.jsx)(xt, {}), t ? /* @__PURE__ */ (0, b.jsx)(kt, { onMouseDown: r }) : /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, b.jsx)(St, { onMouseDown: r }), /* @__PURE__ */ (0, b.jsx)(At, {})] })]
1751
+ children: [/* @__PURE__ */ (0, b.jsx)(Ct, {}), t ? /* @__PURE__ */ (0, b.jsx)(jt, { onMouseDown: r }) : /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [/* @__PURE__ */ (0, b.jsx)(wt, { onMouseDown: r }), /* @__PURE__ */ (0, b.jsx)(Mt, {})] })]
1749
1752
  })
1750
1753
  })] });
1751
- }, _t = [
1754
+ }, yt = [
1752
1755
  {
1753
1756
  id: "freeform",
1754
- icon: /* @__PURE__ */ (0, b.jsx)(N, {}),
1757
+ icon: /* @__PURE__ */ (0, b.jsx)(M, {}),
1755
1758
  label: "Freeform"
1756
1759
  },
1757
1760
  {
1758
1761
  id: "origin",
1759
- icon: /* @__PURE__ */ (0, b.jsx)(ie, {}),
1762
+ icon: /* @__PURE__ */ (0, b.jsx)(ae, {}),
1760
1763
  label: "Original"
1761
1764
  },
1762
1765
  {
1763
1766
  id: "1:1",
1764
- icon: /* @__PURE__ */ (0, b.jsx)(ae, {}),
1767
+ icon: /* @__PURE__ */ (0, b.jsx)(oe, {}),
1765
1768
  label: "1 : 1"
1766
1769
  },
1767
1770
  {
1768
1771
  id: "4:3",
1769
- icon: /* @__PURE__ */ (0, b.jsx)(se, {}),
1772
+ icon: /* @__PURE__ */ (0, b.jsx)(ce, {}),
1770
1773
  label: "4 : 3"
1771
1774
  },
1772
1775
  {
1773
1776
  id: "16:9",
1774
- icon: /* @__PURE__ */ (0, b.jsx)(oe, {}),
1777
+ icon: /* @__PURE__ */ (0, b.jsx)(se, {}),
1775
1778
  label: "16 : 9"
1776
1779
  }
1777
- ], vt = ({ value: e, onChange: t }) => /* @__PURE__ */ (0, b.jsx)("div", {
1780
+ ], bt = ({ value: e, onChange: t }) => /* @__PURE__ */ (0, b.jsx)("div", {
1778
1781
  className: Z.group,
1779
- children: /* @__PURE__ */ (0, b.jsx)(V, {
1782
+ children: /* @__PURE__ */ (0, b.jsx)(B, {
1780
1783
  orientation: "horizontal",
1781
1784
  className: Z.tooltip,
1782
- children: _t.map((n) => /* @__PURE__ */ (0, b.jsx)(I, {
1785
+ children: yt.map((n) => /* @__PURE__ */ (0, b.jsx)(F, {
1783
1786
  variant: "outline",
1784
1787
  className: `${Z.groupBtn} ${e === n.id ? Z.active : ""}`,
1785
1788
  onClick: () => t(n.id),
@@ -1788,8 +1791,8 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1788
1791
  children: n.icon
1789
1792
  }, n.id))
1790
1793
  })
1791
- }), yt = () => {
1792
- let { setCurrentAction: e, currentAction: t, getLastHistoryItem: n, addToHistory: r, setSidebar: i, eventBus: a } = P(), { width: s, height: c } = n(), { name: u, args: d } = t || {}, f = u === m.CROP ? d?.id : "", p = s / c, h = l({
1794
+ }), xt = () => {
1795
+ let { setCurrentAction: e, currentAction: t, getLastHistoryItem: n, addToHistory: r, setSidebar: i, eventBus: a } = N(), { width: s, height: c } = n(), { name: u, args: d } = t || {}, f = u === m.CROP ? d?.id : "", p = s / c, h = l({
1793
1796
  x: 0,
1794
1797
  y: 0,
1795
1798
  w: 0,
@@ -1841,22 +1844,19 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1841
1844
  e(null), i(!0);
1842
1845
  }
1843
1846
  };
1844
- }, bt = () => {
1845
- let { currentValue: e, handleChange: t, handleSave: n, handleClose: r } = yt();
1846
- return /* @__PURE__ */ (0, b.jsxs)("div", {
1847
- className: Z.tools,
1848
- children: [/* @__PURE__ */ (0, b.jsx)(vt, {
1849
- value: e,
1850
- onChange: t
1851
- }), /* @__PURE__ */ (0, b.jsx)(z, {
1852
- onSave: n,
1853
- onClose: r
1854
- })]
1855
- });
1856
- }, xt = () => /* @__PURE__ */ (0, b.jsxs)("div", {
1847
+ }, St = () => {
1848
+ let { currentValue: e, handleChange: t, handleSave: n, handleClose: r } = xt();
1849
+ return /* @__PURE__ */ (0, b.jsxs)(V, { children: [/* @__PURE__ */ (0, b.jsx)(bt, {
1850
+ value: e,
1851
+ onChange: t
1852
+ }), /* @__PURE__ */ (0, b.jsx)(R, {
1853
+ onSave: n,
1854
+ onClose: r
1855
+ })] });
1856
+ }, Ct = () => /* @__PURE__ */ (0, b.jsxs)("div", {
1857
1857
  className: Z.linesBox,
1858
1858
  children: [/* @__PURE__ */ (0, b.jsx)("span", { className: `${Z.line} ${Z.lineV}` }), /* @__PURE__ */ (0, b.jsx)("span", { className: `${Z.line} ${Z.lineH}` })]
1859
- }), St = ({ onMouseDown: e }) => /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [
1859
+ }), wt = ({ onMouseDown: e }) => /* @__PURE__ */ (0, b.jsxs)(b.Fragment, { children: [
1860
1860
  /* @__PURE__ */ (0, b.jsx)("div", {
1861
1861
  className: `${Z.pointer} ${Z.pointerTopLeft}`,
1862
1862
  onMouseDown: (t) => e(t, "tl", "nwse")
@@ -1876,20 +1876,20 @@ var G = (e, t, n) => Math.max(t, Math.min(n, e)), He = (e, t) => [[e[0][0] * t[0
1876
1876
  ] });
1877
1877
  //#endregion
1878
1878
  //#region src/shared/components/Pixedi/crop/useCropInteraction.ts
1879
- function Ct(e, t, n) {
1879
+ function Tt(e, t, n) {
1880
1880
  return Math.min(Math.max(e, t), n);
1881
1881
  }
1882
- function wt(e, { x: t, y: n, w: r, h: i }) {
1882
+ function Et(e, { x: t, y: n, w: r, h: i }) {
1883
1883
  e.style.left = `${t}%`, e.style.top = `${n}%`, e.style.width = `${r}%`, e.style.height = `${i}%`;
1884
1884
  }
1885
- function Tt(e) {
1885
+ function Dt(e) {
1886
1886
  let { width: t, height: n } = e.getBoundingClientRect();
1887
1887
  return {
1888
1888
  frameW: t,
1889
1889
  frameH: n
1890
1890
  };
1891
1891
  }
1892
- function Et({ x: e, y: t, w: n, h: r }, i, a) {
1892
+ function Ot({ x: e, y: t, w: n, h: r }, i, a) {
1893
1893
  return {
1894
1894
  x: e / 100 * i,
1895
1895
  y: t / 100 * a,
@@ -1897,7 +1897,7 @@ function Et({ x: e, y: t, w: n, h: r }, i, a) {
1897
1897
  h: r / 100 * a
1898
1898
  };
1899
1899
  }
1900
- function Dt({ x: e, y: t, w: n, h: r }, i, a) {
1900
+ function kt({ x: e, y: t, w: n, h: r }, i, a) {
1901
1901
  return {
1902
1902
  x: e / i * 100,
1903
1903
  y: t / a * 100,
@@ -1905,22 +1905,22 @@ function Dt({ x: e, y: t, w: n, h: r }, i, a) {
1905
1905
  h: r / a * 100
1906
1906
  };
1907
1907
  }
1908
- var Ot = ({ boxRef: e }) => {
1909
- let { currentAction: t, getLastHistoryItem: n, eventBus: r } = P(), i = D(), { width: a, height: s } = n(), u = t?.name === m.CROP || t?.name === m.PRESET_CROP, d = u ? t.args.ratio : 1, f = !u || t.args.isFree, p = c(() => U(d, a, s), [
1908
+ var At = ({ boxRef: e }) => {
1909
+ let { currentAction: t, getLastHistoryItem: n, eventBus: r } = N(), i = D(), { width: a, height: s } = n(), u = t?.name === m.CROP || t?.name === m.PRESET_CROP, d = u ? t.args.ratio : 1, f = !u || t.args.isFree, p = c(() => U(d, a, s), [
1910
1910
  d,
1911
1911
  a,
1912
1912
  s
1913
1913
  ]), h = l(null), g = l(""), _ = l(p), v = l(p);
1914
1914
  return o(() => {
1915
- _.current = p, ot(r, p);
1915
+ _.current = p, ct(r, p);
1916
1916
  }, [p, r]), o(() => {
1917
1917
  let t = (e, t) => {
1918
- _.current = t, wt(e, t), at(r, {
1918
+ _.current = t, Et(e, t), st(r, {
1919
1919
  x: Math.round(t.x / 100 * a),
1920
1920
  y: Math.round(t.y / 100 * s),
1921
1921
  w: Math.round(t.w / 100 * a),
1922
1922
  h: Math.round(t.h / 100 * s)
1923
- }), ot(r, t);
1923
+ }), ct(r, t);
1924
1924
  }, n = (e) => {
1925
1925
  e.preventDefault(), v.current = _.current;
1926
1926
  let t = "clientX" in e ? e.clientX : e.touches[0].clientX, n = "clientY" in e ? e.clientY : e.touches[0].clientY;
@@ -1933,7 +1933,7 @@ var Ot = ({ boxRef: e }) => {
1933
1933
  t.preventDefault();
1934
1934
  let n = e.current, r = n.parentElement;
1935
1935
  if (!r) return;
1936
- let { frameW: i, frameH: a } = Tt(r);
1936
+ let { frameW: i, frameH: a } = Dt(r);
1937
1937
  if (g.current) {
1938
1938
  o(t, n, i, a);
1939
1939
  return;
@@ -1941,14 +1941,14 @@ var Ot = ({ boxRef: e }) => {
1941
1941
  c(t, n, i, a);
1942
1942
  }, o = (e, n, r, i) => {
1943
1943
  if (!h.current) return;
1944
- let o = "clientX" in e ? e.clientX : e.touches[0].clientX, c = "clientY" in e ? e.clientY : e.touches[0].clientY, l = Dt(Fe(g.current, f, d, h.current.x, h.current.y, o, c, r, i, Et(v.current, r, i), Et(_.current, r, i)), r, i);
1945
- t(n, f ? l : Ie(l, d, a, s));
1944
+ let o = "clientX" in e ? e.clientX : e.touches[0].clientX, c = "clientY" in e ? e.clientY : e.touches[0].clientY, l = kt(Le(g.current, f, d, h.current.x, h.current.y, o, c, r, i, Ot(v.current, r, i), Ot(_.current, r, i)), r, i);
1945
+ t(n, f ? l : Re(l, d, a, s));
1946
1946
  }, c = (e, n, r, i) => {
1947
1947
  if (!h.current) return;
1948
1948
  let { x: a, y: o, w: s, h: c } = v.current, l = "clientX" in e ? e.clientX : e.touches[0].clientX, u = "clientY" in e ? e.clientY : e.touches[0].clientY, d = (l - h.current.x) / r * 100, f = (u - h.current.y) / i * 100;
1949
1949
  t(n, {
1950
- x: Ct(a + d, 0, Math.max(0, 100 - s)),
1951
- y: Ct(o + f, 0, Math.max(0, 100 - c)),
1950
+ x: Tt(a + d, 0, Math.max(0, 100 - s)),
1951
+ y: Tt(o + f, 0, Math.max(0, 100 - c)),
1952
1952
  w: s,
1953
1953
  h: c
1954
1954
  });
@@ -1983,14 +1983,14 @@ var Ot = ({ boxRef: e }) => {
1983
1983
  },
1984
1984
  initialCrop: p
1985
1985
  };
1986
- }, kt = ({ onMouseDown: e }) => /* @__PURE__ */ (0, b.jsx)("div", {
1986
+ }, jt = ({ onMouseDown: e }) => /* @__PURE__ */ (0, b.jsx)("div", {
1987
1987
  className: Z.mobileBorder,
1988
1988
  children: /* @__PURE__ */ (0, b.jsx)("div", {
1989
1989
  className: Z.mobilePointer,
1990
1990
  onTouchStart: (t) => e(t, "br", "nwse")
1991
1991
  })
1992
- }), At = () => {
1993
- let e = l(null), t = l(null), n = l(null), r = l(null), { currentAction: i, getLastHistoryItem: a, eventBus: s } = P(), { width: c, height: u } = a();
1992
+ }), Mt = () => {
1993
+ let e = l(null), t = l(null), n = l(null), r = l(null), { currentAction: i, getLastHistoryItem: a, eventBus: s } = N(), { width: c, height: u } = a();
1994
1994
  return o(() => {
1995
1995
  if (!(i?.name === m.CROP || i?.name === m.PRESET_CROP)) return;
1996
1996
  let { xP: a, yP: o, wP: l, hP: d } = U(i.args.ratio, c, u);
@@ -2025,8 +2025,8 @@ var Ot = ({ boxRef: e }) => {
2025
2025
  children: /* @__PURE__ */ (0, b.jsx)("b", { ref: r })
2026
2026
  })
2027
2027
  ] });
2028
- }, jt = ke.map((e) => e.options).flat(), Mt = () => jt, Nt = () => {
2029
- let { currentAction: e, getLastHistoryItem: t, addToHistory: n, setSidebar: r, setCurrentAction: i, eventBus: a } = P(), { width: s, height: c } = t(), u = e?.name === m.PRESET_CROP && jt.some((t) => t.value === e.args.id) ? e.args.id : "", d = l({
2028
+ }, Nt = je.map((e) => e.options).flat(), Pt = () => Nt, Ft = () => {
2029
+ let { currentAction: e, getLastHistoryItem: t, addToHistory: n, setSidebar: r, setCurrentAction: i, eventBus: a } = N(), { width: s, height: c } = t(), u = e?.name === m.PRESET_CROP && Nt.some((t) => t.value === e.args.id) ? e.args.id : "", d = l({
2030
2030
  x: 0,
2031
2031
  y: 0,
2032
2032
  w: 0,
@@ -2049,10 +2049,10 @@ var Ot = ({ boxRef: e }) => {
2049
2049
  a
2050
2050
  ]), {
2051
2051
  currentValue: u,
2052
- presetsData: ke,
2052
+ presetsData: je,
2053
2053
  handleChange: (e) => {
2054
2054
  if (!e) return;
2055
- let t = Mt().find((t) => t.value === e);
2055
+ let t = Pt().find((t) => t.value === e);
2056
2056
  if (!t) return;
2057
2057
  let n = {
2058
2058
  id: e,
@@ -2085,26 +2085,20 @@ var Ot = ({ boxRef: e }) => {
2085
2085
  i(null), r(!0);
2086
2086
  }
2087
2087
  };
2088
- }, Pt = {
2089
- preset: "_preset_1rbuc_1",
2090
- select: "_select_1rbuc_14"
2091
- }, Ft = () => {
2092
- let { currentValue: e, presetsData: t, handleChange: n, handleSave: r, handleClose: i } = Nt();
2093
- return /* @__PURE__ */ (0, b.jsxs)("div", {
2094
- className: Pt.preset,
2095
- children: [/* @__PURE__ */ (0, b.jsx)(be, {
2096
- value: e,
2097
- placeholder: "Select a preset",
2098
- onChange: n,
2099
- items: t,
2100
- className: Pt.select
2101
- }), /* @__PURE__ */ (0, b.jsx)(z, {
2102
- onSave: r,
2103
- onClose: i
2104
- })]
2105
- });
2106
- }, It = () => {
2107
- let { getLastHistoryItem: e, setCurrentAction: t, addToHistory: n, setSidebar: r } = P(), { width: i, height: a } = e(), [o, s] = u(!1), [c, l] = u(!1), d = (e, n) => {
2088
+ }, It = { select: "_select_1ip4k_1" }, Lt = () => {
2089
+ let { currentValue: e, presetsData: t, handleChange: n, handleSave: r, handleClose: i } = Ft();
2090
+ return /* @__PURE__ */ (0, b.jsxs)(V, { children: [/* @__PURE__ */ (0, b.jsx)(xe, {
2091
+ value: e,
2092
+ placeholder: "Select a preset",
2093
+ onChange: n,
2094
+ items: t,
2095
+ className: It.select
2096
+ }), /* @__PURE__ */ (0, b.jsx)(R, {
2097
+ onSave: r,
2098
+ onClose: i
2099
+ })] });
2100
+ }, Rt = () => {
2101
+ let { getLastHistoryItem: e, setCurrentAction: t, addToHistory: n, setSidebar: r } = N(), { width: i, height: a } = e(), [o, s] = u(!1), [c, l] = u(!1), d = (e, n) => {
2108
2102
  t({
2109
2103
  name: m.FLIP,
2110
2104
  args: {
@@ -2142,42 +2136,38 @@ var Ot = ({ boxRef: e }) => {
2142
2136
  }
2143
2137
  };
2144
2138
  }, Q = {
2145
- flip: "_flip_17ic5_1",
2146
- btnH: "_btnH_17ic5_14",
2147
- btnV: "_btnV_17ic5_20"
2148
- }, Lt = () => {
2149
- let { flipHorizontal: e, flipVertical: t, handleFlipHorizontal: n, handleFlipVertical: r, handleSave: i, handleClose: a } = It();
2150
- return /* @__PURE__ */ (0, b.jsxs)("div", {
2151
- className: Q.flip,
2152
- children: [/* @__PURE__ */ (0, b.jsx)("div", {
2153
- className: Q.scGroup,
2154
- children: /* @__PURE__ */ (0, b.jsxs)(V, {
2155
- orientation: "horizontal",
2156
- className: Q.tooltip,
2157
- children: [/* @__PURE__ */ (0, b.jsx)(I, {
2158
- variant: "outline",
2159
- className: Q.btnH,
2160
- onClick: n,
2161
- "aria-label": "Horizontal",
2162
- "data-tooltip": "Horizontal",
2163
- children: /* @__PURE__ */ (0, b.jsx)(le, { style: { color: e ? "var(--accent-blue)" : "var(--foreground)" } })
2164
- }), /* @__PURE__ */ (0, b.jsx)(I, {
2165
- variant: "outline",
2166
- className: Q.btnV,
2167
- onClick: r,
2168
- "aria-label": "Vertical",
2169
- "data-tooltip": "Vertical",
2170
- children: /* @__PURE__ */ (0, b.jsx)(ue, { style: { color: t ? "var(--accent-blue)" : "var(--foreground)" } })
2171
- })]
2172
- })
2173
- }), /* @__PURE__ */ (0, b.jsx)(z, {
2174
- disabled: !e && !t,
2175
- onSave: i,
2176
- onClose: a
2177
- })]
2178
- });
2179
- }, Rt = () => {
2180
- let { getLastRotation: e, getLastHistoryItem: t, addToHistory: n, setSidebar: r, setCurrentAction: i } = P(), { width: a, height: o } = t(), s = e(), c = l(s), u = l(s);
2139
+ btnH: "_btnH_15adi_1",
2140
+ btnV: "_btnV_15adi_7"
2141
+ }, zt = () => {
2142
+ let { flipHorizontal: e, flipVertical: t, handleFlipHorizontal: n, handleFlipVertical: r, handleSave: i, handleClose: a } = Rt();
2143
+ return /* @__PURE__ */ (0, b.jsxs)(V, { children: [/* @__PURE__ */ (0, b.jsx)("div", {
2144
+ className: Q.scGroup,
2145
+ children: /* @__PURE__ */ (0, b.jsxs)(B, {
2146
+ orientation: "horizontal",
2147
+ className: Q.tooltip,
2148
+ children: [/* @__PURE__ */ (0, b.jsx)(F, {
2149
+ variant: "outline",
2150
+ className: Q.btnH,
2151
+ onClick: n,
2152
+ "aria-label": "Horizontal",
2153
+ "data-tooltip": "Horizontal",
2154
+ children: /* @__PURE__ */ (0, b.jsx)(ue, { style: { color: e ? "var(--accent-blue)" : "var(--foreground)" } })
2155
+ }), /* @__PURE__ */ (0, b.jsx)(F, {
2156
+ variant: "outline",
2157
+ className: Q.btnV,
2158
+ onClick: r,
2159
+ "aria-label": "Vertical",
2160
+ "data-tooltip": "Vertical",
2161
+ children: /* @__PURE__ */ (0, b.jsx)(de, { style: { color: t ? "var(--accent-blue)" : "var(--foreground)" } })
2162
+ })]
2163
+ })
2164
+ }), /* @__PURE__ */ (0, b.jsx)(R, {
2165
+ disabled: !e && !t,
2166
+ onSave: i,
2167
+ onClose: a
2168
+ })] });
2169
+ }, Bt = () => {
2170
+ let { getLastRotation: e, getLastHistoryItem: t, addToHistory: n, setSidebar: r, setCurrentAction: i } = N(), { width: a, height: o } = t(), s = e(), c = l(s), u = l(s);
2181
2171
  return {
2182
2172
  handleRotate: (e) => {
2183
2173
  u.current += e, i({
@@ -2187,7 +2177,7 @@ var Ot = ({ boxRef: e }) => {
2187
2177
  },
2188
2178
  handleSave: () => {
2189
2179
  n({
2190
- ...Le(a, o, c.current, u.current),
2180
+ ...ze(a, o, c.current, u.current),
2191
2181
  action: {
2192
2182
  name: m.ROTATE,
2193
2183
  args: { degrees: u.current }
@@ -2199,54 +2189,50 @@ var Ot = ({ boxRef: e }) => {
2199
2189
  }
2200
2190
  };
2201
2191
  }, $ = {
2202
- rotate: "_rotate_gkt07_1",
2203
- btnH: "_btnH_gkt07_14",
2204
- btnV: "_btnV_gkt07_20"
2205
- }, zt = () => {
2206
- let { handleRotate: e, handleSave: t, handleClose: n } = Rt();
2207
- return /* @__PURE__ */ (0, b.jsxs)("div", {
2208
- className: $.rotate,
2209
- children: [/* @__PURE__ */ (0, b.jsx)("div", {
2210
- className: $.scGroup,
2211
- children: /* @__PURE__ */ (0, b.jsxs)(V, {
2212
- orientation: "horizontal",
2213
- className: $.tooltip,
2214
- children: [/* @__PURE__ */ (0, b.jsx)(I, {
2215
- variant: "outline",
2216
- className: $.btnH,
2217
- onClick: () => e(90),
2218
- "aria-label": "+90°",
2219
- "data-tooltip": "+90°",
2220
- children: /* @__PURE__ */ (0, b.jsx)(de, {})
2221
- }), /* @__PURE__ */ (0, b.jsx)(I, {
2222
- variant: "outline",
2223
- className: $.btnV,
2224
- onClick: () => e(-90),
2225
- "aria-label": "-90°",
2226
- "data-tooltip": "-90°",
2227
- children: /* @__PURE__ */ (0, b.jsx)(fe, {})
2228
- })]
2229
- })
2230
- }), /* @__PURE__ */ (0, b.jsx)(z, {
2231
- onSave: t,
2232
- onClose: n
2233
- })]
2234
- });
2235
- }, Bt = { frame: "_frame_15mog_1" }, Vt = () => {
2236
- let { currentAction: e } = P(), t = e?.name === m.RESIZE, n = e?.name === m.CROP, r = e?.name === m.PRESET_CROP, i = e?.name === m.FLIP, a = e?.name === m.ROTATE, o = n || r;
2192
+ btnH: "_btnH_15adi_1",
2193
+ btnV: "_btnV_15adi_7"
2194
+ }, Vt = () => {
2195
+ let { handleRotate: e, handleSave: t, handleClose: n } = Bt();
2196
+ return /* @__PURE__ */ (0, b.jsxs)(V, { children: [/* @__PURE__ */ (0, b.jsx)("div", {
2197
+ className: $.scGroup,
2198
+ children: /* @__PURE__ */ (0, b.jsxs)(B, {
2199
+ orientation: "horizontal",
2200
+ className: $.tooltip,
2201
+ children: [/* @__PURE__ */ (0, b.jsx)(F, {
2202
+ variant: "outline",
2203
+ className: $.btnH,
2204
+ onClick: () => e(90),
2205
+ "aria-label": "+90°",
2206
+ "data-tooltip": "+90°",
2207
+ children: /* @__PURE__ */ (0, b.jsx)(fe, {})
2208
+ }), /* @__PURE__ */ (0, b.jsx)(F, {
2209
+ variant: "outline",
2210
+ className: $.btnV,
2211
+ onClick: () => e(-90),
2212
+ "aria-label": "-90°",
2213
+ "data-tooltip": "-90°",
2214
+ children: /* @__PURE__ */ (0, b.jsx)(pe, {})
2215
+ })]
2216
+ })
2217
+ }), /* @__PURE__ */ (0, b.jsx)(R, {
2218
+ onSave: t,
2219
+ onClose: n
2220
+ })] });
2221
+ }, Ht = { frame: "_frame_15mog_1" }, Ut = () => {
2222
+ let { currentAction: e } = N(), t = e?.name === m.RESIZE, n = e?.name === m.CROP, r = e?.name === m.PRESET_CROP, i = e?.name === m.FLIP, a = e?.name === m.ROTATE, o = n || r;
2237
2223
  return /* @__PURE__ */ (0, b.jsxs)("div", {
2238
- className: `${Bt.frame} ${o ? R.mask : ""}`,
2224
+ className: `${Ht.frame} ${o ? L.mask : ""}`,
2239
2225
  children: [
2240
- /* @__PURE__ */ (0, b.jsx)(ht, { style: o ? { opacity: .4 } : {} }),
2241
- t && /* @__PURE__ */ (0, b.jsx)(pt, {}),
2242
- (n || r) && /* @__PURE__ */ (0, b.jsx)(gt, {}, e?.args?.id),
2243
- n && /* @__PURE__ */ (0, b.jsx)(bt, {}),
2244
- r && /* @__PURE__ */ (0, b.jsx)(Ft, {}),
2245
- i && /* @__PURE__ */ (0, b.jsx)(Lt, {}),
2246
- a && /* @__PURE__ */ (0, b.jsx)(zt, {})
2226
+ /* @__PURE__ */ (0, b.jsx)(_t, { style: o ? { opacity: .4 } : {} }),
2227
+ t && /* @__PURE__ */ (0, b.jsx)(ht, {}),
2228
+ (n || r) && /* @__PURE__ */ (0, b.jsx)(vt, {}, e?.args?.id),
2229
+ n && /* @__PURE__ */ (0, b.jsx)(St, {}),
2230
+ r && /* @__PURE__ */ (0, b.jsx)(Lt, {}),
2231
+ i && /* @__PURE__ */ (0, b.jsx)(zt, {}),
2232
+ a && /* @__PURE__ */ (0, b.jsx)(Vt, {})
2247
2233
  ]
2248
2234
  });
2249
- }, Ht = ({ image: e, onSave: t, onBack: n, theme: r = "light", settings: i = h }) => {
2235
+ }, Wt = ({ image: e, onSave: t, onBack: n, theme: r = "light", settings: i = h }) => {
2250
2236
  let [a, o] = u(null), s = O("sm", a), c = {
2251
2237
  ...h,
2252
2238
  ...i
@@ -2255,31 +2241,31 @@ var Ot = ({ boxRef: e }) => {
2255
2241
  skip: c?.tools?.length === 0
2256
2242
  });
2257
2243
  return c?.tools?.length === 0 ? /* @__PURE__ */ (0, b.jsx)("div", {
2258
- className: `${R.root} ${R.wrapper}`,
2244
+ className: `${L.root} ${L.wrapper}`,
2259
2245
  "data-theme": r,
2260
2246
  children: /* @__PURE__ */ (0, b.jsx)("div", {
2261
- className: R.system,
2247
+ className: L.system,
2262
2248
  children: /* @__PURE__ */ (0, b.jsx)("div", {
2263
- className: R.textRed,
2249
+ className: L.textRed,
2264
2250
  children: "No tools selected."
2265
2251
  })
2266
2252
  })
2267
2253
  }) : l || d || !g || !f ? /* @__PURE__ */ (0, b.jsx)("div", {
2268
- className: `${R.root} ${R.wrapper}`,
2254
+ className: `${L.root} ${L.wrapper}`,
2269
2255
  "data-theme": r,
2270
2256
  children: /* @__PURE__ */ (0, b.jsxs)("div", {
2271
- className: R.system,
2257
+ className: L.system,
2272
2258
  children: [
2273
- l && /* @__PURE__ */ (0, b.jsx)(ge, { style: {
2259
+ l && /* @__PURE__ */ (0, b.jsx)(_e, { style: {
2274
2260
  width: 48,
2275
2261
  height: 48
2276
2262
  } }),
2277
2263
  d && /* @__PURE__ */ (0, b.jsx)("div", {
2278
- className: R.textRed,
2264
+ className: L.textRed,
2279
2265
  children: d
2280
2266
  }),
2281
2267
  !l && !d && (!g || !f) && /* @__PURE__ */ (0, b.jsx)("div", {
2282
- className: R.textRed,
2268
+ className: L.textRed,
2283
2269
  children: "Failed to load image."
2284
2270
  })
2285
2271
  ]
@@ -2294,23 +2280,23 @@ var Ot = ({ boxRef: e }) => {
2294
2280
  settings: c,
2295
2281
  children: /* @__PURE__ */ (0, b.jsx)("div", {
2296
2282
  ref: o,
2297
- className: `${R.root} ${R.wrapper}`,
2283
+ className: `${L.root} ${L.wrapper}`,
2298
2284
  "data-theme": r,
2299
2285
  children: /* @__PURE__ */ (0, b.jsxs)("div", {
2300
- className: `${c?.infobar ? R.grid : R.gridNoInfobar} ${s ? R.mobile : ""}`,
2286
+ className: `${c?.infobar ? L.grid : L.gridNoInfobar} ${s ? L.mobile : ""}`,
2301
2287
  children: [
2302
- /* @__PURE__ */ (0, b.jsx)(Ze, {
2288
+ /* @__PURE__ */ (0, b.jsx)($e, {
2303
2289
  onSave: t,
2304
2290
  onBack: n,
2305
2291
  isMobile: s
2306
2292
  }),
2307
- /* @__PURE__ */ (0, b.jsx)(tt, { isMobile: s }),
2308
- c?.infobar && /* @__PURE__ */ (0, b.jsx)(it, {}),
2309
- /* @__PURE__ */ (0, b.jsx)(Vt, {})
2293
+ /* @__PURE__ */ (0, b.jsx)(rt, { isMobile: s }),
2294
+ c?.infobar && /* @__PURE__ */ (0, b.jsx)(ot, {}),
2295
+ /* @__PURE__ */ (0, b.jsx)(Ut, {})
2310
2296
  ]
2311
2297
  })
2312
2298
  })
2313
2299
  });
2314
2300
  };
2315
2301
  //#endregion
2316
- export { Ht as Pixedi };
2302
+ export { Wt as Pixedi };