@lifesg/react-design-system 1.0.0-alpha.7 → 1.0.0-alpha.8

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.
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import*as n from"react";import r,{cloneElement as i,useRef as o,useState as a,isValidElement as s,createRef as l,PureComponent as u,useEffect as d,useLayoutEffect as c,forwardRef as h,useCallback as C,useContext as p,useMemo as f}from"react";import{findDOMNode as g,unstable_batchedUpdates as m}from"react-dom";import y,{keyframes as v,css as L}from"styled-components";var b,H;!function(e){e.transformWithSpaces=(e,t)=>{const n="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(n,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const n=Math.floor(t/9);return e.length>=2*n||1===e.split(" ").length&&e.length>n},e.truncateOneLine=(e,t,n,r)=>{let i=0;t>n&&(i=Math.floor((t-n)/8));const o=r+i;if(o<e.length){const t=Math.floor(o/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(b||(b={})),function(e){e.getTimeValues=(e,t)=>{const n={hour:"",minute:"",period:"am"};if(!t)return n;try{if("24hr"===e){const r=M(t,e);n.minute=b.padValue(r.minute);const i=parseInt(r.hour);0===Math.floor(i/12)?(n.period="am",n.hour=0===i?"12":b.padValue(i.toString())):(n.period="pm",n.hour=12===i?i.toString():b.padValue((i-12).toString()))}else{const r=M(t,e);n.hour=b.padValue(r.hour),n.minute=b.padValue(r.minute),n.period="am"===r.period.toLowerCase()?"am":"pm"}return n}catch(e){return n}},e.updateMinutes=(e,t)=>{const n=parseInt(e);if(isNaN(n))return"add"===t?b.padValue("0"):"55";const r=Math.floor(n/5),i=(("add"===t?r+1:n%5==0?r-1:r)%12+12)%12;return b.padValue((5*i).toString())},e.updateHours=(e,t)=>{const n=parseInt(e);if(isNaN(n))return"add"===t?b.padValue("1"):"12";const r="add"===t?n+1:n-1;return r<=12&&r>0?b.padValue(r.toString()):13===r?b.padValue("1"):"12"},e.convertTo24HourFormat=e=>{const t=parseInt(e.hour);let n;return n="pm"===e.period?12===t?t.toString():(t+12).toString():12===t?"00":e.hour,`${n}:${e.minute}`},e.convertHourTo12HourFormat=e=>{const t=parseInt(e),n=t%12==0?12..toString():(t%12).toString();return b.padValue(n)},e.formatValue=(e,t)=>{try{const n=M(e,t),r=b.padValue(n.hour);let i=`${r}:${b.padValue(n.minute)}`;return"12hr"===t?(i+=n.period.toLowerCase(),i):i}catch(e){return""}}}(H||(H={}));const w=(e,t)=>{const n=parseInt(e);return"24hr"===t?n>=0&&n<=23:n>=1&&n<=12},V=e=>{const t=parseInt(e);return t>=0&&t<=59},M=(e,t)=>{const n=e.split(":"),r=new Error("Invalid format");if("12hr"===t){if(2!==n.length||4!==n[1].length)throw r;const e=n[1].substring(0,2),o=n[1].substring(2);if(!w(n[0],t)||!V(e)||"am"!==(i=o).toLowerCase()&&"pm"!==i.toLowerCase())throw r;return{hour:n[0],minute:e,period:n[1].substring(2)}}if(2!==n.length)throw r;if(!w(n[0],t)||!V(n[1]))throw r;return{hour:n[0],minute:n[1]};var i};var _=function(e,t){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_(e,t)};var S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)};var $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var k=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},x="object"==typeof $&&$&&$.Object===Object&&$,Z="object"==typeof self&&self&&self.Object===Object&&self,F=x||Z||Function("return this")(),R=F,O=function(){return R.Date.now()},P=/\s/;var B=function(e){for(var t=e.length;t--&&P.test(e.charAt(t)););return t},D=/^\s+/;var E=function(e){return e?e.slice(0,B(e)+1).replace(D,""):e},z=F.Symbol,A=z,I=Object.prototype,N=I.hasOwnProperty,T=I.toString,j=A?A.toStringTag:void 0;var W=function(e){var t=N.call(e,j),n=e[j];try{e[j]=void 0;var r=!0}catch(e){}var i=T.call(e);return r&&(t?e[j]=n:delete e[j]),i},U=Object.prototype.toString;var q=W,Q=function(e){return U.call(e)},G=z?z.toStringTag:void 0;var X=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?q(e):Q(e)},Y=function(e){return null!=e&&"object"==typeof e};var J=E,K=k,ee=function(e){return"symbol"==typeof e||Y(e)&&"[object Symbol]"==X(e)},te=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,re=/^0o[0-7]+$/i,ie=parseInt;var oe=k,ae=O,se=function(e){if("number"==typeof e)return e;if(ee(e))return NaN;if(K(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=K(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=J(e);var n=ne.test(e);return n||re.test(e)?ie(e.slice(2),n?2:8):te.test(e)?NaN:+e},le=Math.max,ue=Math.min;var de=function(e,t,n){var r,i,o,a,s,l,u=0,d=!1,c=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function C(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function p(e){return u=e,s=setTimeout(g,t),d?C(e):a}function f(e){var n=e-l;return void 0===l||n>=t||n<0||c&&e-u>=o}function g(){var e=ae();if(f(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return c?ue(n,o-(e-u)):n}(e))}function m(e){return s=void 0,h&&r?C(e):(r=i=void 0,a)}function y(){var e=ae(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return p(l);if(c)return clearTimeout(s),s=setTimeout(g,t),C(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=se(t)||0,oe(n)&&(d=!!n.leading,o=(c="maxWait"in n)?le(se(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:m(ae())},y},ce=de,he=k;var Ce=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return he(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ce(e,t,{leading:r,maxWait:t,trailing:i})},pe=function(e,t,n,r){switch(t){case"debounce":return de(e,n,r);case"throttle":return Ce(e,n,r);default:return e}},fe=function(e){return"function"==typeof e},ge=function(){return"undefined"==typeof window},me=function(e){return e instanceof Element||e instanceof HTMLDocument},ye=function(e,t,n,r){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!r||t.height===a&&!n?t:(e&&fe(e)&&e(o,a),{width:o,height:a})}))}};!function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!ge()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(ge())return null;if(t)return document.querySelector(t);if(r&&me(r))return r;if(n.targetRef&&me(n.targetRef.current))return n.targetRef.current;var i=g(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,a=void 0===o||o,s=t.onResize;if(i||a){var l=ye(s,n.setState.bind(n),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!ge()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return fe(t)?"renderProp":fe(r)?"childFunction":s(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,i=t.refreshMode,o=t.refreshRate,a=void 0===o?1e3:o,u=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=l(),n.observableElement=null,ge()||(n.resizeHandler=pe(n.createResizeHandler,i,a,u),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){ge()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,o=t.children,a=t.nodeType,s=void 0===a?"div":a,l=this.state,u={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(u);case"childFunction":return(e=o)(u);case"child":if((e=o).type&&"string"==typeof e.type){var d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(u,["targetRef"]);return i(e,d)}return i(e,u);case"childArray":return(e=o).map((function(e){return!!e&&i(e,u)}));default:return n.createElement(s,null)}}}(u);var ve=ge()?d:c;let Le=Be();const be=e=>Fe(e,Le);let He=Be();be.write=e=>Fe(e,He);let we=Be();be.onStart=e=>Fe(e,we);let Ve=Be();be.onFrame=e=>Fe(e,Ve);let Me=Be();be.onFinish=e=>Fe(e,Me);let _e=[];be.setTimeout=(e,t)=>{let n=be.now()+t,r=()=>{let e=_e.findIndex((e=>e.cancel==r));~e&&_e.splice(e,1),xe-=~e?1:0},i={time:n,handler:e,cancel:r};return _e.splice(Se(n),0,i),xe+=1,Re(),i};let Se=e=>~(~_e.findIndex((t=>t.time>e))||~_e.length);be.cancel=e=>{we.delete(e),Ve.delete(e),Le.delete(e),He.delete(e),Me.delete(e)},be.sync=e=>{Ze=!0,be.batchedUpdates(e),Ze=!1},be.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,be.onStart(n)}return r.handler=e,r.cancel=()=>{we.delete(n),t=null},r};let $e="undefined"!=typeof window?window.requestAnimationFrame:()=>{};be.use=e=>$e=e,be.now="undefined"!=typeof performance?()=>performance.now():Date.now,be.batchedUpdates=e=>e(),be.catch=console.error,be.frameLoop="always",be.advance=()=>{"demand"!==be.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Pe()};let ke=-1,xe=0,Ze=!1;function Fe(e,t){Ze?(t.delete(e),e(0)):(t.add(e),Re())}function Re(){ke<0&&(ke=0,"demand"!==be.frameLoop&&$e(Oe))}function Oe(){~ke&&($e(Oe),be.batchedUpdates(Pe))}function Pe(){let e=ke;ke=be.now();let t=Se(ke);t&&(De(_e.splice(0,t),(e=>e.handler())),xe-=t),we.flush(),Le.flush(e?Math.min(64,ke-e):16.667),Ve.flush(),He.flush(),Me.flush(),xe||(ke=-1)}function Be(){let e=new Set,t=e;return{add(n){xe+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(xe-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,xe-=t.size,De(t,(t=>t(n)&&e.add(t))),xe+=e.size,t=e)}}}function De(e,t){e.forEach((e=>{try{t(e)}catch(e){be.catch(e)}}))}function Ee(){}const ze={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 Ae(e,t){if(ze.arr(e)){if(!ze.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Ie=(e,t)=>e.forEach(t);function Ne(e,t,n){if(ze.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const Te=e=>ze.und(e)?[]:ze.arr(e)?e:[e];function je(e,t){if(e.size){const n=Array.from(e);e.clear(),Ie(n,t)}}const We=(e,...t)=>je(e,(e=>e(...t))),Ue=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let qe,Qe,Ge=null,Xe=!1,Ye=Ee;var Je=Object.freeze({__proto__:null,get createStringInterpolator(){return qe},get to(){return Qe},get colors(){return Ge},get skipAnimation(){return Xe},get willAdvance(){return Ye},assign:e=>{e.to&&(Qe=e.to),e.now&&(be.now=e.now),void 0!==e.colors&&(Ge=e.colors),null!=e.skipAnimation&&(Xe=e.skipAnimation),e.createStringInterpolator&&(qe=e.createStringInterpolator),e.requestAnimationFrame&&be.use(e.requestAnimationFrame),e.batchedUpdates&&(be.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Ye=e.willAdvance),e.frameLoop&&(be.frameLoop=e.frameLoop)}});const Ke=new Set;let et=[],tt=[],nt=0;const rt={get idle(){return!Ke.size&&!et.length},start(e){nt>e.priority?(Ke.add(e),be.onStart(it)):(ot(e),be(st))},advance:st,sort(e){if(nt)be.onFrame((()=>rt.sort(e)));else{const t=et.indexOf(e);~t&&(et.splice(t,1),at(e))}},clear(){et=[],Ke.clear()}};function it(){Ke.forEach(ot),Ke.clear(),be(st)}function ot(e){et.includes(e)||at(e)}function at(e){et.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(et,(t=>t.priority>e.priority)),0,e)}function st(e){const t=tt;for(let n=0;n<et.length;n++){const r=et[n];nt=r.priority,r.idle||(Ye(r),r.advance(e),r.idle||t.push(r))}return nt=0,tt=et,tt.length=0,et=t,et.length>0}const lt="[-+]?\\d*\\.?\\d+";function ut(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const dt=new RegExp("rgb"+ut(lt,lt,lt)),ct=new RegExp("rgba"+ut(lt,lt,lt,lt)),ht=new RegExp("hsl"+ut(lt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),Ct=new RegExp("hsla"+ut(lt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",lt)),pt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ft=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gt=/^#([0-9a-fA-F]{6})$/,mt=/^#([0-9a-fA-F]{8})$/;function yt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=yt(i,r,e+1/3),a=yt(i,r,e),s=yt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Lt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function bt(e){return(parseFloat(e)%360+360)%360/360}function Ht(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function wt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Vt(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gt.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ge&&void 0!==Ge[e]?Ge[e]:(t=dt.exec(e))?(Lt(t[1])<<24|Lt(t[2])<<16|Lt(t[3])<<8|255)>>>0:(t=ct.exec(e))?(Lt(t[1])<<24|Lt(t[2])<<16|Lt(t[3])<<8|Ht(t[4]))>>>0:(t=pt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=mt.exec(e))?parseInt(t[1],16)>>>0:(t=ft.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ht.exec(e))?(255|vt(bt(t[1]),wt(t[2]),wt(t[3])))>>>0:(t=Ct.exec(e))?(vt(bt(t[1]),wt(t[2]),wt(t[3]))|Ht(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Mt=(e,t,n)=>{if(ze.fun(e))return e;if(ze.arr(e))return Mt({range:e,output:t,extrapolate:n});if(ze.str(e.output[0]))return qe(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r;return u}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};function _t(){return _t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_t.apply(this,arguments)}const St=Symbol.for("FluidValue.get"),$t=Symbol.for("FluidValue.observers"),kt=e=>Boolean(e&&e[St]),xt=e=>e&&e[St]?e[St]():e,Zt=e=>e[$t]||null;function Ft(e,t){let n=e[$t];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Rt{constructor(e){if(this[St]=void 0,this[$t]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Ot(this,e)}}const Ot=(e,t)=>Dt(e,St,t);function Pt(e,t){if(e[St]){let n=e[$t];n||Dt(e,$t,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Bt(e,t){let n=e[$t];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[$t]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Dt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Et=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,zt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,At=new RegExp(`(${Et.source})(%|[a-z]+)`,"i"),It=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Nt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Tt=e=>{const[t,n]=jt(e);if(!t||Ue())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Nt.test(n)?Tt(n):n||e},jt=e=>{const t=Nt.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Wt;const Ut=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,qt=e=>{Wt||(Wt=Ge?new RegExp(`(${Object.keys(Ge).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>xt(e).replace(Nt,Tt).replace(zt,Vt).replace(Wt,Vt))),n=t.map((e=>e.match(Et).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Mt(_t({},e,{output:t}))));return e=>{var n;const i=!At.test(t[0])&&(null==(n=t.find((e=>At.test(e))))?void 0:n.replace(Et,""));let o=0;return t[0].replace(Et,(()=>`${r[o++](e)}${i||""}`)).replace(It,Ut)}},Qt="react-spring: ",Gt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Qt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Xt=Gt(console.warn);const Yt=Gt(console.warn);function Jt(e){return ze.str(e)&&("#"==e[0]||/\d/.test(e)||!Ue()&&Nt.test(e)||e in(Ge||{}))}const Kt="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect;function en(){const e=a()[1],t=(()=>{const e=o(!1);return Kt((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const tn=e=>d(e,nn),nn=[];function rn(e){const t=o();return d((()=>{t.current=e})),t.current}const on=Symbol.for("Animated:node"),an=e=>e&&e[on],sn=(e,t)=>{return n=e,r=on,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},ln=e=>e&&e[on]&&e[on].getPayload();class un{constructor(){this.payload=void 0,sn(this,this)}getPayload(){return this.payload||[]}}class dn extends un{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,ze.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new dn(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ze.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,ze.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class cn extends dn{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Mt({output:[e,e]})}static create(e){return new cn(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(ze.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=Mt({output:[this.getValue(),e]})),this._value=0,super.reset()}}const hn={dependencies:null};class Cn extends un{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ne(this.source,((n,r)=>{var i;(i=n)&&i[on]===i?t[r]=n.getValue(e):kt(n)?t[r]=xt(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ie(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Ne(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){hn.dependencies&&kt(e)&&hn.dependencies.add(e);const t=ln(e);t&&Ie(t,(e=>this.add(e)))}}class pn extends Cn{constructor(e){super(e)}static create(e){return new pn(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(fn)),!0)}}function fn(e){return(Jt(e)?cn:dn).create(e)}function gn(e){const t=an(e);return t?t.constructor:ze.arr(e)?pn:Jt(e)?cn:dn}function mn(){return mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const yn=(e,t)=>{const r=!ze.fun(e)||e.prototype&&e.prototype.isReactComponent;return h(((i,a)=>{const s=o(null),l=r&&C((e=>{s.current=function(e,t){e&&(ze.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),[u,c]=function(e,t){const n=new Set;hn.dependencies=n,e.style&&(e=mn({},e,{style:t.createAnimatedStyle(e.style)}));return e=new Cn(e),hn.dependencies=null,[e,n]}(i,t),h=en(),p=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&h()},f=new vn(p,c),g=o();Kt((()=>(g.current=f,Ie(c,(e=>Pt(e,f))),()=>{g.current&&(Ie(g.current.deps,(e=>Bt(e,g.current))),be.cancel(g.current.update))}))),d(p,[]),tn((()=>()=>{const e=g.current;Ie(e.deps,(t=>Bt(t,e)))}));const m=t.getComponentProps(u.getValue());return n.createElement(e,mn({},m,{ref:l}))}))};class vn{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&be.write(this.update)}}const Ln=Symbol.for("AnimatedComponent"),bn=e=>ze.str(e)?e:e&&ze.str(e.displayName)?e.displayName:ze.fun(e)&&e.name||null;function Hn(){return Hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hn.apply(this,arguments)}function wn(e,...t){return ze.fun(e)?e(...t):e}const Vn=(e,t)=>!0===e||!!(t&&e&&(ze.fun(e)?e(t):Te(e).includes(t))),Mn=(e,t)=>ze.obj(e)?t&&e[t]:e,_n=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Sn=e=>e,$n=(e,t=Sn)=>{let n=kn;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);ze.und(n)||(r[i]=n)}return r},kn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xn={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 Zn(e){const t=function(e){const t={};let n=0;if(Ne(e,((e,r)=>{xn[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Ne(e,((e,r)=>r in t||(n[r]=e))),n}return Hn({},e)}function Fn(e){return e=xt(e),ze.arr(e)?e.map(Fn):Jt(e)?Je.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Rn(e){for(const t in e)return!0;return!1}function On(e){return ze.fun(e)||ze.arr(e)&&ze.obj(e[0])}function Pn(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function Bn(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const Dn=1.70158,En=1.525*Dn,zn=2*Math.PI/3,An=2*Math.PI/4.5,In=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Nn=Hn({},{tension:170,friction:26},{mass:1,damping:1,easing:{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=>2.70158*e*e*e-Dn*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+Dn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-En)/2:(Math.pow(2*e-2,2)*((En+1)*(2*e-2)+En)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*zn),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*zn)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*An)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*An)/2+1,easeInBounce:e=>1-In(1-e),easeOutBounce:In,easeInOutBounce:e=>e<.5?(1-In(1-2*e))/2:(1+In(2*e-1))/2}.linear,clamp:!1});class Tn{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,Nn)}}function jn(e,t){if(ze.und(t.decay)){const n=!ze.und(t.tension)||!ze.und(t.friction);!n&&ze.und(t.frequency)&&ze.und(t.damping)&&ze.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Wn=[];class Un{constructor(){this.changed=!1,this.values=Wn,this.toValues=null,this.fromValues=Wn,this.to=void 0,this.from=void 0,this.config=new Tn,this.immediate=!1}}function qn(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let u,d,c=Vn(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(c)p();else{ze.und(n.pause)||(i.paused=Vn(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||Vn(e,t)),u=wn(n.delay||0,t),e?(i.resumeQueue.add(C),o.pause()):(o.resume(),C())}function h(){i.resumeQueue.add(C),i.timeouts.delete(d),d.cancel(),u=d.time-be.now()}function C(){u>0&&!Je.skipAnimation?(i.delayed=!0,d=be.setTimeout(p,u),i.pauseQueue.add(h),i.timeouts.add(d)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(d),e<=(i.cancelId||0)&&(c=!0);try{o.start(Hn({},n,{callId:e,cancel:c}),a)}catch(e){s(e)}}}))}const Qn=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Yn(e.get()):t.every((e=>e.noop))?Gn(e.get()):Xn(e.get(),t.every((e=>e.finished))),Gn=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Xn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Yn=e=>({value:e,cancelled:!0,finished:!1});function Jn(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=$n(t,((e,t)=>"onRest"===t?void 0:e));let d,c;const h=new Promise(((e,t)=>(d=e,c=t))),C=e=>{const t=i<=(n.cancelId||0)&&Yn(r)||i!==n.asyncId&&Xn(r,!1);if(t)throw e.result=t,c(e),e},p=(e,t)=>{const o=new er,a=new tr;return(async()=>{if(Je.skipAnimation)throw Kn(n),a.result=Xn(r,!1),c(a),a;C(o);const s=ze.obj(e)?Hn({},e):Hn({},t,{to:e});s.parentId=i,Ne(u,((e,t)=>{ze.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return C(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let f;if(Je.skipAnimation)return Kn(n),Xn(r,!1);try{let t;t=ze.arr(e)?(async e=>{for(const t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(d),h]),f=Xn(r.get(),!0,!1)}catch(e){if(e instanceof er)f=e.result;else{if(!(e instanceof tr))throw e;f=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return ze.fun(a)&&be.batchedUpdates((()=>{a(f,r,r.item)})),f})():l}function Kn(e,t){je(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class er 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 tr extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const nr=e=>e instanceof ir;let rr=1;class ir extends Rt{constructor(...e){super(...e),this.id=rr++,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=an(this);return e&&e.getValue()}to(...e){return Je.to(this,e)}interpolate(...e){return Xt(`${Qt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Je.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){Ft(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||rt.sort(this),Ft(this,{type:"priority",parent:this,priority:e})}}const or=Symbol.for("SpringPhase"),ar=e=>(1&e[or])>0,sr=e=>(2&e[or])>0,lr=e=>(4&e[or])>0,ur=(e,t)=>t?e[or]|=3:e[or]&=-3,dr=(e,t)=>t?e[or]|=4:e[or]&=-5;class cr extends ir{constructor(e,t){if(super(),this.key=void 0,this.animation=new Un,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,!ze.und(e)||!ze.und(t)){const n=ze.obj(e)?Hn({},e):Hn({},t,{from:e});ze.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(sr(this)||this._state.asyncTo)||lr(this)}get goal(){return xt(this.animation.to)}get velocity(){const e=an(this);return e instanceof dn?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return ar(this)}get isAnimating(){return sr(this)}get isPaused(){return lr(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=ln(r.to);!a&&kt(r.to)&&(o=Te(xt(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const u=s.constructor==cn?1:a?a[l].lastPosition:o[l];let d=r.immediate,c=u;if(!d){if(c=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=ze.arr(i.velocity)?i.velocity[l]:i.velocity;let a;if(ze.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);c=n+o/(1-e)*(1-r),d=Math.abs(s.lastPosition-c)<.1,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n))),r=i.restVelocity||t/10,l=i.clamp?0:i.bounce,h=!ze.und(l),C=n==u?s.v0>0:n<u;let p,f=!1;const g=1,m=Math.ceil(e/g);for(let e=0;e<m&&(p=Math.abs(a)>r,p||(d=Math.abs(u-c)<=t,!d));++e){h&&(f=c==u||c>u==C,f&&(a=-a*l,c=u));a+=(1e-6*-i.tension*(c-u)+.001*-i.friction*a)/i.mass*g,c+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),c=n+i.easing(r)*(u-n),a=(c-s.lastPosition)/e,d=1==r}s.lastVelocity=a,Number.isNaN(c)&&(console.warn("Got NaN while animating:",this),d=!0)}a&&!a[l].done&&(d=!1),d?s.done=!0:t=!1,s.setValue(c,i.round)&&(n=!0)}));const s=an(this),l=s.getValue();if(t){const e=xt(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return be.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(sr(this)){const{to:e,config:t}=this.animation;be.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return ze.und(e)?(n=this.queue||[],this.queue=[]):n=[ze.obj(e)?e:Hn({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Qn(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Kn(this._state,e&&this._lastCallId),be.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=ze.obj(n)?n[t]:n,(null==n||On(n))&&(n=void 0),r=ze.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return ar(this)||(e.reverse&&([n,r]=[r,n]),r=xt(r),ze.und(r)?an(this)||this._set(n):this._set(r)),i}_update(e,t){let n=Hn({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,$n(n,((e,t)=>/^on/.test(t)?Mn(e,r):e))),yr(this,n,"onProps"),vr(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return qn(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{lr(this)||(dr(this,!0),We(a.pauseQueue),vr(this,"onPause",Xn(this,hr(this,this.animation.to)),this))},resume:()=>{lr(this)&&(dr(this,!1),sr(this)&&this._resume(),We(a.resumeQueue),vr(this,"onResume",Xn(this,hr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=Cr(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Yn(this));const r=!ze.und(e.to),i=!ze.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Yn(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:d=l,from:c=u}=e;!i||r||t.default&&!ze.und(d)||(d=c),t.reverse&&([d,c]=[c,d]);const h=!Ae(c,u);h&&(s.from=c),c=xt(c);const C=!Ae(d,l);C&&this._focus(d);const p=On(t.to),{config:f}=s,{decay:g,velocity:m}=f;(r||i)&&(f.velocity=0),t.config&&!p&&function(e,t,n){n&&(jn(n=Hn({},n),t),t=Hn({},n,t)),jn(e,t),Object.assign(e,t);for(const t in Nn)null==e[t]&&(e[t]=Nn[t]);let{mass:r,frequency:i,damping:o}=e;ze.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(f,wn(t.config,o),t.config!==a.config?wn(a.config,o):void 0);let y=an(this);if(!y||ze.und(d))return n(Xn(this,!0));const v=ze.und(t.reset)?i&&!t.default:!ze.und(c)&&Vn(t.reset,o),L=v?c:this.get(),b=Fn(d),H=ze.num(b)||ze.arr(b)||Jt(b),w=!p&&(!H||Vn(a.immediate||t.immediate,o));if(C){const e=gn(d);if(e!==y.constructor){if(!w)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(b)}}const V=y.constructor;let M=kt(d),_=!1;if(!M){const e=v||!ar(this)&&h;(C||e)&&(_=Ae(Fn(L),b),M=!_),(Ae(s.immediate,w)||w)&&Ae(f.decay,g)&&Ae(f.velocity,m)||(M=!0)}if(_&&sr(this)&&(s.changed&&!v?M=!0:M||this._stop(l)),!p&&((M||kt(l))&&(s.values=y.getPayload(),s.toValues=kt(d)?null:V==cn?[1]:Te(b)),s.immediate!=w&&(s.immediate=w,w||v||this._set(l)),M)){const{onRest:e}=s;Ie(mr,(e=>yr(this,t,e)));const r=Xn(this,hr(this,l));We(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&be.batchedUpdates((()=>{s.changed=!v,null==e||e(r,this),v?wn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}v&&this._set(L),p?n(Jn(t.to,t,this._state,this)):M?this._start():sr(this)&&!C?this._pendingCalls.add(n):n(Gn(L))}_focus(e){const t=this.animation;e!==t.to&&(Zt(this)&&this._detach(),t.to=e,Zt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;kt(t)&&(Pt(t,this),nr(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;kt(e)&&Bt(e,this)}_set(e,t=!0){const n=xt(e);if(!ze.und(n)){const e=an(this);if(!e||!Ae(n,e.getValue())){const r=gn(n);e&&e.constructor==r?e.setValue(n):sn(this,r.create(n)),e&&be.batchedUpdates((()=>{this._onChange(n,t)}))}}return an(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,vr(this,"onStart",Xn(this,hr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),wn(this.animation.onChange,e,this)),wn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;an(this).reset(xt(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),sr(this)||(ur(this,!0),lr(this)||this._resume())}_resume(){Je.skipAnimation?this.finish():rt.start(this)}_stop(e,t){if(sr(this)){ur(this,!1);const n=this.animation;Ie(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ft(this,{type:"idle",parent:this});const r=t?Yn(this.get()):Xn(this.get(),hr(this,null!=e?e:n.to));We(this._pendingCalls,r),n.changed&&(n.changed=!1,vr(this,"onRest",r,this))}}}function hr(e,t){const n=Fn(t);return Ae(Fn(e.get()),n)}function Cr(e,t=e.loop,n=e.to){let r=wn(t);if(r){const i=!0!==r&&Zn(r),o=(i||e).reverse,a=!i||i.reset;return pr(Hn({},e,{loop:t,default:!1,pause:void 0,to:!o||On(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function pr(e){const{to:t,from:n}=e=Zn(e),r=new Set;return ze.obj(t)&&gr(t,r),ze.obj(n)&&gr(n,r),e.keys=r.size?Array.from(r):null,e}function fr(e){const t=pr(e);return ze.und(t.default)&&(t.default=$n(t)),t}function gr(e,t){Ne(e,((e,n)=>null!=e&&t.add(n)))}const mr=["onStart","onRest","onChange","onPause","onResume"];function yr(e,t,n){e.animation[n]=t[n]!==_n(t,n)?Mn(t[n],e.key):void 0}function vr(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const Lr=["onStart","onChange","onRest"];let br=1;class Hr{constructor(e,t){this.id=br++,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(Hn({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];ze.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(pr(e)),this}start(e){let{queue:t}=this;return e?t=Te(e).map(pr):this.queue=[],this._flush?this._flush(this,t):(kr(this,t),wr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ie(Te(t),(t=>n[t].stop(!!e)))}else Kn(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(ze.und(e))this.start({pause:!0});else{const t=this.springs;Ie(Te(e),(e=>t[e].pause()))}return this}resume(e){if(ze.und(e))this.start({pause:!1});else{const t=this.springs;Ie(Te(e),(e=>t[e].resume()))}return this}each(e){Ne(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,je(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&je(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,je(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}be.onFrame(this._onFrame)}}function wr(e,t){return Promise.all(t.map((t=>Vr(e,t)))).then((t=>Qn(e,t)))}async function Vr(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=ze.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const d=ze.arr(i)||ze.fun(i)?i:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ie(Lr,(n=>{const r=t[n];if(ze.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const c=e._state;t.pause===!c.paused?(c.paused=t.pause,We(t.pause?c.pauseQueue:c.resumeQueue)):c.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),C=!0===t.cancel||!0===_n(t,"cancel");(d||C&&c.asyncId)&&h.push(qn(++e._lastAsyncId,{props:t,state:c,actions:{pause:Ee,resume:Ee,start(t,n){C?(Kn(c,e._lastAsyncId),n(Yn(e))):(t.onRest=s,n(Jn(d,t,c,e)))}}})),c.paused&&await new Promise((e=>{c.resumeQueue.add(e)}));const p=Qn(e,await Promise.all(h));if(a&&p.finished&&(!n||!p.noop)){const n=Cr(t,a,i);if(n)return kr(e,[n]),Vr(e,n,!0)}return l&&be.batchedUpdates((()=>l(p,e,e.item))),p}function Mr(e,t){const n=Hn({},e.springs);return t&&Ie(Te(t),(e=>{ze.und(e.keys)&&(e=pr(e)),ze.obj(e.to)||(e=Hn({},e,{to:void 0})),$r(n,e,(e=>Sr(e)))})),_r(e,n),n}function _r(e,t){Ne(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Pt(t,e))}))}function Sr(e,t){const n=new cr;return n.key=e,t&&Pt(n,t),n}function $r(e,t,n){t.keys&&Ie(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function kr(e,t){Ie(t,(t=>{$r(e.springs,t,(t=>Sr(t,e)))}))}const xr=["children"],Zr=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,xr);const i=p(Fr),s=r.pause||!!i.pause,l=r.immediate||!!i.immediate;r=function(e,t){const[n]=a((()=>({inputs:t,result:e()}))),r=o(),i=r.current;let s=i;s?Boolean(t&&s.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,s.inputs))||(s={inputs:t,result:e()}):s=n;return d((()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)}),[s]),s.result}((()=>({pause:s,immediate:l})),[s,l]);const{Provider:u}=Fr;return n.createElement(u,{value:r},t)},Fr=(Rr=Zr,Or={},Object.assign(Rr,n.createContext(Or)),Rr.Provider._context=Rr,Rr.Consumer._context=Rr,Rr);var Rr,Or;Zr.Provider=Fr.Provider,Zr.Consumer=Fr.Consumer;const Pr=()=>{const e=[],t=function(t){Yt(`${Qt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Ie(e,((e,i)=>{if(ze.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Ie(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ie(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ie(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Ie(e,((e,r)=>{if(ze.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Ie(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ie(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return ze.fun(e)?e(n,t):e};return t._getProps=n,t};function Br(e,t,n){const r=ze.fun(t)&&t;r&&!n&&(n=[]);const i=f((()=>r||3==arguments.length?Pr():void 0),[]),a=o(0),s=en(),l=f((()=>({ctrls:[],queue:[],flush(e,t){const n=Mr(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?wr(e,t):new Promise((r=>{_r(e,n),l.queue.push((()=>{r(wr(e,t))})),s()}))}})),[]),u=o([...l.ctrls]),d=[],c=rn(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=u.current[i]||(u.current[i]=new Hr(null,l.flush)),n=r?r(i,e):t[i];n&&(d[i]=fr(n))}}f((()=>{Ie(u.current.slice(e,c),(e=>{Pn(e,i),e.stop(!0)})),u.current.length=e,h(c,e)}),[e]),f((()=>{h(0,Math.min(c,e))}),n);const C=u.current.map(((e,t)=>Mr(e,d[t]))),g=p(Zr),m=rn(g),y=g!==m&&Rn(g);Kt((()=>{a.current++,l.ctrls=u.current;const{queue:e}=l;e.length&&(l.queue=[],Ie(e,(e=>e()))),Ie(u.current,((e,t)=>{null==i||i.add(e),y&&e.start({default:g});const n=d[t];n&&(Bn(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),tn((()=>()=>{Ie(l.ctrls,(e=>e.stop(!0)))}));const v=C.map((e=>Hn({},e)));return i?[v,i]:v}let Dr;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Dr||(Dr={}));class Er extends ir{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Mt(...t);const n=this._get(),r=gn(n);sn(this,r.create(n))}advance(e){const t=this._get();Ae(t,this.get())||(an(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Ar(this._active)&&Ir(this)}_get(){const e=ze.arr(this.source)?this.source.map(xt):Te(xt(this.source));return this.calc(...e)}_start(){this.idle&&!Ar(this._active)&&(this.idle=!1,Ie(ln(this),(e=>{e.done=!1})),Je.skipAnimation?(be.batchedUpdates((()=>this.advance())),Ir(this)):rt.start(this))}_attach(){let e=1;Ie(Te(this.source),(t=>{kt(t)&&Pt(t,this),nr(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ie(Te(this.source),(e=>{kt(e)&&Bt(e,this)})),this._active.clear(),Ir(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Te(this.source).reduce(((e,t)=>Math.max(e,(nr(t)?t.priority:0)+1)),0))}}function zr(e){return!1!==e.idle}function Ar(e){return!e.size||Array.from(e).every(zr)}function Ir(e){e.idle||(e.idle=!0,Ie(ln(e),(e=>{e.done=!0})),Ft(e,{type:"idle",parent:e}))}function Nr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Je.assign({createStringInterpolator:qt,to:(e,t)=>new Er(e,t)});const Tr=["style","children","scrollTop","scrollLeft"],jr=/^--/;function Wr(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||jr.test(e)||qr.hasOwnProperty(e)&&qr[e]?(""+t).trim():t+"px"}const Ur={};let qr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Qr=["Webkit","Ms","Moz","O"];qr=Object.keys(qr).reduce(((e,t)=>(Qr.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),qr);const Gr=["x","y","z"],Xr=/^(matrix|translate|scale|rotate|skew)/,Yr=/^(translate)/,Jr=/^(rotate|skew)/,Kr=(e,t)=>ze.num(e)&&0!==e?e+t:e,ei=(e,t)=>ze.arr(e)?e.every((e=>ei(e,t))):ze.num(e)?e===t:parseFloat(e)===t;class ti extends Cn{constructor(e){let{x:t,y:n,z:r}=e,i=Nr(e,Gr);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Kr(e,"px"))).join(",")})`,ei(e,0)]))),Ne(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Xr.test(t)){if(delete i[t],ze.und(e))return;const n=Yr.test(t)?"px":Jr.test(t)?"deg":"";o.push(Te(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Kr(i,n)})`,ei(i,0)]:e=>[`${t}(${e.map((e=>Kr(e,n))).join(",")})`,ei(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new ni(o,a)),super(i)}}class ni extends Rt{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ie(this.inputs,((n,r)=>{const i=xt(n[0]),[o,a]=this.transforms[r](ze.arr(i)?i:n.map(xt));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Ie(this.inputs,(e=>Ie(e,(e=>kt(e)&&Pt(e,this)))))}observerRemoved(e){0==e&&Ie(this.inputs,(e=>Ie(e,(e=>kt(e)&&Bt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ft(this,e)}}const ri=["scrollTop","scrollLeft"];Je.assign({batchedUpdates:m,createStringInterpolator:qt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const ii=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Cn(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=bn(e)||"Anonymous";return(e=ze.str(e)?o[e]||(o[e]=yn(e,i)):e[Ln]||(e[Ln]=yn(e,i))).displayName=`Animated(${t})`,e};return Ne(e,((t,n)=>{ze.arr(e)&&(n=bn(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=Nr(r,Tr),u=Object.values(l),d=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Ur[t]||(Ur[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Wr(t,i[t]);jr.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new ti(e),getComponentProps:e=>Nr(e,ri)}),oi=ii.animated;var ai="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},si=Array.isArray,li="object"==typeof ai&&ai&&ai.Object===Object&&ai,ui="object"==typeof self&&self&&self.Object===Object&&self,di=li||ui||Function("return this")(),ci=di.Symbol,hi=ci,Ci=Object.prototype,pi=Ci.hasOwnProperty,fi=Ci.toString,gi=hi?hi.toStringTag:void 0;var mi=function(e){var t=pi.call(e,gi),n=e[gi];try{e[gi]=void 0;var r=!0}catch(e){}var i=fi.call(e);return r&&(t?e[gi]=n:delete e[gi]),i},yi=Object.prototype.toString;var vi=mi,Li=function(e){return yi.call(e)},bi=ci?ci.toStringTag:void 0;var Hi=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bi&&bi in Object(e)?vi(e):Li(e)};var wi=Hi,Vi=function(e){return null!=e&&"object"==typeof e};var Mi=function(e){return"symbol"==typeof e||Vi(e)&&"[object Symbol]"==wi(e)},_i=si,Si=Mi,$i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ki=/^\w*$/;var xi=function(e,t){if(_i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Si(e))||(ki.test(e)||!$i.test(e)||null!=t&&e in Object(t))};var Zi=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Fi=Hi,Ri=Zi;var Oi,Pi=function(e){if(!Ri(e))return!1;var t=Fi(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Bi=di["__core-js_shared__"],Di=(Oi=/[^.]+$/.exec(Bi&&Bi.keys&&Bi.keys.IE_PROTO||""))?"Symbol(src)_1."+Oi:"";var Ei=function(e){return!!Di&&Di in e},zi=Function.prototype.toString;var Ai=Pi,Ii=Ei,Ni=Zi,Ti=function(e){if(null!=e){try{return zi.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ji=/^\[object .+?Constructor\]$/,Wi=Function.prototype,Ui=Object.prototype,qi=Wi.toString,Qi=Ui.hasOwnProperty,Gi=RegExp("^"+qi.call(Qi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Xi=function(e){return!(!Ni(e)||Ii(e))&&(Ai(e)?Gi:ji).test(Ti(e))},Yi=function(e,t){return null==e?void 0:e[t]};var Ji=function(e,t){var n=Yi(e,t);return Xi(n)?n:void 0},Ki=Ji(Object,"create"),eo=Ki;var to=function(){this.__data__=eo?eo(null):{},this.size=0};var no=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ro=Ki,io=Object.prototype.hasOwnProperty;var oo=function(e){var t=this.__data__;if(ro){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return io.call(t,e)?t[e]:void 0},ao=Ki,so=Object.prototype.hasOwnProperty;var lo=Ki;var uo=to,co=no,ho=oo,Co=function(e){var t=this.__data__;return ao?void 0!==t[e]:so.call(t,e)},po=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=lo&&void 0===t?"__lodash_hash_undefined__":t,this};function fo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fo.prototype.clear=uo,fo.prototype.delete=co,fo.prototype.get=ho,fo.prototype.has=Co,fo.prototype.set=po;var go=fo;var mo=function(){this.__data__=[],this.size=0};var yo=function(e,t){return e===t||e!=e&&t!=t};var vo=function(e,t){for(var n=e.length;n--;)if(yo(e[n][0],t))return n;return-1},Lo=vo,bo=Array.prototype.splice;var Ho=vo;var wo=vo;var Vo=vo;var Mo=mo,_o=function(e){var t=this.__data__,n=Lo(t,e);return!(n<0)&&(n==t.length-1?t.pop():bo.call(t,n,1),--this.size,!0)},So=function(e){var t=this.__data__,n=Ho(t,e);return n<0?void 0:t[n][1]},$o=function(e){return wo(this.__data__,e)>-1},ko=function(e,t){var n=this.__data__,r=Vo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function xo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xo.prototype.clear=Mo,xo.prototype.delete=_o,xo.prototype.get=So,xo.prototype.has=$o,xo.prototype.set=ko;var Zo=xo,Fo=Ji(di,"Map"),Ro=go,Oo=Zo,Po=Fo;var Bo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Do=function(e,t){var n=e.__data__;return Bo(t)?n["string"==typeof t?"string":"hash"]:n.map},Eo=Do;var zo=Do;var Ao=Do;var Io=Do;var No=function(){this.size=0,this.__data__={hash:new Ro,map:new(Po||Oo),string:new Ro}},To=function(e){var t=Eo(this,e).delete(e);return this.size-=t?1:0,t},jo=function(e){return zo(this,e).get(e)},Wo=function(e){return Ao(this,e).has(e)},Uo=function(e,t){var n=Io(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function qo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qo.prototype.clear=No,qo.prototype.delete=To,qo.prototype.get=jo,qo.prototype.has=Wo,qo.prototype.set=Uo;var Qo=qo;function Go(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Go.Cache||Qo),n}Go.Cache=Qo;var Xo=Go;var Yo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jo=/\\(\\)?/g,Ko=function(e){var t=Xo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Yo,(function(e,n,r,i){t.push(r?i.replace(Jo,"$1"):n||e)})),t}));var ea=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},ta=si,na=Mi,ra=ci?ci.prototype:void 0,ia=ra?ra.toString:void 0;var oa=function e(t){if("string"==typeof t)return t;if(ta(t))return ea(t,e)+"";if(na(t))return ia?ia.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},aa=oa;var sa=si,la=xi,ua=Ko,da=function(e){return null==e?"":aa(e)};var ca=Mi;var ha=function(e,t){return sa(e)?e:la(e,t)?[e]:ua(da(e))},Ca=function(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var pa=function(e,t){for(var n=0,r=(t=ha(t,e)).length;null!=e&&n<r;)e=e[Ca(t[n++])];return n&&n==r?e:void 0};var fa=function(e,t,n){var r=null==e?void 0:pa(e,t);return void 0===r?n:r};const ga=(e,t,n)=>t?fa(n,t)||fa(e,t):n||e,ma=(e,t)=>{const n=t||e.defaultValue;return fa(e.collections,n)};var ya;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme"}(ya||(ya={}));const va={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},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"}}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",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"}}}},defaultValue:"base"},La=e=>t=>{const n=t.theme,r=ma(va,n[ya.colorScheme]);return n.options&&n.options.color?ga(r,e,n.options.color):ga(r,e)},ba={Brand:{1:La("Brand.1"),2:La("Brand.2"),3:La("Brand.3"),4:La("Brand.4"),5:La("Brand.5"),6:La("Brand.6")},Primary:La("Primary"),PrimaryDark:La("PrimaryDark"),Secondary:La("Secondary"),Accent:{Light:{1:La("Accent.Light.1"),2:La("Accent.Light.2"),3:La("Accent.Light.3"),4:La("Accent.Light.4"),5:La("Accent.Light.5"),6:La("Accent.Light.6")},Dark:{1:La("Accent.Dark.1"),2:La("Accent.Dark.2"),3:La("Accent.Dark.3")}},Neutral:{1:La("Neutral.1"),2:La("Neutral.2"),3:La("Neutral.3"),4:La("Neutral.4"),5:La("Neutral.5"),6:La("Neutral.6"),7:La("Neutral.7"),8:La("Neutral.8")},Validation:{Green:{Text:La("Validation.Green.Text"),Icon:La("Validation.Green.Icon"),Border:La("Validation.Green.Border"),Background:La("Validation.Green.Background")},Orange:{Text:La("Validation.Orange.Text"),Icon:La("Validation.Orange.Icon"),Border:La("Validation.Orange.Border"),Background:La("Validation.Orange.Background"),Badge:La("Validation.Orange.Badge")},Red:{Text:La("Validation.Red.Text"),Icon:La("Validation.Red.Icon"),Border:La("Validation.Red.Border"),Background:La("Validation.Red.Background")}}},Ha=y.svg`
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import*as n from"react";import r,{cloneElement as i,useRef as o,useState as a,isValidElement as s,createRef as l,PureComponent as u,useEffect as d,useLayoutEffect as c,forwardRef as h,useCallback as C,useContext as p,useMemo as f}from"react";import{findDOMNode as g,unstable_batchedUpdates as m}from"react-dom";import y,{keyframes as v,css as L}from"styled-components";var b,H;!function(e){e.transformWithSpaces=(e,t)=>{const n="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(n,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const n=Math.floor(t/9);return e.length>=2*n||1===e.split(" ").length&&e.length>n},e.truncateOneLine=(e,t,n,r)=>{let i=0;t>n&&(i=Math.floor((t-n)/8));const o=r+i;if(o<e.length){const t=Math.floor(o/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(b||(b={})),function(e){e.getTimeValues=(e,t)=>{const n={hour:"",minute:"",period:"am"};if(!t)return n;try{if("24hr"===e){const r=M(t,e);n.minute=b.padValue(r.minute);const i=parseInt(r.hour);0===Math.floor(i/12)?(n.period="am",n.hour=0===i?"12":b.padValue(i.toString())):(n.period="pm",n.hour=12===i?i.toString():b.padValue((i-12).toString()))}else{const r=M(t,e);n.hour=b.padValue(r.hour),n.minute=b.padValue(r.minute),n.period="am"===r.period.toLowerCase()?"am":"pm"}return n}catch(e){return n}},e.updateMinutes=(e,t)=>{const n=parseInt(e);if(isNaN(n))return"add"===t?b.padValue("0"):"55";const r=Math.floor(n/5),i=(("add"===t?r+1:n%5==0?r-1:r)%12+12)%12;return b.padValue((5*i).toString())},e.updateHours=(e,t)=>{const n=parseInt(e);if(isNaN(n))return"add"===t?b.padValue("1"):"12";const r="add"===t?n+1:n-1;return r<=12&&r>0?b.padValue(r.toString()):13===r?b.padValue("1"):"12"},e.convertTo24HourFormat=e=>{const t=parseInt(e.hour);let n;return n="pm"===e.period?12===t?t.toString():(t+12).toString():12===t?"00":e.hour,`${n}:${e.minute}`},e.convertHourTo12HourFormat=e=>{const t=parseInt(e),n=t%12==0?12..toString():(t%12).toString();return b.padValue(n)},e.formatValue=(e,t)=>{try{const n=M(e,t),r=b.padValue(n.hour);let i=`${r}:${b.padValue(n.minute)}`;return"12hr"===t?(i+=n.period.toLowerCase(),i):i}catch(e){return""}}}(H||(H={}));const w=(e,t)=>{const n=parseInt(e);return"24hr"===t?n>=0&&n<=23:n>=1&&n<=12},V=e=>{const t=parseInt(e);return t>=0&&t<=59},M=(e,t)=>{const n=e.split(":"),r=new Error("Invalid format");if("12hr"===t){if(2!==n.length||4!==n[1].length)throw r;const e=n[1].substring(0,2),o=n[1].substring(2);if(!w(n[0],t)||!V(e)||"am"!==(i=o).toLowerCase()&&"pm"!==i.toLowerCase())throw r;return{hour:n[0],minute:e,period:n[1].substring(2)}}if(2!==n.length)throw r;if(!w(n[0],t)||!V(n[1]))throw r;return{hour:n[0],minute:n[1]};var i};var _=function(e,t){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_(e,t)};var S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)};var $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var k=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},x="object"==typeof $&&$&&$.Object===Object&&$,Z="object"==typeof self&&self&&self.Object===Object&&self,F=x||Z||Function("return this")(),R=F,O=function(){return R.Date.now()},P=/\s/;var B=function(e){for(var t=e.length;t--&&P.test(e.charAt(t)););return t},D=/^\s+/;var E=function(e){return e?e.slice(0,B(e)+1).replace(D,""):e},A=F.Symbol,z=A,I=Object.prototype,N=I.hasOwnProperty,T=I.toString,j=z?z.toStringTag:void 0;var W=function(e){var t=N.call(e,j),n=e[j];try{e[j]=void 0;var r=!0}catch(e){}var i=T.call(e);return r&&(t?e[j]=n:delete e[j]),i},U=Object.prototype.toString;var q=W,Q=function(e){return U.call(e)},G=A?A.toStringTag:void 0;var X=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?q(e):Q(e)},Y=function(e){return null!=e&&"object"==typeof e};var J=E,K=k,ee=function(e){return"symbol"==typeof e||Y(e)&&"[object Symbol]"==X(e)},te=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,re=/^0o[0-7]+$/i,ie=parseInt;var oe=k,ae=O,se=function(e){if("number"==typeof e)return e;if(ee(e))return NaN;if(K(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=K(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=J(e);var n=ne.test(e);return n||re.test(e)?ie(e.slice(2),n?2:8):te.test(e)?NaN:+e},le=Math.max,ue=Math.min;var de=function(e,t,n){var r,i,o,a,s,l,u=0,d=!1,c=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function C(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function p(e){return u=e,s=setTimeout(g,t),d?C(e):a}function f(e){var n=e-l;return void 0===l||n>=t||n<0||c&&e-u>=o}function g(){var e=ae();if(f(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return c?ue(n,o-(e-u)):n}(e))}function m(e){return s=void 0,h&&r?C(e):(r=i=void 0,a)}function y(){var e=ae(),n=f(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return p(l);if(c)return clearTimeout(s),s=setTimeout(g,t),C(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=se(t)||0,oe(n)&&(d=!!n.leading,o=(c="maxWait"in n)?le(se(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:m(ae())},y},ce=de,he=k;var Ce=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return he(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ce(e,t,{leading:r,maxWait:t,trailing:i})},pe=function(e,t,n,r){switch(t){case"debounce":return de(e,n,r);case"throttle":return Ce(e,n,r);default:return e}},fe=function(e){return"function"==typeof e},ge=function(){return"undefined"==typeof window},me=function(e){return e instanceof Element||e instanceof HTMLDocument},ye=function(e,t,n,r){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!r||t.height===a&&!n?t:(e&&fe(e)&&e(o,a),{width:o,height:a})}))}};!function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!ge()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(ge())return null;if(t)return document.querySelector(t);if(r&&me(r))return r;if(n.targetRef&&me(n.targetRef.current))return n.targetRef.current;var i=g(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,a=void 0===o||o,s=t.onResize;if(i||a){var l=ye(s,n.setState.bind(n),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!ge()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return fe(t)?"renderProp":fe(r)?"childFunction":s(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,i=t.refreshMode,o=t.refreshRate,a=void 0===o?1e3:o,u=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=l(),n.observableElement=null,ge()||(n.resizeHandler=pe(n.createResizeHandler,i,a,u),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){ge()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,o=t.children,a=t.nodeType,s=void 0===a?"div":a,l=this.state,u={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(u);case"childFunction":return(e=o)(u);case"child":if((e=o).type&&"string"==typeof e.type){var d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(u,["targetRef"]);return i(e,d)}return i(e,u);case"childArray":return(e=o).map((function(e){return!!e&&i(e,u)}));default:return n.createElement(s,null)}}}(u);var ve=ge()?d:c;let Le=Be();const be=e=>Fe(e,Le);let He=Be();be.write=e=>Fe(e,He);let we=Be();be.onStart=e=>Fe(e,we);let Ve=Be();be.onFrame=e=>Fe(e,Ve);let Me=Be();be.onFinish=e=>Fe(e,Me);let _e=[];be.setTimeout=(e,t)=>{let n=be.now()+t,r=()=>{let e=_e.findIndex((e=>e.cancel==r));~e&&_e.splice(e,1),xe-=~e?1:0},i={time:n,handler:e,cancel:r};return _e.splice(Se(n),0,i),xe+=1,Re(),i};let Se=e=>~(~_e.findIndex((t=>t.time>e))||~_e.length);be.cancel=e=>{we.delete(e),Ve.delete(e),Le.delete(e),He.delete(e),Me.delete(e)},be.sync=e=>{Ze=!0,be.batchedUpdates(e),Ze=!1},be.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,be.onStart(n)}return r.handler=e,r.cancel=()=>{we.delete(n),t=null},r};let $e="undefined"!=typeof window?window.requestAnimationFrame:()=>{};be.use=e=>$e=e,be.now="undefined"!=typeof performance?()=>performance.now():Date.now,be.batchedUpdates=e=>e(),be.catch=console.error,be.frameLoop="always",be.advance=()=>{"demand"!==be.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Pe()};let ke=-1,xe=0,Ze=!1;function Fe(e,t){Ze?(t.delete(e),e(0)):(t.add(e),Re())}function Re(){ke<0&&(ke=0,"demand"!==be.frameLoop&&$e(Oe))}function Oe(){~ke&&($e(Oe),be.batchedUpdates(Pe))}function Pe(){let e=ke;ke=be.now();let t=Se(ke);t&&(De(_e.splice(0,t),(e=>e.handler())),xe-=t),we.flush(),Le.flush(e?Math.min(64,ke-e):16.667),Ve.flush(),He.flush(),Me.flush(),xe||(ke=-1)}function Be(){let e=new Set,t=e;return{add(n){xe+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(xe-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,xe-=t.size,De(t,(t=>t(n)&&e.add(t))),xe+=e.size,t=e)}}}function De(e,t){e.forEach((e=>{try{t(e)}catch(e){be.catch(e)}}))}function Ee(){}const Ae={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 ze(e,t){if(Ae.arr(e)){if(!Ae.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Ie=(e,t)=>e.forEach(t);function Ne(e,t,n){if(Ae.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const Te=e=>Ae.und(e)?[]:Ae.arr(e)?e:[e];function je(e,t){if(e.size){const n=Array.from(e);e.clear(),Ie(n,t)}}const We=(e,...t)=>je(e,(e=>e(...t))),Ue=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let qe,Qe,Ge=null,Xe=!1,Ye=Ee;var Je=Object.freeze({__proto__:null,get createStringInterpolator(){return qe},get to(){return Qe},get colors(){return Ge},get skipAnimation(){return Xe},get willAdvance(){return Ye},assign:e=>{e.to&&(Qe=e.to),e.now&&(be.now=e.now),void 0!==e.colors&&(Ge=e.colors),null!=e.skipAnimation&&(Xe=e.skipAnimation),e.createStringInterpolator&&(qe=e.createStringInterpolator),e.requestAnimationFrame&&be.use(e.requestAnimationFrame),e.batchedUpdates&&(be.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Ye=e.willAdvance),e.frameLoop&&(be.frameLoop=e.frameLoop)}});const Ke=new Set;let et=[],tt=[],nt=0;const rt={get idle(){return!Ke.size&&!et.length},start(e){nt>e.priority?(Ke.add(e),be.onStart(it)):(ot(e),be(st))},advance:st,sort(e){if(nt)be.onFrame((()=>rt.sort(e)));else{const t=et.indexOf(e);~t&&(et.splice(t,1),at(e))}},clear(){et=[],Ke.clear()}};function it(){Ke.forEach(ot),Ke.clear(),be(st)}function ot(e){et.includes(e)||at(e)}function at(e){et.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(et,(t=>t.priority>e.priority)),0,e)}function st(e){const t=tt;for(let n=0;n<et.length;n++){const r=et[n];nt=r.priority,r.idle||(Ye(r),r.advance(e),r.idle||t.push(r))}return nt=0,tt=et,tt.length=0,et=t,et.length>0}const lt="[-+]?\\d*\\.?\\d+";function ut(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const dt=new RegExp("rgb"+ut(lt,lt,lt)),ct=new RegExp("rgba"+ut(lt,lt,lt,lt)),ht=new RegExp("hsl"+ut(lt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),Ct=new RegExp("hsla"+ut(lt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",lt)),pt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ft=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gt=/^#([0-9a-fA-F]{6})$/,mt=/^#([0-9a-fA-F]{8})$/;function yt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=yt(i,r,e+1/3),a=yt(i,r,e),s=yt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Lt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function bt(e){return(parseFloat(e)%360+360)%360/360}function Ht(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function wt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Vt(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gt.exec(e))?parseInt(t[1]+"ff",16)>>>0:Ge&&void 0!==Ge[e]?Ge[e]:(t=dt.exec(e))?(Lt(t[1])<<24|Lt(t[2])<<16|Lt(t[3])<<8|255)>>>0:(t=ct.exec(e))?(Lt(t[1])<<24|Lt(t[2])<<16|Lt(t[3])<<8|Ht(t[4]))>>>0:(t=pt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=mt.exec(e))?parseInt(t[1],16)>>>0:(t=ft.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ht.exec(e))?(255|vt(bt(t[1]),wt(t[2]),wt(t[3])))>>>0:(t=Ct.exec(e))?(vt(bt(t[1]),wt(t[2]),wt(t[3]))|Ht(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Mt=(e,t,n)=>{if(Ae.fun(e))return e;if(Ae.arr(e))return Mt({range:e,output:t,extrapolate:n});if(Ae.str(e.output[0]))return qe(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r;return u}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};function _t(){return _t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_t.apply(this,arguments)}const St=Symbol.for("FluidValue.get"),$t=Symbol.for("FluidValue.observers"),kt=e=>Boolean(e&&e[St]),xt=e=>e&&e[St]?e[St]():e,Zt=e=>e[$t]||null;function Ft(e,t){let n=e[$t];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Rt{constructor(e){if(this[St]=void 0,this[$t]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Ot(this,e)}}const Ot=(e,t)=>Dt(e,St,t);function Pt(e,t){if(e[St]){let n=e[$t];n||Dt(e,$t,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Bt(e,t){let n=e[$t];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[$t]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Dt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Et=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,At=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,zt=new RegExp(`(${Et.source})(%|[a-z]+)`,"i"),It=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Nt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Tt=e=>{const[t,n]=jt(e);if(!t||Ue())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Nt.test(n)?Tt(n):n||e},jt=e=>{const t=Nt.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Wt;const Ut=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,qt=e=>{Wt||(Wt=Ge?new RegExp(`(${Object.keys(Ge).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>xt(e).replace(Nt,Tt).replace(At,Vt).replace(Wt,Vt))),n=t.map((e=>e.match(Et).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Mt(_t({},e,{output:t}))));return e=>{var n;const i=!zt.test(t[0])&&(null==(n=t.find((e=>zt.test(e))))?void 0:n.replace(Et,""));let o=0;return t[0].replace(Et,(()=>`${r[o++](e)}${i||""}`)).replace(It,Ut)}},Qt="react-spring: ",Gt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Qt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Xt=Gt(console.warn);const Yt=Gt(console.warn);function Jt(e){return Ae.str(e)&&("#"==e[0]||/\d/.test(e)||!Ue()&&Nt.test(e)||e in(Ge||{}))}const Kt="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect;function en(){const e=a()[1],t=(()=>{const e=o(!1);return Kt((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const tn=e=>d(e,nn),nn=[];function rn(e){const t=o();return d((()=>{t.current=e})),t.current}const on=Symbol.for("Animated:node"),an=e=>e&&e[on],sn=(e,t)=>{return n=e,r=on,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},ln=e=>e&&e[on]&&e[on].getPayload();class un{constructor(){this.payload=void 0,sn(this,this)}getPayload(){return this.payload||[]}}class dn extends un{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,Ae.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new dn(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ae.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,Ae.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class cn extends dn{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Mt({output:[e,e]})}static create(e){return new cn(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Ae.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=Mt({output:[this.getValue(),e]})),this._value=0,super.reset()}}const hn={dependencies:null};class Cn extends un{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ne(this.source,((n,r)=>{var i;(i=n)&&i[on]===i?t[r]=n.getValue(e):kt(n)?t[r]=xt(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ie(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Ne(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){hn.dependencies&&kt(e)&&hn.dependencies.add(e);const t=ln(e);t&&Ie(t,(e=>this.add(e)))}}class pn extends Cn{constructor(e){super(e)}static create(e){return new pn(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(fn)),!0)}}function fn(e){return(Jt(e)?cn:dn).create(e)}function gn(e){const t=an(e);return t?t.constructor:Ae.arr(e)?pn:Jt(e)?cn:dn}function mn(){return mn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mn.apply(this,arguments)}const yn=(e,t)=>{const r=!Ae.fun(e)||e.prototype&&e.prototype.isReactComponent;return h(((i,a)=>{const s=o(null),l=r&&C((e=>{s.current=function(e,t){e&&(Ae.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),[u,c]=function(e,t){const n=new Set;hn.dependencies=n,e.style&&(e=mn({},e,{style:t.createAnimatedStyle(e.style)}));return e=new Cn(e),hn.dependencies=null,[e,n]}(i,t),h=en(),p=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&h()},f=new vn(p,c),g=o();Kt((()=>(g.current=f,Ie(c,(e=>Pt(e,f))),()=>{g.current&&(Ie(g.current.deps,(e=>Bt(e,g.current))),be.cancel(g.current.update))}))),d(p,[]),tn((()=>()=>{const e=g.current;Ie(e.deps,(t=>Bt(t,e)))}));const m=t.getComponentProps(u.getValue());return n.createElement(e,mn({},m,{ref:l}))}))};class vn{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&be.write(this.update)}}const Ln=Symbol.for("AnimatedComponent"),bn=e=>Ae.str(e)?e:e&&Ae.str(e.displayName)?e.displayName:Ae.fun(e)&&e.name||null;function Hn(){return Hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hn.apply(this,arguments)}function wn(e,...t){return Ae.fun(e)?e(...t):e}const Vn=(e,t)=>!0===e||!!(t&&e&&(Ae.fun(e)?e(t):Te(e).includes(t))),Mn=(e,t)=>Ae.obj(e)?t&&e[t]:e,_n=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Sn=e=>e,$n=(e,t=Sn)=>{let n=kn;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);Ae.und(n)||(r[i]=n)}return r},kn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xn={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 Zn(e){const t=function(e){const t={};let n=0;if(Ne(e,((e,r)=>{xn[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Ne(e,((e,r)=>r in t||(n[r]=e))),n}return Hn({},e)}function Fn(e){return e=xt(e),Ae.arr(e)?e.map(Fn):Jt(e)?Je.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Rn(e){for(const t in e)return!0;return!1}function On(e){return Ae.fun(e)||Ae.arr(e)&&Ae.obj(e[0])}function Pn(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function Bn(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const Dn=1.70158,En=1.525*Dn,An=2*Math.PI/3,zn=2*Math.PI/4.5,In=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Nn=Hn({},{tension:170,friction:26},{mass:1,damping:1,easing:{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=>2.70158*e*e*e-Dn*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+Dn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-En)/2:(Math.pow(2*e-2,2)*((En+1)*(2*e-2)+En)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*An),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*An)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zn)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zn)/2+1,easeInBounce:e=>1-In(1-e),easeOutBounce:In,easeInOutBounce:e=>e<.5?(1-In(1-2*e))/2:(1+In(2*e-1))/2}.linear,clamp:!1});class Tn{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,Nn)}}function jn(e,t){if(Ae.und(t.decay)){const n=!Ae.und(t.tension)||!Ae.und(t.friction);!n&&Ae.und(t.frequency)&&Ae.und(t.damping)&&Ae.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Wn=[];class Un{constructor(){this.changed=!1,this.values=Wn,this.toValues=null,this.fromValues=Wn,this.to=void 0,this.from=void 0,this.config=new Tn,this.immediate=!1}}function qn(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let u,d,c=Vn(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(c)p();else{Ae.und(n.pause)||(i.paused=Vn(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||Vn(e,t)),u=wn(n.delay||0,t),e?(i.resumeQueue.add(C),o.pause()):(o.resume(),C())}function h(){i.resumeQueue.add(C),i.timeouts.delete(d),d.cancel(),u=d.time-be.now()}function C(){u>0&&!Je.skipAnimation?(i.delayed=!0,d=be.setTimeout(p,u),i.pauseQueue.add(h),i.timeouts.add(d)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(d),e<=(i.cancelId||0)&&(c=!0);try{o.start(Hn({},n,{callId:e,cancel:c}),a)}catch(e){s(e)}}}))}const Qn=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Yn(e.get()):t.every((e=>e.noop))?Gn(e.get()):Xn(e.get(),t.every((e=>e.finished))),Gn=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Xn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Yn=e=>({value:e,cancelled:!0,finished:!1});function Jn(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=$n(t,((e,t)=>"onRest"===t?void 0:e));let d,c;const h=new Promise(((e,t)=>(d=e,c=t))),C=e=>{const t=i<=(n.cancelId||0)&&Yn(r)||i!==n.asyncId&&Xn(r,!1);if(t)throw e.result=t,c(e),e},p=(e,t)=>{const o=new er,a=new tr;return(async()=>{if(Je.skipAnimation)throw Kn(n),a.result=Xn(r,!1),c(a),a;C(o);const s=Ae.obj(e)?Hn({},e):Hn({},t,{to:e});s.parentId=i,Ne(u,((e,t)=>{Ae.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return C(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let f;if(Je.skipAnimation)return Kn(n),Xn(r,!1);try{let t;t=Ae.arr(e)?(async e=>{for(const t of e)await p(t)})(e):Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([t.then(d),h]),f=Xn(r.get(),!0,!1)}catch(e){if(e instanceof er)f=e.result;else{if(!(e instanceof tr))throw e;f=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Ae.fun(a)&&be.batchedUpdates((()=>{a(f,r,r.item)})),f})():l}function Kn(e,t){je(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class er 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 tr extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const nr=e=>e instanceof ir;let rr=1;class ir extends Rt{constructor(...e){super(...e),this.id=rr++,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=an(this);return e&&e.getValue()}to(...e){return Je.to(this,e)}interpolate(...e){return Xt(`${Qt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Je.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){Ft(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||rt.sort(this),Ft(this,{type:"priority",parent:this,priority:e})}}const or=Symbol.for("SpringPhase"),ar=e=>(1&e[or])>0,sr=e=>(2&e[or])>0,lr=e=>(4&e[or])>0,ur=(e,t)=>t?e[or]|=3:e[or]&=-3,dr=(e,t)=>t?e[or]|=4:e[or]&=-5;class cr extends ir{constructor(e,t){if(super(),this.key=void 0,this.animation=new Un,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,!Ae.und(e)||!Ae.und(t)){const n=Ae.obj(e)?Hn({},e):Hn({},t,{from:e});Ae.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(sr(this)||this._state.asyncTo)||lr(this)}get goal(){return xt(this.animation.to)}get velocity(){const e=an(this);return e instanceof dn?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return ar(this)}get isAnimating(){return sr(this)}get isPaused(){return lr(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=ln(r.to);!a&&kt(r.to)&&(o=Te(xt(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const u=s.constructor==cn?1:a?a[l].lastPosition:o[l];let d=r.immediate,c=u;if(!d){if(c=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=Ae.arr(i.velocity)?i.velocity[l]:i.velocity;let a;if(Ae.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);c=n+o/(1-e)*(1-r),d=Math.abs(s.lastPosition-c)<.1,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n))),r=i.restVelocity||t/10,l=i.clamp?0:i.bounce,h=!Ae.und(l),C=n==u?s.v0>0:n<u;let p,f=!1;const g=1,m=Math.ceil(e/g);for(let e=0;e<m&&(p=Math.abs(a)>r,p||(d=Math.abs(u-c)<=t,!d));++e){h&&(f=c==u||c>u==C,f&&(a=-a*l,c=u));a+=(1e-6*-i.tension*(c-u)+.001*-i.friction*a)/i.mass*g,c+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),c=n+i.easing(r)*(u-n),a=(c-s.lastPosition)/e,d=1==r}s.lastVelocity=a,Number.isNaN(c)&&(console.warn("Got NaN while animating:",this),d=!0)}a&&!a[l].done&&(d=!1),d?s.done=!0:t=!1,s.setValue(c,i.round)&&(n=!0)}));const s=an(this),l=s.getValue();if(t){const e=xt(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return be.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(sr(this)){const{to:e,config:t}=this.animation;be.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Ae.und(e)?(n=this.queue||[],this.queue=[]):n=[Ae.obj(e)?e:Hn({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Qn(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Kn(this._state,e&&this._lastCallId),be.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Ae.obj(n)?n[t]:n,(null==n||On(n))&&(n=void 0),r=Ae.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return ar(this)||(e.reverse&&([n,r]=[r,n]),r=xt(r),Ae.und(r)?an(this)||this._set(n):this._set(r)),i}_update(e,t){let n=Hn({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,$n(n,((e,t)=>/^on/.test(t)?Mn(e,r):e))),yr(this,n,"onProps"),vr(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return qn(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{lr(this)||(dr(this,!0),We(a.pauseQueue),vr(this,"onPause",Xn(this,hr(this,this.animation.to)),this))},resume:()=>{lr(this)&&(dr(this,!1),sr(this)&&this._resume(),We(a.resumeQueue),vr(this,"onResume",Xn(this,hr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=Cr(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Yn(this));const r=!Ae.und(e.to),i=!Ae.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Yn(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:d=l,from:c=u}=e;!i||r||t.default&&!Ae.und(d)||(d=c),t.reverse&&([d,c]=[c,d]);const h=!ze(c,u);h&&(s.from=c),c=xt(c);const C=!ze(d,l);C&&this._focus(d);const p=On(t.to),{config:f}=s,{decay:g,velocity:m}=f;(r||i)&&(f.velocity=0),t.config&&!p&&function(e,t,n){n&&(jn(n=Hn({},n),t),t=Hn({},n,t)),jn(e,t),Object.assign(e,t);for(const t in Nn)null==e[t]&&(e[t]=Nn[t]);let{mass:r,frequency:i,damping:o}=e;Ae.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(f,wn(t.config,o),t.config!==a.config?wn(a.config,o):void 0);let y=an(this);if(!y||Ae.und(d))return n(Xn(this,!0));const v=Ae.und(t.reset)?i&&!t.default:!Ae.und(c)&&Vn(t.reset,o),L=v?c:this.get(),b=Fn(d),H=Ae.num(b)||Ae.arr(b)||Jt(b),w=!p&&(!H||Vn(a.immediate||t.immediate,o));if(C){const e=gn(d);if(e!==y.constructor){if(!w)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(b)}}const V=y.constructor;let M=kt(d),_=!1;if(!M){const e=v||!ar(this)&&h;(C||e)&&(_=ze(Fn(L),b),M=!_),(ze(s.immediate,w)||w)&&ze(f.decay,g)&&ze(f.velocity,m)||(M=!0)}if(_&&sr(this)&&(s.changed&&!v?M=!0:M||this._stop(l)),!p&&((M||kt(l))&&(s.values=y.getPayload(),s.toValues=kt(d)?null:V==cn?[1]:Te(b)),s.immediate!=w&&(s.immediate=w,w||v||this._set(l)),M)){const{onRest:e}=s;Ie(mr,(e=>yr(this,t,e)));const r=Xn(this,hr(this,l));We(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&be.batchedUpdates((()=>{s.changed=!v,null==e||e(r,this),v?wn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}v&&this._set(L),p?n(Jn(t.to,t,this._state,this)):M?this._start():sr(this)&&!C?this._pendingCalls.add(n):n(Gn(L))}_focus(e){const t=this.animation;e!==t.to&&(Zt(this)&&this._detach(),t.to=e,Zt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;kt(t)&&(Pt(t,this),nr(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;kt(e)&&Bt(e,this)}_set(e,t=!0){const n=xt(e);if(!Ae.und(n)){const e=an(this);if(!e||!ze(n,e.getValue())){const r=gn(n);e&&e.constructor==r?e.setValue(n):sn(this,r.create(n)),e&&be.batchedUpdates((()=>{this._onChange(n,t)}))}}return an(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,vr(this,"onStart",Xn(this,hr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),wn(this.animation.onChange,e,this)),wn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;an(this).reset(xt(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),sr(this)||(ur(this,!0),lr(this)||this._resume())}_resume(){Je.skipAnimation?this.finish():rt.start(this)}_stop(e,t){if(sr(this)){ur(this,!1);const n=this.animation;Ie(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ft(this,{type:"idle",parent:this});const r=t?Yn(this.get()):Xn(this.get(),hr(this,null!=e?e:n.to));We(this._pendingCalls,r),n.changed&&(n.changed=!1,vr(this,"onRest",r,this))}}}function hr(e,t){const n=Fn(t);return ze(Fn(e.get()),n)}function Cr(e,t=e.loop,n=e.to){let r=wn(t);if(r){const i=!0!==r&&Zn(r),o=(i||e).reverse,a=!i||i.reset;return pr(Hn({},e,{loop:t,default:!1,pause:void 0,to:!o||On(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function pr(e){const{to:t,from:n}=e=Zn(e),r=new Set;return Ae.obj(t)&&gr(t,r),Ae.obj(n)&&gr(n,r),e.keys=r.size?Array.from(r):null,e}function fr(e){const t=pr(e);return Ae.und(t.default)&&(t.default=$n(t)),t}function gr(e,t){Ne(e,((e,n)=>null!=e&&t.add(n)))}const mr=["onStart","onRest","onChange","onPause","onResume"];function yr(e,t,n){e.animation[n]=t[n]!==_n(t,n)?Mn(t[n],e.key):void 0}function vr(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const Lr=["onStart","onChange","onRest"];let br=1;class Hr{constructor(e,t){this.id=br++,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(Hn({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Ae.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(pr(e)),this}start(e){let{queue:t}=this;return e?t=Te(e).map(pr):this.queue=[],this._flush?this._flush(this,t):(kr(this,t),wr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ie(Te(t),(t=>n[t].stop(!!e)))}else Kn(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Ae.und(e))this.start({pause:!0});else{const t=this.springs;Ie(Te(e),(e=>t[e].pause()))}return this}resume(e){if(Ae.und(e))this.start({pause:!1});else{const t=this.springs;Ie(Te(e),(e=>t[e].resume()))}return this}each(e){Ne(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,je(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&je(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,je(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}be.onFrame(this._onFrame)}}function wr(e,t){return Promise.all(t.map((t=>Vr(e,t)))).then((t=>Qn(e,t)))}async function Vr(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=Ae.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const d=Ae.arr(i)||Ae.fun(i)?i:void 0;d?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ie(Lr,(n=>{const r=t[n];if(Ae.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const c=e._state;t.pause===!c.paused?(c.paused=t.pause,We(t.pause?c.pauseQueue:c.resumeQueue)):c.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),C=!0===t.cancel||!0===_n(t,"cancel");(d||C&&c.asyncId)&&h.push(qn(++e._lastAsyncId,{props:t,state:c,actions:{pause:Ee,resume:Ee,start(t,n){C?(Kn(c,e._lastAsyncId),n(Yn(e))):(t.onRest=s,n(Jn(d,t,c,e)))}}})),c.paused&&await new Promise((e=>{c.resumeQueue.add(e)}));const p=Qn(e,await Promise.all(h));if(a&&p.finished&&(!n||!p.noop)){const n=Cr(t,a,i);if(n)return kr(e,[n]),Vr(e,n,!0)}return l&&be.batchedUpdates((()=>l(p,e,e.item))),p}function Mr(e,t){const n=Hn({},e.springs);return t&&Ie(Te(t),(e=>{Ae.und(e.keys)&&(e=pr(e)),Ae.obj(e.to)||(e=Hn({},e,{to:void 0})),$r(n,e,(e=>Sr(e)))})),_r(e,n),n}function _r(e,t){Ne(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Pt(t,e))}))}function Sr(e,t){const n=new cr;return n.key=e,t&&Pt(n,t),n}function $r(e,t,n){t.keys&&Ie(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function kr(e,t){Ie(t,(t=>{$r(e.springs,t,(t=>Sr(t,e)))}))}const xr=["children"],Zr=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,xr);const i=p(Fr),s=r.pause||!!i.pause,l=r.immediate||!!i.immediate;r=function(e,t){const[n]=a((()=>({inputs:t,result:e()}))),r=o(),i=r.current;let s=i;s?Boolean(t&&s.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,s.inputs))||(s={inputs:t,result:e()}):s=n;return d((()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)}),[s]),s.result}((()=>({pause:s,immediate:l})),[s,l]);const{Provider:u}=Fr;return n.createElement(u,{value:r},t)},Fr=(Rr=Zr,Or={},Object.assign(Rr,n.createContext(Or)),Rr.Provider._context=Rr,Rr.Consumer._context=Rr,Rr);var Rr,Or;Zr.Provider=Fr.Provider,Zr.Consumer=Fr.Consumer;const Pr=()=>{const e=[],t=function(t){Yt(`${Qt}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Ie(e,((e,i)=>{if(Ae.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Ie(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ie(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ie(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Ie(e,((e,r)=>{if(Ae.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Ie(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ie(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Ae.fun(e)?e(n,t):e};return t._getProps=n,t};function Br(e,t,n){const r=Ae.fun(t)&&t;r&&!n&&(n=[]);const i=f((()=>r||3==arguments.length?Pr():void 0),[]),a=o(0),s=en(),l=f((()=>({ctrls:[],queue:[],flush(e,t){const n=Mr(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?wr(e,t):new Promise((r=>{_r(e,n),l.queue.push((()=>{r(wr(e,t))})),s()}))}})),[]),u=o([...l.ctrls]),d=[],c=rn(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=u.current[i]||(u.current[i]=new Hr(null,l.flush)),n=r?r(i,e):t[i];n&&(d[i]=fr(n))}}f((()=>{Ie(u.current.slice(e,c),(e=>{Pn(e,i),e.stop(!0)})),u.current.length=e,h(c,e)}),[e]),f((()=>{h(0,Math.min(c,e))}),n);const C=u.current.map(((e,t)=>Mr(e,d[t]))),g=p(Zr),m=rn(g),y=g!==m&&Rn(g);Kt((()=>{a.current++,l.ctrls=u.current;const{queue:e}=l;e.length&&(l.queue=[],Ie(e,(e=>e()))),Ie(u.current,((e,t)=>{null==i||i.add(e),y&&e.start({default:g});const n=d[t];n&&(Bn(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),tn((()=>()=>{Ie(l.ctrls,(e=>e.stop(!0)))}));const v=C.map((e=>Hn({},e)));return i?[v,i]:v}let Dr;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Dr||(Dr={}));class Er extends ir{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Mt(...t);const n=this._get(),r=gn(n);sn(this,r.create(n))}advance(e){const t=this._get();ze(t,this.get())||(an(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&zr(this._active)&&Ir(this)}_get(){const e=Ae.arr(this.source)?this.source.map(xt):Te(xt(this.source));return this.calc(...e)}_start(){this.idle&&!zr(this._active)&&(this.idle=!1,Ie(ln(this),(e=>{e.done=!1})),Je.skipAnimation?(be.batchedUpdates((()=>this.advance())),Ir(this)):rt.start(this))}_attach(){let e=1;Ie(Te(this.source),(t=>{kt(t)&&Pt(t,this),nr(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ie(Te(this.source),(e=>{kt(e)&&Bt(e,this)})),this._active.clear(),Ir(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Te(this.source).reduce(((e,t)=>Math.max(e,(nr(t)?t.priority:0)+1)),0))}}function Ar(e){return!1!==e.idle}function zr(e){return!e.size||Array.from(e).every(Ar)}function Ir(e){e.idle||(e.idle=!0,Ie(ln(e),(e=>{e.done=!0})),Ft(e,{type:"idle",parent:e}))}function Nr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Je.assign({createStringInterpolator:qt,to:(e,t)=>new Er(e,t)});const Tr=["style","children","scrollTop","scrollLeft"],jr=/^--/;function Wr(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||jr.test(e)||qr.hasOwnProperty(e)&&qr[e]?(""+t).trim():t+"px"}const Ur={};let qr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Qr=["Webkit","Ms","Moz","O"];qr=Object.keys(qr).reduce(((e,t)=>(Qr.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),qr);const Gr=["x","y","z"],Xr=/^(matrix|translate|scale|rotate|skew)/,Yr=/^(translate)/,Jr=/^(rotate|skew)/,Kr=(e,t)=>Ae.num(e)&&0!==e?e+t:e,ei=(e,t)=>Ae.arr(e)?e.every((e=>ei(e,t))):Ae.num(e)?e===t:parseFloat(e)===t;class ti extends Cn{constructor(e){let{x:t,y:n,z:r}=e,i=Nr(e,Gr);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Kr(e,"px"))).join(",")})`,ei(e,0)]))),Ne(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Xr.test(t)){if(delete i[t],Ae.und(e))return;const n=Yr.test(t)?"px":Jr.test(t)?"deg":"";o.push(Te(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Kr(i,n)})`,ei(i,0)]:e=>[`${t}(${e.map((e=>Kr(e,n))).join(",")})`,ei(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new ni(o,a)),super(i)}}class ni extends Rt{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Ie(this.inputs,((n,r)=>{const i=xt(n[0]),[o,a]=this.transforms[r](Ae.arr(i)?i:n.map(xt));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Ie(this.inputs,(e=>Ie(e,(e=>kt(e)&&Pt(e,this)))))}observerRemoved(e){0==e&&Ie(this.inputs,(e=>Ie(e,(e=>kt(e)&&Bt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ft(this,e)}}const ri=["scrollTop","scrollLeft"];Je.assign({batchedUpdates:m,createStringInterpolator:qt,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const ii=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Cn(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=bn(e)||"Anonymous";return(e=Ae.str(e)?o[e]||(o[e]=yn(e,i)):e[Ln]||(e[Ln]=yn(e,i))).displayName=`Animated(${t})`,e};return Ne(e,((t,n)=>{Ae.arr(e)&&(n=bn(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=Nr(r,Tr),u=Object.values(l),d=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Ur[t]||(Ur[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Wr(t,i[t]);jr.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new ti(e),getComponentProps:e=>Nr(e,ri)}),oi=ii.animated;var ai="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},si=Array.isArray,li="object"==typeof ai&&ai&&ai.Object===Object&&ai,ui="object"==typeof self&&self&&self.Object===Object&&self,di=li||ui||Function("return this")(),ci=di.Symbol,hi=ci,Ci=Object.prototype,pi=Ci.hasOwnProperty,fi=Ci.toString,gi=hi?hi.toStringTag:void 0;var mi=function(e){var t=pi.call(e,gi),n=e[gi];try{e[gi]=void 0;var r=!0}catch(e){}var i=fi.call(e);return r&&(t?e[gi]=n:delete e[gi]),i},yi=Object.prototype.toString;var vi=mi,Li=function(e){return yi.call(e)},bi=ci?ci.toStringTag:void 0;var Hi=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bi&&bi in Object(e)?vi(e):Li(e)};var wi=Hi,Vi=function(e){return null!=e&&"object"==typeof e};var Mi=function(e){return"symbol"==typeof e||Vi(e)&&"[object Symbol]"==wi(e)},_i=si,Si=Mi,$i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ki=/^\w*$/;var xi=function(e,t){if(_i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Si(e))||(ki.test(e)||!$i.test(e)||null!=t&&e in Object(t))};var Zi=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Fi=Hi,Ri=Zi;var Oi,Pi=function(e){if(!Ri(e))return!1;var t=Fi(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Bi=di["__core-js_shared__"],Di=(Oi=/[^.]+$/.exec(Bi&&Bi.keys&&Bi.keys.IE_PROTO||""))?"Symbol(src)_1."+Oi:"";var Ei=function(e){return!!Di&&Di in e},Ai=Function.prototype.toString;var zi=Pi,Ii=Ei,Ni=Zi,Ti=function(e){if(null!=e){try{return Ai.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ji=/^\[object .+?Constructor\]$/,Wi=Function.prototype,Ui=Object.prototype,qi=Wi.toString,Qi=Ui.hasOwnProperty,Gi=RegExp("^"+qi.call(Qi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Xi=function(e){return!(!Ni(e)||Ii(e))&&(zi(e)?Gi:ji).test(Ti(e))},Yi=function(e,t){return null==e?void 0:e[t]};var Ji=function(e,t){var n=Yi(e,t);return Xi(n)?n:void 0},Ki=Ji(Object,"create"),eo=Ki;var to=function(){this.__data__=eo?eo(null):{},this.size=0};var no=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ro=Ki,io=Object.prototype.hasOwnProperty;var oo=function(e){var t=this.__data__;if(ro){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return io.call(t,e)?t[e]:void 0},ao=Ki,so=Object.prototype.hasOwnProperty;var lo=Ki;var uo=to,co=no,ho=oo,Co=function(e){var t=this.__data__;return ao?void 0!==t[e]:so.call(t,e)},po=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=lo&&void 0===t?"__lodash_hash_undefined__":t,this};function fo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fo.prototype.clear=uo,fo.prototype.delete=co,fo.prototype.get=ho,fo.prototype.has=Co,fo.prototype.set=po;var go=fo;var mo=function(){this.__data__=[],this.size=0};var yo=function(e,t){return e===t||e!=e&&t!=t};var vo=function(e,t){for(var n=e.length;n--;)if(yo(e[n][0],t))return n;return-1},Lo=vo,bo=Array.prototype.splice;var Ho=vo;var wo=vo;var Vo=vo;var Mo=mo,_o=function(e){var t=this.__data__,n=Lo(t,e);return!(n<0)&&(n==t.length-1?t.pop():bo.call(t,n,1),--this.size,!0)},So=function(e){var t=this.__data__,n=Ho(t,e);return n<0?void 0:t[n][1]},$o=function(e){return wo(this.__data__,e)>-1},ko=function(e,t){var n=this.__data__,r=Vo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function xo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xo.prototype.clear=Mo,xo.prototype.delete=_o,xo.prototype.get=So,xo.prototype.has=$o,xo.prototype.set=ko;var Zo=xo,Fo=Ji(di,"Map"),Ro=go,Oo=Zo,Po=Fo;var Bo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Do=function(e,t){var n=e.__data__;return Bo(t)?n["string"==typeof t?"string":"hash"]:n.map},Eo=Do;var Ao=Do;var zo=Do;var Io=Do;var No=function(){this.size=0,this.__data__={hash:new Ro,map:new(Po||Oo),string:new Ro}},To=function(e){var t=Eo(this,e).delete(e);return this.size-=t?1:0,t},jo=function(e){return Ao(this,e).get(e)},Wo=function(e){return zo(this,e).has(e)},Uo=function(e,t){var n=Io(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function qo(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qo.prototype.clear=No,qo.prototype.delete=To,qo.prototype.get=jo,qo.prototype.has=Wo,qo.prototype.set=Uo;var Qo=qo;function Go(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Go.Cache||Qo),n}Go.Cache=Qo;var Xo=Go;var Yo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jo=/\\(\\)?/g,Ko=function(e){var t=Xo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Yo,(function(e,n,r,i){t.push(r?i.replace(Jo,"$1"):n||e)})),t}));var ea=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},ta=si,na=Mi,ra=ci?ci.prototype:void 0,ia=ra?ra.toString:void 0;var oa=function e(t){if("string"==typeof t)return t;if(ta(t))return ea(t,e)+"";if(na(t))return ia?ia.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},aa=oa;var sa=si,la=xi,ua=Ko,da=function(e){return null==e?"":aa(e)};var ca=Mi;var ha=function(e,t){return sa(e)?e:la(e,t)?[e]:ua(da(e))},Ca=function(e){if("string"==typeof e||ca(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var pa=function(e,t){for(var n=0,r=(t=ha(t,e)).length;null!=e&&n<r;)e=e[Ca(t[n++])];return n&&n==r?e:void 0};var fa=function(e,t,n){var r=null==e?void 0:pa(e,t);return void 0===r?n:r};const ga=(e,t,n)=>t?fa(n,t)||fa(e,t):n||e,ma=(e,t)=>{const n=t||e.defaultValue;return fa(e.collections,n)};var ya;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme"}(ya||(ya={}));const va={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},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"}}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",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"}}}},defaultValue:"base"},La=e=>t=>{const n=t.theme,r=ma(va,n[ya.colorScheme]);return n.options&&n.options.color?ga(r,e,n.options.color):ga(r,e)},ba={Brand:{1:La("Brand.1"),2:La("Brand.2"),3:La("Brand.3"),4:La("Brand.4"),5:La("Brand.5"),6:La("Brand.6")},Primary:La("Primary"),PrimaryDark:La("PrimaryDark"),Secondary:La("Secondary"),Accent:{Light:{1:La("Accent.Light.1"),2:La("Accent.Light.2"),3:La("Accent.Light.3"),4:La("Accent.Light.4"),5:La("Accent.Light.5"),6:La("Accent.Light.6")},Dark:{1:La("Accent.Dark.1"),2:La("Accent.Dark.2"),3:La("Accent.Dark.3")}},Neutral:{1:La("Neutral.1"),2:La("Neutral.2"),3:La("Neutral.3"),4:La("Neutral.4"),5:La("Neutral.5"),6:La("Neutral.6"),7:La("Neutral.7"),8:La("Neutral.8")},Validation:{Green:{Text:La("Validation.Green.Text"),Icon:La("Validation.Green.Icon"),Border:La("Validation.Green.Border"),Background:La("Validation.Green.Background")},Orange:{Text:La("Validation.Orange.Text"),Icon:La("Validation.Orange.Icon"),Border:La("Validation.Orange.Border"),Background:La("Validation.Orange.Background"),Badge:La("Validation.Orange.Badge")},Red:{Text:La("Validation.Red.Text"),Icon:La("Validation.Red.Icon"),Border:La("Validation.Red.Border"),Background:La("Validation.Red.Background")}}},Ha=y.svg`
2
2
  height: 1rem;
