@lifesg/react-design-system 2.1.0-canary.1 → 2.1.0-canary.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.
package/cjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),React=require("react"),ReactDOM=require("react-dom"),chevronUp=require("@lifesg/react-icons/chevron-up"),styled=require("styled-components"),external=require("@lifesg/react-icons/external"),arrowRight=require("@lifesg/react-icons/arrow-right"),chevronDown=require("@lifesg/react-icons/chevron-down"),exclamationCircleFill=require("@lifesg/react-icons/exclamation-circle-fill"),chevronRight=require("@lifesg/react-icons/chevron-right"),chevronLeft=require("@lifesg/react-icons/chevron-left"),tick=require("@lifesg/react-icons/tick"),reactIcons=require("@lifesg/react-icons"),cross=require("@lifesg/react-icons/cross"),star=require("@lifesg/react-icons/star"),starFill=require("@lifesg/react-icons/star-fill"),cloudArrowUpFill=require("@lifesg/react-icons/cloud-arrow-up-fill"),iCircleFill=require("@lifesg/react-icons/i-circle-fill"),magnifier=require("@lifesg/react-icons/magnifier"),triangleForwardFill=require("@lifesg/react-icons/triangle-forward-fill"),circle=require("@lifesg/react-icons/circle"),circleDot=require("@lifesg/react-icons/circle-dot"),square=require("@lifesg/react-icons/square"),squareTickFill=require("@lifesg/react-icons/square-tick-fill"),bin=require("@lifesg/react-icons/bin"),pencil=require("@lifesg/react-icons/pencil"),dragHandle=require("@lifesg/react-icons/drag-handle"),filter=require("@lifesg/react-icons/filter"),minus=require("@lifesg/react-icons/minus"),plus=require("@lifesg/react-icons/plus"),menu=require("@lifesg/react-icons/menu"),chevron2Left=require("@lifesg/react-icons/chevron-2-left"),chevron2Right=require("@lifesg/react-icons/chevron-2-right"),chevronLineLeft=require("@lifesg/react-icons/chevron-line-left"),chevronLineRight=require("@lifesg/react-icons/chevron-line-right"),ellipsisHorizontal=require("@lifesg/react-icons/ellipsis-horizontal"),starHalf=require("@lifesg/react-icons/star-half");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var React__namespace=_interopNamespace(React),React__default=_interopDefaultLegacy(React),ReactDOM__default=_interopDefaultLegacy(ReactDOM),styled__default=_interopDefaultLegacy(styled);function __rest$1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function __awaiter(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))}function __generator(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function __read(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}function __spreadArray(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};function __rest(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function isObject$3$1(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1$1=isObject$3$1,freeGlobal$1$1="object"==typeof commonjsGlobal$1&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal$1=freeGlobal$1$1,freeGlobal$2=_freeGlobal$1,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$2$1=freeGlobal$2||freeSelf$1||Function("return this")(),_root$1=root$2$1,root$1$1=_root$1,now$1$1=function(){return root$1$1.Date.now()},now_1$1=now$1$1,reWhitespace$1=/\s/;function trimmedEndIndex$1$1(e){for(var t=e.length;t--&&reWhitespace$1.test(e.charAt(t)););return t}var _trimmedEndIndex$1=trimmedEndIndex$1$1,trimmedEndIndex$2=_trimmedEndIndex$1,reTrimStart$1=/^\s+/;function baseTrim$1$1(e){return e?e.slice(0,trimmedEndIndex$2(e)+1).replace(reTrimStart$1,""):e}var _baseTrim$1=baseTrim$1$1,root$a=_root$1,Symbol$2$1=root$a.Symbol,_Symbol$1=Symbol$2$1,Symbol$1$1=_Symbol$1,objectProto$1$1=Object.prototype,hasOwnProperty$c=objectProto$1$1.hasOwnProperty,nativeObjectToString$1$1=objectProto$1$1.toString,symToStringTag$1$1=Symbol$1$1?Symbol$1$1.toStringTag:void 0;function getRawTag$1$1(e){var t=hasOwnProperty$c.call(e,symToStringTag$1$1),r=e[symToStringTag$1$1];try{e[symToStringTag$1$1]=void 0;var n=!0}catch(e){}var i=nativeObjectToString$1$1.call(e);return n&&(t?e[symToStringTag$1$1]=r:delete e[symToStringTag$1$1]),i}var _getRawTag$1=getRawTag$1$1,objectProto$d=Object.prototype,nativeObjectToString$2=objectProto$d.toString;function objectToString$1$1(e){return nativeObjectToString$2.call(e)}var _objectToString$1=objectToString$1$1,Symbol$6=_Symbol$1,getRawTag$2=_getRawTag$1,objectToString$2=_objectToString$1,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$6?Symbol$6.toStringTag:void 0;function baseGetTag$1$1(e){return null==e?void 0===e?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(e)?getRawTag$2(e):objectToString$2(e)}var _baseGetTag$1=baseGetTag$1$1;function isObjectLike$1$1(e){return null!=e&&"object"==typeof e}var isObjectLike_1$1=isObjectLike$1$1,baseGetTag$6=_baseGetTag$1,isObjectLike$6=isObjectLike_1$1,symbolTag$2="[object Symbol]";function isSymbol$1$1(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$6(e)==symbolTag$2}var isSymbol_1$1=isSymbol$1$1,baseTrim$2=_baseTrim$1,isObject$2$1=isObject_1$1,isSymbol$5=isSymbol_1$1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$1$1(e){if("number"==typeof e)return e;if(isSymbol$5(e))return NAN$1;if(isObject$2$1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2$1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim$2(e);var r=reIsBinary$1.test(e);return r||reIsOctal$1.test(e)?freeParseInt$1(e.slice(2),r?2:8):reIsBadHex$1.test(e)?NAN$1:+e}var toNumber_1$1=toNumber$1$1,isObject$1$1=isObject_1$1,now$2=now_1$1,toNumber$3=toNumber_1$1,FUNC_ERROR_TEXT$1$1="Expected a function",nativeMax$2=Math.max,nativeMin$1=Math.min;function debounce$1(e,t,r){var n,i,a,s,o,l,c=0,d=!1,p=!1,u=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1$1);function h(t){var r=n,a=i;return n=i=void 0,c=t,s=e.apply(a,r)}function m(e){var r=e-l;return void 0===l||r>=t||r<0||p&&e-c>=a}function f(){var e=now$2();if(m(e))return y(e);o=setTimeout(f,function(e){var r=t-(e-l);return p?nativeMin$1(r,a-(e-c)):r}(e))}function y(e){return o=void 0,u&&n?h(e):(n=i=void 0,s)}function g(){var e=now$2(),r=m(e);if(n=arguments,i=this,l=e,r){if(void 0===o)return function(e){return c=e,o=setTimeout(f,t),d?h(e):s}(l);if(p)return clearTimeout(o),o=setTimeout(f,t),h(l)}return void 0===o&&(o=setTimeout(f,t)),s}return t=toNumber$3(t)||0,isObject$1$1(r)&&(d=!!r.leading,a=(p="maxWait"in r)?nativeMax$2(toNumber$3(r.maxWait)||0,t):a,u="trailing"in r?!!r.trailing:u),g.cancel=function(){void 0!==o&&clearTimeout(o),c=0,n=l=i=o=void 0},g.flush=function(){return void 0===o?s:y(now$2())},g}var debounce_1$1=debounce$1,debounce$2=debounce_1$1,isObject$7=isObject_1$1,FUNC_ERROR_TEXT$2="Expected a function";function throttle(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$2);return isObject$7(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),debounce$2(e,t,{leading:n,maxWait:t,trailing:i})}var throttle_1=throttle,patchResizeHandler=function(e,t,r,n){switch(t){case"debounce":return debounce_1$1(e,r,n);case"throttle":return throttle_1(e,r,n);default:return e}},isFunction$3=function(e){return"function"==typeof e},isSSR$1=function(){return"undefined"==typeof window},isDOMElement=function(e){return e instanceof Element||e instanceof HTMLDocument},createNotifier=function(e,t,r,n){return function(i){var a=i.width,s=i.height;t((function(t){return t.width===a&&t.height===s||t.width===a&&!n||t.height===s&&!r?t:(e&&isFunction$3(e)&&e(a,s),{width:a,height:s})}))}};!function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!isSSR$1()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(isSSR$1())return null;if(t)return document.querySelector(t);if(n&&isDOMElement(n))return n;if(r.targetRef&&isDOMElement(r.targetRef.current))return r.targetRef.current;var i=ReactDOM.findDOMNode(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,i=void 0===n||n,a=t.handleHeight,s=void 0===a||a,o=t.onResize;if(i||s){var l=createNotifier(o,r.setState.bind(r),i,s);e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,i=t.height;!r.skipOnMount&&!isSSR$1()&&l({width:n,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,n=e.children;return isFunction$3(t)?"renderProp":isFunction$3(n)?"childFunction":React.isValidElement(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=t.skipOnMount,i=t.refreshMode,a=t.refreshRate,s=void 0===a?1e3:a,o=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=React.createRef(),r.observableElement=null,isSSR$1()||(r.resizeHandler=patchResizeHandler(r.createResizeHandler,i,s,o),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}__extends(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){isSSR$1()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,n=t.children,i=t.nodeType,a=void 0===i?"div":i,s=this.state,o={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(o);case"childFunction":return(e=n)(o);case"child":if((e=n).type&&"string"==typeof e.type){var l=__rest(o,["targetRef"]);return React.cloneElement(e,l)}return React.cloneElement(e,o);case"childArray":return(e=n).map((function(e){return!!e&&React.cloneElement(e,o)}));default:return React__namespace.createElement(a,null)}}}(React.PureComponent);var useEnhancedEffect=isSSR$1()?React.useEffect:React.useLayoutEffect;function useResizeDetector(e){void 0===e&&(e={});var t=e.skipOnMount,r=void 0!==t&&t,n=e.refreshMode,i=e.refreshRate,a=void 0===i?1e3:i,s=e.refreshOptions,o=e.handleWidth,l=void 0===o||o,c=e.handleHeight,d=void 0===c||c,p=e.targetRef,u=e.observerOptions,h=e.onResize,m=React.useRef(r),f=React.useRef(null),y=null!=p?p:f,g=React.useRef(),x=React.useState({width:void 0,height:void 0}),_=x[0],b=x[1];return useEnhancedEffect((function(){if(!isSSR$1()){var e=createNotifier(h,b,l,d);g.current=patchResizeHandler((function(t){(l||d)&&t.forEach((function(t){var r=t&&t.contentRect||{},n=r.width,i=r.height;!m.current&&!isSSR$1()&&e({width:n,height:i}),m.current=!1}))}),n,a,s);var t=new window.ResizeObserver(g.current);return y.current&&t.observe(y.current,u),function(){t.disconnect();var e=g.current;e&&e.cancel&&e.cancel()}}}),[n,a,s,l,d,h,u,y.current]),__assign({ref:y},_)}let updateQueue=makeQueue();const raf=e=>schedule(e,updateQueue);let writeQueue=makeQueue();raf.write=e=>schedule(e,writeQueue);let onStartQueue=makeQueue();raf.onStart=e=>schedule(e,onStartQueue);let onFrameQueue=makeQueue();raf.onFrame=e=>schedule(e,onFrameQueue);let onFinishQueue=makeQueue();raf.onFinish=e=>schedule(e,onFinishQueue);let timeouts=[];raf.setTimeout=(e,t)=>{let r=raf.now()+t,n=()=>{let e=timeouts.findIndex((e=>e.cancel==n));~e&&timeouts.splice(e,1),pendingCount-=~e?1:0},i={time:r,handler:e,cancel:n};return timeouts.splice(findTimeout(r),0,i),pendingCount+=1,start(),i};let findTimeout=e=>~(~timeouts.findIndex((t=>t.time>e))||~timeouts.length);raf.cancel=e=>{onStartQueue.delete(e),onFrameQueue.delete(e),onFinishQueue.delete(e),updateQueue.delete(e),writeQueue.delete(e)},raf.sync=e=>{sync=!0,raf.batchedUpdates(e),sync=!1},raf.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,raf.onStart(r)}return n.handler=e,n.cancel=()=>{onStartQueue.delete(r),t=null},n};let nativeRaf="undefined"!=typeof window?window.requestAnimationFrame:()=>{};raf.use=e=>nativeRaf=e,raf.now="undefined"!=typeof performance?()=>performance.now():Date.now,raf.batchedUpdates=e=>e(),raf.catch=console.error,raf.frameLoop="always",raf.advance=()=>{"demand"!==raf.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};let ts=-1,pendingCount=0,sync=!1;function schedule(e,t){sync?(t.delete(e),e(0)):(t.add(e),start())}function start(){ts<0&&(ts=0,"demand"!==raf.frameLoop&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){let e=ts;ts=raf.now();let t=findTimeout(ts);t&&(eachSafely(timeouts.splice(0,t),(e=>e.handler())),pendingCount-=t),pendingCount?(onStartQueue.flush(),updateQueue.flush(e?Math.min(64,ts-e):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()):stop()}function makeQueue(){let e=new Set,t=e;return{add(r){pendingCount+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(pendingCount-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,pendingCount-=t.size,eachSafely(t,(t=>t(r)&&e.add(t))),pendingCount+=e.size,t=e)}}}function eachSafely(e,t){e.forEach((e=>{try{t(e)}catch(e){raf.catch(e)}}))}function noop$2(){}const defineHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),is$1={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 isEqual$1(e,t){if(is$1.arr(e)){if(!is$1.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const each$1=(e,t)=>e.forEach(t);function eachProp(e,t,r){if(is$1.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}const toArray=e=>is$1.und(e)?[]:is$1.arr(e)?e:[e];function flush(e,t){if(e.size){const r=Array.from(e);e.clear(),each$1(r,t)}}const flushCalls=(e,...t)=>flush(e,(e=>e(...t))),isSSR=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let createStringInterpolator$1,to,colors$1=null,skipAnimation=!1,willAdvance=noop$2;const assign$1=e=>{e.to&&(to=e.to),e.now&&(raf.now=e.now),void 0!==e.colors&&(colors$1=e.colors),null!=e.skipAnimation&&(skipAnimation=e.skipAnimation),e.createStringInterpolator&&(createStringInterpolator$1=e.createStringInterpolator),e.requestAnimationFrame&&raf.use(e.requestAnimationFrame),e.batchedUpdates&&(raf.batchedUpdates=e.batchedUpdates),e.willAdvance&&(willAdvance=e.willAdvance),e.frameLoop&&(raf.frameLoop=e.frameLoop)};var globals=Object.freeze({__proto__:null,get createStringInterpolator(){return createStringInterpolator$1},get to(){return to},get colors(){return colors$1},get skipAnimation(){return skipAnimation},get willAdvance(){return willAdvance},assign:assign$1});const startQueue=new Set;let currentFrame=[],prevFrame=[],priority=0;const frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(e){priority>e.priority?(startQueue.add(e),raf.onStart(flushStartQueue)):(startSafely(e),raf(advance))},advance:advance,sort(e){if(priority)raf.onFrame((()=>frameLoop.sort(e)));else{const t=currentFrame.indexOf(e);~t&&(currentFrame.splice(t,1),startUnsafely(e))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(e){currentFrame.includes(e)||startUnsafely(e)}function startUnsafely(e){currentFrame.splice(findIndex$2(currentFrame,(t=>t.priority>e.priority)),0,e)}function advance(e){const t=prevFrame;for(let r=0;r<currentFrame.length;r++){const n=currentFrame[r];priority=n.priority,n.idle||(willAdvance(n),n.advance(e),n.idle||t.push(n))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=t,currentFrame.length>0}function findIndex$2(e,t){const r=e.findIndex(t);return r<0?e.length:r}const clamp=(e,t,r)=>Math.min(Math.max(r,e),t),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},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:colors$1&&void 0!==colors$1[e]?colors$1[e]:(t=rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hex8.exec(e))?parseInt(t[1],16)>>>0:(t=hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,a=hue2rgb(i,n,e+1/3),s=hue2rgb(i,n,e),o=hue2rgb(i,n,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*o)<<8}function parse255(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function colorToRgba(e){let t=normalizeColor(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const createInterpolator=(e,t,r)=>{if(is$1.fun(e))return e;if(is$1.arr(e))return createInterpolator({range:e,output:t,extrapolate:r});if(is$1.str(e.output[0]))return createStringInterpolator$1(e);const n=e,i=n.output,a=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",o=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(e=>e);return e=>{const t=findRange(e,a);return interpolate(e,a[t],a[t+1],i[t],i[t+1],l,s,o,n.map)}};function interpolate(e,t,r,n,i,a,s,o,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>r){if("identity"===o)return c;"clamp"===o&&(c=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t),c=a(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n,c)}function findRange(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}const steps=(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e,i="end"===t?Math.floor(n):Math.ceil(n);return clamp(0,1,i/e)},c1=1.70158,c2=1.525*c1,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},easings={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=>c3*e*e*e-c1*e*e,easeOutBack:e=>1+c3*Math.pow(e-1,3)+c1*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(c2+1)*e-c2)/2:(Math.pow(2*e-2,2)*((c2+1)*(2*e-2)+c2)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*c4),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*c4)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*c5)/2+1,easeInBounce:e=>1-bounceOut(1-e),easeOutBounce:bounceOut,easeInOutBounce:e=>e<.5?(1-bounceOut(1-2*e))/2:(1+bounceOut(2*e-1))/2,steps:steps};function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends$2.apply(this,arguments)}const $get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=e=>Boolean(e&&e[$get]),getFluidValue=e=>e&&e[$get]?e[$get]():e,getFluidObservers=e=>e[$observers]||null;function callFluidObserver(e,t){e.eventObserved?e.eventObserved(t):e(t)}function callFluidObservers(e,t){let r=e[$observers];r&&r.forEach((e=>{callFluidObserver(e,t)}))}class FluidValue{constructor(e){if(this[$get]=void 0,this[$observers]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");setFluidGetter(this,e)}}const setFluidGetter=(e,t)=>setHidden(e,$get,t);function addFluidObserver(e,t){if(e[$get]){let r=e[$observers];r||setHidden(e,$observers,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function removeFluidObserver(e,t){let r=e[$observers];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[$observers]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const setHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=e=>{const[t,r]=parseCSSVariable(e);if(!t||isSSR())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&cssVariableRegex.test(r)?variableToRgba(r):r||e},parseCSSVariable=e=>{const t=cssVariableRegex.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let namedColorRegex;const rgbaRound=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,createStringInterpolator=e=>{namedColorRegex||(namedColorRegex=colors$1?new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>getFluidValue(e).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba))),r=t.map((e=>e.match(numberRegex).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>createInterpolator(_extends$2({},e,{output:t}))));return e=>{var r;const i=!unitRegex.test(t[0])&&(null==(r=t.find((e=>unitRegex.test(e))))?void 0:r.replace(numberRegex,""));let a=0;return t[0].replace(numberRegex,(()=>`${n[a++](e)}${i||""}`)).replace(rgbaRegex,rgbaRound)}},prefix$1="react-spring: ",once=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${prefix$1}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix$1}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix$1}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`)}function isAnimatedString(e){return is$1.str(e)&&("#"==e[0]||/\d/.test(e)||!isSSR()&&cssVariableRegex.test(e)||e in(colors$1||{}))}const useIsomorphicLayoutEffect$1=isSSR()?React.useEffect:React.useLayoutEffect,useIsMounted=()=>{const e=React.useRef(!1);return useIsomorphicLayoutEffect$1((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function useForceUpdate(){const e=React.useState()[1],t=useIsMounted();return()=>{t.current&&e(Math.random())}}function useMemoOne(e,t){const[r]=React.useState((()=>({inputs:t,result:e()}))),n=React.useRef(),i=n.current;let a=i;if(a){Boolean(t&&a.inputs&&areInputsEqual(t,a.inputs))||(a={inputs:t,result:e()})}else a=r;return React.useEffect((()=>{n.current=a,i==r&&(r.inputs=r.result=void 0)}),[a]),a.result}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const useOnce=e=>React.useEffect(e,emptyDeps),emptyDeps=[];function usePrev(e){const t=React.useRef();return React.useEffect((()=>{t.current=e})),t.current}const $node=Symbol.for("Animated:node"),isAnimated=e=>!!e&&e[$node]===e,getAnimated=e=>e&&e[$node],setAnimated=(e,t)=>defineHidden(e,$node,t),getPayload=e=>e&&e[$node]&&e[$node].getPayload();class Animated{constructor(){this.payload=void 0,setAnimated(this,this)}getPayload(){return this.payload||[]}}class AnimatedValue extends Animated{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,is$1.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new AnimatedValue(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return is$1.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,is$1.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class AnimatedString extends AnimatedValue{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=createInterpolator({output:[e,e]})}static create(e){return new AnimatedString(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(is$1.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=createInterpolator({output:[this.getValue(),e]})),this._value=0,super.reset()}}const TreeContext={dependencies:null};class AnimatedObject extends Animated{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return eachProp(this.source,((r,n)=>{isAnimated(r)?t[n]=r.getValue(e):hasFluidValue(r)?t[n]=getFluidValue(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&each$1(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return eachProp(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){TreeContext.dependencies&&hasFluidValue(e)&&TreeContext.dependencies.add(e);const t=getPayload(e);t&&each$1(t,(e=>this.add(e)))}}class AnimatedArray extends AnimatedObject{constructor(e){super(e)}static create(e){return new AnimatedArray(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(makeAnimated)),!0)}}function makeAnimated(e){return(isAnimatedString(e)?AnimatedString:AnimatedValue).create(e)}function getAnimatedType(e){const t=getAnimated(e);return t?t.constructor:is$1.arr(e)?AnimatedArray:isAnimatedString(e)?AnimatedString:AnimatedValue}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends$1.apply(this,arguments)}const withAnimated=(e,t)=>{const r=!is$1.fun(e)||e.prototype&&e.prototype.isReactComponent;return React.forwardRef(((n,i)=>{const a=React.useRef(null),s=r&&React.useCallback((e=>{a.current=updateRef(i,e)}),[i]),[o,l]=getAnimatedState(n,t),c=useForceUpdate(),d=()=>{const e=a.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,o.getValue(!0)))&&c()},p=new PropsObserver(d,l),u=React.useRef();useIsomorphicLayoutEffect$1((()=>(u.current=p,each$1(l,(e=>addFluidObserver(e,p))),()=>{u.current&&(each$1(u.current.deps,(e=>removeFluidObserver(e,u.current))),raf.cancel(u.current.update))}))),React.useEffect(d,[]),useOnce((()=>()=>{const e=u.current;each$1(e.deps,(t=>removeFluidObserver(t,e)))}));const h=t.getComponentProps(o.getValue());return React__namespace.createElement(e,_extends$1({},h,{ref:s}))}))};class PropsObserver{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&raf.write(this.update)}}function getAnimatedState(e,t){const r=new Set;return TreeContext.dependencies=r,e.style&&(e=_extends$1({},e,{style:t.createAnimatedStyle(e.style)})),e=new AnimatedObject(e),TreeContext.dependencies=null,[e,r]}function updateRef(e,t){return e&&(is$1.fun(e)?e(t):e.current=t),t}const cacheKey=Symbol.for("AnimatedComponent"),createHost=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new AnimatedObject(e)),getComponentProps:n=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},a=e=>{const t=getDisplayName(e)||"Anonymous";return(e=is$1.str(e)?a[e]||(a[e]=withAnimated(e,i)):e[cacheKey]||(e[cacheKey]=withAnimated(e,i))).displayName=`Animated(${t})`,e};return eachProp(e,((t,r)=>{is$1.arr(e)&&(r=getDisplayName(t)),a[r]=a(t)})),{animated:a}},getDisplayName=e=>is$1.str(e)?e:e&&is$1.str(e.displayName)?e.displayName:is$1.fun(e)&&e.name||null;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(this,arguments)}function callProp(e,...t){return is$1.fun(e)?e(...t):e}const matchProp=(e,t)=>!0===e||!!(t&&e&&(is$1.fun(e)?e(t):toArray(e).includes(t))),resolveProp=(e,t)=>is$1.obj(e)?t&&e[t]:e,getDefaultProp=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,noopTransform=e=>e,getDefaultProps=(e,t=noopTransform)=>{let r=DEFAULT_PROPS;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const r=t(e[i],i);is$1.und(r)||(n[i]=r)}return n},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={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 getForwardProps(e){const t={};let r=0;if(eachProp(e,((e,n)=>{RESERVED_PROPS[n]||(t[n]=e,r++)})),r)return t}function inferTo(e){const t=getForwardProps(e);if(t){const r={to:t};return eachProp(e,((e,n)=>n in t||(r[n]=e))),r}return _extends({},e)}function computeGoal(e){return e=getFluidValue(e),is$1.arr(e)?e.map(computeGoal):isAnimatedString(e)?globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function hasProps(e){for(const t in e)return!0;return!1}function isAsyncTo(e){return is$1.fun(e)||is$1.arr(e)&&is$1.obj(e[0])}function detachRefs(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function replaceRef(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},defaults=_extends({},config.default,{mass:1,damping:1,easing:easings.linear,clamp:!1});class AnimationConfig{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,defaults)}}function mergeConfig(e,t,r){r&&(sanitizeConfig(r=_extends({},r),t),t=_extends({},r,t)),sanitizeConfig(e,t),Object.assign(e,t);for(const t in defaults)null==e[t]&&(e[t]=defaults[t]);let{mass:n,frequency:i,damping:a}=e;return is$1.und(i)||(i<.01&&(i=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/i,2)*n,e.friction=4*Math.PI*a*n/i),e}function sanitizeConfig(e,t){if(is$1.und(t.decay)){const r=!is$1.und(t.tension)||!is$1.und(t.friction);!r&&is$1.und(t.frequency)&&is$1.und(t.damping)&&is$1.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const emptyArray=[];class Animation{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.to=void 0,this.from=void 0,this.config=new AnimationConfig,this.immediate=!1}}function scheduleProps(e,{key:t,props:r,defaultProps:n,state:i,actions:a}){return new Promise(((s,o)=>{var l;let c,d,p=matchProp(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(p)m();else{is$1.und(r.pause)||(i.paused=matchProp(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=i.paused||matchProp(e,t)),c=callProp(r.delay||0,t),e?(i.resumeQueue.add(h),a.pause()):(a.resume(),h())}function u(){i.resumeQueue.add(h),i.timeouts.delete(d),d.cancel(),c=d.time-raf.now()}function h(){c>0&&!globals.skipAnimation?(i.delayed=!0,d=raf.setTimeout(m,c),i.pauseQueue.add(u),i.timeouts.add(d)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(u),i.timeouts.delete(d),e<=(i.cancelId||0)&&(p=!0);try{a.start(_extends({},r,{callId:e,cancel:p}),s)}catch(e){o(e)}}}))}const getCombinedResult=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?getCancelledResult(e.get()):t.every((e=>e.noop))?getNoopResult(e.get()):getFinishedResult(e.get(),t.every((e=>e.finished))),getNoopResult=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),getCancelledResult=e=>({value:e,cancelled:!0,finished:!1});function runAsync(e,t,r,n){const{callId:i,parentId:a,onRest:s}=t,{asyncTo:o,promise:l}=r;return a||e!==o||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const c=getDefaultProps(t,((e,t)=>"onRest"===t?void 0:e));let d,p;const u=new Promise(((e,t)=>(d=e,p=t))),h=e=>{const t=i<=(r.cancelId||0)&&getCancelledResult(n)||i!==r.asyncId&&getFinishedResult(n,!1);if(t)throw e.result=t,p(e),e},m=(e,t)=>{const a=new BailSignal,s=new SkipAnimationSignal;return(async()=>{if(globals.skipAnimation)throw stopAsync(r),s.result=getFinishedResult(n,!1),p(s),s;h(a);const o=is$1.obj(e)?_extends({},e):_extends({},t,{to:e});o.parentId=i,eachProp(c,((e,t)=>{is$1.und(o[t])&&(o[t]=e)}));const l=await n.start(o);return h(a),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let f;if(globals.skipAnimation)return stopAsync(r),getFinishedResult(n,!1);try{let t;t=is$1.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,n.stop.bind(n))),await Promise.all([t.then(d),u]),f=getFinishedResult(n.get(),!0,!1)}catch(e){if(e instanceof BailSignal)f=e.result;else{if(!(e instanceof SkipAnimationSignal))throw e;f=e.result}}finally{i==r.asyncId&&(r.asyncId=a,r.asyncTo=a?o:void 0,r.promise=a?l:void 0)}return is$1.fun(s)&&raf.batchedUpdates((()=>{s(f,n,n.item)})),f})():l}function stopAsync(e,t){flush(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class BailSignal 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 SkipAnimationSignal extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const isFrameValue=e=>e instanceof FrameValue;let nextId$1=1;class FrameValue extends FluidValue{constructor(...e){super(...e),this.id=nextId$1++,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=getAnimated(this);return e&&e.getValue()}to(...e){return globals.to(this,e)}interpolate(...e){return deprecateInterpolate(),globals.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){callFluidObservers(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:e})}}const $P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=e=>(e[$P]&HAS_ANIMATED)>0,isAnimating=e=>(e[$P]&IS_ANIMATING)>0,isPaused=e=>(e[$P]&IS_PAUSED)>0,setActiveBit=(e,t)=>t?e[$P]|=IS_ANIMATING|HAS_ANIMATED:e[$P]&=~IS_ANIMATING,setPausedBit=(e,t)=>t?e[$P]|=IS_PAUSED:e[$P]&=~IS_PAUSED;class SpringValue extends FrameValue{constructor(e,t){if(super(),this.key=void 0,this.animation=new Animation,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,!is$1.und(e)||!is$1.und(t)){const r=is$1.obj(e)?_extends({},e):_extends({},t,{from:e});is$1.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const e=getAnimated(this);return e instanceof AnimatedValue?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:i,toValues:a}=n;const s=getPayload(n.to);!s&&hasFluidValue(n.to)&&(a=toArray(getFluidValue(n.to))),n.values.forEach(((o,l)=>{if(o.done)return;const c=o.constructor==AnimatedString?1:s?s[l].lastPosition:a[l];let d=n.immediate,p=c;if(!d){if(p=o.lastPosition,i.tension<=0)return void(o.done=!0);let t=o.elapsedTime+=e;const r=n.fromValues[l],a=null!=o.v0?o.v0:o.v0=is$1.arr(i.velocity)?i.velocity[l]:i.velocity;let s;const u=i.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(is$1.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*t);p=r+a/(1-e)*(1-n),d=Math.abs(o.lastPosition-p)<=u,s=a*n}else{s=null==o.lastVelocity?a:o.lastVelocity;const t=i.restVelocity||u/10,n=i.clamp?0:i.bounce,l=!is$1.und(n),h=r==c?o.v0>0:r<c;let m,f=!1;const y=1,g=Math.ceil(e/y);for(let e=0;e<g&&(m=Math.abs(s)>t,m||(d=Math.abs(c-p)<=u,!d));++e){l&&(f=p==c||p>c==h,f&&(s=-s*n,p=c));s+=(1e-6*-i.tension*(p-c)+.001*-i.friction*s)/i.mass*y,p+=s*y}}else{let n=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,o.durationProgress>0&&(o.elapsedTime=i.duration*o.durationProgress,t=o.elapsedTime+=e)),n=(i.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,o.durationProgress=n),p=r+i.easing(n)*(c-r),s=(p-o.lastPosition)/e,d=1==n}o.lastVelocity=s,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),d=!0)}s&&!s[l].done&&(d=!1),d?o.done=!0:t=!1,o.setValue(p,i.round)&&(r=!0)}));const o=getAnimated(this),l=o.getValue();if(t){const e=getFluidValue(n.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(o.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return raf.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:e,config:t}=this.animation;raf.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 r;return is$1.und(e)?(r=this.queue||[],this.queue=[]):r=[is$1.obj(e)?e:_extends({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>getCombinedResult(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),stopAsync(this._state,e&&this._lastCallId),raf.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:r,from:n}=e;r=is$1.obj(r)?r[t]:r,(null==r||isAsyncTo(r))&&(r=void 0),n=is$1.obj(n)?n[t]:n,null==n&&(n=void 0);const i={to:r,from:n};return hasAnimated(this)||(e.reverse&&([r,n]=[n,r]),n=getFluidValue(n),is$1.und(n)?getAnimated(this)||this._set(r):this._set(n)),i}_update(e,t){let r=_extends({},e);const{key:n,defaultProps:i}=this;r.default&&Object.assign(i,getDefaultProps(r,((e,t)=>/^on/.test(t)?resolveProp(e,n):e))),mergeActiveFn(this,r,"onProps"),sendEvent(this,"onProps",r,this);const a=this._prepareNode(r);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 s=this._state;return scheduleProps(++this._lastCallId,{key:n,props:r,defaultProps:i,state:s,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(s.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(s.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=createLoopUpdate(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(getCancelledResult(this));const n=!is$1.und(e.to),i=!is$1.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(getCancelledResult(this));this._lastToId=t.callId}const{key:a,defaultProps:s,animation:o}=this,{to:l,from:c}=o;let{to:d=l,from:p=c}=e;!i||n||t.default&&!is$1.und(d)||(d=p),t.reverse&&([d,p]=[p,d]);const u=!isEqual$1(p,c);u&&(o.from=p),p=getFluidValue(p);const h=!isEqual$1(d,l);h&&this._focus(d);const m=isAsyncTo(t.to),{config:f}=o,{decay:y,velocity:g}=f;(n||i)&&(f.velocity=0),t.config&&!m&&mergeConfig(f,callProp(t.config,a),t.config!==s.config?callProp(s.config,a):void 0);let x=getAnimated(this);if(!x||is$1.und(d))return r(getFinishedResult(this,!0));const _=is$1.und(t.reset)?i&&!t.default:!is$1.und(p)&&matchProp(t.reset,a),b=_?p:this.get(),v=computeGoal(d),S=is$1.num(v)||is$1.arr(v)||isAnimatedString(v),C=!m&&(!S||matchProp(s.immediate||t.immediate,a));if(h){const e=getAnimatedType(d);if(e!==x.constructor){if(!C)throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`);x=this._set(v)}}const $=x.constructor;let w=hasFluidValue(d),T=!1;if(!w){const e=_||!hasAnimated(this)&&u;(h||e)&&(T=isEqual$1(computeGoal(b),v),w=!T),(isEqual$1(o.immediate,C)||C)&&isEqual$1(f.decay,y)&&isEqual$1(f.velocity,g)||(w=!0)}if(T&&isAnimating(this)&&(o.changed&&!_?w=!0:w||this._stop(l)),!m&&((w||hasFluidValue(l))&&(o.values=x.getPayload(),o.toValues=hasFluidValue(d)?null:$==AnimatedString?[1]:toArray(v)),o.immediate!=C&&(o.immediate=C,C||_||this._set(l)),w)){const{onRest:e}=o;each$1(ACTIVE_EVENTS,(e=>mergeActiveFn(this,t,e)));const n=getFinishedResult(this,checkFinished(this,l));flushCalls(this._pendingCalls,n),this._pendingCalls.add(r),o.changed&&raf.batchedUpdates((()=>{o.changed=!_,null==e||e(n,this),_?callProp(s.onRest,n):null==o.onStart||o.onStart(n,this)}))}_&&this._set(b),m?r(runAsync(t.to,t,this._state,this)):w?this._start():isAnimating(this)&&!h?this._pendingCalls.add(r):r(getNoopResult(b))}_focus(e){const t=this.animation;e!==t.to&&(getFluidObservers(this)&&this._detach(),t.to=e,getFluidObservers(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;hasFluidValue(t)&&(addFluidObserver(t,this),isFrameValue(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;hasFluidValue(e)&&removeFluidObserver(e,this)}_set(e,t=!0){const r=getFluidValue(e);if(!is$1.und(r)){const e=getAnimated(this);if(!e||!isEqual$1(r,e.getValue())){const n=getAnimatedType(r);e&&e.constructor==n?e.setValue(r):setAnimated(this,n.create(r)),e&&raf.batchedUpdates((()=>{this._onChange(r,t)}))}}return getAnimated(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),callProp(this.animation.onChange,e,this)),callProp(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;getAnimated(this).reset(getFluidValue(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals.skipAnimation?this.finish():frameLoop.start(this)}_stop(e,t){if(isAnimating(this)){setActiveBit(this,!1);const r=this.animation;each$1(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const n=t?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,null!=e?e:r.to));flushCalls(this._pendingCalls,n),r.changed&&(r.changed=!1,sendEvent(this,"onRest",n,this))}}}function checkFinished(e,t){const r=computeGoal(t);return isEqual$1(computeGoal(e.get()),r)}function createLoopUpdate(e,t=e.loop,r=e.to){let n=callProp(t);if(n){const i=!0!==n&&inferTo(n),a=(i||e).reverse,s=!i||i.reset;return createUpdate(_extends({},e,{loop:t,default:!1,pause:void 0,to:!a||isAsyncTo(r)?r:void 0,from:s?e.from:void 0,reset:s},i))}}function createUpdate(e){const{to:t,from:r}=e=inferTo(e),n=new Set;return is$1.obj(t)&&findDefined(t,n),is$1.obj(r)&&findDefined(r,n),e.keys=n.size?Array.from(n):null,e}function declareUpdate(e){const t=createUpdate(e);return is$1.und(t.default)&&(t.default=getDefaultProps(t)),t}function findDefined(e,t){eachProp(e,((e,r)=>null!=e&&t.add(r)))}const ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(e,t,r){e.animation[r]=t[r]!==getDefaultProp(t,r)?resolveProp(t[r],e.key):void 0}function sendEvent(e,t,...r){var n,i,a,s;null==(n=(i=e.animation)[t])||n.call(i,...r),null==(a=(s=e.defaultProps)[t])||a.call(s,...r)}const BATCHED_EVENTS=["onStart","onChange","onRest"];let nextId=1;class Controller{constructor(e,t){this.id=nextId++,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(_extends({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,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];is$1.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(createUpdate(e)),this}start(e){let{queue:t}=this;return e?t=toArray(e).map(createUpdate):this.queue=[],this._flush?this._flush(this,t):(prepareKeys(this,t),flushUpdateQueue(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;each$1(toArray(t),(t=>r[t].stop(!!e)))}else stopAsync(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(is$1.und(e))this.start({pause:!0});else{const t=this.springs;each$1(toArray(e),(e=>t[e].pause()))}return this}resume(e){if(is$1.und(e))this.start({pause:!1});else{const t=this.springs;each$1(toArray(e),(e=>t[e].resume()))}return this}each(e){eachProp(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,flush(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const a=!n&&this._started,s=i||a&&r.size?this.get():null;i&&t.size&&flush(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),a&&(this._started=!1,flush(r,(([e,t])=>{t.value=s,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)}raf.onFrame(this._onFrame)}}function flushUpdateQueue(e,t){return Promise.all(t.map((t=>flushUpdate(e,t)))).then((t=>getCombinedResult(e,t)))}async function flushUpdate(e,t,r){const{keys:n,to:i,from:a,loop:s,onRest:o,onResolve:l}=t,c=is$1.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);const d=is$1.arr(i)||is$1.fun(i)?i:void 0;d?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):each$1(BATCHED_EVENTS,(r=>{const n=t[r];if(is$1.fun(n)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[r]=t[r])}}));const p=e._state;t.pause===!p.paused?(p.paused=t.pause,flushCalls(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const u=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),h=!0===t.cancel||!0===getDefaultProp(t,"cancel");(d||h&&p.asyncId)&&u.push(scheduleProps(++e._lastAsyncId,{props:t,state:p,actions:{pause:noop$2,resume:noop$2,start(t,r){h?(stopAsync(p,e._lastAsyncId),r(getCancelledResult(e))):(t.onRest=o,r(runAsync(d,t,p,e)))}}})),p.paused&&await new Promise((e=>{p.resumeQueue.add(e)}));const m=getCombinedResult(e,await Promise.all(u));if(s&&m.finished&&(!r||!m.noop)){const r=createLoopUpdate(t,s,i);if(r)return prepareKeys(e,[r]),flushUpdate(e,r,!0)}return l&&raf.batchedUpdates((()=>l(m,e,e.item))),m}function getSprings(e,t){const r=_extends({},e.springs);return t&&each$1(toArray(t),(e=>{is$1.und(e.keys)&&(e=createUpdate(e)),is$1.obj(e.to)||(e=_extends({},e,{to:void 0})),prepareSprings(r,e,(e=>createSpring(e)))})),setSprings(e,r),r}function setSprings(e,t){eachProp(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,addFluidObserver(t,e))}))}function createSpring(e,t){const r=new SpringValue;return r.key=e,t&&addFluidObserver(r,t),r}function prepareSprings(e,t,r){t.keys&&each$1(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function prepareKeys(e,t){each$1(t,(t=>{prepareSprings(e.springs,t,(t=>createSpring(t,e)))}))}function _objectWithoutPropertiesLoose$3(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}const _excluded$6=["children"],SpringContext=e=>{let{children:t}=e,r=_objectWithoutPropertiesLoose$3(e,_excluded$6);const n=React.useContext(ctx),i=r.pause||!!n.pause,a=r.immediate||!!n.immediate;r=useMemoOne((()=>({pause:i,immediate:a})),[i,a]);const{Provider:s}=ctx;return React__namespace.createElement(s,{value:r},t)},ctx=makeContext(SpringContext,{});function makeContext(e,t){return Object.assign(e,React__namespace.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}SpringContext.Provider=ctx.Provider,SpringContext.Consumer=ctx.Consumer;const SpringRef=()=>{const e=[],t=function(t){deprecateDirectCall();const n=[];return each$1(e,((e,i)=>{if(is$1.und(t))n.push(e.start());else{const a=r(t,e,i);a&&n.push(e.start(a))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return each$1(e,(e=>e.pause(...arguments))),this},t.resume=function(){return each$1(e,(e=>e.resume(...arguments))),this},t.set=function(t){each$1(e,(e=>e.set(t)))},t.start=function(t){const r=[];return each$1(e,((e,n)=>{if(is$1.und(t))r.push(e.start());else{const i=this._getProps(t,e,n);i&&r.push(e.start(i))}})),r},t.stop=function(){return each$1(e,(e=>e.stop(...arguments))),this},t.update=function(t){return each$1(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return is$1.fun(e)?e(r,t):e};return t._getProps=r,t};function useSprings(e,t,r){const n=is$1.fun(t)&&t;n&&!r&&(r=[]);const i=React.useMemo((()=>n||3==arguments.length?SpringRef():void 0),[]),a=React.useRef(0),s=useForceUpdate(),o=React.useMemo((()=>({ctrls:[],queue:[],flush(e,t){const r=getSprings(e,t);return a.current>0&&!o.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?flushUpdateQueue(e,t):new Promise((n=>{setSprings(e,r),o.queue.push((()=>{n(flushUpdateQueue(e,t))})),s()}))}})),[]),l=React.useRef([...o.ctrls]),c=[],d=usePrev(e)||0;function p(e,r){for(let i=e;i<r;i++){const e=l.current[i]||(l.current[i]=new Controller(null,o.flush)),r=n?n(i,e):t[i];r&&(c[i]=declareUpdate(r))}}React.useMemo((()=>{each$1(l.current.slice(e,d),(e=>{detachRefs(e,i),e.stop(!0)})),l.current.length=e,p(d,e)}),[e]),React.useMemo((()=>{p(0,Math.min(d,e))}),r);const u=l.current.map(((e,t)=>getSprings(e,c[t]))),h=React.useContext(SpringContext),m=usePrev(h),f=h!==m&&hasProps(h);useIsomorphicLayoutEffect$1((()=>{a.current++,o.ctrls=l.current;const{queue:e}=o;e.length&&(o.queue=[],each$1(e,(e=>e()))),each$1(l.current,((e,t)=>{null==i||i.add(e),f&&e.start({default:h});const r=c[t];r&&(replaceRef(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),useOnce((()=>()=>{each$1(o.ctrls,(e=>e.stop(!0)))}));const y=u.map((e=>_extends({},e)));return i?[y,i]:y}function useSpring(e,t){const r=is$1.fun(e),[[n],i]=useSprings(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,i]:n}let TransitionPhase;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(TransitionPhase||(TransitionPhase={}));class Interpolation extends FrameValue{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=createInterpolator(...t);const r=this._get(),n=getAnimatedType(r);setAnimated(this,n.create(r))}advance(e){const t=this._get();isEqual$1(t,this.get())||(getAnimated(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const e=is$1.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(...e)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each$1(getPayload(this),(e=>{e.done=!1})),globals.skipAnimation?(raf.batchedUpdates((()=>this.advance())),becomeIdle(this)):frameLoop.start(this))}_attach(){let e=1;each$1(toArray(this.source),(t=>{hasFluidValue(t)&&addFluidObserver(t,this),isFrameValue(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){each$1(toArray(this.source),(e=>{hasFluidValue(e)&&removeFluidObserver(e,this)})),this._active.clear(),becomeIdle(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=toArray(this.source).reduce(((e,t)=>Math.max(e,(isFrameValue(t)?t.priority:0)+1)),0))}}function isIdle(e){return!1!==e.idle}function checkIdle(e){return!e.size||Array.from(e).every(isIdle)}function becomeIdle(e){e.idle||(e.idle=!0,each$1(getPayload(e),(e=>{e.done=!0})),callFluidObservers(e,{type:"idle",parent:e}))}function _objectWithoutPropertiesLoose$2(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}globals.assign({createStringInterpolator:createStringInterpolator,to:(e,t)=>new Interpolation(e,t)});const _excluded$2=["style","children","scrollTop","scrollLeft","viewBox"],isCustomPropRE=/^--/;function dangerousStyleValue(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||isCustomPropRE.test(e)||isUnitlessNumber.hasOwnProperty(e)&&isUnitlessNumber[e]?(""+t).trim():t+"px"}const attributeCache={};function applyAnimatedValues(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:i,children:a,scrollTop:s,scrollLeft:o,viewBox:l}=n,c=_objectWithoutPropertiesLoose$2(n,_excluded$2),d=Object.values(c),p=Object.keys(c).map((t=>r||e.hasAttribute(t)?t:attributeCache[t]||(attributeCache[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==a&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){const r=dangerousStyleValue(t,i[t]);isCustomPropRE.test(t)?e.style.setProperty(t,r):e.style[t]=r}p.forEach(((t,r)=>{e.setAttribute(t,d[r])})),void 0!==s&&(e.scrollTop=s),void 0!==o&&(e.scrollLeft=o),void 0!==l&&e.setAttribute("viewBox",l)}let isUnitlessNumber={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 prefixKey=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce(((e,t)=>(prefixes.forEach((r=>e[prefixKey(r,t)]=e[t])),e)),isUnitlessNumber);const _excluded$1$1=["x","y","z"],domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(e,t)=>is$1.num(e)&&0!==e?e+t:e,isValueIdentity=(e,t)=>is$1.arr(e)?e.every((e=>isValueIdentity(e,t))):is$1.num(e)?e===t:parseFloat(e)===t;class AnimatedStyle extends AnimatedObject{constructor(e){let{x:t,y:r,z:n}=e,i=_objectWithoutPropertiesLoose$2(e,_excluded$1$1);const a=[],s=[];(t||r||n)&&(a.push([t||0,r||0,n||0]),s.push((e=>[`translate3d(${e.map((e=>addUnit(e,"px"))).join(",")})`,isValueIdentity(e,0)]))),eachProp(i,((e,t)=>{if("transform"===t)a.push([e||""]),s.push((e=>[e,""===e]));else if(domTransforms.test(t)){if(delete i[t],is$1.und(e))return;const r=pxTransforms.test(t)?"px":degTransforms.test(t)?"deg":"";a.push(toArray(e)),s.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${addUnit(i,r)})`,isValueIdentity(i,0)]:e=>[`${t}(${e.map((e=>addUnit(e,r))).join(",")})`,isValueIdentity(e,t.startsWith("scale")?1:0)])}})),a.length&&(i.transform=new FluidTransform(a,s)),super(i)}}class FluidTransform extends FluidValue{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 each$1(this.inputs,((r,n)=>{const i=getFluidValue(r[0]),[a,s]=this.transforms[n](is$1.arr(i)?i:r.map(getFluidValue));e+=" "+a,t=t&&s})),t?"none":e}observerAdded(e){1==e&&each$1(this.inputs,(e=>each$1(e,(e=>hasFluidValue(e)&&addFluidObserver(e,this)))))}observerRemoved(e){0==e&&each$1(this.inputs,(e=>each$1(e,(e=>hasFluidValue(e)&&removeFluidObserver(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),callFluidObservers(this,e)}}const primitives=["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"],_excluded$3=["scrollTop","scrollLeft"];globals.assign({batchedUpdates:ReactDOM.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator,colors:colors});const host=createHost(primitives,{applyAnimatedValues:applyAnimatedValues,createAnimatedStyle:e=>new AnimatedStyle(e),getComponentProps:e=>_objectWithoutPropertiesLoose$2(e,_excluded$3)}),animated=host.animated,AccordionContext=React__default.default.createContext(!1),BaseColorSet={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)"}},BookingSGColorSet={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)"}},RBSColorSet={Brand:{1:"#3E4DFF",2:"#AEACFF",3:"#AD44FF",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#4855D4",PrimaryDark:"#3E49B2",Secondary:"#364891",Accent:{Dark:{1:"#5E516E",2:"#7A6F87",3:"#C5C0CC"},Light:{1:"#8397FC",2:"#ABB8FC",3:"#CED6FD ",4:"#E1E4FA",5:"#F0F2FF",6:"#FAFBFF"}},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(90, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},isArray$a=Array.isArray,isArray_1=isArray$a,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$c=Object.prototype,hasOwnProperty$b=objectProto$c.hasOwnProperty,nativeObjectToString$1=objectProto$c.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$b.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var n=!0}catch(e){}var i=nativeObjectToString$1.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),i}var _getRawTag=getRawTag$1,objectProto$b=Object.prototype,nativeObjectToString=objectProto$b.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$4(e)&&baseGetTag$4(e)==symbolTag$1}var isSymbol_1=isSymbol$4,isArray$9=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(e,t){if(isArray$9(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol$3(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$3;function isObject$6(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$6,baseGetTag$3=_baseGetTag,isObject$5=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){if(!isObject$5(e))return!1;var t=baseGetTag$3(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$4=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$a=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$a.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$4(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$2(e,t){return null==e?void 0:e[t]}var _getValue=getValue$2,baseIsNative=_baseIsNative,getValue$1=_getValue;function getNative$6(e,t){var r=getValue$1(e,t);return baseIsNative(r)?r:void 0}var _getNative=getNative$6,getNative$5=_getNative,nativeCreate$4=getNative$5(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$9=Object.prototype,hasOwnProperty$9=objectProto$9.hasOwnProperty;function hashGet$1(e){var t=this.__data__;if(nativeCreate$2){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$9.call(t,e)?t[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?void 0!==t[e]:hasOwnProperty$8.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var r=e.length;r--;)if(eq$1(e[r][0],t))return r;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,r=assocIndexOf$3(t,e);return!(r<0)&&(r==t.length-1?t.pop():splice.call(t,r,1),--this.size,!0)}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,r=assocIndexOf$2(t,e);return r<0?void 0:t[r][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var r=this.__data__,n=assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$4=_getNative,root$6=_root,Map$4=getNative$4(root$6,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){var r=e.__data__;return isKeyable(t)?r["string"==typeof t?"string":"hash"]:r.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){var t=getMapData$3(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var r=getMapData(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$1);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(memoize$1.Cache||MapCache$2),r}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var t=memoize(e,(function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e})),r=t.cache;return t}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rePropName,(function(e,r,n,i){t.push(n?i.replace(reEscapeChar,"$1"):r||e)})),t})),_stringToPath=stringToPath$1;function arrayMap$1(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var _arrayMap=arrayMap$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$8=isArray_1,isSymbol$2=isSymbol_1,INFINITY$2=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){if("string"==typeof e)return e;if(isArray$8(e))return arrayMap(e,baseToString$1)+"";if(isSymbol$2(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY$2?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$3(e){return null==e?"":baseToString(e)}var toString_1=toString$3,isArray$7=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$2=toString_1;function castPath$2(e,t){return isArray$7(e)?e:isKey$2(e,t)?[e]:stringToPath(toString$2(e))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY$1=1/0;function toKey$4(e){if("string"==typeof e||isSymbol$1(e))return e;var t=e+"";return"0"==t&&1/e==-INFINITY$1?"-0":t}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(e,t){for(var r=0,n=(t=castPath$1(t,e)).length;null!=e&&r<n;)e=e[toKey$3(t[r++])];return r&&r==n?e:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(e,t,r){var n=null==e?void 0:baseGet$1(e,t);return void 0===n?r:n}var get_1=get$1;const getValue=(e,t,r)=>t?get_1(r,t)||get_1(e,t):r||e,getCollection=(e,t)=>{const r=t||e.defaultValue;return get_1(e.collections,r)};var ThemeContextKeys;exports.ThemeContextKeys=void 0,ThemeContextKeys=exports.ThemeContextKeys||(exports.ThemeContextKeys={}),ThemeContextKeys.colorScheme="colorScheme",ThemeContextKeys.layout="layout",ThemeContextKeys.textStyleScheme="textStyleScheme",ThemeContextKeys.designTokenScheme="designTokenScheme",ThemeContextKeys.resourceScheme="resourceScheme";const ColorSpec={collections:{base:BaseColorSet,bookingsg:BookingSGColorSet,rbs:RBSColorSet},defaultValue:"base"},getThemeColors=e=>t=>{const r=t.theme,n=getCollection(ColorSpec,r[exports.ThemeContextKeys.colorScheme]);return r.options&&r.options.color?getValue(n,e,r.options.color):getValue(n,e)},Color={Brand:{1:getThemeColors("Brand.1"),2:getThemeColors("Brand.2"),3:getThemeColors("Brand.3"),4:getThemeColors("Brand.4"),5:getThemeColors("Brand.5"),6:getThemeColors("Brand.6")},Primary:getThemeColors("Primary"),PrimaryDark:getThemeColors("PrimaryDark"),Secondary:getThemeColors("Secondary"),Accent:{Light:{1:getThemeColors("Accent.Light.1"),2:getThemeColors("Accent.Light.2"),3:getThemeColors("Accent.Light.3"),4:getThemeColors("Accent.Light.4"),5:getThemeColors("Accent.Light.5"),6:getThemeColors("Accent.Light.6")},Dark:{1:getThemeColors("Accent.Dark.1"),2:getThemeColors("Accent.Dark.2"),3:getThemeColors("Accent.Dark.3")}},Neutral:{1:getThemeColors("Neutral.1"),2:getThemeColors("Neutral.2"),3:getThemeColors("Neutral.3"),4:getThemeColors("Neutral.4"),5:getThemeColors("Neutral.5"),6:getThemeColors("Neutral.6"),7:getThemeColors("Neutral.7"),8:getThemeColors("Neutral.8")},Validation:{Green:{Text:getThemeColors("Validation.Green.Text"),Icon:getThemeColors("Validation.Green.Icon"),Border:getThemeColors("Validation.Green.Border"),Background:getThemeColors("Validation.Green.Background")},Orange:{Text:getThemeColors("Validation.Orange.Text"),Icon:getThemeColors("Validation.Orange.Icon"),Border:getThemeColors("Validation.Orange.Border"),Background:getThemeColors("Validation.Orange.Background"),Badge:getThemeColors("Validation.Orange.Badge")},Red:{Text:getThemeColors("Validation.Red.Text"),Icon:getThemeColors("Validation.Red.Icon"),Border:getThemeColors("Validation.Red.Border"),Background:getThemeColors("Validation.Red.Background")},Blue:{Text:getThemeColors("Validation.Blue.Text"),Icon:getThemeColors("Validation.Blue.Icon"),Border:getThemeColors("Validation.Blue.Border"),Background:getThemeColors("Validation.Blue.Background")}},Shadow:{Accent:getThemeColors("Shadow.Accent"),Red:getThemeColors("Shadow.Red"),Elevation:getThemeColors("Shadow.Elevation")}},MediaWidths$1={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},getMediaQuerySpec=e=>Object.keys(MediaWidths$1).reduce(((t,r)=>{const n=MediaWidths$1[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),MediaQuery={MaxWidth:getMediaQuerySpec("max-width"),MinWidth:getMediaQuerySpec("min-width")},MediaWidths=MediaWidths$1,Main$3=styled__default.default.button`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),React=require("react"),ReactDOM=require("react-dom"),chevronUp=require("@lifesg/react-icons/chevron-up"),styled=require("styled-components"),external=require("@lifesg/react-icons/external"),arrowRight=require("@lifesg/react-icons/arrow-right"),chevronDown=require("@lifesg/react-icons/chevron-down"),exclamationCircleFill=require("@lifesg/react-icons/exclamation-circle-fill"),chevronRight=require("@lifesg/react-icons/chevron-right"),chevronLeft=require("@lifesg/react-icons/chevron-left"),reactIcons=require("@lifesg/react-icons"),cross=require("@lifesg/react-icons/cross"),star=require("@lifesg/react-icons/star"),starFill=require("@lifesg/react-icons/star-fill"),cloudArrowUpFill=require("@lifesg/react-icons/cloud-arrow-up-fill"),iCircleFill=require("@lifesg/react-icons/i-circle-fill"),magnifier=require("@lifesg/react-icons/magnifier"),triangleForwardFill=require("@lifesg/react-icons/triangle-forward-fill"),circle=require("@lifesg/react-icons/circle"),circleDot=require("@lifesg/react-icons/circle-dot"),square=require("@lifesg/react-icons/square"),squareTickFill=require("@lifesg/react-icons/square-tick-fill"),tick=require("@lifesg/react-icons/tick"),bin=require("@lifesg/react-icons/bin"),pencil=require("@lifesg/react-icons/pencil"),dragHandle=require("@lifesg/react-icons/drag-handle"),filter=require("@lifesg/react-icons/filter"),minus=require("@lifesg/react-icons/minus"),plus=require("@lifesg/react-icons/plus"),menu=require("@lifesg/react-icons/menu"),chevron2Left=require("@lifesg/react-icons/chevron-2-left"),chevron2Right=require("@lifesg/react-icons/chevron-2-right"),chevronLineLeft=require("@lifesg/react-icons/chevron-line-left"),chevronLineRight=require("@lifesg/react-icons/chevron-line-right"),ellipsisHorizontal=require("@lifesg/react-icons/ellipsis-horizontal"),starHalf=require("@lifesg/react-icons/star-half");function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var React__namespace=_interopNamespace(React),React__default=_interopDefaultLegacy(React),ReactDOM__default=_interopDefaultLegacy(ReactDOM),styled__default=_interopDefaultLegacy(styled);function __rest$1(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function __awaiter(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}l((n=n.apply(e,t||[])).next())}))}function __generator(e,t){var r,n,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function __read(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}function __spreadArray(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};function __rest(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}var commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function isObject$3$1(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1$1=isObject$3$1,freeGlobal$1$1="object"==typeof commonjsGlobal$1&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal$1=freeGlobal$1$1,freeGlobal$2=_freeGlobal$1,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$2$1=freeGlobal$2||freeSelf$1||Function("return this")(),_root$1=root$2$1,root$1$1=_root$1,now$1$1=function(){return root$1$1.Date.now()},now_1$1=now$1$1,reWhitespace$1=/\s/;function trimmedEndIndex$1$1(e){for(var t=e.length;t--&&reWhitespace$1.test(e.charAt(t)););return t}var _trimmedEndIndex$1=trimmedEndIndex$1$1,trimmedEndIndex$2=_trimmedEndIndex$1,reTrimStart$1=/^\s+/;function baseTrim$1$1(e){return e?e.slice(0,trimmedEndIndex$2(e)+1).replace(reTrimStart$1,""):e}var _baseTrim$1=baseTrim$1$1,root$a=_root$1,Symbol$2$1=root$a.Symbol,_Symbol$1=Symbol$2$1,Symbol$1$1=_Symbol$1,objectProto$1$1=Object.prototype,hasOwnProperty$c=objectProto$1$1.hasOwnProperty,nativeObjectToString$1$1=objectProto$1$1.toString,symToStringTag$1$1=Symbol$1$1?Symbol$1$1.toStringTag:void 0;function getRawTag$1$1(e){var t=hasOwnProperty$c.call(e,symToStringTag$1$1),r=e[symToStringTag$1$1];try{e[symToStringTag$1$1]=void 0;var n=!0}catch(e){}var i=nativeObjectToString$1$1.call(e);return n&&(t?e[symToStringTag$1$1]=r:delete e[symToStringTag$1$1]),i}var _getRawTag$1=getRawTag$1$1,objectProto$d=Object.prototype,nativeObjectToString$2=objectProto$d.toString;function objectToString$1$1(e){return nativeObjectToString$2.call(e)}var _objectToString$1=objectToString$1$1,Symbol$6=_Symbol$1,getRawTag$2=_getRawTag$1,objectToString$2=_objectToString$1,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$6?Symbol$6.toStringTag:void 0;function baseGetTag$1$1(e){return null==e?void 0===e?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(e)?getRawTag$2(e):objectToString$2(e)}var _baseGetTag$1=baseGetTag$1$1;function isObjectLike$1$1(e){return null!=e&&"object"==typeof e}var isObjectLike_1$1=isObjectLike$1$1,baseGetTag$6=_baseGetTag$1,isObjectLike$6=isObjectLike_1$1,symbolTag$2="[object Symbol]";function isSymbol$1$1(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$6(e)==symbolTag$2}var isSymbol_1$1=isSymbol$1$1,baseTrim$2=_baseTrim$1,isObject$2$1=isObject_1$1,isSymbol$5=isSymbol_1$1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$1$1(e){if("number"==typeof e)return e;if(isSymbol$5(e))return NAN$1;if(isObject$2$1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2$1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim$2(e);var r=reIsBinary$1.test(e);return r||reIsOctal$1.test(e)?freeParseInt$1(e.slice(2),r?2:8):reIsBadHex$1.test(e)?NAN$1:+e}var toNumber_1$1=toNumber$1$1,isObject$1$1=isObject_1$1,now$2=now_1$1,toNumber$3=toNumber_1$1,FUNC_ERROR_TEXT$1$1="Expected a function",nativeMax$2=Math.max,nativeMin$1=Math.min;function debounce$1(e,t,r){var n,i,a,s,o,l,c=0,d=!1,p=!1,u=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1$1);function h(t){var r=n,a=i;return n=i=void 0,c=t,s=e.apply(a,r)}function m(e){var r=e-l;return void 0===l||r>=t||r<0||p&&e-c>=a}function f(){var e=now$2();if(m(e))return y(e);o=setTimeout(f,function(e){var r=t-(e-l);return p?nativeMin$1(r,a-(e-c)):r}(e))}function y(e){return o=void 0,u&&n?h(e):(n=i=void 0,s)}function g(){var e=now$2(),r=m(e);if(n=arguments,i=this,l=e,r){if(void 0===o)return function(e){return c=e,o=setTimeout(f,t),d?h(e):s}(l);if(p)return clearTimeout(o),o=setTimeout(f,t),h(l)}return void 0===o&&(o=setTimeout(f,t)),s}return t=toNumber$3(t)||0,isObject$1$1(r)&&(d=!!r.leading,a=(p="maxWait"in r)?nativeMax$2(toNumber$3(r.maxWait)||0,t):a,u="trailing"in r?!!r.trailing:u),g.cancel=function(){void 0!==o&&clearTimeout(o),c=0,n=l=i=o=void 0},g.flush=function(){return void 0===o?s:y(now$2())},g}var debounce_1$1=debounce$1,debounce$2=debounce_1$1,isObject$7=isObject_1$1,FUNC_ERROR_TEXT$2="Expected a function";function throttle(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$2);return isObject$7(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),debounce$2(e,t,{leading:n,maxWait:t,trailing:i})}var throttle_1=throttle,patchResizeHandler=function(e,t,r,n){switch(t){case"debounce":return debounce_1$1(e,r,n);case"throttle":return throttle_1(e,r,n);default:return e}},isFunction$3=function(e){return"function"==typeof e},isSSR$1=function(){return"undefined"==typeof window},isDOMElement=function(e){return e instanceof Element||e instanceof HTMLDocument},createNotifier=function(e,t,r,n){return function(i){var a=i.width,s=i.height;t((function(t){return t.width===a&&t.height===s||t.width===a&&!n||t.height===s&&!r?t:(e&&isFunction$3(e)&&e(a,s),{width:a,height:s})}))}};!function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,n=e.observerOptions;if(!isSSR$1()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,n)))}},r.getElement=function(){var e=r.props,t=e.querySelector,n=e.targetDomEl;if(isSSR$1())return null;if(t)return document.querySelector(t);if(n&&isDOMElement(n))return n;if(r.targetRef&&isDOMElement(r.targetRef.current))return r.targetRef.current;var i=ReactDOM.findDOMNode(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,n=t.handleWidth,i=void 0===n||n,a=t.handleHeight,s=void 0===a||a,o=t.onResize;if(i||s){var l=createNotifier(o,r.setState.bind(r),i,s);e.forEach((function(e){var t=e&&e.contentRect||{},n=t.width,i=t.height;!r.skipOnMount&&!isSSR$1()&&l({width:n,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,n=e.children;return isFunction$3(t)?"renderProp":isFunction$3(n)?"childFunction":React.isValidElement(n)?"child":Array.isArray(n)?"childArray":"parent"};var n=t.skipOnMount,i=t.refreshMode,a=t.refreshRate,s=void 0===a?1e3:a,o=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=n,r.targetRef=React.createRef(),r.observableElement=null,isSSR$1()||(r.resizeHandler=patchResizeHandler(r.createResizeHandler,i,s,o),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}__extends(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){isSSR$1()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,n=t.children,i=t.nodeType,a=void 0===i?"div":i,s=this.state,o={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(o);case"childFunction":return(e=n)(o);case"child":if((e=n).type&&"string"==typeof e.type){var l=__rest(o,["targetRef"]);return React.cloneElement(e,l)}return React.cloneElement(e,o);case"childArray":return(e=n).map((function(e){return!!e&&React.cloneElement(e,o)}));default:return React__namespace.createElement(a,null)}}}(React.PureComponent);var useEnhancedEffect=isSSR$1()?React.useEffect:React.useLayoutEffect;function useResizeDetector(e){void 0===e&&(e={});var t=e.skipOnMount,r=void 0!==t&&t,n=e.refreshMode,i=e.refreshRate,a=void 0===i?1e3:i,s=e.refreshOptions,o=e.handleWidth,l=void 0===o||o,c=e.handleHeight,d=void 0===c||c,p=e.targetRef,u=e.observerOptions,h=e.onResize,m=React.useRef(r),f=React.useRef(null),y=null!=p?p:f,g=React.useRef(),x=React.useState({width:void 0,height:void 0}),_=x[0],b=x[1];return useEnhancedEffect((function(){if(!isSSR$1()){var e=createNotifier(h,b,l,d);g.current=patchResizeHandler((function(t){(l||d)&&t.forEach((function(t){var r=t&&t.contentRect||{},n=r.width,i=r.height;!m.current&&!isSSR$1()&&e({width:n,height:i}),m.current=!1}))}),n,a,s);var t=new window.ResizeObserver(g.current);return y.current&&t.observe(y.current,u),function(){t.disconnect();var e=g.current;e&&e.cancel&&e.cancel()}}}),[n,a,s,l,d,h,u,y.current]),__assign({ref:y},_)}let updateQueue=makeQueue();const raf=e=>schedule(e,updateQueue);let writeQueue=makeQueue();raf.write=e=>schedule(e,writeQueue);let onStartQueue=makeQueue();raf.onStart=e=>schedule(e,onStartQueue);let onFrameQueue=makeQueue();raf.onFrame=e=>schedule(e,onFrameQueue);let onFinishQueue=makeQueue();raf.onFinish=e=>schedule(e,onFinishQueue);let timeouts=[];raf.setTimeout=(e,t)=>{let r=raf.now()+t,n=()=>{let e=timeouts.findIndex((e=>e.cancel==n));~e&&timeouts.splice(e,1),pendingCount-=~e?1:0},i={time:r,handler:e,cancel:n};return timeouts.splice(findTimeout(r),0,i),pendingCount+=1,start(),i};let findTimeout=e=>~(~timeouts.findIndex((t=>t.time>e))||~timeouts.length);raf.cancel=e=>{onStartQueue.delete(e),onFrameQueue.delete(e),onFinishQueue.delete(e),updateQueue.delete(e),writeQueue.delete(e)},raf.sync=e=>{sync=!0,raf.batchedUpdates(e),sync=!1},raf.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,raf.onStart(r)}return n.handler=e,n.cancel=()=>{onStartQueue.delete(r),t=null},n};let nativeRaf="undefined"!=typeof window?window.requestAnimationFrame:()=>{};raf.use=e=>nativeRaf=e,raf.now="undefined"!=typeof performance?()=>performance.now():Date.now,raf.batchedUpdates=e=>e(),raf.catch=console.error,raf.frameLoop="always",raf.advance=()=>{"demand"!==raf.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};let ts=-1,pendingCount=0,sync=!1;function schedule(e,t){sync?(t.delete(e),e(0)):(t.add(e),start())}function start(){ts<0&&(ts=0,"demand"!==raf.frameLoop&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){let e=ts;ts=raf.now();let t=findTimeout(ts);t&&(eachSafely(timeouts.splice(0,t),(e=>e.handler())),pendingCount-=t),pendingCount?(onStartQueue.flush(),updateQueue.flush(e?Math.min(64,ts-e):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush()):stop()}function makeQueue(){let e=new Set,t=e;return{add(r){pendingCount+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(pendingCount-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,pendingCount-=t.size,eachSafely(t,(t=>t(r)&&e.add(t))),pendingCount+=e.size,t=e)}}}function eachSafely(e,t){e.forEach((e=>{try{t(e)}catch(e){raf.catch(e)}}))}function noop$2(){}const defineHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),is$1={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 isEqual$1(e,t){if(is$1.arr(e)){if(!is$1.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const each$1=(e,t)=>e.forEach(t);function eachProp(e,t,r){if(is$1.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}const toArray=e=>is$1.und(e)?[]:is$1.arr(e)?e:[e];function flush(e,t){if(e.size){const r=Array.from(e);e.clear(),each$1(r,t)}}const flushCalls=(e,...t)=>flush(e,(e=>e(...t))),isSSR=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let createStringInterpolator$1,to,colors$1=null,skipAnimation=!1,willAdvance=noop$2;const assign$1=e=>{e.to&&(to=e.to),e.now&&(raf.now=e.now),void 0!==e.colors&&(colors$1=e.colors),null!=e.skipAnimation&&(skipAnimation=e.skipAnimation),e.createStringInterpolator&&(createStringInterpolator$1=e.createStringInterpolator),e.requestAnimationFrame&&raf.use(e.requestAnimationFrame),e.batchedUpdates&&(raf.batchedUpdates=e.batchedUpdates),e.willAdvance&&(willAdvance=e.willAdvance),e.frameLoop&&(raf.frameLoop=e.frameLoop)};var globals=Object.freeze({__proto__:null,get createStringInterpolator(){return createStringInterpolator$1},get to(){return to},get colors(){return colors$1},get skipAnimation(){return skipAnimation},get willAdvance(){return willAdvance},assign:assign$1});const startQueue=new Set;let currentFrame=[],prevFrame=[],priority=0;const frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(e){priority>e.priority?(startQueue.add(e),raf.onStart(flushStartQueue)):(startSafely(e),raf(advance))},advance:advance,sort(e){if(priority)raf.onFrame((()=>frameLoop.sort(e)));else{const t=currentFrame.indexOf(e);~t&&(currentFrame.splice(t,1),startUnsafely(e))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(e){currentFrame.includes(e)||startUnsafely(e)}function startUnsafely(e){currentFrame.splice(findIndex$2(currentFrame,(t=>t.priority>e.priority)),0,e)}function advance(e){const t=prevFrame;for(let r=0;r<currentFrame.length;r++){const n=currentFrame[r];priority=n.priority,n.idle||(willAdvance(n),n.advance(e),n.idle||t.push(n))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=t,currentFrame.length>0}function findIndex$2(e,t){const r=e.findIndex(t);return r<0?e.length:r}const clamp=(e,t,r)=>Math.min(Math.max(r,e),t),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},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:colors$1&&void 0!==colors$1[e]?colors$1[e]:(t=rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hex8.exec(e))?parseInt(t[1],16)>>>0:(t=hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,a=hue2rgb(i,n,e+1/3),s=hue2rgb(i,n,e),o=hue2rgb(i,n,e-1/3);return Math.round(255*a)<<24|Math.round(255*s)<<16|Math.round(255*o)<<8}function parse255(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function colorToRgba(e){let t=normalizeColor(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const createInterpolator=(e,t,r)=>{if(is$1.fun(e))return e;if(is$1.arr(e))return createInterpolator({range:e,output:t,extrapolate:r});if(is$1.str(e.output[0]))return createStringInterpolator$1(e);const n=e,i=n.output,a=n.range||[0,1],s=n.extrapolateLeft||n.extrapolate||"extend",o=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(e=>e);return e=>{const t=findRange(e,a);return interpolate(e,a[t],a[t+1],i[t],i[t+1],l,s,o,n.map)}};function interpolate(e,t,r,n,i,a,s,o,l){let c=l?l(e):e;if(c<t){if("identity"===s)return c;"clamp"===s&&(c=t)}if(c>r){if("identity"===o)return c;"clamp"===o&&(c=r)}return n===i?n:t===r?e<=t?n:i:(t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t),c=a(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n,c)}function findRange(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}const steps=(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e,i="end"===t?Math.floor(n):Math.ceil(n);return clamp(0,1,i/e)},c1=1.70158,c2=1.525*c1,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},easings={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=>c3*e*e*e-c1*e*e,easeOutBack:e=>1+c3*Math.pow(e-1,3)+c1*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(c2+1)*e-c2)/2:(Math.pow(2*e-2,2)*((c2+1)*(2*e-2)+c2)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*c4),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*c4)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*c5)/2+1,easeInBounce:e=>1-bounceOut(1-e),easeOutBounce:bounceOut,easeInOutBounce:e=>e<.5?(1-bounceOut(1-2*e))/2:(1+bounceOut(2*e-1))/2,steps:steps};function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends$2.apply(this,arguments)}const $get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=e=>Boolean(e&&e[$get]),getFluidValue=e=>e&&e[$get]?e[$get]():e,getFluidObservers=e=>e[$observers]||null;function callFluidObserver(e,t){e.eventObserved?e.eventObserved(t):e(t)}function callFluidObservers(e,t){let r=e[$observers];r&&r.forEach((e=>{callFluidObserver(e,t)}))}class FluidValue{constructor(e){if(this[$get]=void 0,this[$observers]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");setFluidGetter(this,e)}}const setFluidGetter=(e,t)=>setHidden(e,$get,t);function addFluidObserver(e,t){if(e[$get]){let r=e[$observers];r||setHidden(e,$observers,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function removeFluidObserver(e,t){let r=e[$observers];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[$observers]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const setHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=e=>{const[t,r]=parseCSSVariable(e);if(!t||isSSR())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&cssVariableRegex.test(r)?variableToRgba(r):r||e},parseCSSVariable=e=>{const t=cssVariableRegex.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let namedColorRegex;const rgbaRound=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,createStringInterpolator=e=>{namedColorRegex||(namedColorRegex=colors$1?new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>getFluidValue(e).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba))),r=t.map((e=>e.match(numberRegex).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>createInterpolator(_extends$2({},e,{output:t}))));return e=>{var r;const i=!unitRegex.test(t[0])&&(null==(r=t.find((e=>unitRegex.test(e))))?void 0:r.replace(numberRegex,""));let a=0;return t[0].replace(numberRegex,(()=>`${n[a++](e)}${i||""}`)).replace(rgbaRegex,rgbaRound)}},prefix$1="react-spring: ",once=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${prefix$1}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix$1}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix$1}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`)}function isAnimatedString(e){return is$1.str(e)&&("#"==e[0]||/\d/.test(e)||!isSSR()&&cssVariableRegex.test(e)||e in(colors$1||{}))}const useIsomorphicLayoutEffect$1=isSSR()?React.useEffect:React.useLayoutEffect,useIsMounted=()=>{const e=React.useRef(!1);return useIsomorphicLayoutEffect$1((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function useForceUpdate(){const e=React.useState()[1],t=useIsMounted();return()=>{t.current&&e(Math.random())}}function useMemoOne(e,t){const[r]=React.useState((()=>({inputs:t,result:e()}))),n=React.useRef(),i=n.current;let a=i;if(a){Boolean(t&&a.inputs&&areInputsEqual(t,a.inputs))||(a={inputs:t,result:e()})}else a=r;return React.useEffect((()=>{n.current=a,i==r&&(r.inputs=r.result=void 0)}),[a]),a.result}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const useOnce=e=>React.useEffect(e,emptyDeps),emptyDeps=[];function usePrev(e){const t=React.useRef();return React.useEffect((()=>{t.current=e})),t.current}const $node=Symbol.for("Animated:node"),isAnimated=e=>!!e&&e[$node]===e,getAnimated=e=>e&&e[$node],setAnimated=(e,t)=>defineHidden(e,$node,t),getPayload=e=>e&&e[$node]&&e[$node].getPayload();class Animated{constructor(){this.payload=void 0,setAnimated(this,this)}getPayload(){return this.payload||[]}}class AnimatedValue extends Animated{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,is$1.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new AnimatedValue(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return is$1.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,is$1.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class AnimatedString extends AnimatedValue{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=createInterpolator({output:[e,e]})}static create(e){return new AnimatedString(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(is$1.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=createInterpolator({output:[this.getValue(),e]})),this._value=0,super.reset()}}const TreeContext={dependencies:null};class AnimatedObject extends Animated{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return eachProp(this.source,((r,n)=>{isAnimated(r)?t[n]=r.getValue(e):hasFluidValue(r)?t[n]=getFluidValue(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&each$1(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return eachProp(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){TreeContext.dependencies&&hasFluidValue(e)&&TreeContext.dependencies.add(e);const t=getPayload(e);t&&each$1(t,(e=>this.add(e)))}}class AnimatedArray extends AnimatedObject{constructor(e){super(e)}static create(e){return new AnimatedArray(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(makeAnimated)),!0)}}function makeAnimated(e){return(isAnimatedString(e)?AnimatedString:AnimatedValue).create(e)}function getAnimatedType(e){const t=getAnimated(e);return t?t.constructor:is$1.arr(e)?AnimatedArray:isAnimatedString(e)?AnimatedString:AnimatedValue}function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends$1.apply(this,arguments)}const withAnimated=(e,t)=>{const r=!is$1.fun(e)||e.prototype&&e.prototype.isReactComponent;return React.forwardRef(((n,i)=>{const a=React.useRef(null),s=r&&React.useCallback((e=>{a.current=updateRef(i,e)}),[i]),[o,l]=getAnimatedState(n,t),c=useForceUpdate(),d=()=>{const e=a.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,o.getValue(!0)))&&c()},p=new PropsObserver(d,l),u=React.useRef();useIsomorphicLayoutEffect$1((()=>(u.current=p,each$1(l,(e=>addFluidObserver(e,p))),()=>{u.current&&(each$1(u.current.deps,(e=>removeFluidObserver(e,u.current))),raf.cancel(u.current.update))}))),React.useEffect(d,[]),useOnce((()=>()=>{const e=u.current;each$1(e.deps,(t=>removeFluidObserver(t,e)))}));const h=t.getComponentProps(o.getValue());return React__namespace.createElement(e,_extends$1({},h,{ref:s}))}))};class PropsObserver{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&raf.write(this.update)}}function getAnimatedState(e,t){const r=new Set;return TreeContext.dependencies=r,e.style&&(e=_extends$1({},e,{style:t.createAnimatedStyle(e.style)})),e=new AnimatedObject(e),TreeContext.dependencies=null,[e,r]}function updateRef(e,t){return e&&(is$1.fun(e)?e(t):e.current=t),t}const cacheKey=Symbol.for("AnimatedComponent"),createHost=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new AnimatedObject(e)),getComponentProps:n=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},a=e=>{const t=getDisplayName(e)||"Anonymous";return(e=is$1.str(e)?a[e]||(a[e]=withAnimated(e,i)):e[cacheKey]||(e[cacheKey]=withAnimated(e,i))).displayName=`Animated(${t})`,e};return eachProp(e,((t,r)=>{is$1.arr(e)&&(r=getDisplayName(t)),a[r]=a(t)})),{animated:a}},getDisplayName=e=>is$1.str(e)?e:e&&is$1.str(e.displayName)?e.displayName:is$1.fun(e)&&e.name||null;function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_extends.apply(this,arguments)}function callProp(e,...t){return is$1.fun(e)?e(...t):e}const matchProp=(e,t)=>!0===e||!!(t&&e&&(is$1.fun(e)?e(t):toArray(e).includes(t))),resolveProp=(e,t)=>is$1.obj(e)?t&&e[t]:e,getDefaultProp=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,noopTransform=e=>e,getDefaultProps=(e,t=noopTransform)=>{let r=DEFAULT_PROPS;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const r=t(e[i],i);is$1.und(r)||(n[i]=r)}return n},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={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 getForwardProps(e){const t={};let r=0;if(eachProp(e,((e,n)=>{RESERVED_PROPS[n]||(t[n]=e,r++)})),r)return t}function inferTo(e){const t=getForwardProps(e);if(t){const r={to:t};return eachProp(e,((e,n)=>n in t||(r[n]=e))),r}return _extends({},e)}function computeGoal(e){return e=getFluidValue(e),is$1.arr(e)?e.map(computeGoal):isAnimatedString(e)?globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function hasProps(e){for(const t in e)return!0;return!1}function isAsyncTo(e){return is$1.fun(e)||is$1.arr(e)&&is$1.obj(e[0])}function detachRefs(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function replaceRef(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},defaults=_extends({},config.default,{mass:1,damping:1,easing:easings.linear,clamp:!1});class AnimationConfig{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,defaults)}}function mergeConfig(e,t,r){r&&(sanitizeConfig(r=_extends({},r),t),t=_extends({},r,t)),sanitizeConfig(e,t),Object.assign(e,t);for(const t in defaults)null==e[t]&&(e[t]=defaults[t]);let{mass:n,frequency:i,damping:a}=e;return is$1.und(i)||(i<.01&&(i=.01),a<0&&(a=0),e.tension=Math.pow(2*Math.PI/i,2)*n,e.friction=4*Math.PI*a*n/i),e}function sanitizeConfig(e,t){if(is$1.und(t.decay)){const r=!is$1.und(t.tension)||!is$1.und(t.friction);!r&&is$1.und(t.frequency)&&is$1.und(t.damping)&&is$1.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const emptyArray=[];class Animation{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.to=void 0,this.from=void 0,this.config=new AnimationConfig,this.immediate=!1}}function scheduleProps(e,{key:t,props:r,defaultProps:n,state:i,actions:a}){return new Promise(((s,o)=>{var l;let c,d,p=matchProp(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(p)m();else{is$1.und(r.pause)||(i.paused=matchProp(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=i.paused||matchProp(e,t)),c=callProp(r.delay||0,t),e?(i.resumeQueue.add(h),a.pause()):(a.resume(),h())}function u(){i.resumeQueue.add(h),i.timeouts.delete(d),d.cancel(),c=d.time-raf.now()}function h(){c>0&&!globals.skipAnimation?(i.delayed=!0,d=raf.setTimeout(m,c),i.pauseQueue.add(u),i.timeouts.add(d)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(u),i.timeouts.delete(d),e<=(i.cancelId||0)&&(p=!0);try{a.start(_extends({},r,{callId:e,cancel:p}),s)}catch(e){o(e)}}}))}const getCombinedResult=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?getCancelledResult(e.get()):t.every((e=>e.noop))?getNoopResult(e.get()):getFinishedResult(e.get(),t.every((e=>e.finished))),getNoopResult=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),getCancelledResult=e=>({value:e,cancelled:!0,finished:!1});function runAsync(e,t,r,n){const{callId:i,parentId:a,onRest:s}=t,{asyncTo:o,promise:l}=r;return a||e!==o||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const c=getDefaultProps(t,((e,t)=>"onRest"===t?void 0:e));let d,p;const u=new Promise(((e,t)=>(d=e,p=t))),h=e=>{const t=i<=(r.cancelId||0)&&getCancelledResult(n)||i!==r.asyncId&&getFinishedResult(n,!1);if(t)throw e.result=t,p(e),e},m=(e,t)=>{const a=new BailSignal,s=new SkipAnimationSignal;return(async()=>{if(globals.skipAnimation)throw stopAsync(r),s.result=getFinishedResult(n,!1),p(s),s;h(a);const o=is$1.obj(e)?_extends({},e):_extends({},t,{to:e});o.parentId=i,eachProp(c,((e,t)=>{is$1.und(o[t])&&(o[t]=e)}));const l=await n.start(o);return h(a),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let f;if(globals.skipAnimation)return stopAsync(r),getFinishedResult(n,!1);try{let t;t=is$1.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,n.stop.bind(n))),await Promise.all([t.then(d),u]),f=getFinishedResult(n.get(),!0,!1)}catch(e){if(e instanceof BailSignal)f=e.result;else{if(!(e instanceof SkipAnimationSignal))throw e;f=e.result}}finally{i==r.asyncId&&(r.asyncId=a,r.asyncTo=a?o:void 0,r.promise=a?l:void 0)}return is$1.fun(s)&&raf.batchedUpdates((()=>{s(f,n,n.item)})),f})():l}function stopAsync(e,t){flush(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class BailSignal 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 SkipAnimationSignal extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const isFrameValue=e=>e instanceof FrameValue;let nextId$1=1;class FrameValue extends FluidValue{constructor(...e){super(...e),this.id=nextId$1++,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=getAnimated(this);return e&&e.getValue()}to(...e){return globals.to(this,e)}interpolate(...e){return deprecateInterpolate(),globals.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){callFluidObservers(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:e})}}const $P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=e=>(e[$P]&HAS_ANIMATED)>0,isAnimating=e=>(e[$P]&IS_ANIMATING)>0,isPaused=e=>(e[$P]&IS_PAUSED)>0,setActiveBit=(e,t)=>t?e[$P]|=IS_ANIMATING|HAS_ANIMATED:e[$P]&=~IS_ANIMATING,setPausedBit=(e,t)=>t?e[$P]|=IS_PAUSED:e[$P]&=~IS_PAUSED;class SpringValue extends FrameValue{constructor(e,t){if(super(),this.key=void 0,this.animation=new Animation,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,!is$1.und(e)||!is$1.und(t)){const r=is$1.obj(e)?_extends({},e):_extends({},t,{from:e});is$1.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const e=getAnimated(this);return e instanceof AnimatedValue?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:i,toValues:a}=n;const s=getPayload(n.to);!s&&hasFluidValue(n.to)&&(a=toArray(getFluidValue(n.to))),n.values.forEach(((o,l)=>{if(o.done)return;const c=o.constructor==AnimatedString?1:s?s[l].lastPosition:a[l];let d=n.immediate,p=c;if(!d){if(p=o.lastPosition,i.tension<=0)return void(o.done=!0);let t=o.elapsedTime+=e;const r=n.fromValues[l],a=null!=o.v0?o.v0:o.v0=is$1.arr(i.velocity)?i.velocity[l]:i.velocity;let s;const u=i.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(is$1.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*t);p=r+a/(1-e)*(1-n),d=Math.abs(o.lastPosition-p)<=u,s=a*n}else{s=null==o.lastVelocity?a:o.lastVelocity;const t=i.restVelocity||u/10,n=i.clamp?0:i.bounce,l=!is$1.und(n),h=r==c?o.v0>0:r<c;let m,f=!1;const y=1,g=Math.ceil(e/y);for(let e=0;e<g&&(m=Math.abs(s)>t,m||(d=Math.abs(c-p)<=u,!d));++e){l&&(f=p==c||p>c==h,f&&(s=-s*n,p=c));s+=(1e-6*-i.tension*(p-c)+.001*-i.friction*s)/i.mass*y,p+=s*y}}else{let n=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,o.durationProgress>0&&(o.elapsedTime=i.duration*o.durationProgress,t=o.elapsedTime+=e)),n=(i.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,o.durationProgress=n),p=r+i.easing(n)*(c-r),s=(p-o.lastPosition)/e,d=1==n}o.lastVelocity=s,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),d=!0)}s&&!s[l].done&&(d=!1),d?o.done=!0:t=!1,o.setValue(p,i.round)&&(r=!0)}));const o=getAnimated(this),l=o.getValue();if(t){const e=getFluidValue(n.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(o.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return raf.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:e,config:t}=this.animation;raf.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 r;return is$1.und(e)?(r=this.queue||[],this.queue=[]):r=[is$1.obj(e)?e:_extends({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>getCombinedResult(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),stopAsync(this._state,e&&this._lastCallId),raf.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:r,from:n}=e;r=is$1.obj(r)?r[t]:r,(null==r||isAsyncTo(r))&&(r=void 0),n=is$1.obj(n)?n[t]:n,null==n&&(n=void 0);const i={to:r,from:n};return hasAnimated(this)||(e.reverse&&([r,n]=[n,r]),n=getFluidValue(n),is$1.und(n)?getAnimated(this)||this._set(r):this._set(n)),i}_update(e,t){let r=_extends({},e);const{key:n,defaultProps:i}=this;r.default&&Object.assign(i,getDefaultProps(r,((e,t)=>/^on/.test(t)?resolveProp(e,n):e))),mergeActiveFn(this,r,"onProps"),sendEvent(this,"onProps",r,this);const a=this._prepareNode(r);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 s=this._state;return scheduleProps(++this._lastCallId,{key:n,props:r,defaultProps:i,state:s,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(s.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(s.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,a)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=createLoopUpdate(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(getCancelledResult(this));const n=!is$1.und(e.to),i=!is$1.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(getCancelledResult(this));this._lastToId=t.callId}const{key:a,defaultProps:s,animation:o}=this,{to:l,from:c}=o;let{to:d=l,from:p=c}=e;!i||n||t.default&&!is$1.und(d)||(d=p),t.reverse&&([d,p]=[p,d]);const u=!isEqual$1(p,c);u&&(o.from=p),p=getFluidValue(p);const h=!isEqual$1(d,l);h&&this._focus(d);const m=isAsyncTo(t.to),{config:f}=o,{decay:y,velocity:g}=f;(n||i)&&(f.velocity=0),t.config&&!m&&mergeConfig(f,callProp(t.config,a),t.config!==s.config?callProp(s.config,a):void 0);let x=getAnimated(this);if(!x||is$1.und(d))return r(getFinishedResult(this,!0));const _=is$1.und(t.reset)?i&&!t.default:!is$1.und(p)&&matchProp(t.reset,a),b=_?p:this.get(),v=computeGoal(d),S=is$1.num(v)||is$1.arr(v)||isAnimatedString(v),C=!m&&(!S||matchProp(s.immediate||t.immediate,a));if(h){const e=getAnimatedType(d);if(e!==x.constructor){if(!C)throw Error(`Cannot animate between ${x.constructor.name} and ${e.name}, as the "to" prop suggests`);x=this._set(v)}}const $=x.constructor;let w=hasFluidValue(d),T=!1;if(!w){const e=_||!hasAnimated(this)&&u;(h||e)&&(T=isEqual$1(computeGoal(b),v),w=!T),(isEqual$1(o.immediate,C)||C)&&isEqual$1(f.decay,y)&&isEqual$1(f.velocity,g)||(w=!0)}if(T&&isAnimating(this)&&(o.changed&&!_?w=!0:w||this._stop(l)),!m&&((w||hasFluidValue(l))&&(o.values=x.getPayload(),o.toValues=hasFluidValue(d)?null:$==AnimatedString?[1]:toArray(v)),o.immediate!=C&&(o.immediate=C,C||_||this._set(l)),w)){const{onRest:e}=o;each$1(ACTIVE_EVENTS,(e=>mergeActiveFn(this,t,e)));const n=getFinishedResult(this,checkFinished(this,l));flushCalls(this._pendingCalls,n),this._pendingCalls.add(r),o.changed&&raf.batchedUpdates((()=>{o.changed=!_,null==e||e(n,this),_?callProp(s.onRest,n):null==o.onStart||o.onStart(n,this)}))}_&&this._set(b),m?r(runAsync(t.to,t,this._state,this)):w?this._start():isAnimating(this)&&!h?this._pendingCalls.add(r):r(getNoopResult(b))}_focus(e){const t=this.animation;e!==t.to&&(getFluidObservers(this)&&this._detach(),t.to=e,getFluidObservers(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;hasFluidValue(t)&&(addFluidObserver(t,this),isFrameValue(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;hasFluidValue(e)&&removeFluidObserver(e,this)}_set(e,t=!0){const r=getFluidValue(e);if(!is$1.und(r)){const e=getAnimated(this);if(!e||!isEqual$1(r,e.getValue())){const n=getAnimatedType(r);e&&e.constructor==n?e.setValue(r):setAnimated(this,n.create(r)),e&&raf.batchedUpdates((()=>{this._onChange(r,t)}))}}return getAnimated(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),callProp(this.animation.onChange,e,this)),callProp(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;getAnimated(this).reset(getFluidValue(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals.skipAnimation?this.finish():frameLoop.start(this)}_stop(e,t){if(isAnimating(this)){setActiveBit(this,!1);const r=this.animation;each$1(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const n=t?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,null!=e?e:r.to));flushCalls(this._pendingCalls,n),r.changed&&(r.changed=!1,sendEvent(this,"onRest",n,this))}}}function checkFinished(e,t){const r=computeGoal(t);return isEqual$1(computeGoal(e.get()),r)}function createLoopUpdate(e,t=e.loop,r=e.to){let n=callProp(t);if(n){const i=!0!==n&&inferTo(n),a=(i||e).reverse,s=!i||i.reset;return createUpdate(_extends({},e,{loop:t,default:!1,pause:void 0,to:!a||isAsyncTo(r)?r:void 0,from:s?e.from:void 0,reset:s},i))}}function createUpdate(e){const{to:t,from:r}=e=inferTo(e),n=new Set;return is$1.obj(t)&&findDefined(t,n),is$1.obj(r)&&findDefined(r,n),e.keys=n.size?Array.from(n):null,e}function declareUpdate(e){const t=createUpdate(e);return is$1.und(t.default)&&(t.default=getDefaultProps(t)),t}function findDefined(e,t){eachProp(e,((e,r)=>null!=e&&t.add(r)))}const ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(e,t,r){e.animation[r]=t[r]!==getDefaultProp(t,r)?resolveProp(t[r],e.key):void 0}function sendEvent(e,t,...r){var n,i,a,s;null==(n=(i=e.animation)[t])||n.call(i,...r),null==(a=(s=e.defaultProps)[t])||a.call(s,...r)}const BATCHED_EVENTS=["onStart","onChange","onRest"];let nextId=1;class Controller{constructor(e,t){this.id=nextId++,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(_extends({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,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];is$1.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(createUpdate(e)),this}start(e){let{queue:t}=this;return e?t=toArray(e).map(createUpdate):this.queue=[],this._flush?this._flush(this,t):(prepareKeys(this,t),flushUpdateQueue(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;each$1(toArray(t),(t=>r[t].stop(!!e)))}else stopAsync(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(is$1.und(e))this.start({pause:!0});else{const t=this.springs;each$1(toArray(e),(e=>t[e].pause()))}return this}resume(e){if(is$1.und(e))this.start({pause:!1});else{const t=this.springs;each$1(toArray(e),(e=>t[e].resume()))}return this}each(e){eachProp(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,flush(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const a=!n&&this._started,s=i||a&&r.size?this.get():null;i&&t.size&&flush(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),a&&(this._started=!1,flush(r,(([e,t])=>{t.value=s,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)}raf.onFrame(this._onFrame)}}function flushUpdateQueue(e,t){return Promise.all(t.map((t=>flushUpdate(e,t)))).then((t=>getCombinedResult(e,t)))}async function flushUpdate(e,t,r){const{keys:n,to:i,from:a,loop:s,onRest:o,onResolve:l}=t,c=is$1.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===a&&(t.from=null);const d=is$1.arr(i)||is$1.fun(i)?i:void 0;d?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):each$1(BATCHED_EVENTS,(r=>{const n=t[r];if(is$1.fun(n)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[r]=t[r])}}));const p=e._state;t.pause===!p.paused?(p.paused=t.pause,flushCalls(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const u=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),h=!0===t.cancel||!0===getDefaultProp(t,"cancel");(d||h&&p.asyncId)&&u.push(scheduleProps(++e._lastAsyncId,{props:t,state:p,actions:{pause:noop$2,resume:noop$2,start(t,r){h?(stopAsync(p,e._lastAsyncId),r(getCancelledResult(e))):(t.onRest=o,r(runAsync(d,t,p,e)))}}})),p.paused&&await new Promise((e=>{p.resumeQueue.add(e)}));const m=getCombinedResult(e,await Promise.all(u));if(s&&m.finished&&(!r||!m.noop)){const r=createLoopUpdate(t,s,i);if(r)return prepareKeys(e,[r]),flushUpdate(e,r,!0)}return l&&raf.batchedUpdates((()=>l(m,e,e.item))),m}function getSprings(e,t){const r=_extends({},e.springs);return t&&each$1(toArray(t),(e=>{is$1.und(e.keys)&&(e=createUpdate(e)),is$1.obj(e.to)||(e=_extends({},e,{to:void 0})),prepareSprings(r,e,(e=>createSpring(e)))})),setSprings(e,r),r}function setSprings(e,t){eachProp(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,addFluidObserver(t,e))}))}function createSpring(e,t){const r=new SpringValue;return r.key=e,t&&addFluidObserver(r,t),r}function prepareSprings(e,t,r){t.keys&&each$1(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function prepareKeys(e,t){each$1(t,(t=>{prepareSprings(e.springs,t,(t=>createSpring(t,e)))}))}function _objectWithoutPropertiesLoose$3(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}const _excluded$6=["children"],SpringContext=e=>{let{children:t}=e,r=_objectWithoutPropertiesLoose$3(e,_excluded$6);const n=React.useContext(ctx),i=r.pause||!!n.pause,a=r.immediate||!!n.immediate;r=useMemoOne((()=>({pause:i,immediate:a})),[i,a]);const{Provider:s}=ctx;return React__namespace.createElement(s,{value:r},t)},ctx=makeContext(SpringContext,{});function makeContext(e,t){return Object.assign(e,React__namespace.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}SpringContext.Provider=ctx.Provider,SpringContext.Consumer=ctx.Consumer;const SpringRef=()=>{const e=[],t=function(t){deprecateDirectCall();const n=[];return each$1(e,((e,i)=>{if(is$1.und(t))n.push(e.start());else{const a=r(t,e,i);a&&n.push(e.start(a))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return each$1(e,(e=>e.pause(...arguments))),this},t.resume=function(){return each$1(e,(e=>e.resume(...arguments))),this},t.set=function(t){each$1(e,(e=>e.set(t)))},t.start=function(t){const r=[];return each$1(e,((e,n)=>{if(is$1.und(t))r.push(e.start());else{const i=this._getProps(t,e,n);i&&r.push(e.start(i))}})),r},t.stop=function(){return each$1(e,(e=>e.stop(...arguments))),this},t.update=function(t){return each$1(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return is$1.fun(e)?e(r,t):e};return t._getProps=r,t};function useSprings(e,t,r){const n=is$1.fun(t)&&t;n&&!r&&(r=[]);const i=React.useMemo((()=>n||3==arguments.length?SpringRef():void 0),[]),a=React.useRef(0),s=useForceUpdate(),o=React.useMemo((()=>({ctrls:[],queue:[],flush(e,t){const r=getSprings(e,t);return a.current>0&&!o.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?flushUpdateQueue(e,t):new Promise((n=>{setSprings(e,r),o.queue.push((()=>{n(flushUpdateQueue(e,t))})),s()}))}})),[]),l=React.useRef([...o.ctrls]),c=[],d=usePrev(e)||0;function p(e,r){for(let i=e;i<r;i++){const e=l.current[i]||(l.current[i]=new Controller(null,o.flush)),r=n?n(i,e):t[i];r&&(c[i]=declareUpdate(r))}}React.useMemo((()=>{each$1(l.current.slice(e,d),(e=>{detachRefs(e,i),e.stop(!0)})),l.current.length=e,p(d,e)}),[e]),React.useMemo((()=>{p(0,Math.min(d,e))}),r);const u=l.current.map(((e,t)=>getSprings(e,c[t]))),h=React.useContext(SpringContext),m=usePrev(h),f=h!==m&&hasProps(h);useIsomorphicLayoutEffect$1((()=>{a.current++,o.ctrls=l.current;const{queue:e}=o;e.length&&(o.queue=[],each$1(e,(e=>e()))),each$1(l.current,((e,t)=>{null==i||i.add(e),f&&e.start({default:h});const r=c[t];r&&(replaceRef(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),useOnce((()=>()=>{each$1(o.ctrls,(e=>e.stop(!0)))}));const y=u.map((e=>_extends({},e)));return i?[y,i]:y}function useSpring(e,t){const r=is$1.fun(e),[[n],i]=useSprings(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,i]:n}let TransitionPhase;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(TransitionPhase||(TransitionPhase={}));class Interpolation extends FrameValue{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=createInterpolator(...t);const r=this._get(),n=getAnimatedType(r);setAnimated(this,n.create(r))}advance(e){const t=this._get();isEqual$1(t,this.get())||(getAnimated(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const e=is$1.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(...e)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each$1(getPayload(this),(e=>{e.done=!1})),globals.skipAnimation?(raf.batchedUpdates((()=>this.advance())),becomeIdle(this)):frameLoop.start(this))}_attach(){let e=1;each$1(toArray(this.source),(t=>{hasFluidValue(t)&&addFluidObserver(t,this),isFrameValue(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){each$1(toArray(this.source),(e=>{hasFluidValue(e)&&removeFluidObserver(e,this)})),this._active.clear(),becomeIdle(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=toArray(this.source).reduce(((e,t)=>Math.max(e,(isFrameValue(t)?t.priority:0)+1)),0))}}function isIdle(e){return!1!==e.idle}function checkIdle(e){return!e.size||Array.from(e).every(isIdle)}function becomeIdle(e){e.idle||(e.idle=!0,each$1(getPayload(e),(e=>{e.done=!0})),callFluidObservers(e,{type:"idle",parent:e}))}function _objectWithoutPropertiesLoose$2(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}globals.assign({createStringInterpolator:createStringInterpolator,to:(e,t)=>new Interpolation(e,t)});const _excluded$2=["style","children","scrollTop","scrollLeft","viewBox"],isCustomPropRE=/^--/;function dangerousStyleValue(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||isCustomPropRE.test(e)||isUnitlessNumber.hasOwnProperty(e)&&isUnitlessNumber[e]?(""+t).trim():t+"px"}const attributeCache={};function applyAnimatedValues(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:i,children:a,scrollTop:s,scrollLeft:o,viewBox:l}=n,c=_objectWithoutPropertiesLoose$2(n,_excluded$2),d=Object.values(c),p=Object.keys(c).map((t=>r||e.hasAttribute(t)?t:attributeCache[t]||(attributeCache[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==a&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){const r=dangerousStyleValue(t,i[t]);isCustomPropRE.test(t)?e.style.setProperty(t,r):e.style[t]=r}p.forEach(((t,r)=>{e.setAttribute(t,d[r])})),void 0!==s&&(e.scrollTop=s),void 0!==o&&(e.scrollLeft=o),void 0!==l&&e.setAttribute("viewBox",l)}let isUnitlessNumber={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 prefixKey=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce(((e,t)=>(prefixes.forEach((r=>e[prefixKey(r,t)]=e[t])),e)),isUnitlessNumber);const _excluded$1$1=["x","y","z"],domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(e,t)=>is$1.num(e)&&0!==e?e+t:e,isValueIdentity=(e,t)=>is$1.arr(e)?e.every((e=>isValueIdentity(e,t))):is$1.num(e)?e===t:parseFloat(e)===t;class AnimatedStyle extends AnimatedObject{constructor(e){let{x:t,y:r,z:n}=e,i=_objectWithoutPropertiesLoose$2(e,_excluded$1$1);const a=[],s=[];(t||r||n)&&(a.push([t||0,r||0,n||0]),s.push((e=>[`translate3d(${e.map((e=>addUnit(e,"px"))).join(",")})`,isValueIdentity(e,0)]))),eachProp(i,((e,t)=>{if("transform"===t)a.push([e||""]),s.push((e=>[e,""===e]));else if(domTransforms.test(t)){if(delete i[t],is$1.und(e))return;const r=pxTransforms.test(t)?"px":degTransforms.test(t)?"deg":"";a.push(toArray(e)),s.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${addUnit(i,r)})`,isValueIdentity(i,0)]:e=>[`${t}(${e.map((e=>addUnit(e,r))).join(",")})`,isValueIdentity(e,t.startsWith("scale")?1:0)])}})),a.length&&(i.transform=new FluidTransform(a,s)),super(i)}}class FluidTransform extends FluidValue{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 each$1(this.inputs,((r,n)=>{const i=getFluidValue(r[0]),[a,s]=this.transforms[n](is$1.arr(i)?i:r.map(getFluidValue));e+=" "+a,t=t&&s})),t?"none":e}observerAdded(e){1==e&&each$1(this.inputs,(e=>each$1(e,(e=>hasFluidValue(e)&&addFluidObserver(e,this)))))}observerRemoved(e){0==e&&each$1(this.inputs,(e=>each$1(e,(e=>hasFluidValue(e)&&removeFluidObserver(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),callFluidObservers(this,e)}}const primitives=["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"],_excluded$3=["scrollTop","scrollLeft"];globals.assign({batchedUpdates:ReactDOM.unstable_batchedUpdates,createStringInterpolator:createStringInterpolator,colors:colors});const host=createHost(primitives,{applyAnimatedValues:applyAnimatedValues,createAnimatedStyle:e=>new AnimatedStyle(e),getComponentProps:e=>_objectWithoutPropertiesLoose$2(e,_excluded$3)}),animated=host.animated,AccordionContext=React__default.default.createContext(!1),BaseColorSet={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)"}},BookingSGColorSet={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)"}},RBSColorSet={Brand:{1:"#3E4DFF",2:"#AEACFF",3:"#AD44FF",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#4855D4",PrimaryDark:"#3E49B2",Secondary:"#364891",Accent:{Dark:{1:"#5E516E",2:"#7A6F87",3:"#C5C0CC"},Light:{1:"#8397FC",2:"#ABB8FC",3:"#CED6FD ",4:"#E1E4FA",5:"#F0F2FF",6:"#FAFBFF"}},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(90, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},isArray$a=Array.isArray,isArray_1=isArray$a,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$c=Object.prototype,hasOwnProperty$b=objectProto$c.hasOwnProperty,nativeObjectToString$1=objectProto$c.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$b.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var n=!0}catch(e){}var i=nativeObjectToString$1.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),i}var _getRawTag=getRawTag$1,objectProto$b=Object.prototype,nativeObjectToString=objectProto$b.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$4(e)&&baseGetTag$4(e)==symbolTag$1}var isSymbol_1=isSymbol$4,isArray$9=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(e,t){if(isArray$9(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol$3(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$3;function isObject$6(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$6,baseGetTag$3=_baseGetTag,isObject$5=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){if(!isObject$5(e))return!1;var t=baseGetTag$3(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$4=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$a=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$a=objectProto$a.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$4(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$2(e,t){return null==e?void 0:e[t]}var _getValue=getValue$2,baseIsNative=_baseIsNative,getValue$1=_getValue;function getNative$6(e,t){var r=getValue$1(e,t);return baseIsNative(r)?r:void 0}var _getNative=getNative$6,getNative$5=_getNative,nativeCreate$4=getNative$5(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$9=Object.prototype,hasOwnProperty$9=objectProto$9.hasOwnProperty;function hashGet$1(e){var t=this.__data__;if(nativeCreate$2){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$9.call(t,e)?t[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?void 0!==t[e]:hasOwnProperty$8.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var r=e.length;r--;)if(eq$1(e[r][0],t))return r;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,r=assocIndexOf$3(t,e);return!(r<0)&&(r==t.length-1?t.pop():splice.call(t,r,1),--this.size,!0)}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,r=assocIndexOf$2(t,e);return r<0?void 0:t[r][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var r=this.__data__,n=assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$4=_getNative,root$6=_root,Map$4=getNative$4(root$6,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){var r=e.__data__;return isKeyable(t)?r["string"==typeof t?"string":"hash"]:r.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){var t=getMapData$3(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var r=getMapData(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$1);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=e.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(memoize$1.Cache||MapCache$2),r}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var t=memoize(e,(function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e})),r=t.cache;return t}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rePropName,(function(e,r,n,i){t.push(n?i.replace(reEscapeChar,"$1"):r||e)})),t})),_stringToPath=stringToPath$1;function arrayMap$1(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var _arrayMap=arrayMap$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$8=isArray_1,isSymbol$2=isSymbol_1,INFINITY$2=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){if("string"==typeof e)return e;if(isArray$8(e))return arrayMap(e,baseToString$1)+"";if(isSymbol$2(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY$2?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$3(e){return null==e?"":baseToString(e)}var toString_1=toString$3,isArray$7=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString$2=toString_1;function castPath$2(e,t){return isArray$7(e)?e:isKey$2(e,t)?[e]:stringToPath(toString$2(e))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY$1=1/0;function toKey$4(e){if("string"==typeof e||isSymbol$1(e))return e;var t=e+"";return"0"==t&&1/e==-INFINITY$1?"-0":t}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(e,t){for(var r=0,n=(t=castPath$1(t,e)).length;null!=e&&r<n;)e=e[toKey$3(t[r++])];return r&&r==n?e:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(e,t,r){var n=null==e?void 0:baseGet$1(e,t);return void 0===n?r:n}var get_1=get$1;const getValue=(e,t,r)=>t?get_1(r,t)||get_1(e,t):r||e,getCollection=(e,t)=>{const r=t||e.defaultValue;return get_1(e.collections,r)};var ThemeContextKeys;exports.ThemeContextKeys=void 0,ThemeContextKeys=exports.ThemeContextKeys||(exports.ThemeContextKeys={}),ThemeContextKeys.colorScheme="colorScheme",ThemeContextKeys.layout="layout",ThemeContextKeys.textStyleScheme="textStyleScheme",ThemeContextKeys.designTokenScheme="designTokenScheme",ThemeContextKeys.resourceScheme="resourceScheme";const ColorSpec={collections:{base:BaseColorSet,bookingsg:BookingSGColorSet,rbs:RBSColorSet},defaultValue:"base"},getThemeColors=e=>t=>{const r=t.theme,n=getCollection(ColorSpec,r[exports.ThemeContextKeys.colorScheme]);return r.options&&r.options.color?getValue(n,e,r.options.color):getValue(n,e)},Color={Brand:{1:getThemeColors("Brand.1"),2:getThemeColors("Brand.2"),3:getThemeColors("Brand.3"),4:getThemeColors("Brand.4"),5:getThemeColors("Brand.5"),6:getThemeColors("Brand.6")},Primary:getThemeColors("Primary"),PrimaryDark:getThemeColors("PrimaryDark"),Secondary:getThemeColors("Secondary"),Accent:{Light:{1:getThemeColors("Accent.Light.1"),2:getThemeColors("Accent.Light.2"),3:getThemeColors("Accent.Light.3"),4:getThemeColors("Accent.Light.4"),5:getThemeColors("Accent.Light.5"),6:getThemeColors("Accent.Light.6")},Dark:{1:getThemeColors("Accent.Dark.1"),2:getThemeColors("Accent.Dark.2"),3:getThemeColors("Accent.Dark.3")}},Neutral:{1:getThemeColors("Neutral.1"),2:getThemeColors("Neutral.2"),3:getThemeColors("Neutral.3"),4:getThemeColors("Neutral.4"),5:getThemeColors("Neutral.5"),6:getThemeColors("Neutral.6"),7:getThemeColors("Neutral.7"),8:getThemeColors("Neutral.8")},Validation:{Green:{Text:getThemeColors("Validation.Green.Text"),Icon:getThemeColors("Validation.Green.Icon"),Border:getThemeColors("Validation.Green.Border"),Background:getThemeColors("Validation.Green.Background")},Orange:{Text:getThemeColors("Validation.Orange.Text"),Icon:getThemeColors("Validation.Orange.Icon"),Border:getThemeColors("Validation.Orange.Border"),Background:getThemeColors("Validation.Orange.Background"),Badge:getThemeColors("Validation.Orange.Badge")},Red:{Text:getThemeColors("Validation.Red.Text"),Icon:getThemeColors("Validation.Red.Icon"),Border:getThemeColors("Validation.Red.Border"),Background:getThemeColors("Validation.Red.Background")},Blue:{Text:getThemeColors("Validation.Blue.Text"),Icon:getThemeColors("Validation.Blue.Icon"),Border:getThemeColors("Validation.Blue.Border"),Background:getThemeColors("Validation.Blue.Background")}},Shadow:{Accent:getThemeColors("Shadow.Accent"),Red:getThemeColors("Shadow.Red"),Elevation:getThemeColors("Shadow.Elevation")}},MediaWidths$1={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},getMediaQuerySpec=e=>Object.keys(MediaWidths$1).reduce(((t,r)=>{const n=MediaWidths$1[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),MediaQuery={MaxWidth:getMediaQuerySpec("max-width"),MinWidth:getMediaQuerySpec("min-width")},MediaWidths=MediaWidths$1,Main$3=styled__default.default.button`
2
2
  display: flex;
3
3
  justify-content: center;
4
4
  align-items: center;
@@ -931,36 +931,37 @@
931
931
  background: ${Color.Neutral[8]};
932
932
  padding: 1rem 2rem;
933
933
  box-shadow: 0 0.125rem 0.5rem rgba(104, 104, 104, 0.25);
934
- `,Card=e=>{var{children:t}=e,r=__rest$1(e,["children"]);const n=r["data-testid"]||"card";return jsxRuntime.jsx(StyledCard,Object.assign({},r,{"data-testid":n},{children:"string"==typeof t?jsxRuntime.jsx(exports.Text.Body,{children:t}):t}))},Container$q=styled__default.default.div`
934
+ `,Card=e=>{var{children:t}=e,r=__rest$1(e,["children"]);const n=r["data-testid"]||"card";return jsxRuntime.jsx(StyledCard,Object.assign({},r,{"data-testid":n},{children:"string"==typeof t?jsxRuntime.jsx(exports.Text.Body,{children:t}):t}))},fadeIn=styled.keyframes`
935
+ 0% {
936
+ opacity: 0;
937
+ }
938
+ 100% {
939
+ opacity: 1;
940
+ }
941
+ `,Container$q=styled__default.default.div`
935
942
  display: flex;
936
943
  justify-content: center;
937
944
  align-items: center;
945
+ position: relative;
938
946
 
939
947
  ${e=>{let t,r;if("small"===e.$displaySize)t="1.5rem",r="1.5rem";else t="2rem",r="2rem";return styled.css`
940
948
  height: ${t};
941
949
  width: ${r};
942
950
  `}}
943
951
 
944
- position: relative;
945
- border-radius: 4px;
946
- transition: all 200ms ease-in-out;
947
- border: 1px solid ${Color.Accent.Light[2]};
948
- background: transparent;
949
-
950
- ${e=>{let t,r;return e.selected&&(t=Color.Primary(e),r=Color.Primary(e)),e.disabled&&(t=Color.Neutral[6](e),r=Color.Neutral[6](e)),`\n\t\t\tborder: 1px solid ${t};\n\t\t\tbackground: ${r};\n\t\t`}}
952
+ svg {
953
+ animation: 200ms ease-in-out ${fadeIn};
954
+ width: 100%;
955
+ height: 100%;
956
+ color: ${e=>e.$disabled?Color.Neutral[4](e):e.$unchecked?Color.Accent.Light[2](e):Color.Primary(e)};
957
+ }
951
958
  `,Input$5=styled__default.default.input`
952
959
  position: absolute;
953
960
  opacity: 0;
954
- height: 100%;
955
961
  width: 100%;
962
+ height: 100%;
956
963
  cursor: ${e=>e.disabled?"not-allowed":"pointer"};
957
- `,Checkmark$1=styled__default.default(tick.TickIcon)`
958
- ${e=>{let t;if("small"===e.$displaySize)t="1.5rem";else t="1.75rem";return styled.css`
959
- height: ${t};
960
- width: ${t};
961
- `}}
962
- color: ${e=>e.disabled?Color.Neutral[4]:Color.Neutral[8]};
963
- `,Checkbox=e=>{var{className:t,checked:r,disabled:n,onChange:i,onKeyPress:a,displaySize:s="default"}=e,o=__rest$1(e,["className","checked","disabled","onChange","onKeyPress","displaySize"]);const[l,c]=React.useState(r);React.useEffect((()=>{c(r)}),[r]);const d=e=>{if(!n){const t=e;if(!(" "===t.key||"change"===e.type))return;i&&i(e),a&&a(t)}};return jsxRuntime.jsxs(Container$q,Object.assign({selected:l,disabled:n,className:t,"data-testid":"checkbox",$displaySize:s,role:"checkbox","aria-checked":l,"aria-labelledby":"checkbox-input",tabIndex:n?-1:0,onKeyDown:d},{children:[jsxRuntime.jsx(Input$5,Object.assign({id:"checkbox-input","data-testid":"checkbox-input","aria-hidden":"true",type:"checkbox",tabIndex:-1,onChange:d,disabled:n,checked:l},o)),l&&jsxRuntime.jsx(Checkmark$1,{id:"checkmark","data-testid":"checkmark",disabled:n,$displaySize:s})]}))};var reactResponsive={exports:{}},factory;factory=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":
964
+ `,Checkbox=e=>{var{className:t,checked:r,disabled:n,indeterminate:i,onChange:a,onKeyPress:s,displaySize:o="default"}=e,l=__rest$1(e,["className","checked","disabled","indeterminate","onChange","onKeyPress","displaySize"]);const c=React.useRef();React.useEffect((()=>{c.current.indeterminate=i}),[i]);const d=e=>{if(!n){const t=e;if(!(" "===t.key||"change"===e.type))return;a&&a(e),s&&s(t)}};return jsxRuntime.jsxs(Container$q,Object.assign({className:t,"data-testid":"checkbox",role:"checkbox","aria-checked":i?"mixed":r,"aria-labelledby":"checkbox-input",tabIndex:n?-1:0,onKeyDown:d,$displaySize:o,$disabled:n,$unchecked:!(i||r||n)},{children:[jsxRuntime.jsx(Input$5,Object.assign({id:"checkbox-input","data-testid":"checkbox-input","aria-hidden":"true",type:"checkbox",checked:r,ref:c,tabIndex:-1,onChange:d,disabled:n},l)),i?jsxRuntime.jsx(reactIcons.MinusSquareFillIcon,{"data-testid":"indeterminate"}):r?jsxRuntime.jsx(reactIcons.SquareTickFillIcon,{"data-testid":"checkmark"}):n?jsxRuntime.jsx(reactIcons.SquareFillIcon,{"data-testid":"disabled-empty-checkbox"}):jsxRuntime.jsx(reactIcons.SquareIcon,{"data-testid":"empty-checkbox"})]}))};var reactResponsive={exports:{}},factory;factory=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":
964
965
  /*!**********************************************!*\
965
966
  !*** ./node_modules/css-mediaquery/index.js ***!
966
967
  \**********************************************/(e,t)=>{t.match=function(e,t){return o(e).some((function(e){var r=e.inverse,n="all"===e.type||t.type===e.type;if(n&&r||!n&&!r)return!1;var i=e.expressions.every((function(e){var r=e.feature,n=e.modifier,i=e.value,a=t[r];if(!a)return!1;switch(r){case"orientation":case"scan":return a.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=d(i),a=d(a);break;case"resolution":i=c(i),a=c(a);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=l(i),a=l(a);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,a=parseInt(a,10)||0}switch(n){case"min":return a>=i;case"max":return a<=i;default:return a===i}}));return i&&!r||!i&&r}))},t.parse=o;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,n=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,a=/(em|rem|px|cm|mm|in|pt|pc)?$/,s=/(dpi|dpcm|dppx)?$/;function o(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),a=t[1],s=t[2],o=t[3]||"",l={};return l.inverse=!!a&&"not"===a.toLowerCase(),l.type=s?s.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],l.expressions=o.map((function(e){var t=e.match(n),r=t[1].toLowerCase().match(i);return{modifier:r[1],feature:r[2],value:t[2]}})),l}))}function l(e){var t,r=Number(e);return r||(r=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),r}function c(e){var t=parseFloat(e);switch(String(e).match(s)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":