@iota/apps-ui-kit 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/index.d.ts +23 -9
- package/dist/index.es.js +4093 -3989
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +43 -43
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/lib/components/atoms/button/button.classes.ts +4 -4
- package/src/lib/components/atoms/info-box/infoBox.classes.ts +7 -2
- package/src/lib/components/atoms/info-box/infoBox.enums.ts +2 -0
- package/src/lib/components/atoms/snackbar/snackbar.classes.ts +5 -1
- package/src/lib/components/atoms/snackbar/snackbar.enums.tsx +2 -0
- package/src/lib/components/atoms/tooltip/Tooltip.tsx +4 -1
- package/src/lib/components/atoms/visual-asset-card/VisualAssetCard.tsx +26 -18
- package/src/lib/components/molecules/address/Address.tsx +1 -1
- package/src/lib/components/molecules/card/CardAction.tsx +4 -2
- package/src/lib/components/molecules/input/input.classes.ts +2 -2
- package/src/lib/components/molecules/search/Search.tsx +34 -3
- package/src/lib/components/molecules/table-header-cell/TableHeaderCell.tsx +27 -13
- package/src/lib/components/organisms/accordion/Accordion.tsx +3 -5
- package/src/lib/components/organisms/dialog/Dialog.tsx +6 -5
- package/src/lib/components/organisms/navbar/Navbar.tsx +10 -10
- package/src/lib/constants/colors.constants.ts +5 -0
- package/src/lib/styles/index.css +13 -0
- package/src/lib/tailwind/base.presets.ts +2 -0
- package/src/lib/tailwind/plugins.ts +8 -0
- package/src/storybook/stories/organisms/Navbar.stories.tsx +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(k,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(k=typeof globalThis<"u"?globalThis:k||self,te(k["@iota/apps-ui-kit"]={},k.React,k.ReactDOM))})(this,function(k,te,Ea){"use strict";function Ca(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=Ca(te),ja=Ca(Ea);var St=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e))(St||{});const We=(e,t=16)=>`${e/t}rem`;function Ra(e){return Object.entries(e).reduce((r,[n,o])=>(r[n]=`${o}px`,r),{})}const Ta={primary:{0:"#000000",10:"#061244",20:"#182b8a",30:"#3131ff",40:"#2563f5",50:"#3f80f0",60:"#5b9cfe",70:"#85b5fb",80:"#adceff",90:"#d5e8ff",100:"#ffffff"},secondary:{0:"#000000",10:"#051631",20:"#17345f",30:"#2d4c7a",40:"#4b648a",50:"#637ca2",60:"#7e97bd",70:"#96b3d5",80:"#b6cde8",90:"#dde9f7",100:"#ffffff"},tertiary:{0:"#000000",10:"#071f22",20:"#18393b",30:"#185b60",40:"#317479",50:"#498c91",60:"#64a7ac",70:"#7fc2c7",80:"#9adde2",90:"#c2f1f4",100:"#ffffff"},error:{0:"#000000",10:"#330009",20:"#610012",30:"#b51431",40:"#ce2d4a",50:"#e64562",60:"#ff607d",70:"#ff889e",80:"#ffb0be",90:"#ffd9e0",100:"#ffffff"},neutral:{0:"#000000",4:"#0a0f17",6:"#0f141c",10:"#171d26",12:"#1c212b",20:"#253041",30:"#3c4656",40:"#545e6e",50:"#6e7787",60:"#8892a1",70:"#a8b2c0",80:"#cad4e2",90:"#dde4f0",92:"#e3eaf6",96:"#eff4fa",98:"#f8fafc",100:"#ffffff"}},Oa={"shader-primary-dark":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7"},"shader-inverted-dark":{0:"#002f6d00",8:"#002f6d14",12:"#002f6d1e",16:"#002f6d28",48:"#002f6d7a",72:"#002f6db7"},"shader-neutral-dark":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7"},"shader-primary-light":{0:"#0067ee00",8:"#0067ee14",12:"#0067ee1e",16:"#0067ee28",48:"#0067ee7a",72:"#0067eeb7"},"shader-inverted-light":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7"},"shader-neutral-light":{0:"#002f6d00",8:"#002f6d14",12:"#002f6d1e",16:"#002f6d28",48:"#002f6d7a",72:"#002f6db7"}},es={none:We(0),sm:We(2),DEFAULT:We(4),md:We(6),lg:We(8),xl:We(12),"2xl":We(16),"3xl":We(24),full:We(120)},ts={none:We(0),xxxs:We(2),xxs:We(4),xs:We(8),sm:We(12),md:We(16),lg:We(24),xl:We(32),"2xl":We(48)},rs={0:"0",8:"0.08",12:"0.12",16:"0.16",40:"0.4",60:"0.6",80:"0.8",100:"1"},ns={...{"text-label-sm":["11px",{lineHeight:"16px",letterSpacing:"0.2px",fontWeight:500}],"text-label-md":["12px",{lineHeight:"16px",letterSpacing:"-0.1px",fontWeight:500}],"text-label-lg":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:500}]},...{"text-body-sm":["12px",{lineHeight:"16px",letterSpacing:"0.1px",fontWeight:400}],"text-body-md":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:400}],"text-body-lg":["16px",{lineHeight:"24px",letterSpacing:"0.1px",fontWeight:400}]},...{"text-body-ds-sm":["12px",{lineHeight:"16px",letterSpacing:"0.1px",fontWeight:400}],"text-body-ds-md":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:400}],"text-body-ds-lg":["16px",{lineHeight:"24px",letterSpacing:"0.2px",fontWeight:400}]},...{"text-title-sm":["14px",{lineHeight:"120%",letterSpacing:"-0.1px",fontWeight:500}],"text-title-md":["16px",{lineHeight:"120%",letterSpacing:"-0.15px",fontWeight:500}],"text-title-lg":["20px",{lineHeight:"120%",letterSpacing:"-0.4px",fontWeight:500}]},...{"text-headline-sm":["24px",{lineHeight:"120%",letterSpacing:"-0.2px",fontWeight:500}],"text-headline-md":["28px",{lineHeight:"120%",letterSpacing:"-0.4px",fontWeight:500}],"text-headline-lg":["32px",{lineHeight:"120%",letterSpacing:"-0.4px",fontWeight:500}]},...{"text-display-sm":["36px",{lineHeight:"120%",fontWeight:500}],"text-display-md":["48px",{lineHeight:"120%",fontWeight:500}],"text-display-lg":["60px",{lineHeight:"120%",fontWeight:500}]}},as=Object.entries(ns).reduce((e,[t,r])=>{const n=t.startsWith("text-")?t.replace("text-",""):t;return{...e,[n]:r}},{}),Na={"xs--rs":["4px","8px"],"sm--rs":["8px","12px"],"md--rs":["16px","24px"]};function os(e,t){const r=[St.Sm,St.Md,St.Lg,St.Xl],n=Na[e];let o=`${n[0]}`;for(let s=1;s<n.length;s++)if(n[s]){const c=t[r[s]];c&&(o=`clamp(${o}, (100vw - ${c}) * 99, ${n[s]})`)}return o}function is(e){return Object.keys(Na).reduce((r,n)=>{const o=os(n,e);return{...r,[n]:o}},{})}const ka={content:["./src/**/*.{html,js,jsx,ts,tsx}"],darkMode:"class",theme:{extend:{fontSize:{...as},borderRadius:{...es},spacing:e=>{const t=e.theme("screens"),r=is(t);return{...ts,...r}},opacity:{...rs,30:"0.3"},colors:{...Ta,...Oa},fontFamily:{"alliance-no2":["AllianceNo2","sans-serif"],inter:["Inter","sans-serif"]}}}};var on=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Aa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sn={exports:{}};sn.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,s=16,c=9007199254740991,f="[object Arguments]",x="[object Array]",m="[object AsyncFunction]",_="[object Boolean]",b="[object Date]",j="[object Error]",T="[object Function]",N="[object GeneratorFunction]",O="[object Map]",M="[object Number]",P="[object Null]",$="[object Object]",H="[object Proxy]",Y="[object RegExp]",U="[object Set]",ie="[object String]",Q="[object Undefined]",K="[object WeakMap]",pe="[object ArrayBuffer]",Pe="[object DataView]",He="[object Float32Array]",Xe="[object Float64Array]",Ne="[object Int8Array]",je="[object Int16Array]",Re="[object Int32Array]",J="[object Uint8Array]",F="[object Uint8ClampedArray]",ne="[object Uint16Array]",we="[object Uint32Array]",Oe=/[\\^$.*+?()[\]{}|]/g,Se=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,R={};R[He]=R[Xe]=R[Ne]=R[je]=R[Re]=R[J]=R[F]=R[ne]=R[we]=!0,R[f]=R[x]=R[pe]=R[_]=R[Pe]=R[b]=R[j]=R[T]=R[O]=R[M]=R[$]=R[Y]=R[U]=R[ie]=R[K]=!1;var oe=typeof on=="object"&&on&&on.Object===Object&&on,de=typeof self=="object"&&self&&self.Object===Object&&self,le=oe||de||Function("return this")(),ge=t&&!t.nodeType&&t,ve=ge&&!0&&e&&!e.nodeType&&e,xe=ve&&ve.exports===ge,he=xe&&oe.process,Fe=function(){try{var u=ve&&ve.require&&ve.require("util").types;return u||he&&he.binding&&he.binding("util")}catch{}}(),yt=Fe&&Fe.isTypedArray;function ct(u,h,w){switch(w.length){case 0:return u.call(h);case 1:return u.call(h,w[0]);case 2:return u.call(h,w[0],w[1]);case 3:return u.call(h,w[0],w[1],w[2])}return u.apply(h,w)}function It(u,h){for(var w=-1,q=Array(u);++w<u;)q[w]=h(w);return q}function ft(u){return function(h){return u(h)}}function tt(u,h){return u==null?void 0:u[h]}function V(u,h){return function(w){return u(h(w))}}var G=Array.prototype,ae=Function.prototype,ue=Object.prototype,Ae=le["__core-js_shared__"],be=ae.toString,ce=ue.hasOwnProperty,qe=function(){var u=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Ye=ue.toString,Ze=be.call(Object),rt=RegExp("^"+be.call(ce).replace(Oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),st=xe?le.Buffer:void 0,Lt=le.Symbol,Rt=le.Uint8Array;st&&st.allocUnsafe;var dt=V(Object.getPrototypeOf,Object),Tt=Object.create,vr=ue.propertyIsEnumerable,mr=G.splice,Qe=Lt?Lt.toStringTag:void 0,_t=function(){try{var u=xr(Object,"defineProperty");return u({},"",{}),u}catch{}}(),hr=st?st.isBuffer:void 0,zt=Math.max,Ot=Date.now,wt=xr(le,"Map"),et=xr(Object,"create"),it=function(){function u(){}return function(h){if(!At(h))return{};if(Tt)return Tt(h);u.prototype=h;var w=new u;return u.prototype=void 0,w}}();function Ge(u){var h=-1,w=u==null?0:u.length;for(this.clear();++h<w;){var q=u[h];this.set(q[0],q[1])}}function vt(){this.__data__=et?et(null):{},this.size=0}function Kt(u){var h=this.has(u)&&delete this.__data__[u];return this.size-=h?1:0,h}function Xt(u){var h=this.__data__;if(et){var w=h[u];return w===n?void 0:w}return ce.call(h,u)?h[u]:void 0}function qt(u){var h=this.__data__;return et?h[u]!==void 0:ce.call(h,u)}function Zt(u,h){var w=this.__data__;return this.size+=this.has(u)?0:1,w[u]=et&&h===void 0?n:h,this}Ge.prototype.clear=vt,Ge.prototype.delete=Kt,Ge.prototype.get=Xt,Ge.prototype.has=qt,Ge.prototype.set=Zt;function nt(u){var h=-1,w=u==null?0:u.length;for(this.clear();++h<w;){var q=u[h];this.set(q[0],q[1])}}function ht(){this.__data__=[],this.size=0}function Mt(u){var h=this.__data__,w=Ie(h,u);if(w<0)return!1;var q=h.length-1;return w==q?h.pop():mr.call(h,w,1),--this.size,!0}function Ft(u){var h=this.__data__,w=Ie(h,u);return w<0?void 0:h[w][1]}function Bt(u){return Ie(this.__data__,u)>-1}function Jt(u,h){var w=this.__data__,q=Ie(w,u);return q<0?(++this.size,w.push([u,h])):w[q][1]=h,this}nt.prototype.clear=ht,nt.prototype.delete=Mt,nt.prototype.get=Ft,nt.prototype.has=Bt,nt.prototype.set=Jt;function pt(u){var h=-1,w=u==null?0:u.length;for(this.clear();++h<w;){var q=u[h];this.set(q[0],q[1])}}function pr(){this.size=0,this.__data__={hash:new Ge,map:new(wt||nt),string:new Ge}}function Qt(u){var h=Ut(this,u).delete(u);return this.size-=h?1:0,h}function v(u){return Ut(this,u).get(u)}function l(u){return Ut(this,u).has(u)}function p(u,h){var w=Ut(this,u),q=w.size;return w.set(u,h),this.size+=w.size==q?0:1,this}pt.prototype.clear=pr,pt.prototype.delete=Qt,pt.prototype.get=v,pt.prototype.has=l,pt.prototype.set=p;function C(u){var h=this.__data__=new nt(u);this.size=h.size}function B(){this.__data__=new nt,this.size=0}function Z(u){var h=this.__data__,w=h.delete(u);return this.size=h.size,w}function z(u){return this.__data__.get(u)}function W(u){return this.__data__.has(u)}function ee(u,h){var w=this.__data__;if(w instanceof nt){var q=w.__data__;if(!wt||q.length<r-1)return q.push([u,h]),this.size=++w.size,this;w=this.__data__=new pt(q)}return w.set(u,h),this.size=w.size,this}C.prototype.clear=B,C.prototype.delete=Z,C.prototype.get=z,C.prototype.has=W,C.prototype.set=ee;function me(u,h){var w=en(u),q=!w&&Dr(u),_e=!w&&!q&&tn(u),ke=!w&&!q&&!_e&&In(u),Me=w||q||_e||ke,Te=Me?It(u.length,String):[],a=Te.length;for(var d in u)Me&&(d=="length"||_e&&(d=="offset"||d=="parent")||ke&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Zr(d,a))||Te.push(d);return Te}function se(u,h,w){(w!==void 0&&!Pr(u[h],w)||w===void 0&&!(h in u))&&ze(u,h,w)}function ye(u,h,w){var q=u[h];(!(ce.call(u,h)&&Pr(q,w))||w===void 0&&!(h in u))&&ze(u,h,w)}function Ie(u,h){for(var w=u.length;w--;)if(Pr(u[w][0],h))return w;return-1}function ze(u,h,w){h=="__proto__"&&_t?_t(u,h,{configurable:!0,enumerable:!0,value:w,writable:!0}):u[h]=w}var Le=qr();function Be(u){return u==null?u===void 0?Q:P:Qe&&Qe in Object(u)?Nr(u):Ar(u)}function Nt(u){return br(u)&&Be(u)==f}function gr(u){if(!At(u)||kr(u))return!1;var h=rn(u)?rt:Se;return h.test(ya(u))}function Vt(u){return br(u)&&nn(u.length)&&!!R[Be(u)]}function Cn(u){if(!At(u))return An(u);var h=Jr(u),w=[];for(var q in u)q=="constructor"&&(h||!ce.call(u,q))||w.push(q);return w}function Kr(u,h,w,q,_e){u!==h&&Le(h,function(ke,Me){if(_e||(_e=new C),At(ke))jn(u,h,Me,w,Kr,q,_e);else{var Te=q?q(kt(u,Me),ke,Me+"",u,h,_e):void 0;Te===void 0&&(Te=ke),se(u,Me,Te)}},yr)}function jn(u,h,w,q,_e,ke,Me){var Te=kt(u,w),a=kt(h,w),d=Me.get(a);if(d){se(u,w,d);return}var y=ke?ke(Te,a,w+"",u,h,Me):void 0,E=y===void 0;if(E){var L=en(a),re=!L&&tn(a),X=!L&&!re&&In(a);y=a,L||re||X?en(Te)?y=Te:Dn(Te)?y=ma(Te):re?(E=!1,y=On(a)):X?(E=!1,y=kn(a)):y=[]:_a(a)||Dr(a)?(y=Te,Dr(Te)?y=Ln(Te):(!At(Te)||rn(Te))&&(y=pa(a))):E=!1}E&&(Me.set(a,y),_e(y,a,q,ke,Me),Me.delete(a)),se(u,w,y)}function Rn(u,h){return Qr(ba(u,h,an),u+"")}var Tn=_t?function(u,h){return _t(u,"toString",{configurable:!0,enumerable:!1,value:er(h),writable:!0})}:an;function On(u,h){return u.slice()}function Nn(u){var h=new u.constructor(u.byteLength);return new Rt(h).set(new Rt(u)),h}function kn(u,h){var w=Nn(u.buffer);return new u.constructor(w,u.byteOffset,u.length)}function ma(u,h){var w=-1,q=u.length;for(h||(h=Array(q));++w<q;)h[w]=u[w];return h}function ha(u,h,w,q){var _e=!w;w||(w={});for(var ke=-1,Me=h.length;++ke<Me;){var Te=h[ke],a=void 0;a===void 0&&(a=u[Te]),_e?ze(w,Te,a):ye(w,Te,a)}return w}function Xr(u){return Rn(function(h,w){var q=-1,_e=w.length,ke=_e>1?w[_e-1]:void 0,Me=_e>2?w[2]:void 0;for(ke=u.length>3&&typeof ke=="function"?(_e--,ke):void 0,Me&&ga(w[0],w[1],Me)&&(ke=_e<3?void 0:ke,_e=1),h=Object(h);++q<_e;){var Te=w[q];Te&&u(h,Te,q,ke)}return h})}function qr(u){return function(h,w,q){for(var _e=-1,ke=Object(h),Me=q(h),Te=Me.length;Te--;){var a=Me[++_e];if(w(ke[a],a,ke)===!1)break}return h}}function Ut(u,h){var w=u.__data__;return xa(h)?w[typeof h=="string"?"string":"hash"]:w.map}function xr(u,h){var w=tt(u,h);return gr(w)?w:void 0}function Nr(u){var h=ce.call(u,Qe),w=u[Qe];try{u[Qe]=void 0;var q=!0}catch{}var _e=Ye.call(u);return q&&(h?u[Qe]=w:delete u[Qe]),_e}function pa(u){return typeof u.constructor=="function"&&!Jr(u)?it(dt(u)):{}}function Zr(u,h){var w=typeof u;return h=h??c,!!h&&(w=="number"||w!="symbol"&&g.test(u))&&u>-1&&u%1==0&&u<h}function ga(u,h,w){if(!At(w))return!1;var q=typeof h;return(q=="number"?Ir(w)&&Zr(h,w.length):q=="string"&&h in w)?Pr(w[h],u):!1}function xa(u){var h=typeof u;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?u!=="__proto__":u===null}function kr(u){return!!qe&&qe in u}function Jr(u){var h=u&&u.constructor,w=typeof h=="function"&&h.prototype||ue;return u===w}function An(u){var h=[];if(u!=null)for(var w in Object(u))h.push(w);return h}function Ar(u){return Ye.call(u)}function ba(u,h,w){return h=zt(h===void 0?u.length-1:h,0),function(){for(var q=arguments,_e=-1,ke=zt(q.length-h,0),Me=Array(ke);++_e<ke;)Me[_e]=q[h+_e];_e=-1;for(var Te=Array(h+1);++_e<h;)Te[_e]=q[_e];return Te[h]=w(Me),ct(u,this,Te)}}function kt(u,h){if(!(h==="constructor"&&typeof u[h]=="function")&&h!="__proto__")return u[h]}var Qr=Pn(Tn);function Pn(u){var h=0,w=0;return function(){var q=Ot(),_e=s-(q-w);if(w=q,_e>0){if(++h>=o)return arguments[0]}else h=0;return u.apply(void 0,arguments)}}function ya(u){if(u!=null){try{return be.call(u)}catch{}try{return u+""}catch{}}return""}function Pr(u,h){return u===h||u!==u&&h!==h}var Dr=Nt(function(){return arguments}())?Nt:function(u){return br(u)&&ce.call(u,"callee")&&!vr.call(u,"callee")},en=Array.isArray;function Ir(u){return u!=null&&nn(u.length)&&!rn(u)}function Dn(u){return br(u)&&Ir(u)}var tn=hr||Mn;function rn(u){if(!At(u))return!1;var h=Be(u);return h==T||h==N||h==m||h==H}function nn(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=c}function At(u){var h=typeof u;return u!=null&&(h=="object"||h=="function")}function br(u){return u!=null&&typeof u=="object"}function _a(u){if(!br(u)||Be(u)!=$)return!1;var h=dt(u);if(h===null)return!0;var w=ce.call(h,"constructor")&&h.constructor;return typeof w=="function"&&w instanceof w&&be.call(w)==Ze}var In=yt?ft(yt):Vt;function Ln(u){return ha(u,yr(u))}function yr(u){return Ir(u)?me(u):Cn(u)}var wa=Xr(function(u,h,w){Kr(u,h,w)});function er(u){return function(){return u}}function an(u){return u}function Mn(){return!1}e.exports=wa}(sn,sn.exports);var ss=sn.exports;const Pa=Aa(ss),ls={[St.Sm]:768,[St.Md]:1024,[St.Lg]:1400,[St.Xl]:1920},Da=Ra(ls),us=Pa({},ka,{theme:{screens:Da,container:{center:!0,screens:Da,padding:{DEFAULT:We(24),md:We(48),lg:We(120),xl:We(240)}}}}),cs=Ra({default:0}),fs=Pa({},ka,{theme:{screens:cs},corePlugins:{container:!1}});var Bn={exports:{}},Lr={};/**
|
|
1
|
+
(function(N,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(N=typeof globalThis<"u"?globalThis:N||self,te(N["@iota/apps-ui-kit"]={},N.React,N.ReactDOM))})(this,function(N,te,Ra){"use strict";function Ta(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=Ta(te),Oa=Ta(Ra);var jt=(e=>(e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e))(jt||{});const Ue=(e,t=16)=>`${e/t}rem`;function ka(e){return Object.entries(e).reduce((r,[n,i])=>(r[n]=`${i}px`,r),{})}const Na={primary:{0:"#000000",10:"#061244",20:"#182b8a",30:"#3131ff",40:"#2563f5",50:"#3f80f0",60:"#5b9cfe",70:"#85b5fb",80:"#adceff",90:"#d5e8ff",100:"#ffffff"},secondary:{0:"#000000",10:"#051631",20:"#17345f",30:"#2d4c7a",40:"#4b648a",50:"#637ca2",60:"#7e97bd",70:"#96b3d5",80:"#b6cde8",90:"#dde9f7",100:"#ffffff"},tertiary:{0:"#000000",10:"#071f22",20:"#18393b",30:"#185b60",40:"#317479",50:"#498c91",60:"#64a7ac",70:"#7fc2c7",80:"#9adde2",90:"#c2f1f4",100:"#ffffff"},error:{0:"#000000",10:"#330009",20:"#610012",30:"#b51431",40:"#ce2d4a",50:"#e64562",60:"#ff607d",70:"#ff889e",80:"#ffb0be",90:"#ffd9e0",100:"#ffffff"},neutral:{0:"#000000",4:"#0a0f17",6:"#0f141c",10:"#171d26",12:"#1c212b",20:"#253041",30:"#3c4656",40:"#545e6e",50:"#6e7787",60:"#8892a1",70:"#a8b2c0",80:"#cad4e2",90:"#dde4f0",92:"#e3eaf6",96:"#eff4fa",98:"#f8fafc",100:"#ffffff"},warning:{10:"#422C00",20:"#2D1E00",90:"#FFE3AB"}},Pa={"shader-primary-dark":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7"},"shader-inverted-dark":{0:"#002f6d00",8:"#002f6d14",12:"#002f6d1e",16:"#002f6d28",48:"#002f6d7a",72:"#002f6db7"},"shader-neutral-dark":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7"},"shader-primary-light":{0:"#0067ee00",8:"#0067ee14",12:"#0067ee1e",16:"#0067ee28",48:"#0067ee7a",72:"#0067eeb7"},"shader-inverted-light":{0:"#bed8ff00",8:"#bed8ff14",12:"#bed8ff1e",16:"#bed8ff28",48:"#bed8ff7a",72:"#bed8ffb7"},"shader-neutral-light":{0:"#002f6d00",8:"#002f6d14",12:"#002f6d1e",16:"#002f6d28",48:"#002f6d7a",72:"#002f6db7"}},is={none:Ue(0),sm:Ue(2),DEFAULT:Ue(4),md:Ue(6),lg:Ue(8),xl:Ue(12),"2xl":Ue(16),"3xl":Ue(24),full:Ue(120)},os={none:Ue(0),xxxs:Ue(2),xxs:Ue(4),xs:Ue(8),sm:Ue(12),md:Ue(16),lg:Ue(24),xl:Ue(32),"2xl":Ue(48)},ss={0:"0",8:"0.08",12:"0.12",16:"0.16",40:"0.4",60:"0.6",80:"0.8",100:"1"},ls={...{"text-label-sm":["11px",{lineHeight:"16px",letterSpacing:"0.2px",fontWeight:500}],"text-label-md":["12px",{lineHeight:"16px",letterSpacing:"-0.1px",fontWeight:500}],"text-label-lg":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:500}]},...{"text-body-sm":["12px",{lineHeight:"16px",letterSpacing:"0.1px",fontWeight:400}],"text-body-md":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:400}],"text-body-lg":["16px",{lineHeight:"24px",letterSpacing:"0.1px",fontWeight:400}]},...{"text-body-ds-sm":["12px",{lineHeight:"16px",letterSpacing:"0.1px",fontWeight:400}],"text-body-ds-md":["14px",{lineHeight:"20px",letterSpacing:"-0.1px",fontWeight:400}],"text-body-ds-lg":["16px",{lineHeight:"24px",letterSpacing:"0.2px",fontWeight:400}]},...{"text-title-sm":["14px",{lineHeight:"120%",letterSpacing:"-0.1px",fontWeight:500}],"text-title-md":["16px",{lineHeight:"120%",letterSpacing:"-0.15px",fontWeight:500}],"text-title-lg":["20px",{lineHeight:"120%",letterSpacing:"-0.4px",fontWeight:500}]},...{"text-headline-sm":["24px",{lineHeight:"120%",letterSpacing:"-0.2px",fontWeight:500}],"text-headline-md":["28px",{lineHeight:"120%",letterSpacing:"-0.4px",fontWeight:500}],"text-headline-lg":["32px",{lineHeight:"120%",letterSpacing:"-0.4px",fontWeight:500}]},...{"text-display-sm":["36px",{lineHeight:"120%",fontWeight:500}],"text-display-md":["48px",{lineHeight:"120%",fontWeight:500}],"text-display-lg":["60px",{lineHeight:"120%",fontWeight:500}]}},us=Object.entries(ls).reduce((e,[t,r])=>{const n=t.startsWith("text-")?t.replace("text-",""):t;return{...e,[n]:r}},{}),Aa={"xs--rs":["4px","8px"],"sm--rs":["8px","12px"],"md--rs":["16px","24px"]};function cs(e,t){const r=[jt.Sm,jt.Md,jt.Lg,jt.Xl],n=Aa[e];let i=`${n[0]}`;for(let s=1;s<n.length;s++)if(n[s]){const c=t[r[s]];c&&(i=`clamp(${i}, (100vw - ${c}) * 99, ${n[s]})`)}return i}function fs(e){return Object.keys(Aa).reduce((r,n)=>{const i=cs(n,e);return{...r,[n]:i}},{})}var on=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Da={},Ia={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});function t(n,i){return{handler:n,config:i}}t.withOptions=function(n,i=()=>({})){const s=function(c){return{__options:c,handler:n(c),config:i(c)}};return s.__isOptionsFunction=!0,s.__pluginFunction=n,s.__configFunction=i,s};const r=t})(Ia),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});const t=r(Ia);function r(i){return i.__esModule?i:{default:i}}const n=t.default}(Da);let Vn=Da;var ds=(Vn.__esModule?Vn:{default:Vn}).default;const vs=Bn(ds)(({addVariant:e})=>{e("firefox","@-moz-document url-prefix()")}),La={content:["./src/**/*.{html,js,jsx,ts,tsx}"],darkMode:"class",plugins:[vs],theme:{extend:{fontSize:{...us},borderRadius:{...is},spacing:e=>{const t=e.theme("screens"),r=fs(t);return{...os,...r}},opacity:{...ss,30:"0.3"},colors:{...Na,...Pa},fontFamily:{"alliance-no2":["AllianceNo2","sans-serif"],inter:["Inter","sans-serif"]}}}};var sn={exports:{}};sn.exports,function(e,t){var r=200,n="__lodash_hash_undefined__",i=800,s=16,c=9007199254740991,f="[object Arguments]",x="[object Array]",h="[object AsyncFunction]",_="[object Boolean]",b="[object Date]",j="[object Error]",R="[object Function]",k="[object GeneratorFunction]",O="[object Map]",L="[object Number]",A="[object Null]",H="[object Object]",Y="[object Proxy]",Q="[object RegExp]",G="[object Set]",se="[object String]",$="[object Undefined]",M="[object WeakMap]",le="[object ArrayBuffer]",ke="[object DataView]",We="[object Float32Array]",Ke="[object Float64Array]",De="[object Int8Array]",Oe="[object Int16Array]",je="[object Int32Array]",J="[object Uint8Array]",V="[object Uint8ClampedArray]",ne="[object Uint16Array]",we="[object Uint32Array]",Te=/[\\^$.*+?()[\]{}|]/g,Se=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,T={};T[We]=T[Ke]=T[De]=T[Oe]=T[je]=T[J]=T[V]=T[ne]=T[we]=!0,T[f]=T[x]=T[le]=T[_]=T[ke]=T[b]=T[j]=T[R]=T[O]=T[L]=T[H]=T[Q]=T[G]=T[se]=T[M]=!1;var ie=typeof on=="object"&&on&&on.Object===Object&&on,ve=typeof self=="object"&&self&&self.Object===Object&&self,ue=ie||ve||Function("return this")(),ge=t&&!t.nodeType&&t,me=ge&&!0&&e&&!e.nodeType&&e,be=me&&me.exports===ge,pe=be&&ie.process,Me=function(){try{var u=me&&me.require&&me.require("util").types;return u||pe&&pe.binding&&pe.binding("util")}catch{}}(),bt=Me&&Me.isTypedArray;function ut(u,m,w){switch(w.length){case 0:return u.call(m);case 1:return u.call(m,w[0]);case 2:return u.call(m,w[0],w[1]);case 3:return u.call(m,w[0],w[1],w[2])}return u.apply(m,w)}function Bt(u,m){for(var w=-1,q=Array(u);++w<u;)q[w]=m(w);return q}function ct(u){return function(m){return u(m)}}function tt(u,m){return u==null?void 0:u[m]}function U(u,m){return function(w){return u(m(w))}}var z=Array.prototype,ae=Function.prototype,ce=Object.prototype,Pe=ue["__core-js_shared__"],ye=ae.toString,fe=ce.hasOwnProperty,Xe=function(){var u=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Ge=ce.toString,qe=ye.call(Object),it=RegExp("^"+ye.call(fe).replace(Te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=be?ue.Buffer:void 0,Vt=ue.Symbol,Nt=ue.Uint8Array;yt&&yt.allocUnsafe;var _t=U(Object.getPrototypeOf,Object),Kt=Object.create,dr=ce.propertyIsEnumerable,vr=z.splice,et=Vt?Vt.toStringTag:void 0,wt=function(){try{var u=xr(Object,"defineProperty");return u({},"",{}),u}catch{}}(),mr=yt?yt.isBuffer:void 0,Pt=Math.max,St=Date.now,ot=xr(ue,"Map"),Ze=xr(Object,"create"),ft=function(){function u(){}return function(m){if(!Lt(m))return{};if(Kt)return Kt(m);u.prototype=m;var w=new u;return u.prototype=void 0,w}}();function Je(u){var m=-1,w=u==null?0:u.length;for(this.clear();++m<w;){var q=u[m];this.set(q[0],q[1])}}function Et(){this.__data__=Ze?Ze(null):{},this.size=0}function Xt(u){var m=this.has(u)&&delete this.__data__[u];return this.size-=m?1:0,m}function qt(u){var m=this.__data__;if(Ze){var w=m[u];return w===n?void 0:w}return fe.call(m,u)?m[u]:void 0}function Zt(u){var m=this.__data__;return Ze?m[u]!==void 0:fe.call(m,u)}function $t(u,m){var w=this.__data__;return this.size+=this.has(u)?0:1,w[u]=Ze&&m===void 0?n:m,this}Je.prototype.clear=Et,Je.prototype.delete=Xt,Je.prototype.get=qt,Je.prototype.has=Zt,Je.prototype.set=$t;function at(u){var m=-1,w=u==null?0:u.length;for(this.clear();++m<w;){var q=u[m];this.set(q[0],q[1])}}function Ct(){this.__data__=[],this.size=0}function At(u){var m=this.__data__,w=Ye(m,u);if(w<0)return!1;var q=m.length-1;return w==q?m.pop():vr.call(m,w,1),--this.size,!0}function Dt(u){var m=this.__data__,w=Ye(m,u);return w<0?void 0:m[w][1]}function Jt(u){return Ye(this.__data__,u)>-1}function hr(u,m){var w=this.__data__,q=Ye(w,u);return q<0?(++this.size,w.push([u,m])):w[q][1]=m,this}at.prototype.clear=Ct,at.prototype.delete=At,at.prototype.get=Dt,at.prototype.has=Jt,at.prototype.set=hr;function vt(u){var m=-1,w=u==null?0:u.length;for(this.clear();++m<w;){var q=u[m];this.set(q[0],q[1])}}function pr(){this.size=0,this.__data__={hash:new Je,map:new(ot||at),string:new Je}}function v(u){var m=Ut(this,u).delete(u);return this.size-=m?1:0,m}function l(u){return Ut(this,u).get(u)}function g(u){return Ut(this,u).has(u)}function E(u,m){var w=Ut(this,u),q=w.size;return w.set(u,m),this.size+=w.size==q?0:1,this}vt.prototype.clear=pr,vt.prototype.delete=v,vt.prototype.get=l,vt.prototype.has=g,vt.prototype.set=E;function B(u){var m=this.__data__=new at(u);this.size=m.size}function Z(){this.__data__=new at,this.size=0}function K(u){var m=this.__data__,w=m.delete(u);return this.size=m.size,w}function W(u){return this.__data__.get(u)}function ee(u){return this.__data__.has(u)}function he(u,m){var w=this.__data__;if(w instanceof at){var q=w.__data__;if(!ot||q.length<r-1)return q.push([u,m]),this.size=++w.size,this;w=this.__data__=new vt(q)}return w.set(u,m),this.size=w.size,this}B.prototype.clear=Z,B.prototype.delete=K,B.prototype.get=W,B.prototype.has=ee,B.prototype.set=he;function oe(u,m){var w=en(u),q=!w&&Ar(u),_e=!w&&!q&&tn(u),Ne=!w&&!q&&!_e&&In(u),Le=w||q||_e||Ne,Re=Le?Bt(u.length,String):[],a=Re.length;for(var d in u)Le&&(d=="length"||_e&&(d=="offset"||d=="parent")||Ne&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Zr(d,a))||Re.push(d);return Re}function xe(u,m,w){(w!==void 0&&!Pr(u[m],w)||w===void 0&&!(m in u))&&Ae(u,m,w)}function Ve(u,m,w){var q=u[m];(!(fe.call(u,m)&&Pr(q,w))||w===void 0&&!(m in u))&&Ae(u,m,w)}function Ye(u,m){for(var w=u.length;w--;)if(Pr(u[w][0],m))return w;return-1}function Ae(u,m,w){m=="__proto__"&&wt?wt(u,m,{configurable:!0,enumerable:!0,value:w,writable:!0}):u[m]=w}var He=qr();function mt(u){return u==null?u===void 0?$:A:et&&et in Object(u)?Or(u):Nr(u)}function Qt(u){return br(u)&&mt(u)==f}function zr(u){if(!Lt(u)||kr(u))return!1;var m=rn(u)?it:Se;return m.test(Sa(u))}function gr(u){return br(u)&&nn(u.length)&&!!T[mt(u)]}function Cn(u){if(!Lt(u))return Pn(u);var m=Jr(u),w=[];for(var q in u)q=="constructor"&&(m||!fe.call(u,q))||w.push(q);return w}function Kr(u,m,w,q,_e){u!==m&&He(m,function(Ne,Le){if(_e||(_e=new B),Lt(Ne))jn(u,m,Le,w,Kr,q,_e);else{var Re=q?q(It(u,Le),Ne,Le+"",u,m,_e):void 0;Re===void 0&&(Re=Ne),xe(u,Le,Re)}},yr)}function jn(u,m,w,q,_e,Ne,Le){var Re=It(u,w),a=It(m,w),d=Le.get(a);if(d){xe(u,w,d);return}var y=Ne?Ne(Re,a,w+"",u,m,Le):void 0,C=y===void 0;if(C){var F=en(a),re=!F&&tn(a),X=!F&&!re&&In(a);y=a,F||re||X?en(Re)?y=Re:Dn(Re)?y=ga(Re):re?(C=!1,y=On(a)):X?(C=!1,y=Nn(a)):y=[]:Ea(a)||Ar(a)?(y=Re,Ar(Re)?y=Ln(Re):(!Lt(Re)||rn(Re))&&(y=ba(a))):C=!1}C&&(Le.set(a,y),_e(y,a,q,Ne,Le),Le.delete(a)),xe(u,w,y)}function Rn(u,m){return Qr(wa(u,m,an),u+"")}var Tn=wt?function(u,m){return wt(u,"toString",{configurable:!0,enumerable:!1,value:er(m),writable:!0})}:an;function On(u,m){return u.slice()}function kn(u){var m=new u.constructor(u.byteLength);return new Nt(m).set(new Nt(u)),m}function Nn(u,m){var w=kn(u.buffer);return new u.constructor(w,u.byteOffset,u.length)}function ga(u,m){var w=-1,q=u.length;for(m||(m=Array(q));++w<q;)m[w]=u[w];return m}function xa(u,m,w,q){var _e=!w;w||(w={});for(var Ne=-1,Le=m.length;++Ne<Le;){var Re=m[Ne],a=void 0;a===void 0&&(a=u[Re]),_e?Ae(w,Re,a):Ve(w,Re,a)}return w}function Xr(u){return Rn(function(m,w){var q=-1,_e=w.length,Ne=_e>1?w[_e-1]:void 0,Le=_e>2?w[2]:void 0;for(Ne=u.length>3&&typeof Ne=="function"?(_e--,Ne):void 0,Le&&ya(w[0],w[1],Le)&&(Ne=_e<3?void 0:Ne,_e=1),m=Object(m);++q<_e;){var Re=w[q];Re&&u(m,Re,q,Ne)}return m})}function qr(u){return function(m,w,q){for(var _e=-1,Ne=Object(m),Le=q(m),Re=Le.length;Re--;){var a=Le[++_e];if(w(Ne[a],a,Ne)===!1)break}return m}}function Ut(u,m){var w=u.__data__;return _a(m)?w[typeof m=="string"?"string":"hash"]:w.map}function xr(u,m){var w=tt(u,m);return zr(w)?w:void 0}function Or(u){var m=fe.call(u,et),w=u[et];try{u[et]=void 0;var q=!0}catch{}var _e=Ge.call(u);return q&&(m?u[et]=w:delete u[et]),_e}function ba(u){return typeof u.constructor=="function"&&!Jr(u)?ft(_t(u)):{}}function Zr(u,m){var w=typeof u;return m=m??c,!!m&&(w=="number"||w!="symbol"&&p.test(u))&&u>-1&&u%1==0&&u<m}function ya(u,m,w){if(!Lt(w))return!1;var q=typeof m;return(q=="number"?Dr(w)&&Zr(m,w.length):q=="string"&&m in w)?Pr(w[m],u):!1}function _a(u){var m=typeof u;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?u!=="__proto__":u===null}function kr(u){return!!Xe&&Xe in u}function Jr(u){var m=u&&u.constructor,w=typeof m=="function"&&m.prototype||ce;return u===w}function Pn(u){var m=[];if(u!=null)for(var w in Object(u))m.push(w);return m}function Nr(u){return Ge.call(u)}function wa(u,m,w){return m=Pt(m===void 0?u.length-1:m,0),function(){for(var q=arguments,_e=-1,Ne=Pt(q.length-m,0),Le=Array(Ne);++_e<Ne;)Le[_e]=q[m+_e];_e=-1;for(var Re=Array(m+1);++_e<m;)Re[_e]=q[_e];return Re[m]=w(Le),ut(u,this,Re)}}function It(u,m){if(!(m==="constructor"&&typeof u[m]=="function")&&m!="__proto__")return u[m]}var Qr=An(Tn);function An(u){var m=0,w=0;return function(){var q=St(),_e=s-(q-w);if(w=q,_e>0){if(++m>=i)return arguments[0]}else m=0;return u.apply(void 0,arguments)}}function Sa(u){if(u!=null){try{return ye.call(u)}catch{}try{return u+""}catch{}}return""}function Pr(u,m){return u===m||u!==u&&m!==m}var Ar=Qt(function(){return arguments}())?Qt:function(u){return br(u)&&fe.call(u,"callee")&&!dr.call(u,"callee")},en=Array.isArray;function Dr(u){return u!=null&&nn(u.length)&&!rn(u)}function Dn(u){return br(u)&&Dr(u)}var tn=mr||Mn;function rn(u){if(!Lt(u))return!1;var m=mt(u);return m==R||m==k||m==h||m==Y}function nn(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=c}function Lt(u){var m=typeof u;return u!=null&&(m=="object"||m=="function")}function br(u){return u!=null&&typeof u=="object"}function Ea(u){if(!br(u)||mt(u)!=H)return!1;var m=_t(u);if(m===null)return!0;var w=fe.call(m,"constructor")&&m.constructor;return typeof w=="function"&&w instanceof w&&ye.call(w)==qe}var In=bt?ct(bt):gr;function Ln(u){return xa(u,yr(u))}function yr(u){return Dr(u)?oe(u):Cn(u)}var Ca=Xr(function(u,m,w){Kr(u,m,w)});function er(u){return function(){return u}}function an(u){return u}function Mn(){return!1}e.exports=Ca}(sn,sn.exports);var ms=sn.exports;const Ma=Bn(ms),hs={[jt.Sm]:768,[jt.Md]:1024,[jt.Lg]:1400,[jt.Xl]:1920},Fa=ka(hs),ps=Ma({},La,{theme:{screens:Fa,container:{center:!0,screens:Fa,padding:{DEFAULT:Ue(24),md:Ue(48),lg:Ue(120),xl:Ue(240)}}}}),gs=ka({default:0}),xs=Ma({},La,{theme:{screens:gs},corePlugins:{container:!1}});var $n={exports:{}},Ir={};/**
|
|
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
|
|
9
|
+
*/var Ba;function bs(){if(Ba)return Ir;Ba=1;var e=te,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(f,x,h){var _,b={},j=null,R=null;h!==void 0&&(j=""+h),x.key!==void 0&&(j=""+x.key),x.ref!==void 0&&(R=x.ref);for(_ in x)n.call(x,_)&&!s.hasOwnProperty(_)&&(b[_]=x[_]);if(f&&f.defaultProps)for(_ in x=f.defaultProps,x)b[_]===void 0&&(b[_]=x[_]);return{$$typeof:t,type:f,key:j,ref:R,props:b,_owner:i.current}}return Ir.Fragment=r,Ir.jsx=c,Ir.jsxs=c,Ir}var Lr={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,59 +14,59 @@
|
|
|
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
|
|
18
|
-
`+ge+v}}var
|
|
19
|
-
`),ee=
|
|
20
|
-
`),
|
|
21
|
-
`+W[
|
|
17
|
+
*/var Va;function ys(){return Va||(Va=1,process.env.NODE_ENV!=="production"&&function(){var e=te,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),k=Symbol.iterator,O="@@iterator";function L(v){if(v===null||typeof v!="object")return null;var l=k&&v[k]||v[O];return typeof l=="function"?l:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function H(v){{for(var l=arguments.length,g=new Array(l>1?l-1:0),E=1;E<l;E++)g[E-1]=arguments[E];Y("error",v,g)}}function Y(v,l,g){{var E=A.ReactDebugCurrentFrame,B=E.getStackAddendum();B!==""&&(l+="%s",g=g.concat([B]));var Z=g.map(function(K){return String(K)});Z.unshift("Warning: "+l),Function.prototype.apply.call(console[v],console,Z)}}var Q=!1,G=!1,se=!1,$=!1,M=!1,le;le=Symbol.for("react.module.reference");function ke(v){return!!(typeof v=="string"||typeof v=="function"||v===n||v===s||M||v===i||v===h||v===_||$||v===R||Q||G||se||typeof v=="object"&&v!==null&&(v.$$typeof===j||v.$$typeof===b||v.$$typeof===c||v.$$typeof===f||v.$$typeof===x||v.$$typeof===le||v.getModuleId!==void 0))}function We(v,l,g){var E=v.displayName;if(E)return E;var B=l.displayName||l.name||"";return B!==""?g+"("+B+")":g}function Ke(v){return v.displayName||"Context"}function De(v){if(v==null)return null;if(typeof v.tag=="number"&&H("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case i:return"StrictMode";case h:return"Suspense";case _:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case f:var l=v;return Ke(l)+".Consumer";case c:var g=v;return Ke(g._context)+".Provider";case x:return We(v,v.render,"ForwardRef");case b:var E=v.displayName||null;return E!==null?E:De(v.type)||"Memo";case j:{var B=v,Z=B._payload,K=B._init;try{return De(K(Z))}catch{return null}}}return null}var Oe=Object.assign,je=0,J,V,ne,we,Te,Se,p;function T(){}T.__reactDisabledLog=!0;function ie(){{if(je===0){J=console.log,V=console.info,ne=console.warn,we=console.error,Te=console.group,Se=console.groupCollapsed,p=console.groupEnd;var v={configurable:!0,enumerable:!0,value:T,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}je++}}function ve(){{if(je--,je===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Oe({},v,{value:J}),info:Oe({},v,{value:V}),warn:Oe({},v,{value:ne}),error:Oe({},v,{value:we}),group:Oe({},v,{value:Te}),groupCollapsed:Oe({},v,{value:Se}),groupEnd:Oe({},v,{value:p})})}je<0&&H("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=A.ReactCurrentDispatcher,ge;function me(v,l,g){{if(ge===void 0)try{throw Error()}catch(B){var E=B.stack.trim().match(/\n( *(at )?)/);ge=E&&E[1]||""}return`
|
|
18
|
+
`+ge+v}}var be=!1,pe;{var Me=typeof WeakMap=="function"?WeakMap:Map;pe=new Me}function bt(v,l){if(!v||be)return"";{var g=pe.get(v);if(g!==void 0)return g}var E;be=!0;var B=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=ue.current,ue.current=null,ie();try{if(l){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(Ae){E=Ae}Reflect.construct(v,[],K)}else{try{K.call()}catch(Ae){E=Ae}v.call(K.prototype)}}else{try{throw Error()}catch(Ae){E=Ae}v()}}catch(Ae){if(Ae&&E&&typeof Ae.stack=="string"){for(var W=Ae.stack.split(`
|
|
19
|
+
`),ee=E.stack.split(`
|
|
20
|
+
`),he=W.length-1,oe=ee.length-1;he>=1&&oe>=0&&W[he]!==ee[oe];)oe--;for(;he>=1&&oe>=0;he--,oe--)if(W[he]!==ee[oe]){if(he!==1||oe!==1)do if(he--,oe--,oe<0||W[he]!==ee[oe]){var xe=`
|
|
21
|
+
`+W[he].replace(" at new "," at ");return v.displayName&&xe.includes("<anonymous>")&&(xe=xe.replace("<anonymous>",v.displayName)),typeof v=="function"&&pe.set(v,xe),xe}while(he>=1&&oe>=0);break}}}finally{be=!1,ue.current=Z,ve(),Error.prepareStackTrace=B}var Ve=v?v.displayName||v.name:"",Ye=Ve?me(Ve):"";return typeof v=="function"&&pe.set(v,Ye),Ye}function ut(v,l,g){return bt(v,!1)}function Bt(v){var l=v.prototype;return!!(l&&l.isReactComponent)}function ct(v,l,g){if(v==null)return"";if(typeof v=="function")return bt(v,Bt(v));if(typeof v=="string")return me(v);switch(v){case h:return me("Suspense");case _:return me("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case x:return ut(v.render);case b:return ct(v.type,l,g);case j:{var E=v,B=E._payload,Z=E._init;try{return ct(Z(B),l,g)}catch{}}}return""}var tt=Object.prototype.hasOwnProperty,U={},z=A.ReactDebugCurrentFrame;function ae(v){if(v){var l=v._owner,g=ct(v.type,v._source,l?l.type:null);z.setExtraStackFrame(g)}else z.setExtraStackFrame(null)}function ce(v,l,g,E,B){{var Z=Function.call.bind(tt);for(var K in v)if(Z(v,K)){var W=void 0;try{if(typeof v[K]!="function"){var ee=Error((E||"React class")+": "+g+" type `"+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[K]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ee.name="Invariant Violation",ee}W=v[K](l,K,E,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){W=he}W&&!(W instanceof Error)&&(ae(B),H("%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).",E||"React class",g,K,typeof W),ae(null)),W instanceof Error&&!(W.message in U)&&(U[W.message]=!0,ae(B),H("Failed %s type: %s",g,W.message),ae(null))}}}var Pe=Array.isArray;function ye(v){return Pe(v)}function fe(v){{var l=typeof Symbol=="function"&&Symbol.toStringTag,g=l&&v[Symbol.toStringTag]||v.constructor.name||"Object";return g}}function Xe(v){try{return Ge(v),!1}catch{return!0}}function Ge(v){return""+v}function qe(v){if(Xe(v))return H("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",fe(v)),Ge(v)}var it=A.ReactCurrentOwner,yt={key:!0,ref:!0,__self:!0,__source:!0},Vt,Nt;function _t(v){if(tt.call(v,"ref")){var l=Object.getOwnPropertyDescriptor(v,"ref").get;if(l&&l.isReactWarning)return!1}return v.ref!==void 0}function Kt(v){if(tt.call(v,"key")){var l=Object.getOwnPropertyDescriptor(v,"key").get;if(l&&l.isReactWarning)return!1}return v.key!==void 0}function dr(v,l){typeof v.ref=="string"&&it.current}function vr(v,l){{var g=function(){Vt||(Vt=!0,H("%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))};g.isReactWarning=!0,Object.defineProperty(v,"key",{get:g,configurable:!0})}}function et(v,l){{var g=function(){Nt||(Nt=!0,H("%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))};g.isReactWarning=!0,Object.defineProperty(v,"ref",{get:g,configurable:!0})}}var wt=function(v,l,g,E,B,Z,K){var W={$$typeof:t,type:v,key:l,ref:g,props:K,_owner:Z};return W._store={},Object.defineProperty(W._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(W,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(W,"_source",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W};function mr(v,l,g,E,B){{var Z,K={},W=null,ee=null;g!==void 0&&(qe(g),W=""+g),Kt(l)&&(qe(l.key),W=""+l.key),_t(l)&&(ee=l.ref,dr(l,B));for(Z in l)tt.call(l,Z)&&!yt.hasOwnProperty(Z)&&(K[Z]=l[Z]);if(v&&v.defaultProps){var he=v.defaultProps;for(Z in he)K[Z]===void 0&&(K[Z]=he[Z])}if(W||ee){var oe=typeof v=="function"?v.displayName||v.name||"Unknown":v;W&&vr(K,oe),ee&&et(K,oe)}return wt(v,W,ee,B,E,it.current,K)}}var Pt=A.ReactCurrentOwner,St=A.ReactDebugCurrentFrame;function ot(v){if(v){var l=v._owner,g=ct(v.type,v._source,l?l.type:null);St.setExtraStackFrame(g)}else St.setExtraStackFrame(null)}var Ze;Ze=!1;function ft(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function Je(){{if(Pt.current){var v=De(Pt.current.type);if(v)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+v+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+v+"`."}return""}}function Et(v){return""}var Xt={};function qt(v){{var l=Je();if(!l){var g=typeof v=="string"?v:v.displayName||v.name;g&&(l=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+g+">.")}return l}}function Zt(v,l){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var g=qt(l);if(Xt[g])return;Xt[g]=!0;var E="";v&&v._owner&&v._owner!==Pt.current&&(E=" It was passed a child from "+De(v._owner.type)+"."),ot(v),H('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,E),ot(null)}}function $t(v,l){{if(typeof v!="object")return;if(ye(v))for(var g=0;g<v.length;g++){var E=v[g];ft(E)&&Zt(E,l)}else if(ft(v))v._store&&(v._store.validated=!0);else if(v){var B=L(v);if(typeof B=="function"&&B!==v.entries)for(var Z=B.call(v),K;!(K=Z.next()).done;)ft(K.value)&&Zt(K.value,l)}}}function at(v){{var l=v.type;if(l==null||typeof l=="string")return;var g;if(typeof l=="function")g=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===x||l.$$typeof===b))g=l.propTypes;else return;if(g){var E=De(l);ce(g,v.props,"prop",E,v)}else if(l.PropTypes!==void 0&&!Ze){Ze=!0;var B=De(l);H("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&H("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ct(v){{for(var l=Object.keys(v.props),g=0;g<l.length;g++){var E=l[g];if(E!=="children"&&E!=="key"){ot(v),H("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),ot(null);break}}v.ref!==null&&(ot(v),H("Invalid attribute `ref` supplied to `React.Fragment`."),ot(null))}}var At={};function Dt(v,l,g,E,B,Z){{var K=ke(v);if(!K){var W="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(W+=" 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=Et();ee?W+=ee:W+=Je();var he;v===null?he="null":ye(v)?he="array":v!==void 0&&v.$$typeof===t?(he="<"+(De(v.type)||"Unknown")+" />",W=" Did you accidentally export a JSX literal instead of a component?"):he=typeof v,H("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,W)}var oe=mr(v,l,g,B,Z);if(oe==null)return oe;if(K){var xe=l.children;if(xe!==void 0)if(E)if(ye(xe)){for(var Ve=0;Ve<xe.length;Ve++)$t(xe[Ve],v);Object.freeze&&Object.freeze(xe)}else H("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 $t(xe,v)}if(tt.call(l,"key")){var Ye=De(v),Ae=Object.keys(l).filter(function(Qt){return Qt!=="key"}),He=Ae.length>0?"{key: someKey, "+Ae.join(": ..., ")+": ...}":"{key: someKey}";if(!At[Ye+He]){var mt=Ae.length>0?"{"+Ae.join(": ..., ")+": ...}":"{}";H(`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} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,He,Ye,mt,Ye),At[Ye+He]=!0}}return v===n?Ct(oe):at(oe),oe}}function Jt(v,l,g){return Dt(v,l,g,!0)}function hr(v,l,g){return Dt(v,l,g,!1)}var vt=hr,pr=Jt;Lr.Fragment=n,Lr.jsx=vt,Lr.jsxs=pr}()),Lr}process.env.NODE_ENV==="production"?$n.exports=bs():$n.exports=ys();var o=$n.exports,$a={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
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(s=o(s,n(f)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var f in s)t.call(s,f)&&s[f]&&(c=o(c,f));return c}function o(s,c){return c?s?s+" "+c:s+c:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Ma);var ms=Ma.exports;const A=Aa(ms);var lt=(e=>(e.Neutral="neutral",e.PrimarySolid="primary-solid",e.PrimarySoft="primary-fill",e))(lt||{});const hs={[lt.PrimarySolid]:"bg-primary-30",[lt.Neutral]:"bg-neutral-92 dark:bg-neutral-12",[lt.PrimarySoft]:"bg-primary-90 dark:bg-primary-10"},ps={[lt.PrimarySolid]:"text-primary-100",[lt.Neutral]:"text-neutral-10 dark:text-neutral-92",[lt.PrimarySoft]:"text-primary-20 dark:text-primary-90"},gs={[lt.PrimarySolid]:"border-primary-30",[lt.Neutral]:"border-neutral-92 dark:border-neutral-12",[lt.PrimarySoft]:"border-primary-90 dark:border-primary-10"},xs="text-label-md";function ln({type:e,label:t}){const r=hs[e],n=ps[e],o=gs[e],s=t?"px-xs py-xxs":"h-1.5 w-1.5";return i.jsx("div",{className:A("inline-flex items-center space-x-2 rounded-full border disabled:opacity-30",r,o,s),children:i.jsx("span",{className:A(xs,n),children:t})})}var Je=(e=>(e.Small="small",e.Medium="medium",e))(Je||{}),Ee=(e=>(e.Primary="primary",e.Secondary="secondary",e.Ghost="ghost",e.Outlined="outlined",e.Destructive="destructive",e))(Ee||{}),Fr=(e=>(e.Button="button",e.Submit="submit",e.Reset="reset",e))(Fr||{});const bs={[Je.Small]:"px-md py-xs",[Je.Medium]:"px-md py-sm"},ys={[Je.Small]:"p-xs",[Je.Medium]:"p-sm"},_s={[Ee.Primary]:"bg-primary-30",[Ee.Secondary]:"bg-neutral-90 dark:bg-neutral-20",[Ee.Ghost]:"bg-transparent",[Ee.Outlined]:"bg-transparent border border-neutral-50",[Ee.Destructive]:"bg-error-90"},ws={[Ee.Primary]:"bg-neutral-80 dark:bg-neutral-30",[Ee.Secondary]:"bg-neutral-90 dark:bg-neutral-20",[Ee.Ghost]:"bg-transparent",[Ee.Outlined]:"bg-transparent border border-neutral-50",[Ee.Destructive]:"bg-error-90"},tr="text-neutral-10 dark:text-neutral-92",Ss={[Ee.Primary]:"text-primary-100",[Ee.Secondary]:tr,[Ee.Ghost]:tr,[Ee.Outlined]:tr,[Ee.Destructive]:"text-error-20"},Es={[Je.Small]:"text-label-md",[Je.Medium]:"text-label-lg"},Cs={[Ee.Primary]:tr,[Ee.Secondary]:tr,[Ee.Ghost]:tr,[Ee.Outlined]:tr,[Ee.Destructive]:"text-error-20"};function mt({icon:e,text:t,disabled:r,onClick:n,fullWidth:o,htmlType:s=Fr.Button,size:c=Je.Medium,type:f=Ee.Primary,iconAfterText:x=!1,tabIndex:m=0,testId:_}){const b=e&&!t?ys[c]:bs[c],j=Es[c],T=r?ws[f]:_s[f],N=r?Cs[f]:Ss[f];return i.jsxs("button",{onClick:n,type:s,className:A("state-layer relative flex items-center justify-center gap-2 rounded-full transition-all duration-150 ease-in disabled:cursor-not-allowed disabled:opacity-40",b,T,o&&"w-full",x?"flex-row-reverse":"flex-row"),disabled:r,tabIndex:m,"data-testid":_,children:[e&&i.jsx("span",{className:A(N),children:e}),t&&i.jsx("span",{className:A("font-inter",N,j),children:t})]})}function js({htmlType:e=Fr.Button,children:t,tabIndex:r=0,...n}){return i.jsx("button",{className:"flex items-center justify-center rounded-xl border border-neutral-70 px-sm text-body-md text-neutral-40 disabled:opacity-40 dark:border-neutral-40 dark:text-neutral-60",type:e,tabIndex:r,...n,children:t})}function ot({htmlType:e=Fr.Button,children:t,className:r,tabIndex:n=0,testId:o,...s}){return i.jsx("button",{type:e,...s,className:A("appearance-none",r),tabIndex:n,"data-testid":o,children:t})}var Rs=Object.create,Fa=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ba=Object.getOwnPropertyNames,Os=Object.getPrototypeOf,Ns=Object.prototype.hasOwnProperty,_r=(e,t)=>function(){return t||(0,e[Ba(e)[0]])((t={exports:{}}).exports,t),t.exports},ks=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ba(t))!Ns.call(e,o)&&o!==r&&Fa(e,o,{get:()=>t[o],enumerable:!(n=Ts(t,o))||n.enumerable});return e},D=(e,t,r)=>(r=e!=null?Rs(Os(e)):{},ks(!e||!e.__esModule?Fa(r,"default",{value:e,enumerable:!0}):r,e)),As=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),j=Symbol.iterator;function T(g){return g===null||typeof g!="object"?null:(g=j&&g[j]||g["@@iterator"],typeof g=="function"?g:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,M={};function P(g,R,oe){this.props=g,this.context=R,this.refs=M,this.updater=oe||N}P.prototype.isReactComponent={},P.prototype.setState=function(g,R){if(typeof g!="object"&&typeof g!="function"&&g!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,g,R,"setState")},P.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function $(){}$.prototype=P.prototype;function H(g,R,oe){this.props=g,this.context=R,this.refs=M,this.updater=oe||N}var Y=H.prototype=new $;Y.constructor=H,O(Y,P.prototype),Y.isPureReactComponent=!0;var U=Array.isArray,ie=Object.prototype.hasOwnProperty,Q={current:null},K={key:!0,ref:!0,__self:!0,__source:!0};function pe(g,R,oe){var de,le={},ge=null,ve=null;if(R!=null)for(de in R.ref!==void 0&&(ve=R.ref),R.key!==void 0&&(ge=""+R.key),R)ie.call(R,de)&&!K.hasOwnProperty(de)&&(le[de]=R[de]);var xe=arguments.length-2;if(xe===1)le.children=oe;else if(1<xe){for(var he=Array(xe),Fe=0;Fe<xe;Fe++)he[Fe]=arguments[Fe+2];le.children=he}if(g&&g.defaultProps)for(de in xe=g.defaultProps,xe)le[de]===void 0&&(le[de]=xe[de]);return{$$typeof:t,type:g,key:ge,ref:ve,props:le,_owner:Q.current}}function Pe(g,R){return{$$typeof:t,type:g.type,key:R,ref:g.ref,props:g.props,_owner:g._owner}}function He(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Xe(g){var R={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(oe){return R[oe]})}var Ne=/\/+/g;function je(g,R){return typeof g=="object"&&g!==null&&g.key!=null?Xe(""+g.key):R.toString(36)}function Re(g,R,oe,de,le){var ge=typeof g;(ge==="undefined"||ge==="boolean")&&(g=null);var ve=!1;if(g===null)ve=!0;else switch(ge){case"string":case"number":ve=!0;break;case"object":switch(g.$$typeof){case t:case r:ve=!0}}if(ve)return ve=g,le=le(ve),g=de===""?"."+je(ve,0):de,U(le)?(oe="",g!=null&&(oe=g.replace(Ne,"$&/")+"/"),Re(le,R,oe,"",function(Fe){return Fe})):le!=null&&(He(le)&&(le=Pe(le,oe+(!le.key||ve&&ve.key===le.key?"":(""+le.key).replace(Ne,"$&/")+"/")+g)),R.push(le)),1;if(ve=0,de=de===""?".":de+":",U(g))for(var xe=0;xe<g.length;xe++){ge=g[xe];var he=de+je(ge,xe);ve+=Re(ge,R,oe,he,le)}else if(he=T(g),typeof he=="function")for(g=he.call(g),xe=0;!(ge=g.next()).done;)ge=ge.value,he=de+je(ge,xe++),ve+=Re(ge,R,oe,he,le);else if(ge==="object")throw R=String(g),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.");return ve}function J(g,R,oe){if(g==null)return g;var de=[],le=0;return Re(g,de,"","",function(ge){return R.call(oe,ge,le++)}),de}function F(g){if(g._status===-1){var R=g._result;R=R(),R.then(function(oe){(g._status===0||g._status===-1)&&(g._status=1,g._result=oe)},function(oe){(g._status===0||g._status===-1)&&(g._status=2,g._result=oe)}),g._status===-1&&(g._status=0,g._result=R)}if(g._status===1)return g._result.default;throw g._result}var ne={current:null},we={transition:null},Oe={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:we,ReactCurrentOwner:Q};function Se(){throw Error("act(...) is not supported in production builds of React.")}e.Children={map:J,forEach:function(g,R,oe){J(g,function(){R.apply(this,arguments)},oe)},count:function(g){var R=0;return J(g,function(){R++}),R},toArray:function(g){return J(g,function(R){return R})||[]},only:function(g){if(!He(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},e.Component=P,e.Fragment=n,e.Profiler=s,e.PureComponent=H,e.StrictMode=o,e.Suspense=m,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oe,e.act=Se,e.cloneElement=function(g,R,oe){if(g==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+g+".");var de=O({},g.props),le=g.key,ge=g.ref,ve=g._owner;if(R!=null){if(R.ref!==void 0&&(ge=R.ref,ve=Q.current),R.key!==void 0&&(le=""+R.key),g.type&&g.type.defaultProps)var xe=g.type.defaultProps;for(he in R)ie.call(R,he)&&!K.hasOwnProperty(he)&&(de[he]=R[he]===void 0&&xe!==void 0?xe[he]:R[he])}var he=arguments.length-2;if(he===1)de.children=oe;else if(1<he){xe=Array(he);for(var Fe=0;Fe<he;Fe++)xe[Fe]=arguments[Fe+2];de.children=xe}return{$$typeof:t,type:g.type,key:le,ref:ge,props:de,_owner:ve}},e.createContext=function(g){return g={$$typeof:f,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},g.Provider={$$typeof:c,_context:g},g.Consumer=g},e.createElement=pe,e.createFactory=function(g){var R=pe.bind(null,g);return R.type=g,R},e.createRef=function(){return{current:null}},e.forwardRef=function(g){return{$$typeof:x,render:g}},e.isValidElement=He,e.lazy=function(g){return{$$typeof:b,_payload:{_status:-1,_result:g},_init:F}},e.memo=function(g,R){return{$$typeof:_,type:g,compare:R===void 0?null:R}},e.startTransition=function(g){var R=we.transition;we.transition={};try{g()}finally{we.transition=R}},e.unstable_act=Se,e.useCallback=function(g,R){return ne.current.useCallback(g,R)},e.useContext=function(g){return ne.current.useContext(g)},e.useDebugValue=function(){},e.useDeferredValue=function(g){return ne.current.useDeferredValue(g)},e.useEffect=function(g,R){return ne.current.useEffect(g,R)},e.useId=function(){return ne.current.useId()},e.useImperativeHandle=function(g,R,oe){return ne.current.useImperativeHandle(g,R,oe)},e.useInsertionEffect=function(g,R){return ne.current.useInsertionEffect(g,R)},e.useLayoutEffect=function(g,R){return ne.current.useLayoutEffect(g,R)},e.useMemo=function(g,R){return ne.current.useMemo(g,R)},e.useReducer=function(g,R,oe){return ne.current.useReducer(g,R,oe)},e.useRef=function(g){return ne.current.useRef(g)},e.useState=function(g){return ne.current.useState(g)},e.useSyncExternalStore=function(g,R,oe){return ne.current.useSyncExternalStore(g,R,oe)},e.useTransition=function(){return ne.current.useTransition()},e.version="18.3.1"}}),Ps=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r="18.3.1",n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),m=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),M=Symbol.iterator,P="@@iterator";function $(a){if(a===null||typeof a!="object")return null;var d=M&&a[M]||a[P];return typeof d=="function"?d:null}var H={current:null},Y={transition:null},U={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ie={current:null},Q={},K=null;function pe(a){K=a}Q.setExtraStackFrame=function(a){K=a},Q.getCurrentStack=null,Q.getStackAddendum=function(){var a="";K&&(a+=K);var d=Q.getCurrentStack;return d&&(a+=d()||""),a};var Pe=!1,He=!1,Xe=!1,Ne=!1,je=!1,Re={ReactCurrentDispatcher:H,ReactCurrentBatchConfig:Y,ReactCurrentOwner:ie};Re.ReactDebugCurrentFrame=Q,Re.ReactCurrentActQueue=U;function J(a){{for(var d=arguments.length,y=new Array(d>1?d-1:0),E=1;E<d;E++)y[E-1]=arguments[E];ne("warn",a,y)}}function F(a){{for(var d=arguments.length,y=new Array(d>1?d-1:0),E=1;E<d;E++)y[E-1]=arguments[E];ne("error",a,y)}}function ne(a,d,y){{var E=Re.ReactDebugCurrentFrame,L=E.getStackAddendum();L!==""&&(d+="%s",y=y.concat([L]));var re=y.map(function(X){return String(X)});re.unshift("Warning: "+d),Function.prototype.apply.call(console[a],console,re)}}var we={};function Oe(a,d){{var y=a.constructor,E=y&&(y.displayName||y.name)||"ReactClass",L=E+"."+d;if(we[L])return;F("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",d,E),we[L]=!0}}var Se={isMounted:function(a){return!1},enqueueForceUpdate:function(a,d,y){Oe(a,"forceUpdate")},enqueueReplaceState:function(a,d,y,E){Oe(a,"replaceState")},enqueueSetState:function(a,d,y,E){Oe(a,"setState")}},g=Object.assign,R={};Object.freeze(R);function oe(a,d,y){this.props=a,this.context=d,this.refs=R,this.updater=y||Se}oe.prototype.isReactComponent={},oe.prototype.setState=function(a,d){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,d,"setState")},oe.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};{var de={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},le=function(a,d){Object.defineProperty(oe.prototype,a,{get:function(){J("%s(...) is deprecated in plain JavaScript React classes. %s",d[0],d[1])}})};for(var ge in de)de.hasOwnProperty(ge)&&le(ge,de[ge])}function ve(){}ve.prototype=oe.prototype;function xe(a,d,y){this.props=a,this.context=d,this.refs=R,this.updater=y||Se}var he=xe.prototype=new ve;he.constructor=xe,g(he,oe.prototype),he.isPureReactComponent=!0;function Fe(){var a={current:null};return Object.seal(a),a}var yt=Array.isArray;function ct(a){return yt(a)}function It(a){{var d=typeof Symbol=="function"&&Symbol.toStringTag,y=d&&a[Symbol.toStringTag]||a.constructor.name||"Object";return y}}function ft(a){try{return tt(a),!1}catch{return!0}}function tt(a){return""+a}function V(a){if(ft(a))return F("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",It(a)),tt(a)}function G(a,d,y){var E=a.displayName;if(E)return E;var L=d.displayName||d.name||"";return L!==""?y+"("+L+")":y}function ae(a){return a.displayName||"Context"}function ue(a){if(a==null)return null;if(typeof a.tag=="number"&&F("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case s:return"Fragment";case o:return"Portal";case f:return"Profiler";case c:return"StrictMode";case b:return"Suspense";case j:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case m:var d=a;return ae(d)+".Consumer";case x:var y=a;return ae(y._context)+".Provider";case _:return G(a,a.render,"ForwardRef");case T:var E=a.displayName||null;return E!==null?E:ue(a.type)||"Memo";case N:{var L=a,re=L._payload,X=L._init;try{return ue(X(re))}catch{return null}}}return null}var Ae=Object.prototype.hasOwnProperty,be={key:!0,ref:!0,__self:!0,__source:!0},ce,qe,Ye;Ye={};function Ze(a){if(Ae.call(a,"ref")){var d=Object.getOwnPropertyDescriptor(a,"ref").get;if(d&&d.isReactWarning)return!1}return a.ref!==void 0}function rt(a){if(Ae.call(a,"key")){var d=Object.getOwnPropertyDescriptor(a,"key").get;if(d&&d.isReactWarning)return!1}return a.key!==void 0}function st(a,d){var y=function(){ce||(ce=!0,F("%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)",d))};y.isReactWarning=!0,Object.defineProperty(a,"key",{get:y,configurable:!0})}function Lt(a,d){var y=function(){qe||(qe=!0,F("%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)",d))};y.isReactWarning=!0,Object.defineProperty(a,"ref",{get:y,configurable:!0})}function Rt(a){if(typeof a.ref=="string"&&ie.current&&a.__self&&ie.current.stateNode!==a.__self){var d=ue(ie.current.type);Ye[d]||(F('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d,a.ref),Ye[d]=!0)}}var dt=function(a,d,y,E,L,re,X){var fe={$$typeof:n,type:a,key:d,ref:y,props:X,_owner:re};return fe._store={},Object.defineProperty(fe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(fe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(fe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.freeze&&(Object.freeze(fe.props),Object.freeze(fe)),fe};function Tt(a,d,y){var E,L={},re=null,X=null,fe=null,Ce=null;if(d!=null){Ze(d)&&(X=d.ref,Rt(d)),rt(d)&&(V(d.key),re=""+d.key),fe=d.__self===void 0?null:d.__self,Ce=d.__source===void 0?null:d.__source;for(E in d)Ae.call(d,E)&&!be.hasOwnProperty(E)&&(L[E]=d[E])}var De=arguments.length-2;if(De===1)L.children=y;else if(De>1){for(var Ve=Array(De),Ue=0;Ue<De;Ue++)Ve[Ue]=arguments[Ue+2];Object.freeze&&Object.freeze(Ve),L.children=Ve}if(a&&a.defaultProps){var $e=a.defaultProps;for(E in $e)L[E]===void 0&&(L[E]=$e[E])}if(re||X){var Ke=typeof a=="function"?a.displayName||a.name||"Unknown":a;re&&st(L,Ke),X&&Lt(L,Ke)}return dt(a,re,X,fe,Ce,ie.current,L)}function vr(a,d){var y=dt(a.type,d,a.ref,a._self,a._source,a._owner,a.props);return y}function mr(a,d,y){if(a==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var E,L=g({},a.props),re=a.key,X=a.ref,fe=a._self,Ce=a._source,De=a._owner;if(d!=null){Ze(d)&&(X=d.ref,De=ie.current),rt(d)&&(V(d.key),re=""+d.key);var Ve;a.type&&a.type.defaultProps&&(Ve=a.type.defaultProps);for(E in d)Ae.call(d,E)&&!be.hasOwnProperty(E)&&(d[E]===void 0&&Ve!==void 0?L[E]=Ve[E]:L[E]=d[E])}var Ue=arguments.length-2;if(Ue===1)L.children=y;else if(Ue>1){for(var $e=Array(Ue),Ke=0;Ke<Ue;Ke++)$e[Ke]=arguments[Ke+2];L.children=$e}return dt(a.type,re,X,fe,Ce,De,L)}function Qe(a){return typeof a=="object"&&a!==null&&a.$$typeof===n}var _t=".",hr=":";function zt(a){var d=/[=:]/g,y={"=":"=0",":":"=2"},E=a.replace(d,function(L){return y[L]});return"$"+E}var Ot=!1,wt=/\/+/g;function et(a){return a.replace(wt,"$&/")}function it(a,d){return typeof a=="object"&&a!==null&&a.key!=null?(V(a.key),zt(""+a.key)):d.toString(36)}function Ge(a,d,y,E,L){var re=typeof a;(re==="undefined"||re==="boolean")&&(a=null);var X=!1;if(a===null)X=!0;else switch(re){case"string":case"number":X=!0;break;case"object":switch(a.$$typeof){case n:case o:X=!0}}if(X){var fe=a,Ce=L(fe),De=E===""?_t+it(fe,0):E;if(ct(Ce)){var Ve="";De!=null&&(Ve=et(De)+"/"),Ge(Ce,d,Ve,"",function(Jf){return Jf})}else Ce!=null&&(Qe(Ce)&&(Ce.key&&(!fe||fe.key!==Ce.key)&&V(Ce.key),Ce=vr(Ce,y+(Ce.key&&(!fe||fe.key!==Ce.key)?et(""+Ce.key)+"/":"")+De)),d.push(Ce));return 1}var Ue,$e,Ke=0,at=E===""?_t:E+hr;if(ct(a))for(var Fn=0;Fn<a.length;Fn++)Ue=a[Fn],$e=at+it(Ue,Fn),Ke+=Ge(Ue,d,y,$e,L);else{var Sa=$(a);if(typeof Sa=="function"){var Zi=a;Sa===Zi.entries&&(Ot||J("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ot=!0);for(var qf=Sa.call(Zi),Ji,Zf=0;!(Ji=qf.next()).done;)Ue=Ji.value,$e=at+it(Ue,Zf++),Ke+=Ge(Ue,d,y,$e,L)}else if(re==="object"){var Qi=String(a);throw new Error("Objects are not valid as a React child (found: "+(Qi==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":Qi)+"). If you meant to render a collection of children, use an array instead.")}}return Ke}function vt(a,d,y){if(a==null)return a;var E=[],L=0;return Ge(a,E,"","",function(re){return d.call(y,re,L++)}),E}function Kt(a){var d=0;return vt(a,function(){d++}),d}function Xt(a,d,y){vt(a,function(){d.apply(this,arguments)},y)}function qt(a){return vt(a,function(d){return d})||[]}function Zt(a){if(!Qe(a))throw new Error("React.Children.only expected to receive a single React element child.");return a}function nt(a){var d={$$typeof:m,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};d.Provider={$$typeof:x,_context:d};var y=!1,E=!1,L=!1;{var re={$$typeof:m,_context:d};Object.defineProperties(re,{Provider:{get:function(){return E||(E=!0,F("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),d.Provider},set:function(X){d.Provider=X}},_currentValue:{get:function(){return d._currentValue},set:function(X){d._currentValue=X}},_currentValue2:{get:function(){return d._currentValue2},set:function(X){d._currentValue2=X}},_threadCount:{get:function(){return d._threadCount},set:function(X){d._threadCount=X}},Consumer:{get:function(){return y||(y=!0,F("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),d.Consumer}},displayName:{get:function(){return d.displayName},set:function(X){L||(J("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",X),L=!0)}}}),d.Consumer=re}return d._currentRenderer=null,d._currentRenderer2=null,d}var ht=-1,Mt=0,Ft=1,Bt=2;function Jt(a){if(a._status===ht){var d=a._result,y=d();if(y.then(function(re){if(a._status===Mt||a._status===ht){var X=a;X._status=Ft,X._result=re}},function(re){if(a._status===Mt||a._status===ht){var X=a;X._status=Bt,X._result=re}}),a._status===ht){var E=a;E._status=Mt,E._result=y}}if(a._status===Ft){var L=a._result;return L===void 0&&F(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
34
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(s=i(s,n(f)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var f in s)t.call(s,f)&&s[f]&&(c=i(c,f));return c}function i(s,c){return c?s?s+" "+c:s+c:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})($a);var _s=$a.exports;const P=Bn(_s);var st=(e=>(e.Neutral="neutral",e.PrimarySolid="primary-solid",e.PrimarySoft="primary-fill",e))(st||{});const ws={[st.PrimarySolid]:"bg-primary-30",[st.Neutral]:"bg-neutral-92 dark:bg-neutral-12",[st.PrimarySoft]:"bg-primary-90 dark:bg-primary-10"},Ss={[st.PrimarySolid]:"text-primary-100",[st.Neutral]:"text-neutral-10 dark:text-neutral-92",[st.PrimarySoft]:"text-primary-20 dark:text-primary-90"},Es={[st.PrimarySolid]:"border-primary-30",[st.Neutral]:"border-neutral-92 dark:border-neutral-12",[st.PrimarySoft]:"border-primary-90 dark:border-primary-10"},Cs="text-label-md";function ln({type:e,label:t}){const r=ws[e],n=Ss[e],i=Es[e],s=t?"px-xs py-xxs":"h-1.5 w-1.5";return o.jsx("div",{className:P("inline-flex items-center space-x-2 rounded-full border disabled:opacity-30",r,i,s),children:o.jsx("span",{className:P(Cs,n),children:t})})}var Qe=(e=>(e.Small="small",e.Medium="medium",e))(Qe||{}),Ee=(e=>(e.Primary="primary",e.Secondary="secondary",e.Ghost="ghost",e.Outlined="outlined",e.Destructive="destructive",e))(Ee||{}),Mr=(e=>(e.Button="button",e.Submit="submit",e.Reset="reset",e))(Mr||{});const js={[Qe.Small]:"px-md py-xs",[Qe.Medium]:"px-md py-sm"},Rs={[Qe.Small]:"p-xs",[Qe.Medium]:"p-sm"},Ts={[Ee.Primary]:"bg-primary-30",[Ee.Secondary]:"bg-neutral-90 dark:bg-neutral-20",[Ee.Ghost]:"bg-transparent",[Ee.Outlined]:"bg-transparent border border-neutral-50",[Ee.Destructive]:"bg-error-90 dark:bg-error-20"},Os={[Ee.Primary]:"bg-neutral-80 dark:bg-neutral-30",[Ee.Secondary]:"bg-neutral-90 dark:bg-neutral-20",[Ee.Ghost]:"bg-transparent",[Ee.Outlined]:"bg-transparent border border-neutral-50",[Ee.Destructive]:"bg-error-90 dark:bg-error-20"},tr="text-neutral-10 dark:text-neutral-92",ks={[Ee.Primary]:"text-primary-100",[Ee.Secondary]:tr,[Ee.Ghost]:tr,[Ee.Outlined]:tr,[Ee.Destructive]:"text-error-20 dark:text-error-90"},Ns={[Qe.Small]:"text-label-md",[Qe.Medium]:"text-label-lg"},Ps={[Ee.Primary]:tr,[Ee.Secondary]:tr,[Ee.Ghost]:tr,[Ee.Outlined]:tr,[Ee.Destructive]:"text-error-20 dark:text-error-90"};function dt({icon:e,text:t,disabled:r,onClick:n,fullWidth:i,htmlType:s=Mr.Button,size:c=Qe.Medium,type:f=Ee.Primary,iconAfterText:x=!1,tabIndex:h=0,testId:_}){const b=e&&!t?Rs[c]:js[c],j=Ns[c],R=r?Os[f]:Ts[f],k=r?Ps[f]:ks[f];return o.jsxs("button",{onClick:n,type:s,className:P("state-layer relative flex items-center justify-center gap-2 rounded-full transition-all duration-150 ease-in disabled:cursor-not-allowed disabled:opacity-40",b,R,i&&"w-full",x?"flex-row-reverse":"flex-row"),disabled:r,tabIndex:h,"data-testid":_,children:[e&&o.jsx("span",{className:P(k),children:e}),t&&o.jsx("span",{className:P("font-inter",k,j),children:t})]})}function As({htmlType:e=Mr.Button,children:t,tabIndex:r=0,...n}){return o.jsx("button",{className:"flex items-center justify-center rounded-xl border border-neutral-70 px-sm text-body-md text-neutral-40 disabled:opacity-40 dark:border-neutral-40 dark:text-neutral-60",type:e,tabIndex:r,...n,children:t})}function nt({htmlType:e=Mr.Button,children:t,className:r,tabIndex:n=0,testId:i,...s}){return o.jsx("button",{type:e,...s,className:P("appearance-none",r),tabIndex:n,"data-testid":i,children:t})}var Ds=Object.create,Ua=Object.defineProperty,Is=Object.getOwnPropertyDescriptor,Wa=Object.getOwnPropertyNames,Ls=Object.getPrototypeOf,Ms=Object.prototype.hasOwnProperty,_r=(e,t)=>function(){return t||(0,e[Wa(e)[0]])((t={exports:{}}).exports,t),t.exports},Fs=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Wa(t))!Ms.call(e,i)&&i!==r&&Ua(e,i,{get:()=>t[i],enumerable:!(n=Is(t,i))||n.enumerable});return e},D=(e,t,r)=>(r=e!=null?Ds(Ls(e)):{},Fs(!e||!e.__esModule?Ua(r,"default",{value:e,enumerable:!0}):r,e)),Bs=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(e){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),j=Symbol.iterator;function R(p){return p===null||typeof p!="object"?null:(p=j&&p[j]||p["@@iterator"],typeof p=="function"?p:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,L={};function A(p,T,ie){this.props=p,this.context=T,this.refs=L,this.updater=ie||k}A.prototype.isReactComponent={},A.prototype.setState=function(p,T){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,T,"setState")},A.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function H(){}H.prototype=A.prototype;function Y(p,T,ie){this.props=p,this.context=T,this.refs=L,this.updater=ie||k}var Q=Y.prototype=new H;Q.constructor=Y,O(Q,A.prototype),Q.isPureReactComponent=!0;var G=Array.isArray,se=Object.prototype.hasOwnProperty,$={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function le(p,T,ie){var ve,ue={},ge=null,me=null;if(T!=null)for(ve in T.ref!==void 0&&(me=T.ref),T.key!==void 0&&(ge=""+T.key),T)se.call(T,ve)&&!M.hasOwnProperty(ve)&&(ue[ve]=T[ve]);var be=arguments.length-2;if(be===1)ue.children=ie;else if(1<be){for(var pe=Array(be),Me=0;Me<be;Me++)pe[Me]=arguments[Me+2];ue.children=pe}if(p&&p.defaultProps)for(ve in be=p.defaultProps,be)ue[ve]===void 0&&(ue[ve]=be[ve]);return{$$typeof:t,type:p,key:ge,ref:me,props:ue,_owner:$.current}}function ke(p,T){return{$$typeof:t,type:p.type,key:T,ref:p.ref,props:p.props,_owner:p._owner}}function We(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function Ke(p){var T={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(ie){return T[ie]})}var De=/\/+/g;function Oe(p,T){return typeof p=="object"&&p!==null&&p.key!=null?Ke(""+p.key):T.toString(36)}function je(p,T,ie,ve,ue){var ge=typeof p;(ge==="undefined"||ge==="boolean")&&(p=null);var me=!1;if(p===null)me=!0;else switch(ge){case"string":case"number":me=!0;break;case"object":switch(p.$$typeof){case t:case r:me=!0}}if(me)return me=p,ue=ue(me),p=ve===""?"."+Oe(me,0):ve,G(ue)?(ie="",p!=null&&(ie=p.replace(De,"$&/")+"/"),je(ue,T,ie,"",function(Me){return Me})):ue!=null&&(We(ue)&&(ue=ke(ue,ie+(!ue.key||me&&me.key===ue.key?"":(""+ue.key).replace(De,"$&/")+"/")+p)),T.push(ue)),1;if(me=0,ve=ve===""?".":ve+":",G(p))for(var be=0;be<p.length;be++){ge=p[be];var pe=ve+Oe(ge,be);me+=je(ge,T,ie,pe,ue)}else if(pe=R(p),typeof pe=="function")for(p=pe.call(p),be=0;!(ge=p.next()).done;)ge=ge.value,pe=ve+Oe(ge,be++),me+=je(ge,T,ie,pe,ue);else if(ge==="object")throw T=String(p),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.");return me}function J(p,T,ie){if(p==null)return p;var ve=[],ue=0;return je(p,ve,"","",function(ge){return T.call(ie,ge,ue++)}),ve}function V(p){if(p._status===-1){var T=p._result;T=T(),T.then(function(ie){(p._status===0||p._status===-1)&&(p._status=1,p._result=ie)},function(ie){(p._status===0||p._status===-1)&&(p._status=2,p._result=ie)}),p._status===-1&&(p._status=0,p._result=T)}if(p._status===1)return p._result.default;throw p._result}var ne={current:null},we={transition:null},Te={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:we,ReactCurrentOwner:$};function Se(){throw Error("act(...) is not supported in production builds of React.")}e.Children={map:J,forEach:function(p,T,ie){J(p,function(){T.apply(this,arguments)},ie)},count:function(p){var T=0;return J(p,function(){T++}),T},toArray:function(p){return J(p,function(T){return T})||[]},only:function(p){if(!We(p))throw Error("React.Children.only expected to receive a single React element child.");return p}},e.Component=A,e.Fragment=n,e.Profiler=s,e.PureComponent=Y,e.StrictMode=i,e.Suspense=h,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Te,e.act=Se,e.cloneElement=function(p,T,ie){if(p==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+p+".");var ve=O({},p.props),ue=p.key,ge=p.ref,me=p._owner;if(T!=null){if(T.ref!==void 0&&(ge=T.ref,me=$.current),T.key!==void 0&&(ue=""+T.key),p.type&&p.type.defaultProps)var be=p.type.defaultProps;for(pe in T)se.call(T,pe)&&!M.hasOwnProperty(pe)&&(ve[pe]=T[pe]===void 0&&be!==void 0?be[pe]:T[pe])}var pe=arguments.length-2;if(pe===1)ve.children=ie;else if(1<pe){be=Array(pe);for(var Me=0;Me<pe;Me++)be[Me]=arguments[Me+2];ve.children=be}return{$$typeof:t,type:p.type,key:ue,ref:ge,props:ve,_owner:me}},e.createContext=function(p){return p={$$typeof:f,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},p.Provider={$$typeof:c,_context:p},p.Consumer=p},e.createElement=le,e.createFactory=function(p){var T=le.bind(null,p);return T.type=p,T},e.createRef=function(){return{current:null}},e.forwardRef=function(p){return{$$typeof:x,render:p}},e.isValidElement=We,e.lazy=function(p){return{$$typeof:b,_payload:{_status:-1,_result:p},_init:V}},e.memo=function(p,T){return{$$typeof:_,type:p,compare:T===void 0?null:T}},e.startTransition=function(p){var T=we.transition;we.transition={};try{p()}finally{we.transition=T}},e.unstable_act=Se,e.useCallback=function(p,T){return ne.current.useCallback(p,T)},e.useContext=function(p){return ne.current.useContext(p)},e.useDebugValue=function(){},e.useDeferredValue=function(p){return ne.current.useDeferredValue(p)},e.useEffect=function(p,T){return ne.current.useEffect(p,T)},e.useId=function(){return ne.current.useId()},e.useImperativeHandle=function(p,T,ie){return ne.current.useImperativeHandle(p,T,ie)},e.useInsertionEffect=function(p,T){return ne.current.useInsertionEffect(p,T)},e.useLayoutEffect=function(p,T){return ne.current.useLayoutEffect(p,T)},e.useMemo=function(p,T){return ne.current.useMemo(p,T)},e.useReducer=function(p,T,ie){return ne.current.useReducer(p,T,ie)},e.useRef=function(p){return ne.current.useRef(p)},e.useState=function(p){return ne.current.useState(p)},e.useSyncExternalStore=function(p,T,ie){return ne.current.useSyncExternalStore(p,T,ie)},e.useTransition=function(){return ne.current.useTransition()},e.version="18.3.1"}}),Vs=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(e,t){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r="18.3.1",n=Symbol.for("react.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),h=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),L=Symbol.iterator,A="@@iterator";function H(a){if(a===null||typeof a!="object")return null;var d=L&&a[L]||a[A];return typeof d=="function"?d:null}var Y={current:null},Q={transition:null},G={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},se={current:null},$={},M=null;function le(a){M=a}$.setExtraStackFrame=function(a){M=a},$.getCurrentStack=null,$.getStackAddendum=function(){var a="";M&&(a+=M);var d=$.getCurrentStack;return d&&(a+=d()||""),a};var ke=!1,We=!1,Ke=!1,De=!1,Oe=!1,je={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:Q,ReactCurrentOwner:se};je.ReactDebugCurrentFrame=$,je.ReactCurrentActQueue=G;function J(a){{for(var d=arguments.length,y=new Array(d>1?d-1:0),C=1;C<d;C++)y[C-1]=arguments[C];ne("warn",a,y)}}function V(a){{for(var d=arguments.length,y=new Array(d>1?d-1:0),C=1;C<d;C++)y[C-1]=arguments[C];ne("error",a,y)}}function ne(a,d,y){{var C=je.ReactDebugCurrentFrame,F=C.getStackAddendum();F!==""&&(d+="%s",y=y.concat([F]));var re=y.map(function(X){return String(X)});re.unshift("Warning: "+d),Function.prototype.apply.call(console[a],console,re)}}var we={};function Te(a,d){{var y=a.constructor,C=y&&(y.displayName||y.name)||"ReactClass",F=C+"."+d;if(we[F])return;V("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",d,C),we[F]=!0}}var Se={isMounted:function(a){return!1},enqueueForceUpdate:function(a,d,y){Te(a,"forceUpdate")},enqueueReplaceState:function(a,d,y,C){Te(a,"replaceState")},enqueueSetState:function(a,d,y,C){Te(a,"setState")}},p=Object.assign,T={};Object.freeze(T);function ie(a,d,y){this.props=a,this.context=d,this.refs=T,this.updater=y||Se}ie.prototype.isReactComponent={},ie.prototype.setState=function(a,d){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,d,"setState")},ie.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};{var ve={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},ue=function(a,d){Object.defineProperty(ie.prototype,a,{get:function(){J("%s(...) is deprecated in plain JavaScript React classes. %s",d[0],d[1])}})};for(var ge in ve)ve.hasOwnProperty(ge)&&ue(ge,ve[ge])}function me(){}me.prototype=ie.prototype;function be(a,d,y){this.props=a,this.context=d,this.refs=T,this.updater=y||Se}var pe=be.prototype=new me;pe.constructor=be,p(pe,ie.prototype),pe.isPureReactComponent=!0;function Me(){var a={current:null};return Object.seal(a),a}var bt=Array.isArray;function ut(a){return bt(a)}function Bt(a){{var d=typeof Symbol=="function"&&Symbol.toStringTag,y=d&&a[Symbol.toStringTag]||a.constructor.name||"Object";return y}}function ct(a){try{return tt(a),!1}catch{return!0}}function tt(a){return""+a}function U(a){if(ct(a))return V("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Bt(a)),tt(a)}function z(a,d,y){var C=a.displayName;if(C)return C;var F=d.displayName||d.name||"";return F!==""?y+"("+F+")":y}function ae(a){return a.displayName||"Context"}function ce(a){if(a==null)return null;if(typeof a.tag=="number"&&V("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case s:return"Fragment";case i:return"Portal";case f:return"Profiler";case c:return"StrictMode";case b:return"Suspense";case j:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case h:var d=a;return ae(d)+".Consumer";case x:var y=a;return ae(y._context)+".Provider";case _:return z(a,a.render,"ForwardRef");case R:var C=a.displayName||null;return C!==null?C:ce(a.type)||"Memo";case k:{var F=a,re=F._payload,X=F._init;try{return ce(X(re))}catch{return null}}}return null}var Pe=Object.prototype.hasOwnProperty,ye={key:!0,ref:!0,__self:!0,__source:!0},fe,Xe,Ge;Ge={};function qe(a){if(Pe.call(a,"ref")){var d=Object.getOwnPropertyDescriptor(a,"ref").get;if(d&&d.isReactWarning)return!1}return a.ref!==void 0}function it(a){if(Pe.call(a,"key")){var d=Object.getOwnPropertyDescriptor(a,"key").get;if(d&&d.isReactWarning)return!1}return a.key!==void 0}function yt(a,d){var y=function(){fe||(fe=!0,V("%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)",d))};y.isReactWarning=!0,Object.defineProperty(a,"key",{get:y,configurable:!0})}function Vt(a,d){var y=function(){Xe||(Xe=!0,V("%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)",d))};y.isReactWarning=!0,Object.defineProperty(a,"ref",{get:y,configurable:!0})}function Nt(a){if(typeof a.ref=="string"&&se.current&&a.__self&&se.current.stateNode!==a.__self){var d=ce(se.current.type);Ge[d]||(V('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d,a.ref),Ge[d]=!0)}}var _t=function(a,d,y,C,F,re,X){var de={$$typeof:n,type:a,key:d,ref:y,props:X,_owner:re};return de._store={},Object.defineProperty(de._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(de,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(de,"_source",{configurable:!1,enumerable:!1,writable:!1,value:F}),Object.freeze&&(Object.freeze(de.props),Object.freeze(de)),de};function Kt(a,d,y){var C,F={},re=null,X=null,de=null,Ce=null;if(d!=null){qe(d)&&(X=d.ref,Nt(d)),it(d)&&(U(d.key),re=""+d.key),de=d.__self===void 0?null:d.__self,Ce=d.__source===void 0?null:d.__source;for(C in d)Pe.call(d,C)&&!ye.hasOwnProperty(C)&&(F[C]=d[C])}var Ie=arguments.length-2;if(Ie===1)F.children=y;else if(Ie>1){for(var Fe=Array(Ie),Be=0;Be<Ie;Be++)Fe[Be]=arguments[Be+2];Object.freeze&&Object.freeze(Fe),F.children=Fe}if(a&&a.defaultProps){var $e=a.defaultProps;for(C in $e)F[C]===void 0&&(F[C]=$e[C])}if(re||X){var ze=typeof a=="function"?a.displayName||a.name||"Unknown":a;re&&yt(F,ze),X&&Vt(F,ze)}return _t(a,re,X,de,Ce,se.current,F)}function dr(a,d){var y=_t(a.type,d,a.ref,a._self,a._source,a._owner,a.props);return y}function vr(a,d,y){if(a==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var C,F=p({},a.props),re=a.key,X=a.ref,de=a._self,Ce=a._source,Ie=a._owner;if(d!=null){qe(d)&&(X=d.ref,Ie=se.current),it(d)&&(U(d.key),re=""+d.key);var Fe;a.type&&a.type.defaultProps&&(Fe=a.type.defaultProps);for(C in d)Pe.call(d,C)&&!ye.hasOwnProperty(C)&&(d[C]===void 0&&Fe!==void 0?F[C]=Fe[C]:F[C]=d[C])}var Be=arguments.length-2;if(Be===1)F.children=y;else if(Be>1){for(var $e=Array(Be),ze=0;ze<Be;ze++)$e[ze]=arguments[ze+2];F.children=$e}return _t(a.type,re,X,de,Ce,Ie,F)}function et(a){return typeof a=="object"&&a!==null&&a.$$typeof===n}var wt=".",mr=":";function Pt(a){var d=/[=:]/g,y={"=":"=0",":":"=2"},C=a.replace(d,function(F){return y[F]});return"$"+C}var St=!1,ot=/\/+/g;function Ze(a){return a.replace(ot,"$&/")}function ft(a,d){return typeof a=="object"&&a!==null&&a.key!=null?(U(a.key),Pt(""+a.key)):d.toString(36)}function Je(a,d,y,C,F){var re=typeof a;(re==="undefined"||re==="boolean")&&(a=null);var X=!1;if(a===null)X=!0;else switch(re){case"string":case"number":X=!0;break;case"object":switch(a.$$typeof){case n:case i:X=!0}}if(X){var de=a,Ce=F(de),Ie=C===""?wt+ft(de,0):C;if(ut(Ce)){var Fe="";Ie!=null&&(Fe=Ze(Ie)+"/"),Je(Ce,d,Fe,"",function(id){return id})}else Ce!=null&&(et(Ce)&&(Ce.key&&(!de||de.key!==Ce.key)&&U(Ce.key),Ce=dr(Ce,y+(Ce.key&&(!de||de.key!==Ce.key)?Ze(""+Ce.key)+"/":"")+Ie)),d.push(Ce));return 1}var Be,$e,ze=0,rt=C===""?wt:C+mr;if(ut(a))for(var Fn=0;Fn<a.length;Fn++)Be=a[Fn],$e=rt+ft(Be,Fn),ze+=Je(Be,d,y,$e,F);else{var ja=H(a);if(typeof ja=="function"){var rs=a;ja===rs.entries&&(St||J("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),St=!0);for(var nd=ja.call(rs),ns,ad=0;!(ns=nd.next()).done;)Be=ns.value,$e=rt+ft(Be,ad++),ze+=Je(Be,d,y,$e,F)}else if(re==="object"){var as=String(a);throw new Error("Objects are not valid as a React child (found: "+(as==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":as)+"). If you meant to render a collection of children, use an array instead.")}}return ze}function Et(a,d,y){if(a==null)return a;var C=[],F=0;return Je(a,C,"","",function(re){return d.call(y,re,F++)}),C}function Xt(a){var d=0;return Et(a,function(){d++}),d}function qt(a,d,y){Et(a,function(){d.apply(this,arguments)},y)}function Zt(a){return Et(a,function(d){return d})||[]}function $t(a){if(!et(a))throw new Error("React.Children.only expected to receive a single React element child.");return a}function at(a){var d={$$typeof:h,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};d.Provider={$$typeof:x,_context:d};var y=!1,C=!1,F=!1;{var re={$$typeof:h,_context:d};Object.defineProperties(re,{Provider:{get:function(){return C||(C=!0,V("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),d.Provider},set:function(X){d.Provider=X}},_currentValue:{get:function(){return d._currentValue},set:function(X){d._currentValue=X}},_currentValue2:{get:function(){return d._currentValue2},set:function(X){d._currentValue2=X}},_threadCount:{get:function(){return d._threadCount},set:function(X){d._threadCount=X}},Consumer:{get:function(){return y||(y=!0,V("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),d.Consumer}},displayName:{get:function(){return d.displayName},set:function(X){F||(J("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",X),F=!0)}}}),d.Consumer=re}return d._currentRenderer=null,d._currentRenderer2=null,d}var Ct=-1,At=0,Dt=1,Jt=2;function hr(a){if(a._status===Ct){var d=a._result,y=d();if(y.then(function(re){if(a._status===At||a._status===Ct){var X=a;X._status=Dt,X._result=re}},function(re){if(a._status===At||a._status===Ct){var X=a;X._status=Jt,X._result=re}}),a._status===Ct){var C=a;C._status=At,C._result=y}}if(a._status===Dt){var F=a._result;return F===void 0&&V(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
35
35
|
|
|
36
36
|
Your code should look like:
|
|
37
37
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
38
38
|
|
|
39
|
-
Did you accidentally put curly braces around the import?`,
|
|
39
|
+
Did you accidentally put curly braces around the import?`,F),"default"in F||V(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
40
40
|
|
|
41
41
|
Your code should look like:
|
|
42
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
42
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,F),F.default}else throw a._result}function vt(a){var d={_status:Ct,_result:a},y={$$typeof:k,_payload:d,_init:hr};{var C,F;Object.defineProperties(y,{defaultProps:{configurable:!0,get:function(){return C},set:function(re){V("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),C=re,Object.defineProperty(y,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return F},set:function(re){V("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),F=re,Object.defineProperty(y,"propTypes",{enumerable:!0})}}})}return y}function pr(a){a!=null&&a.$$typeof===R?V("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof a!="function"?V("forwardRef requires a render function but was given %s.",a===null?"null":typeof a):a.length!==0&&a.length!==2&&V("forwardRef render functions accept exactly two parameters: props and ref. %s",a.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),a!=null&&(a.defaultProps!=null||a.propTypes!=null)&&V("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var d={$$typeof:_,render:a};{var y;Object.defineProperty(d,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(C){y=C,!a.name&&!a.displayName&&(a.displayName=C)}})}return d}var v;v=Symbol.for("react.module.reference");function l(a){return!!(typeof a=="string"||typeof a=="function"||a===s||a===f||Oe||a===c||a===b||a===j||De||a===O||ke||We||Ke||typeof a=="object"&&a!==null&&(a.$$typeof===k||a.$$typeof===R||a.$$typeof===x||a.$$typeof===h||a.$$typeof===_||a.$$typeof===v||a.getModuleId!==void 0))}function g(a,d){l(a)||V("memo: The first argument must be a component. Instead received: %s",a===null?"null":typeof a);var y={$$typeof:R,type:a,compare:d===void 0?null:d};{var C;Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return C},set:function(F){C=F,!a.name&&!a.displayName&&(a.displayName=F)}})}return y}function E(){var a=Y.current;return a===null&&V(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
43
43
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
44
44
|
2. You might be breaking the Rules of Hooks
|
|
45
45
|
3. You might have more than one copy of React in the same app
|
|
46
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}function
|
|
47
|
-
`+qr+a}}var xr=!1,
|
|
48
|
-
`),Ce=
|
|
49
|
-
`),
|
|
50
|
-
`+
|
|
46
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}function B(a){var d=E();if(a._context!==void 0){var y=a._context;y.Consumer===a?V("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):y.Provider===a&&V("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return d.useContext(a)}function Z(a){var d=E();return d.useState(a)}function K(a,d,y){var C=E();return C.useReducer(a,d,y)}function W(a){var d=E();return d.useRef(a)}function ee(a,d){var y=E();return y.useEffect(a,d)}function he(a,d){var y=E();return y.useInsertionEffect(a,d)}function oe(a,d){var y=E();return y.useLayoutEffect(a,d)}function xe(a,d){var y=E();return y.useCallback(a,d)}function Ve(a,d){var y=E();return y.useMemo(a,d)}function Ye(a,d,y){var C=E();return C.useImperativeHandle(a,d,y)}function Ae(a,d){{var y=E();return y.useDebugValue(a,d)}}function He(){var a=E();return a.useTransition()}function mt(a){var d=E();return d.useDeferredValue(a)}function Qt(){var a=E();return a.useId()}function zr(a,d,y){var C=E();return C.useSyncExternalStore(a,d,y)}var gr=0,Cn,Kr,jn,Rn,Tn,On,kn;function Nn(){}Nn.__reactDisabledLog=!0;function ga(){{if(gr===0){Cn=console.log,Kr=console.info,jn=console.warn,Rn=console.error,Tn=console.group,On=console.groupCollapsed,kn=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Nn,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}gr++}}function xa(){{if(gr--,gr===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:p({},a,{value:Cn}),info:p({},a,{value:Kr}),warn:p({},a,{value:jn}),error:p({},a,{value:Rn}),group:p({},a,{value:Tn}),groupCollapsed:p({},a,{value:On}),groupEnd:p({},a,{value:kn})})}gr<0&&V("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xr=je.ReactCurrentDispatcher,qr;function Ut(a,d,y){{if(qr===void 0)try{throw Error()}catch(F){var C=F.stack.trim().match(/\n( *(at )?)/);qr=C&&C[1]||""}return`
|
|
47
|
+
`+qr+a}}var xr=!1,Or;{var ba=typeof WeakMap=="function"?WeakMap:Map;Or=new ba}function Zr(a,d){if(!a||xr)return"";{var y=Or.get(a);if(y!==void 0)return y}var C;xr=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var re;re=Xr.current,Xr.current=null,ga();try{if(d){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(rt){C=rt}Reflect.construct(a,[],X)}else{try{X.call()}catch(rt){C=rt}a.call(X.prototype)}}else{try{throw Error()}catch(rt){C=rt}a()}}catch(rt){if(rt&&C&&typeof rt.stack=="string"){for(var de=rt.stack.split(`
|
|
48
|
+
`),Ce=C.stack.split(`
|
|
49
|
+
`),Ie=de.length-1,Fe=Ce.length-1;Ie>=1&&Fe>=0&&de[Ie]!==Ce[Fe];)Fe--;for(;Ie>=1&&Fe>=0;Ie--,Fe--)if(de[Ie]!==Ce[Fe]){if(Ie!==1||Fe!==1)do if(Ie--,Fe--,Fe<0||de[Ie]!==Ce[Fe]){var Be=`
|
|
50
|
+
`+de[Ie].replace(" at new "," at ");return a.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",a.displayName)),typeof a=="function"&&Or.set(a,Be),Be}while(Ie>=1&&Fe>=0);break}}}finally{xr=!1,Xr.current=re,xa(),Error.prepareStackTrace=F}var $e=a?a.displayName||a.name:"",ze=$e?Ut($e):"";return typeof a=="function"&&Or.set(a,ze),ze}function ya(a,d,y){return Zr(a,!1)}function _a(a){var d=a.prototype;return!!(d&&d.isReactComponent)}function kr(a,d,y){if(a==null)return"";if(typeof a=="function")return Zr(a,_a(a));if(typeof a=="string")return Ut(a);switch(a){case b:return Ut("Suspense");case j:return Ut("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case _:return ya(a.render);case R:return kr(a.type,d,y);case k:{var C=a,F=C._payload,re=C._init;try{return kr(re(F),d,y)}catch{}}}return""}var Jr={},Pn=je.ReactDebugCurrentFrame;function Nr(a){if(a){var d=a._owner,y=kr(a.type,a._source,d?d.type:null);Pn.setExtraStackFrame(y)}else Pn.setExtraStackFrame(null)}function wa(a,d,y,C,F){{var re=Function.call.bind(Pe);for(var X in a)if(re(a,X)){var de=void 0;try{if(typeof a[X]!="function"){var Ce=Error((C||"React class")+": "+y+" type `"+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[X]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ce.name="Invariant Violation",Ce}de=a[X](d,X,C,y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ie){de=Ie}de&&!(de instanceof Error)&&(Nr(F),V("%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).",C||"React class",y,X,typeof de),Nr(null)),de instanceof Error&&!(de.message in Jr)&&(Jr[de.message]=!0,Nr(F),V("Failed %s type: %s",y,de.message),Nr(null))}}}function It(a){if(a){var d=a._owner,y=kr(a.type,a._source,d?d.type:null);le(y)}else le(null)}var Qr;Qr=!1;function An(){if(se.current){var a=ce(se.current.type);if(a)return`
|
|
51
51
|
|
|
52
|
-
Check the render method of \``+a+"`."}return""}function
|
|
52
|
+
Check the render method of \``+a+"`."}return""}function Sa(a){if(a!==void 0){var d=a.fileName.replace(/^.*[\\\/]/,""),y=a.lineNumber;return`
|
|
53
53
|
|
|
54
|
-
Check your code at `+d+":"+y+"."}return""}function Pr(a){return a!=null?
|
|
54
|
+
Check your code at `+d+":"+y+"."}return""}function Pr(a){return a!=null?Sa(a.__source):""}var Ar={};function en(a){var d=An();if(!d){var y=typeof a=="string"?a:a.displayName||a.name;y&&(d=`
|
|
55
55
|
|
|
56
|
-
Check the top-level render call using <`+y+">.")}return d}function Ir(a,d){if(!(!a._store||a._store.validated||a.key!=null)){a._store.validated=!0;var y=en(d);if(!Dr[y]){Dr[y]=!0;var E="";a&&a._owner&&a._owner!==ie.current&&(E=" It was passed a child from "+ue(a._owner.type)+"."),kt(a),F('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',y,E),kt(null)}}}function Dn(a,d){if(typeof a=="object"){if(ct(a))for(var y=0;y<a.length;y++){var E=a[y];Qe(E)&&Ir(E,d)}else if(Qe(a))a._store&&(a._store.validated=!0);else if(a){var L=$(a);if(typeof L=="function"&&L!==a.entries)for(var re=L.call(a),X;!(X=re.next()).done;)Qe(X.value)&&Ir(X.value,d)}}}function tn(a){{var d=a.type;if(d==null||typeof d=="string")return;var y;if(typeof d=="function")y=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===_||d.$$typeof===T))y=d.propTypes;else return;if(y){var E=ue(d);ba(y,a.props,"prop",E,a)}else if(d.PropTypes!==void 0&&!Qr){Qr=!0;var L=ue(d);F("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",L||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&F("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rn(a){{for(var d=Object.keys(a.props),y=0;y<d.length;y++){var E=d[y];if(E!=="children"&&E!=="key"){kt(a),F("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),kt(null);break}}a.ref!==null&&(kt(a),F("Invalid attribute `ref` supplied to `React.Fragment`."),kt(null))}}function nn(a,d,y){var E=v(a);if(!E){var L="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).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 re=Pr(d);re?L+=re:L+=Pn();var X;a===null?X="null":ct(a)?X="array":a!==void 0&&a.$$typeof===n?(X="<"+(ue(a.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):X=typeof a,F("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",X,L)}var fe=Tt.apply(this,arguments);if(fe==null)return fe;if(E)for(var Ce=2;Ce<arguments.length;Ce++)Dn(arguments[Ce],a);return a===s?rn(fe):tn(fe),fe}var At=!1;function br(a){var d=nn.bind(null,a);return d.type=a,At||(At=!0,J("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(d,"type",{enumerable:!1,get:function(){return J("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:a}),a}}),d}function _a(a,d,y){for(var E=mr.apply(this,arguments),L=2;L<arguments.length;L++)Dn(arguments[L],E.type);return tn(E),E}function In(a,d){var y=Y.transition;Y.transition={};var E=Y.transition;Y.transition._updatedFibers=new Set;try{a()}finally{if(Y.transition=y,y===null&&E._updatedFibers){var L=E._updatedFibers.size;L>10&&J("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),E._updatedFibers.clear()}}}var Ln=!1,yr=null;function wa(a){if(yr===null)try{var d=("require"+Math.random()).slice(0,7),y=t&&t[d];yr=y.call(t,"timers").setImmediate}catch{yr=function(L){Ln===!1&&(Ln=!0,typeof MessageChannel>"u"&&F("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var re=new MessageChannel;re.port1.onmessage=L,re.port2.postMessage(void 0)}}return yr(a)}var er=0,an=!1;function Mn(a){{var d=er;er++,U.current===null&&(U.current=[]);var y=U.isBatchingLegacy,E;try{if(U.isBatchingLegacy=!0,E=a(),!y&&U.didScheduleLegacyUpdate){var L=U.current;L!==null&&(U.didScheduleLegacyUpdate=!1,q(L))}}catch($e){throw u(d),$e}finally{U.isBatchingLegacy=y}if(E!==null&&typeof E=="object"&&typeof E.then=="function"){var re=E,X=!1,fe={then:function($e,Ke){X=!0,re.then(function(at){u(d),er===0?h(at,$e,Ke):$e(at)},function(at){u(d),Ke(at)})}};return!an&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){X||(an=!0,F("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),fe}else{var Ce=E;if(u(d),er===0){var De=U.current;De!==null&&(q(De),U.current=null);var Ve={then:function($e,Ke){U.current===null?(U.current=[],h(Ce,$e,Ke)):$e(Ce)}};return Ve}else{var Ue={then:function($e,Ke){$e(Ce)}};return Ue}}}}function u(a){a!==er-1&&F("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),er=a}function h(a,d,y){{var E=U.current;if(E!==null)try{q(E),wa(function(){E.length===0?(U.current=null,d(a)):h(a,d,y)})}catch(L){y(L)}else d(a)}}var w=!1;function q(a){if(!w){w=!0;var d=0;try{for(;d<a.length;d++){var y=a[d];do y=y(!0);while(y!==null)}a.length=0}catch(E){throw a=a.slice(d+1),E}finally{w=!1}}}var _e=nn,ke=_a,Me=br,Te={map:vt,forEach:Xt,count:Kt,toArray:qt,only:Zt};e.Children=Te,e.Component=oe,e.Fragment=s,e.Profiler=f,e.PureComponent=xe,e.StrictMode=c,e.Suspense=b,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Re,e.act=Mn,e.cloneElement=ke,e.createContext=nt,e.createElement=_e,e.createFactory=Me,e.createRef=Fe,e.forwardRef=pr,e.isValidElement=Qe,e.lazy=pt,e.memo=l,e.startTransition=In,e.unstable_act=Mn,e.useCallback=se,e.useContext=C,e.useDebugValue=ze,e.useDeferredValue=Be,e.useEffect=W,e.useId=Nt,e.useImperativeHandle=Ie,e.useInsertionEffect=ee,e.useLayoutEffect=me,e.useMemo=ye,e.useReducer=Z,e.useRef=z,e.useState=B,e.useSyncExternalStore=gr,e.useTransition=Le,e.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),Va=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=As():t.exports=Ps()}}),Ds=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js"(e){var t=Va(),r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(x,m,_){var b,j={},T=null,N=null;_!==void 0&&(T=""+_),m.key!==void 0&&(T=""+m.key),m.ref!==void 0&&(N=m.ref);for(b in m)o.call(m,b)&&!c.hasOwnProperty(b)&&(j[b]=m[b]);if(x&&x.defaultProps)for(b in m=x.defaultProps,m)j[b]===void 0&&(j[b]=m[b]);return{$$typeof:r,type:x,key:T,ref:N,props:j,_owner:s.current}}e.Fragment=n,e.jsx=f,e.jsxs=f}}),Is=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js"(e){process.env.NODE_ENV!=="production"&&function(){var t=Va(),r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),x=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),N=Symbol.for("react.offscreen"),O=Symbol.iterator,M="@@iterator";function P(l){if(l===null||typeof l!="object")return null;var p=O&&l[O]||l[M];return typeof p=="function"?p:null}var $=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function H(l){{for(var p=arguments.length,C=new Array(p>1?p-1:0),B=1;B<p;B++)C[B-1]=arguments[B];Y("error",l,C)}}function Y(l,p,C){{var B=$.ReactDebugCurrentFrame,Z=B.getStackAddendum();Z!==""&&(p+="%s",C=C.concat([Z]));var z=C.map(function(W){return String(W)});z.unshift("Warning: "+p),Function.prototype.apply.call(console[l],console,z)}}var U=!1,ie=!1,Q=!1,K=!1,pe=!1,Pe;Pe=Symbol.for("react.module.reference");function He(l){return!!(typeof l=="string"||typeof l=="function"||l===o||l===c||pe||l===s||l===_||l===b||K||l===N||U||ie||Q||typeof l=="object"&&l!==null&&(l.$$typeof===T||l.$$typeof===j||l.$$typeof===f||l.$$typeof===x||l.$$typeof===m||l.$$typeof===Pe||l.getModuleId!==void 0))}function Xe(l,p,C){var B=l.displayName;if(B)return B;var Z=p.displayName||p.name||"";return Z!==""?C+"("+Z+")":C}function Ne(l){return l.displayName||"Context"}function je(l){if(l==null)return null;if(typeof l.tag=="number"&&H("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case o:return"Fragment";case n:return"Portal";case c:return"Profiler";case s:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case x:var p=l;return Ne(p)+".Consumer";case f:var C=l;return Ne(C._context)+".Provider";case m:return Xe(l,l.render,"ForwardRef");case j:var B=l.displayName||null;return B!==null?B:je(l.type)||"Memo";case T:{var Z=l,z=Z._payload,W=Z._init;try{return je(W(z))}catch{return null}}}return null}var Re=Object.assign,J=0,F,ne,we,Oe,Se,g,R;function oe(){}oe.__reactDisabledLog=!0;function de(){{if(J===0){F=console.log,ne=console.info,we=console.warn,Oe=console.error,Se=console.group,g=console.groupCollapsed,R=console.groupEnd;var l={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}J++}}function le(){{if(J--,J===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Re({},l,{value:F}),info:Re({},l,{value:ne}),warn:Re({},l,{value:we}),error:Re({},l,{value:Oe}),group:Re({},l,{value:Se}),groupCollapsed:Re({},l,{value:g}),groupEnd:Re({},l,{value:R})})}J<0&&H("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ge=$.ReactCurrentDispatcher,ve;function xe(l,p,C){{if(ve===void 0)try{throw Error()}catch(Z){var B=Z.stack.trim().match(/\n( *(at )?)/);ve=B&&B[1]||""}return`
|
|
57
|
-
`+
|
|
58
|
-
`),
|
|
59
|
-
`),
|
|
60
|
-
`+ee[
|
|
56
|
+
Check the top-level render call using <`+y+">.")}return d}function Dr(a,d){if(!(!a._store||a._store.validated||a.key!=null)){a._store.validated=!0;var y=en(d);if(!Ar[y]){Ar[y]=!0;var C="";a&&a._owner&&a._owner!==se.current&&(C=" It was passed a child from "+ce(a._owner.type)+"."),It(a),V('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',y,C),It(null)}}}function Dn(a,d){if(typeof a=="object"){if(ut(a))for(var y=0;y<a.length;y++){var C=a[y];et(C)&&Dr(C,d)}else if(et(a))a._store&&(a._store.validated=!0);else if(a){var F=H(a);if(typeof F=="function"&&F!==a.entries)for(var re=F.call(a),X;!(X=re.next()).done;)et(X.value)&&Dr(X.value,d)}}}function tn(a){{var d=a.type;if(d==null||typeof d=="string")return;var y;if(typeof d=="function")y=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===_||d.$$typeof===R))y=d.propTypes;else return;if(y){var C=ce(d);wa(y,a.props,"prop",C,a)}else if(d.PropTypes!==void 0&&!Qr){Qr=!0;var F=ce(d);V("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",F||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&V("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rn(a){{for(var d=Object.keys(a.props),y=0;y<d.length;y++){var C=d[y];if(C!=="children"&&C!=="key"){It(a),V("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),It(null);break}}a.ref!==null&&(It(a),V("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}function nn(a,d,y){var C=l(a);if(!C){var F="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(F+=" 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 re=Pr(d);re?F+=re:F+=An();var X;a===null?X="null":ut(a)?X="array":a!==void 0&&a.$$typeof===n?(X="<"+(ce(a.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):X=typeof a,V("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",X,F)}var de=Kt.apply(this,arguments);if(de==null)return de;if(C)for(var Ce=2;Ce<arguments.length;Ce++)Dn(arguments[Ce],a);return a===s?rn(de):tn(de),de}var Lt=!1;function br(a){var d=nn.bind(null,a);return d.type=a,Lt||(Lt=!0,J("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(d,"type",{enumerable:!1,get:function(){return J("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:a}),a}}),d}function Ea(a,d,y){for(var C=vr.apply(this,arguments),F=2;F<arguments.length;F++)Dn(arguments[F],C.type);return tn(C),C}function In(a,d){var y=Q.transition;Q.transition={};var C=Q.transition;Q.transition._updatedFibers=new Set;try{a()}finally{if(Q.transition=y,y===null&&C._updatedFibers){var F=C._updatedFibers.size;F>10&&J("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),C._updatedFibers.clear()}}}var Ln=!1,yr=null;function Ca(a){if(yr===null)try{var d=("require"+Math.random()).slice(0,7),y=t&&t[d];yr=y.call(t,"timers").setImmediate}catch{yr=function(F){Ln===!1&&(Ln=!0,typeof MessageChannel>"u"&&V("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var re=new MessageChannel;re.port1.onmessage=F,re.port2.postMessage(void 0)}}return yr(a)}var er=0,an=!1;function Mn(a){{var d=er;er++,G.current===null&&(G.current=[]);var y=G.isBatchingLegacy,C;try{if(G.isBatchingLegacy=!0,C=a(),!y&&G.didScheduleLegacyUpdate){var F=G.current;F!==null&&(G.didScheduleLegacyUpdate=!1,q(F))}}catch($e){throw u(d),$e}finally{G.isBatchingLegacy=y}if(C!==null&&typeof C=="object"&&typeof C.then=="function"){var re=C,X=!1,de={then:function($e,ze){X=!0,re.then(function(rt){u(d),er===0?m(rt,$e,ze):$e(rt)},function(rt){u(d),ze(rt)})}};return!an&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){X||(an=!0,V("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),de}else{var Ce=C;if(u(d),er===0){var Ie=G.current;Ie!==null&&(q(Ie),G.current=null);var Fe={then:function($e,ze){G.current===null?(G.current=[],m(Ce,$e,ze)):$e(Ce)}};return Fe}else{var Be={then:function($e,ze){$e(Ce)}};return Be}}}}function u(a){a!==er-1&&V("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),er=a}function m(a,d,y){{var C=G.current;if(C!==null)try{q(C),Ca(function(){C.length===0?(G.current=null,d(a)):m(a,d,y)})}catch(F){y(F)}else d(a)}}var w=!1;function q(a){if(!w){w=!0;var d=0;try{for(;d<a.length;d++){var y=a[d];do y=y(!0);while(y!==null)}a.length=0}catch(C){throw a=a.slice(d+1),C}finally{w=!1}}}var _e=nn,Ne=Ea,Le=br,Re={map:Et,forEach:qt,count:Xt,toArray:Zt,only:$t};e.Children=Re,e.Component=ie,e.Fragment=s,e.Profiler=f,e.PureComponent=be,e.StrictMode=c,e.Suspense=b,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,e.act=Mn,e.cloneElement=Ne,e.createContext=at,e.createElement=_e,e.createFactory=Le,e.createRef=Me,e.forwardRef=pr,e.isValidElement=et,e.lazy=vt,e.memo=g,e.startTransition=In,e.unstable_act=Mn,e.useCallback=xe,e.useContext=B,e.useDebugValue=Ae,e.useDeferredValue=mt,e.useEffect=ee,e.useId=Qt,e.useImperativeHandle=Ye,e.useInsertionEffect=he,e.useLayoutEffect=oe,e.useMemo=Ve,e.useReducer=K,e.useRef=W,e.useState=Z,e.useSyncExternalStore=zr,e.useTransition=He,e.version=r,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}}),Ha=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(e,t){process.env.NODE_ENV==="production"?t.exports=Bs():t.exports=Vs()}}),$s=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js"(e){var t=Ha(),r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(x,h,_){var b,j={},R=null,k=null;_!==void 0&&(R=""+_),h.key!==void 0&&(R=""+h.key),h.ref!==void 0&&(k=h.ref);for(b in h)i.call(h,b)&&!c.hasOwnProperty(b)&&(j[b]=h[b]);if(x&&x.defaultProps)for(b in h=x.defaultProps,h)j[b]===void 0&&(j[b]=h[b]);return{$$typeof:r,type:x,key:R,ref:k,props:j,_owner:s.current}}e.Fragment=n,e.jsx=f,e.jsxs=f}}),Us=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js"(e){process.env.NODE_ENV!=="production"&&function(){var t=Ha(),r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),x=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),O=Symbol.iterator,L="@@iterator";function A(l){if(l===null||typeof l!="object")return null;var g=O&&l[O]||l[L];return typeof g=="function"?g:null}var H=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(l){{for(var g=arguments.length,E=new Array(g>1?g-1:0),B=1;B<g;B++)E[B-1]=arguments[B];Q("error",l,E)}}function Q(l,g,E){{var B=H.ReactDebugCurrentFrame,Z=B.getStackAddendum();Z!==""&&(g+="%s",E=E.concat([Z]));var K=E.map(function(W){return String(W)});K.unshift("Warning: "+g),Function.prototype.apply.call(console[l],console,K)}}var G=!1,se=!1,$=!1,M=!1,le=!1,ke;ke=Symbol.for("react.module.reference");function We(l){return!!(typeof l=="string"||typeof l=="function"||l===i||l===c||le||l===s||l===_||l===b||M||l===k||G||se||$||typeof l=="object"&&l!==null&&(l.$$typeof===R||l.$$typeof===j||l.$$typeof===f||l.$$typeof===x||l.$$typeof===h||l.$$typeof===ke||l.getModuleId!==void 0))}function Ke(l,g,E){var B=l.displayName;if(B)return B;var Z=g.displayName||g.name||"";return Z!==""?E+"("+Z+")":E}function De(l){return l.displayName||"Context"}function Oe(l){if(l==null)return null;if(typeof l.tag=="number"&&Y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case i:return"Fragment";case n:return"Portal";case c:return"Profiler";case s:return"StrictMode";case _:return"Suspense";case b:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case x:var g=l;return De(g)+".Consumer";case f:var E=l;return De(E._context)+".Provider";case h:return Ke(l,l.render,"ForwardRef");case j:var B=l.displayName||null;return B!==null?B:Oe(l.type)||"Memo";case R:{var Z=l,K=Z._payload,W=Z._init;try{return Oe(W(K))}catch{return null}}}return null}var je=Object.assign,J=0,V,ne,we,Te,Se,p,T;function ie(){}ie.__reactDisabledLog=!0;function ve(){{if(J===0){V=console.log,ne=console.info,we=console.warn,Te=console.error,Se=console.group,p=console.groupCollapsed,T=console.groupEnd;var l={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}J++}}function ue(){{if(J--,J===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:je({},l,{value:V}),info:je({},l,{value:ne}),warn:je({},l,{value:we}),error:je({},l,{value:Te}),group:je({},l,{value:Se}),groupCollapsed:je({},l,{value:p}),groupEnd:je({},l,{value:T})})}J<0&&Y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ge=H.ReactCurrentDispatcher,me;function be(l,g,E){{if(me===void 0)try{throw Error()}catch(Z){var B=Z.stack.trim().match(/\n( *(at )?)/);me=B&&B[1]||""}return`
|
|
57
|
+
`+me+l}}var pe=!1,Me;{var bt=typeof WeakMap=="function"?WeakMap:Map;Me=new bt}function ut(l,g){if(!l||pe)return"";{var E=Me.get(l);if(E!==void 0)return E}var B;pe=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var K;K=ge.current,ge.current=null,ve();try{if(g){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(He){B=He}Reflect.construct(l,[],W)}else{try{W.call()}catch(He){B=He}l.call(W.prototype)}}else{try{throw Error()}catch(He){B=He}l()}}catch(He){if(He&&B&&typeof He.stack=="string"){for(var ee=He.stack.split(`
|
|
58
|
+
`),he=B.stack.split(`
|
|
59
|
+
`),oe=ee.length-1,xe=he.length-1;oe>=1&&xe>=0&&ee[oe]!==he[xe];)xe--;for(;oe>=1&&xe>=0;oe--,xe--)if(ee[oe]!==he[xe]){if(oe!==1||xe!==1)do if(oe--,xe--,xe<0||ee[oe]!==he[xe]){var Ve=`
|
|
60
|
+
`+ee[oe].replace(" at new "," at ");return l.displayName&&Ve.includes("<anonymous>")&&(Ve=Ve.replace("<anonymous>",l.displayName)),typeof l=="function"&&Me.set(l,Ve),Ve}while(oe>=1&&xe>=0);break}}}finally{pe=!1,ge.current=K,ue(),Error.prepareStackTrace=Z}var Ye=l?l.displayName||l.name:"",Ae=Ye?be(Ye):"";return typeof l=="function"&&Me.set(l,Ae),Ae}function Bt(l,g,E){return ut(l,!1)}function ct(l){var g=l.prototype;return!!(g&&g.isReactComponent)}function tt(l,g,E){if(l==null)return"";if(typeof l=="function")return ut(l,ct(l));if(typeof l=="string")return be(l);switch(l){case _:return be("Suspense");case b:return be("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case h:return Bt(l.render);case j:return tt(l.type,g,E);case R:{var B=l,Z=B._payload,K=B._init;try{return tt(K(Z),g,E)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,z={},ae=H.ReactDebugCurrentFrame;function ce(l){if(l){var g=l._owner,E=tt(l.type,l._source,g?g.type:null);ae.setExtraStackFrame(E)}else ae.setExtraStackFrame(null)}function Pe(l,g,E,B,Z){{var K=Function.call.bind(U);for(var W in l)if(K(l,W)){var ee=void 0;try{if(typeof l[W]!="function"){var he=Error((B||"React class")+": "+E+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw he.name="Invariant Violation",he}ee=l[W](g,W,B,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){ee=oe}ee&&!(ee instanceof Error)&&(ce(Z),Y("%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).",B||"React class",E,W,typeof ee),ce(null)),ee instanceof Error&&!(ee.message in z)&&(z[ee.message]=!0,ce(Z),Y("Failed %s type: %s",E,ee.message),ce(null))}}}var ye=Array.isArray;function fe(l){return ye(l)}function Xe(l){{var g=typeof Symbol=="function"&&Symbol.toStringTag,E=g&&l[Symbol.toStringTag]||l.constructor.name||"Object";return E}}function Ge(l){try{return qe(l),!1}catch{return!0}}function qe(l){return""+l}function it(l){if(Ge(l))return Y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xe(l)),qe(l)}var yt=H.ReactCurrentOwner,Vt={key:!0,ref:!0,__self:!0,__source:!0},Nt,_t;function Kt(l){if(U.call(l,"ref")){var g=Object.getOwnPropertyDescriptor(l,"ref").get;if(g&&g.isReactWarning)return!1}return l.ref!==void 0}function dr(l){if(U.call(l,"key")){var g=Object.getOwnPropertyDescriptor(l,"key").get;if(g&&g.isReactWarning)return!1}return l.key!==void 0}function vr(l,g){typeof l.ref=="string"&&yt.current}function et(l,g){{var E=function(){Nt||(Nt=!0,Y("%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)",g))};E.isReactWarning=!0,Object.defineProperty(l,"key",{get:E,configurable:!0})}}function wt(l,g){{var E=function(){_t||(_t=!0,Y("%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)",g))};E.isReactWarning=!0,Object.defineProperty(l,"ref",{get:E,configurable:!0})}}var mr=function(l,g,E,B,Z,K,W){var ee={$$typeof:r,type:l,key:g,ref:E,props:W,_owner:K};return ee._store={},Object.defineProperty(ee._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ee,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(ee,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(ee.props),Object.freeze(ee)),ee};function Pt(l,g,E,B,Z){{var K,W={},ee=null,he=null;E!==void 0&&(it(E),ee=""+E),dr(g)&&(it(g.key),ee=""+g.key),Kt(g)&&(he=g.ref,vr(g,Z));for(K in g)U.call(g,K)&&!Vt.hasOwnProperty(K)&&(W[K]=g[K]);if(l&&l.defaultProps){var oe=l.defaultProps;for(K in oe)W[K]===void 0&&(W[K]=oe[K])}if(ee||he){var xe=typeof l=="function"?l.displayName||l.name||"Unknown":l;ee&&et(W,xe),he&&wt(W,xe)}return mr(l,ee,he,Z,B,yt.current,W)}}var St=H.ReactCurrentOwner,ot=H.ReactDebugCurrentFrame;function Ze(l){if(l){var g=l._owner,E=tt(l.type,l._source,g?g.type:null);ot.setExtraStackFrame(E)}else ot.setExtraStackFrame(null)}var ft;ft=!1;function Je(l){return typeof l=="object"&&l!==null&&l.$$typeof===r}function Et(){{if(St.current){var l=Oe(St.current.type);if(l)return`
|
|
61
61
|
|
|
62
|
-
Check the render method of \``+l+"`."}return""}}function Xt(l){return""}var qt={};function Zt(l){{var
|
|
62
|
+
Check the render method of \``+l+"`."}return""}}function Xt(l){return""}var qt={};function Zt(l){{var g=Et();if(!g){var E=typeof l=="string"?l:l.displayName||l.name;E&&(g=`
|
|
63
63
|
|
|
64
|
-
Check the top-level render call using <`+
|
|
64
|
+
Check the top-level render call using <`+E+">.")}return g}}function $t(l,g){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var E=Zt(g);if(qt[E])return;qt[E]=!0;var B="";l&&l._owner&&l._owner!==St.current&&(B=" It was passed a child from "+Oe(l._owner.type)+"."),Ze(l),Y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,B),Ze(null)}}function at(l,g){{if(typeof l!="object")return;if(fe(l))for(var E=0;E<l.length;E++){var B=l[E];Je(B)&&$t(B,g)}else if(Je(l))l._store&&(l._store.validated=!0);else if(l){var Z=A(l);if(typeof Z=="function"&&Z!==l.entries)for(var K=Z.call(l),W;!(W=K.next()).done;)Je(W.value)&&$t(W.value,g)}}}function Ct(l){{var g=l.type;if(g==null||typeof g=="string")return;var E;if(typeof g=="function")E=g.propTypes;else if(typeof g=="object"&&(g.$$typeof===h||g.$$typeof===j))E=g.propTypes;else return;if(E){var B=Oe(g);Pe(E,l.props,"prop",B,l)}else if(g.PropTypes!==void 0&&!ft){ft=!0;var Z=Oe(g);Y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof g.getDefaultProps=="function"&&!g.getDefaultProps.isReactClassApproved&&Y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function At(l){{for(var g=Object.keys(l.props),E=0;E<g.length;E++){var B=g[E];if(B!=="children"&&B!=="key"){Ze(l),Y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),Ze(null);break}}l.ref!==null&&(Ze(l),Y("Invalid attribute `ref` supplied to `React.Fragment`."),Ze(null))}}var Dt={};function Jt(l,g,E,B,Z,K){{var W=We(l);if(!W){var ee="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(ee+=" 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 he=Xt();he?ee+=he:ee+=Et();var oe;l===null?oe="null":fe(l)?oe="array":l!==void 0&&l.$$typeof===r?(oe="<"+(Oe(l.type)||"Unknown")+" />",ee=" Did you accidentally export a JSX literal instead of a component?"):oe=typeof l,Y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",oe,ee)}var xe=Pt(l,g,E,Z,K);if(xe==null)return xe;if(W){var Ve=g.children;if(Ve!==void 0)if(B)if(fe(Ve)){for(var Ye=0;Ye<Ve.length;Ye++)at(Ve[Ye],l);Object.freeze&&Object.freeze(Ve)}else Y("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 at(Ve,l)}if(U.call(g,"key")){var Ae=Oe(l),He=Object.keys(g).filter(function(zr){return zr!=="key"}),mt=He.length>0?"{key: someKey, "+He.join(": ..., ")+": ...}":"{key: someKey}";if(!Dt[Ae+mt]){var Qt=He.length>0?"{"+He.join(": ..., ")+": ...}":"{}";Y(`A props object containing a "key" prop is being spread into JSX:
|
|
65
65
|
let props = %s;
|
|
66
66
|
<%s {...props} />
|
|
67
67
|
React keys must be passed directly to JSX without using spread:
|
|
68
68
|
let props = %s;
|
|
69
|
-
<%s key={someKey} {...props} />`,Nt,Le,gr,Le),Bt[Le+Nt]=!0}}return l===o?Ft(ye):Mt(ye),ye}}function pt(l,p,C){return Jt(l,p,C,!0)}function pr(l,p,C){return Jt(l,p,C,!1)}var Qt=pr,v=pt;e.Fragment=o,e.jsx=Qt,e.jsxs=v}()}}),I=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"(e,t){process.env.NODE_ENV==="production"?t.exports=Ds():t.exports=Is()}});D(I()),D(I()),D(I());var Ua=D(I());function $a(e){return(0,Ua.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Ua.jsx)("path",{fill:"currentColor",d:"M4 12.004a1 1 0 0 0 .293.703l6 6a1 1 0 0 0 1.414-1.414L7.414 13H19a1 1 0 1 0 0-2H7.414l4.293-4.293a1 1 0 0 0-1.414-1.414l-6 6a1 1 0 0 0-.293.705z"})})}D(I());var Wa=D(I());function Ls(e){return(0,Wa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Wa.jsx)("path",{fill:"currentColor",d:"M11.45 15.335a1 1 0 0 0 1.257-.128l5-5a1 1 0 0 0-1.414-1.414L12 13.086 7.707 8.793a1 1 0 0 0-1.414 1.414l5 5a1 1 0 0 0 .157.128"})})}D(I());var Ha=D(I());function Ms(e){return(0,Ha.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Ha.jsx)("path",{fill:"currentColor",d:"M8.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L10.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"})})}var Ya=D(I());function Vn(e){return(0,Ya.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Ya.jsx)("path",{fill:"currentColor",d:"m10.707 6.293 5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L13.586 12 9.293 7.707a1 1 0 0 1 1.414-1.414"})})}var Ga=D(I());function Fs(e){return(0,Ga.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Ga.jsx)("path",{fill:"currentColor",d:"M17.483 6.29a1 1 0 0 0-.705-.29h-8.07a1 1 0 1 0 0 2h5.656l-8.071 8.071a1 1 0 1 0 1.414 1.414l8.071-8.07v5.656a1 1 0 1 0 2 0v-8.07a1 1 0 0 0-.291-.706l-.002-.002z"})})}D(I()),D(I()),D(I());var za=D(I());function Bs(e){return(0,za.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,za.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.26 13.845 5.95-5.95a.994.994 0 0 1 1.405-.008.994.994 0 0 1-.008 1.406L10.95 15.95a.994.994 0 0 1-1.406.008l-2.846-2.845a.994.994 0 0 1 .01-1.406.994.994 0 0 1 1.405-.009z",clipRule:"evenodd"})})}var Ka=D(I());function Vs(e){return(0,Ka.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Ka.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m4.21-14.104-5.95 5.95-2.147-2.148a.994.994 0 0 0-1.406.009.994.994 0 0 0-.009 1.406l2.846 2.845a.994.994 0 0 0 1.406-.008l6.657-6.657a.994.994 0 0 0 .008-1.406.994.994 0 0 0-1.405.009",clipRule:"evenodd"})})}D(I()),D(I());var Xa=D(I());function Br(e){return(0,Xa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Xa.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.707 6.707a1 1 0 0 0-1.414-1.414L12 10.586 6.707 5.293a1 1 0 0 0-1.414 1.415L10.586 12l-5.293 5.293a1 1 0 1 0 1.414 1.414L12 13.414l5.293 5.294a1 1 0 0 0 1.414-1.415L13.414 12z",clipRule:"evenodd"})})}var qa=D(I());function Za(e){return(0,qa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,qa.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v1h1a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-8a3 3 0 0 1-3-3v-1H6a3 3 0 0 1-3-3zm6 12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1zm6-11h-5a3 3 0 0 0-3 3v5H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1z",clipRule:"evenodd"})})}D(I()),D(I());var Ja=D(I());function Us(e){return(0,Ja.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Ja.jsx)("rect",{width:10,height:2,x:7,y:11,fill:"currentColor",rx:1})})}D(I()),D(I()),D(I());var Un=D(I());function $s(e){return(0,Un.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,Un.jsx)("path",{fill:"currentColor",d:"M11.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L13.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"}),(0,Un.jsx)("path",{fill:"currentColor",d:"M5.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L7.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"})]})}var $n=D(I());function Ws(e){return(0,$n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,$n.jsx)("path",{fill:"currentColor",d:"M11.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L9.586 12 5.293 7.707a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157"}),(0,$n.jsx)("path",{fill:"currentColor",d:"M17.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L15.586 12l-4.293-4.293a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157"})]})}D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I());var Qa=D(I());function un(e){return(0,Qa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Qa.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18m0-14.4A1.2 1.2 0 1 0 12 9a1.2 1.2 0 0 0 0-2.4m1.2 9a1.2 1.2 0 0 1-2.4 0V12a1.2 1.2 0 0 1 2.4 0z",clipRule:"evenodd"})})}var eo=D(I());function Hs(e){return(0,eo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,eo.jsx)("path",{fill:"currentColor",d:"M18.27 2.259c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.259S16.302 1 17.002 1s1.268.564 1.268 1.259m1.425 17.785c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.26c0-.695.567-1.258 1.267-1.258s1.268.563 1.268 1.259m-2.33-13.379a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.057A1.06 1.06 0 0 0 16.3 5.61a1.06 1.06 0 0 0 1.064 1.056Zm3.891-.651a1.06 1.06 0 0 1-1.063 1.056 1.06 1.06 0 0 1-1.064-1.056 1.06 1.06 0 0 1 1.064-1.057 1.06 1.06 0 0 1 1.063 1.057m-4.253 3.329c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.734-.52c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9m1.357 1.777c.5 0 .906-.402.906-.899s-.405-.9-.906-.9c-.5 0-.905.403-.905.9s.405.9.905.9Zm-2.309.495a.79.79 0 0 1-.792.787.79.79 0 0 1-.791-.787c0-.434.354-.786.791-.786s.792.352.792.786m-3.62.404a.79.79 0 0 0 .792-.787.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .435.354.787.791.787m5.907.471a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.786.79.79 0 0 1 .792-.787.79.79 0 0 1 .791.787Zm-4.21 1.554c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.968.178a.68.68 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675m-5.774-.582c.375 0 .68-.302.68-.675a.68.68 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.127.943c0 .31-.254.561-.566.561a.564.564 0 0 1-.566-.562c0-.31.253-.561.566-.561s.566.251.566.562m.407 2.114a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.791-.09a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m-1.472-.765a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.973-1.64c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.251.566.562m-.588-3.666a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.562.564.564 0 0 0-.565.562c0 .31.253.562.565.562m.745-2.473a.496.496 0 0 1-.497.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494Zm.047-1.123a.406.406 0 0 0 .407-.406.406.406 0 0 0-.407-.405.407.407 0 0 0-.408.405c0 .224.182.406.408.406m-.452-1.26a.496.496 0 0 1-.498.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494m4.776 10.32a.564.564 0 0 0 .566-.561.564.564 0 0 0-.566-.562.564.564 0 0 0-.566.562c0 .31.253.562.566.562ZM12.883 4.439c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.254-.562.566-.562s.566.251.566.562m-.18 2.945a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.561.564.564 0 0 0-.566.561c0 .31.253.562.566.562m.045 1.597a.677.677 0 0 1-.68.676.68.68 0 0 1-.679-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675Zm-2.74.676a.79.79 0 0 0 .791-.786.79.79 0 0 0-.791-.787.79.79 0 0 0-.792.787c0 .434.354.786.792.786m-1.494-.36c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.406-.9.906-.9s.905.403.905.9m-3.529 2.18a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.056A1.06 1.06 0 0 0 3.92 10.42a1.06 1.06 0 0 0 1.064 1.056Zm-1.45.9c0 .696-.568 1.26-1.268 1.26S1 13.073 1 12.377c0-.695.567-1.259 1.267-1.259s1.268.564 1.268 1.26Zm.386-3.531A1.06 1.06 0 0 0 4.985 7.79 1.06 1.06 0 0 0 3.92 6.733 1.06 1.06 0 0 0 2.858 7.79 1.06 1.06 0 0 0 3.92 8.846Zm3.53-2.181c0 .497-.405.9-.906.9a.903.903 0 0 1-.905-.9c0-.496.405-.9.905-.9s.906.404.906.9M6.162 5.182c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.19-1.326a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.787c0-.434.354-.786.792-.786.437 0 .791.352.791.786m1.268.788c.375 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.68.68 0 0 0-.68.675c0 .373.304.676.68.676m1.063 1.708a.68.68 0 0 1-.68.675.677.677 0 0 1-.68-.675c0-.373.305-.675.68-.675s.68.302.68.675m-2.739.695a.79.79 0 0 0 .792-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.791.786m-1.832 5.578a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m1.221.201a.496.496 0 0 0 .497-.494.496.496 0 0 0-.497-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m2.354-1.236c0 .31-.253.562-.565.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.565.252.565.562m-.135 2.361c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.677.677 0 0 0-.68.675c0 .373.304.675.68.675m-1.608-.135c0 .31-.253.562-.566.562a.564.564 0 0 1-.565-.562c0-.31.253-.562.565-.562.313 0 .566.252.566.562m-2.488.538a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m.588.991c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.252.566.562m1.742.855c.376 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.677.677 0 0 0-.68.675c0 .373.305.676.68.676m3.484-1.08a.79.79 0 0 1-.79.786.79.79 0 0 1-.792-.786c0-.435.354-.787.791-.787s.792.352.792.787Zm.794 2.743c.5 0 .906-.402.906-.9 0-.496-.406-.899-.906-.899s-.905.403-.905.9.405.9.905.9Zm-2.536-.518a.79.79 0 0 1-.792.786.79.79 0 0 1-.792-.787.79.79 0 0 1 .792-.786.79.79 0 0 1 .792.787m-2.669 2.316a.79.79 0 0 0 .791-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.792.786m2.466 1.079c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9M13.584 22a1.06 1.06 0 0 0 1.064-1.056 1.06 1.06 0 0 0-1.064-1.057 1.06 1.06 0 0 0-1.063 1.057A1.06 1.06 0 0 0 13.584 22m-1.379-2.788c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.405-.9.905-.9s.906.403.906.9m3.123.54a1.06 1.06 0 0 0 1.063-1.057 1.06 1.06 0 0 0-1.063-1.056 1.06 1.06 0 0 0-1.064 1.056 1.06 1.06 0 0 0 1.064 1.057m-7.741-2.699a.677.677 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.305-.675.68-.675s.68.302.68.675"})})}D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I());var to=D(I());function ro(e){return(0,to.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,to.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.533 9.321A7 7 0 1 0 19 12a1 1 0 1 1 2 0 9 9 0 1 1-9-9 1 1 0 1 1 0 2 7 7 0 0 0-6.467 4.321",clipRule:"evenodd"})})}var no=D(I());function Ys(e){return(0,no.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,no.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 11V8.104C8 6.176 9.577 5 11.5 5s3.482 1.176 3.482 3.104L15 11h2.018L17 8.104C17 5.285 14.31 3 11.5 3S6 5.285 6 8.104V11c-1.183 0-2 .962-2 2.15v5.7C4 20.039 4.96 21 6.143 21h10.714A2.146 2.146 0 0 0 19 18.85v-5.7c0-1.188-.817-2.15-2-2.15zm5.321 5.272c0 .95-.767 1.72-1.714 1.72s-1.714-.77-1.714-1.72.767-1.72 1.714-1.72 1.714.77 1.714 1.72",clipRule:"evenodd"})})}var ao=D(I());function Gs(e){return(0,ao.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,ao.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 11V8.104C8 6.5 9.577 5 11.5 5S15 6.5 15 8h2c0-2.82-2.69-5-5.5-5S6 5.285 6 8.104V11c-1.183 0-2 .962-2 2.15v5.7C4 20.039 4.96 21 6.143 21h10.714A2.146 2.146 0 0 0 19 18.85v-5.7c0-1.188-.96-2.15-2.143-2.15zm5.321 5.272c0 .95-.767 1.72-1.714 1.72s-1.714-.77-1.714-1.72.767-1.72 1.714-1.72 1.714.77 1.714 1.72",clipRule:"evenodd"})})}D(I());var oo=D(I());function zs(e){return(0,oo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,oo.jsx)("path",{fill:"currentColor",d:"M21 9a1 1 0 0 1-1 1H4a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1m0 6a1 1 0 0 1-1 1H10a1 1 0 1 1 0-2h10a1 1 0 0 1 1 1"})})}D(I());var io=D(I());function so(e){return(0,io.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,io.jsx)("path",{fill:"currentColor",d:"M5 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4m9-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0"})})}D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I());var lo=D(I());function uo(e){return(0,lo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,lo.jsx)("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})})}var Wn=D(I());function Ks(e){return(0,Wn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,Wn.jsx)("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),(0,Wn.jsx)("path",{fill:"currentColor",d:"M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10"})]})}D(I()),D(I());var co=D(I());function Xs(e){return(0,co.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,co.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 4a7 7 0 1 0 3.594 13.008l3.699 3.7a1 1 0 0 0 1.414-1.415l-3.555-3.555A7 7 0 0 0 11 4m-5 7a5 5 0 1 1 10 0 5 5 0 0 1-10 0",clipRule:"evenodd"})})}D(I()),D(I()),D(I()),D(I());var fo=D(I());function qs(e){return(0,fo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,fo.jsx)("path",{fill:"currentColor",d:"M12 6a1 1 0 0 0-1 1v9.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L13 16.586V7a1 1 0 0 0-1-1"})})}var vo=D(I());function Zs(e){return(0,vo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,vo.jsx)("path",{fill:"currentColor",d:"M11.293 4.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L13 7.414V17a1 1 0 1 1-2 0V7.414L8.707 9.707a1 1 0 0 1-1.414-1.414z"})})}D(I()),D(I()),D(I()),D(I()),D(I());var mo=D(I());function Js(e){return(0,mo.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,mo.jsx)("path",{fill:"currentColor",d:"M17.35 9c.578 0 .867.681.459 1.08l-4.85 4.735a.66.66 0 0 1-.917 0l-4.85-4.735C6.781 9.68 7.071 9 7.648 9z"})})}D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I());var Hn=D(I());function ho(e){return(0,Hn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,Hn.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.72 6.695a1 1 0 1 0-1.44-1.39l-1.518 1.572C14.601 6.348 13.331 6 12 6 8.739 6 5.843 8.092 4.017 9.805c-1.29 1.212-1.29 3.178 0 4.39a18 18 0 0 0 2.666 2.083l-1.695 1.755a1 1 0 0 0 1.438 1.39zM8.67 14.219l5.431-5.623a4 4 0 0 0-5.43 5.623",clipRule:"evenodd"}),(0,Hn.jsx)("path",{fill:"currentColor",d:"M16 12a4 4 0 0 1-3.975 4l-1.749 1.81c.56.122 1.136.19 1.724.19 3.26 0 6.157-2.092 7.983-3.805 1.29-1.212 1.29-3.178 0-4.39a20 20 0 0 0-1.071-.936l-2.914 3.017z"})]})}var Yn=D(I());function po(e){return(0,Yn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,Yn.jsx)("path",{fill:"currentColor",d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4"}),(0,Yn.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.983 9.805c1.29 1.212 1.29 3.178 0 4.39C18.157 15.908 15.26 18 12 18s-6.157-2.092-7.983-3.805c-1.29-1.212-1.29-3.178 0-4.39C5.843 8.092 8.74 6 12 6s6.157 2.092 7.983 3.805M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0",clipRule:"evenodd"})]})}D(I());/*! Bundled license information:
|
|
69
|
+
<%s key={someKey} {...props} />`,mt,Ae,Qt,Ae),Dt[Ae+mt]=!0}}return l===i?At(xe):Ct(xe),xe}}function hr(l,g,E){return Jt(l,g,E,!0)}function vt(l,g,E){return Jt(l,g,E,!1)}var pr=vt,v=hr;e.Fragment=i,e.jsx=pr,e.jsxs=v}()}}),I=_r({"../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"(e,t){process.env.NODE_ENV==="production"?t.exports=$s():t.exports=Us()}});D(I()),D(I()),D(I());var Ya=D(I());function Ga(e){return(0,Ya.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Ya.jsx)("path",{fill:"currentColor",d:"M4 12.004a1 1 0 0 0 .293.703l6 6a1 1 0 0 0 1.414-1.414L7.414 13H19a1 1 0 1 0 0-2H7.414l4.293-4.293a1 1 0 0 0-1.414-1.414l-6 6a1 1 0 0 0-.293.705z"})})}D(I());var za=D(I());function Ws(e){return(0,za.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,za.jsx)("path",{fill:"currentColor",d:"M11.45 15.335a1 1 0 0 0 1.257-.128l5-5a1 1 0 0 0-1.414-1.414L12 13.086 7.707 8.793a1 1 0 0 0-1.414 1.414l5 5a1 1 0 0 0 .157.128"})})}D(I());var Ka=D(I());function Hs(e){return(0,Ka.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Ka.jsx)("path",{fill:"currentColor",d:"M8.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L10.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"})})}var Xa=D(I());function Un(e){return(0,Xa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Xa.jsx)("path",{fill:"currentColor",d:"m10.707 6.293 5 5a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414-1.414L13.586 12 9.293 7.707a1 1 0 0 1 1.414-1.414"})})}var qa=D(I());function Ys(e){return(0,qa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,qa.jsx)("path",{fill:"currentColor",d:"M17.483 6.29a1 1 0 0 0-.705-.29h-8.07a1 1 0 1 0 0 2h5.656l-8.071 8.071a1 1 0 1 0 1.414 1.414l8.071-8.07v5.656a1 1 0 1 0 2 0v-8.07a1 1 0 0 0-.291-.706l-.002-.002z"})})}D(I()),D(I()),D(I());var Za=D(I());function Gs(e){return(0,Za.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Za.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.26 13.845 5.95-5.95a.994.994 0 0 1 1.405-.008.994.994 0 0 1-.008 1.406L10.95 15.95a.994.994 0 0 1-1.406.008l-2.846-2.845a.994.994 0 0 1 .01-1.406.994.994 0 0 1 1.405-.009z",clipRule:"evenodd"})})}var Ja=D(I());function zs(e){return(0,Ja.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Ja.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10m4.21-14.104-5.95 5.95-2.147-2.148a.994.994 0 0 0-1.406.009.994.994 0 0 0-.009 1.405l2.846 2.846a.994.994 0 0 0 1.406-.008l6.657-6.657a.994.994 0 0 0 .008-1.406.994.994 0 0 0-1.405.009",clipRule:"evenodd"})})}D(I()),D(I());var Qa=D(I());function Fr(e){return(0,Qa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,Qa.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.707 6.707a1 1 0 0 0-1.414-1.414L12 10.586 6.707 5.293a1 1 0 0 0-1.414 1.415L10.586 12l-5.293 5.293a1 1 0 1 0 1.414 1.414L12 13.414l5.293 5.294a1 1 0 0 0 1.414-1.415L13.414 12z",clipRule:"evenodd"})})}var ei=D(I());function ti(e){return(0,ei.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,ei.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v1h1a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-8a3 3 0 0 1-3-3v-1H6a3 3 0 0 1-3-3zm6 12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-8a1 1 0 0 0-1 1zm6-11h-5a3 3 0 0 0-3 3v5H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1z",clipRule:"evenodd"})})}D(I()),D(I());var ri=D(I());function Ks(e){return(0,ri.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,ri.jsx)("rect",{width:10,height:2,x:7,y:11,fill:"currentColor",rx:1})})}D(I()),D(I()),D(I());var Wn=D(I());function Xs(e){return(0,Wn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,Wn.jsx)("path",{fill:"currentColor",d:"M11.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L13.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"}),(0,Wn.jsx)("path",{fill:"currentColor",d:"M5.165 11.45a1 1 0 0 0 .128 1.257l5 5a1 1 0 0 0 1.414-1.414L7.414 12l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0-.128.157"})]})}var Hn=D(I());function qs(e){return(0,Hn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,Hn.jsx)("path",{fill:"currentColor",d:"M11.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L9.586 12 5.293 7.707a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157"}),(0,Hn.jsx)("path",{fill:"currentColor",d:"M17.835 11.45a1 1 0 0 1-.128 1.257l-5 5a1 1 0 0 1-1.414-1.414L15.586 12l-4.293-4.293a1 1 0 0 1 1.414-1.414l5 5a1 1 0 0 1 .128.157"})]})}D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I());var ni=D(I());function un(e){return(0,ni.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,ni.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18m0-14.4A1.2 1.2 0 1 0 12 9a1.2 1.2 0 0 0 0-2.4m1.2 9a1.2 1.2 0 0 1-2.4 0V12a1.2 1.2 0 0 1 2.4 0z",clipRule:"evenodd"})})}var ai=D(I());function Zs(e){return(0,ai.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,ai.jsx)("path",{fill:"currentColor",d:"M18.27 2.259c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.259S16.302 1 17.002 1s1.268.564 1.268 1.259m1.425 17.785c0 .695-.568 1.259-1.268 1.259s-1.267-.564-1.267-1.26c0-.695.567-1.258 1.267-1.258s1.268.563 1.268 1.259m-2.33-13.379a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.057A1.06 1.06 0 0 0 16.3 5.61a1.06 1.06 0 0 0 1.064 1.056Zm3.891-.651a1.06 1.06 0 0 1-1.063 1.056 1.06 1.06 0 0 1-1.064-1.056 1.06 1.06 0 0 1 1.064-1.057 1.06 1.06 0 0 1 1.063 1.057m-4.253 3.329c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.734-.52c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9m1.357 1.777c.5 0 .906-.402.906-.899s-.405-.9-.906-.9c-.5 0-.905.403-.905.9s.405.9.905.9Zm-2.309.495a.79.79 0 0 1-.792.787.79.79 0 0 1-.791-.787c0-.434.354-.786.791-.786s.792.352.792.786m-3.62.404a.79.79 0 0 0 .792-.787.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .435.354.787.791.787m5.907.471a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.786.79.79 0 0 1 .792-.787.79.79 0 0 1 .791.787Zm-4.21 1.554c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.968.178a.68.68 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675m-5.774-.582c.375 0 .68-.302.68-.675a.68.68 0 0 0-.68-.675.68.68 0 0 0-.68.675c0 .373.304.675.68.675m2.127.943c0 .31-.254.561-.566.561a.564.564 0 0 1-.566-.562c0-.31.253-.561.566-.561s.566.251.566.562m.407 2.114a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.791-.09a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m-1.472-.765a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m-.973-1.64c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.251.566.562m-.588-3.666a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.562.564.564 0 0 0-.565.562c0 .31.253.562.565.562m.745-2.473a.496.496 0 0 1-.497.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494Zm.047-1.123a.406.406 0 0 0 .407-.406.406.406 0 0 0-.407-.405.407.407 0 0 0-.408.405c0 .224.182.406.408.406m-.452-1.26a.496.496 0 0 1-.498.494.496.496 0 0 1-.498-.494c0-.273.223-.494.498-.494s.498.22.498.494m4.776 10.32a.564.564 0 0 0 .566-.561.564.564 0 0 0-.566-.562.564.564 0 0 0-.566.562c0 .31.253.562.566.562ZM12.883 4.439c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.254-.562.566-.562s.566.251.566.562m-.18 2.945a.564.564 0 0 0 .566-.562.564.564 0 0 0-.566-.561.564.564 0 0 0-.566.561c0 .31.253.562.566.562m.045 1.597a.677.677 0 0 1-.68.676.68.68 0 0 1-.679-.676c0-.373.304-.675.68-.675.375 0 .68.302.68.675Zm-2.74.676a.79.79 0 0 0 .791-.786.79.79 0 0 0-.791-.787.79.79 0 0 0-.792.787c0 .434.354.786.792.786m-1.494-.36c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.406-.9.906-.9s.905.403.905.9m-3.529 2.18a1.06 1.06 0 0 0 1.063-1.056 1.06 1.06 0 0 0-1.063-1.056A1.06 1.06 0 0 0 3.92 10.42a1.06 1.06 0 0 0 1.064 1.056Zm-1.45.9c0 .696-.568 1.26-1.268 1.26S1 13.073 1 12.377c0-.695.567-1.259 1.267-1.259s1.268.564 1.268 1.26Zm.386-3.531A1.06 1.06 0 0 0 4.985 7.79 1.06 1.06 0 0 0 3.92 6.733 1.06 1.06 0 0 0 2.858 7.79 1.06 1.06 0 0 0 3.92 8.846Zm3.53-2.181c0 .497-.405.9-.906.9a.903.903 0 0 1-.905-.9c0-.496.405-.9.905-.9s.906.404.906.9M6.162 5.182c.5 0 .905-.403.905-.9 0-.496-.405-.9-.905-.9s-.906.404-.906.9c0 .497.406.9.906.9m3.19-1.326a.79.79 0 0 1-.791.787.79.79 0 0 1-.792-.787c0-.434.354-.786.792-.786.437 0 .791.352.791.786m1.268.788c.375 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.68.68 0 0 0-.68.675c0 .373.304.676.68.676m1.063 1.708a.68.68 0 0 1-.68.675.677.677 0 0 1-.68-.675c0-.373.305-.675.68-.675s.68.302.68.675m-2.739.695a.79.79 0 0 0 .792-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.791.786m-1.832 5.578a.407.407 0 0 1-.408.405.407.407 0 0 1-.408-.405c0-.223.182-.405.408-.405s.408.181.408.405m1.221.201a.496.496 0 0 0 .497-.494.496.496 0 0 0-.497-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m2.354-1.236c0 .31-.253.562-.565.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.565.252.565.562m-.135 2.361c.375 0 .68-.302.68-.675a.677.677 0 0 0-.68-.675.677.677 0 0 0-.68.675c0 .373.304.675.68.675m-1.608-.135c0 .31-.253.562-.566.562a.564.564 0 0 1-.565-.562c0-.31.253-.562.565-.562.313 0 .566.252.566.562m-2.488.538a.496.496 0 0 0 .498-.494.496.496 0 0 0-.498-.495.496.496 0 0 0-.498.495c0 .273.223.494.498.494m.588.991c0 .31-.254.562-.566.562a.564.564 0 0 1-.566-.562c0-.31.253-.562.566-.562s.566.252.566.562m1.742.855c.376 0 .68-.303.68-.675a.677.677 0 0 0-.68-.676.677.677 0 0 0-.68.675c0 .373.305.676.68.676m3.484-1.08a.79.79 0 0 1-.79.786.79.79 0 0 1-.792-.786c0-.435.354-.787.791-.787s.792.352.792.787Zm.794 2.743c.5 0 .906-.402.906-.9 0-.496-.406-.899-.906-.899s-.905.403-.905.9.405.9.905.9Zm-2.536-.518a.79.79 0 0 1-.792.786.79.79 0 0 1-.792-.787.79.79 0 0 1 .792-.786.79.79 0 0 1 .792.787m-2.669 2.316a.79.79 0 0 0 .791-.786.79.79 0 0 0-.792-.786.79.79 0 0 0-.791.786c0 .434.354.786.792.786m2.466 1.079c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.496.405-.9.906-.9.5 0 .905.404.905.9M13.584 22a1.06 1.06 0 0 0 1.064-1.056 1.06 1.06 0 0 0-1.064-1.057 1.06 1.06 0 0 0-1.063 1.057A1.06 1.06 0 0 0 13.584 22m-1.379-2.788c0 .497-.405.9-.905.9a.903.903 0 0 1-.906-.9c0-.497.405-.9.905-.9s.906.403.906.9m3.123.54a1.06 1.06 0 0 0 1.063-1.057 1.06 1.06 0 0 0-1.063-1.056 1.06 1.06 0 0 0-1.064 1.056 1.06 1.06 0 0 0 1.064 1.057m-7.741-2.699a.677.677 0 0 1-.68.676.677.677 0 0 1-.68-.676c0-.373.305-.675.68-.675s.68.302.68.675"})})}D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I());var ii=D(I());function oi(e){return(0,ii.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,ii.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.533 9.321A7 7 0 1 0 19 12a1 1 0 1 1 2 0 9 9 0 1 1-9-9 1 1 0 1 1 0 2 7 7 0 0 0-6.467 4.321",clipRule:"evenodd"})})}var si=D(I());function Js(e){return(0,si.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,si.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 11V8.104C8 6.176 9.577 5 11.5 5s3.482 1.176 3.482 3.104L15 11h2.018L17 8.104C17 5.285 14.31 3 11.5 3S6 5.285 6 8.104V11c-1.183 0-2 .962-2 2.15v5.7C4 20.039 4.96 21 6.143 21h10.714A2.146 2.146 0 0 0 19 18.85v-5.7c0-1.188-.817-2.15-2-2.15zm5.321 5.272c0 .95-.767 1.72-1.714 1.72s-1.714-.77-1.714-1.72.767-1.72 1.714-1.72 1.714.77 1.714 1.72",clipRule:"evenodd"})})}var li=D(I());function Qs(e){return(0,li.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,li.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 11V8.104C8 6.5 9.577 5 11.5 5S15 6.5 15 8h2c0-2.82-2.69-5-5.5-5S6 5.285 6 8.104V11c-1.183 0-2 .962-2 2.15v5.7C4 20.039 4.96 21 6.143 21h10.714A2.146 2.146 0 0 0 19 18.85v-5.7c0-1.188-.96-2.15-2.143-2.15zm5.321 5.272c0 .95-.767 1.72-1.714 1.72s-1.714-.77-1.714-1.72.767-1.72 1.714-1.72 1.714.77 1.714 1.72",clipRule:"evenodd"})})}D(I());var ui=D(I());function el(e){return(0,ui.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,ui.jsx)("path",{fill:"currentColor",d:"M21 9a1 1 0 0 1-1 1H4a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1m0 6a1 1 0 0 1-1 1H10a1 1 0 1 1 0-2h10a1 1 0 0 1 1 1"})})}D(I());var ci=D(I());function fi(e){return(0,ci.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,ci.jsx)("path",{fill:"currentColor",d:"M5 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4m9-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0m7 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0"})})}D(I()),D(I()),D(I()),D(I()),D(I());var Yn=D(I());function tl(e){return(0,Yn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,Yn.jsx)("path",{fill:"currentColor",d:"M11 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 2a2 2 0 1 0 0-4 2 2 0 0 0 0 4"}),(0,Yn.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 8a6 6 0 0 1 6-6h8a6 6 0 0 1 6 6v8a6 6 0 0 1-6 6H8a6 6 0 0 1-6-6zm2 0a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v3.871a19.13 19.13 0 0 1-16 0zm0 6.051V16a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-1.949a21.13 21.13 0 0 1-16 0",clipRule:"evenodd"})]})}D(I()),D(I());var di=D(I());function vi(e){return(0,di.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,di.jsx)("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})})}var Gn=D(I());function rl(e){return(0,Gn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,Gn.jsx)("path",{fill:"currentColor",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),(0,Gn.jsx)("path",{fill:"currentColor",d:"M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10"})]})}D(I()),D(I());var mi=D(I());function nl(e){return(0,mi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,mi.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 4a7 7 0 1 0 3.594 13.008l3.699 3.7a1 1 0 0 0 1.414-1.415l-3.555-3.555A7 7 0 0 0 11 4m-5 7a5 5 0 1 1 10 0 5 5 0 0 1-10 0",clipRule:"evenodd"})})}D(I()),D(I()),D(I()),D(I());var hi=D(I());function al(e){return(0,hi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,hi.jsx)("path",{fill:"currentColor",d:"M12 6a1 1 0 0 0-1 1v9.586l-2.293-2.293a1 1 0 0 0-1.414 1.414l4 4a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L13 16.586V7a1 1 0 0 0-1-1"})})}var pi=D(I());function gi(e){return(0,pi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,pi.jsx)("path",{fill:"currentColor",d:"M11.293 4.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L13 7.414V17a1 1 0 1 1-2 0V7.414L8.707 9.707a1 1 0 0 1-1.414-1.414z"})})}D(I()),D(I()),D(I()),D(I());var xi=D(I());function il(e){return(0,xi.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:(0,xi.jsx)("path",{fill:"currentColor",d:"M17.35 9c.578 0 .867.681.459 1.08l-4.85 4.735a.66.66 0 0 1-.917 0l-4.85-4.735C6.781 9.68 7.071 9 7.648 9z"})})}D(I()),D(I()),D(I()),D(I()),D(I()),D(I()),D(I());var zn=D(I());function bi(e){return(0,zn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,zn.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.72 6.695a1 1 0 1 0-1.44-1.39l-1.518 1.572C14.601 6.348 13.331 6 12 6 8.739 6 5.843 8.092 4.017 9.805c-1.29 1.212-1.29 3.178 0 4.39a18 18 0 0 0 2.666 2.083l-1.695 1.755a1 1 0 0 0 1.438 1.39zM8.67 14.219l5.431-5.623a4 4 0 0 0-5.43 5.623Z",clipRule:"evenodd"}),(0,zn.jsx)("path",{fill:"currentColor",d:"M16 12a4 4 0 0 1-3.975 4l-1.749 1.81c.56.122 1.136.19 1.724.19 3.26 0 6.157-2.092 7.983-3.805 1.29-1.212 1.29-3.178 0-4.39a20 20 0 0 0-1.071-.936l-2.914 3.017z"})]})}var Kn=D(I());function yi(e){return(0,Kn.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",...e,children:[(0,Kn.jsx)("path",{fill:"currentColor",d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4"}),(0,Kn.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.983 9.805c1.29 1.212 1.29 3.178 0 4.39C18.157 15.908 15.26 18 12 18c-3.261 0-6.157-2.092-7.983-3.805-1.29-1.212-1.29-3.178 0-4.39C5.843 8.092 8.74 6 12 6s6.157 2.092 7.983 3.805M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0",clipRule:"evenodd"})]})}D(I());/*! Bundled license information:
|
|
70
70
|
|
|
71
71
|
react/cjs/react.production.min.js:
|
|
72
72
|
(**
|
|
@@ -111,9 +111,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
111
111
|
* This source code is licensed under the MIT license found in the
|
|
112
112
|
* LICENSE file in the root directory of this source tree.
|
|
113
113
|
*)
|
|
114
|
-
*/function
|
|
114
|
+
*/function ol({label:e,isChecked:t,isDisabled:r,onChange:n}){const i=t?rl:vi;return o.jsxs("label",{className:P("group flex flex-row gap-x-1 text-center",{disabled:r,"cursor-pointer":!r}),children:[o.jsxs("div",{className:P("relative flex h-10 w-10 items-center justify-center rounded-full",{"state-layer":!r}),children:[o.jsx("input",{type:"radio",checked:t,onChange:n,disabled:r,className:P("peer appearance-none disabled:opacity-40")}),o.jsx("span",{className:`absolute
|
|
115
115
|
text-neutral-40 peer-checked:text-primary-30 peer-disabled:opacity-40 peer-checked:peer-disabled:text-neutral-40 dark:text-neutral-60 dark:peer-checked:peer-disabled:text-neutral-40 [&_svg]:h-6 [&_svg]:w-6
|
|
116
|
-
`,children:
|
|
116
|
+
`,children:o.jsx(i,{})})]}),o.jsx("span",{className:"inline-flex items-center justify-center text-label-lg text-neutral-40 group-[.disabled]:text-opacity-40 dark:text-neutral-60 group-[.disabled]:dark:text-opacity-40",children:e})]})}const sl="bg-transparent",ll="bg-primary-100 dark:bg-neutral-6",ul="text-neutral-60 dark:text-neutral-40 enabled:hover:text-neutral-40 enabled:dark:hover:text-neutral-60 enabled:focused:text-neutral-40 enabled:dark:focused:text-neutral-60",cl="text-neutral-10 dark:text-neutral-92",fl=`
|
|
117
117
|
relative
|
|
118
118
|
before:content-['']
|
|
119
119
|
border-b
|
|
@@ -128,7 +128,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
128
128
|
enabled:before:w-[calc(100%-16px)]
|
|
129
129
|
enabled:before:left-2
|
|
130
130
|
enabled:before:border-primary-30
|
|
131
|
-
enabled:before:dark:border-primary-80`,
|
|
131
|
+
enabled:before:dark:border-primary-80`,dl=`
|
|
132
132
|
relative
|
|
133
133
|
before:content-['']
|
|
134
134
|
before:block
|
|
@@ -142,24 +142,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
142
142
|
hover:before:w-[calc(100%-16px)]
|
|
143
143
|
hover:before:left-2
|
|
144
144
|
hover:before:border-neutral-70
|
|
145
|
-
hover:before:dark:border-neutral-40`;var wr=(e=>(e.Rounded="rounded",e.Underlined="underlined",e))(wr||{});function il({icon:e,label:t,selected:r,disabled:n,onClick:o,type:s=wr.Rounded}){const c=s===wr.Underlined,f=r?c?"bg-transparent":tl:el,x=c?r?al:ol:"",m=r?nl:rl,_=c?"px-lg py-md":"px-sm py-[6px]",b=c?"":"rounded-full",j=c?"text-title-md":"text-label-lg";return i.jsx(ot,{onClick:o,className:A("enabled:state-layer relative flex items-center disabled:opacity-40",f,m,_,b,x,{"pl-xs":!!e&&!c}),disabled:n,children:i.jsxs("div",{className:A("flex flex-row items-center justify-center gap-2",j),children:[e&&i.jsx("span",{children:e}),i.jsx("span",{className:"font-inter",children:t})]})})}const Gn=te.forwardRef(({isChecked:e,isIndeterminate:t,label:r,isLabelFirst:n,isDisabled:o,onCheckedChange:s,name:c},f)=>{const x=te.useRef(null);te.useEffect(()=>{x.current&&(x.current.indeterminate=t??!1)},[t,x]);const m=t?Us:Bs;function _(b){f&&(typeof f=="function"?f(b):f.current=b),x.current=b}return i.jsxs("div",{className:A("group inline-flex",n?"flex-row-reverse":"flex-row",{disabled:o,"gap-x-2":r}),children:[i.jsx("input",{id:c,name:c,type:"checkbox",className:"peer hidden appearance-none",checked:e,ref:_,disabled:o,onChange:b=>{s==null||s(b)}}),i.jsx("span",{onClick:()=>{var b;return(b=x.current)==null?void 0:b.click()},className:"peer-enabled:state-layer relative inset-0 flex h-5 w-5 items-center justify-center rounded border border-neutral-80 text-neutral-40 group-[.disabled]:cursor-not-allowed peer-disabled:text-neutral-70 peer-disabled:text-opacity-40 peer-disabled:opacity-40 peer-[&:is(:checked,:indeterminate)]:border-primary-30 peer-[&:is(:checked,:indeterminate)]:bg-primary-30 peer-[&:is(:checked,:indeterminate)]:text-white peer-[&:not(:checked,:indeterminate)]:text-opacity-40 disabled:peer-[&:not(:checked,:indeterminate)]:border-neutral-70 dark:border-neutral-20 dark:text-neutral-60 dark:peer-disabled:text-neutral-30 dark:peer-disabled:text-opacity-40 dark:peer-disabled:peer-[&:not(:checked,:indeterminate)]:border-neutral-30 dark:peer-disabled:peer-[&:is(:checked,:indeterminate)]:bg-neutral-40 peer-disabled:[&:is(:checked,:indeterminate)]:border-neutral-60 peer-disabled:[&:is(:checked,:indeterminate)]:bg-neutral-60 dark:peer-disabled:[&:is(:checked,:indeterminate)]:border-neutral-40 [&_svg]:h-4 [&_svg]:w-4 peer-[&:not(:checked,:indeterminate)]:[&_svg]:hidden",children:i.jsx(m,{})}),i.jsx(sl,{label:r,name:c})]})});function sl({label:e,name:t}){return i.jsx("label",{htmlFor:t,className:"text-label-lg text-neutral-40 group-[.disabled]:cursor-not-allowed group-[.disabled]:text-opacity-40 dark:text-neutral-60 group-[.disabled]:dark:text-opacity-40",children:e})}var $t=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))($t||{});const ll="bg-shader-neutral-light-8 dark:bg-shader-neutral-dark-8",ul={[$t.Horizontal]:"w-full",[$t.Vertical]:"h-full"},cl="1px";function go({type:e=$t.Horizontal,width:t,height:r,lineHeight:n=cl}){const o={...e===$t.Horizontal?{height:n}:{width:n}};let s=ul[e];return t&&e===$t.Horizontal?s=t:r&&e===$t.Vertical&&(s=r),i.jsx("div",{className:A(ll,s),style:o})}var Vr=(e=>(e.Small="small",e.Medium="medium",e))(Vr||{}),rr=(e=>(e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e))(rr||{});const fl={[rr.Top]:"bottom-full left-1/2 transform -translate-x-1/2 mb-1",[rr.Bottom]:"top-full left-1/2 transform -translate-x-1/2 mt-1",[rr.Left]:"top-1/2 right-full transform -translate-y-1/2 mr-1",[rr.Right]:"top-1/2 left-full transform -translate-y-1/2 ml-1"};function Ur({text:e,position:t=rr.Top,children:r}){const n=fl[t];return i.jsxs("div",{className:"group relative inline-block",children:[r,i.jsx("div",{className:A("absolute z-[999] hidden w-max max-w-[200px] rounded bg-neutral-80 p-xs text-neutral-10 opacity-0 transition-opacity duration-300 group-hover:block group-hover:opacity-100 group-focus:opacity-100 dark:bg-neutral-30 dark:text-neutral-92",n),role:"tooltip",children:i.jsx("p",{className:"w-full break-words",children:e})})]})}function dl({keyText:e,value:t,tooltipPosition:r,tooltipText:n,supportingLabel:o,size:s=Vr.Small,isTruncated:c=!1,copyText:f,onCopySuccess:x,onCopyError:m,fullwidth:_,isReverse:b=!1,valueHoverTitle:j}){const T=b?"flex-row-reverse":"flex-row";async function N(O){if(navigator.clipboard&&f)try{await navigator.clipboard.writeText(f),x==null||x(O,f)}catch(M){console.error("Failed to copy:",M),m==null||m(M,f)}}return i.jsxs("div",{className:A("flex w-full items-baseline gap-xs py-xxs font-inter",T,{"justify-between":_}),children:[i.jsxs("div",{className:A("flex shrink-0 flex-row items-center gap-x-0.5",{"w-1/4":!_}),children:[i.jsx("span",{className:"text-body-md text-neutral-40 dark:text-neutral-60",children:e}),n&&i.jsx(Ur,{text:n,position:r,children:i.jsx(un,{className:"text-neutral-60 dark:text-neutral-40"})})]}),i.jsxs("div",{className:A("flex flex-row items-baseline gap-1 break-all",{"w-3/4":!_,truncate:c}),children:[i.jsx("span",{title:j,className:A("text-neutral-10 dark:text-neutral-92",s===Vr.Medium?"text-body-lg":"text-body-md",{truncate:c}),children:t}),o&&i.jsx("span",{className:A("text-neutral-60 dark:text-neutral-40",s===Vr.Medium?"text-body-md":"text-body-sm"),children:o}),i.jsx("div",{className:"self-center",children:f&&i.jsx(ot,{onClick:N,children:i.jsx(Za,{className:"text-neutral-60 dark:text-neutral-40"})})})]})]})}var ut=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(ut||{});const vl={[ut.Small]:"text-title-sm",[ut.Medium]:"text-title-md",[ut.Large]:"text-title-lg"},ml={[ut.Small]:"text-label-md",[ut.Medium]:"text-label-md",[ut.Large]:"text-label-lg"},hl={[ut.Small]:"text-label-md",[ut.Medium]:"text-label-md",[ut.Large]:"text-label-lg"};function pl({size:e=ut.Medium,isCentered:t,supportingLabel:r,label:n,text:o,tooltipPosition:s,tooltipText:c}){const f=vl[e],x=ml[e],m=hl[e],_=t?"items-center":"items-start",b=e===ut.Small?"gap-0.5":"gap-1";return i.jsxs("div",{className:A("flex flex-col",_,b),children:[i.jsxs("div",{className:"flex flex-row flex-wrap items-center gap-0.5",children:[i.jsx("span",{className:A("font-inter text-neutral-10 dark:text-neutral-92",f),children:o}),r&&i.jsx("span",{className:A("font-inter text-neutral-60 dark:text-neutral-40",x),children:r})]}),i.jsx("div",{className:"flex flex-row items-center gap-x-0.5",children:i.jsxs("span",{className:A("flex items-center font-inter text-neutral-60 dark:text-neutral-40",m),children:[n,c&&i.jsx("div",{className:"ml-xxxs flex items-center",children:i.jsx(Ur,{text:c,position:s,children:i.jsx(un,{className:"text-neutral-60 dark:text-neutral-40"})})})]})})]})}function xo({showRightIcon:e,hideBottomBorder:t,onClick:r,isDisabled:n,children:o,isHighlighted:s}){function c(x){(x.key==="Enter"||x.key===" ")&&!n&&r&&r()}function f(){!n&&r&&r()}return i.jsx("div",{className:A("w-full",{"border-b border-shader-neutral-light-8 pb-xs dark:border-shader-neutral-dark-8":!t},{"opacity-40":n}),children:i.jsxs("div",{onClick:f,role:"button",tabIndex:0,onKeyDown:c,className:A("relative flex flex-row items-center justify-between px-md py-sm text-neutral-10 dark:text-neutral-92",!n&&r?"cursor-pointer":"cursor-default",{"bg-shader-primary-dark-16 dark:bg-shader-inverted-dark-16":s,"state-layer":!n}),children:[o,e&&i.jsx(mt,{size:Je.Small,type:Ee.Ghost,disabled:n,icon:i.jsx(Vn,{})})]})})}function gl({title:e,titleCentered:t,onBack:r,onClose:n,testId:o}){const s=t?"text-center":r?"ml-1":"",c=t&&(!r||!n);return i.jsxs("div",{className:"flex min-h-[56px] w-full items-center bg-neutral-100 px-md--rs pb-xs pt-sm text-neutral-10 dark:bg-neutral-6 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",children:[r?i.jsx(mt,{size:Je.Small,type:Ee.Ghost,onClick:r,icon:i.jsx($a,{})}):c&&i.jsx("div",{className:"w-9"}),i.jsx("div",{className:A("flex-grow",s),children:i.jsx("span",{className:"font-inter text-title-lg","data-testid":o,children:e})}),n?i.jsx(mt,{size:Je.Small,type:Ee.Ghost,onClick:n,icon:i.jsx(Br,{}),testId:"close-icon"}):c&&i.jsx("div",{className:"w-9"})]})}function xl({children:e,hasBorder:t,bgColor:r="bg-neutral-100 dark:bg-neutral-6"}){const n=t?"border border-shader-neutral-light-8 dark:border-shader-neutral-dark-8":"border border-transparent";return i.jsx("div",{className:A("flex w-full flex-col rounded-xl",r,n),children:e})}var Sr=(e=>(e.Default="default",e.Error="error",e))(Sr||{}),$r=(e=>(e.Default="default",e.Elevated="elevated",e))($r||{});const bl={[Sr.Default]:"bg-neutral-96 dark:bg-neutral-12 text-neutral-10 dark:text-neutral-92",[Sr.Error]:"bg-error-90 dark:bg-error-10 text-error-20 dark:text-error-90"},yl={[Sr.Default]:"bg-neutral-96 dark:bg-neutral-12",[Sr.Error]:"bg-error-90 dark:bg-error-10"};function _l({icon:e,title:t,supportingText:r,type:n,style:o}){const s=bl[n],c=o===$r.Elevated?yl[n]:"";return i.jsxs("div",{className:A("flex flex-row items-start gap-4 py-xs pr-lg",c,{"rounded-lg pl-xs":o===$r.Elevated}),children:[e&&i.jsx("span",{className:A("flex items-center justify-center rounded-lg [&_svg]:h-4 [&_svg]:w-4",s,{"p-xs":o===$r.Default}),children:e}),i.jsxs("div",{className:"flex flex-col gap-1",children:[t&&i.jsx("span",{className:"text-title-sm text-neutral-10 dark:text-neutral-92",children:t}),r&&i.jsx("span",{className:"text-body-sm text-neutral-40 dark:text-neutral-60",children:r})]})]})}var nr=(e=>(e.Default="default",e.Error="error",e))(nr||{});const bo={[nr.Default]:"text-neutral-10 dark:text-neutral-92",[nr.Error]:"text-error-20 dark:text-error-90"},wl={[nr.Default]:"bg-neutral-80 dark:bg-neutral-30",[nr.Error]:"bg-error-90 dark:bg-error-10"};function Sl({text:e,duration:t=2e3,onClose:r,showClose:n,type:o=nr.Default}){return te.useEffect(()=>{if(t){const s=setTimeout(r,t);return()=>clearTimeout(s)}},[t,r]),i.jsxs("div",{className:A("transition-all duration-300 ease-out","z-99 bottom-0","flex w-full items-center justify-between gap-xxs rounded-md py-sm pl-md pr-sm",wl[o]),children:[i.jsx("div",{className:A("w-full text-left text-body-md",bo[o]),children:e}),n&&i.jsx(Br,{className:A("h-5 w-5 cursor-pointer",bo[o]),onClick:r})]})}var cn=(e=>(e.Image="image",e.Video="video",e))(cn||{});function El({assetType:e=cn.Image,assetSrc:t,altText:r,onIconClick:n,onClick:o,icon:s=i.jsx(so,{}),assetTitle:c,isHoverable:f=!0}){const x=m=>{n==null||n(m),m==null||m.stopPropagation()};return i.jsxs("div",{className:A("relative aspect-square w-full overflow-hidden rounded-xl",{"group cursor-pointer":f}),onClick:o,children:[e===cn.Video?i.jsx("video",{src:t,className:"h-full w-full object-cover",autoPlay:!0,loop:!0,muted:!0}):i.jsx("img",{src:t,alt:r,className:"h-full w-full object-cover"}),f&&i.jsx("div",{className:"absolute left-0 top-0 h-full w-full bg-cover bg-center bg-no-repeat group-hover:bg-shader-neutral-light-48 group-hover:transition group-hover:duration-300 group-hover:ease-in-out group-hover:dark:bg-shader-primary-dark-48"}),f&&i.jsxs(i.Fragment,{children:[n&&i.jsx(ot,{className:"absolute right-2 top-2 h-9 w-9 cursor-pointer rounded-full p-xs opacity-0 transition-opacity duration-300 group-hover:bg-shader-neutral-light-72 group-hover:opacity-100 [&_svg]:h-5 [&_svg]:w-5 [&_svg]:text-primary-100",onClick:x,children:s}),i.jsx("div",{className:"absolute bottom-0 flex items-center justify-center p-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:c&&i.jsx("span",{className:"text-title-md text-neutral-100",children:c})})]})]})}function Cl({color:e="text-primary-30 dark:text-primary-80",size:t="w-5 h-5",text:r,testId:n}){return i.jsxs("div",{className:"flex items-center justify-center gap-xs",children:[i.jsx(ro,{className:A("animate-spin",e,t),"data-testid":n}),r&&i.jsx("span",{className:A("text-body-sm",e),children:r})]})}function yo({width:e="w-full",height:t="h-4"}){return i.jsx("div",{className:A("animate-pulse rounded-md bg-gradient-to-r from-shader-primary-light-8 bg-[length:1000px_100%] dark:from-shader-primary-dark-8",e,t)})}function jl({children:e,widthClass:t="w-full",heightClass:r="h-3",hasSecondaryColors:n,isRounded:o=!0}){return i.jsx("div",{className:A("animate-pulse rounded-full",t,r,o&&"rounded-full",n?"bg-neutral-80 dark:bg-neutral-10":"bg-neutral-90 dark:bg-neutral-12"),children:e})}function _o({text:e,isCopyable:t,isExternal:r,externalLink:n,copyText:o=e,onCopySuccess:s,onCopyError:c,onOpen:f}){async function x(_){if(navigator.clipboard){_==null||_.stopPropagation();try{await navigator.clipboard.writeText(o),s==null||s(_,o)}catch(b){console.error("Failed to copy:",b),c==null||c(b,o)}}}function m(_){if(_==null||_.stopPropagation(),n){const b=window.open(n,"_blank","noopener,noreferrer");b&&(b.opener=null)}else f==null||f(_)}return i.jsxs("div",{className:"group flex flex-row items-center gap-1 text-neutral-40 dark:text-neutral-60",children:[i.jsx("span",{className:A("font-inter text-body-sm"),children:e}),t&&i.jsx(ot,{onClick:x,className:"opacity-0 group-hover:opacity-100",children:i.jsx(Za,{})}),r&&i.jsx(ot,{onClick:m,className:"opacity-0 group-hover:opacity-100",children:i.jsx(Fs,{})})]})}var Pt=(e=>(e.Default="default",e.Selected="selected",e))(Pt||{});const wo="rounded-full",Rl={[Pt.Default]:"bg-transparent",[Pt.Selected]:"bg-primary-90 dark:bg-primary-10"},Tl="outline outline-1 outline-transparent hover:outline-shader-primary-light-8 active:outline-shader-primary-light-12 dark:hover:outline-shader-primary-dark-8 dark:active:outline-shader-primary-dark-12 hover:bg-shader-primary-light-8 active:bg-shader-primary-light-12 dark:hover:bg-shader-primary-dark-8 dark:active:bg-shader-primary-dark-12 focus:bg-shader-primary-light-12 dark:focus:bg-shader-primary-dark-12",Ol={[Pt.Default]:"border-neutral-70 dark:border-neutral-40",[Pt.Selected]:"border-transparent"},Nl={[Pt.Default]:"text-neutral-40 dark:text-neutral-60",[Pt.Selected]:"text-neutral-10 dark:text-neutral-92"},kl="focus-visible:shadow-[0_0_0_2px] focus-visible:shadow-primary-30 focus-visible:outline-none dark:focus-visible:shadow-primary-80";function Al({label:e,showClose:t,selected:r,onClose:n,onClick:o,avatar:s,leadingElement:c,trailingElement:f,disabled:x}){const m=r?Pt.Selected:Pt.Default;return i.jsx(ot,{onClick:o,className:A("border transition-all duration-500 ease-in-out disabled:opacity-40",wo,Rl[m],Ol[m],kl),disabled:x,children:i.jsxs("span",{className:A("flex h-full w-full flex-row items-center gap-x-2",s?"py-xxs":"py-[6px]",s?"pl-xxs":c?"pl-xs":"pl-sm",wo,!x&&Tl,t?"pr-xs":"pr-sm",Nl[m]),children:[s??c,i.jsx("span",{className:"text-body-md",children:e}),f,t&&i.jsx(ot,{onClick:n,className:"cursor-pointer [&_svg]:h-4 [&_svg]:w-4",children:i.jsx(Br,{})})]})})}var ar=(e=>(e.Outlined="outlined",e.Filled="filled",e.Transparent="transparent",e))(ar||{});const Pl={[ar.Outlined]:"bg-transparent",[ar.Filled]:"bg-neutral-96 dark:bg-neutral-10",[ar.Transparent]:"bg-transparent"},Dl="border border-neutral-70 dark:border-neutral-40";function Il({type:e=ar.Filled,children:t,shape:r=wr.Rounded}){const n=Pl[e],o=e===ar.Outlined?Dl:"",s=r===wr.Rounded?"rounded-full gap-1 p-xxs":"";return i.jsx("div",{className:A("flex flex-row flex-wrap",n,o,s),children:t})}var or=(e=>(e.Small="small",e.Medium="medium",e))(or||{});const Ll={[or.Small]:"px-md py-sm--rs",[or.Medium]:"px-md--rs py-sm--rs"},Ml={[or.Small]:"text-title-md",[or.Medium]:"text-title-lg"};function Fl({title:e,subtitle:t,trailingElement:r,tooltipText:n,supportingElement:o,tooltipPosition:s,size:c=or.Medium}){return i.jsxs("div",{className:A("flex flex-row items-center justify-between",Ll[c]),children:[i.jsxs("div",{className:"flex flex-row items-center gap-x-xxxs",children:[i.jsxs("div",{className:"flex flex-col justify-start",children:[i.jsxs("div",{className:"flex flex-row items-center gap-x-0.5 text-neutral-10 dark:text-neutral-92",children:[i.jsx("h4",{className:A(Ml[c]),children:e}),n&&i.jsx(Ur,{text:n,position:s,children:i.jsx(un,{})})]}),i.jsx("p",{className:"text-label-md text-neutral-60 dark:text-neutral-40",children:t})]}),o]}),r]})}function fn({children:e,hasErrorStyles:t}){return i.jsx("p",{className:A("text-label-lg text-neutral-40 dark:text-neutral-60 ",{["group-[.errored]:text-error-30 dark:group-[.errored]:text-error-80"]:t}),children:e})}const So="w-full bg-transparent text-body-lg caret-primary-30 dark:caret-primary-80 focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed",Eo="text-neutral-10 dark:text-neutral-92",Co=" enabled:placeholder:text-neutral-40/40 dark:placeholder:text-neutral-60/40 enabled:dark:placeholder:text-neutral-60/40",jo="px-md py-sm rounded-lg border border-neutral-80 group-[.enabled]:cursor-text group-[.errored]:border-error-30 hover:group-[.enabled]:border-neutral-50 dark:border-neutral-60 dark:hover:border-neutral-60 dark:group-[.errored]:border-error-80 [&:has(input:focus)]:border-primary-30 [&:has(input:focus)]:dark:border-primary-80",Bl="[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:cursor-not-allowed",Vl="flex flex-col gap-y-2 text-label-lg text-neutral-40 dark:text-neutral-60";var Ro=(e=>(e.Label="label",e.Div="div",e))(Ro||{});function zn({label:e,caption:t,disabled:r,errorMessage:n,amountCounter:o,required:s,labelHtmlTag:c="label",children:f}){return i.jsxs("div",{className:A("group flex w-full flex-col gap-y-2",{"cursor-not-allowed opacity-40":r,errored:n,enabled:!r,required:s}),children:[e?i.jsxs(Ul,{labelHtmlTag:c,children:[e,f]}):f,(n||t||o)&&i.jsxs("div",{className:A("flex flex-row items-center",t||n?"justify-between":"justify-end"),children:[(n||t)&&i.jsx(fn,{hasErrorStyles:!0,children:n||t}),o&&i.jsx(fn,{children:o})]})]})}function Ul({labelHtmlTag:e,children:t}){return te.createElement(e,{className:Vl},t)}var gt=(e=>(e.Text="text",e.Password="password",e.Number="number",e.NumericFormat="numericFormat",e))(gt||{}),To=(e=>(e.None="none",e.Vertical="vertical",e))(To||{});function Oo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var Wr;(function(e){e.event="event",e.props="prop"})(Wr||(Wr={}));function Wt(){}function $l(e){var t,r=void 0;return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t&&n.length===t.length&&n.every(function(s,c){return s===t[c]})||(t=n,r=e.apply(void 0,n)),r}}function Hr(e){return!!(e||"").match(/\d/)}function Er(e){return e==null}function Wl(e){return typeof e=="number"&&isNaN(e)}function No(e){return Er(e)||Wl(e)||typeof e=="number"&&!isFinite(e)}function ko(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Hl(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Yl(e,t,r){var n=Hl(r),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(n,"$1"+t)}function Gl(e){var t=te.useRef(e);t.current=e;var r=te.useRef(function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];return t.current.apply(t,n)});return r.current}function Kn(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var o=e.split("."),s=o[0],c=o[1]||"";return{beforeDecimal:s,afterDecimal:c,hasNegation:r,addNegation:n}}function zl(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",o=r[1]||"";return(t?"-":"")+n+(o?"."+o:"")}function Ao(e,t,r){for(var n="",o=r?"0":"",s=0;s<=t-1;s++)n+=e[s]||o;return n}function Po(e,t){return Array(t+1).join(e)}function Do(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),o=n[0],s=n[1];if(s=Number(s),!s)return r+o;o=o.replace(".","");var c=1+s,f=o.length;return c<0?o="0."+Po("0",Math.abs(c))+o:c>=f?o=o+Po("0",c-f):o=(o.substring(0,c)||"0")+"."+o.substring(c),r+o}function Io(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,o=Kn(e),s=o.beforeDecimal,c=o.afterDecimal,f=o.hasNegation,x=parseFloat("0."+(c||"0")),m=c.length<=t?"0."+c:x.toFixed(t),_=m.split("."),b=s;s&&Number(_[0])&&(b=s.split("").reverse().reduce(function(O,M,P){return O.length>P?(Number(O[0])+Number(M)).toString()+O.substring(1,O.length):M+O},_[0]));var j=Ao(_[1]||"",t,r),T=f?"-":"",N=n?".":"";return""+T+b+N+j}function ir(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Lo=$l(function(e,t){for(var r=0,n=0,o=e.length,s=t.length;e[r]===t[r]&&r<o;)r++;for(;e[o-1-n]===t[s-1-n]&&s-n>r&&o-n>r;)n++;return{from:{start:r,end:o-n},to:{start:r,end:s-n}}}),Kl=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function Xl(e,t,r){return Math.min(Math.max(e,t),r)}function Xn(e){return Math.max(e.selectionStart,e.selectionEnd)}function ql(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Zl(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Jl(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,o=e.formattedValueIndex;return t[n]===r[o]}function Ql(e,t,r,n,o,s,c){c===void 0&&(c=Jl);var f=o.findIndex(function(Y){return Y}),x=e.slice(0,f);!t&&!r.startsWith(x)&&(t=x,r=x+r,n=n+x.length);for(var m=r.length,_=e.length,b={},j=new Array(m),T=0;T<m;T++){j[T]=-1;for(var N=0,O=_;N<O;N++){var M=c({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:T,formattedValueIndex:N});if(M&&b[N]!==!0){j[T]=N,b[N]=!0;break}}}for(var P=n;P<m&&(j[P]===-1||!s(r[P]));)P++;var $=P===m||j[P]===-1?_:j[P];for(P=n-1;P>0&&j[P]===-1;)P--;var H=P===-1||j[P]===-1?0:j[P]+1;return H>$?$:n-H<$-n?H:$}function Mo(e,t,r,n){var o=e.length;if(t=Xl(t,0,o),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=o&&!r[t];)t++;t>o&&(t=r.lastIndexOf(!0))}return t===-1&&(t=o),t}function eu(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(Hr(e[r])||Hr(e[r-1]));return t}function Fo(e,t,r,n,o,s){s===void 0&&(s=Wt);var c=Gl(function(N,O){var M,P;return No(N)?(P="",M=""):typeof N=="number"||O?(P=typeof N=="number"?Do(N):N,M=n(P)):(P=o(N,void 0),M=n(P)),{formattedValue:M,numAsString:P}}),f=te.useState(function(){return c(Er(e)?t:e,r)}),x=f[0],m=f[1],_=function(N,O){N.formattedValue!==x.formattedValue&&m({formattedValue:N.formattedValue,numAsString:N.value}),s(N,O)},b=e,j=r;Er(e)&&(b=x.numAsString,j=!0);var T=c(b,j);return te.useMemo(function(){m(T)},[T.formattedValue]),[x,_]}function tu(e){return e.replace(/[^0-9]/g,"")}function ru(e){return e}function nu(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,o=e.renderText,s=e.getInputRef,c=e.format;c===void 0&&(c=ru);var f=e.removeFormatting;f===void 0&&(f=tu);var x=e.defaultValue,m=e.valueIsNumericString,_=e.onValueChange,b=e.isAllowed,j=e.onChange;j===void 0&&(j=Wt);var T=e.onKeyDown;T===void 0&&(T=Wt);var N=e.onMouseUp;N===void 0&&(N=Wt);var O=e.onFocus;O===void 0&&(O=Wt);var M=e.onBlur;M===void 0&&(M=Wt);var P=e.value,$=e.getCaretBoundary;$===void 0&&($=eu);var H=e.isValidInputCharacter;H===void 0&&(H=Hr);var Y=e.isCharacterSame,U=Oo(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),ie=Fo(P,x,!!m,c,f,_),Q=ie[0],K=Q.formattedValue,pe=Q.numAsString,Pe=ie[1],He=te.useRef(),Xe=te.useRef({formattedValue:K,numAsString:pe}),Ne=function(V,G){Xe.current={formattedValue:V.formattedValue,numAsString:V.value},Pe(V,G)},je=te.useState(!1),Re=je[0],J=je[1],F=te.useRef(null),ne=te.useRef({setCaretTimeout:null,focusTimeout:null});te.useEffect(function(){return J(!0),function(){clearTimeout(ne.current.setCaretTimeout),clearTimeout(ne.current.focusTimeout)}},[]);var we=c,Oe=function(V,G){var ae=parseFloat(G);return{formattedValue:V,value:G,floatValue:isNaN(ae)?void 0:ae}},Se=function(V,G,ae){V.selectionStart===0&&V.selectionEnd===V.value.length||(ir(V,G),ne.current.setCaretTimeout=setTimeout(function(){V.value===ae&&V.selectionStart!==G&&ir(V,G)},0))},g=function(V,G,ae){return Mo(V,G,$(V),ae)},R=function(V,G,ae){var ue=$(G),Ae=Ql(G,K,V,ae,ue,H,Y);return Ae=Mo(G,Ae,ue),Ae},oe=function(V){var G=V.formattedValue;G===void 0&&(G="");var ae=V.input,ue=V.source,Ae=V.event,be=V.numAsString,ce;if(ae){var qe=V.inputValue||ae.value,Ye=Xn(ae);ae.value=G,ce=R(qe,G,Ye),ce!==void 0&&Se(ae,ce,G)}G!==K&&Ne(Oe(G,be),{event:Ae,source:ue})};te.useEffect(function(){var V=Xe.current,G=V.formattedValue,ae=V.numAsString;(K!==G||pe!==ae)&&Ne(Oe(K,pe),{event:void 0,source:Wr.props})},[K,pe]);var de=F.current?Xn(F.current):void 0,le=typeof window<"u"?te.useLayoutEffect:te.useEffect;le(function(){var V=F.current;if(K!==Xe.current.formattedValue&&V){var G=R(Xe.current.formattedValue,K,de);V.value=K,Se(V,G,K)}},[K]);var ge=function(V,G,ae){var ue=G.target,Ae=He.current?Kl(He.current,ue.selectionEnd):Lo(K,V),be=Object.assign(Object.assign({},Ae),{lastValue:K}),ce=f(V,be),qe=we(ce);if(ce=f(qe,void 0),b&&!b(Oe(qe,ce))){var Ye=G.target,Ze=Xn(Ye),rt=R(V,K,Ze);return Ye.value=K,Se(Ye,rt,K),!1}return oe({formattedValue:qe,numAsString:ce,inputValue:V,event:G,source:ae,input:G.target}),!0},ve=function(V,G){G===void 0&&(G=0);var ae=V.selectionStart,ue=V.selectionEnd;He.current={selectionStart:ae,selectionEnd:ue+G}},xe=function(V){var G=V.target,ae=G.value,ue=ge(ae,V,Wr.event);ue&&j(V),He.current=void 0},he=function(V){var G=V.target,ae=V.key,ue=G.selectionStart,Ae=G.selectionEnd,be=G.value;be===void 0&&(be="");var ce;ae==="ArrowLeft"||ae==="Backspace"?ce=Math.max(ue-1,0):ae==="ArrowRight"?ce=Math.min(ue+1,be.length):ae==="Delete"&&(ce=ue);var qe=0;ae==="Delete"&&ue===Ae&&(qe=1);var Ye=ae==="ArrowLeft"||ae==="ArrowRight";if(ce===void 0||ue!==Ae&&!Ye){T(V),ve(G,qe);return}var Ze=ce;if(Ye){var rt=ae==="ArrowLeft"?"left":"right";Ze=g(be,ce,rt),Ze!==ce&&V.preventDefault()}else ae==="Delete"&&!H(be[ce])?Ze=g(be,ce,"right"):ae==="Backspace"&&!H(be[ce])&&(Ze=g(be,ce,"left"));Ze!==ce&&Se(G,Ze,be),T(V),ve(G,qe)},Fe=function(V){var G=V.target,ae=function(){var ue=G.selectionStart,Ae=G.selectionEnd,be=G.value;if(be===void 0&&(be=""),ue===Ae){var ce=g(be,ue);ce!==ue&&Se(G,ce,be)}};ae(),requestAnimationFrame(function(){ae()}),N(V),ve(G)},yt=function(V){V.persist&&V.persist();var G=V.target,ae=V.currentTarget;F.current=G,ne.current.focusTimeout=setTimeout(function(){var ue=G.selectionStart,Ae=G.selectionEnd,be=G.value;be===void 0&&(be="");var ce=g(be,ue);ce!==ue&&!(ue===0&&Ae===be.length)&&Se(G,ce,be),O(Object.assign(Object.assign({},V),{currentTarget:ae}))},0)},ct=function(V){F.current=null,clearTimeout(ne.current.focusTimeout),clearTimeout(ne.current.setCaretTimeout),M(V)},It=Re&&ql()?"numeric":void 0,ft=Object.assign({inputMode:It},U,{type:t,value:K,onChange:xe,onKeyDown:he,onMouseUp:Fe,onFocus:yt,onBlur:ct});if(r==="text")return o?te.createElement(te.Fragment,null,o(K,U)||null):te.createElement("span",Object.assign({},U,{ref:s}),K);if(n){var tt=n;return te.createElement(tt,Object.assign({},ft,{ref:s}))}return te.createElement("input",Object.assign({},ft,{ref:s}))}function Bo(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var s=t.suffix;s===void 0&&(s="");var c=t.allowNegative,f=t.thousandsGroupStyle;if(f===void 0&&(f="thousand"),e===""||e==="-")return e;var x=dn(t),m=x.thousandSeparator,_=x.decimalSeparator,b=r!==0&&e.indexOf(".")!==-1||r&&n,j=Kn(e,c),T=j.beforeDecimal,N=j.afterDecimal,O=j.addNegation;return r!==void 0&&(N=Ao(N,r,!!n)),m&&(T=Yl(T,m,f)),o&&(T=o+T),s&&(N=N+s),O&&(T="-"+T),e=T+(b&&_||"")+N,e}function dn(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function au(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),o=r.test(e),s=n.test(e);return e=e.replace(/-/g,""),o&&!s&&t&&(e="-"+e),e}function ou(e,t){return new RegExp("(^-)|[0-9]|"+ko(e),"g")}function iu(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function su(e,t,r){var n;t===void 0&&(t=Zl(e));var o=r.allowNegative,s=r.prefix;s===void 0&&(s="");var c=r.suffix;c===void 0&&(c="");var f=r.decimalScale,x=t.from,m=t.to,_=m.start,b=m.end,j=dn(r),T=j.allowedDecimalSeparators,N=j.decimalSeparator,O=e[b]===N;if(Hr(e)&&(e===s||e===c)&&t.lastValue==="")return e;if(b-_===1&&T.indexOf(e[_])!==-1){var M=f===0?"":N;e=e.substring(0,_)+M+e.substring(_+1,e.length)}var P=function(F,ne,we){var Oe=!1,Se=!1;s.startsWith("-")?Oe=!1:F.startsWith("--")?(Oe=!1,Se=!0):c.startsWith("-")&&F.length===c.length?Oe=!1:F[0]==="-"&&(Oe=!0);var g=Oe?1:0;return Se&&(g=2),g&&(F=F.substring(g),ne-=g,we-=g),{value:F,start:ne,end:we,hasNegation:Oe}},$=P(e,_,b),H=$.hasNegation;n=$,e=n.value,_=n.start,b=n.end;var Y=P(t.lastValue,x.start,x.end),U=Y.start,ie=Y.end,Q=Y.value,K=e.substring(_,b);e.length&&Q.length&&(U>Q.length-c.length||ie<s.length)&&!(K&&c.startsWith(K))&&(e=Q);var pe=0;e.startsWith(s)?pe+=s.length:_<s.length&&(pe=_),e=e.substring(pe),b-=pe;var Pe=e.length,He=e.length-c.length;e.endsWith(c)?Pe=He:(b>He||b>e.length-c.length)&&(Pe=b),e=e.substring(0,Pe),e=au(H?"-"+e:e,o),e=(e.match(ou(N))||[]).join("");var Xe=e.indexOf(N);e=e.replace(new RegExp(ko(N),"g"),function(F,ne){return ne===Xe?".":""});var Ne=Kn(e,o),je=Ne.beforeDecimal,Re=Ne.afterDecimal,J=Ne.addNegation;return m.end-m.start<x.end-x.start&&je===""&&O&&!parseFloat(Re)&&(e=J?"-":""),e}function lu(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var o=Array.from({length:e.length+1}).map(function(){return!0}),s=e[0]==="-";o.fill(!1,0,r.length+(s?1:0));var c=e.length;return o.fill(!1,c-n.length+1,c+1),o}function uu(e){var t=dn(e),r=t.thousandSeparator,n=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var s=e.allowNegative;if(s===void 0&&(s=!0),r===n)throw new Error(`
|
|
145
|
+
hover:before:dark:border-neutral-40`;var wr=(e=>(e.Rounded="rounded",e.Underlined="underlined",e))(wr||{});function vl({icon:e,label:t,selected:r,disabled:n,onClick:i,type:s=wr.Rounded}){const c=s===wr.Underlined,f=r?c?"bg-transparent":ll:sl,x=c?r?fl:dl:"",h=r?cl:ul,_=c?"px-lg py-md":"px-sm py-[6px]",b=c?"":"rounded-full",j=c?"text-title-md":"text-label-lg";return o.jsx(nt,{onClick:i,className:P("enabled:state-layer relative flex items-center disabled:opacity-40",f,h,_,b,x,{"pl-xs":!!e&&!c}),disabled:n,children:o.jsxs("div",{className:P("flex flex-row items-center justify-center gap-2",j),children:[e&&o.jsx("span",{children:e}),o.jsx("span",{className:"font-inter",children:t})]})})}const Xn=te.forwardRef(({isChecked:e,isIndeterminate:t,label:r,isLabelFirst:n,isDisabled:i,onCheckedChange:s,name:c},f)=>{const x=te.useRef(null);te.useEffect(()=>{x.current&&(x.current.indeterminate=t??!1)},[t,x]);const h=t?Ks:Gs;function _(b){f&&(typeof f=="function"?f(b):f.current=b),x.current=b}return o.jsxs("div",{className:P("group inline-flex",n?"flex-row-reverse":"flex-row",{disabled:i,"gap-x-2":r}),children:[o.jsx("input",{id:c,name:c,type:"checkbox",className:"peer hidden appearance-none",checked:e,ref:_,disabled:i,onChange:b=>{s==null||s(b)}}),o.jsx("span",{onClick:()=>{var b;return(b=x.current)==null?void 0:b.click()},className:"peer-enabled:state-layer relative inset-0 flex h-5 w-5 items-center justify-center rounded border border-neutral-80 text-neutral-40 group-[.disabled]:cursor-not-allowed peer-disabled:text-neutral-70 peer-disabled:text-opacity-40 peer-disabled:opacity-40 peer-[&:is(:checked,:indeterminate)]:border-primary-30 peer-[&:is(:checked,:indeterminate)]:bg-primary-30 peer-[&:is(:checked,:indeterminate)]:text-white peer-[&:not(:checked,:indeterminate)]:text-opacity-40 disabled:peer-[&:not(:checked,:indeterminate)]:border-neutral-70 dark:border-neutral-20 dark:text-neutral-60 dark:peer-disabled:text-neutral-30 dark:peer-disabled:text-opacity-40 dark:peer-disabled:peer-[&:not(:checked,:indeterminate)]:border-neutral-30 dark:peer-disabled:peer-[&:is(:checked,:indeterminate)]:bg-neutral-40 peer-disabled:[&:is(:checked,:indeterminate)]:border-neutral-60 peer-disabled:[&:is(:checked,:indeterminate)]:bg-neutral-60 dark:peer-disabled:[&:is(:checked,:indeterminate)]:border-neutral-40 [&_svg]:h-4 [&_svg]:w-4 peer-[&:not(:checked,:indeterminate)]:[&_svg]:hidden",children:o.jsx(h,{})}),o.jsx(ml,{label:r,name:c})]})});function ml({label:e,name:t}){return o.jsx("label",{htmlFor:t,className:"text-label-lg text-neutral-40 group-[.disabled]:cursor-not-allowed group-[.disabled]:text-opacity-40 dark:text-neutral-60 group-[.disabled]:dark:text-opacity-40",children:e})}var Wt=(e=>(e.Vertical="vertical",e.Horizontal="horizontal",e))(Wt||{});const hl="bg-shader-neutral-light-8 dark:bg-shader-neutral-dark-8",pl={[Wt.Horizontal]:"w-full",[Wt.Vertical]:"h-full"},gl="1px";function _i({type:e=Wt.Horizontal,width:t,height:r,lineHeight:n=gl}){const i={...e===Wt.Horizontal?{height:n}:{width:n}};let s=pl[e];return t&&e===Wt.Horizontal?s=t:r&&e===Wt.Vertical&&(s=r),o.jsx("div",{className:P(hl,s),style:i})}var Br=(e=>(e.Small="small",e.Medium="medium",e))(Br||{}),rr=(e=>(e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e))(rr||{});const xl={[rr.Top]:"bottom-full left-1/2 transform -translate-x-1/2 mb-1",[rr.Bottom]:"top-full left-1/2 transform -translate-x-1/2 mt-1",[rr.Left]:"top-1/2 right-full transform -translate-y-1/2 mr-1",[rr.Right]:"top-1/2 left-full transform -translate-y-1/2 ml-1"};function Vr({text:e,position:t=rr.Top,maxWidth:r="max-w-[200px]",children:n}){const i=xl[t];return o.jsxs("div",{className:"group relative inline-block",children:[n,o.jsx("div",{className:P("absolute z-[999] hidden w-max rounded bg-neutral-80 p-xs text-neutral-10 opacity-0 transition-opacity duration-300 group-hover:block group-hover:opacity-100 group-focus:opacity-100 dark:bg-neutral-30 dark:text-neutral-92",i,r),role:"tooltip",children:o.jsx("p",{className:"w-full break-words",children:e})})]})}function bl({keyText:e,value:t,tooltipPosition:r,tooltipText:n,supportingLabel:i,size:s=Br.Small,isTruncated:c=!1,copyText:f,onCopySuccess:x,onCopyError:h,fullwidth:_,isReverse:b=!1,valueHoverTitle:j}){const R=b?"flex-row-reverse":"flex-row";async function k(O){if(navigator.clipboard&&f)try{await navigator.clipboard.writeText(f),x==null||x(O,f)}catch(L){console.error("Failed to copy:",L),h==null||h(L,f)}}return o.jsxs("div",{className:P("flex w-full items-baseline gap-xs py-xxs font-inter",R,{"justify-between":_}),children:[o.jsxs("div",{className:P("flex shrink-0 flex-row items-center gap-x-0.5",{"w-1/4":!_}),children:[o.jsx("span",{className:"text-body-md text-neutral-40 dark:text-neutral-60",children:e}),n&&o.jsx(Vr,{text:n,position:r,children:o.jsx(un,{className:"text-neutral-60 dark:text-neutral-40"})})]}),o.jsxs("div",{className:P("flex flex-row items-baseline gap-1 break-all",{"w-3/4":!_,truncate:c}),children:[o.jsx("span",{title:j,className:P("text-neutral-10 dark:text-neutral-92",s===Br.Medium?"text-body-lg":"text-body-md",{truncate:c}),children:t}),i&&o.jsx("span",{className:P("text-neutral-60 dark:text-neutral-40",s===Br.Medium?"text-body-md":"text-body-sm"),children:i}),o.jsx("div",{className:"self-center",children:f&&o.jsx(nt,{onClick:k,children:o.jsx(ti,{className:"text-neutral-60 dark:text-neutral-40"})})})]})]})}var lt=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(lt||{});const yl={[lt.Small]:"text-title-sm",[lt.Medium]:"text-title-md",[lt.Large]:"text-title-lg"},_l={[lt.Small]:"text-label-md",[lt.Medium]:"text-label-md",[lt.Large]:"text-label-lg"},wl={[lt.Small]:"text-label-md",[lt.Medium]:"text-label-md",[lt.Large]:"text-label-lg"};function Sl({size:e=lt.Medium,isCentered:t,supportingLabel:r,label:n,text:i,tooltipPosition:s,tooltipText:c}){const f=yl[e],x=_l[e],h=wl[e],_=t?"items-center":"items-start",b=e===lt.Small?"gap-0.5":"gap-1";return o.jsxs("div",{className:P("flex flex-col",_,b),children:[o.jsxs("div",{className:"flex flex-row flex-wrap items-center gap-0.5",children:[o.jsx("span",{className:P("font-inter text-neutral-10 dark:text-neutral-92",f),children:i}),r&&o.jsx("span",{className:P("font-inter text-neutral-60 dark:text-neutral-40",x),children:r})]}),o.jsx("div",{className:"flex flex-row items-center gap-x-0.5",children:o.jsxs("span",{className:P("flex items-center font-inter text-neutral-60 dark:text-neutral-40",h),children:[n,c&&o.jsx("div",{className:"ml-xxxs flex items-center",children:o.jsx(Vr,{text:c,position:s,children:o.jsx(un,{className:"text-neutral-60 dark:text-neutral-40"})})})]})})]})}function wi({showRightIcon:e,hideBottomBorder:t,onClick:r,isDisabled:n,children:i,isHighlighted:s}){function c(x){(x.key==="Enter"||x.key===" ")&&!n&&r&&r()}function f(){!n&&r&&r()}return o.jsx("div",{className:P("w-full",{"border-b border-shader-neutral-light-8 pb-xs dark:border-shader-neutral-dark-8":!t},{"opacity-40":n}),children:o.jsxs("div",{onClick:f,role:"button",tabIndex:0,onKeyDown:c,className:P("relative flex flex-row items-center justify-between px-md py-sm text-neutral-10 dark:text-neutral-92",!n&&r?"cursor-pointer":"cursor-default",{"bg-shader-primary-dark-16 dark:bg-shader-inverted-dark-16":s,"state-layer":!n}),children:[i,e&&o.jsx(dt,{size:Qe.Small,type:Ee.Ghost,disabled:n,icon:o.jsx(Un,{})})]})})}function El({title:e,titleCentered:t,onBack:r,onClose:n,testId:i}){const s=t?"text-center":r?"ml-1":"",c=t&&(!r||!n);return o.jsxs("div",{className:"flex min-h-[56px] w-full items-center bg-neutral-100 px-md--rs pb-xs pt-sm text-neutral-10 dark:bg-neutral-6 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",children:[r?o.jsx(dt,{size:Qe.Small,type:Ee.Ghost,onClick:r,icon:o.jsx(Ga,{})}):c&&o.jsx("div",{className:"w-9"}),o.jsx("div",{className:P("flex-grow",s),children:o.jsx("span",{className:"font-inter text-title-lg","data-testid":i,children:e})}),n?o.jsx(dt,{size:Qe.Small,type:Ee.Ghost,onClick:n,icon:o.jsx(Fr,{}),testId:"close-icon"}):c&&o.jsx("div",{className:"w-9"})]})}function Cl({children:e,hasBorder:t,bgColor:r="bg-neutral-100 dark:bg-neutral-6"}){const n=t?"border border-shader-neutral-light-8 dark:border-shader-neutral-dark-8":"border border-transparent";return o.jsx("div",{className:P("flex w-full flex-col rounded-xl",r,n),children:e})}var Rt=(e=>(e.Default="default",e.Error="error",e.Success="success",e.Warning="warning",e))(Rt||{}),$r=(e=>(e.Default="default",e.Elevated="elevated",e))($r||{});const jl={[Rt.Default]:"bg-primary-90 dark:bg-primary-10 text-primary-20 dark:text-primary-90",[Rt.Error]:"bg-error-90 dark:bg-error-10 text-error-20 dark:text-error-90",[Rt.Success]:"bg-tertiary-90 dark:bg-tertiary-10 text-tertiary-20 dark:text-tertiary-90",[Rt.Warning]:"bg-warning-90 dark:bg-warning-20 text-warning-10 dark:text-warning-90"},Rl={[Rt.Default]:"bg-primary-90 dark:bg-primary-10",[Rt.Error]:"bg-error-90 dark:bg-error-10",[Rt.Success]:"bg-tertiary-90 dark:bg-tertiary-10",[Rt.Warning]:"bg-warning-90 dark:bg-warning-20"};function Tl({icon:e,title:t,supportingText:r,type:n,style:i}){const s=jl[n],c=i===$r.Elevated?Rl[n]:"";return o.jsxs("div",{className:P("flex flex-row items-start gap-4 py-xs pr-lg",c,{"rounded-lg pl-xs":i===$r.Elevated}),children:[e&&o.jsx("span",{className:P("flex items-center justify-center rounded-lg [&_svg]:h-4 [&_svg]:w-4",s,{"p-xs":i===$r.Default}),children:e}),o.jsxs("div",{className:"flex flex-col gap-1",children:[t&&o.jsx("span",{className:"text-title-sm text-neutral-10 dark:text-neutral-92",children:t}),r&&o.jsx("span",{className:"text-body-sm text-neutral-40 dark:text-neutral-60",children:r})]})]})}var ht=(e=>(e.Default="default",e.Error="error",e.Warning="warning",e.Success="success",e))(ht||{});const Si={[ht.Default]:"text-neutral-10 dark:text-neutral-92",[ht.Error]:"text-error-20 dark:text-error-90",[ht.Warning]:"text-warning-10 dark:text-warning-90",[ht.Success]:"text-tertiary-20 dark:text-tertiary-90"},Ol={[ht.Default]:"bg-primary-90 dark:bg-primary-10",[ht.Error]:"bg-error-90 dark:bg-error-10",[ht.Warning]:"bg-warning-90 dark:bg-warning-20",[ht.Success]:"bg-tertiary-90 dark:bg-tertiary-10"};function kl({text:e,duration:t=2e3,onClose:r,showClose:n,type:i=ht.Default}){return te.useEffect(()=>{if(t){const s=setTimeout(r,t);return()=>clearTimeout(s)}},[t,r]),o.jsxs("div",{className:P("transition-all duration-300 ease-out","z-99 bottom-0","flex w-full items-center justify-between gap-xxs rounded-md py-sm pl-md pr-sm",Ol[i]),children:[o.jsx("div",{className:P("w-full text-left text-body-md",Si[i]),children:e}),n&&o.jsx(Fr,{className:P("h-5 w-5 cursor-pointer",Si[i]),onClick:r})]})}var cn=(e=>(e.Image="image",e.Video="video",e))(cn||{});function Nl({assetType:e=cn.Image,assetSrc:t,altText:r,onIconClick:n,onClick:i,icon:s=o.jsx(fi,{}),assetTitle:c,isHoverable:f=!0}){const[x,h]=te.useState(!1),_=b=>{n==null||n(b),b==null||b.stopPropagation()};return o.jsxs("div",{className:P("relative aspect-square w-full overflow-hidden rounded-xl",{"group cursor-pointer":f}),onClick:i,children:[e===cn.Video?o.jsx("video",{src:t,className:"h-full w-full object-cover",autoPlay:!0,loop:!0,muted:!0}):x?o.jsx("div",{className:"flex h-full w-full items-center justify-center bg-neutral-96 dark:bg-neutral-10",children:o.jsx(tl,{className:"h-4 w-4 text-neutral-40 dark:text-neutral-60"})}):o.jsx("img",{src:t,alt:r,className:"h-full w-full object-cover",onError:()=>h(!0)}),f&&o.jsx("div",{className:"absolute left-0 top-0 h-full w-full bg-cover bg-center bg-no-repeat group-hover:bg-shader-neutral-light-48 group-hover:transition group-hover:duration-300 group-hover:ease-in-out group-hover:dark:bg-shader-primary-dark-48"}),f&&n&&o.jsx(nt,{className:"absolute right-2 top-2 h-9 w-9 cursor-pointer rounded-full p-xs opacity-0 transition-opacity duration-300 group-hover:bg-shader-neutral-light-72 group-hover:opacity-100 [&_svg]:h-5 [&_svg]:w-5 [&_svg]:text-primary-100",onClick:_,children:s}),f&&c&&o.jsx("div",{className:"absolute bottom-0 flex items-center justify-center p-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:o.jsx("span",{className:"text-title-md text-neutral-100",children:c})})]})}function Pl({color:e="text-primary-30 dark:text-primary-80",size:t="w-5 h-5",text:r,testId:n}){return o.jsxs("div",{className:"flex items-center justify-center gap-xs",children:[o.jsx(oi,{className:P("animate-spin",e,t),"data-testid":n}),r&&o.jsx("span",{className:P("text-body-sm",e),children:r})]})}function Ei({width:e="w-full",height:t="h-4"}){return o.jsx("div",{className:P("animate-pulse rounded-md bg-gradient-to-r from-shader-primary-light-8 bg-[length:1000px_100%] dark:from-shader-primary-dark-8",e,t)})}function Al({children:e,widthClass:t="w-full",heightClass:r="h-3",hasSecondaryColors:n,isRounded:i=!0}){return o.jsx("div",{className:P("animate-pulse rounded-full",t,r,i&&"rounded-full",n?"bg-neutral-80 dark:bg-neutral-10":"bg-neutral-90 dark:bg-neutral-12"),children:e})}function Ci({text:e,isCopyable:t,isExternal:r,externalLink:n,copyText:i=e,onCopySuccess:s,onCopyError:c,onOpen:f}){async function x(_){if(navigator.clipboard){_==null||_.stopPropagation();try{await navigator.clipboard.writeText(i),s==null||s(_,i)}catch(b){console.error("Failed to copy:",b),c==null||c(b,i)}}}function h(_){if(_==null||_.stopPropagation(),n){const b=window.open(n,"_blank","noopener noreferrer");b&&(b.opener=null)}else f==null||f(_)}return o.jsxs("div",{className:"group flex flex-row items-center gap-1 text-neutral-40 dark:text-neutral-60",children:[o.jsx("span",{className:P("font-inter text-body-sm"),children:e}),t&&o.jsx(nt,{onClick:x,className:"opacity-0 group-hover:opacity-100",children:o.jsx(ti,{})}),r&&o.jsx(nt,{onClick:h,className:"opacity-0 group-hover:opacity-100",children:o.jsx(Ys,{})})]})}var Mt=(e=>(e.Default="default",e.Selected="selected",e))(Mt||{});const ji="rounded-full",Dl={[Mt.Default]:"bg-transparent",[Mt.Selected]:"bg-primary-90 dark:bg-primary-10"},Il="outline outline-1 outline-transparent hover:outline-shader-primary-light-8 active:outline-shader-primary-light-12 dark:hover:outline-shader-primary-dark-8 dark:active:outline-shader-primary-dark-12 hover:bg-shader-primary-light-8 active:bg-shader-primary-light-12 dark:hover:bg-shader-primary-dark-8 dark:active:bg-shader-primary-dark-12 focus:bg-shader-primary-light-12 dark:focus:bg-shader-primary-dark-12",Ll={[Mt.Default]:"border-neutral-70 dark:border-neutral-40",[Mt.Selected]:"border-transparent"},Ml={[Mt.Default]:"text-neutral-40 dark:text-neutral-60",[Mt.Selected]:"text-neutral-10 dark:text-neutral-92"},Fl="focus-visible:shadow-[0_0_0_2px] focus-visible:shadow-primary-30 focus-visible:outline-none dark:focus-visible:shadow-primary-80";function Bl({label:e,showClose:t,selected:r,onClose:n,onClick:i,avatar:s,leadingElement:c,trailingElement:f,disabled:x}){const h=r?Mt.Selected:Mt.Default;return o.jsx(nt,{onClick:i,className:P("border transition-all duration-500 ease-in-out disabled:opacity-40",ji,Dl[h],Ll[h],Fl),disabled:x,children:o.jsxs("span",{className:P("flex h-full w-full flex-row items-center gap-x-2",s?"py-xxs":"py-[6px]",s?"pl-xxs":c?"pl-xs":"pl-sm",ji,!x&&Il,t?"pr-xs":"pr-sm",Ml[h]),children:[s??c,o.jsx("span",{className:"text-body-md",children:e}),f,t&&o.jsx(nt,{onClick:n,className:"cursor-pointer [&_svg]:h-4 [&_svg]:w-4",children:o.jsx(Fr,{})})]})})}var nr=(e=>(e.Outlined="outlined",e.Filled="filled",e.Transparent="transparent",e))(nr||{});const Vl={[nr.Outlined]:"bg-transparent",[nr.Filled]:"bg-neutral-96 dark:bg-neutral-10",[nr.Transparent]:"bg-transparent"},$l="border border-neutral-70 dark:border-neutral-40";function Ul({type:e=nr.Filled,children:t,shape:r=wr.Rounded}){const n=Vl[e],i=e===nr.Outlined?$l:"",s=r===wr.Rounded?"rounded-full gap-1 p-xxs":"";return o.jsx("div",{className:P("flex flex-row flex-wrap",n,i,s),children:t})}var ar=(e=>(e.Small="small",e.Medium="medium",e))(ar||{});const Wl={[ar.Small]:"px-md py-sm--rs",[ar.Medium]:"px-md--rs py-sm--rs"},Hl={[ar.Small]:"text-title-md",[ar.Medium]:"text-title-lg"};function Yl({title:e,subtitle:t,trailingElement:r,tooltipText:n,supportingElement:i,tooltipPosition:s,size:c=ar.Medium}){return o.jsxs("div",{className:P("flex flex-row items-center justify-between",Wl[c]),children:[o.jsxs("div",{className:"flex flex-row items-center gap-x-xxxs",children:[o.jsxs("div",{className:"flex flex-col justify-start",children:[o.jsxs("div",{className:"flex flex-row items-center gap-x-0.5 text-neutral-10 dark:text-neutral-92",children:[o.jsx("h4",{className:P(Hl[c]),children:e}),n&&o.jsx(Vr,{text:n,position:s,children:o.jsx(un,{})})]}),o.jsx("p",{className:"text-label-md text-neutral-60 dark:text-neutral-40",children:t})]}),i]}),r]})}function fn({children:e,hasErrorStyles:t}){return o.jsx("p",{className:P("text-label-lg text-neutral-40 dark:text-neutral-60 ",{["group-[.errored]:text-error-30 dark:group-[.errored]:text-error-80"]:t}),children:e})}const Ri="w-full bg-transparent text-body-lg caret-primary-30 dark:caret-primary-80 focus:outline-none focus-visible:outline-none disabled:cursor-not-allowed",Ti="text-neutral-10 dark:text-neutral-92",Oi="enabled:placeholder:text-neutral-40/40 dark:placeholder:text-neutral-60/40 enabled:dark:placeholder:text-neutral-60/40",ki="px-md py-sm rounded-lg border border-neutral-80 group-[.enabled]:cursor-text group-[.errored]:border-error-30 hover:group-[.enabled]:border-neutral-50 dark:border-neutral-20 dark:hover:border-neutral-60 dark:group-[.errored]:border-error-80 [&:has(input:focus)]:!border-primary-30 [&:has(input:focus)]:dark:!border-primary-80",Gl="[appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none disabled:cursor-not-allowed",zl="flex flex-col gap-y-2 text-label-lg text-neutral-40 dark:text-neutral-60";var Ni=(e=>(e.Label="label",e.Div="div",e))(Ni||{});function qn({label:e,caption:t,disabled:r,errorMessage:n,amountCounter:i,required:s,labelHtmlTag:c="label",children:f}){return o.jsxs("div",{className:P("group flex w-full flex-col gap-y-2",{"cursor-not-allowed opacity-40":r,errored:n,enabled:!r,required:s}),children:[e?o.jsxs(Kl,{labelHtmlTag:c,children:[e,f]}):f,(n||t||i)&&o.jsxs("div",{className:P("flex flex-row items-center",t||n?"justify-between":"justify-end"),children:[(n||t)&&o.jsx(fn,{hasErrorStyles:!0,children:n||t}),i&&o.jsx(fn,{children:i})]})]})}function Kl({labelHtmlTag:e,children:t}){return te.createElement(e,{className:zl},t)}var pt=(e=>(e.Text="text",e.Password="password",e.Number="number",e.NumericFormat="numericFormat",e))(pt||{}),Pi=(e=>(e.None="none",e.Vertical="vertical",e))(Pi||{});function Ai(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var Ur;(function(e){e.event="event",e.props="prop"})(Ur||(Ur={}));function Ht(){}function Xl(e){var t,r=void 0;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return t&&n.length===t.length&&n.every(function(s,c){return s===t[c]})||(t=n,r=e.apply(void 0,n)),r}}function Wr(e){return!!(e||"").match(/\d/)}function Sr(e){return e==null}function ql(e){return typeof e=="number"&&isNaN(e)}function Di(e){return Sr(e)||ql(e)||typeof e=="number"&&!isFinite(e)}function Ii(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function Zl(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Jl(e,t,r){var n=Zl(r),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(n,"$1"+t)}function Ql(e){var t=te.useRef(e);t.current=e;var r=te.useRef(function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return t.current.apply(t,n)});return r.current}function Zn(e,t){t===void 0&&(t=!0);var r=e[0]==="-",n=r&&t;e=e.replace("-","");var i=e.split("."),s=i[0],c=i[1]||"";return{beforeDecimal:s,afterDecimal:c,hasNegation:r,addNegation:n}}function eu(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",i=r[1]||"";return(t?"-":"")+n+(i?"."+i:"")}function Li(e,t,r){for(var n="",i=r?"0":"",s=0;s<=t-1;s++)n+=e[s]||i;return n}function Mi(e,t){return Array(t+1).join(e)}function Fi(e){var t=e+"",r=t[0]==="-"?"-":"";r&&(t=t.substring(1));var n=t.split(/[eE]/g),i=n[0],s=n[1];if(s=Number(s),!s)return r+i;i=i.replace(".","");var c=1+s,f=i.length;return c<0?i="0."+Mi("0",Math.abs(c))+i:c>=f?i=i+Mi("0",c-f):i=(i.substring(0,c)||"0")+"."+i.substring(c),r+i}function Bi(e,t,r){if(["","-"].indexOf(e)!==-1)return e;var n=(e.indexOf(".")!==-1||r)&&t,i=Zn(e),s=i.beforeDecimal,c=i.afterDecimal,f=i.hasNegation,x=parseFloat("0."+(c||"0")),h=c.length<=t?"0."+c:x.toFixed(t),_=h.split("."),b=s;s&&Number(_[0])&&(b=s.split("").reverse().reduce(function(O,L,A){return O.length>A?(Number(O[0])+Number(L)).toString()+O.substring(1,O.length):L+O},_[0]));var j=Li(_[1]||"",t,r),R=f?"-":"",k=n?".":"";return""+R+b+k+j}function ir(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Vi=Xl(function(e,t){for(var r=0,n=0,i=e.length,s=t.length;e[r]===t[r]&&r<i;)r++;for(;e[i-1-n]===t[s-1-n]&&s-n>r&&i-n>r;)n++;return{from:{start:r,end:i-n},to:{start:r,end:s-n}}}),tu=function(e,t){var r=Math.min(e.selectionStart,t);return{from:{start:r,end:e.selectionEnd},to:{start:r,end:t}}};function ru(e,t,r){return Math.min(Math.max(e,t),r)}function Jn(e){return Math.max(e.selectionStart,e.selectionEnd)}function nu(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function au(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function iu(e){var t=e.currentValue,r=e.formattedValue,n=e.currentValueIndex,i=e.formattedValueIndex;return t[n]===r[i]}function ou(e,t,r,n,i,s,c){c===void 0&&(c=iu);var f=i.findIndex(function(Q){return Q}),x=e.slice(0,f);!t&&!r.startsWith(x)&&(t=x,r=x+r,n=n+x.length);for(var h=r.length,_=e.length,b={},j=new Array(h),R=0;R<h;R++){j[R]=-1;for(var k=0,O=_;k<O;k++){var L=c({currentValue:r,lastValue:t,formattedValue:e,currentValueIndex:R,formattedValueIndex:k});if(L&&b[k]!==!0){j[R]=k,b[k]=!0;break}}}for(var A=n;A<h&&(j[A]===-1||!s(r[A]));)A++;var H=A===h||j[A]===-1?_:j[A];for(A=n-1;A>0&&j[A]===-1;)A--;var Y=A===-1||j[A]===-1?0:j[A]+1;return Y>H?H:n-Y<H-n?Y:H}function $i(e,t,r,n){var i=e.length;if(t=ru(t,0,i),n==="left"){for(;t>=0&&!r[t];)t--;t===-1&&(t=r.indexOf(!0))}else{for(;t<=i&&!r[t];)t++;t>i&&(t=r.lastIndexOf(!0))}return t===-1&&(t=i),t}function su(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),r=0,n=t.length;r<n;r++)t[r]=!!(Wr(e[r])||Wr(e[r-1]));return t}function Ui(e,t,r,n,i,s){s===void 0&&(s=Ht);var c=Ql(function(k,O){var L,A;return Di(k)?(A="",L=""):typeof k=="number"||O?(A=typeof k=="number"?Fi(k):k,L=n(A)):(A=i(k,void 0),L=n(A)),{formattedValue:L,numAsString:A}}),f=te.useState(function(){return c(Sr(e)?t:e,r)}),x=f[0],h=f[1],_=function(k,O){k.formattedValue!==x.formattedValue&&h({formattedValue:k.formattedValue,numAsString:k.value}),s(k,O)},b=e,j=r;Sr(e)&&(b=x.numAsString,j=!0);var R=c(b,j);return te.useMemo(function(){h(R)},[R.formattedValue]),[x,_]}function lu(e){return e.replace(/[^0-9]/g,"")}function uu(e){return e}function cu(e){var t=e.type;t===void 0&&(t="text");var r=e.displayType;r===void 0&&(r="input");var n=e.customInput,i=e.renderText,s=e.getInputRef,c=e.format;c===void 0&&(c=uu);var f=e.removeFormatting;f===void 0&&(f=lu);var x=e.defaultValue,h=e.valueIsNumericString,_=e.onValueChange,b=e.isAllowed,j=e.onChange;j===void 0&&(j=Ht);var R=e.onKeyDown;R===void 0&&(R=Ht);var k=e.onMouseUp;k===void 0&&(k=Ht);var O=e.onFocus;O===void 0&&(O=Ht);var L=e.onBlur;L===void 0&&(L=Ht);var A=e.value,H=e.getCaretBoundary;H===void 0&&(H=su);var Y=e.isValidInputCharacter;Y===void 0&&(Y=Wr);var Q=e.isCharacterSame,G=Ai(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),se=Ui(A,x,!!h,c,f,_),$=se[0],M=$.formattedValue,le=$.numAsString,ke=se[1],We=te.useRef(),Ke=te.useRef({formattedValue:M,numAsString:le}),De=function(U,z){Ke.current={formattedValue:U.formattedValue,numAsString:U.value},ke(U,z)},Oe=te.useState(!1),je=Oe[0],J=Oe[1],V=te.useRef(null),ne=te.useRef({setCaretTimeout:null,focusTimeout:null});te.useEffect(function(){return J(!0),function(){clearTimeout(ne.current.setCaretTimeout),clearTimeout(ne.current.focusTimeout)}},[]);var we=c,Te=function(U,z){var ae=parseFloat(z);return{formattedValue:U,value:z,floatValue:isNaN(ae)?void 0:ae}},Se=function(U,z,ae){U.selectionStart===0&&U.selectionEnd===U.value.length||(ir(U,z),ne.current.setCaretTimeout=setTimeout(function(){U.value===ae&&U.selectionStart!==z&&ir(U,z)},0))},p=function(U,z,ae){return $i(U,z,H(U),ae)},T=function(U,z,ae){var ce=H(z),Pe=ou(z,M,U,ae,ce,Y,Q);return Pe=$i(z,Pe,ce),Pe},ie=function(U){var z=U.formattedValue;z===void 0&&(z="");var ae=U.input,ce=U.source,Pe=U.event,ye=U.numAsString,fe;if(ae){var Xe=U.inputValue||ae.value,Ge=Jn(ae);ae.value=z,fe=T(Xe,z,Ge),fe!==void 0&&Se(ae,fe,z)}z!==M&&De(Te(z,ye),{event:Pe,source:ce})};te.useEffect(function(){var U=Ke.current,z=U.formattedValue,ae=U.numAsString;(M!==z||le!==ae)&&De(Te(M,le),{event:void 0,source:Ur.props})},[M,le]);var ve=V.current?Jn(V.current):void 0,ue=typeof window<"u"?te.useLayoutEffect:te.useEffect;ue(function(){var U=V.current;if(M!==Ke.current.formattedValue&&U){var z=T(Ke.current.formattedValue,M,ve);U.value=M,Se(U,z,M)}},[M]);var ge=function(U,z,ae){var ce=z.target,Pe=We.current?tu(We.current,ce.selectionEnd):Vi(M,U),ye=Object.assign(Object.assign({},Pe),{lastValue:M}),fe=f(U,ye),Xe=we(fe);if(fe=f(Xe,void 0),b&&!b(Te(Xe,fe))){var Ge=z.target,qe=Jn(Ge),it=T(U,M,qe);return Ge.value=M,Se(Ge,it,M),!1}return ie({formattedValue:Xe,numAsString:fe,inputValue:U,event:z,source:ae,input:z.target}),!0},me=function(U,z){z===void 0&&(z=0);var ae=U.selectionStart,ce=U.selectionEnd;We.current={selectionStart:ae,selectionEnd:ce+z}},be=function(U){var z=U.target,ae=z.value,ce=ge(ae,U,Ur.event);ce&&j(U),We.current=void 0},pe=function(U){var z=U.target,ae=U.key,ce=z.selectionStart,Pe=z.selectionEnd,ye=z.value;ye===void 0&&(ye="");var fe;ae==="ArrowLeft"||ae==="Backspace"?fe=Math.max(ce-1,0):ae==="ArrowRight"?fe=Math.min(ce+1,ye.length):ae==="Delete"&&(fe=ce);var Xe=0;ae==="Delete"&&ce===Pe&&(Xe=1);var Ge=ae==="ArrowLeft"||ae==="ArrowRight";if(fe===void 0||ce!==Pe&&!Ge){R(U),me(z,Xe);return}var qe=fe;if(Ge){var it=ae==="ArrowLeft"?"left":"right";qe=p(ye,fe,it),qe!==fe&&U.preventDefault()}else ae==="Delete"&&!Y(ye[fe])?qe=p(ye,fe,"right"):ae==="Backspace"&&!Y(ye[fe])&&(qe=p(ye,fe,"left"));qe!==fe&&Se(z,qe,ye),R(U),me(z,Xe)},Me=function(U){var z=U.target,ae=function(){var ce=z.selectionStart,Pe=z.selectionEnd,ye=z.value;if(ye===void 0&&(ye=""),ce===Pe){var fe=p(ye,ce);fe!==ce&&Se(z,fe,ye)}};ae(),requestAnimationFrame(function(){ae()}),k(U),me(z)},bt=function(U){U.persist&&U.persist();var z=U.target,ae=U.currentTarget;V.current=z,ne.current.focusTimeout=setTimeout(function(){var ce=z.selectionStart,Pe=z.selectionEnd,ye=z.value;ye===void 0&&(ye="");var fe=p(ye,ce);fe!==ce&&!(ce===0&&Pe===ye.length)&&Se(z,fe,ye),O(Object.assign(Object.assign({},U),{currentTarget:ae}))},0)},ut=function(U){V.current=null,clearTimeout(ne.current.focusTimeout),clearTimeout(ne.current.setCaretTimeout),L(U)},Bt=je&&nu()?"numeric":void 0,ct=Object.assign({inputMode:Bt},G,{type:t,value:M,onChange:be,onKeyDown:pe,onMouseUp:Me,onFocus:bt,onBlur:ut});if(r==="text")return i?te.createElement(te.Fragment,null,i(M,G)||null):te.createElement("span",Object.assign({},G,{ref:s}),M);if(n){var tt=n;return te.createElement(tt,Object.assign({},ct,{ref:s}))}return te.createElement("input",Object.assign({},ct,{ref:s}))}function Wi(e,t){var r=t.decimalScale,n=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i="");var s=t.suffix;s===void 0&&(s="");var c=t.allowNegative,f=t.thousandsGroupStyle;if(f===void 0&&(f="thousand"),e===""||e==="-")return e;var x=dn(t),h=x.thousandSeparator,_=x.decimalSeparator,b=r!==0&&e.indexOf(".")!==-1||r&&n,j=Zn(e,c),R=j.beforeDecimal,k=j.afterDecimal,O=j.addNegation;return r!==void 0&&(k=Li(k,r,!!n)),h&&(R=Jl(R,h,f)),i&&(R=i+R),s&&(k=k+s),O&&(R="-"+R),e=R+(b&&_||"")+k,e}function dn(e){var t=e.decimalSeparator;t===void 0&&(t=".");var r=e.thousandSeparator,n=e.allowedDecimalSeparators;return r===!0&&(r=","),n||(n=[t,"."]),{decimalSeparator:t,thousandSeparator:r,allowedDecimalSeparators:n}}function fu(e,t){e===void 0&&(e="");var r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),i=r.test(e),s=n.test(e);return e=e.replace(/-/g,""),i&&!s&&t&&(e="-"+e),e}function du(e,t){return new RegExp("(^-)|[0-9]|"+Ii(e),"g")}function vu(e,t,r){return e===""?!0:!(t!=null&&t.match(/\d/))&&!(r!=null&&r.match(/\d/))&&typeof e=="string"&&!isNaN(Number(e))}function mu(e,t,r){var n;t===void 0&&(t=au(e));var i=r.allowNegative,s=r.prefix;s===void 0&&(s="");var c=r.suffix;c===void 0&&(c="");var f=r.decimalScale,x=t.from,h=t.to,_=h.start,b=h.end,j=dn(r),R=j.allowedDecimalSeparators,k=j.decimalSeparator,O=e[b]===k;if(Wr(e)&&(e===s||e===c)&&t.lastValue==="")return e;if(b-_===1&&R.indexOf(e[_])!==-1){var L=f===0?"":k;e=e.substring(0,_)+L+e.substring(_+1,e.length)}var A=function(V,ne,we){var Te=!1,Se=!1;s.startsWith("-")?Te=!1:V.startsWith("--")?(Te=!1,Se=!0):c.startsWith("-")&&V.length===c.length?Te=!1:V[0]==="-"&&(Te=!0);var p=Te?1:0;return Se&&(p=2),p&&(V=V.substring(p),ne-=p,we-=p),{value:V,start:ne,end:we,hasNegation:Te}},H=A(e,_,b),Y=H.hasNegation;n=H,e=n.value,_=n.start,b=n.end;var Q=A(t.lastValue,x.start,x.end),G=Q.start,se=Q.end,$=Q.value,M=e.substring(_,b);e.length&&$.length&&(G>$.length-c.length||se<s.length)&&!(M&&c.startsWith(M))&&(e=$);var le=0;e.startsWith(s)?le+=s.length:_<s.length&&(le=_),e=e.substring(le),b-=le;var ke=e.length,We=e.length-c.length;e.endsWith(c)?ke=We:(b>We||b>e.length-c.length)&&(ke=b),e=e.substring(0,ke),e=fu(Y?"-"+e:e,i),e=(e.match(du(k))||[]).join("");var Ke=e.indexOf(k);e=e.replace(new RegExp(Ii(k),"g"),function(V,ne){return ne===Ke?".":""});var De=Zn(e,i),Oe=De.beforeDecimal,je=De.afterDecimal,J=De.addNegation;return h.end-h.start<x.end-x.start&&Oe===""&&O&&!parseFloat(je)&&(e=J?"-":""),e}function hu(e,t){var r=t.prefix;r===void 0&&(r="");var n=t.suffix;n===void 0&&(n="");var i=Array.from({length:e.length+1}).map(function(){return!0}),s=e[0]==="-";i.fill(!1,0,r.length+(s?1:0));var c=e.length;return i.fill(!1,c-n.length+1,c+1),i}function pu(e){var t=dn(e),r=t.thousandSeparator,n=t.decimalSeparator,i=e.prefix;i===void 0&&(i="");var s=e.allowNegative;if(s===void 0&&(s=!0),r===n)throw new Error(`
|
|
146
146
|
Decimal separator can't be same as thousand separator.
|
|
147
147
|
thousandSeparator: `+r+` (thousandSeparator = {true} is same as thousandSeparator = ",")
|
|
148
148
|
decimalSeparator: `+n+` (default value for decimalSeparator is .)
|
|
149
|
-
`);return
|
|
149
|
+
`);return i.startsWith("-")&&s&&(console.error(`
|
|
150
150
|
Prefix can't start with '-' when allowNegative is true.
|
|
151
|
-
prefix: `+
|
|
151
|
+
prefix: `+i+`
|
|
152
152
|
allowNegative: `+s+`
|
|
153
|
-
`),s=!1),Object.assign(Object.assign({},e),{allowNegative:s})}function cu(e){e=uu(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=Wt);var s=e.onBlur;s===void 0&&(s=Wt);var c=e.thousandSeparator,f=e.decimalScale,x=e.fixedDecimalScale,m=e.prefix;m===void 0&&(m="");var _=e.defaultValue,b=e.value,j=e.valueIsNumericString,T=e.onValueChange,N=Oo(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),O=dn(e),M=O.decimalSeparator,P=O.allowedDecimalSeparators,$=function(J){return Bo(J,e)},H=function(J,F){return su(J,F,e)},Y=Er(b)?_:b,U=j??iu(Y,m,t);Er(b)?Er(_)||(U=U||typeof _=="number"):U=U||typeof b=="number";var ie=function(J){return No(J)?J:(typeof J=="number"&&(J=Do(J)),U&&typeof f=="number"?Io(J,f,!!x):J)},Q=Fo(ie(b),ie(_),!!U,$,H,T),K=Q[0],pe=K.numAsString,Pe=K.formattedValue,He=Q[1],Xe=function(J){var F=J.target,ne=J.key,we=F.selectionStart,Oe=F.selectionEnd,Se=F.value;if(Se===void 0&&(Se=""),(ne==="Backspace"||ne==="Delete")&&Oe<m.length){J.preventDefault();return}if(we!==Oe){o(J);return}ne==="Backspace"&&Se[0]==="-"&&we===m.length+1&&r&&ir(F,1),f&&x&&(ne==="Backspace"&&Se[we-1]===M?(ir(F,we-1),J.preventDefault()):ne==="Delete"&&Se[we]===M&&J.preventDefault()),P!=null&&P.includes(ne)&&Se[we]===M&&ir(F,we+1);var g=c===!0?",":c;ne==="Backspace"&&Se[we-1]===g&&ir(F,we-1),ne==="Delete"&&Se[we]===g&&ir(F,we+1),o(J)},Ne=function(J){var F=pe;if(F.match(/\d/g)||(F=""),n||(F=zl(F)),x&&f&&(F=Io(F,f,x)),F!==pe){var ne=Bo(F,e);He({formattedValue:ne,value:F,floatValue:parseFloat(F)},{event:J,source:Wr.event})}s(J)},je=function(J){return J===M?!0:Hr(J)},Re=function(J){var F=J.currentValue,ne=J.lastValue,we=J.formattedValue,Oe=J.currentValueIndex,Se=J.formattedValueIndex,g=F[Oe],R=we[Se],oe=Lo(ne,F),de=oe.to,le=function(ge){return H(ge).indexOf(".")+m.length};return b===0&&x&&f&&F[de.start]===M&&le(F)<Oe&&le(we)>Se?!1:Oe>=de.start&&Oe<de.end&&P&&P.includes(g)&&R===M?!0:g===R};return Object.assign(Object.assign({},N),{value:Pe,valueIsNumericString:!1,isValidInputCharacter:je,isCharacterSame:Re,onValueChange:He,format:$,removeFormatting:H,getCaretBoundary:function(J){return lu(J,e)},onKeyDown:Xe,onBlur:Ne})}function fu(e){var t=cu(e);return te.createElement(nu,Object.assign({},t))}const du=te.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:o,leadingIcon:s,supportingText:c,amountCounter:f,trailingElement:x,isContentVisible:m,value:_,defaultValue:b,onClearInput:j,isVisibilityToggleEnabled:T,type:N,...O},M){T??(T=N===gt.Password);const P=te.useRef(null),[$,H]=te.useState(m??N!==gt.Password);te.useEffect(()=>{H(m??N!==gt.Password)},[N,m]);function Y(){H(ie=>!ie)}function U(){var ie;P.current&&((ie=P.current.querySelector("input"))==null||ie.focus())}return i.jsx(zn,{label:t,caption:r,disabled:n,errorMessage:o,amountCounter:f,required:O.required,children:i.jsxs("div",{className:A("relative flex flex-row items-center gap-x-3",jo),onClick:U,ref:P,children:[s&&i.jsx("span",{className:"text-neutral-10 dark:text-neutral-92",children:s}),i.jsx(vu,{...O,inputRef:M,value:_,type:N===gt.Password&&$?gt.Text:N,disabled:n,className:A(So,Eo,Co,Bl)}),c&&i.jsx(fn,{children:c}),i.jsx(hu,{value:_,type:N,onClearInput:j,isContentVisible:$,trailingElement:x,isVisibilityToggleEnabled:T,onToggleButtonClick:Y})]})})});function vu({type:e,inputRef:t,...r}){function n(o){if(e===gt.Number){const s=o.currentTarget;s.blur(),o.stopPropagation(),setTimeout(()=>{s.focus({preventScroll:!0})},0)}}return e===gt.NumericFormat?i.jsx(mu,{inputRef:t,...r,type:e}):i.jsx("input",{ref:t,...r,type:e,onWheel:o=>{var s;n(o),(s=r.onWheel)==null||s.call(r,o)}})}function mu({inputRef:e,className:t,type:r,...n}){return i.jsx(fu,{className:t,valueIsNumericString:!0,getInputRef:e,...n})}function hu({value:e,type:t,onClearInput:r,isContentVisible:n,trailingElement:o,onToggleButtonClick:s,isVisibilityToggleEnabled:c}){const f=!!(t===gt.Text&&e&&r),x=!!(t===gt.Password&&c),m=!!(o&&!f&&!x);if(f)return i.jsx(ot,{className:"text-neutral-10 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",onClick:r,tabIndex:-1,children:i.jsx(Br,{})});if(x)return i.jsx(ot,{onClick:s,className:"text-neutral-10 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,children:n?i.jsx(po,{}):i.jsx(ho,{})});if(m)return i.jsx(te.Fragment,{children:o})}const pu=te.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:o,value:s,amountCounter:c,isVisibilityToggleEnabled:f,isResizeEnabled:x,required:m,isContentVisible:_,...b},j){const[T,N]=te.useState(_??!0);te.useEffect(()=>{N(_??!0)},[_]);function O(){N(M=>!M)}return i.jsx(zn,{label:t,caption:r,disabled:n||!T,errorMessage:o,amountCounter:c,required:m,children:i.jsxs("div",{className:"relative",children:[i.jsx("textarea",{disabled:n||!T,required:m,ref:j,className:A("peer block min-h-[50px]",jo,So,Eo,Co,T&&x?"resize-y":"resize-none",!T&&"not-visible select-none text-transparent dark:text-transparent"),value:T?s:"",...b}),!T&&i.jsx("div",{className:"absolute left-0 top-0 flex h-full w-full flex-col items-stretch gap-y-2 px-md py-sm peer-[.not-visible]:select-none",children:i.jsx(gu,{rows:3,halfWidthRow:3})}),f&&i.jsx("span",{className:"absolute bottom-4 right-4 flex",children:i.jsx(ot,{onClick:O,className:"text-neutral-10 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,children:T?i.jsx(po,{}):i.jsx(ho,{})})})]})})});function gu({rows:e,halfWidthRow:t}){return i.jsx(i.Fragment,{children:Array.from({length:e}).map((r,n)=>{const s=t===n+1?"w-1/2":"w-full";return i.jsx("div",{className:`h-2.5 rounded bg-neutral-92/60 dark:bg-neutral-10/60 ${s}`},n)})})}var vn=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(vn||{});const Vo="text-neutral-10 dark:text-neutral-92",Uo="text-neutral-40 dark:text-neutral-60",xu="py-xxs px-sm",bu="p-sm",$o="bg-shader-primary-light-12 dark:bg-shader-primary-dark-12",yu="-top-3 right-3",_u="-top-1 right-3",Wo="text-neutral-10 dark:text-neutral-92",Ho="text-neutral-60 dark:text-neutral-40";function wu({icon:e,text:t,isSelected:r,hasBadge:n,onClick:o,isDisabled:s=!1}){const c=r?Vo:Uo,f=t?xu:bu,x=r&&$o,m=t?yu:_u,_=r?Wo:Ho,b=s?"cursor-not-allowed opacity-60":"state-layer",j=T=>{if(s){T.preventDefault();return}o==null||o(T)};return i.jsxs("div",{onClick:j,className:A("inline-flex cursor-pointer flex-col items-center justify-center space-y-1"),children:[i.jsxs("div",{className:A("relative inline-flex rounded-full",f,x,b),children:[i.jsx("div",{className:A("inline-flex [&_svg]:h-6 [&_svg]:w-6",c),children:e}),n&&i.jsx("div",{className:A("absolute",m),children:i.jsx(ln,{type:lt.PrimarySolid})})]}),t&&i.jsx("span",{className:A("text-center text-label-md",_),children:t})]})}function Su({icon:e,text:t,isSelected:r,hasBadge:n,onClick:o,isDisabled:s=!1}){const c=r?Vo:Uo,f=r&&$o,x=r?Wo:Ho,m=s?"cursor-not-allowed opacity-60":"state-layer cursor-pointer ",_=b=>{if(s){b.preventDefault();return}o==null||o(b)};return i.jsxs("div",{onClick:_,className:A("relative inline-flex w-full flex-row items-center justify-between rounded-full p-sm",f,m),children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:A("inline-flex [&_svg]:h-6 [&_svg]:w-6",c),children:e}),t&&i.jsx("span",{className:A("text-center text-label-lg",x),children:t})]}),n&&i.jsx(ln,{type:lt.PrimarySolid})]})}function qn(e){const{type:t,text:r}=e;return t===vn.Vertical&&r?i.jsx(Su,{...e}):i.jsx(wu,{...e})}function Eu({title:e,subtitle:t,badgeType:r,badgeText:n,isLocked:o,avatarContent:s,onOptionsClick:c,onLockAccountClick:f,onUnlockAccountClick:x,onCopy:m,copyText:_,onOpen:b,isCopyable:j,isExternal:T,isSelected:N,isActive:O,showSelected:M}){const P=s;return i.jsxs("div",{className:A("state-layer group relative flex w-full items-center justify-between space-x-3 rounded-xl px-sm py-xs hover:cursor-pointer",O&&"state-active",{"opacity-60":o&&M}),children:[i.jsxs("div",{className:"flex items-center space-x-3",children:[i.jsx(P,{isLocked:o}),i.jsxs("div",{className:"flex flex-col items-start py-xs",children:[i.jsxs("div",{className:"flex items-center space-x-2",children:[i.jsx("span",{className:"font-inter text-title-md text-neutral-10 dark:text-neutral-92",children:e}),r&&n&&i.jsx(ln,{type:r,label:n})]}),i.jsx(_o,{text:t,onCopySuccess:m,copyText:_,onOpen:b,isCopyable:j,isExternal:T})]})]}),i.jsxs("div",{className:"z-10 ml-auto flex items-center space-x-2 [&_button]:h-5 [&_button]:w-5 [&_svg]:h-5 [&_svg]:w-5",children:[i.jsxs("div",{className:"flex items-center space-x-2 [&_button:not(.locked)]:hidden group-hover:[&_button:not(.locked)]:flex [&_svg]:text-neutral-40 [&_svg]:dark:text-neutral-60",children:[c&&i.jsx(ot,{onClick:c,children:i.jsx(so,{})}),f&&x&&(o?i.jsx("div",{className:"flex items-center",children:i.jsx(ot,{onClick:x,testId:"account-unlock",className:"locked",children:i.jsx(Ys,{})})}):i.jsx(ot,{onClick:f,testId:"account-lock",children:i.jsx(Gs,{})}))]}),M&&i.jsx(ot,{children:N?i.jsx(Vs,{className:"h-5 w-5 text-primary-30 dark:text-primary-80"}):i.jsx(uo,{className:"h-5 w-5 text-neutral-40 dark:text-neutral-60"})})]})]})}function Yo({children:e}){return i.jsx("ul",{className:"list-none rounded-lg border border-neutral-80 bg-neutral-100 py-xs dark:border-neutral-20 dark:bg-neutral-6",children:e})}var Yr=(e=>(e.Top="top",e.Bottom="bottom",e))(Yr||{});function Go({children:e,hasLastBorderNoneClass:t,isContentCentered:r}){return i.jsx("td",{className:A("h-14 border-b border-shader-neutral-light-8 px-md dark:border-shader-neutral-dark-8",{"last:border-none":t},{"flex items-center justify-center":r}),children:e})}function Cu({children:e,supportingLabel:t}){return i.jsxs("div",{className:"flex flex-row items-baseline gap-1",children:[i.jsx("span",{children:e}),t&&i.jsx("span",{className:"text-body-sm text-neutral-60 dark:text-neutral-40",children:t})]})}function ju(){return i.jsx(yo,{})}var Gr=(e=>(e.Small="small",e.Default="default",e))(Gr||{});const Ru=te.forwardRef(({disabled:e,label:t,leadingIcon:r,supportingText:n,errorMessage:o,caption:s,options:c,placeholder:f,onValueChange:x,onOptionClick:m,value:_,dropdownPosition:b=Yr.Bottom,size:j=Gr.Default},T)=>{const[N,O]=te.useState(!1),M=Y(_,c),P=M||f,$=j===Gr.Small?"px-sm":"px-md",H=j===Gr.Small?"text-body-md":"text-body-lg";te.useEffect(()=>{e&&N&&Q()},[e,N]);function Y(K,pe=[]){return pe.find(Pe=>typeof Pe=="string"?Pe===K:Pe.id===K)??pe[0]}function U(){O(K=>!K)}function ie(K){Q();const pe=typeof K=="string"?K:K.id;m==null||m(pe),K!==M&&(x==null||x(pe))}function Q(){O(!1)}return i.jsx(zn,{label:t,caption:s,disabled:e,errorMessage:o,labelHtmlTag:Ro.Div,children:i.jsxs("div",{className:"relative flex w-full flex-col",children:[i.jsxs(ot,{ref:T,onClick:U,disabled:e,className:A("flex flex-row items-center gap-x-3 rounded-lg border border-neutral-80 py-sm hover:enabled:border-neutral-50 focus-visible:enabled:border-primary-30 active:enabled:border-primary-30 disabled:cursor-not-allowed group-[.errored]:border-error-30 group-[.opened]:border-primary-30 dark:border-neutral-20 dark:hover:enabled:border-neutral-60 dark:group-[.errored]:border-error-80 dark:group-[.opened]:border-primary-80 [&:is(:focus,_:focus-visible,_:active)]:enabled:border-primary-30 dark:[&:is(:focus,_:focus-visible,_:active)]:enabled:border-primary-80 [&_svg]:h-5 [&_svg]:w-5",$),children:[r&&i.jsx("span",{className:"text-neutral-10 dark:text-neutral-92",children:r}),i.jsxs("div",{className:"flex w-full flex-row items-baseline gap-x-3",children:[P&&i.jsx("div",{className:A("block w-full text-start text-neutral-10 dark:text-neutral-92",H),children:i.jsx(zo,{option:P})}),n&&i.jsx("div",{className:"ml-auto",children:i.jsx(fn,{children:n})})]}),i.jsx(Js,{className:A("text-neutral-10 transition-transform dark:text-neutral-92",{" rotate-180":N})})]}),N&&i.jsx("div",{className:"fixed left-0 top-0 z-[49] h-screen w-screen bg-transparent",onClick:Q}),i.jsx("div",{className:A("absolute z-50 min-w-full",{hidden:!N,"top-full":!b||b===Yr.Bottom,"bottom-full":b===Yr.Top}),children:i.jsx(Yo,{children:c.map(K=>{const pe=typeof K=="string";return i.jsx(xo,{onClick:()=>ie(K),hideBottomBorder:!0,children:i.jsx(zo,{option:K})},pe?K:K.id)})})})]})})});function zo({option:e}){return typeof e=="string"?e:"renderLabel"in e?e.renderLabel():e.label}var Ht=(e=>(e.Asc="asc",e.Desc="desc",e))(Ht||{});function Ko({label:e,columnKey:t,hasSort:r,hasCheckbox:n,isChecked:o,isIndeterminate:s,isContentCentered:c,onSortClick:f,onCheckboxChange:x}){const[m,_]=te.useState(Ht.Asc),b=()=>{const N=m===Ht.Asc?Ht.Desc:Ht.Asc;_(N),f&&f(t,N)};return i.jsx("th",{className:A("state-layer relative h-14 border-b border-shader-neutral-light-8 px-md after:pointer-events-none dark:border-shader-neutral-dark-8"),children:i.jsxs("div",{className:A("flex flex-row items-center gap-1 [&_svg]:h-4 [&_svg]:w-4","text-neutral-10 dark:text-neutral-92","text-label-lg",{"justify-center":c}),children:[n?i.jsx(Gn,{isChecked:o,isIndeterminate:s,onCheckedChange:x}):i.jsx("span",{className:A({"text-left":!c}),children:e}),r&&m===Ht.Asc&&i.jsx(Zs,{className:"cursor-pointer",onClick:b}),r&&m===Ht.Desc&&i.jsx(qs,{className:"cursor-pointer",onClick:b})]})})}var Et=(e=>(e.Outlined="outlined",e.Filled="filled",e))(Et||{});const Tu={[Et.Outlined]:"bg-transparent",[Et.Filled]:"bg-neutral-92 dark:bg-neutral-12"},Ou={[Et.Outlined]:"border-l border-r border-t border-neutral-70 dark:border-neutral-40",[Et.Filled]:"bg-neutral-92 dark:bg-neutral-12"},Nu={[Et.Outlined]:"rounded-b-3xl border-b border-l border-r border-neutral-70 dark:border-neutral-40",[Et.Filled]:"rounded-b-3xl bg-neutral-92 dark:bg-neutral-12"};function ku({searchValue:e,suggestions:t,onSearchValueChange:r,onSuggestionClick:n,placeholder:o,isLoading:s=!1,onKeyDown:c,type:f=Et.Outlined,renderSuggestion:x}){const m=te.useRef(null),_=te.useRef(null),[b,j]=te.useState(!0);function T(Y){const U=Y.target.value;r(U)}te.useEffect(()=>{const Y=U=>{var ie;U.key==="Escape"&&(j(!1),(ie=m.current)==null||ie.blur())};return document.addEventListener("keydown",Y),()=>{document.removeEventListener("keydown",Y)}},[]),te.useEffect(()=>{const Y=U=>{var Q;const ie=m==null?void 0:m.current;!ie||ie.contains(U==null?void 0:U.target)||(Q=_.current)!=null&&Q.contains(U.target)||j(!1)};return document.addEventListener("click",Y,!0),document.addEventListener("touchstart",Y,!0),()=>{document.removeEventListener("click",Y,!0),document.removeEventListener("touchstart",Y,!0)}},[m]);const N=b&&t&&t.length>0,O=N?"rounded-t-3xl border-b border-b-transparent":f===Et.Outlined?"rounded-3xl border-b":"rounded-full",M=Ou[f],P=Tu[f],$=Nu[f],H=Y=>{var U;n==null||n(Y),r(""),j(!1),(U=m.current)==null||U.blur()};return i.jsxs("div",{className:"relative w-full",children:[i.jsxs("div",{className:A("flex items-center overflow-hidden px-md py-sm text-neutral-10 dark:text-neutral-92 [&_svg]:h-6 [&_svg]:w-6",O,M),children:[i.jsx("input",{ref:m,type:"text",value:e,onChange:T,onKeyDown:c,onFocus:()=>j(!0),placeholder:o,className:A("w-full flex-1 outline-none placeholder:text-neutral-40 placeholder:dark:text-neutral-60",P)}),i.jsx(Xs,{})]}),N&&i.jsxs("div",{ref:_,className:A("absolute left-0 top-full flex w-full flex-col items-center overflow-hidden bg-neutral-100 dark:bg-neutral-10",$),children:[i.jsx(go,{width:"w-11/12"}),s?i.jsx("div",{className:" px-md py-sm",children:i.jsx(ro,{className:"animate-spin"})}):t.map((Y,U)=>i.jsx("div",{className:"w-full",onClick:()=>H(Y),children:x(Y,U)},Y.id))]})]})}var Cr=(e=>(e.Default="default",e.Outlined="outlined",e.Filled="filled",e))(Cr||{}),sr=(e=>(e.Placeholder="placeholder",e.BgSolid="bg-solid",e.BgTransparent="bg-transparent",e))(sr||{}),lr=(e=>(e.Rounded="rounded",e.SquareRounded="square-rounded",e))(lr||{}),zr=(e=>(e.Link="link",e.SupportingText="supporting-text",e.Button="button",e))(zr||{});const Au="cursor-default opacity-40",Xo="h-10 w-10",qo={[lr.SquareRounded]:`${Xo} rounded-md`,[lr.Rounded]:`${Xo} rounded-full`},Pu={[sr.Placeholder]:"",[sr.BgSolid]:"bg-neutral-96 dark:bg-neutral-10",[sr.BgTransparent]:""},Du={[Cr.Default]:"border border-transparent",[Cr.Outlined]:"border border-shader-neutral-light-8 dark:border-shader-primary-dark-8 p-xs",[Cr.Filled]:"border border-transparent bg-neutral-96 dark:bg-neutral-10 p-xs"};function Iu({isDisabled:e=!1,type:t=Cr.Default,isHoverable:r,onClick:n,children:o,testId:s}){function c(){e||n==null||n()}return i.jsx("div",{onClick:c,className:A("relative inline-flex w-full items-center gap-3 rounded-xl px-sm py-xs",Du[t],{"state-layer":r||!e&&n,[Au]:e,"cursor-pointer":n}),"data-testid":s,children:o})}function Lu({type:e,onClick:t,subtitle:r,title:n,icon:o,iconAfterText:s,buttonType:c,buttonDisabled:f}){function x(m){m==null||m.stopPropagation(),t==null||t()}return e===zr.Link?i.jsx("div",{onClick:x,className:"shrink-0 text-neutral-10 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",children:o||i.jsx(Vn,{})}):e===zr.SupportingText?i.jsxs("div",{className:"shrink-0 text-right",children:[n&&i.jsx("div",{className:"font-inter text-label-md text-neutral-10 dark:text-neutral-92",children:n}),r&&i.jsx("div",{className:"font-inter text-label-sm text-neutral-60 dark:text-neutral-40",children:r})]}):e===zr.Button?i.jsx("div",{className:"shrink-0",children:i.jsx(mt,{type:c||Ee.Outlined,size:Je.Small,text:n,onClick:x,icon:o,iconAfterText:s,disabled:f})}):null}function Mu({variant:e=lr.Rounded}){return e===lr.Rounded?i.jsx(Fu,{}):i.jsx(Bu,{})}function Fu(){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[i.jsxs("g",{"clip-path":"url(#clip0_880_55185)",children:[i.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"#5B9CFE"}),i.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"url(#paint0_linear_880_55185)","fill-opacity":"0.2"}),i.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"url(#paint1_linear_880_55185)","fill-opacity":"0.2"}),i.jsx("path",{d:"M0.5 20C0.5 9.23045 9.23045 0.5 20 0.5C30.7696 0.5 39.5 9.23045 39.5 20C39.5 30.7696 30.7696 39.5 20 39.5C9.23045 39.5 0.5 30.7696 0.5 20Z",stroke:"#002F6D","stroke-opacity":"0.08"})]}),i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:"paint0_linear_880_55185",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),i.jsx("stop",{offset:"1"})]}),i.jsxs("linearGradient",{id:"paint1_linear_880_55185",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),i.jsx("stop",{offset:"1"})]}),i.jsx("clipPath",{id:"clip0_880_55185",children:i.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"})})]})]})}function Bu(){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[i.jsxs("g",{"clip-path":"url(#clip0_880_55190)",children:[i.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"#5B9CFE"}),i.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"url(#paint0_linear_880_55190)","fill-opacity":"0.2"}),i.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"url(#paint1_linear_880_55190)","fill-opacity":"0.2"}),i.jsx("path",{d:"M0.5 8C0.5 3.85786 3.85786 0.5 8 0.5H32C36.1421 0.5 39.5 3.85786 39.5 8V32C39.5 36.1421 36.1421 39.5 32 39.5H8C3.85786 39.5 0.5 36.1421 0.5 32V8Z",stroke:"#002F6D","stroke-opacity":"0.08"})]}),i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:"paint0_linear_880_55190",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),i.jsx("stop",{offset:"1"})]}),i.jsxs("linearGradient",{id:"paint1_linear_880_55190",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[i.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),i.jsx("stop",{offset:"1"})]}),i.jsx("clipPath",{id:"clip0_880_55190",children:i.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"white"})})]})]})}function Vu({type:e=sr.BgSolid,shape:t=lr.Rounded,url:r,children:n}){return i.jsxs("div",{className:A(qo[t],Pu[e],"flex shrink-0 items-center justify-center overflow-hidden"),children:[e===sr.Placeholder&&!n&&i.jsx(Mu,{variant:t}),r&&!n&&i.jsx("img",{src:r,className:A(qo[t],"object-cover"),alt:"Card Image"}),n]})}function Uu({title:e,subtitle:t,clickableAction:r,icon:n,isTextTruncated:o}){const s=c=>{c==null||c.stopPropagation()};return i.jsxs("div",{className:A("flex w-full flex-col",{truncate:o}),children:[i.jsxs("div",{className:A("flex flex-row items-center gap-x-xxs",{"grow-1":o}),children:[i.jsx("div",{className:A("font-inter text-title-md text-neutral-10 dark:text-neutral-92",{truncate:o}),children:e}),n&&i.jsx("div",{className:"flex items-center",children:n}),r&&i.jsx("div",{onClick:s,className:"flex items-center",children:r})]}),t&&i.jsx("div",{className:A("font-inter text-body-md text-neutral-40 dark:text-neutral-60",{truncate:o}),children:t})]})}var Dt=(e=>(e.Default="default",e.Highlight="highlight",e.Secondary="secondary",e))(Dt||{}),xt=(e=>(e.Default="default",e.Large="large",e))(xt||{});const $u={[Dt.Default]:"bg-neutral-96 dark:bg-neutral-10",[Dt.Highlight]:"bg-primary-30 dark:bg-primary-80",[Dt.Secondary]:"bg-secondary-90 dark:bg-secondary-10"},Wu={[Dt.Default]:"text-neutral-10 dark:text-neutral-92",[Dt.Highlight]:"text-neutral-100 dark:text-primary-10",[Dt.Secondary]:"text-neutral-10 dark:text-neutral-92"},Hu={[xt.Default]:"gap-y-sm",[xt.Large]:"gap-y-md"},Yu={[xt.Default]:"text-title-md",[xt.Large]:"text-headline-sm"},Gu={[xt.Default]:"text-label-md",[xt.Large]:"text-label-lg"},zu={[xt.Default]:"text-label-sm",[xt.Large]:"text-label-md"};function Ku({label:e,tooltipPosition:t,tooltipText:r,value:n,supportingLabel:o,type:s=Dt.Default,size:c=xt.Default,icon:f}){const x=$u[s],m=Hu[c],_=Wu[s],b=Yu[c],j=zu[c],T=Gu[c];return i.jsxs("div",{className:A("flex h-full w-full flex-col justify-between rounded-2xl p-md--rs",x,m,_),children:[i.jsxs("div",{className:A("flex flex-row items-center",{"w-full justify-between":f}),children:[i.jsxs("div",{className:"flex flex-row items-center gap-xxs",children:[i.jsx("span",{className:A(j,"whitespace-pre-line"),children:e}),r&&i.jsx(Ur,{text:r,position:t,children:i.jsx(un,{className:"opacity-40"})})]}),f&&i.jsx("span",{className:"text-neutral-10 dark:text-neutral-92",children:f})]}),i.jsxs("div",{className:"flex w-full flex-row items-baseline gap-xxs",children:[i.jsx("span",{className:A("break-all",b),children:n}),o&&i.jsx("span",{className:A("opacity-40",T),children:o})]})]})}function Yt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Xu(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Zo(...e){return t=>e.forEach(r=>Xu(r,t))}function ur(...e){return S.useCallback(Zo(...e),e)}function qu(e,t){const r=S.createContext(t);function n(s){const{children:c,...f}=s,x=S.useMemo(()=>f,Object.values(f));return i.jsx(r.Provider,{value:x,children:c})}function o(s){const c=S.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function Zu(e,t=[]){let r=[];function n(s,c){const f=S.createContext(c),x=r.length;r=[...r,c];function m(b){const{scope:j,children:T,...N}=b,O=(j==null?void 0:j[e][x])||f,M=S.useMemo(()=>N,Object.values(N));return i.jsx(O.Provider,{value:M,children:T})}function _(b,j){const T=(j==null?void 0:j[e][x])||f,N=S.useContext(T);if(N)return N;if(c!==void 0)return c;throw new Error(`\`${b}\` must be used within \`${s}\``)}return m.displayName=s+"Provider",[m,_]}const o=()=>{const s=r.map(c=>S.createContext(c));return function(f){const x=(f==null?void 0:f[e])||s;return S.useMemo(()=>({[`__scope${e}`]:{...f,[e]:x}}),[f,x])}};return o.scopeName=e,[n,Ju(o,...t)]}function Ju(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=n.reduce((f,{useScope:x,scopeName:m})=>{const b=x(s)[`__scope${m}`];return{...f,...b}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var mn=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},Qu=S.useId||(()=>{}),ec=0;function Zn(e){const[t,r]=S.useState(Qu());return mn(()=>{e||r(n=>n??String(ec++))},[e]),e||(t?`radix-${t}`:"")}function cr(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function tc({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=rc({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:n,f=cr(r),x=S.useCallback(m=>{if(s){const b=typeof m=="function"?m(e):m;b!==e&&f(b)}else o(m)},[s,e,o,f]);return[c,x]}function rc({defaultProp:e,onChange:t}){const r=S.useState(e),[n]=r,o=S.useRef(n),s=cr(t);return S.useEffect(()=>{o.current!==n&&(s(n),o.current=n)},[n,o,s]),r}var Jn=S.forwardRef((e,t)=>{const{children:r,...n}=e,o=S.Children.toArray(r),s=o.find(ac);if(s){const c=s.props.children,f=o.map(x=>x===s?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:x);return i.jsx(Qn,{...n,ref:t,children:S.isValidElement(c)?S.cloneElement(c,void 0,f):null})}return i.jsx(Qn,{...n,ref:t,children:r})});Jn.displayName="Slot";var Qn=S.forwardRef((e,t)=>{const{children:r,...n}=e;if(S.isValidElement(r)){const o=ic(r);return S.cloneElement(r,{...oc(n,r.props),ref:t?Zo(t,o):o})}return S.Children.count(r)>1?S.Children.only(null):null});Qn.displayName="SlotClone";var nc=({children:e})=>i.jsx(i.Fragment,{children:e});function ac(e){return S.isValidElement(e)&&e.type===nc}function oc(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...f)=>{s(...f),o(...f)}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function ic(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var sc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ct=sc.reduce((e,t)=>{const r=S.forwardRef((n,o)=>{const{asChild:s,...c}=n,f=s?Jn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(f,{...c,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function lc(e,t){e&&ja.flushSync(()=>e.dispatchEvent(t))}function uc(e,t=globalThis==null?void 0:globalThis.document){const r=cr(e);S.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var cc="DismissableLayer",ea="dismissableLayer.update",fc="dismissableLayer.pointerDownOutside",dc="dismissableLayer.focusOutside",Jo,Qo=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ei=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...x}=e,m=S.useContext(Qo),[_,b]=S.useState(null),j=(_==null?void 0:_.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,T]=S.useState({}),N=ur(t,Q=>b(Q)),O=Array.from(m.layers),[M]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),P=O.indexOf(M),$=_?O.indexOf(_):-1,H=m.layersWithOutsidePointerEventsDisabled.size>0,Y=$>=P,U=hc(Q=>{const K=Q.target,pe=[...m.branches].some(Pe=>Pe.contains(K));!Y||pe||(o==null||o(Q),c==null||c(Q),Q.defaultPrevented||f==null||f())},j),ie=pc(Q=>{const K=Q.target;[...m.branches].some(Pe=>Pe.contains(K))||(s==null||s(Q),c==null||c(Q),Q.defaultPrevented||f==null||f())},j);return uc(Q=>{$===m.layers.size-1&&(n==null||n(Q),!Q.defaultPrevented&&f&&(Q.preventDefault(),f()))},j),S.useEffect(()=>{if(_)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Jo=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(_)),m.layers.add(_),ti(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(j.body.style.pointerEvents=Jo)}},[_,j,r,m]),S.useEffect(()=>()=>{_&&(m.layers.delete(_),m.layersWithOutsidePointerEventsDisabled.delete(_),ti())},[_,m]),S.useEffect(()=>{const Q=()=>T({});return document.addEventListener(ea,Q),()=>document.removeEventListener(ea,Q)},[]),i.jsx(Ct.div,{...x,ref:N,style:{pointerEvents:H?Y?"auto":"none":void 0,...e.style},onFocusCapture:Yt(e.onFocusCapture,ie.onFocusCapture),onBlurCapture:Yt(e.onBlurCapture,ie.onBlurCapture),onPointerDownCapture:Yt(e.onPointerDownCapture,U.onPointerDownCapture)})});ei.displayName=cc;var vc="DismissableLayerBranch",mc=S.forwardRef((e,t)=>{const r=S.useContext(Qo),n=S.useRef(null),o=ur(t,n);return S.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),i.jsx(Ct.div,{...e,ref:o})});mc.displayName=vc;function hc(e,t=globalThis==null?void 0:globalThis.document){const r=cr(e),n=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const s=f=>{if(f.target&&!n.current){let x=function(){ri(fc,r,m,{discrete:!0})};const m={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=x,t.addEventListener("click",o.current,{once:!0})):x()}else t.removeEventListener("click",o.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function pc(e,t=globalThis==null?void 0:globalThis.document){const r=cr(e),n=S.useRef(!1);return S.useEffect(()=>{const o=s=>{s.target&&!n.current&&ri(dc,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ti(){const e=new CustomEvent(ea);document.dispatchEvent(e)}function ri(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?lc(o,s):o.dispatchEvent(s)}var ta="focusScope.autoFocusOnMount",ra="focusScope.autoFocusOnUnmount",ni={bubbles:!1,cancelable:!0},gc="FocusScope",ai=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[f,x]=S.useState(null),m=cr(o),_=cr(s),b=S.useRef(null),j=ur(t,O=>x(O)),T=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(n){let O=function(H){if(T.paused||!f)return;const Y=H.target;f.contains(Y)?b.current=Y:Gt(b.current,{select:!0})},M=function(H){if(T.paused||!f)return;const Y=H.relatedTarget;Y!==null&&(f.contains(Y)||Gt(b.current,{select:!0}))},P=function(H){if(document.activeElement===document.body)for(const U of H)U.removedNodes.length>0&&Gt(f)};document.addEventListener("focusin",O),document.addEventListener("focusout",M);const $=new MutationObserver(P);return f&&$.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",O),document.removeEventListener("focusout",M),$.disconnect()}}},[n,f,T.paused]),S.useEffect(()=>{if(f){si.add(T);const O=document.activeElement;if(!f.contains(O)){const P=new CustomEvent(ta,ni);f.addEventListener(ta,m),f.dispatchEvent(P),P.defaultPrevented||(xc(Sc(oi(f)),{select:!0}),document.activeElement===O&&Gt(f))}return()=>{f.removeEventListener(ta,m),setTimeout(()=>{const P=new CustomEvent(ra,ni);f.addEventListener(ra,_),f.dispatchEvent(P),P.defaultPrevented||Gt(O??document.body,{select:!0}),f.removeEventListener(ra,_),si.remove(T)},0)}}},[f,m,_,T]);const N=S.useCallback(O=>{if(!r&&!n||T.paused)return;const M=O.key==="Tab"&&!O.altKey&&!O.ctrlKey&&!O.metaKey,P=document.activeElement;if(M&&P){const $=O.currentTarget,[H,Y]=bc($);H&&Y?!O.shiftKey&&P===Y?(O.preventDefault(),r&&Gt(H,{select:!0})):O.shiftKey&&P===H&&(O.preventDefault(),r&&Gt(Y,{select:!0})):P===$&&O.preventDefault()}},[r,n,T.paused]);return i.jsx(Ct.div,{tabIndex:-1,...c,ref:j,onKeyDown:N})});ai.displayName=gc;function xc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Gt(n,{select:t}),document.activeElement!==r)return}function bc(e){const t=oi(e),r=ii(t,e),n=ii(t.reverse(),e);return[r,n]}function oi(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ii(e,t){for(const r of e)if(!yc(r,{upTo:t}))return r}function yc(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _c(e){return e instanceof HTMLInputElement&&"select"in e}function Gt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&_c(e)&&t&&e.select()}}var si=wc();function wc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=li(e,t),e.unshift(t)},remove(t){var r;e=li(e,t),(r=e[0])==null||r.resume()}}}function li(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Sc(e){return e.filter(t=>t.tagName!=="A")}var Ec="Portal",ui=S.forwardRef((e,t)=>{var f;const{container:r,...n}=e,[o,s]=S.useState(!1);mn(()=>s(!0),[]);const c=r||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?Ea.createPortal(i.jsx(Ct.div,{...n,ref:t}),c):null});ui.displayName=Ec;function Cc(e,t){return S.useReducer((r,n)=>t[r][n]??r,e)}var hn=e=>{const{present:t,children:r}=e,n=jc(t),o=typeof r=="function"?r({present:n.isPresent}):S.Children.only(r),s=ur(n.ref,Rc(o));return typeof r=="function"||n.isPresent?S.cloneElement(o,{ref:s}):null};hn.displayName="Presence";function jc(e){const[t,r]=S.useState(),n=S.useRef({}),o=S.useRef(e),s=S.useRef("none"),c=e?"mounted":"unmounted",[f,x]=Cc(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const m=pn(n.current);s.current=f==="mounted"?m:"none"},[f]),mn(()=>{const m=n.current,_=o.current;if(_!==e){const j=s.current,T=pn(m);e?x("MOUNT"):T==="none"||(m==null?void 0:m.display)==="none"?x("UNMOUNT"):x(_&&j!==T?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,x]),mn(()=>{if(t){const m=b=>{const T=pn(n.current).includes(b.animationName);b.target===t&&T&&ja.flushSync(()=>x("ANIMATION_END"))},_=b=>{b.target===t&&(s.current=pn(n.current))};return t.addEventListener("animationstart",_),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{t.removeEventListener("animationstart",_),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else x("ANIMATION_END")},[t,x]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:S.useCallback(m=>{m&&(n.current=getComputedStyle(m)),r(m)},[])}}function pn(e){return(e==null?void 0:e.animationName)||"none"}function Rc(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var na=0;function Tc(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ci()),document.body.insertAdjacentElement("beforeend",e[1]??ci()),na++,()=>{na===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),na--}},[])}function ci(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var jt=function(){return jt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},jt.apply(this,arguments)};function fi(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Oc(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var gn="right-scroll-bar-position",xn="width-before-scroll-bar",Nc="with-scroll-bars-hidden",kc="--removed-body-scroll-bar-size";function aa(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ac(e,t){var r=te.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Pc=typeof window<"u"?S.useLayoutEffect:S.useEffect,di=new WeakMap;function Dc(e,t){var r=Ac(null,function(n){return e.forEach(function(o){return aa(o,n)})});return Pc(function(){var n=di.get(r);if(n){var o=new Set(n),s=new Set(e),c=r.current;o.forEach(function(f){s.has(f)||aa(f,null)}),s.forEach(function(f){o.has(f)||aa(f,c)})}di.set(r,e)},[e]),r}function Ic(e){return e}function Lc(e,t){t===void 0&&(t=Ic);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var c=t(s,n);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(s){for(n=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){n=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(s),c=r}var x=function(){var _=c;c=[],_.forEach(s)},m=function(){return Promise.resolve().then(x)};m(),r={push:function(_){c.push(_),m()},filter:function(_){return c=c.filter(_),r}}}};return o}function Mc(e){e===void 0&&(e={});var t=Lc(null);return t.options=jt({async:!0,ssr:!1},e),t}var vi=function(e){var t=e.sideCar,r=fi(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return S.createElement(n,jt({},r))};vi.isSideCarExport=!0;function Fc(e,t){return e.useMedium(t),vi}var mi=Mc(),oa=function(){},bn=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:oa,onWheelCapture:oa,onTouchMoveCapture:oa}),o=n[0],s=n[1],c=e.forwardProps,f=e.children,x=e.className,m=e.removeScrollBar,_=e.enabled,b=e.shards,j=e.sideCar,T=e.noIsolation,N=e.inert,O=e.allowPinchZoom,M=e.as,P=M===void 0?"div":M,$=e.gapMode,H=fi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),Y=j,U=Dc([r,t]),ie=jt(jt({},H),o);return S.createElement(S.Fragment,null,_&&S.createElement(Y,{sideCar:mi,removeScrollBar:m,shards:b,noIsolation:T,inert:N,setCallbacks:s,allowPinchZoom:!!O,lockRef:r,gapMode:$}),c?S.cloneElement(S.Children.only(f),jt(jt({},ie),{ref:U})):S.createElement(P,jt({},ie,{className:x,ref:U}),f))});bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},bn.classNames={fullWidth:xn,zeroRight:gn};var Bc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Vc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Bc();return t&&e.setAttribute("nonce",t),e}function Uc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $c(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Wc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Vc())&&(Uc(t,r),$c(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Hc=function(){var e=Wc();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},hi=function(){var e=Hc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Yc={left:0,top:0,right:0,gap:0},ia=function(e){return parseInt(e||"",10)||0},Gc=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ia(r),ia(n),ia(o)]},zc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Yc;var t=Gc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Kc=hi(),jr="data-scroll-locked",Xc=function(e,t,r,n){var o=e.left,s=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
|
|
154
|
-
.`.concat(
|
|
153
|
+
`),s=!1),Object.assign(Object.assign({},e),{allowNegative:s})}function gu(e){e=pu(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,r=e.allowNegative,n=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Ht);var s=e.onBlur;s===void 0&&(s=Ht);var c=e.thousandSeparator,f=e.decimalScale,x=e.fixedDecimalScale,h=e.prefix;h===void 0&&(h="");var _=e.defaultValue,b=e.value,j=e.valueIsNumericString,R=e.onValueChange,k=Ai(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),O=dn(e),L=O.decimalSeparator,A=O.allowedDecimalSeparators,H=function(J){return Wi(J,e)},Y=function(J,V){return mu(J,V,e)},Q=Sr(b)?_:b,G=j??vu(Q,h,t);Sr(b)?Sr(_)||(G=G||typeof _=="number"):G=G||typeof b=="number";var se=function(J){return Di(J)?J:(typeof J=="number"&&(J=Fi(J)),G&&typeof f=="number"?Bi(J,f,!!x):J)},$=Ui(se(b),se(_),!!G,H,Y,R),M=$[0],le=M.numAsString,ke=M.formattedValue,We=$[1],Ke=function(J){var V=J.target,ne=J.key,we=V.selectionStart,Te=V.selectionEnd,Se=V.value;if(Se===void 0&&(Se=""),(ne==="Backspace"||ne==="Delete")&&Te<h.length){J.preventDefault();return}if(we!==Te){i(J);return}ne==="Backspace"&&Se[0]==="-"&&we===h.length+1&&r&&ir(V,1),f&&x&&(ne==="Backspace"&&Se[we-1]===L?(ir(V,we-1),J.preventDefault()):ne==="Delete"&&Se[we]===L&&J.preventDefault()),A!=null&&A.includes(ne)&&Se[we]===L&&ir(V,we+1);var p=c===!0?",":c;ne==="Backspace"&&Se[we-1]===p&&ir(V,we-1),ne==="Delete"&&Se[we]===p&&ir(V,we+1),i(J)},De=function(J){var V=le;if(V.match(/\d/g)||(V=""),n||(V=eu(V)),x&&f&&(V=Bi(V,f,x)),V!==le){var ne=Wi(V,e);We({formattedValue:ne,value:V,floatValue:parseFloat(V)},{event:J,source:Ur.event})}s(J)},Oe=function(J){return J===L?!0:Wr(J)},je=function(J){var V=J.currentValue,ne=J.lastValue,we=J.formattedValue,Te=J.currentValueIndex,Se=J.formattedValueIndex,p=V[Te],T=we[Se],ie=Vi(ne,V),ve=ie.to,ue=function(ge){return Y(ge).indexOf(".")+h.length};return b===0&&x&&f&&V[ve.start]===L&&ue(V)<Te&&ue(we)>Se?!1:Te>=ve.start&&Te<ve.end&&A&&A.includes(p)&&T===L?!0:p===T};return Object.assign(Object.assign({},k),{value:ke,valueIsNumericString:!1,isValidInputCharacter:Oe,isCharacterSame:je,onValueChange:We,format:H,removeFormatting:Y,getCaretBoundary:function(J){return hu(J,e)},onKeyDown:Ke,onBlur:De})}function xu(e){var t=gu(e);return te.createElement(cu,Object.assign({},t))}const bu=te.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:i,leadingIcon:s,supportingText:c,amountCounter:f,trailingElement:x,isContentVisible:h,value:_,defaultValue:b,onClearInput:j,isVisibilityToggleEnabled:R,type:k,...O},L){R??(R=k===pt.Password);const A=te.useRef(null),[H,Y]=te.useState(h??k!==pt.Password);te.useEffect(()=>{Y(h??k!==pt.Password)},[k,h]);function Q(){Y(se=>!se)}function G(){var se;A.current&&((se=A.current.querySelector("input"))==null||se.focus())}return o.jsx(qn,{label:t,caption:r,disabled:n,errorMessage:i,amountCounter:f,required:O.required,children:o.jsxs("div",{className:P("relative flex flex-row items-center gap-x-3",ki),onClick:G,ref:A,children:[s&&o.jsx("span",{className:"text-neutral-10 dark:text-neutral-92",children:s}),o.jsx(yu,{...O,inputRef:L,value:_,type:k===pt.Password&&H?pt.Text:k,disabled:n,className:P(Ri,Ti,Oi,Gl)}),c&&o.jsx(fn,{children:c}),o.jsx(wu,{value:_,type:k,onClearInput:j,isContentVisible:H,trailingElement:x,isVisibilityToggleEnabled:R,onToggleButtonClick:Q})]})})});function yu({type:e,inputRef:t,...r}){function n(i){if(e===pt.Number){const s=i.currentTarget;s.blur(),i.stopPropagation(),setTimeout(()=>{s.focus({preventScroll:!0})},0)}}return e===pt.NumericFormat?o.jsx(_u,{inputRef:t,...r,type:e}):o.jsx("input",{ref:t,...r,type:e,onWheel:i=>{var s;n(i),(s=r.onWheel)==null||s.call(r,i)}})}function _u({inputRef:e,className:t,type:r,...n}){return o.jsx(xu,{className:t,valueIsNumericString:!0,getInputRef:e,...n})}function wu({value:e,type:t,onClearInput:r,isContentVisible:n,trailingElement:i,onToggleButtonClick:s,isVisibilityToggleEnabled:c}){const f=!!(t===pt.Text&&e&&r),x=!!(t===pt.Password&&c),h=!!(i&&!f&&!x);if(f)return o.jsx(nt,{className:"text-neutral-10 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",onClick:r,tabIndex:-1,children:o.jsx(Fr,{})});if(x)return o.jsx(nt,{onClick:s,className:"text-neutral-10 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,children:n?o.jsx(yi,{}):o.jsx(bi,{})});if(h)return o.jsx(te.Fragment,{children:i})}const Su=te.forwardRef(function({label:t,caption:r,disabled:n,errorMessage:i,value:s,amountCounter:c,isVisibilityToggleEnabled:f,isResizeEnabled:x,required:h,isContentVisible:_,...b},j){const[R,k]=te.useState(_??!0);te.useEffect(()=>{k(_??!0)},[_]);function O(){k(L=>!L)}return o.jsx(qn,{label:t,caption:r,disabled:n||!R,errorMessage:i,amountCounter:c,required:h,children:o.jsxs("div",{className:"relative",children:[o.jsx("textarea",{disabled:n||!R,required:h,ref:j,className:P("peer block min-h-[50px]",ki,Ri,Ti,Oi,R&&x?"resize-y":"resize-none",!R&&"not-visible select-none text-transparent dark:text-transparent"),value:R?s:"",...b}),!R&&o.jsx("div",{className:"absolute left-0 top-0 flex h-full w-full flex-col items-stretch gap-y-2 px-md py-sm peer-[.not-visible]:select-none",children:o.jsx(Eu,{rows:3,halfWidthRow:3})}),f&&o.jsx("span",{className:"absolute bottom-4 right-4 flex",children:o.jsx(nt,{onClick:O,className:"text-neutral-10 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",tabIndex:-1,children:R?o.jsx(yi,{}):o.jsx(bi,{})})})]})})});function Eu({rows:e,halfWidthRow:t}){return o.jsx(o.Fragment,{children:Array.from({length:e}).map((r,n)=>{const s=t===n+1?"w-1/2":"w-full";return o.jsx("div",{className:`h-2.5 rounded bg-neutral-92/60 dark:bg-neutral-10/60 ${s}`},n)})})}var vn=(e=>(e.Horizontal="horizontal",e.Vertical="vertical",e))(vn||{});const Hi="text-neutral-10 dark:text-neutral-92",Yi="text-neutral-40 dark:text-neutral-60",Cu="py-xxs px-sm",ju="p-sm",Gi="bg-shader-primary-light-12 dark:bg-shader-primary-dark-12",Ru="-top-3 right-3",Tu="-top-1 right-3",zi="text-neutral-10 dark:text-neutral-92",Ki="text-neutral-60 dark:text-neutral-40";function Ou({icon:e,text:t,isSelected:r,hasBadge:n,onClick:i,isDisabled:s=!1}){const c=r?Hi:Yi,f=t?Cu:ju,x=r&&Gi,h=t?Ru:Tu,_=r?zi:Ki,b=s?"cursor-not-allowed opacity-60":"state-layer",j=R=>{if(s){R.preventDefault();return}i==null||i(R)};return o.jsxs("div",{onClick:j,className:P("inline-flex cursor-pointer flex-col items-center justify-center space-y-1"),children:[o.jsxs("div",{className:P("relative inline-flex rounded-full",f,x,b),children:[o.jsx("div",{className:P("inline-flex [&_svg]:h-6 [&_svg]:w-6",c),children:e}),n&&o.jsx("div",{className:P("absolute",h),children:o.jsx(ln,{type:st.PrimarySolid})})]}),t&&o.jsx("span",{className:P("text-center text-label-md",_),children:t})]})}function ku({icon:e,text:t,isSelected:r,hasBadge:n,onClick:i,isDisabled:s=!1}){const c=r?Hi:Yi,f=r&&Gi,x=r?zi:Ki,h=s?"cursor-not-allowed opacity-60":"state-layer cursor-pointer ",_=b=>{if(s){b.preventDefault();return}i==null||i(b)};return o.jsxs("div",{onClick:_,className:P("relative inline-flex w-full flex-row items-center justify-between rounded-full p-sm",f,h),children:[o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:P("inline-flex [&_svg]:h-6 [&_svg]:w-6",c),children:e}),t&&o.jsx("span",{className:P("text-center text-label-lg",x),children:t})]}),n&&o.jsx(ln,{type:st.PrimarySolid})]})}function Qn(e){const{type:t,text:r}=e;return t===vn.Vertical&&r?o.jsx(ku,{...e}):o.jsx(Ou,{...e})}function Nu({title:e,subtitle:t,badgeType:r,badgeText:n,isLocked:i,avatarContent:s,onOptionsClick:c,onLockAccountClick:f,onUnlockAccountClick:x,onCopy:h,copyText:_,onOpen:b,isCopyable:j,isExternal:R,isSelected:k,isActive:O,showSelected:L}){const A=s;return o.jsxs("div",{className:P("state-layer group relative flex w-full items-center justify-between space-x-3 rounded-xl px-sm py-xs hover:cursor-pointer",O&&"state-active",{"opacity-60":i&&L}),children:[o.jsxs("div",{className:"flex items-center space-x-3",children:[o.jsx(A,{isLocked:i}),o.jsxs("div",{className:"flex flex-col items-start py-xs",children:[o.jsxs("div",{className:"flex items-center space-x-2",children:[o.jsx("span",{className:"font-inter text-title-md text-neutral-10 dark:text-neutral-92",children:e}),r&&n&&o.jsx(ln,{type:r,label:n})]}),o.jsx(Ci,{text:t,onCopySuccess:h,copyText:_,onOpen:b,isCopyable:j,isExternal:R})]})]}),o.jsxs("div",{className:"z-10 ml-auto flex items-center space-x-2 [&_button]:h-5 [&_button]:w-5 [&_svg]:h-5 [&_svg]:w-5",children:[o.jsxs("div",{className:"flex items-center space-x-2 [&_button:not(.locked)]:hidden group-hover:[&_button:not(.locked)]:flex [&_svg]:text-neutral-40 [&_svg]:dark:text-neutral-60",children:[c&&o.jsx(nt,{onClick:c,children:o.jsx(fi,{})}),f&&x&&(i?o.jsx("div",{className:"flex items-center",children:o.jsx(nt,{onClick:x,testId:"account-unlock",className:"locked",children:o.jsx(Js,{})})}):o.jsx(nt,{onClick:f,testId:"account-lock",children:o.jsx(Qs,{})}))]}),L&&o.jsx(nt,{children:k?o.jsx(zs,{className:"h-5 w-5 text-primary-30 dark:text-primary-80"}):o.jsx(vi,{className:"h-5 w-5 text-neutral-40 dark:text-neutral-60"})})]})]})}function Xi({children:e}){return o.jsx("ul",{className:"list-none rounded-lg border border-neutral-80 bg-neutral-100 py-xs dark:border-neutral-20 dark:bg-neutral-6",children:e})}var Hr=(e=>(e.Top="top",e.Bottom="bottom",e))(Hr||{});function qi({children:e,hasLastBorderNoneClass:t,isContentCentered:r}){return o.jsx("td",{className:P("h-14 border-b border-shader-neutral-light-8 px-md dark:border-shader-neutral-dark-8",{"last:border-none":t},{"flex items-center justify-center":r}),children:e})}function Pu({children:e,supportingLabel:t}){return o.jsxs("div",{className:"flex flex-row items-baseline gap-1",children:[o.jsx("span",{children:e}),t&&o.jsx("span",{className:"text-body-sm text-neutral-60 dark:text-neutral-40",children:t})]})}function Au(){return o.jsx(Ei,{})}var Yr=(e=>(e.Small="small",e.Default="default",e))(Yr||{});const Du=te.forwardRef(({disabled:e,label:t,leadingIcon:r,supportingText:n,errorMessage:i,caption:s,options:c,placeholder:f,onValueChange:x,onOptionClick:h,value:_,dropdownPosition:b=Hr.Bottom,size:j=Yr.Default},R)=>{const[k,O]=te.useState(!1),L=Q(_,c),A=L||f,H=j===Yr.Small?"px-sm":"px-md",Y=j===Yr.Small?"text-body-md":"text-body-lg";te.useEffect(()=>{e&&k&&$()},[e,k]);function Q(M,le=[]){return le.find(ke=>typeof ke=="string"?ke===M:ke.id===M)??le[0]}function G(){O(M=>!M)}function se(M){$();const le=typeof M=="string"?M:M.id;h==null||h(le),M!==L&&(x==null||x(le))}function $(){O(!1)}return o.jsx(qn,{label:t,caption:s,disabled:e,errorMessage:i,labelHtmlTag:Ni.Div,children:o.jsxs("div",{className:"relative flex w-full flex-col",children:[o.jsxs(nt,{ref:R,onClick:G,disabled:e,className:P("flex flex-row items-center gap-x-3 rounded-lg border border-neutral-80 py-sm hover:enabled:border-neutral-50 focus-visible:enabled:border-primary-30 active:enabled:border-primary-30 disabled:cursor-not-allowed group-[.errored]:border-error-30 group-[.opened]:border-primary-30 dark:border-neutral-20 dark:hover:enabled:border-neutral-60 dark:group-[.errored]:border-error-80 dark:group-[.opened]:border-primary-80 [&:is(:focus,_:focus-visible,_:active)]:enabled:border-primary-30 dark:[&:is(:focus,_:focus-visible,_:active)]:enabled:border-primary-80 [&_svg]:h-5 [&_svg]:w-5",H),children:[r&&o.jsx("span",{className:"text-neutral-10 dark:text-neutral-92",children:r}),o.jsxs("div",{className:"flex w-full flex-row items-baseline gap-x-3",children:[A&&o.jsx("div",{className:P("block w-full text-start text-neutral-10 dark:text-neutral-92",Y),children:o.jsx(Zi,{option:A})}),n&&o.jsx("div",{className:"ml-auto",children:o.jsx(fn,{children:n})})]}),o.jsx(il,{className:P("text-neutral-10 transition-transform dark:text-neutral-92",{" rotate-180":k})})]}),k&&o.jsx("div",{className:"fixed left-0 top-0 z-[49] h-screen w-screen bg-transparent",onClick:$}),o.jsx("div",{className:P("absolute z-50 min-w-full",{hidden:!k,"top-full":!b||b===Hr.Bottom,"bottom-full":b===Hr.Top}),children:o.jsx(Xi,{children:c.map(M=>{const le=typeof M=="string";return o.jsx(wi,{onClick:()=>se(M),hideBottomBorder:!0,children:o.jsx(Zi,{option:M})},le?M:M.id)})})})]})})});function Zi({option:e}){return typeof e=="string"?e:"renderLabel"in e?e.renderLabel():e.label}var or=(e=>(e.Asc="asc",e.Desc="desc",e))(or||{});function Ji({label:e,columnKey:t,hasSort:r,hasCheckbox:n,isChecked:i,isIndeterminate:s,isContentCentered:c,onSortClick:f,onCheckboxChange:x,sortOrder:h}){const _=()=>{const k=h===or.Asc?or.Desc:or.Asc;f&&f(t,k)},b="text-neutral-10 dark:text-neutral-92",j="text-label-lg",R=r?h===or.Asc?o.jsx(gi,{className:"shrink-0"}):h===or.Desc?o.jsx(al,{className:"shrink-0"}):o.jsx(gi,{className:"invisible shrink-0 group-hover:visible"}):null;return o.jsx("th",{onClick:r?_:void 0,className:P("state-layer group relative h-14 border-b border-shader-neutral-light-8 px-md after:pointer-events-none dark:border-shader-neutral-dark-8",{"cursor-pointer":r}),children:o.jsxs("div",{className:P("flex flex-row items-center gap-1 [&_svg]:h-4 [&_svg]:w-4",b,j,{"justify-center":c}),children:[n?o.jsx(Xn,{isChecked:i,isIndeterminate:s,onCheckedChange:x}):o.jsx("span",{className:P({"text-left":!c}),children:e}),R]})})}var Tt=(e=>(e.Outlined="outlined",e.Filled="filled",e))(Tt||{});const Iu={[Tt.Outlined]:"bg-transparent",[Tt.Filled]:"bg-neutral-92 dark:bg-neutral-12"},Lu={[Tt.Outlined]:"border-l border-r border-t border-neutral-70 dark:border-neutral-40",[Tt.Filled]:"bg-neutral-92 dark:bg-neutral-12"},Mu={[Tt.Outlined]:"rounded-b-3xl border-b border-l border-r border-neutral-70 dark:border-neutral-40",[Tt.Filled]:"rounded-b-3xl bg-neutral-92 dark:bg-neutral-12"};function Fu({searchValue:e,suggestions:t,onSearchValueChange:r,onSuggestionClick:n,placeholder:i,isLoading:s=!1,onKeyDown:c,type:f=Tt.Outlined,renderSuggestion:x}){const h=te.useRef(null),_=te.useRef(null),[b,j]=te.useState(!0),[R,k]=te.useState(null);function O($){const M=$.target.value;r(M)}te.useEffect(()=>{const $=M=>{var le;M.key==="Escape"&&(j(!1),(le=h.current)==null||le.blur())};return document.addEventListener("keydown",$),()=>{document.removeEventListener("keydown",$)}},[]),te.useEffect(()=>{const $=M=>{var ke;const le=h==null?void 0:h.current;!le||le.contains(M==null?void 0:M.target)||(ke=_.current)!=null&&ke.contains(M.target)||j(!1)};return document.addEventListener("click",$,!0),document.addEventListener("touchstart",$,!0),()=>{document.removeEventListener("click",$,!0),document.removeEventListener("touchstart",$,!0)}},[h]);const L=b&&t&&t.length>0,A=L?"rounded-t-3xl border-b border-b-transparent":f===Tt.Outlined?"rounded-3xl border-b":"rounded-full",H=Lu[f],Y=Iu[f],Q=Mu[f],G=$=>{var M;n==null||n($),r(""),j(!1),k(null),(M=h.current)==null||M.blur()},se=$=>{t&&(t==null?void 0:t.length)>0&&($.key==="ArrowDown"?($.preventDefault(),k(M=>M===null||M>=t.length-1?0:M+1)):$.key==="ArrowUp"?($.preventDefault(),k(M=>M===null||M<=0?t.length-1:M-1)):$.key==="Enter"&&($.preventDefault(),R!==null&&t[R]?G(t[R]):t.length===1&&G(t[0])))};return o.jsxs("div",{className:"relative w-full",children:[o.jsxs("div",{className:P("flex items-center overflow-hidden px-md py-sm text-neutral-10 dark:text-neutral-92 [&_svg]:h-6 [&_svg]:w-6",A,H),children:[o.jsx("input",{ref:h,type:"text",value:e,onChange:O,onKeyDown:se,onFocus:()=>j(!0),placeholder:i,className:P("w-full flex-1 outline-none placeholder:text-neutral-40 placeholder:dark:text-neutral-60",Y)}),o.jsx(nl,{})]}),L&&o.jsxs("div",{ref:_,className:P("absolute left-0 top-full flex w-full flex-col items-center overflow-hidden bg-neutral-100 dark:bg-neutral-10",Q),children:[o.jsx(_i,{width:"w-11/12"}),s?o.jsx("div",{className:"px-md py-sm",children:o.jsx(oi,{className:"animate-spin"})}):t.map(($,M)=>o.jsx("div",{onClick:()=>G($),onMouseEnter:()=>k(M),className:P("w-full cursor-pointer px-md py-sm",R===M?"bg-shader-primary-dark-16 dark:bg-shader-inverted-dark-16":""),children:x($,M)},$.id))]})]})}var Er=(e=>(e.Default="default",e.Outlined="outlined",e.Filled="filled",e))(Er||{}),sr=(e=>(e.Placeholder="placeholder",e.BgSolid="bg-solid",e.BgTransparent="bg-transparent",e))(sr||{}),lr=(e=>(e.Rounded="rounded",e.SquareRounded="square-rounded",e))(lr||{}),Gr=(e=>(e.Link="link",e.SupportingText="supporting-text",e.Button="button",e))(Gr||{});const Bu="cursor-default opacity-40",Qi="h-10 w-10",eo={[lr.SquareRounded]:`${Qi} rounded-md`,[lr.Rounded]:`${Qi} rounded-full`},Vu={[sr.Placeholder]:"",[sr.BgSolid]:"bg-neutral-96 dark:bg-neutral-10",[sr.BgTransparent]:""},$u={[Er.Default]:"border border-transparent",[Er.Outlined]:"border border-shader-neutral-light-8 dark:border-shader-primary-dark-8 p-xs",[Er.Filled]:"border border-transparent bg-neutral-96 dark:bg-neutral-10 p-xs"};function Uu({isDisabled:e=!1,type:t=Er.Default,isHoverable:r,onClick:n,children:i,testId:s}){function c(){e||n==null||n()}return o.jsx("div",{onClick:c,className:P("relative inline-flex w-full items-center gap-3 rounded-xl px-sm py-xs",$u[t],{"state-layer":r||!e&&n,[Bu]:e,"cursor-pointer":n}),"data-testid":s,children:i})}function Wu({type:e,onClick:t,subtitle:r,title:n,icon:i,iconAfterText:s,buttonType:c,buttonDisabled:f}){function x(h){t&&(h.stopPropagation(),t())}return e===Gr.Link?o.jsx("div",{onClick:x,className:"shrink-0 text-neutral-10 dark:text-neutral-92 [&_svg]:h-5 [&_svg]:w-5",children:i||o.jsx(Un,{})}):e===Gr.SupportingText?o.jsxs("div",{className:"shrink-0 text-right",children:[n&&o.jsx("div",{className:"font-inter text-label-md text-neutral-10 dark:text-neutral-92",children:n}),r&&o.jsx("div",{className:"font-inter text-label-sm text-neutral-60 dark:text-neutral-40",children:r})]}):e===Gr.Button?o.jsx("div",{className:"shrink-0",children:o.jsx(dt,{type:c||Ee.Outlined,size:Qe.Small,text:n,onClick:x,icon:i,iconAfterText:s,disabled:f})}):null}function Hu({variant:e=lr.Rounded}){return e===lr.Rounded?o.jsx(Yu,{}):o.jsx(Gu,{})}function Yu(){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[o.jsxs("g",{"clip-path":"url(#clip0_880_55185)",children:[o.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"#5B9CFE"}),o.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"url(#paint0_linear_880_55185)","fill-opacity":"0.2"}),o.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"url(#paint1_linear_880_55185)","fill-opacity":"0.2"}),o.jsx("path",{d:"M0.5 20C0.5 9.23045 9.23045 0.5 20 0.5C30.7696 0.5 39.5 9.23045 39.5 20C39.5 30.7696 30.7696 39.5 20 39.5C9.23045 39.5 0.5 30.7696 0.5 20Z",stroke:"#002F6D","stroke-opacity":"0.08"})]}),o.jsxs("defs",{children:[o.jsxs("linearGradient",{id:"paint0_linear_880_55185",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),o.jsx("stop",{offset:"1"})]}),o.jsxs("linearGradient",{id:"paint1_linear_880_55185",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),o.jsx("stop",{offset:"1"})]}),o.jsx("clipPath",{id:"clip0_880_55185",children:o.jsx("path",{d:"M0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20Z",fill:"white"})})]})]})}function Gu(){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[o.jsxs("g",{"clip-path":"url(#clip0_880_55190)",children:[o.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"#5B9CFE"}),o.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"url(#paint0_linear_880_55190)","fill-opacity":"0.2"}),o.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"url(#paint1_linear_880_55190)","fill-opacity":"0.2"}),o.jsx("path",{d:"M0.5 8C0.5 3.85786 3.85786 0.5 8 0.5H32C36.1421 0.5 39.5 3.85786 39.5 8V32C39.5 36.1421 36.1421 39.5 32 39.5H8C3.85786 39.5 0.5 36.1421 0.5 32V8Z",stroke:"#002F6D","stroke-opacity":"0.08"})]}),o.jsxs("defs",{children:[o.jsxs("linearGradient",{id:"paint0_linear_880_55190",x1:"20",y1:"0",x2:"29.5238",y2:"22.381",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{offset:"0.990135","stop-opacity":"0"}),o.jsx("stop",{offset:"1"})]}),o.jsxs("linearGradient",{id:"paint1_linear_880_55190",x1:"20",y1:"0",x2:"11.4286",y2:"9.04762",gradientUnits:"userSpaceOnUse",children:[o.jsx("stop",{offset:"0.9999","stop-opacity":"0"}),o.jsx("stop",{offset:"1"})]}),o.jsx("clipPath",{id:"clip0_880_55190",children:o.jsx("path",{d:"M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z",fill:"white"})})]})]})}function zu({type:e=sr.BgSolid,shape:t=lr.Rounded,url:r,children:n}){return o.jsxs("div",{className:P(eo[t],Vu[e],"flex shrink-0 items-center justify-center overflow-hidden"),children:[e===sr.Placeholder&&!n&&o.jsx(Hu,{variant:t}),r&&!n&&o.jsx("img",{src:r,className:P(eo[t],"object-cover"),alt:"Card Image"}),n]})}function Ku({title:e,subtitle:t,clickableAction:r,icon:n,isTextTruncated:i}){const s=c=>{c==null||c.stopPropagation()};return o.jsxs("div",{className:P("flex w-full flex-col",{truncate:i}),children:[o.jsxs("div",{className:P("flex flex-row items-center gap-x-xxs",{"grow-1":i}),children:[o.jsx("div",{className:P("font-inter text-title-md text-neutral-10 dark:text-neutral-92",{truncate:i}),children:e}),n&&o.jsx("div",{className:"flex items-center",children:n}),r&&o.jsx("div",{onClick:s,className:"flex items-center",children:r})]}),t&&o.jsx("div",{className:P("font-inter text-body-md text-neutral-40 dark:text-neutral-60",{truncate:i}),children:t})]})}var Ft=(e=>(e.Default="default",e.Highlight="highlight",e.Secondary="secondary",e))(Ft||{}),gt=(e=>(e.Default="default",e.Large="large",e))(gt||{});const Xu={[Ft.Default]:"bg-neutral-96 dark:bg-neutral-10",[Ft.Highlight]:"bg-primary-30 dark:bg-primary-80",[Ft.Secondary]:"bg-secondary-90 dark:bg-secondary-10"},qu={[Ft.Default]:"text-neutral-10 dark:text-neutral-92",[Ft.Highlight]:"text-neutral-100 dark:text-primary-10",[Ft.Secondary]:"text-neutral-10 dark:text-neutral-92"},Zu={[gt.Default]:"gap-y-sm",[gt.Large]:"gap-y-md"},Ju={[gt.Default]:"text-title-md",[gt.Large]:"text-headline-sm"},Qu={[gt.Default]:"text-label-md",[gt.Large]:"text-label-lg"},ec={[gt.Default]:"text-label-sm",[gt.Large]:"text-label-md"};function tc({label:e,tooltipPosition:t,tooltipText:r,value:n,supportingLabel:i,type:s=Ft.Default,size:c=gt.Default,icon:f}){const x=Xu[s],h=Zu[c],_=qu[s],b=Ju[c],j=ec[c],R=Qu[c];return o.jsxs("div",{className:P("flex h-full w-full flex-col justify-between rounded-2xl p-md--rs",x,h,_),children:[o.jsxs("div",{className:P("flex flex-row items-center",{"w-full justify-between":f}),children:[o.jsxs("div",{className:"flex flex-row items-center gap-xxs",children:[o.jsx("span",{className:P(j,"whitespace-pre-line"),children:e}),r&&o.jsx(Vr,{text:r,position:t,children:o.jsx(un,{className:"opacity-40"})})]}),f&&o.jsx("span",{className:"text-neutral-10 dark:text-neutral-92",children:f})]}),o.jsxs("div",{className:"flex w-full flex-row items-baseline gap-xxs",children:[o.jsx("span",{className:P("break-all",b),children:n}),i&&o.jsx("span",{className:P("opacity-40",R),children:i})]})]})}function Yt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function rc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function to(...e){return t=>e.forEach(r=>rc(r,t))}function ur(...e){return S.useCallback(to(...e),e)}function nc(e,t){const r=S.createContext(t);function n(s){const{children:c,...f}=s,x=S.useMemo(()=>f,Object.values(f));return o.jsx(r.Provider,{value:x,children:c})}function i(s){const c=S.useContext(r);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,i]}function ac(e,t=[]){let r=[];function n(s,c){const f=S.createContext(c),x=r.length;r=[...r,c];function h(b){const{scope:j,children:R,...k}=b,O=(j==null?void 0:j[e][x])||f,L=S.useMemo(()=>k,Object.values(k));return o.jsx(O.Provider,{value:L,children:R})}function _(b,j){const R=(j==null?void 0:j[e][x])||f,k=S.useContext(R);if(k)return k;if(c!==void 0)return c;throw new Error(`\`${b}\` must be used within \`${s}\``)}return h.displayName=s+"Provider",[h,_]}const i=()=>{const s=r.map(c=>S.createContext(c));return function(f){const x=(f==null?void 0:f[e])||s;return S.useMemo(()=>({[`__scope${e}`]:{...f,[e]:x}}),[f,x])}};return i.scopeName=e,[n,ic(i,...t)]}function ic(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const c=n.reduce((f,{useScope:x,scopeName:h})=>{const b=x(s)[`__scope${h}`];return{...f,...b}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var mn=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},oc=S.useId||(()=>{}),sc=0;function ea(e){const[t,r]=S.useState(oc());return mn(()=>{e||r(n=>n??String(sc++))},[e]),e||(t?`radix-${t}`:"")}function cr(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function lc({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=uc({defaultProp:t,onChange:r}),s=e!==void 0,c=s?e:n,f=cr(r),x=S.useCallback(h=>{if(s){const b=typeof h=="function"?h(e):h;b!==e&&f(b)}else i(h)},[s,e,i,f]);return[c,x]}function uc({defaultProp:e,onChange:t}){const r=S.useState(e),[n]=r,i=S.useRef(n),s=cr(t);return S.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}var ta=S.forwardRef((e,t)=>{const{children:r,...n}=e,i=S.Children.toArray(r),s=i.find(fc);if(s){const c=s.props.children,f=i.map(x=>x===s?S.Children.count(c)>1?S.Children.only(null):S.isValidElement(c)?c.props.children:null:x);return o.jsx(ra,{...n,ref:t,children:S.isValidElement(c)?S.cloneElement(c,void 0,f):null})}return o.jsx(ra,{...n,ref:t,children:r})});ta.displayName="Slot";var ra=S.forwardRef((e,t)=>{const{children:r,...n}=e;if(S.isValidElement(r)){const i=vc(r);return S.cloneElement(r,{...dc(n,r.props),ref:t?to(t,i):i})}return S.Children.count(r)>1?S.Children.only(null):null});ra.displayName="SlotClone";var cc=({children:e})=>o.jsx(o.Fragment,{children:e});function fc(e){return S.isValidElement(e)&&e.type===cc}function dc(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...f)=>{s(...f),i(...f)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function vc(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var mc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ot=mc.reduce((e,t)=>{const r=S.forwardRef((n,i)=>{const{asChild:s,...c}=n,f=s?ta:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(f,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function hc(e,t){e&&Oa.flushSync(()=>e.dispatchEvent(t))}function pc(e,t=globalThis==null?void 0:globalThis.document){const r=cr(e);S.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var gc="DismissableLayer",na="dismissableLayer.update",xc="dismissableLayer.pointerDownOutside",bc="dismissableLayer.focusOutside",ro,no=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ao=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...x}=e,h=S.useContext(no),[_,b]=S.useState(null),j=(_==null?void 0:_.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,R]=S.useState({}),k=ur(t,$=>b($)),O=Array.from(h.layers),[L]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),A=O.indexOf(L),H=_?O.indexOf(_):-1,Y=h.layersWithOutsidePointerEventsDisabled.size>0,Q=H>=A,G=wc($=>{const M=$.target,le=[...h.branches].some(ke=>ke.contains(M));!Q||le||(i==null||i($),c==null||c($),$.defaultPrevented||f==null||f())},j),se=Sc($=>{const M=$.target;[...h.branches].some(ke=>ke.contains(M))||(s==null||s($),c==null||c($),$.defaultPrevented||f==null||f())},j);return pc($=>{H===h.layers.size-1&&(n==null||n($),!$.defaultPrevented&&f&&($.preventDefault(),f()))},j),S.useEffect(()=>{if(_)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(ro=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(_)),h.layers.add(_),io(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(j.body.style.pointerEvents=ro)}},[_,j,r,h]),S.useEffect(()=>()=>{_&&(h.layers.delete(_),h.layersWithOutsidePointerEventsDisabled.delete(_),io())},[_,h]),S.useEffect(()=>{const $=()=>R({});return document.addEventListener(na,$),()=>document.removeEventListener(na,$)},[]),o.jsx(Ot.div,{...x,ref:k,style:{pointerEvents:Y?Q?"auto":"none":void 0,...e.style},onFocusCapture:Yt(e.onFocusCapture,se.onFocusCapture),onBlurCapture:Yt(e.onBlurCapture,se.onBlurCapture),onPointerDownCapture:Yt(e.onPointerDownCapture,G.onPointerDownCapture)})});ao.displayName=gc;var yc="DismissableLayerBranch",_c=S.forwardRef((e,t)=>{const r=S.useContext(no),n=S.useRef(null),i=ur(t,n);return S.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),o.jsx(Ot.div,{...e,ref:i})});_c.displayName=yc;function wc(e,t=globalThis==null?void 0:globalThis.document){const r=cr(e),n=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const s=f=>{if(f.target&&!n.current){let x=function(){oo(xc,r,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=x,t.addEventListener("click",i.current,{once:!0})):x()}else t.removeEventListener("click",i.current);n.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Sc(e,t=globalThis==null?void 0:globalThis.document){const r=cr(e),n=S.useRef(!1);return S.useEffect(()=>{const i=s=>{s.target&&!n.current&&oo(bc,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function io(){const e=new CustomEvent(na);document.dispatchEvent(e)}function oo(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?hc(i,s):i.dispatchEvent(s)}var aa="focusScope.autoFocusOnMount",ia="focusScope.autoFocusOnUnmount",so={bubbles:!1,cancelable:!0},Ec="FocusScope",lo=S.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...c}=e,[f,x]=S.useState(null),h=cr(i),_=cr(s),b=S.useRef(null),j=ur(t,O=>x(O)),R=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(n){let O=function(Y){if(R.paused||!f)return;const Q=Y.target;f.contains(Q)?b.current=Q:Gt(b.current,{select:!0})},L=function(Y){if(R.paused||!f)return;const Q=Y.relatedTarget;Q!==null&&(f.contains(Q)||Gt(b.current,{select:!0}))},A=function(Y){if(document.activeElement===document.body)for(const G of Y)G.removedNodes.length>0&&Gt(f)};document.addEventListener("focusin",O),document.addEventListener("focusout",L);const H=new MutationObserver(A);return f&&H.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",O),document.removeEventListener("focusout",L),H.disconnect()}}},[n,f,R.paused]),S.useEffect(()=>{if(f){fo.add(R);const O=document.activeElement;if(!f.contains(O)){const A=new CustomEvent(aa,so);f.addEventListener(aa,h),f.dispatchEvent(A),A.defaultPrevented||(Cc(kc(uo(f)),{select:!0}),document.activeElement===O&&Gt(f))}return()=>{f.removeEventListener(aa,h),setTimeout(()=>{const A=new CustomEvent(ia,so);f.addEventListener(ia,_),f.dispatchEvent(A),A.defaultPrevented||Gt(O??document.body,{select:!0}),f.removeEventListener(ia,_),fo.remove(R)},0)}}},[f,h,_,R]);const k=S.useCallback(O=>{if(!r&&!n||R.paused)return;const L=O.key==="Tab"&&!O.altKey&&!O.ctrlKey&&!O.metaKey,A=document.activeElement;if(L&&A){const H=O.currentTarget,[Y,Q]=jc(H);Y&&Q?!O.shiftKey&&A===Q?(O.preventDefault(),r&&Gt(Y,{select:!0})):O.shiftKey&&A===Y&&(O.preventDefault(),r&&Gt(Q,{select:!0})):A===H&&O.preventDefault()}},[r,n,R.paused]);return o.jsx(Ot.div,{tabIndex:-1,...c,ref:j,onKeyDown:k})});lo.displayName=Ec;function Cc(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Gt(n,{select:t}),document.activeElement!==r)return}function jc(e){const t=uo(e),r=co(t,e),n=co(t.reverse(),e);return[r,n]}function uo(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function co(e,t){for(const r of e)if(!Rc(r,{upTo:t}))return r}function Rc(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Tc(e){return e instanceof HTMLInputElement&&"select"in e}function Gt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Tc(e)&&t&&e.select()}}var fo=Oc();function Oc(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=vo(e,t),e.unshift(t)},remove(t){var r;e=vo(e,t),(r=e[0])==null||r.resume()}}}function vo(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function kc(e){return e.filter(t=>t.tagName!=="A")}var Nc="Portal",mo=S.forwardRef((e,t)=>{var f;const{container:r,...n}=e,[i,s]=S.useState(!1);mn(()=>s(!0),[]);const c=r||i&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?Ra.createPortal(o.jsx(Ot.div,{...n,ref:t}),c):null});mo.displayName=Nc;function Pc(e,t){return S.useReducer((r,n)=>t[r][n]??r,e)}var hn=e=>{const{present:t,children:r}=e,n=Ac(t),i=typeof r=="function"?r({present:n.isPresent}):S.Children.only(r),s=ur(n.ref,Dc(i));return typeof r=="function"||n.isPresent?S.cloneElement(i,{ref:s}):null};hn.displayName="Presence";function Ac(e){const[t,r]=S.useState(),n=S.useRef({}),i=S.useRef(e),s=S.useRef("none"),c=e?"mounted":"unmounted",[f,x]=Pc(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const h=pn(n.current);s.current=f==="mounted"?h:"none"},[f]),mn(()=>{const h=n.current,_=i.current;if(_!==e){const j=s.current,R=pn(h);e?x("MOUNT"):R==="none"||(h==null?void 0:h.display)==="none"?x("UNMOUNT"):x(_&&j!==R?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,x]),mn(()=>{if(t){const h=b=>{const R=pn(n.current).includes(b.animationName);b.target===t&&R&&Oa.flushSync(()=>x("ANIMATION_END"))},_=b=>{b.target===t&&(s.current=pn(n.current))};return t.addEventListener("animationstart",_),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{t.removeEventListener("animationstart",_),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else x("ANIMATION_END")},[t,x]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:S.useCallback(h=>{h&&(n.current=getComputedStyle(h)),r(h)},[])}}function pn(e){return(e==null?void 0:e.animationName)||"none"}function Dc(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var oa=0;function Ic(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ho()),document.body.insertAdjacentElement("beforeend",e[1]??ho()),oa++,()=>{oa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),oa--}},[])}function ho(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var kt=function(){return kt=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},kt.apply(this,arguments)};function po(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Lc(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var gn="right-scroll-bar-position",xn="width-before-scroll-bar",Mc="with-scroll-bars-hidden",Fc="--removed-body-scroll-bar-size";function sa(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Bc(e,t){var r=te.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var Vc=typeof window<"u"?S.useLayoutEffect:S.useEffect,go=new WeakMap;function $c(e,t){var r=Bc(null,function(n){return e.forEach(function(i){return sa(i,n)})});return Vc(function(){var n=go.get(r);if(n){var i=new Set(n),s=new Set(e),c=r.current;i.forEach(function(f){s.has(f)||sa(f,null)}),s.forEach(function(f){i.has(f)||sa(f,c)})}go.set(r,e)},[e]),r}function Uc(e){return e}function Wc(e,t){t===void 0&&(t=Uc);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var c=t(s,n);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(s){for(n=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){n=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(s),c=r}var x=function(){var _=c;c=[],_.forEach(s)},h=function(){return Promise.resolve().then(x)};h(),r={push:function(_){c.push(_),h()},filter:function(_){return c=c.filter(_),r}}}};return i}function Hc(e){e===void 0&&(e={});var t=Wc(null);return t.options=kt({async:!0,ssr:!1},e),t}var xo=function(e){var t=e.sideCar,r=po(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return S.createElement(n,kt({},r))};xo.isSideCarExport=!0;function Yc(e,t){return e.useMedium(t),xo}var bo=Hc(),la=function(){},bn=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:la,onWheelCapture:la,onTouchMoveCapture:la}),i=n[0],s=n[1],c=e.forwardProps,f=e.children,x=e.className,h=e.removeScrollBar,_=e.enabled,b=e.shards,j=e.sideCar,R=e.noIsolation,k=e.inert,O=e.allowPinchZoom,L=e.as,A=L===void 0?"div":L,H=e.gapMode,Y=po(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=j,G=$c([r,t]),se=kt(kt({},Y),i);return S.createElement(S.Fragment,null,_&&S.createElement(Q,{sideCar:bo,removeScrollBar:h,shards:b,noIsolation:R,inert:k,setCallbacks:s,allowPinchZoom:!!O,lockRef:r,gapMode:H}),c?S.cloneElement(S.Children.only(f),kt(kt({},se),{ref:G})):S.createElement(A,kt({},se,{className:x,ref:G}),f))});bn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},bn.classNames={fullWidth:xn,zeroRight:gn};var Gc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gc();return t&&e.setAttribute("nonce",t),e}function Kc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zc())&&(Kc(t,r),Xc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zc=function(){var e=qc();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},yo=function(){var e=Zc(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},Jc={left:0,top:0,right:0,gap:0},ua=function(e){return parseInt(e||"",10)||0},Qc=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[ua(r),ua(n),ua(i)]},ef=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Jc;var t=Qc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},tf=yo(),Cr="data-scroll-locked",rf=function(e,t,r,n){var i=e.left,s=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
|
|
154
|
+
.`.concat(Mc,` {
|
|
155
155
|
overflow: hidden `).concat(n,`;
|
|
156
156
|
padding-right: `).concat(f,"px ").concat(n,`;
|
|
157
157
|
}
|
|
158
|
-
body[`).concat(
|
|
158
|
+
body[`).concat(Cr,`] {
|
|
159
159
|
overflow: hidden `).concat(n,`;
|
|
160
160
|
overscroll-behavior: contain;
|
|
161
161
|
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
162
|
-
padding-left: `.concat(
|
|
162
|
+
padding-left: `.concat(i,`px;
|
|
163
163
|
padding-top: `).concat(s,`px;
|
|
164
164
|
padding-right: `).concat(c,`px;
|
|
165
165
|
margin-left:0;
|
|
@@ -184,15 +184,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
184
184
|
margin-right: 0 `).concat(n,`;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
body[`).concat(
|
|
188
|
-
`).concat(
|
|
187
|
+
body[`).concat(Cr,`] {
|
|
188
|
+
`).concat(Fc,": ").concat(f,`px;
|
|
189
189
|
}
|
|
190
|
-
`)},
|
|
190
|
+
`)},_o=function(){var e=parseInt(document.body.getAttribute(Cr)||"0",10);return isFinite(e)?e:0},nf=function(){S.useEffect(function(){return document.body.setAttribute(Cr,(_o()+1).toString()),function(){var e=_o()-1;e<=0?document.body.removeAttribute(Cr):document.body.setAttribute(Cr,e.toString())}},[])},af=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;nf();var s=S.useMemo(function(){return ef(i)},[i]);return S.createElement(tf,{styles:rf(s,!t,i,r?"":"!important")})},ca=!1;if(typeof window<"u")try{var yn=Object.defineProperty({},"passive",{get:function(){return ca=!0,!0}});window.addEventListener("test",yn,yn),window.removeEventListener("test",yn,yn)}catch{ca=!1}var jr=ca?{passive:!1}:!1,of=function(e){return e.tagName==="TEXTAREA"},wo=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!of(e)&&r[t]==="visible")},sf=function(e){return wo(e,"overflowY")},lf=function(e){return wo(e,"overflowX")},So=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Eo(e,n);if(i){var s=Co(e,n),c=s[1],f=s[2];if(c>f)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},uf=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},cf=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Eo=function(e,t){return e==="v"?sf(t):lf(t)},Co=function(e,t){return e==="v"?uf(t):cf(t)},ff=function(e,t){return e==="h"&&t==="rtl"?-1:1},df=function(e,t,r,n,i){var s=ff(e,window.getComputedStyle(t).direction),c=s*n,f=r.target,x=t.contains(f),h=!1,_=c>0,b=0,j=0;do{var R=Co(e,f),k=R[0],O=R[1],L=R[2],A=O-L-s*k;(k||A)&&Eo(e,f)&&(b+=A,j+=k),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!x&&f!==document.body||x&&(t.contains(f)||t===f));return(_&&Math.abs(b)<1||!_&&Math.abs(j)<1)&&(h=!0),h},_n=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jo=function(e){return[e.deltaX,e.deltaY]},Ro=function(e){return e&&"current"in e?e.current:e},vf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mf=function(e){return`
|
|
191
191
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
192
192
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
193
|
-
`)},
|
|
193
|
+
`)},hf=0,Rr=[];function pf(e){var t=S.useRef([]),r=S.useRef([0,0]),n=S.useRef(),i=S.useState(hf++)[0],s=S.useState(yo)[0],c=S.useRef(e);S.useEffect(function(){c.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var O=Lc([e.lockRef.current],(e.shards||[]).map(Ro),!0).filter(Boolean);return O.forEach(function(L){return L.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),O.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var f=S.useCallback(function(O,L){if("touches"in O&&O.touches.length===2)return!c.current.allowPinchZoom;var A=_n(O),H=r.current,Y="deltaX"in O?O.deltaX:H[0]-A[0],Q="deltaY"in O?O.deltaY:H[1]-A[1],G,se=O.target,$=Math.abs(Y)>Math.abs(Q)?"h":"v";if("touches"in O&&$==="h"&&se.type==="range")return!1;var M=So($,se);if(!M)return!0;if(M?G=$:(G=$==="v"?"h":"v",M=So($,se)),!M)return!1;if(!n.current&&"changedTouches"in O&&(Y||Q)&&(n.current=G),!G)return!0;var le=n.current||G;return df(le,L,O,le==="h"?Y:Q)},[]),x=S.useCallback(function(O){var L=O;if(!(!Rr.length||Rr[Rr.length-1]!==s)){var A="deltaY"in L?jo(L):_n(L),H=t.current.filter(function(G){return G.name===L.type&&(G.target===L.target||L.target===G.shadowParent)&&vf(G.delta,A)})[0];if(H&&H.should){L.cancelable&&L.preventDefault();return}if(!H){var Y=(c.current.shards||[]).map(Ro).filter(Boolean).filter(function(G){return G.contains(L.target)}),Q=Y.length>0?f(L,Y[0]):!c.current.noIsolation;Q&&L.cancelable&&L.preventDefault()}}},[]),h=S.useCallback(function(O,L,A,H){var Y={name:O,delta:L,target:A,should:H,shadowParent:gf(A)};t.current.push(Y),setTimeout(function(){t.current=t.current.filter(function(Q){return Q!==Y})},1)},[]),_=S.useCallback(function(O){r.current=_n(O),n.current=void 0},[]),b=S.useCallback(function(O){h(O.type,jo(O),O.target,f(O,e.lockRef.current))},[]),j=S.useCallback(function(O){h(O.type,_n(O),O.target,f(O,e.lockRef.current))},[]);S.useEffect(function(){return Rr.push(s),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:j}),document.addEventListener("wheel",x,jr),document.addEventListener("touchmove",x,jr),document.addEventListener("touchstart",_,jr),function(){Rr=Rr.filter(function(O){return O!==s}),document.removeEventListener("wheel",x,jr),document.removeEventListener("touchmove",x,jr),document.removeEventListener("touchstart",_,jr)}},[]);var R=e.removeScrollBar,k=e.inert;return S.createElement(S.Fragment,null,k?S.createElement(s,{styles:mf(i)}):null,R?S.createElement(af,{gapMode:e.gapMode}):null)}function gf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xf=Yc(bo,pf);var To=S.forwardRef(function(e,t){return S.createElement(bn,kt({},e,{ref:t,sideCar:xf}))});To.classNames=bn.classNames;var bf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tr=new WeakMap,wn=new WeakMap,Sn={},fa=0,Oo=function(e){return e&&(e.host||Oo(e.parentNode))},yf=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Oo(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},_f=function(e,t,r,n){var i=yf(t,Array.isArray(e)?e:[e]);Sn[r]||(Sn[r]=new WeakMap);var s=Sn[r],c=[],f=new Set,x=new Set(i),h=function(b){!b||f.has(b)||(f.add(b),h(b.parentNode))};i.forEach(h);var _=function(b){!b||x.has(b)||Array.prototype.forEach.call(b.children,function(j){if(f.has(j))_(j);else try{var R=j.getAttribute(n),k=R!==null&&R!=="false",O=(Tr.get(j)||0)+1,L=(s.get(j)||0)+1;Tr.set(j,O),s.set(j,L),c.push(j),O===1&&k&&wn.set(j,!0),L===1&&j.setAttribute(r,"true"),k||j.setAttribute(n,"true")}catch(A){console.error("aria-hidden: cannot operate on ",j,A)}})};return _(t),f.clear(),fa++,function(){c.forEach(function(b){var j=Tr.get(b)-1,R=s.get(b)-1;Tr.set(b,j),s.set(b,R),j||(wn.has(b)||b.removeAttribute(n),wn.delete(b)),R||b.removeAttribute(r)}),fa--,fa||(Tr=new WeakMap,Tr=new WeakMap,wn=new WeakMap,Sn={})}},wf=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=bf(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),_f(n,i,r,"aria-hidden")):function(){return null}},da="Dialog",[ko,bd]=ac(da),[Sf,xt]=ko(da),No=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:c=!0}=e,f=S.useRef(null),x=S.useRef(null),[h=!1,_]=lc({prop:n,defaultProp:i,onChange:s});return o.jsx(Sf,{scope:t,triggerRef:f,contentRef:x,contentId:ea(),titleId:ea(),descriptionId:ea(),open:h,onOpenChange:_,onOpenToggle:S.useCallback(()=>_(b=>!b),[_]),modal:c,children:r})};No.displayName=da;var Po="DialogTrigger",Ao=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xt(Po,r),s=ur(t,i.triggerRef);return o.jsx(Ot.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ha(i.open),...n,ref:s,onClick:Yt(e.onClick,i.onOpenToggle)})});Ao.displayName=Po;var va="DialogPortal",[Ef,Do]=ko(va,{forceMount:void 0}),Io=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,s=xt(va,t);return o.jsx(Ef,{scope:t,forceMount:r,children:S.Children.map(n,c=>o.jsx(hn,{present:r||s.open,children:o.jsx(mo,{asChild:!0,container:i,children:c})}))})};Io.displayName=va;var En="DialogOverlay",Lo=S.forwardRef((e,t)=>{const r=Do(En,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=xt(En,e.__scopeDialog);return s.modal?o.jsx(hn,{present:n||s.open,children:o.jsx(Cf,{...i,ref:t})}):null});Lo.displayName=En;var Cf=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xt(En,r);return o.jsx(To,{as:ta,allowPinchZoom:!0,shards:[i.contentRef],children:o.jsx(Ot.div,{"data-state":ha(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),fr="DialogContent",Mo=S.forwardRef((e,t)=>{const r=Do(fr,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,s=xt(fr,e.__scopeDialog);return o.jsx(hn,{present:n||s.open,children:s.modal?o.jsx(jf,{...i,ref:t}):o.jsx(Rf,{...i,ref:t})})});Mo.displayName=fr;var jf=S.forwardRef((e,t)=>{const r=xt(fr,e.__scopeDialog),n=S.useRef(null),i=ur(t,r.contentRef,n);return S.useEffect(()=>{const s=n.current;if(s)return wf(s)},[]),o.jsx(Fo,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Yt(e.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Yt(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&s.preventDefault()}),onFocusOutside:Yt(e.onFocusOutside,s=>s.preventDefault())})}),Rf=S.forwardRef((e,t)=>{const r=xt(fr,e.__scopeDialog),n=S.useRef(!1),i=S.useRef(!1);return o.jsx(Fo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,f;(c=e.onCloseAutoFocus)==null||c.call(e,s),s.defaultPrevented||(n.current||(f=r.triggerRef.current)==null||f.focus(),s.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:s=>{var x,h;(x=e.onInteractOutside)==null||x.call(e,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=s.target;((h=r.triggerRef.current)==null?void 0:h.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),Fo=S.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...c}=e,f=xt(fr,r),x=S.useRef(null),h=ur(t,x);return Ic(),o.jsxs(o.Fragment,{children:[o.jsx(lo,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s,children:o.jsx(ao,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":ha(f.open),...c,ref:h,onDismiss:()=>f.onOpenChange(!1)})}),o.jsxs(o.Fragment,{children:[o.jsx(Tf,{titleId:f.titleId}),o.jsx(kf,{contentRef:x,descriptionId:f.descriptionId})]})]})}),ma="DialogTitle",Bo=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xt(ma,r);return o.jsx(Ot.h2,{id:i.titleId,...n,ref:t})});Bo.displayName=ma;var Vo="DialogDescription",$o=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xt(Vo,r);return o.jsx(Ot.p,{id:i.descriptionId,...n,ref:t})});$o.displayName=Vo;var Uo="DialogClose",Wo=S.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xt(Uo,r);return o.jsx(Ot.button,{type:"button",...n,ref:t,onClick:Yt(e.onClick,()=>i.onOpenChange(!1))})});Wo.displayName=Uo;function ha(e){return e?"open":"closed"}var Ho="DialogTitleWarning",[yd,Yo]=nc(Ho,{contentName:fr,titleName:ma,docsSlug:"dialog"}),Tf=({titleId:e})=>{const t=Yo(Ho),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
194
194
|
|
|
195
195
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
196
196
|
|
|
197
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},
|
|
197
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Of="DialogDescriptionWarning",kf=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Yo(Of).contentName}}.`;return S.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Nf=No,Pf=Ao,Af=Io,Go=Lo,zo=Mo,pa=Bo,Df=$o,If=Wo,Lf="VisuallyHidden",Ko=S.forwardRef((e,t)=>o.jsx(Ot.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Ko.displayName=Lf;var Mf=Ko,zt=(e=>(e.Center="center",e.Right="right",e))(zt||{});const Ff=Nf,Bf=Pf,Xo=If,qo=S.forwardRef(({showCloseIcon:e,position:t,...r},n)=>o.jsx(Go,{ref:n,className:P("inset-0 z-[99998] bg-shader-neutral-light-48 backdrop-blur-md",{fixed:t===zt.Right,absolute:t===zt.Center}),...r,children:o.jsx(Xo,{className:P("fixed right-3 top-3",{hidden:!e}),children:o.jsx(Fr,{})})}));qo.displayName=Go.displayName;const Zo=S.forwardRef(({className:e,containerId:t,showCloseOnOverlay:r,children:n,position:i=zt.Center,customWidth:s="w-80 max-w-[85vw] md:w-96",...c},f)=>{const[x,h]=te.useState(void 0);te.useEffect(()=>{const R=t?document.getElementById(t):void 0;h(R??void 0)},[t]);const _=i===zt.Right?"overflow-hidden right-0 h-screen top-0 w-full":"overflow-y-auto overflow-x-hidden left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 rounded-xl",b=i===zt.Right?"md:w-96 max-w-[500px]":s,j=i===zt.Right?"h-screen":"max-h-[80vh] h-full";return o.jsxs(Af,{container:x,children:[o.jsx(qo,{showCloseIcon:r,position:i}),o.jsxs(zo,{ref:f,className:P("fixed z-[99999] flex flex-col justify-center bg-primary-100 dark:bg-neutral-6",_,b),...c,children:[o.jsxs(Mf,{children:[o.jsx(pa,{}),o.jsx(Df,{})]}),o.jsx("div",{className:P("flex flex-1 flex-col",j),children:n})]})]})});Zo.displayName=zo.displayName;const Jo=S.forwardRef((e,t)=>o.jsx(pa,{ref:t,className:"font-inter text-title-lg text-neutral-10 dark:text-neutral-92",...e}));Jo.displayName=pa.displayName;const Qo=S.forwardRef((e,t)=>o.jsx("div",{ref:t,className:"flex-1 overflow-y-auto p-md--rs text-body-sm text-neutral-40 dark:text-neutral-60",...e}));Qo.displayName="DialogBody";const es=te.createContext({isHeaderChecked:!1,selectedRowIndexes:new Set,isHeaderIndeterminate:!1}),ts=()=>te.useContext(es);function Vf({children:e,selectedRowIndexes:t,rowIndexes:r,...n}){const i=r.length===t.size,s=!i&&t.size>0;return o.jsx(es.Provider,{value:{...n,isHeaderChecked:i,selectedRowIndexes:t,isHeaderIndeterminate:s},children:e})}function $f({paginationOptions:e,action:t,supportingLabel:r,selectedRowIndexes:n=new Set,rowIndexes:i,children:s,pageSizeSelector:c}){return o.jsx(Vf,{selectedRowIndexes:n,rowIndexes:i,children:o.jsxs("div",{className:"w-full",children:[o.jsx("div",{className:"overflow-auto",children:o.jsx("table",{className:"w-full table-auto",children:s})}),o.jsxs("div",{className:P("flex w-full items-center gap-2 pt-md",{hidden:!r&&!e&&!t,"justify-between":e,"justify-end":!e&&t}),children:[(e||t)&&o.jsxs("div",{className:"flex gap-2",children:[e&&o.jsxs(o.Fragment,{children:[o.jsx(dt,{type:Ee.Secondary,size:Qe.Small,icon:o.jsx(Xs,{}),disabled:!e.hasFirst,onClick:e.onFirst}),o.jsx(dt,{type:Ee.Secondary,size:Qe.Small,icon:o.jsx(Hs,{}),disabled:!e.hasPrev,onClick:e.onPrev}),o.jsx(dt,{type:Ee.Secondary,size:Qe.Small,icon:o.jsx(Un,{}),disabled:!e.hasNext,onClick:e.onNext}),o.jsx(dt,{type:Ee.Secondary,size:Qe.Small,icon:o.jsx(qs,{}),disabled:!e.hasLast,onClick:e.onLast})]}),t&&t]}),r||c?o.jsxs("div",{className:"flex flex-row items-center gap-x-sm",children:[r&&o.jsx("span",{className:" text-label-md text-neutral-40 dark:text-neutral-60",children:r}),c&&o.jsx("div",{className:"ml-2",children:c})]}):null]})]})})}function Uf(e){return o.jsx(dt,{type:Ee.Secondary,size:Qe.Small,...e})}function Wf({children:e}){return o.jsx("thead",{children:e})}function Hf({children:e,leading:t}){return o.jsxs("tr",{children:[t,e]})}const Yf="text-neutral-40 dark:text-neutral-60",Gf="text-body-md";function zf({children:e}){return o.jsx("tbody",{className:P(Yf,Gf),children:e})}function Kf({rowIndex:e,onCheckboxChange:t}){const{selectedRowIndexes:r}=ts();return o.jsx(qi,{isContentCentered:!0,children:o.jsx(Xn,{onCheckedChange:n=>{t(n.target.checked)},isChecked:r.has(e)})})}function Xf({onCheckboxChange:e}){const{isHeaderChecked:t,isHeaderIndeterminate:r}=ts();return o.jsx(Ji,{isContentCentered:!0,hasCheckbox:!0,onCheckboxChange:n=>{e(n.target.checked)},isChecked:t,columnKey:1,isIndeterminate:r})}function qf({items:e,activeId:t,onClickItem:r,isCollapsible:n=!1,onToggleNavbar:i}){return o.jsxs("div",{className:P("flex h-fit w-full",{"flex-col px-md py-xs sm:h-full sm:w-auto sm:px-none sm:py-xl":n}),children:[n&&o.jsxs("div",{className:"flex w-full items-center justify-between sm:mb-[48px] sm:flex-col",children:[o.jsx("div",{className:"flex justify-center [&_svg]:h-[38px] [&_svg]:w-[38px]",children:o.jsx(Zs,{className:"text-neutral-10 dark:text-neutral-92"})}),o.jsx("div",{className:"state-layer relative rounded-full p-xs hover:cursor-pointer dark:text-neutral-92 sm:hidden [&_svg]:h-6 [&_svg]:w-6",onClick:i,children:o.jsx(el,{})})]}),o.jsx("div",{className:P({"flex w-full justify-between px-sm py-xxs":!n,"hidden sm:flex sm:flex-col sm:gap-2":n}),children:e.map(s=>o.jsx("div",{className:P("flex items-center",{"px-xs py-xxs":!n,"py-xxs pl-xs pr-sm":n}),"data-testid":`nav-${s.id}`,children:o.jsx(Qn,{...s,isSelected:s.id===t,onClick:c=>{s.onClick&&s.onClick(c),s.isDisabled||r(s.id)}})},s.id))})]})}function Zf({items:e,activeId:t,onClickItem:r,isOpen:n,onToggleNavbar:i}){return o.jsxs(o.Fragment,{children:[o.jsx("div",{onClick:i,className:P("duration-800 transition-opacity ease-out",{"opacity-1 fixed left-0 top-0 h-full w-full bg-shader-neutral-light-72":n,"-translate-x-full opacity-0":!n})}),o.jsx("div",{className:P("z-999 rounded-tb-3xl fixed left-0 top-0 h-full w-11/12 rounded-tr-3xl bg-white px-lg py-lg transition-transform duration-300 ease-out dark:bg-neutral-6",{"translate-x-0":n,"-translate-x-full":!n}),children:o.jsxs("div",{className:"flex flex-col gap-2",children:[o.jsx("div",{className:"[&_svg]:h-5 [&_svg]:w-5",children:o.jsx(dt,{type:Ee.Ghost,onClick:i,icon:o.jsx(Ga,{})})}),e.map(s=>o.jsx(Qn,{...s,type:vn.Vertical,isSelected:s.id===t,onClick:()=>{r(s.id),i&&i()}},s.id))]})})]})}const Jf="text-neutral-10 dark:text-neutral-92 transition-transform ease-linear";function Qf({onToggle:e,children:t,isExpanded:r,hideArrow:n}){return o.jsxs("div",{onClick:e,className:P("state-layer relative flex cursor-pointer items-center justify-between gap-md overflow-hidden rounded-xl py-sm--rs",{"pr-md--rs":!n}),children:[t,!n&&o.jsx("div",{className:"[&_svg]:h-5 [&_svg]:w-5",children:o.jsx(dt,{type:Ee.Ghost,icon:o.jsx(Ws,{className:P(Jf,{"rotate-180":r})})})})]})}function ed({isExpanded:e,children:t}){return o.jsx("div",{className:P({hidden:!e}),children:t})}function td({children:e,hideBorder:t}){return o.jsx("div",{className:P("rounded-xl bg-neutral-100 dark:bg-neutral-6",{"border border-shader-neutral-light-8 dark:border-shader-neutral-dark-8":!t}),children:e})}function rd(e,t=6,r=6){return e.length>t+r?`${e.slice(0,t)}...${e.slice(-r)}`:e}N.Accordion=td,N.AccordionContent=ed,N.AccordionHeader=Qf,N.Account=Nu,N.Address=Ci,N.Badge=ln,N.BadgeType=st,N.Button=dt,N.ButtonHtmlType=Mr,N.ButtonPill=As,N.ButtonSegment=vl,N.ButtonSegmentType=wr,N.ButtonSize=Qe,N.ButtonType=Ee,N.ButtonUnstyled=nt,N.Card=Uu,N.CardAction=Wu,N.CardActionType=Gr,N.CardBody=Ku,N.CardImage=zu,N.CardType=Er,N.Checkbox=Xn,N.Chip=Bl,N.Dialog=Ff,N.DialogBody=Qo,N.DialogClose=Xo,N.DialogContent=Zo,N.DialogPosition=zt,N.DialogTitle=Jo,N.DialogTrigger=Bf,N.DisplayStats=tc,N.DisplayStatsSize=gt,N.DisplayStatsType=Ft,N.Divider=_i,N.DividerType=Wt,N.Dropdown=Xi,N.DropdownPosition=Hr,N.Header=El,N.IOTA_PRIMITIVES_COLOR_PALETTE=Na,N.ImageShape=lr,N.ImageType=sr,N.InfoBox=Tl,N.InfoBoxStyle=$r,N.InfoBoxType=Rt,N.Input=bu,N.InputType=pt,N.KeyValueInfo=bl,N.LabelText=Sl,N.LabelTextSize=lt,N.ListItem=wi,N.LoadingIndicator=Pl,N.Navbar=qf,N.NavbarItem=Qn,N.NavbarItemType=vn,N.NavbarSlideout=Zf,N.Panel=Cl,N.Placeholder=Ei,N.RadioButton=ol,N.Resize=Pi,N.SHADER_COLOR_PALETTE=Pa,N.ScreenSize=jt,N.Search=Fu,N.SearchBarType=Tt,N.SegmentedButton=Ul,N.SegmentedButtonType=nr,N.Select=Du,N.SelectSize=Yr,N.Skeleton=Al,N.Snackbar=kl,N.SnackbarType=ht,N.Table=$f,N.TableActionButton=Uf,N.TableBody=zf,N.TableCellBase=qi,N.TableCellPlaceholder=Au,N.TableCellText=Pu,N.TableHeader=Wf,N.TableHeaderCell=Ji,N.TableHeaderCellSortOrder=or,N.TableHeaderCheckbox=Xf,N.TableRow=Hf,N.TableRowCheckbox=Kf,N.TextArea=Su,N.Title=Yl,N.TitleSize=ar,N.Tooltip=Vr,N.TooltipPosition=rr,N.ValueSize=Br,N.VisualAssetCard=Nl,N.VisualAssetType=cn,N.truncate=rd,N.uiKitResponsivePreset=ps,N.uiKitStaticPreset=xs,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
|
198
198
|
//# sourceMappingURL=index.umd.js.map
|