3
3
  width: 1rem;
4
4
  color: ${ba.Primary};
@@ -35,7 +35,7 @@ import{jsxs as e,jsx as t}from"react/jsx-runtime";import*as n from"react";import
35
35
  animation-delay: -0.3s;
36
36
  `,Da=y(Oa)`
37
37
  animation-delay: -0.15s;
38
- `,Ea={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},za={collections:{base:{D1:{fontFamily:Ea.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Ea.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Ea.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Ea.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Ea.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Ea.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Ea.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Ea.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Ea.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Ea.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Ea.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Ea.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Ea.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Ea.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Aa=e=>t=>{const n=t.theme,r=ma(za,n[ya.textStyleScheme]);return n.options&&n.options.textStyle?ga(r,e,n.options.textStyle):ga(r,e)},Ia={D1:{fontFamily:Aa("D1.fontFamily"),fontSize:Aa("D1.fontSize"),fontWeight:Aa("D1.fontWeight"),lineHeight:Aa("D1.lineHeight"),letterSpacing:Aa("D1.letterSpacing")},D2:{fontFamily:Aa("D2.fontFamily"),fontSize:Aa("D2.fontSize"),fontWeight:Aa("D2.fontWeight"),lineHeight:Aa("D2.lineHeight"),letterSpacing:Aa("D2.letterSpacing")},D3:{fontFamily:Aa("D3.fontFamily"),fontSize:Aa("D3.fontSize"),fontWeight:Aa("D3.fontWeight"),lineHeight:Aa("D3.lineHeight"),letterSpacing:Aa("D3.letterSpacing")},D4:{fontFamily:Aa("D4.fontFamily"),fontSize:Aa("D4.fontSize"),fontWeight:Aa("D4.fontWeight"),lineHeight:Aa("D4.lineHeight"),letterSpacing:Aa("D4.letterSpacing")},DBody:{fontFamily:Aa("DBody.fontFamily"),fontSize:Aa("DBody.fontSize"),fontWeight:Aa("DBody.fontWeight"),lineHeight:Aa("DBody.lineHeight"),letterSpacing:Aa("DBody.letterSpacing")},H1:{fontFamily:Aa("H1.fontFamily"),fontSize:Aa("H1.fontSize"),fontWeight:Aa("H1.fontWeight"),lineHeight:Aa("H1.lineHeight"),letterSpacing:Aa("H1.letterSpacing")},H2:{fontFamily:Aa("H2.fontFamily"),fontSize:Aa("H2.fontSize"),fontWeight:Aa("H2.fontWeight"),lineHeight:Aa("H2.lineHeight"),letterSpacing:Aa("H2.letterSpacing")},H3:{fontFamily:Aa("H3.fontFamily"),fontSize:Aa("H3.fontSize"),fontWeight:Aa("H3.fontWeight"),lineHeight:Aa("H3.lineHeight"),letterSpacing:Aa("H3.letterSpacing")},H4:{fontFamily:Aa("H4.fontFamily"),fontSize:Aa("H4.fontSize"),fontWeight:Aa("H4.fontWeight"),lineHeight:Aa("H4.lineHeight"),letterSpacing:Aa("H4.letterSpacing")},H5:{fontFamily:Aa("H5.fontFamily"),fontSize:Aa("H5.fontSize"),fontWeight:Aa("H5.fontWeight"),lineHeight:Aa("H5.lineHeight"),letterSpacing:Aa("H5.letterSpacing")},H6:{fontFamily:Aa("H6.fontFamily"),fontSize:Aa("H6.fontSize"),fontWeight:Aa("H6.fontWeight"),lineHeight:Aa("H6.lineHeight"),letterSpacing:Aa("H6.letterSpacing")},Body:{fontFamily:Aa("Body.fontFamily"),fontSize:Aa("Body.fontSize"),fontWeight:Aa("Body.fontWeight"),lineHeight:Aa("Body.lineHeight"),letterSpacing:Aa("Body.letterSpacing")},BodySmall:{fontFamily:Aa("BodySmall.fontFamily"),fontSize:Aa("BodySmall.fontSize"),fontWeight:Aa("BodySmall.fontWeight"),lineHeight:Aa("BodySmall.lineHeight"),letterSpacing:Aa("BodySmall.letterSpacing")},XSmall:{fontFamily:Aa("XSmall.fontFamily"),fontSize:Aa("XSmall.fontSize"),fontWeight:Aa("XSmall.fontWeight"),lineHeight:Aa("XSmall.lineHeight"),letterSpacing:Aa("XSmall.letterSpacing")}},Na=e=>{switch(e){case 700:case"bold":return Ea.Bold;case 600:case"semibold":return Ea.Semibold;case 300:case"light":return Ea.Light;case 400:case"regular":return Ea.Regular;default:return""}},Ta=(e,t)=>n=>{const r=Ia[e].fontFamily(n),i=Ia[e].fontWeight(n);return Object.values(Ea).includes(r)?L`
38
+ `,Ea={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Aa={collections:{base:{D1:{fontFamily:Ea.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Ea.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Ea.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Ea.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Ea.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Ea.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Ea.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Ea.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Ea.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Ea.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Ea.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Ea.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Ea.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Ea.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},za=e=>t=>{const n=t.theme,r=ma(Aa,n[ya.textStyleScheme]);return n.options&&n.options.textStyle?ga(r,e,n.options.textStyle):ga(r,e)},Ia={D1:{fontFamily:za("D1.fontFamily"),fontSize:za("D1.fontSize"),fontWeight:za("D1.fontWeight"),lineHeight:za("D1.lineHeight"),letterSpacing:za("D1.letterSpacing")},D2:{fontFamily:za("D2.fontFamily"),fontSize:za("D2.fontSize"),fontWeight:za("D2.fontWeight"),lineHeight:za("D2.lineHeight"),letterSpacing:za("D2.letterSpacing")},D3:{fontFamily:za("D3.fontFamily"),fontSize:za("D3.fontSize"),fontWeight:za("D3.fontWeight"),lineHeight:za("D3.lineHeight"),letterSpacing:za("D3.letterSpacing")},D4:{fontFamily:za("D4.fontFamily"),fontSize:za("D4.fontSize"),fontWeight:za("D4.fontWeight"),lineHeight:za("D4.lineHeight"),letterSpacing:za("D4.letterSpacing")},DBody:{fontFamily:za("DBody.fontFamily"),fontSize:za("DBody.fontSize"),fontWeight:za("DBody.fontWeight"),lineHeight:za("DBody.lineHeight"),letterSpacing:za("DBody.letterSpacing")},H1:{fontFamily:za("H1.fontFamily"),fontSize:za("H1.fontSize"),fontWeight:za("H1.fontWeight"),lineHeight:za("H1.lineHeight"),letterSpacing:za("H1.letterSpacing")},H2:{fontFamily:za("H2.fontFamily"),fontSize:za("H2.fontSize"),fontWeight:za("H2.fontWeight"),lineHeight:za("H2.lineHeight"),letterSpacing:za("H2.letterSpacing")},H3:{fontFamily:za("H3.fontFamily"),fontSize:za("H3.fontSize"),fontWeight:za("H3.fontWeight"),lineHeight:za("H3.lineHeight"),letterSpacing:za("H3.letterSpacing")},H4:{fontFamily:za("H4.fontFamily"),fontSize:za("H4.fontSize"),fontWeight:za("H4.fontWeight"),lineHeight:za("H4.lineHeight"),letterSpacing:za("H4.letterSpacing")},H5:{fontFamily:za("H5.fontFamily"),fontSize:za("H5.fontSize"),fontWeight:za("H5.fontWeight"),lineHeight:za("H5.lineHeight"),letterSpacing:za("H5.letterSpacing")},H6:{fontFamily:za("H6.fontFamily"),fontSize:za("H6.fontSize"),fontWeight:za("H6.fontWeight"),lineHeight:za("H6.lineHeight"),letterSpacing:za("H6.letterSpacing")},Body:{fontFamily:za("Body.fontFamily"),fontSize:za("Body.fontSize"),fontWeight:za("Body.fontWeight"),lineHeight:za("Body.lineHeight"),letterSpacing:za("Body.letterSpacing")},BodySmall:{fontFamily:za("BodySmall.fontFamily"),fontSize:za("BodySmall.fontSize"),fontWeight:za("BodySmall.fontWeight"),lineHeight:za("BodySmall.lineHeight"),letterSpacing:za("BodySmall.letterSpacing")},XSmall:{fontFamily:za("XSmall.fontFamily"),fontSize:za("XSmall.fontSize"),fontWeight:za("XSmall.fontWeight"),lineHeight:za("XSmall.lineHeight"),letterSpacing:za("XSmall.letterSpacing")}},Na=e=>{switch(e){case 700:case"bold":return Ea.Bold;case 600:case"semibold":return Ea.Semibold;case 300:case"light":return Ea.Light;case 400:case"regular":return Ea.Regular;default:return""}},Ta=(e,t)=>n=>{const r=Ia[e].fontFamily(n),i=Ia[e].fontWeight(n);return Object.values(Ea).includes(r)?L`
39
39
  font-family: ${Na(t)||Na(i)||r};
