(()=>{var e,t,o={35(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(189);t.getOriginalCounterPart=r.getOriginalCounterPart,t.getClones=r.getClones,t.checkClonesPosition=r.checkClonesPosition,t.getInitialSlideInInfiniteMode=r.getInitialSlideInInfiniteMode;var n=o(867);t.getWidthFromDeviceType=n.getWidthFromDeviceType,t.getPartialVisibilityGutter=n.getPartialVisibilityGutter,t.getItemClientSideWidth=n.getItemClientSideWidth;var i=o(802);t.getInitialState=i.getInitialState,t.getIfSlideIsVisbile=i.getIfSlideIsVisbile,t.getTransformForCenterMode=i.getTransformForCenterMode,t.getTransformForPartialVsibile=i.getTransformForPartialVsibile,t.isInLeftEnd=i.isInLeftEnd,t.isInRightEnd=i.isInRightEnd,t.notEnoughChildren=i.notEnoughChildren,t.getSlidesToSlide=i.getSlidesToSlide;var s=o(259);t.throttle=s.default;var a=o(713);t.throwError=a.default;var l=o(650);t.populateNextSlides=l.populateNextSlides;var c=o(862);t.populatePreviousSlides=c.populatePreviousSlides;var d=o(251);t.populateSlidesOnMouseTouchMove=d.populateSlidesOnMouseTouchMove},145(e,t,o){e.exports=o(961)},163(e,t,o){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(609),s=o(35),a=o(424),l=o(169),c=o(371),d=o(519),u=o(802),p=400,f="transform 400ms ease-in-out",m=function(e){function t(t){var o=e.call(this,t)||this;return o.containerRef=i.createRef(),o.listRef=i.createRef(),o.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:i.Children.count(t.children),deviceType:"",domLoaded:!1,transform:0,containerWidth:0},o.onResize=o.onResize.bind(o),o.handleDown=o.handleDown.bind(o),o.handleMove=o.handleMove.bind(o),o.handleOut=o.handleOut.bind(o),o.onKeyUp=o.onKeyUp.bind(o),o.handleEnter=o.handleEnter.bind(o),o.setIsInThrottle=o.setIsInThrottle.bind(o),o.next=s.throttle(o.next.bind(o),t.transitionDuration||p,o.setIsInThrottle),o.previous=s.throttle(o.previous.bind(o),t.transitionDuration||p,o.setIsInThrottle),o.goToSlide=s.throttle(o.goToSlide.bind(o),t.transitionDuration||p,o.setIsInThrottle),o.onMove=!1,o.initialX=0,o.lastX=0,o.isAnimationAllowed=!1,o.direction="",o.initialY=0,o.isInThrottle=!1,o.transformPlaceHolder=0,o}return n(t,e),t.prototype.resetTotalItems=function(){var e=this,t=i.Children.count(this.props.children),o=s.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,t));this.setState({totalItems:t,currentSlide:o},function(){e.setContainerAndItemWidth(e.state.slidesToShow,!0)})},t.prototype.setIsInThrottle=function(e){void 0===e&&(e=!1),this.isInThrottle=e},t.prototype.setTransformDirectly=function(e,t){var o=this.props.additionalTransfrom;this.transformPlaceHolder=e;var r=u.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(t),this.listRef.current.style.transform="translate3d("+(r+o)+"px,0,0)")},t.prototype.setAnimationDirectly=function(e){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=e?this.props.customTransition||f:"none")},t.prototype.componentDidMount=function(){this.setState({domLoaded:!0}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(!0),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},t.prototype.setClones=function(e,t,o,r){var n=this;void 0===r&&(r=!1),this.isAnimationAllowed=!1;var a=i.Children.toArray(this.props.children),l=s.getInitialSlideInInfiniteMode(e||this.state.slidesToShow,a),c=s.getClones(this.state.slidesToShow,a),d=a.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:c.length,currentSlide:o&&!r?d:l},function(){n.correctItemsPosition(t||n.state.itemWidth)})},t.prototype.setItemsToShow=function(e,t){var o=this,r=this.props.responsive;Object.keys(r).forEach(function(n){var i=r[n],s=i.breakpoint,a=i.items,l=s.max,c=s.min,d=[window.innerWidth];window.screen&&window.screen.width&&d.push(window.screen.width);var u=Math.min.apply(Math,d);c<=u&&u<=l&&(o.setState({slidesToShow:a,deviceType:n}),o.setContainerAndItemWidth(a,e,t))})},t.prototype.setContainerAndItemWidth=function(e,t,o){var r=this;if(this.containerRef&&this.containerRef.current){var n=this.containerRef.current.offsetWidth,i=s.getItemClientSideWidth(this.props,e,n);this.setState({containerWidth:n,itemWidth:i},function(){r.props.infinite&&r.setClones(e,i,t,o)}),t&&this.correctItemsPosition(i)}},t.prototype.correctItemsPosition=function(e,t,o){t&&(this.isAnimationAllowed=!0),!t&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var r=this.state.totalItems<this.state.slidesToShow?0:-e*this.state.currentSlide;o&&this.setTransformDirectly(r,!0),this.setState({transform:r})},t.prototype.onResize=function(e){var t;t=!(!this.props.infinite||"boolean"==typeof e&&e),this.setItemsToShow(t)},t.prototype.componentDidUpdate=function(e,o){var r=this,n=e.keyBoardControl,i=e.autoPlay,a=e.children,l=o.containerWidth,c=o.domLoaded,d=o.currentSlide;if(this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==l&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout(function(){r.setItemsToShow(!0)},this.props.transitionDuration||p)),n&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!n&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),i&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),i||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),a.length!==this.props.children.length?t.clonesTimeout=setTimeout(function(){r.props.infinite?r.setClones(r.state.slidesToShow,r.state.itemWidth,!0,!0):r.resetTotalItems()},this.props.transitionDuration||p):this.props.infinite&&this.state.currentSlide!==d&&this.correctClonesPosition({domLoaded:c}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&s.isInRightEnd(this.state)){var u=this.props.transitionDuration||p;t.isInThrottleTimeout=setTimeout(function(){r.setIsInThrottle(!1),r.resetAutoplayInterval(),r.goToSlide(0,void 0,!!r.props.rewindWithAnimation)},u+this.props.autoPlaySpeed)}},t.prototype.correctClonesPosition=function(e){var o=this,r=e.domLoaded,n=i.Children.toArray(this.props.children),a=s.checkClonesPosition(this.state,n,this.props),l=a.isReachingTheEnd,c=a.isReachingTheStart,d=a.nextSlide,u=a.nextPosition;this.state.domLoaded&&r&&(l||c)&&(this.isAnimationAllowed=!1,t.transformTimeout=setTimeout(function(){o.setState({transform:u,currentSlide:d})},this.props.transitionDuration||p))},t.prototype.next=function(e){var o=this;void 0===e&&(e=0);var r=this.props,n=r.afterChange,i=r.beforeChange;if(!s.notEnoughChildren(this.state)){var a=s.populateNextSlides(this.state,this.props,e),l=a.nextSlides,c=a.nextPosition,d=this.state.currentSlide;void 0!==l&&void 0!==c&&("function"==typeof i&&i(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:c,currentSlide:l},function(){"function"==typeof n&&(t.afterChangeTimeout=setTimeout(function(){n(d,o.getState())},o.props.transitionDuration||p))}))}},t.prototype.previous=function(e){var o=this;void 0===e&&(e=0);var r=this.props,n=r.afterChange,i=r.beforeChange;if(!s.notEnoughChildren(this.state)){var a=s.populatePreviousSlides(this.state,this.props,e),l=a.nextSlides,c=a.nextPosition;if(void 0!==l&&void 0!==c){var d=this.state.currentSlide;"function"==typeof i&&i(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:c,currentSlide:l},function(){"function"==typeof n&&(t.afterChangeTimeout2=setTimeout(function(){n(d,o.getState())},o.props.transitionDuration||p))})}}},t.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),t.clonesTimeout&&clearTimeout(t.clonesTimeout),t.isInThrottleTimeout&&clearTimeout(t.isInThrottleTimeout),t.transformTimeout&&clearTimeout(t.transformTimeout),t.afterChangeTimeout&&clearTimeout(t.afterChangeTimeout),t.afterChangeTimeout2&&clearTimeout(t.afterChangeTimeout2),t.afterChangeTimeout3&&clearTimeout(t.afterChangeTimeout3)},t.prototype.resetMoveStatus=function(){this.onMove=!1,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0},t.prototype.getCords=function(e){var t=e.clientX,o=e.clientY;return{clientX:u.parsePosition(this.props,t),clientY:u.parsePosition(this.props,o)}},t.prototype.handleDown=function(e){if(!(!a.isMouseMoveEvent(e)&&!this.props.swipeable||a.isMouseMoveEvent(e)&&!this.props.draggable||this.isInThrottle)){var t=this.getCords(a.isMouseMoveEvent(e)?e:e.touches[0]),o=t.clientX,r=t.clientY;this.onMove=!0,this.initialX=o,this.initialY=r,this.lastX=o,this.isAnimationAllowed=!1}},t.prototype.handleMove=function(e){if(!(!a.isMouseMoveEvent(e)&&!this.props.swipeable||a.isMouseMoveEvent(e)&&!this.props.draggable||s.notEnoughChildren(this.state))){var t=this.getCords(a.isMouseMoveEvent(e)?e:e.touches[0]),o=t.clientX,r=t.clientY,n=this.initialX-o,i=this.initialY-r;if(this.onMove){if(!(Math.abs(n)>Math.abs(i)))return;var l=s.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,o,this.transformPlaceHolder),c=l.direction,d=l.nextPosition,u=l.canContinue;c&&(this.direction=c,u&&void 0!==d&&this.setTransformDirectly(d)),this.lastX=o}}},t.prototype.handleOut=function(e){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var t="touchend"===e.type&&!this.props.swipeable,o=("mouseleave"===e.type||"mouseup"===e.type)&&!this.props.draggable;if(!t&&!o&&this.onMove){if(this.setAnimationDirectly(!0),"right"===this.direction)if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var r=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(r)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);"left"===this.direction&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(r=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(r)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},t.prototype.isInViewport=function(e){var t=e.getBoundingClientRect(),o=t.top,r=void 0===o?0:o,n=t.left,i=void 0===n?0:n,s=t.bottom,a=void 0===s?0:s,l=t.right,c=void 0===l?0:l;return 0<=r&&0<=i&&a<=(window.innerHeight||document.documentElement.clientHeight)&&c<=(window.innerWidth||document.documentElement.clientWidth)},t.prototype.isChildOfCarousel=function(e){return!!(e instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(e)},t.prototype.onKeyUp=function(e){var t=e.target;switch(e.keyCode){case 37:if(this.isChildOfCarousel(t))return this.previous();break;case 39:if(this.isChildOfCarousel(t))return this.next();break;case 9:if(this.isChildOfCarousel(t)&&t instanceof HTMLInputElement&&this.isInViewport(t))return this.next()}},t.prototype.handleEnter=function(e){a.isMouseMoveEvent(e)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0)},t.prototype.goToSlide=function(e,o,r){var n=this;if(void 0===r&&(r=!0),!this.isInThrottle){var i=this.state.itemWidth,s=this.props,a=s.afterChange,l=s.beforeChange,c=this.state.currentSlide;"function"!=typeof l||o&&("object"!=typeof o||o.skipBeforeChange)||l(e,this.getState()),this.isAnimationAllowed=r,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:e,transform:-i*e},function(){n.props.infinite&&n.correctClonesPosition({domLoaded:!0}),"function"!=typeof a||o&&("object"!=typeof o||o.skipAfterChange)||(t.afterChangeTimeout3=setTimeout(function(){a(c,n.getState())},n.props.transitionDuration||p))})}},t.prototype.getState=function(){return this.state},t.prototype.renderLeftArrow=function(e){var t=this,o=this.props,r=o.customLeftArrow,n=o.rtl;return i.createElement(c.LeftArrow,{customLeftArrow:r,getState:function(){return t.getState()},previous:this.previous,disabled:e,rtl:n})},t.prototype.renderRightArrow=function(e){var t=this,o=this.props,r=o.customRightArrow,n=o.rtl;return i.createElement(c.RightArrow,{customRightArrow:r,getState:function(){return t.getState()},next:this.next,disabled:e,rtl:n})},t.prototype.renderButtonGroups=function(){var e=this,t=this.props.customButtonGroup;return t?i.cloneElement(t,{previous:function(){return e.previous()},next:function(){return e.next()},goToSlide:function(t,o){return e.goToSlide(t,o)},carouselState:this.getState()}):null},t.prototype.renderDotsList=function(){var e=this;return i.createElement(l.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return e.getState()}})},t.prototype.renderCarouselItems=function(){var e=[];if(this.props.infinite){var t=i.Children.toArray(this.props.children);e=s.getClones(this.state.slidesToShow,t)}return i.createElement(d.default,{clones:e,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:s.notEnoughChildren(this.state),props:this.props})},t.prototype.render=function(){var e=this.props,t=e.deviceType,o=e.arrows,r=e.renderArrowsWhenDisabled,n=e.removeArrowOnDeviceType,a=e.infinite,l=e.containerClass,c=e.sliderClass,d=e.customTransition,p=e.additionalTransfrom,m=e.renderDotsOutside,h=e.renderButtonGroupOutside,y=e.className,g=e.rtl,v=s.getInitialState(this.state,this.props),b=v.shouldRenderOnSSR,w=v.shouldRenderAtAll,x=s.isInLeftEnd(this.state),S=s.isInRightEnd(this.state),C=o&&!(n&&(t&&-1<n.indexOf(t)||this.state.deviceType&&-1<n.indexOf(this.state.deviceType)))&&!s.notEnoughChildren(this.state)&&w,P=!a&&x,T=!a&&S,N=u.getTransform(this.state,this.props);return i.createElement(i.Fragment,null,i.createElement("div",{className:"react-multi-carousel-list "+l+" "+y,dir:g?"rtl":"ltr",ref:this.containerRef},i.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+c,style:{transition:this.isAnimationAllowed?d||f:"none",overflow:b?"hidden":"unset",transform:"translate3d("+(N+p)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),C&&(!P||r)&&this.renderLeftArrow(P),C&&(!T||r)&&this.renderRightArrow(T),w&&!h&&this.renderButtonGroups(),w&&!m&&this.renderDotsList()),w&&m&&this.renderDotsList(),w&&h&&this.renderButtonGroups())},t.defaultProps={slidesToSlide:1,infinite:!1,draggable:!0,swipeable:!0,arrows:!0,renderArrowsWhenDisabled:!1,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:!0,autoPlaySpeed:3e3,showDots:!1,renderDotsOutside:!1,renderButtonGroupOutside:!1,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:!1,centerMode:!1,additionalTransfrom:0,pauseOnHover:!0,shouldResetAutoplay:!0,rewind:!1,rtl:!1,rewindWithAnimation:!1},t}(i.Component);t.default=m},169(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(609),n=o(189),i=o(811),s=o(802);t.default=function(e){var t=e.props,o=e.state,a=e.goToSlide,l=e.getState,c=t.showDots,d=t.customDot,u=t.dotListClass,p=t.infinite,f=t.children;if(!c||s.notEnoughChildren(o))return null;var m,h=o.currentSlide,y=o.slidesToShow,g=s.getSlidesToSlide(o,t),v=r.Children.toArray(f);m=p?Math.ceil(v.length/g):Math.ceil((v.length-y)/g)+1;var b=i.getLookupTableForNextSlides(m,o,t,v),w=n.getOriginalIndexLookupTableByClones(y,v),x=w[h];return r.createElement("ul",{className:"react-multi-carousel-dot-list "+u},Array(m).fill(0).map(function(e,t){var o,n;if(p){n=b[t];var i=w[n];o=x===i||i<=x&&x<i+g}else{var s=v.length-y,c=t*g;o=(n=s<c?s:c)===h||n<h&&h<n+g&&h<v.length-y}return d?r.cloneElement(d,{index:t,active:o,key:t,onClick:function(){return a(n)},carouselState:l()}):r.createElement("li",{"data-index":t,key:t,className:"react-multi-carousel-dot "+(o?"react-multi-carousel-dot--active":"")},r.createElement("button",{"aria-label":"Go to slide "+(t+1),onClick:function(){return a(n)}}))}))}},189(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOriginalCounterPart=function(e,t,o){var r=t.slidesToShow,n=t.currentSlide;return o.length>2*r?e+2*r:n>=o.length?o.length+e:e},t.getOriginalIndexLookupTableByClones=function(e,t){if(t.length>2*e){for(var o={},r=t.length-2*e,n=t.length-r,i=r,s=0;s<n;s++)o[s]=i,i++;var a=t.length+n,l=a+t.slice(0,2*e).length,c=0;for(s=a;s<=l;s++)o[s]=c,c++;var d=a,u=0;for(s=n;s<d;s++)o[s]=u,u++;return o}o={};var p=3*t.length,f=0;for(s=0;s<p;s++)o[s]=f,++f===t.length&&(f=0);return o},t.getClones=function(e,t){return t.length<e?t:t.length>2*e?t.slice(t.length-2*e,t.length).concat(t,t.slice(0,2*e)):t.concat(t,t)},t.getInitialSlideInInfiniteMode=function(e,t){return t.length>2*e?2*e:t.length},t.checkClonesPosition=function(e,t,o){var r,n=e.currentSlide,i=e.slidesToShow,s=e.itemWidth,a=e.totalItems,l=0,c=0,d=0===n,u=t.length-(t.length-2*i);return t.length<i?(c=l=0,d=r=!1):t.length>2*i?((r=n>=u+t.length)&&(c=-s*(l=n-t.length)),d&&(c=-s*(l=u+(t.length-2*i)))):((r=n>=2*t.length)&&(c=-s*(l=n-t.length)),d&&(c=o.showDots?-s*(l=t.length):-s*(l=a/3))),{isReachingTheEnd:r,isReachingTheStart:d,nextSlide:l,nextPosition:c}}},251(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateSlidesOnMouseTouchMove=function(e,t,o,r,n,i){var s,a,l=e.itemWidth,c=e.slidesToShow,d=e.totalItems,u=e.currentSlide,p=t.infinite,f=!1,m=Math.round((o-r)/l),h=Math.round((r-o)/l),y=o<n;if(n<o&&m<=c){s="right";var g=Math.abs(-l*(d-c)),v=i-(r-n),b=u===d-c;(Math.abs(v)<=g||b&&p)&&(a=v,f=!0)}return y&&h<=c&&(s="left",((v=i+(n-r))<=0||0===u&&p)&&(f=!0,a=v)),{direction:s,nextPosition:a,canContinue:f}}},259(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){var r;return function(){var n=arguments;r||(e.apply(this,n),r=!0,"function"==typeof o&&o(!0),setTimeout(function(){r=!1,"function"==typeof o&&o(!1)},t))}}},338(e,t,o){"use strict";var r=o(795);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},371(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(609);t.LeftArrow=function(e){var t=e.customLeftArrow,o=e.getState,n=e.previous,i=e.disabled,s=e.rtl;if(t)return r.cloneElement(t,{onClick:function(){return n()},carouselState:o(),disabled:i,rtl:s});var a=s?"rtl":"";return r.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+a,onClick:function(){return n()},type:"button",disabled:i})},t.RightArrow=function(e){var t=e.customRightArrow,o=e.getState,n=e.next,i=e.disabled,s=e.rtl;if(t)return r.cloneElement(t,{onClick:function(){return n()},carouselState:o(),disabled:i,rtl:s});var a=s?"rtl":"";return r.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+a,onClick:function(){return n()},type:"button",disabled:i})}},424(e,t,o){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(609);t.isMouseMoveEvent=function(e){return"clientY"in e};var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(i.Component);t.default=s},519(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(609),n=o(35);t.default=function(e){var t=e.props,o=e.state,i=e.goToSlide,s=e.clones,a=e.notEnoughChildren,l=o.itemWidth,c=t.children,d=t.infinite,u=t.itemClass,p=t.itemAriaLabel,f=t.partialVisbile,m=t.partialVisible,h=n.getInitialState(o,t),y=h.flexBisis,g=h.shouldRenderOnSSR,v=h.domFullyLoaded,b=h.partialVisibilityGutter;return h.shouldRenderAtAll?(f&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),r.createElement(r.Fragment,null,(d?s:r.Children.toArray(c)).map(function(e,s){return r.createElement("li",{key:s,"data-index":s,onClick:function(){t.focusOnSelect&&i(s)},"aria-hidden":n.getIfSlideIsVisbile(s,o)?"false":"true","aria-label":p||(e.props.ariaLabel?e.props.ariaLabel:null),style:{flex:g?"1 0 "+y+"%":"auto",position:"relative",width:v?((f||m)&&b&&!a?l-b:l)+"px":"auto"},className:"react-multi-carousel-item "+(n.getIfSlideIsVisbile(s,o)?"react-multi-carousel-item--active":"")+" "+u},e)}))):null}},609(e){"use strict";e.exports=window.React},650(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(802);t.populateNextSlides=function(e,t,o){void 0===o&&(o=0);var n,i,s=e.slidesToShow,a=e.currentSlide,l=e.itemWidth,c=e.totalItems,d=r.getSlidesToSlide(e,t),u=a+1+o+s+(0<o?0:d);return i=u<=c?-l*(n=a+o+(0<o?0:d)):c<u&&a!==c-s?-l*(n=c-s):n=void 0,{nextSlides:n,nextPosition:i}}},713(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=t.partialVisbile,r=t.partialVisible,n=t.centerMode,i=t.ssr,s=t.responsive;if((o||r)&&n)throw new Error("center mode can not be used at the same time with partialVisible");if(!s)throw i?new Error("ssr mode need to be used in conjunction with responsive prop"):new Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(s&&"object"!=typeof s)throw new Error("responsive prop must be an object")}},795(e){"use strict";e.exports=window.ReactDOM},802(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(867);function n(e){var t=e.slidesToShow;return e.totalItems<t}function i(e,t,o){var r=o||e.transform;return!t.infinite&&0===e.currentSlide||n(e)?r:r+e.itemWidth/2}function s(e){var t=e.currentSlide,o=e.totalItems;return!(t+e.slidesToShow<o)}function a(e,t,o,r){void 0===t&&(t=0);var i=e.currentSlide,a=e.slidesToShow,l=s(e),c=!o.infinite&&l,d=r||e.transform;if(n(e))return d;var u=d+i*t;return c?u+(e.containerWidth-(e.itemWidth-t)*a):u}function l(e,t){return e.rtl?-1*t:t}t.notEnoughChildren=n,t.getInitialState=function(e,t){var o,n=e.domLoaded,i=e.slidesToShow,s=e.containerWidth,a=e.itemWidth,l=t.deviceType,c=t.responsive,d=t.ssr,u=t.partialVisbile,p=t.partialVisible,f=Boolean(n&&i&&s&&a);d&&l&&!f&&(o=r.getWidthFromDeviceType(l,c));var m=Boolean(d&&l&&!f&&o);return{shouldRenderOnSSR:m,flexBisis:o,domFullyLoaded:f,partialVisibilityGutter:r.getPartialVisibilityGutter(c,u||p,l,e.deviceType),shouldRenderAtAll:m||f}},t.getIfSlideIsVisbile=function(e,t){var o=t.currentSlide,r=t.slidesToShow;return o<=e&&e<o+r},t.getTransformForCenterMode=i,t.isInLeftEnd=function(e){return!(0<e.currentSlide)},t.isInRightEnd=s,t.getTransformForPartialVsibile=a,t.parsePosition=l,t.getTransform=function(e,t,o){var n=t.partialVisbile,s=t.partialVisible,c=t.responsive,d=t.deviceType,u=t.centerMode,p=o||e.transform,f=r.getPartialVisibilityGutter(c,n||s,d,e.deviceType);return l(t,s||n?a(e,f,t,o):u?i(e,t,o):p)},t.getSlidesToSlide=function(e,t){var o=e.domLoaded,r=e.slidesToShow,n=e.containerWidth,i=e.itemWidth,s=t.deviceType,a=t.responsive,l=t.slidesToSlide||1,c=Boolean(o&&r&&n&&i);return t.ssr&&t.deviceType&&!c&&Object.keys(a).forEach(function(e){var t=a[e].slidesToSlide;s===e&&t&&(l=t)}),c&&Object.keys(a).forEach(function(e){var t=a[e],o=t.breakpoint,r=t.slidesToSlide,n=o.max,i=o.min;r&&window.innerWidth>=i&&window.innerWidth<=n&&(l=r)}),l}},811(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(189),n=o(802);t.getLookupTableForNextSlides=function(e,t,o,i){var s={},a=n.getSlidesToSlide(t,o);return Array(e).fill(0).forEach(function(e,o){var n=r.getOriginalCounterPart(o,t,i);if(0===o)s[0]=n;else{var l=s[o-1]+a;s[o]=l}}),s}},862(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(609),n=o(802),i=o(802);t.populatePreviousSlides=function(e,t,o){void 0===o&&(o=0);var s,a,l=e.currentSlide,c=e.itemWidth,d=e.slidesToShow,u=t.children,p=t.showDots,f=t.infinite,m=n.getSlidesToSlide(e,t),h=l-o-(0<o?0:m),y=(r.Children.toArray(u).length-d)%m;return a=0<=h?(s=h,p&&!f&&0<y&&i.isInRightEnd(e)&&(s=l-y),-c*s):s=h<0&&0!==l?0:void 0,{nextSlides:s,nextPosition:a}}},867(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPartialVisibilityGutter=function(e,t,o,r){var n=0,i=r||o;return t&&i&&(n=e[i].partialVisibilityGutter||e[i].paritialVisibilityGutter),n},t.getWidthFromDeviceType=function(e,t){var o;return t[e]&&(o=(100/t[e].items).toFixed(1)),o},t.getItemClientSideWidth=function(e,t,o){return Math.round(o/(t+(e.centerMode?1:0)))}},961(e,t,o){"use strict";var r=o(163);t.default=r.default}},r={};function n(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return o[e].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,n.t=function(o,r){if(1&r&&(o=this(o)),8&r)return o;if("object"==typeof o&&o){if(4&r&&o.__esModule)return o;if(16&r&&"function"==typeof o.then)return o}var i=Object.create(null);n.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&o;("object"==typeof a||"function"==typeof a)&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach(e=>s[e]=()=>o[e]);return s.default=()=>o,n.d(i,s),i},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(609),t=n.t(e,2),o=n.n(e),r=n(338);const i=window.ReactJSXRuntime;function s(e){return"auto"===e||"dark"===e||"light"===e}function a({key:e="mantine-color-scheme-value"}={}){let t;return{get:t=>{if("undefined"==typeof window)return t;try{const o=window.localStorage.getItem(e);return s(o)?o:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",e)}},subscribe:o=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&s(t.newValue)&&o(t.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const l=(0,e.createContext)(null);function c(){const t=(0,e.useContext)(l);if(!t)throw new Error("[@mantine/core] MantineProvider was not found in tree");return t}function d(){return c().getStyleNonce}function u(){return c().env||"default"}function p(e){return Object.keys(e)}function f(e){return"0rem"===e?"0rem":`calc(${e} * var(--mantine-scale))`}function m(e,{shouldScale:t=!1}={}){return function o(r){if(0===r||"0"===r)return`0${e}`;if("number"==typeof r){const o=`${r/16}${e}`;return t?f(o):o}if("string"==typeof r){if(""===r)return r;if(r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(e=>o(e)).join(",");if(r.includes(" "))return r.split(" ").map(e=>o(e)).join(" ");if(r.includes(e))return t?f(r):r;const n=r.replace("px","");if(!Number.isNaN(Number(n))){const o=`${Number(n)/16}${e}`;return t?f(o):o}}return r}}const h=m("rem",{shouldScale:!0}),y=m("em");function g(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){const e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}if(8===t.length){const e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}const o=parseInt(t,16);return{r:o>>16&255,g:o>>8&255,b:255&o,a:1}}(e):e.startsWith("rgb")?function(e){const[t,o,r,n]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:o,b:r,a:void 0===n?1:n}}(e):e.startsWith("hsl")?function(e){const t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};const o=parseInt(t[1],10),r=parseInt(t[2],10)/100,n=parseInt(t[3],10)/100,i=t[5]?parseFloat(t[5]):void 0,s=(1-Math.abs(2*n-1))*r,a=o/60,l=s*(1-Math.abs(a%2-1)),c=n-s/2;let d,u,p;return a>=0&&a<1?(d=s,u=l,p=0):a>=1&&a<2?(d=l,u=s,p=0):a>=2&&a<3?(d=0,u=s,p=l):a>=3&&a<4?(d=0,u=l,p=s):a>=4&&a<5?(d=l,u=0,p=s):(d=s,u=0,p=l),{r:Math.round(255*(d+c)),g:Math.round(255*(u+c)),b:Math.round(255*(p+c)),a:i||1}}(e):{r:0,g:0,b:0,a:1}}function v(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${100*t}%)`;const{r:o,g:r,b:n,a:i}=g(e),s=1-t,a=e=>Math.round(e*s);return`rgba(${a(o)}, ${a(r)}, ${a(n)}, ${i})`}function b(e,t){return"number"==typeof e.primaryShade?e.primaryShade:"dark"===t?e.primaryShade.dark:e.primaryShade.light}function w(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function x(e,t=.179){return!e.startsWith("var(")&&function(e){if(e.startsWith("oklch("))return(function(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}(e)||0)/100;const{r:t,g:o,b:r}=g(e),n=o/255,i=r/255;return.2126*w(t/255)+.7152*w(n)+.0722*w(i)}(e)>t}function S({color:e,theme:t,colorScheme:o}){if("string"!=typeof e)throw new Error("[@mantine/core] Failed to parse color. Expected color to be a string, instead got "+typeof e);if("bright"===e)return{color:e,value:"dark"===o?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:x("dark"===o?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if("dimmed"===e)return{color:e,value:"dark"===o?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:x("dark"===o?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if("white"===e||"black"===e)return{color:e,value:"white"===e?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:x("white"===e?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,n]=e.split("."),i=n?Number(n):void 0,s=r in t.colors;if(s){const e=void 0!==i?t.colors[r][i]:t.colors[r][b(t,o||"light")];return{color:r,value:e,shade:i,isThemeColor:s,isLight:x(e,t.luminanceThreshold),variable:n?`--mantine-color-${r}-${i}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:s,isLight:x(e,t.luminanceThreshold),shade:i,variable:void 0}}function C(e,t){const o=S({color:e||t.primaryColor,theme:t});return o.variable?`var(${o.variable})`:e}function P(e,t){const o={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=C(o.from,t),n=C(o.to,t);return`linear-gradient(${o.deg}deg, ${r} 0%, ${n} 100%)`}function T(e,t){if("string"!=typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var("))return`color-mix(in srgb, ${e}, transparent ${100*(1-t)}%)`;if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:o,g:r,b:n}=g(e);return`rgba(${o}, ${r}, ${n}, ${t})`}const N=T,j="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",E={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:{dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:({color:e,theme:t,variant:o,gradient:r,autoContrast:n})=>{const i=S({color:e,theme:t}),s="boolean"==typeof n?n:t.autoContrast;if("filled"===o){const t=s&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?void 0===i.shade?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:t,border:`${h(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${9===i.shade?8:i.shade+1})`,color:t,border:`${h(1)} solid transparent`}:{background:e,hover:v(e,.1),color:t,border:`${h(1)} solid transparent`}}if("light"===o){if(i.isThemeColor){if(void 0===i.shade)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${h(1)} solid transparent`};const o=t.colors[i.color][i.shade];return{background:T(o,.1),hover:T(o,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${h(1)} solid transparent`}}return{background:T(e,.1),hover:T(e,.12),color:e,border:`${h(1)} solid transparent`}}return"outline"===o?i.isThemeColor?void 0===i.shade?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${h(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:T(t.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${h(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:T(e,.05),color:e,border:`${h(1)} solid ${e}`}:"subtle"===o?i.isThemeColor?void 0===i.shade?{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${h(1)} solid transparent`}:{background:"transparent",hover:T(t.colors[i.color][i.shade],.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${h(1)} solid transparent`}:{background:"transparent",hover:T(e,.12),color:e,border:`${h(1)} solid transparent`}:"transparent"===o?i.isThemeColor?void 0===i.shade?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${h(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${h(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${h(1)} solid transparent`}:"white"===o?i.isThemeColor?void 0===i.shade?{background:"var(--mantine-color-white)",hover:v(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${h(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:v(t.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${h(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:v(t.white,.01),color:e,border:`${h(1)} solid transparent`}:"gradient"===o?{background:P(r,t),hover:P(r,t),color:"var(--mantine-color-white)",border:"none"}:"default"===o?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${h(1)} solid var(--mantine-color-default-border)`}:{}},autoContrast:!1,luminanceThreshold:.3,fontFamily:j,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:j,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:h(34),lineHeight:"1.3"},h2:{fontSize:h(26),lineHeight:"1.35"},h3:{fontSize:h(22),lineHeight:"1.4"},h4:{fontSize:h(18),lineHeight:"1.45"},h5:{fontSize:h(16),lineHeight:"1.5"},h6:{fontSize:h(14),lineHeight:"1.5"}}},fontSizes:{xs:h(12),sm:h(14),md:h(16),lg:h(18),xl:h(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:h(2),sm:h(4),md:h(8),lg:h(16),xl:h(32)},spacing:{xs:h(10),sm:h(12),md:h(16),lg:h(20),xl:h(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), 0 ${h(1)} ${h(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(10)} ${h(15)} ${h(-5)}, rgba(0, 0, 0, 0.04) 0 ${h(7)} ${h(7)} ${h(-5)}`,md:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(20)} ${h(25)} ${h(-5)}, rgba(0, 0, 0, 0.04) 0 ${h(10)} ${h(10)} ${h(-5)}`,lg:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(28)} ${h(23)} ${h(-7)}, rgba(0, 0, 0, 0.04) 0 ${h(12)} ${h(12)} ${h(-7)}`,xl:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(36)} ${h(28)} ${h(-7)}, rgba(0, 0, 0, 0.04) 0 ${h(17)} ${h(17)} ${h(-7)}`},other:{},components:{}};function k(e){return e&&"object"==typeof e&&!Array.isArray(e)}function R(e,t){const o={...e},r=t;return k(e)&&k(t)&&Object.keys(t).forEach(t=>{k(r[t])?o[t]=t in e?R(o[t],r[t]):r[t]:o[t]=r[t]}),o}const $="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function A(e){return!(e<0||e>9)&&parseInt(e.toString(),10)===e}function _(e){if(!(e.primaryColor in e.colors))throw new Error("[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color");if(!("object"!=typeof e.primaryShade||A(e.primaryShade.dark)&&A(e.primaryShade.light)))throw new Error($);if("number"==typeof e.primaryShade&&!A(e.primaryShade))throw new Error($)}const O=(0,e.createContext)(null);function I(){const t=(0,e.useContext)(O);if(!t)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return t}function D({theme:t,children:o,inherit:r=!0}){const n=(0,e.useContext)(O)||E,s=(0,e.useMemo)(()=>function(e,t){if(!t)return _(e),e;const o=R(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(o.headings.fontFamily=t.fontFamily),_(o),o}(r?n:E,t),[t,n,r]);return(0,i.jsx)(O.Provider,{value:s,children:o})}function M(){const e=I(),t=d(),o=p(e.breakpoints).reduce((t,o)=>{const r=e.breakpoints[o].includes("px"),n=function(e){const t=function(e){return"string"==typeof e&&e.includes("var(--mantine-scale)")?e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim():e}(e);return"number"==typeof t?t:"string"==typeof t?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?16*Number(t.replace("rem","")):t.includes("em")?16*Number(t.replace("em","")):Number(t):NaN}(e.breakpoints[o]);return`${t}@media (max-width: ${r?n-.1+"px":y(n-.1)}){.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${r?`${n}px`:y(n)}){.mantine-hidden-from-${o} {display: none !important;}}`},"");return(0,i.jsx)("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:o}})}function z(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join("")}function L(e,t){return(Array.isArray(e)?e:[e]).reduce((e,t)=>`${t}{${e}}`,t)}function F({color:e,theme:t,autoContrast:o}){return("boolean"==typeof o?o:t.autoContrast)&&S({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function W(e,t){return F({color:e.colors[e.primaryColor][b(e,t)],theme:e,autoContrast:null})}function B({theme:e,color:t,colorScheme:o,name:r=t,withColorValues:n=!0}){if(!e.colors[t])return{};if("light"===o){const o=b(e,"light"),i={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${9===o?8:o+1})`,[`--mantine-color-${r}-light`]:N(e.colors[t][o],.1),[`--mantine-color-${r}-light-hover`]:N(e.colors[t][o],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${o})`,[`--mantine-color-${r}-outline-hover`]:N(e.colors[t][o],.05)};return n?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...i}:i}const i=b(e,"dark"),s={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${i})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${9===i?8:i+1})`,[`--mantine-color-${r}-light`]:N(e.colors[t][Math.max(0,i-2)],.15),[`--mantine-color-${r}-light-hover`]:N(e.colors[t][Math.max(0,i-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(i-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(i-4,0)})`,[`--mantine-color-${r}-outline-hover`]:N(e.colors[t][Math.max(i-4,0)],.05)};return n?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...s}:s}function H(e,t,o){p(t).forEach(r=>Object.assign(e,{[`--mantine-${o}-${r}`]:t[r]}))}D.displayName="@mantine/core/MantineThemeProvider";const V=e=>{const t=b(e,"light"),o=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:h(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":o,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":W(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":W(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};H(r.variables,e.breakpoints,"breakpoint"),H(r.variables,e.spacing,"spacing"),H(r.variables,e.fontSizes,"font-size"),H(r.variables,e.lineHeights,"line-height"),H(r.variables,e.shadows,"shadow"),H(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((t,o)=>{r.variables[`--mantine-primary-color-${o}`]=`var(--mantine-color-${e.primaryColor}-${o})`}),p(e.colors).forEach(t=>{const o=e.colors[t];if(function(e){return!!e&&"object"==typeof e&&"mantine-virtual-color"in e}(o))return Object.assign(r.light,B({theme:e,name:o.name,color:o.light,colorScheme:"light",withColorValues:!0})),void Object.assign(r.dark,B({theme:e,name:o.name,color:o.dark,colorScheme:"dark",withColorValues:!0}));o.forEach((e,o)=>{r.variables[`--mantine-color-${t}-${o}`]=e}),Object.assign(r.light,B({theme:e,color:t,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,B({theme:e,color:t,colorScheme:"dark",withColorValues:!1}))});const n=e.headings.sizes;return p(n).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=n[t].fontSize,r.variables[`--mantine-${t}-line-height`]=n[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=n[t].fontWeight||e.headings.fontWeight}),r},X=V(E);function Y({cssVariablesSelector:e,deduplicateCssVariables:t}){const o=I(),r=d(),n=function({theme:e,generator:t}){const o=V(e),r=t?.(e);return r?R(o,r):o}({theme:o,generator:c().cssVariablesResolver}),s=":root"===e&&t,a=function(e,t){const o=z(e.variables),r=o?L(t,o):"",n=z(e.dark),i=z(e.light);return`${r}${n?L(":host"===t?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,n):""}${i?L(":host"===t?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,i):""}`}(s?function(e){const t={variables:{},light:{},dark:{}};return p(e.variables).forEach(o=>{X.variables[o]!==e.variables[o]&&(t.variables[o]=e.variables[o])}),p(e.light).forEach(o=>{X.light[o]!==e.light[o]&&(t.light[o]=e.light[o])}),p(e.dark).forEach(o=>{X.dark[o]!==e.dark[o]&&(t.dark[o]=e.dark[o])}),t}(n):n,e);return a?(0,i.jsx)("style",{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${a}${s?"":(l=e,`\n  ${l}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }\n  ${l}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }\n`)}`}}):null;var l}Y.displayName="@mantine/CssVariables";const q="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function G(e,t){const o="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,r="auto"!==e?e:o?"dark":"light";t()?.setAttribute("data-mantine-color-scheme",r)}function K({theme:t,children:o,getStyleNonce:r,withStaticClasses:n=!0,withGlobalClasses:s=!0,deduplicateCssVariables:c=!0,withCssVariables:d=!0,cssVariablesSelector:u=":root",classNamesPrefix:p="mantine",colorSchemeManager:f=a(),defaultColorScheme:m="light",getRootElement:h=()=>document.documentElement,cssVariablesResolver:y,forceColorScheme:g,stylesTransform:v,env:b}){const{colorScheme:w,setColorScheme:x,clearColorScheme:S}=function({manager:t,defaultColorScheme:o,getRootElement:r,forceColorScheme:n}){const i=(0,e.useRef)(null),[s,a]=(0,e.useState)(()=>t.get(o)),l=n||s,c=(0,e.useCallback)(e=>{n||(G(e,r),a(e),t.set(e))},[t.set,l,n]),d=(0,e.useCallback)(()=>{a(o),G(o,r),t.clear()},[t.clear,o]);return(0,e.useEffect)(()=>(t.subscribe(c),t.unsubscribe),[t.subscribe,t.unsubscribe]),q(()=>{G(t.get(o),r)},[]),(0,e.useEffect)(()=>{if(n)return G(n,r),()=>{};void 0===n&&G(s,r),"undefined"!=typeof window&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));const e=e=>{"auto"===s&&G(e.matches?"dark":"light",r)};return i.current?.addEventListener("change",e),()=>i.current?.removeEventListener("change",e)},[s,n]),{colorScheme:l,setColorScheme:c,clearColorScheme:d}}({defaultColorScheme:m,forceColorScheme:g,manager:f,getRootElement:h});return function({respectReducedMotion:e,getRootElement:t}){q(()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")},[e])}({respectReducedMotion:t?.respectReducedMotion||!1,getRootElement:h}),(0,i.jsx)(l.Provider,{value:{colorScheme:w,setColorScheme:x,clearColorScheme:S,getRootElement:h,classNamesPrefix:p,getStyleNonce:r,cssVariablesResolver:y,cssVariablesSelector:u,withStaticClasses:n,stylesTransform:v,env:b},children:(0,i.jsxs)(D,{theme:t,children:[d&&(0,i.jsx)(Y,{cssVariablesSelector:u,deduplicateCssVariables:c}),s&&(0,i.jsx)(M,{}),o]})})}function U(e){return Object.keys(e).reduce((t,o)=>(void 0!==e[o]&&(t[o]=e[o]),t),{})}function Z(e,t,o){const r=I(),n=r.components[e]?.defaultProps;return{...t,..."function"==typeof n?n(r):n,...U(o)}}function J(e){return e}function Q(t){const o=(0,e.forwardRef)(t);return o.extend=J,o.withProps=t=>{const r=(0,e.forwardRef)((e,r)=>(0,i.jsx)(o,{...t,...e,ref:r}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o}function ee(e){if("number"==typeof e)return!0;if("string"==typeof e){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&""!==e.trim())return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function te(e,t="size",o=!0){if(void 0!==e)return ee(e)?o?h(e):e:`var(--${t}-${e})`}function oe(e){return te(e,"mantine-spacing")}function re(e){return void 0===e?"var(--mantine-radius-default)":te(e,"mantine-radius")}function ne(e){return te(e,"mantine-font-size")}function ie(e){if(e)return te(e,"mantine-shadow",!1)}function se(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=se(e[t]))&&(r&&(r+=" "),r+=o)}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}!function(){const e=console.error;console.error=(...t)=>{t.length>1&&"string"==typeof t[0]&&t[0].toLowerCase().includes("extra attributes from the server")&&"string"==typeof t[1]&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}(),K.displayName="@mantine/core/MantineProvider";const ae=function(){for(var e,t,o=0,r="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=se(e))&&(r&&(r+=" "),r+=t);return r},le={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"},ce={};function de({theme:e,classNames:t,props:o,stylesCtx:r}){return function(e){const t={};return e.forEach(e=>{Object.entries(e).forEach(([e,o])=>{t[e]?t[e]=ae(t[e],o):t[e]=o})}),t}((Array.isArray(t)?t:[t]).map(t=>"function"==typeof t?t(e,o,r):t||ce))}function ue({selector:e,stylesCtx:t,theme:o,classNames:r,props:n}){return de({theme:o,classNames:r,props:n,stylesCtx:t})[e]}function pe({theme:e,options:t,themeName:o,selector:r,classNamesPrefix:n,classNames:i,classes:s,unstyled:a,className:l,rootSelector:c,props:d,stylesCtx:u,withStaticClasses:p,headless:f,transformedStyles:m}){return ae(function({theme:e,options:t,unstyled:o}){return ae(t?.focusable&&!o&&(e.focusClassName||le[e.focusRing]),t?.active&&!o&&e.activeClassName)}({theme:e,options:t,unstyled:a||f}),function({themeName:e,theme:t,selector:o,props:r,stylesCtx:n}){return e.map(e=>de({theme:t,classNames:t.components[e]?.classNames,props:r,stylesCtx:n})?.[o])}({theme:e,themeName:o,selector:r,props:d,stylesCtx:u}),function({options:e,classes:t,selector:o,unstyled:r}){return e?.variant&&!r?t[`${o}--${e.variant}`]:void 0}({options:t,classes:s,selector:r,unstyled:a}),ue({selector:r,stylesCtx:u,theme:e,classNames:i,props:d}),ue({selector:r,stylesCtx:u,theme:e,classNames:m,props:d}),function({selector:e,stylesCtx:t,options:o,props:r,theme:n}){return de({theme:n,classNames:o?.classNames,props:o?.props||r,stylesCtx:t})[e]}({selector:r,stylesCtx:u,options:t,props:d,theme:e}),function({rootSelector:e,selector:t,className:o}){return e===t?o:void 0}({rootSelector:c,selector:r,className:l}),function({selector:e,classes:t,unstyled:o}){return o?void 0:t[e]}({selector:r,classes:s,unstyled:a||f}),p&&!f&&function({themeName:e,classNamesPrefix:t,selector:o,withStaticClass:r}){return!1===r?[]:e.map(e=>`${t}-${e}-${o}`)}({themeName:o,classNamesPrefix:n,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function fe({theme:e,styles:t,props:o,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((t,n)=>"function"==typeof n?{...t,...n(e,o,r)}:{...t,...n},{})}function me({theme:e,themeName:t,props:o,stylesCtx:r,selector:n}){return t.map(t=>fe({theme:e,styles:e.components[t]?.styles,props:o,stylesCtx:r})[n]).reduce((e,t)=>({...e,...t}),{})}function he({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((e,o)=>({...e,...he({style:o,theme:t})}),{}):"function"==typeof e?e(t):null==e?{}:e}function ye({vars:e,varsResolver:t,theme:o,props:r,stylesCtx:n,selector:i,themeName:s,headless:a}){return function(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(o=>{e[o]={...e[o],...U(t[o])}}),e),{})}([a?{}:t?.(o,r,n),...s.map(e=>o.components?.[e]?.vars?.(o,r,n)),e?.(o,r,n)])?.[i]}function ge({theme:e,themeName:t,selector:o,options:r,props:n,stylesCtx:i,rootSelector:s,styles:a,style:l,vars:c,varsResolver:d,headless:u,withStylesTransform:p}){return{...!p&&me({theme:e,themeName:t,props:n,stylesCtx:i,selector:o}),...!p&&fe({theme:e,styles:a,props:n,stylesCtx:i})[o],...!p&&fe({theme:e,styles:r?.styles,props:r?.props||n,stylesCtx:i})[o],...ye({theme:e,props:n,stylesCtx:i,vars:c,varsResolver:d,selector:o,themeName:t,headless:u}),...s===o?he({style:l,theme:e}):null,...he({style:r?.style,theme:e})}}function ve({name:e,classes:t,props:o,stylesCtx:r,className:n,style:i,rootSelector:s="root",unstyled:a,classNames:l,styles:d,vars:u,varsResolver:p}){const f=I(),m=c().classNamesPrefix,h=c().withStaticClasses,y=c().headless,g=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:b}=function({props:e,stylesCtx:t,themeName:o}){const r=I(),n=(c().stylesTransform?.styles)?.();return{getTransformedStyles:i=>n?[...i.map(o=>n(o,{props:e,theme:r,ctx:t})),...o.map(o=>n(r.components[o]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!n}}({props:o,stylesCtx:r,themeName:g});return(e,c)=>({className:pe({theme:f,options:c,themeName:g,selector:e,classNamesPrefix:m,classNames:l,classes:t,unstyled:a,className:n,rootSelector:s,props:o,stylesCtx:r,withStaticClasses:h,headless:y,transformedStyles:b([c?.styles,d])}),style:ge({theme:f,themeName:g,selector:e,options:c,props:o,stylesCtx:r,rootSelector:s,styles:d,style:i,vars:u,varsResolver:p,headless:y,withStylesTransform:v})})}function be(e){return p(e).reduce((t,o)=>{return void 0!==e[o]?`${t}${r=o,r.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}:${e[o]};`:t;var r},"").trim()}function we({selector:e,styles:t,media:o,container:r}){const n=t?be(t):"",i=Array.isArray(o)?o.map(t=>`@media${t.query}{${e}{${be(t.styles)}}}`):[],s=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${be(t.styles)}}}`):[];return`${n?`${e}{${n}}`:""}${i.join("")}${s.join("")}`.trim()}function xe(e){const t=d();return(0,i.jsx)("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:we(e)}})}function Se(e){return e.startsWith("data-")?e:`data-${e}`}function Ce(e){return e?"string"==typeof e?{[Se(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...Ce(t)}),{}):(t=e,Object.keys(t).reduce((e,o)=>{const r=t[o];return void 0===r||""===r||!1===r||null===r||(e[Se(o)]=t[o]),e},{})):null;var t}function Pe(e,t){return Array.isArray(e)?[...e].reduce((e,o)=>({...e,...Pe(o,t)}),{}):"function"==typeof e?e(t):null==e?{}:e}function Te({theme:e,style:t,vars:o,styleProps:r}){return{...Pe(t,e),...Pe(o,e),...r}}function Ne(e){const{m:t,mx:o,my:r,mt:n,mb:i,ml:s,mr:a,me:l,ms:c,p:d,px:u,py:p,pt:f,pb:m,pl:h,pr:y,pe:g,ps:v,bd:b,bg:w,c:x,opacity:S,ff:C,fz:P,fw:T,lts:N,ta:j,lh:E,fs:k,tt:R,td:$,w:A,miw:_,maw:O,h:I,mih:D,mah:M,bgsz:z,bgp:L,bgr:F,bga:W,pos:B,top:H,left:V,bottom:X,right:Y,inset:q,display:G,flex:K,hiddenFrom:Z,visibleFrom:J,lightHidden:Q,darkHidden:ee,sx:te,...oe}=e;return{styleProps:U({m:t,mx:o,my:r,mt:n,mb:i,ml:s,mr:a,me:l,ms:c,p:d,px:u,py:p,pt:f,pb:m,pl:h,pr:y,pe:g,ps:v,bd:b,bg:w,c:x,opacity:S,ff:C,fz:P,fw:T,lts:N,ta:j,lh:E,fs:k,tt:R,td:$,w:A,miw:_,maw:O,h:I,mih:D,mah:M,bgsz:z,bgp:L,bgr:F,bga:W,pos:B,top:H,left:V,bottom:X,right:Y,inset:q,display:G,flex:K,hiddenFrom:Z,visibleFrom:J,lightHidden:Q,darkHidden:ee,sx:te}),rest:oe}}const je={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function Ee(e,t){const o=S({color:e,theme:t});return"dimmed"===o.color?"var(--mantine-color-dimmed)":"bright"===o.color?"var(--mantine-color-bright)":o.variable?`var(${o.variable})`:o.color}const ke={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"},Re=["h1","h2","h3","h4","h5","h6"],$e=["h1","h2","h3","h4","h5","h6"],Ae={color:Ee,textColor:function(e,t){const o=S({color:e,theme:t});return o.isThemeColor&&void 0===o.shade?`var(--mantine-color-${o.color}-text)`:Ee(e,t)},fontSize:function(e,t){return"string"==typeof e&&e in t.fontSizes?`var(--mantine-font-size-${e})`:"string"==typeof e&&Re.includes(e)?`var(--mantine-${e}-font-size)`:"number"==typeof e||"string"==typeof e?h(e):e},spacing:function(e,t){if("number"==typeof e)return h(e);if("string"==typeof e){const o=e.replace("-","");if(!(o in t.spacing))return h(e);const r=`--mantine-spacing-${o}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e},identity:function(e){return e},size:function(e){return"number"==typeof e?h(e):e},lineHeight:function(e,t){return"string"==typeof e&&e in t.lineHeights?`var(--mantine-line-height-${e})`:"string"==typeof e&&$e.includes(e)?`var(--mantine-${e}-line-height)`:e},fontFamily:function(e){return"string"==typeof e&&e in ke?ke[e]:e},border:function(e,t){if("number"==typeof e)return h(e);if("string"==typeof e){const[o,r,...n]=e.split(" ").filter(e=>""!==e.trim());let i=`${h(o)}`;return r&&(i+=` ${r}`),n.length>0&&(i+=` ${Ee(n.join(" "),t)}`),i.trim()}return e}};function _e(e){return e.replace("(min-width: ","").replace("em)","")}function Oe(e,t){return"object"==typeof e&&null!==e&&t in e?e[t]:e}const Ie=(0,e.forwardRef)(({component:t,style:o,__vars:r,className:n,variant:s,mod:a,size:l,hiddenFrom:d,visibleFrom:u,lightHidden:f,darkHidden:m,renderRoot:h,__size:y,...g},v)=>{const b=I(),w=t||"div",{styleProps:x,rest:S}=Ne(g),C=c().stylesTransform?.sx,P=C?.()?.(x.sx),T=`__m__-${(0,e.useId)().replace(/:/g,"")}`,N=function({styleProps:e,data:t,theme:o}){return function({media:e,...t}){return{...t,media:Object.keys(e).sort((e,t)=>Number(_e(e))-Number(_e(t))).map(t=>({query:t,styles:e[t]}))}}(p(e).reduce((r,n)=>{if("hiddenFrom"===n||"visibleFrom"===n||"sx"===n)return r;const i=t[n],s=Array.isArray(i.property)?i.property:[i.property],a="object"==typeof(l=e[n])&&null!==l?"base"in l?l.base:void 0:l;var l;if(!function(e){if("object"!=typeof e||null===e)return!1;const t=Object.keys(e);return 1!==t.length||"base"!==t[0]}(e[n]))return s.forEach(e=>{r.inlineStyles[e]=Ae[i.type](a,o)}),r;r.hasResponsiveStyles=!0;const c=function(e){return"object"==typeof e&&null!==e?p(e).filter(e=>"base"!==e):[]}(e[n]);return s.forEach(t=>{a&&(r.styles[t]=Ae[i.type](a,o)),c.forEach(s=>{const a=`(min-width: ${o.breakpoints[s]})`;r.media[a]={...r.media[a],[t]:Ae[i.type](Oe(e[n],s),o)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}({styleProps:x,theme:b,data:je}),j={ref:v,style:Te({theme:b,style:o,vars:r,styleProps:N.inlineStyles}),className:ae(n,P,{[T]:N.hasResponsiveStyles,"mantine-light-hidden":f,"mantine-dark-hidden":m,[`mantine-hidden-from-${d}`]:d,[`mantine-visible-from-${u}`]:u}),"data-variant":s,"data-size":ee(l)?void 0:l||void 0,size:y,...Ce(a),...S};return(0,i.jsxs)(i.Fragment,{children:[N.hasResponsiveStyles&&(0,i.jsx)(xe,{selector:`.${T}`,styles:N.styles,media:N.media}),"function"==typeof h?h(j):(0,i.jsx)(w,{...j})]})});Ie.displayName="@mantine/core/Box";const De=Ie;var Me={root:"m_4081bf90"};const ze={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},Le=(e,{grow:t,preventGrowOverflow:o,gap:r,align:n,justify:i,wrap:s},{childWidth:a})=>({root:{"--group-child-width":t&&o?a:void 0,"--group-gap":oe(r),"--group-align":n,"--group-justify":i,"--group-wrap":s}}),Fe=Q((t,o)=>{const r=Z("Group",ze,t),{classNames:n,className:s,style:a,styles:l,unstyled:c,children:d,gap:u,align:p,justify:f,wrap:m,grow:h,preventGrowOverflow:y,vars:g,variant:v,__size:b,mod:w,...x}=r,S=function(t){return e.Children.toArray(t).filter(Boolean)}(d),C=S.length,P=oe(u??"md"),T=ve({name:"Group",props:r,stylesCtx:{childWidth:`calc(${100/C}% - (${P} - ${P} / ${C}))`},className:s,style:a,classes:Me,classNames:n,styles:l,unstyled:c,vars:g,varsResolver:Le});return(0,i.jsx)(De,{...T("root"),ref:o,variant:v,mod:[{grow:h},w],size:b,...x,children:S})});function We(t){const o=(0,e.forwardRef)(t);return o.withProps=t=>{const r=(0,e.forwardRef)((e,r)=>(0,i.jsx)(o,{...t,...e,ref:r}));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o.extend=J,o}Fe.classes=Me,Fe.displayName="@mantine/core/Group";var Be={root:"m_87cf2631"};const He={__staticSelector:"UnstyledButton"},Ve=We((e,t)=>{const o=Z("UnstyledButton",He,e),{className:r,component:n="button",__staticSelector:s,unstyled:a,classNames:l,styles:c,style:d,...u}=o,p=ve({name:s,props:o,classes:Be,className:r,style:d,classNames:l,styles:c,unstyled:a});return(0,i.jsx)(De,{...p("root",{focusable:!0}),component:n,ref:t,type:"button"===n?"button":void 0,...u})});function Xe(t){const o=(0,e.createContext)(null);return[({children:e,value:t})=>(0,i.jsx)(o.Provider,{value:t,children:e}),()=>{const r=(0,e.useContext)(o);if(null===r)throw new Error(t);return r}]}Ve.classes=Be,Ve.displayName="@mantine/core/UnstyledButton";const[Ye,qe]=Xe("Pagination.Root component was not found in tree");var Ge={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const Ke={withPadding:!0},Ue=Q((e,t)=>{const o=Z("PaginationControl",Ke,e),{classNames:r,className:n,style:s,styles:a,vars:l,active:c,disabled:d,withPadding:u,mod:p,...f}=o,m=qe(),h=d||m.disabled;return(0,i.jsx)(Ve,{ref:t,disabled:h,mod:[{active:c,disabled:h,"with-padding":u},p],...m.getStyles("control",{className:n,style:s,classNames:r,styles:a,active:!h}),...f})});function Ze({style:e,children:t,path:o,...r}){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...e},...r,children:(0,i.jsx)("path",{d:o,fill:"currentColor"})})}Ue.classes=Ge,Ue.displayName="@mantine/core/PaginationControl";const Je={icon:e=>(0,i.jsx)(Ze,{...e,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"})},Qe=Q((e,t)=>{const o=Z("PaginationDots",Je,e),{classNames:r,className:n,style:s,styles:a,vars:l,icon:c,...d}=o,u=qe(),p=c;return(0,i.jsx)(De,{ref:t,...u.getStyles("dots",{className:n,style:s,styles:a,classNames:r}),...d,children:(0,i.jsx)(p,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});function et({icon:t,name:o,action:r,type:n}){const s={icon:t},a=(0,e.forwardRef)((e,t)=>{const{icon:a,...l}=Z(o,s,e),c=a,d=qe(),u="next"===n?d.active===d.total:1===d.active;return(0,i.jsx)(Ue,{disabled:d.disabled||u,ref:t,onClick:d[r],withPadding:!1,...l,children:(0,i.jsx)(c,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return a.displayName=`@mantine/core/${o}`,a}Qe.classes=Ge,Qe.displayName="@mantine/core/PaginationDots";const tt=et({icon:e=>(0,i.jsx)(Ze,{...e,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),name:"PaginationNext",action:"onNext",type:"next"}),ot=et({icon:e=>(0,i.jsx)(Ze,{...e,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),name:"PaginationPrevious",action:"onPrevious",type:"previous"}),rt=et({icon:e=>(0,i.jsx)(Ze,{...e,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),name:"PaginationFirst",action:"onFirst",type:"previous"}),nt=et({icon:e=>(0,i.jsx)(Ze,{...e,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),name:"PaginationLast",action:"onLast",type:"next"});function it({dotsIcon:e}){const t=qe(),o=t.range.map((o,r)=>"dots"===o?(0,i.jsx)(Qe,{icon:e},r):(0,i.jsx)(Ue,{active:o===t.active,"aria-current":o===t.active?"page":void 0,onClick:()=>t.onChange(o),disabled:t.disabled,...t.getItemProps?.(o),children:t.getItemProps?.(o)?.children??o},r));return(0,i.jsx)(i.Fragment,{children:o})}function st({value:t,defaultValue:o,finalValue:r,onChange:n=()=>{}}){const[i,s]=(0,e.useState)(void 0!==o?o:r);return void 0!==t?[t,n,!0]:[i,(e,...t)=>{s(e),n?.(e,...t)},!1]}function at(e,t){const o=t-e+1;return Array.from({length:o},(t,o)=>o+e)}it.displayName="@mantine/core/PaginationItems";const lt="dots";function ct({total:t,siblings:o=1,boundaries:r=1,page:n,initialPage:i=1,onChange:s}){const a=Math.max(Math.trunc(t),0),[l,c]=st({value:n,onChange:s,defaultValue:i,finalValue:i}),d=e=>{c(e<=0?1:e>a?a:e)};return{range:(0,e.useMemo)(()=>{if(2*o+3+2*r>=a)return at(1,a);const e=Math.max(l-o,r),t=Math.min(l+o,a-r),n=e>r+2,i=t<a-(r+1);if(!n&&i)return[...at(1,2*o+r+2),lt,...at(a-(r-1),a)];if(n&&!i){const e=r+1+2*o;return[...at(1,r),lt,...at(a-e,a)]}return[...at(1,r),lt,...at(e,t),lt,...at(a-r+1,a)]},[a,o,l]),active:l,setPage:d,next:()=>d(l+1),previous:()=>d(l-1),first:()=>d(1),last:()=>d(a)}}function dt(e,t){return o=>{e?.(o),t?.(o)}}function ut(e,t){return"boolean"==typeof e?e:t.autoContrast}const pt={siblings:1,boundaries:1},ft=(e,{size:t,radius:o,color:r,autoContrast:n})=>({root:{"--pagination-control-radius":void 0===o?void 0:re(o),"--pagination-control-size":te(t,"pagination-control-size"),"--pagination-control-fz":ne(t),"--pagination-active-bg":r?C(r,e):void 0,"--pagination-active-color":ut(n,e)?F({color:r,theme:e,autoContrast:n}):void 0}}),mt=Q((e,t)=>{const o=Z("PaginationRoot",pt,e),{classNames:r,className:n,style:s,styles:a,unstyled:l,vars:c,total:d,value:u,defaultValue:p,onChange:f,disabled:m,siblings:h,boundaries:y,color:g,radius:v,onNextPage:b,onPreviousPage:w,onFirstPage:x,onLastPage:S,getItemProps:C,autoContrast:P,...T}=o,N=ve({name:"Pagination",classes:Ge,props:o,className:n,style:s,classNames:r,styles:a,unstyled:l,vars:c,varsResolver:ft}),{range:j,setPage:E,next:k,previous:R,active:$,first:A,last:_}=ct({page:u,initialPage:p,onChange:f,total:d,siblings:h,boundaries:y}),O=dt(b,k),I=dt(w,R),D=dt(x,A),M=dt(S,_);return(0,i.jsx)(Ye,{value:{total:d,range:j,active:$,disabled:m,getItemProps:C,onChange:E,onNext:O,onPrevious:I,onFirst:D,onLast:M,getStyles:N},children:(0,i.jsx)(De,{ref:t,...N("root"),...T})})});mt.classes=Ge,mt.displayName="@mantine/core/PaginationRoot";const ht={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},yt=Q((e,t)=>{const o=Z("Pagination",ht,e),{withEdges:r,withControls:n,getControlProps:s,nextIcon:a,previousIcon:l,lastIcon:c,firstIcon:d,dotsIcon:u,total:p,gap:f,hideWithOnePage:m,withPages:h,...y}=o;return p<=0||m&&1===p?null:(0,i.jsx)(mt,{ref:t,total:p,...y,children:(0,i.jsxs)(Fe,{gap:f,children:[r&&(0,i.jsx)(rt,{icon:d,...s?.("first")}),n&&(0,i.jsx)(ot,{icon:l,...s?.("previous")}),h&&(0,i.jsx)(it,{dotsIcon:u}),n&&(0,i.jsx)(tt,{icon:a,...s?.("next")}),r&&(0,i.jsx)(nt,{icon:c,...s?.("last")})]})})});yt.classes=Ge,yt.displayName="@mantine/core/Pagination",yt.Root=mt,yt.Control=Ue,yt.Dots=Qe,yt.First=rt,yt.Last=nt,yt.Next=tt,yt.Previous=ot,yt.Items=it;const gt=window.wp.apiFetch;var vt=n.n(gt);const bt=window.wp.i18n,wt=e["useId".toString()]||(()=>{});function xt(t){const o=function(){const e=wt();return e?`mantine-${e.replace(/:/g,"")}`:""}(),[r,n]=(0,e.useState)(o);return q(()=>{n(function(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}())},[]),"string"==typeof t?t:"undefined"==typeof window?o:r}function St({classNames:e,styles:t,props:o,stylesCtx:r}){const n=I();return{resolvedClassNames:de({theme:n,classNames:e,props:o,stylesCtx:r||void 0}),resolvedStyles:fe({theme:n,styles:t,props:o,stylesCtx:r||void 0})}}function Ct(e){return"string"==typeof e?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:"number"==typeof e?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(e=>Ct(e))}:e}function Pt(e){return e?e.map(e=>Ct(e)):[]}function Tt(e){return e.reduce((e,t)=>"group"in t?{...e,...Tt(t.items)}:(e[t.value]=t,e),{})}const Nt=["mousedown","touchstart"],jt={app:100,modal:200,popover:300,overlay:400,max:9999};function Et(e){return jt[e]}const kt=(0,e.createContext)({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Rt(){return(0,e.useContext)(kt)}function $t(e,t){if("rtl"===e&&(t.includes("right")||t.includes("left"))){const[e,o]=t.split("-"),r="right"===e?"left":"right";return void 0===o?r:`${r}-${o}`}return t}var At={root:"m_9814e45f"};const _t={zIndex:Et("modal")},Ot=(e,{gradient:t,color:o,backgroundOpacity:r,blur:n,radius:i,zIndex:s})=>({root:{"--overlay-bg":t||(void 0!==o||void 0!==r)&&T(o||"#000",r??.6)||void 0,"--overlay-filter":n?`blur(${h(n)})`:void 0,"--overlay-radius":void 0===i?void 0:re(i),"--overlay-z-index":s?.toString()}}),It=We((e,t)=>{const o=Z("Overlay",_t,e),{classNames:r,className:n,style:s,styles:a,unstyled:l,vars:c,fixed:d,center:u,children:p,radius:f,zIndex:m,gradient:h,blur:y,color:g,backgroundOpacity:v,mod:b,...w}=o,x=ve({name:"Overlay",props:o,classes:At,className:n,style:s,classNames:r,styles:a,unstyled:l,vars:c,varsResolver:Ot});return(0,i.jsx)(De,{ref:t,...x("root"),mod:[{center:u,fixed:d},b],...w,children:p})});It.classes=At,It.displayName="@mantine/core/Overlay";var Dt=n(795);function Mt(e,t){if("function"==typeof e)return e(t);"object"==typeof e&&null!==e&&"current"in e&&(e.current=t)}function zt(...t){return(0,e.useCallback)(function(...e){const t=new Map;return o=>{if(e.forEach(e=>{const r=Mt(e,o);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{const o=t.get(e);o?o():Mt(e,null)}),t.clear()}}}(...t),t)}function Lt(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),"string"==typeof e.className&&t.classList.add(...e.className.split(" ").filter(Boolean)),"object"==typeof e.style&&Object.assign(t.style,e.style),"string"==typeof e.id&&t.setAttribute("id",e.id),t}const Ft={},Wt=Q((t,o)=>{const{children:r,target:n,reuseTargetNode:s,...a}=Z("Portal",Ft,t),[l,c]=(0,e.useState)(!1),d=(0,e.useRef)(null);return q(()=>(c(!0),d.current=function({target:e,reuseTargetNode:t,...o}){if(e)return"string"==typeof e?document.querySelector(e)||Lt(o):e;if(t){const e=document.querySelector("[data-mantine-shared-portal-node]");if(e)return e;const t=Lt(o);return t.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(t),t}return Lt(o)}({target:n,reuseTargetNode:s,...a}),Mt(o,d.current),n||s||!d.current||document.body.appendChild(d.current),()=>{n||s||!d.current||document.body.removeChild(d.current)}),[n]),l&&d.current?(0,Dt.createPortal)((0,i.jsx)(i.Fragment,{children:r}),d.current):null});Wt.displayName="@mantine/core/Portal";const Bt=Q(({withinPortal:e=!0,children:t,...o},r)=>"test"!==u()&&e?(0,i.jsx)(Wt,{ref:r,...o,children:t}):(0,i.jsx)(i.Fragment,{children:t}));Bt.displayName="@mantine/core/OptionalPortal";const Ht=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${"bottom"===e?10:-10}px)`},transitionProperty:"transform, opacity"}),Vt={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Ht("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Ht("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Ht("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Ht("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Ht("top"),common:{transformOrigin:"top right"}}},Xt={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Yt({transition:e,state:t,duration:o,timingFunction:r}){const n={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${o}ms`,transitionTimingFunction:r};return"string"==typeof e?e in Vt?{transitionProperty:Vt[e].transitionProperty,...n,...Vt[e].common,...Vt[e][Xt[t]]}:{}:{transitionProperty:e.transitionProperty,...n,...e.common,...e[Xt[t]]}}function qt(t,o){const r=(0,e.useRef)(!1);(0,e.useEffect)(()=>()=>{r.current=!1},[]),(0,e.useEffect)(()=>{if(r.current)return t();r.current=!0},o)}function Gt({duration:t,exitDuration:o,timingFunction:r,mounted:n,onEnter:i,onExit:s,onEntered:a,onExited:l,enterDelay:c,exitDelay:d}){const u=I(),p=function(t,o,{getInitialValueInEffect:r}={getInitialValueInEffect:!0}){const[n,i]=(0,e.useState)(r?o:function(e){return"undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(e).matches}(t)),s=(0,e.useRef)(null);return(0,e.useEffect)(()=>{if("matchMedia"in window)return s.current=window.matchMedia(t),i(s.current.matches),function(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch(o){return e.addListener(t),()=>e.removeListener(t)}}(s.current,e=>i(e.matches))},[t]),n}("(prefers-reduced-motion: reduce)",undefined,undefined);const f=!!u.respectReducedMotion&&p,[m,h]=(0,e.useState)(f?0:t),[y,g]=(0,e.useState)(n?"entered":"exited"),v=(0,e.useRef)(-1),b=(0,e.useRef)(-1),w=(0,e.useRef)(-1);function x(){window.clearTimeout(v.current),window.clearTimeout(b.current),cancelAnimationFrame(w.current)}const S=e=>{x();const r=e?i:s,n=e?a:l,c=f?0:e?t:o;h(c),0===c?("function"==typeof r&&r(),"function"==typeof n&&n(),g(e?"entered":"exited")):w.current=requestAnimationFrame(()=>{Dt.flushSync(()=>{g(e?"pre-entering":"pre-exiting")}),w.current=requestAnimationFrame(()=>{"function"==typeof r&&r(),g(e?"entering":"exiting"),v.current=window.setTimeout(()=>{"function"==typeof n&&n(),g(e?"entered":"exited")},c)})})};return qt(()=>{var e;e=n,x(),"number"==typeof(e?c:d)?b.current=window.setTimeout(()=>{S(e)},e?c:d):S(e)},[n]),(0,e.useEffect)(()=>()=>{x()},[]),{transitionDuration:m,transitionStatus:y,transitionTimingFunction:r||"ease"}}function Kt({keepMounted:e,transition:t="fade",duration:o=250,exitDuration:r=o,mounted:n,children:s,timingFunction:a="ease",onExit:l,onEntered:c,onEnter:d,onExited:p,enterDelay:f,exitDelay:m}){const h=u(),{transitionDuration:y,transitionStatus:g,transitionTimingFunction:v}=Gt({mounted:n,exitDuration:r,duration:o,timingFunction:a,onExit:l,onEntered:c,onEnter:d,onExited:p,enterDelay:f,exitDelay:m});return 0===y||"test"===h?n?(0,i.jsx)(i.Fragment,{children:s({})}):e?s({display:"none"}):null:"exited"===g?e?s({display:"none"}):null:(0,i.jsx)(i.Fragment,{children:s(Yt({transition:t,duration:y,state:g,timingFunction:v}))})}Kt.displayName="@mantine/core/Transition";const[Ut,Zt]=Xe("Popover component was not found in the tree"),Jt=()=>{};function Qt(e,t={active:!0}){return"function"==typeof e&&t.active?o=>{"Escape"===o.key&&(e(o),t.onTrigger?.())}:t.onKeyDown||Jt}function eo(e,t,o,r){return"center"===e||"center"===r?{top:t}:"end"===e?{bottom:o}:"start"===e?{top:o}:{}}function to(e,t,o,r,n){return"center"===e||"center"===r?{left:t}:"end"===e?{["ltr"===n?"right":"left"]:o}:"start"===e?{["ltr"===n?"left":"right"]:o}:{}}const oo={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function ro({position:e,arrowSize:t,arrowOffset:o,arrowRadius:r,arrowPosition:n,arrowX:i,arrowY:s,dir:a}){const[l,c="center"]=e.split("-"),d={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[oo[l]]:r},u=-t/2;return"left"===l?{...d,...eo(c,s,o,n),right:u,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:"right"===l?{...d,...eo(c,s,o,n),left:u,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:"top"===l?{...d,...to(c,i,o,n,a),bottom:u,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:"bottom"===l?{...d,...to(c,i,o,n,a),top:u,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const no=(0,e.forwardRef)(({position:e,arrowSize:t,arrowOffset:o,arrowRadius:r,arrowPosition:n,visible:s,arrowX:a,arrowY:l,style:c,...d},u)=>{const{dir:p}=Rt();return s?(0,i.jsx)("div",{...d,ref:u,style:{...c,...ro({position:e,arrowSize:t,arrowOffset:o,arrowRadius:r,arrowPosition:n,dir:p,arrowX:a,arrowY:l})}}):null});no.displayName="@mantine/core/FloatingArrow";const io=/input|select|textarea|button|object/,so="a, input, select, textarea, button, object, [tabindex]";function ao(e){return"none"===e.style.display}function lo(e){let t=e.getAttribute("tabindex");return null===t&&(t=void 0),parseInt(t,10)}function co(e){const t=e.nodeName.toLowerCase(),o=!Number.isNaN(lo(e));return(io.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||o)&&function(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||"hidden"===e.getAttribute("type"))return!1;let t=e;for(;t&&t!==document.body&&11!==t.nodeType;){if(ao(t))return!1;t=t.parentNode}return!0}(e)}function uo(e){const t=lo(e);return(Number.isNaN(t)||t>=0)&&co(e)}function po(t){return!Array.isArray(t)&&null!==t&&"object"==typeof t&&t.type!==e.Fragment}var fo={root:"m_515a97f8"};const mo={},ho=Q((e,t)=>{const o=Z("VisuallyHidden",mo,e),{classNames:r,className:n,style:s,styles:a,unstyled:l,vars:c,...d}=o,u=ve({name:"VisuallyHidden",classes:fo,props:o,className:n,style:s,classNames:r,styles:a,unstyled:l});return(0,i.jsx)(De,{component:"span",ref:t,...u("root"),...d})});function yo({children:t,active:o=!0,refProp:r="ref",innerRef:n}){const i=function(t=!0){const o=(0,e.useRef)(null),r=e=>{let t=e.querySelector("[data-autofocus]");if(!t){const o=Array.from(e.querySelectorAll(so));t=o.find(uo)||o.find(co)||null,!t&&co(e)&&(t=e)}t&&t.focus({preventScroll:!0})},n=(0,e.useCallback)(e=>{t&&null!==e&&o.current!==e&&(e?(setTimeout(()=>{e.getRootNode()&&r(e)}),o.current=e):o.current=null)},[t]);return(0,e.useEffect)(()=>{if(!t)return;o.current&&setTimeout(()=>r(o.current));const e=e=>{"Tab"===e.key&&o.current&&function(e,t){const o=(r=e,Array.from(r.querySelectorAll(so)).filter(uo));var r;if(!o.length)return void t.preventDefault();const n=o[t.shiftKey?0:o.length-1],i=e.getRootNode();let s=n===i.activeElement||e===i.activeElement;const a=i.activeElement;if("INPUT"===a.tagName&&"radio"===a.getAttribute("type")){const e=o.filter(e=>"radio"===e.getAttribute("type")&&e.getAttribute("name")===a.getAttribute("name"));s=e.includes(n)}if(!s)return;t.preventDefault();const l=o[t.shiftKey?o.length-1:0];l&&l.focus()}(o.current,e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t]),n}(o),s=zt(i,n);return po(t)?(0,e.cloneElement)(t,{[r]:s}):t}function go(e){return(0,i.jsx)(ho,{tabIndex:-1,"data-autofocus":!0,...e})}ho.classes=fo,ho.displayName="@mantine/core/VisuallyHidden",yo.displayName="@mantine/core/FocusTrap",go.displayName="@mantine/core/FocusTrapInitialFocus",yo.InitialFocus=go;var vo={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const bo={},wo=Q((t,o)=>{const r=Z("PopoverDropdown",bo,t),{className:n,style:s,vars:a,children:l,onKeyDownCapture:c,variant:d,classNames:u,styles:p,...f}=r,m=Zt(),y=function({opened:t,shouldReturnFocus:o=!0}){const r=(0,e.useRef)(null),n=()=>{r.current&&"focus"in r.current&&"function"==typeof r.current.focus&&r.current?.focus({preventScroll:!0})};return qt(()=>{let e=-1;const i=t=>{"Tab"===t.key&&window.clearTimeout(e)};return document.addEventListener("keydown",i),t?r.current=document.activeElement:o&&(e=window.setTimeout(n,10)),()=>{window.clearTimeout(e),document.removeEventListener("keydown",i)}},[t,o]),n}({opened:m.opened,shouldReturnFocus:m.returnFocus}),g=m.withRoles?{"aria-labelledby":m.getTargetId(),id:m.getDropdownId(),role:"dialog",tabIndex:-1}:{},v=zt(o,m.floating);return m.disabled?null:(0,i.jsx)(Bt,{...m.portalProps,withinPortal:m.withinPortal,children:(0,i.jsx)(Kt,{mounted:m.opened,...m.transitionProps,transition:m.transitionProps?.transition||"fade",duration:m.transitionProps?.duration??150,keepMounted:m.keepMounted,exitDuration:"number"==typeof m.transitionProps?.exitDuration?m.transitionProps.exitDuration:m.transitionProps?.duration,children:e=>(0,i.jsx)(yo,{active:m.trapFocus&&m.opened,innerRef:v,children:(0,i.jsxs)(De,{...g,...f,variant:d,onKeyDownCapture:Qt(()=>{m.onClose?.(),m.onDismiss?.()},{active:m.closeOnEscape,onTrigger:y,onKeyDown:c}),"data-position":m.placement,"data-fixed":"fixed"===m.floatingStrategy||void 0,...m.getStyles("dropdown",{className:n,props:r,classNames:u,styles:p,style:[{...e,zIndex:m.zIndex,top:m.y??0,left:m.x??0,width:"target"===m.width?void 0:h(m.width)},m.resolvedStyles.dropdown,p?.dropdown,s]}),children:[l,(0,i.jsx)(no,{ref:m.arrowRef,arrowX:m.arrowX,arrowY:m.arrowY,visible:m.withArrow,position:m.placement,arrowSize:m.arrowSize,arrowRadius:m.arrowRadius,arrowOffset:m.arrowOffset,arrowPosition:m.arrowPosition,...m.getStyles("arrow",{props:r,classNames:u,styles:p})})]})})})})});function xo(t){const o=e.version;return"string"!=typeof e.version||o.startsWith("18.")?t?.ref:t?.props?.ref}wo.classes=vo,wo.displayName="@mantine/core/PopoverDropdown";const So={refProp:"ref",popupType:"dialog"},Co=Q((t,o)=>{const{children:r,refProp:n,popupType:i,...s}=Z("PopoverTarget",So,t);if(!po(r))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const a=s,l=Zt(),c=zt(l.reference,xo(r),o),d=l.withRoles?{"aria-haspopup":i,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return(0,e.cloneElement)(r,{...a,...d,...l.targetProps,className:ae(l.targetProps.className,a.className,r.props.className),[n]:c,...l.controlled?null:{onClick:l.onToggle}})});Co.displayName="@mantine/core/PopoverTarget";const Po=Math.min,To=Math.max,No=Math.round,jo=Math.floor,Eo=e=>({x:e,y:e}),ko={left:"right",right:"left",bottom:"top",top:"bottom"},Ro={start:"end",end:"start"};function $o(e,t,o){return To(e,Po(t,o))}function Ao(e,t){return"function"==typeof e?e(t):e}function _o(e){return e.split("-")[0]}function Oo(e){return e.split("-")[1]}function Io(e){return"x"===e?"y":"x"}function Do(e){return"y"===e?"height":"width"}const Mo=new Set(["top","bottom"]);function zo(e){return Mo.has(_o(e))?"y":"x"}function Lo(e){return Io(zo(e))}function Fo(e){return e.replace(/start|end/g,e=>Ro[e])}const Wo=["left","right"],Bo=["right","left"],Ho=["top","bottom"],Vo=["bottom","top"];function Xo(e){return e.replace(/left|right|bottom|top/g,e=>ko[e])}function Yo(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function qo(e){const{x:t,y:o,width:r,height:n}=e;return{width:r,height:n,top:o,left:t,right:t+r,bottom:o+n,x:t,y:o}}function Go(e,t,o){let{reference:r,floating:n}=e;const i=zo(t),s=Lo(t),a=Do(s),l=_o(t),c="y"===i,d=r.x+r.width/2-n.width/2,u=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2;let f;switch(l){case"top":f={x:d,y:r.y-n.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:u};break;case"left":f={x:r.x-n.width,y:u};break;default:f={x:r.x,y:r.y}}switch(Oo(t)){case"start":f[s]-=p*(o&&c?-1:1);break;case"end":f[s]+=p*(o&&c?-1:1)}return f}async function Ko(e,t){var o;void 0===t&&(t={});const{x:r,y:n,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:f=0}=Ao(t,e),m=Yo(f),h=a[p?"floating"===u?"reference":"floating":u],y=qo(await i.getClippingRect({element:null==(o=await(null==i.isElement?void 0:i.isElement(h)))||o?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),g="floating"===u?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=qo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:v,strategy:l}):g);return{top:(y.top-w.top+m.top)/b.y,bottom:(w.bottom-y.bottom+m.bottom)/b.y,left:(y.left-w.left+m.left)/b.x,right:(w.right-y.right+m.right)/b.x}}function Uo(e){const t=Po(...e.map(e=>e.left)),o=Po(...e.map(e=>e.top));return{x:t,y:o,width:To(...e.map(e=>e.right))-t,height:To(...e.map(e=>e.bottom))-o}}const Zo=new Set(["left","top"]);function Jo(){return"undefined"!=typeof window}function Qo(e){return or(e)?(e.nodeName||"").toLowerCase():"#document"}function er(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tr(e){var t;return null==(t=(or(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function or(e){return!!Jo()&&(e instanceof Node||e instanceof er(e).Node)}function rr(e){return!!Jo()&&(e instanceof Element||e instanceof er(e).Element)}function nr(e){return!!Jo()&&(e instanceof HTMLElement||e instanceof er(e).HTMLElement)}function ir(e){return!(!Jo()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof er(e).ShadowRoot)}const sr=new Set(["inline","contents"]);function ar(e){const{overflow:t,overflowX:o,overflowY:r,display:n}=br(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!sr.has(n)}const lr=new Set(["table","td","th"]);function cr(e){return lr.has(Qo(e))}const dr=[":popover-open",":modal"];function ur(e){return dr.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const pr=["transform","translate","scale","rotate","perspective"],fr=["transform","translate","scale","rotate","perspective","filter"],mr=["paint","layout","strict","content"];function hr(e){const t=yr(),o=rr(e)?br(e):e;return pr.some(e=>!!o[e]&&"none"!==o[e])||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||fr.some(e=>(o.willChange||"").includes(e))||mr.some(e=>(o.contain||"").includes(e))}function yr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const gr=new Set(["html","body","#document"]);function vr(e){return gr.has(Qo(e))}function br(e){return er(e).getComputedStyle(e)}function wr(e){return rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xr(e){if("html"===Qo(e))return e;const t=e.assignedSlot||e.parentNode||ir(e)&&e.host||tr(e);return ir(t)?t.host:t}function Sr(e){const t=xr(e);return vr(t)?e.ownerDocument?e.ownerDocument.body:e.body:nr(t)&&ar(t)?t:Sr(t)}function Cr(e,t,o){var r;void 0===t&&(t=[]),void 0===o&&(o=!0);const n=Sr(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),s=er(n);if(i){const e=Pr(s);return t.concat(s,s.visualViewport||[],ar(n)?n:[],e&&o?Cr(e):[])}return t.concat(n,Cr(n,[],o))}function Pr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Tr(e){const t=br(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=nr(e),i=n?e.offsetWidth:o,s=n?e.offsetHeight:r,a=No(o)!==i||No(r)!==s;return a&&(o=i,r=s),{width:o,height:r,$:a}}function Nr(e){return rr(e)?e:e.contextElement}function jr(e){const t=Nr(e);if(!nr(t))return Eo(1);const o=t.getBoundingClientRect(),{width:r,height:n,$:i}=Tr(t);let s=(i?No(o.width):o.width)/r,a=(i?No(o.height):o.height)/n;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Er=Eo(0);function kr(e){const t=er(e);return yr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Er}function Rr(e,t,o,r){void 0===t&&(t=!1),void 0===o&&(o=!1);const n=e.getBoundingClientRect(),i=Nr(e);let s=Eo(1);t&&(r?rr(r)&&(s=jr(r)):s=jr(e));const a=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==er(e))&&t}(i,o,r)?kr(i):Eo(0);let l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,d=n.width/s.x,u=n.height/s.y;if(i){const e=er(i),t=r&&rr(r)?er(r):r;let o=e,n=Pr(o);for(;n&&r&&t!==o;){const e=jr(n),t=n.getBoundingClientRect(),r=br(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,o=er(n),n=Pr(o)}}return qo({width:d,height:u,x:l,y:c})}function $r(e,t){const o=wr(e).scrollLeft;return t?t.left+o:Rr(tr(e)).left+o}function Ar(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-$r(e,o),y:o.top+t.scrollTop}}const _r=new Set(["absolute","fixed"]);function Or(e,t,o){let r;if("viewport"===t)r=function(e,t){const o=er(e),r=tr(e),n=o.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(n){i=n.width,s=n.height;const e=yr();(!e||e&&"fixed"===t)&&(a=n.offsetLeft,l=n.offsetTop)}const c=$r(r);if(c<=0){const e=r.ownerDocument,t=e.body,o=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-n);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:a,y:l}}(e,o);else if("document"===t)r=function(e){const t=tr(e),o=wr(e),r=e.ownerDocument.body,n=To(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=To(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-o.scrollLeft+$r(e);const a=-o.scrollTop;return"rtl"===br(r).direction&&(s+=To(t.clientWidth,r.clientWidth)-n),{width:n,height:i,x:s,y:a}}(tr(e));else if(rr(t))r=function(e,t){const o=Rr(e,!0,"fixed"===t),r=o.top+e.clientTop,n=o.left+e.clientLeft,i=nr(e)?jr(e):Eo(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:n*i.x,y:r*i.y}}(t,o);else{const o=kr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return qo(r)}function Ir(e,t){const o=xr(e);return!(o===t||!rr(o)||vr(o))&&("fixed"===br(o).position||Ir(o,t))}function Dr(e,t,o){const r=nr(t),n=tr(t),i="fixed"===o,s=Rr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Eo(0);function c(){l.x=$r(n)}if(r||!r&&!i)if(("body"!==Qo(t)||ar(n))&&(a=wr(t)),r){const e=Rr(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else n&&c();i&&!r&&n&&c();const d=!n||r||i?Eo(0):Ar(n,a);return{x:s.left+a.scrollLeft-l.x-d.x,y:s.top+a.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Mr(e){return"static"===br(e).position}function zr(e,t){if(!nr(e)||"fixed"===br(e).position)return null;if(t)return t(e);let o=e.offsetParent;return tr(e)===o&&(o=o.ownerDocument.body),o}function Lr(e,t){const o=er(e);if(ur(e))return o;if(!nr(e)){let t=xr(e);for(;t&&!vr(t);){if(rr(t)&&!Mr(t))return t;t=xr(t)}return o}let r=zr(e,t);for(;r&&cr(r)&&Mr(r);)r=zr(r,t);return r&&vr(r)&&Mr(r)&&!hr(r)?o:r||function(e){let t=xr(e);for(;nr(t)&&!vr(t);){if(hr(t))return t;if(ur(t))return null;t=xr(t)}return null}(e)||o}const Fr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:r,strategy:n}=e;const i="fixed"===n,s=tr(r),a=!!t&&ur(t.floating);if(r===s||a&&i)return o;let l={scrollLeft:0,scrollTop:0},c=Eo(1);const d=Eo(0),u=nr(r);if((u||!u&&!i)&&(("body"!==Qo(r)||ar(s))&&(l=wr(r)),nr(r))){const e=Rr(r);c=jr(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const p=!s||u||i?Eo(0):Ar(s,l);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:o.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:tr,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:r,strategy:n}=e;const i=[..."clippingAncestors"===o?ur(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let r=Cr(e,[],!1).filter(e=>rr(e)&&"body"!==Qo(e)),n=null;const i="fixed"===br(e).position;let s=i?xr(e):e;for(;rr(s)&&!vr(s);){const t=br(s),o=hr(s);o||"fixed"!==t.position||(n=null),(i?!o&&!n:!o&&"static"===t.position&&n&&_r.has(n.position)||ar(s)&&!o&&Ir(e,s))?r=r.filter(e=>e!==s):n=t,s=xr(s)}return t.set(e,r),r}(t,this._c):[].concat(o),r],s=i[0],a=i.reduce((e,o)=>{const r=Or(t,o,n);return e.top=To(r.top,e.top),e.right=Po(r.right,e.right),e.bottom=Po(r.bottom,e.bottom),e.left=To(r.left,e.left),e},Or(t,s,n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Lr,getElementRects:async function(e){const t=this.getOffsetParent||Lr,o=this.getDimensions,r=await o(e.floating);return{reference:Dr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=Tr(e);return{width:t,height:o}},getScale:jr,isElement:rr,isRTL:function(e){return"rtl"===br(e).direction}};function Wr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const Br=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var o,r;const{x:n,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:o,platform:r,elements:n}=e,i=await(null==r.isRTL?void 0:r.isRTL(n.floating)),s=_o(o),a=Oo(o),l="y"===zo(o),c=Zo.has(s)?-1:1,d=i&&l?-1:1,u=Ao(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof m&&(f="end"===a?-1*m:m),l?{x:f*d,y:p*c}:{x:p*c,y:f*d}}(t,e);return s===(null==(o=a.offset)?void 0:o.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:n+l.x,y:i+l.y,data:{...l,placement:s}}}}},Hr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:n}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=Ao(e,t),c={x:o,y:r},d=await Ko(t,l),u=zo(_o(n)),p=Io(u);let f=c[p],m=c[u];if(i){const e="y"===p?"bottom":"right";f=$o(f+d["y"===p?"top":"left"],f,f-d[e])}if(s){const e="y"===u?"bottom":"right";m=$o(m+d["y"===u?"top":"left"],m,m-d[e])}const h=a.fn({...t,[p]:f,[u]:m});return{...h,data:{x:h.x-o,y:h.y-r,enabled:{[p]:i,[u]:s}}}}}},Vr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,r;const{placement:n,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=Ao(e,t);if(null!=(o=i.arrow)&&o.alignmentOffset)return{};const g=_o(n),v=zo(a),b=_o(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=p||(b||!h?[Xo(a)]:function(e){const t=Xo(e);return[Fo(e),t,Fo(t)]}(a)),S="none"!==m;!p&&S&&x.push(...function(e,t,o,r){const n=Oo(e);let i=function(e,t,o){switch(e){case"top":case"bottom":return o?t?Bo:Wo:t?Wo:Bo;case"left":case"right":return t?Ho:Vo;default:return[]}}(_o(e),"start"===o,r);return n&&(i=i.map(e=>e+"-"+n),t&&(i=i.concat(i.map(Fo)))),i}(a,h,m,w));const C=[a,...x],P=await Ko(t,y),T=[];let N=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&T.push(P[g]),u){const e=function(e,t,o){void 0===o&&(o=!1);const r=Oo(e),n=Lo(e),i=Do(n);let s="x"===n?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Xo(s)),[s,Xo(s)]}(n,s,w);T.push(P[e[0]],P[e[1]])}if(N=[...N,{placement:n,overflows:T}],!T.every(e=>e<=0)){var j,E;const e=((null==(j=i.flip)?void 0:j.index)||0)+1,t=C[e];if(t&&("alignment"!==u||v===zo(t)||N.every(e=>zo(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:N},reset:{placement:t}};let o=null==(E=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!o)switch(f){case"bestFit":{var k;const e=null==(k=N.filter(e=>{if(S){const t=zo(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:k[0];e&&(o=e);break}case"initialPlacement":o=a}if(n!==o)return{reset:{placement:o}}}return{}}}},Xr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var o,r;const{placement:n,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Ao(e,t),d=await Ko(t,c),u=_o(n),p=Oo(n),f="y"===zo(n),{width:m,height:h}=i.floating;let y,g;"top"===u||"bottom"===u?(y=u,g=p===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(g=u,y="end"===p?"top":"bottom");const v=h-d.top-d.bottom,b=m-d.left-d.right,w=Po(h-d[y],v),x=Po(m-d[g],b),S=!t.middlewareData.shift;let C=w,P=x;if(null!=(o=t.middlewareData.shift)&&o.enabled.x&&(P=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=v),S&&!p){const e=To(d.left,0),t=To(d.right,0),o=To(d.top,0),r=To(d.bottom,0);f?P=m-2*(0!==e||0!==t?e+t:To(d.left,d.right)):C=h-2*(0!==o||0!==r?o+r:To(d.top,d.bottom))}await l({...t,availableWidth:P,availableHeight:C});const T=await s.getDimensions(a.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}},Yr=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:r,placement:n,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Ao(e,t)||{};if(null==c)return{};const u=Yo(d),p={x:o,y:r},f=Lo(n),m=Do(f),h=await s.getDimensions(c),y="y"===f,g=y?"top":"left",v=y?"bottom":"right",b=y?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[f]-p[f]-i.floating[m],x=p[f]-i.reference[f],S=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let C=S?S[b]:0;C&&await(null==s.isElement?void 0:s.isElement(S))||(C=a.floating[b]||i.floating[m]);const P=w/2-x/2,T=C/2-h[m]/2-1,N=Po(u[g],T),j=Po(u[v],T),E=N,k=C-h[m]-j,R=C/2-h[m]/2+P,$=$o(E,R,k),A=!l.arrow&&null!=Oo(n)&&R!==$&&i.reference[m]/2-(R<E?N:j)-h[m]/2<0,_=A?R<E?R-E:R-k:0;return{[f]:p[f]+_,data:{[f]:$,centerOffset:R-$-_,...A&&{alignmentOffset:_}},reset:A}}}),qr=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:o,elements:r,rects:n,platform:i,strategy:s}=t,{padding:a=2,x:l,y:c}=Ao(e,t),d=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),u=function(e){const t=e.slice().sort((e,t)=>e.y-t.y),o=[];let r=null;for(let e=0;e<t.length;e++){const n=t[e];!r||n.y-r.y>r.height/2?o.push([n]):o[o.length-1].push(n),r=n}return o.map(e=>qo(Uo(e)))}(d),p=qo(Uo(d)),f=Yo(a),m=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===u.length&&u[0].left>u[1].right&&null!=l&&null!=c)return u.find(e=>l>e.left-f.left&&l<e.right+f.right&&c>e.top-f.top&&c<e.bottom+f.bottom)||p;if(u.length>=2){if("y"===zo(o)){const e=u[0],t=u[u.length-1],r="top"===_o(o),n=e.top,i=t.bottom,s=r?e.left:t.left,a=r?e.right:t.right;return{top:n,bottom:i,left:s,right:a,width:a-s,height:i-n,x:s,y:n}}const e="left"===_o(o),t=To(...u.map(e=>e.right)),r=Po(...u.map(e=>e.left)),n=u.filter(o=>e?o.left===r:o.right===t),i=n[0].top,s=n[n.length-1].bottom;return{top:i,bottom:s,left:r,right:t,width:t-r,height:s-i,x:r,y:i}}return p}},floating:r.floating,strategy:s});return n.reference.x!==m.reference.x||n.reference.y!==m.reference.y||n.reference.width!==m.reference.width||n.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},Gr=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:o,y:r,placement:n,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Ao(e,t),d={x:o,y:r},u=zo(n),p=Io(u);let f=d[p],m=d[u];const h=Ao(a,t),y="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+y.mainAxis,o=i.reference[p]+i.reference[e]-y.mainAxis;f<t?f=t:f>o&&(f=o)}if(c){var g,v;const e="y"===p?"width":"height",t=Zo.has(_o(n)),o=i.reference[u]-i.floating[e]+(t&&(null==(g=s.offset)?void 0:g[u])||0)+(t?0:y.crossAxis),r=i.reference[u]+i.reference[e]+(t?0:(null==(v=s.offset)?void 0:v[u])||0)-(t?y.crossAxis:0);m<o?m=o:m>r&&(m=r)}return{[p]:f,[u]:m}}}},Kr=(e,t,o)=>{const r=new Map,n={platform:Fr,...o},i={...n.platform,_c:r};return(async(e,t,o)=>{const{placement:r="bottom",strategy:n="absolute",middleware:i=[],platform:s}=o,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:d,y:u}=Go(c,r,l),p=r,f={},m=0;for(let o=0;o<a.length;o++){const{name:i,fn:h}=a[o],{x:y,y:g,data:v,reset:b}=await h({x:d,y:u,initialPlacement:r,placement:p,strategy:n,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=y?y:d,u=null!=g?g:u,f={...f,[i]:{...f[i],...v}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:n}):b.rects),({x:d,y:u}=Go(c,p,l))),o=-1)}return{x:d,y:u,placement:p,strategy:n,middlewareData:f}})(e,t,{...n,platform:i})};var Ur="undefined"!=typeof document?e.useLayoutEffect:function(){};function Zr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let o,r,n;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(r=o;0!==r--;)if(!Zr(e[r],t[r]))return!1;return!0}if(n=Object.keys(e),o=n.length,o!==Object.keys(t).length)return!1;for(r=o;0!==r--;)if(!{}.hasOwnProperty.call(t,n[r]))return!1;for(r=o;0!==r--;){const o=n[r];if(!("_owner"===o&&e.$$typeof||Zr(e[o],t[o])))return!1}return!0}return e!=e&&t!=t}function Jr(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Qr(e,t){const o=Jr(e);return Math.round(t*o)/o}function en(t){const o=e.useRef(t);return Ur(()=>{o.current=t}),o}const tn=e=>({name:"arrow",options:e,fn(t){const{element:o,padding:r}="function"==typeof e?e(t):e;return o&&(n=o,{}.hasOwnProperty.call(n,"current"))?null!=o.current?Yr({element:o.current,padding:r}).fn(t):{}:o?Yr({element:o,padding:r}).fn(t):{};var n}}),on=(e,t)=>({...Br(e),options:[e,t]}),rn=(e,t)=>({...Gr(e),options:[e,t]}),nn=(e,t)=>({...Vr(e),options:[e,t]}),sn=(e,t)=>({...qr(e),options:[e,t]});const an={...t},ln=an.useInsertionEffect||(e=>e());var cn="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;let dn=!1,un=0;const pn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+un++,fn=an.useId||function(){const[t,o]=e.useState(()=>dn?pn():void 0);return cn(()=>{null==t&&o(pn())},[]),e.useEffect(()=>{dn=!0},[]),t};const mn=e.createContext(null),hn=e.createContext(null);function yn(t){void 0===t&&(t={});const{nodeId:o}=t,r=function(t){const{open:o=!1,onOpenChange:r,elements:n}=t,i=fn(),s=e.useRef({}),[a]=e.useState(()=>function(){const e=new Map;return{emit(t,o){var r;null==(r=e.get(t))||r.forEach(e=>e(o))},on(t,o){e.set(t,[...e.get(t)||[],o])},off(t,o){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==o))||[])}}}()),l=null!=((null==(m=e.useContext(mn))?void 0:m.id)||null),[c,d]=e.useState(n.reference),u=function(t){const o=e.useRef(()=>{});return ln(()=>{o.current=t}),e.useCallback(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==o.current?void 0:o.current(...t)},[])}((e,t,o)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:o,nested:l}),null==r||r(e,t,o)}),p=e.useMemo(()=>({setPositionReference:d}),[]),f=e.useMemo(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);var m;return e.useMemo(()=>({dataRef:s,open:o,onOpenChange:u,elements:f,events:a,floatingId:i,refs:p}),[o,u,f,a,i,p])}({...t,elements:{reference:null,floating:null,...t.elements}}),n=t.rootContext||r,i=n.elements,[s,a]=e.useState(null),[l,c]=e.useState(null),d=(null==i?void 0:i.domReference)||s,u=e.useRef(null),p=e.useContext(hn);cn(()=>{d&&(u.current=d)},[d]);const f=function(t){void 0===t&&(t={});const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:a}={},transform:l=!0,whileElementsMounted:c,open:d}=t,[u,p]=e.useState({x:0,y:0,strategy:r,placement:o,middlewareData:{},isPositioned:!1}),[f,m]=e.useState(n);Zr(f,n)||m(n);const[h,y]=e.useState(null),[g,v]=e.useState(null),b=e.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),w=e.useCallback(e=>{e!==P.current&&(P.current=e,v(e))},[]),x=s||h,S=a||g,C=e.useRef(null),P=e.useRef(null),T=e.useRef(u),N=null!=c,j=en(c),E=en(i),k=en(d),R=e.useCallback(()=>{if(!C.current||!P.current)return;const e={placement:o,strategy:r,middleware:f};E.current&&(e.platform=E.current),Kr(C.current,P.current,e).then(e=>{const t={...e,isPositioned:!1!==k.current};$.current&&!Zr(T.current,t)&&(T.current=t,Dt.flushSync(()=>{p(t)}))})},[f,o,r,E,k]);Ur(()=>{!1===d&&T.current.isPositioned&&(T.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const $=e.useRef(!1);Ur(()=>($.current=!0,()=>{$.current=!1}),[]),Ur(()=>{if(x&&(C.current=x),S&&(P.current=S),x&&S){if(j.current)return j.current(x,S,R);R()}},[x,S,R,j,N]);const A=e.useMemo(()=>({reference:C,floating:P,setReference:b,setFloating:w}),[b,w]),_=e.useMemo(()=>({reference:x,floating:S}),[x,S]),O=e.useMemo(()=>{const e={position:r,left:0,top:0};if(!_.floating)return e;const t=Qr(_.floating,u.x),o=Qr(_.floating,u.y);return l?{...e,transform:"translate("+t+"px, "+o+"px)",...Jr(_.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:o}},[r,l,_.floating,u.x,u.y]);return e.useMemo(()=>({...u,update:R,refs:A,elements:_,floatingStyles:O}),[u,R,A,_,O])}({...t,elements:{...i,...l&&{reference:l}}}),m=e.useCallback(e=>{const t=rr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)},[f.refs]),h=e.useCallback(e=>{(rr(e)||null===e)&&(u.current=e,a(e)),(rr(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!rr(e))&&f.refs.setReference(e)},[f.refs]),y=e.useMemo(()=>({...f.refs,setReference:h,setPositionReference:m,domReference:u}),[f.refs,h,m]),g=e.useMemo(()=>({...f.elements,domReference:d}),[f.elements,d]),v=e.useMemo(()=>({...f,...n,refs:y,elements:g,nodeId:o}),[f,y,g,o,n]);return cn(()=>{n.dataRef.current.floatingContext=v;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===o);e&&(e.context=v)}),e.useMemo(()=>({...f,context:v,refs:y,elements:g}),[f,y,g,v])}function gn(e,t){const o=function(e){if(void 0===e)return{shift:!0,flip:!0};const t={...e};return void 0===e.shift&&(t.shift=!0),void 0===e.flip&&(t.flip=!0),t}(e.middlewares),r=[on(e.offset)];return o.shift&&r.push((e=>({...Hr(e),options:[e,void 0]}))("boolean"==typeof o.shift?{limiter:rn(),padding:5}:{limiter:rn(),padding:5,...o.shift})),o.flip&&r.push("boolean"==typeof o.flip?nn():nn(o.flip)),o.inline&&r.push("boolean"==typeof o.inline?sn():sn(o.inline)),r.push((e=>({...tn(e),options:[e,void 0]}))({element:e.arrowRef,padding:e.arrowOffset})),(o.size||"target"===e.width)&&r.push((e=>({...Xr(e),options:[e,void 0]}))({..."boolean"==typeof o.size?{}:o.size,apply({rects:r,availableWidth:n,availableHeight:i,...s}){const a=t(),l=a.refs.floating.current?.style??{};o.size&&("object"==typeof o.size&&o.size.apply?o.size.apply({rects:r,availableWidth:n,availableHeight:i,...s}):Object.assign(l,{maxWidth:`${n}px`,maxHeight:`${i}px`})),"target"===e.width&&Object.assign(l,{width:`${r.reference.width}px`})}})),r}function vn(t){const[o,r]=st({value:t.opened,defaultValue:t.defaultOpened,finalValue:!1,onChange:t.onChange}),n=(0,e.useRef)(o),i=yn({strategy:t.strategy,placement:t.position,middleware:gn(t,()=>i)});return function({opened:t,floating:o,position:r,positionDependencies:n}){const[i,s]=(0,e.useState)(0);(0,e.useEffect)(()=>{if(o.refs.reference.current&&o.refs.floating.current&&t)return function(e,t,o,r){void 0===r&&(r={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Nr(e),d=n||i?[...c?Cr(c):[],...Cr(t)]:[];d.forEach(e=>{n&&e.addEventListener("scroll",o,{passive:!0}),i&&e.addEventListener("resize",o)});const u=c&&a?function(e,t){let o,r=null;const n=tr(e);function i(){var e;clearTimeout(o),null==(e=r)||e.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:f}=c;if(a||t(),!p||!f)return;const m={rootMargin:-jo(u)+"px "+-jo(n.clientWidth-(d+p))+"px "+-jo(n.clientHeight-(u+f))+"px "+-jo(d)+"px",threshold:To(0,Po(1,l))||1};let h=!0;function y(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return s();r?s(!1,r):o=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||Wr(c,e.getBoundingClientRect())||s(),h=!1}try{r=new IntersectionObserver(y,{...m,root:n.ownerDocument})}catch(e){r=new IntersectionObserver(y,m)}r.observe(e)}(!0),i}(c,o):null;let p,f=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),o()}),c&&!l&&m.observe(c),m.observe(t));let h=l?Rr(e):null;return l&&function t(){const r=Rr(e);h&&!Wr(h,r)&&o(),h=r,p=requestAnimationFrame(t)}(),o(),()=>{var e;d.forEach(e=>{n&&e.removeEventListener("scroll",o),i&&e.removeEventListener("resize",o)}),null==u||u(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(p)}}(o.refs.reference.current,o.refs.floating.current,o.update)},[o.refs.reference.current,o.refs.floating.current,t,i,r]),qt(()=>{o.update()},n),qt(()=>{s(e=>e+1)},[t])}({opened:o,position:t.position,positionDependencies:t.positionDependencies||[],floating:i}),qt(()=>{t.onPositionChange?.(i.placement)},[i.placement]),qt(()=>{o!==n.current&&(o?t.onOpen?.():t.onClose?.()),n.current=o},[o,t.onClose,t.onOpen]),{floating:i,controlled:"boolean"==typeof t.opened,opened:o,onClose:()=>{o&&!t.disabled&&r(!1)},onToggle:()=>!t.disabled&&r(!o)}}const bn={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:Et("popover"),__staticSelector:"Popover",width:"max-content"},wn=(e,{radius:t,shadow:o})=>({dropdown:{"--popover-radius":void 0===t?void 0:re(t),"--popover-shadow":ie(o)}});function xn(t){const o=Z("Popover",bn,t),{children:r,position:n,offset:s,onPositionChange:a,positionDependencies:l,opened:c,transitionProps:d,onExitTransitionEnd:u,onEnterTransitionEnd:p,width:f,middlewares:m,withArrow:h,arrowSize:y,arrowOffset:g,arrowRadius:v,arrowPosition:b,unstyled:w,classNames:x,styles:S,closeOnClickOutside:C,withinPortal:P,portalProps:T,closeOnEscape:N,clickOutsideEvents:j,trapFocus:E,onClose:k,onDismiss:R,onOpen:$,onChange:A,zIndex:_,radius:O,shadow:I,id:D,defaultOpened:M,__staticSelector:z,withRoles:L,disabled:F,returnFocus:W,variant:B,keepMounted:H,vars:V,floatingStrategy:X,withOverlay:Y,overlayProps:q,...G}=o,K=ve({name:z,props:o,classes:vo,classNames:x,styles:S,unstyled:w,rootSelector:"dropdown",vars:V,varsResolver:wn}),{resolvedStyles:U}=St({classNames:x,styles:S,props:o}),J=(0,e.useRef)(null),[Q,ee]=(0,e.useState)(null),[te,oe]=(0,e.useState)(null),{dir:re}=Rt(),ne=xt(D),ie=vn({middlewares:m,width:f,position:$t(re,n),offset:"number"==typeof s?s+(h?y/2:0):s,arrowRef:J,arrowOffset:g,onPositionChange:a,positionDependencies:l,opened:c,defaultOpened:M,onChange:A,onOpen:$,onClose:k,onDismiss:R,strategy:X,disabled:F});!function(t,o,r){const n=(0,e.useRef)(null);(0,e.useEffect)(()=>{const e=e=>{const{target:o}=e??{};if(Array.isArray(r)){const n=o?.hasAttribute("data-ignore-outside-clicks")||!document.body.contains(o)&&"HTML"!==o.tagName;r.every(t=>!!t&&!e.composedPath().includes(t))&&!n&&t()}else n.current&&!n.current.contains(o)&&t()};return(o||Nt).forEach(t=>document.addEventListener(t,e)),()=>{(o||Nt).forEach(t=>document.removeEventListener(t,e))}},[n,t,r])}(()=>{C&&(ie.onClose(),R?.())},j,[Q,te]);const se=(0,e.useCallback)(e=>{ee(e),ie.floating.refs.setReference(e)},[ie.floating.refs.setReference]),ae=(0,e.useCallback)(e=>{oe(e),ie.floating.refs.setFloating(e)},[ie.floating.refs.setFloating]),le=(0,e.useCallback)(()=>{d?.onExited?.(),u?.()},[d?.onExited,u]),ce=(0,e.useCallback)(()=>{d?.onEntered?.(),p?.()},[d?.onEntered,p]);return(0,i.jsxs)(Ut,{value:{returnFocus:W,disabled:F,controlled:ie.controlled,reference:se,floating:ae,x:ie.floating.x,y:ie.floating.y,arrowX:ie.floating?.middlewareData?.arrow?.x,arrowY:ie.floating?.middlewareData?.arrow?.y,opened:ie.opened,arrowRef:J,transitionProps:{...d,onExited:le,onEntered:ce},width:f,withArrow:h,arrowSize:y,arrowOffset:g,arrowRadius:v,arrowPosition:b,placement:ie.floating.placement,trapFocus:E,withinPortal:P,portalProps:T,zIndex:_,radius:O,shadow:I,closeOnEscape:N,onDismiss:R,onClose:ie.onClose,onToggle:ie.onToggle,getTargetId:()=>`${ne}-target`,getDropdownId:()=>`${ne}-dropdown`,withRoles:L,targetProps:G,__staticSelector:z,classNames:x,styles:S,unstyled:w,variant:B,keepMounted:H,getStyles:K,resolvedStyles:U,floatingStrategy:X},children:[r,Y&&(0,i.jsx)(Kt,{transition:"fade",mounted:ie.opened,duration:d?.duration||250,exitDuration:d?.exitDuration||250,children:e=>(0,i.jsx)(Bt,{withinPortal:P,children:(0,i.jsx)(It,{...q,...K("overlay",{className:q?.className,style:[e,q?.style]})})})})]})}xn.Target=Co,xn.Dropdown=wo,xn.displayName="@mantine/core/Popover",xn.extend=e=>e;const[Sn,Cn]=Xe("Combobox component was not found in tree");var Pn={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const Tn={error:null},Nn=(e,{size:t,color:o})=>({chevron:{"--combobox-chevron-size":te(t,"combobox-chevron-size"),"--combobox-chevron-color":o?C(o,e):void 0}}),jn=Q((e,t)=>{const o=Z("ComboboxChevron",Tn,e),{size:r,error:n,style:s,className:a,classNames:l,styles:c,unstyled:d,vars:u,mod:p,...f}=o,m=ve({name:"ComboboxChevron",classes:Pn,props:o,style:s,className:a,classNames:l,styles:c,unstyled:d,vars:u,varsResolver:Nn,rootSelector:"chevron"});return(0,i.jsx)(De,{component:"svg",...f,...m("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:n},p],ref:t,children:(0,i.jsx)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});function En(t=null){const o=(0,e.createContext)(t);return[({children:e,value:t})=>(0,i.jsx)(o.Provider,{value:t,children:e}),()=>(0,e.useContext)(o)]}jn.classes=Pn,jn.displayName="@mantine/core/ComboboxChevron";const[kn,Rn]=En({size:"sm"}),$n=(0,e.forwardRef)(({size:e="var(--cb-icon-size, 70%)",style:t,...o},r)=>(0,i.jsx)("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...o,children:(0,i.jsx)("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));$n.displayName="@mantine/core/CloseIcon";var An={root:"m_86a44da5","root--subtle":"m_220c80f2"};const On={variant:"subtle"},In=(e,{size:t,radius:o,iconSize:r})=>({root:{"--cb-size":te(t,"cb-size"),"--cb-radius":void 0===o?void 0:re(o),"--cb-icon-size":h(r)}}),Dn=We((e,t)=>{const o=Z("CloseButton",On,e),{iconSize:r,children:n,vars:s,radius:a,className:l,classNames:c,style:d,styles:u,unstyled:p,"data-disabled":f,disabled:m,variant:h,icon:y,mod:g,__staticSelector:v,...b}=o,w=ve({name:v||"CloseButton",props:o,className:l,style:d,classes:An,classNames:c,styles:u,unstyled:p,vars:s,varsResolver:In});return(0,i.jsxs)(Ve,{ref:t,...b,unstyled:p,variant:h,disabled:m,mod:[{disabled:m||f},g],...w("root",{variant:h,active:!m&&!f}),children:[y||(0,i.jsx)($n,{}),n]})});Dn.classes=An,Dn.displayName="@mantine/core/CloseButton";const Mn={},zn=Q((e,t)=>{const o=Z("InputClearButton",Mn,e),{size:r,variant:n,vars:s,classNames:a,styles:l,...c}=o,d=Rn(),{resolvedClassNames:u,resolvedStyles:p}=St({classNames:a,styles:l,props:o});return(0,i.jsx)(Dn,{variant:n||"transparent",ref:t,size:r||d?.size||"sm",classNames:u,styles:p,__staticSelector:"InputClearButton",...c})});zn.displayName="@mantine/core/InputClearButton";const[Ln,Fn]=En({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Wn={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const Bn={},Hn=(e,{size:t})=>({description:{"--input-description-size":void 0===t?void 0:`calc(${ne(t)} - ${h(2)})`}}),Vn=Q((e,t)=>{const o=Z("InputDescription",Bn,e),{classNames:r,className:n,style:s,styles:a,unstyled:l,vars:c,size:d,__staticSelector:u,__inheritStyles:p=!0,variant:f,...m}=Z("InputDescription",Bn,o),h=Fn(),y=ve({name:["InputWrapper",u],props:o,classes:Wn,className:n,style:s,classNames:r,styles:a,unstyled:l,rootSelector:"description",vars:c,varsResolver:Hn}),g=p&&h?.getStyles||y;return(0,i.jsx)(De,{component:"p",ref:t,variant:f,size:d,...g("description",h?.getStyles?{className:n,style:s}:void 0),...m})});Vn.classes=Wn,Vn.displayName="@mantine/core/InputDescription";const Xn={},Yn=(e,{size:t})=>({error:{"--input-error-size":void 0===t?void 0:`calc(${ne(t)} - ${h(2)})`}}),qn=Q((e,t)=>{const o=Z("InputError",Xn,e),{classNames:r,className:n,style:s,styles:a,unstyled:l,vars:c,size:d,__staticSelector:u,__inheritStyles:p=!0,variant:f,...m}=o,h=ve({name:["InputWrapper",u],props:o,classes:Wn,className:n,style:s,classNames:r,styles:a,unstyled:l,rootSelector:"error",vars:c,varsResolver:Yn}),y=Fn(),g=p&&y?.getStyles||h;return(0,i.jsx)(De,{component:"p",ref:t,variant:f,size:d,...g("error",y?.getStyles?{className:n,style:s}:void 0),...m})});qn.classes=Wn,qn.displayName="@mantine/core/InputError";const Gn={labelElement:"label"},Kn=(e,{size:t})=>({label:{"--input-label-size":ne(t),"--input-asterisk-color":void 0}}),Un=Q((e,t)=>{const o=Z("InputLabel",Gn,e),{classNames:r,className:n,style:s,styles:a,unstyled:l,vars:c,labelElement:d,size:u,required:p,htmlFor:f,onMouseDown:m,children:h,__staticSelector:y,variant:g,mod:v,...b}=Z("InputLabel",Gn,o),w=ve({name:["InputWrapper",y],props:o,classes:Wn,className:n,style:s,classNames:r,styles:a,unstyled:l,rootSelector:"label",vars:c,varsResolver:Kn}),x=Fn(),S=x?.getStyles||w;return(0,i.jsxs)(De,{...S("label",x?.getStyles?{className:n,style:s}:void 0),component:d,variant:g,size:u,ref:t,htmlFor:"label"===d?f:void 0,mod:[{required:p},v],onMouseDown:e=>{m?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...b,children:[h,p&&(0,i.jsx)("span",{...S("required"),"aria-hidden":!0,children:" *"})]})});Un.classes=Wn,Un.displayName="@mantine/core/InputLabel";const Zn={},Jn=Q((e,t)=>{const o=Z("InputPlaceholder",Zn,e),{classNames:r,className:n,style:s,styles:a,unstyled:l,vars:c,__staticSelector:d,variant:u,error:p,mod:f,...m}=Z("InputPlaceholder",Zn,o),h=ve({name:["InputPlaceholder",d],props:o,classes:Wn,className:n,style:s,classNames:r,styles:a,unstyled:l,rootSelector:"placeholder"});return(0,i.jsx)(De,{...h("placeholder"),mod:[{error:!!p},f],component:"span",variant:u,ref:t,...m})});function Qn(e,{hasDescription:t,hasError:o}){const r=e.findIndex(e=>"input"===e),n=e.slice(0,r),i=e.slice(r+1),s=t&&n.includes("description")||o&&n.includes("error");return{offsetBottom:t&&i.includes("description")||o&&i.includes("error"),offsetTop:s}}Jn.classes=Wn,Jn.displayName="@mantine/core/InputPlaceholder";const ei={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},ti=(e,{size:t})=>({label:{"--input-label-size":ne(t),"--input-asterisk-color":void 0},error:{"--input-error-size":void 0===t?void 0:`calc(${ne(t)} - ${h(2)})`},description:{"--input-description-size":void 0===t?void 0:`calc(${ne(t)} - ${h(2)})`}}),oi=Q((t,o)=>{const r=Z("InputWrapper",ei,t),{classNames:n,className:s,style:a,styles:l,unstyled:c,vars:d,size:u,variant:p,__staticSelector:f,inputContainer:m,inputWrapperOrder:h,label:y,error:g,description:v,labelProps:b,descriptionProps:w,errorProps:x,labelElement:S,children:C,withAsterisk:P,id:T,required:N,__stylesApiProps:j,mod:E,...k}=r,R=ve({name:["InputWrapper",f],props:j||r,classes:Wn,className:s,style:a,classNames:n,styles:l,unstyled:c,vars:d,varsResolver:ti}),$={size:u,variant:p,__staticSelector:f},A=xt(T),_="boolean"==typeof P?P:N,O=x?.id||`${A}-error`,I=w?.id||`${A}-description`,D=A,M=!!g&&"boolean"!=typeof g,z=!!v,L=`${M?O:""} ${z?I:""}`,F=L.trim().length>0?L.trim():void 0,W=b?.id||`${A}-label`,B=y&&(0,i.jsx)(Un,{labelElement:S,id:W,htmlFor:D,required:_,...$,...b,children:y},"label"),H=z&&(0,i.jsx)(Vn,{...w,...$,size:w?.size||$.size,id:w?.id||I,children:v},"description"),V=(0,i.jsx)(e.Fragment,{children:m(C)},"input"),X=M&&(0,e.createElement)(qn,{...x,...$,size:x?.size||$.size,key:"error",id:x?.id||O},g),Y=h.map(e=>{switch(e){case"label":return B;case"input":return V;case"description":return H;case"error":return X;default:return null}});return(0,i.jsx)(Ln,{value:{getStyles:R,describedBy:F,inputId:D,labelId:W,...Qn(h,{hasDescription:z,hasError:M})},children:(0,i.jsx)(De,{ref:o,variant:p,size:u,mod:[{error:!!g},E],...R("root"),...k,children:Y})})});oi.classes=Wn,oi.displayName="@mantine/core/InputWrapper";const ri={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},ni=(e,t,o)=>({wrapper:{"--input-margin-top":o.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":o.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":te(t.size,"input-height"),"--input-fz":ne(t.size),"--input-radius":void 0===t.radius?void 0:re(t.radius),"--input-left-section-width":void 0!==t.leftSectionWidth?h(t.leftSectionWidth):void 0,"--input-right-section-width":void 0!==t.rightSectionWidth?h(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?te(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),ii=We((e,t)=>{const o=Z("Input",ri,e),{classNames:r,className:n,style:s,styles:a,unstyled:l,required:c,__staticSelector:d,__stylesApiProps:u,size:p,wrapperProps:f,error:m,disabled:h,leftSection:y,leftSectionProps:g,leftSectionWidth:v,rightSection:b,rightSectionProps:w,rightSectionWidth:x,rightSectionPointerEvents:S,leftSectionPointerEvents:C,variant:P,vars:T,pointer:N,multiline:j,radius:E,id:k,withAria:R,withErrorStyles:$,mod:A,inputSize:_,__clearSection:O,__clearable:I,__defaultRightSection:D,...M}=o,{styleProps:z,rest:L}=Ne(M),F=Fn(),W=ve({name:["Input",d],props:u||o,classes:Wn,className:n,style:s,classNames:r,styles:a,unstyled:l,stylesCtx:{offsetBottom:F?.offsetBottom,offsetTop:F?.offsetTop},rootSelector:"wrapper",vars:T,varsResolver:ni}),B=R?{required:c,disabled:h,"aria-invalid":!!m,"aria-describedby":F?.describedBy,id:F?.inputId||k}:{},H=b||I&&O||D;return(0,i.jsx)(kn,{value:{size:p||"sm"},children:(0,i.jsxs)(De,{...W("wrapper"),...z,...f,mod:[{error:!!m&&$,pointer:N,disabled:h,multiline:j,"data-with-right-section":!!H,"data-with-left-section":!!y},A],variant:P,size:p,children:[y&&(0,i.jsx)("div",{...g,"data-position":"left",...W("section",{className:g?.className,style:g?.style}),children:y}),(0,i.jsx)(De,{component:"input",...L,...B,ref:t,required:c,mod:{disabled:h,error:!!m&&$},variant:P,__size:_,...W("input")}),H&&(0,i.jsx)("div",{...w,"data-position":"right",...W("section",{className:w?.className,style:w?.style}),children:H})]})})});ii.classes=Wn,ii.Wrapper=oi,ii.Label=Un,ii.Error=qn,ii.Description=Vn,ii.Placeholder=Jn,ii.ClearButton=zn,ii.displayName="@mantine/core/Input";const si=(0,e.forwardRef)(({size:e,onMouseDown:t,onClick:o,onClear:r,...n},s)=>(0,i.jsx)(ii.ClearButton,{ref:s,tabIndex:-1,"aria-hidden":!0,...n,onMouseDown:e=>{e.preventDefault(),t?.(e)},onClick:e=>{r(),o?.(e)}}));si.displayName="@mantine/core/ComboboxClearButton";const ai={},li=Q((e,t)=>{const{classNames:o,styles:r,className:n,style:s,hidden:a,...l}=Z("ComboboxDropdown",ai,e),c=Cn();return(0,i.jsx)(xn.Dropdown,{...l,ref:t,role:"presentation","data-hidden":a||void 0,...c.getStyles("dropdown",{className:n,style:s,classNames:o,styles:r})})});li.classes=Pn,li.displayName="@mantine/core/ComboboxDropdown";const ci={refProp:"ref"},di=Q((e,t)=>{const{children:o,refProp:r}=Z("ComboboxDropdownTarget",ci,e);if(Cn(),!po(o))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return(0,i.jsx)(xn.Target,{ref:t,refProp:r,children:o})});di.displayName="@mantine/core/ComboboxDropdownTarget";const ui={},pi=Q((e,t)=>{const{classNames:o,className:r,style:n,styles:s,vars:a,...l}=Z("ComboboxEmpty",ui,e),c=Cn();return(0,i.jsx)(De,{ref:t,...c.getStyles("empty",{className:r,classNames:o,styles:s,style:n}),...l})});function fi({onKeyDown:t,withKeyboardNavigation:o,withAriaAttributes:r,withExpandedAttribute:n,targetType:i,autoComplete:s}){const a=Cn(),[l,c]=(0,e.useState)(null);return{...r?{"aria-haspopup":"listbox","aria-expanded":n&&!(!a.store.listId||!a.store.dropdownOpened)||void 0,"aria-controls":a.store.dropdownOpened?a.store.listId:void 0,"aria-activedescendant":a.store.dropdownOpened&&l||void 0,autoComplete:s,"data-expanded":a.store.dropdownOpened||void 0,"data-mantine-stop-propagation":a.store.dropdownOpened||void 0}:{},onKeyDown:e=>{if(t?.(e),!a.readOnly&&o){if(e.nativeEvent.isComposing)return;if("ArrowDown"===e.nativeEvent.code&&(e.preventDefault(),a.store.dropdownOpened?c(a.store.selectNextOption()):(a.store.openDropdown("keyboard"),c(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"ArrowUp"===e.nativeEvent.code&&(e.preventDefault(),a.store.dropdownOpened?c(a.store.selectPreviousOption()):(a.store.openDropdown("keyboard"),c(a.store.selectActiveOption()),a.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"Enter"===e.nativeEvent.code||"NumpadEnter"===e.nativeEvent.code){if(229===e.nativeEvent.keyCode)return;const t=a.store.getSelectedOptionIndex();a.store.dropdownOpened&&-1!==t?(e.preventDefault(),a.store.clickSelectedOption()):"button"===i&&(e.preventDefault(),a.store.openDropdown("keyboard"))}"Escape"===e.key&&a.store.closeDropdown("keyboard"),"Space"===e.nativeEvent.code&&"button"===i&&(e.preventDefault(),a.store.toggleDropdown("keyboard"))}}}}pi.classes=Pn,pi.displayName="@mantine/core/ComboboxEmpty";const mi={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},hi=Q((t,o)=>{const{children:r,refProp:n,withKeyboardNavigation:i,withAriaAttributes:s,withExpandedAttribute:a,targetType:l,autoComplete:c,...d}=Z("ComboboxEventsTarget",mi,t);if(!po(r))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=Cn(),p=fi({targetType:l,withAriaAttributes:s,withKeyboardNavigation:i,withExpandedAttribute:a,onKeyDown:r.props.onKeyDown,autoComplete:c});return(0,e.cloneElement)(r,{...p,...d,[n]:zt(o,u.store.targetRef,xo(r))})});hi.displayName="@mantine/core/ComboboxEventsTarget";const yi={},gi=Q((e,t)=>{const{classNames:o,className:r,style:n,styles:s,vars:a,...l}=Z("ComboboxFooter",yi,e),c=Cn();return(0,i.jsx)(De,{ref:t,...c.getStyles("footer",{className:r,classNames:o,style:n,styles:s}),...l,onMouseDown:e=>{e.preventDefault()}})});gi.classes=Pn,gi.displayName="@mantine/core/ComboboxFooter";const vi={},bi=Q((e,t)=>{const{classNames:o,className:r,style:n,styles:s,vars:a,children:l,label:c,...d}=Z("ComboboxGroup",vi,e),u=Cn();return(0,i.jsxs)(De,{ref:t,...u.getStyles("group",{className:r,classNames:o,style:n,styles:s}),...d,children:[c&&(0,i.jsx)("div",{...u.getStyles("groupLabel",{classNames:o,styles:s}),children:c}),l]})});bi.classes=Pn,bi.displayName="@mantine/core/ComboboxGroup";const wi={},xi=Q((e,t)=>{const{classNames:o,className:r,style:n,styles:s,vars:a,...l}=Z("ComboboxHeader",wi,e),c=Cn();return(0,i.jsx)(De,{ref:t,...c.getStyles("header",{className:r,classNames:o,style:n,styles:s}),...l,onMouseDown:e=>{e.preventDefault()}})});function Si({value:e,valuesDivider:t=",",...o}){return(0,i.jsx)("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...o})}xi.classes=Pn,xi.displayName="@mantine/core/ComboboxHeader",Si.displayName="@mantine/core/ComboboxHiddenInput";const Ci={},Pi=Q((t,o)=>{const r=Z("ComboboxOption",Ci,t),{classNames:n,className:s,style:a,styles:l,vars:c,onClick:d,id:u,active:p,onMouseDown:f,onMouseOver:m,disabled:h,selected:y,mod:g,...v}=r,b=Cn(),w=(0,e.useId)(),x=u||w;return(0,i.jsx)(De,{...b.getStyles("option",{className:s,classNames:n,styles:l,style:a}),...v,ref:o,id:x,mod:["combobox-option",{"combobox-active":p,"combobox-disabled":h,"combobox-selected":y},g],role:"option",onClick:e=>{h?e.preventDefault():(b.onOptionSubmit?.(r.value,r),d?.(e))},onMouseDown:e=>{e.preventDefault(),f?.(e)},onMouseOver:e=>{b.resetSelectionOnOptionHover&&b.store.resetSelectedOption(),m?.(e)}})});Pi.classes=Pn,Pi.displayName="@mantine/core/ComboboxOption";const Ti={},Ni=Q((t,o)=>{const r=Z("ComboboxOptions",Ti,t),{classNames:n,className:s,style:a,styles:l,id:c,onMouseDown:d,labelledBy:u,...p}=r,f=Cn(),m=xt(c);return(0,e.useEffect)(()=>{f.store.setListId(m)},[m]),(0,i.jsx)(De,{ref:o,...f.getStyles("options",{className:s,style:a,classNames:n,styles:l}),...p,id:m,role:"listbox","aria-labelledby":u,onMouseDown:e=>{e.preventDefault(),d?.(e)}})});Ni.classes=Pn,Ni.displayName="@mantine/core/ComboboxOptions";const ji={withAriaAttributes:!0,withKeyboardNavigation:!0},Ei=Q((e,t)=>{const o=Z("ComboboxSearch",ji,e),{classNames:r,styles:n,unstyled:s,vars:a,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:u,...p}=o,f=Cn(),m=f.getStyles("search"),h=fi({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return(0,i.jsx)(ii,{ref:zt(t,f.store.searchRef),classNames:[{input:m.className},r],styles:[{input:m.style},n],size:u||f.size,...h,...p,__staticSelector:"Combobox"})});Ei.classes=Pn,Ei.displayName="@mantine/core/ComboboxSearch";const ki={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Ri=Q((t,o)=>{const{children:r,refProp:n,withKeyboardNavigation:s,withAriaAttributes:a,withExpandedAttribute:l,targetType:c,autoComplete:d,...u}=Z("ComboboxTarget",ki,t);if(!po(r))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const p=Cn(),f=fi({targetType:c,withAriaAttributes:a,withKeyboardNavigation:s,withExpandedAttribute:l,onKeyDown:r.props.onKeyDown,autoComplete:d}),m=(0,e.cloneElement)(r,{...f,...u});return(0,i.jsx)(xn.Target,{ref:zt(o,p.store.targetRef),children:m})});function $i({defaultOpened:t,opened:o,onOpenedChange:r,onDropdownClose:n,onDropdownOpen:i,loop:s=!0,scrollBehavior:a="instant"}={}){const[l,c]=st({value:o,defaultValue:t,finalValue:!1,onChange:r}),d=(0,e.useRef)(null),u=(0,e.useRef)(-1),p=(0,e.useRef)(null),f=(0,e.useRef)(null),m=(0,e.useRef)(-1),h=(0,e.useRef)(-1),y=(0,e.useRef)(-1),g=(0,e.useCallback)((e="unknown")=>{l||(c(!0),i?.(e))},[c,i,l]),v=(0,e.useCallback)((e="unknown")=>{l&&(c(!1),n?.(e))},[c,n,l]),b=(0,e.useCallback)((e="unknown")=>{l?v(e):g(e)},[v,g,l]),w=(0,e.useCallback)(()=>{const e=document.querySelector(`#${d.current} [data-combobox-selected]`);e?.removeAttribute("data-combobox-selected"),e?.removeAttribute("aria-selected")},[]),x=(0,e.useCallback)(e=>{const t=document.getElementById(d.current),o=t?.querySelectorAll("[data-combobox-option]");if(!o)return null;const r=e>=o.length?0:e<0?o.length-1:e;return u.current=r,o?.[r]&&!o[r].hasAttribute("data-combobox-disabled")?(w(),o[r].setAttribute("data-combobox-selected","true"),o[r].setAttribute("aria-selected","true"),o[r].scrollIntoView({block:"nearest",behavior:a}),o[r].id):null},[a,w]),S=(0,e.useCallback)(()=>{const e=document.querySelector(`#${d.current} [data-combobox-active]`);if(e){const t=document.querySelectorAll(`#${d.current} [data-combobox-option]`),o=Array.from(t).findIndex(t=>t===e);return x(o)}return x(0)},[x]),C=(0,e.useCallback)(()=>x(function(e,t,o){for(let o=e+1;o<t.length;o+=1)if(!t[o].hasAttribute("data-combobox-disabled"))return o;if(o)for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),s)),[x,s]),P=(0,e.useCallback)(()=>x(function(e,t,o){for(let o=e-1;o>=0;o-=1)if(!t[o].hasAttribute("data-combobox-disabled"))return o;if(o)for(let e=t.length-1;e>-1;e-=1)if(!t[e].hasAttribute("data-combobox-disabled"))return e;return e}(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),s)),[x,s]),T=(0,e.useCallback)(()=>x(function(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}(document.querySelectorAll(`#${d.current} [data-combobox-option]`))),[x]),N=(0,e.useCallback)((e="selected",t)=>{y.current=window.setTimeout(()=>{const o=document.querySelectorAll(`#${d.current} [data-combobox-option]`),r=Array.from(o).findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=r,t?.scrollIntoView&&o[r]?.scrollIntoView({block:"nearest",behavior:a})},0)},[]),j=(0,e.useCallback)(()=>{u.current=-1,w()},[w]),E=(0,e.useCallback)(()=>{const e=document.querySelectorAll(`#${d.current} [data-combobox-option]`),t=e?.[u.current];t?.click()},[]),k=(0,e.useCallback)(e=>{d.current=e},[]),R=(0,e.useCallback)(()=>{m.current=window.setTimeout(()=>p.current.focus(),0)},[]),$=(0,e.useCallback)(()=>{h.current=window.setTimeout(()=>f.current.focus(),0)},[]),A=(0,e.useCallback)(()=>u.current,[]);return(0,e.useEffect)(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(h.current),window.clearTimeout(y.current)},[]),{dropdownOpened:l,openDropdown:g,closeDropdown:v,toggleDropdown:b,selectedOptionIndex:u.current,getSelectedOptionIndex:A,selectOption:x,selectFirstOption:T,selectActiveOption:S,selectNextOption:C,selectPreviousOption:P,resetSelectedOption:j,updateSelectedOptionIndex:N,listId:d.current,setListId:k,clickSelectedOption:E,searchRef:p,focusSearchInput:R,targetRef:f,focusTarget:$}}Ri.displayName="@mantine/core/ComboboxTarget";const Ai={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},_i=(e,{size:t,dropdownPadding:o})=>({options:{"--combobox-option-fz":ne(t),"--combobox-option-padding":te(t,"combobox-option-padding")},dropdown:{"--combobox-padding":void 0===o?void 0:h(o),"--combobox-option-fz":ne(t),"--combobox-option-padding":te(t,"combobox-option-padding")}});function Oi(e){const t=Z("Combobox",Ai,e),{classNames:o,styles:r,unstyled:n,children:s,store:a,vars:l,onOptionSubmit:c,onClose:d,size:u,dropdownPadding:p,resetSelectionOnOptionHover:f,__staticSelector:m,readOnly:h,...y}=t,g=$i(),v=a||g,b=ve({name:m||"Combobox",classes:Pn,props:t,classNames:o,styles:r,unstyled:n,vars:l,varsResolver:_i});return(0,i.jsx)(Sn,{value:{getStyles:b,store:v,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:h},children:(0,i.jsx)(xn,{opened:v.dropdownOpened,...y,onChange:e=>!e&&(d?.(),void v.closeDropdown()),withRoles:!1,unstyled:n,children:s})})}function Ii({size:e,style:t,...o}){const r=void 0!==e?{width:h(e),height:h(e),...t}:t;return(0,i.jsx)("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...o,children:(0,i.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}Oi.extend=e=>e,Oi.classes=Pn,Oi.displayName="@mantine/core/Combobox",Oi.Target=Ri,Oi.Dropdown=li,Oi.Options=Ni,Oi.Option=Pi,Oi.Search=Ei,Oi.Empty=pi,Oi.Chevron=jn,Oi.Footer=gi,Oi.Header=xi,Oi.EventsTarget=hi,Oi.DropdownTarget=di,Oi.Group=bi,Oi.ClearButton=si,Oi.HiddenInput=Si;const[Di,Mi]=Xe("ScrollArea.Root component was not found in tree");function zi(t){const o=(0,e.useRef)(t);return(0,e.useEffect)(()=>{o.current=t}),(0,e.useMemo)(()=>(...e)=>o.current?.(...e),[])}function Li(e,t){const o=zi(t);q(()=>{let t=0;if(e){const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(o)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,o])}const Fi=(0,e.forwardRef)((t,o)=>{const{style:r,...n}=t,s=Mi(),[a,l]=(0,e.useState)(0),[c,d]=(0,e.useState)(0),u=Boolean(a&&c);return Li(s.scrollbarX,()=>{const e=s.scrollbarX?.offsetHeight||0;s.onCornerHeightChange(e),d(e)}),Li(s.scrollbarY,()=>{const e=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(e),l(e)}),u?(0,i.jsx)("div",{...n,ref:o,style:{...r,width:a,height:c}}):null}),Wi=(0,e.forwardRef)((e,t)=>{const o=Mi(),r=Boolean(o.scrollbarX&&o.scrollbarY);return"scroll"!==o.type&&r?(0,i.jsx)(Fi,{...e,ref:t}):null}),Bi={scrollHideDelay:1e3,type:"hover"},Hi=(0,e.forwardRef)((t,o)=>{const r=Z("ScrollAreaRoot",Bi,t),{type:n,scrollHideDelay:s,scrollbars:a,...l}=r,[c,d]=(0,e.useState)(null),[u,p]=(0,e.useState)(null),[f,m]=(0,e.useState)(null),[h,y]=(0,e.useState)(null),[g,v]=(0,e.useState)(null),[b,w]=(0,e.useState)(0),[x,S]=(0,e.useState)(0),[C,P]=(0,e.useState)(!1),[T,N]=(0,e.useState)(!1),j=zt(o,e=>d(e));return(0,i.jsx)(Di,{value:{type:n,scrollHideDelay:s,scrollArea:c,viewport:u,onViewportChange:p,content:f,onContentChange:m,scrollbarX:h,onScrollbarXChange:y,scrollbarXEnabled:C,onScrollbarXEnabledChange:P,scrollbarY:g,onScrollbarYChange:v,scrollbarYEnabled:T,onScrollbarYEnabledChange:N,onCornerWidthChange:w,onCornerHeightChange:S},children:(0,i.jsx)(De,{...l,ref:j,__vars:{"--sa-corner-width":"xy"!==a?"0px":`${b}px`,"--sa-corner-height":"xy"!==a?"0px":`${x}px`}})})});function Vi(t,o){const r="number"==typeof o?o:o.delay,n="number"!=typeof o&&o.flushOnUnmount,i=zi(t),s=(0,e.useRef)(0),a=(0,e.useRef)(()=>{}),l=Object.assign((0,e.useCallback)((...e)=>{window.clearTimeout(s.current);const t=()=>{0!==s.current&&(s.current=0,i(...e))};a.current=t,l.flush=t,s.current=window.setTimeout(t,r)},[i,r]),{flush:a.current});return(0,e.useEffect)(()=>()=>{window.clearTimeout(s.current),n&&l.flush()},[l,n]),l}function Xi(e,t){const o=e/t;return Number.isNaN(o)?0:o}function Yi(e){const t=Xi(e.viewport,e.content),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-o)*t;return Math.max(r,18)}function qi(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(o-e[0])}}function Gi(e,t,o="ltr"){const r=Yi(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-n,s=t.content-t.viewport,a=i-r,l=function(e,[t,o]){return Math.min(o,Math.max(t,e))}(e,"ltr"===o?[0,s]:[-1*s,0]);return qi([0,s],[0,a])(l)}function Ki(e,t){return e>0&&e<t}function Ui(e){return e?parseInt(e,10):0}function Zi(e,t,{checkForDefaultPrevented:o=!0}={}){return r=>{e?.(r),!1!==o&&r.defaultPrevented||t?.(r)}}Hi.displayName="@mantine/core/ScrollAreaRoot";const[Ji,Qi]=Xe("ScrollAreaScrollbar was not found in tree"),es=(0,e.forwardRef)((t,o)=>{const{sizes:r,hasThumb:n,onThumbChange:s,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:u,onResize:p,...f}=t,m=Mi(),[h,y]=(0,e.useState)(null),g=zt(o,e=>y(e)),v=(0,e.useRef)(null),b=(0,e.useRef)(""),{viewport:w}=m,x=r.content-r.viewport,S=zi(u),C=zi(c),P=Vi(p,10),T=e=>{if(v.current){const t=e.clientX-v.current.left,o=e.clientY-v.current.top;d({x:t,y:o})}};return(0,e.useEffect)(()=>{const e=e=>{const t=e.target,o=h?.contains(t);o&&S(e,x)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[w,h,x,S]),(0,e.useEffect)(C,[r,C]),Li(h,P),Li(m.content,P),(0,i.jsx)(Ji,{value:{scrollbar:h,hasThumb:n,onThumbChange:zi(s),onThumbPointerUp:zi(a),onThumbPositionChange:C,onThumbPointerDown:zi(l)},children:(0,i.jsx)("div",{...f,ref:g,"data-mantine-scrollbar":!0,style:{position:"absolute",...f.style},onPointerDown:Zi(t.onPointerDown,e=>{e.preventDefault(),0===e.button&&(e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",T(e))}),onPointerMove:Zi(t.onPointerMove,T),onPointerUp:Zi(t.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=b.current,v.current=null}})})}),ts=(0,e.forwardRef)((t,o)=>{const{sizes:r,onSizesChange:n,style:s,...a}=t,l=Mi(),[c,d]=(0,e.useState)(),u=(0,e.useRef)(null),p=zt(o,u,l.onScrollbarXChange);return(0,e.useEffect)(()=>{u.current&&d(getComputedStyle(u.current))},[u]),(0,i.jsx)(es,{"data-orientation":"horizontal",...a,ref:p,sizes:r,style:{...s,"--sa-thumb-width":`${Yi(r)}px`},onThumbPointerDown:e=>t.onThumbPointerDown(e.x),onDragScroll:e=>t.onDragScroll(e.x),onWheelScroll:(e,o)=>{if(l.viewport){const r=l.viewport.scrollLeft+e.deltaX;t.onWheelScroll(r),Ki(r,o)&&e.preventDefault()}},onResize:()=>{u.current&&l.viewport&&c&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Ui(c.paddingLeft),paddingEnd:Ui(c.paddingRight)}})}})});ts.displayName="@mantine/core/ScrollAreaScrollbarX";const os=(0,e.forwardRef)((t,o)=>{const{sizes:r,onSizesChange:n,style:s,...a}=t,l=Mi(),[c,d]=(0,e.useState)(),u=(0,e.useRef)(null),p=zt(o,u,l.onScrollbarYChange);return(0,e.useEffect)(()=>{u.current&&d(window.getComputedStyle(u.current))},[]),(0,i.jsx)(es,{...a,"data-orientation":"vertical",ref:p,sizes:r,style:{"--sa-thumb-height":`${Yi(r)}px`,...s},onThumbPointerDown:e=>t.onThumbPointerDown(e.y),onDragScroll:e=>t.onDragScroll(e.y),onWheelScroll:(e,o)=>{if(l.viewport){const r=l.viewport.scrollTop+e.deltaY;t.onWheelScroll(r),Ki(r,o)&&e.preventDefault()}},onResize:()=>{u.current&&l.viewport&&c&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Ui(c.paddingTop),paddingEnd:Ui(c.paddingBottom)}})}})});os.displayName="@mantine/core/ScrollAreaScrollbarY";const rs=(0,e.forwardRef)((t,o)=>{const{orientation:r="vertical",...n}=t,{dir:s}=Rt(),a=Mi(),l=(0,e.useRef)(null),c=(0,e.useRef)(0),[d,u]=(0,e.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=Xi(d.viewport,d.content),f={...n,sizes:d,onSizesChange:u,hasThumb:Boolean(p>0&&p<1),onThumbChange:e=>{l.current=e},onThumbPointerUp:()=>{c.current=0},onThumbPointerDown:e=>{c.current=e}},m=(e,t)=>function(e,t,o,r="ltr"){const n=Yi(o),i=t||n/2,s=n-i,a=o.scrollbar.paddingStart+i,l=o.scrollbar.size-o.scrollbar.paddingEnd-s,c=o.content-o.viewport;return qi([a,l],"ltr"===r?[0,c]:[-1*c,0])(e)}(e,c.current,d,t);return"horizontal"===r?(0,i.jsx)(ts,{...f,ref:o,onThumbPositionChange:()=>{if(a.viewport&&l.current){const e=Gi(a.viewport.scrollLeft,d,s);l.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=m(e,s))}}):"vertical"===r?(0,i.jsx)(os,{...f,ref:o,onThumbPositionChange:()=>{if(a.viewport&&l.current){const e=Gi(a.viewport.scrollTop,d);0===d.scrollbar.size?l.current.style.setProperty("--thumb-opacity","0"):l.current.style.setProperty("--thumb-opacity","1"),l.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=m(e))}}):null});rs.displayName="@mantine/core/ScrollAreaScrollbarVisible";const ns=(0,e.forwardRef)((t,o)=>{const r=Mi(),{forceMount:n,...s}=t,[a,l]=(0,e.useState)(!1),c="horizontal"===t.orientation,d=Vi(()=>{if(r.viewport){const e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;l(c?e:t)}},10);return Li(r.viewport,d),Li(r.content,d),n||a?(0,i.jsx)(rs,{"data-state":a?"visible":"hidden",...s,ref:o}):null});ns.displayName="@mantine/core/ScrollAreaScrollbarAuto";const is=(0,e.forwardRef)((t,o)=>{const{forceMount:r,...n}=t,s=Mi(),[a,l]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{const{scrollArea:e}=s;let t=0;if(e){const o=()=>{window.clearTimeout(t),l(!0)},r=()=>{t=window.setTimeout(()=>l(!1),s.scrollHideDelay)};return e.addEventListener("pointerenter",o),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",o),e.removeEventListener("pointerleave",r)}}},[s.scrollArea,s.scrollHideDelay]),r||a?(0,i.jsx)(ns,{"data-state":a?"visible":"hidden",...n,ref:o}):null});is.displayName="@mantine/core/ScrollAreaScrollbarHover";const ss=(0,e.forwardRef)((t,o)=>{const{forceMount:r,...n}=t,s=Mi(),a="horizontal"===t.orientation,[l,c]=(0,e.useState)("hidden"),d=Vi(()=>c("idle"),100);return(0,e.useEffect)(()=>{if("idle"===l){const e=window.setTimeout(()=>c("hidden"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,s.scrollHideDelay]),(0,e.useEffect)(()=>{const{viewport:e}=s,t=a?"scrollLeft":"scrollTop";if(e){let o=e[t];const r=()=>{const r=e[t];o!==r&&(c("scrolling"),d()),o=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,a,d]),r||"hidden"!==l?(0,i.jsx)(rs,{"data-state":"hidden"===l?"hidden":"visible",...n,ref:o,onPointerEnter:Zi(t.onPointerEnter,()=>c("interacting")),onPointerLeave:Zi(t.onPointerLeave,()=>c("idle"))}):null}),as=(0,e.forwardRef)((t,o)=>{const{forceMount:r,...n}=t,s=Mi(),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:l}=s,c="horizontal"===t.orientation;return(0,e.useEffect)(()=>(c?a(!0):l(!0),()=>{c?a(!1):l(!1)}),[c,a,l]),"hover"===s.type?(0,i.jsx)(is,{...n,ref:o,forceMount:r}):"scroll"===s.type?(0,i.jsx)(ss,{...n,ref:o,forceMount:r}):"auto"===s.type?(0,i.jsx)(ns,{...n,ref:o,forceMount:r}):"always"===s.type?(0,i.jsx)(rs,{...n,ref:o}):null});as.displayName="@mantine/core/ScrollAreaScrollbar";const ls=(0,e.forwardRef)((t,o)=>{const{style:r,...n}=t,s=Mi(),a=Qi(),{onThumbPositionChange:l}=a,c=zt(o,e=>a.onThumbChange(e)),d=(0,e.useRef)(void 0),u=Vi(()=>{d.current&&(d.current(),d.current=void 0)},100);return(0,e.useEffect)(()=>{const{viewport:e}=s;if(e){const t=()=>{if(u(),!d.current){const t=function(e,t=()=>{}){let o={left:e.scrollLeft,top:e.scrollTop},r=0;return function n(){const i={left:e.scrollLeft,top:e.scrollTop},s=o.left!==i.left,a=o.top!==i.top;(s||a)&&t(),o=i,r=window.requestAnimationFrame(n)}(),()=>window.cancelAnimationFrame(r)}(e,l);d.current=t,l()}};return l(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[s.viewport,u,l]),(0,i.jsx)("div",{"data-state":a.hasThumb?"visible":"hidden",...n,ref:c,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...r},onPointerDownCapture:Zi(t.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),o=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:o,y:r})}),onPointerUp:Zi(t.onPointerUp,a.onThumbPointerUp)})});ls.displayName="@mantine/core/ScrollAreaThumb";const cs=(0,e.forwardRef)((e,t)=>{const{forceMount:o,...r}=e,n=Qi();return o||n.hasThumb?(0,i.jsx)(ls,{ref:t,...r}):null});cs.displayName="@mantine/core/ScrollAreaThumb";const ds=(0,e.forwardRef)(({children:e,style:t,...o},r)=>{const n=Mi(),s=zt(r,n.onViewportChange);return(0,i.jsx)(De,{...o,ref:s,style:{overflowX:n.scrollbarXEnabled?"scroll":"hidden",overflowY:n.scrollbarYEnabled?"scroll":"hidden",...t},children:(0,i.jsx)("div",{style:{minWidth:"100%"},ref:n.onContentChange,children:e})})});ds.displayName="@mantine/core/ScrollAreaViewport";var us={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const ps={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},fs=(e,{scrollbarSize:t,overscrollBehavior:o})=>({root:{"--scrollarea-scrollbar-size":h(t),"--scrollarea-over-scroll-behavior":o}}),ms=Q((t,o)=>{const r=Z("ScrollArea",ps,t),{classNames:n,className:s,style:a,styles:l,unstyled:c,scrollbarSize:d,vars:u,type:p,scrollHideDelay:f,viewportProps:m,viewportRef:h,onScrollPositionChange:y,children:g,offsetScrollbars:v,scrollbars:b,onBottomReached:w,onTopReached:x,overscrollBehavior:S,...C}=r,[P,T]=(0,e.useState)(!1),[N,j]=(0,e.useState)(!1),[E,k]=(0,e.useState)(!1),R=ve({name:"ScrollArea",props:r,classes:us,className:s,style:a,classNames:n,styles:l,unstyled:c,vars:u,varsResolver:fs}),$=(0,e.useRef)(null),A=(_=[h,$],e.useMemo(()=>_.every(e=>null==e)?null:e=>{_.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})},_));var _;return(0,e.useEffect)(()=>{if(!$.current)return;if("present"!==v)return;const e=$.current,t=new ResizeObserver(()=>{const{scrollHeight:t,clientHeight:o,scrollWidth:r,clientWidth:n}=e;j(t>o),k(r>n)});return t.observe(e),()=>t.disconnect()},[$,v]),(0,i.jsxs)(Hi,{type:"never"===p?"always":p,scrollHideDelay:f,ref:o,scrollbars:b,...R("root"),...C,children:[(0,i.jsx)(ds,{...m,...R("viewport",{style:m?.style}),ref:A,"data-offset-scrollbars":!0===v?"xy":v||void 0,"data-scrollbars":b||void 0,"data-horizontal-hidden":"present"!==v||E?void 0:"true","data-vertical-hidden":"present"!==v||N?void 0:"true",onScroll:e=>{m?.onScroll?.(e),y?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});const{scrollTop:t,scrollHeight:o,clientHeight:r}=e.currentTarget;t-(o-r)>=-.6&&w?.(),0===t&&x?.()},children:g}),("xy"===b||"x"===b)&&(0,i.jsx)(as,{...R("scrollbar"),orientation:"horizontal","data-hidden":"never"===p||"present"===v&&!E||void 0,forceMount:!0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:(0,i.jsx)(cs,{...R("thumb")})}),("xy"===b||"y"===b)&&(0,i.jsx)(as,{...R("scrollbar"),orientation:"vertical","data-hidden":"never"===p||"present"===v&&!N||void 0,forceMount:!0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:(0,i.jsx)(cs,{...R("thumb")})}),(0,i.jsx)(Wi,{...R("corner"),"data-hovered":P||void 0,"data-hidden":"never"===p||void 0})]})});ms.displayName="@mantine/core/ScrollArea";const hs=Q((e,t)=>{const{children:o,classNames:r,styles:n,scrollbarSize:s,scrollHideDelay:a,type:l,dir:c,offsetScrollbars:d,viewportRef:u,onScrollPositionChange:p,unstyled:f,variant:m,viewportProps:h,scrollbars:y,style:g,vars:v,onBottomReached:b,onTopReached:w,...x}=Z("ScrollAreaAutosize",ps,e);return(0,i.jsx)(De,{...x,ref:t,style:[{display:"flex",overflow:"auto"},g],children:(0,i.jsx)(De,{style:{display:"flex",flexDirection:"column",flex:1},children:(0,i.jsx)(ms,{classNames:r,styles:n,scrollHideDelay:a,scrollbarSize:s,type:l,dir:c,offsetScrollbars:d,viewportRef:u,onScrollPositionChange:p,unstyled:f,variant:m,viewportProps:h,vars:v,scrollbars:y,onBottomReached:b,onTopReached:w,children:o})})})});function ys(e){return"group"in e}function gs({options:e,search:t,limit:o}){const r=t.trim().toLowerCase(),n=[];for(let i=0;i<e.length;i+=1){const s=e[i];if(n.length===o)return n;ys(s)&&n.push({group:s.group,items:gs({options:s.items,search:t,limit:o-n.length})}),ys(s)||s.label.toLowerCase().includes(r)&&n.push(s)}return n}function vs(e,t=new Set){if(Array.isArray(e))for(const o of e)if(ys(o))vs(o.items,t);else{if(void 0===o.value)throw new Error("[@mantine/core] Each option must have value property");if("string"!=typeof o.value)throw new Error("[@mantine/core] Option value must be a string, other data formats are not supported, got "+typeof o.value);if(t.has(o.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${o.value}" was provided more than once`);t.add(o.value)}}function bs({data:e,withCheckIcon:t,value:o,checkIconPosition:r,unstyled:n,renderOption:s}){if(!ys(e)){const a=function(e,t){return Array.isArray(e)?e.includes(t):e===t}(o,e.value),l=t&&a&&(0,i.jsx)(Ii,{className:Pn.optionsDropdownCheckIcon}),c=(0,i.jsxs)(i.Fragment,{children:["left"===r&&l,(0,i.jsx)("span",{children:e.label}),"right"===r&&l]});return(0,i.jsx)(Oi.Option,{value:e.value,disabled:e.disabled,className:ae({[Pn.optionsDropdownOption]:!n}),"data-reverse":"right"===r||void 0,"data-checked":a||void 0,"aria-selected":a,active:a,children:"function"==typeof s?s({option:e,checked:a}):c})}const a=e.items.map(e=>(0,i.jsx)(bs,{data:e,value:o,unstyled:n,withCheckIcon:t,checkIconPosition:r,renderOption:s},e.value));return(0,i.jsx)(Oi.Group,{label:e.group,children:a})}function ws({data:e,hidden:t,hiddenWhenEmpty:o,filter:r,search:n,limit:s,maxDropdownHeight:a,withScrollArea:l=!0,filterOptions:c=!0,withCheckIcon:d=!1,value:u,checkIconPosition:p,nothingFoundMessage:f,unstyled:m,labelId:h,renderOption:y,scrollAreaProps:g,"aria-label":v}){vs(e);const b="string"==typeof n?(r||gs)({options:e,search:c?n:"",limit:s??1/0}):e,w=function(e){if(0===e.length)return!0;for(const t of e){if(!("group"in t))return!1;if(t.items.length>0)return!1}return!0}(b),x=b.map(e=>(0,i.jsx)(bs,{data:e,withCheckIcon:d,value:u,checkIconPosition:p,unstyled:m,renderOption:y},ys(e)?e.group:e.value));return(0,i.jsx)(Oi.Dropdown,{hidden:t||o&&w,"data-composed":!0,children:(0,i.jsxs)(Oi.Options,{labelledBy:h,"aria-label":v,children:[l?(0,i.jsx)(ms.Autosize,{mah:a??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...g,children:x}):x,w&&f&&(0,i.jsx)(Oi.Empty,{children:f})]})})}ms.classes=us,hs.displayName="@mantine/core/ScrollAreaAutosize",hs.classes=us,ms.Autosize=hs;const xs={__staticSelector:"InputBase",withAria:!0},Ss=We((e,t)=>{const{inputProps:o,wrapperProps:r,...n}=function(e,t,o){const r=Z("InputBase",t,o),{label:n,description:i,error:s,required:a,classNames:l,styles:c,className:d,unstyled:u,__staticSelector:p,__stylesApiProps:f,errorProps:m,labelProps:h,descriptionProps:y,wrapperProps:g,id:v,size:b,style:w,inputContainer:x,inputWrapperOrder:S,withAsterisk:C,variant:P,vars:T,mod:N,...j}=r,{styleProps:E,rest:k}=Ne(j);return{...k,classNames:l,styles:c,unstyled:u,wrapperProps:{...{label:n,description:i,error:s,required:a,classNames:l,className:d,__staticSelector:p,__stylesApiProps:f||r,errorProps:m,labelProps:h,descriptionProps:y,unstyled:u,styles:c,size:b,style:w,inputContainer:x,inputWrapperOrder:S,withAsterisk:C,variant:P,id:v,mod:N,...g},...E},inputProps:{required:a,classNames:l,styles:c,unstyled:u,size:b,__staticSelector:p,__stylesApiProps:f||r,error:s,variant:P,id:v}}}(0,xs,e);return(0,i.jsx)(ii.Wrapper,{...r,children:(0,i.jsx)(ii,{...o,...n,ref:t})})});Ss.classes={...ii.classes,...ii.Wrapper.classes},Ss.displayName="@mantine/core/InputBase";const Cs={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Ps=Q((t,o)=>{const r=Z("Select",Cs,t),{classNames:n,styles:s,unstyled:a,vars:l,dropdownOpened:c,defaultDropdownOpened:d,onDropdownClose:u,onDropdownOpen:p,onFocus:f,onBlur:m,onClick:h,onChange:y,data:g,value:v,defaultValue:b,selectFirstOptionOnChange:w,onOptionSubmit:x,comboboxProps:S,readOnly:C,disabled:P,filter:T,limit:N,withScrollArea:j,maxDropdownHeight:E,size:k,searchable:R,rightSection:$,checkIconPosition:A,withCheckIcon:_,nothingFoundMessage:O,name:I,form:D,searchValue:M,defaultSearchValue:z,onSearchChange:L,allowDeselect:F,error:W,rightSectionPointerEvents:B,id:H,clearable:V,clearButtonProps:X,hiddenInputProps:Y,renderOption:q,onClear:G,autoComplete:K,scrollAreaProps:U,__defaultRightSection:J,__clearSection:Q,__clearable:ee,chevronColor:te,...oe}=r,re=(0,e.useMemo)(()=>Pt(g),[g]),ne=(0,e.useMemo)(()=>Tt(re),[re]),ie=xt(H),[se,ae,le]=st({value:v,defaultValue:b,finalValue:null,onChange:y}),ce="string"==typeof se?ne[se]:void 0,de=function(t){const o=(0,e.useRef)(void 0);return(0,e.useEffect)(()=>{o.current=t},[t]),o.current}(ce),[ue,pe,fe]=st({value:M,defaultValue:z,finalValue:ce?ce.label:"",onChange:L}),me=$i({opened:c,defaultOpened:d,onDropdownOpen:()=>{p?.(),me.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u?.(),me.resetSelectedOption()}}),he=e=>{pe(e),me.resetSelectedOption()},{resolvedClassNames:ye,resolvedStyles:ge}=St({props:r,styles:s,classNames:n});(0,e.useEffect)(()=>{w&&me.selectFirstOption()},[w,ue]),(0,e.useEffect)(()=>{null===v&&he(""),"string"!=typeof v||!ce||de?.value===ce.value&&de?.label===ce.label||he(ce.label)},[v,ce]),(0,e.useEffect)(()=>{le||fe||he("string"==typeof se&&ne[se]?.label||"")},[g,se]);const ve=(0,i.jsx)(Oi.ClearButton,{...X,onClear:()=>{ae(null,null),he(""),G?.()}}),be=V&&!!se&&!P&&!C;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Oi,{store:me,__staticSelector:"Select",classNames:ye,styles:ge,unstyled:a,readOnly:C,onOptionSubmit:e=>{x?.(e);const t=F&&ne[e].value===se?null:ne[e],o=t?t.value:null;o!==se&&ae(o,t),!le&&he("string"==typeof o&&t?.label||""),me.closeDropdown()},size:k,...S,children:[(0,i.jsx)(Oi.Target,{targetType:R?"input":"button",autoComplete:K,children:(0,i.jsx)(Ss,{id:ie,ref:o,__defaultRightSection:(0,i.jsx)(Oi.Chevron,{size:k,error:W,unstyled:a,color:te}),__clearSection:ve,__clearable:be,rightSection:$,rightSectionPointerEvents:B||(be?"all":"none"),...oe,size:k,__staticSelector:"Select",disabled:P,readOnly:C||!R,value:ue,onChange:e=>{he(e.currentTarget.value),me.openDropdown(),w&&me.selectFirstOption()},onFocus:e=>{R&&me.openDropdown(),f?.(e)},onBlur:e=>{R&&me.closeDropdown(),he(null!=se&&ne[se]?.label||""),m?.(e)},onClick:e=>{R?me.openDropdown():me.toggleDropdown(),h?.(e)},classNames:ye,styles:ge,unstyled:a,pointer:!R,error:W})}),(0,i.jsx)(ws,{data:re,hidden:C||P,filter:T,search:ue,limit:N,hiddenWhenEmpty:!O,withScrollArea:j,maxDropdownHeight:E,filterOptions:R&&ce?.label!==ue,value:se,checkIconPosition:A,withCheckIcon:_,nothingFoundMessage:O,unstyled:a,labelId:oe.label?`${ie}-label`:void 0,"aria-label":oe.label?void 0:oe["aria-label"],renderOption:q,scrollAreaProps:U})]}),(0,i.jsx)(Oi.HiddenInput,{value:se,name:I,form:D,disabled:P,...Y})]})});Ps.classes={...Ss.classes,...Oi.classes},Ps.displayName="@mantine/core/Select";const Ts={},Ns=Q((e,t)=>{const o=Z("TextInput",Ts,e);return(0,i.jsx)(Ss,{component:"input",ref:t,...o,__staticSelector:"TextInput"})});Ns.classes=Ss.classes,Ns.displayName="@mantine/core/TextInput";const js=()=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-layout-grid",children:[(0,i.jsx)("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"}),(0,i.jsx)("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"}),(0,i.jsx)("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}),(0,i.jsx)("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"})]}),Es=()=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-chevron-down-icon lucide-chevron-down",children:(0,i.jsx)("path",{d:"m6 9 6 6 6-6"})}),ks=()=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-arrow-up-down-icon lucide-arrow-up-down",children:[(0,i.jsx)("path",{d:"m21 16-4 4-4-4"}),(0,i.jsx)("path",{d:"M17 20V4"}),(0,i.jsx)("path",{d:"m3 8 4-4 4 4"}),(0,i.jsx)("path",{d:"M7 4v16"})]}),Rs=()=>(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-funnel-icon lucide-funnel",children:(0,i.jsx)("path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"})}),$s=()=>(0,i.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-search-icon lucide-search",children:[(0,i.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,i.jsx)("path",{d:"m21 21-4.3-4.3"})]}),As=function({searchTerm:e,setSearchTerm:t,sortOrder:o,setSortOrder:r,selectedCategory:n,setSelectedCategory:s,categories:a}){return(0,i.jsxs)("div",{className:"eb-courses__controls",children:[(0,i.jsxs)("div",{className:"eb-controls__sort-filter",children:[(0,i.jsx)(Ps,{value:o,onChange:r,defaultValue:"latest",data:[{value:"latest",label:(0,bt.__)("Latest","edwiser-bridge")},{value:"oldest",label:(0,bt.__)("Oldest","edwiser-bridge")},{value:"a-z",label:(0,bt.__)("A-Z","edwiser-bridge")},{value:"z-a",label:(0,bt.__)("Z-A","edwiser-bridge")}],allowDeselect:!1,checkIconPosition:"right",comboboxProps:{withinPortal:!1},leftSection:(0,i.jsx)(ks,{}),rightSection:(0,i.jsx)(Es,{})}),(0,i.jsx)(Ps,{value:n,onChange:s,defaultValue:"all",data:[{value:"all",label:(0,bt.__)("All","edwiser-bridge")},...a.map(e=>({value:e.name.toLowerCase(),label:(0,bt.__)(e.name,"edwiser-bridge")}))],allowDeselect:!1,checkIconPosition:"right",comboboxProps:{withinPortal:!1},leftSection:(0,i.jsx)(Rs,{}),rightSection:(0,i.jsx)(Es,{})})]}),(0,i.jsx)(Ns,{value:e,onChange:e=>t(e.currentTarget.value),leftSectionPointerEvents:"none",leftSection:(0,i.jsx)($s,{}),placeholder:(0,bt.__)("Search courses","edwiser-bridge")})]})};var _s={root:"m_18320242","skeleton-fade":"m_299c329c"};const Os={visible:!0,animate:!0},Is=(e,{width:t,height:o,radius:r,circle:n})=>({root:{"--skeleton-height":h(o),"--skeleton-width":h(n?o:t),"--skeleton-radius":n?"1000px":void 0===r?void 0:re(r)}}),Ds=Q((e,t)=>{const o=Z("Skeleton",Os,e),{classNames:r,className:n,style:s,styles:a,unstyled:l,vars:c,width:d,height:u,circle:p,visible:f,radius:m,animate:h,mod:y,...g}=o,v=ve({name:"Skeleton",classes:_s,props:o,className:n,style:s,classNames:r,styles:a,unstyled:l,vars:c,varsResolver:Is});return(0,i.jsx)(De,{ref:t,...v("root"),mod:[{visible:f,animate:h},y],...g})});Ds.classes=_s,Ds.displayName="@mantine/core/Skeleton";const Ms=e=>{const t=document.createElement("textarea");return t.innerHTML=e,t.value},zs=function({course:e}){return(0,i.jsx)("a",{href:e.link,target:"_blank",className:"eb-courses__course-anchor",children:(0,i.jsxs)("div",{className:"eb-courses__course-card",children:[(0,i.jsxs)("div",{className:"course-thumbnail-container",children:[(0,i.jsx)("img",{src:e.thumbnail,alt:e.title,className:"course-thumbnail"}),e.categories.length>0&&(0,i.jsxs)("div",{className:"course-category",children:[(0,i.jsx)(js,{}),(0,i.jsx)("span",{children:e.categories.map((t,r)=>(0,i.jsxs)(o().Fragment,{children:[(0,bt.__)(Ms(t?.name),"edwiser-bridge"),r<e.categories.length-1?", ":""]},t?.id))})]})]}),(0,i.jsxs)("div",{className:"course-meta",children:[(0,i.jsxs)("div",{className:"course-content",children:[(0,i.jsx)("h3",{className:"course-title",children:(0,bt.__)(e.title,"edwiser-bridge")}),(0,i.jsx)("p",{className:"course-excerpt",children:(0,bt.__)(e.excerpt,"edwiser-bridge")})]}),(0,i.jsxs)("div",{className:"course-details",children:[(0,i.jsx)("div",{className:"course-price",children:e?.suspended?(0,i.jsx)("span",{className:"suspended",children:(0,bt.__)("Suspended","edwiser-bridge")}):(0,i.jsx)(Ls,{price:e.price})}),(0,i.jsx)("a",{href:e.link,className:"btn",children:(0,bt.__)("View Details","edwiser-bridge")})]})]})]})})};function Ls({price:e}){return e.enrolled?(0,i.jsx)("span",{className:"enrolled",children:(0,bt.__)("Enrolled","edwiser-bridge")}):"subscription"===e.type?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"price",children:(0,bt.__)("₹"+e.amount,"edwiser-bridge")}),(0,i.jsx)("span",{className:"recurring",children:(0,bt.__)("/month","edwiser-bridge")})]}):"closed"===e.type?(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("span",{})}):0===e.amount?(0,i.jsx)("span",{className:"price",children:(0,bt.__)("Free","edwiser-bridge")}):null!==e.originalAmount?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"price",children:(0,bt.__)(e.currency+e.amount,"edwiser-bridge")}),(0,i.jsx)("span",{className:"original-price",children:(0,bt.__)(e.currency+e.originalAmount,"edwiser-bridge")})]}):(0,i.jsx)("span",{className:"price",children:(0,bt.__)(e.currency+e.amount,"edwiser-bridge")})}function Fs(){return(0,i.jsxs)("div",{className:"eb-courses__course-card",children:[(0,i.jsx)("div",{className:"course-thumbnail-container",children:(0,i.jsx)(Ds,{height:140,style:{borderRadius:0}})}),(0,i.jsxs)("div",{className:"course-meta",children:[(0,i.jsxs)("div",{className:"course-content",children:[(0,i.jsx)(Ds,{height:20,width:"90%"}),(0,i.jsxs)("div",{children:[(0,i.jsx)(Ds,{height:12}),(0,i.jsx)(Ds,{height:12,mt:6,width:"70%"})]})]}),(0,i.jsxs)("div",{className:"course-details",children:[(0,i.jsx)("div",{className:"course-price",children:(0,i.jsx)(Ds,{height:28,width:80})}),(0,i.jsx)(Ds,{height:18,width:80})]})]})]})}const Ws=function({courses:e}){return(0,i.jsx)("div",{className:"eb-courses__grid",children:e.length>0?e.map(e=>(0,i.jsx)(zs,{course:e},e.id)):(0,i.jsx)("p",{children:(0,bt.__)("No courses found","edwiser-bridge")})})};function Bs({coursesPerPage:e}){return(0,i.jsx)("div",{className:"eb-courses__grid",children:Array.from({length:e}).map((e,t)=>(0,i.jsx)(Fs,{},t))})}var Hs=n(145);const Vs=function({courses:e}){return(0,i.jsx)(Hs.default,{responsive:{superLargeDesktop:{breakpoint:{max:4e3,min:1200},items:3},desktop:{breakpoint:{max:1200,min:992},items:3},tablet:{breakpoint:{max:992,min:768},items:2},mobile:{breakpoint:{max:768,min:576},items:2},smallMobile:{breakpoint:{max:576,min:0},items:1}},infinite:!1,showDots:!1,arrows:!0,centerMode:!1,children:e.map(e=>(0,i.jsx)("div",{className:"eb-courses__carousel-item-wrapper",style:{padding:"2px 32px 2px 0",height:"100%",boxSizing:"border-box"},children:(0,i.jsx)(zs,{course:e})},e.id))})},Xs=function({pageTitle:t="",hideTitle:o=!1,hideFilters:r=!1,coursesPerPage:n=9,groupByCategory:s=!1,categoryPerPage:a=3,categories:l="",horizontalScroll:c=!1}){const[d,u]=(0,e.useState)([]),[p,f]=(0,e.useState)([]),[m,h]=(0,e.useState)({}),[y,g]=(0,e.useState)([]),[v,b]=(0,e.useState)(""),[w,x]=(0,e.useState)(""),[S,C]=(0,e.useState)("latest"),[P,T]=(0,e.useState)("all"),[N,j]=(0,e.useState)(1),[E,k]=(0,e.useState)(1),[R,$]=(0,e.useState)(!0);return(0,e.useEffect)(()=>{const e=setTimeout(()=>{x(v)},750);return()=>clearTimeout(e)},[v]),(0,e.useEffect)(()=>{(async()=>{$(!0);let e=`/eb/api/v1/courses?page=${N}&per_page=${n}&search=${w}&sort_order=${S.toLowerCase()}`;if("all"!==P){const t=p.find(e=>e.name.toLowerCase()===P);t&&(e+=`&category=${t.slug}`)}l&&(e+=`&categories=${l}`),s&&(e+="&group_by_category=true",a>0&&(e+=`&category_per_page=${a}`)),c&&(e+="&horizontal_scroll=true",s||(e+="&per_page=-1"));try{const t=await vt()({path:e});s?(h(t.categorized_courses||{}),g(t.displayed_categories||[])):u(t.courses||[]),f(t.categories||[]),k(t.total_pages||1)}catch(e){console.error("Error fetching courses:",e),u([]),h({}),g([])}finally{$(!1)}})()},[w,S,P,N,s,a,l,c]),(0,i.jsx)(K,{children:(0,i.jsxs)("div",{className:"eb-courses__wrapper",children:[!o&&(0,i.jsx)("h2",{className:"eb-title",style:{marginBottom:"16px"},children:(0,bt.__)(t,"edwiser-bridge")}),!r&&(0,i.jsx)(As,{searchTerm:v,setSearchTerm:b,sortOrder:S,setSortOrder:C,selectedCategory:P,setSelectedCategory:T,categories:p}),R?(0,i.jsx)(Bs,{coursesPerPage:n}):s?y.map(e=>(0,i.jsxs)("div",{className:"eb-courses__categorized-courses",children:[(0,i.jsx)("h3",{className:"eb-courses__categorized-title",children:e.name}),c?(0,i.jsx)(Vs,{courses:m[e.slug]||[]}):(0,i.jsx)(Ws,{courses:m[e.slug]||[]})]},e.id)):c?(0,i.jsx)(Vs,{courses:d}):(0,i.jsx)(Ws,{courses:d}),(!c||s)&&E>1&&(0,i.jsx)("div",{className:"eb-courses__pagination",children:(0,i.jsx)(yt,{total:E,value:N,onChange:j,disabled:R})})]})})};document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('[id^="eb-courses-"]').forEach(e=>{if(e){const t={pageTitle:e.dataset.pageTitle||"",hideTitle:"true"===e.dataset.hideTitle,hideFilters:"true"===e.dataset.hideFilters,coursesPerPage:parseInt(e.dataset.coursesPerPage,10)||9,categories:e.dataset.categories||"",groupByCategory:"true"===e.dataset.groupByCategory,categoryPerPage:parseInt(e.dataset.categoryPerPage,10)||3,horizontalScroll:"true"===e.dataset.horizontalScroll};r.createRoot(e).render((0,i.jsx)(Xs,{...t}))}})})})()})();