skillgrid 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/components/Button/Button.d.ts +1 -1
  2. package/dist/components/Button/Button.type.d.ts +121 -43
  3. package/dist/components/Button/assets/ArrowIcon.d.ts +5 -0
  4. package/dist/components/Button/assets/ArrowRightIcon.d.ts +5 -0
  5. package/dist/components/Button/assets/CrossIcon.d.ts +5 -0
  6. package/dist/components/Button/assets/DownloadIcon.d.ts +5 -0
  7. package/dist/components/Button/assets/FollowIcon.d.ts +5 -0
  8. package/dist/components/Button/assets/HeartIcon.d.ts +5 -0
  9. package/dist/components/Button/assets/LocationIcon.d.ts +5 -0
  10. package/dist/components/Button/assets/MapMarkerIcon.d.ts +5 -0
  11. package/dist/components/Button/assets/index.d.ts +9 -0
  12. package/dist/components/Button/assets/types.d.ts +7 -0
  13. package/dist/components/Button/lib/get-safe-props.d.ts +8 -0
  14. package/dist/components/Button/lib/get-safe-props.test.d.ts +1 -0
  15. package/dist/components/Button/lib/get-typography.d.ts +11 -0
  16. package/dist/components/Button/lib/get-typography.test.d.ts +1 -0
  17. package/dist/components/Button/preview/index.d.ts +8 -0
  18. package/dist/components/Radio/Radio.type.d.ts +14 -2
  19. package/dist/components/Radio/RadioGroup/RadioGroup.d.ts +2 -1
  20. package/dist/components/Radio/RadioGroup/RadioGroup.type.d.ts +1 -1
  21. package/dist/components/Radio/index.d.ts +4 -2
  22. package/dist/components/Tabs/ScrollWrapper.d.ts +13 -0
  23. package/dist/components/Tabs/Tabs.d.ts +27 -0
  24. package/dist/components/Tabs/Tabs.type.d.ts +199 -0
  25. package/dist/components/Tabs/index.d.ts +2 -0
  26. package/dist/hooks/index.d.ts +1 -0
  27. package/dist/hooks/useIsMobile.d.ts +1 -0
  28. package/dist/hooks/useViewPortSize.d.ts +4 -0
  29. package/dist/hooks/useWindowEvent.d.ts +1 -0
  30. package/dist/index.cjs.js +11 -11
  31. package/dist/index.css +1 -1
  32. package/dist/index.d.ts +2 -0
  33. package/dist/index.es.js +1905 -1729
  34. package/dist/types/common.d.ts +1 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/package.json +2 -1