40
40
  font-weight: normal !important;
41
41
  `:L`
@@ -482,7 +482,7 @@ import{jsxs as e,jsx as t}from"react/jsx-runtime";import*as n from"react";import
482
482
  ${Za.tablet} {
483
483
  width: 50%;
484
484
  }
485
- `;var ys,vs,Ls;!function(e){e.HOUR_UP="hour-up",e.HOUR_DOWN="hour-down",e.MINUTE_UP="minute-up",e.MINUTE_DOWN="minute-down"}(ys||(ys={})),function(e){e.HOUR="hour",e.MINUTE="minute"}(vs||(vs={})),function(e){e.AM="am",e.PM="pm"}(Ls||(Ls={}));const bs=({id:n,value:r,show:i,format:s,onChange:l,onCancel:u})=>{const c=H.getTimeValues(s,r),[h,p]=a(c.hour),[f,g]=a(c.minute),[m,y]=a(c.period),v=o(),L=o(),w=function(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,r=e.refreshMode,i=e.refreshRate,s=void 0===i?1e3:i,l=e.refreshOptions,u=e.handleWidth,d=void 0===u||u,c=e.handleHeight,h=void 0===c||c,C=e.targetRef,p=e.observerOptions,f=e.onResize,g=o(n),m=o(null),y=null!=C?C:m,v=o(),L=a({width:void 0,height:void 0}),b=L[0],H=L[1];return ve((function(){if(!ge()){var e=ye(f,H,d,h);v.current=pe((function(t){(d||h)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,i=n.height;!g.current&&!ge()&&e({width:r,height:i}),g.current=!1}))}),r,s,l);var t=new window.ResizeObserver(v.current);return y.current&&t.observe(y.current,p),function(){t.disconnect();var e=v.current;e&&e.cancel&&e.cancel()}}}),[r,s,l,d,h,f,p,y.current]),S({ref:y},b)}();d((()=>{if(i&&v.current&&v.current.focus(),i){const{hour:e,minute:t,period:n}=H.getTimeValues(s,r);p(e),g(t),y(n)}}),[i,r,s]),d((()=>{const e=v.current,t=L.current;return e&&e.addEventListener("keydown",V),t&&t.addEventListener("keydown",V),()=>{e&&e.removeEventListener("keydown",V),t&&t.removeEventListener("keydown",V)}}),[]);const V=e=>{["Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.code)||["Backspace","0","1","2","3","4","5","6","7","8","9"].includes(e.key)||e.preventDefault()},M=C((e=>{switch(e.currentTarget.name){case ys.MINUTE_UP:g(H.updateMinutes(f,"add"));break;case ys.MINUTE_DOWN:g(H.updateMinutes(f,"minus"));break;case ys.HOUR_UP:p(H.updateHours(h,"add"));break;case ys.HOUR_DOWN:p(H.updateHours(h,"minus"))}}),[h,f]),_=e=>{e.target.select()},$=e=>{const t=e.target.value;switch(e.target.name){case vs.HOUR:t.length<=2&&p(t);break;case vs.MINUTE:t.length<=2&&g(t)}},k=e=>{const t=parseInt(e.target.value);if(!isNaN(t))switch(e.target.name){case vs.HOUR:{const n=t>23||t<0?c.hour:H.convertHourTo12HourFormat(e.target.value);p(n);break}case vs.MINUTE:{const n=t>59||t<0?c.minute:e.target.value;g(b.padValue(n));break}}},x=e=>{switch(e.target.name){case Ls.AM:y("am");break;case Ls.PM:y("pm")}},Z=e=>n?`${n}-${e}`:e,F=function(e,t){const n=ze.fun(e),[[r],i]=Br(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}({height:i?w.height+32:0});return t(as,{"data-testid":"animated-dropdown-wrapper",style:F,children:e(ss,{ref:w.ref,"data-testid":Z("timepicker-dropdown"),children:[e(ls,{children:[e(ds,{children:[e(hs,{children:[t(Cs,{name:ys.HOUR_UP,type:"button",tabIndex:-1,onClick:M,"data-testid":Z("hour-increment-button"),children:t($a,{type:"chevron-up"})}),t(fs,{type:"number",name:vs.HOUR,id:"hour",maxLength:2,pattern:"[0-9]{2}",ref:v,value:h,onFocus:_,onChange:$,onBlur:k,min:1,max:12,placeholder:"HH","data-testid":Z("hour-input")}),t(Cs,{name:ys.HOUR_DOWN,type:"button",tabIndex:-1,onClick:M,"data-testid":Z("hour-decrement-button"),children:t($a,{type:"chevron-down"})})]}),t(ps,{children:":"}),e(hs,{children:[t(Cs,{name:ys.MINUTE_UP,type:"button",tabIndex:-1,onClick:M,"data-testid":Z("minute-increment-button"),children:t($a,{type:"chevron-up"})}),t(fs,{type:"number",name:vs.MINUTE,id:"minute",maxLength:2,pattern:"[0-9]{2}",ref:L,value:f,onChange:$,onBlur:k,onFocus:_,min:0,max:59,placeholder:"MM","data-testid":Z("minute-input")}),t(Cs,{name:ys.MINUTE_DOWN,type:"button",tabIndex:-1,onClick:M,"data-testid":Z("minute-decrement-button"),children:t($a,{type:"chevron-down"})})]})]}),e(cs,{children:[t(gs,{checked:"am"===m,name:Ls.AM,type:"radio",onChange:x,"data-testid":Z("am-toggle"),children:"AM"}),t(gs,{checked:"pm"===m,name:Ls.PM,type:"radio",onChange:x,"data-testid":Z("pm-toggle"),children:"PM"})]})]}),e(us,{children:[t(ms,{type:"button",styleType:"secondary",onClick:u,"data-testid":Z("cancel-button"),children:"Cancel"}),t(ms,{type:"button",onClick:()=>{let e;e="24hr"===s?H.convertTo24HourFormat({hour:h,minute:f,period:m}):`${h}:${f}${m}`,l(e)},disabled:""===h||""===f,"data-testid":Z("confirm-button"),children:"Confirm"})]})]})})},Hs=y.div`
485
+ `;var ys,vs,Ls;!function(e){e.HOUR_UP="hour-up",e.HOUR_DOWN="hour-down",e.MINUTE_UP="minute-up",e.MINUTE_DOWN="minute-down"}(ys||(ys={})),function(e){e.HOUR="hour",e.MINUTE="minute"}(vs||(vs={})),function(e){e.AM="am",e.PM="pm"}(Ls||(Ls={}));const bs=({id:n,value:r,show:i,format:s,onChange:l,onCancel:u})=>{const c=H.getTimeValues(s,r),[h,p]=a(c.hour),[f,g]=a(c.minute),[m,y]=a(c.period),v=o(),L=o(),w=function(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,r=e.refreshMode,i=e.refreshRate,s=void 0===i?1e3:i,l=e.refreshOptions,u=e.handleWidth,d=void 0===u||u,c=e.handleHeight,h=void 0===c||c,C=e.targetRef,p=e.observerOptions,f=e.onResize,g=o(n),m=o(null),y=null!=C?C:m,v=o(),L=a({width:void 0,height:void 0}),b=L[0],H=L[1];return ve((function(){if(!ge()){var e=ye(f,H,d,h);v.current=pe((function(t){(d||h)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,i=n.height;!g.current&&!ge()&&e({width:r,height:i}),g.current=!1}))}),r,s,l);var t=new window.ResizeObserver(v.current);return y.current&&t.observe(y.current,p),function(){t.disconnect();var e=v.current;e&&e.cancel&&e.cancel()}}}),[r,s,l,d,h,f,p,y.current]),S({ref:y},b)}();d((()=>{if(i&&v.current&&v.current.focus(),i){const{hour:e,minute:t,period:n}=H.getTimeValues(s,r);p(e),g(t),y(n)}}),[i,r,s]),d((()=>{const e=v.current,t=L.current;return e&&e.addEventListener("keydown",V),t&&t.addEventListener("keydown",V),()=>{e&&e.removeEventListener("keydown",V),t&&t.removeEventListener("keydown",V)}}),[]);const V=e=>{["Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.code)||["Backspace","0","1","2","3","4","5","6","7","8","9"].includes(e.key)||e.preventDefault()},M=C((e=>{switch(e.currentTarget.name){case ys.MINUTE_UP:g(H.updateMinutes(f,"add"));break;case ys.MINUTE_DOWN:g(H.updateMinutes(f,"minus"));break;case ys.HOUR_UP:p(H.updateHours(h,"add"));break;case ys.HOUR_DOWN:p(H.updateHours(h,"minus"))}}),[h,f]),_=e=>{e.target.select()},$=e=>{const t=e.target.value;switch(e.target.name){case vs.HOUR:t.length<=2&&p(t);break;case vs.MINUTE:t.length<=2&&g(t)}},k=e=>{const t=parseInt(e.target.value);if(!isNaN(t))switch(e.target.name){case vs.HOUR:{const n=t>23||t<0?c.hour:H.convertHourTo12HourFormat(e.target.value);p(n);break}case vs.MINUTE:{const n=t>59||t<0?c.minute:e.target.value;g(b.padValue(n));break}}},x=e=>{switch(e.target.name){case Ls.AM:y("am");break;case Ls.PM:y("pm")}},Z=e=>n?`${n}-${e}`:e,F=function(e,t){const n=Ae.fun(e),[[r],i]=Br(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}({height:i?w.height+32:0});return t(as,{"data-testid":"animated-dropdown-wrapper",style:F,children:e(ss,{ref:w.ref,"data-testid":Z("timepicker-dropdown"),children:[e(ls,{children:[e(ds,{children:[e(hs,{children:[t(Cs,{"aria-label":"increase hour",name:ys.HOUR_UP,type:"button",tabIndex:-1,onClick:M,"data-testid":Z("hour-increment-button"),children:t($a,{type:"chevron-up"})}),t(fs,{"aria-label":"hour",type:"number",name:vs.HOUR,id:"hour",maxLength:2,pattern:"[0-9]{2}",ref:v,value:h,onFocus:_,onChange:$,onBlur:k,min:1,max:12,placeholder:"HH","data-testid":Z("hour-input")}),t(Cs,{"aria-label":"decrease hour",name:ys.HOUR_DOWN,type:"button",tabIndex:-1,onClick:M,"data-testid":Z("hour-decrement-button"),children:t($a,{type:"chevron-down"})})]}),t(ps,{children:":"}),e(hs,{children:[t(Cs,{"aria-label":"increase minute",name:ys.MINUTE_UP,type:"button",tabIndex:-1,onClick:M,"data-testid":Z("minute-increment-button"),children:t($a,{type:"chevron-up"})}),t(fs,{"aria-label":"minute",type:"number",name:vs.MINUTE,id:"minute",maxLength:2,pattern:"[0-9]{2}",ref:L,value:f,onChange:$,onBlur:k,onFocus:_,min:0,max:59,placeholder:"MM","data-testid":Z("minute-input")}),t(Cs,{"aria-label":"decrease minute",name:ys.MINUTE_DOWN,type:"button",tabIndex:-1,onClick:M,"data-testid":Z("minute-decrement-button"),children:t($a,{type:"chevron-down"})})]})]}),e(cs,{children:[t(gs,{checked:"am"===m,name:Ls.AM,type:"radio",onChange:x,"data-testid":Z("am-toggle"),"aria-label":"AM",children:"AM"}),t(gs,{checked:"pm"===m,name:Ls.PM,type:"radio",onChange:x,"data-testid":Z("pm-toggle"),"aria-label":"PM",children:"PM"})]})]}),e(us,{children:[t(ms,{"aria-label":"close selector",type:"button",styleType:"secondary",onClick:u,"data-testid":Z("cancel-button"),children:"Cancel"}),t(ms,{"aria-label":"confirm selection",type:"button",onClick:()=>{let e;e="24hr"===s?H.convertTo24HourFormat({hour:h,minute:f,period:m}):`${h}:${f}${m}`,l(e)},disabled:""===h||""===f,"data-testid":Z("confirm-button"),children:"Confirm"})]})]})})},Hs=y.div`
486
486
  position: relative;
487
487
  `,ws=y.input`
488
488
  ${Wa("Body","regular")}