"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[273],{5587:(e,t,n)=>{n.d(t,{Eq:()=>u});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,n,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[n]||(o[n]=new WeakMap);var c=o[n],d=[],h=new Set,f=new Set(u),p=function(e){!e||h.has(e)||(h.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))m(e);else try{var t=e.getAttribute(l),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(c.get(e)||0)+1;r.set(e,a),c.set(e,s),d.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),h.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,o=c.get(e)-1;r.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,i=Array.from(Array.isArray(e)?e:[e]),o=t||(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live]"))),l(i,o,n,"aria-hidden")):function(){return null}}},9053:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},1719:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},1902:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},3565:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},3920:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},7257:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},5440:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]])},8178:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]])},4113:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},4504:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},314:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]])},2725:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]])},872:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},9191:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},3473:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},1773:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},1556:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},2034:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]])},7478:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]])},7866:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("SlidersVertical",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]])},1406:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},5686:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},8684:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},4065:(e,t,n)=>{n.d(t,{A:()=>H});var r,i,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create,Object.create;var s=("function"==typeof SuppressedError&&SuppressedError,n(2115)),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,h=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=f),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return i.options=o({async:!0,ssr:!1},e),i}(),m=function(){},v=s.forwardRef(function(e,t){var n,r,i,l,u=s.useRef(null),f=s.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),v=f[0],g=f[1],y=e.forwardProps,x=e.children,w=e.className,b=e.removeScrollBar,P=e.enabled,S=e.shards,E=e.sideCar,A=e.noIsolation,C=e.inert,T=e.allowPinchZoom,M=e.as,R=e.gapMode,k=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(n=[u,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(i=(0,s.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,l=i.facade,d(function(){var e=h.get(l);if(e){var t=new Set(e),r=new Set(n),i=l.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,i)})}h.set(l,n)},[n]),l),j=o(o({},k),v);return s.createElement(s.Fragment,null,P&&s.createElement(E,{sideCar:p,removeScrollBar:b,shards:S,noIsolation:A,inert:C,setCallbacks:g,allowPinchZoom:!!T,lockRef:u,gapMode:R}),y?s.cloneElement(s.Children.only(x),o(o({},j),{ref:D})):s.createElement(void 0===M?"div":M,o({},j,{className:w,ref:D}),x))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:u,zeroRight:l};var g=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,o({},n))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},x=function(){var e=y();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},w=function(){var e=x();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},P=function(e){return parseInt(e||"",10)||0},S=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[P(n),P(r),P(i)]},E=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=S(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},A=w(),C="data-scroll-locked",T=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(C,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(l," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(u," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(l," .").concat(l," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(u," .").concat(u," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(C,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},M=function(){var e=parseInt(document.body.getAttribute(C)||"0",10);return isFinite(e)?e:0},R=function(){s.useEffect(function(){return document.body.setAttribute(C,(M()+1).toString()),function(){var e=M()-1;e<=0?document.body.removeAttribute(C):document.body.setAttribute(C,e.toString())}},[])},k=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;R();var o=s.useMemo(function(){return E(i)},[i]);return s.createElement(A,{styles:T(o,!t,i,n?"":"!important")})},D=!1;if("undefined"!=typeof window)try{var j=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch(e){D=!1}var L=!!D&&{passive:!1},V=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},N=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),O(e,r)){var i=F(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},O=function(e,t){return"v"===e?V(t,"overflowY"):V(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},I=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,h=0,f=0;do{var p=F(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&O(e,l)&&(h+=v,f+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(c=!0),c},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z=function(e){return[e.deltaX,e.deltaY]},U=function(e){return e&&"current"in e?e.current:e},W=0,_=[];let $=(r=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),i=s.useState(W++)[0],o=s.useState(w)[0],a=s.useRef(e);s.useEffect(function(){a.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(U),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=B(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=N(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=N(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var f=r.current||i;return I(f,t,e,"h"===f?l:u,!0)},[]),u=s.useCallback(function(e){if(_.length&&_[_.length-1]===o){var n="deltaY"in e?z(e):B(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(U).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=s.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=s.useCallback(function(e){n.current=B(e),r.current=void 0},[]),h=s.useCallback(function(t){c(t.type,z(t),t.target,l(t,e.lockRef.current))},[]),f=s.useCallback(function(t){c(t.type,B(t),t.target,l(t,e.lockRef.current))},[]);s.useEffect(function(){return _.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",u,L),document.addEventListener("touchmove",u,L),document.addEventListener("touchstart",d,L),function(){_=_.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,L),document.removeEventListener("touchmove",u,L),document.removeEventListener("touchstart",d,L)}},[]);var p=e.removeScrollBar,m=e.inert;return s.createElement(s.Fragment,null,m?s.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?s.createElement(k,{gapMode:e.gapMode}):null)},p.useMedium(r),g);var G=s.forwardRef(function(e,t){return s.createElement(v,o({},e,{ref:t,sideCar:$}))});G.classNames=v.classNames;let H=G},1779:(e,t,n)=>{let r;n.d(t,{TW:()=>eT,YZ:()=>eE,Zk:()=>E});var i,o=n(2115);let{createElement:a,createContext:s,createRef:l,forwardRef:u,useCallback:c,useContext:d,useEffect:h,useImperativeHandle:f,useLayoutEffect:p,useMemo:m,useRef:v,useState:g}=i||(i=n.t(o,2)),y=(i||(i=n.t(o,2)))[`useId${Math.random()}`.slice(0,5)],x=s(null);x.displayName="PanelGroupContext";let w="function"==typeof y?y:()=>null,b=0;function P(e=null){let t=w(),n=v(e||t||null);return null===n.current&&(n.current=""+b++),null!=e?e:n.current}function S({children:e,className:t="",collapsedSize:n,collapsible:r,defaultSize:i,forwardedRef:o,id:s,maxSize:l,minSize:u,onCollapse:c,onExpand:h,onResize:m,order:g,style:y,tagName:w="div",...b}){let S=d(x);if(null===S)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:E,expandPanel:A,getPanelSize:C,getPanelStyle:T,groupId:M,isPanelCollapsed:R,reevaluatePanelConstraints:k,registerPanel:D,resizePanel:j,unregisterPanel:L}=S,V=P(s),N=v({callbacks:{onCollapse:c,onExpand:h,onResize:m},constraints:{collapsedSize:n,collapsible:r,defaultSize:i,maxSize:l,minSize:u},id:V,idIsFromProps:void 0!==s,order:g});v({didLogMissingDefaultSizeWarning:!1}),p(()=>{let{callbacks:e,constraints:t}=N.current,o={...t};N.current.id=V,N.current.idIsFromProps=void 0!==s,N.current.order=g,e.onCollapse=c,e.onExpand=h,e.onResize=m,t.collapsedSize=n,t.collapsible=r,t.defaultSize=i,t.maxSize=l,t.minSize=u,(o.collapsedSize!==t.collapsedSize||o.collapsible!==t.collapsible||o.maxSize!==t.maxSize||o.minSize!==t.minSize)&&k(N.current,o)}),p(()=>{let e=N.current;return D(e),()=>{L(e)}},[g,V,D,L]),f(o,()=>({collapse:()=>{E(N.current)},expand:e=>{A(N.current,e)},getId:()=>V,getSize:()=>C(N.current),isCollapsed:()=>R(N.current),isExpanded:()=>!R(N.current),resize:e=>{j(N.current,e)}}),[E,A,C,R,V,j]);let O=T(N.current,i);return a(w,{...b,children:e,className:t,id:s,style:{...O,...y},"data-panel":"","data-panel-collapsible":r||void 0,"data-panel-group-id":M,"data-panel-id":V,"data-panel-size":parseFloat(""+O.flexGrow).toFixed(1)})}let E=u((e,t)=>a(S,{...e,forwardedRef:t}));S.displayName="Panel",E.displayName="forwardRef(Panel)";let A=null,C=null;function T(e,t){let n=function(e,t){if(t){let e=(t&F)!=0,n=(t&I)!=0,r=(t&B)!=0,i=(t&z)!=0;if(e)return r?"se-resize":i?"ne-resize":"e-resize";if(n)return r?"sw-resize":i?"nw-resize":"w-resize";if(r)return"s-resize";if(i)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);A!==n&&(A=n,null===C&&(C=document.createElement("style"),r&&C.setAttribute("nonce",r),document.head.appendChild(C)),C.innerHTML=`*{cursor: ${n}!important;}`)}function M(e){return"keydown"===e.type}function R(e){return e.type.startsWith("pointer")}function k(e){return e.type.startsWith("mouse")}function D(e){if(R(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(k(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}let j=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function L(e){let t=e.length;for(;t--;){let n=e[t];if(ee(n,"Missing node"),function(e){let t=getComputedStyle(e);return!!("fixed"===t.position||"auto"!==t.zIndex&&("static"!==t.position||function(e){var t;let n=getComputedStyle(null!==(t=O(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||1>+t.opacity||"transform"in t&&"none"!==t.transform||"webkitTransform"in t&&"none"!==t.webkitTransform||"mixBlendMode"in t&&"normal"!==t.mixBlendMode||"filter"in t&&"none"!==t.filter||"webkitFilter"in t&&"none"!==t.webkitFilter||"isolation"in t&&"isolate"===t.isolation||j.test(t.willChange))||"touch"===t.webkitOverflowScrolling}(n))return n}return null}function V(e){return e&&Number(getComputedStyle(e).zIndex)||0}function N(e){let t=[];for(;e;)t.push(e),e=O(e);return t}function O(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let F=1,I=2,B=4,z=8,U="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),W=[],_=!1,$=new Map,G=new Map,H=new Set;function X(e){let{target:t}=e,{x:n,y:r}=D(e);_=!0,Y({target:t,x:n,y:r}),Z(),W.length>0&&(J("down",e),e.preventDefault(),e.stopPropagation())}function q(e){let{x:t,y:n}=D(e);if(_&&0===e.buttons&&(_=!1,J("up",e)),!_){let{target:r}=e;Y({target:r,x:t,y:n})}J("move",e),Q(),W.length>0&&e.preventDefault()}function K(e){let{target:t}=e,{x:n,y:r}=D(e);G.clear(),_=!1,W.length>0&&e.preventDefault(),J("up",e),Y({target:t,x:n,y:r}),Q(),Z()}function Y({target:e,x:t,y:n}){W.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),H.forEach(e=>{let{element:i,hitAreaMargins:o}=e,a=i.getBoundingClientRect(),{bottom:s,left:l,right:u,top:c}=a,d=U?o.coarse:o.fine;if(t>=l-d&&t<=u+d&&n>=c-d&&n<=s+d){if(null!==r&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&function(e,t){let n;if(e===t)throw Error("Cannot compare node with itself");let r={a:N(e),b:N(t)};for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;ee(n,"Stacking order can only be calculated for elements with a common ancestor");let i={a:V(L(r.a)),b:V(L(r.b))};if(i.a===i.b){let e=n.childNodes,t={a:r.a.at(-1),b:r.b.at(-1)},i=e.length;for(;i--;){let n=e[i];if(n===t.a)return 1;if(n===t.b)return -1}}return Math.sign(i.a-i.b)}(r,i)>0){let e=r,t=!1;for(;e&&!e.contains(i);){var h;if((h=e.getBoundingClientRect()).x<a.x+a.width&&h.x+h.width>a.x&&h.y<a.y+a.height&&h.y+h.height>a.y){t=!0;break}e=e.parentElement}if(t)return}W.push(e)}})}function Q(){let e=!1,t=!1;W.forEach(n=>{let{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;G.forEach(e=>{n|=e}),e&&t?T("intersection",n):e?T("horizontal",n):t?T("vertical",n):null!==C&&(document.head.removeChild(C),A=null,C=null)}function Z(){$.forEach((e,t)=>{let{body:n}=t;n.removeEventListener("contextmenu",K),n.removeEventListener("pointerdown",X),n.removeEventListener("pointerleave",q),n.removeEventListener("pointermove",q)}),window.removeEventListener("pointerup",K),window.removeEventListener("pointercancel",K),H.size>0&&(_?(W.length>0&&$.forEach((e,t)=>{let{body:n}=t;e>0&&(n.addEventListener("contextmenu",K),n.addEventListener("pointerleave",q),n.addEventListener("pointermove",q))}),window.addEventListener("pointerup",K),window.addEventListener("pointercancel",K)):$.forEach((e,t)=>{let{body:n}=t;e>0&&(n.addEventListener("pointerdown",X,{capture:!0}),n.addEventListener("pointermove",q))}))}function J(e,t){H.forEach(n=>{let{setResizeHandlerState:r}=n;r(e,W.includes(n),t)})}function ee(e,t){if(!e)throw console.error(t),Error(t)}function et(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function en(e,t,n=10){return 0===et(e,t,n)}function er(e,t,n){return 0===et(e,t,n)}function ei({panelConstraints:e,panelIndex:t,size:n}){let r=e[t];ee(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:o,maxSize:a=100,minSize:s=0}=r;return 0>et(n,s)&&(n=o&&0>et(n,(i+s)/2)?i:s),n=parseFloat((n=Math.min(a,n)).toFixed(10))}function eo({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:o}){if(er(e,0))return t;let a=[...t],[s,l]=r;ee(null!=s,"Invalid first pivot index"),ee(null!=l,"Invalid second pivot index");let u=0;if("keyboard"===o){{let r=e<0?l:s,i=n[r];ee(i,`Panel constraints not found for index ${r}`);let{collapsedSize:o=0,collapsible:a,minSize:u=0}=i;if(a){let n=t[r];if(ee(null!=n,`Previous layout not found for panel index ${r}`),er(n,o)){let t=u-n;et(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let r=e<0?s:l,i=n[r];ee(i,`No panel constraints found for index ${r}`);let{collapsedSize:o=0,collapsible:a,minSize:u=0}=i;if(a){let n=t[r];if(ee(null!=n,`Previous layout not found for panel index ${r}`),er(n,u)){let t=n-o;et(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let r=e<0?1:-1,i=e<0?l:s,o=0;for(;;){let e=t[i];if(ee(null!=e,`Previous layout not found for panel index ${i}`),o+=ei({panelConstraints:n,panelIndex:i,size:100})-e,(i+=r)<0||i>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(o));e=e<0?0-a:a}{let r=e<0?s:l;for(;r>=0&&r<n.length;){let i=Math.abs(e)-Math.abs(u),o=t[r];ee(null!=o,`Previous layout not found for panel index ${r}`);let s=ei({panelConstraints:n,panelIndex:r,size:o-i});if(!er(o,s)&&(u+=o-s,a[r]=s,u.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!er(e[n],t[n],void 0))return!1;return!0}(i,a))return i;{let r=e<0?l:s,i=t[r];ee(null!=i,`Previous layout not found for panel index ${r}`);let o=i+u,c=ei({panelConstraints:n,panelIndex:r,size:o});if(a[r]=c,!er(c,o)){let t=o-c,r=e<0?l:s;for(;r>=0&&r<n.length;){let i=a[r];ee(null!=i,`Previous layout not found for panel index ${r}`);let o=ei({panelConstraints:n,panelIndex:r,size:i+t});if(er(i,o)||(t-=o-i,a[r]=o),er(t,0))break;e>0?r--:r++}}}return er(a.reduce((e,t)=>t+e,0),100)?a:i}function ea(e,t=document){return Array.from(t.querySelectorAll(`[data-panel-resize-handle-id][data-panel-group-id="${e}"]`))}function es(e,t,n=document){let r=ea(e,n).findIndex(e=>e.getAttribute("data-panel-resize-handle-id")===t);return null!=r?r:null}function el(e,t,n){let r=es(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function eu(e,t=document){var n;return t instanceof HTMLElement&&(null==t?void 0:null===(n=t.dataset)||void 0===n?void 0:n.panelGroupId)==e?t:t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function ec(e,t=document){return t.querySelector(`[data-panel-resize-handle-id="${e}"]`)||null}function ed(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function eh(e,t){let{x:n,y:r}=D(t);return"horizontal"===e?n:r}function ef(e,t,n){t.forEach((t,r)=>{let i=e[r];ee(i,`Panel data not found for index ${r}`);let{callbacks:o,constraints:a,id:s}=i,{collapsedSize:l=0,collapsible:u}=a,c=n[s];if(null==c||t!==c){n[s]=t;let{onCollapse:e,onExpand:r,onResize:i}=o;i&&i(t,c),u&&(e||r)&&(r&&(null==c||en(c,l))&&!en(t,l)&&r(),e&&(null==c||!en(c,l))&&en(t,l)&&e())}})}function ep(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function em(e){try{if("undefined"!=typeof localStorage)e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function ev(e){return`react-resizable-panels:${e}`}function eg(e){return e.map(e=>{let{constraints:t,id:n,idIsFromProps:r,order:i}=e;return r?n:i?`${i}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ey(e,t){try{let n=ev(e),r=t.getItem(n);if(r){let e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function ex(e,t,n,r,i){var o;let a=ev(e),s=eg(t),l=null!==(o=ey(e,i))&&void 0!==o?o:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{i.setItem(a,JSON.stringify(l))}catch(e){console.error(e)}}function ew({layout:e,panelConstraints:t}){let n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!er(r,100)&&n.length>0)for(let e=0;e<t.length;e++){let t=n[e];ee(null!=t,`No layout data found for index ${e}`);let i=100/r*t;n[e]=i}let i=0;for(let e=0;e<t.length;e++){let r=n[e];ee(null!=r,`No layout data found for index ${e}`);let o=ei({panelConstraints:t,panelIndex:e,size:r});r!=o&&(i+=r-o,n[e]=o)}if(!er(i,0))for(let e=0;e<t.length;e++){let r=n[e];ee(null!=r,`No layout data found for index ${e}`);let o=ei({panelConstraints:t,panelIndex:e,size:r+i});if(r!==o&&(i-=o-r,n[e]=o,er(i,0)))break}return n}let eb={getItem:e=>(em(eb),eb.getItem(e)),setItem:(e,t)=>{em(eb),eb.setItem(e,t)}},eP={};function eS({autoSaveId:e=null,children:t,className:n="",direction:r,forwardedRef:i,id:o=null,onLayout:s=null,keyboardResizeBy:l=null,storage:u=eb,style:d,tagName:y="div",...w}){let b=P(o),S=v(null),[E,A]=g(null),[C,T]=g([]),D=function(){let[e,t]=g(0);return c(()=>t(e=>e+1),[])}(),j=v({}),L=v(new Map),V=v(0),N=v({autoSaveId:e,direction:r,dragState:E,id:b,keyboardResizeBy:l,onLayout:s,storage:u}),O=v({layout:C,panelDataArray:[],panelDataArrayChanged:!1});v({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f(i,()=>({getId:()=>N.current.id,getLayout:()=>{let{layout:e}=O.current;return e},setLayout:e=>{let{onLayout:t}=N.current,{layout:n,panelDataArray:r}=O.current,i=ew({layout:e,panelConstraints:r.map(e=>e.constraints)});ed(n,i)||(T(i),O.current.layout=i,t&&t(i),ef(r,i,j.current))}}),[]),p(()=>{N.current.autoSaveId=e,N.current.direction=r,N.current.dragState=E,N.current.id=b,N.current.onLayout=s,N.current.storage=u}),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:a}){v({didWarnAboutMissingResizeHandle:!1}),p(()=>{if(!o)return;let e=ea(n,o);for(let t=0;t<i.length-1;t++){let{valueMax:n,valueMin:o,valueNow:a}=function({layout:e,panelsArray:t,pivotIndices:n}){let r=0,i=100,o=0,a=0,s=n[0];return ee(null!=s,"No pivot index found"),t.forEach((e,t)=>{let{constraints:n}=e,{maxSize:l=100,minSize:u=0}=n;t===s?(r=u,i=l):(o+=u,a+=l)}),{valueMax:Math.min(i,100-o),valueMin:Math.max(r,100-a),valueNow:e[s]}}({layout:r,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{let e=i[t];ee(e,`No panel data found for index "${t}"`),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(o)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,r,i,o]),h(()=>{if(!o)return;let e=t.current;ee(e,"Eager values not found");let{panelDataArray:i}=e;ee(null!=eu(n,o),`No group found for id "${n}"`);let s=ea(n,o);ee(s,`No resize handles found for group id "${n}"`);let l=s.map(e=>{let t=e.getAttribute("data-panel-resize-handle-id");ee(t,"Resize handle element has no handle id attribute");let[s,l]=function(e,t,n,r=document){var i,o,a,s;let l=ec(t,r),u=ea(e,r),c=l?u.indexOf(l):-1;return[null!==(i=null===(o=n[c])||void 0===o?void 0:o.id)&&void 0!==i?i:null,null!==(a=null===(s=n[c+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(n,t,i,o);if(null==s||null==l)return()=>{};let u=e=>{if(!e.defaultPrevented&&"Enter"===e.key){e.preventDefault();let l=i.findIndex(e=>e.id===s);if(l>=0){let e=i[l];ee(e,`No panel data found for index ${l}`);let s=r[l],{collapsedSize:u=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=s&&c){let e=eo({delta:er(s,u)?d-u:u-s,initialLayout:r,panelConstraints:i.map(e=>e.constraints),pivotIndices:el(n,t,o),prevLayout:r,trigger:"keyboard"});r!==e&&a(e)}}}};return e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}});return()=>{l.forEach(e=>e())}},[o,e,t,n,r,i,a])}({committedValuesRef:N,eagerValuesRef:O,groupId:b,layout:C,panelDataArray:O.current.panelDataArray,setLayout:T,panelGroupElement:S.current}),h(()=>{let{panelDataArray:t}=O.current;if(e){if(0===C.length||C.length!==t.length)return;let n=eP[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(ex,100),eP[e]=n),n(e,[...t],new Map(L.current),C,u)}},[e,C,u]),h(()=>{});let U=c(e=>{let{onLayout:t}=N.current,{layout:n,panelDataArray:r}=O.current;if(e.constraints.collapsible){let i=r.map(e=>e.constraints),{collapsedSize:o=0,panelSize:a,pivotIndices:s}=eC(r,e,n);if(ee(null!=a,`Panel size not found for panel "${e.id}"`),!en(a,o)){L.current.set(e.id,a);let l=eo({delta:eA(r,e)===r.length-1?a-o:o-a,initialLayout:n,panelConstraints:i,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});ep(n,l)||(T(l),O.current.layout=l,t&&t(l),ef(r,l,j.current))}}},[]),W=c((e,t)=>{let{onLayout:n}=N.current,{layout:r,panelDataArray:i}=O.current;if(e.constraints.collapsible){let o=i.map(e=>e.constraints),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:u}=eC(i,e,r),c=null!=t?t:l;if(en(s,a)){let t=L.current.get(e.id),a=null!=t&&t>=c?t:c,l=eo({delta:eA(i,e)===i.length-1?s-a:a-s,initialLayout:r,panelConstraints:o,pivotIndices:u,prevLayout:r,trigger:"imperative-api"});ep(r,l)||(T(l),O.current.layout=l,n&&n(l),ef(i,l,j.current))}}},[]),_=c(e=>{let{layout:t,panelDataArray:n}=O.current,{panelSize:r}=eC(n,e,t);return ee(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),$=c((e,t)=>{let{panelDataArray:n}=O.current,r=eA(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:i,precision:o=3}){let a=n[i];return{flexBasis:0,flexGrow:null==a?void 0!=e?e.toPrecision(o):"1":1===r.length?"1":a.toPrecision(o),flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:E,layout:C,panelData:n,panelIndex:r})},[E,C]),H=c(e=>{let{layout:t,panelDataArray:n}=O.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=eC(n,e,t);return ee(null!=o,`Panel size not found for panel "${e.id}"`),!0===i&&en(o,r)},[]),X=c(e=>{let{layout:t,panelDataArray:n}=O.current,{collapsedSize:r=0,collapsible:i,panelSize:o}=eC(n,e,t);return ee(null!=o,`Panel size not found for panel "${e.id}"`),!i||et(o,r)>0},[]),q=c(e=>{let{panelDataArray:t}=O.current;t.push(e),t.sort((e,t)=>{let n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),O.current.panelDataArrayChanged=!0,D()},[D]);p(()=>{if(O.current.panelDataArrayChanged){O.current.panelDataArrayChanged=!1;let{autoSaveId:n,onLayout:r,storage:i}=N.current,{layout:o,panelDataArray:a}=O.current,s=null;if(n){var e,t;let r=null!==(t=(null!==(e=ey(n,i))&&void 0!==e?e:{})[eg(a)])&&void 0!==t?t:null;r&&(L.current=new Map(Object.entries(r.expandToSizes)),s=r.layout)}null==s&&(s=function({panelDataArray:e}){let t=Array(e.length),n=e.map(e=>e.constraints),r=0,i=100;for(let o=0;o<e.length;o++){let e=n[o];ee(e,`Panel constraints not found for index ${o}`);let{defaultSize:a}=e;null!=a&&(r++,t[o]=a,i-=a)}for(let o=0;o<e.length;o++){let a=n[o];ee(a,`Panel constraints not found for index ${o}`);let{defaultSize:s}=a;if(null!=s)continue;let l=i/(e.length-r);r++,t[o]=l,i-=l}return t}({panelDataArray:a}));let l=ew({layout:s,panelConstraints:a.map(e=>e.constraints)});ed(o,l)||(T(l),O.current.layout=l,r&&r(l),ef(a,l,j.current))}}),p(()=>{let e=O.current;return()=>{e.layout=[]}},[]);let K=c(e=>{let t=!1,n=S.current;return n&&"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0),function(n){n.preventDefault();let r=S.current;if(!r)return()=>null;let{direction:i,dragState:o,id:a,keyboardResizeBy:s,onLayout:l}=N.current,{layout:u,panelDataArray:c}=O.current,{initialLayout:d}=null!=o?o:{},h=el(a,e,r),f=function(e,t,n,r,i,o){if(M(e)){let t="horizontal"===n,r=0;r=e.shiftKey?100:null!=i?i:10;let o=0;switch(e.key){case"ArrowDown":o=t?0:r;break;case"ArrowLeft":o=t?-r:0;break;case"ArrowRight":o=t?r:0;break;case"ArrowUp":o=t?0:-r;break;case"End":o=100;break;case"Home":o=-100}return o}return null==r?0:function(e,t,n,r,i){let o="horizontal"===n,a=ec(t,i);ee(a,`No resize handle element found for id "${t}"`);let s=a.getAttribute("data-panel-group-id");ee(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r,u=eh(n,e),c=eu(s,i);ee(c,`No group element found for id "${s}"`);let d=c.getBoundingClientRect();return(u-l)/(o?d.width:d.height)*100}(e,t,n,r,o)}(n,e,i,o,s,r),p="horizontal"===i;p&&t&&(f=-f);let m=eo({delta:f,initialLayout:null!=d?d:u,panelConstraints:c.map(e=>e.constraints),pivotIndices:h,prevLayout:u,trigger:M(n)?"keyboard":"mouse-or-touch"}),v=!ep(u,m);if((R(n)||k(n))&&V.current!=f){var g,y;(V.current=f,v||0===f)?G.set(e,0):p?(g=f<0?F:I,G.set(e,g)):(y=f<0?B:z,G.set(e,y))}v&&(T(m),O.current.layout=m,l&&l(m),ef(c,m,j.current))}},[]),Y=c((e,t)=>{let{onLayout:n}=N.current,{layout:r,panelDataArray:i}=O.current,o=i.map(e=>e.constraints),{panelSize:a,pivotIndices:s}=eC(i,e,r);ee(null!=a,`Panel size not found for panel "${e.id}"`);let l=eo({delta:eA(i,e)===i.length-1?a-t:t-a,initialLayout:r,panelConstraints:o,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});ep(r,l)||(T(l),O.current.layout=l,n&&n(l),ef(i,l,j.current))},[]),Q=c((e,t)=>{let{layout:n,panelDataArray:r}=O.current,{collapsedSize:i=0,collapsible:o}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:u=0}=e.constraints,{panelSize:c}=eC(r,e,n);null!=c&&(o&&s&&en(c,i)?en(i,a)||Y(e,a):c<u?Y(e,u):c>l&&Y(e,l))},[Y]),Z=c((e,t)=>{let{direction:n}=N.current,{layout:r}=O.current;if(!S.current)return;let i=ec(e,S.current);ee(i,`Drag handle element not found for id "${e}"`);let o=eh(n,t);A({dragHandleId:e,dragHandleRect:i.getBoundingClientRect(),initialCursorPosition:o,initialLayout:r})},[]),J=c(()=>{A(null)},[]),ei=c(e=>{let{panelDataArray:t}=O.current,n=eA(t,e);n>=0&&(t.splice(n,1),delete j.current[e.id],O.current.panelDataArrayChanged=!0,D())},[D]),es=m(()=>({collapsePanel:U,direction:r,dragState:E,expandPanel:W,getPanelSize:_,getPanelStyle:$,groupId:b,isPanelCollapsed:H,isPanelExpanded:X,reevaluatePanelConstraints:Q,registerPanel:q,registerResizeHandle:K,resizePanel:Y,startDragging:Z,stopDragging:J,unregisterPanel:ei,panelGroupElement:S.current}),[U,E,r,W,_,$,b,H,X,Q,q,K,Y,Z,J,ei]);return a(x.Provider,{value:es},a(y,{...w,children:t,className:n,id:o,ref:S,style:{display:"flex",flexDirection:"horizontal"===r?"row":"column",height:"100%",overflow:"hidden",width:"100%",...d},"data-panel-group":"","data-panel-group-direction":r,"data-panel-group-id":b}))}let eE=u((e,t)=>a(eS,{...e,forwardedRef:t}));function eA(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function eC(e,t,n){let r=eA(e,t),i=r===e.length-1,o=n[r];return{...t.constraints,panelSize:o,pivotIndices:i?[r-1,r]:[r,r+1]}}function eT({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:r,id:i,onBlur:o,onDragging:s,onFocus:l,style:u={},tabIndex:c=0,tagName:f="div",...m}){var y,w;let b=v(null),S=v({onDragging:s});h(()=>{S.current.onDragging=s});let E=d(x);if(null===E)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:A,groupId:C,registerResizeHandle:T,startDragging:M,stopDragging:R,panelGroupElement:k}=E,D=P(i),[j,L]=g("inactive"),[V,N]=g(!1),[O,F]=g(null),I=v({state:j});p(()=>{I.current.state=j}),h(()=>{if(n)F(null);else{let e=T(D);F(()=>e)}},[n,D,T]);let B=null!==(y=null==r?void 0:r.coarse)&&void 0!==y?y:15,z=null!==(w=null==r?void 0:r.fine)&&void 0!==w?w:5;return h(()=>{if(n||null==O)return;let e=b.current;return ee(e,"Element ref not attached"),function(e,t,n,r,i){var o;let{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:i},l=null!==(o=$.get(a))&&void 0!==o?o:0;return $.set(a,l+1),H.add(s),Z(),function(){var t;G.delete(e),H.delete(s);let n=null!==(t=$.get(a))&&void 0!==t?t:1;if($.set(a,n-1),Z(),1===n&&$.delete(a),W.includes(s)){let e=W.indexOf(s);e>=0&&W.splice(e,1),Q(),i("up",!0,null)}}}(D,e,A,{coarse:B,fine:z},(e,t,n)=>{if(t)switch(e){case"down":{L("drag"),ee(n,'Expected event to be defined for "down" action'),M(D,n);let{onDragging:e}=S.current;e&&e(!0);break}case"move":{let{state:e}=I.current;"drag"!==e&&L("hover"),ee(n,'Expected event to be defined for "move" action'),O(n);break}case"up":{L("hover"),R();let{onDragging:e}=S.current;e&&e(!1)}}else L("inactive")})},[B,A,n,z,T,D,O,M,R]),!function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:r}){h(()=>{if(e||null==n||null==r)return;let i=ec(t,r);if(null==i)return;let o=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();let n=i.getAttribute("data-panel-group-id");ee(n,`No group element found for id "${n}"`);let o=ea(n,r),a=es(n,t,r);ee(null!==a,`No resize element found for id "${t}"`);let s=e.shiftKey?a>0?a-1:o.length-1:a+1<o.length?a+1:0;o[s].focus()}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,e,t,n])}({disabled:n,handleId:D,resizeHandler:O,panelGroupElement:k}),a(f,{...m,children:e,className:t,id:i,onBlur:()=>{N(!1),null==o||o()},onFocus:()=>{N(!0),null==l||l()},ref:b,role:"separator",style:{touchAction:"none",userSelect:"none",...u},tabIndex:c,"data-panel-group-direction":A,"data-panel-group-id":C,"data-resize-handle":"","data-resize-handle-active":"drag"===j?"pointer":V?"keyboard":void 0,"data-resize-handle-state":j,"data-panel-resize-handle-enabled":!n,"data-panel-resize-handle-id":D})}eS.displayName="PanelGroup",eE.displayName="forwardRef(PanelGroup)",eT.displayName="PanelResizeHandle"},1786:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},3610:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},9741:(e,t,n)=>{n.d(t,{N:()=>l});var r=n(2115),i=n(8166),o=n(8068),a=n(2317),s=n(5155);function l(e){let t=e+"CollectionProvider",[n,l]=(0,i.A)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,s.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;let h=e+"CollectionSlot",f=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(h,n),l=(0,o.s)(t,i.collectionRef);return(0,s.jsx)(a.DX,{ref:l,children:r})});f.displayName=h;let p=e+"CollectionItemSlot",m="data-radix-collection-item",v=r.forwardRef((e,t)=>{let{scope:n,children:i,...l}=e,u=r.useRef(null),d=(0,o.s)(t,u),h=c(p,n);return r.useEffect(()=>(h.itemMap.set(u,{ref:u,...l}),()=>void h.itemMap.delete(u))),(0,s.jsx)(a.DX,{[m]:"",ref:d,children:i})});return v.displayName=p,[{Provider:d,Slot:f,ItemSlot:v},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},l]}},8068:(e,t,n)=>{n.d(t,{s:()=>a,t:()=>o});var r=n(2115);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}},8559:(e,t,n)=>{n.d(t,{UC:()=>eG,q7:()=>eH,ZL:()=>e$,bL:()=>eW,wv:()=>eX,l9:()=>e_});var r=n(2115),i=n(3610),o=n(8166),a=n(3360),s=n(9741),l=n(8068),u=n(4256),c=n(9674),d=n(2292),h=n(196),f=(n(7668),n(9895)),p=n(7323),m=n(7028),v=n(7357),g=n(2317),y=n(1524),x=n(5587),w=n(4065),b=n(5155),P=["Enter"," "],S=["ArrowUp","PageDown","End"],E=["ArrowDown","PageUp","Home",...S],A={ltr:[...P,"ArrowRight"],rtl:[...P,"ArrowLeft"]},C={ltr:["ArrowLeft"],rtl:["ArrowRight"]},T="Menu",[M,R,k]=(0,s.N)(T),[D,j]=(0,o.A)(T,[k,f.Bk,v.RG]),L=(0,f.Bk)(),V=(0,v.RG)(),[N,O]=D(T),[F,I]=D(T),B=e=>{let{__scopeMenu:t,open:n=!1,children:i,dir:o,onOpenChange:a,modal:s=!0}=e,l=L(t),[c,d]=r.useState(null),h=r.useRef(!1),p=(0,y.c)(a),m=(0,u.jH)(o);return r.useEffect(()=>{let e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,b.jsx)(f.bL,{...l,children:(0,b.jsx)(N,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,b.jsx)(F,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:h,dir:m,modal:s,children:i})})})};B.displayName=T;var z=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=L(n);return(0,b.jsx)(f.Mz,{...i,...r,ref:t})});z.displayName="MenuAnchor";var U="MenuPortal",[W,_]=D(U,{forceMount:void 0}),$=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=O(U,t);return(0,b.jsx)(W,{scope:t,forceMount:n,children:(0,b.jsx)(m.C,{present:n||o.open,children:(0,b.jsx)(p.Z,{asChild:!0,container:i,children:r})})})};$.displayName=U;var G="MenuContent",[H,X]=D(G),q=r.forwardRef((e,t)=>{let n=_(G,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=O(G,e.__scopeMenu),a=I(G,e.__scopeMenu);return(0,b.jsx)(M.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(m.C,{present:r||o.open,children:(0,b.jsx)(M.Slot,{scope:e.__scopeMenu,children:a.modal?(0,b.jsx)(K,{...i,ref:t}):(0,b.jsx)(Y,{...i,ref:t})})})})}),K=r.forwardRef((e,t)=>{let n=O(G,e.__scopeMenu),o=r.useRef(null),a=(0,l.s)(t,o);return r.useEffect(()=>{let e=o.current;if(e)return(0,x.Eq)(e)},[]),(0,b.jsx)(Q,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Y=r.forwardRef((e,t)=>{let n=O(G,e.__scopeMenu);return(0,b.jsx)(Q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Q=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:o=!1,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:p,onEntryFocus:m,onEscapeKeyDown:y,onPointerDownOutside:x,onFocusOutside:P,onInteractOutside:A,onDismiss:C,disableOutsideScroll:T,...M}=e,k=O(G,n),D=I(G,n),j=L(n),N=V(n),F=R(n),[B,z]=r.useState(null),U=r.useRef(null),W=(0,l.s)(t,U,k.onContentChange),_=r.useRef(0),$=r.useRef(""),X=r.useRef(0),q=r.useRef(null),K=r.useRef("right"),Y=r.useRef(0),Q=T?w.A:r.Fragment,Z=T?{as:g.DX,allowPinchZoom:!0}:void 0,J=e=>{var t,n;let r=$.current+e,i=F().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=function(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}(i.map(e=>e.textValue),r,a),l=null===(n=i.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){$.current=t,window.clearTimeout(_.current),""!==t&&(_.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())};r.useEffect(()=>()=>window.clearTimeout(_.current),[]),(0,d.Oh)();let ee=r.useCallback(e=>{var t,n;return K.current===(null===(t=q.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let a=t[e].x,s=t[e].y,l=t[o].x,u=t[o].y;s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,null===(n=q.current)||void 0===n?void 0:n.area)},[]);return(0,b.jsx)(H,{scope:n,searchRef:$,onItemEnter:r.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),onItemLeave:r.useCallback(e=>{var t;ee(e)||(null===(t=U.current)||void 0===t||t.focus(),z(null))},[ee]),onTriggerLeave:r.useCallback(e=>{ee(e)&&e.preventDefault()},[ee]),pointerGraceTimerRef:X,onPointerGraceIntentChange:r.useCallback(e=>{q.current=e},[]),children:(0,b.jsx)(Q,{...Z,children:(0,b.jsx)(h.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.m)(s,e=>{var t;e.preventDefault(),null===(t=U.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,b.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:p,onEscapeKeyDown:y,onPointerDownOutside:x,onFocusOutside:P,onInteractOutside:A,onDismiss:C,children:(0,b.jsx)(v.bL,{asChild:!0,...N,dir:D.dir,orientation:"vertical",loop:o,currentTabStopId:B,onCurrentTabStopIdChange:z,onEntryFocus:(0,i.m)(m,e=>{D.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,b.jsx)(f.UC,{role:"menu","aria-orientation":"vertical","data-state":eS(k.open),"data-radix-menu-content":"",dir:D.dir,...j,...M,ref:W,style:{outline:"none",...M.style},onKeyDown:(0,i.m)(M.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&J(e.key));let i=U.current;if(e.target!==i||!E.includes(e.key))return;e.preventDefault();let o=F().filter(e=>!e.disabled).map(e=>e.ref.current);S.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,i.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(_.current),$.current="")}),onPointerMove:(0,i.m)(e.onPointerMove,eC(e=>{let t=e.target,n=Y.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>Y.current?"right":"left";K.current=t,Y.current=e.clientX}}))})})})})})})});q.displayName=G;var Z=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.jsx)(a.sG.div,{role:"group",...r,ref:t})});Z.displayName="MenuGroup";var J=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.jsx)(a.sG.div,{...r,ref:t})});J.displayName="MenuLabel";var ee="MenuItem",et="menu.itemSelect",en=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:o,...s}=e,u=r.useRef(null),c=I(ee,e.__scopeMenu),d=X(ee,e.__scopeMenu),h=(0,l.s)(t,u),f=r.useRef(!1);return(0,b.jsx)(er,{...s,ref:h,disabled:n,onClick:(0,i.m)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(et,{bubbles:!0,cancelable:!0});e.addEventListener(et,e=>null==o?void 0:o(e),{once:!0}),(0,a.hO)(e,t),t.defaultPrevented?f.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),f.current=!0},onPointerUp:(0,i.m)(e.onPointerUp,e=>{var t;f.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&P.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});en.displayName=ee;var er=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:o=!1,textValue:s,...u}=e,c=X(ee,n),d=V(n),h=r.useRef(null),f=(0,l.s)(t,h),[p,m]=r.useState(!1),[g,y]=r.useState("");return r.useEffect(()=>{let e=h.current;if(e){var t;y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[u.children]),(0,b.jsx)(M.ItemSlot,{scope:n,disabled:o,textValue:null!=s?s:g,children:(0,b.jsx)(v.q7,{asChild:!0,...d,focusable:!o,children:(0,b.jsx)(a.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...u,ref:f,onPointerMove:(0,i.m)(e.onPointerMove,eC(e=>{o?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eC(e=>c.onItemLeave(e))),onFocus:(0,i.m)(e.onFocus,()=>m(!0)),onBlur:(0,i.m)(e.onBlur,()=>m(!1))})})})}),ei=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,b.jsx)(eh,{scope:e.__scopeMenu,checked:n,children:(0,b.jsx)(en,{role:"menuitemcheckbox","aria-checked":eE(n)?"mixed":n,...o,ref:t,"data-state":eA(n),onSelect:(0,i.m)(o.onSelect,()=>null==r?void 0:r(!!eE(n)||!n),{checkForDefaultPrevented:!1})})})});ei.displayName="MenuCheckboxItem";var eo="MenuRadioGroup",[ea,es]=D(eo,{value:void 0,onValueChange:()=>{}}),el=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,o=(0,y.c)(r);return(0,b.jsx)(ea,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,b.jsx)(Z,{...i,ref:t})})});el.displayName=eo;var eu="MenuRadioItem",ec=r.forwardRef((e,t)=>{let{value:n,...r}=e,o=es(eu,e.__scopeMenu),a=n===o.value;return(0,b.jsx)(eh,{scope:e.__scopeMenu,checked:a,children:(0,b.jsx)(en,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":eA(a),onSelect:(0,i.m)(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});ec.displayName=eu;var ed="MenuItemIndicator",[eh,ef]=D(ed,{checked:!1}),ep=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,o=ef(ed,n);return(0,b.jsx)(m.C,{present:r||eE(o.checked)||!0===o.checked,children:(0,b.jsx)(a.sG.span,{...i,ref:t,"data-state":eA(o.checked)})})});ep.displayName=ed;var em=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,b.jsx)(a.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});em.displayName="MenuSeparator";var ev=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=L(n);return(0,b.jsx)(f.i3,{...i,...r,ref:t})});ev.displayName="MenuArrow";var[eg,ey]=D("MenuSub"),ex="MenuSubTrigger",ew=r.forwardRef((e,t)=>{let n=O(ex,e.__scopeMenu),o=I(ex,e.__scopeMenu),a=ey(ex,e.__scopeMenu),s=X(ex,e.__scopeMenu),u=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,h={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,b.jsx)(z,{asChild:!0,...h,children:(0,b.jsx)(er,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":eS(n.open),...e,ref:(0,l.t)(t,a.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.m)(e.onPointerMove,eC(t=>{s.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||u.current||(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:(0,i.m)(e.onPointerLeave,eC(e=>{var t,r;f();let i=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(i){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,o="right"===t,a=i[o?"left":"right"],l=i[o?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:a,y:i.top},{x:l,y:i.top},{x:l,y:i.bottom},{x:a,y:i.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.m)(e.onKeyDown,t=>{let r=""!==s.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&A[o.dir].includes(t.key)){var i;n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault()}})})})});ew.displayName=ex;var eb="MenuSubContent",eP=r.forwardRef((e,t)=>{let n=_(G,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,s=O(G,e.__scopeMenu),u=I(G,e.__scopeMenu),c=ey(eb,e.__scopeMenu),d=r.useRef(null),h=(0,l.s)(t,d);return(0,b.jsx)(M.Provider,{scope:e.__scopeMenu,children:(0,b.jsx)(m.C,{present:o||s.open,children:(0,b.jsx)(M.Slot,{scope:e.__scopeMenu,children:(0,b.jsx)(Q,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:h,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,i.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=C[u.dir].includes(e.key);if(t&&n){var r;s.onOpenChange(!1),null===(r=c.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function eS(e){return e?"open":"closed"}function eE(e){return"indeterminate"===e}function eA(e){return eE(e)?"indeterminate":e?"checked":"unchecked"}function eC(e){return t=>"mouse"===t.pointerType?e(t):void 0}eP.displayName=eb,n(1488);var eT="ContextMenu",[eM,eR]=(0,o.A)(eT,[j]),ek=j(),[eD,ej]=eM(eT),eL=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:i,dir:o,modal:a=!0}=e,[s,l]=r.useState(!1),u=ek(t),c=(0,y.c)(i),d=r.useCallback(e=>{l(e),c(e)},[c]);return(0,b.jsx)(eD,{scope:t,open:s,onOpenChange:d,modal:a,children:(0,b.jsx)(B,{...u,dir:o,open:s,onOpenChange:d,modal:a,children:n})})};eL.displayName=eT;var eV="ContextMenuTrigger",eN=r.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:o=!1,...s}=e,l=ej(eV,n),u=ek(n),c=r.useRef({x:0,y:0}),d=r.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...c.current})}),h=r.useRef(0),f=r.useCallback(()=>window.clearTimeout(h.current),[]),p=e=>{c.current={x:e.clientX,y:e.clientY},l.onOpenChange(!0)};return r.useEffect(()=>f,[f]),r.useEffect(()=>void(o&&f()),[o,f]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(z,{...u,virtualRef:d}),(0,b.jsx)(a.sG.span,{"data-state":l.open?"open":"closed","data-disabled":o?"":void 0,...s,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:o?e.onContextMenu:(0,i.m)(e.onContextMenu,e=>{f(),p(e),e.preventDefault()}),onPointerDown:o?e.onPointerDown:(0,i.m)(e.onPointerDown,eU(e=>{f(),h.current=window.setTimeout(()=>p(e),700)})),onPointerMove:o?e.onPointerMove:(0,i.m)(e.onPointerMove,eU(f)),onPointerCancel:o?e.onPointerCancel:(0,i.m)(e.onPointerCancel,eU(f)),onPointerUp:o?e.onPointerUp:(0,i.m)(e.onPointerUp,eU(f))})]})});eN.displayName=eV;var eO=e=>{let{__scopeContextMenu:t,...n}=e,r=ek(t);return(0,b.jsx)($,{...r,...n})};eO.displayName="ContextMenuPortal";var eF="ContextMenuContent",eI=r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...i}=e,o=ej(eF,n),a=ek(n),s=r.useRef(!1);return(0,b.jsx)(q,{...a,...i,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{var n;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),!t.defaultPrevented&&s.current&&t.preventDefault(),s.current=!1},onInteractOutside:t=>{var n;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||o.modal||(s.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eI.displayName=eF,r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(Z,{...i,...r,ref:t})}).displayName="ContextMenuGroup",r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(J,{...i,...r,ref:t})}).displayName="ContextMenuLabel";var eB=r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(en,{...i,...r,ref:t})});eB.displayName="ContextMenuItem",r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(ei,{...i,...r,ref:t})}).displayName="ContextMenuCheckboxItem",r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(el,{...i,...r,ref:t})}).displayName="ContextMenuRadioGroup",r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(ec,{...i,...r,ref:t})}).displayName="ContextMenuRadioItem",r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(ep,{...i,...r,ref:t})}).displayName="ContextMenuItemIndicator";var ez=r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(em,{...i,...r,ref:t})});function eU(e){return t=>"mouse"!==t.pointerType?e(t):void 0}ez.displayName="ContextMenuSeparator",r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(ev,{...i,...r,ref:t})}).displayName="ContextMenuArrow",r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(ew,{...i,...r,ref:t})}).displayName="ContextMenuSubTrigger",r.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,i=ek(n);return(0,b.jsx)(eP,{...i,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="ContextMenuSubContent";var eW=eL,e_=eN,e$=eO,eG=eI,eH=eB,eX=ez},8166:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2115),i=n(5155);function o(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return a.scopeName=e,[function(t,o){let a=r.createContext(o),s=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,u=n?.[e]?.[s]||a,c=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(u.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||a,u=r.useContext(l);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(a,...t)]}},4256:(e,t,n)=>{n.d(t,{jH:()=>o});var r=n(2115);n(5155);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},9674:(e,t,n)=>{n.d(t,{qW:()=>h});var r,i=n(2115),o=n(3610),a=n(3360),s=n(8068),l=n(1524),u=n(5155),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=i.forwardRef((e,t)=>{var n,h;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:x,onDismiss:w,...b}=e,P=i.useContext(d),[S,E]=i.useState(null),A=null!==(h=null==S?void 0:S.ownerDocument)&&void 0!==h?h:null===(n=globalThis)||void 0===n?void 0:n.document,[,C]=i.useState({}),T=(0,s.s)(t,e=>E(e)),M=Array.from(P.layers),[R]=[...P.layersWithOutsidePointerEventsDisabled].slice(-1),k=M.indexOf(R),D=S?M.indexOf(S):-1,j=P.layersWithOutsidePointerEventsDisabled.size>0,L=D>=k,V=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.c)(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){p("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...P.branches].some(e=>e.contains(t));!L||n||(null==g||g(e),null==x||x(e),e.defaultPrevented||null==w||w())},A),N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&p("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...P.branches].some(e=>e.contains(t))||(null==y||y(e),null==x||x(e),e.defaultPrevented||null==w||w())},A);return!function(e,t=globalThis?.document){let n=(0,l.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{D!==P.layers.size-1||(null==v||v(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},A),i.useEffect(()=>{if(S)return m&&(0===P.layersWithOutsidePointerEventsDisabled.size&&(r=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),P.layersWithOutsidePointerEventsDisabled.add(S)),P.layers.add(S),f(),()=>{m&&1===P.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=r)}},[S,A,m,P]),i.useEffect(()=>()=>{S&&(P.layers.delete(S),P.layersWithOutsidePointerEventsDisabled.delete(S),f())},[S,P]),i.useEffect(()=>{let e=()=>C({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.sG.div,{...b,ref:T,style:{pointerEvents:j?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.m)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,o.m)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,o.m)(e.onPointerDownCapture,V.onPointerDownCapture)})});function f(){let e=new CustomEvent(c);document.dispatchEvent(e)}function p(e,t,n,r){let{discrete:i}=r,o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?(0,a.hO)(o,s):o.dispatchEvent(s)}h.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(d),r=i.useRef(null),o=(0,s.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(a.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},2292:(e,t,n)=>{n.d(t,{Oh:()=>o});var r=n(2115),i=0;function o(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},196:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(2115),i=n(8068),o=n(3360),a=n(1524),s=n(5155),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=e,[x,w]=r.useState(null),b=(0,a.c)(v),P=(0,a.c)(g),S=r.useRef(null),E=(0,i.s)(t,e=>w(e)),A=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(A.paused||!x)return;let t=e.target;x.contains(t)?S.current=t:p(S.current,{select:!0})},t=function(e){if(A.paused||!x)return;let t=e.relatedTarget;null===t||x.contains(t)||p(S.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&p(x)});return x&&n.observe(x,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,x,A.paused]),r.useEffect(()=>{if(x){m.add(A);let e=document.activeElement;if(!x.contains(e)){let t=new CustomEvent(l,c);x.addEventListener(l,b),x.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(p(r,{select:t}),document.activeElement!==n)return}(h(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&p(x))}return()=>{x.removeEventListener(l,b),setTimeout(()=>{let t=new CustomEvent(u,c);x.addEventListener(u,P),x.dispatchEvent(t),t.defaultPrevented||p(null!=e?e:document.body,{select:!0}),x.removeEventListener(u,P),m.remove(A)},0)}}},[x,b,P,A]);let C=r.useCallback(e=>{if(!n&&!d||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,o]=function(e){let t=h(e);return[f(t,e),f(t.reverse(),e)]}(t);i&&o?e.shiftKey||r!==o?e.shiftKey&&r===i&&(e.preventDefault(),n&&p(o,{select:!0})):(e.preventDefault(),n&&p(i,{select:!0})):r===t&&e.preventDefault()}},[n,d,A.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...y,ref:E,onKeyDown:C})});function h(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function f(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function p(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=v(e,t)).unshift(t)},remove(t){var n;null===(n=(e=v(e,t))[0])||void 0===n||n.resume()}}}();function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},7668:(e,t,n)=>{n.d(t,{B:()=>l});var r,i=n(2115),o=n(6611),a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},532:(e,t,n)=>{n.d(t,{UC:()=>$,ZL:()=>_,bL:()=>U,l9:()=>W});var r=n(2115),i=n(3610),o=n(8068),a=n(8166),s=n(9674),l=n(2292),u=n(196),c=n(7668),d=n(9895),h=n(7323),f=n(7028),p=n(3360),m=n(2317),v=n(1488),g=n(5587),y=n(4065),x=n(5155),w="Popover",[b,P]=(0,a.A)(w,[d.Bk]),S=(0,d.Bk)(),[E,A]=b(w),C=e=>{let{__scopePopover:t,children:n,open:i,defaultOpen:o,onOpenChange:a,modal:s=!1}=e,l=S(t),u=r.useRef(null),[h,f]=r.useState(!1),[p=!1,m]=(0,v.i)({prop:i,defaultProp:o,onChange:a});return(0,x.jsx)(d.bL,{...l,children:(0,x.jsx)(E,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:h,onCustomAnchorAdd:r.useCallback(()=>f(!0),[]),onCustomAnchorRemove:r.useCallback(()=>f(!1),[]),modal:s,children:n})})};C.displayName=w;var T="PopoverAnchor";r.forwardRef((e,t)=>{let{__scopePopover:n,...i}=e,o=A(T,n),a=S(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return r.useEffect(()=>(s(),()=>l()),[s,l]),(0,x.jsx)(d.Mz,{...a,...i,ref:t})}).displayName=T;var M="PopoverTrigger",R=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,a=A(M,n),s=S(n),l=(0,o.s)(t,a.triggerRef),u=(0,x.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":z(a.open),...r,ref:l,onClick:(0,i.m)(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?u:(0,x.jsx)(d.Mz,{asChild:!0,...s,children:u})});R.displayName=M;var k="PopoverPortal",[D,j]=b(k,{forceMount:void 0}),L=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=A(k,t);return(0,x.jsx)(D,{scope:t,forceMount:n,children:(0,x.jsx)(f.C,{present:n||o.open,children:(0,x.jsx)(h.Z,{asChild:!0,container:i,children:r})})})};L.displayName=k;var V="PopoverContent",N=r.forwardRef((e,t)=>{let n=j(V,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=A(V,e.__scopePopover);return(0,x.jsx)(f.C,{present:r||o.open,children:o.modal?(0,x.jsx)(O,{...i,ref:t}):(0,x.jsx)(F,{...i,ref:t})})});N.displayName=V;var O=r.forwardRef((e,t)=>{let n=A(V,e.__scopePopover),a=r.useRef(null),s=(0,o.s)(t,a),l=r.useRef(!1);return r.useEffect(()=>{let e=a.current;if(e)return(0,g.Eq)(e)},[]),(0,x.jsx)(y.A,{as:m.DX,allowPinchZoom:!0,children:(0,x.jsx)(I,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;l.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),F=r.forwardRef((e,t)=>{let n=A(V,e.__scopePopover),i=r.useRef(!1),o=r.useRef(!1);return(0,x.jsx)(I,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),I=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,...m}=e,v=A(V,n),g=S(n);return(0,l.Oh)(),(0,x.jsx)(u.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,x.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1),children:(0,x.jsx)(d.UC,{"data-state":z(v.open),role:"dialog",id:v.contentId,...g,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),B="PopoverClose";function z(e){return e?"open":"closed"}r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=A(B,n);return(0,x.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,i.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=B,r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=S(n);return(0,x.jsx)(d.i3,{...i,...r,ref:t})}).displayName="PopoverArrow";var U=C,W=R,_=L,$=N},9895:(e,t,n)=>{n.d(t,{Mz:()=>eY,i3:()=>eZ,UC:()=>eQ,bL:()=>eK,Bk:()=>eL});var r=n(2115);let i=["top","right","bottom","left"],o=Math.min,a=Math.max,s=Math.round,l=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function h(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(f(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>d[e])}function x(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function b(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function P(e,t,n){let r,{reference:i,floating:o}=e,a=g(t),s=m(g(t)),l=v(s),u=f(t),c="y"===a,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,y=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[s]-=y*(n&&c?-1:1);break;case"end":r[s]+=y*(n&&c?-1:1)}return r}let S=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=P(u,r,l),h=r,f={},p=0;for(let n=0;n<s.length;n++){let{name:o,fn:m}=s[n],{x:v,y:g,data:y,reset:x}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,f={...f,[o]:{...f[o],...y}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(u=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:d}=P(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function E(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=h(t,e),m=w(p),v=s[f?"floating"===d?"reference":"floating":d],g=b(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),P=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},S=b(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:x,strategy:l}):y);return{top:(g.top-S.top+m.top)/P.y,bottom:(S.bottom-g.bottom+m.bottom)/P.y,left:(g.left-S.left+m.left)/P.x,right:(S.right-g.right+m.right)/P.x}}function A(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function C(e){return i.some(t=>e[t]>=0)}async function T(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=f(n),s=p(n),l="y"===g(n),u=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,d=h(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof y&&(v="end"===s?-1*y:y),l?{x:v*c,y:m*u}:{x:m*u,y:v*c}}function M(){return"undefined"!=typeof window}function R(e){return j(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function D(e){var t;return null==(t=(j(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function j(e){return!!M()&&(e instanceof Node||e instanceof k(e).Node)}function L(e){return!!M()&&(e instanceof Element||e instanceof k(e).Element)}function V(e){return!!M()&&(e instanceof HTMLElement||e instanceof k(e).HTMLElement)}function N(e){return!!M()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof k(e).ShadowRoot)}function O(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=U(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function F(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function I(e){let t=B(),n=L(e)?U(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function B(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function z(e){return["html","body","#document"].includes(R(e))}function U(e){return k(e).getComputedStyle(e)}function W(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _(e){if("html"===R(e))return e;let t=e.assignedSlot||e.parentNode||N(e)&&e.host||D(e);return N(t)?t.host:t}function $(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=_(t);return z(n)?t.ownerDocument?t.ownerDocument.body:t.body:V(n)&&O(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=k(i);if(o){let e=G(a);return t.concat(a,a.visualViewport||[],O(i)?i:[],e&&n?$(e):[])}return t.concat(i,$(i,[],n))}function G(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function H(e){let t=U(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=V(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=s(n)!==o||s(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function X(e){return L(e)?e:e.contextElement}function q(e){let t=X(e);if(!V(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=H(t),a=(o?s(n.width):n.width)/r,l=(o?s(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let K=u(0);function Y(e){let t=k(e);return B()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function Q(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=X(e),s=u(1);t&&(r?L(r)&&(s=q(r)):s=q(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===k(a))&&i)?Y(a):u(0),c=(o.left+l.x)/s.x,d=(o.top+l.y)/s.y,h=o.width/s.x,f=o.height/s.y;if(a){let e=k(a),t=r&&L(r)?k(r):r,n=e,i=G(n);for(;i&&r&&t!==n;){let e=q(i),t=i.getBoundingClientRect(),r=U(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,f*=e.y,c+=o,d+=a,i=G(n=k(i))}}return b({width:h,height:f,x:c,y:d})}function Z(e,t){let n=W(e).scrollLeft;return t?t.left+n:Q(D(e)).left+n}function J(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Z(e,r)),y:r.top+t.scrollTop}}function ee(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=k(e),r=D(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=B();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=D(e),n=W(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-n.scrollLeft+Z(e),l=-n.scrollTop;return"rtl"===U(r).direction&&(s+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:l}}(D(e));else if(L(t))r=function(e,t){let n=Q(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=V(e)?q(e):u(1),a=e.clientWidth*o.x;return{width:a,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=Y(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return b(r)}function et(e){return"static"===U(e).position}function en(e,t){if(!V(e)||"fixed"===U(e).position)return null;if(t)return t(e);let n=e.offsetParent;return D(e)===n&&(n=n.ownerDocument.body),n}function er(e,t){let n=k(e);if(F(e))return n;if(!V(e)){let t=_(e);for(;t&&!z(t);){if(L(t)&&!et(t))return t;t=_(t)}return n}let r=en(e,t);for(;r&&["table","td","th"].includes(R(r))&&et(r);)r=en(r,t);return r&&z(r)&&et(r)&&!I(r)?n:r||function(e){let t=_(e);for(;V(t)&&!z(t);){if(I(t))return t;if(F(t))break;t=_(t)}return null}(e)||n}let ei=async function(e){let t=this.getOffsetParent||er,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=V(t),i=D(t),o="fixed"===n,a=Q(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=u(0);if(r||!r&&!o){if(("body"!==R(t)||O(i))&&(s=W(t)),r){let e=Q(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Z(i))}let c=!i||r||o?u(0):J(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=D(r),s=!!t&&F(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=u(1),d=u(0),h=V(r);if((h||!h&&!o)&&(("body"!==R(r)||O(a))&&(l=W(r)),V(r))){let e=Q(r);c=q(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let f=!a||h||o?u(0):J(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}},getDocumentElement:D,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,s=[..."clippingAncestors"===n?F(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=$(e,[],!1).filter(e=>L(e)&&"body"!==R(e)),i=null,o="fixed"===U(e).position,a=o?_(e):e;for(;L(a)&&!z(a);){let t=U(a),n=I(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||O(a)&&!n&&function e(t,n){let r=_(t);return!(r===n||!L(r)||z(r))&&("fixed"===U(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=_(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=s[0],u=s.reduce((e,n)=>{let r=ee(t,n,i);return e.top=a(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=a(r.left,e.left),e},ee(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:er,getElementRects:ei,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=H(e);return{width:t,height:n}},getScale:q,isElement:L,isRTL:function(e){return"rtl"===U(e).direction}};function ea(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let es=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:s,platform:l,elements:u,middlewareData:c}=t,{element:d,padding:f=0}=h(e,t)||{};if(null==d)return{};let y=w(f),x={x:n,y:r},b=m(g(i)),P=v(b),S=await l.getDimensions(d),E="y"===b,A=E?"clientHeight":"clientWidth",C=s.reference[P]+s.reference[b]-x[b]-s.floating[P],T=x[b]-s.reference[b],M=await (null==l.getOffsetParent?void 0:l.getOffsetParent(d)),R=M?M[A]:0;R&&await (null==l.isElement?void 0:l.isElement(M))||(R=u.floating[A]||s.floating[P]);let k=R/2-S[P]/2-1,D=o(y[E?"top":"left"],k),j=o(y[E?"bottom":"right"],k),L=R-S[P]-j,V=R/2-S[P]/2+(C/2-T/2),N=a(D,o(V,L)),O=!c.arrow&&null!=p(i)&&V!==N&&s.reference[P]/2-(V<D?D:j)-S[P]/2<0,F=O?V<D?V-D:V-L:0;return{[b]:x[b]+F,data:{[b]:N,centerOffset:V-N-F,...O&&{alignmentOffset:F}},reset:O}}}),el=(e,t,n)=>{let r=new Map,i={platform:eo,...n},o={...i.platform,_c:r};return S(e,t,{...i,platform:o})};var eu=n(7650),ec="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function ed(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ed(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ed(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eh(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ef(e,t){let n=eh(e);return Math.round(t*n)/n}function ep(e){let t=r.useRef(e);return ec(()=>{t.current=e}),t}let em=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?es({element:n.current,padding:r}).fn(t):{}:n?es({element:n,padding:r}).fn(t):{}}}),ev=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:a,middlewareData:s}=t,l=await T(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}}(e),options:[e,t]}),eg=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=h(e,t),d={x:n,y:r},p=await E(t,c),v=g(f(i)),y=m(v),x=d[y],w=d[v];if(s){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+p[e],r=x-p[t];x=a(n,o(x,r))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+p[e],r=w-p[t];w=a(n,o(w,r))}let b=u.fn({...t,[y]:x,[v]:w});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[y]:s,[v]:l}}}}}}(e),options:[e,t]}),ey=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=h(e,t),c={x:n,y:r},d=g(i),p=m(d),v=c[p],y=c[d],x=h(s,t),w="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){let e="y"===p?"height":"width",t=o.reference[p]-o.floating[e]+w.mainAxis,n=o.reference[p]+o.reference[e]-w.mainAxis;v<t?v=t:v>n&&(v=n)}if(u){var b,P;let e="y"===p?"width":"height",t=["top","left"].includes(f(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(b=a.offset)?void 0:b[d])||0)+(t?0:w.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(P=a.offset)?void 0:P[d])||0)-(t?w.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[p]:v,[d]:y}}}}(e),options:[e,t]}),ex=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:w}=t,{mainAxis:b=!0,crossAxis:P=!0,fallbackPlacements:S,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:T=!0,...M}=h(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let R=f(s),k=g(c),D=f(c)===c,j=await (null==d.isRTL?void 0:d.isRTL(w.floating)),L=S||(D||!T?[x(c)]:function(e){let t=x(e);return[y(e),t,y(t)]}(c)),V="none"!==C;!S&&V&&L.push(...function(e,t,n,r){let i=p(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(y)))),o}(c,T,C,j));let N=[c,...L],O=await E(t,M),F=[],I=(null==(r=l.flip)?void 0:r.overflows)||[];if(b&&F.push(O[R]),P){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),i=m(g(e)),o=v(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=x(a)),[a,x(a)]}(s,u,j);F.push(O[e[0]],O[e[1]])}if(I=[...I,{placement:s,overflows:F}],!F.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=N[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(o=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(A){case"bestFit":{let e=null==(a=I.filter(e=>{if(V){let t=g(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),ew=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,s;let{placement:l,rects:u,platform:c,elements:d}=t,{apply:m=()=>{},...v}=h(e,t),y=await E(t,v),x=f(l),w=p(l),b="y"===g(l),{width:P,height:S}=u.floating;"top"===x||"bottom"===x?(i=x,s=w===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(s=x,i="end"===w?"top":"bottom");let A=S-y.top-y.bottom,C=P-y.left-y.right,T=o(S-y[i],A),M=o(P-y[s],C),R=!t.middlewareData.shift,k=T,D=M;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(D=C),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=A),R&&!w){let e=a(y.left,0),t=a(y.right,0),n=a(y.top,0),r=a(y.bottom,0);b?D=P-2*(0!==e||0!==t?e+t:a(y.left,y.right)):k=S-2*(0!==n||0!==r?n+r:a(y.top,y.bottom))}await m({...t,availableWidth:D,availableHeight:k});let j=await c.getDimensions(d.floating);return P!==j.width||S!==j.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),eb=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=h(e,t);switch(r){case"referenceHidden":{let e=A(await E(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:C(e)}}}case"escaped":{let e=A(await E(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:C(e)}}}default:return{}}}}}(e),options:[e,t]}),eP=(e,t)=>({...em(e),options:[e,t]});var eS=n(3360),eE=n(5155),eA=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eE.jsx)(eS.sG.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eE.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eA.displayName="Arrow";var eC=n(8068),eT=n(8166),eM=n(1524),eR=n(6611),ek=n(7510),eD="Popper",[ej,eL]=(0,eT.A)(eD),[eV,eN]=ej(eD),eO=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,eE.jsx)(eV,{scope:t,anchor:i,onAnchorChange:o,children:n})};eO.displayName=eD;var eF="PopperAnchor",eI=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,a=eN(eF,n),s=r.useRef(null),l=(0,eC.s)(t,s);return r.useEffect(()=>{a.onAnchorChange((null==i?void 0:i.current)||s.current)}),i?null:(0,eE.jsx)(eS.sG.div,{...o,ref:l})});eI.displayName=eF;var eB="PopperContent",[ez,eU]=ej(eB),eW=r.forwardRef((e,t)=>{var n,i,s,u,c,d,h,f;let{__scopePopper:p,side:m="bottom",sideOffset:v=0,align:g="center",alignOffset:y=0,arrowPadding:x=0,avoidCollisions:w=!0,collisionBoundary:b=[],collisionPadding:P=0,sticky:S="partial",hideWhenDetached:E=!1,updatePositionStrategy:A="optimized",onPlaced:C,...T}=e,M=eN(eB,p),[R,k]=r.useState(null),j=(0,eC.s)(t,e=>k(e)),[L,V]=r.useState(null),N=(0,ek.X)(L),O=null!==(h=null==N?void 0:N.width)&&void 0!==h?h:0,F=null!==(f=null==N?void 0:N.height)&&void 0!==f?f:0,I="number"==typeof P?P:{top:0,right:0,bottom:0,left:0,...P},B=Array.isArray(b)?b:[b],z=B.length>0,U={padding:I,boundary:B.filter(eH),altBoundary:z},{refs:W,floatingStyles:_,placement:G,isPositioned:H,middlewareData:q}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,h]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=r.useState(i);ed(f,i)||p(i);let[m,v]=r.useState(null),[g,y]=r.useState(null),x=r.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),w=r.useCallback(e=>{e!==E.current&&(E.current=e,y(e))},[]),b=a||m,P=s||g,S=r.useRef(null),E=r.useRef(null),A=r.useRef(d),C=null!=u,T=ep(u),M=ep(o),R=ep(c),k=r.useCallback(()=>{if(!S.current||!E.current)return;let e={placement:t,strategy:n,middleware:f};M.current&&(e.platform=M.current),el(S.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==R.current};D.current&&!ed(A.current,t)&&(A.current=t,eu.flushSync(()=>{h(t)}))})},[f,t,n,M,R]);ec(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[c]);let D=r.useRef(!1);ec(()=>(D.current=!0,()=>{D.current=!1}),[]),ec(()=>{if(b&&(S.current=b),P&&(E.current=P),b&&P){if(T.current)return T.current(b,P,k);k()}},[b,P,k,T,C]);let j=r.useMemo(()=>({reference:S,floating:E,setReference:x,setFloating:w}),[x,w]),L=r.useMemo(()=>({reference:b,floating:P}),[b,P]),V=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=ef(L.floating,d.x),r=ef(L.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eh(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,L.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:k,refs:j,elements:L,floatingStyles:V}),[d,k,j,L,V])}({strategy:"fixed",placement:m+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=r,f=X(e),p=s||u?[...f?$(f):[],...$(t)]:[];p.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=f&&d?function(e,t){let n,r=null,i=D(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let h=e.getBoundingClientRect(),{left:f,top:p,width:m,height:v}=h;if(c||t(),!m||!v)return;let g=l(p),y=l(i.clientWidth-(f+m)),x={rootMargin:-g+"px "+-y+"px "+-l(i.clientHeight-(p+v))+"px "+-l(f)+"px",threshold:a(0,o(1,d))||1},w=!0;function b(t){let r=t[0].intersectionRatio;if(r!==d){if(!w)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||ea(h,e.getBoundingClientRect())||u(),w=!1}try{r=new IntersectionObserver(b,{...x,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(b,x)}r.observe(e)}(!0),s}(f,n):null,v=-1,g=null;c&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),f&&!h&&g.observe(f),g.observe(t));let y=h?Q(e):null;return h&&function t(){let r=Q(e);y&&!ea(y,r)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,h&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===A})},elements:{reference:M.anchor},middleware:[ev({mainAxis:v+F,alignmentAxis:y}),w&&eg({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?ey():void 0,...U}),w&&ex({...U}),ew({...U,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:a}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(o,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),L&&eP({element:L,padding:x}),eX({arrowWidth:O,arrowHeight:F}),E&&eb({strategy:"referenceHidden",...U})]}),[K,Y]=eq(G),Z=(0,eM.c)(C);(0,eR.N)(()=>{H&&(null==Z||Z())},[H,Z]);let J=null===(n=q.arrow)||void 0===n?void 0:n.x,ee=null===(i=q.arrow)||void 0===i?void 0:i.y,et=(null===(s=q.arrow)||void 0===s?void 0:s.centerOffset)!==0,[en,er]=r.useState();return(0,eR.N)(()=>{R&&er(window.getComputedStyle(R).zIndex)},[R]),(0,eE.jsx)("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{..._,transform:H?_.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[null===(u=q.transformOrigin)||void 0===u?void 0:u.x,null===(c=q.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(d=q.hide)||void 0===d?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eE.jsx)(ez,{scope:p,placedSide:K,onArrowChange:V,arrowX:J,arrowY:ee,shouldHideArrow:et,children:(0,eE.jsx)(eS.sG.div,{"data-side":K,"data-align":Y,...T,ref:j,style:{...T.style,animation:H?void 0:"none"}})})})});eW.displayName=eB;var e_="PopperArrow",e$={top:"bottom",right:"left",bottom:"top",left:"right"},eG=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eU(e_,n),o=e$[i.placedSide];return(0,eE.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eE.jsx)(eA,{...r,ref:t,style:{...r.style,display:"block"}})})});function eH(e){return null!==e}eG.displayName=e_;var eX=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,h=c?0:e.arrowHeight,[f,p]=eq(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,g=(null!==(a=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==a?a:0)+h/2,y="",x="";return"bottom"===f?(y=c?m:"".concat(v,"px"),x="".concat(-h,"px")):"top"===f?(y=c?m:"".concat(v,"px"),x="".concat(l.floating.height+h,"px")):"right"===f?(y="".concat(-h,"px"),x=c?m:"".concat(g,"px")):"left"===f&&(y="".concat(l.floating.width+h,"px"),x=c?m:"".concat(g,"px")),{data:{x:y,y:x}}}});function eq(e){let[t,n="center"]=e.split("-");return[t,n]}var eK=eO,eY=eI,eQ=eW,eZ=eG},7323:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(2115),i=n(7650),o=n(3360),a=n(6611),s=n(5155),l=r.forwardRef((e,t)=>{var n,l;let{container:u,...c}=e,[d,h]=r.useState(!1);(0,a.N)(()=>h(!0),[]);let f=u||d&&(null===(l=globalThis)||void 0===l?void 0:null===(n=l.document)||void 0===n?void 0:n.body);return f?i.createPortal((0,s.jsx)(o.sG.div,{...c,ref:t}),f):null});l.displayName="Portal"},7028:(e,t,n)=>{n.d(t,{C:()=>a});var r=n(2115),i=n(8068),o=n(6611),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[i,a]=r.useState(),l=r.useRef({}),u=r.useRef(e),c=r.useRef("none"),[d,h]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=l.current,n=u.current;if(n!==e){let r=c.current,i=s(t);e?h("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?h("UNMOUNT"):n&&r!==i?h("ANIMATION_OUT"):h("UNMOUNT"),u.current=e}},[e,h]),(0,o.N)(()=>{if(i){var e;let t;let n=null!==(e=i.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=s(l.current).includes(e.animationName);if(e.target===i&&r&&(h("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},o=e=>{e.target===i&&(c.current=s(l.current))};return i.addEventListener("animationstart",o),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",o),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}h("ANIMATION_END")},[i,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),a(e)},[])}}(t),l="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),u=(0,i.s)(a.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||a.isPresent?r.cloneElement(l,{ref:u}):null};function s(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},3360:(e,t,n)=>{n.d(t,{hO:()=>l,sG:()=>s});var r=n(2115),i=n(7650),o=n(2317),a=n(5155),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,s=r?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},7357:(e,t,n)=>{n.d(t,{RG:()=>b,bL:()=>k,q7:()=>D});var r=n(2115),i=n(3610),o=n(9741),a=n(8068),s=n(8166),l=n(7668),u=n(3360),c=n(1524),d=n(1488),h=n(4256),f=n(5155),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[g,y,x]=(0,o.N)(v),[w,b]=(0,s.A)(v,[x]),[P,S]=w(v),E=r.forwardRef((e,t)=>(0,f.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,f.jsx)(A,{...e,ref:t})})}));E.displayName=v;var A=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:s=!1,dir:l,currentTabStopId:v,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:x,onEntryFocus:w,preventScrollOnEntryFocus:b=!1,...S}=e,E=r.useRef(null),A=(0,a.s)(t,E),C=(0,h.jH)(l),[T=null,M]=(0,d.i)({prop:v,defaultProp:g,onChange:x}),[k,D]=r.useState(!1),j=(0,c.c)(w),L=y(n),V=r.useRef(!1),[N,O]=r.useState(0);return r.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(p,j),()=>e.removeEventListener(p,j)},[j]),(0,f.jsx)(P,{scope:n,orientation:o,dir:C,loop:s,currentTabStopId:T,onItemFocus:r.useCallback(e=>M(e),[M]),onItemShiftTab:r.useCallback(()=>D(!0),[]),onFocusableItemAdd:r.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>O(e=>e-1),[]),children:(0,f.jsx)(u.sG.div,{tabIndex:k||0===N?-1:0,"data-orientation":o,...S,ref:A,style:{outline:"none",...e.style},onMouseDown:(0,i.m)(e.onMouseDown,()=>{V.current=!0}),onFocus:(0,i.m)(e.onFocus,e=>{let t=!V.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=L().filter(e=>e.focusable);R([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),b)}}V.current=!1}),onBlur:(0,i.m)(e.onBlur,()=>D(!1))})})}),C="RovingFocusGroupItem",T=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:s,...c}=e,d=(0,l.B)(),h=s||d,p=S(C,n),m=p.currentTabStopId===h,v=y(n),{onFocusableItemAdd:x,onFocusableItemRemove:w}=p;return r.useEffect(()=>{if(o)return x(),()=>w()},[o,x,w]),(0,f.jsx)(g.ItemSlot,{scope:n,id:h,focusable:o,active:a,children:(0,f.jsx)(u.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o?p.onItemFocus(h):e.preventDefault()}),onFocus:(0,i.m)(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:(0,i.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return M[i]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>R(n))}})})})});T.displayName=C;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function R(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var k=E,D=T},1868:(e,t,n)=>{n.d(t,{LM:()=>q,OK:()=>K,VM:()=>S,bL:()=>X,lr:()=>V});var r=n(2115),i=n(3360),o=n(7028),a=n(8166),s=n(8068),l=n(1524),u=n(4256),c=n(6611),d=n(1786),h=n(3610),f=n(5155),p="ScrollArea",[m,v]=(0,a.A)(p),[g,y]=m(p),x=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:o="hover",dir:a,scrollHideDelay:l=600,...c}=e,[d,h]=r.useState(null),[p,m]=r.useState(null),[v,y]=r.useState(null),[x,w]=r.useState(null),[b,P]=r.useState(null),[S,E]=r.useState(0),[A,C]=r.useState(0),[T,M]=r.useState(!1),[R,k]=r.useState(!1),D=(0,s.s)(t,e=>h(e)),j=(0,u.jH)(a);return(0,f.jsx)(g,{scope:n,type:o,dir:j,scrollHideDelay:l,scrollArea:d,viewport:p,onViewportChange:m,content:v,onContentChange:y,scrollbarX:x,onScrollbarXChange:w,scrollbarXEnabled:T,onScrollbarXEnabledChange:M,scrollbarY:b,onScrollbarYChange:P,scrollbarYEnabled:R,onScrollbarYEnabledChange:k,onCornerWidthChange:E,onCornerHeightChange:C,children:(0,f.jsx)(i.sG.div,{dir:j,...c,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":S+"px","--radix-scroll-area-corner-height":A+"px",...e.style}})})});x.displayName=p;var w="ScrollAreaViewport",b=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:o,nonce:a,...l}=e,u=y(w,n),c=r.useRef(null),d=(0,s.s)(t,c,u.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,f.jsx)(i.sG.div,{"data-radix-scroll-area-viewport":"",...l,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});b.displayName=w;var P="ScrollAreaScrollbar",S=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,o=y(P,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:s}=o,l="horizontal"===e.orientation;return r.useEffect(()=>(l?a(!0):s(!0),()=>{l?a(!1):s(!1)}),[l,a,s]),"hover"===o.type?(0,f.jsx)(E,{...i,ref:t,forceMount:n}):"scroll"===o.type?(0,f.jsx)(A,{...i,ref:t,forceMount:n}):"auto"===o.type?(0,f.jsx)(C,{...i,ref:t,forceMount:n}):"always"===o.type?(0,f.jsx)(T,{...i,ref:t}):null});S.displayName=P;var E=r.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=y(P,e.__scopeScrollArea),[s,l]=r.useState(!1);return r.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[a.scrollArea,a.scrollHideDelay]),(0,f.jsx)(o.C,{present:n||s,children:(0,f.jsx)(C,{"data-state":s?"visible":"hidden",...i,ref:t})})}),A=r.forwardRef((e,t)=>{var n,i;let{forceMount:a,...s}=e,l=y(P,e.__scopeScrollArea),u="horizontal"===e.orientation,c=G(()=>p("SCROLL_END"),100),[d,p]=(n="hidden",i={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},r.useReducer((e,t)=>{let n=i[e][t];return null!=n?n:e},n));return r.useEffect(()=>{if("idle"===d){let e=window.setTimeout(()=>p("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(e)}},[d,l.scrollHideDelay,p]),r.useEffect(()=>{let e=l.viewport,t=u?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(p("SCROLL"),c()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[l.viewport,u,p,c]),(0,f.jsx)(o.C,{present:a||"hidden"!==d,children:(0,f.jsx)(T,{"data-state":"hidden"===d?"hidden":"visible",...s,ref:t,onPointerEnter:(0,h.m)(e.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:(0,h.m)(e.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),C=r.forwardRef((e,t)=>{let n=y(P,e.__scopeScrollArea),{forceMount:i,...a}=e,[s,l]=r.useState(!1),u="horizontal"===e.orientation,c=G(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?e:t)}},10);return H(n.viewport,c),H(n.content,c),(0,f.jsx)(o.C,{present:i||s,children:(0,f.jsx)(T,{"data-state":s?"visible":"hidden",...a,ref:t})})}),T=r.forwardRef((e,t)=>{let{orientation:n="vertical",...i}=e,o=y(P,e.__scopeScrollArea),a=r.useRef(null),s=r.useRef(0),[l,u]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=z(l.viewport,l.content),d={...i,sizes:l,onSizesChange:u,hasThumb:!!(c>0&&c<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function h(e,t){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",i=U(n),o=t||i/2,a=n.scrollbar.paddingStart+o,s=n.scrollbar.size-n.scrollbar.paddingEnd-(i-o),l=n.content-n.viewport;return _([a,s],"ltr"===r?[0,l]:[-1*l,0])(e)}(e,s.current,l,t)}return"horizontal"===n?(0,f.jsx)(M,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=W(o.viewport.scrollLeft,l,o.dir);a.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollLeft=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollLeft=h(e,o.dir))}}):"vertical"===n?(0,f.jsx)(R,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&a.current){let e=W(o.viewport.scrollTop,l);a.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{o.viewport&&(o.viewport.scrollTop=e)},onDragScroll:e=>{o.viewport&&(o.viewport.scrollTop=h(e))}}):null}),M=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...o}=e,a=y(P,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,a.onScrollbarXChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(j,{"data-orientation":"horizontal",...o,ref:d,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":U(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:B(l.paddingLeft),paddingEnd:B(l.paddingRight)}})}})}),R=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...o}=e,a=y(P,e.__scopeScrollArea),[l,u]=r.useState(),c=r.useRef(null),d=(0,s.s)(t,c,a.onScrollbarYChange);return r.useEffect(()=>{c.current&&u(getComputedStyle(c.current))},[c]),(0,f.jsx)(j,{"data-orientation":"vertical",...o,ref:d,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":U(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&l&&i({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:B(l.paddingTop),paddingEnd:B(l.paddingBottom)}})}})}),[k,D]=m(P),j=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:o,hasThumb:a,onThumbChange:u,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:p,onDragScroll:m,onWheelScroll:v,onResize:g,...x}=e,w=y(P,n),[b,S]=r.useState(null),E=(0,s.s)(t,e=>S(e)),A=r.useRef(null),C=r.useRef(""),T=w.viewport,M=o.content-o.viewport,R=(0,l.c)(v),D=(0,l.c)(p),j=G(g,10);function L(e){A.current&&m({x:e.clientX-A.current.left,y:e.clientY-A.current.top})}return r.useEffect(()=>{let e=e=>{let t=e.target;(null==b?void 0:b.contains(t))&&R(e,M)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[T,b,M,R]),r.useEffect(D,[o,D]),H(b,j),H(w.content,j),(0,f.jsx)(k,{scope:n,scrollbar:b,hasThumb:a,onThumbChange:(0,l.c)(u),onThumbPointerUp:(0,l.c)(c),onThumbPositionChange:D,onThumbPointerDown:(0,l.c)(d),children:(0,f.jsx)(i.sG.div,{...x,ref:E,style:{position:"absolute",...x.style},onPointerDown:(0,h.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),A.current=b.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),L(e))}),onPointerMove:(0,h.m)(e.onPointerMove,L),onPointerUp:(0,h.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=C.current,w.viewport&&(w.viewport.style.scrollBehavior=""),A.current=null})})})}),L="ScrollAreaThumb",V=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=D(L,e.__scopeScrollArea);return(0,f.jsx)(o.C,{present:n||i.hasThumb,children:(0,f.jsx)(N,{ref:t,...r})})}),N=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:o,...a}=e,l=y(L,n),u=D(L,n),{onThumbPositionChange:c}=u,d=(0,s.s)(t,e=>u.onThumbChange(e)),p=r.useRef(void 0),m=G(()=>{p.current&&(p.current(),p.current=void 0)},100);return r.useEffect(()=>{let e=l.viewport;if(e){let t=()=>{if(m(),!p.current){let t=$(e,c);p.current=t,c()}};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[l.viewport,m,c]),(0,f.jsx)(i.sG.div,{"data-state":u.hasThumb?"visible":"hidden",...a,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:(0,h.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;u.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,h.m)(e.onPointerUp,u.onThumbPointerUp)})});V.displayName=L;var O="ScrollAreaCorner",F=r.forwardRef((e,t)=>{let n=y(O,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,f.jsx)(I,{...e,ref:t}):null});F.displayName=O;var I=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,...o}=e,a=y(O,n),[s,l]=r.useState(0),[u,c]=r.useState(0),d=!!(s&&u);return H(a.scrollbarX,()=>{var e;let t=(null===(e=a.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),c(t)}),H(a.scrollbarY,()=>{var e;let t=(null===(e=a.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),l(t)}),d?(0,f.jsx)(i.sG.div,{...o,ref:t,style:{width:s,height:u,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function B(e){return e?parseInt(e,10):0}function z(e,t){let n=e/t;return isNaN(n)?0:n}function U(e){let t=z(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function W(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=U(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,a=t.content-t.viewport,s=(0,d.q)(e,"ltr"===n?[0,a]:[-1*a,0]);return _([0,a],[0,o-r])(s)}function _(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var $=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function i(){let o={left:e.scrollLeft,top:e.scrollTop},a=n.left!==o.left,s=n.top!==o.top;(a||s)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function G(e,t){let n=(0,l.c)(e),i=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),r.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)},[n,t])}function H(e,t){let n=(0,l.c)(t);(0,c.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var X=x,q=b,K=F},571:(e,t,n)=>{n.d(t,{Q6:()=>_,bL:()=>U,zi:()=>$,CC:()=>W});var r=n(2115),i=n(1786),o=n(3610),a=n(8068),s=n(8166),l=n(1488),u=n(4256),c=n(7510),d=n(3360),h=n(9741),f=n(5155),p=["PageUp","PageDown"],m=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],v={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},g="Slider",[y,x,w]=(0,h.N)(g),[b,P]=(0,s.A)(g,[w]),[S,E]=b(g),A=r.forwardRef((e,t)=>{let{name:n,min:a=0,max:s=100,step:u=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:h=0,defaultValue:v=[a],value:g,onValueChange:x=()=>{},onValueCommit:w=()=>{},inverted:b=!1,form:P,...E}=e,A=r.useRef(new Set),C=r.useRef(0),T="horizontal"===c?M:R,[k=[],D]=(0,l.i)({prop:g,defaultProp:v,onChange:e=>{var t;null===(t=[...A.current][C.current])||void 0===t||t.focus(),x(e)}}),j=r.useRef(k);function L(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},r=(String(u).split(".")[1]||"").length,o=function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-a)/u)*u+a,r),l=(0,i.q)(o,[a,s]);D(function(){var e,r;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(i,l,t);if(e=o,!(!((r=h*u)>0)||Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=r))return i;{C.current=o.indexOf(l);let e=String(o)!==String(i);return e&&n&&w(o),e?o:i}})}return(0,f.jsx)(S,{scope:e.__scopeSlider,name:n,disabled:d,min:a,max:s,valueIndexToChangeRef:C,thumbs:A.current,values:k,orientation:c,form:P,children:(0,f.jsx)(y.Provider,{scope:e.__scopeSlider,children:(0,f.jsx)(y.Slot,{scope:e.__scopeSlider,children:(0,f.jsx)(T,{"aria-disabled":d,"data-disabled":d?"":void 0,...E,ref:t,onPointerDown:(0,o.m)(E.onPointerDown,()=>{d||(j.current=k)}),min:a,max:s,inverted:b,onSlideStart:d?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(k,e);L(e,t)},onSlideMove:d?void 0:function(e){L(e,C.current)},onSlideEnd:d?void 0:function(){let e=j.current[C.current];k[C.current]!==e&&w(k)},onHomeKeyDown:()=>!d&&L(a,0,{commit:!0}),onEndKeyDown:()=>!d&&L(s,k.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!d){let e=p.includes(t.key)||t.shiftKey&&m.includes(t.key),r=C.current;L(k[r]+u*(e?10:1)*n,r,{commit:!0})}}})})})})});A.displayName=g;var[C,T]=b(g,{startEdge:"left",endEdge:"right",size:"width",direction:1}),M=r.forwardRef((e,t)=>{let{min:n,max:i,dir:o,inverted:s,onSlideStart:l,onSlideMove:c,onSlideEnd:d,onStepKeyDown:h,...p}=e,[m,g]=r.useState(null),y=(0,a.s)(t,e=>g(e)),x=r.useRef(void 0),w=(0,u.jH)(o),b="ltr"===w,P=b&&!s||!b&&s;function S(e){let t=x.current||m.getBoundingClientRect(),r=z([0,t.width],P?[n,i]:[i,n]);return x.current=t,r(e-t.left)}return(0,f.jsx)(C,{scope:e.__scopeSlider,startEdge:P?"left":"right",endEdge:P?"right":"left",direction:P?1:-1,size:"width",children:(0,f.jsx)(k,{dir:w,"data-orientation":"horizontal",...p,ref:y,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=S(e.clientX);null==l||l(t)},onSlideMove:e=>{let t=S(e.clientX);null==c||c(t)},onSlideEnd:()=>{x.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=v[P?"from-left":"from-right"].includes(e.key);null==h||h({event:e,direction:t?-1:1})}})})}),R=r.forwardRef((e,t)=>{let{min:n,max:i,inverted:o,onSlideStart:s,onSlideMove:l,onSlideEnd:u,onStepKeyDown:c,...d}=e,h=r.useRef(null),p=(0,a.s)(t,h),m=r.useRef(void 0),g=!o;function y(e){let t=m.current||h.current.getBoundingClientRect(),r=z([0,t.height],g?[i,n]:[n,i]);return m.current=t,r(e-t.top)}return(0,f.jsx)(C,{scope:e.__scopeSlider,startEdge:g?"bottom":"top",endEdge:g?"top":"bottom",size:"height",direction:g?1:-1,children:(0,f.jsx)(k,{"data-orientation":"vertical",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=y(e.clientY);null==s||s(t)},onSlideMove:e=>{let t=y(e.clientY);null==l||l(t)},onSlideEnd:()=>{m.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=v[g?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),k=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:s,onEndKeyDown:l,onStepKeyDown:u,...c}=e,h=E(g,n);return(0,f.jsx)(d.sG.span,{...c,ref:t,onKeyDown:(0,o.m)(e.onKeyDown,e=>{"Home"===e.key?(s(e),e.preventDefault()):"End"===e.key?(l(e),e.preventDefault()):p.concat(m).includes(e.key)&&(u(e),e.preventDefault())}),onPointerDown:(0,o.m)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),h.thumbs.has(t)?t.focus():r(e)}),onPointerMove:(0,o.m)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:(0,o.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),D="SliderTrack",j=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=E(D,n);return(0,f.jsx)(d.sG.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})});j.displayName=D;var L="SliderRange",V=r.forwardRef((e,t)=>{let{__scopeSlider:n,...i}=e,o=E(L,n),s=T(L,n),l=r.useRef(null),u=(0,a.s)(t,l),c=o.values.length,h=o.values.map(e=>B(e,o.min,o.max)),p=c>1?Math.min(...h):0,m=100-Math.max(...h);return(0,f.jsx)(d.sG.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...i,ref:u,style:{...e.style,[s.startEdge]:p+"%",[s.endEdge]:m+"%"}})});V.displayName=L;var N="SliderThumb",O=r.forwardRef((e,t)=>{let n=x(e.__scopeSlider),[i,o]=r.useState(null),s=(0,a.s)(t,e=>o(e)),l=r.useMemo(()=>i?n().findIndex(e=>e.ref.current===i):-1,[n,i]);return(0,f.jsx)(F,{...e,ref:s,index:l})}),F=r.forwardRef((e,t)=>{let{__scopeSlider:n,index:i,name:s,...l}=e,u=E(N,n),h=T(N,n),[p,m]=r.useState(null),v=(0,a.s)(t,e=>m(e)),g=!p||u.form||!!p.closest("form"),x=(0,c.X)(p),w=u.values[i],b=void 0===w?0:B(w,u.min,u.max),P=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(i,u.values.length),S=null==x?void 0:x[h.size],A=S?function(e,t,n){let r=e/2,i=z([0,50],[0,r]);return(r-i(t)*n)*n}(S,b,h.direction):0;return r.useEffect(()=>{if(p)return u.thumbs.add(p),()=>{u.thumbs.delete(p)}},[p,u.thumbs]),(0,f.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[h.startEdge]:"calc(".concat(b,"% + ").concat(A,"px)")},children:[(0,f.jsx)(y.ItemSlot,{scope:e.__scopeSlider,children:(0,f.jsx)(d.sG.span,{role:"slider","aria-label":e["aria-label"]||P,"aria-valuemin":u.min,"aria-valuenow":w,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...l,ref:v,style:void 0===w?{display:"none"}:e.style,onFocus:(0,o.m)(e.onFocus,()=>{u.valueIndexToChangeRef.current=i})})}),g&&(0,f.jsx)(I,{name:null!=s?s:u.name?u.name+(u.values.length>1?"[]":""):void 0,form:u.form,value:w},i)]})});O.displayName=N;var I=e=>{let{value:t,...n}=e,i=r.useRef(null),o=function(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return r.useEffect(()=>{let e=i.current,n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(o!==t&&n){let r=new Event("input",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[o,t]),(0,f.jsx)("input",{style:{display:"none"},...n,ref:i,defaultValue:t})};function B(e,t,n){return(0,i.q)(100/(n-t)*(e-t),[0,100])}function z(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var U=A,W=j,_=V,$=O},2317:(e,t,n)=>{n.d(t,{DX:()=>a});var r=n(2115),i=n(8068),o=n(5155),a=r.forwardRef((e,t)=>{let{children:n,...i}=e,a=r.Children.toArray(n),l=a.find(u);if(l){let e=l.props.children,n=a.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(s,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,o.jsx)(s,{...i,ref:t,children:n})});a.displayName="Slot";var s=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),a=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?(0,i.t)(t,e):e),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null});s.displayName="SlotClone";var l=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});function u(e){return r.isValidElement(e)&&e.type===l}},8629:(e,t,n)=>{n.d(t,{B8:()=>R,UC:()=>D,bL:()=>M,l9:()=>k});var r=n(2115),i=n(3610),o=n(8166),a=n(7357),s=n(7028),l=n(3360),u=n(4256),c=n(1488),d=n(7668),h=n(5155),f="Tabs",[p,m]=(0,o.A)(f,[a.RG]),v=(0,a.RG)(),[g,y]=p(f),x=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:a="horizontal",dir:s,activationMode:f="automatic",...p}=e,m=(0,u.jH)(s),[v,y]=(0,c.i)({prop:r,onChange:i,defaultProp:o});return(0,h.jsx)(g,{scope:n,baseId:(0,d.B)(),value:v,onValueChange:y,orientation:a,dir:m,activationMode:f,children:(0,h.jsx)(l.sG.div,{dir:m,"data-orientation":a,...p,ref:t})})});x.displayName=f;var w="TabsList",b=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,o=y(w,n),s=v(n);return(0,h.jsx)(a.bL,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:(0,h.jsx)(l.sG.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});b.displayName=w;var P="TabsTrigger",S=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,u=y(P,n),c=v(n),d=C(u.baseId,r),f=T(u.baseId,r),p=r===u.value;return(0,h.jsx)(a.q7,{asChild:!0,...c,focusable:!o,active:p,children:(0,h.jsx)(l.sG.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:(0,i.m)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(r)}),onKeyDown:(0,i.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(r)}),onFocus:(0,i.m)(e.onFocus,()=>{let e="manual"!==u.activationMode;p||o||!e||u.onValueChange(r)})})})});S.displayName=P;var E="TabsContent",A=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,forceMount:o,children:a,...u}=e,c=y(E,n),d=C(c.baseId,i),f=T(c.baseId,i),p=i===c.value,m=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(s.C,{present:o||p,children:n=>{let{present:r}=n;return(0,h.jsx)(l.sG.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:f,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&a})}})});function C(e,t){return"".concat(e,"-trigger-").concat(t)}function T(e,t){return"".concat(e,"-content-").concat(t)}A.displayName=E;var M=x,R=b,k=S,D=A},1524:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(2115);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,n)=>{n.d(t,{i:()=>o});var r=n(2115),i=n(1524);function o({prop:e,defaultProp:t,onChange:n=()=>{}}){let[o,a]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[o]=n,a=r.useRef(o),s=(0,i.c)(t);return r.useEffect(()=>{a.current!==o&&(s(o),a.current=o)},[o,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o,u=(0,i.c)(n);return[l,r.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else a(t)},[s,e,a,u])]}},6611:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(2115),i=globalThis?.document?r.useLayoutEffect:()=>{}},7510:(e,t,n)=>{n.d(t,{X:()=>o});var r=n(2115),i=n(6611);function o(e){let[t,n]=r.useState(void 0);return(0,i.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},7249:(e,t,n)=>{n.d(t,{Q:()=>r});let r=(0,n(2115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},5154:(e,t,n)=>{n.d(t,{P:()=>r9});var r,i,o=n(1938);function a(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function s(e,t,n,r){if("function"==typeof t||("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t)){let[i,o]=function(e){let t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}(r);t=t(void 0!==n?n:e.custom,i,o)}return t}function l(e,t,n){let r=e.getProps();return s(r,t,void 0!==n?n:r.custom,e)}var u=n(9512);let c=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],d=new Set(c),h=new Set(["width","height","top","left","right","bottom",...c]),f=e=>Array.isArray(e),p=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),m=e=>f(e)?e[e.length-1]||0:e,v=e=>!!(e&&e.getVelocity);function g(e,t){let n=e.getValue("willChange");if(v(n)&&n.add)return n.add(t)}let y=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),x="data-"+y("framerAppearId"),w={current:!1},b=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function P(e,t,n,r){if(e===t&&n===r)return o.lQ;let i=t=>(function(e,t,n,r,i){let o,a;let s=0;do(o=b(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:b(i(e),t,r)}let S=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,E=e=>t=>1-e(1-t),A=P(.33,1.53,.69,.99),C=E(A),T=S(C),M=e=>(e*=2)<1?.5*C(e):.5*(2-Math.pow(2,-10*(e-1))),R=e=>1-Math.sin(Math.acos(e)),k=E(R),D=S(R),j=e=>/^0[^.\s]+$/u.test(e);var L=n(5254),V=n(1014);let N=new Set(["brightness","contrast","saturate","opacity"]);function O(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(V.S)||[];if(!r)return e;let i=n.replace(r,""),o=N.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let F=/\b([a-z-]*)\(.*?\)/gu,I={...L.f,getAnimatableNone:e=>{let t=e.match(F);return t?t.map(O).join(" "):e}};var B=n(4064),z=n(1535),U=n(3406);let W={borderWidth:U.px,borderTopWidth:U.px,borderRightWidth:U.px,borderBottomWidth:U.px,borderLeftWidth:U.px,borderRadius:U.px,radius:U.px,borderTopLeftRadius:U.px,borderTopRightRadius:U.px,borderBottomRightRadius:U.px,borderBottomLeftRadius:U.px,width:U.px,maxWidth:U.px,height:U.px,maxHeight:U.px,top:U.px,right:U.px,bottom:U.px,left:U.px,padding:U.px,paddingTop:U.px,paddingRight:U.px,paddingBottom:U.px,paddingLeft:U.px,margin:U.px,marginTop:U.px,marginRight:U.px,marginBottom:U.px,marginLeft:U.px,backgroundPositionX:U.px,backgroundPositionY:U.px},_={rotate:U.uj,rotateX:U.uj,rotateY:U.uj,rotateZ:U.uj,scale:z.hs,scaleX:z.hs,scaleY:z.hs,scaleZ:z.hs,skew:U.uj,skewX:U.uj,skewY:U.uj,distance:U.px,translateX:U.px,translateY:U.px,translateZ:U.px,x:U.px,y:U.px,z:U.px,perspective:U.px,transformPerspective:U.px,opacity:z.X4,originX:U.gQ,originY:U.gQ,originZ:U.px},$={...z.ai,transform:Math.round},G={...W,..._,zIndex:$,size:U.px,fillOpacity:z.X4,strokeOpacity:z.X4,numOctaves:$},H={...G,color:B.y,backgroundColor:B.y,outlineColor:B.y,fill:B.y,stroke:B.y,borderColor:B.y,borderTopColor:B.y,borderRightColor:B.y,borderBottomColor:B.y,borderLeftColor:B.y,filter:I,WebkitFilter:I},X=e=>H[e];function q(e,t){let n=X(e);return n!==I&&(n=L.f),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let K=new Set(["auto","none","0"]),Y=e=>180*e/Math.PI,Q=e=>J(Y(Math.atan2(e[1],e[0]))),Z={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Q,rotateZ:Q,skewX:e=>Y(Math.atan(e[1])),skewY:e=>Y(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},J=e=>((e%=360)<0&&(e+=360),e),ee=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),et=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),en={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ee,scaleY:et,scale:e=>(ee(e)+et(e))/2,rotateX:e=>J(Y(Math.atan2(e[6],e[5]))),rotateY:e=>J(Y(Math.atan2(-e[2],e[0]))),rotateZ:Q,rotate:Q,skewX:e=>Y(Math.atan(e[4])),skewY:e=>Y(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function er(e){return e.includes("scale")?1:0}function ei(e,t){let n,r;if(!e||"none"===e)return er(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=en,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Z,r=t}if(!r)return er(t);let o=n[t],a=r[1].split(",").map(ea);return"function"==typeof o?o(a):a[o]}let eo=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return ei(n,t)};function ea(e){return parseFloat(e.trim())}let es=e=>e===z.ai||e===U.px,el=new Set(["x","y","z"]),eu=c.filter(e=>!el.has(e)),ec={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ei(t,"x"),y:(e,{transform:t})=>ei(t,"y")};ec.translateX=ec.x,ec.translateY=ec.y;let ed=new Set,eh=!1,ef=!1;function ep(){if(ef){let e=Array.from(ed).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return eu.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ef=!1,eh=!1,ed.forEach(e=>e.complete()),ed.clear()}function em(){ed.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ef=!0)})}class ev{constructor(e,t,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ed.add(this),eh||(eh=!0,u.Gt.read(em),u.Gt.resolveKeyframes(ep))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i]){if(0===i){let i=null==r?void 0:r.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ed.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ed.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var ey=n(2271);let ex=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ew=e=>t=>t.test(e),eb=[z.ai,U.px,U.KN,U.uj,U.vw,U.vh,{test:e=>"auto"===e,parse:e=>e}],eP=e=>eb.find(ew(e));class eS extends ev{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),(0,ey.p)(r))){let i=function e(t,n,r=1){(0,o.V1)(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,a]=function(e){let t=ex.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return eg(e)?parseFloat(e):e}return(0,ey.p)(a)?e(a,n,r+1):a}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!h.has(n)||2!==e.length)return;let[r,i]=e,a=eP(r),s=eP(i);if(a!==s){if(es(a)&&es(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||j(r))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!K.has(t)&&(0,L.V)(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=q(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ec[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let o=r.length-1,a=r[o];r[o]=ec[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let eE=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(L.f.test(e)||"0"===e)&&!e.startsWith("url(")),eA=e=>null!==e;function eC(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(eA),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}class eT{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=u.kB.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(em(),ep()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=u.kB.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:a,onComplete:s,onUpdate:l,isGenerator:c}=this.options;if(!c&&!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=eE(i,t),l=eE(a,t);return(0,o.$e)(s===l,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!!s&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||(0,u.WH)(n))&&r)}(e,n,r,i)){if(w.current||!a){l&&l(eC(e,this.options,t)),s&&s(),this.resolveFinishedPromise();return}this.options.duration=0}let d=this.initPlayback(e,t);!1!==d&&(this._resolved={keyframes:e,finalKeyframe:t,...d},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}var eM=n(8992),eR=n(1671),ek=n(5068);function eD(e,t,n){let r=Math.max(t-5,0);return(0,o.fj)(n-e(r),t-r)}let ej={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eL(e,t){return e*Math.sqrt(1-t*t)}let eV=["duration","bounce"],eN=["stiffness","damping","mass"];function eO(e,t){return t.some(t=>void 0!==e[t])}function eF(e=ej.visualDuration,t=ej.bounce){let n;let r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:a}=r,s=r.keyframes[0],l=r.keyframes[r.keyframes.length-1],c={done:!1,value:s},{stiffness:d,damping:h,mass:f,duration:p,velocity:m,isResolvedFromDuration:v}=function(e){let t={velocity:ej.velocity,stiffness:ej.stiffness,damping:ej.damping,mass:ej.mass,isResolvedFromDuration:!1,...e};if(!eO(e,eN)&&eO(e,eV)){if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*(0,eM.q)(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:ej.mass,stiffness:r,damping:i}}else{let n=function({duration:e=ej.duration,bounce:t=ej.bounce,velocity:n=ej.velocity,mass:r=ej.mass}){let i,a;(0,o.$e)(e<=(0,o.fD)(ej.maxDuration),"Spring duration must be 10 seconds or less");let s=1-t;s=(0,eM.q)(ej.minDamping,ej.maxDamping,s),e=(0,eM.q)(ej.minDuration,ej.maxDuration,(0,o.Xu)(e)),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/eL(t,s)*Math.exp(-i)},a=t=>{let r=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=eL(Math.pow(t,2),s);return(r*n+n-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,a,5/e);if(e=(0,o.fD)(e),isNaN(l))return{stiffness:ej.stiffness,damping:ej.damping,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:ej.mass}).isResolvedFromDuration=!0}}return t}({...r,velocity:-(0,o.Xu)(r.velocity||0)}),g=m||0,y=h/(2*Math.sqrt(d*f)),x=l-s,w=(0,o.Xu)(Math.sqrt(d/f)),b=5>Math.abs(x);if(i||(i=b?ej.restSpeed.granular:ej.restSpeed.default),a||(a=b?ej.restDelta.granular:ej.restDelta.default),y<1){let e=eL(w,y);n=t=>l-Math.exp(-y*w*t)*((g+y*w*x)/e*Math.sin(e*t)+x*Math.cos(e*t))}else if(1===y)n=e=>l-Math.exp(-w*e)*(x+(g+w*x)*e);else{let e=w*Math.sqrt(y*y-1);n=t=>{let n=Math.exp(-y*w*t),r=Math.min(e*t,300);return l-n*((g+y*w*x)*Math.sinh(r)+e*x*Math.cosh(r))/e}}let P={calculatedDuration:v&&p||null,next:e=>{let t=n(e);if(v)c.done=e>=p;else{let r=0;y<1&&(r=0===e?(0,o.fD)(g):eD(n,e,t));let s=Math.abs(r)<=i,u=Math.abs(l-t)<=a;c.done=s&&u}return c.value=c.done?l:t,c},toString:()=>{let e=Math.min((0,u.tu)(P),u.YE),t=(0,u.KZ)(t=>P.next(e*t).value,e,30);return e+"ms "+t}};return P}function eI({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,v=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,g=n*t,y=f+g,x=void 0===a?y:a(y);x!==y&&(g=x-f);let w=e=>-g*Math.exp(-e/r),b=e=>x+w(e),P=e=>{let t=w(e),n=b(e);p.done=Math.abs(t)<=u,p.value=p.done?x:n},S=e=>{m(p.value)&&(d=e,h=eF({keyframes:[p.value,v(p.value)],velocity:eD(b,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,P(e),S(e)),void 0!==d&&e>=d)?h.next(e-d):(t||P(e),p)}}}let eB=P(.42,0,1,1),ez=P(0,0,.58,1),eU=P(.42,0,.58,1),eW=e=>Array.isArray(e)&&"number"!=typeof e[0],e_={linear:o.lQ,easeIn:eB,easeInOut:eU,easeOut:ez,circIn:R,circInOut:D,circOut:k,backIn:C,backInOut:T,backOut:A,anticipate:M},e$=e=>{if((0,u.DW)(e)){(0,o.V1)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return P(t,n,r,i)}return"string"==typeof e?((0,o.V1)(void 0!==e_[e],`Invalid easing type '${e}'`),e_[e]):e};var eG=n(7751),eH=n(10);function eX({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=eW(r)?r.map(e$):e$(r),a={done:!1,value:t[0]},s=(n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=(0,o.qB)(0,t,r);e.push((0,eH.k)(n,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),l=(0,eG.G)(s,t,{ease:Array.isArray(i)?i:t.map(()=>i||eU).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=l(t),a.done=t>=e,a)}}let eq=e=>{let t=({timestamp:t})=>e(t);return{start:()=>u.Gt.update(t,!0),stop:()=>(0,u.WG)(t),now:()=>u.uv.isProcessing?u.uv.timestamp:u.kB.now()}},eK={decay:eI,inertia:eI,tween:eX,keyframes:eX,spring:eF},eY=e=>e/100;class eQ extends eT{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options,o=(null==r?void 0:r.KeyframeResolver)||ev;this.resolver=new o(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,n;let{type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=this.options,l=(0,u.WH)(r)?r:eK[r]||eX;l!==eX&&"number"!=typeof e[0]&&(t=(0,ek.F)(eY,(0,eR.j)(e[0],e[1])),e=[0,100]);let c=l({...this.options,keyframes:e});"mirror"===a&&(n=l({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===c.calculatedDuration&&(c.calculatedDuration=(0,u.tu)(c));let{calculatedDuration:d}=c,h=d+o;return{generator:c,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:d,resolvedDuration:h,totalDuration:h*(i+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;u.qU.mainThread++,this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);let{delay:d,repeat:h,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=i;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===f?(n=1-n,p&&(n-=p/c)):"mirror"===f&&(x=o)),y=(0,eM.q)(0,1,n)*c}let w=g?{done:!1,value:s[0]}:x.next(y);a&&(w.value=a(w.value));let{done:b}=w;g||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return P&&void 0!==r&&(w.value=eC(s,this.options,r)),m&&m(w.value),P&&this.finish(),w}get duration(){let{resolved:e}=this;return e?(0,o.Xu)(e.calculatedDuration):0}get time(){return(0,o.Xu)(this.currentTime)}set time(e){e=(0,o.fD)(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=(0,o.Xu)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=eq,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),u.qU.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let eZ=new Set(["opacity","clipPath","filter","transform"]),eJ=(0,o.ph)(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e0={anticipate:M,backInOut:T,circInOut:D};class e1 extends eT{constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new eS(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:o,type:a,motionValue:s,name:l,startTime:c}=this.options;if(!s.owner||!s.owner.current)return!1;if("string"==typeof o&&(0,u.nL)()&&o in e0&&(o=e0[o]),n=this.options,(0,u.WH)(n.type)||"spring"===n.type||!(0,u.yL)(n.ease)){let{onComplete:t,onUpdate:n,motionValue:s,element:l,...u}=this.options,c=function(e,t){let n=new eQ({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],o=0;for(;!r.done&&o<2e4;)i.push((r=n.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,i=c.times,o=c.ease,a="keyframes"}let d=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){let c={[t]:n};l&&(c.offset=l);let d=(0,u.TU)(s,i);Array.isArray(d)&&(c.easing=d),u.Qu.value&&u.qU.waapi++;let h=e.animate(c,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"});return u.Qu.value&&h.finished.finally(()=>{u.qU.waapi--}),h}(s.owner.current,l,e,{...this.options,duration:r,times:i,ease:o});return d.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?((0,u.vG)(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:n}=this.options;s.set(eC(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return(0,o.Xu)(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(0,o.Xu)(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=(0,o.fD)(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return o.lQ;let{animation:n}=t;(0,u.vG)(n,e)}else this.pendingTimeline=e;return o.lQ}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:a,times:s}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:l,element:u,...c}=this.options,d=new eQ({...c,keyframes:n,duration:r,type:i,ease:a,times:s,isGenerator:!0}),h=(0,o.fD)(this.time);e.setWithVelocity(d.sample(h-10).value,d.sample(h).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return eJ()&&n&&eZ.has(n)&&!s&&!l&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}}let e2={type:"spring",stiffness:500,damping:25,restSpeed:10},e5=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),e3={type:"keyframes",duration:.8},e6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e4=(e,{keyframes:t})=>t.length>2?e3:d.has(e)?e.startsWith("scale")?e5(t[1]):e2:e6,e7=(e,t,n,r={},i,a)=>s=>{let l=(0,u.rU)(r,e)||{},c=l.delay||r.delay||0,{elapsed:d=0}=r;d-=(0,o.fD)(c);let h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&(h={...h,...e4(e,h)}),h.duration&&(h.duration=(0,o.fD)(h.duration)),h.repeatDelay&&(h.repeatDelay=(0,o.fD)(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let f=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0!==h.delay||(f=!0)),(w.current||o.W9.skipAnimations)&&(f=!0,h.duration=0,h.delay=0),h.allowFlatten=!l.type&&!l.ease,f&&!a&&void 0!==t.get()){let e=eC(h.keyframes,l);if(void 0!==e)return u.Gt.update(()=>{h.onUpdate(e),h.onComplete()}),new u.P6([])}return!a&&e1.supports(h)?new e1(h):new eQ(h)};function e9(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...c}=t;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(let t in c){let r=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),i=c[t];if(void 0===i||f&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(f,t))continue;let s={delay:n,...(0,u.rU)(a||{},t)},l=!1;if(window.MotionHandoffAnimation){let n=e.props[x];if(n){let e=window.MotionHandoffAnimation(n,t,u.Gt);null!==e&&(s.startTime=e,l=!0)}}g(e,t),r.start(e7(t,r,i,e.shouldReduceMotion&&h.has(t)?{type:!1}:s,e,l));let p=r.animation;p&&d.push(p)}return s&&Promise.all(d).then(()=>{u.Gt.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=l(e,t)||{};for(let t in i={...i,...n}){let n=m(i[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,(0,u.OQ)(n))}}(e,s)})}),d}function e8(e,t,n={}){var r;let i=l(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>Promise.all(e9(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(te).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(e8(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:u}=o;if(!u)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===u?[a,s]:[s,a];return e().then(()=>t())}}function te(e,t){return e.sortNodePosition(t)}function tt(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function tn(e){return"string"==typeof e||Array.isArray(e)}let tr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ti=["initial",...tr],to=ti.length,ta=[...tr].reverse(),ts=tr.length;function tl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tu(){return{animate:tl(!0),whileInView:tl(),whileHover:tl(),whileTap:tl(),whileDrag:tl(),whileFocus:tl(),exit:tl()}}class tc{constructor(e){this.isMounted=!1,this.node=e}update(){}}class td extends tc{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>e8(e,t,n)));else if("string"==typeof t)r=e8(e,t,n);else{let i="function"==typeof t?l(e,t,n.custom):t;r=Promise.all(e9(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=tu(),r=!0,i=t=>(n,r)=>{var i;let o=l(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function o(o){let{props:s}=e,u=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<to;e++){let r=ti[e],i=t.props[r];(tn(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],d=new Set,h={},p=1/0;for(let t=0;t<ts;t++){var m;let l=ta[t],v=n[l],g=void 0!==s[l]?s[l]:u[l],y=tn(g),x=l===o?v.isActive:null;!1===x&&(p=t);let w=g===u[l]&&g!==s[l]&&y;if(w&&r&&e.manuallyAnimateOnMount&&(w=!1),v.protectedKeys={...h},!v.isActive&&null===x||!g&&!v.prevProp||a(g)||"boolean"==typeof g)continue;let b=(m=v.prevProp,"string"==typeof g?g!==m:!!Array.isArray(g)&&!tt(g,m)),P=b||l===o&&v.isActive&&!w&&y||t>p&&y,S=!1,E=Array.isArray(g)?g:[g],A=E.reduce(i(l),{});!1===x&&(A={});let{prevResolvedValues:C={}}=v,T={...C,...A},M=t=>{P=!0,d.has(t)&&(S=!0,d.delete(t)),v.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=A[e],n=C[e];if(!h.hasOwnProperty(e))(f(t)&&f(n)?tt(t,n):t===n)?void 0!==t&&d.has(e)?M(e):v.protectedKeys[e]=!0:null!=t?M(e):d.add(e)}v.prevProp=g,v.prevResolvedValues=A,v.isActive&&(h={...h,...A}),r&&e.blockInitialAnimation&&(P=!1);let R=!(w&&b)||S;P&&R&&c.push(...E.map(e=>({animation:e,options:{type:l}})))}if(d.size){let t={};if("boolean"!=typeof s.initial){let n=l(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}d.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null}),c.push({animation:t})}let v=!!c.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;let a=o(t);for(let e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=tu(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();a(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}let th=0;class tf extends tc{constructor(){super(...arguments),this.id=th++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}function tp(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function tm(e){return{point:{x:e.pageX,y:e.pageY}}}let tv=e=>t=>(0,u.Mc)(t)&&e(t,tm(t));function tg(e,t,n,r){return tp(e,t,tv(n),r)}function ty({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tx(e){return e.max-e.min}function tw(e,t,n,r=.5){e.origin=r,e.originPoint=(0,eH.k)(t.min,t.max,e.origin),e.scale=tx(n)/tx(t),e.translate=(0,eH.k)(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function tb(e,t,n,r){tw(e.x,t.x,n.x,r?r.originX:void 0),tw(e.y,t.y,n.y,r?r.originY:void 0)}function tP(e,t,n){e.min=n.min+t.min,e.max=e.min+tx(t)}function tS(e,t,n){e.min=t.min-n.min,e.max=e.min+tx(t)}function tE(e,t,n){tS(e.x,t.x,n.x),tS(e.y,t.y,n.y)}let tA=()=>({translate:0,scale:1,origin:0,originPoint:0}),tC=()=>({x:tA(),y:tA()}),tT=()=>({min:0,max:0}),tM=()=>({x:tT(),y:tT()});function tR(e){return[e("x"),e("y")]}function tk(e){return void 0===e||1===e}function tD({scale:e,scaleX:t,scaleY:n}){return!tk(e)||!tk(t)||!tk(n)}function tj(e){return tD(e)||tL(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tL(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function tV(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function tN(e,t=0,n=1,r,i){e.min=tV(e.min,t,n,r,i),e.max=tV(e.max,t,n,r,i)}function tO(e,{x:t,y:n}){tN(e.x,t.translate,t.scale,t.originPoint),tN(e.y,n.translate,n.scale,n.originPoint)}function tF(e,t){e.min=e.min+t,e.max=e.max+t}function tI(e,t,n,r,i=.5){let o=(0,eH.k)(e.min,e.max,i);tN(e,t,n,o,r)}function tB(e,t){tI(e.x,t.x,t.scaleX,t.scale,t.originX),tI(e.y,t.y,t.scaleY,t.scale,t.originY)}function tz(e,t){return ty(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let tU=({current:e})=>e?e.ownerDocument.defaultView:null;function tW(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let t_=(e,t)=>Math.abs(e-t);class t${constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=tX(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(t_(e.x,t.x)**2+t_(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=u.uv;this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=tG(t,this.transformPagePoint),u.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=tX("pointercancel"===e.type?this.lastMoveEventInfo:tG(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!(0,u.Mc)(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=tG(tm(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=u.uv;this.history=[{...a,timestamp:s}];let{onSessionStart:l}=t;l&&l(e,tX(o,this.history)),this.removeListeners=(0,ek.F)(tg(this.contextWindow,"pointermove",this.handlePointerMove),tg(this.contextWindow,"pointerup",this.handlePointerUp),tg(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,u.WG)(this.updatePoint)}}function tG(e,t){return t?{point:t(e.point)}:e}function tH(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tX({point:e},t){return{point:e,delta:tH(e,tq(t)),offset:tH(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=tq(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>(0,o.fD)(.1)));)n--;if(!r)return{x:0,y:0};let a=(0,o.Xu)(i.timestamp-r.timestamp);if(0===a)return{x:0,y:0};let s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function tq(e){return e[e.length-1]}function tK(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function tY(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function tQ(e,t,n){return{min:tZ(e,t),max:tZ(e,n)}}function tZ(e,t){return"number"==typeof e?e:e[t]||0}let tJ=new WeakMap;class t0{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tM(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new t$(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(tm(e).point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=(0,u.Wp)(n),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tR(e=>{let t=this.getAxisMotionValue(e).get()||0;if(U.KN.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=tx(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&u.Gt.postRender(()=>i(e,t)),g(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>tR(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:tU(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&u.Gt.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!t1(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?(0,eH.k)(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?(0,eH.k)(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&tW(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:tK(e.x,n,i),y:tK(e.y,t,r)}}(r.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:tQ(e,"left","right"),y:tQ(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&tR(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!tW(t))return!1;let r=t.current;(0,o.V1)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let a=function(e,t,n){let r=tz(e,n),{scroll:i}=t;return i&&(tF(r.x,i.offset.x),tF(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:tY((e=i.layout.layoutBox).x,a.x),y:tY(e.y,a.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=ty(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(tR(a=>{if(!t1(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return g(this.visualElement,e),n.start(e7(e,n,0,t,this.visualElement,!1))}stopAnimation(){tR(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){tR(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){tR(t=>{let{drag:n}=this.getProps();if(!t1(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-(0,eH.k)(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!tW(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};tR(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=tx(e),i=tx(t);return i>r?n=(0,o.qB)(t.min,t.max-r,e.min):r>i&&(n=(0,o.qB)(e.min,e.max-i,t.min)),(0,eM.q)(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),tR(t=>{if(!t1(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set((0,eH.k)(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;tJ.set(this.visualElement,this);let e=tg(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();tW(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),u.Gt.read(t);let i=tp(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(tR(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function t1(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class t2 extends tc{constructor(e){super(e),this.removeGroupControls=o.lQ,this.removeListeners=o.lQ,this.controls=new t0(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||o.lQ}unmount(){this.removeGroupControls(),this.removeListeners()}}let t5=e=>(t,n)=>{e&&u.Gt.postRender(()=>e(t,n))};class t3 extends tc{constructor(){super(...arguments),this.removePointerDownListener=o.lQ}onPointerDown(e){this.session=new t$(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tU(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:t5(e),onStart:t5(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&u.Gt.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=tg(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var t6=n(5155),t4=n(2115);let t7=(0,t4.createContext)(null),t9=(0,t4.createContext)({}),t8=(0,t4.createContext)({}),ne={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nt(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nn={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!U.px.test(e))return e;e=parseFloat(e)}let n=nt(e,t.target.x),r=nt(e,t.target.y);return`${n}% ${r}%`}},nr={};class ni extends t4.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;!function(e){for(let t in e)nr[t]=e[t],(0,ey.j)(t)&&(nr[t].isCSSVariable=!0)}(na),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ne.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||u.Gt.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),u.k2.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function no(e){let[t,n]=function(e=!0){let t=(0,t4.useContext)(t7);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,o=(0,t4.useId)();(0,t4.useEffect)(()=>{if(e)return i(o)},[e]);let a=(0,t4.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}(),r=(0,t4.useContext)(t9);return(0,t6.jsx)(ni,{...e,layoutGroup:r,switchLayoutGroup:(0,t4.useContext)(t8),isPresent:t,safeToRemove:n})}let na={borderRadius:{...nn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nn,borderTopRightRadius:nn,borderBottomLeftRadius:nn,borderBottomRightRadius:nn,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=L.f.parse(e);if(r.length>5)return e;let i=L.f.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=(0,eH.k)(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}},ns=(e,t)=>e.depth-t.depth;class nl{constructor(){this.children=[],this.isDirty=!1}add(e){(0,o.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,o.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ns),this.isDirty=!1,this.children.forEach(e)}}function nu(e){let t=v(e)?e.get():e;return p(t)?t.toValue():t}let nc=["TopLeft","TopRight","BottomLeft","BottomRight"],nd=nc.length,nh=e=>"string"==typeof e?parseFloat(e):e,nf=e=>"number"==typeof e||U.px.test(e);function np(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nm=ng(0,.5,k),nv=ng(.5,.95,o.lQ);function ng(e,t,n){return r=>r<e?0:r>t?1:n((0,o.qB)(e,t,r))}function ny(e,t){e.min=t.min,e.max=t.max}function nx(e,t){ny(e.x,t.x),ny(e.y,t.y)}function nw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nb(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function nP(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(U.KN.test(t)&&(t=parseFloat(t),t=(0,eH.k)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=(0,eH.k)(o.min,o.max,r);e===o&&(s-=t),e.min=nb(e.min,t,n,s,i),e.max=nb(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let nS=["x","scaleX","originX"],nE=["y","scaleY","originY"];function nA(e,t,n,r){nP(e.x,t,nS,n?n.x:void 0,r?r.x:void 0),nP(e.y,t,nE,n?n.y:void 0,r?r.y:void 0)}function nC(e){return 0===e.translate&&1===e.scale}function nT(e){return nC(e.x)&&nC(e.y)}function nM(e,t){return e.min===t.min&&e.max===t.max}function nR(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function nk(e,t){return nR(e.x,t.x)&&nR(e.y,t.y)}function nD(e){return tx(e.x)/tx(e.y)}function nj(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nL{constructor(){this.members=[]}add(e){(0,o.Kq)(this.members,e),e.scheduleRender()}remove(e){if((0,o.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nV={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nN=["","X","Y","Z"],nO={visibility:"hidden"},nF=0;function nI(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nB({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=null==t?void 0:t()){this.id=nF++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,u.Qu.value&&(nV.nodes=nV.calculatedTargetDeltas=nV.calculatedProjections=0),this.nodes.forEach(nW),this.nodes.forEach(nK),this.nodes.forEach(nY),this.nodes.forEach(n_),u.Qu.addProjectionMetrics&&u.Qu.addProjectionMetrics(nV)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new o.vY),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;let r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=u.kB.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&((0,u.WG)(r),e(i-250))};return u.Gt.read(r,!0),()=>(0,u.WG)(r)}(r,250),ne.hasAnimatedSinceResize&&(ne.hasAnimatedSinceResize=!1,this.nodes.forEach(nq))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||n2,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!nk(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let t={...(0,u.rU)(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||nq(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,u.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(nQ),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[x];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",u.Gt,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nG);return}this.isUpdating||this.nodes.forEach(nH),this.isUpdating=!1,this.nodes.forEach(nX),this.nodes.forEach(nz),this.nodes.forEach(nU),this.clearAllSnapshots();let e=u.kB.now();u.uv.delta=(0,eM.q)(0,1e3/60,e-u.uv.timestamp),u.uv.timestamp=e,u.uv.isProcessing=!0,u.PP.update.process(u.uv),u.PP.preRender.process(u.uv),u.PP.render.process(u.uv),u.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,u.k2.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n$),this.sharedNodes.forEach(nZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,u.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){u.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||tx(this.snapshot.measuredBox.x)||tx(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tM(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!nT(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||tj(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),n6((t=r).x),n6(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return tM();let n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(n7))){let{scroll:e}=this.root;e&&(tF(n.x,e.offset.x),tF(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=tM();if(nx(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){let r=this.path[t],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&nx(n,e),tF(n.x,i.offset.x),tF(n.y,i.offset.y))}return n}applyTransform(e,t=!1){let n=tM();nx(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&tB(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),tj(r.latestValues)&&tB(n,r.latestValues)}return tj(this.latestValues)&&tB(n,this.latestValues),n}removeTransform(e){let t=tM();nx(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!tj(n.latestValues))continue;tD(n.latestValues)&&n.updateSnapshot();let r=tM();nx(r,n.measurePageBox()),nA(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return tj(this.latestValues)&&nA(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==u.uv.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,r,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:l}=this.options;if(this.layout&&(s||l)){if(this.resolvedRelativeTargetAt=u.uv.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tM(),this.relativeTargetOrigin=tM(),tE(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=tM(),this.targetWithTransforms=tM()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,tP(n.x,r.x,i.x),tP(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nx(this.target,this.layout.layoutBox),tO(this.target,this.targetDelta)):nx(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tM(),this.relativeTargetOrigin=tM(),tE(this.relativeTargetOrigin,this.target,e.target),nx(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}u.Qu.value&&nV.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||tD(this.parent.latestValues)||tL(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===u.uv.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;nx(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o;let a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&tB(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,tO(e,o)),r&&tj(i.latestValues)&&tB(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=tM());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nw(this.prevProjectionDelta.x,this.projectionDelta.x),nw(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tb(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&nj(this.projectionDelta.x,this.prevProjectionDelta.x)&&nj(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),u.Qu.value&&nV.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tC(),this.projectionDelta=tC(),this.projectionDeltaWithTransform=tC()}setAnimationOrigin(e,t=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=tC();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=tM(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(n1));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(nJ(a.x,e.x,r),nJ(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p;tE(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,n0(f.x,p.x,s.x,r),n0(f.y,p.y,s.y,r),n&&(u=this.relativeTarget,h=n,nM(u.x,h.x)&&nM(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=tM()),nx(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=(0,eH.k)(0,void 0!==n.opacity?n.opacity:1,nm(r)),e.opacityExit=(0,eH.k)(void 0!==t.opacity?t.opacity:1,0,nv(r))):o&&(e.opacity=(0,eH.k)(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<nd;i++){let o=`border${nc[i]}Radius`,a=np(t,o),s=np(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||nf(a)===nf(s)?(e[o]=Math.max((0,eH.k)(nh(a),nh(s),r),0),(U.KN.test(s)||U.KN.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=(0,eH.k)(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,u.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=u.Gt.update(()=>{ne.hasAnimatedSinceResize=!0,u.qU.layout++,this.currentAnimation=function(e,t,n){let r=v(0)?0:(0,u.OQ)(0);return r.start(e7("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{u.qU.layout--},onComplete:()=>{u.qU.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&n4(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||tM();let t=tx(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=tx(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}nx(t,n),tB(t,i),tb(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nL),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&nI("z",e,r,this.animationValues);for(let t=0;t<nN.length;t++)nI(`rotate${nN[t]}`,e,r,this.animationValues),nI(`skew${nN[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nO;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=nu(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nu(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!tj(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));let{x:s,y:l}=this.projectionDelta;for(let e in r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,nr){if(void 0===a[e])continue;let{correct:t,applyTo:n,isCSSVariable:i}=nr[e],s="none"===r.transform?a[e]:t(a[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)r[n[t]]=s}else i?this.options.visualElement.renderState.vars[e]=s:r[e]=s}return this.options.layoutId&&(r.pointerEvents=o===this?nu(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(nG),this.root.sharedNodes.clear()}}}function nz(e){e.updateLayout()}function nU(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?tR(e=>{let r=o?n.measuredBox[e]:n.layoutBox[e],i=tx(r);r.min=t[e].min,r.max=r.min+i}):n4(i,n.layoutBox,t)&&tR(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],a=tx(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=tC();tb(a,t,n.layoutBox);let s=tC();o?tb(s,e.applyTransform(r,!0),n.measuredBox):tb(s,t,n.layoutBox);let l=!nT(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=tM();tE(a,n.layoutBox,i.layoutBox);let s=tM();tE(s,t,o.layoutBox),nk(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nW(e){u.Qu.value&&nV.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function n_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function n$(e){e.clearSnapshot()}function nG(e){e.clearMeasurements()}function nH(e){e.isLayoutDirty=!1}function nX(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nq(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nK(e){e.resolveTargetDelta()}function nY(e){e.calcProjection()}function nQ(e){e.resetSkewAndRotation()}function nZ(e){e.removeLeadSnapshot()}function nJ(e,t,n){e.translate=(0,eH.k)(t.translate,0,n),e.scale=(0,eH.k)(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function n0(e,t,n,r){e.min=(0,eH.k)(t.min,n.min,r),e.max=(0,eH.k)(t.max,n.max,r)}function n1(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let n2={duration:.45,ease:[.4,0,.1,1]},n5=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),n3=n5("applewebkit/")&&!n5("chrome/")?Math.round:o.lQ;function n6(e){e.min=n3(e.min),e.max=n3(e.max)}function n4(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(nD(t)-nD(n)))}function n7(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let n9=nB({attachResizeListener:(e,t)=>tp(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),n8={current:void 0},re=nB({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!n8.current){let e=new n9({});e.mount(window),e.setOptions({layoutScroll:!0}),n8.current=e}return n8.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function rt(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&u.Gt.postRender(()=>i(t,tm(t)))}class rn extends tc{mount(){let{current:e}=this.node;e&&(this.unmount=(0,u.PT)(e,(e,t)=>(rt(this.node,t,"Start"),e=>rt(this.node,e,"End"))))}unmount(){}}class rr extends tc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,ek.F)(tp(this.node.current,"focus",()=>this.onFocus()),tp(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ri(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&u.Gt.postRender(()=>i(t,tm(t)))}class ro extends tc{mount(){let{current:e}=this.node;e&&(this.unmount=(0,u.c$)(e,(e,t)=>(ri(this.node,t,"Start"),(e,{success:t})=>ri(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let ra=new WeakMap,rs=new WeakMap,rl=e=>{let t=ra.get(e.target);t&&t(e)},ru=e=>{e.forEach(rl)},rc={some:0,all:1};class rd extends tc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:rc[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;rs.has(n)||rs.set(n,{});let r=rs.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ru,{root:e,...t})),r[i]}(t);return ra.set(e,n),r.observe(e),()=>{ra.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let rh=(0,t4.createContext)({strict:!1});var rf=n(7249);let rp=(0,t4.createContext)({});function rm(e){return a(e.animate)||ti.some(t=>tn(e[t]))}function rv(e){return!!(rm(e)||e.variants)}function rg(e){return Array.isArray(e)?e.join(" "):e}var ry=n(5687);let rx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},rw={};for(let e in rx)rw[e]={isEnabled:t=>rx[e].some(e=>!!t[e])};let rb=Symbol.for("motionComponentSymbol");var rP=n(5403);function rS(e,{layout:t,layoutId:n}){return d.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!nr[e]||"opacity"===e)}let rE=(e,t)=>t&&"number"==typeof e?t.transform(e):e,rA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rC=c.length;function rT(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let n=t[e];if(d.has(e)){a=!0;continue}if((0,ey.j)(e)){i[e]=n;continue}{let t=rE(n,G[e]);e.startsWith("origin")?(s=!0,o[e]=t):r[e]=t}}if(!t.transform&&(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<rC;o++){let a=c[o],s=e[a];if(void 0===s)continue;let l=!0;if(!(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s))||n){let e=rE(s,G[a]);if(!l){i=!1;let t=rA[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}let rM=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rR(e,t,n){for(let r in t)v(t[r])||rS(r,n)||(e[r]=t[r])}let rk=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function rD(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rk.has(e)}let rj=e=>!rD(e);try{!function(e){e&&(rj=t=>t.startsWith("on")?!rD(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let rL=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rV(e){if("string"!=typeof e||e.includes("-"));else if(rL.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let rN={offset:"stroke-dashoffset",array:"stroke-dasharray"},rO={offset:"strokeDashoffset",array:"strokeDasharray"};function rF(e,t,n){return"string"==typeof e?e:U.px.transform(t+n*e)}function rI(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(rT(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:f,dimensions:p}=e;h.transform&&(p&&(f.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,n){let r=rF(t,e.x,e.width),i=rF(n,e.y,e.height);return`${r} ${i}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?rN:rO;e[o.offset]=U.px.transform(-r);let a=U.px.transform(t),s=U.px.transform(n);e[o.array]=`${a} ${s}`}(h,a,s,l,!1)}let rB=()=>({...rM(),attrs:{}}),rz=e=>"string"==typeof e&&"svg"===e.toLowerCase();var rU=n(9234);let rW=e=>(t,n)=>{let r=(0,t4.useContext)(rp),i=(0,t4.useContext)(t7),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){let l={latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=nu(o[e]);let{initial:l,animate:u}=e,c=rm(e),d=rv(e);t&&d&&!c&&!1!==e.inherit&&(void 0===l&&(l=t.initial),void 0===u&&(u=t.animate));let h=!!n&&!1===n.initial,f=(h=h||!1===l)?u:l;if(f&&"boolean"!=typeof f&&!a(f)){let t=Array.isArray(f)?f:[f];for(let n=0;n<t.length;n++){let r=s(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(r,i,o,e),renderState:t()};return n&&(l.onMount=e=>n({props:r,current:e,...l}),l.onUpdate=e=>n(e)),l})(e,t,r,i);return n?o():(0,rU.M)(o)};function r_(e,t,n){var r;let{style:i}=e,o={};for(let a in i)(v(i[a])||t.style&&v(t.style[a])||rS(a,e)||(null===(r=null==n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}let r$={useVisualState:rW({scrapeMotionValuesFromProps:r_,createRenderState:rM})};function rG(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}function rH(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let rX=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function rq(e,t,n,r){for(let n in rH(e,t,void 0,r),t.attrs)e.setAttribute(rX.has(n)?n:y(n),t.attrs[n])}function rK(e,t,n){let r=r_(e,t,n);for(let n in e)(v(e[n])||v(t[n]))&&(r[-1!==c.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}let rY=["x","y","width","height","cx","cy","r"],rQ={useVisualState:rW({scrapeMotionValuesFromProps:rK,createRenderState:rB,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(let e in i)if(d.has(e)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let n=0;n<rY.length;n++){let r=rY[n];e[r]!==t[r]&&(a=!0)}a&&u.Gt.read(()=>{rG(n,r),u.Gt.render(()=>{rI(r,i,rz(n.tagName),e.transformTemplate),rq(n,r)})})}})},rZ={current:null},rJ={current:!1},r0=[...eb,B.y,L.f],r1=e=>r0.find(ew(e)),r2=new WeakMap,r5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class r3{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ev,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=u.kB.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,u.Gt.render(this.render,!1,!0))};let{latestValues:s,renderState:l,onUpdate:c}=o;this.onUpdate=c,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=rm(t),this.isVariantNode=rv(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:d,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==s[e]&&v(t)&&t.set(s[e],!1)}}mount(e){this.current=e,r2.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),rJ.current||function(){if(rJ.current=!0,ry.B){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rZ.current=e.matches;e.addListener(t),t()}else rZ.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rZ.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,u.WG)(this.notifyUpdate),(0,u.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=d.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&u.Gt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),o(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in rw){let t=rw[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tM()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<r5.length;t++){let n=r5[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(v(i))e.addValue(r,i);else if(v(o))e.addValue(r,(0,u.OQ)(i,{owner:e}));else if(o!==i){if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,(0,u.OQ)(void 0!==t?t:i,{owner:e}))}}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=(0,u.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(eg(r)||j(r))?r=parseFloat(r):!r1(r)&&L.f.test(t)&&(r=q(e,t)),this.setBaseTarget(e,v(r)?r.get():r)),v(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n;let{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=s(this.props,r,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(n=i[e])}if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||v(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new o.vY),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class r6 extends r3{constructor(){super(...arguments),this.KeyframeResolver=eS}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;v(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class r4 extends r6{constructor(){super(...arguments),this.type="html",this.renderInstance=rH}readValueFromInstance(e,t){if(d.has(t))return eo(e,t);{let n=window.getComputedStyle(e),r=((0,ey.j)(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return tz(e,t)}build(e,t,n){rT(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return r_(e,t,n)}}class r7 extends r6{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tM,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&rG(this.current,this.renderState)}}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(d.has(t)){let e=X(t);return e&&e.default||0}return t=rX.has(t)?t:y(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return rK(e,t,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&u.Gt.postRender(this.updateDimensions)}build(e,t,n){rI(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){rq(e,t,n,r)}mount(e){this.isSVGTag=rz(e.tagName),super.mount(e)}}let r9=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}((r={animation:{Feature:td},exit:{Feature:tf},inView:{Feature:rd},tap:{Feature:ro},focus:{Feature:rr},hover:{Feature:rn},pan:{Feature:t3},drag:{Feature:t2,ProjectionNode:re,MeasureLayout:no},layout:{ProjectionNode:re,MeasureLayout:no}},i=(e,t)=>rV(e)?new r7(t):new r4(t,{allowProjection:e!==t4.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,n;let{preloadedFeatures:r,createVisualElement:i,useRender:o,useVisualState:a,Component:s}=e;function l(e,t){var n;let r;let l={...(0,t4.useContext)(rf.Q),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,t4.useContext)(t9).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:c}=l,d=function(e){let{initial:t,animate:n}=function(e,t){if(rm(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tn(t)?t:void 0,animate:tn(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t4.useContext)(rp));return(0,t4.useMemo)(()=>({initial:t,animate:n}),[rg(t),rg(n)])}(e),h=a(e,c);if(!c&&ry.B){(0,t4.useContext)(rh).strict;let e=function(e){let{drag:t,layout:n}=rw;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);r=e.MeasureLayout,d.visualElement=function(e,t,n,r,i){var o,a;let{visualElement:s}=(0,t4.useContext)(rp),l=(0,t4.useContext)(rh),c=(0,t4.useContext)(t7),d=(0,t4.useContext)(rf.Q).reducedMotion,h=(0,t4.useRef)(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));let f=h.current,p=(0,t4.useContext)(t8);f&&!f.projection&&i&&("html"===f.type||"svg"===f.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&tW(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(h.current,n,i,p);let m=(0,t4.useRef)(!1);(0,t4.useInsertionEffect)(()=>{f&&m.current&&f.update(n,c)});let v=n[x],g=(0,t4.useRef)(!!v&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,v))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,v)));return(0,rP.E)(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),u.k2.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())}),(0,t4.useEffect)(()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,v)}),g.current=!1))}),f}(s,h,l,i,e.ProjectionNode)}return(0,t6.jsxs)(rp.Provider,{value:d,children:[r&&d.visualElement?(0,t6.jsx)(r,{visualElement:d.visualElement,...l}):null,o(s,e,(n=d.visualElement,(0,t4.useCallback)(e=>{e&&h.onMount&&h.onMount(e),n&&(e?n.mount(e):n.unmount()),t&&("function"==typeof t?t(e):tW(t)&&(t.current=e))},[n])),h,c,d.visualElement)]})}r&&function(e){for(let t in e)rw[t]={...rw[t],...e[t]}}(r),l.displayName="motion.".concat("string"==typeof s?s:"create(".concat(null!==(n=null!==(t=s.displayName)&&void 0!==t?t:s.name)&&void 0!==n?n:"",")"));let c=(0,t4.forwardRef)(l);return c[rb]=s,c}({...rV(e)?rQ:r$,preloadedFeatures:r,useRender:function(e=!1){return(t,n,r,{latestValues:i},o)=>{let a=(rV(t)?function(e,t,n,r){let i=(0,t4.useMemo)(()=>{let n=rB();return rI(n,t,rz(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};rR(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return rR(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,t4.useMemo)(()=>{let n=rM();return rT(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(n,i,o,t),s=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(rj(i)||!0===n&&rD(i)||!t&&!rD(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==t4.Fragment?{...s,...a,ref:r}:{},{children:u}=n,c=(0,t4.useMemo)(()=>v(u)?u.get():u,[u]);return(0,t4.createElement)(t,{...l,children:c})}}(t),createVisualElement:i,Component:e})}))},2271:(e,t,n)=>{n.d(t,{j:()=>i,p:()=>a});let r=e=>t=>"string"==typeof t&&t.startsWith(e),i=r("--"),o=r("var(--"),a=e=>!!o(e)&&s.test(e.split("/*")[0].trim()),s=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},8992:(e,t,n)=>{n.d(t,{q:()=>r});let r=(e,t,n)=>n>t?t:n<e?e:n},7751:(e,t,n)=>{n.d(t,{G:()=>s});var r=n(1938),i=n(8992),o=n(1671),a=n(5068);function s(e,t,{clamp:n=!0,ease:l,mixer:u}={}){let c=e.length;if((0,r.V1)(c===t.length,"Both input and output ranges must be the same length"),1===c)return()=>t[0];if(2===c&&t[0]===t[1])return()=>t[1];let d=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());let h=function(e,t,n){let i=[],s=n||o.j,l=e.length-1;for(let n=0;n<l;n++){let o=s(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||r.lQ:t;o=(0,a.F)(e,o)}i.push(o)}return i}(t,l,u),f=h.length,p=n=>{if(d&&n<e[0])return t[0];let i=0;if(f>1)for(;i<e.length-2&&!(n<e[i+1]);i++);let o=(0,r.qB)(e[i],e[i+1],n);return h[i](o)};return n?t=>p((0,i.q)(e[0],e[c-1],t)):p}},5687:(e,t,n)=>{n.d(t,{B:()=>r});let r="undefined"!=typeof window},1671:(e,t,n)=>{n.d(t,{j:()=>A});var r=n(10),i=n(1938);function o(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var a=n(1348),s=n(2664),l=n(3020);function u(e,t){return n=>n>0?t:e}let c=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},d=[a.u,s.B,l.V],h=e=>d.find(t=>t.test(e));function f(e){let t=h(e);if((0,i.$e)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===l.V&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,a=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,l=2*n-r;i=o(l,r,e+1/3),a=o(l,r,e),s=o(l,r,e-1/3)}else i=a=s=n;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:r}}(n)),n}let p=(e,t)=>{let n=f(e),i=f(t);if(!n||!i)return u(e,t);let o={...n};return e=>(o.red=c(n.red,i.red,e),o.green=c(n.green,i.green,e),o.blue=c(n.blue,i.blue,e),o.alpha=(0,r.k)(n.alpha,i.alpha,e),s.B.transform(o))};var m=n(5068),v=n(4064),g=n(5254),y=n(2271);let x=new Set(["none","hidden"]);function w(e,t){return n=>(0,r.k)(e,t,n)}function b(e){return"number"==typeof e?w:"string"==typeof e?(0,y.p)(e)?u:v.y.test(e)?p:E:Array.isArray(e)?P:"object"==typeof e?v.y.test(e)?p:S:u}function P(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>b(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function S(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=b(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let E=(e,t)=>{let n=g.f.createTransformer(t),r=(0,g.V)(e),o=(0,g.V)(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?x.has(e)&&!o.values.length||x.has(t)&&!r.values.length?function(e,t){return x.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):(0,m.F)(P(function(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let a=t.types[o],s=e.indexes[a][i[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[o]=l,i[a]++}return r}(r,o),o.values),n):((0,i.$e)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),u(e,t))};function A(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?(0,r.k)(e,t,n):b(e)(e,t)}},10:(e,t,n)=>{n.d(t,{k:()=>r});let r=(e,t,n)=>e+(t-e)*n},5068:(e,t,n)=>{n.d(t,{F:()=>i});let r=(e,t)=>n=>t(e(n)),i=(...e)=>e.reduce(r)},9234:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(2115);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},5403:(e,t,n)=>{n.d(t,{E:()=>i});var r=n(2115);let i=n(5687).B?r.useLayoutEffect:r.useEffect},1348:(e,t,n)=>{n.d(t,{u:()=>i});var r=n(2664);let i={test:(0,n(233).$)("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:r.B.transform}},3020:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(1535),i=n(3406),o=n(6165),a=n(233);let s={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:a=1})=>"hsla("+Math.round(e)+", "+i.KN.transform((0,o.a)(t))+", "+i.KN.transform((0,o.a)(n))+", "+(0,o.a)(r.X4.transform(a))+")"}},4064:(e,t,n)=>{n.d(t,{y:()=>a});var r=n(1348),i=n(3020),o=n(2664);let a={test:e=>o.B.test(e)||r.u.test(e)||i.V.test(e),parse:e=>o.B.test(e)?o.B.parse(e):i.V.test(e)?i.V.parse(e):r.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?o.B.transform(e):i.V.transform(e)}},2664:(e,t,n)=>{n.d(t,{B:()=>u});var r=n(8992),i=n(1535),o=n(6165),a=n(233);let s=e=>(0,r.q)(0,255,e),l={...i.ai,transform:e=>Math.round(s(e))},u={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(n)+", "+(0,o.a)(i.X4.transform(r))+")"}},233:(e,t,n)=>{n.d(t,{$:()=>o,q:()=>a});var r=n(1014);let i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,o=(e,t)=>n=>!!("string"==typeof n&&i.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),a=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[o,a,s,l]=i.match(r.S);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},5254:(e,t,n)=>{n.d(t,{V:()=>c,f:()=>p});var r=n(4064);let i=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var o=n(1014),a=n(6165);let s="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[],a=0,c=t.replace(u,e=>(r.y.test(e)?(i.color.push(a),o.push(l),n.push(r.y.parse(e))):e.startsWith("var(")?(i.var.push(a),o.push("var"),n.push(e)):(i.number.push(a),o.push(s),n.push(parseFloat(e))),++a,"${}")).split("${}");return{values:n,split:c,indexes:i,types:o}}function d(e){return c(e).values}function h(e){let{split:t,types:n}=c(e),i=t.length;return e=>{let o="";for(let u=0;u<i;u++)if(o+=t[u],void 0!==e[u]){let t=n[u];t===s?o+=(0,a.a)(e[u]):t===l?o+=r.y.transform(e[u]):o+=e[u]}return o}}let f=e=>"number"==typeof e?0:e,p={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(o.S))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(i))||void 0===n?void 0:n.length)||0)>0},parse:d,createTransformer:h,getAnimatableNone:function(e){let t=d(e);return h(e)(t.map(f))}}},1535:(e,t,n)=>{n.d(t,{X4:()=>o,ai:()=>i,hs:()=>a});var r=n(8992);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o={...i,transform:e=>(0,r.q)(0,1,e)},a={...i,default:1}},3406:(e,t,n)=>{n.d(t,{KN:()=>o,gQ:()=>u,px:()=>a,uj:()=>i,vh:()=>s,vw:()=>l});let r=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=r("deg"),o=r("%"),a=r("px"),s=r("vh"),l=r("vw"),u={...o,parse:e=>o.parse(e)/100,transform:e=>o.transform(100*e)}},1014:(e,t,n)=>{n.d(t,{S:()=>r});let r=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},6165:(e,t,n)=>{n.d(t,{a:()=>r});let r=e=>Math.round(1e5*e)/1e5},4420:(e,t,n)=>{n.d(t,{d:()=>s});var r=n(9512),i=n(2115),o=n(7249),a=n(9234);function s(e){let t=(0,a.M)(()=>(0,r.OQ)(e)),{isStatic:n}=(0,i.useContext)(o.Q);if(n){let[,n]=(0,i.useState)(e);(0,i.useEffect)(()=>t.on("change",n),[])}return t}},3160:(e,t,n)=>{n.d(t,{G:()=>d});var r=n(7751);let i=e=>e&&"object"==typeof e&&e.mix,o=e=>i(e)?e.mix:void 0;var a=n(9234),s=n(9512),l=n(5403),u=n(4420);function c(e,t){let n=(0,u.d)(t()),r=()=>n.set(t());return r(),(0,l.E)(()=>{let t=()=>s.Gt.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,s.WG)(r)}}),n}function d(e,t,n,i){if("function"==typeof e)return function(e){s.bt.current=[],e();let t=c(s.bt.current,e);return s.bt.current=void 0,t}(e);let a="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],a=e[1+n],s=e[2+n],l=e[3+n],u=(0,r.G)(a,s,{mixer:o(s[0]),...l});return t?u(i):u}(t,n,i);return Array.isArray(e)?h(e,a):h([e],([e])=>a(e))}function h(e,t){let n=(0,a.M)(()=>[]);return c(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}},9512:(e,t,n)=>{let r;n.d(t,{P6:()=>s,qU:()=>G,vG:()=>h,tu:()=>c,WG:()=>E,bt:()=>K,Gt:()=>S,uv:()=>A,PP:()=>C,KZ:()=>v,rU:()=>l,PT:()=>V,DW:()=>f,WH:()=>d,Mc:()=>F,yL:()=>g,TU:()=>function e(t,n){if(t)return"function"==typeof t&&m()?v(t,n):f(t)?y(t):Array.isArray(t)?t.map(t=>e(t,n)||x.easeOut):x[t]},YE:()=>u,k2:()=>T,OQ:()=>Q,c$:()=>$,Wp:()=>D,Qu:()=>b,nL:()=>m,kB:()=>R});var i=n(1938);let o=(0,i.ph)(()=>void 0!==window.ScrollTimeline);class a{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(n=>o()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class s extends a{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function l(e,t){return e?e[t]||e.default||e:void 0}let u=2e4;function c(e){let t=0,n=e.next(t);for(;!n.done&&t<u;)t+=50,n=e.next(t);return t>=u?1/0:t}function d(e){return"function"==typeof e}function h(e,t){e.timeline=t,e.onfinish=null}let f=e=>Array.isArray(e)&&"number"==typeof e[0],p={linearEasing:void 0},m=function(e,t){let n=(0,i.ph)(e);return()=>{var e;return null!==(e=p[t])&&void 0!==e?e:n()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),v=(e,t,n=10)=>{let r="",o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=e((0,i.qB)(0,o-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function g(e){return!!("function"==typeof e&&m()||!e||"string"==typeof e&&(e in x||m())||f(e)||Array.isArray(e)&&e.every(g))}let y=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,x={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:y([0,.65,.55,1]),circOut:y([.55,0,1,.45]),backIn:y([.31,.01,.66,-.59]),backOut:y([.33,1.53,.69,.99])},w=["read","resolveKeyframes","update","preRender","render","postRender"],b={value:null,addProjectionMetrics:null};function P(e,t){let n=!1,r=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=w.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(s)}let c={schedule:(e,t=!1,o=!1)=>{let s=o&&i?n:r;return t&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&b.value&&b.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(a,t?n:void 0),e),{}),{read:l,resolveKeyframes:u,update:c,preRender:d,render:h,postRender:f}=s,p=()=>{let a=i.W9.useManualTiming?o.timestamp:performance.now();n=!1,i.W9.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(a-o.timestamp,40),1)),o.timestamp=a,o.isProcessing=!0,l.process(o),u.process(o),c.process(o),d.process(o),h.process(o),f.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,o.isProcessing||e(p)};return{schedule:w.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,i=!1)=>(n||m(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<w.length;t++)s[w[t]].cancel(e)},state:o,steps:s}}let{schedule:S,cancel:E,state:A,steps:C}=P("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.lQ,!0),{schedule:T}=P(queueMicrotask,!1);function M(){r=void 0}let R={now:()=>(void 0===r&&R.set(A.isProcessing||i.W9.useManualTiming?A.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(M)}},k={x:!1,y:!1};function D(e){return"x"===e||"y"===e?k[e]?null:(k[e]=!0,()=>{k[e]=!1}):k.x||k.y?null:(k.x=k.y=!0,()=>{k.x=k.y=!1})}function j(e,t){let n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function L(e){return!("touch"===e.pointerType||k.x||k.y)}function V(e,t,n={}){let[r,i,o]=j(e,n),a=e=>{if(!L(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let o=e=>{L(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}function N(e,t){let n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&void 0!==e.pointerId)try{e.target[n](e.pointerId)}catch(e){}}let O=(e,t)=>!!t&&(e===t||O(e,t.parentElement)),F=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,I=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),B=new WeakSet;function z(e){return t=>{"Enter"===t.key&&e(t)}}function U(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let W=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=z(()=>{if(B.has(n))return;U(n,"down");let e=z(()=>{U(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>U(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function _(e){return F(e)&&!(k.x||k.y)}function $(e,t,n={}){let[r,i,o]=j(e,n),a=e=>{let n=e.currentTarget;if(!n||!_(e)||B.has(n))return;B.add(n),N(e,"set");let r=t(n,e),o=(e,t)=>{n.removeEventListener("pointerup",a),n.removeEventListener("pointercancel",s),N(e,"release"),_(e)&&B.has(n)&&(B.delete(n),"function"==typeof r&&r(e,{success:t}))},a=e=>{var t;e.isTrusted&&(t=n instanceof Element?n.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight},e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)?o(e,!1):o(e,!(n instanceof Element)||O(n,e.target))},s=e=>{o(e,!1)};n.addEventListener("pointerup",a,i),n.addEventListener("pointercancel",s,i),n.addEventListener("lostpointercapture",s,i)};return r.forEach(e=>{e=n.useGlobalTarget?window:e;let t=!1;if(e instanceof HTMLElement){var r;t=!0,r=e,I.has(r.tagName)||-1!==r.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0)}e.addEventListener("pointerdown",a,i),t&&e.addEventListener("focus",e=>W(e,i),i)}),o}let G={layout:0,mainThread:0,waapi:0};function H(){let{value:e}=statsBuffer;if(null===e){cancelFrame(H);return}e.frameloop.rate.push(frameData.delta),e.animations.mainThread.push(activeAnimations.mainThread),e.animations.waapi.push(activeAnimations.waapi),e.animations.layout.push(activeAnimations.layout)}function X(e){return e.reduce((e,t)=>e+t,0)/e.length}let q=e=>!isNaN(parseFloat(e)),K={current:void 0};class Y{constructor(e,t={}){this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=R.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=R.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=q(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new i.vY);let n=this.events[e].add(t);return"change"===e?()=>{n(),S.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return K.current&&K.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=R.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.fj)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Q(e,t){return new Y(e,t)}},1938:(e,t,n)=>{function r(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}n.d(t,{W9:()=>l,vY:()=>d,Kq:()=>r,V1:()=>s,ph:()=>u,Xu:()=>f,lQ:()=>o,qB:()=>c,Ai:()=>i,fD:()=>h,fj:()=>p,$e:()=>a});let o=e=>e,a=o,s=o,l={skipAnimations:!1,useManualTiming:!1};function u(e){let t;return()=>(void 0===t&&(t=e()),t)}let c=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};class d{constructor(){this.subscriptions=[]}add(e){return r(this.subscriptions,e),()=>i(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let h=e=>1e3*e,f=e=>e/1e3;function p(e,t){return t?1e3/t*e:0}}}]);