"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[698],{12161:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("Armchair",[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]])},86509:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("BookImage",[["path",{d:"m20 13.7-2.1-2.1a2 2 0 0 0-2.8 0L9.7 17",key:"q6ojf0"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}],["circle",{cx:"10",cy:"8",r:"2",key:"2qkj4p"}]])},68754:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]])},51770:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]])},6437:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},26490:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},44715:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},34248:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]])},40213:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("LassoSelect",[["path",{d:"M7 22a5 5 0 0 1-2-4",key:"umushi"}],["path",{d:"M7 16.93c.96.43 1.96.74 2.99.91",key:"ybbtv3"}],["path",{d:"M3.34 14A6.8 6.8 0 0 1 2 10c0-4.42 4.48-8 10-8s10 3.58 10 8a7.19 7.19 0 0 1-.33 2",key:"gt5e1w"}],["path",{d:"M5 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z",key:"bq3ynw"}],["path",{d:"M14.33 22h-.09a.35.35 0 0 1-.24-.32v-10a.34.34 0 0 1 .33-.34c.08 0 .15.03.21.08l7.34 6a.33.33 0 0 1-.21.59h-4.49l-2.57 3.85a.35.35 0 0 1-.28.14z",key:"72q637"}]])},95200:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},85149:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("MailCheck",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]])},49783:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]])},78031:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]])},77329:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]])},85715:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("SmilePlus",[["path",{d:"M22 11v1a10 10 0 1 1-9-10",key:"ew0xw9"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}]])},13031:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("SquareSplitHorizontal",[["path",{d:"M8 19H5c-1 0-2-1-2-2V7c0-1 1-2 2-2h3",key:"lubmu8"}],["path",{d:"M16 5h3c1 0 2 1 2 2v10c0 1-1 2-2 2h-3",key:"1ag34g"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]])},22343:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]])},88382:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]])},7913:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]])},52235:function(e,t,n){n.d(t,{Z:function(){return r}});/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let r=(0,n(57977).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},57759:function(e,t,n){var r=n(2265);let a=r.forwardRef(function({title:e,titleId:t,...n},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},n),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9 4.5a.75.75 0 0 1 .721.544l.813 2.846a3.75 3.75 0 0 0 2.576 2.576l2.846.813a.75.75 0 0 1 0 1.442l-2.846.813a3.75 3.75 0 0 0-2.576 2.576l-.813 2.846a.75.75 0 0 1-1.442 0l-.813-2.846a3.75 3.75 0 0 0-2.576-2.576l-2.846-.813a.75.75 0 0 1 0-1.442l2.846-.813A3.75 3.75 0 0 0 7.466 7.89l.813-2.846A.75.75 0 0 1 9 4.5ZM18 1.5a.75.75 0 0 1 .728.568l.258 1.036c.236.94.97 1.674 1.91 1.91l1.036.258a.75.75 0 0 1 0 1.456l-1.036.258c-.94.236-1.674.97-1.91 1.91l-.258 1.036a.75.75 0 0 1-1.456 0l-.258-1.036a2.625 2.625 0 0 0-1.91-1.91l-1.036-.258a.75.75 0 0 1 0-1.456l1.036-.258a2.625 2.625 0 0 0 1.91-1.91l.258-1.036A.75.75 0 0 1 18 1.5ZM16.5 15a.75.75 0 0 1 .712.513l.394 1.183c.15.447.5.799.948.948l1.183.395a.75.75 0 0 1 0 1.422l-1.183.395c-.447.15-.799.5-.948.948l-.395 1.183a.75.75 0 0 1-1.422 0l-.395-1.183a1.5 1.5 0 0 0-.948-.948l-1.183-.395a.75.75 0 0 1 0-1.422l1.183-.395c.447-.15.799-.5.948-.948l.395-1.183A.75.75 0 0 1 16.5 15Z",clipRule:"evenodd"}))});t.Z=a},75504:function(e,t,n){n.d(t,{W:function(){return r}});function r(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,r,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t){if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(a&&(a+=" "),a+=r)}else for(r in t)t[r]&&(a&&(a+=" "),a+=r)}return a}(e))&&(r&&(r+=" "),r+=t);return r}},51358:function(e,t,n){n.d(t,{vx:function(){return g}});var r,a=n(2265),i=n(57437),o=(0,a.forwardRef)((e,t)=>{let{transition:n,...r}=e;return(0,i.jsx)("div",{...r,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",transition:n?"clip-path ".concat(n):void 0,userSelect:"none",willChange:"clip-path, transition",KhtmlUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none"},"data-rcs":"clip-item",ref:t})});o.displayName="ContainerClip";var l=(0,a.forwardRef)((e,t)=>{let{children:n,disabled:r,portrait:a,position:o,transition:l}=e,c={position:"absolute",top:0,width:a?"100%":void 0,height:a?void 0:"100%",background:"none",border:0,padding:0,pointerEvents:"all",appearance:"none",WebkitAppearance:"none",MozAppearance:"none",outline:0,transform:a?"translate3d(0, -50% ,0)":"translate3d(-50%, 0, 0)",transition:l?"".concat(a?"top":"left"," ").concat(l):void 0};return(0,i.jsx)("button",{ref:t,"aria-label":"Drag to move or focus and use arrow keys","aria-orientation":a?"vertical":"horizontal","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o,"data-rcs":"handle-container",disabled:r,role:"slider",style:c,children:n})});l.displayName="ThisHandleContainer";var c=e=>{let{flip:t}=e;return(0,i.jsx)("div",{className:"__rcs-handle-arrow",style:{width:0,height:0,borderTop:"8px solid transparent",borderRight:"10px solid",borderBottom:"8px solid transparent",transform:t?"rotate(180deg)":void 0}})},d=e=>{let{className:t="__rcs-handle-root",disabled:n,buttonStyle:r,linesStyle:a,portrait:o,style:l,...d}=e,u={display:"flex",flexDirection:o?"row":"column",placeItems:"center",height:"100%",cursor:n?"not-allowed":o?"ns-resize":"ew-resize",pointerEvents:"none",color:"#fff",...l},s={flexGrow:1,height:o?2:"100%",width:o?"100%":2,backgroundColor:"currentColor",pointerEvents:"auto",boxShadow:"0 0 4px rgba(0,0,0,.5)",...a},h={display:"grid",gridAutoFlow:"column",gap:8,placeContent:"center",flexShrink:0,width:56,height:56,borderRadius:"50%",borderStyle:"solid",borderWidth:2,pointerEvents:"auto",backdropFilter:"blur(7px)",WebkitBackdropFilter:"blur(7px)",backgroundColor:"rgba(0, 0, 0, 0.125)",boxShadow:"0 0 4px rgba(0,0,0,.35)",transform:o?"rotate(90deg)":void 0,...r};return(0,i.jsxs)("div",{...d,className:t,style:u,children:[(0,i.jsx)("div",{className:"__rcs-handle-line",style:s}),(0,i.jsxs)("div",{className:"__rcs-handle-button",style:h,children:[(0,i.jsx)(c,{}),(0,i.jsx)(c,{flip:!0})]}),(0,i.jsx)("div",{className:"__rcs-handle-line",style:s})]})},u=((r=u||{}).ARROW_LEFT="ArrowLeft",r.ARROW_RIGHT="ArrowRight",r.ARROW_UP="ArrowUp",r.ARROW_DOWN="ArrowDown",r),s=function(){let{boxSizing:e="border-box",objectFit:t="cover",objectPosition:n="center center",...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{display:"block",width:"100%",height:"100%",maxWidth:"100%",boxSizing:e,objectFit:t,objectPosition:n,...r}},h=e=>{let t=(0,a.useRef)(e);return(0,a.useEffect)(()=>{t.current=e}),t.current},p=(e,t,n,r)=>{let i=(0,a.useRef)();(0,a.useEffect)(()=>{i.current=t},[t]),(0,a.useEffect)(()=>{if(!(n&&n.addEventListener))return;let t=e=>i.current&&i.current(e);return n.addEventListener(e,t,r),()=>{n.removeEventListener(e,t,r)}},[e,n,r])},y="u">typeof window&&"u">typeof window.document&&"u">typeof window.document.createElement?a.useLayoutEffect:a.useEffect,f=(e,t)=>{let n=(0,a.useRef)(),r=(0,a.useCallback)(()=>{e.current&&n.current&&n.current.observe(e.current)},[e]);y(()=>(n.current=new ResizeObserver(e=>{let[n]=e;return t(n.contentRect)}),r(),()=>{n.current&&n.current.disconnect()}),[t,r])},k={capture:!1,passive:!0},v={capture:!0,passive:!1},b=e=>{e.preventDefault(),e.currentTarget.focus()},g=(0,a.forwardRef)((e,t)=>{let{boundsPadding:n=0,browsingContext:r=globalThis,changePositionOnHover:c=!1,disabled:s=!1,handle:y,itemOne:g,itemTwo:m,keyboardIncrement:x="5%",onlyHandleDraggable:w=!1,onPositionChange:M,portrait:Z=!1,position:R=50,style:C,transition:E,...j}=e,A=(0,a.useRef)(null),S=(0,a.useRef)(null),z=(0,a.useRef)(null),L=(0,a.useRef)(R),[H,_]=(0,a.useState)(!1),[W,q]=(0,a.useState)(!0),N=(0,a.useRef)(!1),[O,P]=(0,a.useState)(),B=h(R),D=(0,a.useCallback)(function(e){let{x:t,y:a,isOffset:i}=e,o=A.current,l=z.current,c=S.current,{width:d,height:u,left:s,top:h}=o.getBoundingClientRect();if(0===d||0===u)return;let p=Math.min(Math.max((Z?i?a-h-r.scrollY:a:i?t-s-r.scrollX:t)/(Z?u:d)*100,0),100),y=Z?u/(o.offsetHeight||1):d/(o.offsetWidth||1),f=n*y/(Z?u:d)*100,k=Math.min(Math.max(p,f*y),100-f*y);L.current=p,l.setAttribute("aria-valuenow","".concat(Math.round(L.current))),l.style.top=Z?"".concat(k,"%"):"0",l.style.left=Z?"0":"".concat(k,"%"),c.style.clipPath=Z?"inset(".concat(k,"% 0 0 0)"):"inset(0 0 0 ".concat(k,"%)"),M&&M(L.current)},[n,M,Z,r]);(0,a.useEffect)(()=>{let{width:e,height:t}=A.current.getBoundingClientRect(),n=R===B?L.current:R;D({x:e/100*n,y:t/100*n})},[n,R,Z,B,D]);let U=(0,a.useCallback)(e=>{e.preventDefault(),s||0!==e.button||(D({isOffset:!0,x:e.pageX,y:e.pageY}),_(!0),q(!0))},[s,D]),F=(0,a.useCallback)(function(e){D({isOffset:!0,x:e.pageX,y:e.pageY}),q(!1)},[D]),T=(0,a.useCallback)(()=>{_(!1),q(!0)},[]),V=(0,a.useCallback)(e=>{let{width:t,height:n}=e,{width:r,height:a}=A.current.getBoundingClientRect();D({x:t/100*L.current*r/t,y:n/100*L.current*a/n})},[D]),I=(0,a.useCallback)(e=>{if(!Object.values(u).includes(e.key))return;e.preventDefault(),q(!0);let{top:t,left:n}=z.current.getBoundingClientRect(),{width:r,height:a}=A.current.getBoundingClientRect(),i="string"==typeof x?parseFloat(x):x/r*100,o=Math.min(Math.max((Z?"ArrowLeft"===e.key||"ArrowDown"===e.key:"ArrowRight"===e.key||"ArrowUp"===e.key)?L.current+i:L.current-i,0),100);D({x:Z?n:r*o/100,y:Z?a*o/100:t})},[x,Z,D]);(0,a.useEffect)(()=>{P(w?z.current:A.current)},[w]),(0,a.useEffect)(()=>{let e=A.current,t=()=>{H||T()};return c&&(e.addEventListener("pointermove",F,k),e.addEventListener("pointerleave",t,k)),()=>{e.removeEventListener("pointermove",F),e.removeEventListener("pointerleave",t)}},[c,F,T,H]),(0,a.useEffect)(()=>(H&&!N.current&&(r.addEventListener("pointermove",F,k),r.addEventListener("pointerup",T,k),N.current=!0),()=>{N.current&&(r.removeEventListener("pointermove",F),r.removeEventListener("pointerup",T),N.current=!1)}),[F,T,H,r]),(0,a.useImperativeHandle)(t,()=>({rootContainer:A.current,handleContainer:z.current,setPosition(e){let{width:t,height:n}=A.current.getBoundingClientRect();D({x:t/100*e,y:n/100*e})}}),[D]),f(A,V),p("keydown",I,z.current,v),p("click",b,z.current,v),p("pointerdown",U,O,v);let X=y||(0,i.jsx)(d,{disabled:s,portrait:Z}),Y=W?E:void 0,G={position:"relative",display:"flex",overflow:"hidden",cursor:H?Z?"ns-resize":"ew-resize":void 0,touchAction:"none",userSelect:"none",KhtmlUserSelect:"none",msUserSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",...C};return(0,i.jsxs)("div",{...j,ref:A,style:G,"data-rcs":"root",children:[g,(0,i.jsx)(o,{ref:S,transition:Y,children:m}),(0,i.jsx)(l,{disabled:s,portrait:Z,position:Math.round(L.current),ref:z,transition:Y,children:X})]})});g.displayName="ReactCompareSlider",(0,a.forwardRef)((e,t)=>{let{style:n,...r}=e,a=s(n);return(0,i.jsx)("img",{ref:t,...r,style:a,"data-rcs":"image"})}).displayName="ReactCompareSliderImage"}}]);