@ukpc-lib/react 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +65 -6
- package/dist/components/index.js +7101 -3032
- package/dist/index-9b2c9629.js +15460 -0
- package/dist/index-b4299ca4.cjs +155 -0
- package/dist/share/index.cjs +1 -101
- package/dist/share/index.js +56 -4374
- package/dist/src/components/StyledAutocomplete/AutocompleteOption.d.ts +11 -0
- package/dist/src/components/StyledAutocomplete/StyledAutocomplete.d.ts +29 -0
- package/dist/src/components/StyledAutocomplete/helpers.d.ts +1 -0
- package/dist/src/components/StyledAutocomplete/index.d.ts +3 -0
- package/dist/src/components/StyledAutocomplete/types.d.ts +46 -0
- package/dist/src/components/StyledAutocomplete/useStyledAutocomplete.d.ts +28 -0
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/share/helpers/index.d.ts +1 -0
- package/dist/src/share/index.d.ts +1 -0
- package/dist/src/share/interceptor/index.d.ts +2 -2
- package/package.json +6 -2
- package/web-components-bundle/global-menu/index.cjs +37 -11
- package/web-components-bundle/global-menu/index.js +8433 -4630
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/{index-4b7988de.js → index-094a6d97.js} +10 -8
- package/web-components-bundle/{index-9fa798a7.cjs → index-9fa9d5f1.cjs} +17 -17
- package/dist/react-svg.esm-8385cab5.js +0 -11617
- package/dist/react-svg.esm-a6f3a530.cjs +0 -129
- /package/dist/{react-svg.css → index.css} +0 -0
|
@@ -1,6 +1,65 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`;function
|
|
3
|
-
`;function
|
|
4
|
-
`;function kr({logo:t,user:e,baseUrl:n,style:i,classNames:s="",customColors:o}){const r=t||"/public/assets/icons/logo-header.png",a={...i,color:(o==null?void 0:o.color)||"black",backgroundColor:(o==null?void 0:o.bgColor)||"black"},[l,c]=T.useState(!1),u=()=>{window.location.href=`${n}/authentication/logout?callbackUrl=${window.location.href}`};return v.jsxs(Ri,{styles:[Cr],style:{zIndex:1202},children:[v.jsx("nav",{className:`navbar ${s}`,style:o?a:i,children:v.jsxs("div",{className:"navbar-container",children:[v.jsx("div",{className:"logo-container",children:v.jsx("img",{src:r,alt:"logo-header"})}),v.jsxs("div",{className:"right-side-container",children:[v.jsxs("div",{className:"userContainer",children:[v.jsx("p",{className:"userFullName",children:`${e==null?void 0:e.firstName} ${e==null?void 0:e.lastName}`}),v.jsx(Vr,{primaryColor:o==null?void 0:o.primaryColor,avatarUrl:e==null?void 0:e.avatarUrl,setShowConfirmModal:c})]}),v.jsx("span",{className:"cursor-pointer",children:v.jsx(Tr,{primaryColor:o==null?void 0:o.primaryColor})}),v.jsx("span",{className:"cursor-pointer",children:v.jsx(Sr,{primaryColor:o==null?void 0:o.primaryColor})})]})]})}),v.jsx(Li,{isOpen:l,onClose:()=>c(!1),onConfirm:u})]})}function Vr({avatarUrl:t,setShowConfirmModal:e,primaryColor:n="#009d4f"}){const[i,s]=T.useState(!1),o=T.useRef(null),r=T.useRef(null),[a,l]=T.useState(!1),[c,u]=T.useState(!1),h={backgroundColor:a?n:"transparent"},d={backgroundColor:c?n:"transparent"};return T.useEffect(()=>{const f=p=>{o.current&&!o.current.contains(p.target)&&s(!1),r.current&&!r.current.contains(p.target)&&s(!1)};return document.addEventListener("click",f,!0),()=>{document.removeEventListener("click",f,!0)}},[o]),v.jsx(v.Fragment,{children:v.jsxs("div",{style:{position:"relative"},children:[v.jsx("img",{onClick:()=>s(!i),ref:o,alt:"user avatar",className:"userAvatar",src:t||Pr}),v.jsx("div",{style:{display:i?"block":"none"},className:"avartarDropdownMenu",ref:r,children:v.jsxs("ul",{children:[v.jsx("li",{onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),style:d,className:"avatar-dropdown-item",children:"Profile"}),v.jsx("li",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:h,onClick:()=>e(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}var Er=typeof global=="object"&&global&&global.Object===Object&&global;const Mr=Er;var Or=typeof self=="object"&&self&&self.Object===Object&&self,jr=Mr||Or||Function("return this")();const Bi=jr;var Dr=Bi.Symbol;const re=Dr;var Ni=Object.prototype,Lr=Ni.hasOwnProperty,Rr=Ni.toString,Dt=re?re.toStringTag:void 0;function Br(t){var e=Lr.call(t,Dt),n=t[Dt];try{t[Dt]=void 0;var i=!0}catch{}var s=Rr.call(t);return i&&(e?t[Dt]=n:delete t[Dt]),s}var Nr=Object.prototype,Ir=Nr.toString;function Fr(t){return Ir.call(t)}var zr="[object Null]",Wr="[object Undefined]",Tn=re?re.toStringTag:void 0;function _r(t){return t==null?t===void 0?Wr:zr:Tn&&Tn in Object(t)?Br(t):Fr(t)}function Ur(t){return t!=null&&typeof t=="object"}var Hr="[object Symbol]";function Gr(t){return typeof t=="symbol"||Ur(t)&&_r(t)==Hr}var Yr=/\s/;function qr(t){for(var e=t.length;e--&&Yr.test(t.charAt(e)););return e}var Xr=/^\s+/;function Kr(t){return t&&t.slice(0,qr(t)+1).replace(Xr,"")}function oe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Pn=0/0,$r=/^[-+]0x[0-9a-f]+$/i,Qr=/^0b[01]+$/i,Zr=/^0o[0-7]+$/i,Jr=parseInt;function An(t){if(typeof t=="number")return t;if(Gr(t))return Pn;if(oe(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=oe(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Kr(t);var n=Qr.test(t);return n||Zr.test(t)?Jr(t.slice(2),n?2:8):$r.test(t)?Pn:+t}var to=function(){return Bi.Date.now()};const Te=to;var eo="Expected a function",no=Math.max,io=Math.min;function ne(t,e,n){var i,s,o,r,a,l,c=0,u=!1,h=!1,d=!0;if(typeof t!="function")throw new TypeError(eo);e=An(e)||0,oe(n)&&(u=!!n.leading,h="maxWait"in n,o=h?no(An(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d);function f(P){var k=i,S=s;return i=s=void 0,c=P,r=t.apply(S,k),r}function p(P){return c=P,a=setTimeout(x,e),u?f(P):r}function m(P){var k=P-l,S=P-c,V=e-k;return h?io(V,o-S):V}function y(P){var k=P-l,S=P-c;return l===void 0||k>=e||k<0||h&&S>=o}function x(){var P=Te();if(y(P))return b(P);a=setTimeout(x,m(P))}function b(P){return a=void 0,d&&i?f(P):(i=s=void 0,r)}function g(){a!==void 0&&clearTimeout(a),c=0,i=l=s=a=void 0}function w(){return a===void 0?r:b(Te())}function A(){var P=Te(),k=y(P);if(i=arguments,s=this,l=P,k){if(a===void 0)return p(l);if(h)return clearTimeout(a),a=setTimeout(x,e),f(l)}return a===void 0&&(a=setTimeout(x,e)),r}return A.cancel=g,A.flush=w,A}var so="Expected a function";function ro(t,e,n){var i=!0,s=!0;if(typeof t!="function")throw new TypeError(so);return oe(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),ne(t,e,{leading:i,maxWait:e,trailing:s})}var oo=!!(typeof window<"u"&&window.document&&window.document.createElement),ao=oo;const Ii=J.getDefaultExportFromCjs(ao);var Tt=function(){return Tt=Object.assign||function(e){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Tt.apply(this,arguments)},St=null,Cn=null;Ii&&window.addEventListener("resize",function(){Cn!==window.devicePixelRatio&&(Cn=window.devicePixelRatio,St=null)});function kn(){if(St===null){if(typeof document>"u")return St=0,St;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),St=n}return St}function Fi(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function zi(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Wi=function(t){var e={},n=Array.prototype.reduce.call(t,function(i,s){var o=s.name.match(/data-simplebar-(.+)/);if(o){var r=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(s.value){case"true":i[r]=!0;break;case"false":i[r]=!1;break;case void 0:i[r]=!0;break;default:i[r]=s.value}}return i},e);return n};function _i(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function Ui(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Hi(t){return".".concat(t.split(" ").join("."))}var lo=Object.freeze({__proto__:null,getElementWindow:Fi,getElementDocument:zi,getOptions:Wi,addClasses:_i,removeClasses:Ui,classNamesToQuery:Hi}),it=Fi,Pe=zi,co=Wi,st=_i,rt=Ui,W=Hi,$t=function(){function t(e,n){n===void 0&&(n={});var i=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var s=it(i.el);i.scrollXTicking||(s.requestAnimationFrame(i.scrollX),i.scrollXTicking=!0),i.scrollYTicking||(s.requestAnimationFrame(i.scrollY),i.scrollYTicking=!0),i.isScrolling||(i.isScrolling=!0,st(i.el,i.classNames.scrolling)),i.showScrollbar("x"),i.showScrollbar("y"),i.onStopScrolling()},this.scrollX=function(){i.axis.x.isOverflowing&&i.positionScrollbar("x"),i.scrollXTicking=!1},this.scrollY=function(){i.axis.y.isOverflowing&&i.positionScrollbar("y"),i.scrollYTicking=!1},this._onStopScrolling=function(){rt(i.el,i.classNames.scrolling),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isScrolling=!1},this.onMouseEnter=function(){i.isMouseEntering||(st(i.el,i.classNames.mouseEntered),i.showScrollbar("x"),i.showScrollbar("y"),i.isMouseEntering=!0),i.onMouseEntered()},this._onMouseEntered=function(){rt(i.el,i.classNames.mouseEntered),i.options.autoHide&&(i.hideScrollbar("x"),i.hideScrollbar("y")),i.isMouseEntering=!1},this._onMouseMove=function(s){i.mouseX=s.clientX,i.mouseY=s.clientY,(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseMoveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseMoveForAxis("y")},this.onMouseLeave=function(){i.onMouseMove.cancel(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&i.onMouseLeaveForAxis("x"),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&i.onMouseLeaveForAxis("y"),i.mouseX=-1,i.mouseY=-1},this._onWindowResize=function(){i.scrollbarWidth=i.getScrollbarWidth(),i.hideNativeScrollbar()},this.onPointerEvent=function(s){if(!(!i.axis.x.track.el||!i.axis.y.track.el||!i.axis.x.scrollbar.el||!i.axis.y.scrollbar.el)){var o,r;i.axis.x.track.rect=i.axis.x.track.el.getBoundingClientRect(),i.axis.y.track.rect=i.axis.y.track.el.getBoundingClientRect(),(i.axis.x.isOverflowing||i.axis.x.forceVisible)&&(o=i.isWithinBounds(i.axis.x.track.rect)),(i.axis.y.isOverflowing||i.axis.y.forceVisible)&&(r=i.isWithinBounds(i.axis.y.track.rect)),(o||r)&&(s.stopPropagation(),s.type==="pointerdown"&&s.pointerType!=="touch"&&(o&&(i.axis.x.scrollbar.rect=i.axis.x.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.x.scrollbar.rect)?i.onDragStart(s,"x"):i.onTrackClick(s,"x")),r&&(i.axis.y.scrollbar.rect=i.axis.y.scrollbar.el.getBoundingClientRect(),i.isWithinBounds(i.axis.y.scrollbar.rect)?i.onDragStart(s,"y"):i.onTrackClick(s,"y"))))}},this.drag=function(s){var o,r,a,l,c,u,h,d,f,p,m;if(!(!i.draggedAxis||!i.contentWrapperEl)){var y,x=i.axis[i.draggedAxis].track,b=(r=(o=x.rect)===null||o===void 0?void 0:o[i.axis[i.draggedAxis].sizeAttr])!==null&&r!==void 0?r:0,g=i.axis[i.draggedAxis].scrollbar,w=(l=(a=i.contentWrapperEl)===null||a===void 0?void 0:a[i.axis[i.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,A=parseInt((u=(c=i.elStyles)===null||c===void 0?void 0:c[i.axis[i.draggedAxis].sizeAttr])!==null&&u!==void 0?u:"0px",10);s.preventDefault(),s.stopPropagation(),i.draggedAxis==="y"?y=s.pageY:y=s.pageX;var P=y-((d=(h=x.rect)===null||h===void 0?void 0:h[i.axis[i.draggedAxis].offsetAttr])!==null&&d!==void 0?d:0)-i.axis[i.draggedAxis].dragOffset;P=i.draggedAxis==="x"&&i.isRtl?((p=(f=x.rect)===null||f===void 0?void 0:f[i.axis[i.draggedAxis].sizeAttr])!==null&&p!==void 0?p:0)-g.size-P:P;var k=P/(b-g.size),S=k*(w-A);i.draggedAxis==="x"&&i.isRtl&&(S=!((m=t.getRtlHelpers())===null||m===void 0)&&m.isScrollingToNegative?-S:S),i.contentWrapperEl[i.axis[i.draggedAxis].scrollOffsetAttr]=S}},this.onEndDrag=function(s){var o=Pe(i.el),r=it(i.el);s.preventDefault(),s.stopPropagation(),rt(i.el,i.classNames.dragging),o.removeEventListener("mousemove",i.drag,!0),o.removeEventListener("mouseup",i.onEndDrag,!0),i.removePreventClickId=r.setTimeout(function(){o.removeEventListener("click",i.preventClick,!0),o.removeEventListener("dblclick",i.preventClick,!0),i.removePreventClickId=null})},this.preventClick=function(s){s.preventDefault(),s.stopPropagation()},this.el=e,this.options=Tt(Tt({},t.defaultOptions),n),this.classNames=Tt(Tt({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=ro(this._onMouseMove,64),this.onWindowResize=ne(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ne(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ne(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,i=n==null?void 0:n.firstElementChild;if(!i)return null;document.body.appendChild(n),n.scrollLeft=0;var s=t.getOffset(n),o=t.getOffset(i);n.scrollLeft=-999;var r=t.getOffset(i);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:s.left!==o.left,isScrollingToNegative:o.left!==r.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:kn()}catch{return kn()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),i=Pe(e),s=it(e);return{top:n.top+(s.pageYOffset||i.documentElement.scrollTop),left:n.left+(s.pageXOffset||i.documentElement.scrollLeft)}},t.prototype.init=function(){Ii&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(W(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(W(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(W(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(W(this.classNames.offset)),this.maskEl=this.el.querySelector(W(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,W(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(W(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(W(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(W(this.classNames.track)).concat(W(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(W(this.classNames.track)).concat(W(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(W(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(W(this.classNames.scrollbar)))||null,this.options.autoHide||(st(this.axis.x.scrollbar.el,this.classNames.visible),st(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,i=it(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),i.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var s=!1,o=i.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){s&&i.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),i.requestAnimationFrame(function(){s=!0})}this.mutationObserver=new i.MutationObserver(function(){i.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=it(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,i=this.heightAutoObserverEl.offsetHeight<=1,s=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,r=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=i?"auto":"100%",this.placeholderEl.style.width=s?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var u=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=l>u,this.axis.x.isOverflowing=r==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var h=this.axis.x.isOverflowing?this.scrollbarWidth:0,d=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-d,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>u-h,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,i;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var s=this.contentEl[this.axis[e].scrollSizeAttr],o=(i=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&i!==void 0?i:0,r=o/s,a;return a=Math.max(~~(r*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.prototype.positionScrollbar=function(e){var n,i,s;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var r=this.contentWrapperEl[this.axis[e].scrollSizeAttr],a=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[e].sizeAttr],10),c=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];c=e==="x"&&this.isRtl&&(!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollOriginAtZero)?-c:c,e==="x"&&this.isRtl&&(c=!((s=t.getRtlHelpers())===null||s===void 0)&&s.isScrollingToNegative?c:-c);var u=c/(r-l),h=~~((a-o.size)*u);h=e==="x"&&this.isRtl?-h+(a-o.size):h,o.el.style.transform=e==="x"?"translate3d(".concat(h,"px, 0, 0)"):"translate3d(0, ".concat(h,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,i=this.axis[e].scrollbar.el;!n||!i||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?i.style.display="block":i.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(st(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(rt(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),st(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?st(n.scrollbar.el,this.classNames.hover):rt(n.scrollbar.el,this.classNames.hover)):(rt(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),rt(this.axis[e].track.el,this.classNames.hover),rt(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var i;n===void 0&&(n="y");var s=Pe(this.el),o=it(this.el),r=this.axis[n].scrollbar,a=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=a-(((i=r.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])||0),this.draggedAxis=n,st(this.el,this.classNames.dragging),s.addEventListener("mousemove",this.drag,!0),s.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(s.addEventListener("click",this.preventClick,!0),s.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var i=this,s,o,r,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var c=it(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var u=this.axis[n].scrollbar,h=(o=(s=u.rect)===null||s===void 0?void 0:s[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,d=parseInt((a=(r=this.elStyles)===null||r===void 0?void 0:r[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),f=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],p=n==="y"?this.mouseY-h:this.mouseX-h,m=p<0?-1:1,y=m===-1?f-d:f+d,x=40,b=function(){i.contentWrapperEl&&(m===-1?f>y&&(f-=x,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=f,c.requestAnimationFrame(b)):f<y&&(f+=x,i.contentWrapperEl[i.axis[n].scrollOffsetAttr]=f,c.requestAnimationFrame(b)))};b()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=it(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(s){return i.call(s,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=co,t.helpers=lo,t}(),U=function(){return U=Object.assign||function(e){for(var n,i=1,s=arguments.length;i<s;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},U.apply(this,arguments)};function uo(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]]);return n}var Gi=D.forwardRef(function(t,e){var n=t.children,i=t.scrollableNodeProps,s=i===void 0?{}:i,o=uo(t,["children","scrollableNodeProps"]),r=D.useRef(),a=D.useRef(),l=D.useRef(),c={},u={};Object.keys(o).forEach(function(f){Object.prototype.hasOwnProperty.call($t.defaultOptions,f)?c[f]=o[f]:u[f]=o[f]});var h=U(U({},$t.defaultOptions.classNames),c.classNames),d=U(U({},s),{className:"".concat(h.contentWrapper).concat(s.className?" ".concat(s.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||$t.defaultOptions.ariaLabel});return D.useEffect(function(){var f;return a.current=d.ref?d.ref.current:a.current,r.current&&(f=new $t(r.current,U(U(U({},c),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof e=="function"?e(f):e&&(e.current=f)),function(){f==null||f.unMount(),f=null,typeof e=="function"&&e(null)}},[]),D.createElement("div",U({"data-simplebar":"init",ref:r},u),D.createElement("div",{className:h.wrapper},D.createElement("div",{className:h.heightAutoObserverWrapperEl},D.createElement("div",{className:h.heightAutoObserverEl})),D.createElement("div",{className:h.mask},D.createElement("div",{className:h.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:U(U({},d),{ref:a}),contentNodeRef:l,contentNodeProps:{className:h.contentEl,ref:l}}):D.createElement("div",U({},d),D.createElement("div",{className:h.contentEl},n)))),D.createElement("div",{className:h.placeholder})),D.createElement("div",{className:"".concat(h.track," simplebar-horizontal")},D.createElement("div",{className:h.scrollbar})),D.createElement("div",{className:"".concat(h.track," simplebar-vertical")},D.createElement("div",{className:h.scrollbar})))});Gi.displayName="SimpleBar";const ho=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
5
|
-
`,fo=t=>v.jsx(J.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...t}),Yi=T.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),me=T.createContext({}),$e=T.createContext(null),ge=typeof document<"u",po=ge?T.useLayoutEffect:T.useEffect,qi=T.createContext({strict:!1}),Qe=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),mo="framerAppearId",Xi="data-"+Qe(mo);function go(t,e,n,i){const{visualElement:s}=T.useContext(me),o=T.useContext(qi),r=T.useContext($e),a=T.useContext(Yi).reducedMotion,l=T.useRef();i=i||o.renderer,!l.current&&i&&(l.current=i(t,{visualState:e,parent:s,props:n,presenceContext:r,blockInitialAnimation:r?r.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;T.useInsertionEffect(()=>{c&&c.update(n,r)});const u=T.useRef(!!(n[Xi]&&!window.HandoffComplete));return po(()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())}),T.useEffect(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,window.HandoffComplete=!0))}),c}function Pt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function vo(t,e,n){return T.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):Pt(n)&&(n.current=i))},[e])}function Wt(t){return typeof t=="string"||Array.isArray(t)}function ve(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Ze=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Je=["initial",...Ze];function ye(t){return ve(t.animate)||Je.some(e=>Wt(t[e]))}function Ki(t){return!!(ye(t)||t.variants)}function yo(t,e){if(ye(t)){const{initial:n,animate:i}=t;return{initial:n===!1||Wt(n)?n:void 0,animate:Wt(i)?i:void 0}}return t.inherit!==!1?e:{}}function bo(t){const{initial:e,animate:n}=yo(t,T.useContext(me));return T.useMemo(()=>({initial:e,animate:n}),[Vn(e),Vn(n)])}function Vn(t){return Array.isArray(t)?t.join(" "):t}const En={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"]},_t={};for(const t in En)_t[t]={isEnabled:e=>En[t].some(n=>!!e[n])};function xo(t){for(const e in t)_t[e]={..._t[e],...t[e]}}const $i=T.createContext({}),Qi=T.createContext({}),wo=Symbol.for("motionComponentSymbol");function So({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:s}){t&&xo(t);function o(a,l){let c;const u={...T.useContext(Yi),...a,layoutId:To(a)},{isStatic:h}=u,d=bo(a),f=i(a,h);if(!h&&ge){d.visualElement=go(s,f,u,e);const p=T.useContext(Qi),m=T.useContext(qi).strict;d.visualElement&&(c=d.visualElement.loadFeatures(u,m,t,p))}return D.createElement(me.Provider,{value:d},c&&d.visualElement?D.createElement(c,{visualElement:d.visualElement,...u}):null,n(s,a,vo(f,d.visualElement,l),f,h,d.visualElement))}const r=T.forwardRef(o);return r[wo]=s,r}function To({layoutId:t}){const e=T.useContext($i).id;return e&&t!==void 0?e+"-"+t:t}function Po(t){function e(i,s={}){return So(t(i,s))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(i,s)=>(n.has(s)||n.set(s,e(s)),n.get(s))})}const Ao=["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 tn(t){return typeof t!="string"||t.includes("-")?!1:!!(Ao.indexOf(t)>-1||/[A-Z]/.test(t))}const ae={};function Co(t){Object.assign(ae,t)}const Ht=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yt=new Set(Ht);function Zi(t,{layout:e,layoutId:n}){return yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ae[t]||t==="opacity")}const _=t=>!!(t&&t.getVelocity),ko={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Vo=Ht.length;function Eo(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},i,s){let o="";for(let r=0;r<Vo;r++){const a=Ht[r];if(t[a]!==void 0){const l=ko[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,i?"":o):n&&i&&(o="none"),o}const Ji=t=>e=>typeof e=="string"&&e.startsWith(t),ts=Ji("--"),Ne=Ji("var(--"),Mo=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,Oo=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ut=(t,e,n)=>Math.min(Math.max(n,t),e),bt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Nt={...bt,transform:t=>ut(0,1,t)},Qt={...bt,default:1},It=t=>Math.round(t*1e5)/1e5,be=/(-)?([\d]*\.?[\d])+/g,es=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,jo=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Gt(t){return typeof t=="string"}const Yt=t=>({test:e=>Gt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ot=Yt("deg"),K=Yt("%"),C=Yt("px"),Do=Yt("vh"),Lo=Yt("vw"),Mn={...K,parse:t=>K.parse(t)/100,transform:t=>K.transform(t*100)},On={...bt,transform:Math.round},ns={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,radius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,size:C,top:C,right:C,bottom:C,left:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,rotate:ot,rotateX:ot,rotateY:ot,rotateZ:ot,scale:Qt,scaleX:Qt,scaleY:Qt,scaleZ:Qt,skew:ot,skewX:ot,skewY:ot,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:Nt,originX:Mn,originY:Mn,originZ:C,zIndex:On,fillOpacity:Nt,strokeOpacity:Nt,numOctaves:On};function en(t,e,n,i){const{style:s,vars:o,transform:r,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const h in e){const d=e[h];if(ts(h)){o[h]=d;continue}const f=ns[h],p=Oo(d,f);if(yt.has(h)){if(l=!0,r[h]=p,!u)continue;d!==(f.default||0)&&(u=!1)}else h.startsWith("origin")?(c=!0,a[h]=p):s[h]=p}if(e.transform||(l||i?s.transform=Eo(t.transform,n,u,i):s.transform&&(s.transform="none")),c){const{originX:h="50%",originY:d="50%",originZ:f=0}=a;s.transformOrigin=`${h} ${d} ${f}`}}const nn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function is(t,e,n){for(const i in e)!_(e[i])&&!Zi(i,n)&&(t[i]=e[i])}function Ro({transformTemplate:t},e,n){return T.useMemo(()=>{const i=nn();return en(i,e,{enableHardwareAcceleration:!n},t),Object.assign({},i.vars,i.style)},[e])}function Bo(t,e,n){const i=t.style||{},s={};return is(s,i,t),Object.assign(s,Ro(t,e,n)),t.transformValues?t.transformValues(s):s}function No(t,e,n){const i={},s=Bo(t,e,n);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=s,i}const Io=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function le(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Io.has(t)}let ss=t=>!le(t);function Fo(t){t&&(ss=e=>e.startsWith("on")?!le(e):t(e))}try{Fo(require("@emotion/is-prop-valid").default)}catch{}function zo(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(ss(s)||n===!0&&le(s)||!e&&!le(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}function jn(t,e,n){return typeof t=="string"?t:C.transform(e+n*t)}function Wo(t,e,n){const i=jn(e,t.x,t.width),s=jn(n,t.y,t.height);return`${i} ${s}`}const _o={offset:"stroke-dashoffset",array:"stroke-dasharray"},Uo={offset:"strokeDashoffset",array:"strokeDasharray"};function Ho(t,e,n=1,i=0,s=!0){t.pathLength=1;const o=s?_o:Uo;t[o.offset]=C.transform(-i);const r=C.transform(e),a=C.transform(n);t[o.array]=`${r} ${a}`}function sn(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...c},u,h,d){if(en(t,c,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:p,dimensions:m}=t;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(s!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Wo(m,s!==void 0?s:.5,o!==void 0?o:.5)),e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),r!==void 0&&Ho(f,r,a,l,!1)}const rs=()=>({...nn(),attrs:{}}),rn=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Go(t,e,n,i){const s=T.useMemo(()=>{const o=rs();return sn(o,e,{enableHardwareAcceleration:!1},rn(i),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};is(o,t.style,t),s.style={...o,...s.style}}return s}function Yo(t=!1){return(n,i,s,{latestValues:o},r)=>{const l=(tn(n)?Go:No)(i,o,r,n),u={...zo(i,typeof n=="string",t),...l,ref:s},{children:h}=i,d=T.useMemo(()=>_(h)?h.get():h,[h]);return T.createElement(n,{...u,children:d})}}function os(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const o in n)t.style.setProperty(o,n[o])}const as=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 ls(t,e,n,i){os(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(as.has(s)?s:Qe(s),e.attrs[s])}function on(t,e){const{style:n}=t,i={};for(const s in n)(_(n[s])||e.style&&_(e.style[s])||Zi(s,t))&&(i[s]=n[s]);return i}function cs(t,e){const n=on(t,e);for(const i in t)if(_(t[i])||_(e[i])){const s=Ht.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[s]=t[i]}return n}function an(t,e,n,i={},s={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,i,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,i,s)),e}function qo(t){const e=T.useRef(null);return e.current===null&&(e.current=t()),e.current}const ce=t=>Array.isArray(t),Xo=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Ko=t=>ce(t)?t[t.length-1]||0:t;function ie(t){const e=_(t)?t.get():t;return Xo(e)?e.toValue():e}function $o({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,s,o){const r={latestValues:Qo(i,s,o,t),renderState:e()};return n&&(r.mount=a=>n(i,a,r)),r}const us=t=>(e,n)=>{const i=T.useContext(me),s=T.useContext($e),o=()=>$o(t,e,i,s);return n?o():qo(o)};function Qo(t,e,n,i){const s={},o=i(t,{});for(const d in o)s[d]=ie(o[d]);let{initial:r,animate:a}=t;const l=ye(t),c=Ki(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;return h&&typeof h!="boolean"&&!ve(h)&&(Array.isArray(h)?h:[h]).forEach(f=>{const p=an(t,f);if(!p)return;const{transitionEnd:m,transition:y,...x}=p;for(const b in x){let g=x[b];if(Array.isArray(g)){const w=u?g.length-1:0;g=g[w]}g!==null&&(s[b]=g)}for(const b in m)s[b]=m[b]}),s}const j=t=>t;class Dn{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Zo(t){let e=new Dn,n=new Dn,i=0,s=!1,o=!1;const r=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const h=u&&s,d=h?e:n;return c&&r.add(l),d.add(l)&&h&&s&&(i=e.order.length),l},cancel:l=>{n.remove(l),r.delete(l)},process:l=>{if(s){o=!0;return}if(s=!0,[e,n]=[n,e],n.clear(),i=e.order.length,i)for(let c=0;c<i;c++){const u=e.order[c];u(l),r.has(u)&&(a.schedule(u),t())}s=!1,o&&(o=!1,a.process(l))}};return a}const Zt=["prepare","read","update","preRender","render","postRender"],Jo=40;function ta(t,e){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},o=Zt.reduce((h,d)=>(h[d]=Zo(()=>n=!0),h),{}),r=h=>o[h].process(s),a=()=>{const h=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(h-s.timestamp,Jo),1),s.timestamp=h,s.isProcessing=!0,Zt.forEach(r),s.isProcessing=!1,n&&e&&(i=!1,t(a))},l=()=>{n=!0,i=!0,s.isProcessing||t(a)};return{schedule:Zt.reduce((h,d)=>{const f=o[d];return h[d]=(p,m=!1,y=!1)=>(n||l(),f.schedule(p,m,y)),h},{}),cancel:h=>Zt.forEach(d=>o[d].cancel(h)),state:s,steps:o}}const{schedule:E,cancel:tt,state:B,steps:Ae}=ta(typeof requestAnimationFrame<"u"?requestAnimationFrame:j,!0),ea={useVisualState:us({scrapeMotionValuesFromProps:cs,createRenderState:rs,onMount:(t,e,{renderState:n,latestValues:i})=>{E.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),E.render(()=>{sn(n,i,{enableHardwareAcceleration:!1},rn(e.tagName),t.transformTemplate),ls(e,n)})}})},na={useVisualState:us({scrapeMotionValuesFromProps:on,createRenderState:nn})};function ia(t,{forwardMotionProps:e=!1},n,i){return{...tn(t)?ea:na,preloadedFeatures:n,useRender:Yo(e),createVisualElement:i,Component:t}}function $(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}const hs=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function xe(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const sa=t=>e=>hs(e)&&t(e,xe(e));function Q(t,e,n,i){return $(t,e,sa(n),i)}const ra=(t,e)=>n=>e(t(n)),lt=(...t)=>t.reduce(ra);function ds(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Ln=ds("dragHorizontal"),Rn=ds("dragVertical");function fs(t){let e=!1;if(t==="y")e=Rn();else if(t==="x")e=Ln();else{const n=Ln(),i=Rn();n&&i?e=()=>{n(),i()}:(n&&n(),i&&i())}return e}function ps(){const t=fs(!0);return t?(t(),!1):!0}class dt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Bn(t,e){const n="pointer"+(e?"enter":"leave"),i="onHover"+(e?"Start":"End"),s=(o,r)=>{if(o.pointerType==="touch"||ps())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[i]&&E.update(()=>a[i](o,r))};return Q(t.current,n,s,{passive:!t.getProps()[i]})}class oa extends dt{mount(){this.unmount=lt(Bn(this.node,!0),Bn(this.node,!1))}unmount(){}}class aa extends dt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{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=lt($(this.node.current,"focus",()=>this.onFocus()),$(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const ms=(t,e)=>e?t===e?!0:ms(t,e.parentElement):!1;function Ce(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,xe(n))}class la extends dt{constructor(){super(...arguments),this.removeStartListeners=j,this.removeEndListeners=j,this.removeAccessibleListeners=j,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const i=this.node.getProps(),o=Q(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:h}=this.node.getProps();E.update(()=>{!h&&!ms(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(i.onTap||i.onPointerUp)}),r=Q(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(i.onTapCancel||i.onPointerCancel)});this.removeEndListeners=lt(o,r),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const r=a=>{a.key!=="Enter"||!this.checkPressEnd()||Ce("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&E.update(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=$(this.node.current,"keyup",r),Ce("down",(a,l)=>{this.startPress(a,l)})},n=$(this.node.current,"keydown",e),i=()=>{this.isPressing&&Ce("cancel",(o,r)=>this.cancelPress(o,r))},s=$(this.node.current,"blur",i);this.removeAccessibleListeners=lt(n,s)}}startPress(e,n){this.isPressing=!0;const{onTapStart:i,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),i&&E.update(()=>i(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ps()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:i}=this.node.getProps();i&&E.update(()=>i(e,n))}mount(){const e=this.node.getProps(),n=Q(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),i=$(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=lt(n,i)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Ie=new WeakMap,ke=new WeakMap,ca=t=>{const e=Ie.get(t.target);e&&e(t)},ua=t=>{t.forEach(ca)};function ha({root:t,...e}){const n=t||document;ke.has(n)||ke.set(n,{});const i=ke.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(ua,{root:t,...e})),i[s]}function da(t,e,n){const i=ha(e);return Ie.set(t,n),i.observe(t),()=>{Ie.delete(t),i.unobserve(t)}}const fa={some:0,all:1};class pa extends dt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:fa[s]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),d=c?u:h;d&&d(l)};return da(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ma(e,n))&&this.startObserver()}unmount(){}}function ma({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ga={inView:{Feature:pa},tap:{Feature:la},focus:{Feature:aa},hover:{Feature:oa}};function gs(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function va(t){const e={};return t.values.forEach((n,i)=>e[i]=n.get()),e}function ya(t){const e={};return t.values.forEach((n,i)=>e[i]=n.getVelocity()),e}function we(t,e,n){const i=t.getProps();return an(i,e,n!==void 0?n:i.custom,va(t),ya(t))}let qt=j,X=j;process.env.NODE_ENV!=="production"&&(qt=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},X=(t,e)=>{if(!t)throw new Error(e)});const ct=t=>t*1e3,Z=t=>t/1e3,ba={current:!1},vs=t=>Array.isArray(t)&&typeof t[0]=="number";function ys(t){return!!(!t||typeof t=="string"&&bs[t]||vs(t)||Array.isArray(t)&&t.every(ys))}const Bt=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,bs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bt([0,.65,.55,1]),circOut:Bt([.55,0,1,.45]),backIn:Bt([.31,.01,.66,-.59]),backOut:Bt([.33,1.53,.69,.99])};function xs(t){if(t)return vs(t)?Bt(t):Array.isArray(t)?t.map(xs):bs[t]}function xa(t,e,n,{delay:i=0,duration:s,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=xs(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:i,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}function wa(t,{repeat:e,repeatType:n="loop"}){const i=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[i]}const ws=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Sa=1e-7,Ta=12;function Pa(t,e,n,i,s){let o,r,a=0;do r=e+(n-e)/2,o=ws(r,i,s)-t,o>0?n=r:e=r;while(Math.abs(o)>Sa&&++a<Ta);return r}function Xt(t,e,n,i){if(t===e&&n===i)return j;const s=o=>Pa(o,0,1,t,n);return o=>o===0||o===1?o:ws(s(o),e,i)}const Aa=Xt(.42,0,1,1),Ca=Xt(0,0,.58,1),Ss=Xt(.42,0,.58,1),ka=t=>Array.isArray(t)&&typeof t[0]!="number",Ts=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Ps=t=>e=>1-t(1-e),ln=t=>1-Math.sin(Math.acos(t)),As=Ps(ln),Va=Ts(ln),Cs=Xt(.33,1.53,.69,.99),cn=Ps(Cs),Ea=Ts(cn),Ma=t=>(t*=2)<1?.5*cn(t):.5*(2-Math.pow(2,-10*(t-1))),Nn={linear:j,easeIn:Aa,easeInOut:Ss,easeOut:Ca,circIn:ln,circInOut:Va,circOut:As,backIn:cn,backInOut:Ea,backOut:Cs,anticipate:Ma},In=t=>{if(Array.isArray(t)){X(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return Xt(e,n,i,s)}else if(typeof t=="string")return X(Nn[t]!==void 0,`Invalid easing type '${t}'`),Nn[t];return t},un=(t,e)=>n=>!!(Gt(n)&&jo.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ks=(t,e,n)=>i=>{if(!Gt(i))return i;const[s,o,r,a]=i.match(be);return{[t]:parseFloat(s),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Oa=t=>ut(0,255,t),Ve={...bt,transform:t=>Math.round(Oa(t))},vt={test:un("rgb","red"),parse:ks("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Ve.transform(t)+", "+Ve.transform(e)+", "+Ve.transform(n)+", "+It(Nt.transform(i))+")"};function ja(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const Fe={test:un("#"),parse:ja,transform:vt.transform},At={test:un("hsl","hue"),parse:ks("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+K.transform(It(e))+", "+K.transform(It(n))+", "+It(Nt.transform(i))+")"},I={test:t=>vt.test(t)||Fe.test(t)||At.test(t),parse:t=>vt.test(t)?vt.parse(t):At.test(t)?At.parse(t):Fe.parse(t),transform:t=>Gt(t)?t:t.hasOwnProperty("red")?vt.transform(t):At.transform(t)},O=(t,e,n)=>-n*t+n*e+t;function Ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Da({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let s=0,o=0,r=0;if(!e)s=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;s=Ee(l,a,t+1/3),o=Ee(l,a,t),r=Ee(l,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}const Me=(t,e,n)=>{const i=t*t;return Math.sqrt(Math.max(0,n*(e*e-i)+i))},La=[Fe,vt,At],Ra=t=>La.find(e=>e.test(t));function Fn(t){const e=Ra(t);X(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===At&&(n=Da(n)),n}const Vs=(t,e)=>{const n=Fn(t),i=Fn(e),s={...n};return o=>(s.red=Me(n.red,i.red,o),s.green=Me(n.green,i.green,o),s.blue=Me(n.blue,i.blue,o),s.alpha=O(n.alpha,i.alpha,o),vt.transform(s))};function Ba(t){var e,n;return isNaN(t)&&Gt(t)&&(((e=t.match(be))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(es))===null||n===void 0?void 0:n.length)||0)>0}const Es={regex:Mo,countKey:"Vars",token:"${v}",parse:j},Ms={regex:es,countKey:"Colors",token:"${c}",parse:I.parse},Os={regex:be,countKey:"Numbers",token:"${n}",parse:bt.parse};function Oe(t,{regex:e,countKey:n,token:i,parse:s}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,i),t.values.push(...o.map(s)))}function ue(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Oe(n,Es),Oe(n,Ms),Oe(n,Os),n}function js(t){return ue(t).values}function Ds(t){const{values:e,numColors:n,numVars:i,tokenised:s}=ue(t),o=e.length;return r=>{let a=s;for(let l=0;l<o;l++)l<i?a=a.replace(Es.token,r[l]):l<i+n?a=a.replace(Ms.token,I.transform(r[l])):a=a.replace(Os.token,It(r[l]));return a}}const Na=t=>typeof t=="number"?0:t;function Ia(t){const e=js(t);return Ds(t)(e.map(Na))}const ht={test:Ba,parse:js,createTransformer:Ds,getAnimatableNone:Ia},Ls=(t,e)=>n=>`${n>0?e:t}`;function Rs(t,e){return typeof t=="number"?n=>O(t,e,n):I.test(t)?Vs(t,e):t.startsWith("var(")?Ls(t,e):Ns(t,e)}const Bs=(t,e)=>{const n=[...t],i=n.length,s=t.map((o,r)=>Rs(o,e[r]));return o=>{for(let r=0;r<i;r++)n[r]=s[r](o);return n}},Fa=(t,e)=>{const n={...t,...e},i={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(i[s]=Rs(t[s],e[s]));return s=>{for(const o in i)n[o]=i[o](s);return n}},Ns=(t,e)=>{const n=ht.createTransformer(e),i=ue(t),s=ue(e);return i.numVars===s.numVars&&i.numColors===s.numColors&&i.numNumbers>=s.numNumbers?lt(Bs(i.values,s.values),n):(qt(!0,`Complex values '${t}' and '${e}' 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.`),Ls(t,e))},Ut=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},zn=(t,e)=>n=>O(t,e,n);function za(t){return typeof t=="number"?zn:typeof t=="string"?I.test(t)?Vs:Ns:Array.isArray(t)?Bs:typeof t=="object"?Fa:zn}function Wa(t,e,n){const i=[],s=n||za(t[0]),o=t.length-1;for(let r=0;r<o;r++){let a=s(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||j:e;a=lt(l,a)}i.push(a)}return i}function Is(t,e,{clamp:n=!0,ease:i,mixer:s}={}){const o=t.length;if(X(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=Wa(e,i,s),a=r.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const h=Ut(t[u],t[u+1],c);return r[u](h)};return n?c=>l(ut(t[0],t[o-1],c)):l}function _a(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const s=Ut(0,e,i);t.push(O(n,1,s))}}function Ua(t){const e=[0];return _a(e,t.length-1),e}function Ha(t,e){return t.map(n=>n*e)}function Ga(t,e){return t.map(()=>e||Ss).splice(0,t.length-1)}function he({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=ka(i)?i.map(In):In(i),o={done:!1,value:e[0]},r=Ha(n&&n.length===e.length?n:Ua(e),t),a=Is(r,e,{ease:Array.isArray(s)?s:Ga(e,s)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}function Fs(t,e){return e?t*(1e3/e):0}const Ya=5;function zs(t,e,n){const i=Math.max(e-Ya,0);return Fs(n-t(i),e-i)}const je=.001,qa=.01,Wn=10,Xa=.05,Ka=1;function $a({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let s,o;qt(t<=ct(Wn),"Spring duration must be 10 seconds or less");let r=1-e;r=ut(Xa,Ka,r),t=ut(qa,Wn,Z(t)),r<1?(s=c=>{const u=c*r,h=u*t,d=u-n,f=ze(c,r),p=Math.exp(-h);return je-d/f*p},o=c=>{const h=c*r*t,d=h*n+n,f=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),m=ze(Math.pow(c,2),r);return(-s(c)+je>0?-1:1)*((d-f)*p)/m}):(s=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-je+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=Za(s,o,a);if(t=ct(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*i;return{stiffness:c,damping:r*2*Math.sqrt(i*c),duration:t}}}const Qa=12;function Za(t,e,n){let i=n;for(let s=1;s<Qa;s++)i=i-t(i)/e(i);return i}function ze(t,e){return t*Math.sqrt(1-e*e)}const Ja=["duration","bounce"],tl=["stiffness","damping","mass"];function _n(t,e){return e.some(n=>t[n]!==void 0)}function el(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!_n(t,tl)&&_n(t,Ja)){const n=$a(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function Ws({keyframes:t,restDelta:e,restSpeed:n,...i}){const s=t[0],o=t[t.length-1],r={done:!1,value:s},{stiffness:a,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:d}=el({...i,velocity:-Z(i.velocity||0)}),f=h||0,p=l/(2*Math.sqrt(a*c)),m=o-s,y=Z(Math.sqrt(a/c)),x=Math.abs(m)<5;n||(n=x?.01:2),e||(e=x?.005:.5);let b;if(p<1){const g=ze(y,p);b=w=>{const A=Math.exp(-p*y*w);return o-A*((f+p*y*m)/g*Math.sin(g*w)+m*Math.cos(g*w))}}else if(p===1)b=g=>o-Math.exp(-y*g)*(m+(f+y*m)*g);else{const g=y*Math.sqrt(p*p-1);b=w=>{const A=Math.exp(-p*y*w),P=Math.min(g*w,300);return o-A*((f+p*y*m)*Math.sinh(P)+g*m*Math.cosh(P))/g}}return{calculatedDuration:d&&u||null,next:g=>{const w=b(g);if(d)r.done=g>=u;else{let A=f;g!==0&&(p<1?A=zs(b,g,w):A=0);const P=Math.abs(A)<=n,k=Math.abs(o-w)<=e;r.done=P&&k}return r.value=r.done?o:w,r}}}function Un({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],d={done:!1,value:h},f=S=>a!==void 0&&S<a||l!==void 0&&S>l,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let m=n*e;const y=h+m,x=r===void 0?y:r(y);x!==y&&(m=x-h);const b=S=>-m*Math.exp(-S/i),g=S=>x+b(S),w=S=>{const V=b(S),F=g(S);d.done=Math.abs(V)<=c,d.value=d.done?x:F};let A,P;const k=S=>{f(d.value)&&(A=S,P=Ws({keyframes:[d.value,p(d.value)],velocity:zs(g,S,d.value),damping:s,stiffness:o,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:S=>{let V=!1;return!P&&A===void 0&&(V=!0,w(S),k(S)),A!==void 0&&S>A?P.next(S-A):(!V&&w(S),d)}}}const nl=t=>{const e=({timestamp:n})=>t(n);return{start:()=>E.update(e,!0),stop:()=>tt(e),now:()=>B.isProcessing?B.timestamp:performance.now()}},Hn=2e4;function Gn(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<Hn;)e+=n,i=t.next(e);return e>=Hn?1/0:e}const il={decay:Un,inertia:Un,tween:he,keyframes:he,spring:Ws};function de({autoplay:t=!0,delay:e=0,driver:n=nl,keyframes:i,type:s="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:h,...d}){let f=1,p=!1,m,y;const x=()=>{y=new Promise(M=>{m=M})};x();let b;const g=il[s]||he;let w;g!==he&&typeof i[0]!="number"&&(process.env.NODE_ENV!=="production"&&X(i.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${i}`),w=Is([0,100],i,{clamp:!1}),i=[0,100]);const A=g({...d,keyframes:i});let P;a==="mirror"&&(P=g({...d,keyframes:[...i].reverse(),velocity:-(d.velocity||0)}));let k="idle",S=null,V=null,F=null;A.calculatedDuration===null&&o&&(A.calculatedDuration=Gn(A));const{calculatedDuration:et}=A;let z=1/0,G=1/0;et!==null&&(z=et+r,G=z*(o+1)-r);let N=0;const xt=M=>{if(V===null)return;f>0&&(V=Math.min(V,M)),f<0&&(V=Math.min(M-G/f,V)),S!==null?N=S:N=Math.round(M-V)*f;const Ot=N-e*(f>=0?1:-1),bn=f>=0?Ot<0:Ot>G;N=Math.max(Ot,0),k==="finished"&&S===null&&(N=G);let xn=N,wn=A;if(o){const Se=Math.min(N,G)/z;let Kt=Math.floor(Se),ft=Se%1;!ft&&Se>=1&&(ft=1),ft===1&&Kt--,Kt=Math.min(Kt,o+1),!!(Kt%2)&&(a==="reverse"?(ft=1-ft,r&&(ft-=r/z)):a==="mirror"&&(wn=P)),xn=ut(0,1,ft)*z}const jt=bn?{done:!1,value:i[0]}:wn.next(xn);w&&(jt.value=w(jt.value));let{done:Sn}=jt;!bn&&et!==null&&(Sn=f>=0?N>=G:N<=0);const vr=S===null&&(k==="finished"||k==="running"&&Sn);return h&&h(jt.value),vr&&Mt(),jt},R=()=>{b&&b.stop(),b=void 0},nt=()=>{k="idle",R(),m(),x(),V=F=null},Mt=()=>{k="finished",u&&u(),R(),m()},wt=()=>{if(p)return;b||(b=n(xt));const M=b.now();l&&l(),S!==null?V=M-S:(!V||k==="finished")&&(V=M),k==="finished"&&x(),F=V,S=null,k="running",b.start()};t&&wt();const yn={then(M,Ot){return y.then(M,Ot)},get time(){return Z(N)},set time(M){M=ct(M),N=M,S!==null||!b||f===0?S=M:V=b.now()-M/f},get duration(){const M=A.calculatedDuration===null?Gn(A):A.calculatedDuration;return Z(M)},get speed(){return f},set speed(M){M===f||!b||(f=M,yn.time=Z(N))},get state(){return k},play:wt,pause:()=>{k="paused",S=N},stop:()=>{p=!0,k!=="idle"&&(k="idle",c&&c(),nt())},cancel:()=>{F!==null&&xt(F),nt()},complete:()=>{k="finished"},sample:M=>(V=0,xt(M))};return yn}function sl(t){let e;return()=>(e===void 0&&(e=t()),e)}const rl=sl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ol=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Jt=10,al=2e4,ll=(t,e)=>e.type==="spring"||t==="backgroundColor"||!ys(e.ease);function cl(t,e,{onUpdate:n,onComplete:i,...s}){if(!(rl()&&ol.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0&&s.type!=="inertia"))return!1;let r=!1,a,l,c=!1;const u=()=>{l=new Promise(g=>{a=g})};u();let{keyframes:h,duration:d=300,ease:f,times:p}=s;if(ll(e,s)){const g=de({...s,repeat:0,delay:0});let w={done:!1,value:h[0]};const A=[];let P=0;for(;!w.done&&P<al;)w=g.sample(P),A.push(w.value),P+=Jt;p=void 0,h=A,d=P-Jt,f="linear"}const m=xa(t.owner.current,e,h,{...s,duration:d,ease:f,times:p}),y=()=>{c=!1,m.cancel()},x=()=>{c=!0,E.update(y),a(),u()};return m.onfinish=()=>{c||(t.set(wa(h,s)),i&&i(),x())},{then(g,w){return l.then(g,w)},attachTimeline(g){return m.timeline=g,m.onfinish=null,j},get time(){return Z(m.currentTime||0)},set time(g){m.currentTime=ct(g)},get speed(){return m.playbackRate},set speed(g){m.playbackRate=g},get duration(){return Z(d)},play:()=>{r||(m.play(),tt(y))},pause:()=>m.pause(),stop:()=>{if(r=!0,m.playState==="idle")return;const{currentTime:g}=m;if(g){const w=de({...s,autoplay:!1});t.setWithVelocity(w.sample(g-Jt).value,w.sample(g).value,Jt)}x()},complete:()=>{c||m.finish()},cancel:x}}function ul({keyframes:t,delay:e,onUpdate:n,onComplete:i}){const s=()=>(n&&n(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:j,pause:j,stop:j,then:o=>(o(),Promise.resolve()),cancel:j,complete:j});return e?de({keyframes:[0,1],duration:0,delay:e,onComplete:s}):s()}const hl={type:"spring",stiffness:500,damping:25,restSpeed:10},dl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),fl={type:"keyframes",duration:.8},pl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ml=(t,{keyframes:e})=>e.length>2?fl:yt.has(t)?t.startsWith("scale")?dl(e[1]):hl:pl,We=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ht.test(e)||e==="0")&&!e.startsWith("url(")),gl=new Set(["brightness","contrast","saturate","opacity"]);function vl(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(be)||[];if(!i)return t;const s=n.replace(i,"");let o=gl.has(e)?1:0;return i!==n&&(o*=100),e+"("+o+s+")"}const yl=/([a-z-]*)\(.*?\)/g,_e={...ht,getAnimatableNone:t=>{const e=t.match(yl);return e?e.map(vl).join(" "):t}},bl={...ns,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:_e,WebkitFilter:_e},hn=t=>bl[t];function _s(t,e){let n=hn(t);return n!==_e&&(n=ht),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Us=t=>/^0[^.\s]+$/.test(t);function xl(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Us(t)}function wl(t,e,n,i){const s=We(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const r=i.from!==void 0?i.from:t.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?r:o[c-1]),xl(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(s&&l.length&&a)for(let c=0;c<l.length;c++){const u=l[c];o[u]=_s(e,a)}return o}function Sl({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function dn(t,e){return t[e]||t.default||t}const Tl={skipAnimations:!1},fn=(t,e,n,i={})=>s=>{const o=dn(i,t)||{},r=o.delay||i.delay||0;let{elapsed:a=0}=i;a=a-ct(r);const l=wl(e,t,n,o),c=l[0],u=l[l.length-1],h=We(t,c),d=We(t,u);qt(h===d,`You are trying to animate ${t} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{e.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(Sl(o)||(f={...f,...ml(t,f)}),f.duration&&(f.duration=ct(f.duration)),f.repeatDelay&&(f.repeatDelay=ct(f.repeatDelay)),!h||!d||ba.current||o.type===!1||Tl.skipAnimations)return ul(f);if(!i.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const p=cl(e,t,f);if(p)return p}return de(f)};function fe(t){return!!(_(t)&&t.add)}const Hs=t=>/^\-?\d*\.?\d+$/.test(t);function pn(t,e){t.indexOf(e)===-1&&t.push(e)}function mn(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class gn{constructor(){this.subscriptions=[]}add(e){return pn(this.subscriptions,e),()=>mn(this.subscriptions,e)}notify(e,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,i);else for(let o=0;o<s;o++){const r=this.subscriptions[o];r&&r(e,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Yn=new Set;function vn(t,e,n){t||Yn.has(e)||(console.warn(e),n&&console.warn(n),Yn.add(e))}const Pl=t=>!isNaN(parseFloat(t));class Al{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(i,s=!0)=>{this.prev=this.current,this.current=i;const{delta:o,timestamp:r}=B;this.lastUpdated!==r&&(this.timeDelta=o,this.lastUpdated=r,E.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>E.postRender(this.velocityCheck),this.velocityCheck=({timestamp:i})=>{i!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=Pl(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&vn(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new gn);const i=this.events[e].add(n);return e==="change"?()=>{i(),E.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,i){this.set(n),this.prev=e,this.timeDelta=i}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Fs(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 Vt(t,e){return new Al(t,e)}const Gs=t=>e=>e.test(t),Cl={test:t=>t==="auto",parse:t=>t},Ys=[bt,C,K,ot,Lo,Do,Cl],Lt=t=>Ys.find(Gs(t)),kl=[...Ys,I,ht],Vl=t=>kl.find(Gs(t));function El(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Vt(n))}function Ml(t,e){const n=we(t,e);let{transitionEnd:i={},transition:s={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...i};for(const r in o){const a=Ko(o[r]);El(t,r,a)}}function Ol(t,e,n){var i,s;const o=Object.keys(e).filter(a=>!t.hasValue(a)),r=o.length;if(r)for(let a=0;a<r;a++){const l=o[a],c=e[l];let u=null;Array.isArray(c)&&(u=c[0]),u===null&&(u=(s=(i=n[l])!==null&&i!==void 0?i:t.readValue(l))!==null&&s!==void 0?s:e[l]),u!=null&&(typeof u=="string"&&(Hs(u)||Us(u))?u=parseFloat(u):!Vl(u)&&ht.test(c)&&(u=_s(l,c)),t.addValue(l,Vt(u,{owner:t})),n[l]===void 0&&(n[l]=u),u!==null&&t.setBaseTarget(l,u))}}function jl(t,e){return e?(e[t]||e.default||e).from:void 0}function Dl(t,e,n){const i={};for(const s in t){const o=jl(s,e);if(o!==void 0)i[s]=o;else{const r=n.getValue(s);r&&(i[s]=r.get())}}return i}function Ll({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function Rl(t,e){const n=t.get();if(Array.isArray(e)){for(let i=0;i<e.length;i++)if(e[i]!==n)return!0}else return n!==e}function qs(t,e,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=t.makeTargetAnimatable(e);const l=t.getValue("willChange");i&&(o=i);const c=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const h in a){const d=t.getValue(h),f=a[h];if(!d||f===void 0||u&&Ll(u,h))continue;const p={delay:n,elapsed:0,...dn(o||{},h)};if(window.HandoffAppearAnimations){const x=t.getProps()[Xi];if(x){const b=window.HandoffAppearAnimations(x,h,d,E);b!==null&&(p.elapsed=b,p.isHandoff=!0)}}let m=!p.isHandoff&&!Rl(d,f);if(p.type==="spring"&&(d.getVelocity()||p.velocity)&&(m=!1),d.animation&&(m=!1),m)continue;d.start(fn(h,d,f,t.shouldReduceMotion&&yt.has(h)?{type:!1}:p));const y=d.animation;fe(l)&&(l.add(h),y.then(()=>l.remove(h))),c.push(y)}return r&&Promise.all(c).then(()=>{r&&Ml(t,r)}),c}function Ue(t,e,n={}){const i=we(t,e,n.custom);let{transition:s=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(qs(t,i,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=s;return Bl(t,e,c+l,u,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function Bl(t,e,n=0,i=0,s=1,o){const r=[],a=(t.variantChildren.size-1)*i,l=s===1?(c=0)=>c*i:(c=0)=>a-c*i;return Array.from(t.variantChildren).sort(Nl).forEach((c,u)=>{c.notify("AnimationStart",e),r.push(Ue(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(r)}function Nl(t,e){return t.sortNodePosition(e)}function Il(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(o=>Ue(t,o,n));i=Promise.all(s)}else if(typeof e=="string")i=Ue(t,e,n);else{const s=typeof e=="function"?we(t,e,n.custom):e;i=Promise.all(qs(t,s,n))}return i.then(()=>t.notify("AnimationComplete",e))}const Fl=[...Ze].reverse(),zl=Ze.length;function Wl(t){return e=>Promise.all(e.map(({animation:n,options:i})=>Il(t,n,i)))}function _l(t){let e=Wl(t);const n=Hl();let i=!0;const s=(l,c)=>{const u=we(t,c);if(u){const{transition:h,transitionEnd:d,...f}=u;l={...l,...f,...d}}return l};function o(l){e=l(t)}function r(l,c){const u=t.getProps(),h=t.getVariantContext(!0)||{},d=[],f=new Set;let p={},m=1/0;for(let x=0;x<zl;x++){const b=Fl[x],g=n[b],w=u[b]!==void 0?u[b]:h[b],A=Wt(w),P=b===c?g.isActive:null;P===!1&&(m=x);let k=w===h[b]&&w!==u[b]&&A;if(k&&i&&t.manuallyAnimateOnMount&&(k=!1),g.protectedKeys={...p},!g.isActive&&P===null||!w&&!g.prevProp||ve(w)||typeof w=="boolean")continue;let V=Ul(g.prevProp,w)||b===c&&g.isActive&&!k&&A||x>m&&A,F=!1;const et=Array.isArray(w)?w:[w];let z=et.reduce(s,{});P===!1&&(z={});const{prevResolvedValues:G={}}=g,N={...G,...z},xt=R=>{V=!0,f.has(R)&&(F=!0,f.delete(R)),g.needsAnimating[R]=!0};for(const R in N){const nt=z[R],Mt=G[R];if(p.hasOwnProperty(R))continue;let wt=!1;ce(nt)&&ce(Mt)?wt=!gs(nt,Mt):wt=nt!==Mt,wt?nt!==void 0?xt(R):f.add(R):nt!==void 0&&f.has(R)?xt(R):g.protectedKeys[R]=!0}g.prevProp=w,g.prevResolvedValues=z,g.isActive&&(p={...p,...z}),i&&t.blockInitialAnimation&&(V=!1),V&&(!k||F)&&d.push(...et.map(R=>({animation:R,options:{type:b,...l}})))}if(f.size){const x={};f.forEach(b=>{const g=t.getBaseTarget(b);g!==void 0&&(x[b]=g)}),d.push({animation:x})}let y=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),i=!1,y?e(d):Promise.resolve()}function a(l,c,u){var h;if(n[l].isActive===c)return Promise.resolve();(h=t.variantChildren)===null||h===void 0||h.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const d=r(u,l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n}}function Ul(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!gs(e,t):!1}function pt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hl(){return{animate:pt(!0),whileInView:pt(),whileHover:pt(),whileTap:pt(),whileDrag:pt(),whileFocus:pt(),exit:pt()}}class Gl extends dt{constructor(e){super(e),e.animationState||(e.animationState=_l(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),ve(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Yl=0;class ql extends dt{constructor(){super(...arguments),this.id=Yl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:i}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const o=this.node.animationState.setActive("exit",!e,{custom:i??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Xl={animation:{Feature:Gl},exit:{Feature:ql}},qn=(t,e)=>Math.abs(t-e);function Kl(t,e){const n=qn(t.x,e.x),i=qn(t.y,e.y);return Math.sqrt(n**2+i**2)}class Xs{constructor(e,n,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Le(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=Kl(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:p}=h,{timestamp:m}=B;this.history.push({...p,timestamp:m});const{onStart:y,onMove:x}=this.handlers;d||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=De(d,this.transformPagePoint),E.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Le(h.type==="pointercancel"?this.lastMoveEventInfo:De(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,y),p&&p(h,y)},!hs(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=i,this.contextWindow=s||window;const r=xe(e),a=De(r,this.transformPagePoint),{point:l}=a,{timestamp:c}=B;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,Le(a,this.history)),this.removeListeners=lt(Q(this.contextWindow,"pointermove",this.handlePointerMove),Q(this.contextWindow,"pointerup",this.handlePointerUp),Q(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),tt(this.updatePoint)}}function De(t,e){return e?{point:e(t.point)}:t}function Xn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Le({point:t},e){return{point:t,delta:Xn(t,Ks(e)),offset:Xn(t,$l(e)),velocity:Ql(e,.1)}}function $l(t){return t[0]}function Ks(t){return t[t.length-1]}function Ql(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Ks(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>ct(e)));)n--;if(!i)return{x:0,y:0};const o=Z(s.timestamp-i.timestamp);if(o===0)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function H(t){return t.max-t.min}function He(t,e=0,n=.01){return Math.abs(t-e)<=n}function Kn(t,e,n,i=.5){t.origin=i,t.originPoint=O(e.min,e.max,t.origin),t.scale=H(n)/H(e),(He(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=O(n.min,n.max,t.origin)-t.originPoint,(He(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ft(t,e,n,i){Kn(t.x,e.x,n.x,i?i.originX:void 0),Kn(t.y,e.y,n.y,i?i.originY:void 0)}function $n(t,e,n){t.min=n.min+e.min,t.max=t.min+H(e)}function Zl(t,e,n){$n(t.x,e.x,n.x),$n(t.y,e.y,n.y)}function Qn(t,e,n){t.min=e.min-n.min,t.max=t.min+H(e)}function zt(t,e,n){Qn(t.x,e.x,n.x),Qn(t.y,e.y,n.y)}function Jl(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?O(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?O(n,t,i.max):Math.min(t,n)),t}function Zn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function tc(t,{top:e,left:n,bottom:i,right:s}){return{x:Zn(t.x,n,s),y:Zn(t.y,e,i)}}function Jn(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function ec(t,e){return{x:Jn(t.x,e.x),y:Jn(t.y,e.y)}}function nc(t,e){let n=.5;const i=H(t),s=H(e);return s>i?n=Ut(e.min,e.max-i,t.min):i>s&&(n=Ut(t.min,t.max-s,e.min)),ut(0,1,n)}function ic(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ge=.35;function sc(t=Ge){return t===!1?t=0:t===!0&&(t=Ge),{x:ti(t,"left","right"),y:ti(t,"top","bottom")}}function ti(t,e,n){return{min:ei(t,e),max:ei(t,n)}}function ei(t,e){return typeof t=="number"?t:t[e]||0}const ni=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ct=()=>({x:ni(),y:ni()}),ii=()=>({min:0,max:0}),L=()=>({x:ii(),y:ii()});function q(t){return[t("x"),t("y")]}function $s({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function rc({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function oc(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Re(t){return t===void 0||t===1}function Ye({scale:t,scaleX:e,scaleY:n}){return!Re(t)||!Re(e)||!Re(n)}function mt(t){return Ye(t)||Qs(t)||t.z||t.rotate||t.rotateX||t.rotateY}function Qs(t){return si(t.x)||si(t.y)}function si(t){return t&&t!=="0%"}function pe(t,e,n){const i=t-n,s=e*i;return n+s}function ri(t,e,n,i,s){return s!==void 0&&(t=pe(t,s,i)),pe(t,n,i)+e}function qe(t,e=0,n=1,i,s){t.min=ri(t.min,e,n,i,s),t.max=ri(t.max,e,n,i,s)}function Zs(t,{x:e,y:n}){qe(t.x,e.translate,e.scale,e.originPoint),qe(t.y,n.translate,n.scale,n.originPoint)}function ac(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let o,r;for(let a=0;a<s;a++){o=n[a],r=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&kt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Zs(t,r)),i&&mt(o.latestValues)&&kt(t,o.latestValues))}e.x=oi(e.x),e.y=oi(e.y)}function oi(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function at(t,e){t.min=t.min+e,t.max=t.max+e}function ai(t,e,[n,i,s]){const o=e[s]!==void 0?e[s]:.5,r=O(t.min,t.max,o);qe(t,e[n],e[i],r,e.scale)}const lc=["x","scaleX","originX"],cc=["y","scaleY","originY"];function kt(t,e){ai(t.x,e,lc),ai(t.y,e,cc)}function Js(t,e){return $s(oc(t.getBoundingClientRect(),e))}function uc(t,e,n){const i=Js(t,n),{scroll:s}=e;return s&&(at(i.x,s.offset.x),at(i.y,s.offset.y)),i}const tr=({current:t})=>t?t.ownerDocument.defaultView:null,hc=new WeakMap;class dc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xe(u,"page").point)},o=(u,h)=>{const{drag:d,dragPropagation:f,onDragStart:p}=this.getProps();if(d&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=fs(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),q(y=>{let x=this.getAxisMotionValue(y).get()||0;if(K.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const g=b.layout.layoutBox[y];g&&(x=H(g)*(parseFloat(x)/100))}}this.originPoint[y]=x}),p&&E.update(()=>p(u,h),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},r=(u,h)=>{const{dragPropagation:d,dragDirectionLock:f,onDirectionLock:p,onDrag:m}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:y}=h;if(f&&this.currentDirection===null){this.currentDirection=fc(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),m&&m(u,h)},a=(u,h)=>this.stop(u,h),l=()=>q(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Xs(e,{onSessionStart:s,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:tr(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&E.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!te(e,s,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=Jl(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&Pt(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=tc(s.layoutBox,n):this.constraints=!1,this.elastic=sc(i),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&q(r=>{this.getAxisMotionValue(r)&&(this.constraints[r]=ic(s.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Pt(e))return!1;const i=e.current;X(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const o=uc(i,s.root,this.visualElement.getTransformPagePoint());let r=ec(s.layout.layoutBox,o);if(n){const a=n(rc(r));this.hasMutatedConstraints=!!a,a&&(r=$s(a))}return r}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=q(u=>{if(!te(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const d=s?200:1e6,f=s?40:1e7,p={type:"inertia",velocity:i?e[u]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return i.start(fn(e,i,0,n))}stopAnimation(){q(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){q(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){q(n=>{const{drag:i}=this.getProps();if(!te(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,o=this.getAxisMotionValue(n);if(s&&s.layout){const{min:r,max:a}=s.layout.layoutBox[n];o.set(e[n]-O(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Pt(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};q(r=>{const a=this.getAxisMotionValue(r);if(a){const l=a.get();s[r]=nc({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),q(r=>{if(!te(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(O(l,c,s[r]))})}addListeners(){if(!this.visualElement.current)return;hc.set(this.visualElement,this);const e=this.visualElement.current,n=Q(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();Pt(l)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),i();const r=$(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(q(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:o=!1,dragElastic:r=Ge,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function te(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function fc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class pc extends dt{constructor(e){super(e),this.removeGroupControls=j,this.removeListeners=j,this.controls=new dc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||j}unmount(){this.removeGroupControls(),this.removeListeners()}}const li=t=>(e,n)=>{t&&E.update(()=>t(e,n))};class mc extends dt{constructor(){super(...arguments),this.removePointerDownListener=j}onPointerDown(e){this.session=new Xs(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:li(e),onStart:li(n),onMove:i,onEnd:(o,r)=>{delete this.session,s&&E.update(()=>s(o,r))}}}mount(){this.removePointerDownListener=Q(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function gc(){const t=T.useContext($e);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,s=T.useId();return T.useEffect(()=>i(s),[]),!e&&n?[!1,()=>n&&n(s)]:[!0]}const se={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ci(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Rt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(C.test(t))t=parseFloat(t);else return t;const n=ci(t,e.target.x),i=ci(t,e.target.y);return`${n}% ${i}%`}},vc={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=ht.parse(t);if(s.length>5)return i;const o=ht.createTransformer(t),r=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+r]/=a,s[1+r]/=l;const c=O(a,l,.5);return typeof s[2+r]=="number"&&(s[2+r]/=c),typeof s[3+r]=="number"&&(s[3+r]/=c),o(s)}};class yc extends T.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:o}=e;Co(bc),o&&(n.group&&n.group.add(o),i&&i.register&&s&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),se.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:o}=this.props,r=i.projection;return r&&(r.isPresent=o,s||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||E.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function er(t){const[e,n]=gc(),i=T.useContext($i);return T.createElement(yc,{...t,layoutGroup:i,switchLayoutGroup:T.useContext(Qi),isPresent:e,safeToRemove:n})}const bc={borderRadius:{...Rt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomLeftRadius:Rt,borderBottomRightRadius:Rt,boxShadow:vc},nr=["TopLeft","TopRight","BottomLeft","BottomRight"],xc=nr.length,ui=t=>typeof t=="string"?parseFloat(t):t,hi=t=>typeof t=="number"||C.test(t);function wc(t,e,n,i,s,o){s?(t.opacity=O(0,n.opacity!==void 0?n.opacity:1,Sc(i)),t.opacityExit=O(e.opacity!==void 0?e.opacity:1,0,Tc(i))):o&&(t.opacity=O(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let r=0;r<xc;r++){const a=`border${nr[r]}Radius`;let l=di(e,a),c=di(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||hi(l)===hi(c)?(t[a]=Math.max(O(ui(l),ui(c),i),0),(K.test(c)||K.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=O(e.rotate||0,n.rotate||0,i))}function di(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Sc=ir(0,.5,As),Tc=ir(.5,.95,j);function ir(t,e,n){return i=>i<t?0:i>e?1:n(Ut(t,e,i))}function fi(t,e){t.min=e.min,t.max=e.max}function Y(t,e){fi(t.x,e.x),fi(t.y,e.y)}function pi(t,e,n,i,s){return t-=e,t=pe(t,1/n,i),s!==void 0&&(t=pe(t,1/s,i)),t}function Pc(t,e=0,n=1,i=.5,s,o=t,r=t){if(K.test(e)&&(e=parseFloat(e),e=O(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=O(o.min,o.max,i);t===o&&(a-=e),t.min=pi(t.min,e,n,a,s),t.max=pi(t.max,e,n,a,s)}function mi(t,e,[n,i,s],o,r){Pc(t,e[n],e[i],e[s],e.scale,o,r)}const Ac=["x","scaleX","originX"],Cc=["y","scaleY","originY"];function gi(t,e,n,i){mi(t.x,e,Ac,n?n.x:void 0,i?i.x:void 0),mi(t.y,e,Cc,n?n.y:void 0,i?i.y:void 0)}function vi(t){return t.translate===0&&t.scale===1}function sr(t){return vi(t.x)&&vi(t.y)}function kc(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function rr(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function yi(t){return H(t.x)/H(t.y)}class Vc{constructor(){this.members=[]}add(e){pn(this.members,e),e.scheduleRender()}remove(e){if(mn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const o=this.members[s];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function bi(t,e,n){let i="";const s=t.x.translate/e.x,o=t.y.translate/e.y;if((s||o)&&(i=`translate3d(${s}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:l,rotateX:c,rotateY:u}=n;l&&(i+=`rotate(${l}deg) `),c&&(i+=`rotateX(${c}deg) `),u&&(i+=`rotateY(${u}deg) `)}const r=t.x.scale*e.x,a=t.y.scale*e.y;return(r!==1||a!==1)&&(i+=`scale(${r}, ${a})`),i||"none"}const Ec=(t,e)=>t.depth-e.depth;class Mc{constructor(){this.children=[],this.isDirty=!1}add(e){pn(this.children,e),this.isDirty=!0}remove(e){mn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ec),this.isDirty=!1,this.children.forEach(e)}}function Oc(t,e){const n=performance.now(),i=({timestamp:s})=>{const o=s-n;o>=e&&(tt(i),t(o-e))};return E.read(i,!0),()=>tt(i)}function jc(t){window.MotionDebug&&window.MotionDebug.record(t)}function Dc(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Lc(t,e,n){const i=_(t)?t:Vt(t);return i.start(fn("",i,e,n)),i.animation}const xi=["","X","Y","Z"],Rc={visibility:"hidden"},wi=1e3;let Bc=0;const gt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function or({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Bc++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,gt.totalNodes=gt.resolvedTargetDeltas=gt.recalculatedProjection=0,this.nodes.forEach(Fc),this.nodes.forEach(Hc),this.nodes.forEach(Gc),this.nodes.forEach(zc),jc(gt)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Mc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new gn),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Dc(r),this.instance=r;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let h;const d=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Oc(d,250),se.hasAnimatedSinceResize&&(se.hasAnimatedSinceResize=!1,this.nodes.forEach(Ti))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||$c,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=u.getProps(),b=!this.targetLayout||!rr(this.targetLayout,p)||f,g=!d&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const w={...dn(m,"layout"),onPlay:y,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||Ti(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,tt(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(Yc),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Si);return}this.isUpdating||this.nodes.forEach(_c),this.isUpdating=!1,this.nodes.forEach(Uc),this.nodes.forEach(Nc),this.nodes.forEach(Ic),this.clearAllSnapshots();const a=performance.now();B.delta=ut(0,1e3/60,a-B.timestamp),B.timestamp=a,B.isProcessing=!0,Ae.update.process(B),Ae.preRender.process(B),Ae.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Wc),this.sharedNodes.forEach(qc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,E.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){E.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=L(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:r,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!s)return;const r=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!sr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&(a||mt(this.latestValues)||u)&&(s(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Qc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return L();const a=r.measureViewportBox(),{scroll:l}=this.root;return l&&(at(a.x,l.offset.x),at(a.y,l.offset.y)),a}removeElementScroll(r){const a=L();Y(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;if(c!==this.root&&u&&h.layoutScroll){if(u.isRoot){Y(a,r);const{scroll:d}=this.root;d&&(at(a.x,-d.offset.x),at(a.y,-d.offset.y))}at(a.x,u.offset.x),at(a.y,u.offset.y)}}return a}applyTransform(r,a=!1){const l=L();Y(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&kt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),mt(u.latestValues)&&kt(l,u.latestValues)}return mt(this.latestValues)&&kt(l,this.latestValues),l}removeTransform(r){const a=L();Y(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!mt(c.latestValues))continue;Ye(c.latestValues)&&c.updateSnapshot();const u=L(),h=c.measurePageBox();Y(u,h),gi(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return mt(this.latestValues)&&gi(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}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!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:d}=this.options;if(!(!this.layout||!(h||d))){if(this.resolvedRelativeTargetAt=B.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),zt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=L(),this.targetWithTransforms=L()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zl(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Y(this.target,this.layout.layoutBox),Zs(this.target,this.targetDelta)):Y(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=L(),this.relativeTargetOrigin=L(),zt(this.relativeTargetOrigin,this.target,f.target),Y(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}gt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ye(this.parent.latestValues)||Qs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===B.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;Y(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;ac(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:p}=a;if(!p){this.projectionTransform&&(this.projectionDelta=Ct(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Ct(),this.projectionDeltaWithTransform=Ct());const m=this.projectionTransform;Ft(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=bi(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==d||this.treeScale.y!==f)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),gt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=Ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=L(),f=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=f!==p,y=this.getStack(),x=!y||y.members.length<=1,b=!!(m&&!x&&this.options.crossfade===!0&&!this.path.some(Kc));this.animationProgress=0;let g;this.mixTargetDelta=w=>{const A=w/1e3;Pi(h.x,r.x,A),Pi(h.y,r.y,A),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zt(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Xc(this.relativeTarget,this.relativeTargetOrigin,d,A),g&&kc(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=L()),Y(g,this.relativeTarget)),m&&(this.animationValues=u,wc(u,c,this.latestValues,A,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=E.update(()=>{se.hasAnimatedSinceResize=!0,this.currentAnimation=Lc(0,wi,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.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);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(wi),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&ar(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||L();const h=H(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const d=H(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+d}Y(a,l),kt(a,u),Ft(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Vc),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let u=0;u<xi.length;u++){const h="rotate"+xi[u];l[h]&&(c[h]=l[h],r.setStaticValue(h,0))}r.render();for(const u in c)r.setStaticValue(u,c[u]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Rc;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=ie(r==null?void 0:r.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=ie(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!mt(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const d=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=bi(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));const{x:f,y:p}=this.projectionDelta;c.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=h===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const m in ae){if(d[m]===void 0)continue;const{correct:y,applyTo:x}=ae[m],b=c.transform==="none"?d[m]:y(d[m],h);if(x){const g=x.length;for(let w=0;w<g;w++)c[x[w]]=b}else c[m]=b}return this.options.layoutId&&(c.pointerEvents=h===this?ie(r==null?void 0:r.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Si),this.root.sharedNodes.clear()}}}function Nc(t){t.updateLayout()}function Ic(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?q(h=>{const d=r?n.measuredBox[h]:n.layoutBox[h],f=H(d);d.min=i[h].min,d.max=d.min+f}):ar(o,n.layoutBox,i)&&q(h=>{const d=r?n.measuredBox[h]:n.layoutBox[h],f=H(i[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=Ct();Ft(a,i,n.layoutBox);const l=Ct();r?Ft(l,t.applyTransform(s,!0),n.measuredBox):Ft(l,i,n.layoutBox);const c=!sr(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const p=L();zt(p,n.layoutBox,d.layoutBox);const m=L();zt(m,i,f.layoutBox),rr(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Fc(t){gt.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function zc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Wc(t){t.clearSnapshot()}function Si(t){t.clearMeasurements()}function _c(t){t.isLayoutDirty=!1}function Uc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ti(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Hc(t){t.resolveTargetDelta()}function Gc(t){t.calcProjection()}function Yc(t){t.resetRotation()}function qc(t){t.removeLeadSnapshot()}function Pi(t,e,n){t.translate=O(e.translate,0,n),t.scale=O(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ai(t,e,n,i){t.min=O(e.min,n.min,i),t.max=O(e.max,n.max,i)}function Xc(t,e,n,i){Ai(t.x,e.x,n.x,i),Ai(t.y,e.y,n.y,i)}function Kc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const $c={duration:.45,ease:[.4,0,.1,1]},Ci=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),ki=Ci("applewebkit/")&&!Ci("chrome/")?Math.round:j;function Vi(t){t.min=ki(t.min),t.max=ki(t.max)}function Qc(t){Vi(t.x),Vi(t.y)}function ar(t,e,n){return t==="position"||t==="preserve-aspect"&&!He(yi(e),yi(n),.2)}const Zc=or({attachResizeListener:(t,e)=>$(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Be={current:void 0},lr=or({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Be.current){const t=new Zc({});t.mount(window),t.setOptions({layoutScroll:!0}),Be.current=t}return Be.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Jc={pan:{Feature:mc},drag:{Feature:pc,ProjectionNode:lr,MeasureLayout:er}},tu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function eu(t){const e=tu.exec(t);if(!e)return[,];const[,n,i]=e;return[n,i]}const nu=4;function Xe(t,e,n=1){X(n<=nu,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,s]=eu(t);if(!i)return;const o=window.getComputedStyle(e).getPropertyValue(i);if(o){const r=o.trim();return Hs(r)?parseFloat(r):r}else return Ne(s)?Xe(s,e,n+1):s}function iu(t,{...e},n){const i=t.current;if(!(i instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(s=>{const o=s.get();if(!Ne(o))return;const r=Xe(o,i);r&&s.set(r)});for(const s in e){const o=e[s];if(!Ne(o))continue;const r=Xe(o,i);r&&(e[s]=r,n||(n={}),n[s]===void 0&&(n[s]=o))}return{target:e,transitionEnd:n}}const su=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cr=t=>su.has(t),ru=t=>Object.keys(t).some(cr),ee=t=>t===bt||t===C,Ei=(t,e)=>parseFloat(t.split(", ")[e]),Mi=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/);if(s)return Ei(s[1],e);{const o=i.match(/^matrix\((.+)\)$/);return o?Ei(o[1],t):0}},ou=new Set(["x","y","z"]),au=Ht.filter(t=>!ou.has(t));function lu(t){const e=[];return au.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Et={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Mi(4,13),y:Mi(5,14)};Et.translateX=Et.x;Et.translateY=Et.y;const cu=(t,e,n)=>{const i=e.measureViewportBox(),s=e.current,o=getComputedStyle(s),{display:r}=o,a={};r==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(c=>{a[c]=Et[c](i,o)}),e.render();const l=e.measureViewportBox();return n.forEach(c=>{const u=e.getValue(c);u&&u.jump(a[c]),t[c]=Et[c](l,o)}),t},uu=(t,e,n={},i={})=>{e={...e},i={...i};const s=Object.keys(e).filter(cr);let o=[],r=!1;const a=[];if(s.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let u=n[l],h=Lt(u);const d=e[l];let f;if(ce(d)){const p=d.length,m=d[0]===null?1:0;u=d[m],h=Lt(u);for(let y=m;y<p&&d[y]!==null;y++)f?X(Lt(d[y])===f,"All keyframes must be of the same type"):(f=Lt(d[y]),X(f===h||ee(h)&&ee(f),"Keyframes must be of the same dimension as the current value"))}else f=Lt(d);if(h!==f)if(ee(h)&&ee(f)){const p=c.get();typeof p=="string"&&c.set(parseFloat(p)),typeof d=="string"?e[l]=parseFloat(d):Array.isArray(d)&&f===C&&(e[l]=d.map(parseFloat))}else h!=null&&h.transform&&(f!=null&&f.transform)&&(u===0||d===0)?u===0?c.set(f.transform(u)):e[l]=h.transform(d):(r||(o=lu(t),r=!0),a.push(l),i[l]=i[l]!==void 0?i[l]:e[l],c.jump(d))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=cu(e,t,a);return o.length&&o.forEach(([u,h])=>{t.getValue(u).set(h)}),t.render(),ge&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:i}}else return{target:e,transitionEnd:i}};function hu(t,e,n,i){return ru(e)?uu(t,e,n,i):{target:e,transitionEnd:i}}const du=(t,e,n,i)=>{const s=iu(t,e,i);return e=s.target,i=s.transitionEnd,hu(t,e,n,i)},Ke={current:null},ur={current:!1};function fu(){if(ur.current=!0,!!ge)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ke.current=t.matches;t.addListener(e),e()}else Ke.current=!1}function pu(t,e,n){const{willChange:i}=e;for(const s in e){const o=e[s],r=n[s];if(_(o))t.addValue(s,o),fe(i)&&i.add(s),process.env.NODE_ENV==="development"&&vn(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(_(r))t.addValue(s,Vt(o,{owner:t})),fe(i)&&i.remove(s);else if(r!==o)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(o)}else{const a=t.getStaticValue(s);t.addValue(s,Vt(a!==void 0?a:o,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Oi=new WeakMap,hr=Object.keys(_t),mu=hr.length,ji=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],gu=Je.length;class vu{constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,visualState:o},r={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>E.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=r,this.isControllingVariants=ye(n),this.isVariantNode=Ki(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(n,{});for(const h in u){const d=u[h];a[h]!==void 0&&_(d)&&(d.set(a[h],!1),fe(c)&&c.add(h))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Oi.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((n,i)=>this.bindToMotionValue(i,n)),ur.current||fu(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ke.current,process.env.NODE_ENV!=="production"&&vn(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Oi.delete(this.current),this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const i=yt.has(e),s=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&E.update(this.notifyUpdate,!1,!0),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},i,s,o){let r,a;if(process.env.NODE_ENV!=="production"&&s&&i){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?qt(!1,l):X(!1,l)}for(let l=0;l<mu;l++){const c=hr[l],{isEnabled:u,Feature:h,ProjectionNode:d,MeasureLayout:f}=_t[c];d&&(r=d),u(n)&&(!this.features[c]&&h&&(this.features[c]=new h(this)),f&&(a=f))}if((this.type==="html"||this.type==="svg")&&!this.projection&&r){this.projection=new r(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:u,dragConstraints:h,layoutScroll:d,layoutRoot:f}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||h&&Pt(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:f})}return a}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<ji.length;i++){const s=ji[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const o=e["on"+s];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=pu(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const i=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}const n={};for(let i=0;i<gu;i++){const s=Je[i],o=this.props[s];(Wt(o)||o===!1)&&(n[s]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=Vt(n,{owner:this}),this.addValue(e,i)),i}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props,s=typeof i=="string"||typeof i=="object"?(n=an(this.props,i))===null||n===void 0?void 0:n[e]:void 0;if(i&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!_(o)?o:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new gn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class dr extends vu{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...i},{transformValues:s},o){let r=Dl(i,e||{},this);if(s&&(n&&(n=s(n)),i&&(i=s(i)),r&&(r=s(r))),o){Ol(this,i,r);const a=du(this,i,r,n);n=a.transitionEnd,i=a.target}return{transition:e,transitionEnd:n,...i}}}function yu(t){return window.getComputedStyle(t)}class bu extends dr{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(yt.has(n)){const i=hn(n);return i&&i.default||0}else{const i=yu(e),s=(ts(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Js(e,n)}build(e,n,i,s){en(e,n,i,s.transformTemplate)}scrapeMotionValuesFromProps(e,n){return on(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;_(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,i,s){os(e,n,i,s)}}class xu extends dr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(yt.has(n)){const i=hn(n);return i&&i.default||0}return n=as.has(n)?n:Qe(n),e.getAttribute(n)}measureInstanceViewportBox(){return L()}scrapeMotionValuesFromProps(e,n){return cs(e,n)}build(e,n,i,s){sn(e,n,i,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,i,s){ls(e,n,i,s)}mount(e){this.isSVGTag=rn(e.tagName),super.mount(e)}}const wu=(t,e)=>tn(t)?new xu(e,{enableHardwareAcceleration:!1}):new bu(e,{enableHardwareAcceleration:!0}),Su={layout:{ProjectionNode:lr,MeasureLayout:er}},Tu={...Xl,...ga,...Jc,...Su},fr=Po((t,e)=>ia(t,e,Tu,wu));function Pu(t){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:v.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function Au(t){const{children:e,parentRef:n,onlyChild:i}=t,[s,o]=T.useState({top:0,left:0});return T.useLayoutEffect(()=>{if(n.current){const r=n.current.getBoundingClientRect();o({top:r.top,left:r.left+r.width})}},[n]),i?e:br.createPortal(v.jsx(fr.div,{style:{position:"fixed",top:s.top,left:s.left,zIndex:1200},children:e}),n.current)}function pr({item:t,level:e=0,...n}){var k;const{isActive:i,isCollapsed:s,expanded:o,toggleExpand:r}=n,a=`level-${e}`,l=s?"collapsed":"expanded",c=i(t.id)?"active":"",u=(S,V=a)=>`${S} ${V} ${l} ${c}`,h=!!((k=t.children)!=null&&k.length),[d,f]=T.useState(!1),p=T.useRef();function m(S){var z;const{level:V,hovered:F,parentRef:et}=S;return!h||s&&V>=2&&!F?null:v.jsx(Au,{parentRef:et,onlyChild:!s||s&&V<2,children:v.jsx(fr.div,{className:u("menu-item__dropdown",`level-${V}`),initial:{height:s?"auto":0},animate:{height:s||o(t.id)?"auto":0},transition:{duration:.2},children:(z=t.children)==null?void 0:z.map(G=>T.createElement(pr,{...n,key:G.id,item:G,level:V}))},+s)})}const y=window.location.origin,x=t.path&&t.path.includes("http")?new URL(t.path):{origin:"",pathname:""},b=window.location.pathname.split("/")[1],g=x.pathname.split("/")[1],w=n.ssr||!y.includes("local")&&y!==x.origin||g!==b,A=h?"div":w?"a":Di.Link,P=t.path||"#";return v.jsxs("div",{ref:p,className:u("menu-item__wrapper"),onMouseEnter:()=>s&&f(!0),onMouseLeave:()=>s&&f(!1),children:[v.jsxs(A,{to:P,href:P,style:{paddingLeft:`${s?"0.5rem":`${e*1}rem`}`},className:u("menu-item__link"),onClick:S=>{h&&(S.preventDefault(),s||r(t.id))},children:[e!==0&&v.jsx(Cu,{cls:u,item:t}),v.jsx("span",{className:u("menu-item__label"),children:t.name}),h&&v.jsx("div",{className:u("menu-item__icon-arrow__wrapper"),children:v.jsx(Pu,{className:u(`menu-item__icon-arrow__icon ${o(t.id)?"open":"close"}`)})})]}),m({level:e+1,hovered:d,parentRef:p})]},t.id)}function Cu({item:t,cls:e}){var r,a;const[n,i]=T.useState(!1),s=()=>{i(!0)},o=(r=t.icon)==null?void 0:r.endsWith(".svg");return v.jsx("div",{className:e("menu-item__icon"),children:n?v.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=t.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?v.jsx(J.ReactSVG,{src:t.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(u=>{u.setAttribute("stroke","currentColor")})}}):v.jsx("img",{src:t.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:s})})}function ku(){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:v.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function Vu(){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:v.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function Eu(t){return v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:v.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const Mu=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
|
|
6
|
-
`,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react/jsx-runtime"),A=require("react"),P=require("../index-b4299ca4.cjs"),Al=require("axios"),go=require("react-router-dom"),kl=require("react-dom"),X=require("@mui/material");function Ol(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const R=Ol(A),Ml=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px}.confirm-btn{background:#e01b00!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
|
|
2
|
+
`;function yo({isOpen:e,onClose:t,onConfirm:n}){if(!e)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&t()}return S.jsxs(S.Fragment,{children:[S.jsx("style",{type:"text/css",children:Ml}),S.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:S.jsxs("div",{className:"modal-container",children:[S.jsx("h3",{className:"modal-title",children:"Log out"}),S.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),S.jsxs("div",{className:"modal-footer",children:[S.jsx("button",{className:"modal-button",onClick:t,children:"Cancel"}),S.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}function _l({primaryColor:e="#009d4f"}){return S.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[S.jsx("path",{d:"M8.5 19.5H8C4 19.5 2 18.5 2 13.5V8.5C2 4.5 4 2.5 8 2.5H16C20 2.5 22 4.5 22 8.5V13.5C22 17.5 20 19.5 16 19.5H15.5C15.19 19.5 14.89 19.65 14.7 19.9L13.2 21.9C12.54 22.78 11.46 22.78 10.8 21.9L9.3 19.9C9.14 19.68 8.77 19.5 8.5 19.5Z",stroke:e,"stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),S.jsx("path",{d:"M15.9965 11.5H16.0054",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),S.jsx("path",{d:"M11.9955 11.5H12.0045",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),S.jsx("path",{d:"M7.99451 11.5H8.00349",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]})}function Rl({primaryColor:e="#009d4f"}){return S.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[S.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.7968 17.4705C16.5901 17.4705 18.8076 16.8556 19.0218 14.3874C19.0218 11.921 17.4757 12.0796 17.4757 9.05334C17.4757 6.68952 15.2352 4 11.7968 4C8.35833 4 6.1178 6.68952 6.1178 9.05334C6.1178 12.0796 4.57178 11.921 4.57178 14.3874C4.78679 16.8649 7.00428 17.4705 11.7968 17.4705Z",stroke:e,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),S.jsx("path",{d:"M13.8274 20.0286C12.6679 21.3161 10.8591 21.3313 9.68848 20.0286",stroke:e,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),S.jsx("circle",{cx:"16.928",cy:"7",r:"2",fill:"#E01B00",stroke:e})]})}const Vl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAArCAYAAAADgWq5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA3XSURBVHgBtVl7jFxVGf/dO3feMzuzO/tuu92y2xIoCEgCgUQogSIKhBIgaAxpFdREITxMVCrYNqB/+A8QCYQYbIuJUTChGqBQDCkaMUCgW0qtpe12t933drezs/N+XX/fuefOzK6l0KInPb2POfec3/m+3/c6a+ALNNu247xczL6Ofbm+j+suLck+pK972XcYhrEbX6AZOItGoGt4uZ99jQtu+tAnmP7kIPLz8yiwS/NHmxDr6kJTdzfaVq5qnGIb+/azAX9GgDXQTQJUQB3Y+SqOvL1bgXVB6nELv2OvcqllX74Uq2+8SV2buBE40n+QwHfgfwlYq34r+7rU+Bj2vvgH/Ou1VxXIxeAaW7Xht6ph1NGzCfAr7/meC3wb+xYCH8IXBaylurWQnu/d++IfMUCwRS1Nuz7mFN813lfVUrYh3xi1lWXIlXd/F1eww5H2rQQ9gLMFTCAP8PJEamIcO+77AebHx+u/6Y8FrItNJDqVL2Awm8WJQhFejwedfj9WhIJosjz8wKCkUdupu6koOX7n08+60haKPHnGgAlEuLp5bGAPdm78yUKO6tU4cQ3w/uQc3pqYwkypQOAGTNNU3SJoi+N6wmFclWjmBnxqvEja1rMJcF8kghseeRT9V62Rl5s595bPDZggxE29fPD11/DWLx9f/FsNqFwrvP5l6DjenZmBKN40TM5qqrEeAUzJGnz28Rpgv6atFRdGQmrXjjG6QrDV/Q0/+zlWf/1GebWB82//TMAE0svLnpnDh+N/umfDaY1KfnlrdBw7R8ZguyQxPJSsoW493JDHY7JbaiGhSNCycEt3J3oDgZp2qi5HOMgbjuCOp59B+8pV4rsvWWyIpwJ8ND0x0fvKQ/dDPIJh1yWgWVsbW6xU8au9+8jXAqUJWJRo2OdDiGqPBv1ojcUQIRVOptOYnEsjky+iUrXREw3jm91dihQ26VPRs0NvoKmrk6DJ6c6uAQK+pBGftQis8LZ3z/ZtIGjFQRJS78zQ05q1u/0nk5ghWOFoazCAloCFGIF2xKPobmtHW1sCifZWeP1e5DM5jJPjHxwaxsGpJE5WykhYlprZI1IWr0FOGASd4tpv/OIx3PHrZy4mJuHzZhejuYgKDxza9Tqkm4ah5Ck8NUzpjhG5z/L7QQIWsGGfFzGvGJeeUMZY5G0oxGgXRYBSjsSi6GpvwZoL+7GqM4GhbM5hkOEIw6SkDcN5ISIZ2fOh6mz36ziwEDCb7CK+94UXHFAKsHMVQzK1lIWfakq+T4p0+RwhWP5Tm1CcVAbFb7w+xwA9XnVvkS4RbuCS5Z18tvT8LmgO0+s5axrY5Ri8gH3gVICvPvLmG0hPTjjSNVyp6kk5Uhii7Mm01W9i1X6S1yLR7apj78ozKEPjDqoVlIsFLmIjJNKm6wpEI2iOBMhzT10wohmzDtSloGAZ2bNngZRNTYcNwt0ju3Y5vK19jIZJG7ssZiuL93kMTSmC5X3Acnq1lEM2lUQ2OYsTY2PI8BoOeOEXgVfLiPqtmmBqVGt4NrWG3932vCvlNY1GtyYzOYmpfR9pKsgWRa91ryBvXZ8pb1PFspo0YJpqxIlCCf6qiRx3eWwkidBkCj2JGfT3LsU+Gtp83sbyZcsRpTtDbhYtytWJUVfrkwqRbE0rJ4xilBIu0MtQO7fwzQ6XEldPfVQHa7vc1cZlurs26+9eOngIQ/MpeMmVeCiAXNWLXBkEVuDVwniqiH2Tafzz4Cj2T6QwkytifHYOyfQ8ZuYLeHN4FEUKxZWuY6v63k039NqDf/+bPK5TEiYdJOnunT16xLFu6TqKyVURTEvZwwlVBsaFUsqdAZlKBWYuj85QBJmq5A8mYpEw5uYraPUauHBZBxf18LuqChSlSgnnLO1AjnTxaA+huCl5BqUt63q0x6gq92lj+shhnEdaiCezND+QPHrUIbzgMZ3Q61ib7QQPdevwWh6DtPIygXpMD4p0Cx0RA+cnOlUaWShXkZsvYwkN7LLz+5AtVbF0SbcKzyGfhfTMNFYtaVXaMVzfRrCOlzE0TL0Z3owO7HEdw8UCuFfuMlOTNWnWrFWnhY5DdpnsXFfEYxjN5NSGKpw0ncsy8kVRplkcn06izQ+E6IujzQlcviqH9/49zIhmoY9AffQyYZ8fZsmjMghnaqNuIRLWbceQhculTMYFHK8Bzk1POzvUiY3zrVnLqZRJmI6UpfU3t+AfKt00tTHaODw2gQIHlctlTCaLGDqZwfzvX6Ira0IgEMTw1BRGR4awsiOOsBVg2uFXvK2vZzgobVN5oaqjYOXedOuthWZTATJr8V1RQyeCqMm1LvCepihDcRDJYlEBrkqgEP5yBQ8DhD8eRlu8CSuW96ClOYYSc2SDGjs6PonxZAqdTdRWuGlBpm+gIXuzDQfTwvSlIXBo92S7oExDewudLi7yxVEm5ndfcAF5yOSFq3jok6Ufm8sjze+C8WYsWXUuWnpXoBgM4/3jE9gzPO4EFY4zqqiF4gU+uOaLtZfQHsttIuEhuQl3dEB8sZs1aUY4FDCqTvJj63xN5wwtrCSaKc2xXAEpZmIrOoSfQILG1kOpfuXSS9Ddswz+YBA9zIGPkUIf7NuvpNfmDao5lJUYjo93c2xXy66bbersdPEOCWDJO+FjHpo1Jl1y1KkgXkIrwmiwP7Fjr6STlpcuK48CxTybztDQPEimUojxuv+99zB9bNihVjGNALUS9AfgJTWWB6M1Cdq60qsVBg0kWQxYkKiir43qVY5bAxLVeAxolaDm0G19dbO2CsdWCCBPQ5tIZZArVVQSP8nodGB4BIPDx5FlsLDI11lyt1wu4bJ4u/LpCpBZpwOABlpAGZ68be1b6QJOWpLRc1fJ2Ipz4nAduespFrkzxx8bdSMQAyMnyzpnzpdKBJpFdzSIJYkE+np70HtOL6KRIGZnZnF8cgpLQzG0+ILaMzR4h0XN1bNE1kRfn5KuVNSul/jzkssuX/9hLTXXEm2wW1tPXPOZXPBktqAqCFXq2I5WsswpjlWqSsm5cgXTLE5l+OiJWRW66d/wTr6E/oAP7bBrLs02Tln+qLW6LrpInnbLfy7gHd5weH3b6gswvf/jU+7VjXYizP0nTuCVw4MYnJsjjx2LrlYNRQ01iEAHZ1MYTqbhHRxVJdOKzg60NUUUzY4UWH14vehg4r+UX3QxexNe1845XAWyd1x4ESIdisNvNwLeLfw4785vxKc3PaIJUFUewlXcXKmM96nSd1h0jpKfZeYQMkqqZhnnkZhN0JJrlLgrcVs2k41YOICVXe0Is3SS9LNKflveELyMdCelCGDfT6Es529Ly0VE1by6Mudd//XXu3TYVgPMhyRV81Tr6gs2hds7kZUwDcegxjNZvM0INnBihiCrzBuY7DA5N0XkBGXy2SlHbFUuqQcxWOYYzQTbxoJTPLz4a8u0MG34lR8uku9hJvUVApT8Q3zJKLndzA2vLuYQ4PswtdJ/3doaHVx9u01OW5KX/vBexeNksYSXh4bxG6aRH88lafisJKhan1e6l1mZl++YC9CtSTBQZRQX9jMpipGf3bEQ2mlsQapdNpOn1McrTJhsllN8V2IlIqqrUAiSYko499LtZVjMvh+N4XgojC996y7BJW53y38BFinzIlLGSGe3A5RuyCYYARkMhuBjkJCTHK+EXk7u8zIXIPAycwKTwKFDu0+iGe+EGuliFWmTIdwMqdouwM3IKLGFErWTzeeoMQMZFqVObmyq0N659qvou/Y6gfZU49lEo4Shy+mB23+6EfGubiVBOQTxM2cQNYqqg4xuIuEgAYdo8WFGsRC7FQjBE4ygxKQmbfiQZSQrBOPwNLczKMUQZj0X4qYdz2io2k96kXm1SFlaLp9XjqEl0Yqbb7vN5e7mBRixqLknPwcPHIh/f/16ZHOyc+a8THIU6bmJEvnX6KttisuSKpjSKfG8QRLxMMF5+E42E6CGAtyccF/AWtz8PKNhS2sCkzRk0ZyYhJfjm1ta8Ojjj2FpT88pT37MxYD1gAfPPe88/GjjwwRoOZWAlPOUkgD1UbqKEuwRhvQwzx18lg9NLOETTHoSXDTKbC7EMCzGJxV2RdduUl3LfPIs3kjCdSaTJqU8yFPad939HQErQ799qvNiC6do4kJE0jevu3VTUyyOTQ9vRIVG4UpHpCxNXJiU8/KuSj6KNIsMvR66Lj8NVDyBAJPNCUjRiKWlLG7RrRWzrFyWdC/Fgw//GBddrE6mtnzaqbyB0zT3fHhsdBQP3XsfxkZGlBsSFSr1GI6f9pLT8l7O0WQTeXIxSm2UuMkcjSrRkqBXKCkteSW1FP/LoNPBpCZL6XposE8+ywNAZow42/PhBtBSpL7M3rv9+efx2+eeo0S99VTQcNSq/CoBi5pzLJcsbkKkn+W9ABa35UjYUvmBeIeeZT24+rpr8bWbbkIoHB6CQ4Pdp8PzmYA16F44R1nrJ5jT/m7rVvz19TecPJaqFsDlakXxWYCJNCt89mgDbWluVvx0D7mjTU248qqrsO7225BgksS2Q4NNfhaWzwW4AbicDTzB3jtJ4HsHBvDmzp0YPHQYhVKRbi6oKFIgOKGFBAhpQb4Pkt8r+s7B5VdcgWvWrhWJyk+SH2w2zuDPX2cEuAH4Gl42sK933w0ePowZhu9JHpWmyM8y3ZvwOMoz4r7+foLtc4cmNdAnjf/33+lOA14k7/4VdDkW/iV0Dk6RMARH9QOfR/Wf1v4D3Fe7Fu3OpbsAAAAASUVORK5CYII=",Nl=`@import"https://fonts.cdnfonts.com/css/tt-firs-neue-trl?styles=143111,143113,143105,143108,143110,143101,143099,143103,143097,143115";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:TT Firs Neue Trl,sans-serif;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
3
|
+
`;function vo({children:e,styles:t=[],...n}){return S.jsxs(P.C.div,{...n,children:[[Nl,...t].map((r,i)=>S.jsx("style",{type:"text/css",children:r},i)),e]})}const Il=`.avatar-dropdown-item{padding:.5rem;font-size:.875rem;line-height:1.25rem;cursor:pointer;border-radius:.25rem}.avartarDropdownMenu{background-color:#fff;padding:.5rem;width:13rem;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);position:absolute;left:-10rem;top:3.5rem}.avartarDropdownMenu ul{list-style:none;padding-inline-start:0;margin-block-end:0}.navbar{position:fixed;display:flex;z-index:30;background:black;top:0;width:100%;padding-left:2.5rem;height:64px}.navbar-container{display:flex;flex-direction:row;align-items:center;width:100%;justify-content:space-between}.logo-container{padding:16px 0;height:100%}.navbar-container img{height:100%}.right-side-container{display:flex;flex-direction:row;align-items:center;text-align:center;margin-right:2.5rem;gap:1rem}.userContainer{display:flex;align-items:center;gap:.5rem}.userFullName{color:#fff;font-weight:400;font-size:.875rem;line-height:1.25rem}.userAvatar{width:2.5rem;height:2.5rem;cursor:pointer;-o-object-fit:cover;object-fit:cover;border-radius:9999px}.relative{position:relative}.cursor-pointer{cursor:pointer}
|
|
4
|
+
`;function Dl({logo:e,user:t,baseUrl:n,style:r,classNames:i="",customColors:o}){const s=e||"/public/assets/icons/logo-header.png",a={...r,color:(o==null?void 0:o.color)||"black",backgroundColor:(o==null?void 0:o.bgColor)||"black"},[l,c]=A.useState(!1),d=()=>{window.location.href=`${n}/authentication/logout?callbackUrl=${window.location.href}`};return S.jsxs(vo,{styles:[Il],style:{zIndex:1202},children:[S.jsx("nav",{className:`navbar ${i}`,style:o?a:r,children:S.jsxs("div",{className:"navbar-container",children:[S.jsx("div",{className:"logo-container",children:S.jsx("img",{src:s,alt:"logo-header"})}),S.jsxs("div",{className:"right-side-container",children:[S.jsxs("div",{className:"userContainer",children:[S.jsx("p",{className:"userFullName",children:`${t==null?void 0:t.firstName} ${t==null?void 0:t.lastName}`}),S.jsx(Ll,{primaryColor:o==null?void 0:o.primaryColor,avatarUrl:t==null?void 0:t.avatarUrl,setShowConfirmModal:c})]}),S.jsx("span",{className:"cursor-pointer",children:S.jsx(Rl,{primaryColor:o==null?void 0:o.primaryColor})}),S.jsx("span",{className:"cursor-pointer",children:S.jsx(_l,{primaryColor:o==null?void 0:o.primaryColor})})]})]})}),S.jsx(yo,{isOpen:l,onClose:()=>c(!1),onConfirm:d})]})}function Ll({avatarUrl:e,setShowConfirmModal:t,primaryColor:n="#009d4f"}){const[r,i]=A.useState(!1),o=A.useRef(null),s=A.useRef(null),[a,l]=A.useState(!1),[c,d]=A.useState(!1),u={backgroundColor:a?n:"transparent"},h={backgroundColor:c?n:"transparent"};return A.useEffect(()=>{const p=g=>{o.current&&!o.current.contains(g.target)&&i(!1),s.current&&!s.current.contains(g.target)&&i(!1)};return document.addEventListener("click",p,!0),()=>{document.removeEventListener("click",p,!0)}},[o]),S.jsx(S.Fragment,{children:S.jsxs("div",{style:{position:"relative"},children:[S.jsx("img",{onClick:()=>i(!r),ref:o,alt:"user avatar",className:"userAvatar",src:e||Vl}),S.jsx("div",{style:{display:r?"block":"none"},className:"avartarDropdownMenu",ref:s,children:S.jsxs("ul",{children:[S.jsx("li",{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),style:h,className:"avatar-dropdown-item",children:"Profile"}),S.jsx("li",{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),style:u,onClick:()=>t(!0),className:"avatar-dropdown-item",children:"Logout"})]})})]})})}var jl=typeof global=="object"&&global&&global.Object===Object&&global;const zl=jl;var Bl=typeof self=="object"&&self&&self.Object===Object&&self,$l=zl||Bl||Function("return this")();const bo=$l;var Fl=bo.Symbol;const yn=Fl;var xo=Object.prototype,Wl=xo.hasOwnProperty,Ul=xo.toString,Et=yn?yn.toStringTag:void 0;function Hl(e){var t=Wl.call(e,Et),n=e[Et];try{e[Et]=void 0;var r=!0}catch{}var i=Ul.call(e);return r&&(t?e[Et]=n:delete e[Et]),i}var Gl=Object.prototype,ql=Gl.toString;function Yl(e){return ql.call(e)}var Kl="[object Null]",Xl="[object Undefined]",wi=yn?yn.toStringTag:void 0;function Ql(e){return e==null?e===void 0?Xl:Kl:wi&&wi in Object(e)?Hl(e):Yl(e)}function Zl(e){return e!=null&&typeof e=="object"}var Jl="[object Symbol]";function ec(e){return typeof e=="symbol"||Zl(e)&&Ql(e)==Jl}var tc=/\s/;function nc(e){for(var t=e.length;t--&&tc.test(e.charAt(t)););return t}var rc=/^\s+/;function ic(e){return e&&e.slice(0,nc(e)+1).replace(rc,"")}function vn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Si=0/0,sc=/^[-+]0x[0-9a-f]+$/i,oc=/^0b[01]+$/i,ac=/^0o[0-7]+$/i,lc=parseInt;function Ti(e){if(typeof e=="number")return e;if(ec(e))return Si;if(vn(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=vn(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ic(e);var n=oc.test(e);return n||ac.test(e)?lc(e.slice(2),n?2:8):sc.test(e)?Si:+e}var cc=function(){return bo.Date.now()};const er=cc;var uc="Expected a function",dc=Math.max,fc=Math.min;function on(e,t,n){var r,i,o,s,a,l,c=0,d=!1,u=!1,h=!0;if(typeof e!="function")throw new TypeError(uc);t=Ti(t)||0,vn(n)&&(d=!!n.leading,u="maxWait"in n,o=u?dc(Ti(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function p(T){var E=r,C=i;return r=i=void 0,c=T,s=e.apply(C,E),s}function g(T){return c=T,a=setTimeout(y,t),d?p(T):s}function f(T){var E=T-l,C=T-c,O=t-E;return u?fc(O,o-C):O}function m(T){var E=T-l,C=T-c;return l===void 0||E>=t||E<0||u&&C>=o}function y(){var T=er();if(m(T))return b(T);a=setTimeout(y,f(T))}function b(T){return a=void 0,h&&r?p(T):(r=i=void 0,s)}function v(){a!==void 0&&clearTimeout(a),c=0,r=l=i=a=void 0}function x(){return a===void 0?s:b(er())}function w(){var T=er(),E=m(T);if(r=arguments,i=this,l=T,E){if(a===void 0)return g(l);if(u)return clearTimeout(a),a=setTimeout(y,t),p(l)}return a===void 0&&(a=setTimeout(y,t)),s}return w.cancel=v,w.flush=x,w}var hc="Expected a function";function pc(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(hc);return vn(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),on(e,t,{leading:r,maxWait:t,trailing:i})}var mc=!!(typeof window<"u"&&window.document&&window.document.createElement),gc=mc;const wo=P.getDefaultExportFromCjs(gc);var ct=function(){return ct=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ct.apply(this,arguments)},lt=null,Ei=null;wo&&window.addEventListener("resize",function(){Ei!==window.devicePixelRatio&&(Ei=window.devicePixelRatio,lt=null)});function Pi(){if(lt===null){if(typeof document>"u")return lt=0,lt;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),lt=n}return lt}function So(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function To(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Eo=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var s=o[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=i.value}}return r},t);return n};function Po(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function Co(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function Ao(e){return".".concat(e.split(" ").join("."))}var yc=Object.freeze({__proto__:null,getElementWindow:So,getElementDocument:To,getOptions:Eo,addClasses:Po,removeClasses:Co,classNamesToQuery:Ao}),Ve=So,tr=To,vc=Eo,Ne=Po,Ie=Co,ie=Ao,Zt=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=Ve(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Ne(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ie(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Ne(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ie(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,s;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(s=r.isWithinBounds(r.axis.y.track.rect)),(o||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),s&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,s,a,l,c,d,u,h,p,g,f;if(!(!r.draggedAxis||!r.contentWrapperEl)){var m,y=r.axis[r.draggedAxis].track,b=(s=(o=y.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,v=r.axis[r.draggedAxis].scrollbar,x=(l=(a=r.contentWrapperEl)===null||a===void 0?void 0:a[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,w=parseInt((d=(c=r.elStyles)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?m=i.pageY:m=i.pageX;var T=m-((h=(u=y.rect)===null||u===void 0?void 0:u[r.axis[r.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-r.axis[r.draggedAxis].dragOffset;T=r.draggedAxis==="x"&&r.isRtl?((g=(p=y.rect)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&g!==void 0?g:0)-v.size-T:T;var E=T/(b-v.size),C=E*(x-w);r.draggedAxis==="x"&&r.isRtl&&(C=!((f=e.getRtlHelpers())===null||f===void 0)&&f.isScrollingToNegative?-C:C),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=C}},this.onEndDrag=function(i){var o=tr(r.el),s=Ve(r.el);i.preventDefault(),i.stopPropagation(),Ie(r.el,r.classNames.dragging),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=s.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=ct(ct({},e.defaultOptions),n),this.classNames=ct(ct({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=pc(this._onMouseMove,64),this.onWindowResize=on(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=on(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=on(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),o=e.getOffset(r);n.scrollLeft=-999;var s=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Pi()}catch{return Pi()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=tr(t),i=Ve(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){wo&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(ie(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ie(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ie(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ie(this.classNames.offset)),this.maskEl=this.el.querySelector(ie(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ie(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ie(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ie(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ie(this.classNames.track)).concat(ie(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ie(this.classNames.track)).concat(ie(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(ie(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(ie(this.classNames.scrollbar)))||null,this.options.autoHide||(Ne(this.axis.x.scrollbar.el,this.classNames.visible),Ne(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=Ve(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=Ve(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&c>n,this.axis.y.isOverflowing=l>d,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var u=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>o-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>d-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],o=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,s=o/i,a;return a=Math.max(~~(s*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var o=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[t].scrollSizeAttr],a=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[t].sizeAttr],10),c=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];c=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-c:c,t==="x"&&this.isRtl&&(c=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?c:-c);var d=c/(s-l),u=~~((a-o.size)*d);u=t==="x"&&this.isRtl?-u+(a-o.size):u,o.el.style.transform=t==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(Ne(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(Ie(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),Ne(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Ne(n.scrollbar.el,this.classNames.hover):Ie(n.scrollbar.el,this.classNames.hover)):(Ie(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Ie(this.axis[t].track.el,this.classNames.hover),Ie(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=tr(this.el),o=Ve(this.el),s=this.axis[n].scrollbar,a=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=a-(((r=s.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Ne(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,o,s,a;n===void 0&&(n="y");var l=this.axis[n];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var c=Ve(this.el);this.axis[n].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var d=this.axis[n].scrollbar,u=(o=(i=d.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,h=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[n].sizeAttr])!==null&&a!==void 0?a:"0px",10),p=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],g=n==="y"?this.mouseY-u:this.mouseX-u,f=g<0?-1:1,m=f===-1?p-h:p+h,y=40,b=function(){r.contentWrapperEl&&(f===-1?p>m&&(p-=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=p,c.requestAnimationFrame(b)):p<m&&(p+=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=p,c.requestAnimationFrame(b)))};b()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Ve(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=vc,e.helpers=yc,e}(),le=function(){return le=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},le.apply(this,arguments)};function bc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var ko=R.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,o=bc(e,["children","scrollableNodeProps"]),s=R.useRef(),a=R.useRef(),l=R.useRef(),c={},d={};Object.keys(o).forEach(function(p){Object.prototype.hasOwnProperty.call(Zt.defaultOptions,p)?c[p]=o[p]:d[p]=o[p]});var u=le(le({},Zt.defaultOptions.classNames),c.classNames),h=le(le({},i),{className:"".concat(u.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":c.ariaLabel||Zt.defaultOptions.ariaLabel});return R.useEffect(function(){var p;return a.current=h.ref?h.ref.current:a.current,s.current&&(p=new Zt(s.current,le(le(le({},c),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof t=="function"?t(p):t&&(t.current=p)),function(){p==null||p.unMount(),p=null,typeof t=="function"&&t(null)}},[]),R.createElement("div",le({"data-simplebar":"init",ref:s},d),R.createElement("div",{className:u.wrapper},R.createElement("div",{className:u.heightAutoObserverWrapperEl},R.createElement("div",{className:u.heightAutoObserverEl})),R.createElement("div",{className:u.mask},R.createElement("div",{className:u.offset},typeof n=="function"?n({scrollableNodeRef:a,scrollableNodeProps:le(le({},h),{ref:a}),contentNodeRef:l,contentNodeProps:{className:u.contentEl,ref:l}}):R.createElement("div",le({},h),R.createElement("div",{className:u.contentEl},n)))),R.createElement("div",{className:u.placeholder})),R.createElement("div",{className:"".concat(u.track," simplebar-horizontal")},R.createElement("div",{className:u.scrollbar})),R.createElement("div",{className:"".concat(u.track," simplebar-vertical")},R.createElement("div",{className:u.scrollbar})))});ko.displayName="SimpleBar";const xc=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
5
|
+
`,wc=e=>S.jsx(P.Q,{autoClose:3e3,hideProgressBar:!0,closeButton:!1,position:"bottom-left",newestOnTop:!0,pauseOnFocusLoss:!1,style:{fontFamily:"inherit"},...e}),Oo=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Vn=A.createContext({}),Lr=A.createContext(null),Nn=typeof document<"u",Sc=Nn?A.useLayoutEffect:A.useEffect,Mo=A.createContext({strict:!1}),jr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Tc="framerAppearId",_o="data-"+jr(Tc);function Ec(e,t,n,r){const{visualElement:i}=A.useContext(Vn),o=A.useContext(Mo),s=A.useContext(Lr),a=A.useContext(Oo).reducedMotion,l=A.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;A.useInsertionEffect(()=>{c&&c.update(n,s)});const d=A.useRef(!!(n[_o]&&!window.HandoffComplete));return Sc(()=>{c&&(c.render(),d.current&&c.animationState&&c.animationState.animateChanges())}),A.useEffect(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}function ut(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Pc(e,t,n){return A.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ut(n)&&(n.current=r))},[t])}function It(e){return typeof e=="string"||Array.isArray(e)}function In(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const zr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Br=["initial",...zr];function Dn(e){return In(e.animate)||Br.some(t=>It(e[t]))}function Ro(e){return!!(Dn(e)||e.variants)}function Cc(e,t){if(Dn(e)){const{initial:n,animate:r}=e;return{initial:n===!1||It(n)?n:void 0,animate:It(r)?r:void 0}}return e.inherit!==!1?t:{}}function Ac(e){const{initial:t,animate:n}=Cc(e,A.useContext(Vn));return A.useMemo(()=>({initial:t,animate:n}),[Ci(t),Ci(n)])}function Ci(e){return Array.isArray(e)?e.join(" "):e}const Ai={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"]},Dt={};for(const e in Ai)Dt[e]={isEnabled:t=>Ai[e].some(n=>!!t[n])};function kc(e){for(const t in e)Dt[t]={...Dt[t],...e[t]}}const Vo=A.createContext({}),No=A.createContext({}),Oc=Symbol.for("motionComponentSymbol");function Mc({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&kc(e);function o(a,l){let c;const d={...A.useContext(Oo),...a,layoutId:_c(a)},{isStatic:u}=d,h=Ac(a),p=r(a,u);if(!u&&Nn){h.visualElement=Ec(i,p,d,t);const g=A.useContext(No),f=A.useContext(Mo).strict;h.visualElement&&(c=h.visualElement.loadFeatures(d,f,e,g))}return R.createElement(Vn.Provider,{value:h},c&&h.visualElement?R.createElement(c,{visualElement:h.visualElement,...d}):null,n(i,a,Pc(p,h.visualElement,l),p,u,h.visualElement))}const s=A.forwardRef(o);return s[Oc]=i,s}function _c({layoutId:e}){const t=A.useContext(Vo).id;return t&&e!==void 0?t+"-"+e:e}function Rc(e){function t(r,i={}){return Mc(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Vc=["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 $r(e){return typeof e!="string"||e.includes("-")?!1:!!(Vc.indexOf(e)>-1||/[A-Z]/.test(e))}const bn={};function Nc(e){Object.assign(bn,e)}const Ft=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Je=new Set(Ft);function Io(e,{layout:t,layoutId:n}){return Je.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bn[e]||e==="opacity")}const se=e=>!!(e&&e.getVelocity),Ic={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dc=Ft.length;function Lc(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;s<Dc;s++){const a=Ft[s];if(e[a]!==void 0){const l=Ic[a]||a;o+=`${l}(${e[a]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,r?"":o):n&&r&&(o="none"),o}const Do=e=>t=>typeof t=="string"&&t.startsWith(e),Lo=Do("--"),vr=Do("var(--"),jc=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,zc=(e,t)=>t&&typeof e=="number"?t.transform(e):e,$e=(e,t,n)=>Math.min(Math.max(n,e),t),et={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Mt={...et,transform:e=>$e(0,1,e)},Jt={...et,default:1},_t=e=>Math.round(e*1e5)/1e5,Ln=/(-)?([\d]*\.?[\d])+/g,jo=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Bc=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Wt(e){return typeof e=="string"}const Ut=e=>({test:t=>Wt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),De=Ut("deg"),Te=Ut("%"),_=Ut("px"),$c=Ut("vh"),Fc=Ut("vw"),ki={...Te,parse:e=>Te.parse(e)/100,transform:e=>Te.transform(e*100)},Oi={...et,transform:Math.round},zo={borderWidth:_,borderTopWidth:_,borderRightWidth:_,borderBottomWidth:_,borderLeftWidth:_,borderRadius:_,radius:_,borderTopLeftRadius:_,borderTopRightRadius:_,borderBottomRightRadius:_,borderBottomLeftRadius:_,width:_,maxWidth:_,height:_,maxHeight:_,size:_,top:_,right:_,bottom:_,left:_,padding:_,paddingTop:_,paddingRight:_,paddingBottom:_,paddingLeft:_,margin:_,marginTop:_,marginRight:_,marginBottom:_,marginLeft:_,rotate:De,rotateX:De,rotateY:De,rotateZ:De,scale:Jt,scaleX:Jt,scaleY:Jt,scaleZ:Jt,skew:De,skewX:De,skewY:De,distance:_,translateX:_,translateY:_,translateZ:_,x:_,y:_,z:_,perspective:_,transformPerspective:_,opacity:Mt,originX:ki,originY:ki,originZ:_,zIndex:Oi,fillOpacity:Mt,strokeOpacity:Mt,numOctaves:Oi};function Fr(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,c=!1,d=!0;for(const u in t){const h=t[u];if(Lo(u)){o[u]=h;continue}const p=zo[u],g=zc(h,p);if(Je.has(u)){if(l=!0,s[u]=g,!d)continue;h!==(p.default||0)&&(d=!1)}else u.startsWith("origin")?(c=!0,a[u]=g):i[u]=g}if(t.transform||(l||r?i.transform=Lc(e.transform,n,d,r):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:h="50%",originZ:p=0}=a;i.transformOrigin=`${u} ${h} ${p}`}}const Wr=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Bo(e,t,n){for(const r in t)!se(t[r])&&!Io(r,n)&&(e[r]=t[r])}function Wc({transformTemplate:e},t,n){return A.useMemo(()=>{const r=Wr();return Fr(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Uc(e,t,n){const r=e.style||{},i={};return Bo(i,r,e),Object.assign(i,Wc(e,t,n)),e.transformValues?e.transformValues(i):i}function Hc(e,t,n){const r={},i=Uc(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Gc=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function xn(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Gc.has(e)}let $o=e=>!xn(e);function qc(e){e&&($o=t=>t.startsWith("on")?!xn(t):e(t))}try{qc(require("@emotion/is-prop-valid").default)}catch{}function Yc(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||($o(i)||n===!0&&xn(i)||!t&&!xn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Mi(e,t,n){return typeof e=="string"?e:_.transform(t+n*e)}function Kc(e,t,n){const r=Mi(t,e.x,e.width),i=Mi(n,e.y,e.height);return`${r} ${i}`}const Xc={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qc={offset:"strokeDashoffset",array:"strokeDasharray"};function Zc(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Xc:Qc;e[o.offset]=_.transform(-r);const s=_.transform(t),a=_.transform(n);e[o.array]=`${s} ${a}`}function Ur(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},d,u,h){if(Fr(e,c,d,h),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:f}=e;p.transform&&(f&&(g.transform=p.transform),delete p.transform),f&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Kc(f,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),s!==void 0&&Zc(p,s,a,l,!1)}const Fo=()=>({...Wr(),attrs:{}}),Hr=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Jc(e,t,n,r){const i=A.useMemo(()=>{const o=Fo();return Ur(o,t,{enableHardwareAcceleration:!1},Hr(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};Bo(o,e.style,e),i.style={...o,...i.style}}return i}function eu(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=($r(n)?Jc:Hc)(r,o,s,n),d={...Yc(r,typeof n=="string",e),...l,ref:i},{children:u}=r,h=A.useMemo(()=>se(u)?u.get():u,[u]);return A.createElement(n,{...d,children:h})}}function Wo(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Uo=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 Ho(e,t,n,r){Wo(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Uo.has(i)?i:jr(i),t.attrs[i])}function Gr(e,t){const{style:n}=e,r={};for(const i in n)(se(n[i])||t.style&&se(t.style[i])||Io(i,e))&&(r[i]=n[i]);return r}function Go(e,t){const n=Gr(e,t);for(const r in e)if(se(e[r])||se(t[r])){const i=Ft.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function qr(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function tu(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const wn=e=>Array.isArray(e),nu=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),ru=e=>wn(e)?e[e.length-1]||0:e;function an(e){const t=se(e)?e.get():e;return nu(t)?t.toValue():t}function iu({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:su(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const qo=e=>(t,n)=>{const r=A.useContext(Vn),i=A.useContext(Lr),o=()=>iu(e,t,r,i);return n?o():tu(o)};function su(e,t,n,r){const i={},o=r(e,{});for(const h in o)i[h]=an(o[h]);let{initial:s,animate:a}=e;const l=Dn(e),c=Ro(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const u=d?a:s;return u&&typeof u!="boolean"&&!In(u)&&(Array.isArray(u)?u:[u]).forEach(p=>{const g=qr(e,p);if(!g)return;const{transitionEnd:f,transition:m,...y}=g;for(const b in y){let v=y[b];if(Array.isArray(v)){const x=d?v.length-1:0;v=v[x]}v!==null&&(i[b]=v)}for(const b in f)i[b]=f[b]}),i}const Y=e=>e;class _i{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function ou(e){let t=new _i,n=new _i,r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,d=!1)=>{const u=d&&i,h=u?t:n;return c&&s.add(l),h.add(l)&&u&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c<r;c++){const d=t.order[c];d(l),s.has(d)&&(a.schedule(d),e())}i=!1,o&&(o=!1,a.process(l))}};return a}const en=["prepare","read","update","preRender","render","postRender"],au=40;function lu(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=en.reduce((u,h)=>(u[h]=ou(()=>n=!0),u),{}),s=u=>o[u].process(i),a=()=>{const u=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(u-i.timestamp,au),1),i.timestamp=u,i.isProcessing=!0,en.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:en.reduce((u,h)=>{const p=o[h];return u[h]=(g,f=!1,m=!1)=>(n||l(),p.schedule(g,f,m)),u},{}),cancel:u=>en.forEach(h=>o[h].cancel(u)),state:i,steps:o}}const{schedule:$,cancel:_e,state:te,steps:nr}=lu(typeof requestAnimationFrame<"u"?requestAnimationFrame:Y,!0),cu={useVisualState:qo({scrapeMotionValuesFromProps:Go,createRenderState:Fo,onMount:(e,t,{renderState:n,latestValues:r})=>{$.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),$.render(()=>{Ur(n,r,{enableHardwareAcceleration:!1},Hr(t.tagName),e.transformTemplate),Ho(t,n)})}})},uu={useVisualState:qo({scrapeMotionValuesFromProps:Gr,createRenderState:Wr})};function du(e,{forwardMotionProps:t=!1},n,r){return{...$r(e)?cu:uu,preloadedFeatures:n,useRender:eu(t),createVisualElement:r,Component:e}}function ke(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Yo=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function jn(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const fu=e=>t=>Yo(t)&&e(t,jn(t));function Oe(e,t,n,r){return ke(e,t,fu(n),r)}const hu=(e,t)=>n=>t(e(n)),ze=(...e)=>e.reduce(hu);function Ko(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Ri=Ko("dragHorizontal"),Vi=Ko("dragVertical");function Xo(e){let t=!1;if(e==="y")t=Vi();else if(e==="x")t=Ri();else{const n=Ri(),r=Vi();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Qo(){const e=Xo(!0);return e?(e(),!1):!0}class We{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Ni(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.pointerType==="touch"||Qo())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&$.update(()=>a[r](o,s))};return Oe(e.current,n,i,{passive:!e.getProps()[r]})}class pu extends We{mount(){this.unmount=ze(Ni(this.node,!0),Ni(this.node,!1))}unmount(){}}class mu extends We{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=ze(ke(this.node.current,"focus",()=>this.onFocus()),ke(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Zo=(e,t)=>t?e===t?!0:Zo(e,t.parentElement):!1;function rr(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,jn(n))}class gu extends We{constructor(){super(...arguments),this.removeStartListeners=Y,this.removeEndListeners=Y,this.removeAccessibleListeners=Y,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Oe(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:d,globalTapTarget:u}=this.node.getProps();$.update(()=>{!u&&!Zo(this.node.current,a.target)?d&&d(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Oe(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ze(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||rr("up",(l,c)=>{const{onTap:d}=this.node.getProps();d&&$.update(()=>d(l,c))})};this.removeEndListeners(),this.removeEndListeners=ke(this.node.current,"keyup",s),rr("down",(a,l)=>{this.startPress(a,l)})},n=ke(this.node.current,"keydown",t),r=()=>{this.isPressing&&rr("cancel",(o,s)=>this.cancelPress(o,s))},i=ke(this.node.current,"blur",r);this.removeAccessibleListeners=ze(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&$.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Qo()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&$.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Oe(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=ke(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ze(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const br=new WeakMap,ir=new WeakMap,yu=e=>{const t=br.get(e.target);t&&t(e)},vu=e=>{e.forEach(yu)};function bu({root:e,...t}){const n=e||document;ir.has(n)||ir.set(n,{});const r=ir.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(vu,{root:e,...t})),r[i]}function xu(e,t,n){const r=bu(t);return br.set(e,n),r.observe(e),()=>{br.delete(e),r.unobserve(e)}}const wu={some:0,all:1};class Su extends We{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:wu[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:u}=this.node.getProps(),h=c?d:u;h&&h(l)};return xu(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Tu(t,n))&&this.startObserver()}unmount(){}}function Tu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Eu={inView:{Feature:Su},tap:{Feature:gu},focus:{Feature:mu},hover:{Feature:pu}};function Jo(e,t){if(!Array.isArray(t))return!1;const 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 Pu(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function Cu(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function zn(e,t,n){const r=e.getProps();return qr(r,t,n!==void 0?n:r.custom,Pu(e),Cu(e))}let Ht=Y,xe=Y;process.env.NODE_ENV!=="production"&&(Ht=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},xe=(e,t)=>{if(!e)throw new Error(t)});const Be=e=>e*1e3,Me=e=>e/1e3,Au={current:!1},ea=e=>Array.isArray(e)&&typeof e[0]=="number";function ta(e){return!!(!e||typeof e=="string"&&na[e]||ea(e)||Array.isArray(e)&&e.every(ta))}const Ot=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,na={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ot([0,.65,.55,1]),circOut:Ot([.55,0,1,.45]),backIn:Ot([.31,.01,.66,-.59]),backOut:Ot([.33,1.53,.69,.99])};function ra(e){if(e)return ea(e)?Ot(e):Array.isArray(e)?e.map(ra):na[e]}function ku(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=ra(a);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Ou(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const ia=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Mu=1e-7,_u=12;function Ru(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=ia(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>Mu&&++a<_u);return s}function Gt(e,t,n,r){if(e===t&&n===r)return Y;const i=o=>Ru(o,0,1,e,n);return o=>o===0||o===1?o:ia(i(o),t,r)}const Vu=Gt(.42,0,1,1),Nu=Gt(0,0,.58,1),sa=Gt(.42,0,.58,1),Iu=e=>Array.isArray(e)&&typeof e[0]!="number",oa=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,aa=e=>t=>1-e(1-t),Yr=e=>1-Math.sin(Math.acos(e)),la=aa(Yr),Du=oa(Yr),ca=Gt(.33,1.53,.69,.99),Kr=aa(ca),Lu=oa(Kr),ju=e=>(e*=2)<1?.5*Kr(e):.5*(2-Math.pow(2,-10*(e-1))),Ii={linear:Y,easeIn:Vu,easeInOut:sa,easeOut:Nu,circIn:Yr,circInOut:Du,circOut:la,backIn:Kr,backInOut:Lu,backOut:ca,anticipate:ju},Di=e=>{if(Array.isArray(e)){xe(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Gt(t,n,r,i)}else if(typeof e=="string")return xe(Ii[e]!==void 0,`Invalid easing type '${e}'`),Ii[e];return e},Xr=(e,t)=>n=>!!(Wt(n)&&Bc.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ua=(e,t,n)=>r=>{if(!Wt(r))return r;const[i,o,s,a]=r.match(Ln);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},zu=e=>$e(0,255,e),sr={...et,transform:e=>Math.round(zu(e))},Ze={test:Xr("rgb","red"),parse:ua("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+sr.transform(e)+", "+sr.transform(t)+", "+sr.transform(n)+", "+_t(Mt.transform(r))+")"};function Bu(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}}const xr={test:Xr("#"),parse:Bu,transform:Ze.transform},dt={test:Xr("hsl","hue"),parse:ua("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Te.transform(_t(t))+", "+Te.transform(_t(n))+", "+_t(Mt.transform(r))+")"},re={test:e=>Ze.test(e)||xr.test(e)||dt.test(e),parse:e=>Ze.test(e)?Ze.parse(e):dt.test(e)?dt.parse(e):xr.parse(e),transform:e=>Wt(e)?e:e.hasOwnProperty("red")?Ze.transform(e):dt.transform(e)},U=(e,t,n)=>-n*e+n*t+e;function or(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function $u({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=or(l,a,e+1/3),o=or(l,a,e),s=or(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const ar=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Fu=[xr,Ze,dt],Wu=e=>Fu.find(t=>t.test(e));function Li(e){const t=Wu(e);xe(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===dt&&(n=$u(n)),n}const da=(e,t)=>{const n=Li(e),r=Li(t),i={...n};return o=>(i.red=ar(n.red,r.red,o),i.green=ar(n.green,r.green,o),i.blue=ar(n.blue,r.blue,o),i.alpha=U(n.alpha,r.alpha,o),Ze.transform(i))};function Uu(e){var t,n;return isNaN(e)&&Wt(e)&&(((t=e.match(Ln))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(jo))===null||n===void 0?void 0:n.length)||0)>0}const fa={regex:jc,countKey:"Vars",token:"${v}",parse:Y},ha={regex:jo,countKey:"Colors",token:"${c}",parse:re.parse},pa={regex:Ln,countKey:"Numbers",token:"${n}",parse:et.parse};function lr(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Sn(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&lr(n,fa),lr(n,ha),lr(n,pa),n}function ma(e){return Sn(e).values}function ga(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Sn(e),o=t.length;return s=>{let a=i;for(let l=0;l<o;l++)l<r?a=a.replace(fa.token,s[l]):l<r+n?a=a.replace(ha.token,re.transform(s[l])):a=a.replace(pa.token,_t(s[l]));return a}}const Hu=e=>typeof e=="number"?0:e;function Gu(e){const t=ma(e);return ga(e)(t.map(Hu))}const Fe={test:Uu,parse:ma,createTransformer:ga,getAnimatableNone:Gu},ya=(e,t)=>n=>`${n>0?t:e}`;function va(e,t){return typeof e=="number"?n=>U(e,t,n):re.test(e)?da(e,t):e.startsWith("var(")?ya(e,t):xa(e,t)}const ba=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>va(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},qu=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=va(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},xa=(e,t)=>{const n=Fe.createTransformer(t),r=Sn(e),i=Sn(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ze(ba(r.values,i.values),n):(Ht(!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.`),ya(e,t))},Lt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ji=(e,t)=>n=>U(e,t,n);function Yu(e){return typeof e=="number"?ji:typeof e=="string"?re.test(e)?da:xa:Array.isArray(e)?ba:typeof e=="object"?qu:ji}function Ku(e,t,n){const r=[],i=n||Yu(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Y:t;a=ze(l,a)}r.push(a)}return r}function wa(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(xe(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Ku(t,r,i),a=s.length,l=c=>{let d=0;if(a>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const u=Lt(e[d],e[d+1],c);return s[d](u)};return n?c=>l($e(e[0],e[o-1],c)):l}function Xu(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Lt(0,t,r);e.push(U(n,1,i))}}function Qu(e){const t=[0];return Xu(t,e.length-1),t}function Zu(e,t){return e.map(n=>n*t)}function Ju(e,t){return e.map(()=>t||sa).splice(0,e.length-1)}function Tn({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Iu(r)?r.map(Di):Di(r),o={done:!1,value:t[0]},s=Zu(n&&n.length===t.length?n:Qu(t),e),a=wa(s,t,{ease:Array.isArray(i)?i:Ju(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function Sa(e,t){return t?e*(1e3/t):0}const ed=5;function Ta(e,t,n){const r=Math.max(t-ed,0);return Sa(n-e(r),t-r)}const cr=.001,td=.01,zi=10,nd=.05,rd=1;function id({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Ht(e<=Be(zi),"Spring duration must be 10 seconds or less");let s=1-t;s=$e(nd,rd,s),e=$e(td,zi,Me(e)),s<1?(i=c=>{const d=c*s,u=d*e,h=d-n,p=wr(c,s),g=Math.exp(-u);return cr-h/p*g},o=c=>{const u=c*s*e,h=u*n+n,p=Math.pow(s,2)*Math.pow(c,2)*e,g=Math.exp(-u),f=wr(Math.pow(c,2),s);return(-i(c)+cr>0?-1:1)*((h-p)*g)/f}):(i=c=>{const d=Math.exp(-c*e),u=(c-n)*e+1;return-cr+d*u},o=c=>{const d=Math.exp(-c*e),u=(n-c)*(e*e);return d*u});const a=5/e,l=od(i,o,a);if(e=Be(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const sd=12;function od(e,t,n){let r=n;for(let i=1;i<sd;i++)r=r-e(r)/t(r);return r}function wr(e,t){return e*Math.sqrt(1-t*t)}const ad=["duration","bounce"],ld=["stiffness","damping","mass"];function Bi(e,t){return t.some(n=>e[n]!==void 0)}function cd(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Bi(e,ld)&&Bi(e,ad)){const n=id(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Ea({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:d,velocity:u,isResolvedFromDuration:h}=cd({...r,velocity:-Me(r.velocity||0)}),p=u||0,g=l/(2*Math.sqrt(a*c)),f=o-i,m=Me(Math.sqrt(a/c)),y=Math.abs(f)<5;n||(n=y?.01:2),t||(t=y?.005:.5);let b;if(g<1){const v=wr(m,g);b=x=>{const w=Math.exp(-g*m*x);return o-w*((p+g*m*f)/v*Math.sin(v*x)+f*Math.cos(v*x))}}else if(g===1)b=v=>o-Math.exp(-m*v)*(f+(p+m*f)*v);else{const v=m*Math.sqrt(g*g-1);b=x=>{const w=Math.exp(-g*m*x),T=Math.min(v*x,300);return o-w*((p+g*m*f)*Math.sinh(T)+v*f*Math.cosh(T))/v}}return{calculatedDuration:h&&d||null,next:v=>{const x=b(v);if(h)s.done=v>=d;else{let w=p;v!==0&&(g<1?w=Ta(b,v,x):w=0);const T=Math.abs(w)<=n,E=Math.abs(o-x)<=t;s.done=T&&E}return s.value=s.done?o:x,s}}}function $i({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:d}){const u=e[0],h={done:!1,value:u},p=C=>a!==void 0&&C<a||l!==void 0&&C>l,g=C=>a===void 0?l:l===void 0||Math.abs(a-C)<Math.abs(l-C)?a:l;let f=n*t;const m=u+f,y=s===void 0?m:s(m);y!==m&&(f=y-u);const b=C=>-f*Math.exp(-C/r),v=C=>y+b(C),x=C=>{const O=b(C),k=v(C);h.done=Math.abs(O)<=c,h.value=h.done?y:k};let w,T;const E=C=>{p(h.value)&&(w=C,T=Ea({keyframes:[h.value,g(h.value)],velocity:Ta(v,C,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:d}))};return E(0),{calculatedDuration:null,next:C=>{let O=!1;return!T&&w===void 0&&(O=!0,x(C),E(C)),w!==void 0&&C>w?T.next(C-w):(!O&&x(C),h)}}}const ud=e=>{const t=({timestamp:n})=>e(n);return{start:()=>$.update(t,!0),stop:()=>_e(t),now:()=>te.isProcessing?te.timestamp:performance.now()}},Fi=2e4;function Wi(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Fi;)t+=n,r=e.next(t);return t>=Fi?1/0:t}const dd={decay:$i,inertia:$i,tween:Tn,keyframes:Tn,spring:Ea};function En({autoplay:e=!0,delay:t=0,driver:n=ud,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:u,...h}){let p=1,g=!1,f,m;const y=()=>{m=new Promise(B=>{f=B})};y();let b;const v=dd[i]||Tn;let x;v!==Tn&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&xe(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),x=wa([0,100],r,{clamp:!1}),r=[0,100]);const w=v({...h,keyframes:r});let T;a==="mirror"&&(T=v({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let E="idle",C=null,O=null,k=null;w.calculatedDuration===null&&o&&(w.calculatedDuration=Wi(w));const{calculatedDuration:V}=w;let j=1/0,H=1/0;V!==null&&(j=V+s,H=j*(o+1)-s);let z=0;const ne=B=>{if(O===null)return;p>0&&(O=Math.min(O,B)),p<0&&(O=Math.min(B-H/p,O)),C!==null?z=C:z=Math.round(B-O)*p;const Ce=z-t*(p>=0?1:-1),Ge=p>=0?Ce<0:Ce>H;z=Math.max(Ce,0),E==="finished"&&C===null&&(z=H);let we=z,qe=w;if(o){const Tt=Math.min(z,H)/j;let tt=Math.floor(Tt),Ae=Tt%1;!Ae&&Tt>=1&&(Ae=1),Ae===1&&tt--,tt=Math.min(tt,o+1),!!(tt%2)&&(a==="reverse"?(Ae=1-Ae,s&&(Ae-=s/j)):a==="mirror"&&(qe=T)),we=$e(0,1,Ae)*j}const Ye=Ge?{done:!1,value:r[0]}:qe.next(we);x&&(Ye.value=x(Ye.value));let{done:Xt}=Ye;!Ge&&V!==null&&(Xt=p>=0?z>=H:z<=0);const Zn=C===null&&(E==="finished"||E==="running"&&Xt);return u&&u(Ye.value),Zn&&fe(),Ye},W=()=>{b&&b.stop(),b=void 0},ae=()=>{E="idle",W(),f(),y(),O=k=null},fe=()=>{E="finished",d&&d(),W(),f()},ye=()=>{if(g)return;b||(b=n(ne));const B=b.now();l&&l(),C!==null?O=B-C:(!O||E==="finished")&&(O=B),E==="finished"&&y(),k=O,C=null,E="running",b.start()};e&&ye();const He={then(B,Ce){return m.then(B,Ce)},get time(){return Me(z)},set time(B){B=Be(B),z=B,C!==null||!b||p===0?C=B:O=b.now()-B/p},get duration(){const B=w.calculatedDuration===null?Wi(w):w.calculatedDuration;return Me(B)},get speed(){return p},set speed(B){B===p||!b||(p=B,He.time=Me(z))},get state(){return E},play:ye,pause:()=>{E="paused",C=z},stop:()=>{g=!0,E!=="idle"&&(E="idle",c&&c(),ae())},cancel:()=>{k!==null&&ne(k),ae()},complete:()=>{E="finished"},sample:B=>(O=0,ne(B))};return He}function fd(e){let t;return()=>(t===void 0&&(t=e()),t)}const hd=fd(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),pd=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),tn=10,md=2e4,gd=(e,t)=>t.type==="spring"||e==="backgroundColor"||!ta(t.ease);function yd(e,t,{onUpdate:n,onComplete:r,...i}){if(!(hd()&&pd.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l,c=!1;const d=()=>{l=new Promise(v=>{a=v})};d();let{keyframes:u,duration:h=300,ease:p,times:g}=i;if(gd(t,i)){const v=En({...i,repeat:0,delay:0});let x={done:!1,value:u[0]};const w=[];let T=0;for(;!x.done&&T<md;)x=v.sample(T),w.push(x.value),T+=tn;g=void 0,u=w,h=T-tn,p="linear"}const f=ku(e.owner.current,t,u,{...i,duration:h,ease:p,times:g}),m=()=>{c=!1,f.cancel()},y=()=>{c=!0,$.update(m),a(),d()};return f.onfinish=()=>{c||(e.set(Ou(u,i)),r&&r(),y())},{then(v,x){return l.then(v,x)},attachTimeline(v){return f.timeline=v,f.onfinish=null,Y},get time(){return Me(f.currentTime||0)},set time(v){f.currentTime=Be(v)},get speed(){return f.playbackRate},set speed(v){f.playbackRate=v},get duration(){return Me(h)},play:()=>{s||(f.play(),_e(m))},pause:()=>f.pause(),stop:()=>{if(s=!0,f.playState==="idle")return;const{currentTime:v}=f;if(v){const x=En({...i,autoplay:!1});e.setWithVelocity(x.sample(v-tn).value,x.sample(v).value,tn)}y()},complete:()=>{c||f.finish()},cancel:y}}function vd({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:Y,pause:Y,stop:Y,then:o=>(o(),Promise.resolve()),cancel:Y,complete:Y});return t?En({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const bd={type:"spring",stiffness:500,damping:25,restSpeed:10},xd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),wd={type:"keyframes",duration:.8},Sd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Td=(e,{keyframes:t})=>t.length>2?wd:Je.has(e)?e.startsWith("scale")?xd(t[1]):bd:Sd,Sr=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Fe.test(t)||t==="0")&&!t.startsWith("url(")),Ed=new Set(["brightness","contrast","saturate","opacity"]);function Pd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ln)||[];if(!r)return e;const i=n.replace(r,"");let o=Ed.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Cd=/([a-z-]*)\(.*?\)/g,Tr={...Fe,getAnimatableNone:e=>{const t=e.match(Cd);return t?t.map(Pd).join(" "):e}},Ad={...zo,color:re,backgroundColor:re,outlineColor:re,fill:re,stroke:re,borderColor:re,borderTopColor:re,borderRightColor:re,borderBottomColor:re,borderLeftColor:re,filter:Tr,WebkitFilter:Tr},Qr=e=>Ad[e];function Pa(e,t){let n=Qr(e);return n!==Tr&&(n=Fe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ca=e=>/^0[^.\s]+$/.test(e);function kd(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Ca(e)}function Od(e,t,n,r){const i=Sr(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let c=0;c<o.length;c++)o[c]===null&&(o[c]=c===0?s:o[c-1]),kd(o[c])&&l.push(c),typeof o[c]=="string"&&o[c]!=="none"&&o[c]!=="0"&&(a=o[c]);if(i&&l.length&&a)for(let c=0;c<l.length;c++){const d=l[c];o[d]=Pa(t,a)}return o}function Md({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}function Zr(e,t){return e[t]||e.default||e}const _d={skipAnimations:!1},Jr=(e,t,n,r={})=>i=>{const o=Zr(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Be(s);const l=Od(t,e,n,o),c=l[0],d=l[l.length-1],u=Sr(e,c),h=Sr(e,d);Ht(u===h,`You are trying to animate ${e} from "${c}" to "${d}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${d} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:g=>{t.set(g),o.onUpdate&&o.onUpdate(g)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Md(o)||(p={...p,...Td(e,p)}),p.duration&&(p.duration=Be(p.duration)),p.repeatDelay&&(p.repeatDelay=Be(p.repeatDelay)),!u||!h||Au.current||o.type===!1||_d.skipAnimations)return vd(p);if(!r.isHandoff&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const g=yd(t,e,p);if(g)return g}return En(p)};function Pn(e){return!!(se(e)&&e.add)}const Aa=e=>/^\-?\d*\.?\d+$/.test(e);function ei(e,t){e.indexOf(t)===-1&&e.push(t)}function ti(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ni{constructor(){this.subscriptions=[]}add(t){return ei(this.subscriptions,t),()=>ti(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ui=new Set;function ri(e,t,n){e||Ui.has(t)||(console.warn(t),n&&console.warn(n),Ui.add(t))}const Rd=e=>!isNaN(parseFloat(e));class Vd{constructor(t,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:s}=te;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,$.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>$.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Rd(this.current),this.owner=n.owner}onChange(t){return process.env.NODE_ENV!=="production"&&ri(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ni);const r=this.events[t].add(n);return t==="change"?()=>{r(),$.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Sa(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 yt(e,t){return new Vd(e,t)}const ka=e=>t=>t.test(e),Nd={test:e=>e==="auto",parse:e=>e},Oa=[et,_,Te,De,Fc,$c,Nd],Pt=e=>Oa.find(ka(e)),Id=[...Oa,re,Fe],Dd=e=>Id.find(ka(e));function Ld(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,yt(n))}function jd(e,t){const n=zn(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=ru(o[s]);Ld(e,s,a)}}function zd(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;a<s;a++){const l=o[a],c=t[l];let d=null;Array.isArray(c)&&(d=c[0]),d===null&&(d=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),d!=null&&(typeof d=="string"&&(Aa(d)||Ca(d))?d=parseFloat(d):!Dd(d)&&Fe.test(c)&&(d=Pa(l,c)),e.addValue(l,yt(d,{owner:e})),n[l]===void 0&&(n[l]=d),d!==null&&e.setBaseTarget(l,d))}}function Bd(e,t){return t?(t[e]||t.default||t).from:void 0}function $d(e,t,n){const r={};for(const i in e){const o=Bd(i,t);if(o!==void 0)r[i]=o;else{const s=n.getValue(i);s&&(r[i]=s.get())}}return r}function Fd({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Wd(e,t){const n=e.get();if(Array.isArray(t)){for(let r=0;r<t.length;r++)if(t[r]!==n)return!0}else return n!==t}function Ma(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const u in a){const h=e.getValue(u),p=a[u];if(!h||p===void 0||d&&Fd(d,u))continue;const g={delay:n,elapsed:0,...Zr(o||{},u)};if(window.HandoffAppearAnimations){const y=e.getProps()[_o];if(y){const b=window.HandoffAppearAnimations(y,u,h,$);b!==null&&(g.elapsed=b,g.isHandoff=!0)}}let f=!g.isHandoff&&!Wd(h,p);if(g.type==="spring"&&(h.getVelocity()||g.velocity)&&(f=!1),h.animation&&(f=!1),f)continue;h.start(Jr(u,h,p,e.shouldReduceMotion&&Je.has(u)?{type:!1}:g));const m=h.animation;Pn(l)&&(l.add(u),m.then(()=>l.remove(u))),c.push(m)}return s&&Promise.all(c).then(()=>{s&&jd(e,s)}),c}function Er(e,t,n={}){const r=zn(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Ma(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:u}=i;return Ud(e,t,c+l,d,u,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>c())}else return Promise.all([o(),s(n.delay)])}function Ud(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(Hd).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(Er(c,t,{...o,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function Hd(e,t){return e.sortNodePosition(t)}function Gd(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Er(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Er(e,t,n);else{const i=typeof t=="function"?zn(e,t,n.custom):t;r=Promise.all(Ma(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const qd=[...zr].reverse(),Yd=zr.length;function Kd(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Gd(e,n,r)))}function Xd(e){let t=Kd(e);const n=Zd();let r=!0;const i=(l,c)=>{const d=zn(e,c);if(d){const{transition:u,transitionEnd:h,...p}=d;l={...l,...p,...h}}return l};function o(l){t=l(e)}function s(l,c){const d=e.getProps(),u=e.getVariantContext(!0)||{},h=[],p=new Set;let g={},f=1/0;for(let y=0;y<Yd;y++){const b=qd[y],v=n[b],x=d[b]!==void 0?d[b]:u[b],w=It(x),T=b===c?v.isActive:null;T===!1&&(f=y);let E=x===u[b]&&x!==d[b]&&w;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),v.protectedKeys={...g},!v.isActive&&T===null||!x&&!v.prevProp||In(x)||typeof x=="boolean")continue;let O=Qd(v.prevProp,x)||b===c&&v.isActive&&!E&&w||y>f&&w,k=!1;const V=Array.isArray(x)?x:[x];let j=V.reduce(i,{});T===!1&&(j={});const{prevResolvedValues:H={}}=v,z={...H,...j},ne=W=>{O=!0,p.has(W)&&(k=!0,p.delete(W)),v.needsAnimating[W]=!0};for(const W in z){const ae=j[W],fe=H[W];if(g.hasOwnProperty(W))continue;let ye=!1;wn(ae)&&wn(fe)?ye=!Jo(ae,fe):ye=ae!==fe,ye?ae!==void 0?ne(W):p.add(W):ae!==void 0&&p.has(W)?ne(W):v.protectedKeys[W]=!0}v.prevProp=x,v.prevResolvedValues=j,v.isActive&&(g={...g,...j}),r&&e.blockInitialAnimation&&(O=!1),O&&(!E||k)&&h.push(...V.map(W=>({animation:W,options:{type:b,...l}})))}if(p.size){const y={};p.forEach(b=>{const v=e.getBaseTarget(b);v!==void 0&&(y[b]=v)}),h.push({animation:y})}let m=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,m?t(h):Promise.resolve()}function a(l,c,d){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),n[l].isActive=c;const h=s(d,l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function Qd(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Jo(t,e):!1}function Ke(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zd(){return{animate:Ke(!0),whileInView:Ke(),whileHover:Ke(),whileTap:Ke(),whileDrag:Ke(),whileFocus:Ke(),exit:Ke()}}class Jd extends We{constructor(t){super(t),t.animationState||(t.animationState=Xd(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),In(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let ef=0;class tf extends We{constructor(){super(...arguments),this.id=ef++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const nf={animation:{Feature:Jd},exit:{Feature:tf}},Hi=(e,t)=>Math.abs(e-t);function rf(e,t){const n=Hi(e.x,t.x),r=Hi(e.y,t.y);return Math.sqrt(n**2+r**2)}class _a{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=dr(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=rf(u.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:g}=u,{timestamp:f}=te;this.history.push({...g,timestamp:f});const{onStart:m,onMove:y}=this.handlers;h||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=ur(h,this.transformPagePoint),$.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:f}=this.handlers;if(this.dragSnapToOrigin&&f&&f(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=dr(u.type==="pointercancel"?this.lastMoveEventInfo:ur(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(u,m),g&&g(u,m)},!Yo(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=jn(t),a=ur(s,this.transformPagePoint),{point:l}=a,{timestamp:c}=te;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,dr(a,this.history)),this.removeListeners=ze(Oe(this.contextWindow,"pointermove",this.handlePointerMove),Oe(this.contextWindow,"pointerup",this.handlePointerUp),Oe(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),_e(this.updatePoint)}}function ur(e,t){return t?{point:t(e.point)}:e}function Gi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dr({point:e},t){return{point:e,delta:Gi(e,Ra(t)),offset:Gi(e,sf(t)),velocity:of(t,.1)}}function sf(e){return e[0]}function Ra(e){return e[e.length-1]}function of(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Ra(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Be(t)));)n--;if(!r)return{x:0,y:0};const o=Me(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function de(e){return e.max-e.min}function Pr(e,t=0,n=.01){return Math.abs(e-t)<=n}function qi(e,t,n,r=.5){e.origin=r,e.originPoint=U(t.min,t.max,e.origin),e.scale=de(n)/de(t),(Pr(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=U(n.min,n.max,e.origin)-e.originPoint,(Pr(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Rt(e,t,n,r){qi(e.x,t.x,n.x,r?r.originX:void 0),qi(e.y,t.y,n.y,r?r.originY:void 0)}function Yi(e,t,n){e.min=n.min+t.min,e.max=e.min+de(t)}function af(e,t,n){Yi(e.x,t.x,n.x),Yi(e.y,t.y,n.y)}function Ki(e,t,n){e.min=t.min-n.min,e.max=e.min+de(t)}function Vt(e,t,n){Ki(e.x,t.x,n.x),Ki(e.y,t.y,n.y)}function lf(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?U(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?U(n,e,r.max):Math.min(e,n)),e}function Xi(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function cf(e,{top:t,left:n,bottom:r,right:i}){return{x:Xi(e.x,n,i),y:Xi(e.y,t,r)}}function Qi(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 uf(e,t){return{x:Qi(e.x,t.x),y:Qi(e.y,t.y)}}function df(e,t){let n=.5;const r=de(e),i=de(t);return i>r?n=Lt(t.min,t.max-r,e.min):r>i&&(n=Lt(e.min,e.max-i,t.min)),$e(0,1,n)}function ff(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Cr=.35;function hf(e=Cr){return e===!1?e=0:e===!0&&(e=Cr),{x:Zi(e,"left","right"),y:Zi(e,"top","bottom")}}function Zi(e,t,n){return{min:Ji(e,t),max:Ji(e,n)}}function Ji(e,t){return typeof e=="number"?e:e[t]||0}const es=()=>({translate:0,scale:1,origin:0,originPoint:0}),ft=()=>({x:es(),y:es()}),ts=()=>({min:0,max:0}),Q=()=>({x:ts(),y:ts()});function pe(e){return[e("x"),e("y")]}function Va({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function pf({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mf(e,t){if(!t)return e;const 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}}function fr(e){return e===void 0||e===1}function Ar({scale:e,scaleX:t,scaleY:n}){return!fr(e)||!fr(t)||!fr(n)}function Xe(e){return Ar(e)||Na(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Na(e){return ns(e.x)||ns(e.y)}function ns(e){return e&&e!=="0%"}function Cn(e,t,n){const r=e-n,i=t*r;return n+i}function rs(e,t,n,r,i){return i!==void 0&&(e=Cn(e,i,r)),Cn(e,n,r)+t}function kr(e,t=0,n=1,r,i){e.min=rs(e.min,t,n,r,i),e.max=rs(e.max,t,n,r,i)}function Ia(e,{x:t,y:n}){kr(e.x,t.translate,t.scale,t.originPoint),kr(e.y,n.translate,n.scale,n.originPoint)}function gf(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ht(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Ia(e,s)),r&&Xe(o.latestValues)&&ht(e,o.latestValues))}t.x=is(t.x),t.y=is(t.y)}function is(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Le(e,t){e.min=e.min+t,e.max=e.max+t}function ss(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=U(e.min,e.max,o);kr(e,t[n],t[r],s,t.scale)}const yf=["x","scaleX","originX"],vf=["y","scaleY","originY"];function ht(e,t){ss(e.x,t,yf),ss(e.y,t,vf)}function Da(e,t){return Va(mf(e.getBoundingClientRect(),t))}function bf(e,t,n){const r=Da(e,n),{scroll:i}=t;return i&&(Le(r.x,i.offset.x),Le(r.y,i.offset.y)),r}const La=({current:e})=>e?e.ownerDocument.defaultView:null,xf=new WeakMap;class wf{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Q(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(jn(d,"page").point)},o=(d,u)=>{const{drag:h,dragPropagation:p,onDragStart:g}=this.getProps();if(h&&!p&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Xo(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pe(m=>{let y=this.getAxisMotionValue(m).get()||0;if(Te.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const v=b.layout.layoutBox[m];v&&(y=de(v)*(parseFloat(y)/100))}}this.originPoint[m]=y}),g&&$.update(()=>g(d,u),!1,!0);const{animationState:f}=this.visualElement;f&&f.setActive("whileDrag",!0)},s=(d,u)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:g,onDrag:f}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:m}=u;if(p&&this.currentDirection===null){this.currentDirection=Sf(m),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),f&&f(d,u)},a=(d,u)=>this.stop(d,u),l=()=>pe(d=>{var u;return this.getAnimationState(d)==="paused"&&((u=this.getAxisMotionValue(d).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new _a(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:La(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&$.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!nn(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=lf(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&ut(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=cf(i.layoutBox,n):this.constraints=!1,this.elastic=hf(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&pe(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=ff(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ut(t))return!1;const r=t.current;xe(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=bf(r,i.root,this.visualElement.getTransformPagePoint());let s=uf(i.layout.layoutBox,o);if(n){const a=n(pf(s));this.hasMutatedConstraints=!!a,a&&(s=Va(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=pe(d=>{if(!nn(d,n,this.currentDirection))return;let u=l&&l[d]||{};s&&(u={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...u};return this.startAxisValueAnimation(d,g)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Jr(t,r,0,n))}stopAnimation(){pe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){pe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){pe(n=>{const{drag:r}=this.getProps();if(!nn(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-U(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ut(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};pe(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=df({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),pe(s=>{if(!nn(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];a.set(U(l,c,i[s]))})}addListeners(){if(!this.visualElement.current)return;xf.set(this.visualElement,this);const t=this.visualElement.current,n=Oe(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();ut(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=ke(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(pe(d=>{const u=this.getAxisMotionValue(d);u&&(this.originPoint[d]+=l[d].translate,u.set(u.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Cr,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function nn(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Sf(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Tf extends We{constructor(t){super(t),this.removeGroupControls=Y,this.removeListeners=Y,this.controls=new wf(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Y}unmount(){this.removeGroupControls(),this.removeListeners()}}const os=e=>(t,n)=>{e&&$.update(()=>e(t,n))};class Ef extends We{constructor(){super(...arguments),this.removePointerDownListener=Y}onPointerDown(t){this.session=new _a(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:La(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:os(t),onStart:os(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&$.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Oe(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Pf(){const e=A.useContext(Lr);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=A.useId();return A.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const ln={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function as(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ct={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_.test(e))e=parseFloat(e);else return e;const n=as(e,t.target.x),r=as(e,t.target.y);return`${n}% ${r}%`}},Cf={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Fe.parse(e);if(i.length>5)return r;const o=Fe.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const c=U(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}};class Af extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;Nc(kf),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),ln.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||$.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ja(e){const[t,n]=Pf(),r=A.useContext(Vo);return A.createElement(Af,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(No),isPresent:t,safeToRemove:n})}const kf={borderRadius:{...Ct,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:Cf},za=["TopLeft","TopRight","BottomLeft","BottomRight"],Of=za.length,ls=e=>typeof e=="string"?parseFloat(e):e,cs=e=>typeof e=="number"||_.test(e);function Mf(e,t,n,r,i,o){i?(e.opacity=U(0,n.opacity!==void 0?n.opacity:1,_f(r)),e.opacityExit=U(t.opacity!==void 0?t.opacity:1,0,Rf(r))):o&&(e.opacity=U(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Of;s++){const a=`border${za[s]}Radius`;let l=us(t,a),c=us(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||cs(l)===cs(c)?(e[a]=Math.max(U(ls(l),ls(c),r),0),(Te.test(c)||Te.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=U(t.rotate||0,n.rotate||0,r))}function us(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const _f=Ba(0,.5,la),Rf=Ba(.5,.95,Y);function Ba(e,t,n){return r=>r<e?0:r>t?1:n(Lt(e,t,r))}function ds(e,t){e.min=t.min,e.max=t.max}function he(e,t){ds(e.x,t.x),ds(e.y,t.y)}function fs(e,t,n,r,i){return e-=t,e=Cn(e,1/n,r),i!==void 0&&(e=Cn(e,1/i,r)),e}function Vf(e,t=0,n=1,r=.5,i,o=e,s=e){if(Te.test(t)&&(t=parseFloat(t),t=U(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=U(o.min,o.max,r);e===o&&(a-=t),e.min=fs(e.min,t,n,a,i),e.max=fs(e.max,t,n,a,i)}function hs(e,t,[n,r,i],o,s){Vf(e,t[n],t[r],t[i],t.scale,o,s)}const Nf=["x","scaleX","originX"],If=["y","scaleY","originY"];function ps(e,t,n,r){hs(e.x,t,Nf,n?n.x:void 0,r?r.x:void 0),hs(e.y,t,If,n?n.y:void 0,r?r.y:void 0)}function ms(e){return e.translate===0&&e.scale===1}function $a(e){return ms(e.x)&&ms(e.y)}function Df(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Fa(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function gs(e){return de(e.x)/de(e.y)}class Lf{constructor(){this.members=[]}add(t){ei(this.members,t),t.scheduleRender()}remove(t){if(ti(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ys(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:c,rotateY:d}=n;l&&(r+=`rotate(${l}deg) `),c&&(r+=`rotateX(${c}deg) `),d&&(r+=`rotateY(${d}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const jf=(e,t)=>e.depth-t.depth;class zf{constructor(){this.children=[],this.isDirty=!1}add(t){ei(this.children,t),this.isDirty=!0}remove(t){ti(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(jf),this.isDirty=!1,this.children.forEach(t)}}function Bf(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(_e(r),e(o-t))};return $.read(r,!0),()=>_e(r)}function $f(e){window.MotionDebug&&window.MotionDebug.record(e)}function Ff(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Wf(e,t,n){const r=se(e)?e:yt(e);return r.start(Jr("",r,t,n)),r.animation}const vs=["","X","Y","Z"],Uf={visibility:"hidden"},bs=1e3;let Hf=0;const Qe={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Wa({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Hf++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Qe.totalNodes=Qe.resolvedTargetDeltas=Qe.recalculatedProjection=0,this.nodes.forEach(Yf),this.nodes.forEach(Jf),this.nodes.forEach(eh),this.nodes.forEach(Kf),$f(Qe)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zf)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new ni),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){const l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Ff(s),this.instance=s;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let u;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=Bf(h,250),ln.hasAnimatedSinceResize&&(ln.hasAnimatedSinceResize=!1,this.nodes.forEach(ws))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const f=this.options.transition||d.getDefaultTransition()||sh,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=d.getProps(),b=!this.targetLayout||!Fa(this.targetLayout,g)||p,v=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,v);const x={...Zr(f,"layout"),onPlay:m,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else h||ws(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_e(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(th),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xs);return}this.isUpdating||this.nodes.forEach(Qf),this.isUpdating=!1,this.nodes.forEach(Zf),this.nodes.forEach(Gf),this.nodes.forEach(qf),this.clearAllSnapshots();const a=performance.now();te.delta=$e(0,1e3/60,a-te.timestamp),te.timestamp=a,te.isProcessing=!0,nr.update.process(te),nr.preRender.process(te),nr.render.process(te),te.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(Xf),this.sharedNodes.forEach(nh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Q(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!$a(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&(a||Xe(this.latestValues)||d)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),oh(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:s}=this.options;if(!s)return Q();const a=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Le(a.x,l.offset.x),Le(a.y,l.offset.y)),a}removeElementScroll(s){const a=Q();he(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:d,options:u}=c;if(c!==this.root&&d&&u.layoutScroll){if(d.isRoot){he(a,s);const{scroll:h}=this.root;h&&(Le(a.x,-h.offset.x),Le(a.y,-h.offset.y))}Le(a.x,d.offset.x),Le(a.y,d.offset.y)}}return a}applyTransform(s,a=!1){const l=Q();he(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ht(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Xe(d.latestValues)&&ht(l,d.latestValues)}return Xe(this.latestValues)&&ht(l,this.latestValues),l}removeTransform(s){const a=Q();he(a,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Xe(c.latestValues))continue;Ar(c.latestValues)&&c.updateSnapshot();const d=Q(),u=c.measurePageBox();he(d,u),ps(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Xe(this.latestValues)&&ps(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==te.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:u,layoutId:h}=this.options;if(!(!this.layout||!(u||h))){if(this.resolvedRelativeTargetAt=te.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Q(),this.relativeTargetOrigin=Q(),Vt(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),he(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Q(),this.targetWithTransforms=Q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),af(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):he(this.target,this.layout.layoutBox),Ia(this.target,this.targetDelta)):he(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Q(),this.relativeTargetOrigin=Q(),Vt(this.relativeTargetOrigin,this.target,p.target),he(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qe.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ar(this.parent.latestValues)||Na(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===te.timestamp&&(c=!1),c)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;he(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;gf(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:g}=a;if(!g){this.projectionTransform&&(this.projectionDelta=ft(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ft(),this.projectionDeltaWithTransform=ft());const f=this.projectionTransform;Rt(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=ys(this.projectionDelta,this.treeScale),(this.projectionTransform!==f||this.treeScale.x!==h||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Qe.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},u=ft();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=Q(),p=l?l.source:void 0,g=this.layout?this.layout.source:void 0,f=p!==g,m=this.getStack(),y=!m||m.members.length<=1,b=!!(f&&!y&&this.options.crossfade===!0&&!this.path.some(ih));this.animationProgress=0;let v;this.mixTargetDelta=x=>{const w=x/1e3;Ss(u.x,s.x,w),Ss(u.y,s.y,w),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vt(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rh(this.relativeTarget,this.relativeTargetOrigin,h,w),v&&Df(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Q()),he(v,this.relativeTarget)),f&&(this.animationValues=d,Mf(d,c,this.latestValues,w,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_e(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$.update(()=>{ln.hasAnimatedSinceResize=!0,this.currentAnimation=Wf(0,bs,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bs),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Ua(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Q();const u=de(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+u;const h=de(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}he(a,l),ht(a,d),Rt(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Lf),this.sharedNodes.get(s).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let d=0;d<vs.length;d++){const u="rotate"+vs[d];l[u]&&(c[u]=l[u],s.setStaticValue(u,0))}s.render();for(const d in c)s.setStaticValue(d,c[d]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Uf;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=an(s==null?void 0:s.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const f={};return this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=an(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Xe(this.latestValues)&&(f.transform=d?d({},""):"none",this.hasProjected=!1),f}const h=u.animationValues||u.latestValues;this.applyTransformsToTarget(),c.transform=ys(this.projectionDeltaWithTransform,this.treeScale,h),d&&(c.transform=d(h,c.transform));const{x:p,y:g}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${g.origin*100}% 0`,u.animationValues?c.opacity=u===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=u===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const f in bn){if(h[f]===void 0)continue;const{correct:m,applyTo:y}=bn[f],b=c.transform==="none"?h[f]:m(h[f],u);if(y){const v=y.length;for(let x=0;x<v;x++)c[y[x]]=b}else c[f]=b}return this.options.layoutId&&(c.pointerEvents=u===this?an(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(xs),this.root.sharedNodes.clear()}}}function Gf(e){e.updateLayout()}function qf(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?pe(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],p=de(h);h.min=r[u].min,h.max=h.min+p}):Ua(o,n.layoutBox,r)&&pe(u=>{const h=s?n.measuredBox[u]:n.layoutBox[u],p=de(r[u]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+p)});const a=ft();Rt(a,r,n.layoutBox);const l=ft();s?Rt(l,e.applyTransform(i,!0),n.measuredBox):Rt(l,r,n.layoutBox);const c=!$a(a);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:p}=u;if(h&&p){const g=Q();Vt(g,n.layoutBox,h.layoutBox);const f=Q();Vt(f,r,p.layoutBox),Fa(g,f)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=f,e.relativeTargetOrigin=g,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Yf(e){Qe.totalNodes++,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 Kf(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xf(e){e.clearSnapshot()}function xs(e){e.clearMeasurements()}function Qf(e){e.isLayoutDirty=!1}function Zf(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ws(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Jf(e){e.resolveTargetDelta()}function eh(e){e.calcProjection()}function th(e){e.resetRotation()}function nh(e){e.removeLeadSnapshot()}function Ss(e,t,n){e.translate=U(t.translate,0,n),e.scale=U(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ts(e,t,n,r){e.min=U(t.min,n.min,r),e.max=U(t.max,n.max,r)}function rh(e,t,n,r){Ts(e.x,t.x,n.x,r),Ts(e.y,t.y,n.y,r)}function ih(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sh={duration:.45,ease:[.4,0,.1,1]},Es=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),Ps=Es("applewebkit/")&&!Es("chrome/")?Math.round:Y;function Cs(e){e.min=Ps(e.min),e.max=Ps(e.max)}function oh(e){Cs(e.x),Cs(e.y)}function Ua(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pr(gs(t),gs(n),.2)}const ah=Wa({attachResizeListener:(e,t)=>ke(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hr={current:void 0},Ha=Wa({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hr.current){const e=new ah({});e.mount(window),e.setOptions({layoutScroll:!0}),hr.current=e}return hr.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),lh={pan:{Feature:Ef},drag:{Feature:Tf,ProjectionNode:Ha,MeasureLayout:ja}},ch=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function uh(e){const t=ch.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const dh=4;function Or(e,t,n=1){xe(n<=dh,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=uh(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Aa(s)?parseFloat(s):s}else return vr(i)?Or(i,t,n+1):i}function fh(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!vr(o))return;const s=Or(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!vr(o))continue;const s=Or(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const hh=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ga=e=>hh.has(e),ph=e=>Object.keys(e).some(Ga),rn=e=>e===et||e===_,As=(e,t)=>parseFloat(e.split(", ")[t]),ks=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return As(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?As(o[1],e):0}},mh=new Set(["x","y","z"]),gh=Ft.filter(e=>!mh.has(e));function yh(e){const t=[];return gh.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const vt={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:ks(4,13),y:ks(5,14)};vt.translateX=vt.x;vt.translateY=vt.y;const vh=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(c=>{a[c]=vt[c](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(c=>{const d=t.getValue(c);d&&d.jump(a[c]),e[c]=vt[c](l,o)}),e},bh=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Ga);let o=[],s=!1;const a=[];if(i.forEach(l=>{const c=e.getValue(l);if(!e.hasValue(l))return;let d=n[l],u=Pt(d);const h=t[l];let p;if(wn(h)){const g=h.length,f=h[0]===null?1:0;d=h[f],u=Pt(d);for(let m=f;m<g&&h[m]!==null;m++)p?xe(Pt(h[m])===p,"All keyframes must be of the same type"):(p=Pt(h[m]),xe(p===u||rn(u)&&rn(p),"Keyframes must be of the same dimension as the current value"))}else p=Pt(h);if(u!==p)if(rn(u)&&rn(p)){const g=c.get();typeof g=="string"&&c.set(parseFloat(g)),typeof h=="string"?t[l]=parseFloat(h):Array.isArray(h)&&p===_&&(t[l]=h.map(parseFloat))}else u!=null&&u.transform&&(p!=null&&p.transform)&&(d===0||h===0)?d===0?c.set(p.transform(d)):t[l]=u.transform(h):(s||(o=yh(e),s=!0),a.push(l),r[l]=r[l]!==void 0?r[l]:t[l],c.jump(h))}),a.length){const l=a.indexOf("height")>=0?window.pageYOffset:null,c=vh(t,e,a);return o.length&&o.forEach(([d,u])=>{e.getValue(d).set(u)}),e.render(),Nn&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function xh(e,t,n,r){return ph(t)?bh(e,t,n,r):{target:t,transitionEnd:r}}const wh=(e,t,n,r)=>{const i=fh(e,t,r);return t=i.target,r=i.transitionEnd,xh(e,t,n,r)},Mr={current:null},qa={current:!1};function Sh(){if(qa.current=!0,!!Nn)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Mr.current=e.matches;e.addListener(t),t()}else Mr.current=!1}function Th(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(se(o))e.addValue(i,o),Pn(r)&&r.add(i),process.env.NODE_ENV==="development"&&ri(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(se(s))e.addValue(i,yt(o,{owner:e})),Pn(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,yt(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Os=new WeakMap,Ya=Object.keys(Dt),Eh=Ya.length,Ms=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ph=Br.length;class Ch{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>$.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=Dn(n),this.isVariantNode=Ro(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{});for(const u in d){const h=d[u];a[u]!==void 0&&se(h)&&(h.set(a[u],!1),Pn(c)&&c.add(u))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,Os.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),qa.current||Sh(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Mr.current,process.env.NODE_ENV!=="production"&&ri(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Os.delete(this.current),this.projection&&this.projection.unmount(),_e(this.notifyUpdate),_e(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Je.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&$.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let s,a;if(process.env.NODE_ENV!=="production"&&i&&r){const l="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Ht(!1,l):xe(!1,l)}for(let l=0;l<Eh;l++){const c=Ya[l],{isEnabled:d,Feature:u,ProjectionNode:h,MeasureLayout:p}=Dt[c];h&&(s=h),d(n)&&(!this.features[c]&&u&&(this.features[c]=new u(this)),p&&(a=p))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){this.projection=new s(this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:c,drag:d,dragConstraints:u,layoutScroll:h,layoutRoot:p}=n;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!d||u&&ut(u),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:p})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ms.length;r++){const i=Ms[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Th(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Ph;r++){const i=Br[r],o=this.props[i];(It(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=yt(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=qr(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!se(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ni),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Ka extends Ch{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=$d(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){zd(this,r,s);const a=wh(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function Ah(e){return window.getComputedStyle(e)}class kh extends Ka{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Je.has(n)){const r=Qr(n);return r&&r.default||0}else{const r=Ah(t),i=(Lo(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Da(t,n)}build(t,n,r,i){Fr(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Gr(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;se(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Wo(t,n,r,i)}}class Oh extends Ka{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Je.has(n)){const r=Qr(n);return r&&r.default||0}return n=Uo.has(n)?n:jr(n),t.getAttribute(n)}measureInstanceViewportBox(){return Q()}scrapeMotionValuesFromProps(t,n){return Go(t,n)}build(t,n,r,i){Ur(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Ho(t,n,r,i)}mount(t){this.isSVGTag=Hr(t.tagName),super.mount(t)}}const Mh=(e,t)=>$r(e)?new Oh(t,{enableHardwareAcceleration:!1}):new kh(t,{enableHardwareAcceleration:!0}),_h={layout:{ProjectionNode:Ha,MeasureLayout:ja}},Rh={...nf,...Eu,...lh,..._h},Xa=Rc((e,t)=>du(e,t,Rh,Mh));function Vh(e){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...e,children:S.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function Nh(e){const{children:t,parentRef:n,onlyChild:r}=e,[i,o]=A.useState({top:0,left:0});return A.useLayoutEffect(()=>{if(n.current){const s=n.current.getBoundingClientRect();o({top:s.top,left:s.left+s.width})}},[n]),r?t:kl.createPortal(S.jsx(Xa.div,{style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},children:t}),n.current)}function Qa({item:e,level:t=0,...n}){var E;const{isActive:r,isCollapsed:i,expanded:o,toggleExpand:s}=n,a=`level-${t}`,l=i?"collapsed":"expanded",c=r(e.id)?"active":"",d=(C,O=a)=>`${C} ${O} ${l} ${c}`,u=!!((E=e.children)!=null&&E.length),[h,p]=A.useState(!1),g=A.useRef();function f(C){var j;const{level:O,hovered:k,parentRef:V}=C;return!u||i&&O>=2&&!k?null:S.jsx(Nh,{parentRef:V,onlyChild:!i||i&&O<2,children:S.jsx(Xa.div,{className:d("menu-item__dropdown",`level-${O}`),initial:{height:i?"auto":0},animate:{height:i||o(e.id)?"auto":0},transition:{duration:.2},children:(j=e.children)==null?void 0:j.map(H=>A.createElement(Qa,{...n,key:H.id,item:H,level:O}))},+i)})}const m=window.location.origin,y=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},b=window.location.pathname.split("/")[1],v=y.pathname.split("/")[1],x=n.ssr||!m.includes("local")&&m!==y.origin||v!==b,w=u?"div":x?"a":go.Link,T=e.path||"#";return S.jsxs("div",{ref:g,className:d("menu-item__wrapper"),onMouseEnter:()=>i&&p(!0),onMouseLeave:()=>i&&p(!1),children:[S.jsxs(w,{to:T,href:T,style:{paddingLeft:`${i?"0.5rem":`${t*1}rem`}`},className:d("menu-item__link"),onClick:C=>{u&&(C.preventDefault(),i||s(e.id))},children:[t!==0&&S.jsx(Ih,{cls:d,item:e}),S.jsx("span",{className:d("menu-item__label"),children:e.name}),u&&S.jsx("div",{className:d("menu-item__icon-arrow__wrapper"),children:S.jsx(Vh,{className:d(`menu-item__icon-arrow__icon ${o(e.id)?"open":"close"}`)})})]}),f({level:t+1,hovered:h,parentRef:g})]},e.id)}function Ih({item:e,cls:t}){var s,a;const[n,r]=A.useState(!1),i=()=>{r(!0)},o=(s=e.icon)==null?void 0:s.endsWith(".svg");return S.jsx("div",{className:t("menu-item__icon"),children:n?S.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center"},children:(a=e.name.trim().at(0))==null?void 0:a.toUpperCase()}):o?S.jsx(P.ReactSVG,{src:e.icon,beforeInjection:l=>{l.setAttribute("style","margin: 0 auto;"),l.querySelectorAll("path").forEach(d=>{d.setAttribute("stroke","currentColor")})}}):S.jsx("img",{src:e.icon||"/",alt:" ",style:{height:24,maxHeight:24},onError:i})})}function Dh(){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:S.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function Lh(){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:S.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function jh(e){return S.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...e,children:S.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const zh=`.side-bar{display:flex;flex-direction:column;max-width:18rem;height:calc(100vh - 64px);border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s;padding:0 8px}.side-bar.expanded{width:18rem}.side-bar.collapsed{width:64px;padding-left:4px;padding-right:4px}.side-bar__menu{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}.side-bar__menu.collapsed{margin-left:-4px;margin-right:-4px;padding-left:4px;padding-right:4px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:40px 0}.side-bar__logout-btn__text{margin-left:12px}.side-bar__logout-btn__text.collapsed{display:none}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:0 16px;min-height:48px;border-radius:.375rem}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__logout-btn.collapsed{justify-content:center}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;margin-top:4px}.menu-item__wrapper:first-child,.menu-item__wrapper.collapsed{margin-top:0}.menu-item__wrapper.collapsed.level-1{margin-top:4px}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a!important;color:#009d4f!important}.menu-item__link.level-0{height:auto}.menu-item__link.menu-item__link.collapsed.level-0{display:none}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0}.menu-item__icon.collapsed.level-1{width:100%}.menu-item__icon.collapsed.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-1{text-align:center;margin-left:0;display:none}.menu-item__label.level-0{color:#85858a}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:-3px}.menu-item__icon-arrow__wrapper.expanded{right:0}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:180px;max-width:180px;padding:4px;z-index:1200}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-1{height:48px}.menu-item__dropdown.collapsed.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{margin-top:4px;overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}
|
|
6
|
+
`,Bh="@ukpc-lib/react",$h="0.1.12",Fh="module",Wh="./dist/",Uh="./dist/",Hh={"./components":{import:"./dist/components/index.js",require:"./dist/components/index.cjs",types:"./dist/components/index.d.ts"},"./share":{import:"./dist/share/index.js",require:"./dist/share/index.cjs",types:"./dist/share/index.d.ts"}},Gh={"*":{"*":["./dist/*/index.d.ts"]}},qh=["dist","web-components-bundle"],Yh={dev:"vite",build:"npm run build-react && npm run build-wc","build-react":"tsc && vite build --config vite.config.react.ts","build-wc":"tsc && vite build --config vite.config.wc.ts --mode production",lint:"eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",preview:"vite preview",publish:"npm publish --access public","build-publish":"npm run build && npm version patch && npm run build && npm run publish"},Kh={"@emotion/react":"^11.11.3","@emotion/styled":"^11.11.0","@mui/icons-material":"^5.15.4","@mui/material":"^5.15.4","@r2wc/react-to-web-component":"^2.0.3","@rollup/plugin-replace":"^5.0.5",axios:"^1.6.5",cssnano:"^6.0.3","framer-motion":"^10.18.0","react-query":"^3.39.3","react-router-dom":"^6.21.3","react-shadow":"^20.4.0","react-svg":"^16.1.32","react-toastify":"^10.0.4","react-window":"^1.8.10","react-window-infinite-loader":"^1.0.9","simplebar-react":"^3.2.4","vite-plugin-css-injected-by-js":"^3.3.1"},Xh={"@types/node":"^20.8.10","@types/react":"^18.2.15","@types/react-dom":"^18.2.7","@types/react-window-infinite-loader":"^1.0.9","@typescript-eslint/eslint-plugin":"^6.0.0","@typescript-eslint/parser":"^6.0.0","@vitejs/plugin-react-swc":"^3.3.2",autoprefixer:"^10.4.16",eslint:"^8.45.0","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-react-refresh":"^0.4.3",postcss:"^8.4.33",prettier:"^3.0.3",react:"^18.2.0","react-dom":"^18.2.0",tailwindcss:"^3.4.1",typescript:"^5.0.2",vite:"^4.5.1","vite-plugin-css-injected-by-js":"^3.3.1","vite-plugin-dts":"^3.7.0","vite-plugin-lib-inject-css":"^1.3.0"},Qh={"@mui/material":"^5.15.4",react:"^18.2.0","react-dom":"^18.2.0","react-query":"^3.39.3","react-router-dom":"^6.21.3",tailwindcss:"^3.4.1"},Zh="Thinh Phung",Jh="",ep="ISC",tp={name:Bh,private:!1,version:$h,type:Fh,main:Wh,module:Uh,exports:Hh,typesVersions:Gh,files:qh,scripts:Yh,dependencies:Kh,devDependencies:Xh,peerDependencies:Qh,author:Zh,description:Jh,license:ep};function np(e){return S.jsx(vo,{styles:[xc,zh],style:{zIndex:1200},children:S.jsx(rp,{...e})})}function rp(e){const{baseUrl:t,menuPath:n}=e,r=go.useLocation(),[i,o]=A.useState([]),[s,a]=A.useState(!1),[l,c]=A.useState({}),d=Za(i),u=window.location.origin+r.pathname,h=ip(d,u).filter(v=>v.parentKey!==0);console.log("matchPaths:",h);const p=v=>{c({...l,[v]:!l[v]})},g=()=>{a(!s)};A.useEffect(()=>{(async()=>{const x=t+(n||"/global-menu-config/api/v1/menu-items/user"),w=await Al.get(x,{withCredentials:!0}).then(C=>C.data).catch(C=>{var O,k;P.pushError(((k=(O=C.response)==null?void 0:O.data)==null?void 0:k.errorMessage)||"Have error when get menu items")}),T={};w.forEach(C=>{C.children&&(T[C.id]=!0)}),c(T);let E=w.map(C=>({...C,parentKey:0}));e.replacePath&&(E=Ja(E,e.replacePath)),o(E)})()},[t,n,e.replacePath]);const[f,m]=A.useState(!1),y=s?"collapsed":"expanded",b=v=>`${v} ${y}`;return S.jsxs("div",{className:b("side-bar"),children:[S.jsxs("div",{style:{display:"none"},children:["Version: ",tp.version]}),S.jsx("div",{className:b("side-bar__wrapper-toggle-btn"),children:S.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:g,children:s?S.jsx(Lh,{}):S.jsx(Dh,{})})}),S.jsx(ko,{className:b("side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:i.map(v=>{const x=w=>h.some(T=>T.id===w);return S.jsx(Qa,{item:v,isActive:x,isCollapsed:s,expanded:w=>l[w],toggleExpand:p,replacePath:e.replacePath,ssr:e.ssr},v.id)})}),S.jsxs("div",{className:b("side-bar__wrap-btn-logout"),children:[S.jsxs("button",{className:b("side-bar__logout-btn"),onClick:()=>m(!0),children:[S.jsx(jh,{}),S.jsx("span",{className:b("side-bar__logout-btn__text"),children:"Logout"})]}),S.jsx(yo,{isOpen:f,onClose:()=>m(!1),onConfirm:()=>e.logout?e.logout():P.logout(e.baseUrl)})]})]})}function Za(e){let t=[];for(const n of e)t.push(n),n.children&&(t=t.concat(Za(n.children)));return t}function ip(e,t){let n=e.find(i=>i.path&&t.includes(i.path)),r=[];for(;n;)r=[n,...r],n=e.find(i=>i.id===n.parentKey);return r}function Ja(e,t){return e.map(n=>(n.path&&(n.path=t(n.path)),n.children&&n.children.length>0&&(n.children=Ja(n.children,t)),n))}function je(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function el(e){if(!je(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=el(e[n])}),t}function be(e,t,n={clone:!0}){const r=n.clone?P._extends({},e):e;return je(e)&&je(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(je(t[i])&&i in e&&je(e[i])?r[i]=be(e[i],t[i],n):n.clone?r[i]=je(t[i])?el(t[i]):t[i]:r[i]=t[i])}),r}function bt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var _r={exports:{}},D={};/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react-is.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/var _s;function sp(){if(_s)return D;_s=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function f(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case e:switch(m=m.type,m){case n:case i:case r:case c:case d:return m;default:switch(m=m&&m.$$typeof,m){case a:case s:case l:case h:case u:case o:return m;default:return y}}case t:return y}}}return D.ContextConsumer=s,D.ContextProvider=o,D.Element=e,D.ForwardRef=l,D.Fragment=n,D.Lazy=h,D.Memo=u,D.Portal=t,D.Profiler=i,D.StrictMode=r,D.Suspense=c,D.SuspenseList=d,D.isAsyncMode=function(){return!1},D.isConcurrentMode=function(){return!1},D.isContextConsumer=function(m){return f(m)===s},D.isContextProvider=function(m){return f(m)===o},D.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},D.isForwardRef=function(m){return f(m)===l},D.isFragment=function(m){return f(m)===n},D.isLazy=function(m){return f(m)===h},D.isMemo=function(m){return f(m)===u},D.isPortal=function(m){return f(m)===t},D.isProfiler=function(m){return f(m)===i},D.isStrictMode=function(m){return f(m)===r},D.isSuspense=function(m){return f(m)===c},D.isSuspenseList=function(m){return f(m)===d},D.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===r||m===c||m===d||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===u||m.$$typeof===o||m.$$typeof===s||m.$$typeof===l||m.$$typeof===g||m.getModuleId!==void 0)},D.typeOf=f,D}var L={};/**
|
|
15
|
+
* @license React
|
|
16
|
+
* react-is.development.js
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/var Rs;function op(){return Rs||(Rs=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=!1,f=!1,m=!1,y=!1,b=!1,v;v=Symbol.for("react.module.reference");function x(M){return!!(typeof M=="string"||typeof M=="function"||M===n||M===i||b||M===r||M===c||M===d||y||M===p||g||f||m||typeof M=="object"&&M!==null&&(M.$$typeof===h||M.$$typeof===u||M.$$typeof===o||M.$$typeof===s||M.$$typeof===l||M.$$typeof===v||M.getModuleId!==void 0))}function w(M){if(typeof M=="object"&&M!==null){var Jn=M.$$typeof;switch(Jn){case e:var Qt=M.type;switch(Qt){case n:case i:case r:case c:case d:return Qt;default:var xi=Qt&&Qt.$$typeof;switch(xi){case a:case s:case l:case h:case u:case o:return xi;default:return Jn}}case t:return Jn}}}var T=s,E=o,C=e,O=l,k=n,V=h,j=u,H=t,z=i,ne=r,W=c,ae=d,fe=!1,ye=!1;function He(M){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(M){return ye||(ye=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Ce(M){return w(M)===s}function Ge(M){return w(M)===o}function we(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function qe(M){return w(M)===l}function Ye(M){return w(M)===n}function Xt(M){return w(M)===h}function Zn(M){return w(M)===u}function Tt(M){return w(M)===t}function tt(M){return w(M)===i}function Ae(M){return w(M)===r}function bi(M){return w(M)===c}function Cl(M){return w(M)===d}L.ContextConsumer=T,L.ContextProvider=E,L.Element=C,L.ForwardRef=O,L.Fragment=k,L.Lazy=V,L.Memo=j,L.Portal=H,L.Profiler=z,L.StrictMode=ne,L.Suspense=W,L.SuspenseList=ae,L.isAsyncMode=He,L.isConcurrentMode=B,L.isContextConsumer=Ce,L.isContextProvider=Ge,L.isElement=we,L.isForwardRef=qe,L.isFragment=Ye,L.isLazy=Xt,L.isMemo=Zn,L.isPortal=Tt,L.isProfiler=tt,L.isStrictMode=Ae,L.isSuspense=bi,L.isSuspenseList=Cl,L.isValidElementType=x,L.typeOf=w}()),L}process.env.NODE_ENV==="production"?_r.exports=sp():_r.exports=op();var Vs=_r.exports;const ap=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function lp(e){const t=`${e}`.match(ap);return t&&t[1]||""}function tl(e,t=""){return e.displayName||e.name||lp(e)||t}function Ns(e,t,n){const r=tl(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function cp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return tl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Vs.ForwardRef:return Ns(e,e.render,"ForwardRef");case Vs.Memo:return Ns(e,e.type,"memo");default:return}}}function Ee(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":bt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function nl(e,t){const n=P._extends({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P._extends({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=P._extends({},o),Object.keys(i).forEach(s=>{n[r][s]=nl(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function up(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const Is=e=>e,dp=()=>{let e=Is;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Is}}},fp=dp(),hp=fp,pp={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ii(e,t,n="Mui"){const r=pp[t];return r?`${n}-${r}`:`${hp.generate(e)}-${t}`}function mp(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=ii(e,i,n)}),r}function rl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var gp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,yp=rl(function(e){return gp.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function vp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function bp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var xp=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(bp(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
23
|
+
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=vp(i);try{s.insertRule(r,s.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',a)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),ee="-ms-",An="-moz-",N="-webkit-",si="comm",oi="rule",ai="decl",wp="@import",il="@keyframes",Sp="@layer",Tp=Math.abs,Bn=String.fromCharCode,Ep=Object.assign;function Pp(e,t){return J(e,0)^45?(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3):0}function sl(e){return e.trim()}function Cp(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,n){return e.replace(t,n)}function Rr(e,t){return e.indexOf(t)}function J(e,t){return e.charCodeAt(t)|0}function jt(e,t,n){return e.slice(t,n)}function Se(e){return e.length}function li(e){return e.length}function sn(e,t){return t.push(e),e}function Ap(e,t){return e.map(t).join("")}var $n=1,xt=1,ol=0,oe=0,Z=0,St="";function Fn(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:$n,column:xt,length:s,return:""}}function At(e,t){return Ep(Fn("",null,null,"",null,null,0),e,{length:-e.length},t)}function kp(){return Z}function Op(){return Z=oe>0?J(St,--oe):0,xt--,Z===10&&(xt=1,$n--),Z}function ue(){return Z=oe<ol?J(St,oe++):0,xt++,Z===10&&(xt=1,$n++),Z}function Pe(){return J(St,oe)}function cn(){return oe}function qt(e,t){return jt(St,e,t)}function zt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function al(e){return $n=xt=1,ol=Se(St=e),oe=0,[]}function ll(e){return St="",e}function un(e){return sl(qt(oe-1,Vr(e===91?e+2:e===40?e+1:e)))}function Mp(e){for(;(Z=Pe())&&Z<33;)ue();return zt(e)>2||zt(Z)>3?"":" "}function _p(e,t){for(;--t&&ue()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return qt(e,cn()+(t<6&&Pe()==32&&ue()==32))}function Vr(e){for(;ue();)switch(Z){case e:return oe;case 34:case 39:e!==34&&e!==39&&Vr(Z);break;case 40:e===41&&Vr(e);break;case 92:ue();break}return oe}function Rp(e,t){for(;ue()&&e+Z!==47+10;)if(e+Z===42+42&&Pe()===47)break;return"/*"+qt(t,oe-1)+"*"+Bn(e===47?e:ue())}function Vp(e){for(;!zt(Pe());)ue();return qt(e,oe)}function Np(e){return ll(dn("",null,null,null,[""],e=al(e),0,[0],e))}function dn(e,t,n,r,i,o,s,a,l){for(var c=0,d=0,u=s,h=0,p=0,g=0,f=1,m=1,y=1,b=0,v="",x=i,w=o,T=r,E=v;m;)switch(g=b,b=ue()){case 40:if(g!=108&&J(E,u-1)==58){Rr(E+=I(un(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:E+=un(b);break;case 9:case 10:case 13:case 32:E+=Mp(g);break;case 92:E+=_p(cn()-1,7);continue;case 47:switch(Pe()){case 42:case 47:sn(Ip(Rp(ue(),cn()),t,n),l);break;default:E+="/"}break;case 123*f:a[c++]=Se(E)*y;case 125*f:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+d:y==-1&&(E=I(E,/\f/g,"")),p>0&&Se(E)-u&&sn(p>32?Ls(E+";",r,n,u-1):Ls(I(E," ","")+";",r,n,u-2),l);break;case 59:E+=";";default:if(sn(T=Ds(E,t,n,c,d,i,a,v,x=[],w=[],u),o),b===123)if(d===0)dn(E,t,T,T,x,o,u,a,w);else switch(h===99&&J(E,3)===110?100:h){case 100:case 108:case 109:case 115:dn(e,T,T,r&&sn(Ds(e,T,T,0,0,i,a,v,i,x=[],u),w),i,w,u,a,r?x:w);break;default:dn(E,T,T,T,[""],w,0,a,w)}}c=d=p=0,f=y=1,v=E="",u=s;break;case 58:u=1+Se(E),p=g;default:if(f<1){if(b==123)--f;else if(b==125&&f++==0&&Op()==125)continue}switch(E+=Bn(b),b*f){case 38:y=d>0?1:(E+="\f",-1);break;case 44:a[c++]=(Se(E)-1)*y,y=1;break;case 64:Pe()===45&&(E+=un(ue())),h=Pe(),d=u=Se(v=E+=Vp(cn())),b++;break;case 45:g===45&&Se(E)==2&&(f=0)}}return o}function Ds(e,t,n,r,i,o,s,a,l,c,d){for(var u=i-1,h=i===0?o:[""],p=li(h),g=0,f=0,m=0;g<r;++g)for(var y=0,b=jt(e,u+1,u=Tp(f=s[g])),v=e;y<p;++y)(v=sl(f>0?h[y]+" "+b:I(b,/&\f/g,h[y])))&&(l[m++]=v);return Fn(e,t,n,i===0?oi:a,l,c,d)}function Ip(e,t,n){return Fn(e,t,n,si,Bn(kp()),jt(e,2,-2),0)}function Ls(e,t,n,r){return Fn(e,t,n,ai,jt(e,0,r),jt(e,r+1,-1),r)}function mt(e,t){for(var n="",r=li(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Dp(e,t,n,r){switch(e.type){case Sp:if(e.children.length)break;case wp:case ai:return e.return=e.return||e.value;case si:return"";case il:return e.return=e.value+"{"+mt(e.children,r)+"}";case oi:e.value=e.props.join(",")}return Se(n=mt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lp(e){var t=li(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function jp(e){return function(t){t.root||(t=t.return)&&e(t)}}var zp=function(t,n,r){for(var i=0,o=0;i=o,o=Pe(),i===38&&o===12&&(n[r]=1),!zt(o);)ue();return qt(t,oe)},Bp=function(t,n){var r=-1,i=44;do switch(zt(i)){case 0:i===38&&Pe()===12&&(n[r]=1),t[r]+=zp(oe-1,n,r);break;case 2:t[r]+=un(i);break;case 4:if(i===44){t[++r]=Pe()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Bn(i)}while(i=ue());return t},$p=function(t,n){return ll(Bp(al(t),n))},js=new WeakMap,Fp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!js.get(r))&&!i){js.set(t,!0);for(var o=[],s=$p(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)t.props[c]=o[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},Wp=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},Up="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Hp=function(t){return t.type==="comm"&&t.children.indexOf(Up)>-1},Gp=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=!!n.parent,a=s?n.parent.children:i,l=a.length-1;l>=0;l--){var c=a[l];if(c.line<n.line)break;if(c.column<n.column){if(Hp(c))return;break}}o.forEach(function(d){console.error('The pseudo class "'+d+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+d.split("-child")[0]+'-of-type".')})}}}},cl=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},qp=function(t,n){for(var r=t-1;r>=0;r--)if(!cl(n[r]))return!0;return!1},zs=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Yp=function(t,n,r){cl(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),zs(t)):qp(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),zs(t)))};function ul(e,t){switch(Pp(e,t)){case 5103:return N+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return N+e+An+e+ee+e+e;case 6828:case 4268:return N+e+ee+e+e;case 6165:return N+e+ee+"flex-"+e+e;case 5187:return N+e+I(e,/(\w+).+(:[^]+)/,N+"box-$1$2"+ee+"flex-$1$2")+e;case 5443:return N+e+ee+"flex-item-"+I(e,/flex-|-self/,"")+e;case 4675:return N+e+ee+"flex-line-pack"+I(e,/align-content|flex-|-self/,"")+e;case 5548:return N+e+ee+I(e,"shrink","negative")+e;case 5292:return N+e+ee+I(e,"basis","preferred-size")+e;case 6060:return N+"box-"+I(e,"-grow","")+N+e+ee+I(e,"grow","positive")+e;case 4554:return N+I(e,/([^-])(transform)/g,"$1"+N+"$2")+e;case 6187:return I(I(I(e,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),e,"")+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+N+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,N+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Se(e)-1-t>6)switch(J(e,t+1)){case 109:if(J(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+An+(J(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rr(e,"stretch")?ul(I(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(J(e,t+1)!==115)break;case 6444:switch(J(e,Se(e)-3-(~Rr(e,"!important")&&10))){case 107:return I(e,":",":"+N)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(J(e,14)===45?"inline-":"")+"box$3$1"+N+"$2$3$1"+ee+"$2box$3")+e}break;case 5936:switch(J(e,t+11)){case 114:return N+e+ee+I(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return N+e+ee+I(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return N+e+ee+I(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return N+e+ee+e+e}return e}var Kp=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ai:t.return=ul(t.value,t.length);break;case il:return mt([At(t,{value:I(t.value,"@","@"+N)})],i);case oi:if(t.length)return Ap(t.props,function(o){switch(Cp(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mt([At(t,{props:[I(o,/:(read-\w+)/,":"+An+"$1")]})],i);case"::placeholder":return mt([At(t,{props:[I(o,/:(plac\w+)/,":"+N+"input-$1")]}),At(t,{props:[I(o,/:(plac\w+)/,":"+An+"$1")]}),At(t,{props:[I(o,/:(plac\w+)/,ee+"input-$1")]})],i)}return""})}},Xp=[Kp],Qp=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
24
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||Xp;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),y=1;y<m.length;y++)o[m[y]]=!0;a.push(f)});var l,c=[Fp,Wp];process.env.NODE_ENV!=="production"&&c.push(Gp({get compat(){return g.compat}}),Yp);{var d,u=[Dp,process.env.NODE_ENV!=="production"?function(f){f.root||(f.return?d.insert(f.return):f.value&&f.type!==si&&d.insert(f.value+"{}"))}:jp(function(f){d.insert(f)})],h=Lp(c.concat(i,u)),p=function(m){return mt(Np(m),h)};l=function(m,y,b,v){d=b,process.env.NODE_ENV!=="production"&&y.map!==void 0&&(d={insert:function(w){b.insert(w+y.map)}}),p(m?m+"{"+y.styles+"}":y.styles),v&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new xp({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g},Zp=!0;function dl(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var ci=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Zp===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},fl=function(t,n,r){ci(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Jp(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var em={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Bs=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
25
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
26
|
+
You can read more about this here:
|
|
27
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,tm="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",nm=/[A-Z]|^ms/g,hl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ui=function(t){return t.charCodeAt(1)===45},$s=function(t){return t!=null&&typeof t!="boolean"},pr=rl(function(e){return ui(e)?e:e.replace(nm,"-$&").toLowerCase()}),kn=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hl,function(r,i,o){return ve={name:i,styles:o,next:ve},i})}return em[t]!==1&&!ui(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var rm=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,im=["normal","none","initial","inherit","unset"],sm=kn,om=/^-ms-/,am=/-(.)/g,Fs={};kn=function(t,n){if(t==="content"&&(typeof n!="string"||im.indexOf(n)===-1&&!rm.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=sm(t,n);return r!==""&&!ui(t)&&t.indexOf("-")!==-1&&Fs[t]===void 0&&(Fs[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(om,"ms-").replace(am,function(i,o){return o.toUpperCase()})+"?")),r}}var pl="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Bt(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(pl);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ve={name:n.name,styles:n.styles,next:ve},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ve={name:r.name,styles:r.styles,next:ve},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return lm(e,t,n)}case"function":{if(e!==void 0){var o=ve,s=n(e);return ve=o,Bt(e,t,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var a=[],l=n.replace(hl,function(d,u,h){var p="animation"+a.length;return a.push("const "+p+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+p+"}"});a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+l+"`"]).join(`
|
|
28
|
+
`)+`
|
|
29
|
+
|
|
30
|
+
You should wrap it with \`css\` like this:
|
|
31
|
+
|
|
32
|
+
`+("css`"+l+"`"))}break}if(t==null)return n;var c=t[n];return c!==void 0?c:n}function lm(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Bt(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object")t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":$s(s)&&(r+=pr(o)+":"+kn(o,s)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(pl);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var a=0;a<s.length;a++)$s(s[a])&&(r+=pr(o)+":"+kn(o,s[a])+";");else{var l=Bt(e,t,s);switch(o){case"animation":case"animationName":{r+=pr(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(tm),r+=o+"{"+l+"}"}}}}return r}var Ws=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ml;process.env.NODE_ENV!=="production"&&(ml=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ve,Nr=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";ve=void 0;var s=t[0];s==null||s.raw===void 0?(i=!1,o+=Bt(r,n,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(Bs),o+=s[0]);for(var a=1;a<t.length;a++)o+=Bt(r,n,t[a]),i&&(process.env.NODE_ENV!=="production"&&s[a]===void 0&&console.error(Bs),o+=s[a]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(ml,function(h){return l=h,""})),Ws.lastIndex=0;for(var c="",d;(d=Ws.exec(o))!==null;)c+="-"+d[1];var u=Jp(o)+c;return process.env.NODE_ENV!=="production"?{name:u,styles:o,map:l,next:ve,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:o,next:ve}},cm=function(t){return t()},um=R["useInsertionEffect"]?R["useInsertionEffect"]:!1,gl=um||cm,dm={}.hasOwnProperty,di=R.createContext(typeof HTMLElement<"u"?Qp({key:"css"}):null);process.env.NODE_ENV!=="production"&&(di.displayName="EmotionCacheContext");di.Provider;var yl=function(t){return A.forwardRef(function(n,r){var i=A.useContext(di);return t(n,i,r)})},Wn=R.createContext({});process.env.NODE_ENV!=="production"&&(Wn.displayName="EmotionThemeContext");var Us="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Hs="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",fm=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return ci(n,r,i),gl(function(){return fl(n,r,i)}),null},hm=yl(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Us],o=[r],s="";typeof e.className=="string"?s=dl(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=Nr(o,void 0,R.useContext(Wn));if(process.env.NODE_ENV!=="production"&&a.name.indexOf("-")===-1){var l=e[Hs];l&&(a=Nr([a,"label:"+l+";"]))}s+=t.key+"-"+a.name;var c={};for(var d in e)dm.call(e,d)&&d!=="css"&&d!==Us&&(process.env.NODE_ENV==="production"||d!==Hs)&&(c[d]=e[d]);return c.ref=n,c.className=s,R.createElement(R.Fragment,null,R.createElement(fm,{cache:t,serialized:a,isStringTag:typeof i=="string"}),R.createElement(i,c))});process.env.NODE_ENV!=="production"&&(hm.displayName="EmotionCssPropInternal");var pm=yp,mm=function(t){return t!=="theme"},Gs=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?pm:mm},qs=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Ys=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
33
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
34
|
+
You can read more about this here:
|
|
35
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,gm=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return ci(n,r,i),gl(function(){return fl(n,r,i)}),null},ym=function e(t,n){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
36
|
+
You may have forgotten to import it.`);var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=qs(t,n,r),l=a||Gs(i),c=!l("as");return function(){var d=arguments,u=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&u.push("label:"+o+";"),d[0]==null||d[0].raw===void 0)u.push.apply(u,d);else{process.env.NODE_ENV!=="production"&&d[0][0]===void 0&&console.error(Ys),u.push(d[0][0]);for(var h=d.length,p=1;p<h;p++)process.env.NODE_ENV!=="production"&&d[0][p]===void 0&&console.error(Ys),u.push(d[p],d[0][p])}var g=yl(function(f,m,y){var b=c&&f.as||i,v="",x=[],w=f;if(f.theme==null){w={};for(var T in f)w[T]=f[T];w.theme=R.useContext(Wn)}typeof f.className=="string"?v=dl(m.registered,x,f.className):f.className!=null&&(v=f.className+" ");var E=Nr(u.concat(x),m.registered,w);v+=m.key+"-"+E.name,s!==void 0&&(v+=" "+s);var C=c&&a===void 0?Gs(b):l,O={};for(var k in f)c&&k==="as"||C(k)&&(O[k]=f[k]);return O.className=v,O.ref=y,R.createElement(R.Fragment,null,R.createElement(gm,{cache:m,serialized:E,isStringTag:typeof b=="string"}),R.createElement(b,O))});return g.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=u,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),g.withComponent=function(f,m){return e(f,P._extends({},n,m,{shouldForwardProp:qs(g,m,!0)})).apply(void 0,u)},g}},vm=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ir=ym.bind();vm.forEach(function(e){Ir[e]=Ir(e)});/**
|
|
37
|
+
* @mui/styled-engine v5.15.4
|
|
38
|
+
*
|
|
39
|
+
* @license MIT
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/function bm(e,t){const n=Ir(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
43
|
+
`)):r.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}const xm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},wm=["values","unit","step"],Sm=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>P._extends({},n,{[r.key]:r.val}),{})};function Tm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=P._objectWithoutPropertiesLoose(e,wm),o=Sm(t),s=Object.keys(o);function a(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function c(h,p){const g=s.indexOf(p);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:p)-r/100}${n})`}function d(h){return s.indexOf(h)+1<s.length?c(h,s[s.indexOf(h)+1]):a(h)}function u(h){const p=s.indexOf(h);return p===0?a(s[1]):p===s.length-1?l(s[p]):c(h,s[s.indexOf(h)+1]).replace("@media","@media not all and")}return P._extends({keys:s,values:o,up:a,down:l,between:c,only:d,not:u,unit:n},i)}const Em={borderRadius:4},Pm=Em,Cm=process.env.NODE_ENV!=="production"?P.PropTypes.oneOfType([P.PropTypes.number,P.PropTypes.string,P.PropTypes.object,P.PropTypes.array]):{},Ue=Cm;function Nt(e,t){return t?be(e,t,{clone:!1}):e}const fi={xs:0,sm:600,md:900,lg:1200,xl:1536},Ks={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fi[e]}px)`};function Re(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Ks;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Ks;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||fi).indexOf(a)!==-1){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function Am(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function km(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Un(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function On(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Un(e,n)||r,t&&(i=t(i,r,e)),i}function K(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=Un(l,r)||{};return Re(s,a,u=>{let h=On(c,i,u);return u===h&&typeof u=="string"&&(h=On(c,i,`${t}${u==="default"?"":Ee(u)}`,u)),n===!1?h:{[n]:h}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ue}:{},o.filterProps=[t],o}function Om(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Mm={m:"margin",p:"padding"},_m={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Xs={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Rm=Om(e=>{if(e.length>2)if(Xs[e])e=Xs[e];else return[e];const[t,n]=e.split(""),r=Mm[t],i=_m[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Hn=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gn=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Vm=[...Hn,...Gn];function Yt(e,t,n,r){var i;const o=(i=Un(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),o*s):Array.isArray(o)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
44
|
+
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
45
|
+
`))),o[s]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
46
|
+
`)),()=>{})}function vl(e){return Yt(e,"spacing",8,"spacing")}function Kt(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Nm(e,t){return n=>e.reduce((r,i)=>(r[i]=Kt(t,n),r),{})}function Im(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Rm(n),o=Nm(i,r),s=e[n];return Re(e,s,o)}function bl(e,t){const n=vl(e.theme);return Object.keys(e).map(r=>Im(e,t,r,n)).reduce(Nt,{})}function G(e){return bl(e,Hn)}G.propTypes=process.env.NODE_ENV!=="production"?Hn.reduce((e,t)=>(e[t]=Ue,e),{}):{};G.filterProps=Hn;function q(e){return bl(e,Gn)}q.propTypes=process.env.NODE_ENV!=="production"?Gn.reduce((e,t)=>(e[t]=Ue,e),{}):{};q.filterProps=Gn;process.env.NODE_ENV!=="production"&&Vm.reduce((e,t)=>(e[t]=Ue,e),{});function Dm(e=8){if(e.mui)return e;const t=vl({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function qn(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Nt(i,t[o](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function me(e){return typeof e!="number"?e:`${e}px solid`}function ge(e,t){return K({prop:e,themeKey:"borders",transform:t})}const Lm=ge("border",me),jm=ge("borderTop",me),zm=ge("borderRight",me),Bm=ge("borderBottom",me),$m=ge("borderLeft",me),Fm=ge("borderColor"),Wm=ge("borderTopColor"),Um=ge("borderRightColor"),Hm=ge("borderBottomColor"),Gm=ge("borderLeftColor"),qm=ge("outline",me),Ym=ge("outlineColor"),Yn=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yt(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Kt(t,r)});return Re(e,e.borderRadius,n)}return null};Yn.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ue}:{};Yn.filterProps=["borderRadius"];qn(Lm,jm,zm,Bm,$m,Fm,Wm,Um,Hm,Gm,Yn,qm,Ym);const Kn=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yt(e.theme,"spacing",8,"gap"),n=r=>({gap:Kt(t,r)});return Re(e,e.gap,n)}return null};Kn.propTypes=process.env.NODE_ENV!=="production"?{gap:Ue}:{};Kn.filterProps=["gap"];const Xn=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yt(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Kt(t,r)});return Re(e,e.columnGap,n)}return null};Xn.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ue}:{};Xn.filterProps=["columnGap"];const Qn=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yt(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Kt(t,r)});return Re(e,e.rowGap,n)}return null};Qn.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ue}:{};Qn.filterProps=["rowGap"];const Km=K({prop:"gridColumn"}),Xm=K({prop:"gridRow"}),Qm=K({prop:"gridAutoFlow"}),Zm=K({prop:"gridAutoColumns"}),Jm=K({prop:"gridAutoRows"}),eg=K({prop:"gridTemplateColumns"}),tg=K({prop:"gridTemplateRows"}),ng=K({prop:"gridTemplateAreas"}),rg=K({prop:"gridArea"});qn(Kn,Xn,Qn,Km,Xm,Qm,Zm,Jm,eg,tg,ng,rg);function gt(e,t){return t==="grey"?t:e}const ig=K({prop:"color",themeKey:"palette",transform:gt}),sg=K({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gt}),og=K({prop:"backgroundColor",themeKey:"palette",transform:gt});qn(ig,sg,og);function ce(e){return e<=1&&e!==0?`${e*100}%`:e}const ag=K({prop:"width",transform:ce}),hi=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||fi[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ce(n)}};return Re(e,e.maxWidth,t)}return null};hi.filterProps=["maxWidth"];const lg=K({prop:"minWidth",transform:ce}),cg=K({prop:"height",transform:ce}),ug=K({prop:"maxHeight",transform:ce}),dg=K({prop:"minHeight",transform:ce});K({prop:"size",cssProperty:"width",transform:ce});K({prop:"size",cssProperty:"height",transform:ce});const fg=K({prop:"boxSizing"});qn(ag,hi,lg,cg,ug,dg,fg);const hg={border:{themeKey:"borders",transform:me},borderTop:{themeKey:"borders",transform:me},borderRight:{themeKey:"borders",transform:me},borderBottom:{themeKey:"borders",transform:me},borderLeft:{themeKey:"borders",transform:me},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:me},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Yn},color:{themeKey:"palette",transform:gt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gt},backgroundColor:{themeKey:"palette",transform:gt},p:{style:q},pt:{style:q},pr:{style:q},pb:{style:q},pl:{style:q},px:{style:q},py:{style:q},padding:{style:q},paddingTop:{style:q},paddingRight:{style:q},paddingBottom:{style:q},paddingLeft:{style:q},paddingX:{style:q},paddingY:{style:q},paddingInline:{style:q},paddingInlineStart:{style:q},paddingInlineEnd:{style:q},paddingBlock:{style:q},paddingBlockStart:{style:q},paddingBlockEnd:{style:q},m:{style:G},mt:{style:G},mr:{style:G},mb:{style:G},ml:{style:G},mx:{style:G},my:{style:G},margin:{style:G},marginTop:{style:G},marginRight:{style:G},marginBottom:{style:G},marginLeft:{style:G},marginX:{style:G},marginY:{style:G},marginInline:{style:G},marginInlineStart:{style:G},marginInlineEnd:{style:G},marginBlock:{style:G},marginBlockStart:{style:G},marginBlockEnd:{style:G},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Kn},rowGap:{style:Qn},columnGap:{style:Xn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ce},maxWidth:{style:hi},minWidth:{transform:ce},height:{transform:ce},maxHeight:{transform:ce},minHeight:{transform:ce},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},pi=hg;function pg(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function mg(e,t){return typeof e=="function"?e(t):e}function gg(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:d,style:u}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const h=Un(i,c)||{};return u?u(s):Re(s,r,g=>{let f=On(h,d,g);return g===f&&typeof g=="string"&&(f=On(h,d,`${n}${g==="default"?"":Ee(g)}`,g)),l===!1?f:{[l]:f}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:pi;function a(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const d=Am(o.breakpoints),u=Object.keys(d);let h=d;return Object.keys(c).forEach(p=>{const g=mg(c[p],o);if(g!=null)if(typeof g=="object")if(s[p])h=Nt(h,e(p,g,o,s));else{const f=Re({theme:o},g,m=>({[p]:m}));pg(f,g)?h[p]=t({sx:g,theme:o}):h=Nt(h,f)}else h=Nt(h,e(p,g,o,s))}),km(u,h)}return Array.isArray(i)?i.map(a):a(i)}return t}const xl=gg();xl.filterProps=["sx"];const mi=xl,yg=["breakpoints","palette","spacing","shape"];function gi(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=P._objectWithoutPropertiesLoose(e,yg),a=Tm(n),l=Dm(i);let c=be({breakpoints:a,direction:"ltr",components:{},palette:P._extends({mode:"light"},r),spacing:l,shape:P._extends({},Pm,o)},s);return c=t.reduce((d,u)=>be(d,u),c),c.unstable_sxConfig=P._extends({},pi,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return mi({sx:u,theme:this})},c}function vg(e){return Object.keys(e).length===0}function bg(e=null){const t=R.useContext(Wn);return!t||vg(t)?e:t}const xg=gi();function wg(e=xg){return bg(e)}const Sg=["variant"];function Qs(e){return e.length===0}function wl(e){const{variant:t}=e,n=P._objectWithoutPropertiesLoose(e,Sg);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=Qs(r)?e[i]:Ee(e[i]):r+=`${Qs(r)?i:Ee(i)}${Ee(e[i].toString())}`}),r}const Tg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Eg(e){return Object.keys(e).length===0}function Pg(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Cg=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Mn=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=wl(r.props),n[i]=r.style}),n},Ag=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),Mn(n)},_n=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let o=0;return n&&n.forEach(s=>{let a=!0;if(typeof s.props=="function"){const l=P._extends({},e,r);a=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(a=!1)});a&&(typeof s.props=="function"?i.push(t[`callback${o}`]):i.push(t[wl(s.props)])),typeof s.props=="function"&&(o+=1)}),i},kg=(e,t,n,r)=>{var i;const o=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return _n(e,t,o)};function fn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Og=gi(),Zs=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function hn({defaultTheme:e,theme:t,themeId:n}){return Eg(t)?e:t[n]||t}function Mg(e){return e?(t,n)=>n[e]:null}const Js=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(P._extends({},t,{theme:hn(P._extends({},t,{defaultTheme:n,themeId:r}))}));let o;if(i&&i.variants&&(o=i.variants,delete i.variants),o){const s=_n(t,Mn(o),o);return[i,...s]}return i};function _g(e={}){const{themeId:t,defaultTheme:n=Og,rootShouldForwardProp:r=fn,slotShouldForwardProp:i=fn}=e,o=s=>mi(P._extends({},s,{theme:hn(P._extends({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{xm(s,x=>x.filter(w=>!(w!=null&&w.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:d,skipSx:u,overridesResolver:h=Mg(Zs(c))}=a,p=P._objectWithoutPropertiesLoose(a,Tg),g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,f=u||!1;let m;process.env.NODE_ENV!=="production"&&l&&(m=`${l}-${Zs(c||"Root")}`);let y=fn;c==="Root"||c==="root"?y=r:c?y=i:Pg(s)&&(y=void 0);const b=bm(s,P._extends({shouldForwardProp:y,label:m},p)),v=(x,...w)=>{const T=w?w.map(k=>{if(typeof k=="function"&&k.__emotion_real!==k)return V=>Js({styledArg:k,props:V,defaultTheme:n,themeId:t});if(je(k)){let V=k,j;return k&&k.variants&&(j=k.variants,delete V.variants,V=H=>{let z=k;return _n(H,Mn(j),j).forEach(W=>{z=be(z,W)}),z}),V}return k}):[];let E=x;if(je(x)){let k;x&&x.variants&&(k=x.variants,delete E.variants,E=V=>{let j=x;return _n(V,Mn(k),k).forEach(z=>{j=be(j,z)}),j})}else typeof x=="function"&&x.__emotion_real!==x&&(E=k=>Js({styledArg:x,props:k,defaultTheme:n,themeId:t}));l&&h&&T.push(k=>{const V=hn(P._extends({},k,{defaultTheme:n,themeId:t})),j=Cg(l,V);if(j){const H={};return Object.entries(j).forEach(([z,ne])=>{H[z]=typeof ne=="function"?ne(P._extends({},k,{theme:V})):ne}),h(k,H)}return null}),l&&!g&&T.push(k=>{const V=hn(P._extends({},k,{defaultTheme:n,themeId:t}));return kg(k,Ag(l,V),V,l)}),f||T.push(o);const C=T.length-w.length;if(Array.isArray(x)&&C>0){const k=new Array(C).fill("");E=[...x,...k],E.raw=[...x.raw,...k]}const O=b(E,...T);if(process.env.NODE_ENV!=="production"){let k;l&&(k=`${l}${Ee(c||"")}`),k===void 0&&(k=`Styled(${cp(s)})`),O.displayName=k}return s.muiName&&(O.muiName=s.muiName),O};return b.withConfig&&(v.withConfig=b.withConfig),v}}function Rg(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:nl(t.components[n].defaultProps,r)}function Vg({props:e,name:t,defaultTheme:n,themeId:r}){let i=wg(n);return r&&(i=i[r]||i),Rg({theme:i,name:t,props:e})}function Sl(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Math.min(Math.max(t,e),n)}function Ng(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function wt(e){if(e.type)return e;if(e.charAt(0)==="#")return wt(Ng(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
47
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:bt(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
48
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:bt(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function yi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ig(e){e=wt(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(c,d=(c+n/30)%12)=>i-o*Math.max(Math.min(d-3,9-d,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),yi({type:a,values:l})}function eo(e){e=wt(e);let t=e.type==="hsl"||e.type==="hsla"?wt(Ig(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function to(e,t){const n=eo(e),r=eo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Dg(e,t){if(e=wt(e),t=Sl(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return yi(e)}function Lg(e,t){if(e=wt(e),t=Sl(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return yi(e)}function jg(e,t){return P._extends({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const zg={black:"#000",white:"#fff"},$t=zg,Bg={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},$g=Bg,Fg={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},nt=Fg,Wg={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},rt=Wg,Ug={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},kt=Ug,Hg={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},it=Hg,Gg={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},st=Gg,qg={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ot=qg,Yg=["mode","contrastThreshold","tonalOffset"],no={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$t.white,default:$t.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},mr={text:{primary:$t.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$t.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ro(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Lg(e.main,i):t==="dark"&&(e.dark=Dg(e.main,o)))}function Kg(e="light"){return e==="dark"?{main:it[200],light:it[50],dark:it[400]}:{main:it[700],light:it[400],dark:it[800]}}function Xg(e="light"){return e==="dark"?{main:nt[200],light:nt[50],dark:nt[400]}:{main:nt[500],light:nt[300],dark:nt[700]}}function Qg(e="light"){return e==="dark"?{main:rt[500],light:rt[300],dark:rt[700]}:{main:rt[700],light:rt[400],dark:rt[800]}}function Zg(e="light"){return e==="dark"?{main:st[400],light:st[300],dark:st[700]}:{main:st[700],light:st[500],dark:st[900]}}function Jg(e="light"){return e==="dark"?{main:ot[400],light:ot[300],dark:ot[700]}:{main:ot[800],light:ot[500],dark:ot[900]}}function e0(e="light"){return e==="dark"?{main:kt[400],light:kt[300],dark:kt[700]}:{main:"#ed6c02",light:kt[500],dark:kt[900]}}function t0(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=P._objectWithoutPropertiesLoose(e,Yg),o=e.primary||Kg(t),s=e.secondary||Xg(t),a=e.error||Qg(t),l=e.info||Zg(t),c=e.success||Jg(t),d=e.warning||e0(t);function u(f){const m=to(f,mr.text.primary)>=n?mr.text.primary:no.text.primary;if(process.env.NODE_ENV!=="production"){const y=to(f,m);y<3&&console.error([`MUI: The contrast ratio of ${y}:1 for ${m} on ${f}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
49
|
+
`))}return m}const h=({color:f,name:m,mainShade:y=500,lightShade:b=300,darkShade:v=700})=>{if(f=P._extends({},f),!f.main&&f[y]&&(f.main=f[y]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
|
|
50
|
+
The color object needs to have a \`main\` property or a \`${y}\` property.`:bt(11,m?` (${m})`:"",y));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
|
|
51
|
+
\`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
|
|
52
|
+
|
|
53
|
+
Did you intend to use one of the following approaches?
|
|
54
|
+
|
|
55
|
+
import { green } from "@mui/material/colors";
|
|
56
|
+
|
|
57
|
+
const theme1 = createTheme({ palette: {
|
|
58
|
+
primary: green,
|
|
59
|
+
} });
|
|
60
|
+
|
|
61
|
+
const theme2 = createTheme({ palette: {
|
|
62
|
+
primary: { main: green[500] },
|
|
63
|
+
} });`:bt(12,m?` (${m})`:"",JSON.stringify(f.main)));return ro(f,"light",b,r),ro(f,"dark",v,r),f.contrastText||(f.contrastText=u(f.main)),f},p={dark:mr,light:no};return process.env.NODE_ENV!=="production"&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),be(P._extends({common:P._extends({},$t),mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:a,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:$g,contrastThreshold:n,getContrastText:u,augmentColor:h,tonalOffset:r},p[t]),i)}const n0=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function r0(e){return Math.round(e*1e5)/1e5}const io={textTransform:"uppercase"},so='"Roboto", "Helvetica", "Arial", sans-serif';function i0(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=so,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:d,pxToRem:u}=n,h=P._objectWithoutPropertiesLoose(n,n0);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=i/14,g=u||(y=>`${y/c*p}rem`),f=(y,b,v,x,w)=>P._extends({fontFamily:r,fontWeight:y,fontSize:g(b),lineHeight:v},r===so?{letterSpacing:`${r0(x/b)}em`}:{},w,d),m={h1:f(o,96,1.167,-1.5),h2:f(o,60,1.2,-.5),h3:f(s,48,1.167,0),h4:f(s,34,1.235,.25),h5:f(s,24,1.334,0),h6:f(a,20,1.6,.15),subtitle1:f(s,16,1.75,.15),subtitle2:f(a,14,1.57,.1),body1:f(s,16,1.5,.15),body2:f(s,14,1.43,.15),button:f(a,14,1.75,.4,io),caption:f(s,12,1.66,.4),overline:f(s,12,2.66,1,io),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return be(P._extends({htmlFontSize:c,pxToRem:g,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},m),h,{clone:!1})}const s0=.2,o0=.14,a0=.12;function F(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${s0})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${o0})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${a0})`].join(",")}const l0=["none",F(0,2,1,-1,0,1,1,0,0,1,3,0),F(0,3,1,-2,0,2,2,0,0,1,5,0),F(0,3,3,-2,0,3,4,0,0,1,8,0),F(0,2,4,-1,0,4,5,0,0,1,10,0),F(0,3,5,-1,0,5,8,0,0,1,14,0),F(0,3,5,-1,0,6,10,0,0,1,18,0),F(0,4,5,-2,0,7,10,1,0,2,16,1),F(0,5,5,-3,0,8,10,1,0,3,14,2),F(0,5,6,-3,0,9,12,1,0,3,16,2),F(0,6,6,-3,0,10,14,1,0,4,18,3),F(0,6,7,-4,0,11,15,1,0,4,20,3),F(0,7,8,-4,0,12,17,2,0,5,22,4),F(0,7,8,-4,0,13,19,2,0,5,24,4),F(0,7,9,-4,0,14,21,2,0,5,26,4),F(0,8,9,-5,0,15,22,2,0,6,28,5),F(0,8,10,-5,0,16,24,2,0,6,30,5),F(0,8,11,-5,0,17,26,2,0,6,32,5),F(0,9,11,-5,0,18,28,2,0,7,34,6),F(0,9,12,-6,0,19,29,2,0,7,36,6),F(0,10,13,-6,0,20,31,3,0,8,38,7),F(0,10,13,-6,0,21,33,3,0,8,40,7),F(0,10,14,-6,0,22,35,3,0,8,42,7),F(0,11,14,-7,0,23,36,3,0,9,44,8),F(0,11,15,-7,0,24,38,3,0,9,46,8)],c0=l0,u0=["duration","easing","delay"],d0={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},f0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function oo(e){return`${Math.round(e)}ms`}function h0(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function p0(e){const t=P._extends({},d0,e.easing),n=P._extends({},f0,e.duration),r=(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=o,c=P._objectWithoutPropertiesLoose(o,u0);if(process.env.NODE_ENV!=="production"){const d=h=>typeof h=="string",u=h=>!isNaN(parseFloat(h));!d(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!u(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(a)||console.error('MUI: Argument "easing" must be a string.'),!u(l)&&!d(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
64
|
+
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof s=="string"?s:oo(s)} ${a} ${typeof l=="string"?l:oo(l)}`).join(",")};return P._extends({getAutoHeightDuration:h0,create:r},e,{easing:t,duration:n})}const m0={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},g0=m0,y0=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function v0(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=P._objectWithoutPropertiesLoose(e,y0);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":bt(18));const a=t0(r),l=gi(e);let c=be(l,{mixins:jg(l.breakpoints,n),palette:a,shadows:c0.slice(),typography:i0(a,o),transitions:p0(i),zIndex:P._extends({},g0)});if(c=be(c,s),c=t.reduce((d,u)=>be(d,u),c),process.env.NODE_ENV!=="production"){const d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],u=(h,p)=>{let g;for(g in h){const f=h[g];if(d.indexOf(g)!==-1&&Object.keys(f).length>0){if(process.env.NODE_ENV!=="production"){const m=ii("",g);console.error([`MUI: The \`${p}\` component increases the CSS specificity of the \`${g}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${m}' syntax:`,JSON.stringify({root:{[`&.${m}`]:f}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
65
|
+
`))}h[g]={}}}};Object.keys(c.components).forEach(h=>{const p=c.components[h].styleOverrides;p&&h.indexOf("Mui")===0&&u(p,h)})}return c.unstable_sxConfig=P._extends({},pi,s==null?void 0:s.unstable_sxConfig),c.unstable_sx=function(u){return mi({sx:u,theme:this})},c}const b0=v0(),Tl=b0,El="$$material";function x0({props:e,name:t}){return Vg({props:e,name:t,defaultTheme:Tl,themeId:El})}const w0=e=>fn(e)&&e!=="classes",S0=_g({themeId:El,defaultTheme:Tl,rootShouldForwardProp:w0}),T0=S0;function E0(e){return ii("MuiSvgIcon",e)}mp("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const P0=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],C0=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Ee(t)}`,`fontSize${Ee(n)}`]};return up(i,E0,r)},A0=T0("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ee(n.color)}`],t[`fontSize${Ee(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,l,c,d,u,h,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(u=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?u:{action:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),vi=R.forwardRef(function(t,n){const r=x0({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:u,viewBox:h="0 0 24 24"}=r,p=P._objectWithoutPropertiesLoose(r,P0),g=R.isValidElement(i)&&i.type==="svg",f=P._extends({},r,{color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:h,hasSvgAsChild:g}),m={};d||(m.viewBox=h);const y=C0(f);return S.jsxs(A0,P._extends({as:a,className:P.clsx(y.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:n},m,p,g&&i.props,{ownerState:f,children:[g?i.props.children:i,u?S.jsx("title",{children:u}):null]}))});process.env.NODE_ENV!=="production"&&(vi.propTypes={children:P.PropTypes.node,classes:P.PropTypes.object,className:P.PropTypes.string,color:P.PropTypes.oneOfType([P.PropTypes.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),P.PropTypes.string]),component:P.PropTypes.elementType,fontSize:P.PropTypes.oneOfType([P.PropTypes.oneOf(["inherit","large","medium","small"]),P.PropTypes.string]),htmlColor:P.PropTypes.string,inheritViewBox:P.PropTypes.bool,shapeRendering:P.PropTypes.string,sx:P.PropTypes.oneOfType([P.PropTypes.arrayOf(P.PropTypes.oneOfType([P.PropTypes.func,P.PropTypes.object,P.PropTypes.bool])),P.PropTypes.func,P.PropTypes.object]),titleAccess:P.PropTypes.string,viewBox:P.PropTypes.string});vi.muiName="SvgIcon";const ao=vi;function k0(e,t){function n(r,i){return S.jsx(ao,P._extends({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ao.muiName,R.memo(R.forwardRef(n))}const O0=k0(S.jsx("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");function lo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var co=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function M0(e,t){return!!(e===t||co(e)&&co(t))}function _0(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!M0(e[n],t[n]))return!1;return!0}function gr(e,t){t===void 0&&(t=_0);var n,r=[],i,o=!1;function s(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return o&&n===this&&t(a,r)||(i=e.apply(this,a),o=!0,n=this,r=a),i}return s}var R0=typeof performance=="object"&&typeof performance.now=="function",uo=R0?function(){return performance.now()}:function(){return Date.now()};function fo(e){cancelAnimationFrame(e.id)}function V0(e,t){var n=uo();function r(){uo()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var yr=-1;function ho(e){if(e===void 0&&(e=!1),yr===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),yr=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return yr}var at=null;function po(e){if(e===void 0&&(e=!1),at===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?at="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?at="negative":at="positive-ascending"),document.body.removeChild(t),at}return at}process.env.NODE_ENV;var N0=150,I0=function(t,n){return t},pn=null,mn=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(pn=new WeakSet,mn=new WeakSet);function D0(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return t=function(u){P._inheritsLoose(h,u);function h(g){var f;return f=u.call(this,g)||this,f._instanceProps=l(f.props,lo(f)),f._outerRef=void 0,f._resetIsScrollingTimeoutId=null,f.state={instance:lo(f),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof f.props.initialScrollOffset=="number"?f.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},f._callOnItemsRendered=void 0,f._callOnItemsRendered=gr(function(m,y,b,v){return f.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:v})}),f._callOnScroll=void 0,f._callOnScroll=gr(function(m,y,b){return f.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),f._getItemStyle=void 0,f._getItemStyle=function(m){var y=f.props,b=y.direction,v=y.itemSize,x=y.layout,w=f._getItemStyleCache(c&&v,c&&x,c&&b),T;if(w.hasOwnProperty(m))T=w[m];else{var E=n(f.props,m,f._instanceProps),C=i(f.props,m,f._instanceProps),O=b==="horizontal"||x==="horizontal",k=b==="rtl",V=O?E:0;w[m]=T={position:"absolute",left:k?void 0:V,right:k?V:void 0,top:O?0:E,height:O?"100%":C,width:O?C:"100%"}}return T},f._getItemStyleCache=void 0,f._getItemStyleCache=gr(function(m,y,b){return{}}),f._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,v=y.scrollLeft,x=y.scrollWidth;f.setState(function(w){if(w.scrollOffset===v)return null;var T=f.props.direction,E=v;if(T==="rtl")switch(po()){case"negative":E=-v;break;case"positive-descending":E=x-b-v;break}return E=Math.max(0,Math.min(E,x-b)),{isScrolling:!0,scrollDirection:w.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},f._resetIsScrollingDebounced)},f._onScrollVertical=function(m){var y=m.currentTarget,b=y.clientHeight,v=y.scrollHeight,x=y.scrollTop;f.setState(function(w){if(w.scrollOffset===x)return null;var T=Math.max(0,Math.min(x,v-b));return{isScrolling:!0,scrollDirection:w.scrollOffset<T?"forward":"backward",scrollOffset:T,scrollUpdateWasRequested:!1}},f._resetIsScrollingDebounced)},f._outerRefSetter=function(m){var y=f.props.outerRef;f._outerRef=m,typeof y=="function"?y(m):y!=null&&typeof y=="object"&&y.hasOwnProperty("current")&&(y.current=m)},f._resetIsScrollingDebounced=function(){f._resetIsScrollingTimeoutId!==null&&fo(f._resetIsScrollingTimeoutId),f._resetIsScrollingTimeoutId=V0(f._resetIsScrolling,N0)},f._resetIsScrolling=function(){f._resetIsScrollingTimeoutId=null,f.setState({isScrolling:!1},function(){f._getItemStyleCache(-1,null)})},f}h.getDerivedStateFromProps=function(f,m){return L0(f,m),d(f),null};var p=h.prototype;return p.scrollTo=function(f){f=Math.max(0,f),this.setState(function(m){return m.scrollOffset===f?null:{scrollDirection:m.scrollOffset<f?"forward":"backward",scrollOffset:f,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},p.scrollToItem=function(f,m){m===void 0&&(m="auto");var y=this.props,b=y.itemCount,v=y.layout,x=this.state.scrollOffset;f=Math.max(0,Math.min(f,b-1));var w=0;if(this._outerRef){var T=this._outerRef;v==="vertical"?w=T.scrollWidth>T.clientWidth?ho():0:w=T.scrollHeight>T.clientHeight?ho():0}this.scrollTo(o(this.props,f,m,x,this._instanceProps,w))},p.componentDidMount=function(){var f=this.props,m=f.direction,y=f.initialScrollOffset,b=f.layout;if(typeof y=="number"&&this._outerRef!=null){var v=this._outerRef;m==="horizontal"||b==="horizontal"?v.scrollLeft=y:v.scrollTop=y}this._callPropsCallbacks()},p.componentDidUpdate=function(){var f=this.props,m=f.direction,y=f.layout,b=this.state,v=b.scrollOffset,x=b.scrollUpdateWasRequested;if(x&&this._outerRef!=null){var w=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(po()){case"negative":w.scrollLeft=-v;break;case"positive-ascending":w.scrollLeft=v;break;default:var T=w.clientWidth,E=w.scrollWidth;w.scrollLeft=E-T-v;break}else w.scrollLeft=v;else w.scrollTop=v}this._callPropsCallbacks()},p.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&fo(this._resetIsScrollingTimeoutId)},p.render=function(){var f=this.props,m=f.children,y=f.className,b=f.direction,v=f.height,x=f.innerRef,w=f.innerElementType,T=f.innerTagName,E=f.itemCount,C=f.itemData,O=f.itemKey,k=O===void 0?I0:O,V=f.layout,j=f.outerElementType,H=f.outerTagName,z=f.style,ne=f.useIsScrolling,W=f.width,ae=this.state.isScrolling,fe=b==="horizontal"||V==="horizontal",ye=fe?this._onScrollHorizontal:this._onScrollVertical,He=this._getRangeToRender(),B=He[0],Ce=He[1],Ge=[];if(E>0)for(var we=B;we<=Ce;we++)Ge.push(A.createElement(m,{data:C,key:k(we,C),index:we,isScrolling:ne?ae:void 0,style:this._getItemStyle(we)}));var qe=r(this.props,this._instanceProps);return A.createElement(j||H||"div",{className:y,onScroll:ye,ref:this._outerRefSetter,style:P._extends({position:"relative",height:v,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},z)},A.createElement(w||T||"div",{children:Ge,ref:x,style:{height:fe?"100%":qe,pointerEvents:ae?"none":void 0,width:fe?qe:"100%"}}))},p._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var f=this.props.itemCount;if(f>0){var m=this._getRangeToRender(),y=m[0],b=m[1],v=m[2],x=m[3];this._callOnItemsRendered(y,b,v,x)}}if(typeof this.props.onScroll=="function"){var w=this.state,T=w.scrollDirection,E=w.scrollOffset,C=w.scrollUpdateWasRequested;this._callOnScroll(T,E,C)}},p._getRangeToRender=function(){var f=this.props,m=f.itemCount,y=f.overscanCount,b=this.state,v=b.isScrolling,x=b.scrollDirection,w=b.scrollOffset;if(m===0)return[0,0,0,0];var T=s(this.props,w,this._instanceProps),E=a(this.props,T,w,this._instanceProps),C=!v||x==="backward"?Math.max(1,y):1,O=!v||x==="forward"?Math.max(1,y):1;return[Math.max(0,T-C),Math.max(0,Math.min(m-1,E+O)),T,E]},h}(A.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var L0=function(t,n){var r=t.children,i=t.direction,o=t.height,s=t.layout,a=t.innerTagName,l=t.outerTagName,c=t.width,d=n.instance;if(process.env.NODE_ENV!=="production"){(a!=null||l!=null)&&mn&&!mn.has(d)&&(mn.add(d),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var u=i==="horizontal"||s==="horizontal";switch(i){case"horizontal":case"vertical":pn&&!pn.has(d)&&(pn.add(d),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+i+'" was specified.'))}switch(s){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+s+'" was specified.'))}if(r==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(r===null?"null":typeof r)+'" was specified.'));if(u&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!u&&typeof o!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(o===null?"null":typeof o)+'" was specified.'))}},j0=50,pt=function(t,n,r){var i=t,o=i.itemSize,s=r.itemMetadataMap,a=r.lastMeasuredIndex;if(n>a){var l=0;if(a>=0){var c=s[a];l=c.offset+c.size}for(var d=a+1;d<=n;d++){var u=o(d);s[d]={offset:l,size:u},l+=u}r.lastMeasuredIndex=n}return s[n]},z0=function(t,n,r){var i=n.itemMetadataMap,o=n.lastMeasuredIndex,s=o>0?i[o].offset:0;return s>=r?Pl(t,n,o,0,r):B0(t,n,Math.max(0,o),r)},Pl=function(t,n,r,i,o){for(;i<=r;){var s=i+Math.floor((r-i)/2),a=pt(t,s,n).offset;if(a===o)return s;a<o?i=s+1:a>o&&(r=s-1)}return i>0?i-1:0},B0=function(t,n,r,i){for(var o=t.itemCount,s=1;r<o&&pt(t,r,n).offset<i;)r+=s,s*=2;return Pl(t,n,Math.min(r,o-1),Math.floor(r/2),i)},mo=function(t,n){var r=t.itemCount,i=n.itemMetadataMap,o=n.estimatedItemSize,s=n.lastMeasuredIndex,a=0;if(s>=r&&(s=r-1),s>=0){var l=i[s];a=l.offset+l.size}var c=r-s-1,d=c*o;return a+d},$0=D0({getItemOffset:function(t,n,r){return pt(t,n,r).offset},getItemSize:function(t,n,r){return r.itemMetadataMap[n].size},getEstimatedTotalSize:mo,getOffsetForIndexAndAlignment:function(t,n,r,i,o,s){var a=t.direction,l=t.height,c=t.layout,d=t.width,u=a==="horizontal"||c==="horizontal",h=u?d:l,p=pt(t,n,o),g=mo(t,o),f=Math.max(0,Math.min(g-h,p.offset)),m=Math.max(0,p.offset-h+p.size+s);switch(r==="smart"&&(i>=m-h&&i<=f+h?r="auto":r="center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);case"auto":default:return i>=m&&i<=f?i:i<m?m:f}},getStartIndexForOffset:function(t,n,r){return z0(t,r,n)},getStopIndexForStartIndex:function(t,n,r,i){for(var o=t.direction,s=t.height,a=t.itemCount,l=t.layout,c=t.width,d=o==="horizontal"||l==="horizontal",u=d?c:s,h=pt(t,n,i),p=r+u,g=h.offset+h.size,f=n;f<a-1&&g<p;)f++,g+=pt(t,f,i).size;return f},initInstanceProps:function(t,n){var r=t,i=r.estimatedItemSize,o={itemMetadataMap:{},estimatedItemSize:i||j0,lastMeasuredIndex:-1};return n.resetAfterIndex=function(s,a){a===void 0&&(a=!0),o.lastMeasuredIndex=Math.min(o.lastMeasuredIndex,s-1),n._getItemStyleCache(-1),a&&n.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var n=t.itemSize;if(process.env.NODE_ENV!=="production"&&typeof n!="function")throw Error('An invalid "itemSize" prop has been specified. Value should be a function. '+('"'+(n===null?"null":typeof n)+'" was specified.'))}});function gn(e,t){return t?e:void 0}function Dr(e){return S.jsx(X.Stack,{sx:{cursor:"pointer"},onClick:t=>{var n;t.preventDefault(),t.stopPropagation(),(n=e.onClick)==null||n.call(e,e.option)},...e.stackProps,children:S.jsx(X.Stack,{sx:{p:1,transition:"0.2s",borderRadius:"5px",cursor:"pointer",...gn({backgroundColor:"#eeeeee80"},e.select),":hover":{backgroundColor:"#eeeeee80",borderColor:"transparent"}},children:e.renderOption(e.option)})})}const Rn=37,F0=(e,t)=>{const s=document.createElement("p");s.innerText=t,s.style.width=`${e-16-16-4}px`,document.body.appendChild(s);const a=s.offsetHeight;return document.body.removeChild(s),a>21?Rn+21:Rn};function W0(e){const[t,n]=A.useState(!1),[r,i]=A.useState(""),[o,s]=A.useState(""),[a,l]=A.useState(!1),{isRequired:c=!1}=e,d=A.useCallback(P._.debounce(x=>{var w;(w=e.handleChangeSearch)==null||w.call(e,x)},300),[e.handleChangeSearch]),u=()=>{n(!t)},h=()=>{n(!1)};A.useEffect(()=>{i(e.value?e.getOptionLabel(e.value):"")},[e.value]),A.useEffect(()=>{t||i(e.value?e.getOptionLabel(e.value):"")},[t]),A.useEffect(()=>{l(e.searchLoading)},[e.paging.rows,e.searchLoading]);const p=e.paging.rows,{hasNextPage:g}=e,f=g?p.length+1:p.length,m=()=>e.isNextPageLoading?void 0:e.loadNextPage(o),y=x=>!g||x<p.length,b=x=>{i(x.target.value),t&&(s(x.target.value),d(x.target.value),l(!0))},v=A.useRef(null);return S.jsx(X.ClickAwayListener,{onClickAway:h,mouseEvent:"onMouseDown",touchEvent:"onTouchEnd",children:S.jsx("div",{ref:v,style:{width:e.wrapperWidth??"auto"},children:S.jsxs(X.Stack,{sx:{position:"relative"},children:[S.jsx(X.TextField,{required:c,label:e.label,value:r,disabled:e.loading||e.disabled||e.readOnly,fullWidth:!0,error:e.error,helperText:e.helperText,onClick:x=>{e.loading||e.disabled||e.readOnly||(x.preventDefault(),x.stopPropagation(),n(!0))},autoComplete:"off",onChange:b,placeholder:e.placeholder||"All options",sx:{"& input:not(:focus)":{"&::placeholder":{color:e.placeHolderColor||"#C5C5C5",opacity:1}}},InputProps:{readOnly:e.readOnly,endAdornment:S.jsx(X.IconButton,{size:"small",sx:{padding:"1px"},onClick:x=>{x.preventDefault(),x.stopPropagation(),u()},disabled:e.loading||e.disabled||e.readOnly,children:e.loading?S.jsx(X.CircularProgress,{size:"16px"}):S.jsx(O0,{fontSize:"small",style:{transition:"0.3s"},className:t?"rotate":""})})}}),S.jsx(X.Fade,{in:t,timeout:0,unmountOnExit:!1,children:S.jsxs(X.Paper,{sx:{position:"absolute",top:"calc(100% + 2px)",zIndex:2,left:0,right:0,p:1},children:[!e.disabledAllOption&&S.jsx(X.Stack,{sx:{...gn({display:"none"},!!a)},children:S.jsx(X.Stack,{children:S.jsx(Dr,{option:void 0,select:!e.value,renderOption:()=>S.jsx(X.Typography,{children:e.placeholder||"All options"}),onClick:()=>{var x,w;h(),(x=e.onChange)==null||x.call(e,void 0),(w=e.handleChangeSearch)==null||w.call(e,"")}})})}),!a&&S.jsx(P.InfiniteLoader,{isItemLoaded:y,itemCount:f,loadMoreItems:m,threshold:5,children:({onItemsRendered:x,ref:w})=>S.jsx($0,{ref:w,onItemsRendered:x,height:Rn*Math.min(e.itemsNumber||6,f),itemCount:f,itemSize:T=>{var E;return F0((E=v.current)==null?void 0:E.offsetWidth,p[T]?e.getOptionLabel(p[T]):"")},width:"100%",className:"styled-scroll",children:({index:T,style:E})=>{var O;const C=p[T];return y(T)?S.jsx(Dr,{stackProps:{style:E},option:C,renderOption:k=>{var V;return S.jsxs(X.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[S.jsx(X.Typography,{children:e.getOptionLabel(k)}),(V=e.renderOptionTooltip)==null?void 0:V.call(e,k)]})},onClick:k=>{var V;h(),(V=e.onChange)==null||V.call(e,k)},select:((O=e.isEqual)==null?void 0:O.call(e,C,e.value))??P._.isEqual(C,e.value)}):S.jsx(X.Stack,{style:E,sx:{height:Rn,pl:1},justifyContent:"center",children:S.jsx(X.Typography,{children:"Loading..."})})}})}),S.jsx(X.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...gn({display:"none"},!a)},children:S.jsx(X.Typography,{color:"grayText",children:"Searching..."})}),S.jsx(X.Stack,{sx:{height:30,display:"flex",justifyContent:"center",paddingLeft:"5px",...gn({display:"none"},!!(p.length||e.loading||a))},children:S.jsx(X.Typography,{color:"grayText",children:"No options"})})]})})]})})})}function U0(e){var d;const{listProps:t}=e,[n,r]=A.useState({initLoading:!e.disabled,searchLoading:!1,hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:((d=e.listProps)==null?void 0:d.pageSize)||20,rows:[],total:0,totalPages:1}}),i=async(u,h)=>{var p,g;if(e.list)r(()=>{var y;const f=((y=u==null?void 0:u.search)==null?void 0:y.content)||"";return{hasNextPage:!1,isNextPageLoading:!1,paging:{page:1,pageSize:1e5,rows:e.list.options.filter(b=>e.list.searchOption?e.list.searchOption(b,f):P.search(b,f,e.list.searchFields)),total:e.list.options.length,totalPages:1},searchLoading:!1,initLoading:!1}});else{r(f=>({...f,isNextPageLoading:!0}));try{const f={page:1,pageSize:20,filter:{...t==null?void 0:t.filter,...u==null?void 0:u.filter},...P.lodashExports.omit(t,"filter"),...P.lodashExports.omit(u,"filter"),search:{fields:((p=t==null?void 0:t.search)==null?void 0:p.fields)??[],content:((g=u==null?void 0:u.search)==null?void 0:g.content)??""}};h&&(f.filter={},f.search&&(f.search.content=""),f.page=1);const m=await e.getList(f);r(y=>({initLoading:!1,searchLoading:!1,isNextPageLoading:!1,paging:{...m,rows:(u==null?void 0:u.page)===1?m.rows:y.paging.rows.concat(m.rows)},hasNextPage:m.page<m.totalPages}))}catch{}}},o=()=>(r(u=>({...u,initLoading:!0})),i(void 0,!0)),s=u=>(r(h=>({...h,initLoading:!0})),i(u)),a=u=>{i({page:n.paging.page+1,search:{content:u}})},l=u=>{r(h=>({...h,searchLoading:!0})),i({page:1,search:{content:u}})};A.useEffect(()=>{e.disabled||(r(u=>({...u,initLoading:!0})),i({page:1}))},[...e.dependencyList||[]]);const c=()=>{r(u=>({...u,initLoading:!u.initLoading}))};return{...e,loadNextPage:a,handleChangeSearch:l,paging:n.paging,hasNextPage:n.hasNextPage,isNextPageLoading:n.isNextPageLoading,searchLoading:n.searchLoading,loading:e.loading||n.initLoading,getList:s,reset:o,toggleLoading:c}}exports.pushError=P.pushError;exports.pushSuccess=P.pushSuccess;exports.pushWarning=P.pushWarning;exports.AutocompleteOption=Dr;exports.GlobalMenu=np;exports.StyledAutocomplete=W0;exports.ToastConfig=wc;exports.TopBar=Dl;exports.useStyledAutocomplete=U0;
|