@lifesg/react-design-system 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/accordion/index.js +6 -6
  2. package/accordion/index.js.map +1 -1
  3. package/calendar/index.js +2 -2
  4. package/calendar/index.js.map +1 -1
  5. package/cjs/index.js +12 -12
  6. package/cjs/index.js.map +1 -1
  7. package/date-input/index.js +2 -2
  8. package/date-input/index.js.map +1 -1
  9. package/feedback-rating/index.js +6 -6
  10. package/feedback-rating/index.js.map +1 -1
  11. package/filter/index.js +3 -3
  12. package/filter/index.js.map +1 -1
  13. package/form/index.js +4 -4
  14. package/form/index.js.map +1 -1
  15. package/icon-button/index.js +2 -2
  16. package/icon-button/index.js.map +1 -1
  17. package/image-button/index.js +1 -1
  18. package/image-button/index.js.map +1 -1
  19. package/index.js +12 -12
  20. package/index.js.map +1 -1
  21. package/input/index.js +1 -1
  22. package/input/index.js.map +1 -1
  23. package/input-group/index.js +3 -3
  24. package/input-group/index.js.map +1 -1
  25. package/input-select/index.js +2 -2
  26. package/input-select/index.js.map +1 -1
  27. package/modal/index.js +1 -1
  28. package/modal/index.js.map +1 -1
  29. package/navbar/index.js +2 -2
  30. package/navbar/index.js.map +1 -1
  31. package/notification-banner/index.js +1 -1
  32. package/notification-banner/index.js.map +1 -1
  33. package/otp-input/index.js +3 -3
  34. package/otp-input/index.js.map +1 -1
  35. package/package.json +1 -1
  36. package/phone-number-input/index.js +3 -3
  37. package/phone-number-input/index.js.map +1 -1
  38. package/popover/index.js +1 -1
  39. package/popover/index.js.map +1 -1
  40. package/smart-app-banner/index.js +7 -7
  41. package/smart-app-banner/index.js.map +1 -1
  42. package/time-range-picker/index.js +1 -1
  43. package/time-range-picker/index.js.map +1 -1
  44. package/time-slot-bar/index.js +1 -1
  45. package/time-slot-bar/index.js.map +1 -1
  46. package/timepicker/index.js +1 -1
  47. package/timepicker/index.js.map +1 -1
  48. package/toast/index.js +1 -1
  49. package/toast/index.js.map +1 -1
  50. package/unit-number/index.js +1 -1
  51. package/unit-number/index.js.map +1 -1
