@mmb-digital/design-system-web 0.1.226 → 0.1.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /*!
3
3
  * tabbable 6.2.0
4
4
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
5
- */var ur=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),cr="undefined"==typeof Element,dr=cr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pr=!cr&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},hr=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},fr=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!hr(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{dr.call(a,ur)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),c=!hr(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&c){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},mr=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},gr=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!mr(e)?0:e.tabIndex},vr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},yr=function(e){return"INPUT"===e.tagName},br=function(e){return function(e){return yr(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||pr(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},xr=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},kr=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=dr.call(e,"details>summary:first-of-type")?e.parentElement:e;if(dr.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return xr(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=pr(e);if(a&&!a.shadowRoot&&!0===r(a))return xr(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&pr(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,u,c;s=!(null===(u=a=null===(l=i=pr(a))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},wr=function(e,t){return!(t.disabled||hr(t)||function(e){return yr(e)&&"hidden"===e.type}(t)||kr(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!dr.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Cr=function(e,t){return!(br(t)||gr(t)<0||!wr(e,t))},Er=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Sr=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=gr(e);return n<0&&t&&!mr(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(vr).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_r=function(e,t){var n;return n=(t=t||{}).getShadowRoot?fr([e],t.includeContainer,{filter:Cr.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Er}):function(e,t,n){if(hr(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ur));return t&&dr.call(e,ur)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Cr.bind(null,t)),Sr(n)};function Ir(e,t,n){let{reference:r,floating:o}=e;const i=rr(t),a=or(t),s=nr(a),l=Jn(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-o.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(er(t)){case"start":h[a]-=p*(n&&u?-1:1);break;case"end":h[a]+=p*(n&&u?-1:1)}return h}async function Mr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Xn(t,e),f=sr(h),m=s[p?"floating"===d?"reference":"floating":d],g=lr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=lr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-x.top+f.top)/b.y,bottom:(x.bottom-g.bottom+f.bottom)/b.y,left:(g.left-x.left+f.left)/b.x,right:(x.right-g.right+f.right)/b.x}}function Lr(e){const t=Sn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Kn(n)!==i||Kn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Tr(e){return gn(e)?e:e.contextElement}function Dr(e){const t=Tr(e);if(!vn(t))return qn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lr(t);let a=(i?Kn(n.width):n.width)/r,s=(i?Kn(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Pr=qn(0);function Or(e){const t=hn(e);return Cn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pr}function Rr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Tr(e);let a=qn(1);t&&(r?gn(r)&&(a=Dr(r)):a=Dr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==hn(e))&&t}(i,n,r)?Or(i):qn(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=hn(i),t=r&&gn(r)?hn(r):r;let n=e,o=Tn(n);for(;o&&r&&t!==n;){const e=Dr(o),t=o.getBoundingClientRect(),r=Sn(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,n=hn(o),o=Tn(n)}}return lr({width:c,height:d,x:l,y:u})}function Ar(e,t){const n=_n(e).scrollLeft;return t?t.left+n:Rr(fn(e)).left+n}function Nr(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ar(e,r)),y:r.top+t.scrollTop}}function Vr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=hn(e),r=fn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Cn();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=fn(e),n=_n(e),r=e.ownerDocument.body,o=Yn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Yn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ar(e);const s=-n.scrollTop;return"rtl"===Sn(r).direction&&(a+=Yn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(fn(e));else if(gn(t))r=function(e,t){const n=Rr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=vn(e)?Dr(e):qn(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Or(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return lr(r)}function Br(e,t){const n=In(e);return!(n===t||!gn(n)||En(n))&&("fixed"===Sn(n).position||Br(n,t))}function Fr(e,t,n){const r=vn(t),o=fn(t),i="fixed"===n,a=Rr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=qn(0);if(r||!r&&!i)if(("body"!==pn(t)||bn(o))&&(s=_n(t)),r){const e=Rr(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ar(o));const u=!o||r||i?qn(0):Nr(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function jr(e){return"static"===Sn(e).position}function $r(e,t){if(!vn(e)||"fixed"===Sn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function Wr(e,t){const n=hn(e);if(kn(e))return n;if(!vn(e)){let t=In(e);for(;t&&!En(t);){if(gn(t)&&!jr(t))return t;t=In(t)}return n}let r=$r(e,t);for(;r&&xn(r)&&jr(r);)r=$r(r,t);return r&&En(r)&&jr(r)&&!wn(r)?n:r||function(e){let t=In(e);for(;vn(t)&&!En(t);){if(wn(t))return t;if(kn(t))return null;t=In(t)}return null}(e)||n}const Hr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=fn(r),s=!!t&&kn(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=qn(1);const c=qn(0),d=vn(r);if((d||!d&&!i)&&(("body"!==pn(r)||bn(a))&&(l=_n(r)),vn(r))){const e=Rr(r);u=Dr(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const p=!a||d||i?qn(0):Nr(a,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-l.scrollTop*u.y+c.y+p.y}},getDocumentElement:fn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?kn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ln(e,[],!1).filter((e=>gn(e)&&"body"!==pn(e))),o=null;const i="fixed"===Sn(e).position;let a=i?In(e):e;for(;gn(a)&&!En(a);){const t=Sn(a),n=wn(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||bn(a)&&!n&&Br(e,a))?r=r.filter((e=>e!==a)):o=t,a=In(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Vr(t,n,o);return e.top=Yn(r.top,e.top),e.right=zn(r.right,e.right),e.bottom=zn(r.bottom,e.bottom),e.left=Yn(r.left,e.left),e}),Vr(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Wr,getElementRects:async function(e){const t=this.getOffsetParent||Wr,n=this.getDimensions,r=await n(e.floating);return{reference:Fr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Lr(e);return{width:t,height:n}},getScale:Dr,isElement:gn,isRTL:function(e){return"rtl"===Sn(e).direction}};function zr(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Tr(e),c=o||i?[...u?Ln(u):[],...Ln(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=fn(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h={rootMargin:-Un(c)+"px "+-Un(o.clientWidth-(u+d))+"px "+-Un(o.clientHeight-(c+p))+"px "+-Un(u)+"px",threshold:Yn(0,zn(1,l))||1};let f=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(u,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),u&&!l&&f.observe(u),f.observe(t));let m=l?Rr(e):null;return l&&function t(){const r=Rr(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Yr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Jn(n),s=er(n),l="y"===rr(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=Xn(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*c,y:p*u}:{x:p*u,y:h*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Kr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Xn(e,t),u={x:n,y:r},c=await Mr(t,l),d=rr(Jn(o)),p=tr(d);let h=u[p],f=u[d];if(i){const e="y"===p?"bottom":"right";h=Qn(h+c["y"===p?"top":"left"],h,h-c[e])}if(a){const e="y"===d?"bottom":"right";f=Qn(f+c["y"===d?"top":"left"],f,f-c[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:i,[d]:a}}}}}},Ur=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Xn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Jn(o),y=rr(s),b=Jn(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(u.floating)),k=p||(b||!m?[ar(s)]:function(e){const t=ar(e);return[ir(e),t,ir(t)]}(s)),w="none"!==f;!p&&w&&k.push(...function(e,t,n,r){const o=er(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Jn(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ir)))),i}(s,m,f,x));const C=[s,...k],E=await Mr(t,g),S=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=er(e),o=or(e),i=nr(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ar(a)),[a,ar(a)]}(o,a,x);S.push(E[e[0]],E[e[1]])}if(_=[..._,{placement:o,overflows:S}],!S.every((e=>e<=0))){var I,M;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(M=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(h){case"bestFit":{var L;const e=null==(L=_.filter((e=>{if(w){const t=rr(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},qr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Xn(e,t)||{};if(null==u)return{};const d=sr(c),p={x:n,y:r},h=or(o),f=nr(h),m=await a.getDimensions(u),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[f]+i.reference[h]-p[h]-i.floating[f],k=p[h]-i.reference[h],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let C=w?w[b]:0;C&&await(null==a.isElement?void 0:a.isElement(w))||(C=s.floating[b]||i.floating[f]);const E=x/2-k/2,S=C/2-m[f]/2-1,_=zn(d[v],S),I=zn(d[y],S),M=_,L=C-m[f]-I,T=C/2-m[f]/2+E,D=Qn(M,T,L),P=!l.arrow&&null!=er(o)&&T!==D&&i.reference[f]/2-(T<M?_:I)-m[f]/2<0,O=P?T<M?T-M:T-L:0;return{[h]:p[h]+O,data:{[h]:D,centerOffset:T-D-O,...P&&{alignmentOffset:O}},reset:P}}}),Zr=(e,t,n)=>{const r=new Map,o={platform:Hr,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Ir(u,r,l),p=r,h={},f=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,h={...h,[i]:{...h[i],...y}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=Ir(u,p,l))),n=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var Gr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Qr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Qr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Qr(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Xr(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jr(e,t){const n=Xr(e);return Math.round(t*n)/n}function eo(e){const t=h.useRef(e);return Gr((()=>{t.current=e})),t}const to=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?qr({element:n.current,padding:r}).fn(t):{}:n?qr({element:n,padding:r}).fn(t):{};var o}}),no=(e,t)=>({...Yr(e),options:[e,t]}),ro=(e,t)=>({...Kr(e),options:[e,t]}),oo=(e,t)=>({...Ur(e),options:[e,t]}),io=(e,t)=>({...to(e),options:[e,t]});function ao(e){return h.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const so={...h},lo=so.useInsertionEffect||(e=>e());function uo(e){const t=h.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return lo((()=>{t.current=e})),h.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var co="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;let po=!1,ho=0;const fo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ho++;const mo=so.useId||function(){const[e,t]=h.useState((()=>po?fo():void 0));return co((()=>{null==e&&t(fo())}),[]),h.useEffect((()=>{po=!0}),[]),e};let go;"production"!==process.env.NODE_ENV&&(go=new Set);const vo=h.forwardRef((function(e,t){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:s=14,height:l=7,tipRadius:u=0,strokeWidth:c=0,staticOffset:d,stroke:p,d:f,style:{transform:m,...g}={},...v}=e;"production"!==process.env.NODE_ENV&&(t||function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=go)&&e.has(o)||(null==(i=go)||i.add(o),console.warn(o))}("The `ref` prop is required for `FloatingArrow`."));const y=mo(),[b,x]=h.useState(!1);if(co((()=>{if(!o)return;"rtl"===Sn(o).direction&&x(!0)}),[o]),!o)return null;const[k,w]=r.split("-"),C="top"===k||"bottom"===k;let E=d;(C&&null!=a&&a.x||!C&&null!=a&&a.y)&&(E=null);const S=2*c,_=S/2,I=s/2*(u/-8+1),M=l/2*u/4,L=!!f,T=E&&"end"===w?"bottom":"top";let D=E&&"end"===w?"right":"left";E&&b&&(D="end"===w?"left":"right");const P=null!=(null==i?void 0:i.x)?E||i.x:"",O=null!=(null==i?void 0:i.y)?E||i.y:"",R=f||"M0,0 H"+s+" L"+(s-I)+","+(l-M)+" Q"+s/2+","+l+" "+I+","+(l-M)+" Z",A={top:L?"rotate(180deg)":"",left:L?"rotate(90deg)":"rotate(-90deg)",bottom:L?"":"rotate(180deg)",right:L?"rotate(-90deg)":"rotate(90deg)"}[k];return n.jsxs("svg",{...v,"aria-hidden":!0,ref:t,width:L?s:s+S,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[D]:P,[T]:O,[k]:C||L?"100%":"calc(100% - "+S/2+"px)",transform:[A,m].filter((e=>!!e)).join(" "),...g},children:[S>0&&n.jsx("path",{clipPath:"url(#"+y+")",fill:"none",stroke:p,strokeWidth:S+(f?0:1),d:R}),n.jsx("path",{stroke:S&&!f?v.fill:"none",d:R}),n.jsx("clipPath",{id:y,children:n.jsx("rect",{x:-_,y:_*(L?-1:1),width:s+S,height:s})})]})}));const yo=h.createContext(null),bo=h.createContext(null),xo=()=>{var e;return(null==(e=h.useContext(yo))?void 0:e.id)||null},ko=()=>h.useContext(bo);function wo(e){return"data-floating-ui-"+e}function Co(t){const n=e.useRef(t);return co((()=>{n.current=t})),n}const Eo=wo("safe-polygon");function So(e,t,n){return n&&!Bn(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function _o(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const Io=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Mo(e,t){const n=_r(e,Io());"prev"===t&&n.reverse();const r=n.indexOf(Dn(Fn(e)));return n.slice(r+1)[0]}function Lo(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Pn(n,r)}function To(e){_r(e,Io()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Do(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Po={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Oo(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Ro=h.forwardRef((function(e,t){const[r,o]=h.useState();co((()=>(Nn()&&o("button"),document.addEventListener("keydown",Oo),()=>{document.removeEventListener("keydown",Oo)})),[]);const i={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[wo("focus-guard")]:"",style:Po};return n.jsx("span",{...e,...i})})),Ao=h.createContext(null),No=wo("portal");function Vo(e){const{children:t,id:r,root:o,preserveTabOrder:i=!0}=e,a=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=mo(),o=Bo(),[i,a]=h.useState(null),s=h.useRef(null);return co((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),co((()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(No,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),co((()=>{if(null===n)return;if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!gn(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(No,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,n,r,o]),i}({id:r,root:o}),[s,l]=h.useState(null),u=h.useRef(null),c=h.useRef(null),d=h.useRef(null),p=h.useRef(null),m=null==s?void 0:s.modal,g=null==s?void 0:s.open,v=!!s&&!s.modal&&s.open&&i&&!(!o&&!a);return h.useEffect((()=>{if(a&&i&&!m)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&Lo(e)){("focusin"===e.type?Do:To)(a)}}}),[a,i,m]),h.useEffect((()=>{a&&(g||Do(a))}),[g,a]),n.jsxs(Ao.Provider,{value:h.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:p,portalNode:a,setFocusManagerState:l})),[i,a]),children:[v&&a&&n.jsx(Ro,{"data-type":"outside",ref:u,onFocus:e=>{if(Lo(e,a)){var t;null==(t=d.current)||t.focus()}else{const e=Mo(document.body,"prev")||(null==s?void 0:s.domReference);null==e||e.focus()}}}),v&&a&&n.jsx("span",{"aria-owns":a.id,style:Po}),a&&f.createPortal(t,a),v&&a&&n.jsx(Ro,{"data-type":"outside",ref:c,onFocus:e=>{if(Lo(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=Mo(document.body,"next")||(null==s?void 0:s.domReference);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Bo=()=>h.useContext(Ao),Fo="data-floating-ui-focusable";function jo(e){return vn(e.target)&&"BUTTON"===e.target.tagName}function $o(e){return Hn(e)}const Wo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ho={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},zo=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Yo(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=mo(),i=h.useRef({}),[a]=h.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=xo();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!gn(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=go)&&e.has(o)||(null==(i=go)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=h.useState(r.reference),c=uo(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=h.useMemo((()=>({setPositionReference:u})),[]),p=h.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return h.useMemo((()=>({dataRef:i,open:t,onOpenChange:c,elements:p,events:a,floatingId:o,refs:d})),[t,c,p,a,o,d])}function Ko(e){void 0===e&&(e={});const{nodeId:t}=e,n=Yo({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=h.useState(null),[s,l]=h.useState(null),u=(null==o?void 0:o.domReference)||i,c=h.useRef(null),d=ko();co((()=>{u&&(c.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=h.useState(r);Qr(p,r)||m(r);const[g,v]=h.useState(null),[y,b]=h.useState(null),x=h.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[]),k=h.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),w=i||g,C=a||y,E=h.useRef(null),S=h.useRef(null),_=h.useRef(c),I=null!=l,M=eo(l),L=eo(o),T=eo(u),D=h.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};L.current&&(e.platform=L.current),Zr(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};P.current&&!Qr(_.current,t)&&(_.current=t,f.flushSync((()=>{d(t)})))}))}),[p,t,n,L,T]);Gr((()=>{!1===u&&_.current.isPositioned&&(_.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const P=h.useRef(!1);Gr((()=>(P.current=!0,()=>{P.current=!1})),[]),Gr((()=>{if(w&&(E.current=w),C&&(S.current=C),w&&C){if(M.current)return M.current(w,C,D);D()}}),[w,C,D,M,I]);const O=h.useMemo((()=>({reference:E,floating:S,setReference:x,setFloating:k})),[x,k]),R=h.useMemo((()=>({reference:w,floating:C})),[w,C]),A=h.useMemo((()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=Jr(R.floating,c.x),r=Jr(R.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Xr(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,R.floating,c.x,c.y]);return h.useMemo((()=>({...c,update:D,refs:O,elements:R,floatingStyles:A})),[c,D,O,R,A])}({...e,elements:{...o,...s&&{reference:s}}}),m=h.useCallback((e=>{const t=gn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),g=h.useCallback((e=>{(gn(e)||null===e)&&(c.current=e,a(e)),(gn(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!gn(e))&&p.refs.setReference(e)}),[p.refs]),v=h.useMemo((()=>({...p.refs,setReference:g,setPositionReference:m,domReference:c})),[p.refs,g,m]),y=h.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),b=h.useMemo((()=>({...p,...r,refs:v,elements:y,nodeId:t})),[p,v,y,t,r]);return co((()=>{r.dataRef.current.floatingContext=b;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),h.useMemo((()=>({...p,context:b,refs:v,elements:y})),[p,v,y,b])}function Uo(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,u=h.useRef(!1),c=h.useRef(),d=h.useRef(!0);h.useEffect((()=>{if(!s)return;const e=hn(a.domReference);function t(){!n&&vn(a.domReference)&&a.domReference===Dn(Fn(a.domReference))&&(u.current=!0)}function r(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,s]),h.useEffect((()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[o,s]),h.useEffect((()=>()=>{clearTimeout(c.current)}),[]);const p=h.useMemo((()=>({onPointerDown(e){An(e.nativeEvent)||(d.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=$n(e.nativeEvent);if(l&&gn(t))try{if(Nn()&&On().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!Hn(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=gn(t)&&t.hasAttribute(wo("focus-guard"))&&"outside"===t.getAttribute("data-type");c.current=window.setTimeout((()=>{var e;const s=Dn(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(Pn(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||Pn(a.domReference,s)||o||r(!1,n,"focus"))}))}})),[i,a.domReference,r,l]);return h.useMemo((()=>s?{reference:p}:{}),[s,p])}const qo="active",Zo="selected";function Go(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[qo]:t,[Zo]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Fo]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[qo,Zo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const Qo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);const Xo=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Jo(e,t){return"function"==typeof e?e(t):e}function ei(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[a,s]=h.useState("unmounted"),l=function(e,t){const[n,r]=h.useState(e);return e&&!n&&r(!0),h.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,i);return l||"close"!==a||s("unmounted"),co((()=>{if(r){if(n){s("initial");const e=requestAnimationFrame((()=>{s("open")}));return()=>{cancelAnimationFrame(e)}}s("close")}}),[n,r]),{isMounted:l,status:a}}function ti(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,u]=t[a]||[0,0];s>=r!=u>=r&&n<=(l-i)*(r-s)/(u-s)+i&&(o=!o)}return o}function ni(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const u=e=>{let{x:n,y:u,placement:c,elements:d,onClose:p,nodeId:h,tree:f}=e;return function(e){function m(){clearTimeout(o),p()}if(clearTimeout(o),!d.domReference||!d.floating||null==c||null==n||null==u)return;const{clientX:g,clientY:v}=e,y=[g,v],b=$n(e),x="mouseleave"===e.type,k=Pn(d.floating,b),w=Pn(d.domReference,b),C=d.domReference.getBoundingClientRect(),E=d.floating.getBoundingClientRect(),S=c.split("-")[0],_=n>E.right-E.width/2,I=u>E.bottom-E.height/2,M=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,C),L=E.width>C.width,T=E.height>C.height,D=(L?C:E).left,P=(L?C:E).right,O=(T?C:E).top,R=(T?C:E).bottom;if(k&&(i=!0,!x))return;if(w&&(i=!1),w&&!x)return void(i=!0);if(x&&gn(e.relatedTarget)&&Pn(d.floating,e.relatedTarget))return;if(f&&_o(f.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===S&&u>=C.bottom-1||"bottom"===S&&u<=C.top+1||"left"===S&&n>=C.right-1||"right"===S&&n<=C.left+1)return m();let A=[];switch(S){case"top":A=[[D,C.top+1],[D,E.bottom-1],[P,E.bottom-1],[P,C.top+1]];break;case"bottom":A=[[D,E.top+1],[D,C.bottom-1],[P,C.bottom-1],[P,E.top+1]];break;case"left":A=[[E.right-1,R],[E.right-1,O],[C.left+1,O],[C.left+1,R]];break;case"right":A=[[C.right-1,R],[C.right-1,O],[E.left+1,O],[E.left+1,R]]}if(!ti([g,v],A)){if(i&&!M)return m();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,u=Math.sqrt(o*o+i*i);return a=e,s=t,l=n,u/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}ti([g,v],function(e){let[n,r]=e;switch(S){case"top":return[[L?n+t/2:_?n+4*t:n-4*t,r+t+1],[L?n-t/2:_?n+4*t:n-4*t,r+t+1],...[[E.left,_||L?E.bottom-t:E.top],[E.right,_?L?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[L?n+t/2:_?n+4*t:n-4*t,r-t],[L?n-t/2:_?n+4*t:n-4*t,r-t],...[[E.left,_||L?E.top+t:E.bottom],[E.right,_?L?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,T?r+t/2:I?r+4*t:r-4*t],o=[n+t+1,T?r-t/2:I?r+4*t:r-4*t];return[...[[I||T?E.right-t:E.left,E.top],[I?T?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,T?r+t/2:I?r+4*t:r-4*t],[n-t,T?r-t/2:I?r+4*t:r-4*t],...[[I||T?E.left+t:E.right,E.top],[I?T?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,u]))?!i&&r&&(o=window.setTimeout(m,40)):m()}}};return u.__options={blockPointerEvents:n},u}const ri=e=>!("boolean"==typeof e||null==e),oi=n=>{const{"aria-disabled":r,"aria-label":o,ariaDisabled:i,ariaLabel:a,buttonStyle:s,children:l,className:u,colorScheme:c,disabled:d=!1,fullWidth:p=!1,href:h,htmlRef:f,iconLeft:m,iconRight:v,iconSystemLeft:y,iconSystemRight:b,isLoading:x=!1,mediaType:k,onClick:w,size:C=exports.ButtonSize.md,suppressHydrationWarning:E,type:S}=n,_=g(n,["aria-disabled","aria-label","ariaDisabled","ariaLabel","buttonStyle","children","className","colorScheme","disabled","fullWidth","href","htmlRef","iconLeft","iconRight","iconSystemLeft","iconSystemRight","isLoading","mediaType","onClick","size","suppressHydrationWarning","type"]),I=t.useTheme(),{chooseColor:M,colorScheme:L,mediaType:T}=z(n),D=e.useRef(null),P=ao([f,D]),O=function(t){const[n,r]=e.useState(!1);return on("mouseenter",(()=>{r(!0)}),t),on("mouseleave",(()=>{r(!1)}),t),n}(D),R=e.useMemo((()=>{switch(!0){case s===exports.ButtonStyle.primary&&d:return M(I.colors.fg.disabled);case s===exports.ButtonStyle.primary&&O:case s===exports.ButtonStyle.primary:return M(I.colors.fg.neutral.white);case s===exports.ButtonStyle.secondary&&d:return M(I.colors.fg.disabled);case s===exports.ButtonStyle.secondary&&O:return M(I.colors.fg.brand.bold);case s===exports.ButtonStyle.secondary:return M(I.colors.fg.neutral.subtle);case s===exports.ButtonStyle.tertiary&&d:return M(I.colors.fg.disabled);case s===exports.ButtonStyle.tertiary&&O:return M(I.colors.fg.brand.bold);case s===exports.ButtonStyle.tertiary:return M(I.colors.fg.neutral.subtle);default:throw new Error("unexpected combination when specifying the button icon color button.tsx")}}),[s,M,d,O,I]),A=e.useMemo((()=>{switch(C){case exports.ButtonSize.xs:return exports.TypographyVariant.textXs;case exports.ButtonSize.sm:case exports.ButtonSize.md:return exports.TypographyVariant.textSm;case exports.ButtonSize.xl:return exports.TypographyVariant.textMd;case exports.ButtonSize.xxl:return exports.TypographyVariant.textLg;default:throw new Error("unexpected enum value of ButtonSize in button.tsx")}}),[C]),N=e.useMemo((()=>{switch(C){case exports.ButtonSize.xs:return exports.IconSystemSize.small;case exports.ButtonSize.sm:case exports.ButtonSize.md:case exports.ButtonSize.xl:case exports.ButtonSize.xxl:return exports.IconSystemSize.big;default:throw new Error("unexpected enum value of ButtonSize in button.tsx")}}),[C]);return e.createElement(Rt,Object.assign({$buttonStyle:s,$chooseColor:M,$fullWidth:p,$size:C,$type:S,"aria-disabled":null!=r?r:i,"aria-label":null!=o?o:a,as:S===exports.ButtonType.anchor?"a":void 0,className:u,disabled:d,href:h,ref:P,suppressHydrationWarning:E,type:S===exports.ButtonType.button||S===exports.ButtonType.submit||S===exports.ButtonType.reset?S:void 0,onClick:w},_),x&&e.createElement(Nt,null,e.createElement(gt,{colorScheme:L,size:exports.IconSystemSize.big,stroke:R,type:exports.IconSystemType.spinner})),void 0!==m&&e.createElement(At,null,m),void 0!==y&&e.createElement(gt,{colorScheme:L,size:N,stroke:R,type:y}),ri(l)&&e.createElement(X,{color:"inherit",colorScheme:L,mediaType:T,variant:A,weight:exports.FontWeight.medium500},l),void 0!==v&&e.createElement(At,null,v),void 0!==b&&e.createElement(gt,{colorScheme:L,size:N,stroke:R,type:b}))};function ii(e){return ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ii(e)}function ai(e){var t=function(e,t){if("object"!=ii(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ii(t)?t:t+""}function si(e,t,n){return(t=ai(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function di(e,t){if(e){if("string"==typeof e)return ci(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ci(e,t):void 0}}function pi(e){return function(e){if(Array.isArray(e))return ci(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||di(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||di(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var fi,mi={exports:{}};
5
+ */var ur=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),cr="undefined"==typeof Element,dr=cr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pr=!cr&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},hr=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},fr=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!hr(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{dr.call(a,ur)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),c=!hr(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&c){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},mr=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},gr=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!mr(e)?0:e.tabIndex},vr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},yr=function(e){return"INPUT"===e.tagName},br=function(e){return function(e){return yr(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||pr(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},xr=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},kr=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=dr.call(e,"details>summary:first-of-type")?e.parentElement:e;if(dr.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return xr(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=pr(e);if(a&&!a.shadowRoot&&!0===r(a))return xr(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&pr(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,u,c;s=!(null===(u=a=null===(l=i=pr(a))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},wr=function(e,t){return!(t.disabled||hr(t)||function(e){return yr(e)&&"hidden"===e.type}(t)||kr(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!dr.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Cr=function(e,t){return!(br(t)||gr(t)<0||!wr(e,t))},Er=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Sr=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=gr(e);return n<0&&t&&!mr(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(vr).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},_r=function(e,t){var n;return n=(t=t||{}).getShadowRoot?fr([e],t.includeContainer,{filter:Cr.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Er}):function(e,t,n){if(hr(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ur));return t&&dr.call(e,ur)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Cr.bind(null,t)),Sr(n)};function Ir(e,t,n){let{reference:r,floating:o}=e;const i=rr(t),a=or(t),s=nr(a),l=Jn(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-o.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(er(t)){case"start":h[a]-=p*(n&&u?-1:1);break;case"end":h[a]+=p*(n&&u?-1:1)}return h}async function Mr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Xn(t,e),f=sr(h),m=s[p?"floating"===d?"reference":"floating":d],g=lr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=lr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-x.top+f.top)/b.y,bottom:(x.bottom-g.bottom+f.bottom)/b.y,left:(g.left-x.left+f.left)/b.x,right:(x.right-g.right+f.right)/b.x}}function Lr(e){const t=Sn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=vn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Kn(n)!==i||Kn(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Tr(e){return gn(e)?e:e.contextElement}function Dr(e){const t=Tr(e);if(!vn(t))return qn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lr(t);let a=(i?Kn(n.width):n.width)/r,s=(i?Kn(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Pr=qn(0);function Or(e){const t=hn(e);return Cn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pr}function Rr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Tr(e);let a=qn(1);t&&(r?gn(r)&&(a=Dr(r)):a=Dr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==hn(e))&&t}(i,n,r)?Or(i):qn(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=hn(i),t=r&&gn(r)?hn(r):r;let n=e,o=Tn(n);for(;o&&r&&t!==n;){const e=Dr(o),t=o.getBoundingClientRect(),r=Sn(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,n=hn(o),o=Tn(n)}}return lr({width:c,height:d,x:l,y:u})}function Ar(e,t){const n=_n(e).scrollLeft;return t?t.left+n:Rr(fn(e)).left+n}function Nr(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ar(e,r)),y:r.top+t.scrollTop}}function Vr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=hn(e),r=fn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Cn();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=fn(e),n=_n(e),r=e.ownerDocument.body,o=Yn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Yn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ar(e);const s=-n.scrollTop;return"rtl"===Sn(r).direction&&(a+=Yn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(fn(e));else if(gn(t))r=function(e,t){const n=Rr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=vn(e)?Dr(e):qn(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Or(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return lr(r)}function Br(e,t){const n=In(e);return!(n===t||!gn(n)||En(n))&&("fixed"===Sn(n).position||Br(n,t))}function Fr(e,t,n){const r=vn(t),o=fn(t),i="fixed"===n,a=Rr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=qn(0);if(r||!r&&!i)if(("body"!==pn(t)||bn(o))&&(s=_n(t)),r){const e=Rr(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ar(o));const u=!o||r||i?qn(0):Nr(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function jr(e){return"static"===Sn(e).position}function $r(e,t){if(!vn(e)||"fixed"===Sn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return fn(e)===n&&(n=n.ownerDocument.body),n}function Wr(e,t){const n=hn(e);if(kn(e))return n;if(!vn(e)){let t=In(e);for(;t&&!En(t);){if(gn(t)&&!jr(t))return t;t=In(t)}return n}let r=$r(e,t);for(;r&&xn(r)&&jr(r);)r=$r(r,t);return r&&En(r)&&jr(r)&&!wn(r)?n:r||function(e){let t=In(e);for(;vn(t)&&!En(t);){if(wn(t))return t;if(kn(t))return null;t=In(t)}return null}(e)||n}const Hr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=fn(r),s=!!t&&kn(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=qn(1);const c=qn(0),d=vn(r);if((d||!d&&!i)&&(("body"!==pn(r)||bn(a))&&(l=_n(r)),vn(r))){const e=Rr(r);u=Dr(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const p=!a||d||i?qn(0):Nr(a,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+p.x,y:n.y*u.y-l.scrollTop*u.y+c.y+p.y}},getDocumentElement:fn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?kn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ln(e,[],!1).filter((e=>gn(e)&&"body"!==pn(e))),o=null;const i="fixed"===Sn(e).position;let a=i?In(e):e;for(;gn(a)&&!En(a);){const t=Sn(a),n=wn(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||bn(a)&&!n&&Br(e,a))?r=r.filter((e=>e!==a)):o=t,a=In(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Vr(t,n,o);return e.top=Yn(r.top,e.top),e.right=zn(r.right,e.right),e.bottom=zn(r.bottom,e.bottom),e.left=Yn(r.left,e.left),e}),Vr(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Wr,getElementRects:async function(e){const t=this.getOffsetParent||Wr,n=this.getDimensions,r=await n(e.floating);return{reference:Fr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Lr(e);return{width:t,height:n}},getScale:Dr,isElement:gn,isRTL:function(e){return"rtl"===Sn(e).direction}};function zr(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Tr(e),c=o||i?[...u?Ln(u):[],...Ln(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?function(e,t){let n,r=null;const o=fn(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h={rootMargin:-Un(c)+"px "+-Un(o.clientWidth-(u+d))+"px "+-Un(o.clientHeight-(c+p))+"px "+-Un(u)+"px",threshold:Yn(0,zn(1,l))||1};let f=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(u,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),u&&!l&&f.observe(u),f.observe(t));let m=l?Rr(e):null;return l&&function t(){const r=Rr(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Yr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Jn(n),s=er(n),l="y"===rr(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=Xn(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*c,y:p*u}:{x:p*u,y:h*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Kr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Xn(e,t),u={x:n,y:r},c=await Mr(t,l),d=rr(Jn(o)),p=tr(d);let h=u[p],f=u[d];if(i){const e="y"===p?"bottom":"right";h=Qn(h+c["y"===p?"top":"left"],h,h-c[e])}if(a){const e="y"===d?"bottom":"right";f=Qn(f+c["y"===d?"top":"left"],f,f-c[e])}const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[p]:i,[d]:a}}}}}},Ur=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=Xn(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Jn(o),y=rr(s),b=Jn(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(u.floating)),k=p||(b||!m?[ar(s)]:function(e){const t=ar(e);return[ir(e),t,ir(t)]}(s)),w="none"!==f;!p&&w&&k.push(...function(e,t,n,r){const o=er(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Jn(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ir)))),i}(s,m,f,x));const C=[s,...k],E=await Mr(t,g),S=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=er(e),o=or(e),i=nr(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ar(a)),[a,ar(a)]}(o,a,x);S.push(E[e[0]],E[e[1]])}if(_=[..._,{placement:o,overflows:S}],!S.every((e=>e<=0))){var I,M;const e=((null==(I=i.flip)?void 0:I.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(M=_.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:M.placement;if(!n)switch(h){case"bestFit":{var L;const e=null==(L=_.filter((e=>{if(w){const t=rr(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:L[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},qr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Xn(e,t)||{};if(null==u)return{};const d=sr(c),p={x:n,y:r},h=or(o),f=nr(h),m=await a.getDimensions(u),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[f]+i.reference[h]-p[h]-i.floating[f],k=p[h]-i.reference[h],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let C=w?w[b]:0;C&&await(null==a.isElement?void 0:a.isElement(w))||(C=s.floating[b]||i.floating[f]);const E=x/2-k/2,S=C/2-m[f]/2-1,_=zn(d[v],S),I=zn(d[y],S),M=_,L=C-m[f]-I,T=C/2-m[f]/2+E,D=Qn(M,T,L),P=!l.arrow&&null!=er(o)&&T!==D&&i.reference[f]/2-(T<M?_:I)-m[f]/2<0,O=P?T<M?T-M:T-L:0;return{[h]:p[h]+O,data:{[h]:D,centerOffset:T-D-O,...P&&{alignmentOffset:O}},reset:P}}}),Zr=(e,t,n)=>{const r=new Map,o={platform:Hr,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Ir(u,r,l),p=r,h={},f=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:g,y:v,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,h={...h,[i]:{...h[i],...y}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=Ir(u,p,l))),n=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var Gr="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Qr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Qr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Qr(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Xr(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jr(e,t){const n=Xr(e);return Math.round(t*n)/n}function eo(e){const t=h.useRef(e);return Gr((()=>{t.current=e})),t}const to=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?qr({element:n.current,padding:r}).fn(t):{}:n?qr({element:n,padding:r}).fn(t):{};var o}}),no=(e,t)=>({...Yr(e),options:[e,t]}),ro=(e,t)=>({...Kr(e),options:[e,t]}),oo=(e,t)=>({...Ur(e),options:[e,t]}),io=(e,t)=>({...to(e),options:[e,t]});function ao(e){return h.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const so={...h},lo=so.useInsertionEffect||(e=>e());function uo(e){const t=h.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return lo((()=>{t.current=e})),h.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var co="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;let po=!1,ho=0;const fo=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ho++;const mo=so.useId||function(){const[e,t]=h.useState((()=>po?fo():void 0));return co((()=>{null==e&&t(fo())}),[]),h.useEffect((()=>{po=!0}),[]),e};let go;"production"!==process.env.NODE_ENV&&(go=new Set);const vo=h.forwardRef((function(e,t){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:s=14,height:l=7,tipRadius:u=0,strokeWidth:c=0,staticOffset:d,stroke:p,d:f,style:{transform:m,...g}={},...v}=e;"production"!==process.env.NODE_ENV&&(t||function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=go)&&e.has(o)||(null==(i=go)||i.add(o),console.warn(o))}("The `ref` prop is required for `FloatingArrow`."));const y=mo(),[b,x]=h.useState(!1);if(co((()=>{if(!o)return;"rtl"===Sn(o).direction&&x(!0)}),[o]),!o)return null;const[k,w]=r.split("-"),C="top"===k||"bottom"===k;let E=d;(C&&null!=a&&a.x||!C&&null!=a&&a.y)&&(E=null);const S=2*c,_=S/2,I=s/2*(u/-8+1),M=l/2*u/4,L=!!f,T=E&&"end"===w?"bottom":"top";let D=E&&"end"===w?"right":"left";E&&b&&(D="end"===w?"left":"right");const P=null!=(null==i?void 0:i.x)?E||i.x:"",O=null!=(null==i?void 0:i.y)?E||i.y:"",R=f||"M0,0 H"+s+" L"+(s-I)+","+(l-M)+" Q"+s/2+","+l+" "+I+","+(l-M)+" Z",A={top:L?"rotate(180deg)":"",left:L?"rotate(90deg)":"rotate(-90deg)",bottom:L?"":"rotate(180deg)",right:L?"rotate(-90deg)":"rotate(90deg)"}[k];return n.jsxs("svg",{...v,"aria-hidden":!0,ref:t,width:L?s:s+S,height:s,viewBox:"0 0 "+s+" "+(l>s?l:s),style:{position:"absolute",pointerEvents:"none",[D]:P,[T]:O,[k]:C||L?"100%":"calc(100% - "+S/2+"px)",transform:[A,m].filter((e=>!!e)).join(" "),...g},children:[S>0&&n.jsx("path",{clipPath:"url(#"+y+")",fill:"none",stroke:p,strokeWidth:S+(f?0:1),d:R}),n.jsx("path",{stroke:S&&!f?v.fill:"none",d:R}),n.jsx("clipPath",{id:y,children:n.jsx("rect",{x:-_,y:_*(L?-1:1),width:s+S,height:s})})]})}));const yo=h.createContext(null),bo=h.createContext(null),xo=()=>{var e;return(null==(e=h.useContext(yo))?void 0:e.id)||null},ko=()=>h.useContext(bo);function wo(e){return"data-floating-ui-"+e}function Co(t){const n=e.useRef(t);return co((()=>{n.current=t})),n}const Eo=wo("safe-polygon");function So(e,t,n){return n&&!Bn(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function _o(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}const Io=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Mo(e,t){const n=_r(e,Io());"prev"===t&&n.reverse();const r=n.indexOf(Dn(Fn(e)));return n.slice(r+1)[0]}function Lo(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Pn(n,r)}function To(e){_r(e,Io()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Do(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Po={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Oo(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Ro=h.forwardRef((function(e,t){const[r,o]=h.useState();co((()=>(Nn()&&o("button"),document.addEventListener("keydown",Oo),()=>{document.removeEventListener("keydown",Oo)})),[]);const i={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[wo("focus-guard")]:"",style:Po};return n.jsx("span",{...e,...i})})),Ao=h.createContext(null),No=wo("portal");function Vo(e){const{children:t,id:r,root:o,preserveTabOrder:i=!0}=e,a=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=mo(),o=Bo(),[i,a]=h.useState(null),s=h.useRef(null);return co((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),co((()=>{if(!r)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(No,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),co((()=>{if(null===n)return;if(!r)return;if(s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!gn(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(No,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,n,r,o]),i}({id:r,root:o}),[s,l]=h.useState(null),u=h.useRef(null),c=h.useRef(null),d=h.useRef(null),p=h.useRef(null),m=null==s?void 0:s.modal,g=null==s?void 0:s.open,v=!!s&&!s.modal&&s.open&&i&&!(!o&&!a);return h.useEffect((()=>{if(a&&i&&!m)return a.addEventListener("focusin",e,!0),a.addEventListener("focusout",e,!0),()=>{a.removeEventListener("focusin",e,!0),a.removeEventListener("focusout",e,!0)};function e(e){if(a&&Lo(e)){("focusin"===e.type?Do:To)(a)}}}),[a,i,m]),h.useEffect((()=>{a&&(g||Do(a))}),[g,a]),n.jsxs(Ao.Provider,{value:h.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:p,portalNode:a,setFocusManagerState:l})),[i,a]),children:[v&&a&&n.jsx(Ro,{"data-type":"outside",ref:u,onFocus:e=>{if(Lo(e,a)){var t;null==(t=d.current)||t.focus()}else{const e=Mo(document.body,"prev")||(null==s?void 0:s.domReference);null==e||e.focus()}}}),v&&a&&n.jsx("span",{"aria-owns":a.id,style:Po}),a&&f.createPortal(t,a),v&&a&&n.jsx(Ro,{"data-type":"outside",ref:c,onFocus:e=>{if(Lo(e,a)){var t;null==(t=p.current)||t.focus()}else{const t=Mo(document.body,"next")||(null==s?void 0:s.domReference);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Bo=()=>h.useContext(Ao),Fo="data-floating-ui-focusable";function jo(e){return vn(e.target)&&"BUTTON"===e.target.tagName}function $o(e){return Hn(e)}const Wo={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ho={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},zo=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Yo(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=mo(),i=h.useRef({}),[a]=h.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=xo();if("production"!==process.env.NODE_ENV){const e=r.reference;e&&!gn(e)&&function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");var i;null!=(e=go)&&e.has(o)||(null==(i=go)||i.add(o),console.error(o))}("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[l,u]=h.useState(r.reference),c=uo(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=h.useMemo((()=>({setPositionReference:u})),[]),p=h.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return h.useMemo((()=>({dataRef:i,open:t,onOpenChange:c,elements:p,events:a,floatingId:o,refs:d})),[t,c,p,a,o,d])}function Ko(e){void 0===e&&(e={});const{nodeId:t}=e,n=Yo({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=h.useState(null),[s,l]=h.useState(null),u=(null==o?void 0:o.domReference)||i,c=h.useRef(null),d=ko();co((()=>{u&&(c.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=h.useState(r);Qr(p,r)||m(r);const[g,v]=h.useState(null),[y,b]=h.useState(null),x=h.useCallback((e=>{e!==E.current&&(E.current=e,v(e))}),[]),k=h.useCallback((e=>{e!==S.current&&(S.current=e,b(e))}),[]),w=i||g,C=a||y,E=h.useRef(null),S=h.useRef(null),_=h.useRef(c),I=null!=l,M=eo(l),L=eo(o),T=eo(u),D=h.useCallback((()=>{if(!E.current||!S.current)return;const e={placement:t,strategy:n,middleware:p};L.current&&(e.platform=L.current),Zr(E.current,S.current,e).then((e=>{const t={...e,isPositioned:!1!==T.current};P.current&&!Qr(_.current,t)&&(_.current=t,f.flushSync((()=>{d(t)})))}))}),[p,t,n,L,T]);Gr((()=>{!1===u&&_.current.isPositioned&&(_.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const P=h.useRef(!1);Gr((()=>(P.current=!0,()=>{P.current=!1})),[]),Gr((()=>{if(w&&(E.current=w),C&&(S.current=C),w&&C){if(M.current)return M.current(w,C,D);D()}}),[w,C,D,M,I]);const O=h.useMemo((()=>({reference:E,floating:S,setReference:x,setFloating:k})),[x,k]),R=h.useMemo((()=>({reference:w,floating:C})),[w,C]),A=h.useMemo((()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=Jr(R.floating,c.x),r=Jr(R.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Xr(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,R.floating,c.x,c.y]);return h.useMemo((()=>({...c,update:D,refs:O,elements:R,floatingStyles:A})),[c,D,O,R,A])}({...e,elements:{...o,...s&&{reference:s}}}),m=h.useCallback((e=>{const t=gn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),g=h.useCallback((e=>{(gn(e)||null===e)&&(c.current=e,a(e)),(gn(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!gn(e))&&p.refs.setReference(e)}),[p.refs]),v=h.useMemo((()=>({...p.refs,setReference:g,setPositionReference:m,domReference:c})),[p.refs,g,m]),y=h.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),b=h.useMemo((()=>({...p,...r,refs:v,elements:y,nodeId:t})),[p,v,y,t,r]);return co((()=>{r.dataRef.current.floatingContext=b;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),h.useMemo((()=>({...p,context:b,refs:v,elements:y})),[p,v,y,b])}function Uo(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,u=h.useRef(!1),c=h.useRef(),d=h.useRef(!0);h.useEffect((()=>{if(!s)return;const e=hn(a.domReference);function t(){!n&&vn(a.domReference)&&a.domReference===Dn(Fn(a.domReference))&&(u.current=!0)}function r(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,s]),h.useEffect((()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[o,s]),h.useEffect((()=>()=>{clearTimeout(c.current)}),[]);const p=h.useMemo((()=>({onPointerDown(e){An(e.nativeEvent)||(d.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=$n(e.nativeEvent);if(l&&gn(t))try{if(Nn()&&On().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!Hn(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=gn(t)&&t.hasAttribute(wo("focus-guard"))&&"outside"===t.getAttribute("data-type");c.current=window.setTimeout((()=>{var e;const s=Dn(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(Pn(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||Pn(a.domReference,s)||o||r(!1,n,"focus"))}))}})),[i,a.domReference,r,l]);return h.useMemo((()=>s?{reference:p}:{}),[s,p])}const qo="active",Zo="selected";function Go(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[qo]:t,[Zo]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[Fo]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[qo,Zo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}const Qo=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);const Xo=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Jo(e,t){return"function"==typeof e?e(t):e}function ei(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[a,s]=h.useState("unmounted"),l=function(e,t){const[n,r]=h.useState(e);return e&&!n&&r(!0),h.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,i);return l||"close"!==a||s("unmounted"),co((()=>{if(r){if(n){s("initial");const e=requestAnimationFrame((()=>{s("open")}));return()=>{cancelAnimationFrame(e)}}s("close")}}),[n,r]),{isMounted:l,status:a}}function ti(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,u]=t[a]||[0,0];s>=r!=u>=r&&n<=(l-i)*(r-s)/(u-s)+i&&(o=!o)}return o}function ni(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const u=e=>{let{x:n,y:u,placement:c,elements:d,onClose:p,nodeId:h,tree:f}=e;return function(e){function m(){clearTimeout(o),p()}if(clearTimeout(o),!d.domReference||!d.floating||null==c||null==n||null==u)return;const{clientX:g,clientY:v}=e,y=[g,v],b=$n(e),x="mouseleave"===e.type,k=Pn(d.floating,b),w=Pn(d.domReference,b),C=d.domReference.getBoundingClientRect(),E=d.floating.getBoundingClientRect(),S=c.split("-")[0],_=n>E.right-E.width/2,I=u>E.bottom-E.height/2,M=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,C),L=E.width>C.width,T=E.height>C.height,D=(L?C:E).left,P=(L?C:E).right,O=(T?C:E).top,R=(T?C:E).bottom;if(k&&(i=!0,!x))return;if(w&&(i=!1),w&&!x)return void(i=!0);if(x&&gn(e.relatedTarget)&&Pn(d.floating,e.relatedTarget))return;if(f&&_o(f.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===S&&u>=C.bottom-1||"bottom"===S&&u<=C.top+1||"left"===S&&n>=C.right-1||"right"===S&&n<=C.left+1)return m();let A=[];switch(S){case"top":A=[[D,C.top+1],[D,E.bottom-1],[P,E.bottom-1],[P,C.top+1]];break;case"bottom":A=[[D,E.top+1],[D,C.bottom-1],[P,C.bottom-1],[P,E.top+1]];break;case"left":A=[[E.right-1,R],[E.right-1,O],[C.left+1,O],[C.left+1,R]];break;case"right":A=[[C.right-1,R],[C.right-1,O],[E.left+1,O],[E.left+1,R]]}if(!ti([g,v],A)){if(i&&!M)return m();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,u=Math.sqrt(o*o+i*i);return a=e,s=t,l=n,u/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}ti([g,v],function(e){let[n,r]=e;switch(S){case"top":return[[L?n+t/2:_?n+4*t:n-4*t,r+t+1],[L?n-t/2:_?n+4*t:n-4*t,r+t+1],...[[E.left,_||L?E.bottom-t:E.top],[E.right,_?L?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[L?n+t/2:_?n+4*t:n-4*t,r-t],[L?n-t/2:_?n+4*t:n-4*t,r-t],...[[E.left,_||L?E.top+t:E.bottom],[E.right,_?L?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,T?r+t/2:I?r+4*t:r-4*t],o=[n+t+1,T?r-t/2:I?r+4*t:r-4*t];return[...[[I||T?E.right-t:E.left,E.top],[I?T?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,T?r+t/2:I?r+4*t:r-4*t],[n-t,T?r-t/2:I?r+4*t:r-4*t],...[[I||T?E.left+t:E.right,E.top],[I?T?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,u]))?!i&&r&&(o=window.setTimeout(m,40)):m()}}};return u.__options={blockPointerEvents:n},u}const ri=e=>!("boolean"==typeof e||null==e),oi=n=>{const{"aria-disabled":r,"aria-label":o,ariaDisabled:i,ariaLabel:a,buttonStyle:s,children:l,className:u,colorScheme:c,disabled:d=!1,fullWidth:p=!1,href:h,htmlRef:f,iconLeft:m,iconRight:v,iconSystemLeft:y,iconSystemRight:b,isLoading:x=!1,mediaType:k,onClick:w,size:C=exports.ButtonSize.md,suppressHydrationWarning:E,type:S}=n,_=g(n,["aria-disabled","aria-label","ariaDisabled","ariaLabel","buttonStyle","children","className","colorScheme","disabled","fullWidth","href","htmlRef","iconLeft","iconRight","iconSystemLeft","iconSystemRight","isLoading","mediaType","onClick","size","suppressHydrationWarning","type"]),I=t.useTheme(),{chooseColor:M,colorScheme:L,mediaType:T}=z(n),D=e.useRef(null),P=ao([f,D]),O=function(t){const[n,r]=e.useState(!1);return on("mouseenter",(()=>{r(!0)}),t),on("mouseleave",(()=>{r(!1)}),t),n}(D),R=e.useMemo((()=>{switch(!0){case s===exports.ButtonStyle.primary&&d:return M(I.colors.fg.disabled);case s===exports.ButtonStyle.primary&&O:case s===exports.ButtonStyle.primary:return M(I.colors.fg.neutral.white);case s===exports.ButtonStyle.secondary&&d:return M(I.colors.fg.disabled);case s===exports.ButtonStyle.secondary&&O:return M(I.colors.fg.brand.bold);case s===exports.ButtonStyle.secondary:return M(I.colors.fg.neutral.subtle);case s===exports.ButtonStyle.tertiary&&d:return M(I.colors.fg.disabled);case s===exports.ButtonStyle.tertiary&&O:return M(I.colors.fg.brand.bold);case s===exports.ButtonStyle.tertiary:return M(I.colors.fg.neutral.subtle);default:throw new Error("unexpected combination when specifying the button icon color button.tsx")}}),[s,M,d,O,I]),A=e.useMemo((()=>{switch(C){case exports.ButtonSize.xs:return exports.TypographyVariant.textXs;case exports.ButtonSize.sm:case exports.ButtonSize.md:return exports.TypographyVariant.textSm;case exports.ButtonSize.xl:return exports.TypographyVariant.textMd;case exports.ButtonSize.xxl:return exports.TypographyVariant.textLg;default:throw new Error("unexpected enum value of ButtonSize in button.tsx")}}),[C]),N=e.useMemo((()=>{switch(C){case exports.ButtonSize.xs:return exports.IconSystemSize.small;case exports.ButtonSize.sm:case exports.ButtonSize.md:case exports.ButtonSize.xl:case exports.ButtonSize.xxl:return exports.IconSystemSize.big;default:throw new Error("unexpected enum value of ButtonSize in button.tsx")}}),[C]);return e.createElement(Rt,Object.assign({$buttonStyle:s,$chooseColor:M,$fullWidth:p,$size:C,$type:S,"aria-disabled":null!=r?r:i,"aria-label":null!=o?o:a,as:S===exports.ButtonType.anchor?"a":void 0,className:u,disabled:d,href:h,ref:P,suppressHydrationWarning:E,type:S===exports.ButtonType.button||S===exports.ButtonType.submit||S===exports.ButtonType.reset?S:void 0,onClick:w},_),x&&e.createElement(Nt,null,e.createElement(gt,{colorScheme:L,size:exports.IconSystemSize.big,stroke:R,type:exports.IconSystemType.spinner})),void 0!==m&&e.createElement(At,null,m),void 0!==y&&e.createElement(gt,{ariaHidden:!0,colorScheme:L,size:N,stroke:R,type:y}),ri(l)&&e.createElement(X,{color:"inherit",colorScheme:L,mediaType:T,variant:A,weight:exports.FontWeight.medium500},l),void 0!==v&&e.createElement(At,null,v),void 0!==b&&e.createElement(gt,{ariaHidden:!0,colorScheme:L,size:N,stroke:R,type:b}))};function ii(e){return ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ii(e)}function ai(e){var t=function(e,t){if("object"!=ii(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ii(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ii(t)?t:t+""}function si(e,t,n){return(t=ai(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach((function(t){si(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function di(e,t){if(e){if("string"==typeof e)return ci(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ci(e,t):void 0}}function pi(e){return function(e){if(Array.isArray(e))return ci(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||di(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||di(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var fi,mi={exports:{}};
6
6
  /*!
7
7
  Copyright (c) 2018 Jed Watson.
8
8
  Licensed under the MIT License (MIT), see
@@ -41,7 +41,7 @@ var Ul=function(){return Ul=Object.assign||function(e){for(var t,n=1,r=arguments
41
41
  object-assign
42
42
  (c) Sindre Sorhus
43
43
  @license MIT
44
- */function Jm(){if(jm)return Fm;jm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Fm=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))t.call(i,u)&&(s[u]=i[u]);if(e){a=e(i);for(var c=0;c<a.length;c++)n.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s},Fm}function eg(){if(Wm)return $m;Wm=1;return $m="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function tg(){return zm?Hm:(zm=1,Hm=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var ng=Xm();Rm.exports=function(){if(qm)return Um;qm=1;var e=Xm(),t=Jm(),n=eg(),r=tg(),o=function(){if(Km)return Ym;Km=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=eg(),n={},r=tg();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var u in o)if(r(o,u)){var c;try{if("function"!=typeof o[u]){var d=Error((s||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=o[u](i,u,s,a,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((s||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+c.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ym=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Um=function(s,l){var u="function"==typeof Symbol&&Symbol.iterator,c="@@iterator",d="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(a),arrayOf:function(e){return m((function(t,r,o,i,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,o,i,a+"["+l+"]",n);if(u instanceof Error)return u}return null}))},element:m((function(e,t,n,r,o){var i=e[t];return s(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new f("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:m((function(e,t,n,r,o){return y(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,i,a,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],u=b(l);if("object"!==u)return new f("Invalid "+a+" `"+s+"` of type `"+u+"` supplied to `"+i+"`, expected an object.");for(var c in l)if(r(l,c)){var d=e(l,c,i,a,s+"."+c,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(h(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new f("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+k(o)+" at index "+t+"."),a}return m((function(t,o,i,a,s){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,o,i,a,s,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,o,i,a){var s=t[r],l=b(s);if("object"!==l)return new f("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return v(o,i,a,u,x(c));var d=c(s,u,o,i,a+"."+u,n);if(d)return d}return null}))},exact:function(e){return m((function(o,i,a,s,l){var u=o[i],c=b(u);if("object"!==c)return new f("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var p in d){var h=e[p];if(r(e,p)&&"function"!=typeof h)return v(a,s,l,p,x(h));if(!h)return new f("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(u,p,a,s,l+"."+p,n);if(m)return m}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,u,c,p,h){if(u=u||d,p=p||s,h!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=u+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new f("The "+c+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new f("The "+c+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,s,u,c,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function g(e){return m((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new f("Invalid "+o+" `"+i+"` of type `"+x(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||s(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[c]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function k(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Um}()(ng.isElement,!0)}else Rm.exports=function(){if(Gm)return Zm;Gm=1;var e=eg();function t(){}function n(){}return n.resetWarningCache=t,Zm=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var rg=Rm.exports,og=Bt(rg);const ig={mask:og.oneOfType([og.array,og.func,og.string,og.instanceOf(RegExp),og.oneOf([Date,Number,lm.Masked]),og.instanceOf(lm.Masked)]),value:og.any,unmask:og.oneOfType([og.bool,og.oneOf(["typed"])]),prepare:og.func,prepareChar:og.func,validate:og.func,commit:og.func,overwrite:og.oneOfType([og.bool,og.oneOf(["shift"])]),eager:og.oneOfType([og.bool,og.oneOf(["append","remove"])]),skipInvalid:og.bool,onAccept:og.func,onComplete:og.func,placeholderChar:og.string,displayChar:og.string,lazy:og.bool,definitions:og.object,blocks:og.object,enum:og.arrayOf(og.string),maxLength:og.number,from:og.number,to:og.number,pattern:og.string,format:og.func,parse:og.func,autofix:og.oneOfType([og.bool,og.oneOf(["pad"])]),radix:og.string,thousandsSeparator:og.string,mapToRadix:og.arrayOf(og.string),scale:og.number,normalizeZeros:og.bool,padFractionalZeros:og.bool,min:og.oneOfType([og.number,og.instanceOf(Date)]),max:og.oneOfType([og.number,og.instanceOf(Date)]),dispatch:og.func,inputRef:og.oneOfType([og.func,og.shape({current:og.object})])},ag=Object.keys(ig).filter((e=>"value"!==e)),sg=["value","unmask","onAccept","onComplete","inputRef"],lg=ag.filter((e=>sg.indexOf(e)<0));const ug=function(t){var n;const r=(n=class extends e.Component{constructor(e){super(e),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const e=this.props,t=this._extractMaskOptionsFromProps(e);var n;t.mask?this.maskRef?(this.maskRef.updateOptions(t),"value"in e&&void 0!==e.value&&(this.maskValue=e.value)):this.initMask(t):(this.destroyMask(),"value"in e&&void 0!==e.value&&(null!=(n=this.element)&&n.isContentEditable&&"INPUT"!==this.element.tagName&&"TEXTAREA"!==this.element.tagName?this.element.textContent=e.value:this.element.value=e.value))}componentWillUnmount(){this.destroyMask()}_inputRef(e){this.element=e,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=e:this.props.inputRef(e))}initMask(e){void 0===e&&(e=this._extractMaskOptionsFromProps(this.props)),this.maskRef=lm(this.element,e).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&void 0!==this.props.value&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(e){const{...t}=e;return Object.keys(t).filter((e=>lg.indexOf(e)<0)).forEach((e=>{delete t[e]})),t}_extractNonMaskProps(e){const{...t}=e;return ag.forEach((e=>{"maxLength"!==e&&delete t[e]})),"defaultValue"in t||(t.defaultValue=e.mask?"":t.value),delete t.value,t}get maskValue(){return this.maskRef?"typed"===this.props.unmask?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(e){this.maskRef&&(e=null==e&&"typed"!==this.props.unmask?"":e,"typed"===this.props.unmask?this.maskRef.typedValue=e:this.props.unmask?this.maskRef.unmaskedValue=e:this.maskRef.value=e)}_onAccept(e){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,e)}_onComplete(e){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,e)}render(){return e.createElement(t,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},n.displayName=void 0,n.propTypes=void 0,n),o=t.displayName||t.name||"Component";return r.displayName="IMask("+o+")",r.propTypes=ig,e.forwardRef(((t,n)=>e.createElement(r,{...t,ref:n})))}((t=>{let{inputRef:n,...r}=t;return e.createElement("input",{...r,ref:n})}));e.forwardRef(((t,n)=>e.createElement(ug,{...t,ref:n})));const cg=e.forwardRef(((t,n)=>{const{maskOptions:r,onAccept:o,value:i}=t,a=g(t,["maskOptions","onAccept","value"]),{ref:s,setUnmaskedValue:l}=function(t,n){let{onAccept:r,onComplete:o,ref:i=e.useRef(null),defaultValue:a,defaultUnmaskedValue:s,defaultTypedValue:l}=void 0===n?{}:n;const u=e.useRef(null),[c,d]=e.useState({}),[p,h]=e.useState(""),[f,m]=e.useState(""),[g,v]=e.useState(),y=e.useCallback((()=>{var e;null==(e=u.current)||e.destroy(),u.current=null}),[]),b=e.useCallback((()=>{const e=u.current;e&&(d({value:e.value,unmaskedValue:e.unmaskedValue,typedValue:e.typedValue}),v(e.typedValue),m(e.unmaskedValue),h(e.value))}),[]),x=e.useCallback((e=>{const t=u.current;t&&(b(),null==r||r(t.value,t,e))}),[r]),k=e.useCallback((e=>u.current&&(null==o?void 0:o(u.current.value,u.current,e))),[o]);return e.useEffect((()=>{const{value:e,...t}=c,n=u.current;n&&void 0!==p&&(e!==p&&(n.value=p,n.value!==p&&x()),d(t))}),[p]),e.useEffect((()=>{const{unmaskedValue:e,...t}=c,n=u.current;n&&void 0!==f&&(e!==f&&(n.unmaskedValue=f,n.unmaskedValue!==f&&x()),d(t))}),[f]),e.useEffect((()=>{const{typedValue:e,...t}=c,n=u.current;n&&void 0!==g&&(e!==g&&(n.typedValue=g,n.masked.typedValueEquals(g)||x()),d(t))}),[g]),e.useEffect((()=>{const e=i.current;if(!e||null==t||!t.mask)return y();const n=u.current;n?null==n||n.updateOptions(t):e&&null!=t&&t.mask&&(u.current=lm(e,t),b(),void 0!==a&&h(a),void 0!==s&&m(s),void 0!==l&&v(l))}),[t,y,x]),e.useEffect((()=>{if(!u.current)return;const e=u.current;return e.on("accept",x),e.on("complete",k),()=>{e.off("accept",x),e.off("complete",k)}}),[x,k]),e.useEffect((()=>y),[y]),{ref:i,maskRef:u,value:p,setValue:h,unmaskedValue:f,setUnmaskedValue:m,typedValue:g,setTypedValue:v}}(r,{onAccept:(e,t)=>null==o?void 0:o(t.unmaskedValue,e)});e.useEffect((()=>{l(null!=i?i:"")}),[l,i]);const u=ao([n,s]);return e.createElement(Tf,Object.assign({},a,{ref:u}))}));cg.displayName="MaskedInputBase";const dg=qf(cg),pg=t=>n=>{var r;const{options:o}=n,i=g(n,["options"]),{control:s}=a.useFormContext(),{field:{onBlur:l,onChange:u,ref:c,value:d},fieldState:p}=a.useController({name:n.name,control:s,rules:o}),h=null===(r=p.error)||void 0===r?void 0:r.message,f=e.useCallback((()=>l()),[l]);return e.createElement(t,Object.assign({errorMessage:h,ref:c,value:d,onAccept:u,onBlur:f},i))},hg=pg(dg),fg=e=>{const{allowNegative:t=!1,decimalPlaces:n=0,integerPlaces:r=15}=e,o=Math.pow(10,r);return{mask:Number,scale:n,radix:",",mapToRadix:["."],thousandsSeparator:" ",max:o,min:t?-o:0}},mg=e.forwardRef(((t,n)=>{const{allowNegative:r=!1,decimalPlaces:o=0,integerPlaces:i=15}=t,a=g(t,["allowNegative","decimalPlaces","integerPlaces"]),s=e.useMemo((()=>fg({decimalPlaces:o,allowNegative:r,integerPlaces:i})),[r,o,i]);return e.createElement(dg,Object.assign({maskOptions:s,ref:n},a))}));mg.displayName="NumberInput";const gg=pg(mg),vg=new RegExp("^\\+?420"),yg={mask:"000 000 000",prepare:e=>e.replace(vg,"")},bg=e.forwardRef(((t,n)=>e.createElement(dg,Object.assign({maskOptions:yg,prefix:"+420",ref:n},t))));bg.displayName="PhoneInput";const xg=pg(bg),kg=e.forwardRef(((t,n)=>{const{buttonAction:r,buttonText:o}=t,i=g(t,["buttonAction","buttonText"]),{invalid:a=!1,size:s}=t;return e.createElement(Tf,Object.assign({button:e.createElement(oi,{buttonStyle:exports.ButtonStyle.primary,disabled:a,size:s===exports.InputSize.xl?exports.ButtonSize.md:exports.ButtonSize.sm,type:exports.ButtonType.button,onClick:r},o),icon:e.createElement(gt,{size:exports.IconSystemSize.big,type:exports.IconSystemType.search}),ref:n,type:"text"},i))}));kg.displayName="SearchInputControl";const wg=qf(kg);var Cg;exports.SliderInputRoundingType=void 0,(Cg=exports.SliderInputRoundingType||(exports.SliderInputRoundingType={})).ceilBySteps="ceilBySteps",Cg.ceilToThousands="ceilToThousands",Cg.floorBySteps="floorBySteps",Cg.floorToThousands="floorToThousands",Cg.roundBySteps="roundBySteps",Cg.roundToThousands="roundToThousands";const Eg=t.div.withConfig({displayName:"Wrapper",componentId:"sc-17p70d2-0"})(["display:grid;grid-template-areas:",";grid-template-columns:",";row-gap:",";column-gap:",";"],(({$isHintVisible:e,$isInputNoteVisible:t,$isInputVisible:n,$mediaType:r})=>{switch(!0){case r===exports.MediaType.mobile&&!n:return`\n\t\t\t\t\t'label'\n\t\t\t\t\t${e?"'hint'":""}\n\t\t\t\t\t'slider'\n\t\t\t\t`;case r===exports.MediaType.mobile&&n:return`\n\t\t\t\t\t'label input'\n\t\t\t\t\t${t?"'inputNote inputNote'":""}\n\t\t\t\t\t${e?"'hint hint'":""}\n\t\t\t\t\t'slider slider'\n\t\t\t\t`;case r===exports.MediaType.desktop&&!n:return`\n\t\t\t\t\t'label'\n\t\t\t\t\t${e?"'hint'":""}\n\t\t\t\t\t'slider'\n\t\t\t\t`;case r===exports.MediaType.desktop&&n:return`\n\t\t\t\t\t'label label'\n\t\t\t\t\t${e?"'hint hint'":""}\n\t\t\t\t\t'slider input'\n\t\t\t\t\t${t?"'inputNote inputNote'":""}\n\t\t\t\t`;default:throw new Error("unexpected MediaType in sliderInput.style.ts Wrapper grid-template-areas")}}),(({$isInputVisible:e})=>e?"1fr 9.375rem":"1fr"),(({$isInputVisible:e,theme:t})=>e?t.spacing.md:0),(({$isInputVisible:e,theme:t})=>e?t.spacing.md:0)),Sg=t.div.withConfig({displayName:"LabelWrapper",componentId:"sc-17p70d2-1"})(["display:flex;flex-direction:column;grid-area:label;row-gap:",";align-items:start;justify-content:center;"],(({theme:e})=>e.spacing.xxs)),_g=t.div.withConfig({displayName:"HintWrapper",componentId:"sc-17p70d2-2"})(["display:flex;grid-area:hint;margin-top:-",";"],(({theme:e})=>e.spacing.sm)),Ig=t.div.withConfig({displayName:"InputWrapper",componentId:"sc-17p70d2-3"})(["display:flex;flex-direction:column;grid-area:input;justify-content:flex-end;width:",";height:",";overflow:",";"],(({$isInputHidden:e})=>e?"0":"initial"),(({$isInputHidden:e})=>e?"0":"initial"),(({$isInputHidden:e})=>e?"hidden":"initial")),Mg=t.div.withConfig({displayName:"InputNoteWrapper",componentId:"sc-17p70d2-4"})(["grid-area:inputNote;text-align:right;"]),Lg=t.div.withConfig({displayName:"SliderWrapper",componentId:"sc-17p70d2-5"})(["display:flex;grid-area:slider;"]),Tg=t=>{const n=e.useId();return void 0===t?n:t},Dg=dm(fg({})),Pg=e.forwardRef(((n,r)=>{const{ariaLabelForHandle:o,ariaLabelledByForHandle:i,ariaValueTextFormatter:a,clampMax:s,clampMin:l,colorInput:u,disabled:c,hintText:d,id:p,inputLimitExceededAriaLiveFormatter:h,inputNote:f,inputRoundingType:m,invalid:g=!1,isInputHidden:v=!1,label:y,labelAs:b,labelHiddenText:x,labelId:k,labelSuffix:w,max:C,min:E,minMaxLabels:S,name:_,onBlur:I,onChange:M,onInputChange:L,onSliderChange:T,prefix:D,steps:P,stepType:O,suffix:R,tooltip:A,value:N,weight:V}=n,B=null!=l?l:E,F=null!=s?s:C,j=t.useTheme(),{chooseColor:$,colorScheme:W,mediaType:H}=z(n),Y=Tg(p),K=Tg(k),[U,q]=e.useState(N),Z=e.useRef(null),G=ao([r,Z]),[Q,J]=e.useState(void 0),ee=e.useCallback((e=>{var t,n;if(void 0!==(null===(t=Z.current)||void 0===t?void 0:t.value)){const t=null===(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))||void 0===n?void 0:n.set;if(void 0===t)return void console.error("Failed to retrieve the native value setter for HTMLInputElement. The input value cannot be programmatically updated.");t.call(Z.current,(e=>(Dg.resolve(e),Dg.value))(e.toString()))}}),[]);e.useEffect((()=>{q(N)}),[N]),e.useEffect((()=>{ee(U)}),[ee,U]);const te=e.useCallback((e=>{null==T||T(e),q(e)}),[T]),ne=e.useCallback((e=>{null==M||M(e),null==L||L(e.toString())}),[L,M]),re=e.useCallback(((e,t)=>{if(void 0===h)return;const n=h.formatAsPrimitive(t,[],{min:E,max:C,oldValue:e,effectiveMin:B,effectiveMax:F,clampMax:s,clampMin:l});J(n)}),[s,l,F,B,h,C,E]),oe=e.useCallback((e=>{const t=Number.parseInt((e=>(Dg.resolve(e),Dg.unmaskedValue))(e));let n;switch(!0){case Number.isNaN(t):case t<B:n=B;break;case t>F:n=F;break;default:n=t}let r=n;switch(!0){case void 0===m:break;case m===exports.SliderInputRoundingType.ceilBySteps:case m===exports.SliderInputRoundingType.floorBySteps:case m===exports.SliderInputRoundingType.roundBySteps:r=(e=>{const{max:t,min:n,roundingType:r,steps:o,value:i}=e;if(r!==exports.SliderInputRoundingType.ceilBySteps&&r!==exports.SliderInputRoundingType.floorBySteps&&r!==exports.SliderInputRoundingType.roundBySteps)throw new Error("unexpected enum SliderInputRoundingType value in getRoundedValueBySteps");if(i<=n)return n;if(i>=t)return t;const a=[{step:o.baseStep,bottomBreakpoint:n},...o.breakpointList].reduce(((e,n,r,o)=>{const i=o[r+1],a=void 0===i?t:i.bottomBreakpoint,s=[];for(let e=n.bottomBreakpoint+n.step;e<a;e+=n.step)s.push(e);return[...e,...s,a]}),[n]),s=a.reduce(((e,t,n,r)=>{if(void 0!==e)return e;const o=r[n+1];return i>t&&i<=o?{lowerBoundary:t,upperBoundary:o}:void 0}),void 0);if(void 0===s)throw new Error("unexpected Error stepsRoundValue.ts");return i===s.lowerBoundary?s.lowerBoundary:i===s.upperBoundary?s.upperBoundary:r===exports.SliderInputRoundingType.floorBySteps?s.lowerBoundary:r===exports.SliderInputRoundingType.ceilBySteps?s.upperBoundary:i-s.lowerBoundary<(s.upperBoundary-s.lowerBoundary)/2?s.lowerBoundary:s.upperBoundary})({steps:P,value:n,roundingType:m,min:B,max:F});break;case m===exports.SliderInputRoundingType.ceilToThousands:r=1e3*Math.ceil(n/1e3);break;case m===exports.SliderInputRoundingType.floorToThousands:r=1e3*Math.floor(n/1e3);break;case m===exports.SliderInputRoundingType.roundToThousands:r=1e3*Math.round(n/1e3);break;default:throw new Error("unexpected SliderInputRoundingType enum value in sliderInput.tsx handleInputBlur")}return q(r),null==M||M(r),null==T||T(r),r!==t&&(re(t,r),ee(r),null==L||L(r.toString())),r}),[ee,L,F,B,m,M,T,P,re]),ie=e.useCallback((e=>{const t=e.target.value;oe(t),null==I||I()}),[oe,I]),ae=e.useCallback((()=>{null==M||M(U),null==I||I()}),[I,M,U]),se=e.useCallback((e=>{null==L||L(e)}),[L]),le=e.useCallback((e=>{"Enter"===e.key&&oe(e.currentTarget.value)}),[oe]),ue=e.useCallback((()=>{J(void 0)}),[]);return e.createElement(Eg,{$isHintVisible:void 0!==d,$isInputNoteVisible:void 0!==f,$isInputVisible:!v,$mediaType:H},e.createElement(Al,{"aria-live":"polite"},Q),e.createElement(Sg,null,e.createElement(Rf,{as:b,colorScheme:W,hiddenText:x,id:Y,invalid:g,label:y,labelId:K,size:exports.InputLabelSize.md,suffix:w,tooltip:A})),void 0!==d&&e.createElement(_g,null,e.createElement(X,{color:$(j.colors.fg.neutral.subtle),colorScheme:W,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},d)),e.createElement(Ig,{$isInputHidden:v},e.createElement(mg,{"aria-labelledby":K,colorInput:null!=u?u:$(j.colors.fg.neutral.default),colorScheme:W,disabled:c,id:Y,invalid:g,name:_,prefix:D,ref:G,size:exports.InputSize.md,suffix:R,textAlign:exports.InputTextAlign.right,weight:V,onAccept:se,onBlur:ie,onFocus:ue,onKeyDown:le})),void 0!==f&&!v&&e.createElement(Mg,{$mediaType:H},e.createElement(X,{colorScheme:W,variant:exports.TypographyVariant.textMd},f)),e.createElement(Lg,null,e.createElement(la,{ariaLabelForHandle:o,ariaLabelledByForHandle:null!=i?i:K,ariaValueTextFormatter:a,clampMax:s,clampMin:l,colorScheme:W,disable:c,max:C,min:E,minMaxLabels:S,steps:P,stepType:O,value:U,onBlur:ae,onChange:te,onFinalChange:ne})))}));Pg.displayName="SliderInput";const Og=e.forwardRef(((t,n)=>e.createElement(Tf,Object.assign({ref:n,type:"text"},t))));Og.displayName="TextInputControl";const Rg=qf(Og),Ag=e.forwardRef(((t,n)=>e.createElement(Tf,Object.assign({ref:n,textAlign:exports.InputTextAlign.right,type:"text"},t))));Ag.displayName="TrailingTextInputControl";const Ng=qf(Ag),Vg=e.forwardRef(((t,n)=>{const{innerRef:r}=t,o=g(t,["innerRef"]),i=ao([r,n]);return e.createElement(Tf,Object.assign({},o,{ref:i}))}));var Bg,Fg,jg;Vg.displayName="InputBaseWithInnerRef",Bg="cs",Fg=Cu,(jg=Sp()).__localeData__||(jg.__localeData__={}),jg.__localeData__[Bg]=Fg;const $g=["dd.MM.yyyy","dd. MM. yyyy"],Wg=e.forwardRef(((n,r)=>{const{chevronCloseAriaLabel:o,chevronOpenAriaLabel:i,chooseDayAriaLabelPrefix:a,dateFormat:s=$g,describedBy:l,disabledDayAriaLabelPrefix:u,filterDate:c,id:d,invalid:p,labelledBy:h,locale:f,maxDate:m,minDate:g,monthAriaLabelPrefix:v,name:y,nextMonthAriaLabel:b,onBlur:x,onChange:k,previousMonthAriaLabel:w,required:C,selected:E}=n,S=t.useTheme(),{chooseColor:_,colorScheme:I}=z(n),{setFalse:M,setTrue:L,toggle:T,value:D}=nn(!1);return e.createElement(lf,{ariaDescribedBy:l,ariaInvalid:String(p),ariaLabelledBy:h,ariaRequired:String(C),calendarContainer:({children:t})=>e.createElement(ff,{$chooseColor:_,role:"dialog"},e.createElement(mf,{id:"datepicker-prevMonth"},w),e.createElement(mf,{id:"datepicker-nextMonth"},b),t),chooseDayAriaLabelPrefix:a,customInput:e.createElement(Vg,{icon:e.createElement(vf,{onClick:L},e.createElement(gt,{size:exports.IconSystemSize.small,stroke:_(S.colors.icon.brand),type:exports.IconSystemType.event})),innerRef:r,invalid:p,name:y,size:exports.InputSize.md,suffix:e.createElement(St,{"aria-label":D?o:i,onClick:e=>{e.preventDefault(),T()},onMouseDown:e=>e.stopPropagation(),onMouseUp:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation()},e.createElement(yf,{$isOpen:D},e.createElement(gt,{size:exports.IconSystemSize.big,type:exports.IconSystemType.chevronDown})))}),dateFormat:s,disabledDayAriaLabelPrefix:u,filterDate:c,id:d,locale:null!=f?f:"cs",maxDate:m,minDate:g,monthAriaLabelPrefix:v,nextMonthAriaLabel:b,open:D,popperContainer:gf,previousMonthAriaLabel:w,renderCustomHeader:t=>e.createElement(hf,Object.assign({},t,{colorScheme:I,nextMonthAriaLabel:b,previousMonthAriaLabel:w})),selected:E,selectsMultiple:!1,selectsRange:!1,showPopperArrow:!1,showTimeSelect:!1,onBlur:x,onChange:k,onClickOutside:M,onSelect:M})}));Wg.displayName="DatePickerControl";const Hg="yyyy-MM-dd",zg=qf(Wg),Yg="24px",Kg=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-1sl4l1o-0"})(["display:flex;margin:0;"]),Ug=t.input.withConfig({displayName:"CheckboxStyled",componentId:"sc-1sl4l1o-1"})(["position:absolute;width:0;height:0;padding:0;margin:0;cursor:pointer;border-width:0;outline:none;box-shadow:none;opacity:0;&:focus-visible + span{outline-width:3px;outline-style:solid;outline-color:",";outline-offset:2px;}&:not(:disabled):hover + span{background-color:",";border-color:",";}&:checked + span{background-color:",";background-image:url('data:image/svg+xml;base64,","');background-position:center;border-color:",";}&:disabled + span{cursor:auto;background-color:",";border-color:",";}"],(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.focus)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.brand.default)),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.bold)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.brand.default)),(({$checkBackground:e})=>e),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.bold)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.disabled)),(({$chooseColor:e,theme:t})=>e(t.colors.border.neutral.subtle))),qg=t.span.withConfig({displayName:"SpanStyled",componentId:"sc-1sl4l1o-2"})(["box-sizing:border-box;display:inline-block;width:",";height:",";margin:0;cursor:pointer;background-color:",";background-repeat:no-repeat;background-position:center;border-color:",";border-style:solid;border-width:1px;border-radius:",";"],Yg,Yg,(({$chooseColor:e,theme:t})=>e(t.colors.bg.neutral.white)),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.neutral.default)),(({theme:e})=>e.borderRadius.xxs)),Zg=e.forwardRef(((n,r)=>{const{checked:o,disabled:i=!1,id:a,invalid:s=!1,name:l,onBlur:u,onChange:c,value:d}=n,p=t.useTheme(),{chooseColor:h}=z(n),f=e.useRef(null);e.useEffect((()=>{null!==r&&("function"==typeof r?r(f.current):r.current=f.current)}),[r]),e.useEffect((()=>{if(null===f.current)throw new Error("CheckboxBase unexpected error: localRef.current is null")}),[]);const m=e.useMemo((()=>{return e=h(i?p.colors.icon.neutral:p.colors.icon.brand),sa.encode((e=>`\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">\n <path d="M7.75 12.75L10 15.25L16.25 8.75" stroke="${e}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>`)(e));var e}),[i,p,h]);return e.createElement(Kg,null,e.createElement(Ug,{$checkBackground:m,$chooseColor:h,$isError:s,checked:o,disabled:i,id:a,name:l,ref:f,type:"checkbox",value:d,onBlur:u,onChange:c}),e.createElement(qg,{$chooseColor:h,$isError:s}))}));var Gg;Zg.displayName="CheckboxControl",exports.CheckboxPosition=void 0,(Gg=exports.CheckboxPosition||(exports.CheckboxPosition={})).left="left",Gg.right="right";const Qg=t.div.withConfig({displayName:"Wrapper",componentId:"sc-jkkxpe-0"})(["display:flex;flex-direction:column;row-gap:",";"],(({theme:e})=>e.spacing.xs)),Xg=t.div.withConfig({displayName:"CheckboxAndLabelWrapperStyled",componentId:"sc-jkkxpe-1"})(["display:flex;flex-direction:",";column-gap:",";align-items:start;justify-content:left;"],(({$position:e})=>{switch(e){case exports.CheckboxPosition.left:return"row";case exports.CheckboxPosition.right:return"row-reverse";default:throw new Error("unexpected enum values CheckboxPosition in checkbox.style.ts")}}),(({theme:e})=>e.spacing.sm)),Jg=t.div.withConfig({displayName:"CheckboxLabelStyled",componentId:"sc-jkkxpe-2"})(["position:relative;top:calc(("," - ",") / 2);display:",";gap:",";align-items:center;"],Yg,(e=>e.theme.font.lineHeight.body.sm),(({$tooltipPosition:e})=>{switch(e){case exports.LabelTooltipPosition.rightCenter:return"flex";case exports.LabelTooltipPosition.inline:return"inline";default:throw new Error("unexpected value of enum LabelTooltipPosition in Checkbox.style.ts CheckboxLabelStyled display")}}),(e=>e.theme.spacing.xxs)),ev=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-jkkxpe-3"})(["position:relative;display:",";margin:0;& span{vertical-align:middle;}"],(({$tooltipPosition:e})=>{switch(e){case exports.LabelTooltipPosition.rightCenter:return"flex";case exports.LabelTooltipPosition.inline:return"inline";default:throw new Error("unexpected value of enum LabelTooltipPosition in Checkbox.style.ts LabelStyled display")}})),tv=t.span.withConfig({displayName:"TooltipWrapper",componentId:"sc-jkkxpe-4"})(["display:inline-flex;vertical-align:text-bottom;"]),nv=e.forwardRef(((n,r)=>{const{errorMessage:o,id:i,invalid:a=!1,label:s,labelAs:l,labelColor:u,labelHiddenText:c,labelId:d,labelSuffix:p,position:h=exports.CheckboxPosition.left,tooltip:f,tooltipPosition:m=exports.LabelTooltipPosition.inline}=n,v=g(n,["errorMessage","id","invalid","label","labelAs","labelColor","labelHiddenText","labelId","labelSuffix","position","tooltip","tooltipPosition"]),{chooseColor:y,colorScheme:b}=z(n),x=t.useTheme(),k=Tg(i),w=e.useMemo((()=>a?y(x.colors.fg.error):void 0===u?y(x.colors.fg.neutral.subtle):u),[a,u,y,x.colors.fg.neutral.subtle,x.colors.fg.error]);return e.createElement(Qg,null,e.createElement(Xg,{$position:h},e.createElement(Zg,Object.assign({},v,{id:k,invalid:a,ref:r})),ri(s)&&e.createElement(Jg,{$tooltipPosition:m},e.createElement(ev,{$tooltipPosition:m,as:l,htmlFor:"label"===l||void 0===l?k:void 0,id:d},e.createElement(X,{color:w,colorScheme:b,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},s,ri(p)&&e.createElement(X,{color:x.colors.fg.neutral.subtle,colorScheme:b,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400}," ",p),void 0!==c&&e.createElement(e.Fragment,null," ",e.createElement(Al,null,c)))),void 0!==f&&e.createElement(e.Fragment,null,m===exports.LabelTooltipPosition.inline&&" ",e.createElement(tv,null,e.createElement(yl,Object.assign({},Kl(f),{colorScheme:b})))))),void 0!==o&&e.createElement(X,{color:y(x.colors.fg.error),colorScheme:b,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},o))}));nv.displayName="Checkbox";const rv="24px",ov=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-1p59cl-0"})(["display:flex;margin:0;"]),iv=t.input.withConfig({displayName:"RadioStyled",componentId:"sc-1p59cl-1"})(["position:absolute;width:0;height:0;padding:0;margin:0;cursor:pointer;border-width:0;outline:none;box-shadow:none;opacity:0;&:focus-visible + span{outline-width:3px;outline-style:solid;outline-color:",";outline-offset:2px;}&:not(:disabled):hover + span{background-color:",";border-color:",";}&:checked + span{background-color:",";background-image:url('data:image/svg+xml;base64,","');border-color:",";}&:disabled + span{cursor:auto;background-color:",";border-color:",";}&:checked:disabled + span{background-image:url('data:image/svg+xml;base64,","');}"],(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.focus)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.brand.default)),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.bold)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.brand.default)),(({$checkedBackground:e})=>e),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.bold)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.disabled)),(({$chooseColor:e,theme:t})=>e(t.colors.border.neutral.subtle)),(({$checkedDisabledBackground:e})=>e)),av=t.span.withConfig({displayName:"SpanStyled",componentId:"sc-1p59cl-2"})(["box-sizing:border-box;display:inline-block;width:",";height:",";margin:0;cursor:pointer;background-color:",";background-repeat:no-repeat;background-position:center;border-color:",";border-style:solid;border-width:1px;border-radius:",";"],rv,rv,(({$chooseColor:e,theme:t})=>e(t.colors.surface.risen)),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.neutral.default)),(({theme:e})=>e.borderRadius.full)),sv=e=>sa.encode((e=>`\n\t\t<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t<circle cx="8" cy="8" r="8" fill="${e}"/>\n\t\t</svg>\n`)(e)),lv=e.forwardRef(((n,r)=>{const{checked:o,colorScheme:i,disabled:a,id:s,invalid:l=!1,mediaType:u,name:c,onBlur:d,onChange:p,value:h}=n,f=g(n,["checked","colorScheme","disabled","id","invalid","mediaType","name","onBlur","onChange","value"]),m=t.useTheme(),{chooseColor:v}=z(n),y=e.useMemo((()=>sv(m.colors.icon.brand.light)),[m]),b=e.useMemo((()=>sv(m.colors.icon.neutral.light)),[m]),x=e.useMemo((()=>void 0!==s?s:sa.encode(Math.random().toString())),[s]);return e.createElement(ov,null,e.createElement(iv,Object.assign({$checkedBackground:y,$checkedDisabledBackground:b,$chooseColor:v,$isError:l,checked:o,disabled:a,id:x,name:c,ref:r,type:"radio",value:h,onBlur:d,onChange:p},f)),e.createElement(av,{$chooseColor:v,$isError:l}))}));var uv;lv.displayName="RadioControl",exports.RadioPosition=void 0,(uv=exports.RadioPosition||(exports.RadioPosition={})).left="left",uv.right="right";const cv=t.div.withConfig({displayName:"Wrapper",componentId:"sc-64rj8s-0"})(["display:flex;flex-direction:column;row-gap:",";"],(({theme:e})=>e.spacing.xs)),dv=t.div.withConfig({displayName:"RadioBaseWrapper",componentId:"sc-64rj8s-1"})(["display:flex;"]),pv=t.div.withConfig({displayName:"RadioAndLabelWrapperStyled",componentId:"sc-64rj8s-2"})(["display:flex;flex-direction:",";column-gap:",";align-items:start;justify-content:left;"],(({$position:e})=>{switch(e){case exports.RadioPosition.left:return"row";case exports.RadioPosition.right:return"row-reverse";default:throw new Error("unexpected enum values RadioPosition in radioBaseWithLabel.style.ts")}}),(({theme:e})=>e.spacing.sm)),hv=t.div.withConfig({displayName:"RadioLabelStyled",componentId:"sc-64rj8s-3"})(["position:relative;top:calc(("," - ",") / 2);display:flex;gap:",";align-items:center;"],rv,(e=>e.theme.font.lineHeight.body.sm),(e=>e.theme.spacing.xxs)),fv=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-64rj8s-4"})(["position:relative;display:flex;margin:0;& span{vertical-align:middle;}& > span{display:flex;}"]),mv=e.forwardRef(((n,r)=>{const{errorMessage:o,id:i,invalid:a=!1,label:s,labelAs:l,labelHiddenText:u,labelId:c,labelSuffix:d,position:p=exports.RadioPosition.left,tooltip:h}=n,f=g(n,["errorMessage","id","invalid","label","labelAs","labelHiddenText","labelId","labelSuffix","position","tooltip"]),m=t.useTheme(),{chooseColor:v,colorScheme:y}=z(n),b=Tg(i);return e.createElement(cv,null,e.createElement(pv,{$position:p},e.createElement(dv,null,e.createElement(lv,Object.assign({},f,{colorScheme:y,id:b,invalid:a,ref:r}))),ri(s)&&e.createElement(hv,null,e.createElement(fv,{as:l,htmlFor:"label"===l||void 0===l?b:void 0,id:c},e.createElement(X,{color:v(a?m.colors.fg.error:m.colors.fg.neutral.subtle),colorScheme:y,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},s,ri(d)&&e.createElement(X,{color:m.colors.fg.neutral.subtle,colorScheme:y,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400}," ",d),void 0!==u&&e.createElement(e.Fragment,null," ",e.createElement(Al,null,u)))),void 0!==h&&e.createElement(yl,Object.assign({},Kl(h),{colorScheme:y})))),void 0!==o&&e.createElement(X,{color:v(m.colors.fg.error),colorScheme:y,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},o))}));mv.displayName="Radio";var gv;exports.RadioGroupDirection=void 0,(gv=exports.RadioGroupDirection||(exports.RadioGroupDirection={})).column="column",gv.columnReverse="columnReverse",gv.row="row",gv.rowReverse="rowReverse";const vv=t.div.withConfig({displayName:"ItemsWrapper",componentId:"sc-1pgvw9r-0"})(["box-sizing:border-box;display:flex;flex-direction:",";flex-wrap:wrap;row-gap:",";column-gap:",";",""],(({$direction:e})=>{switch(e){case exports.RadioGroupDirection.row:return"row";case exports.RadioGroupDirection.rowReverse:return"row-reverse";case exports.RadioGroupDirection.column:return"column";case exports.RadioGroupDirection.columnReverse:return"column-reverse";default:throw new Error("unexpected value of enum RadioGroupDirection in RadioGroupControl.style.ts")}}),(({$rowGap:e,theme:t})=>y(t,e)),(({$columnGap:e,theme:t})=>y(t,e)),(({$controlWidth:e})=>void 0!==e&&t.css(["width:",";"],e))),yv=t.div.withConfig({displayName:"ItemWrapper",componentId:"sc-1pgvw9r-1"})(["box-sizing:border-box;align-content:center;",""],(({$itemMinWidth:e})=>void 0!==e&&t.css(["min-width:",";"],e))),bv=e.forwardRef(((t,n)=>{const{columnGap:r=exports.Spacing.md,controlWidth:o,direction:i,disabled:a,invalid:s,itemMinWidth:l,items:u,labelledBy:c,name:d,onBlur:p,onChange:h,rowGap:f=exports.Spacing.md,value:m}=t,{colorScheme:g}=z(t);return e.createElement(vv,{$columnGap:r,$controlWidth:o,$direction:i,$rowGap:f,"aria-labelledby":c,role:"radiogroup"},u.map((t=>{const r=void 0===m?void 0:t.value===m;return e.createElement(yv,{key:t.value,$itemMinWidth:l},e.createElement(mv,{checked:r,colorScheme:g,disabled:a,id:t.id,invalid:s,label:t.label,name:d,ref:n,value:t.value,onBlur:p,onChange:h}))})))}));bv.displayName="RadioGroupControl";const xv=qf(bv),kv=e.forwardRef(((t,n)=>{const{labelAs:r="span"}=t,o=g(t,["labelAs"]);return e.createElement(xv,Object.assign({},o,{labelAs:r,ref:n}))}));kv.displayName="RadioGroup";const wv=t.div.withConfig({displayName:"Wrapper",componentId:"sc-38amxi-0"})(["display:flex;flex-direction:column;row-gap:",";height:100%;"],(({theme:e})=>e.spacing.xs)),Cv=t.input.withConfig({displayName:"InputStyled",componentId:"sc-38amxi-1"})(["position:absolute;grid-area:input;width:0;height:0;padding:0;margin:0;border-width:0;opacity:0;&:focus-visible + label{outline-width:3px;outline-style:solid;outline-color:",";outline-offset:3px;}&:not(:disabled) + label:hover{background-color:",";border-color:",";}&:checked + label{padding-top:calc("," - 1px);padding-right:calc("," - 1px);padding-bottom:calc("," - 1px);padding-left:calc("," - 1px);background-color:",";border-color:",";border-width:2px;}&:disabled + label{color:",";cursor:auto;background-color:",";border-color:",";}"],(({$chooseColor:e,$invalid:t,theme:n})=>e(t?n.colors.fg.error:n.colors.focus)),(({$chooseColor:e,theme:t})=>e(t.colors.surface.default)),(({$chooseColor:e,$invalid:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.default)),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.xs),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.xs),(({$chooseColor:e,theme:t})=>e(t.colors.surface.default)),(({$chooseColor:e,$invalid:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.default)),(({$chooseColor:e,theme:t})=>e(t.colors.fg.disabled)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.disabled)),(({$chooseColor:e,theme:t})=>e(t.colors.border.disabled))),Ev=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-38amxi-2"})(["position:relative;box-sizing:border-box;display:flex;flex:1;flex-direction:column;grid-area:label;row-gap:",";align-items:center;justify-content:space-evenly;padding-top:",";padding-right:",";padding-bottom:",";padding-left:",";color:",";cursor:pointer;background-color:",";border-color:",";border-style:solid;border-width:1px;border-radius:",";"],(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.xs),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.xs),(({$chooseColor:e,theme:t})=>e(t.colors.fg.neutral.subtle)),(({$chooseColor:e,theme:t})=>e(t.colors.surface.risen)),(({$chooseColor:e,$invalid:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.neutral.subtle)),(({theme:e})=>e.borderRadius.xs)),Sv=t.span.withConfig({displayName:"ErrorWrapper",componentId:"sc-38amxi-3"})(["grid-area:error;"]),_v=e.forwardRef(((n,r)=>{const{checked:o,colorScheme:i,disabled:a,errorMessage:s,id:l,invalid:u=!1,label:c,mediaType:d,name:p,onBlur:h,onChange:f,value:m}=n,v=g(n,["checked","colorScheme","disabled","errorMessage","id","invalid","label","mediaType","name","onBlur","onChange","value"]),y=Tg(l),b=t.useTheme(),{chooseColor:x}=z(n);return e.createElement(wv,null,e.createElement(Cv,Object.assign({$chooseColor:x,$invalid:u,checked:o,disabled:a,id:y,name:p,ref:r,type:"radio",value:m,onBlur:h,onChange:f},v)),e.createElement(Ev,{$chooseColor:x,$invalid:u,htmlFor:y},void 0!==c.top&&e.createElement(X,{color:u?b.colors.fg.error.light:"inherit",textAlign:exports.TypographyTextAlign.center,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},c.top),e.createElement(X,{color:u?b.colors.fg.error.light:"inherit",textAlign:exports.TypographyTextAlign.center,variant:exports.TypographyVariant.textMd,weight:exports.FontWeight.medium500},c.main)),void 0!==s&&e.createElement(Sv,null,e.createElement(X,{color:b.colors.fg.error.light,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},s)))}));_v.displayName="RadioButton";const Iv=t.div.withConfig({displayName:"ItemsWrapper",componentId:"sc-12q6z57-0"})(["box-sizing:border-box;display:flex;flex-wrap:wrap;gap:",";"," "," ",""],(({theme:e})=>e.spacing.sm),(({$controlWidth:e})=>void 0===e?"":`width: ${e};`),(({$gridColumns:e})=>void 0!==e&&t.css(["display:grid;grid-template-columns:repeat(",",1fr);grid-auto-rows:1fr;"],e)),(({$fiveItemsCase:e})=>e&&t.css([":nth-child(1){grid-column:1 / span 2;}:nth-child(2){grid-column:3 / span 2;}:nth-child(3){grid-column:5 / span 2;}:nth-child(4){grid-column:1 / span 3;}:nth-child(5){grid-column:4 / span 3;}"]))),Mv=t.div.withConfig({displayName:"ItemWrapper",componentId:"sc-12q6z57-1"})(["box-sizing:border-box;flex:1;align-content:center;justify-content:space-between;min-width:",";",";"],(({$arrangeInGrid:e,$itemMinWidth:t})=>void 0!==t?t:e?"auto":"160px"),(({$arrangeInGrid:e})=>e&&t.css(["& > *{height:100%;}"])));var Lv;exports.RadioButtonGroupLayout=void 0,(Lv=exports.RadioButtonGroupLayout||(exports.RadioButtonGroupLayout={})).flex="flex",Lv.grid="grid",Lv.smartGrid="smartGrid";const Tv=e.forwardRef(((t,n)=>{const{buttonsLayout:r=exports.RadioButtonGroupLayout.flex,controlWidth:o,disabled:i,gridColumns:a,invalid:s,itemMinWidth:l,items:u,labelledBy:c,name:d,onBlur:p,onChange:h,value:f}=t;if(r===exports.RadioButtonGroupLayout.grid&&void 0===a)throw new Error("RadioButtonGroupControl: gridColumns must be defined when layout is `grid`");if(r!==exports.RadioButtonGroupLayout.grid&&void 0!==a)throw new Error("RadioButtonGroupControl: gridColumns must be undefined when layout is not `grid`");const{colorScheme:m}=z(t),v=e.useMemo((()=>{if(r!==exports.RadioButtonGroupLayout.smartGrid)return a;const e=u.length;return 1===e||2===e||3===e?3:4===e?2:5===e?6:6===e?3:void 0}),[a,u.length,r]);return e.createElement(Iv,{$controlWidth:o,$fiveItemsCase:5===u.length,$gridColumns:v,"aria-labelledby":c,role:"radiogroup"},u.map((t=>{const{id:r,label:o,value:a}=t,u=g(t,["id","label","value"]),c=void 0===f?void 0:a===f;return e.createElement(Mv,{key:t.value,$arrangeInGrid:void 0!==v,$itemMinWidth:l},e.createElement(_v,Object.assign({checked:c,colorScheme:m,disabled:i,id:r,invalid:s,label:o,name:d,ref:n,value:a,onBlur:p,onChange:h},u)))})))}));Tv.displayName="RadioButtonGroupControl";const Dv=qf(Tv),Pv=e.forwardRef(((t,n)=>{const{labelAs:r="span"}=t,o=g(t,["labelAs"]);return e.createElement(Dv,Object.assign({},o,{labelAs:r,ref:n}))}));Pv.displayName="RadioButtonGroup";const Ov=t.textarea.withConfig({displayName:"TextAreaStyled",componentId:"sc-shxz4g-0"})(["box-sizing:border-box;width:100%;min-height:124px;padding:",";font-family:",";font-size:",";line-height:",";letter-spacing:",";resize:vertical;background:",";border-color:",";border-width:",";border-radius:",";&:focus{border-color:",";outline:none;box-shadow:",";}&:disabled{color:",";cursor:not-allowed;background:",";border:1px solid ",";}"],(({theme:e})=>e.spacing.sm),(({theme:e})=>e.font.family.main),(({theme:e})=>M(e.font.size.body.md)),(({theme:e})=>e.font.lineHeight.body.md),(({theme:e})=>e.font.letterSpacing.body.sm),(({theme:e})=>e.palette.white),(({$invalid:e,theme:t})=>e?t.colors.border.error.dark:t.colors.border.neutral.subtlest.dark),(({$invalid:e})=>e?"2px":"1px"),(({theme:e})=>e.borderRadius.xs),(({$invalid:e,theme:t})=>e?t.colors.border.error.dark:t.colors.border.brand.default.dark),(({$invalid:e,theme:t})=>e?`0px 0 0 2px ${t.palette.white}, 0 0 0 5px ${t.colors.border.error.dark}`:`0px 0 0 2px ${t.palette.white}, 0 0 0 5px ${t.colors.border.brand.bold.dark}`),(({theme:e})=>e.colors.fg.neutral.subtlest.dark),(({theme:e})=>e.colors.bg.disabled.light),(({theme:e})=>e.colors.border.disabled.light)),Rv=e.forwardRef(((t,n)=>{const{colorScheme:r,describedBy:o,invalid:i=!1,labelledBy:a,mediaType:s,required:l}=t,u=g(t,["colorScheme","describedBy","invalid","labelledBy","mediaType","required"]);return e.createElement(Ov,Object.assign({$invalid:i,"aria-describedby":o,"aria-invalid":i,"aria-labelledby":a,"aria-required":l,ref:n},u))}));Rv.displayName="TextAreaControl";const Av=qf(Rv);var Nv,Vv={exports:{}},Bv={};var Fv,jv={};"production"===process.env.NODE_ENV?Vv.exports=function(){if(Nv)return Bv;Nv=1,Object.defineProperty(Bv,"__esModule",{value:!0});var t=e;function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=t.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},t.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),o=t.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},t.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function i(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function a(e,t,n,r,o){return function(e,t,n,r,o){var i=(e-n)/(t-n);if(0===i)return r;if(1===i)return o;for(var a="#",s=1;s<6;s+=2){var l=parseInt(r.substr(s,2),16),u=parseInt(o.substr(s,2),16),c=Math.round((1-i)*l+i*u).toString(16);1===c.length&&(c="0"+c),a+=c}return a}(e,t,n,i(r),i(o))}var s=function(e){function r(t){e.call(this,t);var n=t.height,r=t.width,o=t.checked;this.t=t.handleDiameter||n-2,this.i=Math.max(r-n,r-(n+this.t)/2),this.o=Math.max(0,(n-this.t)/2),this.state={h:o?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.M=this.M.bind(this),this.m=this.m.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.O=this.O.bind(this),this.D=this.D.bind(this),this.S=this.S.bind(this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.componentDidMount=function(){this.W=!0},r.prototype.componentDidUpdate=function(e){e.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},r.prototype.componentWillUnmount=function(){this.W=!1},r.prototype.I=function(e){this.H.focus(),this.setState({j:e,R:!0,B:Date.now()})},r.prototype.L=function(e){var t=this.state,n=t.j,r=t.h,o=(this.props.checked?this.i:this.o)+e-n;t.N||e===n||this.setState({N:!0});var i=Math.min(this.i,Math.max(this.o,o));i!==r&&this.setState({h:i})},r.prototype.U=function(e){var t=this.state,n=t.h,r=t.N,o=t.B,i=this.props.checked,a=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var s=Date.now()-o;(!r||s<250||i&&n<=a||!i&&n>=a)&&this.A(e),this.W&&this.setState({N:!1,R:!1}),this.l=Date.now()},r.prototype.p=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.I(e.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},r.prototype.v=function(e){e.preventDefault(),this.L(e.clientX)},r.prototype.g=function(e){this.U(e),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},r.prototype.k=function(e){this.X=null,this.I(e.touches[0].clientX)},r.prototype.M=function(e){this.L(e.touches[0].clientX)},r.prototype.m=function(e){e.preventDefault(),this.U(e)},r.prototype.$=function(e){Date.now()-this.l>50&&(this.A(e),Date.now()-this.u>50&&this.W&&this.setState({R:!1}))},r.prototype.C=function(){this.u=Date.now()},r.prototype.O=function(){this.setState({R:!0})},r.prototype.D=function(){this.setState({R:!1})},r.prototype.S=function(e){this.H=e},r.prototype.T=function(e){e.preventDefault(),this.H.focus(),this.A(e),this.W&&this.setState({R:!1})},r.prototype.A=function(e){var t=this.props;(0,t.onChange)(!t.checked,e,t.id)},r.prototype.render=function(){var e=this.props,r=e.checked,o=e.disabled,i=e.className,s=e.offColor,l=e.onColor,u=e.offHandleColor,c=e.onHandleColor,d=e.checkedIcon,p=e.uncheckedIcon,h=e.checkedHandleIcon,f=e.uncheckedHandleIcon,m=e.boxShadow,g=e.activeBoxShadow,v=e.height,y=e.width,b=e.borderRadius,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),k=this.state,w=k.h,C=k.N,E=k.R,S={position:"relative",display:"inline-block",textAlign:"left",opacity:o?.5:1,direction:"ltr",borderRadius:v/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},_={height:v,width:y,margin:Math.max(0,(this.t-v)/2),position:"relative",background:a(w,this.i,this.o,s,l),borderRadius:"number"==typeof b?b:v/2,cursor:o?"default":"pointer",WebkitTransition:C?null:"background 0.25s",MozTransition:C?null:"background 0.25s",transition:C?null:"background 0.25s"},I={height:v,width:Math.min(1.5*v,y-(this.t+v)/2+1),position:"relative",opacity:(w-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},M={height:v,width:Math.min(1.5*v,y-(this.t+v)/2+1),position:"absolute",opacity:1-(w-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},L={height:this.t,width:this.t,background:a(w,this.i,this.o,u,c),display:"inline-block",cursor:o?"default":"pointer",borderRadius:"number"==typeof b?b-1:"50%",position:"absolute",transform:"translateX("+w+"px)",top:Math.max(0,(v-this.t)/2),outline:0,boxShadow:E?g:m,border:0,WebkitTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},T={height:this.t,width:this.t,opacity:Math.max(2*(1-(w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},D={height:this.t,width:this.t,opacity:Math.max(2*((w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"};return t.createElement("div",{className:i,style:S},t.createElement("div",{className:"react-switch-bg",style:_,onClick:o?null:this.T,onMouseDown:function(e){return e.preventDefault()}},d&&t.createElement("div",{style:I},d),p&&t.createElement("div",{style:M},p)),t.createElement("div",{className:"react-switch-handle",style:L,onClick:function(e){return e.preventDefault()},onMouseDown:o?null:this.p,onTouchStart:o?null:this.k,onTouchMove:o?null:this.M,onTouchEnd:o?null:this.m,onTouchCancel:o?null:this.D},f&&t.createElement("div",{style:T},f),h&&t.createElement("div",{style:D},h)),t.createElement("input",n({},{type:"checkbox",role:"switch","aria-checked":r,checked:r,disabled:o,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},x,{ref:this.S,onFocus:this.O,onBlur:this.D,onKeyUp:this.C,onChange:this.$})))},r}(t.Component);return s.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:r,checkedIcon:o,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},Bv.default=s,Bv}():Vv.exports=(Fv||(Fv=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var n=e,r=rg;function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},n.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),a=n.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},n.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function s(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function l(e,t,n,r,o){return function(e,t,n,r,o){var i=(e-n)/(t-n);if(0===i)return r;if(1===i)return o;for(var a="#",s=1;s<6;s+=2){var l=parseInt(r.substr(s,2),16),u=parseInt(o.substr(s,2),16),c=Math.round((1-i)*l+i*u).toString(16);1===c.length&&(c="0"+c),a+=c}return a}(e,t,n,s(r),s(o))}var u=function(e,t,n){var r=e[t];return"string"!=typeof r||"#"!==r[0]||4!==r.length&&7!==r.length?new Error("Invalid prop '"+t+"' supplied to '"+n+"'. '"+t+"' has to be either a 3-digit or 6-digit hex-color string. Valid examples: '#abc', '#123456'"):null},c=function(e){function t(t){e.call(this,t);var n=t.height,r=t.width,o=t.handleDiameter,i=t.checked;this.$handleDiameter=o||n-2,this.$checkedPos=Math.max(r-n,r-(n+this.$handleDiameter)/2),this.$uncheckedPos=Math.max(0,(n-this.$handleDiameter)/2),this.state={$pos:i?this.$checkedPos:this.$uncheckedPos},this.$lastDragAt=0,this.$lastKeyUpAt=0,this.$onMouseDown=this.$onMouseDown.bind(this),this.$onMouseMove=this.$onMouseMove.bind(this),this.$onMouseUp=this.$onMouseUp.bind(this),this.$onTouchStart=this.$onTouchStart.bind(this),this.$onTouchMove=this.$onTouchMove.bind(this),this.$onTouchEnd=this.$onTouchEnd.bind(this),this.$onClick=this.$onClick.bind(this),this.$onInputChange=this.$onInputChange.bind(this),this.$onKeyUp=this.$onKeyUp.bind(this),this.$setHasOutline=this.$setHasOutline.bind(this),this.$unsetHasOutline=this.$unsetHasOutline.bind(this),this.$getInputRef=this.$getInputRef.bind(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.$isMounted=!0},t.prototype.componentDidUpdate=function(e){if(e.checked!==this.props.checked){var t=this.props.checked?this.$checkedPos:this.$uncheckedPos;this.setState({$pos:t})}},t.prototype.componentWillUnmount=function(){this.$isMounted=!1},t.prototype.$onDragStart=function(e){this.$inputRef.focus(),this.setState({$startX:e,$hasOutline:!0,$dragStartingTime:Date.now()})},t.prototype.$onDrag=function(e){var t=this.state,n=t.$startX,r=t.$isDragging,o=t.$pos,i=(this.props.checked?this.$checkedPos:this.$uncheckedPos)+e-n;r||e===n||this.setState({$isDragging:!0});var a=Math.min(this.$checkedPos,Math.max(this.$uncheckedPos,i));a!==o&&this.setState({$pos:a})},t.prototype.$onDragStop=function(e){var t=this.state,n=t.$pos,r=t.$isDragging,o=t.$dragStartingTime,i=this.props.checked,a=(this.$checkedPos+this.$uncheckedPos)/2,s=this.props.checked?this.$checkedPos:this.$uncheckedPos;this.setState({$pos:s});var l=Date.now()-o;(!r||l<250||i&&n<=a||!i&&n>=a)&&this.$onChange(e),this.$isMounted&&this.setState({$isDragging:!1,$hasOutline:!1}),this.$lastDragAt=Date.now()},t.prototype.$onMouseDown=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.$onDragStart(e.clientX),window.addEventListener("mousemove",this.$onMouseMove),window.addEventListener("mouseup",this.$onMouseUp))},t.prototype.$onMouseMove=function(e){e.preventDefault(),this.$onDrag(e.clientX)},t.prototype.$onMouseUp=function(e){this.$onDragStop(e),window.removeEventListener("mousemove",this.$onMouseMove),window.removeEventListener("mouseup",this.$onMouseUp)},t.prototype.$onTouchStart=function(e){this.$checkedStateFromDragging=null,this.$onDragStart(e.touches[0].clientX)},t.prototype.$onTouchMove=function(e){this.$onDrag(e.touches[0].clientX)},t.prototype.$onTouchEnd=function(e){e.preventDefault(),this.$onDragStop(e)},t.prototype.$onInputChange=function(e){Date.now()-this.$lastDragAt>50&&(this.$onChange(e),Date.now()-this.$lastKeyUpAt>50&&this.$isMounted&&this.setState({$hasOutline:!1}))},t.prototype.$onKeyUp=function(){this.$lastKeyUpAt=Date.now()},t.prototype.$setHasOutline=function(){this.setState({$hasOutline:!0})},t.prototype.$unsetHasOutline=function(){this.setState({$hasOutline:!1})},t.prototype.$getInputRef=function(e){this.$inputRef=e},t.prototype.$onClick=function(e){e.preventDefault(),this.$inputRef.focus(),this.$onChange(e),this.$isMounted&&this.setState({$hasOutline:!1})},t.prototype.$onChange=function(e){var t=this.props,n=t.checked;(0,t.onChange)(!n,e,t.id)},t.prototype.render=function(){var e=this.props,t=e.checked,r=e.disabled,i=e.className,a=e.offColor,s=e.onColor,u=e.offHandleColor,c=e.onHandleColor,d=e.checkedIcon,p=e.uncheckedIcon,h=e.checkedHandleIcon,f=e.uncheckedHandleIcon,m=e.boxShadow,g=e.activeBoxShadow,v=e.height,y=e.width,b=e.borderRadius;e.handleDiameter;var x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),k=this.state,w=k.$pos,C=k.$isDragging,E=k.$hasOutline,S={position:"relative",display:"inline-block",textAlign:"left",opacity:r?.5:1,direction:"ltr",borderRadius:v/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},_={height:v,width:y,margin:Math.max(0,(this.$handleDiameter-v)/2),position:"relative",background:l(w,this.$checkedPos,this.$uncheckedPos,a,s),borderRadius:"number"==typeof b?b:v/2,cursor:r?"default":"pointer",WebkitTransition:C?null:"background 0.25s",MozTransition:C?null:"background 0.25s",transition:C?null:"background 0.25s"},I={height:v,width:Math.min(1.5*v,y-(this.$handleDiameter+v)/2+1),position:"relative",opacity:(w-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos),pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},M={height:v,width:Math.min(1.5*v,y-(this.$handleDiameter+v)/2+1),position:"absolute",opacity:1-(w-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos),right:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},L={height:this.$handleDiameter,width:this.$handleDiameter,background:l(w,this.$checkedPos,this.$uncheckedPos,u,c),display:"inline-block",cursor:r?"default":"pointer",borderRadius:"number"==typeof b?b-1:"50%",position:"absolute",transform:"translateX("+w+"px)",top:Math.max(0,(v-this.$handleDiameter)/2),outline:0,boxShadow:E?g:m,border:0,WebkitTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},T={height:this.$handleDiameter,width:this.$handleDiameter,opacity:Math.max(2*(1-(w-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},D={height:this.$handleDiameter,width:this.$handleDiameter,opacity:Math.max(2*((w-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"};return n.createElement("div",{className:i,style:S},n.createElement("div",{className:"react-switch-bg",style:_,onClick:r?null:this.$onClick,onMouseDown:function(e){return e.preventDefault()}},d&&n.createElement("div",{style:I},d),p&&n.createElement("div",{style:M},p)),n.createElement("div",{className:"react-switch-handle",style:L,onClick:function(e){return e.preventDefault()},onMouseDown:r?null:this.$onMouseDown,onTouchStart:r?null:this.$onTouchStart,onTouchMove:r?null:this.$onTouchMove,onTouchEnd:r?null:this.$onTouchEnd,onTouchCancel:r?null:this.$unsetHasOutline},f&&n.createElement("div",{style:T},f),h&&n.createElement("div",{style:D},h)),n.createElement("input",o({},{type:"checkbox",role:"switch","aria-checked":t,checked:t,disabled:r,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},x,{ref:this.$getInputRef,onFocus:this.$setHasOutline,onBlur:this.$unsetHasOutline,onKeyUp:this.$onKeyUp,onChange:this.$onInputChange})))},t}(n.Component);c.propTypes={checked:r.bool.isRequired,onChange:r.func.isRequired,disabled:r.bool,offColor:u,onColor:u,offHandleColor:u,onHandleColor:u,handleDiameter:r.number,uncheckedIcon:r.oneOfType([r.bool,r.element]),checkedIcon:r.oneOfType([r.bool,r.element]),boxShadow:r.string,borderRadius:r.number,activeBoxShadow:r.string,uncheckedHandleIcon:r.element,checkedHandleIcon:r.element,height:r.number,width:r.number,id:r.string,className:r.string},c.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:i,checkedIcon:a,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},t.default=c}(jv)),jv);var $v=Bt(Vv.exports);const Wv=t.div.withConfig({displayName:"Wrapper",componentId:"sc-154eq1m-0"})(["display:flex;flex-direction:row;gap:",";align-items:center;justify-content:flex-start;input{position:relative;appearance:initial;outline:none;box-shadow:none;transform:scale(0.5);&:focus-visible{position:absolute;top:6.5px;left:10px;z-index:-1;width:0;height:0;padding:0;margin:-1px;overflow:initial !important;clip:auto !important;&::before{position:absolute;display:block;width:38px;height:21.5px;content:'';border:none;border-radius:",";outline:none;outline-width:3px;outline-style:solid;outline-color:",";outline-offset:3px;transform:scale(2);}}}.react-switch-bg{border:1px solid ",";}.react-switch-handle{border:1px solid ","!important;box-shadow:",";}",";",";"],(({theme:e})=>e.spacing.xs),(({theme:e})=>e.borderRadius.md),(({theme:e})=>e.colors.border.brand.bold.light),(({theme:e})=>e.colors.border.neutral.subtle.light),(({theme:e})=>e.colors.border.neutral.subtle.light),(({theme:e})=>e.shadow.border.sm),(({$checked:e})=>!0===e&&t.css([".react-switch-bg{border:1px solid ",";}.react-switch-handle{border:1px solid ","!important;}&:hover{.react-switch{.react-switch-bg{background-color:","!important;}}}"],(({theme:e})=>e.colors.border.brand.bold.light),(({theme:e})=>e.colors.bg.neutral.white.light),(({theme:e})=>e.colors.bg.brand.bold.hover.light))),(({$disabled:e})=>!0===e&&t.css([".react-switch-bg{border:1px solid ",";}.react-switch-handle{border:1px solid ","!important;}"],(({theme:e})=>e.colors.border.neutral.subtlest.light),(({theme:e})=>e.colors.border.neutral.subtlest.light)))),Hv=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-154eq1m-1"})(["cursor:pointer;"]);var zv,Yv,Kv,Uv;exports.TagType=void 0,(zv=exports.TagType||(exports.TagType={})).alert="alert",zv.info="info",zv.invert="invert",zv.neutralDefault="neutralDefault",zv.neutralSubtle="neutralSubtle",zv.success="success",zv.warning="warning",exports.TagSize=void 0,(Yv=exports.TagSize||(exports.TagSize={})).md="md",Yv.sm="sm",exports.TagTextTransform=void 0,(Kv=exports.TagTextTransform||(exports.TagTextTransform={})).none="none",Kv.uppercase="uppercase",exports.TagIconPosition=void 0,(Uv=exports.TagIconPosition||(exports.TagIconPosition={})).left="left",Uv.right="right",Uv.top="top";const qv=t.div.withConfig({displayName:"TagStyled",componentId:"sc-qj7dwt-0"})(["display:flex;align-items:center;justify-content:center;width:fit-content;padding:"," ",";border-style:solid;border-width:1px;border-radius:",";"," "," ",""],(({theme:e})=>e.spacing.xxs),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.borderRadius.xs),(({$chooseColor:e,$type:n})=>{switch(n){case exports.TagType.info:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.bg.brand.default)),(({theme:t})=>e(t.colors.border.brand.subtlest)));case exports.TagType.warning:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.bg.warning.default)),(({theme:e})=>e.palette.yellow400));case exports.TagType.success:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.bg.success.default)),(({theme:e})=>e.palette.green300));case exports.TagType.neutralSubtle:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.surface.default)),(({theme:e})=>e.palette.grey200));case exports.TagType.invert:return t.css(["background-color:rgb(255 255 255 / 20%);border-color:rgb(255 255 255 / 30%);"]);case exports.TagType.alert:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.bg.accent)),(({theme:t})=>e(t.colors.border.accent)));case exports.TagType.neutralDefault:return t.css(["padding:",";background-color:transparent;border-color:",";"],(({theme:e})=>e.spacing.md),(({theme:t})=>e(t.colors.border.neutral.subtlest)));default:throw new Error("unexpected enum values TagType in tag.styles.ts")}}),(({$textTransform:e})=>{switch(e){case exports.TagTextTransform.none:return t.css(["text-transform:none;"]);case exports.TagTextTransform.uppercase:return t.css(["text-transform:uppercase;"]);default:throw new Error("unexpected enum values TagTextTransform in tag.styles.ts")}}),(({$iconPosition:e})=>{switch(e){case exports.TagIconPosition.right:return t.css(["flex-direction:row;"]);case exports.TagIconPosition.left:return t.css(["flex-direction:row-reverse;"]);case exports.TagIconPosition.top:return t.css(["flex-direction:column-reverse;align-items:flex-start;"]);default:throw new Error("unexpected enum values TagIconPosition in tag.styles.ts")}})),Zv=t.div.withConfig({displayName:"TagIconWrapper",componentId:"sc-qj7dwt-1"})(["display:flex;align-items:center;justify-content:center;",""],(({$iconPosition:e})=>{switch(e){case exports.TagIconPosition.right:return t.css(["margin:0 0 0 ",";"],(({theme:e})=>e.spacing.xxs));case exports.TagIconPosition.left:return t.css(["margin:0 "," 0 0;"],(({theme:e})=>e.spacing.xxs));case exports.TagIconPosition.top:return t.css(["margin:0 0 "," 0;"],(({theme:e})=>e.spacing.md));default:throw new Error("unexpected enum values TagIconPosition in tag.styles.ts")}}));var Gv;exports.PaperShadow=void 0,(Gv=exports.PaperShadow||(exports.PaperShadow={})).lg="lg",Gv.md="md",Gv.sm="sm";const Qv=t.div.withConfig({displayName:"PaperStyled",componentId:"sc-t6pt3x-0"})(["padding:",";overflow:",";background-color:",";border-radius:",";box-shadow:",";"],(({$mediaType:e,theme:t})=>{switch(e){case exports.MediaType.desktop:return t.spacing.xl;case exports.MediaType.mobile:return t.spacing.lg;default:throw new Error("unexpected value of enum MediaType in paper.style.ts PaperStyled padding")}}),(({$overflow:e})=>S(e)),(({$chooseColor:e,theme:t})=>e(t.colors.surface.risen)),(({theme:e})=>e.borderRadius.md),(({$shadow:e,theme:t})=>{switch(e){case exports.PaperShadow.sm:return t.shadow.box.sm;case exports.PaperShadow.md:return t.shadow.box.md;case exports.PaperShadow.lg:return t.shadow.box.lg;default:throw new Error("unexpected value of enum PaperShadow paper.style.ts PaperStyled box-shadow")}})),Xv=t=>{const{children:n,className:r,colorScheme:o,id:i,mediaType:a,overflow:s=exports.Overflow.auto,shadow:l=exports.PaperShadow.md,suppressHydrationWarning:u=!1,tabIndex:c}=t,d=g(t,["children","className","colorScheme","id","mediaType","overflow","shadow","suppressHydrationWarning","tabIndex"]),{chooseColor:p,mediaType:h}=z(t);return e.createElement(Qv,Object.assign({$chooseColor:p,$mediaType:h,$overflow:s,$shadow:l,className:r,id:i,suppressHydrationWarning:u,tabIndex:c},d),n)},Jv=t(Xv).withConfig({displayName:"PaperStyled",componentId:"sc-1d6gzno-0"})(["position:relative;"]),ey=t.div.withConfig({displayName:"ProgressStepperWrapper",componentId:"sc-1d6gzno-1"})(["position:absolute;top:0;left:0;width:100%;"]),ty=t.div.withConfig({displayName:"ProgressStepperStyled",componentId:"sc-111a4y5-0"})(["width:100%;height:","px;"],4),ny=t.div.withConfig({displayName:"Progress",componentId:"sc-111a4y5-1"})(["width:","%;height:","px;background-color:",";border-top-right-radius:",";border-bottom-right-radius:",";"],(({$percent:e})=>e),4,(({$chooseColor:e,theme:t})=>e(t.colors.fg.brand.default)),(({theme:e})=>e.borderRadius.xs),(({theme:e})=>e.borderRadius.xs)),ry=t=>{const{activeStepIndex:n,numberOfSteps:r}=t,{chooseColor:o}=z(t),i=(n+1)/r*100;return e.createElement(ty,null,e.createElement(ny,{$chooseColor:o,$percent:i}))};var oy=function e(t,n){var r=function(e){var n,r;return null!==(n=t(e.children,null!==(r=e.suggestions)&&void 0!==r?r:[],e))&&void 0!==n?n:null};return r.displayName=null==n?void 0:n.displayName,r.format=function(e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t(e,function(e){return e.includes("primitive")||!e.includes("comparable")?e:["primitive"].concat(pi(e))}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),n)},r.formatAsPrimitive=function(e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t(e,function(e){return e.includes("primitive")?e:["primitive"].concat(pi(e))}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),n)},r.wrap=function(t,o){var i=e((function(e,n,o){return t((function(e,t,i){return r.format(e,null!=t?t:n,null!=i?i:o)}),e,n,o)}),null!=o?o:n);return i.innerFormatter=r,i},r};const iy=oy((e=>e));function ay(e,t){return ay=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ay(e,t)}var sy,ly={exports:{}},uy={};var cy,dy={};
44
+ */function Jm(){if(jm)return Fm;jm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Fm=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(r,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))t.call(i,u)&&(s[u]=i[u]);if(e){a=e(i);for(var c=0;c<a.length;c++)n.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s},Fm}function eg(){if(Wm)return $m;Wm=1;return $m="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function tg(){return zm?Hm:(zm=1,Hm=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var ng=Xm();Rm.exports=function(){if(qm)return Um;qm=1;var e=Xm(),t=Jm(),n=eg(),r=tg(),o=function(){if(Km)return Ym;Km=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=eg(),n={},r=tg();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,l){if("production"!==process.env.NODE_ENV)for(var u in o)if(r(o,u)){var c;try{if("function"!=typeof o[u]){var d=Error((s||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=o[u](i,u,s,a,null,t)}catch(e){c=e}if(!c||c instanceof Error||e((s||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var p=l?l():"";e("Failed "+a+" type: "+c.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Ym=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Um=function(s,l){var u="function"==typeof Symbol&&Symbol.iterator,c="@@iterator",d="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(a),arrayOf:function(e){return m((function(t,r,o,i,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+a+"` of type `"+b(s)+"` supplied to `"+o+"`, expected an array.");for(var l=0;l<s.length;l++){var u=e(s,l,o,i,a+"["+l+"]",n);if(u instanceof Error)return u}return null}))},element:m((function(e,t,n,r,o){var i=e[t];return s(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new f("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:m((function(e,t,n,r,o){return y(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,i,a,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[o],u=b(l);if("object"!==u)return new f("Invalid "+a+" `"+s+"` of type `"+u+"` supplied to `"+i+"`, expected an object.");for(var c in l)if(r(l,c)){var d=e(l,c,i,a,s+"."+c,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(h(a,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new f("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+k(o)+" at index "+t+"."),a}return m((function(t,o,i,a,s){for(var l=[],u=0;u<e.length;u++){var c=(0,e[u])(t,o,i,a,s,n);if(null==c)return null;c.data&&r(c.data,"expectedType")&&l.push(c.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,o,i,a){var s=t[r],l=b(s);if("object"!==l)return new f("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return v(o,i,a,u,x(c));var d=c(s,u,o,i,a+"."+u,n);if(d)return d}return null}))},exact:function(e){return m((function(o,i,a,s,l){var u=o[i],c=b(u);if("object"!==c)return new f("Invalid "+s+" `"+l+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var p in d){var h=e[p];if(r(e,p)&&"function"!=typeof h)return v(a,s,l,p,x(h));if(!h)return new f("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=h(u,p,a,s,l+"."+p,n);if(m)return m}return null}))}};function h(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,s,u,c,p,h){if(u=u||d,p=p||s,h!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=u+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new f("The "+c+" `"+p+"` is marked as required in `"+u+"`, but its value is `null`."):new f("The "+c+" `"+p+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,s,u,c,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function g(e){return m((function(t,n,r,o,i,a){var s=t[n];return b(s)!==e?new f("Invalid "+o+" `"+i+"` of type `"+x(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||s(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[c]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function k(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Um}()(ng.isElement,!0)}else Rm.exports=function(){if(Gm)return Zm;Gm=1;var e=eg();function t(){}function n(){}return n.resetWarningCache=t,Zm=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var rg=Rm.exports,og=Bt(rg);const ig={mask:og.oneOfType([og.array,og.func,og.string,og.instanceOf(RegExp),og.oneOf([Date,Number,lm.Masked]),og.instanceOf(lm.Masked)]),value:og.any,unmask:og.oneOfType([og.bool,og.oneOf(["typed"])]),prepare:og.func,prepareChar:og.func,validate:og.func,commit:og.func,overwrite:og.oneOfType([og.bool,og.oneOf(["shift"])]),eager:og.oneOfType([og.bool,og.oneOf(["append","remove"])]),skipInvalid:og.bool,onAccept:og.func,onComplete:og.func,placeholderChar:og.string,displayChar:og.string,lazy:og.bool,definitions:og.object,blocks:og.object,enum:og.arrayOf(og.string),maxLength:og.number,from:og.number,to:og.number,pattern:og.string,format:og.func,parse:og.func,autofix:og.oneOfType([og.bool,og.oneOf(["pad"])]),radix:og.string,thousandsSeparator:og.string,mapToRadix:og.arrayOf(og.string),scale:og.number,normalizeZeros:og.bool,padFractionalZeros:og.bool,min:og.oneOfType([og.number,og.instanceOf(Date)]),max:og.oneOfType([og.number,og.instanceOf(Date)]),dispatch:og.func,inputRef:og.oneOfType([og.func,og.shape({current:og.object})])},ag=Object.keys(ig).filter((e=>"value"!==e)),sg=["value","unmask","onAccept","onComplete","inputRef"],lg=ag.filter((e=>sg.indexOf(e)<0));const ug=function(t){var n;const r=(n=class extends e.Component{constructor(e){super(e),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const e=this.props,t=this._extractMaskOptionsFromProps(e);var n;t.mask?this.maskRef?(this.maskRef.updateOptions(t),"value"in e&&void 0!==e.value&&(this.maskValue=e.value)):this.initMask(t):(this.destroyMask(),"value"in e&&void 0!==e.value&&(null!=(n=this.element)&&n.isContentEditable&&"INPUT"!==this.element.tagName&&"TEXTAREA"!==this.element.tagName?this.element.textContent=e.value:this.element.value=e.value))}componentWillUnmount(){this.destroyMask()}_inputRef(e){this.element=e,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=e:this.props.inputRef(e))}initMask(e){void 0===e&&(e=this._extractMaskOptionsFromProps(this.props)),this.maskRef=lm(this.element,e).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&void 0!==this.props.value&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(e){const{...t}=e;return Object.keys(t).filter((e=>lg.indexOf(e)<0)).forEach((e=>{delete t[e]})),t}_extractNonMaskProps(e){const{...t}=e;return ag.forEach((e=>{"maxLength"!==e&&delete t[e]})),"defaultValue"in t||(t.defaultValue=e.mask?"":t.value),delete t.value,t}get maskValue(){return this.maskRef?"typed"===this.props.unmask?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(e){this.maskRef&&(e=null==e&&"typed"!==this.props.unmask?"":e,"typed"===this.props.unmask?this.maskRef.typedValue=e:this.props.unmask?this.maskRef.unmaskedValue=e:this.maskRef.value=e)}_onAccept(e){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,e)}_onComplete(e){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,e)}render(){return e.createElement(t,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},n.displayName=void 0,n.propTypes=void 0,n),o=t.displayName||t.name||"Component";return r.displayName="IMask("+o+")",r.propTypes=ig,e.forwardRef(((t,n)=>e.createElement(r,{...t,ref:n})))}((t=>{let{inputRef:n,...r}=t;return e.createElement("input",{...r,ref:n})}));e.forwardRef(((t,n)=>e.createElement(ug,{...t,ref:n})));const cg=e.forwardRef(((t,n)=>{const{maskOptions:r,onAccept:o,value:i}=t,a=g(t,["maskOptions","onAccept","value"]),{ref:s,setUnmaskedValue:l}=function(t,n){let{onAccept:r,onComplete:o,ref:i=e.useRef(null),defaultValue:a,defaultUnmaskedValue:s,defaultTypedValue:l}=void 0===n?{}:n;const u=e.useRef(null),[c,d]=e.useState({}),[p,h]=e.useState(""),[f,m]=e.useState(""),[g,v]=e.useState(),y=e.useCallback((()=>{var e;null==(e=u.current)||e.destroy(),u.current=null}),[]),b=e.useCallback((()=>{const e=u.current;e&&(d({value:e.value,unmaskedValue:e.unmaskedValue,typedValue:e.typedValue}),v(e.typedValue),m(e.unmaskedValue),h(e.value))}),[]),x=e.useCallback((e=>{const t=u.current;t&&(b(),null==r||r(t.value,t,e))}),[r]),k=e.useCallback((e=>u.current&&(null==o?void 0:o(u.current.value,u.current,e))),[o]);return e.useEffect((()=>{const{value:e,...t}=c,n=u.current;n&&void 0!==p&&(e!==p&&(n.value=p,n.value!==p&&x()),d(t))}),[p]),e.useEffect((()=>{const{unmaskedValue:e,...t}=c,n=u.current;n&&void 0!==f&&(e!==f&&(n.unmaskedValue=f,n.unmaskedValue!==f&&x()),d(t))}),[f]),e.useEffect((()=>{const{typedValue:e,...t}=c,n=u.current;n&&void 0!==g&&(e!==g&&(n.typedValue=g,n.masked.typedValueEquals(g)||x()),d(t))}),[g]),e.useEffect((()=>{const e=i.current;if(!e||null==t||!t.mask)return y();const n=u.current;n?null==n||n.updateOptions(t):e&&null!=t&&t.mask&&(u.current=lm(e,t),b(),void 0!==a&&h(a),void 0!==s&&m(s),void 0!==l&&v(l))}),[t,y,x]),e.useEffect((()=>{if(!u.current)return;const e=u.current;return e.on("accept",x),e.on("complete",k),()=>{e.off("accept",x),e.off("complete",k)}}),[x,k]),e.useEffect((()=>y),[y]),{ref:i,maskRef:u,value:p,setValue:h,unmaskedValue:f,setUnmaskedValue:m,typedValue:g,setTypedValue:v}}(r,{onAccept:(e,t)=>null==o?void 0:o(t.unmaskedValue,e)});e.useEffect((()=>{l(null!=i?i:"")}),[l,i]);const u=ao([n,s]);return e.createElement(Tf,Object.assign({},a,{ref:u}))}));cg.displayName="MaskedInputBase";const dg=qf(cg),pg=t=>n=>{var r;const{options:o}=n,i=g(n,["options"]),{control:s}=a.useFormContext(),{field:{onBlur:l,onChange:u,ref:c,value:d},fieldState:p}=a.useController({name:n.name,control:s,rules:o}),h=null===(r=p.error)||void 0===r?void 0:r.message,f=e.useCallback((()=>l()),[l]);return e.createElement(t,Object.assign({errorMessage:h,ref:c,value:d,onAccept:u,onBlur:f},i))},hg=pg(dg),fg=e=>{const{allowNegative:t=!1,decimalPlaces:n=0,integerPlaces:r=15}=e,o=Math.pow(10,r);return{mask:Number,scale:n,radix:",",mapToRadix:["."],thousandsSeparator:" ",max:o,min:t?-o:0}},mg=e.forwardRef(((t,n)=>{const{allowNegative:r=!1,decimalPlaces:o=0,integerPlaces:i=15}=t,a=g(t,["allowNegative","decimalPlaces","integerPlaces"]),s=e.useMemo((()=>fg({decimalPlaces:o,allowNegative:r,integerPlaces:i})),[r,o,i]);return e.createElement(dg,Object.assign({maskOptions:s,ref:n},a))}));mg.displayName="NumberInput";const gg=pg(mg),vg=new RegExp("^\\+?420"),yg={mask:"000 000 000",prepare:e=>e.replace(vg,"")},bg=e.forwardRef(((t,n)=>e.createElement(dg,Object.assign({maskOptions:yg,prefix:"+420",ref:n},t))));bg.displayName="PhoneInput";const xg=pg(bg),kg=e.forwardRef(((t,n)=>{const{buttonAction:r,buttonText:o}=t,i=g(t,["buttonAction","buttonText"]),{invalid:a=!1,size:s}=t;return e.createElement(Tf,Object.assign({button:e.createElement(oi,{buttonStyle:exports.ButtonStyle.primary,disabled:a,size:s===exports.InputSize.xl?exports.ButtonSize.md:exports.ButtonSize.sm,type:exports.ButtonType.button,onClick:r},o),icon:e.createElement(gt,{size:exports.IconSystemSize.big,type:exports.IconSystemType.search}),ref:n,type:"text"},i))}));kg.displayName="SearchInputControl";const wg=qf(kg);var Cg;exports.SliderInputRoundingType=void 0,(Cg=exports.SliderInputRoundingType||(exports.SliderInputRoundingType={})).ceilBySteps="ceilBySteps",Cg.ceilToThousands="ceilToThousands",Cg.floorBySteps="floorBySteps",Cg.floorToThousands="floorToThousands",Cg.roundBySteps="roundBySteps",Cg.roundToThousands="roundToThousands";const Eg=t.div.withConfig({displayName:"Wrapper",componentId:"sc-17p70d2-0"})(["display:grid;grid-template-areas:",";grid-template-columns:",";row-gap:",";column-gap:",";"],(({$isHintVisible:e,$isInputNoteVisible:t,$isInputVisible:n,$mediaType:r})=>{switch(!0){case r===exports.MediaType.mobile&&!n:return`\n\t\t\t\t\t'label'\n\t\t\t\t\t${e?"'hint'":""}\n\t\t\t\t\t'slider'\n\t\t\t\t`;case r===exports.MediaType.mobile&&n:return`\n\t\t\t\t\t'label input'\n\t\t\t\t\t${t?"'inputNote inputNote'":""}\n\t\t\t\t\t${e?"'hint hint'":""}\n\t\t\t\t\t'slider slider'\n\t\t\t\t`;case r===exports.MediaType.desktop&&!n:return`\n\t\t\t\t\t'label'\n\t\t\t\t\t${e?"'hint'":""}\n\t\t\t\t\t'slider'\n\t\t\t\t`;case r===exports.MediaType.desktop&&n:return`\n\t\t\t\t\t'label label'\n\t\t\t\t\t${e?"'hint hint'":""}\n\t\t\t\t\t'slider input'\n\t\t\t\t\t${t?"'inputNote inputNote'":""}\n\t\t\t\t`;default:throw new Error("unexpected MediaType in sliderInput.style.ts Wrapper grid-template-areas")}}),(({$isInputVisible:e})=>e?"1fr 9.375rem":"1fr"),(({$isInputVisible:e,theme:t})=>e?t.spacing.md:0),(({$isInputVisible:e,theme:t})=>e?t.spacing.md:0)),Sg=t.div.withConfig({displayName:"LabelWrapper",componentId:"sc-17p70d2-1"})(["display:flex;flex-direction:column;grid-area:label;row-gap:",";align-items:start;justify-content:center;"],(({theme:e})=>e.spacing.xxs)),_g=t.div.withConfig({displayName:"HintWrapper",componentId:"sc-17p70d2-2"})(["display:flex;grid-area:hint;margin-top:-",";"],(({theme:e})=>e.spacing.sm)),Ig=t.div.withConfig({displayName:"InputWrapper",componentId:"sc-17p70d2-3"})(["display:flex;flex-direction:column;grid-area:input;justify-content:flex-end;width:",";height:",";overflow:",";"],(({$isInputHidden:e})=>e?"0":"initial"),(({$isInputHidden:e})=>e?"0":"initial"),(({$isInputHidden:e})=>e?"hidden":"initial")),Mg=t.div.withConfig({displayName:"InputNoteWrapper",componentId:"sc-17p70d2-4"})(["grid-area:inputNote;text-align:right;"]),Lg=t.div.withConfig({displayName:"SliderWrapper",componentId:"sc-17p70d2-5"})(["display:flex;grid-area:slider;"]),Tg=t=>{const n=e.useId();return void 0===t?n:t},Dg=dm(fg({})),Pg=e.forwardRef(((n,r)=>{const{ariaLabelForHandle:o,ariaLabelledByForHandle:i,ariaValueTextFormatter:a,clampMax:s,clampMin:l,colorInput:u,disabled:c,hintText:d,id:p,inputLimitExceededAriaLiveFormatter:h,inputNote:f,inputRoundingType:m,invalid:g=!1,isInputHidden:v=!1,label:y,labelAs:b,labelHiddenText:x,labelId:k,labelSuffix:w,max:C,min:E,minMaxLabels:S,name:_,onBlur:I,onChange:M,onInputChange:L,onSliderChange:T,prefix:D,steps:P,stepType:O,suffix:R,tooltip:A,value:N,weight:V}=n,B=null!=l?l:E,F=null!=s?s:C,j=t.useTheme(),{chooseColor:$,colorScheme:W,mediaType:H}=z(n),Y=Tg(p),K=Tg(k),[U,q]=e.useState(N),Z=e.useRef(null),G=ao([r,Z]),[Q,J]=e.useState(void 0),ee=e.useCallback((e=>{var t,n;if(void 0!==(null===(t=Z.current)||void 0===t?void 0:t.value)){const t=null===(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"))||void 0===n?void 0:n.set;if(void 0===t)return void console.error("Failed to retrieve the native value setter for HTMLInputElement. The input value cannot be programmatically updated.");t.call(Z.current,(e=>(Dg.resolve(e),Dg.value))(e.toString()))}}),[]);e.useEffect((()=>{q(N)}),[N]),e.useEffect((()=>{ee(U)}),[ee,U]);const te=e.useCallback((e=>{null==T||T(e),q(e)}),[T]),ne=e.useCallback((e=>{null==M||M(e),null==L||L(e.toString())}),[L,M]),re=e.useCallback(((e,t)=>{if(void 0===h)return;const n=h.formatAsPrimitive(t,[],{min:E,max:C,oldValue:e,effectiveMin:B,effectiveMax:F,clampMax:s,clampMin:l});J(n)}),[s,l,F,B,h,C,E]),oe=e.useCallback((e=>{const t=Number.parseInt((e=>(Dg.resolve(e),Dg.unmaskedValue))(e));let n;switch(!0){case Number.isNaN(t):case t<B:n=B;break;case t>F:n=F;break;default:n=t}let r=n;switch(!0){case void 0===m:break;case m===exports.SliderInputRoundingType.ceilBySteps:case m===exports.SliderInputRoundingType.floorBySteps:case m===exports.SliderInputRoundingType.roundBySteps:r=(e=>{const{max:t,min:n,roundingType:r,steps:o,value:i}=e;if(r!==exports.SliderInputRoundingType.ceilBySteps&&r!==exports.SliderInputRoundingType.floorBySteps&&r!==exports.SliderInputRoundingType.roundBySteps)throw new Error("unexpected enum SliderInputRoundingType value in getRoundedValueBySteps");if(i<=n)return n;if(i>=t)return t;const a=[{step:o.baseStep,bottomBreakpoint:n},...o.breakpointList].reduce(((e,n,r,o)=>{const i=o[r+1],a=void 0===i?t:i.bottomBreakpoint,s=[];for(let e=n.bottomBreakpoint+n.step;e<a;e+=n.step)s.push(e);return[...e,...s,a]}),[n]),s=a.reduce(((e,t,n,r)=>{if(void 0!==e)return e;const o=r[n+1];return i>t&&i<=o?{lowerBoundary:t,upperBoundary:o}:void 0}),void 0);if(void 0===s)throw new Error("unexpected Error stepsRoundValue.ts");return i===s.lowerBoundary?s.lowerBoundary:i===s.upperBoundary?s.upperBoundary:r===exports.SliderInputRoundingType.floorBySteps?s.lowerBoundary:r===exports.SliderInputRoundingType.ceilBySteps?s.upperBoundary:i-s.lowerBoundary<(s.upperBoundary-s.lowerBoundary)/2?s.lowerBoundary:s.upperBoundary})({steps:P,value:n,roundingType:m,min:B,max:F});break;case m===exports.SliderInputRoundingType.ceilToThousands:r=1e3*Math.ceil(n/1e3);break;case m===exports.SliderInputRoundingType.floorToThousands:r=1e3*Math.floor(n/1e3);break;case m===exports.SliderInputRoundingType.roundToThousands:r=1e3*Math.round(n/1e3);break;default:throw new Error("unexpected SliderInputRoundingType enum value in sliderInput.tsx handleInputBlur")}return q(r),null==M||M(r),null==T||T(r),r!==t&&(re(t,r),ee(r),null==L||L(r.toString())),r}),[ee,L,F,B,m,M,T,P,re]),ie=e.useCallback((e=>{const t=e.target.value;oe(t),null==I||I()}),[oe,I]),ae=e.useCallback((()=>{null==M||M(U),null==I||I()}),[I,M,U]),se=e.useCallback((e=>{null==L||L(e)}),[L]),le=e.useCallback((e=>{"Enter"===e.key&&oe(e.currentTarget.value)}),[oe]),ue=e.useCallback((()=>{J(void 0)}),[]);return e.createElement(Eg,{$isHintVisible:void 0!==d,$isInputNoteVisible:void 0!==f,$isInputVisible:!v,$mediaType:H},e.createElement(Al,{"aria-live":"polite"},Q),e.createElement(Sg,null,e.createElement(Rf,{as:b,colorScheme:W,hiddenText:x,id:Y,invalid:g,label:y,labelId:K,size:exports.InputLabelSize.md,suffix:w,tooltip:A})),void 0!==d&&e.createElement(_g,null,e.createElement(X,{color:$(j.colors.fg.neutral.subtle),colorScheme:W,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},d)),e.createElement(Ig,{$isInputHidden:v},e.createElement(mg,{"aria-labelledby":K,colorInput:null!=u?u:$(j.colors.fg.neutral.default),colorScheme:W,disabled:c,id:Y,invalid:g,name:_,prefix:D,ref:G,size:exports.InputSize.md,suffix:R,textAlign:exports.InputTextAlign.right,weight:V,onAccept:se,onBlur:ie,onFocus:ue,onKeyDown:le})),void 0!==f&&!v&&e.createElement(Mg,{$mediaType:H},e.createElement(X,{colorScheme:W,variant:exports.TypographyVariant.textMd},f)),e.createElement(Lg,null,e.createElement(la,{ariaLabelForHandle:o,ariaLabelledByForHandle:null!=i?i:K,ariaValueTextFormatter:a,clampMax:s,clampMin:l,colorScheme:W,disable:c,max:C,min:E,minMaxLabels:S,steps:P,stepType:O,value:U,onBlur:ae,onChange:te,onFinalChange:ne})))}));Pg.displayName="SliderInput";const Og=e.forwardRef(((t,n)=>e.createElement(Tf,Object.assign({ref:n,type:"text"},t))));Og.displayName="TextInputControl";const Rg=qf(Og),Ag=e.forwardRef(((t,n)=>e.createElement(Tf,Object.assign({ref:n,textAlign:exports.InputTextAlign.right,type:"text"},t))));Ag.displayName="TrailingTextInputControl";const Ng=qf(Ag),Vg=e.forwardRef(((t,n)=>{const{innerRef:r}=t,o=g(t,["innerRef"]),i=ao([r,n]);return e.createElement(Tf,Object.assign({},o,{ref:i}))}));var Bg,Fg,jg;Vg.displayName="InputBaseWithInnerRef",Bg="cs",Fg=Cu,(jg=Sp()).__localeData__||(jg.__localeData__={}),jg.__localeData__[Bg]=Fg;const $g=["dd.MM.yyyy","dd. MM. yyyy"],Wg=e.forwardRef(((n,r)=>{const{chevronCloseAriaLabel:o,chevronOpenAriaLabel:i,chooseDayAriaLabelPrefix:a,dateFormat:s=$g,describedBy:l,disabledDayAriaLabelPrefix:u,filterDate:c,id:d,invalid:p,labelledBy:h,locale:f,maxDate:m,minDate:g,monthAriaLabelPrefix:v,name:y,nextMonthAriaLabel:b,onBlur:x,onChange:k,previousMonthAriaLabel:w,required:C,selected:E}=n,S=t.useTheme(),{chooseColor:_,colorScheme:I}=z(n),{setFalse:M,setTrue:L,toggle:T,value:D}=nn(!1);return e.createElement(lf,{ariaDescribedBy:l,ariaInvalid:String(p),ariaLabelledBy:h,ariaRequired:String(C),calendarContainer:({children:t})=>e.createElement(ff,{$chooseColor:_,role:"dialog"},e.createElement(mf,{id:"datepicker-prevMonth"},w),e.createElement(mf,{id:"datepicker-nextMonth"},b),t),chooseDayAriaLabelPrefix:a,customInput:e.createElement(Vg,{icon:e.createElement(vf,{onClick:L},e.createElement(gt,{size:exports.IconSystemSize.small,stroke:_(S.colors.icon.brand),type:exports.IconSystemType.event})),innerRef:r,invalid:p,name:y,size:exports.InputSize.md,suffix:e.createElement(St,{"aria-label":D?o:i,onClick:e=>{e.preventDefault(),T()},onMouseDown:e=>e.stopPropagation(),onMouseUp:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation()},e.createElement(yf,{$isOpen:D},e.createElement(gt,{size:exports.IconSystemSize.big,type:exports.IconSystemType.chevronDown})))}),dateFormat:s,disabledDayAriaLabelPrefix:u,filterDate:c,id:d,locale:null!=f?f:"cs",maxDate:m,minDate:g,monthAriaLabelPrefix:v,nextMonthAriaLabel:b,open:D,popperContainer:gf,previousMonthAriaLabel:w,renderCustomHeader:t=>e.createElement(hf,Object.assign({},t,{colorScheme:I,nextMonthAriaLabel:b,previousMonthAriaLabel:w})),selected:E,selectsMultiple:!1,selectsRange:!1,showPopperArrow:!1,showTimeSelect:!1,onBlur:x,onChange:k,onClickOutside:M,onSelect:M})}));Wg.displayName="DatePickerControl";const Hg="yyyy-MM-dd",zg=qf(Wg),Yg="24px",Kg=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-1sl4l1o-0"})(["display:flex;margin:0;"]),Ug=t.input.withConfig({displayName:"CheckboxStyled",componentId:"sc-1sl4l1o-1"})(["position:absolute;width:0;height:0;padding:0;margin:0;cursor:pointer;border-width:0;outline:none;box-shadow:none;opacity:0;&:focus-visible + span{outline-width:3px;outline-style:solid;outline-color:",";outline-offset:2px;}&:not(:disabled):hover + span{background-color:",";border-color:",";}&:checked + span{background-color:",";background-image:url('data:image/svg+xml;base64,","');background-position:center;border-color:",";}&:disabled + span{cursor:auto;background-color:",";border-color:",";}"],(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.focus)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.brand.default)),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.bold)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.brand.default)),(({$checkBackground:e})=>e),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.bold)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.disabled)),(({$chooseColor:e,theme:t})=>e(t.colors.border.neutral.subtle))),qg=t.span.withConfig({displayName:"SpanStyled",componentId:"sc-1sl4l1o-2"})(["box-sizing:border-box;display:inline-block;width:",";height:",";margin:0;cursor:pointer;background-color:",";background-repeat:no-repeat;background-position:center;border-color:",";border-style:solid;border-width:1px;border-radius:",";"],Yg,Yg,(({$chooseColor:e,theme:t})=>e(t.colors.bg.neutral.white)),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.neutral.default)),(({theme:e})=>e.borderRadius.xxs)),Zg=e.forwardRef(((n,r)=>{const{checked:o,disabled:i=!1,id:a,invalid:s=!1,name:l,onBlur:u,onChange:c,value:d}=n,p=t.useTheme(),{chooseColor:h}=z(n),f=e.useRef(null);e.useEffect((()=>{null!==r&&("function"==typeof r?r(f.current):r.current=f.current)}),[r]),e.useEffect((()=>{if(null===f.current)throw new Error("CheckboxBase unexpected error: localRef.current is null")}),[]);const m=e.useMemo((()=>{return e=h(i?p.colors.icon.neutral:p.colors.icon.brand),sa.encode((e=>`\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">\n <path d="M7.75 12.75L10 15.25L16.25 8.75" stroke="${e}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>`)(e));var e}),[i,p,h]);return e.createElement(Kg,null,e.createElement(Ug,{$checkBackground:m,$chooseColor:h,$isError:s,checked:o,disabled:i,id:a,name:l,ref:f,type:"checkbox",value:d,onBlur:u,onChange:c}),e.createElement(qg,{$chooseColor:h,$isError:s}))}));var Gg;Zg.displayName="CheckboxControl",exports.CheckboxPosition=void 0,(Gg=exports.CheckboxPosition||(exports.CheckboxPosition={})).left="left",Gg.right="right";const Qg=t.div.withConfig({displayName:"Wrapper",componentId:"sc-jkkxpe-0"})(["display:flex;flex-direction:column;row-gap:",";"],(({theme:e})=>e.spacing.xs)),Xg=t.div.withConfig({displayName:"CheckboxAndLabelWrapperStyled",componentId:"sc-jkkxpe-1"})(["display:flex;flex-direction:",";column-gap:",";align-items:start;justify-content:left;"],(({$position:e})=>{switch(e){case exports.CheckboxPosition.left:return"row";case exports.CheckboxPosition.right:return"row-reverse";default:throw new Error("unexpected enum values CheckboxPosition in checkbox.style.ts")}}),(({theme:e})=>e.spacing.sm)),Jg=t.div.withConfig({displayName:"CheckboxLabelStyled",componentId:"sc-jkkxpe-2"})(["position:relative;top:calc(("," - ",") / 2);display:",";gap:",";align-items:center;"],Yg,(e=>e.theme.font.lineHeight.body.sm),(({$tooltipPosition:e})=>{switch(e){case exports.LabelTooltipPosition.rightCenter:return"flex";case exports.LabelTooltipPosition.inline:return"inline";default:throw new Error("unexpected value of enum LabelTooltipPosition in Checkbox.style.ts CheckboxLabelStyled display")}}),(e=>e.theme.spacing.xxs)),ev=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-jkkxpe-3"})(["position:relative;display:",";margin:0;& span{vertical-align:middle;}"],(({$tooltipPosition:e})=>{switch(e){case exports.LabelTooltipPosition.rightCenter:return"flex";case exports.LabelTooltipPosition.inline:return"inline";default:throw new Error("unexpected value of enum LabelTooltipPosition in Checkbox.style.ts LabelStyled display")}})),tv=t.span.withConfig({displayName:"TooltipWrapper",componentId:"sc-jkkxpe-4"})(["display:inline-flex;vertical-align:text-bottom;"]),nv=e.forwardRef(((n,r)=>{const{errorMessage:o,id:i,invalid:a=!1,label:s,labelAs:l,labelColor:u,labelHiddenText:c,labelId:d,labelSuffix:p,position:h=exports.CheckboxPosition.left,tooltip:f,tooltipPosition:m=exports.LabelTooltipPosition.inline}=n,v=g(n,["errorMessage","id","invalid","label","labelAs","labelColor","labelHiddenText","labelId","labelSuffix","position","tooltip","tooltipPosition"]),{chooseColor:y,colorScheme:b}=z(n),x=t.useTheme(),k=Tg(i),w=e.useMemo((()=>a?y(x.colors.fg.error):void 0===u?y(x.colors.fg.neutral.subtle):u),[a,u,y,x.colors.fg.neutral.subtle,x.colors.fg.error]);return e.createElement(Qg,null,e.createElement(Xg,{$position:h},e.createElement(Zg,Object.assign({},v,{id:k,invalid:a,ref:r})),ri(s)&&e.createElement(Jg,{$tooltipPosition:m},e.createElement(ev,{$tooltipPosition:m,as:l,htmlFor:"label"===l||void 0===l?k:void 0,id:d},e.createElement(X,{color:w,colorScheme:b,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},s,ri(p)&&e.createElement(X,{color:x.colors.fg.neutral.subtle,colorScheme:b,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400}," ",p),void 0!==c&&e.createElement(e.Fragment,null," ",e.createElement(Al,null,c)))),void 0!==f&&e.createElement(e.Fragment,null,m===exports.LabelTooltipPosition.inline&&" ",e.createElement(tv,null,e.createElement(yl,Object.assign({},Kl(f),{colorScheme:b})))))),void 0!==o&&e.createElement(X,{color:y(x.colors.fg.error),colorScheme:b,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},o))}));nv.displayName="Checkbox";const rv="24px",ov=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-1p59cl-0"})(["display:flex;margin:0;"]),iv=t.input.withConfig({displayName:"RadioStyled",componentId:"sc-1p59cl-1"})(["position:absolute;width:0;height:0;padding:0;margin:0;cursor:pointer;border-width:0;outline:none;box-shadow:none;opacity:0;&:focus-visible + span{outline-width:3px;outline-style:solid;outline-color:",";outline-offset:2px;}&:not(:disabled):hover + span{background-color:",";border-color:",";}&:checked + span{background-color:",";background-image:url('data:image/svg+xml;base64,","');border-color:",";}&:disabled + span{cursor:auto;background-color:",";border-color:",";}&:checked:disabled + span{background-image:url('data:image/svg+xml;base64,","');}"],(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.focus)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.brand.default)),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.bold)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.brand.default)),(({$checkedBackground:e})=>e),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.bold)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.disabled)),(({$chooseColor:e,theme:t})=>e(t.colors.border.neutral.subtle)),(({$checkedDisabledBackground:e})=>e)),av=t.span.withConfig({displayName:"SpanStyled",componentId:"sc-1p59cl-2"})(["box-sizing:border-box;display:inline-block;width:",";height:",";margin:0;cursor:pointer;background-color:",";background-repeat:no-repeat;background-position:center;border-color:",";border-style:solid;border-width:1px;border-radius:",";"],rv,rv,(({$chooseColor:e,theme:t})=>e(t.colors.surface.risen)),(({$chooseColor:e,$isError:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.neutral.default)),(({theme:e})=>e.borderRadius.full)),sv=e=>sa.encode((e=>`\n\t\t<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n\t\t\t<circle cx="8" cy="8" r="8" fill="${e}"/>\n\t\t</svg>\n`)(e)),lv=e.forwardRef(((n,r)=>{const{checked:o,colorScheme:i,disabled:a,id:s,invalid:l=!1,mediaType:u,name:c,onBlur:d,onChange:p,value:h}=n,f=g(n,["checked","colorScheme","disabled","id","invalid","mediaType","name","onBlur","onChange","value"]),m=t.useTheme(),{chooseColor:v}=z(n),y=e.useMemo((()=>sv(m.colors.icon.brand.light)),[m]),b=e.useMemo((()=>sv(m.colors.icon.neutral.light)),[m]),x=e.useMemo((()=>void 0!==s?s:sa.encode(Math.random().toString())),[s]);return e.createElement(ov,null,e.createElement(iv,Object.assign({$checkedBackground:y,$checkedDisabledBackground:b,$chooseColor:v,$isError:l,checked:o,disabled:a,id:x,name:c,ref:r,type:"radio",value:h,onBlur:d,onChange:p},f)),e.createElement(av,{$chooseColor:v,$isError:l}))}));var uv;lv.displayName="RadioControl",exports.RadioPosition=void 0,(uv=exports.RadioPosition||(exports.RadioPosition={})).left="left",uv.right="right";const cv=t.div.withConfig({displayName:"Wrapper",componentId:"sc-64rj8s-0"})(["display:flex;flex-direction:column;row-gap:",";"],(({theme:e})=>e.spacing.xs)),dv=t.div.withConfig({displayName:"RadioBaseWrapper",componentId:"sc-64rj8s-1"})(["display:flex;"]),pv=t.div.withConfig({displayName:"RadioAndLabelWrapperStyled",componentId:"sc-64rj8s-2"})(["display:flex;flex-direction:",";column-gap:",";align-items:start;justify-content:left;"],(({$position:e})=>{switch(e){case exports.RadioPosition.left:return"row";case exports.RadioPosition.right:return"row-reverse";default:throw new Error("unexpected enum values RadioPosition in radioBaseWithLabel.style.ts")}}),(({theme:e})=>e.spacing.sm)),hv=t.div.withConfig({displayName:"RadioLabelStyled",componentId:"sc-64rj8s-3"})(["position:relative;top:calc(("," - ",") / 2);display:flex;gap:",";align-items:center;"],rv,(e=>e.theme.font.lineHeight.body.sm),(e=>e.theme.spacing.xxs)),fv=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-64rj8s-4"})(["position:relative;display:flex;margin:0;& span{vertical-align:middle;}& > span{display:flex;}"]),mv=e.forwardRef(((n,r)=>{const{errorMessage:o,id:i,invalid:a=!1,label:s,labelAs:l,labelHiddenText:u,labelId:c,labelSuffix:d,position:p=exports.RadioPosition.left,tooltip:h}=n,f=g(n,["errorMessage","id","invalid","label","labelAs","labelHiddenText","labelId","labelSuffix","position","tooltip"]),m=t.useTheme(),{chooseColor:v,colorScheme:y}=z(n),b=Tg(i);return e.createElement(cv,null,e.createElement(pv,{$position:p},e.createElement(dv,null,e.createElement(lv,Object.assign({},f,{colorScheme:y,id:b,invalid:a,ref:r}))),ri(s)&&e.createElement(hv,null,e.createElement(fv,{as:l,htmlFor:"label"===l||void 0===l?b:void 0,id:c},e.createElement(X,{color:v(a?m.colors.fg.error:m.colors.fg.neutral.subtle),colorScheme:y,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},s,ri(d)&&e.createElement(X,{color:m.colors.fg.neutral.subtle,colorScheme:y,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400}," ",d),void 0!==u&&e.createElement(e.Fragment,null," ",e.createElement(Al,null,u)))),void 0!==h&&e.createElement(yl,Object.assign({},Kl(h),{colorScheme:y})))),void 0!==o&&e.createElement(X,{color:v(m.colors.fg.error),colorScheme:y,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},o))}));mv.displayName="Radio";var gv;exports.RadioGroupDirection=void 0,(gv=exports.RadioGroupDirection||(exports.RadioGroupDirection={})).column="column",gv.columnReverse="columnReverse",gv.row="row",gv.rowReverse="rowReverse";const vv=t.div.withConfig({displayName:"ItemsWrapper",componentId:"sc-1pgvw9r-0"})(["box-sizing:border-box;display:flex;flex-direction:",";flex-wrap:wrap;row-gap:",";column-gap:",";",""],(({$direction:e})=>{switch(e){case exports.RadioGroupDirection.row:return"row";case exports.RadioGroupDirection.rowReverse:return"row-reverse";case exports.RadioGroupDirection.column:return"column";case exports.RadioGroupDirection.columnReverse:return"column-reverse";default:throw new Error("unexpected value of enum RadioGroupDirection in RadioGroupControl.style.ts")}}),(({$rowGap:e,theme:t})=>y(t,e)),(({$columnGap:e,theme:t})=>y(t,e)),(({$controlWidth:e})=>void 0!==e&&t.css(["width:",";"],e))),yv=t.div.withConfig({displayName:"ItemWrapper",componentId:"sc-1pgvw9r-1"})(["box-sizing:border-box;align-content:center;",""],(({$itemMinWidth:e})=>void 0!==e&&t.css(["min-width:",";"],e))),bv=e.forwardRef(((t,n)=>{const{columnGap:r=exports.Spacing.md,controlWidth:o,direction:i,disabled:a,invalid:s,itemMinWidth:l,items:u,labelledBy:c,name:d,onBlur:p,onChange:h,rowGap:f=exports.Spacing.md,value:m}=t,{colorScheme:v}=z(t);return e.createElement(vv,{$columnGap:r,$controlWidth:o,$direction:i,$rowGap:f,"aria-labelledby":c,role:"radiogroup"},u.map((t=>{const{id:r,label:o,value:i}=t,u=g(t,["id","label","value"]),c=void 0===m?void 0:i===m;return e.createElement(yv,{key:t.value,$itemMinWidth:l},e.createElement(mv,Object.assign({checked:c,colorScheme:v,disabled:a,id:r,invalid:s,label:o,name:d,ref:n,value:i,onBlur:p,onChange:h},u)))})))}));bv.displayName="RadioGroupControl";const xv=qf(bv),kv=e.forwardRef(((t,n)=>{const{labelAs:r="span"}=t,o=g(t,["labelAs"]);return e.createElement(xv,Object.assign({},o,{labelAs:r,ref:n}))}));kv.displayName="RadioGroup";const wv=t.div.withConfig({displayName:"Wrapper",componentId:"sc-38amxi-0"})(["display:flex;flex-direction:column;row-gap:",";height:100%;"],(({theme:e})=>e.spacing.xs)),Cv=t.input.withConfig({displayName:"InputStyled",componentId:"sc-38amxi-1"})(["position:absolute;grid-area:input;width:0;height:0;padding:0;margin:0;border-width:0;opacity:0;&:focus-visible + label{outline-width:3px;outline-style:solid;outline-color:",";outline-offset:3px;}&:not(:disabled) + label:hover{background-color:",";border-color:",";}&:checked + label{padding-top:calc("," - 1px);padding-right:calc("," - 1px);padding-bottom:calc("," - 1px);padding-left:calc("," - 1px);background-color:",";border-color:",";border-width:2px;}&:disabled + label{color:",";cursor:auto;background-color:",";border-color:",";}"],(({$chooseColor:e,$invalid:t,theme:n})=>e(t?n.colors.fg.error:n.colors.focus)),(({$chooseColor:e,theme:t})=>e(t.colors.surface.default)),(({$chooseColor:e,$invalid:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.default)),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.xs),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.xs),(({$chooseColor:e,theme:t})=>e(t.colors.surface.default)),(({$chooseColor:e,$invalid:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.brand.default)),(({$chooseColor:e,theme:t})=>e(t.colors.fg.disabled)),(({$chooseColor:e,theme:t})=>e(t.colors.bg.disabled)),(({$chooseColor:e,theme:t})=>e(t.colors.border.disabled))),Ev=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-38amxi-2"})(["position:relative;box-sizing:border-box;display:flex;flex:1;flex-direction:column;grid-area:label;row-gap:",";align-items:center;justify-content:space-evenly;padding-top:",";padding-right:",";padding-bottom:",";padding-left:",";color:",";cursor:pointer;background-color:",";border-color:",";border-style:solid;border-width:1px;border-radius:",";"],(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.xs),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.spacing.xs),(({$chooseColor:e,theme:t})=>e(t.colors.fg.neutral.subtle)),(({$chooseColor:e,theme:t})=>e(t.colors.surface.risen)),(({$chooseColor:e,$invalid:t,theme:n})=>e(t?n.colors.fg.error:n.colors.border.neutral.subtle)),(({theme:e})=>e.borderRadius.xs)),Sv=t.span.withConfig({displayName:"ErrorWrapper",componentId:"sc-38amxi-3"})(["grid-area:error;"]),_v=e.forwardRef(((n,r)=>{const{checked:o,colorScheme:i,disabled:a,errorMessage:s,id:l,invalid:u=!1,label:c,mediaType:d,name:p,onBlur:h,onChange:f,value:m}=n,v=g(n,["checked","colorScheme","disabled","errorMessage","id","invalid","label","mediaType","name","onBlur","onChange","value"]),y=Tg(l),b=t.useTheme(),{chooseColor:x}=z(n);return e.createElement(wv,null,e.createElement(Cv,Object.assign({$chooseColor:x,$invalid:u,checked:o,disabled:a,id:y,name:p,ref:r,type:"radio",value:m,onBlur:h,onChange:f},v)),e.createElement(Ev,{$chooseColor:x,$invalid:u,htmlFor:y},void 0!==c.top&&e.createElement(X,{color:u?b.colors.fg.error.light:"inherit",textAlign:exports.TypographyTextAlign.center,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},c.top),e.createElement(X,{color:u?b.colors.fg.error.light:"inherit",textAlign:exports.TypographyTextAlign.center,variant:exports.TypographyVariant.textMd,weight:exports.FontWeight.medium500},c.main)),void 0!==s&&e.createElement(Sv,null,e.createElement(X,{color:b.colors.fg.error.light,variant:exports.TypographyVariant.textSm,weight:exports.FontWeight.regular400},s)))}));_v.displayName="RadioButton";const Iv=t.div.withConfig({displayName:"ItemsWrapper",componentId:"sc-12q6z57-0"})(["box-sizing:border-box;display:flex;flex-wrap:wrap;gap:",";"," "," ",""],(({theme:e})=>e.spacing.sm),(({$controlWidth:e})=>void 0===e?"":`width: ${e};`),(({$gridColumns:e})=>void 0!==e&&t.css(["display:grid;grid-template-columns:repeat(",",1fr);grid-auto-rows:1fr;"],e)),(({$fiveItemsCase:e})=>e&&t.css([":nth-child(1){grid-column:1 / span 2;}:nth-child(2){grid-column:3 / span 2;}:nth-child(3){grid-column:5 / span 2;}:nth-child(4){grid-column:1 / span 3;}:nth-child(5){grid-column:4 / span 3;}"]))),Mv=t.div.withConfig({displayName:"ItemWrapper",componentId:"sc-12q6z57-1"})(["box-sizing:border-box;flex:1;align-content:center;justify-content:space-between;min-width:",";",";"],(({$arrangeInGrid:e,$itemMinWidth:t})=>void 0!==t?t:e?"auto":"160px"),(({$arrangeInGrid:e})=>e&&t.css(["& > *{height:100%;}"])));var Lv;exports.RadioButtonGroupLayout=void 0,(Lv=exports.RadioButtonGroupLayout||(exports.RadioButtonGroupLayout={})).flex="flex",Lv.grid="grid",Lv.smartGrid="smartGrid";const Tv=e.forwardRef(((t,n)=>{const{buttonsLayout:r=exports.RadioButtonGroupLayout.flex,controlWidth:o,disabled:i,gridColumns:a,invalid:s,itemMinWidth:l,items:u,labelledBy:c,name:d,onBlur:p,onChange:h,value:f}=t;if(r===exports.RadioButtonGroupLayout.grid&&void 0===a)throw new Error("RadioButtonGroupControl: gridColumns must be defined when layout is `grid`");if(r!==exports.RadioButtonGroupLayout.grid&&void 0!==a)throw new Error("RadioButtonGroupControl: gridColumns must be undefined when layout is not `grid`");const{colorScheme:m}=z(t),v=e.useMemo((()=>{if(r!==exports.RadioButtonGroupLayout.smartGrid)return a;const e=u.length;return 1===e||2===e||3===e?3:4===e?2:5===e?6:6===e?3:void 0}),[a,u.length,r]);return e.createElement(Iv,{$controlWidth:o,$fiveItemsCase:5===u.length,$gridColumns:v,"aria-labelledby":c,role:"radiogroup"},u.map((t=>{const{id:r,label:o,value:a}=t,u=g(t,["id","label","value"]),c=void 0===f?void 0:a===f;return e.createElement(Mv,{key:t.value,$arrangeInGrid:void 0!==v,$itemMinWidth:l},e.createElement(_v,Object.assign({checked:c,colorScheme:m,disabled:i,id:r,invalid:s,label:o,name:d,ref:n,value:a,onBlur:p,onChange:h},u)))})))}));Tv.displayName="RadioButtonGroupControl";const Dv=qf(Tv),Pv=e.forwardRef(((t,n)=>{const{labelAs:r="span"}=t,o=g(t,["labelAs"]);return e.createElement(Dv,Object.assign({},o,{labelAs:r,ref:n}))}));Pv.displayName="RadioButtonGroup";const Ov=t.textarea.withConfig({displayName:"TextAreaStyled",componentId:"sc-shxz4g-0"})(["box-sizing:border-box;width:100%;min-height:124px;padding:",";font-family:",";font-size:",";line-height:",";letter-spacing:",";resize:vertical;background:",";border-color:",";border-width:",";border-radius:",";&:focus{border-color:",";outline:none;box-shadow:",";}&:disabled{color:",";cursor:not-allowed;background:",";border:1px solid ",";}"],(({theme:e})=>e.spacing.sm),(({theme:e})=>e.font.family.main),(({theme:e})=>M(e.font.size.body.md)),(({theme:e})=>e.font.lineHeight.body.md),(({theme:e})=>e.font.letterSpacing.body.sm),(({theme:e})=>e.palette.white),(({$invalid:e,theme:t})=>e?t.colors.border.error.dark:t.colors.border.neutral.subtlest.dark),(({$invalid:e})=>e?"2px":"1px"),(({theme:e})=>e.borderRadius.xs),(({$invalid:e,theme:t})=>e?t.colors.border.error.dark:t.colors.border.brand.default.dark),(({$invalid:e,theme:t})=>e?`0px 0 0 2px ${t.palette.white}, 0 0 0 5px ${t.colors.border.error.dark}`:`0px 0 0 2px ${t.palette.white}, 0 0 0 5px ${t.colors.border.brand.bold.dark}`),(({theme:e})=>e.colors.fg.neutral.subtlest.dark),(({theme:e})=>e.colors.bg.disabled.light),(({theme:e})=>e.colors.border.disabled.light)),Rv=e.forwardRef(((t,n)=>{const{colorScheme:r,describedBy:o,invalid:i=!1,labelledBy:a,mediaType:s,required:l}=t,u=g(t,["colorScheme","describedBy","invalid","labelledBy","mediaType","required"]);return e.createElement(Ov,Object.assign({$invalid:i,"aria-describedby":o,"aria-invalid":i,"aria-labelledby":a,"aria-required":l,ref:n},u))}));Rv.displayName="TextAreaControl";const Av=qf(Rv);var Nv,Vv={exports:{}},Bv={};var Fv,jv={};"production"===process.env.NODE_ENV?Vv.exports=function(){if(Nv)return Bv;Nv=1,Object.defineProperty(Bv,"__esModule",{value:!0});var t=e;function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}var r=t.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},t.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),o=t.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},t.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function i(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function a(e,t,n,r,o){return function(e,t,n,r,o){var i=(e-n)/(t-n);if(0===i)return r;if(1===i)return o;for(var a="#",s=1;s<6;s+=2){var l=parseInt(r.substr(s,2),16),u=parseInt(o.substr(s,2),16),c=Math.round((1-i)*l+i*u).toString(16);1===c.length&&(c="0"+c),a+=c}return a}(e,t,n,i(r),i(o))}var s=function(e){function r(t){e.call(this,t);var n=t.height,r=t.width,o=t.checked;this.t=t.handleDiameter||n-2,this.i=Math.max(r-n,r-(n+this.t)/2),this.o=Math.max(0,(n-this.t)/2),this.state={h:o?this.i:this.o},this.l=0,this.u=0,this.p=this.p.bind(this),this.v=this.v.bind(this),this.g=this.g.bind(this),this.k=this.k.bind(this),this.M=this.M.bind(this),this.m=this.m.bind(this),this.T=this.T.bind(this),this.$=this.$.bind(this),this.C=this.C.bind(this),this.O=this.O.bind(this),this.D=this.D.bind(this),this.S=this.S.bind(this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.componentDidMount=function(){this.W=!0},r.prototype.componentDidUpdate=function(e){e.checked!==this.props.checked&&this.setState({h:this.props.checked?this.i:this.o})},r.prototype.componentWillUnmount=function(){this.W=!1},r.prototype.I=function(e){this.H.focus(),this.setState({j:e,R:!0,B:Date.now()})},r.prototype.L=function(e){var t=this.state,n=t.j,r=t.h,o=(this.props.checked?this.i:this.o)+e-n;t.N||e===n||this.setState({N:!0});var i=Math.min(this.i,Math.max(this.o,o));i!==r&&this.setState({h:i})},r.prototype.U=function(e){var t=this.state,n=t.h,r=t.N,o=t.B,i=this.props.checked,a=(this.i+this.o)/2;this.setState({h:this.props.checked?this.i:this.o});var s=Date.now()-o;(!r||s<250||i&&n<=a||!i&&n>=a)&&this.A(e),this.W&&this.setState({N:!1,R:!1}),this.l=Date.now()},r.prototype.p=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.I(e.clientX),window.addEventListener("mousemove",this.v),window.addEventListener("mouseup",this.g))},r.prototype.v=function(e){e.preventDefault(),this.L(e.clientX)},r.prototype.g=function(e){this.U(e),window.removeEventListener("mousemove",this.v),window.removeEventListener("mouseup",this.g)},r.prototype.k=function(e){this.X=null,this.I(e.touches[0].clientX)},r.prototype.M=function(e){this.L(e.touches[0].clientX)},r.prototype.m=function(e){e.preventDefault(),this.U(e)},r.prototype.$=function(e){Date.now()-this.l>50&&(this.A(e),Date.now()-this.u>50&&this.W&&this.setState({R:!1}))},r.prototype.C=function(){this.u=Date.now()},r.prototype.O=function(){this.setState({R:!0})},r.prototype.D=function(){this.setState({R:!1})},r.prototype.S=function(e){this.H=e},r.prototype.T=function(e){e.preventDefault(),this.H.focus(),this.A(e),this.W&&this.setState({R:!1})},r.prototype.A=function(e){var t=this.props;(0,t.onChange)(!t.checked,e,t.id)},r.prototype.render=function(){var e=this.props,r=e.checked,o=e.disabled,i=e.className,s=e.offColor,l=e.onColor,u=e.offHandleColor,c=e.onHandleColor,d=e.checkedIcon,p=e.uncheckedIcon,h=e.checkedHandleIcon,f=e.uncheckedHandleIcon,m=e.boxShadow,g=e.activeBoxShadow,v=e.height,y=e.width,b=e.borderRadius,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),k=this.state,w=k.h,C=k.N,E=k.R,S={position:"relative",display:"inline-block",textAlign:"left",opacity:o?.5:1,direction:"ltr",borderRadius:v/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},_={height:v,width:y,margin:Math.max(0,(this.t-v)/2),position:"relative",background:a(w,this.i,this.o,s,l),borderRadius:"number"==typeof b?b:v/2,cursor:o?"default":"pointer",WebkitTransition:C?null:"background 0.25s",MozTransition:C?null:"background 0.25s",transition:C?null:"background 0.25s"},I={height:v,width:Math.min(1.5*v,y-(this.t+v)/2+1),position:"relative",opacity:(w-this.o)/(this.i-this.o),pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},M={height:v,width:Math.min(1.5*v,y-(this.t+v)/2+1),position:"absolute",opacity:1-(w-this.o)/(this.i-this.o),right:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},L={height:this.t,width:this.t,background:a(w,this.i,this.o,u,c),display:"inline-block",cursor:o?"default":"pointer",borderRadius:"number"==typeof b?b-1:"50%",position:"absolute",transform:"translateX("+w+"px)",top:Math.max(0,(v-this.t)/2),outline:0,boxShadow:E?g:m,border:0,WebkitTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},T={height:this.t,width:this.t,opacity:Math.max(2*(1-(w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},D={height:this.t,width:this.t,opacity:Math.max(2*((w-this.o)/(this.i-this.o)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"};return t.createElement("div",{className:i,style:S},t.createElement("div",{className:"react-switch-bg",style:_,onClick:o?null:this.T,onMouseDown:function(e){return e.preventDefault()}},d&&t.createElement("div",{style:I},d),p&&t.createElement("div",{style:M},p)),t.createElement("div",{className:"react-switch-handle",style:L,onClick:function(e){return e.preventDefault()},onMouseDown:o?null:this.p,onTouchStart:o?null:this.k,onTouchMove:o?null:this.M,onTouchEnd:o?null:this.m,onTouchCancel:o?null:this.D},f&&t.createElement("div",{style:T},f),h&&t.createElement("div",{style:D},h)),t.createElement("input",n({},{type:"checkbox",role:"switch","aria-checked":r,checked:r,disabled:o,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},x,{ref:this.S,onFocus:this.O,onBlur:this.D,onKeyUp:this.C,onChange:this.$})))},r}(t.Component);return s.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:r,checkedIcon:o,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},Bv.default=s,Bv}():Vv.exports=(Fv||(Fv=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var n=e,r=rg;function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}var i=n.createElement("svg",{viewBox:"-2 -5 14 20",height:"100%",width:"100%",style:{position:"absolute",top:0}},n.createElement("path",{d:"M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12",fill:"#fff",fillRule:"evenodd"})),a=n.createElement("svg",{height:"100%",width:"100%",viewBox:"-2 -5 17 21",style:{position:"absolute",top:0}},n.createElement("path",{d:"M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0",fill:"#fff",fillRule:"evenodd"}));function s(e){if(7===e.length)return e;for(var t="#",n=1;n<4;n+=1)t+=e[n]+e[n];return t}function l(e,t,n,r,o){return function(e,t,n,r,o){var i=(e-n)/(t-n);if(0===i)return r;if(1===i)return o;for(var a="#",s=1;s<6;s+=2){var l=parseInt(r.substr(s,2),16),u=parseInt(o.substr(s,2),16),c=Math.round((1-i)*l+i*u).toString(16);1===c.length&&(c="0"+c),a+=c}return a}(e,t,n,s(r),s(o))}var u=function(e,t,n){var r=e[t];return"string"!=typeof r||"#"!==r[0]||4!==r.length&&7!==r.length?new Error("Invalid prop '"+t+"' supplied to '"+n+"'. '"+t+"' has to be either a 3-digit or 6-digit hex-color string. Valid examples: '#abc', '#123456'"):null},c=function(e){function t(t){e.call(this,t);var n=t.height,r=t.width,o=t.handleDiameter,i=t.checked;this.$handleDiameter=o||n-2,this.$checkedPos=Math.max(r-n,r-(n+this.$handleDiameter)/2),this.$uncheckedPos=Math.max(0,(n-this.$handleDiameter)/2),this.state={$pos:i?this.$checkedPos:this.$uncheckedPos},this.$lastDragAt=0,this.$lastKeyUpAt=0,this.$onMouseDown=this.$onMouseDown.bind(this),this.$onMouseMove=this.$onMouseMove.bind(this),this.$onMouseUp=this.$onMouseUp.bind(this),this.$onTouchStart=this.$onTouchStart.bind(this),this.$onTouchMove=this.$onTouchMove.bind(this),this.$onTouchEnd=this.$onTouchEnd.bind(this),this.$onClick=this.$onClick.bind(this),this.$onInputChange=this.$onInputChange.bind(this),this.$onKeyUp=this.$onKeyUp.bind(this),this.$setHasOutline=this.$setHasOutline.bind(this),this.$unsetHasOutline=this.$unsetHasOutline.bind(this),this.$getInputRef=this.$getInputRef.bind(this)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){this.$isMounted=!0},t.prototype.componentDidUpdate=function(e){if(e.checked!==this.props.checked){var t=this.props.checked?this.$checkedPos:this.$uncheckedPos;this.setState({$pos:t})}},t.prototype.componentWillUnmount=function(){this.$isMounted=!1},t.prototype.$onDragStart=function(e){this.$inputRef.focus(),this.setState({$startX:e,$hasOutline:!0,$dragStartingTime:Date.now()})},t.prototype.$onDrag=function(e){var t=this.state,n=t.$startX,r=t.$isDragging,o=t.$pos,i=(this.props.checked?this.$checkedPos:this.$uncheckedPos)+e-n;r||e===n||this.setState({$isDragging:!0});var a=Math.min(this.$checkedPos,Math.max(this.$uncheckedPos,i));a!==o&&this.setState({$pos:a})},t.prototype.$onDragStop=function(e){var t=this.state,n=t.$pos,r=t.$isDragging,o=t.$dragStartingTime,i=this.props.checked,a=(this.$checkedPos+this.$uncheckedPos)/2,s=this.props.checked?this.$checkedPos:this.$uncheckedPos;this.setState({$pos:s});var l=Date.now()-o;(!r||l<250||i&&n<=a||!i&&n>=a)&&this.$onChange(e),this.$isMounted&&this.setState({$isDragging:!1,$hasOutline:!1}),this.$lastDragAt=Date.now()},t.prototype.$onMouseDown=function(e){e.preventDefault(),"number"==typeof e.button&&0!==e.button||(this.$onDragStart(e.clientX),window.addEventListener("mousemove",this.$onMouseMove),window.addEventListener("mouseup",this.$onMouseUp))},t.prototype.$onMouseMove=function(e){e.preventDefault(),this.$onDrag(e.clientX)},t.prototype.$onMouseUp=function(e){this.$onDragStop(e),window.removeEventListener("mousemove",this.$onMouseMove),window.removeEventListener("mouseup",this.$onMouseUp)},t.prototype.$onTouchStart=function(e){this.$checkedStateFromDragging=null,this.$onDragStart(e.touches[0].clientX)},t.prototype.$onTouchMove=function(e){this.$onDrag(e.touches[0].clientX)},t.prototype.$onTouchEnd=function(e){e.preventDefault(),this.$onDragStop(e)},t.prototype.$onInputChange=function(e){Date.now()-this.$lastDragAt>50&&(this.$onChange(e),Date.now()-this.$lastKeyUpAt>50&&this.$isMounted&&this.setState({$hasOutline:!1}))},t.prototype.$onKeyUp=function(){this.$lastKeyUpAt=Date.now()},t.prototype.$setHasOutline=function(){this.setState({$hasOutline:!0})},t.prototype.$unsetHasOutline=function(){this.setState({$hasOutline:!1})},t.prototype.$getInputRef=function(e){this.$inputRef=e},t.prototype.$onClick=function(e){e.preventDefault(),this.$inputRef.focus(),this.$onChange(e),this.$isMounted&&this.setState({$hasOutline:!1})},t.prototype.$onChange=function(e){var t=this.props,n=t.checked;(0,t.onChange)(!n,e,t.id)},t.prototype.render=function(){var e=this.props,t=e.checked,r=e.disabled,i=e.className,a=e.offColor,s=e.onColor,u=e.offHandleColor,c=e.onHandleColor,d=e.checkedIcon,p=e.uncheckedIcon,h=e.checkedHandleIcon,f=e.uncheckedHandleIcon,m=e.boxShadow,g=e.activeBoxShadow,v=e.height,y=e.width,b=e.borderRadius;e.handleDiameter;var x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}(e,["checked","disabled","className","offColor","onColor","offHandleColor","onHandleColor","checkedIcon","uncheckedIcon","checkedHandleIcon","uncheckedHandleIcon","boxShadow","activeBoxShadow","height","width","borderRadius","handleDiameter"]),k=this.state,w=k.$pos,C=k.$isDragging,E=k.$hasOutline,S={position:"relative",display:"inline-block",textAlign:"left",opacity:r?.5:1,direction:"ltr",borderRadius:v/2,WebkitTransition:"opacity 0.25s",MozTransition:"opacity 0.25s",transition:"opacity 0.25s",touchAction:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},_={height:v,width:y,margin:Math.max(0,(this.$handleDiameter-v)/2),position:"relative",background:l(w,this.$checkedPos,this.$uncheckedPos,a,s),borderRadius:"number"==typeof b?b:v/2,cursor:r?"default":"pointer",WebkitTransition:C?null:"background 0.25s",MozTransition:C?null:"background 0.25s",transition:C?null:"background 0.25s"},I={height:v,width:Math.min(1.5*v,y-(this.$handleDiameter+v)/2+1),position:"relative",opacity:(w-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos),pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},M={height:v,width:Math.min(1.5*v,y-(this.$handleDiameter+v)/2+1),position:"absolute",opacity:1-(w-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos),right:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},L={height:this.$handleDiameter,width:this.$handleDiameter,background:l(w,this.$checkedPos,this.$uncheckedPos,u,c),display:"inline-block",cursor:r?"default":"pointer",borderRadius:"number"==typeof b?b-1:"50%",position:"absolute",transform:"translateX("+w+"px)",top:Math.max(0,(v-this.$handleDiameter)/2),outline:0,boxShadow:E?g:m,border:0,WebkitTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",MozTransition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s",transition:C?null:"background-color 0.25s, transform 0.25s, box-shadow 0.15s"},T={height:this.$handleDiameter,width:this.$handleDiameter,opacity:Math.max(2*(1-(w-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"},D={height:this.$handleDiameter,width:this.$handleDiameter,opacity:Math.max(2*((w-this.$uncheckedPos)/(this.$checkedPos-this.$uncheckedPos)-.5),0),position:"absolute",left:0,top:0,pointerEvents:"none",WebkitTransition:C?null:"opacity 0.25s",MozTransition:C?null:"opacity 0.25s",transition:C?null:"opacity 0.25s"};return n.createElement("div",{className:i,style:S},n.createElement("div",{className:"react-switch-bg",style:_,onClick:r?null:this.$onClick,onMouseDown:function(e){return e.preventDefault()}},d&&n.createElement("div",{style:I},d),p&&n.createElement("div",{style:M},p)),n.createElement("div",{className:"react-switch-handle",style:L,onClick:function(e){return e.preventDefault()},onMouseDown:r?null:this.$onMouseDown,onTouchStart:r?null:this.$onTouchStart,onTouchMove:r?null:this.$onTouchMove,onTouchEnd:r?null:this.$onTouchEnd,onTouchCancel:r?null:this.$unsetHasOutline},f&&n.createElement("div",{style:T},f),h&&n.createElement("div",{style:D},h)),n.createElement("input",o({},{type:"checkbox",role:"switch","aria-checked":t,checked:t,disabled:r,style:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",width:1}},x,{ref:this.$getInputRef,onFocus:this.$setHasOutline,onBlur:this.$unsetHasOutline,onKeyUp:this.$onKeyUp,onChange:this.$onInputChange})))},t}(n.Component);c.propTypes={checked:r.bool.isRequired,onChange:r.func.isRequired,disabled:r.bool,offColor:u,onColor:u,offHandleColor:u,onHandleColor:u,handleDiameter:r.number,uncheckedIcon:r.oneOfType([r.bool,r.element]),checkedIcon:r.oneOfType([r.bool,r.element]),boxShadow:r.string,borderRadius:r.number,activeBoxShadow:r.string,uncheckedHandleIcon:r.element,checkedHandleIcon:r.element,height:r.number,width:r.number,id:r.string,className:r.string},c.defaultProps={disabled:!1,offColor:"#888",onColor:"#080",offHandleColor:"#fff",onHandleColor:"#fff",uncheckedIcon:i,checkedIcon:a,boxShadow:null,activeBoxShadow:"0 0 2px 3px #3bf",height:28,width:56},t.default=c}(jv)),jv);var $v=Bt(Vv.exports);const Wv=t.div.withConfig({displayName:"Wrapper",componentId:"sc-154eq1m-0"})(["display:flex;flex-direction:row;gap:",";align-items:center;justify-content:flex-start;input{position:relative;appearance:initial;outline:none;box-shadow:none;transform:scale(0.5);&:focus-visible{position:absolute;top:6.5px;left:10px;z-index:-1;width:0;height:0;padding:0;margin:-1px;overflow:initial !important;clip:auto !important;&::before{position:absolute;display:block;width:38px;height:21.5px;content:'';border:none;border-radius:",";outline:none;outline-width:3px;outline-style:solid;outline-color:",";outline-offset:3px;transform:scale(2);}}}.react-switch-bg{border:1px solid ",";}.react-switch-handle{border:1px solid ","!important;box-shadow:",";}",";",";"],(({theme:e})=>e.spacing.xs),(({theme:e})=>e.borderRadius.md),(({theme:e})=>e.colors.border.brand.bold.light),(({theme:e})=>e.colors.border.neutral.subtle.light),(({theme:e})=>e.colors.border.neutral.subtle.light),(({theme:e})=>e.shadow.border.sm),(({$checked:e})=>!0===e&&t.css([".react-switch-bg{border:1px solid ",";}.react-switch-handle{border:1px solid ","!important;}&:hover{.react-switch{.react-switch-bg{background-color:","!important;}}}"],(({theme:e})=>e.colors.border.brand.bold.light),(({theme:e})=>e.colors.bg.neutral.white.light),(({theme:e})=>e.colors.bg.brand.bold.hover.light))),(({$disabled:e})=>!0===e&&t.css([".react-switch-bg{border:1px solid ",";}.react-switch-handle{border:1px solid ","!important;}"],(({theme:e})=>e.colors.border.neutral.subtlest.light),(({theme:e})=>e.colors.border.neutral.subtlest.light)))),Hv=t.label.withConfig({displayName:"LabelStyled",componentId:"sc-154eq1m-1"})(["cursor:pointer;"]);var zv,Yv,Kv,Uv;exports.TagType=void 0,(zv=exports.TagType||(exports.TagType={})).alert="alert",zv.info="info",zv.invert="invert",zv.neutralDefault="neutralDefault",zv.neutralSubtle="neutralSubtle",zv.success="success",zv.warning="warning",exports.TagSize=void 0,(Yv=exports.TagSize||(exports.TagSize={})).md="md",Yv.sm="sm",exports.TagTextTransform=void 0,(Kv=exports.TagTextTransform||(exports.TagTextTransform={})).none="none",Kv.uppercase="uppercase",exports.TagIconPosition=void 0,(Uv=exports.TagIconPosition||(exports.TagIconPosition={})).left="left",Uv.right="right",Uv.top="top";const qv=t.div.withConfig({displayName:"TagStyled",componentId:"sc-qj7dwt-0"})(["display:flex;align-items:center;justify-content:center;width:fit-content;padding:"," ",";border-style:solid;border-width:1px;border-radius:",";"," "," ",""],(({theme:e})=>e.spacing.xxs),(({theme:e})=>e.spacing.sm),(({theme:e})=>e.borderRadius.xs),(({$chooseColor:e,$type:n})=>{switch(n){case exports.TagType.info:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.bg.brand.default)),(({theme:t})=>e(t.colors.border.brand.subtlest)));case exports.TagType.warning:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.bg.warning.default)),(({theme:e})=>e.palette.yellow400));case exports.TagType.success:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.bg.success.default)),(({theme:e})=>e.palette.green300));case exports.TagType.neutralSubtle:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.surface.default)),(({theme:e})=>e.palette.grey200));case exports.TagType.invert:return t.css(["background-color:rgb(255 255 255 / 20%);border-color:rgb(255 255 255 / 30%);"]);case exports.TagType.alert:return t.css(["background-color:",";border-color:",";"],(({theme:t})=>e(t.colors.bg.accent)),(({theme:t})=>e(t.colors.border.accent)));case exports.TagType.neutralDefault:return t.css(["padding:",";background-color:transparent;border-color:",";"],(({theme:e})=>e.spacing.md),(({theme:t})=>e(t.colors.border.neutral.subtlest)));default:throw new Error("unexpected enum values TagType in tag.styles.ts")}}),(({$textTransform:e})=>{switch(e){case exports.TagTextTransform.none:return t.css(["text-transform:none;"]);case exports.TagTextTransform.uppercase:return t.css(["text-transform:uppercase;"]);default:throw new Error("unexpected enum values TagTextTransform in tag.styles.ts")}}),(({$iconPosition:e})=>{switch(e){case exports.TagIconPosition.right:return t.css(["flex-direction:row;"]);case exports.TagIconPosition.left:return t.css(["flex-direction:row-reverse;"]);case exports.TagIconPosition.top:return t.css(["flex-direction:column-reverse;align-items:flex-start;"]);default:throw new Error("unexpected enum values TagIconPosition in tag.styles.ts")}})),Zv=t.div.withConfig({displayName:"TagIconWrapper",componentId:"sc-qj7dwt-1"})(["display:flex;align-items:center;justify-content:center;",""],(({$iconPosition:e})=>{switch(e){case exports.TagIconPosition.right:return t.css(["margin:0 0 0 ",";"],(({theme:e})=>e.spacing.xxs));case exports.TagIconPosition.left:return t.css(["margin:0 "," 0 0;"],(({theme:e})=>e.spacing.xxs));case exports.TagIconPosition.top:return t.css(["margin:0 0 "," 0;"],(({theme:e})=>e.spacing.md));default:throw new Error("unexpected enum values TagIconPosition in tag.styles.ts")}}));var Gv;exports.PaperShadow=void 0,(Gv=exports.PaperShadow||(exports.PaperShadow={})).lg="lg",Gv.md="md",Gv.sm="sm";const Qv=t.div.withConfig({displayName:"PaperStyled",componentId:"sc-t6pt3x-0"})(["padding:",";overflow:",";background-color:",";border-radius:",";box-shadow:",";"],(({$mediaType:e,theme:t})=>{switch(e){case exports.MediaType.desktop:return t.spacing.xl;case exports.MediaType.mobile:return t.spacing.lg;default:throw new Error("unexpected value of enum MediaType in paper.style.ts PaperStyled padding")}}),(({$overflow:e})=>S(e)),(({$chooseColor:e,theme:t})=>e(t.colors.surface.risen)),(({theme:e})=>e.borderRadius.md),(({$shadow:e,theme:t})=>{switch(e){case exports.PaperShadow.sm:return t.shadow.box.sm;case exports.PaperShadow.md:return t.shadow.box.md;case exports.PaperShadow.lg:return t.shadow.box.lg;default:throw new Error("unexpected value of enum PaperShadow paper.style.ts PaperStyled box-shadow")}})),Xv=t=>{const{children:n,className:r,colorScheme:o,id:i,mediaType:a,overflow:s=exports.Overflow.auto,shadow:l=exports.PaperShadow.md,suppressHydrationWarning:u=!1,tabIndex:c}=t,d=g(t,["children","className","colorScheme","id","mediaType","overflow","shadow","suppressHydrationWarning","tabIndex"]),{chooseColor:p,mediaType:h}=z(t);return e.createElement(Qv,Object.assign({$chooseColor:p,$mediaType:h,$overflow:s,$shadow:l,className:r,id:i,suppressHydrationWarning:u,tabIndex:c},d),n)},Jv=t(Xv).withConfig({displayName:"PaperStyled",componentId:"sc-1d6gzno-0"})(["position:relative;"]),ey=t.div.withConfig({displayName:"ProgressStepperWrapper",componentId:"sc-1d6gzno-1"})(["position:absolute;top:0;left:0;width:100%;"]),ty=t.div.withConfig({displayName:"ProgressStepperStyled",componentId:"sc-111a4y5-0"})(["width:100%;height:","px;"],4),ny=t.div.withConfig({displayName:"Progress",componentId:"sc-111a4y5-1"})(["width:","%;height:","px;background-color:",";border-top-right-radius:",";border-bottom-right-radius:",";"],(({$percent:e})=>e),4,(({$chooseColor:e,theme:t})=>e(t.colors.fg.brand.default)),(({theme:e})=>e.borderRadius.xs),(({theme:e})=>e.borderRadius.xs)),ry=t=>{const{activeStepIndex:n,numberOfSteps:r}=t,{chooseColor:o}=z(t),i=(n+1)/r*100;return e.createElement(ty,null,e.createElement(ny,{$chooseColor:o,$percent:i}))};var oy=function e(t,n){var r=function(e){var n,r;return null!==(n=t(e.children,null!==(r=e.suggestions)&&void 0!==r?r:[],e))&&void 0!==n?n:null};return r.displayName=null==n?void 0:n.displayName,r.format=function(e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t(e,function(e){return e.includes("primitive")||!e.includes("comparable")?e:["primitive"].concat(pi(e))}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),n)},r.formatAsPrimitive=function(e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t(e,function(e){return e.includes("primitive")?e:["primitive"].concat(pi(e))}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),n)},r.wrap=function(t,o){var i=e((function(e,n,o){return t((function(e,t,i){return r.format(e,null!=t?t:n,null!=i?i:o)}),e,n,o)}),null!=o?o:n);return i.innerFormatter=r,i},r};const iy=oy((e=>e));function ay(e,t){return ay=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ay(e,t)}var sy,ly={exports:{}},uy={};var cy,dy={};
45
45
  /**
46
46
  * @license React
47
47
  * react-is.development.js