@@ -0,0 +1 @@
1
+ export declare function useIsMobile(breakpoint?: number): boolean;
@@ -0,0 +1,4 @@
1
+ export declare function useViewportSize(): {
2
+ width: number;
3
+ height: number;
4
+ };
@@ -0,0 +1 @@
1
+ export declare function useWindowEvent<K extends string>(type: K, listener: K extends keyof WindowEventMap ? (this: Window, ev: WindowEventMap[K]) => void : (this: Window, ev: CustomEvent) => void, options?: boolean | AddEventListenerOptions): void;
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const v=require("react"),q=require("clsx");function Qt(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const xt=Qt(v);function ea(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ne={exports:{}},Re={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const y=require("react"),z=require("clsx");function or(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return a.default=e,Object.freeze(a)}const kt=or(y);function ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var De={exports:{}},$e={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var dt;function ta(){if(dt)return Re;dt=1;var t=v,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(p,d,f){var _,h={},b=null,y=null;f!==void 0&&(b=""+f),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(y=d.ref);for(_ in d)s.call(d,_)&&!n.hasOwnProperty(_)&&(h[_]=d[_]);if(p&&p.defaultProps)for(_ in d=p.defaultProps,d)h[_]===void 0&&(h[_]=d[_]);return{$$typeof:r,type:p,key:b,ref:y,props:h,_owner:l.current}}return Re.Fragment=a,Re.jsx=c,Re.jsxs=c,Re}var je={};/**
9
+ */var ft;function lr(){if(ft)return $e;ft=1;var e=y,a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(u,d,p){var f,b={},m=null,h=null;p!==void 0&&(m=""+p),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(h=d.ref);for(f in d)s.call(d,f)&&!n.hasOwnProperty(f)&&(b[f]=d[f]);if(u&&u.defaultProps)for(f in d=u.defaultProps,d)b[f]===void 0&&(b[f]=d[f]);return{$$typeof:a,type:u,key:m,ref:h,props:b,_owner:i.current}}return $e.Fragment=r,$e.jsx=c,$e.jsxs=c,$e}var Me={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,21 +14,21 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ut;function aa(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&function(){var t=v,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),C=Symbol.iterator,$="@@iterator";function E(e){if(e===null||typeof e!="object")return null;var i=C&&e[C]||e[$];return typeof i=="function"?i:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var i=arguments.length,u=new Array(i>1?i-1:0),x=1;x<i;x++)u[x-1]=arguments[x];R("error",e,u)}}function R(e,i,u){{var x=w.ReactDebugCurrentFrame,I=x.getStackAddendum();I!==""&&(i+="%s",u=u.concat([I]));var k=u.map(function(L){return String(L)});k.unshift("Warning: "+i),Function.prototype.apply.call(console[e],console,k)}}var T=!1,O=!1,A=!1,N=!1,D=!1,P;P=Symbol.for("react.module.reference");function G(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===n||D||e===l||e===f||e===_||N||e===y||T||O||A||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===c||e.$$typeof===p||e.$$typeof===d||e.$$typeof===P||e.getModuleId!==void 0))}function W(e,i,u){var x=e.displayName;if(x)return x;var I=i.displayName||i.name||"";return I!==""?u+"("+I+")":u}function U(e){return e.displayName||"Context"}function m(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case s:return"Fragment";case a:return"Portal";case n:return"Profiler";case l:return"StrictMode";case f:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var i=e;return U(i)+".Consumer";case c:var u=e;return U(u._context)+".Provider";case d:return W(e,e.render,"ForwardRef");case h:var x=e.displayName||null;return x!==null?x:m(e.type)||"Memo";case b:{var I=e,k=I._payload,L=I._init;try{return m(L(k))}catch{return null}}}return null}var j=Object.assign,B=0,Z,H,ee,ae,K,re,se;function de(){}de.__reactDisabledLog=!0;function ve(){{if(B===0){Z=console.log,H=console.info,ee=console.warn,ae=console.error,K=console.group,re=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}B++}}function le(){{if(B--,B===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:Z}),info:j({},e,{value:H}),warn:j({},e,{value:ee}),error:j({},e,{value:ae}),group:j({},e,{value:K}),groupCollapsed:j({},e,{value:re}),groupEnd:j({},e,{value:se})})}B<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=w.ReactCurrentDispatcher,ue;function ie(e,i,u){{if(ue===void 0)try{throw Error()}catch(I){var x=I.stack.trim().match(/\n( *(at )?)/);ue=x&&x[1]||""}return`
18
- `+ue+e}}var me=!1,pe;{var xe=typeof WeakMap=="function"?WeakMap:Map;pe=new xe}function Te(e,i){if(!e||me)return"";{var u=pe.get(e);if(u!==void 0)return u}var x;me=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=ye.current,ye.current=null,ve();try{if(i){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(te){x=te}Reflect.construct(e,[],L)}else{try{L.call()}catch(te){x=te}e.call(L.prototype)}}else{try{throw Error()}catch(te){x=te}e()}}catch(te){if(te&&x&&typeof te.stack=="string"){for(var S=te.stack.split(`
19
- `),X=x.stack.split(`
20
- `),F=S.length-1,V=X.length-1;F>=1&&V>=0&&S[F]!==X[V];)V--;for(;F>=1&&V>=0;F--,V--)if(S[F]!==X[V]){if(F!==1||V!==1)do if(F--,V--,V<0||S[F]!==X[V]){var ne=`
21
- `+S[F].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),typeof e=="function"&&pe.set(e,ne),ne}while(F>=1&&V>=0);break}}}finally{me=!1,ye.current=k,le(),Error.prepareStackTrace=I}var Ee=e?e.displayName||e.name:"",Ce=Ee?ie(Ee):"";return typeof e=="function"&&pe.set(e,Ce),Ce}function Pe(e,i,u){return Te(e,!1)}function Be(e){var i=e.prototype;return!!(i&&i.isReactComponent)}function Y(e,i,u){if(e==null)return"";if(typeof e=="function")return Te(e,Be(e));if(typeof e=="string")return ie(e);switch(e){case f:return ie("Suspense");case _:return ie("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Pe(e.render);case h:return Y(e.type,i,u);case b:{var x=e,I=x._payload,k=x._init;try{return Y(k(I),i,u)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,ce={},Ke=w.ReactDebugCurrentFrame;function Ae(e){if(e){var i=e._owner,u=Y(e.type,e._source,i?i.type:null);Ke.setExtraStackFrame(u)}else Ke.setExtraStackFrame(null)}function It(e,i,u,x,I){{var k=Function.call.bind(J);for(var L in e)if(k(e,L)){var S=void 0;try{if(typeof e[L]!="function"){var X=Error((x||"React class")+": "+u+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw X.name="Invariant Violation",X}S=e[L](i,L,x,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(F){S=F}S&&!(S instanceof Error)&&(Ae(I),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",u,L,typeof S),Ae(null)),S instanceof Error&&!(S.message in ce)&&(ce[S.message]=!0,Ae(I),g("Failed %s type: %s",u,S.message),Ae(null))}}}var kt=Array.isArray;function Fe(e){return kt(e)}function Tt(e){{var i=typeof Symbol=="function"&&Symbol.toStringTag,u=i&&e[Symbol.toStringTag]||e.constructor.name||"Object";return u}}function At(e){try{return Xe(e),!1}catch{return!0}}function Xe(e){return""+e}function Qe(e){if(At(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Tt(e)),Xe(e)}var et=w.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},tt,at;function Dt(e){if(J.call(e,"ref")){var i=Object.getOwnPropertyDescriptor(e,"ref").get;if(i&&i.isReactWarning)return!1}return e.ref!==void 0}function Ot(e){if(J.call(e,"key")){var i=Object.getOwnPropertyDescriptor(e,"key").get;if(i&&i.isReactWarning)return!1}return e.key!==void 0}function Ut(e,i){typeof e.ref=="string"&&et.current}function Pt(e,i){{var u=function(){tt||(tt=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}}function Bt(e,i){{var u=function(){at||(at=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};u.isReactWarning=!0,Object.defineProperty(e,"ref",{get:u,configurable:!0})}}var Ft=function(e,i,u,x,I,k,L){var S={$$typeof:r,type:e,key:i,ref:u,props:L,_owner:k};return S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(S,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(S,"_source",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S};function zt(e,i,u,x,I){{var k,L={},S=null,X=null;u!==void 0&&(Qe(u),S=""+u),Ot(i)&&(Qe(i.key),S=""+i.key),Dt(i)&&(X=i.ref,Ut(i,I));for(k in i)J.call(i,k)&&!Nt.hasOwnProperty(k)&&(L[k]=i[k]);if(e&&e.defaultProps){var F=e.defaultProps;for(k in F)L[k]===void 0&&(L[k]=F[k])}if(S||X){var V=typeof e=="function"?e.displayName||e.name||"Unknown":e;S&&Pt(L,V),X&&Bt(L,V)}return Ft(e,S,X,I,x,et.current,L)}}var ze=w.ReactCurrentOwner,rt=w.ReactDebugCurrentFrame;function Se(e){if(e){var i=e._owner,u=Y(e.type,e._source,i?i.type:null);rt.setExtraStackFrame(u)}else rt.setExtraStackFrame(null)}var We;We=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function st(){{if(ze.current){var e=m(ze.current.type);if(e)return`
17
+ */var gt;function cr(){return gt||(gt=1,process.env.NODE_ENV!=="production"&&function(){var e=y,a=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=Symbol.iterator,E="@@iterator";function S(t){if(t===null||typeof t!="object")return null;var l=v&&t[v]||t[E];return typeof l=="function"?l:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(t){{for(var l=arguments.length,_=new Array(l>1?l-1:0),w=1;w<l;w++)_[w-1]=arguments[w];M("error",t,_)}}function M(t,l,_){{var w=C.ReactDebugCurrentFrame,A=w.getStackAddendum();A!==""&&(l+="%s",_=_.concat([A]));var q=_.map(function(j){return String(j)});q.unshift("Warning: "+l),Function.prototype.apply.call(console[t],console,q)}}var P=!1,N=!1,$=!1,I=!1,D=!1,W;W=Symbol.for("react.module.reference");function F(t){return!!(typeof t=="string"||typeof t=="function"||t===s||t===n||D||t===i||t===p||t===f||I||t===h||P||N||$||typeof t=="object"&&t!==null&&(t.$$typeof===m||t.$$typeof===b||t.$$typeof===c||t.$$typeof===u||t.$$typeof===d||t.$$typeof===W||t.getModuleId!==void 0))}function B(t,l,_){var w=t.displayName;if(w)return w;var A=l.displayName||l.name||"";return A!==""?_+"("+A+")":_}function T(t){return t.displayName||"Context"}function x(t){if(t==null)return null;if(typeof t.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case s:return"Fragment";case r:return"Portal";case n:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case f:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case u:var l=t;return T(l)+".Consumer";case c:var _=t;return T(_._context)+".Provider";case d:return B(t,t.render,"ForwardRef");case b:var w=t.displayName||null;return w!==null?w:x(t.type)||"Memo";case m:{var A=t,q=A._payload,j=A._init;try{return x(j(q))}catch{return null}}}return null}var k=Object.assign,O=0,U,G,X,ae,Y,ne,Q;function ge(){}ge.__reactDisabledLog=!0;function Re(){{if(O===0){U=console.log,G=console.info,X=console.warn,ae=console.error,Y=console.group,ne=console.groupCollapsed,Q=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}O++}}function de(){{if(O--,O===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},t,{value:U}),info:k({},t,{value:G}),warn:k({},t,{value:X}),error:k({},t,{value:ae}),group:k({},t,{value:Y}),groupCollapsed:k({},t,{value:ne}),groupEnd:k({},t,{value:Q})})}O<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=C.ReactCurrentDispatcher,ve;function ye(t,l,_){{if(ve===void 0)try{throw Error()}catch(A){var w=A.stack.trim().match(/\n( *(at )?)/);ve=w&&w[1]||""}return`
18
+ `+ve+t}}var Te=!1,Ce;{var Ue=typeof WeakMap=="function"?WeakMap:Map;Ce=new Ue}function Ae(t,l){if(!t||Te)return"";{var _=Ce.get(t);if(_!==void 0)return _}var w;Te=!0;var A=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var q;q=xe.current,xe.current=null,Re();try{if(l){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(re){w=re}Reflect.construct(t,[],j)}else{try{j.call()}catch(re){w=re}t.call(j.prototype)}}else{try{throw Error()}catch(re){w=re}t()}}catch(re){if(re&&w&&typeof re.stack=="string"){for(var L=re.stack.split(`
19
+ `),ee=w.stack.split(`
20
+ `),V=L.length-1,Z=ee.length-1;V>=1&&Z>=0&&L[V]!==ee[Z];)Z--;for(;V>=1&&Z>=0;V--,Z--)if(L[V]!==ee[Z]){if(V!==1||Z!==1)do if(V--,Z--,Z<0||L[V]!==ee[Z]){var oe=`
21
+ `+L[V].replace(" at new "," at ");return t.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",t.displayName)),typeof t=="function"&&Ce.set(t,oe),oe}while(V>=1&&Z>=0);break}}}finally{Te=!1,xe.current=q,de(),Error.prepareStackTrace=A}var Se=t?t.displayName||t.name:"",be=Se?ye(Se):"";return typeof t=="function"&&Ce.set(t,be),be}function Fe(t,l,_){return Ae(t,!1)}function Be(t){var l=t.prototype;return!!(l&&l.isReactComponent)}function K(t,l,_){if(t==null)return"";if(typeof t=="function")return Ae(t,Be(t));if(typeof t=="string")return ye(t);switch(t){case p:return ye("Suspense");case f:return ye("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case d:return Fe(t.render);case b:return K(t.type,l,_);case m:{var w=t,A=w._payload,q=w._init;try{return K(q(A),l,_)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,le={},tt=C.ReactDebugCurrentFrame;function Ne(t){if(t){var l=t._owner,_=K(t.type,t._source,l?l.type:null);tt.setExtraStackFrame(_)}else tt.setExtraStackFrame(null)}function qt(t,l,_,w,A){{var q=Function.call.bind(J);for(var j in t)if(q(t,j)){var L=void 0;try{if(typeof t[j]!="function"){var ee=Error((w||"React class")+": "+_+" type `"+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[j]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ee.name="Invariant Violation",ee}L=t[j](l,j,w,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V){L=V}L&&!(L instanceof Error)&&(Ne(A),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",w||"React class",_,j,typeof L),Ne(null)),L instanceof Error&&!(L.message in le)&&(le[L.message]=!0,Ne(A),g("Failed %s type: %s",_,L.message),Ne(null))}}}var Pt=Array.isArray;function ze(t){return Pt(t)}function Ut(t){{var l=typeof Symbol=="function"&&Symbol.toStringTag,_=l&&t[Symbol.toStringTag]||t.constructor.name||"Object";return _}}function Ft(t){try{return rt(t),!1}catch{return!0}}function rt(t){return""+t}function at(t){if(Ft(t))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ut(t)),rt(t)}var st=C.ReactCurrentOwner,Bt={key:!0,ref:!0,__self:!0,__source:!0},nt,ot;function zt(t){if(J.call(t,"ref")){var l=Object.getOwnPropertyDescriptor(t,"ref").get;if(l&&l.isReactWarning)return!1}return t.ref!==void 0}function Wt(t){if(J.call(t,"key")){var l=Object.getOwnPropertyDescriptor(t,"key").get;if(l&&l.isReactWarning)return!1}return t.key!==void 0}function Ht(t,l){typeof t.ref=="string"&&st.current}function Gt(t,l){{var _=function(){nt||(nt=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};_.isReactWarning=!0,Object.defineProperty(t,"key",{get:_,configurable:!0})}}function Vt(t,l){{var _=function(){ot||(ot=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};_.isReactWarning=!0,Object.defineProperty(t,"ref",{get:_,configurable:!0})}}var Zt=function(t,l,_,w,A,q,j){var L={$$typeof:a,type:t,key:l,ref:_,props:j,_owner:q};return L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(L,"_self",{configurable:!1,enumerable:!1,writable:!1,value:w}),Object.defineProperty(L,"_source",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L};function Yt(t,l,_,w,A){{var q,j={},L=null,ee=null;_!==void 0&&(at(_),L=""+_),Wt(l)&&(at(l.key),L=""+l.key),zt(l)&&(ee=l.ref,Ht(l,A));for(q in l)J.call(l,q)&&!Bt.hasOwnProperty(q)&&(j[q]=l[q]);if(t&&t.defaultProps){var V=t.defaultProps;for(q in V)j[q]===void 0&&(j[q]=V[q])}if(L||ee){var Z=typeof t=="function"?t.displayName||t.name||"Unknown":t;L&&Gt(j,Z),ee&&Vt(j,Z)}return Zt(t,L,ee,A,w,st.current,j)}}var We=C.ReactCurrentOwner,it=C.ReactDebugCurrentFrame;function we(t){if(t){var l=t._owner,_=K(t.type,t._source,l?l.type:null);it.setExtraStackFrame(_)}else it.setExtraStackFrame(null)}var He;He=!1;function Ge(t){return typeof t=="object"&&t!==null&&t.$$typeof===a}function lt(){{if(We.current){var t=x(We.current.type);if(t)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function Wt(e){return""}var nt={};function Vt(e){{var i=st();if(!i){var u=typeof e=="string"?e:e.displayName||e.name;u&&(i=`
23
+ Check the render method of \``+t+"`."}return""}}function Kt(t){return""}var ct={};function Jt(t){{var l=lt();if(!l){var _=typeof t=="string"?t:t.displayName||t.name;_&&(l=`
24
24
 
25
- Check the top-level render call using <`+u+">.")}return i}}function ot(e,i){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var u=Vt(i);if(nt[u])return;nt[u]=!0;var x="";e&&e._owner&&e._owner!==ze.current&&(x=" It was passed a child from "+m(e._owner.type)+"."),Se(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,x),Se(null)}}function lt(e,i){{if(typeof e!="object")return;if(Fe(e))for(var u=0;u<e.length;u++){var x=e[u];Ve(x)&&ot(x,i)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var I=E(e);if(typeof I=="function"&&I!==e.entries)for(var k=I.call(e),L;!(L=k.next()).done;)Ve(L.value)&&ot(L.value,i)}}}function qt(e){{var i=e.type;if(i==null||typeof i=="string")return;var u;if(typeof i=="function")u=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===d||i.$$typeof===h))u=i.propTypes;else return;if(u){var x=m(i);It(u,e.props,"prop",x,e)}else if(i.PropTypes!==void 0&&!We){We=!0;var I=m(i);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ht(e){{for(var i=Object.keys(e.props),u=0;u<i.length;u++){var x=i[u];if(x!=="children"&&x!=="key"){Se(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Se(null);break}}e.ref!==null&&(Se(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),Se(null))}}var it={};function ct(e,i,u,x,I,k){{var L=G(e);if(!L){var S="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var X=Wt();X?S+=X:S+=st();var F;e===null?F="null":Fe(e)?F="array":e!==void 0&&e.$$typeof===r?(F="<"+(m(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):F=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",F,S)}var V=zt(e,i,u,I,k);if(V==null)return V;if(L){var ne=i.children;if(ne!==void 0)if(x)if(Fe(ne)){for(var Ee=0;Ee<ne.length;Ee++)lt(ne[Ee],e);Object.freeze&&Object.freeze(ne)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else lt(ne,e)}if(J.call(i,"key")){var Ce=m(e),te=Object.keys(i).filter(function(Xt){return Xt!=="key"}),qe=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!it[Ce+qe]){var Kt=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+_+">.")}return l}}function dt(t,l){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var _=Jt(l);if(ct[_])return;ct[_]=!0;var w="";t&&t._owner&&t._owner!==We.current&&(w=" It was passed a child from "+x(t._owner.type)+"."),we(t),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,w),we(null)}}function ut(t,l){{if(typeof t!="object")return;if(ze(t))for(var _=0;_<t.length;_++){var w=t[_];Ge(w)&&dt(w,l)}else if(Ge(t))t._store&&(t._store.validated=!0);else if(t){var A=S(t);if(typeof A=="function"&&A!==t.entries)for(var q=A.call(t),j;!(j=q.next()).done;)Ge(j.value)&&dt(j.value,l)}}}function Xt(t){{var l=t.type;if(l==null||typeof l=="string")return;var _;if(typeof l=="function")_=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===d||l.$$typeof===b))_=l.propTypes;else return;if(_){var w=x(l);qt(_,t.props,"prop",w,t)}else if(l.PropTypes!==void 0&&!He){He=!0;var A=x(l);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",A||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qt(t){{for(var l=Object.keys(t.props),_=0;_<l.length;_++){var w=l[_];if(w!=="children"&&w!=="key"){we(t),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",w),we(null);break}}t.ref!==null&&(we(t),g("Invalid attribute `ref` supplied to `React.Fragment`."),we(null))}}var _t={};function pt(t,l,_,w,A,q){{var j=F(t);if(!j){var L="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(L+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ee=Kt();ee?L+=ee:L+=lt();var V;t===null?V="null":ze(t)?V="array":t!==void 0&&t.$$typeof===a?(V="<"+(x(t.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):V=typeof t,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",V,L)}var Z=Yt(t,l,_,A,q);if(Z==null)return Z;if(j){var oe=l.children;if(oe!==void 0)if(w)if(ze(oe)){for(var Se=0;Se<oe.length;Se++)ut(oe[Se],t);Object.freeze&&Object.freeze(oe)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ut(oe,t)}if(J.call(l,"key")){var be=x(t),re=Object.keys(l).filter(function(nr){return nr!=="key"}),Ve=re.length>0?"{key: someKey, "+re.join(": ..., ")+": ...}":"{key: someKey}";if(!_t[be+Ve]){var sr=re.length>0?"{"+re.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,qe,Ce,Kt,Ce),it[Ce+qe]=!0}}return e===s?Ht(V):qt(V),V}}function Gt(e,i,u){return ct(e,i,u,!0)}function Zt(e,i,u){return ct(e,i,u,!1)}var Yt=Zt,Jt=Gt;je.Fragment=s,je.jsx=Yt,je.jsxs=Jt}()),je}var pt;function ra(){return pt||(pt=1,process.env.NODE_ENV==="production"?Ne.exports=ta():Ne.exports=aa()),Ne.exports}var o=ra();const sa=t=>t.as==="a",na=t=>t.as===void 0||t.as==="button",oa="_button_1abee_213",la="_disabled_1abee_237",ia="_loading_1abee_237",ca="_neutral_1abee_259",da="_accent_1abee_263",ua="_positive_1abee_267",pa="_negative_1abee_271",_a="_contrast_1abee_275",fa="_special_1abee_279",ga="_primary_1abee_284",ha="_secondary_1abee_285",ba="_tertiary_1abee_286",ya="_label_1abee_321",ma="_rightGroup_1abee_333",va="_iconOnly_1abee_349",xa="_large_1abee_357",Ca="_medium_1abee_361",wa="_small_1abee_365",Sa="_spaceBetween_1abee_370",Ea="_stretched_1abee_384",La="_icon_1abee_349",Ma="_badge_1abee_705",$a="_badgeMedium_1abee_721",Ra="_circular_1abee_738",ja="_badgeSmall_1abee_743",Ia="_badgeExtraSmall_1abee_765",ka="_withSubcaption_1abee_784",Ta="_subcaption_1abee_797",Aa="_loader_1abee_804",Na="_spin_1abee_1",Da="_l_1abee_237",Oa="_m_1abee_361",Ua="_s_1abee_279",Pa="_xs_1abee_869",z={button:oa,disabled:la,loading:ia,neutral:ca,accent:da,positive:ua,negative:pa,contrast:_a,special:fa,primary:ga,secondary:ha,tertiary:ba,label:ya,rightGroup:ma,iconOnly:va,large:xa,medium:Ca,small:wa,spaceBetween:Sa,stretched:Ea,icon:La,badge:Ma,badgeMedium:$a,circular:Ra,badgeSmall:ja,badgeExtraSmall:Ia,withSubcaption:ka,subcaption:Ta,loader:Aa,spin:Na,l:Da,m:Oa,s:Ua,xs:Pa},_t=({isLoading:t,showBadge:r,badgeValue:a,badgeSize:s,icon:l,children:n,postfix:c,showSubcaption:p,subcaption:d,size:f})=>{if(t)return o.jsx("span",{className:z.loader,"data-testid":"button-loader","aria-hidden":"true"});const _=s==="extra-small",h=parseInt(String(a),10),b=!isNaN(h)&&h>=0&&h<=9;return o.jsxs(o.Fragment,{children:[r&&(a||_)&&o.jsx("span",{"data-testid":"button-badge",className:q.clsx(z.badge,z[`badge${_?"ExtraSmall":s==="medium"?"Medium":"Small"}`],{[z.circular]:b&&!_}),children:!_&&a}),p&&f!=="s"&&f!=="xs"?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:z.label,children:n}),o.jsx("span",{"data-testid":"button-subcaption",className:z.subcaption,children:d})]}):n?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:z.label,children:n}),o.jsxs("div",{"data-testid":"button-right-group",className:z.rightGroup,children:[l&&o.jsx("span",{"data-testid":"button-icon",className:z.icon,children:l}),c&&o.jsx("span",{"data-testid":"button-postfix",className:z.postfix,children:c})]})]}):o.jsx("span",{"data-testid":"button-icon",className:z.icon,children:l})]})},Ba=v.forwardRef((t,r)=>{const{mode:a="primary",size:s="m",buttonStyle:l="neutral",loading:n=!1,disabled:c=!1,showBadge:p=!1,badgeSize:d="small",badgeValue:f,showSubcaption:_=!1,subcaption:h,stretched:b=!1,spaceBetween:y=!1,icon:C,postfix:$,className:E,children:w}=t,g=c,R=n,T=!g&&!R,O=!!C&&!w,A=q.clsx(z.button,z[s],z[a],z[l],{[z.disabled]:g,[z.loading]:R,[z.stretched]:b,[z.spaceBetween]:y&&b,[z.withSubcaption]:_&&h&&s!=="s"&&s!=="xs",[z.iconOnly]:O},E),N={isLoading:R,showBadge:p,badgeValue:f,badgeSize:d,icon:C,children:w,postfix:$,showSubcaption:_,subcaption:h,size:s};if(sa(t)){const{href:D,onClick:P,mode:G,size:W,buttonStyle:U,loading:m,disabled:j,showBadge:B,badgeSize:Z,badgeValue:H,showSubcaption:ee,subcaption:ae,stretched:K,spaceBetween:re,icon:se,postfix:de,className:ve,tabIndex:le,children:ye,"data-testid":ue,style:ie,...me}=t,pe=xe=>{T&&P&&P(xe)};return o.jsx("a",{ref:r,className:A,href:T?D:void 0,tabIndex:t.tabIndex,onClick:pe,"data-testid":ue,"aria-disabled":g||R,style:ie,...me,children:o.jsx(_t,{...N})})}if(na(t)){const{type:D="button",onClick:P,mode:G,size:W,buttonStyle:U,loading:m,disabled:j,showBadge:B,badgeSize:Z,badgeValue:H,showSubcaption:ee,subcaption:ae,stretched:K,spaceBetween:re,icon:se,postfix:de,className:ve,tabIndex:le,children:ye,"data-testid":ue,style:ie,...me}=t,pe=xe=>{T&&P&&P(xe)};return o.jsx("button",{ref:r,type:D,className:A,disabled:g,tabIndex:t.tabIndex,onClick:pe,"data-testid":ue,"aria-disabled":g||R,style:ie,...me,children:o.jsx(_t,{...N})})}return null});var He={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,Ve,be,sr,be),_t[be+Ve]=!0}}return t===s?Qt(Z):Xt(Z),Z}}function er(t,l,_){return pt(t,l,_,!0)}function tr(t,l,_){return pt(t,l,_,!1)}var rr=tr,ar=er;Me.Fragment=s,Me.jsx=rr,Me.jsxs=ar}()),Me}var ht;function dr(){return ht||(ht=1,process.env.NODE_ENV==="production"?De.exports=lr():De.exports=cr()),De.exports}var o=dr();const ur=e=>e.as==="a",_r=e=>e.as===void 0||e.as==="button",Ee=e=>e.displayAs===void 0||e.displayAs==="button",Ze=e=>e.displayAs==="link",pr="_button_6bymk_1",fr="_link_6bymk_17",gr="_disabled_6bymk_22",hr="_loading_6bymk_22",yr="_neutral_6bymk_50",br="_accent_6bymk_54",mr="_positive_6bymk_58",xr="_negative_6bymk_62",vr="_contrast_6bymk_66",Cr="_special_6bymk_70",wr="_primary_6bymk_74",Sr="_secondary_6bymk_75",Er="_tertiary_6bymk_76",Lr="_spaceBetween_6bymk_116",kr="_rightGroup_6bymk_116",jr="_label_6bymk_136",Rr="_iconOnly_6bymk_155",$r="_stretched_6bymk_171",Mr="_icon_6bymk_155",Ir="_postfix_6bymk_176",Tr="_underline_6bymk_202",Ar="_warning_6bymk_1082",Nr="_withSubcaption_6bymk_1268",Dr="_subcaption_6bymk_1273",Or="_loader_6bymk_1279",qr="_spin_6bymk_1",Pr="_l_6bymk_17",Ur="_m_6bymk_1318",Fr="_s_6bymk_70",Br="_xs_6bymk_1364",zr="_iconRight_6bymk_1410",H={button:pr,link:fr,disabled:gr,loading:hr,neutral:yr,accent:br,positive:mr,negative:xr,contrast:vr,special:Cr,primary:wr,secondary:Sr,tertiary:Er,spaceBetween:Lr,rightGroup:kr,label:jr,iconOnly:Rr,stretched:$r,icon:Mr,postfix:Ir,underline:Tr,warning:Ar,withSubcaption:Nr,subcaption:Dr,loader:Or,spin:qr,l:Pr,m:Ur,s:Fr,xs:Br,iconRight:zr},Wr=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal"]),yt=e=>{const a={};for(const r in e)Wr.has(r)||(a[r]=e[r]);return a},Hr={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function Gr(e){return Hr[e]||"typography-label-2-regular"}const je={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},bt=({isLoading:e,iconRight:a,iconLeft:r,children:s,postfix:i,subcaption:n,size:c,isAsButton:u})=>{if(e&&u)return o.jsx("span",{className:H.loader,"data-testid":"button-loader","aria-hidden":"true"});const d=a&&u||a&&!u&&c,p=n&&u&&c!=="s"&&c!=="xs";return o.jsxs(y.Fragment,{children:[p&&o.jsxs(y.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:H.label,children:s}),o.jsx("span",{"data-testid":"button-subcaption",className:H.subcaption,children:n})]}),!p&&s&&o.jsxs(y.Fragment,{children:[o.jsxs("span",{"data-testid":"button-label",className:H.label,children:[!u&&r&&o.jsx("span",{"data-testid":"button-left-icon",className:H.icon,children:r}),s,!u&&a&&o.jsx("span",{"data-testid":"button-icon",className:z.clsx(H.icon,H.iconRight),children:a})]}),u&&o.jsxs("div",{"data-testid":"button-right-group",className:H.rightGroup,children:[d&&o.jsx("span",{"data-testid":"button-icon",className:H.icon,children:a}),i&&u&&o.jsx("span",{"data-testid":"button-postfix",className:H.postfix,children:i})]})]}),!p&&!s&&o.jsx("span",{"data-testid":"button-icon",className:H.icon,children:a})]})},Vr=y.forwardRef((e,a)=>{const{mode:r="primary",size:s="m",buttonStyle:i=Ee(e)?"neutral":"accent",disabled:n=!1,displayAs:c="button",iconRight:u,className:d,children:p,tabIndex:f}=e,b=Ee(e)?e.subcaption:void 0,m=Ee(e)?e.postfix:void 0,h=Ee(e)?e.stretched:void 0,v=!(Ze(e)&&e.size===void 0),E=Ze(e)&&v?e.iconLeft:void 0,S=!!(c==="button"&&"loading"in e&&e.loading),C=Ee(e)?n:n||S,g=!C&&!S,M=v?u:void 0,P=!!(M&&!p),N=typeof h=="object"?h.justify==="space-between":void 0,$=Ze(e)?Gr(e.size??"m"):void 0,I=$?je[$]:void 0,D=C||S?-1:f,W=z.clsx(H.button,H[s],H[r],H[i],I,{[H.disabled]:C,[H.loading]:c==="button"&&"loading"in e&&e.loading,[H.stretched]:h,[H.spaceBetween]:N,[H.withSubcaption]:b&&s!=="s"&&s!=="xs",[H.iconOnly]:P,[H.link]:c==="link",[H.underline]:c==="link"&&"showUnderline"in e&&e.showUnderline},d),F={isLoading:S,iconRight:M,iconLeft:E,children:p,postfix:m,subcaption:b,size:s,isAsButton:Ee(e)};if(ur(e)){const{href:B,onClick:T,style:x,target:k,rel:O,"data-testid":U,...G}=e,X=yt(G),ae=k??(e.isExternal?"_blank":void 0);let Y=O;if(ae==="_blank"){const Q=new Set((O??"").split(/\s+/).filter(Boolean));Q.add("noopener").add("noreferrer"),Y=Array.from(Q).join(" ")}const ne=Q=>{if(!g){Q.preventDefault();return}T==null||T(Q)};return o.jsx("a",{ref:a,className:W,href:g?B:void 0,tabIndex:D,onClick:ne,"data-testid":U,"aria-disabled":C||S,style:x,target:ae,rel:Y,...X,children:o.jsx(bt,{...F})})}if(_r(e)){const{type:B="button",onClick:T,style:x,"data-testid":k,...O}=e,U=yt(O),G=X=>{g&&T&&T(X)};return o.jsx("button",{ref:a,type:B,className:W,disabled:C,tabIndex:D,onClick:G,"data-testid":k,"aria-disabled":C||S,style:x,...U,children:o.jsx(bt,{...F})})}return null});var Ye={exports:{}};/*!
31
31
  Copyright (c) 2018 Jed Watson.