@@ -1,4 +1,4 @@
1
- import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import i,{cloneElement as o,useRef as a,useState as s,isValidElement as l,createRef as c,PureComponent as u,useEffect as d,useLayoutEffect as h,forwardRef as p,useCallback as f,useContext as g,useMemo as m}from"react";import{findDOMNode as y,unstable_batchedUpdates as v}from"react-dom";import b,{css as w,keyframes as _}from"styled-components";var S=function(e,t){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},S(e,t)};var $=function(){return $=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$.apply(this,arguments)};var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var x=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O="object"==typeof F&&F&&F.Object===Object&&F,k="object"==typeof self&&self&&self.Object===Object&&self,C=O||k||Function("return this")(),B=C,H=function(){return B.Date.now()},P=/\s/;var z=function(e){for(var t=e.length;t--&&P.test(e.charAt(t)););return t},A=/^\s+/;var E=function(e){return e?e.slice(0,z(e)+1).replace(A,""):e},D=C.Symbol,j=D,I=Object.prototype,M=I.hasOwnProperty,T=I.toString,R=j?j.toStringTag:void 0;var V=function(e){var t=M.call(e,R),n=e[R];try{e[R]=void 0;var r=!0}catch(e){}var i=T.call(e);return r&&(t?e[R]=n:delete e[R]),i},N=Object.prototype.toString;var W=V,L=function(e){return N.call(e)},q=D?D.toStringTag:void 0;var U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q&&q in Object(e)?W(e):L(e)},Q=function(e){return null!=e&&"object"==typeof e};var G=E,X=x,Z=function(e){return"symbol"==typeof e||Q(e)&&"[object Symbol]"==U(e)},Y=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,K=/^0o[0-7]+$/i,ee=parseInt;var te=x,ne=H,re=function(e){if("number"==typeof e)return e;if(Z(e))return NaN;if(X(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=X(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=G(e);var n=J.test(e);return n||K.test(e)?ee(e.slice(2),n?2:8):Y.test(e)?NaN:+e},ie=Math.max,oe=Math.min;var ae=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function g(){var e=ne();if(f(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?oe(n,o-(e-c)):n}(e))}function m(e){return s=void 0,h&&r?p(e):(r=i=void 0,a)}function y(){var e=ne(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(g,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=re(t)||0,te(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ie(re(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:m(ne())},y},se=ae,le=x;var ce=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return le(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),se(e,t,{leading:r,maxWait:t,trailing:i})},ue=function(e,t,n,r){switch(t){case"debounce":return ae(e,n,r);case"throttle":return ce(e,n,r);default:return e}},de=function(e){return"function"==typeof e},he=function(){return"undefined"==typeof window},pe=function(e){return e instanceof Element||e instanceof HTMLDocument},fe=function(e,t,n,r){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!r||t.height===a&&!n?t:(e&&de(e)&&e(o,a),{width:o,height:a})}))}};!function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!he()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(he())return null;if(t)return document.querySelector(t);if(r&&pe(r))return r;if(n.targetRef&&pe(n.targetRef.current))return n.targetRef.current;var i=y(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,a=void 0===o||o,s=t.onResize;if(i||a){var l=fe(s,n.setState.bind(n),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!he()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return de(t)?"renderProp":de(r)?"childFunction":l(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,i=t.refreshMode,o=t.refreshRate,a=void 0===o?1e3:o,s=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=c(),n.observableElement=null,he()||(n.resizeHandler=ue(n.createResizeHandler,i,a,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){he()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,i=t.children,a=t.nodeType,s=void 0===a?"div":a,l=this.state,c={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(c);case"childFunction":return(e=i)(c);case"child":if((e=i).type&&"string"==typeof e.type){var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(c,["targetRef"]);return o(e,u)}return o(e,c);case"childArray":return(e=i).map((function(e){return!!e&&o(e,c)}));default:return r.createElement(s,null)}}}(u);var ge=he()?d:h;let me=ze();const ye=e=>Ce(e,me);let ve=ze();ye.write=e=>Ce(e,ve);let be=ze();ye.onStart=e=>Ce(e,be);let we=ze();ye.onFrame=e=>Ce(e,we);let _e=ze();ye.onFinish=e=>Ce(e,_e);let Se=[];ye.setTimeout=(e,t)=>{let n=ye.now()+t,r=()=>{let e=Se.findIndex((e=>e.cancel==r));~e&&Se.splice(e,1),Oe-=~e?1:0},i={time:n,handler:e,cancel:r};return Se.splice($e(n),0,i),Oe+=1,Be(),i};let $e=e=>~(~Se.findIndex((t=>t.time>e))||~Se.length);ye.cancel=e=>{be.delete(e),we.delete(e),_e.delete(e),me.delete(e),ve.delete(e)},ye.sync=e=>{ke=!0,ye.batchedUpdates(e),ke=!1},ye.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,ye.onStart(n)}return r.handler=e,r.cancel=()=>{be.delete(n),t=null},r};let Fe="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ye.use=e=>Fe=e,ye.now="undefined"!=typeof performance?()=>performance.now():Date.now,ye.batchedUpdates=e=>e(),ye.catch=console.error,ye.frameLoop="always",ye.advance=()=>{"demand"!==ye.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Pe()};let xe=-1,Oe=0,ke=!1;function Ce(e,t){ke?(t.delete(e),e(0)):(t.add(e),Be())}function Be(){xe<0&&(xe=0,"demand"!==ye.frameLoop&&Fe(He))}function He(){~xe&&(Fe(He),ye.batchedUpdates(Pe))}function Pe(){let e=xe;xe=ye.now();let t=$e(xe);t&&(Ae(Se.splice(0,t),(e=>e.handler())),Oe-=t),Oe?(be.flush(),me.flush(e?Math.min(64,xe-e):16.667),we.flush(),ve.flush(),_e.flush()):xe=-1}function ze(){let e=new Set,t=e;return{add(n){Oe+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Oe-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Oe-=t.size,Ae(t,(t=>t(n)&&e.add(t))),Oe+=e.size,t=e)}}}function Ae(e,t){e.forEach((e=>{try{t(e)}catch(e){ye.catch(e)}}))}function Ee(){}const De={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function je(e,t){if(De.arr(e)){if(!De.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Ie=(e,t)=>e.forEach(t);function Me(e,t,n){if(De.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const Te=e=>De.und(e)?[]:De.arr(e)?e:[e];function Re(e,t){if(e.size){const n=Array.from(e);e.clear(),Ie(n,t)}}const Ve=(e,...t)=>Re(e,(e=>e(...t))),Ne=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let We,Le,qe=null,Ue=!1,Qe=Ee;var Ge=Object.freeze({__proto__:null,get createStringInterpolator(){return We},get to(){return Le},get colors(){return qe},get skipAnimation(){return Ue},get willAdvance(){return Qe},assign:e=>{e.to&&(Le=e.to),e.now&&(ye.now=e.now),void 0!==e.colors&&(qe=e.colors),null!=e.skipAnimation&&(Ue=e.skipAnimation),e.createStringInterpolator&&(We=e.createStringInterpolator),e.requestAnimationFrame&&ye.use(e.requestAnimationFrame),e.batchedUpdates&&(ye.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Qe=e.willAdvance),e.frameLoop&&(ye.frameLoop=e.frameLoop)}});const Xe=new Set;let Ze=[],Ye=[],Je=0;const Ke={get idle(){return!Xe.size&&!Ze.length},start(e){Je>e.priority?(Xe.add(e),ye.onStart(et)):(tt(e),ye(rt))},advance:rt,sort(e){if(Je)ye.onFrame((()=>Ke.sort(e)));else{const t=Ze.indexOf(e);~t&&(Ze.splice(t,1),nt(e))}},clear(){Ze=[],Xe.clear()}};function et(){Xe.forEach(tt),Xe.clear(),ye(rt)}function tt(e){Ze.includes(e)||nt(e)}function nt(e){Ze.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Ze,(t=>t.priority>e.priority)),0,e)}function rt(e){const t=Ye;for(let n=0;n<Ze.length;n++){const r=Ze[n];Je=r.priority,r.idle||(Qe(r),r.advance(e),r.idle||t.push(r))}return Je=0,Ye=Ze,Ye.length=0,Ze=t,Ze.length>0}const it="[-+]?\\d*\\.?\\d+",ot=it+"%";function at(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const st=new RegExp("rgb"+at(it,it,it)),lt=new RegExp("rgba"+at(it,it,it,it)),ct=new RegExp("hsl"+at(it,ot,ot)),ut=new RegExp("hsla"+at(it,ot,ot,it)),dt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ht=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pt=/^#([0-9a-fA-F]{6})$/,ft=/^#([0-9a-fA-F]{8})$/;function gt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gt(i,r,e+1/3),a=gt(i,r,e),s=gt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function yt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function vt(e){return(parseFloat(e)%360+360)%360/360}function bt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function wt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function _t(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=pt.exec(e))?parseInt(t[1]+"ff",16)>>>0:qe&&void 0!==qe[e]?qe[e]:(t=st.exec(e))?(yt(t[1])<<24|yt(t[2])<<16|yt(t[3])<<8|255)>>>0:(t=lt.exec(e))?(yt(t[1])<<24|yt(t[2])<<16|yt(t[3])<<8|bt(t[4]))>>>0:(t=dt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ft.exec(e))?parseInt(t[1],16)>>>0:(t=ht.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ct.exec(e))?(255|mt(vt(t[1]),wt(t[2]),wt(t[3])))>>>0:(t=ut.exec(e))?(mt(vt(t[1]),wt(t[2]),wt(t[3]))|bt(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const St=(e,t,n)=>{if(De.fun(e))return e;if(De.arr(e))return St({range:e,output:t,extrapolate:n});if(De.str(e.output[0]))return We(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};const $t=1.70158,Ft=1.525*$t,xt=$t+1,Ot=2*Math.PI/3,kt=2*Math.PI/4.5,Ct=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Bt={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xt*e*e*e-$t*e*e,easeOutBack:e=>1+xt*Math.pow(e-1,3)+$t*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ft)/2:(Math.pow(2*e-2,2)*((Ft+1)*(2*e-2)+Ft)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ot),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ot)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*kt)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*kt)/2+1,easeInBounce:e=>1-Ct(1-e),easeOutBounce:Ct,easeInOutBounce:e=>e<.5?(1-Ct(1-2*e))/2:(1+Ct(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,i="end"===t?Math.floor(r):Math.ceil(r);return o=0,a=1,s=i/e,Math.min(Math.max(s,o),a);var o,a,s}};function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ht.apply(this,arguments)}const Pt=Symbol.for("FluidValue.get"),zt=Symbol.for("FluidValue.observers"),At=e=>Boolean(e&&e[Pt]),Et=e=>e&&e[Pt]?e[Pt]():e,Dt=e=>e[zt]||null;function jt(e,t){let n=e[zt];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class It{constructor(e){if(this[Pt]=void 0,this[zt]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Mt(this,e)}}const Mt=(e,t)=>Vt(e,Pt,t);function Tt(e,t){if(e[Pt]){let n=e[zt];n||Vt(e,zt,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Rt(e,t){let n=e[zt];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[zt]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Vt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Nt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Wt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Lt=new RegExp(`(${Nt.source})(%|[a-z]+)`,"i"),qt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ut=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Qt=e=>{const[t,n]=Gt(e);if(!t||Ne())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Ut.test(n)?Qt(n):n||e},Gt=e=>{const t=Ut.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Xt;const Zt=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Yt=e=>{Xt||(Xt=qe?new RegExp(`(${Object.keys(qe).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Et(e).replace(Ut,Qt).replace(Wt,_t).replace(Xt,_t))),n=t.map((e=>e.match(Nt).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>St(Ht({},e,{output:t}))));return e=>{var n;const i=!Lt.test(t[0])&&(null==(n=t.find((e=>Lt.test(e))))?void 0:n.replace(Nt,""));let o=0;return t[0].replace(Nt,(()=>`${r[o++](e)}${i||""}`)).replace(qt,Zt)}},Jt="react-spring: ",Kt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Jt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},en=Kt(console.warn);const tn=Kt(console.warn);function nn(e){return De.str(e)&&("#"==e[0]||/\d/.test(e)||!Ne()&&Ut.test(e)||e in(qe||{}))}const rn=Ne()?d:h,on=()=>{const e=a(!1);return rn((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function an(){const e=s()[1],t=on();return()=>{t.current&&e(Math.random())}}const sn=e=>d(e,ln),ln=[];function cn(e){const t=a();return d((()=>{t.current=e})),t.current}const un=Symbol.for("Animated:node"),dn=e=>e&&e[un],hn=(e,t)=>{return n=e,r=un,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},pn=e=>e&&e[un]&&e[un].getPayload();class fn{constructor(){this.payload=void 0,hn(this,this)}getPayload(){return this.payload||[]}}class gn extends fn{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,De.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new gn(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return De.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,De.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class mn extends gn{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=St({output:[e,e]})}static create(e){return new mn(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(De.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=St({output:[this.getValue(),e]})),this._value=0,super.reset()}}const yn={dependencies:null};class vn extends fn{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Me(this.source,((n,r)=>{var i;(i=n)&&i[un]===i?t[r]=n.getValue(e):At(n)?t[r]=Et(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ie(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Me(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yn.dependencies&&At(e)&&yn.dependencies.add(e);const t=pn(e);t&&Ie(t,(e=>this.add(e)))}}class bn extends vn{constructor(e){super(e)}static create(e){return new bn(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(wn)),!0)}}function wn(e){return(nn(e)?mn:gn).create(e)}function _n(e){const t=dn(e);return t?t.constructor:De.arr(e)?bn:nn(e)?mn:gn}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sn.apply(this,arguments)}const $n=(e,t)=>{const n=!De.fun(e)||e.prototype&&e.prototype.isReactComponent;return p(((i,o)=>{const s=a(null),l=n&&f((e=>{s.current=function(e,t){e&&(De.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[c,u]=function(e,t){const n=new Set;yn.dependencies=n,e.style&&(e=Sn({},e,{style:t.createAnimatedStyle(e.style)}));return e=new vn(e),yn.dependencies=null,[e,n]}(i,t),h=an(),p=()=>{const e=s.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))&&h()},g=new Fn(p,u),m=a();rn((()=>(m.current=g,Ie(u,(e=>Tt(e,g))),()=>{m.current&&(Ie(m.current.deps,(e=>Rt(e,m.current))),ye.cancel(m.current.update))}))),d(p,[]),sn((()=>()=>{const e=m.current;Ie(e.deps,(t=>Rt(t,e)))}));const y=t.getComponentProps(c.getValue());return r.createElement(e,Sn({},y,{ref:l}))}))};class Fn{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ye.write(this.update)}}const xn=Symbol.for("AnimatedComponent"),On=e=>De.str(e)?e:e&&De.str(e.displayName)?e.displayName:De.fun(e)&&e.name||null;function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kn.apply(this,arguments)}function Cn(e,...t){return De.fun(e)?e(...t):e}const Bn=(e,t)=>!0===e||!!(t&&e&&(De.fun(e)?e(t):Te(e).includes(t))),Hn=(e,t)=>De.obj(e)?t&&e[t]:e,Pn=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,zn=e=>e,An=(e,t=zn)=>{let n=En;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);De.und(n)||(r[i]=n)}return r},En=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Dn={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function jn(e){const t=function(e){const t={};let n=0;if(Me(e,((e,r)=>{Dn[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Me(e,((e,r)=>r in t||(n[r]=e))),n}return kn({},e)}function In(e){return e=Et(e),De.arr(e)?e.map(In):nn(e)?Ge.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Mn(e){return De.fun(e)||De.arr(e)&&De.obj(e[0])}const Tn=kn({},{tension:170,friction:26},{mass:1,damping:1,easing:Bt.linear,clamp:!1});class Rn{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Tn)}}function Vn(e,t){if(De.und(t.decay)){const n=!De.und(t.tension)||!De.und(t.friction);!n&&De.und(t.frequency)&&De.und(t.damping)&&De.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Nn=[];class Wn{constructor(){this.changed=!1,this.values=Nn,this.toValues=null,this.fromValues=Nn,this.to=void 0,this.from=void 0,this.config=new Rn,this.immediate=!1}}function Ln(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=Bn(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{De.und(n.pause)||(i.paused=Bn(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||Bn(e,t)),c=Cn(n.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-ye.now()}function p(){c>0&&!Ge.skipAnimation?(i.delayed=!0,u=ye.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(kn({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const qn=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Gn(e.get()):t.every((e=>e.noop))?Un(e.get()):Qn(e.get(),t.every((e=>e.finished))),Un=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Qn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Gn=e=>({value:e,cancelled:!0,finished:!1});function Xn(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=An(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=i<=(n.cancelId||0)&&Gn(r)||i!==n.asyncId&&Qn(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Yn,a=new Jn;return(async()=>{if(Ge.skipAnimation)throw Zn(n),a.result=Qn(r,!1),d(a),a;p(o);const s=De.obj(e)?kn({},e):kn({},t,{to:e});s.parentId=i,Me(c,((e,t)=>{De.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(Ge.skipAnimation)return Zn(n),Qn(r,!1);try{let t;t=De.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),h]),g=Qn(r.get(),!0,!1)}catch(e){if(e instanceof Yn)g=e.result;else{if(!(e instanceof Jn))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return De.fun(a)&&ye.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Zn(e,t){Re(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Yn extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Jn extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Kn=e=>e instanceof tr;let er=1;class tr extends It{constructor(...e){super(...e),this.id=er++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=dn(this);return e&&e.getValue()}to(...e){return Ge.to(this,e)}interpolate(...e){return en(`${Jt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ge.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){jt(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Ke.sort(this),jt(this,{type:"priority",parent:this,priority:e})}}const nr=Symbol.for("SpringPhase"),rr=e=>(1&e[nr])>0,ir=e=>(2&e[nr])>0,or=e=>(4&e[nr])>0,ar=(e,t)=>t?e[nr]|=3:e[nr]&=-3,sr=(e,t)=>t?e[nr]|=4:e[nr]&=-5;class lr extends tr{constructor(e,t){if(super(),this.key=void 0,this.animation=new Wn,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!De.und(e)||!De.und(t)){const n=De.obj(e)?kn({},e):kn({},t,{from:e});De.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ir(this)||this._state.asyncTo)||or(this)}get goal(){return Et(this.animation.to)}get velocity(){const e=dn(this);return e instanceof gn?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return rr(this)}get isAnimating(){return ir(this)}get isPaused(){return or(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=pn(r.to);!a&&At(r.to)&&(o=Te(Et(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==mn?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=De.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(De.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=h,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!De.und(r),p=n==c?s.v0>0:n<c;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(g=d==c||d>c==p,g&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=dn(this),l=s.getValue();if(t){const e=Et(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return ye.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ir(this)){const{to:e,config:t}=this.animation;ye.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return De.und(e)?(n=this.queue||[],this.queue=[]):n=[De.obj(e)?e:kn({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>qn(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Zn(this._state,e&&this._lastCallId),ye.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=De.obj(n)?n[t]:n,(null==n||Mn(n))&&(n=void 0),r=De.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return rr(this)||(e.reverse&&([n,r]=[r,n]),r=Et(r),De.und(r)?dn(this)||this._set(n):this._set(r)),i}_update(e,t){let n=kn({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,An(n,((e,t)=>/^on/.test(t)?Hn(e,r):e))),gr(this,n,"onProps"),mr(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Ln(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{or(this)||(sr(this,!0),Ve(a.pauseQueue),mr(this,"onPause",Qn(this,cr(this,this.animation.to)),this))},resume:()=>{or(this)&&(sr(this,!1),ir(this)&&this._resume(),Ve(a.resumeQueue),mr(this,"onResume",Qn(this,cr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=ur(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Gn(this));const r=!De.und(e.to),i=!De.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Gn(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||r||t.default&&!De.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!je(d,c);h&&(s.from=d),d=Et(d);const p=!je(u,l);p&&this._focus(u);const f=Mn(t.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Vn(n=kn({},n),t),t=kn({},n,t)),Vn(e,t),Object.assign(e,t);for(const t in Tn)null==e[t]&&(e[t]=Tn[t]);let{mass:r,frequency:i,damping:o}=e;De.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(g,Cn(t.config,o),t.config!==a.config?Cn(a.config,o):void 0);let v=dn(this);if(!v||De.und(u))return n(Qn(this,!0));const b=De.und(t.reset)?i&&!t.default:!De.und(d)&&Bn(t.reset,o),w=b?d:this.get(),_=In(u),S=De.num(_)||De.arr(_)||nn(_),$=!f&&(!S||Bn(a.immediate||t.immediate,o));if(p){const e=_n(u);if(e!==v.constructor){if(!$)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(_)}}const F=v.constructor;let x=At(u),O=!1;if(!x){const e=b||!rr(this)&&h;(p||e)&&(O=je(In(w),_),x=!O),(je(s.immediate,$)||$)&&je(g.decay,m)&&je(g.velocity,y)||(x=!0)}if(O&&ir(this)&&(s.changed&&!b?x=!0:x||this._stop(l)),!f&&((x||At(l))&&(s.values=v.getPayload(),s.toValues=At(u)?null:F==mn?[1]:Te(_)),s.immediate!=$&&(s.immediate=$,$||b||this._set(l)),x)){const{onRest:e}=s;Ie(fr,(e=>gr(this,t,e)));const r=Qn(this,cr(this,l));Ve(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&ye.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?Cn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(Xn(t.to,t,this._state,this)):x?this._start():ir(this)&&!p?this._pendingCalls.add(n):n(Un(w))}_focus(e){const t=this.animation;e!==t.to&&(Dt(this)&&this._detach(),t.to=e,Dt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;At(t)&&(Tt(t,this),Kn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;At(e)&&Rt(e,this)}_set(e,t=!0){const n=Et(e);if(!De.und(n)){const e=dn(this);if(!e||!je(n,e.getValue())){const r=_n(n);e&&e.constructor==r?e.setValue(n):hn(this,r.create(n)),e&&ye.batchedUpdates((()=>{this._onChange(n,t)}))}}return dn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,mr(this,"onStart",Qn(this,cr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Cn(this.animation.onChange,e,this)),Cn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;dn(this).reset(Et(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),ir(this)||(ar(this,!0),or(this)||this._resume())}_resume(){Ge.skipAnimation?this.finish():Ke.start(this)}_stop(e,t){if(ir(this)){ar(this,!1);const n=this.animation;Ie(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),jt(this,{type:"idle",parent:this});const r=t?Gn(this.get()):Qn(this.get(),cr(this,null!=e?e:n.to));Ve(this._pendingCalls,r),n.changed&&(n.changed=!1,mr(this,"onRest",r,this))}}}function cr(e,t){const n=In(t);return je(In(e.get()),n)}function ur(e,t=e.loop,n=e.to){let r=Cn(t);if(r){const i=!0!==r&&jn(r),o=(i||e).reverse,a=!i||i.reset;return dr(kn({},e,{loop:t,default:!1,pause:void 0,to:!o||Mn(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function dr(e){const{to:t,from:n}=e=jn(e),r=new Set;return De.obj(t)&&pr(t,r),De.obj(n)&&pr(n,r),e.keys=r.size?Array.from(r):null,e}function hr(e){const t=dr(e);return De.und(t.default)&&(t.default=An(t)),t}function pr(e,t){Me(e,((e,n)=>null!=e&&t.add(n)))}const fr=["onStart","onRest","onChange","onPause","onResume"];function gr(e,t,n){e.animation[n]=t[n]!==Pn(t,n)?Hn(t[n],e.key):void 0}function mr(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const yr=["onStart","onChange","onRest"];let vr=1;class br{constructor(e,t){this.id=vr++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(kn({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];De.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(dr(e)),this}start(e){let{queue:t}=this;return e?t=Te(e).map(dr):this.queue=[],this._flush?this._flush(this,t):(Or(this,t),wr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ie(Te(t),(t=>n[t].stop(!!e)))}else Zn(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(De.und(e))this.start({pause:!0});else{const t=this.springs;Ie(Te(e),(e=>t[e].pause()))}return this}resume(e){if(De.und(e))this.start({pause:!1});else{const t=this.springs;Ie(Te(e),(e=>t[e].resume()))}return this}each(e){Me(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Re(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Re(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Re(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ye.onFrame(this._onFrame)}}function wr(e,t){return Promise.all(t.map((t=>_r(e,t)))).then((t=>qn(e,t)))}async function _r(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=De.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=De.arr(i)||De.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Ie(yr,(n=>{const r=t[n];if(De.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ve(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Pn(t,"cancel");(u||p&&d.asyncId)&&h.push(Ln(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ee,resume:Ee,start(t,n){p?(Zn(d,e._lastAsyncId),n(Gn(e))):(t.onRest=s,n(Xn(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=qn(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=ur(t,a,i);if(n)return Or(e,[n]),_r(e,n,!0)}return l&&ye.batchedUpdates((()=>l(f,e,e.item))),f}function Sr(e,t){const n=kn({},e.springs);return t&&Ie(Te(t),(e=>{De.und(e.keys)&&(e=dr(e)),De.obj(e.to)||(e=kn({},e,{to:void 0})),xr(n,e,(e=>Fr(e)))})),$r(e,n),n}function $r(e,t){Me(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Tt(t,e))}))}function Fr(e,t){const n=new lr;return n.key=e,t&&Tt(n,t),n}function xr(e,t,n){t.keys&&Ie(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Or(e,t){Ie(t,(t=>{xr(e.springs,t,(t=>Fr(t,e)))}))}const kr=["children"],Cr=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,kr);const i=g(Br),o=n.pause||!!i.pause,l=n.immediate||!!i.immediate;n=function(e,t){const[n]=s((()=>({inputs:t,result:e()}))),r=a(),i=r.current;let o=i;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=n;return d((()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:l})),[o,l]);const{Provider:c}=Br;return r.createElement(c,{value:n},t)},Br=(Hr=Cr,Pr={},Object.assign(Hr,r.createContext(Pr)),Hr.Provider._context=Hr,Hr.Consumer._context=Hr,Hr);var Hr,Pr;Cr.Provider=Br.Provider,Cr.Consumer=Br.Consumer;const zr=()=>{const e=[],t=function(t){tn(`${Jt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Ie(e,((e,i)=>{if(De.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Ie(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ie(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ie(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Ie(e,((e,r)=>{if(De.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Ie(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ie(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return De.fun(e)?e(n,t):e};return t._getProps=n,t};function Ar(e,t){const n=De.fun(e),[[r],i]=function(e,t,n){const r=De.fun(t)&&t;r&&!n&&(n=[]);const i=m((()=>r||3==arguments.length?zr():void 0),[]),o=a(0),s=an(),l=m((()=>({ctrls:[],queue:[],flush(e,t){const n=Sr(e,t);return o.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?wr(e,t):new Promise((r=>{$r(e,n),l.queue.push((()=>{r(wr(e,t))})),s()}))}})),[]),c=a([...l.ctrls]),u=[],d=cn(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=c.current[i]||(c.current[i]=new br(null,l.flush)),n=r?r(i,e):t[i];n&&(u[i]=hr(n))}}m((()=>{Ie(c.current.slice(e,d),(e=>{!function(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}(e,i),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),m((()=>{h(0,Math.min(d,e))}),n);const p=c.current.map(((e,t)=>Sr(e,u[t]))),f=g(Cr),y=cn(f),v=f!==y&&function(e){for(const t in e)return!0;return!1}(f);rn((()=>{o.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],Ie(e,(e=>e()))),Ie(c.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:f});const n=u[t];n&&(function(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),sn((()=>()=>{Ie(l.ctrls,(e=>e.stop(!0)))}));const b=p.map((e=>kn({},e)));return i?[b,i]:b}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}let Er;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Er||(Er={}));class Dr extends tr{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=St(...t);const n=this._get(),r=_n(n);hn(this,r.create(n))}advance(e){const t=this._get();je(t,this.get())||(dn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ir(this._active)&&Mr(this)}_get(){const e=De.arr(this.source)?this.source.map(Et):Te(Et(this.source));return this.calc(...e)}_start(){this.idle&&!Ir(this._active)&&(this.idle=!1,Ie(pn(this),(e=>{e.done=!1})),Ge.skipAnimation?(ye.batchedUpdates((()=>this.advance())),Mr(this)):Ke.start(this))}_attach(){let e=1;Ie(Te(this.source),(t=>{At(t)&&Tt(t,this),Kn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ie(Te(this.source),(e=>{At(e)&&Rt(e,this)})),this._active.clear(),Mr(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Te(this.source).reduce(((e,t)=>Math.max(e,(Kn(t)?t.priority:0)+1)),0))}}function jr(e){return!1!==e.idle}function Ir(e){return!e.size||Array.from(e).every(jr)}function Mr(e){e.idle||(e.idle=!0,Ie(pn(e),(e=>{e.done=!0})),jt(e,{type:"idle",parent:e}))}function Tr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Ge.assign({createStringInterpolator:Yt,to:(e,t)=>new Dr(e,t)});const Rr=["style","children","scrollTop","scrollLeft","viewBox"],Vr=/^--/;function Nr(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Vr.test(e)||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}const Wr={};let Lr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const qr=["Webkit","Ms","Moz","O"];Lr=Object.keys(Lr).reduce(((e,t)=>(qr.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Lr);const Ur=["x","y","z"],Qr=/^(matrix|translate|scale|rotate|skew)/,Gr=/^(translate)/,Xr=/^(rotate|skew)/,Zr=(e,t)=>De.num(e)&&0!==e?e+t:e,Yr=(e,t)=>De.arr(e)?e.every((e=>Yr(e,t))):De.num(e)?e===t:parseFloat(e)===t;class Jr extends vn{constructor(e){let{x:t,y:n,z:r}=e,i=Tr(e,Ur);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Zr(e,"px"))).join(",")})`,Yr(e,0)]))),Me(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Qr.test(t)){if(delete i[t],De.und(e))return;const n=Gr.test(t)?"px":Xr.test(t)?"deg":"";o.push(Te(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Zr(i,n)})`,Yr(i,0)]:e=>[`${t}(${e.map((e=>Zr(e,n))).join(",")})`,Yr(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Kr(o,a)),super(i)}}class Kr extends It{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ie(this.inputs,((n,r)=>{const i=Et(n[0]),[o,a]=this.transforms[r](De.arr(i)?i:n.map(Et));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Ie(this.inputs,(e=>Ie(e,(e=>At(e)&&Tt(e,this)))))}observerRemoved(e){0==e&&Ie(this.inputs,(e=>Ie(e,(e=>At(e)&&Rt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),jt(this,e)}}const ei=["scrollTop","scrollLeft"];Ge.assign({batchedUpdates:v,createStringInterpolator:Yt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const ti=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new vn(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=On(e)||"Anonymous";return(e=De.str(e)?o[e]||(o[e]=$n(e,i)):e[xn]||(e[xn]=$n(e,i))).displayName=`Animated(${t})`,e};return Me(e,((t,n)=>{De.arr(e)&&(n=On(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l}=r,c=Tr(r,Rr),u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:Wr[t]||(Wr[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Nr(t,i[t]);Vr.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Jr(e),getComponentProps:e=>Tr(e,ei)}),ni=ti.animated,ri=i.createContext(!1);var ii,oi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ai={};Object.defineProperty(ai,"__esModule",{value:!0});var si=e;const li=e=>si.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:si.jsx("path",{d:"M17.7279 14.2091C17.5059 14.4311 17.2492 14.5421 16.9579 14.5421C16.6659 14.5421 16.4089 14.4311 16.1869 14.2091L10.1659 8.18812L4.12389 14.2301C3.91589 14.4381 3.66589 14.5421 3.37389 14.5421C3.08256 14.5421 2.82589 14.4311 2.60389 14.2091C2.39523 14.0005 2.29089 13.7468 2.29089 13.4481C2.29089 13.1495 2.39523 12.8961 2.60389 12.6881L9.54089 5.75012C9.63823 5.65346 9.73889 5.58412 9.84289 5.54212C9.94689 5.50079 10.0546 5.48012 10.1659 5.48012C10.2772 5.48012 10.3849 5.50079 10.4889 5.54212C10.5929 5.58412 10.6936 5.65346 10.7909 5.75012L17.7489 12.7091C17.9716 12.9311 18.0759 13.1845 18.0619 13.4691C18.0479 13.7538 17.9366 14.0005 17.7279 14.2091Z",fill:"currentColor"})});li.displayName="ChevronUpIcon",ii=ai.ChevronUpIcon=li;var ci=Array.isArray,ui="object"==typeof oi&&oi&&oi.Object===Object&&oi,di="object"==typeof self&&self&&self.Object===Object&&self,hi=ui||di||Function("return this")(),pi=hi.Symbol,fi=pi,gi=Object.prototype,mi=gi.hasOwnProperty,yi=gi.toString,vi=fi?fi.toStringTag:void 0;var bi=function(e){var t=mi.call(e,vi),n=e[vi];try{e[vi]=void 0;var r=!0}catch(e){}var i=yi.call(e);return r&&(t?e[vi]=n:delete e[vi]),i},wi=Object.prototype.toString;var _i=bi,Si=function(e){return wi.call(e)},$i=pi?pi.toStringTag:void 0;var Fi=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$i&&$i in Object(e)?_i(e):Si(e)};var xi=Fi,Oi=function(e){return null!=e&&"object"==typeof e};var ki=function(e){return"symbol"==typeof e||Oi(e)&&"[object Symbol]"==xi(e)},Ci=ci,Bi=ki,Hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/;var zi=function(e,t){if(Ci(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Bi(e))||(Pi.test(e)||!Hi.test(e)||null!=t&&e in Object(t))};var Ai=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ei=Fi,Di=Ai;var ji,Ii=function(e){if(!Di(e))return!1;var t=Ei(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Mi=hi["__core-js_shared__"],Ti=(ji=/[^.]+$/.exec(Mi&&Mi.keys&&Mi.keys.IE_PROTO||""))?"Symbol(src)_1."+ji:"";var Ri=function(e){return!!Ti&&Ti in e},Vi=Function.prototype.toString;var Ni=Ii,Wi=Ri,Li=Ai,qi=function(e){if(null!=e){try{return Vi.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ui=/^\[object .+?Constructor\]$/,Qi=Function.prototype,Gi=Object.prototype,Xi=Qi.toString,Zi=Gi.hasOwnProperty,Yi=RegExp("^"+Xi.call(Zi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ji=function(e){return!(!Li(e)||Wi(e))&&(Ni(e)?Yi:Ui).test(qi(e))},Ki=function(e,t){return null==e?void 0:e[t]};var eo=function(e,t){var n=Ki(e,t);return Ji(n)?n:void 0},to=eo(Object,"create"),no=to;var ro=function(){this.__data__=no?no(null):{},this.size=0};var io=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},oo=to,ao=Object.prototype.hasOwnProperty;var so=function(e){var t=this.__data__;if(oo){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ao.call(t,e)?t[e]:void 0},lo=to,co=Object.prototype.hasOwnProperty;var uo=to;var ho=ro,po=io,fo=so,go=function(e){var t=this.__data__;return lo?void 0!==t[e]:co.call(t,e)},mo=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uo&&void 0===t?"__lodash_hash_undefined__":t,this};function yo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yo.prototype.clear=ho,yo.prototype.delete=po,yo.prototype.get=fo,yo.prototype.has=go,yo.prototype.set=mo;var vo=yo;var bo=function(){this.__data__=[],this.size=0};var wo=function(e,t){return e===t||e!=e&&t!=t};var _o=function(e,t){for(var n=e.length;n--;)if(wo(e[n][0],t))return n;return-1},So=_o,$o=Array.prototype.splice;var Fo=_o;var xo=_o;var Oo=_o;var ko=bo,Co=function(e){var t=this.__data__,n=So(t,e);return!(n<0)&&(n==t.length-1?t.pop():$o.call(t,n,1),--this.size,!0)},Bo=function(e){var t=this.__data__,n=Fo(t,e);return n<0?void 0:t[n][1]},Ho=function(e){return xo(this.__data__,e)>-1},Po=function(e,t){var n=this.__data__,r=Oo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function zo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zo.prototype.clear=ko,zo.prototype.delete=Co,zo.prototype.get=Bo,zo.prototype.has=Ho,zo.prototype.set=Po;var Ao=zo,Eo=eo(hi,"Map"),Do=vo,jo=Ao,Io=Eo;var Mo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var To=function(e,t){var n=e.__data__;return Mo(t)?n["string"==typeof t?"string":"hash"]:n.map},Ro=To;var Vo=To;var No=To;var Wo=To;var Lo=function(){this.size=0,this.__data__={hash:new Do,map:new(Io||jo),string:new Do}},qo=function(e){var t=Ro(this,e).delete(e);return this.size-=t?1:0,t},Uo=function(e){return Vo(this,e).get(e)},Qo=function(e){return No(this,e).has(e)},Go=function(e,t){var n=Wo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Xo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xo.prototype.clear=Lo,Xo.prototype.delete=qo,Xo.prototype.get=Uo,Xo.prototype.has=Qo,Xo.prototype.set=Go;var Zo=Xo;function Yo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Yo.Cache||Zo),n}Yo.Cache=Zo;var Jo=Yo;var Ko=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ea=/\\(\\)?/g,ta=function(e){var t=Jo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ko,(function(e,n,r,i){t.push(r?i.replace(ea,"$1"):n||e)})),t}));var na=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},ra=ci,ia=ki,oa=pi?pi.prototype:void 0,aa=oa?oa.toString:void 0;var sa=function e(t){if("string"==typeof t)return t;if(ra(t))return na(t,e)+"";if(ia(t))return aa?aa.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},la=sa;var ca=ci,ua=zi,da=ta,ha=function(e){return null==e?"":la(e)};var pa=ki;var fa=function(e,t){return ca(e)?e:ua(e,t)?[e]:da(ha(e))},ga=function(e){if("string"==typeof e||pa(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var ma=function(e,t){for(var n=0,r=(t=fa(t,e)).length;null!=e&&n<r;)e=e[ga(t[n++])];return n&&n==r?e:void 0};var ya=function(e,t,n){var r=null==e?void 0:ma(e,t);return void 0===r?n:r};const va=(e,t,n)=>t?ya(n,t)||ya(e,t):n||e,ba=(e,t)=>{const n=t||e.defaultValue;return ya(e.collections,n)};var wa;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}(wa||(wa={}));const _a={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#4B539F",2:"#6D74B1",3:"#959BC5"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#977ECC",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},Sa=e=>t=>{const n=t.theme,r=ba(_a,n[wa.colorScheme]);return n.options&&n.options.color?va(r,e,n.options.color):va(r,e)},$a={Brand:{1:Sa("Brand.1"),2:Sa("Brand.2"),3:Sa("Brand.3"),4:Sa("Brand.4"),5:Sa("Brand.5"),6:Sa("Brand.6")},Primary:Sa("Primary"),PrimaryDark:Sa("PrimaryDark"),Secondary:Sa("Secondary"),Accent:{Light:{1:Sa("Accent.Light.1"),2:Sa("Accent.Light.2"),3:Sa("Accent.Light.3"),4:Sa("Accent.Light.4"),5:Sa("Accent.Light.5"),6:Sa("Accent.Light.6")},Dark:{1:Sa("Accent.Dark.1"),2:Sa("Accent.Dark.2"),3:Sa("Accent.Dark.3")}},Neutral:{1:Sa("Neutral.1"),2:Sa("Neutral.2"),3:Sa("Neutral.3"),4:Sa("Neutral.4"),5:Sa("Neutral.5"),6:Sa("Neutral.6"),7:Sa("Neutral.7"),8:Sa("Neutral.8")},Validation:{Green:{Text:Sa("Validation.Green.Text"),Icon:Sa("Validation.Green.Icon"),Border:Sa("Validation.Green.Border"),Background:Sa("Validation.Green.Background")},Orange:{Text:Sa("Validation.Orange.Text"),Icon:Sa("Validation.Orange.Icon"),Border:Sa("Validation.Orange.Border"),Background:Sa("Validation.Orange.Background"),Badge:Sa("Validation.Orange.Badge")},Red:{Text:Sa("Validation.Red.Text"),Icon:Sa("Validation.Red.Icon"),Border:Sa("Validation.Red.Border"),Background:Sa("Validation.Red.Background")},Blue:{Text:Sa("Validation.Blue.Text"),Icon:Sa("Validation.Blue.Icon"),Border:Sa("Validation.Blue.Border"),Background:Sa("Validation.Blue.Background")}},Shadow:{Accent:Sa("Shadow.Accent"),Red:Sa("Shadow.Red"),Elevation:Sa("Shadow.Elevation")}},Fa=b.button`
1
+ import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import i,{cloneElement as o,useRef as a,useState as s,isValidElement as l,createRef as u,PureComponent as c,useEffect as d,useLayoutEffect as h,forwardRef as p,useCallback as f,useContext as g,useMemo as m}from"react";import{findDOMNode as y,unstable_batchedUpdates as v}from"react-dom";import b,{css as w,keyframes as _}from"styled-components";var S=function(e,t){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},S(e,t)};var $=function(){return $=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$.apply(this,arguments)};var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var x=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O="object"==typeof F&&F&&F.Object===Object&&F,k="object"==typeof self&&self&&self.Object===Object&&self,C=O||k||Function("return this")(),B=C,H=function(){return B.Date.now()},P=/\s/;var z=function(e){for(var t=e.length;t--&&P.test(e.charAt(t)););return t},A=/^\s+/;var E=function(e){return e?e.slice(0,z(e)+1).replace(A,""):e},D=C.Symbol,j=D,I=Object.prototype,M=I.hasOwnProperty,T=I.toString,R=j?j.toStringTag:void 0;var V=function(e){var t=M.call(e,R),n=e[R];try{e[R]=void 0;var r=!0}catch(e){}var i=T.call(e);return r&&(t?e[R]=n:delete e[R]),i},N=Object.prototype.toString;var W=V,L=function(e){return N.call(e)},q=D?D.toStringTag:void 0;var U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q&&q in Object(e)?W(e):L(e)},Q=function(e){return null!=e&&"object"==typeof e};var G=E,X=x,Z=function(e){return"symbol"==typeof e||Q(e)&&"[object Symbol]"==U(e)},Y=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,K=/^0o[0-7]+$/i,ee=parseInt;var te=x,ne=H,re=function(e){if("number"==typeof e)return e;if(Z(e))return NaN;if(X(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=X(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=G(e);var n=J.test(e);return n||K.test(e)?ee(e.slice(2),n?2:8):Y.test(e)?NaN:+e},ie=Math.max,oe=Math.min;var ae=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function g(){var e=ne();if(f(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?oe(n,o-(e-u)):n}(e))}function m(e){return s=void 0,h&&r?p(e):(r=i=void 0,a)}function y(){var e=ne(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(g,t),c?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=re(t)||0,te(n)&&(c=!!n.leading,o=(d="maxWait"in n)?ie(re(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:m(ne())},y},se=ae,le=x;var ue=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return le(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),se(e,t,{leading:r,maxWait:t,trailing:i})},ce=function(e,t,n,r){switch(t){case"debounce":return ae(e,n,r);case"throttle":return ue(e,n,r);default:return e}},de=function(e){return"function"==typeof e},he=function(){return"undefined"==typeof window},pe=function(e){return e instanceof Element||e instanceof HTMLDocument},fe=function(e,t,n,r){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!r||t.height===a&&!n?t:(e&&de(e)&&e(o,a),{width:o,height:a})}))}};!function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!he()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(he())return null;if(t)return document.querySelector(t);if(r&&pe(r))return r;if(n.targetRef&&pe(n.targetRef.current))return n.targetRef.current;var i=y(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,a=void 0===o||o,s=t.onResize;if(i||a){var l=fe(s,n.setState.bind(n),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!he()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return de(t)?"renderProp":de(r)?"childFunction":l(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,i=t.refreshMode,o=t.refreshRate,a=void 0===o?1e3:o,s=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=u(),n.observableElement=null,he()||(n.resizeHandler=ce(n.createResizeHandler,i,a,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){he()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,i=t.children,a=t.nodeType,s=void 0===a?"div":a,l=this.state,u={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(u);case"childFunction":return(e=i)(u);case"child":if((e=i).type&&"string"==typeof e.type){var c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(u,["targetRef"]);return o(e,c)}return o(e,u);case"childArray":return(e=i).map((function(e){return!!e&&o(e,u)}));default:return r.createElement(s,null)}}}(c);var ge=he()?d:h;let me=ze();const ye=e=>Ce(e,me);let ve=ze();ye.write=e=>Ce(e,ve);let be=ze();ye.onStart=e=>Ce(e,be);let we=ze();ye.onFrame=e=>Ce(e,we);let _e=ze();ye.onFinish=e=>Ce(e,_e);let Se=[];ye.setTimeout=(e,t)=>{let n=ye.now()+t,r=()=>{let e=Se.findIndex((e=>e.cancel==r));~e&&Se.splice(e,1),Oe-=~e?1:0},i={time:n,handler:e,cancel:r};return Se.splice($e(n),0,i),Oe+=1,Be(),i};let $e=e=>~(~Se.findIndex((t=>t.time>e))||~Se.length);ye.cancel=e=>{be.delete(e),we.delete(e),_e.delete(e),me.delete(e),ve.delete(e)},ye.sync=e=>{ke=!0,ye.batchedUpdates(e),ke=!1},ye.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,ye.onStart(n)}return r.handler=e,r.cancel=()=>{be.delete(n),t=null},r};let Fe="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ye.use=e=>Fe=e,ye.now="undefined"!=typeof performance?()=>performance.now():Date.now,ye.batchedUpdates=e=>e(),ye.catch=console.error,ye.frameLoop="always",ye.advance=()=>{"demand"!==ye.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Pe()};let xe=-1,Oe=0,ke=!1;function Ce(e,t){ke?(t.delete(e),e(0)):(t.add(e),Be())}function Be(){xe<0&&(xe=0,"demand"!==ye.frameLoop&&Fe(He))}function He(){~xe&&(Fe(He),ye.batchedUpdates(Pe))}function Pe(){let e=xe;xe=ye.now();let t=$e(xe);t&&(Ae(Se.splice(0,t),(e=>e.handler())),Oe-=t),Oe?(be.flush(),me.flush(e?Math.min(64,xe-e):16.667),we.flush(),ve.flush(),_e.flush()):xe=-1}function ze(){let e=new Set,t=e;return{add(n){Oe+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Oe-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Oe-=t.size,Ae(t,(t=>t(n)&&e.add(t))),Oe+=e.size,t=e)}}}function Ae(e,t){e.forEach((e=>{try{t(e)}catch(e){ye.catch(e)}}))}function Ee(){}const De={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function je(e,t){if(De.arr(e)){if(!De.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Ie=(e,t)=>e.forEach(t);function Me(e,t,n){if(De.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const Te=e=>De.und(e)?[]:De.arr(e)?e:[e];function Re(e,t){if(e.size){const n=Array.from(e);e.clear(),Ie(n,t)}}const Ve=(e,...t)=>Re(e,(e=>e(...t))),Ne=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let We,Le,qe=null,Ue=!1,Qe=Ee;var Ge=Object.freeze({__proto__:null,get createStringInterpolator(){return We},get to(){return Le},get colors(){return qe},get skipAnimation(){return Ue},get willAdvance(){return Qe},assign:e=>{e.to&&(Le=e.to),e.now&&(ye.now=e.now),void 0!==e.colors&&(qe=e.colors),null!=e.skipAnimation&&(Ue=e.skipAnimation),e.createStringInterpolator&&(We=e.createStringInterpolator),e.requestAnimationFrame&&ye.use(e.requestAnimationFrame),e.batchedUpdates&&(ye.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Qe=e.willAdvance),e.frameLoop&&(ye.frameLoop=e.frameLoop)}});const Xe=new Set;let Ze=[],Ye=[],Je=0;const Ke={get idle(){return!Xe.size&&!Ze.length},start(e){Je>e.priority?(Xe.add(e),ye.onStart(et)):(tt(e),ye(rt))},advance:rt,sort(e){if(Je)ye.onFrame((()=>Ke.sort(e)));else{const t=Ze.indexOf(e);~t&&(Ze.splice(t,1),nt(e))}},clear(){Ze=[],Xe.clear()}};function et(){Xe.forEach(tt),Xe.clear(),ye(rt)}function tt(e){Ze.includes(e)||nt(e)}function nt(e){Ze.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Ze,(t=>t.priority>e.priority)),0,e)}function rt(e){const t=Ye;for(let n=0;n<Ze.length;n++){const r=Ze[n];Je=r.priority,r.idle||(Qe(r),r.advance(e),r.idle||t.push(r))}return Je=0,Ye=Ze,Ye.length=0,Ze=t,Ze.length>0}const it="[-+]?\\d*\\.?\\d+",ot=it+"%";function at(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const st=new RegExp("rgb"+at(it,it,it)),lt=new RegExp("rgba"+at(it,it,it,it)),ut=new RegExp("hsl"+at(it,ot,ot)),ct=new RegExp("hsla"+at(it,ot,ot,it)),dt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ht=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,pt=/^#([0-9a-fA-F]{6})$/,ft=/^#([0-9a-fA-F]{8})$/;function gt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=gt(i,r,e+1/3),a=gt(i,r,e),s=gt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function yt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function vt(e){return(parseFloat(e)%360+360)%360/360}function bt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function wt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function _t(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=pt.exec(e))?parseInt(t[1]+"ff",16)>>>0:qe&&void 0!==qe[e]?qe[e]:(t=st.exec(e))?(yt(t[1])<<24|yt(t[2])<<16|yt(t[3])<<8|255)>>>0:(t=lt.exec(e))?(yt(t[1])<<24|yt(t[2])<<16|yt(t[3])<<8|bt(t[4]))>>>0:(t=dt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ft.exec(e))?parseInt(t[1],16)>>>0:(t=ht.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ut.exec(e))?(255|mt(vt(t[1]),wt(t[2]),wt(t[3])))>>>0:(t=ct.exec(e))?(mt(vt(t[1]),wt(t[2]),wt(t[3]))|bt(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const St=(e,t,n)=>{if(De.fun(e))return e;if(De.arr(e))return St({range:e,output:t,extrapolate:n});if(De.str(e.output[0]))return We(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r;return u}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};const $t=1.70158,Ft=1.525*$t,xt=$t+1,Ot=2*Math.PI/3,kt=2*Math.PI/4.5,Ct=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Bt={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>xt*e*e*e-$t*e*e,easeOutBack:e=>1+xt*Math.pow(e-1,3)+$t*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ft)/2:(Math.pow(2*e-2,2)*((Ft+1)*(2*e-2)+Ft)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ot),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ot)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*kt)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*kt)/2+1,easeInBounce:e=>1-Ct(1-e),easeOutBounce:Ct,easeInOutBounce:e=>e<.5?(1-Ct(1-2*e))/2:(1+Ct(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,i="end"===t?Math.floor(r):Math.ceil(r);return o=0,a=1,s=i/e,Math.min(Math.max(s,o),a);var o,a,s}};function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ht.apply(this,arguments)}const Pt=Symbol.for("FluidValue.get"),zt=Symbol.for("FluidValue.observers"),At=e=>Boolean(e&&e[Pt]),Et=e=>e&&e[Pt]?e[Pt]():e,Dt=e=>e[zt]||null;function jt(e,t){let n=e[zt];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class It{constructor(e){if(this[Pt]=void 0,this[zt]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Mt(this,e)}}const Mt=(e,t)=>Vt(e,Pt,t);function Tt(e,t){if(e[Pt]){let n=e[zt];n||Vt(e,zt,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Rt(e,t){let n=e[zt];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[zt]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Vt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Nt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Wt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Lt=new RegExp(`(${Nt.source})(%|[a-z]+)`,"i"),qt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ut=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Qt=e=>{const[t,n]=Gt(e);if(!t||Ne())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Ut.test(n)?Qt(n):n||e},Gt=e=>{const t=Ut.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Xt;const Zt=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Yt=e=>{Xt||(Xt=qe?new RegExp(`(${Object.keys(qe).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Et(e).replace(Ut,Qt).replace(Wt,_t).replace(Xt,_t))),n=t.map((e=>e.match(Nt).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>St(Ht({},e,{output:t}))));return e=>{var n;const i=!Lt.test(t[0])&&(null==(n=t.find((e=>Lt.test(e))))?void 0:n.replace(Nt,""));let o=0;return t[0].replace(Nt,(()=>`${r[o++](e)}${i||""}`)).replace(qt,Zt)}},Jt="react-spring: ",Kt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Jt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},en=Kt(console.warn);const tn=Kt(console.warn);function nn(e){return De.str(e)&&("#"==e[0]||/\d/.test(e)||!Ne()&&Ut.test(e)||e in(qe||{}))}const rn=Ne()?d:h,on=()=>{const e=a(!1);return rn((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function an(){const e=s()[1],t=on();return()=>{t.current&&e(Math.random())}}const sn=e=>d(e,ln),ln=[];function un(e){const t=a();return d((()=>{t.current=e})),t.current}const cn=Symbol.for("Animated:node"),dn=e=>e&&e[cn],hn=(e,t)=>{return n=e,r=cn,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},pn=e=>e&&e[cn]&&e[cn].getPayload();class fn{constructor(){this.payload=void 0,hn(this,this)}getPayload(){return this.payload||[]}}class gn extends fn{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,De.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new gn(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return De.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,De.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class mn extends gn{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=St({output:[e,e]})}static create(e){return new mn(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(De.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=St({output:[this.getValue(),e]})),this._value=0,super.reset()}}const yn={dependencies:null};class vn extends fn{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Me(this.source,((n,r)=>{var i;(i=n)&&i[cn]===i?t[r]=n.getValue(e):At(n)?t[r]=Et(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ie(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Me(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){yn.dependencies&&At(e)&&yn.dependencies.add(e);const t=pn(e);t&&Ie(t,(e=>this.add(e)))}}class bn extends vn{constructor(e){super(e)}static create(e){return new bn(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(wn)),!0)}}function wn(e){return(nn(e)?mn:gn).create(e)}function _n(e){const t=dn(e);return t?t.constructor:De.arr(e)?bn:nn(e)?mn:gn}function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sn.apply(this,arguments)}const $n=(e,t)=>{const n=!De.fun(e)||e.prototype&&e.prototype.isReactComponent;return p(((i,o)=>{const s=a(null),l=n&&f((e=>{s.current=function(e,t){e&&(De.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[u,c]=function(e,t){const n=new Set;yn.dependencies=n,e.style&&(e=Sn({},e,{style:t.createAnimatedStyle(e.style)}));return e=new vn(e),yn.dependencies=null,[e,n]}(i,t),h=an(),p=()=>{const e=s.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&h()},g=new Fn(p,c),m=a();rn((()=>(m.current=g,Ie(c,(e=>Tt(e,g))),()=>{m.current&&(Ie(m.current.deps,(e=>Rt(e,m.current))),ye.cancel(m.current.update))}))),d(p,[]),sn((()=>()=>{const e=m.current;Ie(e.deps,(t=>Rt(t,e)))}));const y=t.getComponentProps(u.getValue());return r.createElement(e,Sn({},y,{ref:l}))}))};class Fn{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ye.write(this.update)}}const xn=Symbol.for("AnimatedComponent"),On=e=>De.str(e)?e:e&&De.str(e.displayName)?e.displayName:De.fun(e)&&e.name||null;function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kn.apply(this,arguments)}function Cn(e,...t){return De.fun(e)?e(...t):e}const Bn=(e,t)=>!0===e||!!(t&&e&&(De.fun(e)?e(t):Te(e).includes(t))),Hn=(e,t)=>De.obj(e)?t&&e[t]:e,Pn=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,zn=e=>e,An=(e,t=zn)=>{let n=En;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);De.und(n)||(r[i]=n)}return r},En=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Dn={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function jn(e){const t=function(e){const t={};let n=0;if(Me(e,((e,r)=>{Dn[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Me(e,((e,r)=>r in t||(n[r]=e))),n}return kn({},e)}function In(e){return e=Et(e),De.arr(e)?e.map(In):nn(e)?Ge.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Mn(e){return De.fun(e)||De.arr(e)&&De.obj(e[0])}const Tn=kn({},{tension:170,friction:26},{mass:1,damping:1,easing:Bt.linear,clamp:!1});class Rn{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,Tn)}}function Vn(e,t){if(De.und(t.decay)){const n=!De.und(t.tension)||!De.und(t.friction);!n&&De.und(t.frequency)&&De.und(t.damping)&&De.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Nn=[];class Wn{constructor(){this.changed=!1,this.values=Nn,this.toValues=null,this.fromValues=Nn,this.to=void 0,this.from=void 0,this.config=new Rn,this.immediate=!1}}function Ln(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let u,c,d=Bn(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{De.und(n.pause)||(i.paused=Bn(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||Bn(e,t)),u=Cn(n.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(c),c.cancel(),u=c.time-ye.now()}function p(){u>0&&!Ge.skipAnimation?(i.delayed=!0,c=ye.setTimeout(f,u),i.pauseQueue.add(h),i.timeouts.add(c)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(c),e<=(i.cancelId||0)&&(d=!0);try{o.start(kn({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const qn=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Gn(e.get()):t.every((e=>e.noop))?Un(e.get()):Qn(e.get(),t.every((e=>e.finished))),Un=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Qn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Gn=e=>({value:e,cancelled:!0,finished:!1});function Xn(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=An(t,((e,t)=>"onRest"===t?void 0:e));let c,d;const h=new Promise(((e,t)=>(c=e,d=t))),p=e=>{const t=i<=(n.cancelId||0)&&Gn(r)||i!==n.asyncId&&Qn(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Yn,a=new Jn;return(async()=>{if(Ge.skipAnimation)throw Zn(n),a.result=Qn(r,!1),d(a),a;p(o);const s=De.obj(e)?kn({},e):kn({},t,{to:e});s.parentId=i,Me(u,((e,t)=>{De.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(Ge.skipAnimation)return Zn(n),Qn(r,!1);try{let t;t=De.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(c),h]),g=Qn(r.get(),!0,!1)}catch(e){if(e instanceof Yn)g=e.result;else{if(!(e instanceof Jn))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return De.fun(a)&&ye.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Zn(e,t){Re(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Yn extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Jn extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Kn=e=>e instanceof tr;let er=1;class tr extends It{constructor(...e){super(...e),this.id=er++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=dn(this);return e&&e.getValue()}to(...e){return Ge.to(this,e)}interpolate(...e){return en(`${Jt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ge.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){jt(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Ke.sort(this),jt(this,{type:"priority",parent:this,priority:e})}}const nr=Symbol.for("SpringPhase"),rr=e=>(1&e[nr])>0,ir=e=>(2&e[nr])>0,or=e=>(4&e[nr])>0,ar=(e,t)=>t?e[nr]|=3:e[nr]&=-3,sr=(e,t)=>t?e[nr]|=4:e[nr]&=-5;class lr extends tr{constructor(e,t){if(super(),this.key=void 0,this.animation=new Wn,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!De.und(e)||!De.und(t)){const n=De.obj(e)?kn({},e):kn({},t,{from:e});De.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ir(this)||this._state.asyncTo)||or(this)}get goal(){return Et(this.animation.to)}get velocity(){const e=dn(this);return e instanceof gn?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return rr(this)}get isAnimating(){return ir(this)}get isPaused(){return or(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=pn(r.to);!a&&At(r.to)&&(o=Te(Et(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const u=s.constructor==mn?1:a?a[l].lastPosition:o[l];let c=r.immediate,d=u;if(!c){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=De.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(De.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=h,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!De.und(r),p=n==u?s.v0>0:n<u;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(c=Math.abs(u-d)<=h,!c));++e){l&&(g=d==u||d>u==p,g&&(a=-a*r,d=u));a+=(1e-6*-i.tension*(d-u)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(u-n),a=(d-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=dn(this),l=s.getValue();if(t){const e=Et(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return ye.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ir(this)){const{to:e,config:t}=this.animation;ye.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return De.und(e)?(n=this.queue||[],this.queue=[]):n=[De.obj(e)?e:kn({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>qn(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Zn(this._state,e&&this._lastCallId),ye.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=De.obj(n)?n[t]:n,(null==n||Mn(n))&&(n=void 0),r=De.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return rr(this)||(e.reverse&&([n,r]=[r,n]),r=Et(r),De.und(r)?dn(this)||this._set(n):this._set(r)),i}_update(e,t){let n=kn({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,An(n,((e,t)=>/^on/.test(t)?Hn(e,r):e))),gr(this,n,"onProps"),mr(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Ln(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{or(this)||(sr(this,!0),Ve(a.pauseQueue),mr(this,"onPause",Qn(this,ur(this,this.animation.to)),this))},resume:()=>{or(this)&&(sr(this,!1),ir(this)&&this._resume(),Ve(a.resumeQueue),mr(this,"onResume",Qn(this,ur(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=cr(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Gn(this));const r=!De.und(e.to),i=!De.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Gn(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:c=l,from:d=u}=e;!i||r||t.default&&!De.und(c)||(c=d),t.reverse&&([c,d]=[d,c]);const h=!je(d,u);h&&(s.from=d),d=Et(d);const p=!je(c,l);p&&this._focus(c);const f=Mn(t.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Vn(n=kn({},n),t),t=kn({},n,t)),Vn(e,t),Object.assign(e,t);for(const t in Tn)null==e[t]&&(e[t]=Tn[t]);let{mass:r,frequency:i,damping:o}=e;De.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(g,Cn(t.config,o),t.config!==a.config?Cn(a.config,o):void 0);let v=dn(this);if(!v||De.und(c))return n(Qn(this,!0));const b=De.und(t.reset)?i&&!t.default:!De.und(d)&&Bn(t.reset,o),w=b?d:this.get(),_=In(c),S=De.num(_)||De.arr(_)||nn(_),$=!f&&(!S||Bn(a.immediate||t.immediate,o));if(p){const e=_n(c);if(e!==v.constructor){if(!$)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(_)}}const F=v.constructor;let x=At(c),O=!1;if(!x){const e=b||!rr(this)&&h;(p||e)&&(O=je(In(w),_),x=!O),(je(s.immediate,$)||$)&&je(g.decay,m)&&je(g.velocity,y)||(x=!0)}if(O&&ir(this)&&(s.changed&&!b?x=!0:x||this._stop(l)),!f&&((x||At(l))&&(s.values=v.getPayload(),s.toValues=At(c)?null:F==mn?[1]:Te(_)),s.immediate!=$&&(s.immediate=$,$||b||this._set(l)),x)){const{onRest:e}=s;Ie(fr,(e=>gr(this,t,e)));const r=Qn(this,ur(this,l));Ve(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&ye.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?Cn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(Xn(t.to,t,this._state,this)):x?this._start():ir(this)&&!p?this._pendingCalls.add(n):n(Un(w))}_focus(e){const t=this.animation;e!==t.to&&(Dt(this)&&this._detach(),t.to=e,Dt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;At(t)&&(Tt(t,this),Kn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;At(e)&&Rt(e,this)}_set(e,t=!0){const n=Et(e);if(!De.und(n)){const e=dn(this);if(!e||!je(n,e.getValue())){const r=_n(n);e&&e.constructor==r?e.setValue(n):hn(this,r.create(n)),e&&ye.batchedUpdates((()=>{this._onChange(n,t)}))}}return dn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,mr(this,"onStart",Qn(this,ur(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Cn(this.animation.onChange,e,this)),Cn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;dn(this).reset(Et(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),ir(this)||(ar(this,!0),or(this)||this._resume())}_resume(){Ge.skipAnimation?this.finish():Ke.start(this)}_stop(e,t){if(ir(this)){ar(this,!1);const n=this.animation;Ie(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),jt(this,{type:"idle",parent:this});const r=t?Gn(this.get()):Qn(this.get(),ur(this,null!=e?e:n.to));Ve(this._pendingCalls,r),n.changed&&(n.changed=!1,mr(this,"onRest",r,this))}}}function ur(e,t){const n=In(t);return je(In(e.get()),n)}function cr(e,t=e.loop,n=e.to){let r=Cn(t);if(r){const i=!0!==r&&jn(r),o=(i||e).reverse,a=!i||i.reset;return dr(kn({},e,{loop:t,default:!1,pause:void 0,to:!o||Mn(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function dr(e){const{to:t,from:n}=e=jn(e),r=new Set;return De.obj(t)&&pr(t,r),De.obj(n)&&pr(n,r),e.keys=r.size?Array.from(r):null,e}function hr(e){const t=dr(e);return De.und(t.default)&&(t.default=An(t)),t}function pr(e,t){Me(e,((e,n)=>null!=e&&t.add(n)))}const fr=["onStart","onRest","onChange","onPause","onResume"];function gr(e,t,n){e.animation[n]=t[n]!==Pn(t,n)?Hn(t[n],e.key):void 0}function mr(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const yr=["onStart","onChange","onRest"];let vr=1;class br{constructor(e,t){this.id=vr++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(kn({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];De.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(dr(e)),this}start(e){let{queue:t}=this;return e?t=Te(e).map(dr):this.queue=[],this._flush?this._flush(this,t):(Or(this,t),wr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ie(Te(t),(t=>n[t].stop(!!e)))}else Zn(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(De.und(e))this.start({pause:!0});else{const t=this.springs;Ie(Te(e),(e=>t[e].pause()))}return this}resume(e){if(De.und(e))this.start({pause:!1});else{const t=this.springs;Ie(Te(e),(e=>t[e].resume()))}return this}each(e){Me(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Re(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Re(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Re(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ye.onFrame(this._onFrame)}}function wr(e,t){return Promise.all(t.map((t=>_r(e,t)))).then((t=>qn(e,t)))}async function _r(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=De.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const c=De.arr(i)||De.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ie(yr,(n=>{const r=t[n];if(De.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ve(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Pn(t,"cancel");(c||p&&d.asyncId)&&h.push(Ln(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ee,resume:Ee,start(t,n){p?(Zn(d,e._lastAsyncId),n(Gn(e))):(t.onRest=s,n(Xn(c,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=qn(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=cr(t,a,i);if(n)return Or(e,[n]),_r(e,n,!0)}return l&&ye.batchedUpdates((()=>l(f,e,e.item))),f}function Sr(e,t){const n=kn({},e.springs);return t&&Ie(Te(t),(e=>{De.und(e.keys)&&(e=dr(e)),De.obj(e.to)||(e=kn({},e,{to:void 0})),xr(n,e,(e=>Fr(e)))})),$r(e,n),n}function $r(e,t){Me(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Tt(t,e))}))}function Fr(e,t){const n=new lr;return n.key=e,t&&Tt(n,t),n}function xr(e,t,n){t.keys&&Ie(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Or(e,t){Ie(t,(t=>{xr(e.springs,t,(t=>Fr(t,e)))}))}const kr=["children"],Cr=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,kr);const i=g(Br),o=n.pause||!!i.pause,l=n.immediate||!!i.immediate;n=function(e,t){const[n]=s((()=>({inputs:t,result:e()}))),r=a(),i=r.current;let o=i;o?Boolean(t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,o.inputs))||(o={inputs:t,result:e()}):o=n;return d((()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:l})),[o,l]);const{Provider:u}=Br;return r.createElement(u,{value:n},t)},Br=(Hr=Cr,Pr={},Object.assign(Hr,r.createContext(Pr)),Hr.Provider._context=Hr,Hr.Consumer._context=Hr,Hr);var Hr,Pr;Cr.Provider=Br.Provider,Cr.Consumer=Br.Consumer;const zr=()=>{const e=[],t=function(t){tn(`${Jt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Ie(e,((e,i)=>{if(De.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Ie(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ie(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ie(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Ie(e,((e,r)=>{if(De.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Ie(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ie(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return De.fun(e)?e(n,t):e};return t._getProps=n,t};function Ar(e,t){const n=De.fun(e),[[r],i]=function(e,t,n){const r=De.fun(t)&&t;r&&!n&&(n=[]);const i=m((()=>r||3==arguments.length?zr():void 0),[]),o=a(0),s=an(),l=m((()=>({ctrls:[],queue:[],flush(e,t){const n=Sr(e,t);return o.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?wr(e,t):new Promise((r=>{$r(e,n),l.queue.push((()=>{r(wr(e,t))})),s()}))}})),[]),u=a([...l.ctrls]),c=[],d=un(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=u.current[i]||(u.current[i]=new br(null,l.flush)),n=r?r(i,e):t[i];n&&(c[i]=hr(n))}}m((()=>{Ie(u.current.slice(e,d),(e=>{!function(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}(e,i),e.stop(!0)})),u.current.length=e,h(d,e)}),[e]),m((()=>{h(0,Math.min(d,e))}),n);const p=u.current.map(((e,t)=>Sr(e,c[t]))),f=g(Cr),y=un(f),v=f!==y&&function(e){for(const t in e)return!0;return!1}(f);rn((()=>{o.current++,l.ctrls=u.current;const{queue:e}=l;e.length&&(l.queue=[],Ie(e,(e=>e()))),Ie(u.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:f});const n=c[t];n&&(function(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),sn((()=>()=>{Ie(l.ctrls,(e=>e.stop(!0)))}));const b=p.map((e=>kn({},e)));return i?[b,i]:b}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}let Er;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Er||(Er={}));class Dr extends tr{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=St(...t);const n=this._get(),r=_n(n);hn(this,r.create(n))}advance(e){const t=this._get();je(t,this.get())||(dn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ir(this._active)&&Mr(this)}_get(){const e=De.arr(this.source)?this.source.map(Et):Te(Et(this.source));return this.calc(...e)}_start(){this.idle&&!Ir(this._active)&&(this.idle=!1,Ie(pn(this),(e=>{e.done=!1})),Ge.skipAnimation?(ye.batchedUpdates((()=>this.advance())),Mr(this)):Ke.start(this))}_attach(){let e=1;Ie(Te(this.source),(t=>{At(t)&&Tt(t,this),Kn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ie(Te(this.source),(e=>{At(e)&&Rt(e,this)})),this._active.clear(),Mr(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Te(this.source).reduce(((e,t)=>Math.max(e,(Kn(t)?t.priority:0)+1)),0))}}function jr(e){return!1!==e.idle}function Ir(e){return!e.size||Array.from(e).every(jr)}function Mr(e){e.idle||(e.idle=!0,Ie(pn(e),(e=>{e.done=!0})),jt(e,{type:"idle",parent:e}))}function Tr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Ge.assign({createStringInterpolator:Yt,to:(e,t)=>new Dr(e,t)});const Rr=["style","children","scrollTop","scrollLeft","viewBox"],Vr=/^--/;function Nr(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Vr.test(e)||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}const Wr={};let Lr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const qr=["Webkit","Ms","Moz","O"];Lr=Object.keys(Lr).reduce(((e,t)=>(qr.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Lr);const Ur=["x","y","z"],Qr=/^(matrix|translate|scale|rotate|skew)/,Gr=/^(translate)/,Xr=/^(rotate|skew)/,Zr=(e,t)=>De.num(e)&&0!==e?e+t:e,Yr=(e,t)=>De.arr(e)?e.every((e=>Yr(e,t))):De.num(e)?e===t:parseFloat(e)===t;class Jr extends vn{constructor(e){let{x:t,y:n,z:r}=e,i=Tr(e,Ur);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Zr(e,"px"))).join(",")})`,Yr(e,0)]))),Me(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Qr.test(t)){if(delete i[t],De.und(e))return;const n=Gr.test(t)?"px":Xr.test(t)?"deg":"";o.push(Te(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Zr(i,n)})`,Yr(i,0)]:e=>[`${t}(${e.map((e=>Zr(e,n))).join(",")})`,Yr(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Kr(o,a)),super(i)}}class Kr extends It{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ie(this.inputs,((n,r)=>{const i=Et(n[0]),[o,a]=this.transforms[r](De.arr(i)?i:n.map(Et));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Ie(this.inputs,(e=>Ie(e,(e=>At(e)&&Tt(e,this)))))}observerRemoved(e){0==e&&Ie(this.inputs,(e=>Ie(e,(e=>At(e)&&Rt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),jt(this,e)}}const ei=["scrollTop","scrollLeft"];Ge.assign({batchedUpdates:v,createStringInterpolator:Yt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const ti=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new vn(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=On(e)||"Anonymous";return(e=De.str(e)?o[e]||(o[e]=$n(e,i)):e[xn]||(e[xn]=$n(e,i))).displayName=`Animated(${t})`,e};return Me(e,((t,n)=>{De.arr(e)&&(n=On(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l}=r,u=Tr(r,Rr),c=Object.values(u),d=Object.keys(u).map((t=>n||e.hasAttribute(t)?t:Wr[t]||(Wr[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Nr(t,i[t]);Vr.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Jr(e),getComponentProps:e=>Tr(e,ei)}),ni=ti.animated,ri=i.createContext(!1);var ii,oi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ai={};Object.defineProperty(ai,"__esModule",{value:!0});var si=e;const li=e=>si.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:si.jsx("path",{d:"M17.7279 14.2091C17.5059 14.4311 17.2492 14.5421 16.9579 14.5421C16.6659 14.5421 16.4089 14.4311 16.1869 14.2091L10.1659 8.18812L4.12389 14.2301C3.91589 14.4381 3.66589 14.5421 3.37389 14.5421C3.08256 14.5421 2.82589 14.4311 2.60389 14.2091C2.39523 14.0005 2.29089 13.7468 2.29089 13.4481C2.29089 13.1495 2.39523 12.8961 2.60389 12.6881L9.54089 5.75012C9.63823 5.65346 9.73889 5.58412 9.84289 5.54212C9.94689 5.50079 10.0546 5.48012 10.1659 5.48012C10.2772 5.48012 10.3849 5.50079 10.4889 5.54212C10.5929 5.58412 10.6936 5.65346 10.7909 5.75012L17.7489 12.7091C17.9716 12.9311 18.0759 13.1845 18.0619 13.4691C18.0479 13.7538 17.9366 14.0005 17.7279 14.2091Z",fill:"currentColor"})});li.displayName="ChevronUpIcon",ii=ai.ChevronUpIcon=li;var ui=Array.isArray,ci="object"==typeof oi&&oi&&oi.Object===Object&&oi,di="object"==typeof self&&self&&self.Object===Object&&self,hi=ci||di||Function("return this")(),pi=hi.Symbol,fi=pi,gi=Object.prototype,mi=gi.hasOwnProperty,yi=gi.toString,vi=fi?fi.toStringTag:void 0;var bi=function(e){var t=mi.call(e,vi),n=e[vi];try{e[vi]=void 0;var r=!0}catch(e){}var i=yi.call(e);return r&&(t?e[vi]=n:delete e[vi]),i},wi=Object.prototype.toString;var _i=bi,Si=function(e){return wi.call(e)},$i=pi?pi.toStringTag:void 0;var Fi=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$i&&$i in Object(e)?_i(e):Si(e)};var xi=Fi,Oi=function(e){return null!=e&&"object"==typeof e};var ki=function(e){return"symbol"==typeof e||Oi(e)&&"[object Symbol]"==xi(e)},Ci=ui,Bi=ki,Hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/;var zi=function(e,t){if(Ci(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Bi(e))||(Pi.test(e)||!Hi.test(e)||null!=t&&e in Object(t))};var Ai=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ei=Fi,Di=Ai;var ji,Ii=function(e){if(!Di(e))return!1;var t=Ei(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Mi=hi["__core-js_shared__"],Ti=(ji=/[^.]+$/.exec(Mi&&Mi.keys&&Mi.keys.IE_PROTO||""))?"Symbol(src)_1."+ji:"";var Ri=function(e){return!!Ti&&Ti in e},Vi=Function.prototype.toString;var Ni=Ii,Wi=Ri,Li=Ai,qi=function(e){if(null!=e){try{return Vi.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ui=/^\[object .+?Constructor\]$/,Qi=Function.prototype,Gi=Object.prototype,Xi=Qi.toString,Zi=Gi.hasOwnProperty,Yi=RegExp("^"+Xi.call(Zi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ji=function(e){return!(!Li(e)||Wi(e))&&(Ni(e)?Yi:Ui).test(qi(e))},Ki=function(e,t){return null==e?void 0:e[t]};var eo=function(e,t){var n=Ki(e,t);return Ji(n)?n:void 0},to=eo(Object,"create"),no=to;var ro=function(){this.__data__=no?no(null):{},this.size=0};var io=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},oo=to,ao=Object.prototype.hasOwnProperty;var so=function(e){var t=this.__data__;if(oo){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ao.call(t,e)?t[e]:void 0},lo=to,uo=Object.prototype.hasOwnProperty;var co=to;var ho=ro,po=io,fo=so,go=function(e){var t=this.__data__;return lo?void 0!==t[e]:uo.call(t,e)},mo=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=co&&void 0===t?"__lodash_hash_undefined__":t,this};function yo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yo.prototype.clear=ho,yo.prototype.delete=po,yo.prototype.get=fo,yo.prototype.has=go,yo.prototype.set=mo;var vo=yo;var bo=function(){this.__data__=[],this.size=0};var wo=function(e,t){return e===t||e!=e&&t!=t};var _o=function(e,t){for(var n=e.length;n--;)if(wo(e[n][0],t))return n;return-1},So=_o,$o=Array.prototype.splice;var Fo=_o;var xo=_o;var Oo=_o;var ko=bo,Co=function(e){var t=this.__data__,n=So(t,e);return!(n<0)&&(n==t.length-1?t.pop():$o.call(t,n,1),--this.size,!0)},Bo=function(e){var t=this.__data__,n=Fo(t,e);return n<0?void 0:t[n][1]},Ho=function(e){return xo(this.__data__,e)>-1},Po=function(e,t){var n=this.__data__,r=Oo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function zo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zo.prototype.clear=ko,zo.prototype.delete=Co,zo.prototype.get=Bo,zo.prototype.has=Ho,zo.prototype.set=Po;var Ao=zo,Eo=eo(hi,"Map"),Do=vo,jo=Ao,Io=Eo;var Mo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var To=function(e,t){var n=e.__data__;return Mo(t)?n["string"==typeof t?"string":"hash"]:n.map},Ro=To;var Vo=To;var No=To;var Wo=To;var Lo=function(){this.size=0,this.__data__={hash:new Do,map:new(Io||jo),string:new Do}},qo=function(e){var t=Ro(this,e).delete(e);return this.size-=t?1:0,t},Uo=function(e){return Vo(this,e).get(e)},Qo=function(e){return No(this,e).has(e)},Go=function(e,t){var n=Wo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Xo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xo.prototype.clear=Lo,Xo.prototype.delete=qo,Xo.prototype.get=Uo,Xo.prototype.has=Qo,Xo.prototype.set=Go;var Zo=Xo;function Yo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Yo.Cache||Zo),n}Yo.Cache=Zo;var Jo=Yo;var Ko=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ea=/\\(\\)?/g,ta=function(e){var t=Jo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ko,(function(e,n,r,i){t.push(r?i.replace(ea,"$1"):n||e)})),t}));var na=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},ra=ui,ia=ki,oa=pi?pi.prototype:void 0,aa=oa?oa.toString:void 0;var sa=function e(t){if("string"==typeof t)return t;if(ra(t))return na(t,e)+"";if(ia(t))return aa?aa.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},la=sa;var ua=ui,ca=zi,da=ta,ha=function(e){return null==e?"":la(e)};var pa=ki;var fa=function(e,t){return ua(e)?e:ca(e,t)?[e]:da(ha(e))},ga=function(e){if("string"==typeof e||pa(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var ma=function(e,t){for(var n=0,r=(t=fa(t,e)).length;null!=e&&n<r;)e=e[ga(t[n++])];return n&&n==r?e:void 0};var ya=function(e,t,n){var r=null==e?void 0:ma(e,t);return void 0===r?n:r};const va=(e,t,n)=>t?ya(n,t)||ya(e,t):n||e,ba=(e,t)=>{const n=t||e.defaultValue;return ya(e.collections,n)};var wa;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}(wa||(wa={}));const _a={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#4B539F",2:"#6D74B1",3:"#959BC5"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#977ECC",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},Sa=e=>t=>{const n=t.theme,r=ba(_a,n[wa.colorScheme]);return n.options&&n.options.color?va(r,e,n.options.color):va(r,e)},$a={Brand:{1:Sa("Brand.1"),2:Sa("Brand.2"),3:Sa("Brand.3"),4:Sa("Brand.4"),5:Sa("Brand.5"),6:Sa("Brand.6")},Primary:Sa("Primary"),PrimaryDark:Sa("PrimaryDark"),Secondary:Sa("Secondary"),Accent:{Light:{1:Sa("Accent.Light.1"),2:Sa("Accent.Light.2"),3:Sa("Accent.Light.3"),4:Sa("Accent.Light.4"),5:Sa("Accent.Light.5"),6:Sa("Accent.Light.6")},Dark:{1:Sa("Accent.Dark.1"),2:Sa("Accent.Dark.2"),3:Sa("Accent.Dark.3")}},Neutral:{1:Sa("Neutral.1"),2:Sa("Neutral.2"),3:Sa("Neutral.3"),4:Sa("Neutral.4"),5:Sa("Neutral.5"),6:Sa("Neutral.6"),7:Sa("Neutral.7"),8:Sa("Neutral.8")},Validation:{Green:{Text:Sa("Validation.Green.Text"),Icon:Sa("Validation.Green.Icon"),Border:Sa("Validation.Green.Border"),Background:Sa("Validation.Green.Background")},Orange:{Text:Sa("Validation.Orange.Text"),Icon:Sa("Validation.Orange.Icon"),Border:Sa("Validation.Orange.Border"),Background:Sa("Validation.Orange.Background"),Badge:Sa("Validation.Orange.Badge")},Red:{Text:Sa("Validation.Red.Text"),Icon:Sa("Validation.Red.Icon"),Border:Sa("Validation.Red.Border"),Background:Sa("Validation.Red.Background")},Blue:{Text:Sa("Validation.Blue.Text"),Icon:Sa("Validation.Blue.Icon"),Border:Sa("Validation.Blue.Border"),Background:Sa("Validation.Blue.Background")}},Shadow:{Accent:Sa("Shadow.Accent"),Red:Sa("Shadow.Red"),Elevation:Sa("Shadow.Elevation")}},Fa=b.button`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -20,7 +20,7 @@ import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";imp
20
20
  background-color: ${$a.Neutral[7]};
21
21
  `}
22
22
  }
23
- `,xa=i.forwardRef((({children:e,focusHighlight:n=!0,focusOutline:r="none",...i},o)=>t(Fa,{ref:o,$outline:r,$highlight:n,...i,children:e}))),Oa={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},ka=e=>Object.keys(Oa).reduce(((t,n)=>{const r=Oa[n];return t[n]=`@media screen and (${e}: ${r}px)`,t}),{}),Ca=ka("max-width");ka("min-width");var Ba,Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});var Pa=e;const za=e=>Pa.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Pa.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});za.displayName="ExternalIcon",Ba=Ha.ExternalIcon=za;const Aa={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Ea={collections:{base:{D1:{fontFamily:Aa.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Aa.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Aa.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Aa.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Aa.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Aa.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Aa.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Aa.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Aa.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Aa.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Aa.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Aa.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Aa.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Aa.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Da=e=>t=>{const n=t.theme,r=ba(Ea,n[wa.textStyleScheme]);return n.options&&n.options.textStyle?va(r,e,n.options.textStyle):va(r,e)},ja={D1:{fontFamily:Da("D1.fontFamily"),fontSize:Da("D1.fontSize"),fontWeight:Da("D1.fontWeight"),lineHeight:Da("D1.lineHeight"),letterSpacing:Da("D1.letterSpacing")},D2:{fontFamily:Da("D2.fontFamily"),fontSize:Da("D2.fontSize"),fontWeight:Da("D2.fontWeight"),lineHeight:Da("D2.lineHeight"),letterSpacing:Da("D2.letterSpacing")},D3:{fontFamily:Da("D3.fontFamily"),fontSize:Da("D3.fontSize"),fontWeight:Da("D3.fontWeight"),lineHeight:Da("D3.lineHeight"),letterSpacing:Da("D3.letterSpacing")},D4:{fontFamily:Da("D4.fontFamily"),fontSize:Da("D4.fontSize"),fontWeight:Da("D4.fontWeight"),lineHeight:Da("D4.lineHeight"),letterSpacing:Da("D4.letterSpacing")},DBody:{fontFamily:Da("DBody.fontFamily"),fontSize:Da("DBody.fontSize"),fontWeight:Da("DBody.fontWeight"),lineHeight:Da("DBody.lineHeight"),letterSpacing:Da("DBody.letterSpacing")},H1:{fontFamily:Da("H1.fontFamily"),fontSize:Da("H1.fontSize"),fontWeight:Da("H1.fontWeight"),lineHeight:Da("H1.lineHeight"),letterSpacing:Da("H1.letterSpacing")},H2:{fontFamily:Da("H2.fontFamily"),fontSize:Da("H2.fontSize"),fontWeight:Da("H2.fontWeight"),lineHeight:Da("H2.lineHeight"),letterSpacing:Da("H2.letterSpacing")},H3:{fontFamily:Da("H3.fontFamily"),fontSize:Da("H3.fontSize"),fontWeight:Da("H3.fontWeight"),lineHeight:Da("H3.lineHeight"),letterSpacing:Da("H3.letterSpacing")},H4:{fontFamily:Da("H4.fontFamily"),fontSize:Da("H4.fontSize"),fontWeight:Da("H4.fontWeight"),lineHeight:Da("H4.lineHeight"),letterSpacing:Da("H4.letterSpacing")},H5:{fontFamily:Da("H5.fontFamily"),fontSize:Da("H5.fontSize"),fontWeight:Da("H5.fontWeight"),lineHeight:Da("H5.lineHeight"),letterSpacing:Da("H5.letterSpacing")},H6:{fontFamily:Da("H6.fontFamily"),fontSize:Da("H6.fontSize"),fontWeight:Da("H6.fontWeight"),lineHeight:Da("H6.lineHeight"),letterSpacing:Da("H6.letterSpacing")},Body:{fontFamily:Da("Body.fontFamily"),fontSize:Da("Body.fontSize"),fontWeight:Da("Body.fontWeight"),lineHeight:Da("Body.lineHeight"),letterSpacing:Da("Body.letterSpacing")},BodySmall:{fontFamily:Da("BodySmall.fontFamily"),fontSize:Da("BodySmall.fontSize"),fontWeight:Da("BodySmall.fontWeight"),lineHeight:Da("BodySmall.lineHeight"),letterSpacing:Da("BodySmall.letterSpacing")},XSmall:{fontFamily:Da("XSmall.fontFamily"),fontSize:Da("XSmall.fontSize"),fontWeight:Da("XSmall.fontWeight"),lineHeight:Da("XSmall.lineHeight"),letterSpacing:Da("XSmall.letterSpacing")}},Ia=e=>{switch(e){case 700:case"bold":return Aa.Bold;case 600:case"semibold":return Aa.Semibold;case 300:case"light":return Aa.Light;case 400:case"regular":return Aa.Regular;default:return""}},Ma=(e,t)=>n=>{const r=ja[e].fontFamily(n),i=ja[e].fontWeight(n);return Object.values(Aa).includes(r)?w`
23
+ `,xa=i.forwardRef((({children:e,focusHighlight:n=!0,focusOutline:r="none",type:i="button",...o},a)=>t(Fa,{ref:a,$outline:r,$highlight:n,type:i,...o,children:e}))),Oa={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},ka=e=>Object.keys(Oa).reduce(((t,n)=>{const r=Oa[n];return t[n]=`@media screen and (${e}: ${r}px)`,t}),{}),Ca=ka("max-width");ka("min-width");var Ba,Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});var Pa=e;const za=e=>Pa.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Pa.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});za.displayName="ExternalIcon",Ba=Ha.ExternalIcon=za;const Aa={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Ea={collections:{base:{D1:{fontFamily:Aa.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Aa.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Aa.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Aa.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Aa.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Aa.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Aa.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Aa.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Aa.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Aa.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Aa.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Aa.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Aa.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Aa.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Da=e=>t=>{const n=t.theme,r=ba(Ea,n[wa.textStyleScheme]);return n.options&&n.options.textStyle?va(r,e,n.options.textStyle):va(r,e)},ja={D1:{fontFamily:Da("D1.fontFamily"),fontSize:Da("D1.fontSize"),fontWeight:Da("D1.fontWeight"),lineHeight:Da("D1.lineHeight"),letterSpacing:Da("D1.letterSpacing")},D2:{fontFamily:Da("D2.fontFamily"),fontSize:Da("D2.fontSize"),fontWeight:Da("D2.fontWeight"),lineHeight:Da("D2.lineHeight"),letterSpacing:Da("D2.letterSpacing")},D3:{fontFamily:Da("D3.fontFamily"),fontSize:Da("D3.fontSize"),fontWeight:Da("D3.fontWeight"),lineHeight:Da("D3.lineHeight"),letterSpacing:Da("D3.letterSpacing")},D4:{fontFamily:Da("D4.fontFamily"),fontSize:Da("D4.fontSize"),fontWeight:Da("D4.fontWeight"),lineHeight:Da("D4.lineHeight"),letterSpacing:Da("D4.letterSpacing")},DBody:{fontFamily:Da("DBody.fontFamily"),fontSize:Da("DBody.fontSize"),fontWeight:Da("DBody.fontWeight"),lineHeight:Da("DBody.lineHeight"),letterSpacing:Da("DBody.letterSpacing")},H1:{fontFamily:Da("H1.fontFamily"),fontSize:Da("H1.fontSize"),fontWeight:Da("H1.fontWeight"),lineHeight:Da("H1.lineHeight"),letterSpacing:Da("H1.letterSpacing")},H2:{fontFamily:Da("H2.fontFamily"),fontSize:Da("H2.fontSize"),fontWeight:Da("H2.fontWeight"),lineHeight:Da("H2.lineHeight"),letterSpacing:Da("H2.letterSpacing")},H3:{fontFamily:Da("H3.fontFamily"),fontSize:Da("H3.fontSize"),fontWeight:Da("H3.fontWeight"),lineHeight:Da("H3.lineHeight"),letterSpacing:Da("H3.letterSpacing")},H4:{fontFamily:Da("H4.fontFamily"),fontSize:Da("H4.fontSize"),fontWeight:Da("H4.fontWeight"),lineHeight:Da("H4.lineHeight"),letterSpacing:Da("H4.letterSpacing")},H5:{fontFamily:Da("H5.fontFamily"),fontSize:Da("H5.fontSize"),fontWeight:Da("H5.fontWeight"),lineHeight:Da("H5.lineHeight"),letterSpacing:Da("H5.letterSpacing")},H6:{fontFamily:Da("H6.fontFamily"),fontSize:Da("H6.fontSize"),fontWeight:Da("H6.fontWeight"),lineHeight:Da("H6.lineHeight"),letterSpacing:Da("H6.letterSpacing")},Body:{fontFamily:Da("Body.fontFamily"),fontSize:Da("Body.fontSize"),fontWeight:Da("Body.fontWeight"),lineHeight:Da("Body.lineHeight"),letterSpacing:Da("Body.letterSpacing")},BodySmall:{fontFamily:Da("BodySmall.fontFamily"),fontSize:Da("BodySmall.fontSize"),fontWeight:Da("BodySmall.fontWeight"),lineHeight:Da("BodySmall.lineHeight"),letterSpacing:Da("BodySmall.letterSpacing")},XSmall:{fontFamily:Da("XSmall.fontFamily"),fontSize:Da("XSmall.fontSize"),fontWeight:Da("XSmall.fontWeight"),lineHeight:Da("XSmall.lineHeight"),letterSpacing:Da("XSmall.letterSpacing")}},Ia=e=>{switch(e){case 700:case"bold":return Aa.Bold;case 600:case"semibold":return Aa.Semibold;case 300:case"light":return Aa.Light;case 400:case"regular":return Aa.Regular;default:return""}},Ma=(e,t)=>n=>{const r=ja[e].fontFamily(n),i=ja[e].fontWeight(n);return Object.values(Aa).includes(r)?w`
24
24
  font-family: ${Ia(t)||Ia(i)||r};
25
25
  font-weight: normal !important;
26
26
  `:w`
@@ -216,7 +216,7 @@ import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";imp
216
216
  animation-delay: -0.3s;
217
217
  `,ss=b(is)`
218
218
  animation-delay: -0.15s;
219
- `;var ls;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(ls||(ls={}));const cs=b.button`
219
+ `;var ls;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(ls||(ls={}));const us=b.button`
220
220
  padding: 0.5rem 1rem;
221
221
  min-width: 4rem;
222
222
  border-radius: 4px;
@@ -313,7 +313,7 @@ import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";imp
313
313
  height: auto;
314
314
  }
315
315
  `}
316
- `,us=b((({color:e,className:r,size:i=18})=>n(ns,{className:r,$size:i,$color:e,children:[t(is,{id:"inner1",$size:i-2,$borderWidth:2}),t(os,{id:"inner2",$size:i-2,$borderWidth:2}),t(as,{id:"inner3",$size:i-2,$borderWidth:2}),t(ss,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
316
+ `,cs=b((({color:e,className:r,size:i=18})=>n(ns,{className:r,$size:i,$color:e,children:[t(is,{id:"inner1",$size:i-2,$borderWidth:2}),t(os,{id:"inner2",$size:i-2,$borderWidth:2}),t(as,{id:"inner3",$size:i-2,$borderWidth:2}),t(ss,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
317
317
  margin-right: 0.5rem;
318
318
  ${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=$a.Primary(e);break;case"disabled":t=$a.Neutral[3](e);break;default:t=$a.Neutral[8](e)}return w`
319
319
  #inner1,
@@ -323,7 +323,7 @@ import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";imp
323
323
  border-color: ${t} transparent transparent transparent;
324
324
  }
325
325
  `}}
326
- `,ds={Default:i.forwardRef(((e,r)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:s="default",...l}=e,c={$buttonStyle:o?"disabled":s,$buttonSizeStyle:"default"};return n(cs,{ref:r,"data-testid":l["data-testid"]||"button",disabled:o,...c,...l,children:[a&&t(us,{...c}),t("span",{children:i})]})})),Small:i.forwardRef(((e,r)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:s="default",...l}=e,c={$buttonStyle:o?"disabled":s,$buttonSizeStyle:"small"};return n(cs,{ref:r,"data-testid":l["data-testid"]||"button",disabled:o,...c,...l,children:[a&&t(us,{...c,size:16}),t("span",{children:i})]})}))},hs=b.div`
326
+ `,ds={Default:i.forwardRef(((e,r)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:s="default",...l}=e,u={$buttonStyle:o?"disabled":s,$buttonSizeStyle:"default"};return n(us,{ref:r,"data-testid":l["data-testid"]||"button",disabled:o,...u,...l,children:[a&&t(cs,{...u}),t("span",{children:i})]})})),Small:i.forwardRef(((e,r)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:s="default",...l}=e,u={$buttonStyle:o?"disabled":s,$buttonSizeStyle:"small"};return n(us,{ref:r,"data-testid":l["data-testid"]||"button",disabled:o,...u,...l,children:[a&&t(cs,{...u,size:16}),t("span",{children:i})]})}))},hs=b.div`
327
327
  width: 100%;
328
328
  border-bottom: 1px solid ${$a.Neutral[6]};
329
329
  `,ps=b.div`
@@ -353,5 +353,5 @@ import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";imp
353
353
  padding: 1.75rem 1rem; // larger clickable area
354
354
  margin: -1rem -1rem -1rem 0px;
355
355
  white-space: nowrap;
356
- `,ms=Object.assign((({children:e,title:r,enableExpandAll:i=!0,showTitleInMobile:o=!1,className:a})=>{const[l,c]=s(!0),u=e=>{e.preventDefault(),c((e=>!e))};return t(ri.Provider,{value:l,children:n(hs,{className:a,children:[n(ps,{$hasTitle:!!r||o,children:[r&&t(fs,{$showInMobile:o,"data-testid":"accordion-title",children:r}),i&&t(gs,{"data-testid":"accordion-expand-collapse-button",onClick:u,styleType:"link",children:l?"Hide all":"Show all"})]}),e]})})}),{Item:({title:e,children:r,expanded:i=!0,type:o="default",...l})=>{const c=g(ri),[u,h]=s(c||i),p=l["data-testid"]||"accordion-item",f=function(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,r=e.refreshMode,i=e.refreshRate,o=void 0===i?1e3:i,l=e.refreshOptions,c=e.handleWidth,u=void 0===c||c,d=e.handleHeight,h=void 0===d||d,p=e.targetRef,f=e.observerOptions,g=e.onResize,m=a(n),y=a(null),v=null!=p?p:y,b=a(),w=s({width:void 0,height:void 0}),_=w[0],S=w[1];return ge((function(){if(!he()){var e=fe(g,S,u,h);b.current=ue((function(t){(u||h)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,i=n.height;!m.current&&!he()&&e({width:r,height:i}),m.current=!1}))}),r,o,l);var t=new window.ResizeObserver(b.current);return v.current&&t.observe(v.current,f),function(){t.disconnect();var e=b.current;e&&e.cancel&&e.cancel()}}}),[r,o,l,u,h,g,f,v.current]),$({ref:v},_)}(),m=f.ref;d((()=>{h(c)}),[c]),d((()=>{h(i)}),[i]);const y=Ar({height:u?f.height:0});return n(Qa,{"data-testid":p,className:l.className,$isCollapsed:u,children:[n(Ga,{children:[t("small"===o?Ya:Za,{"data-testid":`${p}-title`,$isCollapsed:u,children:e}),t(Ja,{"data-testid":`${p}-expand-collapse-button`,onClick:e=>{e.preventDefault(),h((e=>!e))},$isCollapsed:u,focusHighlight:!1,focusOutline:"browser","aria-label":u?"Collapse":"Expand",children:t(Ka,{})})]}),t(es,{style:y,$isCollapsed:u,"data-testid":`${p}-expandable-container`,children:t(ts,{ref:m,id:"content-container",children:r})})]})}});export{ms as Accordion};
356
+ `,ms=Object.assign((({children:e,title:r,enableExpandAll:i=!0,showTitleInMobile:o=!1,className:a})=>{const[l,u]=s(!0),c=e=>{e.preventDefault(),u((e=>!e))};return t(ri.Provider,{value:l,children:n(hs,{className:a,children:[n(ps,{$hasTitle:!!r||o,children:[r&&t(fs,{$showInMobile:o,"data-testid":"accordion-title",children:r}),i&&t(gs,{"data-testid":"accordion-expand-collapse-button",onClick:c,type:"button",styleType:"link",children:l?"Hide all":"Show all"})]}),e]})})}),{Item:({title:e,children:r,expanded:i=!0,type:o="default",...l})=>{const u=g(ri),[c,h]=s(u||i),p=l["data-testid"]||"accordion-item",f=function(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,r=e.refreshMode,i=e.refreshRate,o=void 0===i?1e3:i,l=e.refreshOptions,u=e.handleWidth,c=void 0===u||u,d=e.handleHeight,h=void 0===d||d,p=e.targetRef,f=e.observerOptions,g=e.onResize,m=a(n),y=a(null),v=null!=p?p:y,b=a(),w=s({width:void 0,height:void 0}),_=w[0],S=w[1];return ge((function(){if(!he()){var e=fe(g,S,c,h);b.current=ce((function(t){(c||h)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,i=n.height;!m.current&&!he()&&e({width:r,height:i}),m.current=!1}))}),r,o,l);var t=new window.ResizeObserver(b.current);return v.current&&t.observe(v.current,f),function(){t.disconnect();var e=b.current;e&&e.cancel&&e.cancel()}}}),[r,o,l,c,h,g,f,v.current]),$({ref:v},_)}(),m=f.ref;d((()=>{h(u)}),[u]),d((()=>{h(i)}),[i]);const y=Ar({height:c?f.height:0});return n(Qa,{"data-testid":p,className:l.className,$isCollapsed:c,children:[n(Ga,{children:[t("small"===o?Ya:Za,{"data-testid":`${p}-title`,$isCollapsed:c,children:e}),t(Ja,{"data-testid":`${p}-expand-collapse-button`,onClick:e=>{e.preventDefault(),h((e=>!e))},$isCollapsed:c,focusHighlight:!1,focusOutline:"browser","aria-label":c?"Collapse":"Expand",children:t(Ka,{})})]}),t(es,{style:y,$isCollapsed:c,"data-testid":`${p}-expandable-container`,children:t(ts,{ref:m,id:"content-container",children:r})})]})}});export{ms as Accordion};
357
357
  //# sourceMappingURL=index.js.map