32
32
  Licensed under the MIT License (MIT), see
33
33
  http://jedwatson.github.io/classnames
34
- */var ft;function Fa(){return ft||(ft=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var n="",c=0;c<arguments.length;c++){var p=arguments[c];p&&(n=l(n,s(p)))}return n}function s(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return a.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var c="";for(var p in n)r.call(n,p)&&n[p]&&(c=l(c,p));return c}function l(n,c){return c?n?n+" "+c:n+c:n}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(He)),He.exports}var za=Fa();const $e=ea(za),Wa="_avatar_1kyiq_17",Va="_clickable_1kyiq_41",qa="_icon_1kyiq_58",Ha="_disabled_1kyiq_63",Ga="_loading_1kyiq_68",Za="_image_1kyiq_74",Ya="_name_1kyiq_74",_e={avatar:Wa,clickable:Va,icon:qa,disabled:Ha,loading:Ga,image:Za,name:Ya,"variant-filled":"_variant-filled_1kyiq_126","color-brand":"_color-brand_1kyiq_131","color-red":"_color-red_1kyiq_135","color-orange":"_color-orange_1kyiq_139","color-yellow":"_color-yellow_1kyiq_143","color-green":"_color-green_1kyiq_147","color-blue":"_color-blue_1kyiq_151","color-lightblue":"_color-lightblue_1kyiq_155","color-purple":"_color-purple_1kyiq_159","color-gray":"_color-gray_1kyiq_163","color-contrast":"_color-contrast_1kyiq_167","variant-light":"_variant-light_1kyiq_173","variant-outline":"_variant-outline_1kyiq_245"},ke={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},gt=99;function Ja(t){return t<gt?`+${t}`:`${gt}+`}function Je(t){const r=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let s=0;s<r.length;s++){const l=r.charCodeAt(s);a=(a<<5)+a+l}return a>>>0}const Ka=["red","orange","yellow","green","blue","lightblue","purple"];function Xa(t,r=Ka){if(!t)return"gray";const a=Je(t),s=Math.abs(a)%r.length;return r[s]}const ht=2;function Qa(t){if(!t)return"";const r=t.trim().split(/\s+/);return r.length===1?t.slice(0,ht).toUpperCase():r.map(a=>a[0]).slice(0,ht).join("").toUpperCase()}const er={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function Ct(t,r){return r==="circle"?t/2:er[t]||12}const tr={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function ar(t){return tr[t]||"typography-subtitle-1-semibold"}const rr="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",sr="data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",nr="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",or="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",lr={male:rr,female:sr,org:or,neutral:nr},Oe=v.forwardRef((t,r)=>{const{style:a,size:s=40,isLoading:l=!1,isDisabled:n=!1,shape:c="circle",variant:p="filled",placeholderType:d="neutral",name:f,imgSrc:_,imgAlt:h,icon:b,imgProps:y,colorScheme:C,className:$,"data-testid":E,...w}=t,{onClick:g,onPointerDown:R}=w,O=!n&&!l&&(!!g||!!R),[A,N]=v.useState(!1);v.useEffect(()=>{_&&N(!1)},[_]);const D=_&&!A?"image":b?"icon":f?"name":"placeholder",P=C||D==="name"&&Xa(f)||"gray",G=ar(s),W=Ct(s,c),U=q.clsx($,_e.avatar,_e[`variant-${p}`],_e[`color-${P}`],ke[G],{[_e.disabled]:n,[_e.loading]:l,[_e.clickable]:O}),m={"--avatar-size":`${s}px`,"--avatar-border-radius":`${W}px`,...a},j={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:h||void 0,role:"img",className:_e.icon,children:b==null?void 0:b({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:_e.name,title:h||void 0,children:Qa(f||"")}),placeholder:()=>o.jsx("img",{...y,"data-testid":"avatar-placeholder",className:_e.image,src:lr[d],alt:h||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...y,className:_e.image,src:_||void 0,alt:h||void 0,onLoad:()=>N(!1),onError:Z=>{var H;N(!0),(H=y==null?void 0:y.onError)==null||H.call(y,Z)}})},B=Z=>{O&&(g==null||g(Z))};return o.jsx("div",{ref:r,onClick:B,className:U,style:m,"data-testid":E,"aria-disabled":n||l,children:j[D](null)})}),ir="_avatarGroup_157g4_1",cr={avatarGroup:ir};let dr=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((r,a)=>(a&=63,a<36?r+=a.toString(36):a<62?r+=(a-26).toString(36).toUpperCase():a>62?r+="-":r+="_",r),"");function ur(t,r,a,s,l,n,c){const p=Math.min(l,n)/2,d=Math.min(c,p),f=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),_=[`M${a+d},${s}`,`L${a+l-d},${s}`,`A${d},${d} 0 0 1 ${a+l},${s+d}`,`L${a+l},${s+n-d}`,`A${d},${d} 0 0 1 ${a+l-d},${s+n}`,`L${a+d},${s+n}`,`A${d},${d} 0 0 1 ${a},${s+n-d}`,`L${a},${s+d}`,`A${d},${d} 0 0 1 ${a+d},${s}`,"Z"].join(" ");return`${f} ${_}`}const pr=3,_r=t=>{const{avatars:r=[],size:a=40,overlap:s=.3,shape:l="circle",overflowCount:n=0,overflowProps:c}=t,p=a*s,d=-p+pr,f=Ct(a,l),h=v.useRef(dr()).current.toString(),b=$e(cr.avatarGroup),y=ur(a,a,a-p,0,a,a,f);return r.length===0?null:o.jsxs("div",{className:b,children:[r.map((C,$,E)=>{const w=$+1>=E.length;if(C.wrapper){const g=C.wrapper;return o.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:o.jsx(g,{children:o.jsx(Oe,{size:a,shape:l,...C})})},Je(C)+$)}return o.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:o.jsx(Oe,{size:a,shape:l,...C})},Je(C)+$)}),n>0&&o.jsx("div",{style:{marginRight:d},children:o.jsx(Oe,{size:a,shape:l,icon:()=>Ja(n),colorScheme:"gray",variant:"light",...c})}),o.jsx("svg",{width:"0",height:"0",children:o.jsx("clipPath",{id:`${h}`,children:o.jsx("path",{clipPathUnits:"objectBoundingBox",d:y,clipRule:"evenodd"})})})]})},fr=Object.assign(Oe,{Group:_r}),gr="_wrapper_ecbsu_5",hr="_badge__container_ecbsu_6",br="_badge__content_ecbsu_7",yr="_interactive_ecbsu_20",mr="_disabled_ecbsu_21",vr="_icon_ecbsu_22",fe={wrapper:gr,badge__container:hr,badge__content:br,interactive:yr,disabled:mr,icon:vr,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},xr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),Cr=t=>{if(!t)return null;let r=t;for(;r;){const s=window.getComputedStyle(r).backgroundColor;if(!xr(s))return s;r=r.parentElement}return null},wr=()=>{const t=v.useRef(null),[r,a]=v.useState(null);return v.useEffect(()=>{if(t.current){const s=Cr(t.current);a(s)}},[]),{ref:t,bgColor:r}},Sr=v.forwardRef((t,r)=>{const{icon:a,children:s,variant:l="filled",label:n,isHidden:c=!1,colorScheme:p="red",size:d=20,position:f="top-right",positionOffset:_={x:0,y:0},cutoutBackground:h,isDisabled:b,className:y,"data-testid":C="badge",...$}=t,{onClick:E,onPointerDown:w}=$,{ref:g,bgColor:R}=wr(),T=h||R,A=!b&&(!!E||!!w),N=$e(fe.badge__container,fe[`position-${f}`]),D=$e(y,fe.badge__content,fe[`color-${p}`],fe[`variant-${l}`],{[fe.disabled]:b,[fe.icon]:!!a,[fe.interactive]:A}),P={"--badge-height":`${d}px`,"--badge-offset-x":`${_.x}px`,"--badge-offset-y":`${_.y}px`,...T&&{"--badge-cutout-bg":T},...l==="transparent"&&{"--badge-cutout-bg":"transparent"}},G=(a==null?void 0:a({}))||n,W=U=>{A&&(E==null||E(U))};return o.jsxs("div",{className:fe.wrapper,ref:g,"data-testid":C+"-wrapper",children:[s,!c&&o.jsx("span",{className:N,style:P,"data-testid":C+"-container",children:o.jsx("span",{...$,onClick:W,className:D,"data-testid":C+"-content",ref:r,"aria-disabled":b,children:G})})]})}),Er="_container_op5yl_7",Lr="_image_op5yl_22",Mr="_loading_op5yl_34",Ge={container:Er,image:Lr,loading:Mr},$r="_loader_isv17_1",Rr="_spin_isv17_1",jr="_accent_isv17_19",Ir="_neutral_isv17_23",kr="_positive_isv17_27",Tr="_negative_isv17_31",Ar="_gray_isv17_35",Nr="_special_isv17_39",Dr="_contrast_isv17_43",Or="_container_isv17_47",Ur="_overlay_isv17_57",Ie={loader:$r,spin:Rr,accent:jr,neutral:Ir,positive:kr,negative:Tr,gray:Ar,special:Nr,contrast:Dr,container:Or,overlay:Ur,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},wt=v.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":s="loader",style:l,...n},c)=>{const p=$e(Ie.loader,Ie[r],Ie[`size-${t}`],a);return o.jsx("svg",{ref:c,className:p,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:l,...n,children:o.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),Pr=v.forwardRef((t,r)=>{const{loading:a=!1,size:s=24,variant:l="accent",children:n,className:c,style:p,"data-testid":d,...f}=t,_=$e(Ie.container,c);return o.jsxs("div",{ref:r,className:_,style:p,"data-testid":d,...f,children:[n,a&&o.jsx("div",{className:Ie.overlay,children:o.jsx(wt,{size:s,variant:l,"data-testid":`${d}-spinner`})})]})}),St=v.forwardRef((t,r)=>t.children?o.jsx(Pr,{ref:r,...t}):o.jsx(wt,{ref:r,...t})),Br=({width:t=48,height:r=48,className:a,"data-testid":s})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":s,children:o.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),Fr=v.forwardRef((t,r)=>{const{alt:a="",loading:s="lazy",src:l,isLoading:n=!1,className:c,"data-testid":p="image",onError:d,onLoad:f,..._}=t,[h,b]=v.useState("loading"),y=h==="error",C=(n||h==="loading")&&!y,$=h==="loaded"&&!n,E=$e(Ge.image,{[Ge.loading]:C},c),w=v.useCallback(T=>{b("loaded"),f==null||f(T)},[f]),g=v.useCallback(T=>{b("error"),d==null||d(T)},[d]),R={loader:o.jsxs(v.Fragment,{children:[o.jsx(St,{size:48,variant:"special","data-testid":`${p}-loader`}),o.jsx("img",{alt:a,src:l,onLoad:w,onError:g,style:{display:"none"}})]}),error:o.jsx(Br,{"data-testid":`${p}-fallback`}),image:o.jsx("img",{ref:r,alt:a,"data-testid":p,loading:s,src:l,className:E})};return v.useEffect(()=>{if(!l){b("error");return}b("loading")},[l]),o.jsxs("div",{className:Ge.container,"data-testid":`${p}-container`,..._,children:[C&&R.loader,y&&R.error,$&&R.image]})}),Et={},Lt=v.createContext({locale:Et}),Mt=()=>{const t=v.useContext(Lt);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},zr=()=>{const{locale:t}=Mt();return t},Wr={},Vr={},qr={},Hr=({locale:t={},theme:r,children:a,className:s})=>(v.useLayoutEffect(()=>{if(r){const l=document.documentElement;Object.entries(r).forEach(([n,c])=>{l.style.setProperty(n,c)})}},[r]),o.jsxs(v.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:q.clsx(Wr,Vr,qr,s)}),o.jsx(Lt.Provider,{value:{locale:t},children:a})]})),Gr={},Zr="_tag_1llsi_1",Yr="_label_1llsi_16",Jr="_iconWrapper_1llsi_20",Kr="_medium_1llsi_27",Xr="_large_1llsi_33",Qr="_disabled_1llsi_43",es="_neutral_1llsi_47",ts="_positive_1llsi_53",as="_negative_1llsi_59",rs="_warning_1llsi_65",ss="_vivid_1llsi_71",ns="_special_1llsi_77",os="_accent_1llsi_84",ls="_blue_1llsi_90",is="_lovely_1llsi_96",cs="_dreamy_1llsi_102",we={tag:Zr,label:Yr,iconWrapper:Jr,medium:Kr,large:Xr,disabled:Qr,neutral:es,positive:ts,negative:as,warning:rs,vivid:ss,special:ns,accent:os,blue:ls,lovely:is,dreamy:cs},ds=v.forwardRef((t,r)=>{const{className:a,children:s,componentStyle:l="neutral",size:n="medium",disabled:c=!1,showLabel:p=!!s,slotStart:d,slotEnd:f,slotStartWrapperProps:_={},slotEndWrapperProps:h={},"data-testid":b}=t,{className:y,...C}=_,{className:$,...E}=h;return o.jsxs("div",{className:q.clsx(we.tag,we[n],we[l],{[we.disabled]:c,[ke["typography-label-3-regular"]]:n==="medium",[ke["typography-subtitle-1-semibold"]]:n==="large"},a),"data-testid":b||"tag-component",ref:r,children:[d&&o.jsx("span",{className:q.clsx([we.iconWrapper,y]),...C,children:d}),p&&o.jsx("span",{className:q.clsx([we.label]),children:s}),f&&o.jsx("span",{className:q.clsx([we.iconWrapper,$]),...E,children:f})]})}),us="_checkbox_qo5f5_43",ps="_input_qo5f5_59",_s="_icon_qo5f5_67",fs="_container_qo5f5_84",gs="_error_qo5f5_135",hs="_checkboxWrapper_qo5f5_147",bs="_medium_qo5f5_201",ys="_large_qo5f5_206",ms="_label_qo5f5_247",he={checkbox:us,input:ps,icon:_s,container:fs,error:gs,checkboxWrapper:hs,medium:bs,large:ys,label:ms},vs=({width:t=12,height:r=9,className:a="",color:s="currentColor",...l})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),xs=({width:t=12,height:r=2,className:a="",color:s="currentColor",...l})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),Cs={medium:{width:10.83,height:7.5},large:{width:13,height:9}},ws=({size:t,isChecked:r,isDisabled:a,indeterminate:s,dataTestId:l})=>{const{width:n,height:c}=Cs[t];return o.jsx("div",{className:he.icon,"data-testid":`${l}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":s,children:s?o.jsx(xs,{width:n,height:c}):o.jsx(vs,{width:n,height:c})})},Ss=v.forwardRef((t,r)=>{const{name:a,value:s,size:l="medium",indeterminate:n=!1,loading:c=!1,error:p,disabled:d=!1,containerClassName:f,className:_,containerStyle:h,style:b,children:y,clickableLabel:C=!0,tabIndex:$,onChange:E,"data-testid":w="checkbox"}=t,[g,R]=v.useState(!1),T=s??g,O=d||c,A=!!p,N=T||n,D=q.clsx(he.container,he[l],f),P=q.clsx(he.checkbox,he[l],{[he.error]:A},_),G=j=>{O||(R(j.target.checked),E==null||E(j.target.checked,j))},W=j=>{if(j.key==="Enter"&&!O){j.preventDefault();const B=!N;R(B),E==null||E(B)}},U=j=>{C||j.preventDefault()},m=j=>j.stopPropagation();return o.jsxs("label",{className:D,htmlFor:a,style:h,"data-testid":w,"data-clickable-label":C,children:[o.jsx("div",{className:he.checkboxWrapper,children:o.jsxs("div",{tabIndex:$||0,className:P,style:b,onKeyDown:W,"aria-checked":N,"aria-disabled":O,"aria-invalid":A,"aria-describedby":p?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:N,disabled:O,className:he.input,onChange:G,onClick:m,"aria-checked":N,"aria-invalid":A,"aria-describedby":p?`${a}-error`:void 0,"data-testid":`${w}-input`}),o.jsx(ws,{name:a,size:l,isChecked:N,isDisabled:O,indeterminate:n,dataTestId:w})]})}),y&&o.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":C,className:he.label,onClick:U,children:y})]})}),Es="_typography_zt7xg_1",Ls="_disabled_zt7xg_8",Ms="_primary_zt7xg_13",$s="_secondary_zt7xg_18",Rs="_tertiary_zt7xg_23",js="_accent_zt7xg_28",Is="_positive_zt7xg_38",ks="_negative_zt7xg_48",Ts="_warning_zt7xg_58",As="_special_zt7xg_68",Ns="_contrast_zt7xg_78",Me={typography:Es,disabled:Ls,primary:Ms,secondary:$s,tertiary:Rs,accent:js,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Is,"positive-secondary":"_positive-secondary_zt7xg_43",negative:ks,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Ts,"warning-secondary":"_warning-secondary_zt7xg_63",special:As,"special-secondary":"_special-secondary_zt7xg_73",contrast:Ns,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Ds={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},bt=t=>{const r=xt.forwardRef(({size:a=3,children:s,className:l,"data-testid":n,as:c,fontWeight:p="semibold",disabled:d=!1,typographyStyle:f="primary",..._},h)=>{const b=c||Ds[a],y=q.clsx(Me.typography,ke[`typography-${t}-${a}-${p}`],Me[f],{[Me.disabled]:d},l);return s?o.jsx(b,{ref:h,className:y,"data-testid":n,..._,children:s}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},yt=t=>{const r=xt.forwardRef(({size:a=3,children:s,className:l,"data-testid":n,as:c="p",fontWeight:p="regular",disabled:d=!1,typographyStyle:f="primary",..._},h)=>{const b=c,y=q.clsx(Me.typography,ke[`typography-${t}-${a}-${p}`],Me[f],{[Me.disabled]:d},l);return s?o.jsx(b,{ref:h,className:y,"data-testid":n,..._,children:s}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Os={Title:bt("title"),Subtitle:bt("subtitle"),Label:yt("label"),Paragraph:yt("paragraph")},Us="_inputBase_2vlla_85",Ps="_wrapper_2vlla_95",Bs="_gripHandle_2vlla_169",Fs="_error_2vlla_230",zs="_tabFocused_2vlla_237",Ws="_disabled_2vlla_262",Vs="_loading_2vlla_269",qs="_label_2vlla_279",Hs="_small_2vlla_292",Gs="_large_2vlla_299",Zs="_leftSection_2vlla_306",Ys="_rightSection_2vlla_315",Js="_helper_2vlla_351",Ks="_floatingLabel_2vlla_376",Xs="_focused_2vlla_434",Qs="_filled_2vlla_435",en="_medium_2vlla_469",tn="_characterLimit_2vlla_510",an="_input_2vlla_85",rn="_textarea_2vlla_109",sn="_truncate_2vlla_637",nn="_hint_2vlla_719",M={inputBase:Us,wrapper:Ps,"textarea-wrapper":"_textarea-wrapper_2vlla_109",gripHandle:Bs,error:Fs,tabFocused:zs,disabled:Ws,loading:Vs,label:qs,small:Hs,large:Gs,leftSection:Zs,rightSection:Ys,helper:Js,floatingLabel:Ks,focused:Xs,filled:Qs,medium:en,characterLimit:tn,input:an,textarea:rn,"size-small":"_size-small_2vlla_586","size-medium":"_size-medium_2vlla_592","size-large":"_size-large_2vlla_598","with-floating-label":"_with-floating-label_2vlla_605",truncate:sn,hint:nn,"has-hint":"_has-hint_2vlla_736","has-suffix":"_has-suffix_2vlla_742","has-limit":"_has-limit_2vlla_748"},on=({width:t=8,height:r=8,className:a,color:s="#AABBCA"})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:s})}),$t=({className:t="",style:r,size:a="md",color:s="currentColor",onClick:l,...n})=>{const p={display:"inline-block",color:s,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[a],...r};return o.jsx("svg",{className:t,style:p,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:l,...n,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},ln=(t,r)=>{const a=v.useRef(null),s=v.useRef(null);return v.useEffect(()=>{const l=r==="textarea"?a.current:s.current;l&&l.value!==t&&(l.value=t||"")},[t,r]),{textareaRef:a,inputRef:s,currentRef:r==="textarea"?a:s}},cn=(t,r,a)=>{const s=()=>{if(!a.current||r!=="hug")return;const l=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!t)return;const n=a.current.scrollHeight+"px";a.current.style.setProperty("height",n,"important"),a.current.scrollTop=l;const c=a.current.closest(`.${M.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return v.useEffect(s,[t,r]),v.useEffect(()=>{r==="hug"&&a.current&&s()},[]),{resizeTextArea:s}},dn=(t,r,a,s)=>({handleGripMouseDown:v.useCallback(n=>{if(!t||r||a||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const c=n.currentTarget.closest(`.${M.wrapper}`);if(!c)return;const p=n.clientY,d=c.clientHeight,f=h=>{const b=h.clientY-p,y=Math.min(100,d),C=Math.max(y,d+b);c.style.height=`${C}px`},_=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",_)},[t,r,a,s])}),mt=30,un=v.forwardRef(({component:t="input",size:r="medium",value:a="",placeholder:s,disabled:l=!1,loading:n=!1,onFocus:c,onBlur:p,onChange:d,onKeyDown:f,onKeyUp:_,maxLength:h,className:b,style:y,truncate:C=!1,shouldShowFloatingLabelClass:$=!1,"aria-invalid":E,"aria-errormessage":w,id:g,resize:R,...T},O)=>{const{textareaRef:A,inputRef:N,currentRef:D}=ln(a,t);if(cn(a,R,A),v.useImperativeHandle(O,()=>D.current,[D]),t==="textarea")return o.jsx("textarea",{ref:A,id:g,value:a,placeholder:s,disabled:l||n,onFocus:c,onBlur:p,onChange:d,onKeyDown:f,onKeyUp:_,maxLength:h,className:q.clsx(M.textarea,M[`size-${r}`],$&&M["with-floating-label"],b),style:y,"aria-invalid":E,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,"data-resize":R,...T});if(t==="input")return o.jsx("input",{ref:N,id:g,value:a,placeholder:s,disabled:l||n,onFocus:c,onBlur:p,onChange:d,onKeyDown:f,onKeyUp:_,maxLength:h,className:q.clsx(M.input,M[`size-${r}`],$&&M["with-floating-label"],C&&M.truncate,b),style:y,"aria-invalid":E,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,...T});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),Rt=v.forwardRef(({children:t,size:r="medium",error:a=!1,disabled:s=!1,loading:l=!1,className:n,wrapperProps:c,wrapperStyles:p,floatingLabelStyles:d,prefixStyles:f,suffixStyles:_,labelProps:h,helperProps:b,showLimit:y=!1,maxLength:C,hint:$,showHint:E=!1,showHintOnEmpty:w=!1,prefix:g,suffix:R,onSuffixClick:T,placeholder:O,showLabel:A=!0,labelClassName:N,hasValue:D=!1,helper:P,id:G,value:W="",resize:U,showGrip:m=!1,...j},B)=>{const Z=v.useId(),H=G||Z,ee=E&&$&&(D||w),ae=$&&$.length>mt?$.substring(0,mt)+"...":$,K=q.clsx(M.wrapper,a&&M.error,s&&M.disabled,l&&M.loading,ee&&M["has-hint"],R&&M["has-suffix"],y&&M["has-limit"],n),re=q.clsx(M.floatingLabel,M[r],D&&M.filled,N),{handleGripMouseDown:se}=dn(m,s,l,U);return o.jsxs("div",{ref:B,className:M.inputBase,"data-testid":"input-base-wrapper",...j,children:[o.jsxs("div",{className:K,style:p,"data-resize":U,"data-show-grip":m?"true":"false",...c,children:[g&&o.jsx("label",{htmlFor:H,className:M.leftSection,style:f,children:g}),R&&o.jsx("label",{htmlFor:H,className:M.rightSection,style:_,onClick:T,children:R}),O&&A&&o.jsx("label",{htmlFor:H,className:re,style:d,...h,children:O}),t,m&&!y&&(U==="fixed"||!U)&&o.jsx("div",{className:M.gripHandle,onMouseDown:se,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(on,{})}),ee&&o.jsx("div",{className:q.clsx(M.hint,D&&M.truncate),"data-disabled":s||l,children:ae}),y&&C&&o.jsxs("div",{className:M.characterLimit,children:[(W||"").length," из ",C]})]}),P&&o.jsx("div",{className:q.clsx(M.helper,a&&M.error,(s||l)&&M.disabled),...b,id:a?`${H}-error`:void 0,children:P})]})});Rt.displayName="InputWrapperComponent";const vt=Object.assign(un,{Wrapper:Rt}),jt=v.forwardRef(({component:t="input",size:r="medium",className:a,error:s=!1,disabled:l=!1,loading:n=!1,placeholder:c,showLabel:p=!0,labelClassName:d,helper:f,prefix:_,suffix:h,id:b,onFocus:y,onBlur:C,onKeyDown:$,onSuffixClick:E,onChange:w,value:g="",wrapperProps:R,wrapperStyles:T,floatingLabelStyles:O,prefixStyles:A,suffixStyles:N,textareaStyles:D,labelProps:P,helperProps:G,showLimit:W=!1,maxLength:U,inputProps:m,hint:j,showHint:B=!1,showHintOnEmpty:Z=!1,truncate:H=!1,resize:ee,showGrip:ae=!1,...K},re)=>{const se=v.useId(),de=b||se,[ve,le]=v.useState(g),ye=g!==void 0?g:ve,ue=(ye||"").length>0,ie=ye||"",pe=p&&(r==="large"||t==="textarea")&&!_,xe=v.useCallback(Y=>{var J;l||n||(y==null||y(),(J=m==null?void 0:m.onFocus)==null||J.call(m,Y))},[y,m,l,n]),Te=v.useCallback(Y=>{var J;if(Y.key==="Tab"){const ce=Y.target.closest(`.${M.wrapper}`);ce&&ce.classList.add(M.tabFocused)}(J=m==null?void 0:m.onKeyUp)==null||J.call(m,Y)},[m]),Pe=v.useCallback(Y=>{var ce;const J=Y.target.closest(`.${M.wrapper}`);J&&J.classList.remove(M.tabFocused),C==null||C(),(ce=m==null?void 0:m.onBlur)==null||ce.call(m,Y)},[C,m]),Be=v.useCallback(Y=>{var ce;if(l||n)return;const J=Y.target.value;le(J),w==null||w(J,Y),(ce=m==null?void 0:m.onChange)==null||ce.call(m,Y)},[w,m,l,n]);return v.useEffect(()=>{le(g||"")},[g]),o.jsx(vt.Wrapper,{ref:re,size:r,error:s,disabled:l||n,loading:n,className:q.clsx(a,t==="textarea"&&M["textarea-wrapper"]),wrapperProps:R,wrapperStyles:T,floatingLabelStyles:O,prefixStyles:A,suffixStyles:N,labelProps:P,helperProps:G,showLimit:W,maxLength:U,hint:j,showHint:B,showHintOnEmpty:Z,prefix:_,suffix:h,onSuffixClick:E,placeholder:c,showLabel:p,labelClassName:d,hasValue:ue,helper:f,id:de,value:ie,showGrip:ae,resize:ee,...K,children:o.jsx(vt,{component:t,size:r,value:ie,placeholder:c,disabled:l,loading:n,onFocus:xe,onBlur:Pe,onChange:Be,onKeyDown:$,onKeyUp:Te,maxLength:U,truncate:H,"data-empty":!ue,shouldShowFloatingLabelClass:pe,style:t==="textarea"?D:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${de}-error`:void 0,id:de,resize:ee,...m})})}),Q={SMALL:"small",MEDIUM:"medium",LARGE:"large"},pn=(t,r,a,s)=>{switch(t){case Q.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case Q.MEDIUM:return s?"12px 12px 12px 12px":"12px 12px 12px 16px";case Q.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},_n=t=>{switch(t){case Q.LARGE:return"56px";case Q.MEDIUM:return"48px";case Q.SMALL:return"40px";default:return"48px"}},fn=t=>{switch(t){case Q.SMALL:return 8;case Q.MEDIUM:case Q.LARGE:return 12;default:return 12}},gn=(t,r,a)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),hn=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),bn=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),yn=(t,r,a,s)=>{const l=_n(t),n=pn(t,r,a,s),c=fn(t);switch(t){case Q.LARGE:return gn(l,n,c);case Q.MEDIUM:return hn(l,n,c);case Q.SMALL:return bn(l,n,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},mn=v.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:s,maxLength:l,minLength:n,autoComplete:c,autoFocus:p,size:d=Q.MEDIUM,inputProps:f,error:_,disabled:h,loading:b,helper:y,prefix:C,suffix:$,clearable:E=!1,id:w,showLabel:g=!0,onFocus:R,onBlur:T,onSuffixClick:O,onClear:A,className:N,truncate:D=!0,hint:P,showHint:G=!1,showHintOnEmpty:W=!1,wrapperProps:U,labelProps:m,helperProps:j,...B},Z)=>{const H=(t||"").length>0,ee=d===Q.LARGE,ae=!!C,K=ee&&g&&!C,re=E&&H&&!(h||b),se=()=>{r==null||r(""),A==null||A()},de=re?o.jsx($t,{size:d===Q.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:se,style:{cursor:"pointer"},"data-testid":"x-icon"}):$,ve={type:a,minLength:n,autoComplete:c,autoFocus:p,...f},le=yn(d,K,H,ae);return o.jsx(jt,{size:d,error:_,disabled:h||b,loading:b,helper:y,prefix:C,suffix:de,id:w,showLabel:K,onFocus:R,onBlur:T,onSuffixClick:O,onChange:r,value:t,placeholder:s,className:N,wrapperStyles:le.wrapperStyles,floatingLabelStyles:le.floatingLabelStyles,prefixStyles:le.prefixStyles,suffixStyles:le.suffixStyles,wrapperProps:U,labelProps:m,helperProps:j,showLimit:!1,maxLength:l,inputProps:ve,hint:P,showHint:G,showHintOnEmpty:W,truncate:D,...B})}),oe={SMALL:"small",MEDIUM:"medium"},Ue={SMALL:"12px",MEDIUM:"16px"},vn={SMALL:"xs",MEDIUM:"sm"},De={FILL:"fill",FIXED:"fixed"},Ze={SMALL:"112px",MEDIUM:"56px"},Le={SMALL:"48px",MEDIUM:"22px"},ge={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},be={SMALL:48,MEDIUM:56,LARGE:112},xn=(t,r)=>{if(t===oe.SMALL)return Ze.SMALL;if(r)return`${r}px`;switch(t){case oe.MEDIUM:return Ze.MEDIUM;default:return Ze.MEDIUM}},Cn=(t,r)=>{if(t===oe.SMALL)return Le.SMALL;if(r)switch(r){case be.SMALL:case be.MEDIUM:return Le.MEDIUM;case be.LARGE:return Le.SMALL;default:return Le.MEDIUM}switch(t){case oe.MEDIUM:return Le.MEDIUM;default:return Le.MEDIUM}},wn=(t,r,a)=>{if(t===oe.SMALL)return ge.SMALL;if(r)switch(r){case be.SMALL:return ge.MEDIUM_WITH_PREFIX;case be.MEDIUM:return a?ge.MEDIUM_FLOATING_LABEL:ge.MEDIUM;case be.LARGE:return ge.MEDIUM;default:return ge.MEDIUM}switch(t){case oe.MEDIUM:return a?ge.MEDIUM_FLOATING_LABEL:ge.MEDIUM;default:return ge.MEDIUM}},Sn=(t,r)=>{if(t===oe.SMALL)return"small";if(r)switch(r){case be.SMALL:return"small";case be.MEDIUM:return"medium";case be.LARGE:return"medium";default:return"medium"}return t},En=t=>vn[t.toUpperCase()],Ln=t=>Ue[t.toUpperCase()],Mn=(t,r,a,s)=>{const l=xn(t,r),n=Cn(t,r),c=wn(t,r,a);return{wrapperStyles:{minHeight:l,...s===De.FILL&&{height:"100%"},...s===De.FIXED&&r&&{height:l},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===oe.SMALL?Ue.SMALL:Ue.MEDIUM,transformOrigin:"left top",top:r===112&&a&&t===oe.MEDIUM?Ue.MEDIUM:void 0},suffixStyles:{right:Ln(t)},textareaStyles:{minHeight:n,...s===De.FILL&&{flex:1,minHeight:0},...s===De.FIXED&&r&&{height:n}}}},$n=v.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:s,minLength:l,autoFocus:n,size:c=oe.MEDIUM,textareaProps:p,error:d,disabled:f,loading:_,helper:h,suffix:b,clearable:y=!1,id:C,showLabel:$=!0,onFocus:E,onBlur:w,onClear:g,onKeyDown:R,className:T,rows:O=1,showLimit:A=!1,wrapperProps:N,labelProps:D,helperProps:P,showGrip:G,minHeight:W,resize:U,...m},j)=>{const B=(t||"").length>0,Z=$&&!!a&&(c===oe.SMALL||W!==48),H=y&&B&&!(f||_),ee=()=>{r==null||r(""),g==null||g()},ae=H?o.jsx($t,{size:En(c),color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):b,K=Mn(c,W,Z&&B,U),re=Sn(c,W),se={rows:O,minLength:l,autoFocus:n,resize:U,...p};return o.jsx(jt,{ref:j,component:"textarea",size:re,error:d,disabled:f||_,loading:_,helper:h,suffix:ae,id:C,showLabel:Z,onFocus:E,onBlur:w,onKeyDown:R,onChange:r,value:t||"",placeholder:a,className:T,"data-floating-label":Z,wrapperStyles:K.wrapperStyles,floatingLabelStyles:K.floatingLabelStyles,suffixStyles:K.suffixStyles,textareaStyles:K.textareaStyles,wrapperProps:N,labelProps:D,helperProps:P,showLimit:A&&(W===112||c===oe.SMALL),maxLength:s,inputProps:se,resize:U,showGrip:G,...m})}),Rn="_helper_1vhgl_16",Ye={helper:Rn,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},jn=({title:t,error:r,className:a="",style:s,disabled:l=!1,"data-testid":n,"aria-label":c,"aria-describedby":p})=>{const d=!!r,f=q.clsx(Ye.helper,d&&Ye["helper--error"],l&&Ye["helper--disabled"],a),_=l?t:r||t;return o.jsx("div",{className:f,style:s,"data-testid":n,"aria-label":c,"aria-describedby":p,children:o.jsx("p",{children:_})})};exports.Avatar=fr;exports.Badge=Sr;exports.Button=Ba;exports.Checkbox=Ss;exports.ConfigProvider=Hr;exports.Helper=jn;exports.Image=Fr;exports.Loader=St;exports.Tag=ds;exports.TextArea=$n;exports.TextInput=mn;exports.Typography=Os;exports.enUS=Et;exports.ruRU=Gr;exports.useConfig=Mt;exports.useLocale=zr;
34
+ */var mt;function Zr(){return mt||(mt=1,function(e){(function(){var a={}.hasOwnProperty;function r(){for(var n="",c=0;c<arguments.length;c++){var u=arguments[c];u&&(n=i(n,s(u)))}return n}function s(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return r.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var c="";for(var u in n)a.call(n,u)&&n[u]&&(c=i(c,u));return c}function i(n,c){return c?n?n+" "+c:n+c:n}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Ye)),Ye.exports}var Yr=Zr();const he=ir(Yr),Kr="_avatar_1kyiq_17",Jr="_clickable_1kyiq_41",Xr="_icon_1kyiq_58",Qr="_disabled_1kyiq_63",ea="_loading_1kyiq_68",ta="_image_1kyiq_74",ra="_name_1kyiq_74",ce={avatar:Kr,clickable:Jr,icon:Xr,disabled:Qr,loading:ea,image:ta,name:ra,"variant-filled":"_variant-filled_1kyiq_126","color-brand":"_color-brand_1kyiq_131","color-red":"_color-red_1kyiq_135","color-orange":"_color-orange_1kyiq_139","color-yellow":"_color-yellow_1kyiq_143","color-green":"_color-green_1kyiq_147","color-blue":"_color-blue_1kyiq_151","color-lightblue":"_color-lightblue_1kyiq_155","color-purple":"_color-purple_1kyiq_159","color-gray":"_color-gray_1kyiq_163","color-contrast":"_color-contrast_1kyiq_167","variant-light":"_variant-light_1kyiq_173","variant-outline":"_variant-outline_1kyiq_245"},xt=99;function aa(e){return e<xt?`+${e}`:`${xt}+`}function et(e){const a=typeof e=="string"?e:JSON.stringify(e);let r=5381;for(let s=0;s<a.length;s++){const i=a.charCodeAt(s);r=(r<<5)+r+i}return r>>>0}const sa=["red","orange","yellow","green","blue","lightblue","purple"];function na(e,a=sa){if(!e)return"gray";const r=et(e),s=Math.abs(r)%a.length;return a[s]}const vt=2;function oa(e){if(!e)return"";const a=e.trim().split(/\s+/);return a.length===1?e.slice(0,vt).toUpperCase():a.map(r=>r[0]).slice(0,vt).join("").toUpperCase()}const ia={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function jt(e,a){return a==="circle"?e/2:ia[e]||12}const la={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function ca(e){return la[e]||"typography-subtitle-1-semibold"}const da="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",ua="data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",_a="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",pa="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",fa={male:da,female:ua,org:pa,neutral:_a},qe=y.forwardRef((e,a)=>{const{style:r,size:s=40,isLoading:i=!1,isDisabled:n=!1,shape:c="circle",variant:u="filled",placeholderType:d="neutral",name:p,imgSrc:f,imgAlt:b,icon:m,imgProps:h,colorScheme:v,className:E,"data-testid":S,...C}=e,{onClick:g,onPointerDown:M}=C,N=!n&&!i&&(!!g||!!M),[$,I]=y.useState(!1);y.useEffect(()=>{f&&I(!1)},[f]);const D=f&&!$?"image":m?"icon":p?"name":"placeholder",W=v||D==="name"&&na(p)||"gray",F=ca(s),B=jt(s,c),T=z.clsx(E,ce.avatar,ce[`variant-${u}`],ce[`color-${W}`],je[F],{[ce.disabled]:n,[ce.loading]:i,[ce.clickable]:N}),x={"--avatar-size":`${s}px`,"--avatar-border-radius":`${B}px`,...r},k={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:b||void 0,role:"img",className:ce.icon,children:m==null?void 0:m({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:ce.name,title:b||void 0,children:oa(p||"")}),placeholder:()=>o.jsx("img",{...h,"data-testid":"avatar-placeholder",className:ce.image,src:fa[d],alt:b||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...h,className:ce.image,src:f||void 0,alt:b||void 0,onLoad:()=>I(!1),onError:U=>{var G;I(!0),(G=h==null?void 0:h.onError)==null||G.call(h,U)}})},O=U=>{N&&(g==null||g(U))};return o.jsx("div",{ref:a,onClick:O,className:T,style:x,"data-testid":S,"aria-disabled":n||i,children:k[D](null)})}),ga="_avatarGroup_157g4_1",ha={avatarGroup:ga};let ya=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((a,r)=>(r&=63,r<36?a+=r.toString(36):r<62?a+=(r-26).toString(36).toUpperCase():r>62?a+="-":a+="_",a),"");function ba(e,a,r,s,i,n,c){const u=Math.min(i,n)/2,d=Math.min(c,u),p=["M0,0",`H${e}`,`V${a}`,"H0","V0","Z"].join(" "),f=[`M${r+d},${s}`,`L${r+i-d},${s}`,`A${d},${d} 0 0 1 ${r+i},${s+d}`,`L${r+i},${s+n-d}`,`A${d},${d} 0 0 1 ${r+i-d},${s+n}`,`L${r+d},${s+n}`,`A${d},${d} 0 0 1 ${r},${s+n-d}`,`L${r},${s+d}`,`A${d},${d} 0 0 1 ${r+d},${s}`,"Z"].join(" ");return`${p} ${f}`}const ma=3,xa=e=>{const{avatars:a=[],size:r=40,overlap:s=.3,shape:i="circle",overflowCount:n=0,overflowProps:c}=e,u=r*s,d=-u+ma,p=jt(r,i),b=y.useRef(ya()).current.toString(),m=he(ha.avatarGroup),h=ba(r,r,r-u,0,r,r,p);return a.length===0?null:o.jsxs("div",{className:m,children:[a.map((v,E,S)=>{const C=E+1>=S.length;if(v.wrapper){const g=v.wrapper;return o.jsx("div",{style:{clipPath:C&&!n?void 0:`url(#${b})`,marginRight:d},children:o.jsx(g,{children:o.jsx(qe,{size:r,shape:i,...v})})},et(v)+E)}return o.jsx("div",{style:{clipPath:C&&!n?void 0:`url(#${b})`,marginRight:d},children:o.jsx(qe,{size:r,shape:i,...v})},et(v)+E)}),n>0&&o.jsx("div",{style:{marginRight:d},children:o.jsx(qe,{size:r,shape:i,icon:()=>aa(n),colorScheme:"gray",variant:"light",...c})}),o.jsx("svg",{width:"0",height:"0",children:o.jsx("clipPath",{id:`${b}`,children:o.jsx("path",{clipPathUnits:"objectBoundingBox",d:h,clipRule:"evenodd"})})})]})},va=Object.assign(qe,{Group:xa}),Ca="_wrapper_ecbsu_5",wa="_badge__container_ecbsu_6",Sa="_badge__content_ecbsu_7",Ea="_interactive_ecbsu_20",La="_disabled_ecbsu_21",ka="_icon_ecbsu_22",ue={wrapper:Ca,badge__container:wa,badge__content:Sa,interactive:Ea,disabled:La,icon:ka,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},ja=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),Ra=e=>{if(!e)return null;let a=e;for(;a;){const s=window.getComputedStyle(a).backgroundColor;if(!ja(s))return s;a=a.parentElement}return null},$a=()=>{const e=y.useRef(null),[a,r]=y.useState(null);return y.useEffect(()=>{if(e.current){const s=Ra(e.current);r(s)}},[]),{ref:e,bgColor:a}},Ma=y.forwardRef((e,a)=>{const{icon:r,children:s,variant:i="filled",label:n,isHidden:c=!1,colorScheme:u="red",size:d=20,position:p="top-right",positionOffset:f={x:0,y:0},cutoutBackground:b,isDisabled:m,className:h,"data-testid":v="badge",...E}=e,{onClick:S,onPointerDown:C}=E,{ref:g,bgColor:M}=$a(),P=b||M,$=!m&&(!!S||!!C),I=he(ue.badge__container,ue[`position-${p}`]),D=he(h,ue.badge__content,ue[`color-${u}`],ue[`variant-${i}`],{[ue.disabled]:m,[ue.icon]:!!r,[ue.interactive]:$}),W={"--badge-height":`${d}px`,"--badge-offset-x":`${f.x}px`,"--badge-offset-y":`${f.y}px`,...P&&{"--badge-cutout-bg":P},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},F=(r==null?void 0:r({}))||n,B=T=>{$&&(S==null||S(T))};return o.jsxs("div",{className:ue.wrapper,ref:g,"data-testid":v+"-wrapper",children:[s,!c&&o.jsx("span",{className:I,style:W,"data-testid":v+"-container",children:o.jsx("span",{...E,onClick:B,className:D,"data-testid":v+"-content",ref:a,"aria-disabled":m,children:F})})]})}),Ia="_container_op5yl_7",Ta="_image_op5yl_22",Aa="_loading_op5yl_34",Ke={container:Ia,image:Ta,loading:Aa},Na="_loader_isv17_1",Da="_spin_isv17_1",Oa="_accent_isv17_19",qa="_neutral_isv17_23",Pa="_positive_isv17_27",Ua="_negative_isv17_31",Fa="_gray_isv17_35",Ba="_special_isv17_39",za="_contrast_isv17_43",Wa="_container_isv17_47",Ha="_overlay_isv17_57",Ie={loader:Na,spin:Da,accent:Oa,neutral:qa,positive:Pa,negative:Ua,gray:Fa,special:Ba,contrast:za,container:Wa,overlay:Ha,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},Rt=y.forwardRef(({size:e=24,variant:a="accent",className:r,"data-testid":s="loader",style:i,...n},c)=>{const u=he(Ie.loader,Ie[a],Ie[`size-${e}`],r);return o.jsx("svg",{ref:c,className:u,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:i,...n,children:o.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),Ga=y.forwardRef((e,a)=>{const{loading:r=!1,size:s=24,variant:i="accent",children:n,className:c,style:u,"data-testid":d,...p}=e,f=he(Ie.container,c);return o.jsxs("div",{ref:a,className:f,style:u,"data-testid":d,...p,children:[n,r&&o.jsx("div",{className:Ie.overlay,children:o.jsx(Rt,{size:s,variant:i,"data-testid":`${d}-spinner`})})]})}),$t=y.forwardRef((e,a)=>e.children?o.jsx(Ga,{ref:a,...e}):o.jsx(Rt,{ref:a,...e})),Va=({width:e=48,height:a=48,className:r,"data-testid":s})=>o.jsx("svg",{width:e,height:a,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,"data-testid":s,children:o.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),Za=y.forwardRef((e,a)=>{const{alt:r="",loading:s="lazy",src:i,isLoading:n=!1,className:c,"data-testid":u="image",onError:d,onLoad:p,...f}=e,[b,m]=y.useState("loading"),h=b==="error",v=(n||b==="loading")&&!h,E=b==="loaded"&&!n,S=he(Ke.image,{[Ke.loading]:v},c),C=y.useCallback(P=>{m("loaded"),p==null||p(P)},[p]),g=y.useCallback(P=>{m("error"),d==null||d(P)},[d]),M={loader:o.jsxs(y.Fragment,{children:[o.jsx($t,{size:48,variant:"special","data-testid":`${u}-loader`}),o.jsx("img",{alt:r,src:i,onLoad:C,onError:g,style:{display:"none"}})]}),error:o.jsx(Va,{"data-testid":`${u}-fallback`}),image:o.jsx("img",{ref:a,alt:r,"data-testid":u,loading:s,src:i,className:S})};return y.useEffect(()=>{if(!i){m("error");return}m("loading")},[i]),o.jsxs("div",{className:Ke.container,"data-testid":`${u}-container`,...f,children:[v&&M.loader,h&&M.error,E&&M.image]})}),Mt={},It=y.createContext({locale:Mt}),Tt=()=>{const e=y.useContext(It);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},Ya=()=>{const{locale:e}=Tt();return e},Ka={},Ja={},Xa={},Qa=({locale:e={},theme:a,children:r,className:s})=>(y.useLayoutEffect(()=>{if(a){const i=document.documentElement;Object.entries(a).forEach(([n,c])=>{i.style.setProperty(n,c)})}},[a]),o.jsxs(y.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:z.clsx(Ka,Ja,Xa,s)}),o.jsx(It.Provider,{value:{locale:e},children:r})]})),es={},ts="_tag_1llsi_1",rs="_label_1llsi_16",as="_iconWrapper_1llsi_20",ss="_medium_1llsi_27",ns="_large_1llsi_33",os="_disabled_1llsi_43",is="_neutral_1llsi_47",ls="_positive_1llsi_53",cs="_negative_1llsi_59",ds="_warning_1llsi_65",us="_vivid_1llsi_71",_s="_special_1llsi_77",ps="_accent_1llsi_84",fs="_blue_1llsi_90",gs="_lovely_1llsi_96",hs="_dreamy_1llsi_102",me={tag:ts,label:rs,iconWrapper:as,medium:ss,large:ns,disabled:os,neutral:is,positive:ls,negative:cs,warning:ds,vivid:us,special:_s,accent:ps,blue:fs,lovely:gs,dreamy:hs},ys=y.forwardRef((e,a)=>{const{className:r,children:s,componentStyle:i="neutral",size:n="medium",disabled:c=!1,showLabel:u=!!s,slotStart:d,slotEnd:p,slotStartWrapperProps:f={},slotEndWrapperProps:b={},"data-testid":m}=e,{className:h,...v}=f,{className:E,...S}=b;return o.jsxs("div",{className:z.clsx(me.tag,me[n],me[i],{[me.disabled]:c,[je["typography-label-3-regular"]]:n==="medium",[je["typography-subtitle-1-semibold"]]:n==="large"},r),"data-testid":m||"tag-component",ref:a,children:[d&&o.jsx("span",{className:z.clsx([me.iconWrapper,h]),...v,children:d}),u&&o.jsx("span",{className:z.clsx([me.label]),children:s}),p&&o.jsx("span",{className:z.clsx([me.iconWrapper,E]),...S,children:p})]})}),bs="_checkbox_17txq_43",ms="_input_17txq_64",xs="_icon_17txq_72",vs="_container_17txq_92",Cs="_error_17txq_143",ws="_checkboxWrapper_17txq_156",Ss="_medium_17txq_211",Es="_large_17txq_216",Ls="_label_17txq_258",pe={checkbox:bs,input:ms,icon:xs,container:vs,error:Cs,checkboxWrapper:ws,medium:Ss,large:Es,label:Ls},ks=({width:e=12,height:a=9,className:r="",color:s="currentColor",...i})=>o.jsx("svg",{className:r,width:e,height:a,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),js=({width:e=12,height:a=2,className:r="",color:s="currentColor",...i})=>o.jsx("svg",{className:r,width:e,height:a,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),Rs={medium:{width:10.83,height:7.5},large:{width:13,height:9}},$s=({size:e,isChecked:a,isDisabled:r,indeterminate:s,dataTestId:i})=>{const{width:n,height:c}=Rs[e];return o.jsx("div",{className:pe.icon,"data-testid":`${i}-icon`,"data-checked":a,"data-disabled":r,"data-indeterminate":s,children:s?o.jsx(js,{width:n,height:c}):o.jsx(ks,{width:n,height:c})})},Ms=y.forwardRef((e,a)=>{const{name:r,value:s,size:i="medium",indeterminate:n=!1,loading:c=!1,error:u,disabled:d=!1,containerClassName:p,className:f,containerStyle:b,style:m,children:h,clickableLabel:v=!0,tabIndex:E,onChange:S,"data-testid":C="checkbox"}=e,[g,M]=y.useState(!1),P=s??g,N=d||c,$=!!u,I=P||n,D=z.clsx(pe.container,pe[i],p),W=z.clsx(pe.checkbox,pe[i],{[pe.error]:$},f),F=k=>{N||(M(k.target.checked),S==null||S(k.target.checked,k))},B=k=>{if(k.key==="Enter"&&!N){k.preventDefault();const O=!I;M(O),S==null||S(O)}},T=k=>{v||k.preventDefault()},x=k=>k.stopPropagation();return o.jsxs("label",{className:D,htmlFor:r,style:b,"data-testid":C,"data-clickable-label":v,children:[o.jsx("div",{className:pe.checkboxWrapper,children:o.jsxs("div",{tabIndex:E||0,className:W,style:m,onKeyDown:B,"aria-checked":I,"aria-disabled":N,"aria-invalid":$,"aria-describedby":u?`${r}-error`:void 0,"data-testid":`${C}-label`,children:[o.jsx("input",{ref:a,type:"checkbox",id:r,name:r,checked:I,disabled:N,className:pe.input,onChange:F,onClick:x,"aria-checked":I,"aria-invalid":$,"aria-describedby":u?`${r}-error`:void 0,"data-testid":`${C}-input`}),o.jsx($s,{name:r,size:i,isChecked:I,isDisabled:N,indeterminate:n,dataTestId:C})]})}),h&&o.jsx("span",{"data-testid":`${C}-label-text`,"data-clickable-label":v,className:pe.label,onClick:T,children:h})]})}),Is="_typography_zt7xg_1",Ts="_disabled_zt7xg_8",As="_primary_zt7xg_13",Ns="_secondary_zt7xg_18",Ds="_tertiary_zt7xg_23",Os="_accent_zt7xg_28",qs="_positive_zt7xg_38",Ps="_negative_zt7xg_48",Us="_warning_zt7xg_58",Fs="_special_zt7xg_68",Bs="_contrast_zt7xg_78",ke={typography:Is,disabled:Ts,primary:As,secondary:Ns,tertiary:Ds,accent:Os,"accent-secondary":"_accent-secondary_zt7xg_33",positive:qs,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Ps,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Us,"warning-secondary":"_warning-secondary_zt7xg_63",special:Fs,"special-secondary":"_special-secondary_zt7xg_73",contrast:Bs,"contrast-secondary":"_contrast-secondary_zt7xg_83"},zs={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Ct=e=>{const a=kt.forwardRef(({size:r=3,children:s,className:i,"data-testid":n,as:c,fontWeight:u="semibold",disabled:d=!1,typographyStyle:p="primary",...f},b)=>{const m=c||zs[r],h=z.clsx(ke.typography,je[`typography-${e}-${r}-${u}`],ke[p],{[ke.disabled]:d},i);return s?o.jsx(m,{ref:b,className:h,"data-testid":n,...f,children:s}):null});return a.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,a},wt=e=>{const a=kt.forwardRef(({size:r=3,children:s,className:i,"data-testid":n,as:c="p",fontWeight:u="regular",disabled:d=!1,typographyStyle:p="primary",...f},b)=>{const m=c,h=z.clsx(ke.typography,je[`typography-${e}-${r}-${u}`],ke[p],{[ke.disabled]:d},i);return s?o.jsx(m,{ref:b,className:h,"data-testid":n,...f,children:s}):null});return a.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,a},Ws={Title:Ct("title"),Subtitle:Ct("subtitle"),Label:wt("label"),Paragraph:wt("paragraph")},Hs="_inputBase_1q54n_82",Gs="_wrapper_1q54n_92",Vs="_gripHandle_1q54n_172",Zs="_error_1q54n_238",Ys="_tabFocused_1q54n_245",Ks="_disabled_1q54n_270",Js="_loading_1q54n_277",Xs="_label_1q54n_287",Qs="_small_1q54n_301",en="_large_1q54n_308",tn="_leftSection_1q54n_315",rn="_rightSection_1q54n_327",an="_helper_1q54n_365",sn="_floatingLabel_1q54n_393",nn="_focused_1q54n_461",on="_filled_1q54n_462",ln="_medium_1q54n_503",cn="_characterLimit_1q54n_545",dn="_input_1q54n_82",un="_textarea_1q54n_110",_n="_truncate_1q54n_678",pn="_hint_1q54n_765",R={inputBase:Hs,wrapper:Gs,"textarea-wrapper":"_textarea-wrapper_1q54n_110",gripHandle:Vs,error:Zs,tabFocused:Ys,disabled:Ks,loading:Js,label:Xs,small:Qs,large:en,leftSection:tn,rightSection:rn,helper:an,floatingLabel:sn,focused:nn,filled:on,medium:ln,characterLimit:cn,input:dn,textarea:un,"size-small":"_size-small_1q54n_627","size-medium":"_size-medium_1q54n_633","size-large":"_size-large_1q54n_639","with-floating-label":"_with-floating-label_1q54n_646",truncate:_n,hint:pn,"has-hint":"_has-hint_1q54n_786","has-suffix":"_has-suffix_1q54n_792","has-limit":"_has-limit_1q54n_798"},fn=({width:e=8,height:a=8,className:r,color:s="#AABBCA"})=>o.jsx("svg",{width:e,height:a,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:s})}),At=({className:e="",style:a,size:r="md",color:s="currentColor",onClick:i,...n})=>{const u={display:"inline-block",color:s,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[r],...a};return o.jsx("svg",{className:e,style:u,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...n,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},gn=(e,a)=>{const r=y.useRef(null),s=y.useRef(null);return y.useEffect(()=>{const i=a==="textarea"?r.current:s.current;i&&i.value!==e&&(i.value=e||"")},[e,a]),{textareaRef:r,inputRef:s,currentRef:a==="textarea"?r:s}},hn=(e,a,r)=>{const s=()=>{if(!r.current||a!=="hug")return;const i=r.current.scrollTop;if(r.current.style.setProperty("height","auto","important"),!e)return;const n=r.current.scrollHeight+"px";r.current.style.setProperty("height",n,"important"),r.current.scrollTop=i;const c=r.current.closest(`.${R.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return y.useEffect(s,[e,a]),y.useEffect(()=>{a==="hug"&&r.current&&s()},[]),{resizeTextArea:s}},yn=(e,a,r,s)=>({handleGripMouseDown:y.useCallback(n=>{if(!e||a||r||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const c=n.currentTarget.closest(`.${R.wrapper}`);if(!c)return;const u=n.clientY,d=c.clientHeight,p=b=>{const m=b.clientY-u,h=Math.min(100,d),v=Math.max(h,d+m);c.style.height=`${v}px`},f=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",f)},[e,a,r,s])}),St=30,bn=y.forwardRef(({component:e="input",size:a="medium",value:r="",placeholder:s,disabled:i=!1,loading:n=!1,onFocus:c,onBlur:u,onChange:d,onKeyDown:p,onKeyUp:f,maxLength:b,className:m,style:h,truncate:v=!1,shouldShowFloatingLabelClass:E=!1,"aria-invalid":S,"aria-errormessage":C,id:g,resize:M,...P},N)=>{const{textareaRef:$,inputRef:I,currentRef:D}=gn(r,e);if(hn(r,M,$),y.useImperativeHandle(N,()=>D.current,[D]),e==="textarea")return o.jsx("textarea",{ref:$,id:g,value:r,placeholder:s,disabled:i||n,onFocus:c,onBlur:u,onChange:d,onKeyDown:p,onKeyUp:f,maxLength:b,className:z.clsx(R.textarea,R[`size-${a}`],E&&R["with-floating-label"],m),style:h,"aria-invalid":S,"aria-errormessage":C,"aria-describedby":C?`${g}-error`:void 0,tabIndex:0,"data-resize":M,...P});if(e==="input")return o.jsx("input",{ref:I,id:g,value:r,placeholder:s,disabled:i||n,onFocus:c,onBlur:u,onChange:d,onKeyDown:p,onKeyUp:f,maxLength:b,className:z.clsx(R.input,R[`size-${a}`],E&&R["with-floating-label"],v&&R.truncate,m),style:h,"aria-invalid":S,"aria-errormessage":C,"aria-describedby":C?`${g}-error`:void 0,tabIndex:0,...P});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),Nt=y.forwardRef(({children:e,size:a="medium",error:r=!1,disabled:s=!1,loading:i=!1,className:n,wrapperProps:c,wrapperStyles:u,floatingLabelStyles:d,prefixStyles:p,suffixStyles:f,labelProps:b,helperProps:m,showLimit:h=!1,maxLength:v,hint:E,showHint:S=!1,showHintOnEmpty:C=!1,prefix:g,suffix:M,onSuffixClick:P,placeholder:N,showLabel:$=!0,labelClassName:I,hasValue:D=!1,helper:W,id:F,value:B="",resize:T,showGrip:x=!1,...k},O)=>{const U=y.useId(),G=F||U,X=S&&E&&(D||C),ae=E&&E.length>St?E.substring(0,St)+"...":E,Y=z.clsx(R.wrapper,r&&R.error,s&&R.disabled,i&&R.loading,X&&R["has-hint"],M&&R["has-suffix"],h&&R["has-limit"],n),ne=z.clsx(R.floatingLabel,R[a],D&&R.filled,I),{handleGripMouseDown:Q}=yn(x,s,i,T);return o.jsxs("div",{ref:O,className:R.inputBase,"data-testid":"input-base-wrapper",...k,children:[o.jsxs("div",{className:Y,style:u,"data-resize":T,"data-show-grip":x?"true":"false",...c,children:[g&&o.jsx("label",{htmlFor:G,className:R.leftSection,style:p,children:g}),M&&o.jsx("label",{htmlFor:G,className:R.rightSection,style:f,onClick:P,children:M}),N&&$&&o.jsx("label",{htmlFor:G,className:ne,style:d,...b,children:N}),e,x&&!h&&(T==="fixed"||!T)&&o.jsx("div",{className:R.gripHandle,onMouseDown:Q,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(fn,{})}),X&&o.jsx("div",{className:z.clsx(R.hint,D&&R.truncate),"data-disabled":s||i,children:ae}),h&&v&&o.jsxs("div",{className:R.characterLimit,children:[(B||"").length," из ",v]})]}),W&&o.jsx("div",{className:z.clsx(R.helper,r&&R.error,(s||i)&&R.disabled),...m,id:r?`${G}-error`:void 0,children:W})]})});Nt.displayName="InputWrapperComponent";const Et=Object.assign(bn,{Wrapper:Nt}),Dt=y.forwardRef(({component:e="input",size:a="medium",className:r,error:s=!1,disabled:i=!1,loading:n=!1,placeholder:c,showLabel:u=!0,labelClassName:d,helper:p,prefix:f,suffix:b,id:m,onFocus:h,onBlur:v,onKeyDown:E,onSuffixClick:S,onChange:C,value:g="",wrapperProps:M,wrapperStyles:P,floatingLabelStyles:N,prefixStyles:$,suffixStyles:I,textareaStyles:D,labelProps:W,helperProps:F,showLimit:B=!1,maxLength:T,inputProps:x,hint:k,showHint:O=!1,showHintOnEmpty:U=!1,truncate:G=!1,resize:X,showGrip:ae=!1,...Y},ne)=>{const Q=y.useId(),ge=m||Q,[Re,de]=y.useState(g),xe=g!==void 0?g:Re,ve=(xe||"").length>0,ye=xe||"",Ce=u&&(a==="large"||e==="textarea")&&!f,Ue=y.useCallback(K=>{var J;i||n||(h==null||h(),(J=x==null?void 0:x.onFocus)==null||J.call(x,K))},[h,x,i,n]),Ae=y.useCallback(K=>{var J;if(K.key==="Tab"){const le=K.target.closest(`.${R.wrapper}`);le&&le.classList.add(R.tabFocused)}(J=x==null?void 0:x.onKeyUp)==null||J.call(x,K)},[x]),Fe=y.useCallback(K=>{var le;const J=K.target.closest(`.${R.wrapper}`);J&&J.classList.remove(R.tabFocused),v==null||v(),(le=x==null?void 0:x.onBlur)==null||le.call(x,K)},[v,x]),Be=y.useCallback(K=>{var le;if(i||n)return;const J=K.target.value;de(J),C==null||C(J,K),(le=x==null?void 0:x.onChange)==null||le.call(x,K)},[C,x,i,n]);return y.useEffect(()=>{de(g||"")},[g]),o.jsx(Et.Wrapper,{ref:ne,size:a,error:s,disabled:i||n,loading:n,className:z.clsx(r,e==="textarea"&&R["textarea-wrapper"]),wrapperProps:M,wrapperStyles:P,floatingLabelStyles:N,prefixStyles:$,suffixStyles:I,labelProps:W,helperProps:F,showLimit:B,maxLength:T,hint:k,showHint:O,showHintOnEmpty:U,prefix:f,suffix:b,onSuffixClick:S,placeholder:c,showLabel:u,labelClassName:d,hasValue:ve,helper:p,id:ge,value:ye,showGrip:ae,resize:X,...Y,children:o.jsx(Et,{component:e,size:a,value:ye,placeholder:c,disabled:i,loading:n,onFocus:Ue,onBlur:Fe,onChange:Be,onKeyDown:E,onKeyUp:Ae,maxLength:T,truncate:G,"data-empty":!ve,shouldShowFloatingLabelClass:Ce,style:e==="textarea"?D:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${ge}-error`:void 0,id:ge,resize:X,...x})})}),te={SMALL:"small",MEDIUM:"medium",LARGE:"large"},mn=(e,a,r,s)=>{switch(e){case te.LARGE:return a&&r?"8px 16px 8px 16px":"16px 16px 16px 16px";case te.MEDIUM:return s?"12px 12px 12px 12px":"12px 12px 12px 16px";case te.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},xn=e=>{switch(e){case te.LARGE:return"56px";case te.MEDIUM:return"48px";case te.SMALL:return"40px";default:return"48px"}},vn=e=>{switch(e){case te.SMALL:return 8;case te.MEDIUM:case te.LARGE:return 12;default:return 12}},Cn=(e,a,r)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${r}px`}}),wn=(e,a,r)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${r}px`}}),Sn=(e,a,r)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:a},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${r}px`},suffixStyles:{right:`${r}px`}}),En=(e,a,r,s)=>{const i=xn(e),n=mn(e,a,r,s),c=vn(e);switch(e){case te.LARGE:return Cn(i,n,c);case te.MEDIUM:return wn(i,n,c);case te.SMALL:return Sn(i,n,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Ln=y.forwardRef(({value:e="",onChange:a,type:r="text",placeholder:s,maxLength:i,minLength:n,autoComplete:c,autoFocus:u,size:d=te.MEDIUM,inputProps:p,error:f,disabled:b,loading:m,helper:h,prefix:v,suffix:E,clearable:S=!1,id:C,showLabel:g=!0,onFocus:M,onBlur:P,onSuffixClick:N,onClear:$,className:I,truncate:D=!0,hint:W,showHint:F=!1,showHintOnEmpty:B=!1,wrapperProps:T,labelProps:x,helperProps:k,...O},U)=>{const G=(e||"").length>0,X=d===te.LARGE,ae=!!v,Y=X&&g&&!v,ne=S&&G&&!(b||m),Q=()=>{a==null||a(""),$==null||$()},ge=ne?o.jsx(At,{size:d===te.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:Q,style:{cursor:"pointer"},"data-testid":"x-icon"}):E,Re={type:r,minLength:n,autoComplete:c,autoFocus:u,...p},de=En(d,Y,G,ae);return o.jsx(Dt,{size:d,error:f,disabled:b||m,loading:m,helper:h,prefix:v,suffix:ge,id:C,showLabel:Y,onFocus:M,onBlur:P,onSuffixClick:N,onChange:a,value:e,placeholder:s,className:I,wrapperStyles:de.wrapperStyles,floatingLabelStyles:de.floatingLabelStyles,prefixStyles:de.prefixStyles,suffixStyles:de.suffixStyles,wrapperProps:T,labelProps:x,helperProps:k,showLimit:!1,maxLength:i,inputProps:Re,hint:W,showHint:F,showHintOnEmpty:B,truncate:D,...O})}),ie={SMALL:"small",MEDIUM:"medium"},Pe={SMALL:"12px",MEDIUM:"16px"},kn={SMALL:"xs",MEDIUM:"sm"},Oe={FILL:"fill",FIXED:"fixed"},Je={SMALL:"112px",MEDIUM:"56px"},Le={SMALL:"48px",MEDIUM:"22px"},_e={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},fe={SMALL:48,MEDIUM:56,LARGE:112},jn=(e,a)=>{if(e===ie.SMALL)return Je.SMALL;if(a)return`${a}px`;switch(e){case ie.MEDIUM:return Je.MEDIUM;default:return Je.MEDIUM}},Rn=(e,a)=>{if(e===ie.SMALL)return Le.SMALL;if(a)switch(a){case fe.SMALL:case fe.MEDIUM:return Le.MEDIUM;case fe.LARGE:return Le.SMALL;default:return Le.MEDIUM}switch(e){case ie.MEDIUM:return Le.MEDIUM;default:return Le.MEDIUM}},$n=(e,a,r)=>{if(e===ie.SMALL)return _e.SMALL;if(a)switch(a){case fe.SMALL:return _e.MEDIUM_WITH_PREFIX;case fe.MEDIUM:return r?_e.MEDIUM_FLOATING_LABEL:_e.MEDIUM;case fe.LARGE:return _e.MEDIUM;default:return _e.MEDIUM}switch(e){case ie.MEDIUM:return r?_e.MEDIUM_FLOATING_LABEL:_e.MEDIUM;default:return _e.MEDIUM}},Mn=(e,a)=>{if(e===ie.SMALL)return"small";if(a)switch(a){case fe.SMALL:return"small";case fe.MEDIUM:return"medium";case fe.LARGE:return"medium";default:return"medium"}return e},In=e=>kn[e.toUpperCase()],Tn=e=>Pe[e.toUpperCase()],An=(e,a,r,s)=>{const i=jn(e,a),n=Rn(e,a),c=$n(e,a,r);return{wrapperStyles:{minHeight:i,...s===Oe.FILL&&{height:"100%"},...s===Oe.FIXED&&a&&{height:i},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:e===ie.SMALL?Pe.SMALL:Pe.MEDIUM,transformOrigin:"left top",top:a===112&&r&&e===ie.MEDIUM?Pe.MEDIUM:void 0},suffixStyles:{right:Tn(e)},textareaStyles:{minHeight:n,...s===Oe.FILL&&{flex:1,minHeight:0},...s===Oe.FIXED&&a&&{height:n}}}},Nn=y.forwardRef(({value:e="",onChange:a,placeholder:r,maxLength:s,minLength:i,autoFocus:n,size:c=ie.MEDIUM,textareaProps:u,error:d,disabled:p,loading:f,helper:b,suffix:m,clearable:h=!1,id:v,showLabel:E=!0,onFocus:S,onBlur:C,onClear:g,onKeyDown:M,className:P,rows:N=1,showLimit:$=!1,wrapperProps:I,labelProps:D,helperProps:W,showGrip:F,minHeight:B,resize:T,...x},k)=>{const O=(e||"").length>0,U=E&&!!r&&(c===ie.SMALL||B!==48),G=h&&O&&!(p||f),X=()=>{a==null||a(""),g==null||g()},ae=G?o.jsx(At,{size:In(c),color:"var(--icon-secondary)",onClick:X,style:{cursor:"pointer"},"data-testid":"x-icon"}):m,Y=An(c,B,U&&O,T),ne=Mn(c,B),Q={rows:N,minLength:i,autoFocus:n,resize:T,...u};return o.jsx(Dt,{ref:k,component:"textarea",size:ne,error:d,disabled:p||f,loading:f,helper:b,suffix:ae,id:v,showLabel:U,onFocus:S,onBlur:C,onKeyDown:M,onChange:a,value:e||"",placeholder:r,className:P,"data-floating-label":U,wrapperStyles:Y.wrapperStyles,floatingLabelStyles:Y.floatingLabelStyles,suffixStyles:Y.suffixStyles,textareaStyles:Y.textareaStyles,wrapperProps:I,labelProps:D,helperProps:W,showLimit:$&&(B===112||c===ie.SMALL),maxLength:s,inputProps:Q,resize:T,showGrip:F,...x})}),Dn="_helper_1jq7j_16",Xe={helper:Dn,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},On=({title:e,error:a,className:r="",style:s,disabled:i=!1,"data-testid":n,"aria-label":c,"aria-describedby":u})=>{const d=!!a,p=z.clsx(Xe.helper,d&&Xe["helper--error"],i&&Xe["helper--disabled"],r),f=i?e:a||e;return o.jsx("div",{className:p,style:s,"data-testid":n,"aria-label":c,"aria-describedby":u,children:o.jsx("p",{children:f})})},qn="_radio_1q34w_54",Pn="_checked_1q34w_75",Un="_error_1q34w_80",Fn="_disabled_1q34w_89",Bn="_icon_1q34w_125",zn="_small_1q34w_133",Wn="_medium_1q34w_140",Hn="_large_1q34w_147",Gn="_label_1q34w_154",Vn="_container_1q34w_180",Zn="_input_1q34w_193",Yn="_card_1q34w_200",Kn="_smallCard_1q34w_206",Jn="_mediumCard_1q34w_210",Xn="_largeCard_1q34w_214",se={radio:qn,checked:Pn,error:Un,disabled:Fn,icon:Bn,small:zn,medium:Wn,large:Hn,label:Gn,container:Vn,input:Zn,card:Yn,smallCard:Kn,mediumCard:Jn,largeCard:Xn},Qn="radio-container-",eo="radio-label",Ot=y.forwardRef((e,a)=>{const{name:r,id:s,value:i,size:n="large",loading:c=!1,error:u,disabled:d=!1,checked:p=!1,containerClassName:f,className:b,children:m,clickable:h="all",mode:v="default",tabIndex:E,style:S,containerStyle:C,onChange:g,"data-testid":M,...P}=e,N=!!u,$=d||c,I=h==="all",D=v==="card",W=se[`${n}Card`],F=s??r,B=U=>{$||g==null||g(i,U)},T=U=>{U.key==="Enter"&&!$&&(U.preventDefault(),g==null||g(i))},x=U=>U.stopPropagation(),k=()=>o.jsxs("div",{className:z.clsx(se.radio,se[n],{[se.checked]:p,[se.disabled]:$,[se.error]:N&&!$},b),style:S,tabIndex:E||1,"data-testid":`${Qn}${F}`,children:[o.jsx("input",{"aria-errormessage":u,"aria-invalid":N,checked:p,className:se.input,"data-testid":`radio-${F}`,disabled:$,id:F,name:r,ref:a,type:"radio",value:i,onChange:B,onClick:x}),o.jsx("svg",{"data-testid":`radio-icon-${F}`,viewBox:"0 0 8 8",className:se.icon,children:o.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),O=()=>o.jsxs("label",{"aria-checked":p,"aria-disabled":$,"data-testid":I?M:eo,htmlFor:F,style:C,className:z.clsx(se.label,{[z.clsx(se.container,se[v],f)]:I,[W]:I&&D}),onKeyDown:T,...P,children:[k(),I&&m]});return I?O():o.jsxs("div",{className:z.clsx(se.container,se[v],f,{[W]:D}),"data-testid":M,children:[O(),m]})}),to="_group_o6mjt_7",ro="_vertical_o6mjt_12",ao="_horizontal_o6mjt_16",Lt={group:to,vertical:ro,horizontal:ao},so=y.forwardRef((e,a)=>{const{id:r,name:s,value:i,options:n,className:c,radioClassName:u,disabled:d=!1,layout:p="vertical","data-testid":f,...b}=e;return o.jsx("div",{className:he(Lt.group,Lt[p],c),"data-testid":f??`radio-group-${s}`,id:r,ref:a,children:n.map(({label:m,value:h,disabled:v})=>{const E=`${s}-${String(h)}`,S=String(h)===String(i);return o.jsx(Ot,{id:E,checked:S,"data-testid":E,disabled:d||v,name:s,value:h,className:u,...b,children:m},E)})})}),no=Object.assign(Ot,{Group:so}),oo="_root_1jj3e_25",io="_unordered_1jj3e_39",lo="_ordered_1jj3e_43",co="_sm_1jj3e_48",uo="_md_1jj3e_59",_o="_lg_1jj3e_70",po="_xl_1jj3e_81",Qe={root:oo,unordered:io,ordered:lo,sm:co,md:uo,lg:_o,xl:po},fo=e=>{const{children:a,className:r,"data-testid":s="list-item"}=e;return o.jsx("li",{"data-testid":s,className:r,children:a})},go=Object.assign(y.forwardRef((e,a)=>{const{variant:r="unordered",className:s,children:i,size:n="md","data-testid":c="list",...u}=e,d=r==="ordered"?"ol":"ul";return o.jsx(d,{"data-testid":c,ref:a,className:he(Qe.root,Qe[r],Qe[n],s),...r==="ordered"&&u,children:i})}),{Item:fo});exports.Avatar=va;exports.Badge=Ma;exports.Button=Vr;exports.Checkbox=Ms;exports.ConfigProvider=Qa;exports.Helper=On;exports.Image=Za;exports.List=go;exports.Loader=$t;exports.Radio=no;exports.Tag=ys;exports.TextArea=Nn;exports.TextInput=Ln;exports.Typography=Ws;exports.enUS=Mt;exports.ruRU=es;exports.useConfig=Tt;exports.useLocale=Ya;