diff --git a/providers/edge3/src/airflow/providers/edge3/openapi/v2-edge-generated.yaml b/providers/edge3/src/airflow/providers/edge3/openapi/v2-edge-generated.yaml index 870ab123325d3..abfb61f1a54be 100644 --- a/providers/edge3/src/airflow/providers/edge3/openapi/v2-edge-generated.yaml +++ b/providers/edge3/src/airflow/providers/edge3/openapi/v2-edge-generated.yaml @@ -751,6 +751,79 @@ paths: application/json: schema: $ref: '#/components/schemas/HTTPValidationError' + /edge_worker/ui/worker/{worker_name}/queues/{queue_name}: + put: + tags: + - UI + summary: Add Worker Queue + description: Add a queue to a worker. + operationId: add_worker_queue + security: + - OAuth2PasswordBearer: [] + - HTTPBearer: [] + parameters: + - name: worker_name + in: path + required: true + schema: + type: string + title: Worker Name + - name: queue_name + in: path + required: true + schema: + type: string + title: Queue Name + responses: + '200': + description: Successful Response + content: + application/json: + schema: + type: 'null' + title: Response Add Worker Queue + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + delete: + tags: + - UI + summary: Remove Worker Queue + description: Remove a queue from a worker. + operationId: remove_worker_queue + security: + - OAuth2PasswordBearer: [] + - HTTPBearer: [] + parameters: + - name: worker_name + in: path + required: true + schema: + type: string + title: Worker Name + - name: queue_name + in: path + required: true + schema: + type: string + title: Queue Name + responses: + '200': + description: Successful Response + content: + application/json: + schema: + type: 'null' + title: Response Remove Worker Queue + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' components: schemas: BundleInfo: diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs index 3b28f8b465402..2e7788801ee7a 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs @@ -1,4 +1,4 @@ -(function(P,St){typeof exports=="object"&&typeof module<"u"?module.exports=St(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],St):(P=typeof globalThis<"u"?globalThis:P||self,P.AirflowPlugin=St(P.React,P.ReactDOM))})(this,(function(P,St){"use strict";function cp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=cp(P);function up(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $i={exports:{}},Yn={};/** +(function(P,It){typeof exports=="object"&&typeof module<"u"?module.exports=It(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],It):(P=typeof globalThis<"u"?globalThis:P||self,P.AirflowPlugin=It(P.React,P.ReactDOM))})(this,(function(P,It){"use strict";function gp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=gp(P);function pp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bi={exports:{}},cr={};/** * @license React * react-jsx-runtime.production.js * @@ -6,27 +6,27 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var il;function dp(){if(il)return Yn;il=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:i}}return Yn.Fragment=t,Yn.jsx=n,Yn.jsxs=n,Yn}var sl;function hp(){return sl||(sl=1,$i.exports=dp()),$i.exports}var m=hp();function al(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var fp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gp=al(function(e){return fp.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function pp(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ce(mn,--Ne):0,pn--,ue===10&&(pn=1,no--),ue}function ze(){return ue=Ne2||Zn(ue)>3?"":" "}function Ip(e,t){for(;--t&&ze()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return Jn(e,oo()+(t<6&&st()==32&&ze()==32))}function Gi(e){for(;ze();)switch(ue){case e:return Ne;case 34:case 39:e!==34&&e!==39&&Gi(ue);break;case 40:e===41&&Gi(e);break;case 92:ze();break}return Ne}function Rp(e,t){for(;ze()&&e+ue!==57;)if(e+ue===84&&st()===47)break;return"/*"+Jn(t,Ne-1)+"*"+eo(e===47?e:ze())}function Tp(e){for(;!Zn(st());)ze();return Jn(e,Ne)}function Np(e){return fl(so("",null,null,null,[""],e=hl(e),0,[0],e))}function so(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,h=0,p=0,f=0,g=1,v=1,y=1,b=0,x="",C=o,k=i,E=r,I=x;v;)switch(f=b,b=ze()){case 40:if(f!=108&&Ce(I,d-1)==58){Hi(I+=Q(io(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:I+=io(b);break;case 9:case 10:case 13:case 32:I+=Pp(f);break;case 92:I+=Ip(oo()-1,7);continue;case 47:switch(st()){case 42:case 47:to(Ap(Rp(ze(),oo()),t,n),l);break;default:I+="/"}break;case 123*g:a[c++]=it(I)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(I=Q(I,/\f/g,"")),p>0&&it(I)-d&&to(p>32?pl(I+";",r,n,d-1):pl(Q(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(to(E=gl(I,t,n,c,u,o,a,x,C=[],k=[],d),i),b===123)if(u===0)so(I,t,E,E,C,i,d,a,k);else switch(h===99&&Ce(I,3)===110?100:h){case 100:case 108:case 109:case 115:so(e,E,E,r&&to(gl(e,E,E,0,0,o,a,x,o,C=[],d),k),o,k,d,a,r?C:k);break;default:so(I,E,E,E,[""],k,0,a,k)}}c=u=p=0,g=y=1,x=I="",d=s;break;case 58:d=1+it(I),p=f;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&Op()==125)continue}switch(I+=eo(b),b*g){case 38:y=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(it(I)-1)*y,y=1;break;case 64:st()===45&&(I+=io(ze())),h=st(),u=d=it(x=I+=Tp(oo())),b++;break;case 45:f===45&&it(I)==2&&(g=0)}}return i}function gl(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,h=o===0?i:[""],p=Ui(h),f=0,g=0,v=0;f0?h[y]+" "+b:Q(b,/&\f/g,h[y])))&&(l[v++]=x);return ro(e,t,n,o===0?Bi:a,l,c,u)}function Ap(e,t,n){return ro(e,t,n,ll,eo(Ep()),Xn(e,2,-2),0)}function pl(e,t,n,r){return ro(e,t,n,Wi,Xn(e,0,r),Xn(e,r+1,-1),r)}function vn(e,t){for(var n="",r=Ui(e),o=0;o6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+Zr+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hi(e,"stretch")?vl(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,it(e)-3-(~Hi(e,"!important")&&10))){case 107:return Q(e,":",":"+X)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(Ce(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+Oe+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return X+e+Oe+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+Oe+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+Oe+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+Oe+e+e}return e}var $p=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Wi:t.return=vl(t.value,t.length);break;case cl:return vn([Qn(t,{value:Q(t.value,"@","@"+X)})],o);case Bi:if(t.length)return wp(t.props,function(i){switch(Sp(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vn([Qn(t,{props:[Q(i,/:(read-\w+)/,":"+Zr+"$1")]})],o);case"::placeholder":return vn([Qn(t,{props:[Q(i,/:(plac\w+)/,":"+X+"input-$1")]}),Qn(t,{props:[Q(i,/:(plac\w+)/,":"+Zr+"$1")]}),Qn(t,{props:[Q(i,/:(plac\w+)/,Oe+"input-$1")]})],o)}return""})}},Bp=[$p],Wp=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Bp,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y0?Ce(Tn,--Ae):0,Rn--,ue===10&&(Rn=1,no--),ue}function je(){return ue=Ae2||fr(ue)>3?"":" "}function _p(e,t){for(;--t&&je()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return hr(e,oo()+(t<6&&st()==32&&je()==32))}function qi(e){for(;je();)switch(ue){case e:return Ae;case 34:case 39:e!==34&&e!==39&&qi(ue);break;case 40:e===41&&qi(e);break;case 92:je();break}return Ae}function Vp(e,t){for(;je()&&e+ue!==57;)if(e+ue===84&&st()===47)break;return"/*"+hr(t,Ae-1)+"*"+eo(e===47?e:je())}function Fp(e){for(;!fr(st());)je();return hr(e,Ae)}function Lp(e){return gl(so("",null,null,null,[""],e=fl(e),0,[0],e))}function so(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,h=0,m=0,f=0,p=1,v=1,y=1,b=0,x="",C=o,k=i,E=r,I=x;v;)switch(f=b,b=je()){case 40:if(f!=108&&Ce(I,d-1)==58){Ui(I+=Q(io(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:I+=io(b);break;case 9:case 10:case 13:case 32:I+=Ap(f);break;case 92:I+=_p(oo()-1,7);continue;case 47:switch(st()){case 42:case 47:to(Dp(Vp(je(),oo()),t,n),l);break;default:I+="/"}break;case 123*p:a[c++]=it(I)*y;case 125*p:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:y==-1&&(I=Q(I,/\f/g,"")),m>0&&it(I)-d&&to(m>32?ml(I+";",r,n,d-1):ml(Q(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(to(E=pl(I,t,n,c,u,o,a,x,C=[],k=[],d),i),b===123)if(u===0)so(I,t,E,E,C,i,d,a,k);else switch(h===99&&Ce(I,3)===110?100:h){case 100:case 108:case 109:case 115:so(e,E,E,r&&to(pl(e,E,E,0,0,o,a,x,o,C=[],d),k),o,k,d,a,r?C:k);break;default:so(I,E,E,E,[""],k,0,a,k)}}c=u=m=0,p=y=1,x=I="",d=s;break;case 58:d=1+it(I),m=f;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&Np()==125)continue}switch(I+=eo(b),b*p){case 38:y=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(it(I)-1)*y,y=1;break;case 64:st()===45&&(I+=io(je())),h=st(),u=d=it(x=I+=Fp(oo())),b++;break;case 45:f===45&&it(I)==2&&(p=0)}}return i}function pl(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,h=o===0?i:[""],m=Gi(h),f=0,p=0,v=0;f0?h[y]+" "+b:Q(b,/&\f/g,h[y])))&&(l[v++]=x);return ro(e,t,n,o===0?Wi:a,l,c,u)}function Dp(e,t,n){return ro(e,t,n,cl,eo(Tp()),ur(e,2,-2),0)}function ml(e,t,n,r){return ro(e,t,n,Hi,ur(e,0,r),ur(e,r+1,-1),r)}function Nn(e,t){for(var n="",r=Gi(e),o=0;o6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+Zr+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ui(e,"stretch")?bl(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,it(e)-3-(~Ui(e,"!important")&&10))){case 107:return Q(e,":",":"+X)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(Ce(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+Oe+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return X+e+Oe+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+Oe+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+Oe+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+Oe+e+e}return e}var Gp=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Hi:t.return=bl(t.value,t.length);break;case ul:return Nn([dr(t,{value:Q(t.value,"@","@"+X)})],o);case Wi:if(t.length)return Rp(t.props,function(i){switch(Ip(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nn([dr(t,{props:[Q(i,/:(read-\w+)/,":"+Zr+"$1")]})],o);case"::placeholder":return Nn([dr(t,{props:[Q(i,/:(plac\w+)/,":"+X+"input-$1")]}),dr(t,{props:[Q(i,/:(plac\w+)/,":"+Zr+"$1")]}),dr(t,{props:[Q(i,/:(plac\w+)/,Oe+"input-$1")]})],o)}return""})}},qp=[Gp],Kp=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=t.stylisPlugins||qp,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),y=1;y=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Yp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Xp=/[A-Z]|^ms/g,Qp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Cl=function(t){return t.charCodeAt(1)===45},Sl=function(t){return t!=null&&typeof t!="boolean"},Qi=al(function(e){return Cl(e)?e:e.replace(Xp,"-$&").toLowerCase()}),wl=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Qp,function(r,o,i){return at={name:o,styles:i,next:at},o})}return Yp[t]!==1&&!Cl(t)&&typeof n=="number"&&n!==0?n+"px":n};function er(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return at={name:o.name,styles:o.styles,next:at},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)at={name:s.name,styles:s.styles,next:at},s=s.next;var a=i.styles+";";return a}return Jp(e,t,n)}case"function":{if(e!==void 0){var l=at,c=n(e);return at=l,er(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Jp(e,t,n){var r="";if(Array.isArray(n))for(var o=0;or?.(...n))}}const im=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),sm=/^on[A-Z]/;function tr(...e){let t={};for(let n of e){for(let r in t){if(sm.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=om(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=im(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function am(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function lm(...e){return t=>{e.forEach(n=>{am(n,t)})}}function nr(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const Ue=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function cm(e){return e.default||e}const Ae=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),lt=e=>typeof e=="string",rs=e=>typeof e=="function";function um(e){const t=O.version;return!lt(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const Al=(...e)=>{const t=e.reduce((n,r)=>(r?.forEach(o=>n.add(o)),n),new Set([]));return Array.from(t)};function dm(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function bn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=P.createContext(s);a.displayName=t;function l(){const c=P.useContext(a);if(!c&&n){const u=new Error(i??dm(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const[hm,ao]=bn({name:"ChakraContext",strict:!0,providerName:""});function fm(e){const{value:t,children:n}=e;return m.jsxs(hm,{value:t,children:[!t._config.disableLayers&&m.jsx(Nl,{styles:t.layers.atRule}),m.jsx(Nl,{styles:t._global}),n]})}const gm=(e,t)=>{const n={},r={},o=Object.keys(e);for(const i of o)t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]},yn=(e,t)=>{const n=rs(t)?t:r=>t.includes(r);return gm(e,n)},pm=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function mm(e){return typeof e=="string"&&pm.has(e)}function vm(e,t,n){const{css:r,isValidProperty:o}=ao(),{children:i,...s}=e,a=P.useMemo(()=>{const[h,p]=yn(s,b=>n(b,t.variantKeys)),[f,g]=yn(p,t.variantKeys),[v,y]=yn(g,o);return{forwardedProps:h,variantProps:f,styleProps:v,elementProps:y}},[t.variantKeys,n,s,o]),{css:l,...c}=a.styleProps,u=P.useMemo(()=>{const h={...a.variantProps};return t.variantKeys.includes("colorPalette")||(h.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(h.orientation=s.orientation),t(h)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:P.useMemo(()=>r(u,...bm(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const bm=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),ym=cm(gp),xm=e=>e!=="theme",km=(e,t,n)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let Cm=typeof document<"u";const _l=({cache:e,serialized:t,isStringTag:n})=>{Yi(e,t,n);const r=Pl(()=>Xi(e,t,n));if(!Cm&&r!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=Ue(o,i.name),i=i.next;return m.jsx("style",{"data-emotion":Ue(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},Vl={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},Sm=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),os=((e,t={},n={})=>{if(Sm(Vl,e)){n.forwardProps||(n.forwardProps=[]);const c=Vl[e];n.forwardProps=Al([...n.forwardProps,...c])}const r=e.__emotion_real===e,o=r&&e.__emotion_base||e;let i,s;n!==void 0&&(i=n.label,s=n.target);let a=[];const l=Zi((c,u,d)=>{const{cva:h,isValidProperty:p}=ao(),f=t.__cva__?t:h(t),g=wm(e.__emotion_cva,f),v=D=>(q,K)=>D.includes(q)?!0:!K?.includes(q)&&!p(q);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=v(n.forwardProps));const y=(D,q)=>{const K=typeof e=="string"&&e.charCodeAt(0)>96?ym:xm,ce=!q?.includes(D)&&!p(D);return K(D)&&ce},b=km(e,n,r)||y,x=O.useMemo(()=>Object.assign({},n.defaultProps,nr(c)),[c]),{props:C,styles:k}=vm(x,g,b);let E="",I=[k],R=C;if(C.theme==null){R={};for(let D in C)R[D]=C[D];R.theme=O.useContext(es)}typeof C.className=="string"?E=kl(u.registered,I,C.className):C.className!=null&&(E=Ue(E,C.className));const _=Ji(a.concat(I),u.registered,R);_.styles&&(E=Ue(E,`${u.key}-${_.name}`)),s!==void 0&&(E=Ue(E,s));const A=!b("as");let T=A&&C.as||o,S={};for(let D in C)if(!(A&&D==="as")){if(mm(D)){const q=D.replace("html","").toLowerCase();S[q]=C[D];continue}b(D)&&(S[D]=C[D])}let N=E.trim();N?S.className=N:Reflect.deleteProperty(S,"className"),S.ref=d;const z=n.forwardAsChild||n.forwardProps?.includes("asChild");if(C.asChild&&!z){const D=O.isValidElement(C.children)?O.Children.only(C.children):O.Children.toArray(C.children).find(O.isValidElement);if(!D)throw new Error("[chakra-ui > factory] No valid child found");T=D.type,S.children=null,Reflect.deleteProperty(S,"asChild"),S=tr(S,D.props),S.ref=lm(d,um(D))}return S.as&&z?(S.as=void 0,m.jsxs(O.Fragment,{children:[m.jsx(_l,{cache:u,serialized:_,isStringTag:typeof T=="string"}),m.jsx(T,{asChild:!0,...S,children:m.jsx(C.as,{children:S.children})})]})):m.jsxs(O.Fragment,{children:[m.jsx(_l,{cache:u,serialized:_,isStringTag:typeof T=="string"}),m.jsx(T,{...S})]})});return l.displayName=i!==void 0?i:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),is=new Map,me=new Proxy(os,{apply(e,t,n){return os(...n)},get(e,t){return is.has(t)||is.set(t,os(t)),is.get(t)}}),wm=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),rr=me("div");rr.displayName="Box";const Em=Object.freeze({}),Om=Object.freeze({});function Pm(e){const{key:t,recipe:n}=e,r=ao();return P.useMemo(()=>{const o=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(o))},[t,n,r])}const Im=e=>e.charAt(0).toUpperCase()+e.slice(1);function jt(e){const{key:t,recipe:n}=e,r=Im(t||n.className||"Component"),[o,i]=bn({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...d}=c,h=Pm({key:t,recipe:d.recipe||n}),[p,f]=P.useMemo(()=>h.splitVariantProps(d),[h,d]);return{styles:u?Em:h(p),className:h.className,props:f}}const a=(c,u)=>{const d=me(c,{},u),h=P.forwardRef((p,f)=>{const g=i(),v=P.useMemo(()=>tr(g,p),[p,g]),{styles:y,className:b,props:x}=s(v);return m.jsx(d,{...x,ref:f,css:[y,v.css],className:Ue(b,v.className)})});return h.displayName=c.displayName||c.name,h};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}function lo(e){return e==null?[]:Array.isArray(e)?e:[e]}var or=e=>e[0],ss=e=>e[e.length-1],Rm=(e,t)=>e.indexOf(t)!==-1,$t=(e,...t)=>e.concat(t),Bt=(e,...t)=>e.filter(n=>!t.includes(n)),xn=e=>Array.from(new Set(e)),as=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},kn=(e,t)=>Rm(e,t)?Bt(e,t):$t(e,t);function Fl(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function Tm(e,t,n={}){return e[Fl(e,t,n)]}function Nm(e,t,n={}){const{step:r=1,loop:o=!0}=n;return Fl(e,t,{step:-r,loop:o})}function Am(e,t,n={}){return e[Nm(e,t,n)]}function Ll(e,t){return e.reduce(([n,r],o)=>(t(o)?n.push(o):r.push(o),[n,r]),[[],[]])}var Dl=e=>e?.constructor.name==="Array",_m=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(Dl(e)&&Dl(t))return _m(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;oArray.isArray(e),Vm=e=>e===!0||e===!1,zl=e=>e!=null&&typeof e=="object",Wt=e=>zl(e)&&!ir(e),co=e=>typeof e=="string",Ht=e=>typeof e=="function",Fm=e=>e==null,wt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Lm=e=>Object.prototype.toString.call(e),Ml=Function.prototype.toString,Dm=Ml.call(Object),zm=e=>{if(!zl(e)||Lm(e)!="[object Object]"||$m(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=wt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ml.call(n)==Dm},Mm=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,jm=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,$m=e=>Mm(e)||jm(e),uo=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,Bm=e=>e(),Wm=()=>{},ho=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})},Hm=(()=>{let e=0;return()=>(e++,e.toString(36))})();function vt(e,t,...n){if(e in t){const o=t[e];return Ht(o)?o(...n):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,vt),r}var jl=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,jl),t?.()}},{floor:$l,abs:Bl,round:fo,min:Um,max:Gm,pow:qm,sign:Km}=Math,ls=e=>Number.isNaN(e),Et=e=>ls(e)?0:e,Wl=(e,t)=>(e%t+t)%t,Ym=(e,t)=>(e%t+t)%t,Xm=(e,t)=>Et(e)>=t,Qm=(e,t)=>Et(e)<=t,Jm=(e,t,n)=>{const r=Et(e),o=t==null||r>=t,i=n==null||r<=n;return o&&i},Zm=(e,t,n)=>fo((Et(e)-t)/n)*n+t,_e=(e,t,n)=>Um(Gm(Et(e),t),n),e0=(e,t,n)=>(Et(e)-t)/(n-t),t0=(e,t,n,r)=>_e(Zm(e*(n-t)+t,t,r),t,n),Hl=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=qm(10,i);n=fo(n*s)/s}return n},cs=(e,t)=>typeof t=="number"?$l(e*t+.5)/t:fo(e),Ul=(e,t,n,r)=>{const o=t!=null?Number(t):0,i=Number(n),s=(e-o)%r;let a=Bl(s)*2>=r?e+Km(s)*(r-Bl(s)):e-s;if(a=Hl(a,r),!ls(o)&&ai){const l=$l((i-o)/r),c=o+l*r;a=l<=0||c{const r=Math.pow(n,t);return fo(e*r)/r},Gl=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},ql=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(Gl(e),Gl(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},n0=(e,t)=>ql(Et(e),"+",t),r0=(e,t)=>ql(Et(e),"-",t);function go(e){if(!zm(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=go(o))}return n}function o0(e,t=Object.is){let n={...e};const r=new Set,o=u=>(r.add(u),()=>r.delete(u)),i=()=>{r.forEach(u=>u())};return{subscribe:o,get:u=>n[u],set:(u,d)=>{t(n[u],d)||(n[u]=d,i())},update:u=>{let d=!1;for(const h in u){const p=u[h];p!==void 0&&!t(n[h],p)&&(n[h]=p,d=!0)}d&&i()},snapshot:()=>({...n})}}function sr(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function Kl(e,t){if(e==null)throw new Error(t())}function i0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Cn(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=P.createContext(s);a.displayName=t;function l(){const c=P.useContext(a);if(!c&&n){const u=new Error(i??i0(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const[FR,Yl]=Cn({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function s0(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var Xl=e=>Math.max(0,Math.min(1,e)),a0=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),Ql=()=>{},po=e=>typeof e=="object"&&e!==null,l0=2147483647,c0=1,u0=9,d0=11,Re=e=>po(e)&&e.nodeType===c0&&typeof e.nodeName=="string",us=e=>po(e)&&e.nodeType===u0,h0=e=>po(e)&&e===e.window,Jl=e=>Re(e)?e.localName||"":"#document";function f0(e){return["html","body","#document"].includes(Jl(e))}var g0=e=>po(e)&&e.nodeType!==void 0,Sn=e=>g0(e)&&e.nodeType===d0&&"host"in e,p0=e=>Re(e)&&e.localName==="input",m0=e=>Re(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,v0=/(textarea|select)/;function Zl(e){if(e==null||!Re(e))return!1;try{return p0(e)&&e.selectionStart!=null||v0.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Ut(e,t){if(!e||!t||!Re(e)||!Re(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Sn(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Ve(e){return us(e)?e:h0(e)?e.document:e?.ownerDocument??document}function b0(e){return Ve(e).documentElement}function ve(e){return Sn(e)?ve(e.host):us(e)?e.defaultView??window:Re(e)?e.ownerDocument?.defaultView??window:window}function ec(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function y0(e){if(Jl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Sn(e)&&e.host||b0(e);return Sn(t)?t.host:t}var ds=new WeakMap;function mo(e){return ds.has(e)||ds.set(e,ve(e).getComputedStyle(e)),ds.get(e)}var vo=()=>typeof document<"u";function x0(){return navigator.userAgentData?.platform??navigator.platform}function k0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var hs=e=>vo()&&e.test(x0()),tc=e=>vo()&&e.test(k0()),C0=e=>vo()&&e.test(navigator.vendor),nc=()=>vo()&&!!navigator.maxTouchPoints,S0=()=>hs(/^iPhone/i),w0=()=>hs(/^iPad/i)||yo()&&navigator.maxTouchPoints>1,bo=()=>S0()||w0(),E0=()=>yo()||bo(),yo=()=>hs(/^Mac/i),rc=()=>E0()&&C0(/apple/i),O0=()=>tc(/Firefox/i),P0=()=>tc(/Android/i);function I0(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function Me(e){return I0(e)?.[0]??e.target}function R0(e){return _0(e).isComposing||e.keyCode===229}function T0(e){return e.pointerType===""&&e.isTrusted?!0:P0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var N0=e=>e.button===2||yo()&&e.ctrlKey&&e.button===0,A0=e=>"touches"in e&&e.touches.length>0;function _0(e){return e.nativeEvent??e}function V0(e,t="client"){const n=A0(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var ie=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,n,r),()=>{o?.removeEventListener(t,n,r)}};function F0(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=ve(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function L0(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function xo(e,t,n="value"){if(!e)return;const r=L0(e);r&&F0(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function D0(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=ve(e);e instanceof o.HTMLInputElement&&(xo(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function z0(e){return M0(e)?e.form:e.closest("form")}function M0(e){return e.matches("textarea, input, select, button")}function j0(e,t){if(!e)return;const n=z0(e),r=o=>{o.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function $0(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=ve(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function fs(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[j0(e,r),$0(e,n)];return()=>o.forEach(i=>i?.())}var oc=e=>Re(e)&&e.tagName==="IFRAME",B0=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),W0=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,gs="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",ic=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(gs));(t==!0||t=="if-empty"&&n.length===0)&&Re(e)&&Ot(e)&&n.unshift(e);const o=n.filter(Ot);return o.forEach((i,s)=>{if(oc(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...ic(a))}}),o};function Ot(e){return!e||e.closest("[inert]")?!1:e.matches(gs)&&m0(e)}function ps(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(gs)).filter(Gt);return r.forEach((o,i)=>{if(oc(o)&&o.contentDocument){const s=o.contentDocument.body,a=ps(s);r.splice(i,1,...a)}}),r.length,r}function Gt(e){return e!=null&&e.tabIndex>0?!0:Ot(e)&&!W0(e)}function ar(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Zl(e))&&!B0(e)?0:e.tabIndex}function ms(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=ps(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}function vs(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function G(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function H0(e,t,n){const r=G(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function U0(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function ko(e,t){const{defer:n}=t,r=n?G:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(U0(i,t))})),()=>{o.forEach(i=>i?.())}}function sc(e){const t=()=>{const n=ve(e);e.dispatchEvent(new n.MouseEvent("click"))};O0()?H0(e,"keyup",t):queueMicrotask(t)}function Co(e){const t=y0(e);return f0(t)?Ve(t).body:Re(t)&&bs(t)?t:Co(t)}function ac(e,t=[]){const n=Co(e),r=n===e.ownerDocument.body,o=ve(n);return r?t.concat(o,o.visualViewport||[],bs(n)?n:[]):t.concat(n,ac(n,[]))}var G0=/auto|scroll|overlay|hidden|clip/,q0=new Set(["inline","contents"]);function bs(e){const t=ve(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return G0.test(n+o+r)&&!q0.has(i)}function K0(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function So(e,t){const{rootEl:n,...r}=t||{};!e||!n||!bs(n)||!K0(n)||e.scrollIntoView(r)}function lc(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:Xl(s.x/o),y:Xl(s.y/i)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:h}=c,p=typeof h=="object"?h.x:h,f=typeof h=="object"?h.y:h;return d==="horizontal"?u==="rtl"||p?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function Y0(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[ie(e,"pointerlockchange",i,!1),ie(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var wn="default",ys="",wo=new WeakMap;function X0(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return bo()?(wn==="default"&&(ys=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),wn="disabled"):t&&(wo.set(t,t.style.userSelect),t.style.userSelect="none"),()=>Q0({target:t,doc:r})}function Q0(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(bo()){if(wn!=="disabled")return;wn="restoring",setTimeout(()=>{vs(()=>{wn==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=ys||""),ys="",wn="default")})},300)}else if(t&&wo.has(t)){const i=wo.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),wo.delete(t)}}function cc(e={}){const{defer:t,target:n,...r}=e,o=t?G:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(X0({...r,target:s}))})),()=>{i.forEach(s=>s?.())}}function J0(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=[ie(e,"pointermove",s=>{const a=V0(s),l=Math.sqrt(a.x**2+a.y**2),c=s.pointerType==="touch"?10:5;if(!(l{i.forEach(s=>s())}}function Eo(e,t){return Array.from(e?.querySelectorAll(t)??[])}function Z0(e,t){return e?.querySelector(t)??null}var xs=e=>e.id;function ev(e,t,n=xs){return e.find(r=>n(r)===t)}function ks(e,t,n=xs){const r=ev(e,t,n);return r?e.indexOf(r):-1}function tv(e,t,n=!0){let r=ks(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function nv(e,t,n=!0){let r=ks(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var rv=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),ov=e=>rv(e.dataset?.valuetext??e.textContent??""),iv=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function sv(e,t,n,r=xs){const o=n?ks(e,n,r):-1;let i=n?a0(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>iv(ov(a),t))}function Oo(e,t){if(!e)return Ql;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function av(e,t,n){if(!e)return Ql;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function lv(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let u=e.slice();const d=sv(u,c,r,s);function h(){clearTimeout(n.timer),n.timer=-1}function p(f){n.keysSoFar=f,h(),f!==""&&(n.timer=+setTimeout(()=>{p(""),h()},i))}return p(a),d}var lr=Object.assign(lv,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:cv});function cv(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function uv(e,t,n){const{signal:r}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{r.aborted||(clearTimeout(l),s(c))}).catch(c=>{r.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function dv(e,t){const{timeout:n,rootNode:r}=t,o=ve(r),i=Ve(r),s=new o.AbortController;return uv(new Promise(a=>{const l=e();if(l){a(l);return}const c=new o.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(i.body,{childList:!0,subtree:!0})}),s,n)}var hv=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),fv=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,uc=e=>{const t={};let n;for(;n=fv.exec(e);)t[n[1]]=n[2];return t},gv=(e,t)=>{if(co(e)){if(co(t))return`${e};${t}`;e=uc(e)}else co(t)&&(t=uc(t));return Object.assign({},e??{},t??{})};function Je(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=ho(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=hv(t[r],n[r]);continue}if(r==="style"){t[r]=gv(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function dc(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((l,c)=>!Qe(r[c],l)))&&(r=s,o=t(...s)),o}}function Pt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function LR(e){return e}function hc(){return{guards:Pt(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}var En=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(En||{}),Cs="__init__";function pv(e){const t=()=>e.getRootNode?.()??document,n=()=>Ve(t()),r=()=>n().defaultView??window,o=()=>ec(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}function Po(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function mv(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Ss=e=>{const t=P.memo(P.forwardRef((n,r)=>{const{asChild:o,children:i,...s}=n;if(!o)return P.createElement(e,{...s,ref:r},i);if(!P.isValidElement(i))return null;const a=P.Children.only(i),l=mv(a);return P.cloneElement(a,{...Je(s,a.props),ref:r?Po(r,l):l})}));return t.displayName=e.displayName||e.name,t},It=(()=>{const e=new Map;return new Proxy(Ss,{apply(t,n,r){return Ss(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Ss(r)),e.get(r)}})})(),[zR,vv]=Cn({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),fc=()=>(e,t)=>t.reduce((n,r)=>{const[o,i]=n,s=r;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),gc=e=>fc()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function bv(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var M=()=>e=>Array.from(new Set(e));function yv(e,t){const{state:n,send:r,context:o}=e,i=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&r({type:"NODE.SET",node:s})},unmount(){r({type:"UNMOUNT"})}}}var xv={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",mo(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&i?.ownerDocument.visibilityState==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});G(()=>{const s=Io(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{G(()=>{e.set("prevAnimationName",Io(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const o=a=>{(a.composedPath?.()?.[0]??a.target)===r&&e.set("prevAnimationName",Io(t.get("styles")))},i=a=>{const l=Io(t.get("styles"));Me(a)===r&&l===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",o),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i);const s=Oo(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i),vs(()=>s())}}}}};function Io(e){return e?.animationName||"none"}M()(["onExitComplete","present","immediate"]);var pc=typeof globalThis.document<"u"?P.useLayoutEffect:P.useEffect;function Ro(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=P.useState(t),[o,i]=P.useState(r),s=e().value!==void 0,a=P.useRef(o);a.current=s?e().value:o;const l=P.useRef(a.current);pc(()=>{l.current=a.current},[o,e().value]);const c=d=>{const h=l.current,p=Ht(d)?d(h):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:p,prev:h}),s||i(p),n(p,h)||e().onChange?.(p,h)};function u(){return s?e().value:o}return{initial:r,ref:a,get:u,set(d){(e().sync?St.flushSync:Bm)(()=>c(d))},invoke(d,h){e().onChange?.(d,h)},hash(d){return e().hash?.(d)??String(d)}}}Ro.cleanup=e=>{P.useEffect(()=>e,[])},Ro.ref=e=>{const t=P.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function kv(e){const t=P.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var Cv=(e,t)=>{const n=P.useRef(!1),r=P.useRef(!1);P.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),P.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function mc(e,t={}){const n=P.useMemo(()=>{const{id:T,ids:S,getRootNode:N}=t;return pv({id:T,ids:S,getRootNode:N})},[t]),r=(...T)=>{e.debug&&console.log(...T)},o=e.props?.({props:go(t),scope:n})??t,i=Sv(o),s=e.context?.({prop:i,bindable:Ro,scope:n,flush:bc,getContext(){return l},getComputed(){return k},getRefs(){return g},getEvent(){return p()}}),a=vc(s),l={get(T){return a.current?.[T].ref.current},set(T,S){a.current?.[T].set(S)},initial(T){return a.current?.[T].initial},hash(T){const S=a.current?.[T].get();return a.current?.[T].hash(S)}},c=P.useRef(new Map),u=P.useRef(null),d=P.useRef(null),h=P.useRef({type:""}),p=()=>({...h.current,current(){return h.current},previous(){return d.current}}),f=()=>({...E,matches(...T){return T.includes(E.ref.current)},hasTag(T){return!!e.states[E.ref.current]?.tags?.includes(T)}}),g=kv(e.refs?.({prop:i,context:l})??{}),v=()=>({state:f(),context:l,event:p(),prop:i,send:A,action:y,guard:b,track:Cv,refs:g,computed:k,flush:bc,scope:n,choose:C}),y=T=>{const S=Ht(T)?T(v()):T;if(!S)return;const N=S.map(z=>{const D=e.implementations?.actions?.[z];return D||sr(`[zag-js] No implementation found for action "${JSON.stringify(z)}"`),D});for(const z of N)z?.(v())},b=T=>Ht(T)?T(v()):e.implementations?.guards?.[T](v()),x=T=>{const S=Ht(T)?T(v()):T;if(!S)return;const N=S.map(D=>{const q=e.implementations?.effects?.[D];return q||sr(`[zag-js] No implementation found for effect "${JSON.stringify(D)}"`),q}),z=[];for(const D of N){const q=D?.(v());q&&z.push(q)}return()=>z.forEach(D=>D?.())},C=T=>lo(T).find(S=>{let N=!S.guard;return co(S.guard)?N=!!b(S.guard):Ht(S.guard)&&(N=S.guard(v())),N}),k=T=>{Kl(e.computed,()=>"[zag-js] No computed object found on machine");const S=e.computed[T];return S({context:l,event:p(),prop:i,refs:g,scope:n,computed:k})},E=Ro(()=>({defaultValue:e.initialState({prop:i}),onChange(T,S){S&&(c.current.get(S)?.(),c.current.delete(S)),S&&y(e.states[S]?.exit),y(u.current?.actions);const N=x(e.states[T]?.effects);if(N&&c.current.set(T,N),S===Cs){y(e.entry);const z=x(e.effects);z&&c.current.set(Cs,z)}y(e.states[T]?.entry)}})),I=P.useRef(void 0),R=P.useRef(En.NotStarted);pc(()=>{queueMicrotask(()=>{const N=R.current===En.Started;R.current=En.Started,r(N?"rehydrating...":"initializing...");const z=I.current??E.initial;E.invoke(z,N?E.get():Cs)});const T=c.current,S=E.ref.current;return()=>{r("unmounting..."),I.current=S,R.current=En.Stopped,T.forEach(N=>N?.()),c.current=new Map,u.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const _=()=>"ref"in E?E.ref.current:E.get(),A=T=>{queueMicrotask(()=>{if(R.current!==En.Started)return;d.current=h.current,h.current=T;let S=_();const N=e.states[S].on?.[T.type]??e.on?.[T.type],z=C(N);if(!z)return;u.current=z;const D=z.target??S;r("transition",T.type,z.target||S,`(${z.actions})`);const q=D!==S;q?St.flushSync(()=>E.set(D)):z.reenter&&!q?E.invoke(S,S):y(z.actions??[])})};return e.watch?.(v()),{state:f(),send:A,context:l,prop:i,scope:n,refs:g,computed:k,event:p(),getStatus:()=>R.current}}function vc(e){const t=P.useRef(e);return t.current=e,t}function Sv(e){const t=vc(e);return function(r){return t.current[r]}}function bc(e){queueMicrotask(()=>{St.flushSync(()=>e())})}var wv=bv(e=>e);function Ev(e,t={}){const{sync:n=!1}=t,r=Ov(e);return P.useCallback((...o)=>n?queueMicrotask(()=>r.current?.(...o)):r.current?.(...o),[n,r])}function Ov(e){const t=P.useRef(e);return t.current=e,t}const ws=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1,...i}=e,s=P.useRef(!1),a={...i,present:r,onExitComplete:Ev(e.onExitComplete)},l=mc(xv,a),c=yv(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||n&&!c.present&&s.current,d=()=>({"data-state":c.skip&&o?void 0:r?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:d,present:c.present,unmounted:u}},[yc,Es]=Cn({name:"PresenceContext",hookName:"usePresenceContext",providerName:""}),To=me("span"),{withContext:Pv}=jt({key:"text"}),Ge=Pv("p");function xc(e,t=[]){const n=P.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return P.useInsertionEffect(()=>{n.current=e}),P.useCallback((...r)=>n.current?.(...r),t)}function cr(e={}){const t=xc(e.onOpen),n=xc(e.onClose),[r,o]=P.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:r,s=e.open!==void 0,a=P.useCallback(()=>{s||o(!1),n?.()},[s,n]),l=P.useCallback(()=>{s||o(!0),t?.()},[s,t]),c=P.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}var j=(e,t=[])=>({parts:(...n)=>{if(Iv(t))return j(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>j(e,[...t,...n]),omit:(...n)=>j(e,t.filter(r=>!n.includes(r))),rename:n=>j(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${On(e)}"][data-part="${On(r)}"]`,`& [data-scope="${On(e)}"][data-part="${On(r)}"]`].join(", "),attrs:{"data-scope":On(e),"data-part":On(r)}}}),{})}),On=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Iv=e=>e.length===0,kc=j("collapsible").parts("root","trigger","content","indicator");kc.build(),M()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Rv=Object.defineProperty,Tv=(e,t,n)=>t in e?Rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Os=(e,t,n)=>Tv(e,t+"",n),Nv=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},Ps=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:o}=this.getChannelRange(e);return e0(n,r,o)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=t0(t,n,r,o);return Ul(i,n,r,o)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=_e(t,n,r),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),o=n||this.getChannels().find(s=>s!==r),i=this.getChannels().find(s=>s!==r&&s!==o);return{xChannel:r,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=Ul(_e(this.getChannelValue(e)+t,n,r),n,r,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Nv(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Av=/^#[\da-f]+$/i,_v=/^rgba?\((.*)\)$/,Vv=/[^#]/gi,Cc=class zi extends Ps{constructor(t,n,r,o){super(),this.red=t,this.green=n,this.blue=r,this.alpha=o}static parse(t){let n=[];if(Av.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(Vv,"$&$&"):t).slice(1).split("");for(;o.length>0;)n.push(parseInt(o.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(_v);return r?.[1]&&(n=r[1].split(",").map(o=>Number(o.trim())).map((o,i)=>_e(o,0,i<3?255:1))),n.length<3?void 0:new zi(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(n-r)/s+(nNumber(a.trim().replace("%","")));return new Mi(Wl(r,360),_e(o,0,100),_e(i,0,100),_e(s??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${ne(this.saturation,2)}%, ${ne(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${ne(this.saturation,2)}%, ${ne(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Ts(ne(this.hue,2),ne(t*100,2),ne(r*100,2),ne(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,o=n*Math.min(r,1-r),i=(s,a=(s+t/30)%12)=>r-o*Math.max(Math.min(a-3,9-a,1),-1);return new Is(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),ne(this.alpha,2))}clone(){return new Mi(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Mi.colorChannels}};Os(Sc,"colorChannels",["hue","saturation","lightness"]);var Rs=Sc,Lv=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,wc=class ji extends Ps{constructor(t,n,r,o){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=o}static parse(t){let n;if(n=t.match(Lv)){const[r,o,i,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new ji(Wl(r,360),_e(o,0,100),_e(i,0,100),_e(s??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${ne(this.saturation,2)}%, ${ne(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${ne(this.saturation,2)}%, ${ne(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new Rs(ne(this.hue,2),ne(t*100,2),ne(r*100,2),ne(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,o=(i,s=(i+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new Is(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),ne(this.alpha,2))}clone(){return new ji(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return ji.colorChannels}};Os(wc,"colorChannels",["hue","saturation","brightness"]);var Ts=wc,Dv="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",zv=e=>{const t=new Map,n=e.split(",");for(let r=0;r{if(Ec.has(e))return No(Ec.get(e));const t=Is.parse(e)||Ts.parse(e)||Rs.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(n,No),n}return t};const Mv=["top","right","bottom","left"],Rt=Math.min,je=Math.max,Ao=Math.round,_o=Math.floor,ct=e=>({x:e,y:e}),jv={left:"right",right:"left",bottom:"top",top:"bottom"},$v={start:"end",end:"start"};function Ns(e,t,n){return je(e,Rt(t,n))}function bt(e,t){return typeof e=="function"?e(t):e}function yt(e){return e.split("-")[0]}function Pn(e){return e.split("-")[1]}function As(e){return e==="x"?"y":"x"}function _s(e){return e==="y"?"height":"width"}const Bv=new Set(["top","bottom"]);function ut(e){return Bv.has(yt(e))?"y":"x"}function Vs(e){return As(ut(e))}function Wv(e,t,n){n===void 0&&(n=!1);const r=Pn(e),o=Vs(e),i=_s(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vo(s)),[s,Vo(s)]}function Hv(e){const t=Vo(e);return[Fs(e),t,Fs(t)]}function Fs(e){return e.replace(/start|end/g,t=>$v[t])}const Oc=["left","right"],Pc=["right","left"],Uv=["top","bottom"],Gv=["bottom","top"];function qv(e,t,n){switch(e){case"top":case"bottom":return n?t?Pc:Oc:t?Oc:Pc;case"left":case"right":return t?Uv:Gv;default:return[]}}function Kv(e,t,n,r){const o=Pn(e);let i=qv(yt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Fs)))),i}function Vo(e){return e.replace(/left|right|bottom|top/g,t=>jv[t])}function Yv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ic(e){return typeof e!="number"?Yv(e):{top:e,right:e,bottom:e,left:e}}function Fo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Rc(e,t,n){let{reference:r,floating:o}=e;const i=ut(t),s=Vs(t),a=_s(s),l=yt(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Pn(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1);break}return p}const Xv=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Rc(c,r,l),h=r,p={},f=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=bt(e,t)||{};if(c==null)return{};const d=Ic(u),h={x:n,y:r},p=Vs(o),f=_s(p),g=await s.getDimensions(c),v=p==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",C=i.reference[f]+i.reference[p]-h[p]-i.floating[f],k=h[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let I=E?E[x]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[x]||i.floating[f]);const R=C/2-k/2,_=I/2-g[f]/2-1,A=Rt(d[y],_),T=Rt(d[b],_),S=A,N=I-g[f]-T,z=I/2-g[f]/2+R,D=Ns(S,z,N),q=!l.arrow&&Pn(o)!=null&&z!==D&&i.reference[f]/2-(zz<=0)){var T,S;const z=(((T=i.flip)==null?void 0:T.index)||0)+1,D=I[z];if(D&&(!(d==="alignment"?b!==ut(D):!1)||A.every(ce=>ut(ce.placement)===b?ce.overflows[0]>0:!0)))return{data:{index:z,overflows:A},reset:{placement:D}};let q=(S=A.filter(K=>K.overflows[0]<=0).sort((K,ce)=>K.overflows[1]-ce.overflows[1])[0])==null?void 0:S.placement;if(!q)switch(p){case"bestFit":{var N;const K=(N=A.filter(ce=>{if(E){const B=ut(ce.placement);return B===b||B==="y"}return!0}).map(ce=>[ce.placement,ce.overflows.filter(B=>B>0).reduce((B,W)=>B+W,0)]).sort((ce,B)=>ce[1]-B[1])[0])==null?void 0:N[0];K&&(q=K);break}case"initialPlacement":q=a;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function Tc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Nc(e){return Mv.some(t=>e[t]>=0)}const Zv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=bt(e,t);switch(r){case"referenceHidden":{const i=await ur(t,{...o,elementContext:"reference"}),s=Tc(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Nc(s)}}}case"escaped":{const i=await ur(t,{...o,altBoundary:!0}),s=Tc(i,n.floating);return{data:{escapedOffsets:s,escaped:Nc(s)}}}default:return{}}}}},Ac=new Set(["left","top"]);async function eb(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=yt(n),a=Pn(n),l=ut(n)==="y",c=Ac.has(s)?-1:1,u=i&&l?-1:1,d=bt(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(p=a==="end"?f*-1:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const tb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await eb(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},nb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...l}=bt(e,t),c={x:n,y:r},u=await ur(t,l),d=ut(yt(o)),h=As(d);let p=c[h],f=c[d];if(i){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=p+u[v],x=p-u[y];p=Ns(b,p,x)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=f+u[v],x=f-u[y];f=Ns(b,f,x)}const g=a.fn({...t,[h]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:s}}}}}},rb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=bt(e,t),u={x:n,y:r},d=ut(o),h=As(d);let p=u[h],f=u[d];const g=bt(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const x=h==="y"?"height":"width",C=i.reference[h]-i.floating[x]+v.mainAxis,k=i.reference[h]+i.reference[x]-v.mainAxis;pk&&(p=k)}if(c){var y,b;const x=h==="y"?"width":"height",C=Ac.has(yt(o)),k=i.reference[d]-i.floating[x]+(C&&((y=s.offset)==null?void 0:y[d])||0)+(C?0:v.crossAxis),E=i.reference[d]+i.reference[x]+(C?0:((b=s.offset)==null?void 0:b[d])||0)-(C?v.crossAxis:0);fE&&(f=E)}return{[h]:p,[d]:f}}}},ob=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=bt(e,t),u=await ur(t,c),d=yt(o),h=Pn(o),p=ut(o)==="y",{width:f,height:g}=i.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,v=h==="end"?"top":"bottom");const b=g-u.top-u.bottom,x=f-u.left-u.right,C=Rt(g-u[v],b),k=Rt(f-u[y],x),E=!t.middlewareData.shift;let I=C,R=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=b),E&&!h){const A=je(u.left,0),T=je(u.right,0),S=je(u.top,0),N=je(u.bottom,0);p?R=f-2*(A!==0||T!==0?A+T:je(u.left,u.right)):I=g-2*(S!==0||N!==0?S+N:je(u.top,u.bottom))}await l({...t,availableWidth:R,availableHeight:I});const _=await s.getDimensions(a.floating);return f!==_.width||g!==_.height?{reset:{rects:!0}}:{}}}};function Lo(){return typeof window<"u"}function In(e){return _c(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dt(e){var t;return(t=(_c(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _c(e){return Lo()?e instanceof Node||e instanceof $e(e).Node:!1}function Ze(e){return Lo()?e instanceof Element||e instanceof $e(e).Element:!1}function ht(e){return Lo()?e instanceof HTMLElement||e instanceof $e(e).HTMLElement:!1}function Vc(e){return!Lo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot}const ib=new Set(["inline","contents"]);function dr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ib.has(o)}const sb=new Set(["table","td","th"]);function ab(e){return sb.has(In(e))}const lb=[":popover-open",":modal"];function Do(e){return lb.some(t=>{try{return e.matches(t)}catch{return!1}})}const cb=["transform","translate","scale","rotate","perspective"],ub=["transform","translate","scale","rotate","perspective","filter"],db=["paint","layout","strict","content"];function Ls(e){const t=Ds(),n=Ze(e)?et(e):e;return cb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ub.some(r=>(n.willChange||"").includes(r))||db.some(r=>(n.contain||"").includes(r))}function hb(e){let t=Tt(e);for(;ht(t)&&!Rn(t);){if(Ls(t))return t;if(Do(t))return null;t=Tt(t)}return null}function Ds(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fb=new Set(["html","body","#document"]);function Rn(e){return fb.has(In(e))}function et(e){return $e(e).getComputedStyle(e)}function zo(e){return Ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tt(e){if(In(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vc(e)&&e.host||dt(e);return Vc(t)?t.host:t}function Fc(e){const t=Tt(e);return Rn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ht(t)&&dr(t)?t:Fc(t)}function hr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Fc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=$e(o);if(i){const a=zs(s);return t.concat(s,s.visualViewport||[],dr(o)?o:[],a&&n?hr(a):[])}return t.concat(o,hr(o,[],n))}function zs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lc(e){const t=et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ht(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ao(n)!==i||Ao(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ms(e){return Ze(e)?e:e.contextElement}function Tn(e){const t=Ms(e);if(!ht(t))return ct(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lc(t);let s=(i?Ao(n.width):n.width)/r,a=(i?Ao(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const gb=ct(0);function Dc(e){const t=$e(e);return!Ds()||!t.visualViewport?gb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$e(e)?!1:t}function qt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ms(e);let s=ct(1);t&&(r?Ze(r)&&(s=Tn(r)):s=Tn(e));const a=pb(i,n,r)?Dc(i):ct(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const h=$e(i),p=r&&Ze(r)?$e(r):r;let f=h,g=zs(f);for(;g&&r&&p!==f;){const v=Tn(g),y=g.getBoundingClientRect(),b=et(g),x=y.left+(g.clientLeft+parseFloat(b.paddingLeft))*v.x,C=y.top+(g.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=x,c+=C,f=$e(g),g=zs(f)}}return Fo({width:u,height:d,x:l,y:c})}function Mo(e,t){const n=zo(e).scrollLeft;return t?t.left+n:qt(dt(e)).left+n}function zc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Mo(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function mb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=dt(r),a=t?Do(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ct(1);const u=ct(0),d=ht(r);if((d||!d&&!i)&&((In(r)!=="body"||dr(s))&&(l=zo(r)),ht(r))){const p=qt(r);c=Tn(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=s&&!d&&!i?zc(s,l):ct(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function vb(e){return Array.from(e.getClientRects())}function bb(e){const t=dt(e),n=zo(e),r=e.ownerDocument.body,o=je(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=je(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Mo(e);const a=-n.scrollTop;return et(r).direction==="rtl"&&(s+=je(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const Mc=25;function yb(e,t){const n=$e(e),r=dt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Ds();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Mo(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-d.clientWidth-p);f<=Mc&&(i-=f)}else c<=Mc&&(i+=c);return{width:i,height:s,x:a,y:l}}const xb=new Set(["absolute","fixed"]);function kb(e,t){const n=qt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ht(e)?Tn(e):ct(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function jc(e,t,n){let r;if(t==="viewport")r=yb(e,n);else if(t==="document")r=bb(dt(e));else if(Ze(t))r=kb(t,n);else{const o=Dc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fo(r)}function $c(e,t){const n=Tt(e);return n===t||!Ze(n)||Rn(n)?!1:et(n).position==="fixed"||$c(n,t)}function Cb(e,t){const n=t.get(e);if(n)return n;let r=hr(e,[],!1).filter(a=>Ze(a)&&In(a)!=="body"),o=null;const i=et(e).position==="fixed";let s=i?Tt(e):e;for(;Ze(s)&&!Rn(s);){const a=et(s),l=Ls(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&xb.has(o.position)||dr(s)&&!l&&$c(e,s))?r=r.filter(u=>u!==s):o=a,s=Tt(s)}return t.set(e,r),r}function Sb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Do(t)?[]:Cb(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=jc(t,u,o);return c.top=je(d.top,c.top),c.right=Rt(d.right,c.right),c.bottom=Rt(d.bottom,c.bottom),c.left=je(d.left,c.left),c},jc(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function wb(e){const{width:t,height:n}=Lc(e);return{width:t,height:n}}function Eb(e,t,n){const r=ht(t),o=dt(t),i=n==="fixed",s=qt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=ct(0);function c(){l.x=Mo(o)}if(r||!r&&!i)if((In(t)!=="body"||dr(o))&&(a=zo(t)),r){const p=qt(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?zc(o,a):ct(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function js(e){return et(e).position==="static"}function Bc(e,t){if(!ht(e)||et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dt(e)===n&&(n=n.ownerDocument.body),n}function Wc(e,t){const n=$e(e);if(Do(e))return n;if(!ht(e)){let o=Tt(e);for(;o&&!Rn(o);){if(Ze(o)&&!js(o))return o;o=Tt(o)}return n}let r=Bc(e,t);for(;r&&ab(r)&&js(r);)r=Bc(r,t);return r&&Rn(r)&&js(r)&&!Ls(r)?n:r||hb(e)||n}const Ob=async function(e){const t=this.getOffsetParent||Wc,n=this.getDimensions,r=await n(e.floating);return{reference:Eb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Pb(e){return et(e).direction==="rtl"}const Ib={convertOffsetParentRelativeRectToViewportRelativeRect:mb,getDocumentElement:dt,getClippingRect:Sb,getOffsetParent:Wc,getElementRects:Ob,getClientRects:vb,getDimensions:wb,getScale:Tn,isElement:Ze,isRTL:Pb};function Hc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Rb(e,t){let n=null,r;const o=dt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const f=_o(d),g=_o(o.clientWidth-(u+h)),v=_o(o.clientHeight-(d+p)),y=_o(u),x={rootMargin:-f+"px "+-g+"px "+-v+"px "+-y+"px",threshold:je(0,Rt(1,l))||1};let C=!0;function k(E){const I=E[0].intersectionRatio;if(I!==l){if(!C)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Hc(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(k,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,x)}n.observe(e)}return s(!0),i}function Tb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ms(e),u=o||i?[...c?hr(c):[],...hr(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&a?Rb(c,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let f,g=l?qt(e):null;l&&v();function v(){const y=qt(e);g&&!Hc(g,y)&&n(),g=y,f=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const Nb=tb,Ab=nb,_b=Jv,Vb=ob,Fb=Zv,Lb=Qv,Db=rb,zb=(e,t,n)=>{const r=new Map,o={platform:Ib,...n},i={...o.platform,_c:r};return Xv(e,t,{...o,platform:i})};function Uc(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function Mb(e){if(!e)return Uc();const{x:t,y:n,width:r,height:o}=e;return Uc(t,n,r,o)}function jb(e,t){return{contextElement:Re(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t?.(n);return r||!n?Mb(r):n.getBoundingClientRect()}}}var Gc=e=>({variable:e,reference:`var(${e})`}),qc={transformOrigin:Gc("--transform-origin"),arrowOffset:Gc("--arrow-offset")},$b=e=>e==="top"||e==="bottom"?"y":"x";function Bb(e,t){return{name:"transformOrigin",fn(n){const{elements:r,middlewareData:o,placement:i,rects:s,y:a}=n,l=i.split("-")[0],c=$b(l),u=o.arrow?.x||0,d=o.arrow?.y||0,h=t?.clientWidth||0,p=t?.clientHeight||0,f=u+h/2,g=d+p/2,v=Math.abs(o.shift?.y||0),y=s.reference.height/2,b=p/2,x=e.offset?.mainAxis??e.gutter,C=typeof x=="number"?x+b:x??b,k=v>C,E={top:`${f}px calc(100% + ${C}px)`,bottom:`${f}px ${-C}px`,left:`calc(100% + ${C}px) ${g}px`,right:`${-C}px ${g}px`}[l],I=`${f}px ${s.reference.y+y-a}px`,R=!!e.overlap&&c==="y"&&k;return r.floating.style.setProperty(qc.transformOrigin.variable,R?I:E),{data:{transformOrigin:R?I:E}}}}}var Wb={name:"rects",fn({rects:e}){return{data:e}}},Hb=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${qc.arrowOffset.reference})`}),{}}}};function Ub(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function Gb(e){return e.split("-")[0]}var qb={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Kc(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function $s(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function Kb(e,t,n){const r=e||t.createElement("div");return Lb({element:r,padding:n.arrowPadding})}function Yb(e,t){if(!Fm(t.offset??t.gutter))return Nb(({placement:n})=>{const r=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,i=typeof o=="number"?o+r:o??r,{hasAlign:s}=Ub(n),a=s?void 0:t.shift,l=t.offset?.crossAxis??a;return go({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function Xb(e){if(!e.flip)return;const t=$s(e.boundary);return _b({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function Qb(e){if(!e.slide&&!e.overlap)return;const t=$s(e.boundary);return Ab({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Db()})}function Jb(e){return Vb({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const i=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),i.style.setProperty("--reference-width",`${s}px`),i.style.setProperty("--reference-height",`${a}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${r}px`)}})}function Zb(e){if(e.hideWhenDetached)return Fb({strategy:"referenceHidden",boundary:$s(e.boundary)??"clippingAncestors"})}function ey(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function ty(e,t,n={}){const r=jb(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},qb,n),i=t.querySelector("[data-part=arrow]"),s=[Yb(i,o),Xb(o),Qb(o),Kb(i,t.ownerDocument,o),Hb(i),Bb({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),Jb(o),Zb(o),Wb],{placement:a,strategy:l,onComplete:c,onPositioned:u}=o,d=async()=>{if(!r||!t)return;const g=await zb(r,t,{placement:a,middleware:s,strategy:l});c?.(g),u?.({placed:!0});const v=ve(t),y=Kc(v,g.x),b=Kc(v,g.y);t.style.setProperty("--x",`${y}px`),t.style.setProperty("--y",`${b}px`),o.hideWhenDetached&&(g.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const x=t.firstElementChild;if(x){const C=mo(x);t.style.setProperty("--z-index",C.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),u?.({placed:!0})):await d()},p=ey(o.listeners),f=o.listeners?Tb(r,t,h,p):Wm;return h(),()=>{f?.(),u?.({placed:!1})}}function tt(e,t,n={}){const{defer:r,...o}=n,i=r?G:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(ty(a,l,o))})),()=>{s.forEach(a=>a?.())}}function ny(e){const t={each(n){for(let r=0;r{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function ry(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t?.addEventListener(n,r,o)}catch{}return()=>{try{t?.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t?.removeEventListener(n,r,o)}catch{}}}}var Yc="pointerdown.outside",Xc="focus.outside";function oy(e){for(const t of e)if(Re(t)&&Ot(t))return!0;return!1}var Qc=e=>"clientY"in e;function iy(e,t){if(!Qc(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function sy(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Jc(e,t){if(!t||!Qc(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return sy(s,a)?r||i:!1}function ay(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s}=t;if(!e)return;const a=Ve(e),l=ve(e),c=ny(l),u=ry(l);function d(b,x){if(!Re(x)||!x.isConnected||Ut(e,x)||iy(e,b))return!1;const C=a.querySelector(`[aria-controls="${e.id}"]`);if(C){const E=Co(C);if(Jc(b,E))return!1}const k=Co(e);return Jc(b,k)?!1:!n?.(x)}const h=new Set,p=Sn(e?.getRootNode());function f(b){function x(C){const k=s&&!nc()?G:R=>R(),E=C??b,I=E?.composedPath?.()??[E?.target];k(()=>{const R=p?I[0]:Me(b);if(!(!e||!d(b,R))){if(o||i){const _=ho(o,i);e.addEventListener(Yc,_,{once:!0})}Zc(e,Yc,{bubbles:!1,cancelable:!0,detail:{originalEvent:E,contextmenu:N0(E),focusable:oy(I),target:R}})}})}b.pointerType==="touch"?(h.forEach(C=>C()),h.add(ie(a,"click",x,{once:!0})),h.add(u.addEventListener("click",x,{once:!0})),h.add(c.addEventListener("click",x,{once:!0}))):x()}const g=new Set,v=setTimeout(()=>{g.add(ie(a,"pointerdown",f,!0)),g.add(u.addEventListener("pointerdown",f,!0)),g.add(c.addEventListener("pointerdown",f,!0))},0);function y(b){(s?G:C=>C())(()=>{const C=Me(b);if(!(!e||!d(b,C))){if(r||i){const k=ho(r,i);e.addEventListener(Xc,k,{once:!0})}Zc(e,Xc,{bubbles:!1,cancelable:!0,detail:{originalEvent:b,contextmenu:!1,focusable:Ot(C),target:C}})}})}return nc()||(g.add(ie(a,"focusin",y,!0)),g.add(u.addEventListener("focusin",y,!0)),g.add(c.addEventListener("focusin",y,!0))),()=>{clearTimeout(v),h.forEach(b=>b()),g.forEach(b=>b())}}function ly(e,t){const{defer:n}=t,r=n?G:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(ay(i,t))})),()=>{o.forEach(i=>i?.())}}function Zc(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function cy(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return ie(Ve(e),"keydown",n,{capture:!0})}var eu="layer:request-dismiss",qe={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return tUt(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Ut(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tqe.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];dy(e,eu,o=>{r.requestDismiss?.(o),o.defaultPrevented||r?.dismiss()}),uy(e,eu,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function uy(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function dy(e,t,n){e.addEventListener(t,n,{once:!0})}var tu;function nu(){qe.layers.forEach(({node:e})=>{e.style.pointerEvents=qe.isBelowPointerBlockingLayer(e)?"none":"auto"})}function hy(e){e.style.pointerEvents=""}function fy(e,t){const n=Ve(e),r=[];return qe.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(tu=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[i,s]=dv(()=>{const a=o();return Re(a)?a:null},{timeout:1e3});i.then(a=>r.push(Oo(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{qe.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=tu,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function gy(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){sr("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a}=t,l={dismiss:r,node:e,pointerBlocking:i,requestDismiss:o};qe.add(l),nu();function c(f){const g=Me(f.detail.originalEvent);qe.isBelowPointerBlockingLayer(e)||qe.isInBranch(g)||(t.onPointerDownOutside?.(f),t.onInteractOutside?.(f),!f.defaultPrevented&&(a&&console.log("onPointerDownOutside:",f.detail.originalEvent),r?.()))}function u(f){const g=Me(f.detail.originalEvent);qe.isInBranch(g)||(t.onFocusOutside?.(f),t.onInteractOutside?.(f),!f.defaultPrevented&&(a&&console.log("onFocusOutside:",f.detail.originalEvent),r?.()))}function d(f){qe.isTopMost(e)&&(t.onEscapeKeyDown?.(f),!f.defaultPrevented&&r&&(f.preventDefault(),r()))}function h(f){if(!e)return!1;const g=typeof s=="function"?s():s,v=Array.isArray(g)?g:[g],y=t.persistentElements?.map(b=>b()).filter(Re);return y&&v.push(...y),v.some(b=>Ut(b,f))||qe.isInNestedLayer(e,f)}const p=[i?fy(e,t.persistentElements):void 0,cy(e,d),ly(e,{exclude:h,onFocusOutside:u,onPointerDownOutside:c,defer:t.defer})];return()=>{qe.remove(e),nu(),hy(e),p.forEach(f=>f?.())}}function Nn(e,t){const{defer:n}=t,r=n?G:i=>i(),o=[];return o.push(r(()=>{const i=Ht(e)?e():e;o.push(gy(i,t))})),()=>{o.forEach(i=>i?.())}}var ru=j("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);ru.build();var py=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,my=e=>e.ids?.control??`color-picker:${e.id}:control`,vy=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,by=e=>e.ids?.content??`color-picker:${e.id}:content`,yy=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,xy=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,ky=e=>e.ids?.area??`color-picker:${e.id}:area`,Cy=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,Sy=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,wy=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,jo=e=>e.getById(by(e)),Ey=e=>e.getById(Cy(e)),Oy=(e,t)=>e.getById(wy(e,t)),Py=e=>e.getById(xy(e)),ou=e=>e.getById(py(e)),Iy=e=>e.getById(ky(e)),Ry=(e,t,n)=>{const r=Iy(e);if(!r)return;const{getPercentValue:o}=lc(t,r);return{x:o({dir:n,orientation:"horizontal"}),y:o({orientation:"vertical"})}},Ty=e=>e.getById(my(e)),Bs=e=>e.getById(vy(e)),Ny=e=>e.getById(yy(e)),Ay=(e,t)=>e.getById(Sy(e,t)),_y=(e,t,n,r)=>{const o=Ay(e,n);if(!o)return;const{getPercentValue:i}=lc(t,o);return{x:i({dir:r,orientation:"horizontal"}),y:i({orientation:"vertical"})}},Vy=e=>[...Eo(jo(e),"input[data-channel]"),...Eo(Ty(e),"input[data-channel]")];function Fy(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var iu=e=>No(e),Ly=/^[0-9a-fA-F]{3,8}$/;function Dy(e){return Ly.test(e)}function zy(e){return e.startsWith("#")?e:Dy(e)?`#${e}`:e}var{and:My}=Pt();My("isOpenControlled","closeOnSelect");function su(e,t,n){const r=Vy(e);G(()=>{r.forEach(o=>{const i=o.dataset.channel;xo(o,Fy(n||t,i))})})}function jy(e,t){const n=Py(e);n&&G(()=>xo(n,t))}M()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),M()(["xChannel","yChannel"]),M()(["channel","orientation"]),M()(["value","disabled"]),M()(["value","respectAlpha"]),M()(["size"]);const[au,$y]=Cn({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:""}),lu=e=>fc()(e,["lazyMount","unmountOnExit"]);var cu=j("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");cu.build();var uu=e=>e.ids?.root??`accordion:${e.id}`,du=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,By=e=>e.getById(uu(e)),$o=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(uu(e))}']:not([disabled])`;return Eo(By(e),n)},Wy=e=>or($o(e)),Hy=e=>ss($o(e)),Uy=(e,t)=>tv($o(e),du(e,t)),Gy=(e,t)=>nv($o(e),du(e,t)),{and:qy,not:Ky}=Pt();qy("isExpanded","canToggle"),Ky("isExpanded"),M()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),M()(["value","disabled"]);var fr=(e,t)=>({x:e,y:t});function Yy(e){const{x:t,y:n,width:r,height:o}=e,i=t+r/2,s=n+o/2;return{x:t,y:n,width:r,height:o,minX:t,minY:n,maxX:t+r,maxY:n+o,midX:i,midY:s,center:fr(i,s)}}function Xy(e){const t=fr(e.minX,e.minY),n=fr(e.maxX,e.minY),r=fr(e.maxX,e.maxY),o=fr(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:o}}function Qy(e,t){const n=Yy(e),{top:r,right:o,left:i,bottom:s}=Xy(n),[a]=t.split("-");return{top:[i,r,o,s],right:[r,o,s,i],bottom:[r,i,s,o],left:[o,r,i,s]}[a]}function Jy(e,t){const{x:n,y:r}=t;let o=!1;for(let i=0,s=e.length-1;ir!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}var hu=j("avatar").parts("root","image","fallback");hu.build(),M()(["dir","id","ids","onStatusChange","getRootNode"]);function Zy(e){return!(e.metaKey||!yo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var ex=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tx(e,t,n){const r=n?Me(n):null,o=ve(r);return e=e||r instanceof o.HTMLInputElement&&!ex.has(r?.type)||r instanceof o.HTMLTextAreaElement||r instanceof o.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof o.KeyboardEvent&&!Reflect.has(nx,n.key))}var Kt=null,Ws=new Set,gr=new Map,Yt=!1,Hs=!1,nx={Tab:!0,Escape:!0};function Bo(e,t){for(let n of Ws)n(e,t)}function Wo(e){Yt=!0,Zy(e)&&(Kt="keyboard",Bo("keyboard",e))}function Ke(e){Kt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Yt=!0,Bo("pointer",e))}function fu(e){T0(e)&&(Yt=!0,Kt="virtual")}function gu(e){const t=Me(e);t===ve(t)||t===Ve(t)||(!Yt&&!Hs&&(Kt="virtual",Bo("virtual",e)),Yt=!1,Hs=!1)}function pu(){Yt=!1,Hs=!0}function rx(e){if(typeof window>"u"||gr.get(ve(e)))return;const t=ve(e),n=Ve(e);let r=t.HTMLElement.prototype.focus;function o(){Kt="virtual",Bo("virtual",null),Yt=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o}),n.addEventListener("keydown",Wo,!0),n.addEventListener("keyup",Wo,!0),n.addEventListener("click",fu,!0),t.addEventListener("focus",gu,!0),t.addEventListener("blur",pu,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",Ke,!0),n.addEventListener("pointermove",Ke,!0),n.addEventListener("pointerup",Ke,!0)):(n.addEventListener("mousedown",Ke,!0),n.addEventListener("mousemove",Ke,!0),n.addEventListener("mouseup",Ke,!0)),t.addEventListener("beforeunload",()=>{ox(e)},{once:!0}),gr.set(t,{focus:r})}var ox=(e,t)=>{const n=ve(e),r=Ve(e);gr.has(n)&&(n.HTMLElement.prototype.focus=gr.get(n).focus,r.removeEventListener("keydown",Wo,!0),r.removeEventListener("keyup",Wo,!0),r.removeEventListener("click",fu,!0),n.removeEventListener("focus",gu,!0),n.removeEventListener("blur",pu,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",Ke,!0),r.removeEventListener("pointermove",Ke,!0),r.removeEventListener("pointerup",Ke,!0)):(r.removeEventListener("mousedown",Ke,!0),r.removeEventListener("mousemove",Ke,!0),r.removeEventListener("mouseup",Ke,!0)),gr.delete(n))};function mu(){return Kt==="keyboard"}function ix(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:o}=e;rx(o),r?.({isFocusVisible:n||mu(),modality:Kt});const i=(s,a)=>{tx(!!t,s,a)&&r?.({isFocusVisible:mu(),modality:s})};return Ws.add(i),()=>{Ws.delete(i)}}var vu=j("checkbox").parts("root","label","control","indicator");vu.build(),M()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const sx=vu.extendWith("group"),[MR,ax]=Cn({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1});var bu=j("clipboard").parts("root","control","trigger","indicator","input","label");bu.build(),M()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),M()(["copied"]);const lx=ru.extendWith("view");var cx=Object.defineProperty,ux=(e,t,n)=>t in e?cx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t,n)=>ux(e,typeof t!="symbol"?t+"":t,n),Ho={itemToValue(e){return typeof e=="string"?e:Wt(e)&&wt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Wt(e)&&wt(e,"label")?e.label:Ho.itemToValue(e)},isItemDisabled(e){return Wt(e)&&wt(e,"disabled")?!!e.disabled:!1}},Uo=class sp{constructor(t){this.options=t,V(this,"items"),V(this,"indexMap",null),V(this,"copy",n=>new sp({...this.options,items:n??[...this.items]})),V(this,"isEqual",n=>Qe(this.items,n.items)),V(this,"setItems",n=>this.copy(n)),V(this,"getValues",(n=this.items)=>{const r=[];for(const o of n){const i=this.getItemValue(o);i!=null&&r.push(i)}return r}),V(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),V(this,"findMany",n=>{const r=[];for(const o of n){const i=this.find(o);i!=null&&r.push(i)}return r}),V(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){if(r===n)return s;r++}return null}),V(this,"sortFn",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return(o??0)-(i??0)}),V(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),V(this,"getItemValue",n=>n==null?null:this.options.itemToValue?.(n)??Ho.itemToValue(n)),V(this,"getItemDisabled",n=>n==null?!1:this.options.isItemDisabled?.(n)??Ho.isItemDisabled(n)),V(this,"stringifyItem",n=>n==null?null:this.options.itemToString?.(n)??Ho.itemToString(n)),V(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),V(this,"stringifyItems",(n,r=", ")=>{const o=[];for(const i of n){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(r)}),V(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),V(this,"has",n=>this.indexOf(n)!==-1),V(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),V(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=n(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return r&&i.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),c=r.indexOf(a);return l===-1?1:c===-1?-1:l-c}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),i}),V(this,"getNextValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),V(this,"getPreviousValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),V(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){const a=this.getItemValue(s);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(n)??-1}),V(this,"getByText",(n,r)=>{const o=r!=null?this.indexOf(r):-1,i=n.length===1;for(let s=0;s{const{state:o,currentValue:i,timeout:s=350}=r,a=o.keysSoFar+n,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,u=this.getByText(c,i),d=this.getItemValue(u);function h(){clearTimeout(o.timer),o.timer=-1}function p(f){o.keysSoFar=f,h(),f!==""&&(o.timer=+setTimeout(()=>{p(""),h()},s))}return p(a),d}),V(this,"update",(n,r)=>{let o=this.indexOf(n);return o===-1?this:this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),V(this,"upsert",(n,r,o="append")=>{let i=this.indexOf(n);return i===-1?(o==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),V(this,"insert",(n,...r)=>this.copy(pr(this.items,n,...r))),V(this,"insertBefore",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(pr(this.items,o,...r))}),V(this,"insertAfter",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(pr(this.items,o+1,...r))}),V(this,"prepend",(...n)=>this.copy(pr(this.items,0,...n))),V(this,"append",(...n)=>this.copy(pr(this.items,this.items.length,...n))),V(this,"filter",n=>{const r=this.items.filter((o,i)=>n(this.stringifyItem(o),i,o));return this.copy(r)}),V(this,"remove",(...n)=>{const r=n.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const i=this.getItemValue(o);return i==null?!1:!r.includes(i)}))}),V(this,"move",(n,r)=>{const o=this.indexOf(n);return o===-1?this:this.copy(Go(this.items,[o],r))}),V(this,"moveBefore",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Go(this.items,i,o))}),V(this,"moveAfter",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Go(this.items,i,o+1))}),V(this,"reorder",(n,r)=>this.copy(Go(this.items,[n],r))),V(this,"compareValue",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return oi?1:0}),V(this,"range",(n,r)=>{let o=[],i=n;for(;i!=null;){if(this.find(i)&&o.push(i),i===r)return o;i=this.getNextValue(i)}return[]}),V(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),V(this,"toString",()=>{let n="";for(const r of this.items){const o=this.getItemValue(r),i=this.stringifyItem(r),s=this.getItemDisabled(r),a=[o,i,s].filter(Boolean).join(":");n+=a+","}return n}),V(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},dx=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function pr(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Go(e,t,n){t=[...t].sort((o,i)=>o-i);const r=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return n=Math.max(0,n-t.filter(o=>ot[n])return 1}return e.length-t.length}function fx(e){return e.sort(xu)}function gx(e,t){let n;return Be(e,{...t,onEnter:(r,o)=>{if(t.predicate(r,o))return n=r,"stop"}}),n}function px(e,t){const n=[];return Be(e,{onEnter:(r,o)=>{t.predicate(r,o)&&n.push(r)},getChildren:t.getChildren}),n}function ku(e,t){let n;return Be(e,{onEnter:(r,o)=>{if(t.predicate(r,o))return n=[...o],"stop"},getChildren:t.getChildren}),n}function mx(e,t){let n=t.initialResult;return Be(e,{...t,onEnter:(r,o)=>{n=t.nextResult(n,r,o)}}),n}function vx(e,t){return mx(e,{...t,initialResult:[],nextResult:(n,r,o)=>(n.push(...t.transform(r,o)),n)})}function bx(e,t){const{predicate:n,create:r,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((p,f)=>{const g=[...a,f],v=i(p,g);v&&c.push(v)});const u=a.length===0,d=n(s,a),h=c.length>0;return u||d||h?r(s,c,a):null};return i(e,[])||r(e,[],[])}function yx(e,t){const n=[];let r=0;const o=new Map,i=new Map;return Be(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,r++);const l=t.getChildren(s,a);l.forEach(p=>{i.has(p)||i.set(p,s),o.has(p)||o.set(p,r++)});const c=l.length>0?l.map(p=>o.get(p)):void 0,u=i.get(s),d=u?o.get(u):void 0,h=o.get(s);n.push({...s,_children:c,_parent:d,_index:h})}}),n}function xx(e,t){return{type:"insert",index:e,nodes:t}}function kx(e){return{type:"remove",indexes:e}}function Us(){return{type:"replace"}}function Cu(e){return[e.slice(0,-1),e[e.length-1]]}function Su(e,t,n=new Map){const[r,o]=Cu(e);for(let s=r.length-1;s>=0;s--){const a=r.slice(0,s).join();switch(n.get(a)?.type){case"remove":continue}n.set(a,Us())}const i=n.get(r.join());switch(i?.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t});break;default:n.set(r.join(),xx(o,t))}return n}function wu(e){const t=new Map,n=new Map;for(const r of e){const o=r.slice(0,-1).join(),i=n.get(o)??[];i.push(r[r.length-1]),n.set(o,i.sort((s,a)=>s-a))}for(const r of e)for(let o=r.length-2;o>=0;o--){const i=r.slice(0,o).join();t.has(i)||t.set(i,Us())}for(const[r,o]of n)t.set(r,kx(o));return t}function Cx(e,t){const n=new Map,[r,o]=Cu(e);for(let i=r.length-1;i>=0;i--){const s=r.slice(0,i).join();n.set(s,Us())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),n}function qo(e,t,n){return Sx(e,{...n,getChildren:(r,o)=>{const i=o.join();switch(t.get(i)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,o);default:return[]}},transform:(r,o,i)=>{const s=i.join(),a=t.get(s);switch(a?.type){case"remove":return n.create(r,o.filter((u,d)=>!a.indexes.includes(d)),i);case"removeThenInsert":const l=o.filter((u,d)=>!a.removeIndexes.includes(d)),c=a.removeIndexes.reduce((u,d)=>d{const i=[0,...o],s=i.join(),a=t.transform(r,n[s]??[],o),l=i.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function wx(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const o=Su(r,n);return qo(e,o,t)}function Ex(e,t){if(t.at.length===0)return t.node;const n=Cx(t.at,t.node);return qo(e,n,t)}function Ox(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=wu(t.indexPaths);return qo(e,n,t)}function Px(e,t){if(t.indexPaths.length===0)return e;for(const i of t.indexPaths)if(i.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=hx(t.indexPaths),r=n.map(i=>yu(e,i,t)),o=Su(t.to,r,wu(n));return qo(e,o,t)}function Be(e,t){const{onEnter:n,onLeave:r,getChildren:o}=t;let i=[],s=[{node:e}];const a=t.reuseIndexPath?()=>i:()=>i.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const u=n?.(l.node,a());if(u==="stop")return;l.state=u==="skip"?-1:0}const c=l.children||o(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.stateQe(this.rootNode,n.rootNode)),V(this,"getNodeChildren",n=>this.options.nodeToChildren?.(n)??An.nodeToChildren(n)??[]),V(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),V(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),V(this,"getNodeChildrenCount",n=>this.options.nodeToChildrenCount?.(n)??An.nodeToChildrenCount(n)),V(this,"getNodeValue",n=>this.options.nodeToValue?.(n)??An.nodeToValue(n)),V(this,"getNodeDisabled",n=>this.options.isNodeDisabled?.(n)??An.isNodeDisabled(n)),V(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),V(this,"stringifyNode",n=>this.options.nodeToString?.(n)??An.nodeToString(n)),V(this,"getFirstNode",(n=this.rootNode)=>{let r;return Be(n,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!r&&i.length>0&&!this.getNodeDisabled(o))return r=o,"stop"}}),r}),V(this,"getLastNode",(n=this.rootNode,r={})=>{let o;return Be(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isSameNode(i,n)){if(r.skip?.({value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),V(this,"at",n=>yu(this.rootNode,n,{getChildren:this.getNodeChildren})),V(this,"findNode",(n,r=this.rootNode)=>gx(r,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})),V(this,"findNodes",(n,r=this.rootNode)=>{const o=new Set(n.filter(i=>i!=null));return px(r,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),V(this,"sort",n=>n.reduce((r,o)=>{const i=this.getIndexPath(o);return i&&r.push({value:o,indexPath:i}),r},[]).sort((r,o)=>xu(r.indexPath,o.indexPath)).map(({value:r})=>r)),V(this,"getIndexPath",n=>ku(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),V(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),V(this,"getValuePath",n=>{if(!n)return[];const r=[];let o=[...n];for(;o.length>0;){const i=this.at(o);i&&r.unshift(this.getNodeValue(i)),o.pop()}return r}),V(this,"getDepth",n=>ku(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})?.length??0),V(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),V(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),V(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((o,i)=>n[i]===r[i])),V(this,"getNextNode",(n,r={})=>{let o=!1,i;return Be(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(r.skip?.({value:l,node:s,indexPath:a}))return l===n&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===n&&(o=!0)}}),i}),V(this,"getPreviousNode",(n,r={})=>{let o,i=!1;return Be(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(r.skip?.({value:l,node:s,indexPath:a}))return"skip";if(l===n)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),V(this,"getParentNodes",n=>{const r=this.resolveIndexPath(n)?.slice();if(!r)return[];const o=[];for(;r.length>0;){r.pop();const i=this.at(r);i&&!this.isRootNode(i)&&o.unshift(i)}return o}),V(this,"getDescendantNodes",(n,r)=>{const o=this.resolveNode(n);if(!o)return[];const i=[];return Be(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!r?.withBranch&&this.isBranchNode(s)||i.push(s))}}),i}),V(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(i=>this.getNodeValue(i))),V(this,"getParentIndexPath",n=>n.slice(0,-1)),V(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),V(this,"visit",n=>{const{skip:r,...o}=n;Be(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isRootNode(i))return r?.({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":o.onEnter?.(i,s)}})}),V(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),V(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;++i{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),V(this,"getValues",(n=this.rootNode)=>vx(n,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),V(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),V(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),V(this,"getBranchValues",(n=this.rootNode,r={})=>{let o=[];return Be(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(s.length===0)return;const a=this.getNodeValue(i);if(r.skip?.({value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,r.depth)&&o.push(this.getNodeValue(i))}}),o}),V(this,"flatten",(n=this.rootNode)=>yx(n,{getChildren:this.getNodeChildren})),V(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),V(this,"_insert",(n,r,o)=>this.copy(wx(n,{at:r,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),V(this,"copy",n=>new ap({...this.options,rootNode:n})),V(this,"_replace",(n,r,o)=>this.copy(Ex(n,{at:r,node:o,getChildren:this.getNodeChildren,create:this._create}))),V(this,"_move",(n,r,o)=>this.copy(Px(n,{indexPaths:r,to:o,getChildren:this.getNodeChildren,create:this._create}))),V(this,"_remove",(n,r)=>this.copy(Ox(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),V(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),V(this,"remove",n=>this._remove(this.rootNode,n)),V(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),V(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const i=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,i,r)}),V(this,"move",(n,r)=>this._move(this.rootNode,n,r)),V(this,"filter",n=>{const r=bx(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),V(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},An={nodeToValue(e){return typeof e=="string"?e:Wt(e)&&wt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Wt(e)&&wt(e,"label")?e.label:An.nodeToValue(e)},isNodeDisabled(e){return Wt(e)&&wt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Wt(e)&&wt(e,"childrenCount"))return e.childrenCount}},_n=new WeakMap,Ko=new WeakMap,Yo={},Gs=0,Pu=e=>e&&(e.host||Pu(e.parentNode)),Ix=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=Pu(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),Rx=new Set(["script","output","status","next-route-announcer"]),Tx=e=>Rx.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Nx=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o}=t,i=Ix(n,Array.isArray(e)?e:[e]);Yo[r]||(Yo[r]=new WeakMap);const s=Yo[r],a=[],l=new Set,c=new Set(i),u=h=>{!h||l.has(h)||(l.add(h),u(h.parentNode))};i.forEach(u);const d=h=>{!h||c.has(h)||Array.prototype.forEach.call(h.children,p=>{if(l.has(p))d(p);else try{if(Tx(p))return;const g=p.getAttribute(o)==="true",v=(_n.get(p)||0)+1,y=(s.get(p)||0)+1;_n.set(p,v),s.set(p,y),a.push(p),v===1&&g&&Ko.set(p,!0),y===1&&p.setAttribute(r,""),g||p.setAttribute(o,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",p,f)}})};return d(n),l.clear(),Gs++,()=>{a.forEach(h=>{const p=_n.get(h)-1,f=s.get(h)-1;_n.set(h,p),s.set(h,f),p||(Ko.has(h)||h.removeAttribute(o),Ko.delete(h)),f||h.removeAttribute(r)}),Gs--,Gs||(_n=new WeakMap,_n=new WeakMap,Ko=new WeakMap,Yo={})}},Ax=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,_x=(e,t=Ax(e),n="data-aria-hidden")=>{if(t)return Nx(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},Vx=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Iu(e,t={}){const{defer:n=!0}=t,r=n?Vx:i=>i(),o=[];return o.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(_x(s))})),()=>{o.forEach(i=>i?.())}}var Ru=j("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Ru.build();var Tu=e=>new Uo(e);Tu.empty=()=>new Uo({items:[]});var Fx=e=>e.ids?.control??`combobox:${e.id}:control`,Lx=e=>e.ids?.input??`combobox:${e.id}:input`,Dx=e=>e.ids?.content??`combobox:${e.id}:content`,zx=e=>e.ids?.positioner??`combobox:${e.id}:popper`,Mx=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,jx=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Nt=e=>e.getById(Dx(e)),Vn=e=>e.getById(Lx(e)),Nu=e=>e.getById(zx(e)),Au=e=>e.getById(Fx(e)),mr=e=>e.getById(Mx(e)),_u=e=>e.getById(jx(e)),vr=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return Z0(Nt(e),n)},Vu=e=>{const t=Vn(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},$x=e=>{const t=mr(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:Bx,createMachine:Wx,choose:Hx}=hc(),{and:be,not:We}=Bx;Wx({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){sc(t)},collection:Tu.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Qe,hash(o){return o.join(",")},onChange(o){const i=n(),s=i.get("selectedItems"),a=e("collection"),l=o.map(c=>s.find(d=>a.getItemValue(d)===c)||a.find(c));i.set("selectedItems",l),e("onValueChange")?.({value:o,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){const i=e("collection").find(o);e("onHighlightChange")?.({highlightedValue:o,highlightedItem:i})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue")||"";const i=e("defaultValue")||e("value")||[];if(!o.trim()&&!e("multiple")){const s=e("collection").stringifyMany(i);o=vt(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){const a=r(),l=(a.previousEvent||a).src;e("onInputValueChange")?.({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const o=e("highlightedValue");return{defaultValue:e("collection").find(o)}}),selectedItems:t(()=>{const o=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(o)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:o}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{o({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:Hx([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:be("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:be("isCustomValue",We("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:be("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:be("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:be("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:be("isOpenControlled","isCustomValue",We("hasHighlightedItem"),We("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",We("hasHighlightedItem"),We("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:be("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:be("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:be("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:be("isOpenControlled","isCustomValue",We("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",We("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:be("isOpenControlled","isCustomValue",We("hasHighlightedItem"),We("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",We("hasHighlightedItem"),We("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:be("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:be("isOpenControlled","isCustomValue",We("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",We("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:be("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return Vm(n)?n:!!n?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Nn(()=>Nt(n),{defer:!0,exclude:()=>[Vn(n),mr(n),_u(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(o){o.preventDefault(),o.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return Iu([Vn(e),Nt(e),mr(e),_u(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>Au(n)||mr(n),o=()=>Nu(n);return e.set("currentPlacement",t("positioning").placement),tt(r,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const o=Vn(n);let i=[];const s=c=>{const u=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const h=Nt(n),p=t("scrollToIndexFn");if(p){const v=t("collection").indexOf(d);p({index:v,immediate:c,getElement:()=>vr(n,d)});return}const f=vr(n,d),g=G(()=>{So(f,{rootEl:h,block:"nearest"})});i.push(g)},a=G(()=>s(!0));i.push(a);const l=ko(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){tt(()=>Au(n),()=>Nu(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(s){e.set("currentPlacement",s.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:n}=e,r=n("collection"),o=t.get("highlightedValue");if(!o||!r.has(o))return;const i=n("multiple")?kn(t.get("value"),o):[o];n("onSelect")?.({value:i,itemValue:o}),t.set("value",i);const s=vt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){vs(()=>{const r=e.get("highlightedValue");if(r==null)return;const o=vr(n,r),i=Nt(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>vr(n,r)});return}So(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=o("multiple")?kn(t.get("value"),n.value):[n.value];o("onSelect")?.({value:i,itemValue:n.value}),t.set("value",i);const s=vt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=Bt(t.get("value"),n.value);t.set("value",i);const s=vt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){G(()=>{Vu(e)})},setFinalFocus({scope:e}){G(()=>{mr(e)?.dataset.focusable==null?Vu(e):$x(e)})},syncInputValue({context:e,scope:t,event:n}){const r=Vn(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&s0(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),o=vt(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:n,event:r,prop:o}=e;n(()=>{t.set("value",r.value);const i=vt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const o=vt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>vr(t,r)})}else{const r=Nt(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const n=Fu(t);e("onOpenChange")?.({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){const n=Fu(t);e("onOpenChange")?.({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(Nt(n)?queueMicrotask:G)(()=>{const o=t("collection").firstValue;o&&e.set("highlightedValue",o)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(Nt(n)?queueMicrotask:G)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getNextValue(r),!n&&t("loopFocus")&&(n=o.firstValue)):n=o.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getPreviousValue(r),!n&&t("loopFocus")&&(n=o.lastValue)):n=o.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){G(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){G(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){G(()=>{const r=t("collection");let o=null;n("hasSelectedItems")?o=r.sort(e.get("value"))[0]:o=r.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:o}){const i=Vn(o),s=n("collection");if(!t("autoComplete")||!i||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));G(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",i);const s=vt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function Fu(e){return(e.previousEvent||e).src}M()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),M()(["htmlFor"]),M()(["id"]),M()(["item","persistFocus"]);const Ux=Ru.extendWith("empty"),[Lu,At]=Cn({name:"DialogContext",hookName:"useDialogContext",providerName:""}),Du=P.forwardRef((e,t)=>{const n=At(),r=$y(),o=ws({...r,present:n.open}),i=Je(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:m.jsx(It.div,{...i,ref:Po(o.ref,t)})});Du.displayName="DialogBackdrop";const zu=P.forwardRef((e,t)=>{const n=At(),r=Je(n.getCloseTriggerProps(),e);return m.jsx(It.button,{...r,ref:t})});zu.displayName="DialogCloseTrigger";const Mu=P.forwardRef((e,t)=>{const n=At(),r=Es(),o=Je(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:m.jsx(It.div,{...o,ref:Po(r.ref,t)})});Mu.displayName="DialogContent";const ju=P.forwardRef((e,t)=>{const n=At(),r=Je(n.getDescriptionProps(),e);return m.jsx(It.div,{...r,ref:t})});ju.displayName="DialogDescription";const $u=P.forwardRef((e,t)=>{const n=At(),r=Je(n.getPositionerProps(),e);return Es().unmounted?null:m.jsx(It.div,{...r,ref:t})});$u.displayName="DialogPositioner";var Gx=Object.defineProperty,qx=(e,t,n)=>t in e?Gx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,se=(e,t,n)=>qx(e,typeof t!="symbol"?t+"":t,n),Bu={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},Kx=[],Yx=class{constructor(e,t){se(this,"trapStack"),se(this,"config"),se(this,"doc"),se(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),se(this,"listenerCleanups",[]),se(this,"handleFocus",r=>{const o=Me(r),i=this.findContainerIndex(o,r)>=0;if(i||us(o))i&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(ar(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1=0&&(s=c[u-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>ar(c)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),se(this,"handlePointerDown",r=>{const o=Me(r);if(!(this.findContainerIndex(o,r)>=0)){if(yr(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}yr(this.config.allowOutsideClick,r)||r.preventDefault()}}),se(this,"handleClick",r=>{const o=Me(r);this.findContainerIndex(o,r)>=0||yr(this.config.clickOutsideDeactivates,r)||yr(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),se(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:o});if(!i)return;br(r)&&r.preventDefault(),this.tryFocus(i)}}),se(this,"handleEscapeKey",r=>{Xx(r)&&yr(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),se(this,"_mutationObserver"),se(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(s=>Array.from(s.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),se(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0})})}),se(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Ot(r))if(this.findContainerIndex(this.doc.activeElement)>=0)r=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];r=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),se(this,"tryFocus",r=>{if(r!==!1&&r!==ec(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,Qx(r)&&r.select()}}),se(this,"deactivate",r=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Bu.deactivateTrap(this.trapStack,this);const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i?.();const c=()=>{Wu(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s?.()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),se(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),se(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),se(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),se(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),se(this,"getOption",(r,o,i)=>r&&r[o]!==void 0?r[o]:this.config[i||o]),se(this,"getNodeForOption",(r,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[r];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${r}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),se(this,"findNextNavNode",r=>{const{event:o,isBackward:i=!1}=r,s=r.target||Me(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>s===d);if(u<0&&(c?.container===s||Ot(s)&&!Gt(s)&&!c?.nextTabbableNode(s,!1))&&(u=l),u>=0){const d=u===0?this.state.tabbableGroups.length-1:u-1,h=this.state.tabbableGroups[d];a=ar(s)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else br(o)||(a=c?.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>s===d);if(u<0&&(c?.container===s||Ot(s)&&!Gt(s)&&!c?.nextTabbableNode(s))&&(u=l),u>=0){const d=u===this.state.tabbableGroups.length-1?0:u+1,h=this.state.tabbableGroups[d];a=ar(s)>=0?h.firstTabbableNode:h.firstDomTabbableNode}else br(o)||(a=c?.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||Kx;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(r){return br(r)&&!r.shiftKey},isKeyBackward(r){return br(r)&&r.shiftKey},...t};this.doc=n.document||Ve(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||n?.includes(r)||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=ps(e),n=ic(e),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=n.find(c=>Gt(c)),s=n.slice().reverse().find(c=>Gt(c)),a=!!t.find(c=>ar(c)>0);function l(c,u=!0){const d=t.indexOf(c);return d<0?u?n.slice(n.indexOf(c)+1).find(h=>Gt(h)):n.slice(0,n.indexOf(c)).reverse().find(h=>Gt(h)):t[d+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return Bu.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Wu(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ie(this.doc,"focusin",this.handleFocus,!0),ie(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ie(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ie(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ie(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ie(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t?.();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},br=e=>e.key==="Tab",yr=(e,...t)=>typeof e=="function"?e(...t):e,Xx=e=>!e.isComposing&&e.key==="Escape",Wu=e=>setTimeout(e,0),Qx=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Jx(e,t={}){let n;const r=G(()=>{const o=typeof e=="function"?e():e;if(o){n=new Yx(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:Ve(o)});try{n.activate()}catch{}}});return function(){n?.deactivate(),r()}}var qs="data-scroll-lock";function Zx(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function e1(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:o}=t;if(o.hasAttribute(qs))return;const s=n.innerWidth-r.clientWidth;o.setAttribute(qs,"");const a=()=>av(r,"--scrollbar-width",`${s}px`),l=Zx(r),c=()=>Oo(o,{overflow:"hidden",[l]:`${s}px`}),u=()=>{const{scrollX:h,scrollY:p,visualViewport:f}=n,g=f?.offsetLeft??0,v=f?.offsetTop??0,y=Oo(o,{position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(v))}px`,left:`${-(h-Math.floor(g))}px`,right:"0",[l]:`${s}px`});return()=>{y?.(),n.scrollTo({left:h,top:p,behavior:"instant"})}},d=[a(),bo()?u():c()];return()=>{d.forEach(h=>h?.()),o.removeAttribute(qs)}}var Ks=j("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Xt=Ks.build(),Hu=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,Uu=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Ys=e=>e.ids?.content??`dialog:${e.id}:content`,Gu=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,Xs=e=>e.ids?.title??`dialog:${e.id}:title`,Qs=e=>e.ids?.description??`dialog:${e.id}:description`,qu=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Xo=e=>e.getById(Ys(e)),t1=e=>e.getById(Hu(e)),n1=e=>e.getById(Uu(e)),r1=e=>e.getById(Gu(e)),o1=e=>e.getById(Xs(e)),i1=e=>e.getById(Qs(e)),s1=e=>e.getById(qu(e));function a1(e,t){const{state:n,send:r,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=n.matches("open");return{open:l,setOpen(c){n.matches("open")!==c&&r({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...Xt.trigger.attrs,dir:i("dir"),id:Gu(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":Ys(s),onClick(c){c.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...Xt.backdrop.attrs,dir:i("dir"),hidden:!l,id:Uu(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...Xt.positioner.attrs,dir:i("dir"),id:Hu(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...Xt.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:Ys(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:Xs(s),"aria-describedby":c.description?Qs(s):void 0})},getTitleProps(){return t.element({...Xt.title.attrs,dir:i("dir"),id:Xs(s)})},getDescriptionProps(){return t.element({...Xt.description.attrs,dir:i("dir"),id:Qs(s)})},getCloseTriggerProps(){return t.button({...Xt.closeTrigger.attrs,dir:i("dir"),id:qu(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),r({type:"CLOSE"}))}})}}}var l1={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>s1(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Nn(()=>Xo(e),{defer:!0,pointerBlocking:n("modal"),exclude:[r1(e)],onInteractOutside(o){n("onInteractOutside")?.(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){n("onEscapeKeyDown")?.(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return e1(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?Jx(()=>Xo(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>t("finalFocusEl")?.()??r}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Iu(()=>[Xo(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){G(()=>{e.set("rendered",{title:!!o1(t),description:!!i1(t)})})},syncZIndex({scope:e}){G(()=>{const t=Xo(e);if(!t)return;const n=mo(t);[t1(e),n1(e)].forEach(o=>{o?.style.setProperty("--z-index",n.zIndex),o?.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};M()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const c1=e=>{const t=P.useId(),{getRootNode:n}=Yl(),{dir:r}=vv(),o={id:t,getRootNode:n,dir:r,...e},i=mc(l1,o);return a1(i,wv)},u1=e=>{const[t,{children:n,...r}]=gc(e),[o]=lu(t),i=c1(r),s=ws(Je({present:i.open},t));return m.jsx(Lu,{value:i,children:m.jsx(au,{value:o,children:m.jsx(yc,{value:s,children:n})})})},d1=e=>{const[t,{value:n,children:r}]=gc(e),[o]=lu(t),i=ws(Je({present:n.open},t));return m.jsx(Lu,{value:n,children:m.jsx(au,{value:o,children:m.jsx(yc,{value:i,children:r})})})},Ku=P.forwardRef((e,t)=>{const n=At(),r=Je(n.getTitleProps(),e);return m.jsx(It.h2,{...r,ref:t})});Ku.displayName="DialogTitle";const Yu=P.forwardRef((e,t)=>{const n=At(),r=Es(),o=Je({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return m.jsx(It.button,{...o,ref:t})});Yu.displayName="DialogTrigger";var Xu=j("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Xu.build(),M()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const Qu=j("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Qu.build();var h1=e=>{if(!e)return;const t=mo(e),n=ve(e),r=Ve(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let c;t.boxSizing==="content-box"?c=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):c=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&c>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),c=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${c}px`})};e.addEventListener("input",o),e.form?.addEventListener("reset",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){s?.set?.apply(this,arguments),o()}});const a=new n.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new n.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),r.fonts?.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Ju=P.forwardRef((e,t)=>{const{autoresize:n,...r}=e,o=P.useRef(null),i=ax(),s=Je(i?.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return P.useEffect(()=>{if(n)return h1(o.current)},[n]),m.jsx(It.textarea,{...s,ref:Po(t,o)})});Ju.displayName="FieldTextarea";const Zu=j("fieldset").parts("root","errorText","helperText","legend");Zu.build();var ed=j("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");ed.build(),M()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),M()(["file"]);var td=j("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");td.build();var f1=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,g1=e=>e.ids?.content??`hover-card:${e.id}:content`,p1=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Js=e=>e.getById(f1(e)),m1=e=>e.getById(g1(e)),nd=e=>e.getById(p1(e)),{not:Qo,and:rd}=Pt();rd("isOpenControlled",Qo("isPointer")),Qo("isPointer"),rd("isOpenControlled",Qo("isPointer")),Qo("isPointer"),M()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var od=j("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");od.build();var id=e=>new Ou(e);id.empty=()=>new Ou({rootNode:{children:[]}});var v1=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,Qt=(e,t)=>{t!=null&&e.getById(v1(e,t))?.focus()};function b1(e,t,n){const r=e.getDescendantValues(t),o=r.every(i=>n.includes(i));return xn(o?Bt(n,...r):$t(n,...r))}function Jo(e,t){const{context:n,prop:r,refs:o}=e;if(!r("loadChildren")){n.set("expandedValue",g=>xn($t(g,...t)));return}const i=n.get("loadingStatus"),[s,a]=Ll(t,g=>i[g]==="loaded");if(s.length>0&&n.set("expandedValue",g=>xn($t(g,...s))),a.length===0)return;const l=r("collection"),[c,u]=Ll(a,g=>{const v=l.findNode(g);return l.getNodeChildren(v).length>0});if(c.length>0&&n.set("expandedValue",g=>xn($t(g,...c))),u.length===0)return;n.set("loadingStatus",g=>({...g,...u.reduce((v,y)=>({...v,[y]:"loading"}),{})}));const d=u.map(g=>{const v=l.getIndexPath(g),y=l.getValuePath(v),b=l.findNode(g);return{id:g,indexPath:v,valuePath:y,node:b}}),h=o.get("pendingAborts"),p=r("loadChildren");Kl(p,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const f=d.map(({id:g,indexPath:v,valuePath:y,node:b})=>{const x=h.get(g);x&&(x.abort(),h.delete(g));const C=new AbortController;return h.set(g,C),p({valuePath:y,indexPath:v,node:b,signal:C.signal})});Promise.allSettled(f).then(g=>{const v=[],y=[],b=n.get("loadingStatus");let x=r("collection");g.forEach((C,k)=>{const{id:E,indexPath:I,node:R,valuePath:_}=d[k];C.status==="fulfilled"?(b[E]="loaded",v.push(E),x=x.replace(I,{...R,children:C.value})):(h.delete(E),Reflect.deleteProperty(b,E),y.push({node:R,error:C.reason,indexPath:I,valuePath:_}))}),n.set("loadingStatus",b),v.length&&(n.set("expandedValue",C=>xn($t(C,...v))),r("onLoadChildrenComplete")?.({collection:x})),y.length&&r("onLoadChildrenError")?.({nodes:y})})}function _t(e){const{prop:t,context:n}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:ft}=Pt();ft("isMultipleSelection","moveFocus"),ft("isShiftKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),ft("isBranchFocused","isBranchExpanded"),ft("isShiftKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),ft("isCtrlKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),ft("isCtrlKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),M()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),M()(["node","indexPath"]);var sd=j("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");sd.build(),M()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),M()(["item","highlightOnHover"]),M()(["id"]),M()(["htmlFor"]);const y1=sd.extendWith("empty");var ad=j("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");ad.build();var ld=e=>e.ids?.trigger??`menu:${e.id}:trigger`,x1=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,cd=e=>e.ids?.content??`menu:${e.id}:content`,k1=e=>e.ids?.positioner??`menu:${e.id}:popper`,Zs=(e,t)=>`${e.id}/${t}`,Jt=e=>e?.dataset.value??null,Vt=e=>e.getById(cd(e)),ud=e=>e.getById(k1(e)),Zo=e=>e.getById(ld(e)),C1=(e,t)=>t?e.getById(Zs(e,t)):null,ea=e=>e.getById(x1(e)),xr=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(cd(e))}]:not([data-disabled])`;return Eo(Vt(e),n)},S1=e=>or(xr(e)),w1=e=>ss(xr(e)),ta=(e,t)=>t?e.id===t||e.dataset.value===t:!1,E1=(e,t)=>{const n=xr(e),r=n.findIndex(o=>ta(o,t.value));return Tm(n,r,{loop:t.loop??t.loopFocus})},O1=(e,t)=>{const n=xr(e),r=n.findIndex(o=>ta(o,t.value));return Am(n,r,{loop:t.loop??t.loopFocus})},P1=(e,t)=>{const n=xr(e),r=n.find(o=>ta(o,t.value));return lr(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},I1=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),R1="menu:select";function T1(e,t){if(!e)return;const n=ve(e),r=new n.CustomEvent(R1,{detail:{value:t}});e.dispatchEvent(r)}var{not:Ye,and:Fn,or:N1}=Pt();Ye("isSubmenu"),N1("isOpenAutoFocusEvent","isArrowDownEvent"),Fn(Ye("isTriggerItem"),"isOpenControlled"),Ye("isTriggerItem"),Fn("isSubmenu","isOpenControlled"),Ye("isPointerSuspended"),Fn(Ye("isPointerSuspended"),Ye("isTriggerItem")),Fn(Ye("isTriggerItemHighlighted"),Ye("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Fn(Ye("isTriggerItemHighlighted"),Ye("isHighlightedItemEditable"),"closeOnSelect"),Fn(Ye("isTriggerItemHighlighted"),Ye("isHighlightedItemEditable"));function dd(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function A1(e,t){return e?Jy(e,t):!1}function _1(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return Zs(n,t);for(const o in e){const i=e[o],s=ld(i.scope);if(s===t)return s}return Zs(n,t)}M()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),M()(["closeOnSelect","disabled","value","valueText"]),M()(["htmlFor"]),M()(["id"]),M()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let na=new Map,ra=!1;try{ra=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ei=!1;try{ei=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const hd={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class V1{format(t){let n="";if(!ra&&this.options.signDisplay!=null?n=L1(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ei){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return n;let a=(r=hd[o])===null||r===void 0?void 0:r[i];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ra&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ei&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=F1(t,n),this.options=n}}function F1(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ei){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=hd[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(n)}}const D1=new RegExp("^.*\\(.*\\).*$"),z1=["latn","arab","hanidec","deva","beng","fullwide"];class fd{parse(t){return oa(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return oa(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return oa(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const gd=new Map;function oa(e,t,n){let r=pd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of z1)if(o!==r.options.numberingSystem){let i=pd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function pd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,i;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new fd(this.locale,s).parse(new V1(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&D1.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=kr(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=kr(t," ",this.symbols.group),t=kr(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=kr(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=$1(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const md=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),j1=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $1(e,t,n,r){var o,i,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=j1.map(A=>l.formatToParts(A));var h;let p=(h=(o=c.find(A=>A.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&h!==void 0?h:"-",f=(i=u.find(A=>A.type==="plusSign"))===null||i===void 0?void 0:i.value;!f&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(f="+");let v=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(A=>A.type==="decimal"))===null||s===void 0?void 0:s.value,y=(a=c.find(A=>A.type==="group"))===null||a===void 0?void 0:a.value,b=c.filter(A=>!md.has(A.type)).map(A=>vd(A.value)),x=d.flatMap(A=>A.filter(T=>!md.has(T.type)).map(T=>vd(T.value))),C=[...new Set([...b,...x])].sort((A,T)=>T.length-A.length),k=C.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${C.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),I=new Map(E.map((A,T)=>[A,T])),R=new RegExp(`[${E.join("")}]`,"g");return{minusSign:p,plusSign:f,decimal:v,group:y,literals:k,numeral:R,index:A=>String(I.get(A))}}function kr(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function vd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var bd=j("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");bd.build();var B1=e=>e.ids?.input??`number-input:${e.id}:input`,W1=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,H1=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,yd=e=>`number-input:${e.id}:cursor`,ti=e=>e.getById(B1(e)),U1=e=>e.getById(W1(e)),G1=e=>e.getById(H1(e)),xd=e=>e.getDoc().getElementById(yd(e)),q1=(e,t)=>{let n=null;return t==="increment"&&(n=U1(e)),t==="decrement"&&(n=G1(e)),n},K1=(e,t)=>{if(!rc())return Q1(e,t),()=>{xd(e)?.remove()}},Y1=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},X1=(e,t)=>{const{point:n,isRtl:r,event:o}=t,i=e.getWin(),s=cs(o.movementX,i.devicePixelRatio),a=cs(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const c={x:n.x+s,y:n.y+a},u=i.innerWidth,d=cs(7.5,i.devicePixelRatio);return c.x=Ym(c.x+d,u)-d,{hint:l,point:c}},Q1=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=yd(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:l0,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=` + */var yl;function Yp(){if(yl)return J;yl=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(k){if(typeof k=="object"&&k!==null){var E=k.$$typeof;switch(E){case t:switch(k=k.type,k){case l:case c:case r:case i:case o:case d:return k;default:switch(k=k&&k.$$typeof,k){case a:case u:case f:case m:case s:return k;default:return E}}case n:return E}}}function C(k){return x(k)===c}return J.AsyncMode=l,J.ConcurrentMode=c,J.ContextConsumer=a,J.ContextProvider=s,J.Element=t,J.ForwardRef=u,J.Fragment=r,J.Lazy=f,J.Memo=m,J.Portal=n,J.Profiler=i,J.StrictMode=o,J.Suspense=d,J.isAsyncMode=function(k){return C(k)||x(k)===l},J.isConcurrentMode=C,J.isContextConsumer=function(k){return x(k)===a},J.isContextProvider=function(k){return x(k)===s},J.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===t},J.isForwardRef=function(k){return x(k)===u},J.isFragment=function(k){return x(k)===r},J.isLazy=function(k){return x(k)===f},J.isMemo=function(k){return x(k)===m},J.isPortal=function(k){return x(k)===n},J.isProfiler=function(k){return x(k)===i},J.isStrictMode=function(k){return x(k)===o},J.isSuspense=function(k){return x(k)===d},J.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===c||k===i||k===o||k===d||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===f||k.$$typeof===m||k.$$typeof===s||k.$$typeof===a||k.$$typeof===u||k.$$typeof===v||k.$$typeof===y||k.$$typeof===b||k.$$typeof===p)},J.typeOf=x,J}var xl;function Xp(){return xl||(xl=1,Ki.exports=Yp()),Ki.exports}var Yi,kl;function Qp(){if(kl)return Yi;kl=1;var e=Xp(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(f){return e.isMemo(f)?o:i[f.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;function m(f,p,v){if(typeof p!="string"){if(h){var y=d(p);y&&y!==h&&m(f,y,v)}var b=l(p);c&&(b=b.concat(c(p)));for(var x=s(f),C=s(p),k=0;k=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var em={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tm=/[A-Z]|^ms/g,nm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sl=function(t){return t.charCodeAt(1)===45},wl=function(t){return t!=null&&typeof t!="boolean"},Ji=ll(function(e){return Sl(e)?e:e.replace(tm,"-$&").toLowerCase()}),El=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(nm,function(r,o,i){return at={name:o,styles:i,next:at},o})}return em[t]!==1&&!Sl(t)&&typeof n=="number"&&n!==0?n+"px":n};function gr(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return at={name:o.name,styles:o.styles,next:at},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)at={name:s.name,styles:s.styles,next:at},s=s.next;var a=i.styles+";";return a}return rm(e,t,n)}case"function":{if(e!==void 0){var l=at,c=n(e);return at=l,gr(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function rm(e,t,n){var r="";if(Array.isArray(n))for(var o=0;or?.(...n))}}const um=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),dm=/^on[A-Z]/;function pr(...e){let t={};for(let n of e){for(let r in t){if(dm.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=cm(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=um(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function hm(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function fm(...e){return t=>{e.forEach(n=>{hm(n,t)})}}function mr(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const qe=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function gm(e){return e.default||e}const _e=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),lt=e=>typeof e=="string",os=e=>typeof e=="function";function pm(e){const t=O.version;return!lt(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const _l=(...e)=>{const t=e.reduce((n,r)=>(r?.forEach(o=>n.add(o)),n),new Set([]));return Array.from(t)};function mm(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function An(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=P.createContext(s);a.displayName=t;function l(){const c=P.useContext(a);if(!c&&n){const u=new Error(i??mm(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const[vm,ao]=An({name:"ChakraContext",strict:!0,providerName:""});function bm(e){const{value:t,children:n}=e;return g.jsxs(vm,{value:t,children:[!t._config.disableLayers&&g.jsx(Al,{styles:t.layers.atRule}),g.jsx(Al,{styles:t._global}),n]})}const ym=(e,t)=>{const n={},r={},o=Object.keys(e);for(const i of o)t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]},_n=(e,t)=>{const n=os(t)?t:r=>t.includes(r);return ym(e,n)},xm=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function km(e){return typeof e=="string"&&xm.has(e)}function Cm(e,t,n){const{css:r,isValidProperty:o}=ao(),{children:i,...s}=e,a=P.useMemo(()=>{const[h,m]=_n(s,b=>n(b,t.variantKeys)),[f,p]=_n(m,t.variantKeys),[v,y]=_n(p,o);return{forwardedProps:h,variantProps:f,styleProps:v,elementProps:y}},[t.variantKeys,n,s,o]),{css:l,...c}=a.styleProps,u=P.useMemo(()=>{const h={...a.variantProps};return t.variantKeys.includes("colorPalette")||(h.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(h.orientation=s.orientation),t(h)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:P.useMemo(()=>r(u,...Sm(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const Sm=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),wm=gm(yp),Em=e=>e!=="theme",Om=(e,t,n)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let Pm=typeof document<"u";const Vl=({cache:e,serialized:t,isStringTag:n})=>{Xi(e,t,n);const r=Il(()=>Qi(e,t,n));if(!Pm&&r!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=qe(o,i.name),i=i.next;return g.jsx("style",{"data-emotion":qe(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},Fl={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},Im=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),is=((e,t={},n={})=>{if(Im(Fl,e)){n.forwardProps||(n.forwardProps=[]);const c=Fl[e];n.forwardProps=_l([...n.forwardProps,...c])}const r=e.__emotion_real===e,o=r&&e.__emotion_base||e;let i,s;n!==void 0&&(i=n.label,s=n.target);let a=[];const l=es((c,u,d)=>{const{cva:h,isValidProperty:m}=ao(),f=t.__cva__?t:h(t),p=Rm(e.__emotion_cva,f),v=D=>(q,K)=>D.includes(q)?!0:!K?.includes(q)&&!m(q);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=v(n.forwardProps));const y=(D,q)=>{const K=typeof e=="string"&&e.charCodeAt(0)>96?wm:Em,ce=!q?.includes(D)&&!m(D);return K(D)&&ce},b=Om(e,n,r)||y,x=O.useMemo(()=>Object.assign({},n.defaultProps,mr(c)),[c]),{props:C,styles:k}=Cm(x,p,b);let E="",I=[k],R=C;if(C.theme==null){R={};for(let D in C)R[D]=C[D];R.theme=O.useContext(ts)}typeof C.className=="string"?E=Cl(u.registered,I,C.className):C.className!=null&&(E=qe(E,C.className));const _=Zi(a.concat(I),u.registered,R);_.styles&&(E=qe(E,`${u.key}-${_.name}`)),s!==void 0&&(E=qe(E,s));const A=!b("as");let T=A&&C.as||o,S={};for(let D in C)if(!(A&&D==="as")){if(km(D)){const q=D.replace("html","").toLowerCase();S[q]=C[D];continue}b(D)&&(S[D]=C[D])}let N=E.trim();N?S.className=N:Reflect.deleteProperty(S,"className"),S.ref=d;const z=n.forwardAsChild||n.forwardProps?.includes("asChild");if(C.asChild&&!z){const D=O.isValidElement(C.children)?O.Children.only(C.children):O.Children.toArray(C.children).find(O.isValidElement);if(!D)throw new Error("[chakra-ui > factory] No valid child found");T=D.type,S.children=null,Reflect.deleteProperty(S,"asChild"),S=pr(S,D.props),S.ref=fm(d,pm(D))}return S.as&&z?(S.as=void 0,g.jsxs(O.Fragment,{children:[g.jsx(Vl,{cache:u,serialized:_,isStringTag:typeof T=="string"}),g.jsx(T,{asChild:!0,...S,children:g.jsx(C.as,{children:S.children})})]})):g.jsxs(O.Fragment,{children:[g.jsx(Vl,{cache:u,serialized:_,isStringTag:typeof T=="string"}),g.jsx(T,{...S})]})});return l.displayName=i!==void 0?i:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),ss=new Map,me=new Proxy(is,{apply(e,t,n){return is(...n)},get(e,t){return ss.has(t)||ss.set(t,is(t)),ss.get(t)}}),Rm=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),vr=me("div");vr.displayName="Box";const Tm=Object.freeze({}),Nm=Object.freeze({});function Am(e){const{key:t,recipe:n}=e,r=ao();return P.useMemo(()=>{const o=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(o))},[t,n,r])}const _m=e=>e.charAt(0).toUpperCase()+e.slice(1);function Rt(e){const{key:t,recipe:n}=e,r=_m(t||n.className||"Component"),[o,i]=An({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...d}=c,h=Am({key:t,recipe:d.recipe||n}),[m,f]=P.useMemo(()=>h.splitVariantProps(d),[h,d]);return{styles:u?Tm:h(m),className:h.className,props:f}}const a=(c,u)=>{const d=me(c,{},u),h=P.forwardRef((m,f)=>{const p=i(),v=P.useMemo(()=>pr(p,m),[m,p]),{styles:y,className:b,props:x}=s(v);return g.jsx(d,{...x,ref:f,css:[y,v.css],className:qe(b,v.className)})});return h.displayName=c.displayName||c.name,h};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}function lo(e){return e==null?[]:Array.isArray(e)?e:[e]}var br=e=>e[0],as=e=>e[e.length-1],Vm=(e,t)=>e.indexOf(t)!==-1,Ut=(e,...t)=>e.concat(t),Gt=(e,...t)=>e.filter(n=>!t.includes(n)),Vn=e=>Array.from(new Set(e)),ls=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},Fn=(e,t)=>Vm(e,t)?Gt(e,t):Ut(e,t);function Ll(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function Fm(e,t,n={}){return e[Ll(e,t,n)]}function Lm(e,t,n={}){const{step:r=1,loop:o=!0}=n;return Ll(e,t,{step:-r,loop:o})}function Dm(e,t,n={}){return e[Lm(e,t,n)]}function Dl(e,t){return e.reduce(([n,r],o)=>(t(o)?n.push(o):r.push(o),[n,r]),[[],[]])}var zl=e=>e?.constructor.name==="Array",zm=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(zl(e)&&zl(t))return zm(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;oArray.isArray(e),Mm=e=>e===!0||e===!1,Ml=e=>e!=null&&typeof e=="object",qt=e=>Ml(e)&&!yr(e),co=e=>typeof e=="string",Kt=e=>typeof e=="function",jm=e=>e==null,Tt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),$m=e=>Object.prototype.toString.call(e),jl=Function.prototype.toString,Bm=jl.call(Object),Wm=e=>{if(!Ml(e)||$m(e)!="[object Object]"||Gm(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Tt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&jl.call(n)==Bm},Hm=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Um=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Gm=e=>Hm(e)||Um(e),uo=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,qm=e=>e(),Km=()=>{},ho=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})},Ym=(()=>{let e=0;return()=>(e++,e.toString(36))})();function vt(e,t,...n){if(e in t){const o=t[e];return Kt(o)?o(...n):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,vt),r}var $l=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,$l),t?.()}},{floor:Bl,abs:Wl,round:fo,min:Xm,max:Qm,pow:Jm,sign:Zm}=Math,cs=e=>Number.isNaN(e),Nt=e=>cs(e)?0:e,Hl=(e,t)=>(e%t+t)%t,e0=(e,t)=>(e%t+t)%t,t0=(e,t)=>Nt(e)>=t,n0=(e,t)=>Nt(e)<=t,r0=(e,t,n)=>{const r=Nt(e),o=t==null||r>=t,i=n==null||r<=n;return o&&i},o0=(e,t,n)=>fo((Nt(e)-t)/n)*n+t,Ve=(e,t,n)=>Xm(Qm(Nt(e),t),n),i0=(e,t,n)=>(Nt(e)-t)/(n-t),s0=(e,t,n,r)=>Ve(o0(e*(n-t)+t,t,r),t,n),Ul=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=Jm(10,i);n=fo(n*s)/s}return n},us=(e,t)=>typeof t=="number"?Bl(e*t+.5)/t:fo(e),Gl=(e,t,n,r)=>{const o=t!=null?Number(t):0,i=Number(n),s=(e-o)%r;let a=Wl(s)*2>=r?e+Zm(s)*(r-Wl(s)):e-s;if(a=Ul(a,r),!cs(o)&&ai){const l=Bl((i-o)/r),c=o+l*r;a=l<=0||c{const r=Math.pow(n,t);return fo(e*r)/r},ql=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},Kl=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(ql(e),ql(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},a0=(e,t)=>Kl(Nt(e),"+",t),l0=(e,t)=>Kl(Nt(e),"-",t);function go(e){if(!Wm(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=go(o))}return n}function c0(e,t=Object.is){let n={...e};const r=new Set,o=u=>(r.add(u),()=>r.delete(u)),i=()=>{r.forEach(u=>u())};return{subscribe:o,get:u=>n[u],set:(u,d)=>{t(n[u],d)||(n[u]=d,i())},update:u=>{let d=!1;for(const h in u){const m=u[h];m!==void 0&&!t(n[h],m)&&(n[h]=m,d=!0)}d&&i()},snapshot:()=>({...n})}}function xr(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function Yl(e,t){if(e==null)throw new Error(t())}function u0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ln(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=P.createContext(s);a.displayName=t;function l(){const c=P.useContext(a);if(!c&&n){const u=new Error(i??u0(r,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const[UR,Xl]=Ln({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function d0(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var Ql=e=>Math.max(0,Math.min(1,e)),h0=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),Jl=()=>{},po=e=>typeof e=="object"&&e!==null,f0=2147483647,g0=1,p0=9,m0=11,Te=e=>po(e)&&e.nodeType===g0&&typeof e.nodeName=="string",ds=e=>po(e)&&e.nodeType===p0,v0=e=>po(e)&&e===e.window,Zl=e=>Te(e)?e.localName||"":"#document";function b0(e){return["html","body","#document"].includes(Zl(e))}var y0=e=>po(e)&&e.nodeType!==void 0,Dn=e=>y0(e)&&e.nodeType===m0&&"host"in e,x0=e=>Te(e)&&e.localName==="input",k0=e=>Te(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,C0=/(textarea|select)/;function ec(e){if(e==null||!Te(e))return!1;try{return x0(e)&&e.selectionStart!=null||C0.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Yt(e,t){if(!e||!t||!Te(e)||!Te(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Dn(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Fe(e){return ds(e)?e:v0(e)?e.document:e?.ownerDocument??document}function S0(e){return Fe(e).documentElement}function ve(e){return Dn(e)?ve(e.host):ds(e)?e.defaultView??window:Te(e)?e.ownerDocument?.defaultView??window:window}function tc(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function w0(e){if(Zl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Dn(e)&&e.host||S0(e);return Dn(t)?t.host:t}var hs=new WeakMap;function mo(e){return hs.has(e)||hs.set(e,ve(e).getComputedStyle(e)),hs.get(e)}var vo=()=>typeof document<"u";function E0(){return navigator.userAgentData?.platform??navigator.platform}function O0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var fs=e=>vo()&&e.test(E0()),nc=e=>vo()&&e.test(O0()),P0=e=>vo()&&e.test(navigator.vendor),rc=()=>vo()&&!!navigator.maxTouchPoints,I0=()=>fs(/^iPhone/i),R0=()=>fs(/^iPad/i)||yo()&&navigator.maxTouchPoints>1,bo=()=>I0()||R0(),T0=()=>yo()||bo(),yo=()=>fs(/^Mac/i),oc=()=>T0()&&P0(/apple/i),N0=()=>nc(/Firefox/i),A0=()=>nc(/Android/i);function _0(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function $e(e){return _0(e)?.[0]??e.target}function V0(e){return z0(e).isComposing||e.keyCode===229}function F0(e){return e.pointerType===""&&e.isTrusted?!0:A0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var L0=e=>e.button===2||yo()&&e.ctrlKey&&e.button===0,D0=e=>"touches"in e&&e.touches.length>0;function z0(e){return e.nativeEvent??e}function M0(e,t="client"){const n=D0(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var ie=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,n,r),()=>{o?.removeEventListener(t,n,r)}};function j0(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=ve(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function $0(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function xo(e,t,n="value"){if(!e)return;const r=$0(e);r&&j0(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function B0(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=ve(e);e instanceof o.HTMLInputElement&&(xo(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function W0(e){return H0(e)?e.form:e.closest("form")}function H0(e){return e.matches("textarea, input, select, button")}function U0(e,t){if(!e)return;const n=W0(e),r=o=>{o.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function G0(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=ve(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function gs(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[U0(e,r),G0(e,n)];return()=>o.forEach(i=>i?.())}var ic=e=>Te(e)&&e.tagName==="IFRAME",q0=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),K0=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,ps="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",sc=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(ps));(t==!0||t=="if-empty"&&n.length===0)&&Te(e)&&At(e)&&n.unshift(e);const o=n.filter(At);return o.forEach((i,s)=>{if(ic(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...sc(a))}}),o};function At(e){return!e||e.closest("[inert]")?!1:e.matches(ps)&&k0(e)}function ms(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(ps)).filter(Xt);return r.forEach((o,i)=>{if(ic(o)&&o.contentDocument){const s=o.contentDocument.body,a=ms(s);r.splice(i,1,...a)}}),r.length,r}function Xt(e){return e!=null&&e.tabIndex>0?!0:At(e)&&!K0(e)}function kr(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||ec(e))&&!q0(e)?0:e.tabIndex}function vs(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=ms(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}function bs(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function G(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function Y0(e,t,n){const r=G(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function X0(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function ko(e,t){const{defer:n}=t,r=n?G:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(X0(i,t))})),()=>{o.forEach(i=>i?.())}}function ac(e){const t=()=>{const n=ve(e);e.dispatchEvent(new n.MouseEvent("click"))};N0()?Y0(e,"keyup",t):queueMicrotask(t)}function Co(e){const t=w0(e);return b0(t)?Fe(t).body:Te(t)&&ys(t)?t:Co(t)}function lc(e,t=[]){const n=Co(e),r=n===e.ownerDocument.body,o=ve(n);return r?t.concat(o,o.visualViewport||[],ys(n)?n:[]):t.concat(n,lc(n,[]))}var Q0=/auto|scroll|overlay|hidden|clip/,J0=new Set(["inline","contents"]);function ys(e){const t=ve(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return Q0.test(n+o+r)&&!J0.has(i)}function Z0(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function So(e,t){const{rootEl:n,...r}=t||{};!e||!n||!ys(n)||!Z0(n)||e.scrollIntoView(r)}function cc(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:Ql(s.x/o),y:Ql(s.y/i)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:h}=c,m=typeof h=="object"?h.x:h,f=typeof h=="object"?h.y:h;return d==="horizontal"?u==="rtl"||m?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function ev(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[ie(e,"pointerlockchange",i,!1),ie(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var zn="default",xs="",wo=new WeakMap;function tv(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return bo()?(zn==="default"&&(xs=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),zn="disabled"):t&&(wo.set(t,t.style.userSelect),t.style.userSelect="none"),()=>nv({target:t,doc:r})}function nv(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(bo()){if(zn!=="disabled")return;zn="restoring",setTimeout(()=>{bs(()=>{zn==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=xs||""),xs="",zn="default")})},300)}else if(t&&wo.has(t)){const i=wo.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),wo.delete(t)}}function uc(e={}){const{defer:t,target:n,...r}=e,o=t?G:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(tv({...r,target:s}))})),()=>{i.forEach(s=>s?.())}}function rv(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=[ie(e,"pointermove",s=>{const a=M0(s),l=Math.sqrt(a.x**2+a.y**2),c=s.pointerType==="touch"?10:5;if(!(l{i.forEach(s=>s())}}function Eo(e,t){return Array.from(e?.querySelectorAll(t)??[])}function ov(e,t){return e?.querySelector(t)??null}var ks=e=>e.id;function iv(e,t,n=ks){return e.find(r=>n(r)===t)}function Cs(e,t,n=ks){const r=iv(e,t,n);return r?e.indexOf(r):-1}function sv(e,t,n=!0){let r=Cs(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function av(e,t,n=!0){let r=Cs(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var lv=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),cv=e=>lv(e.dataset?.valuetext??e.textContent??""),uv=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function dv(e,t,n,r=ks){const o=n?Cs(e,n,r):-1;let i=n?h0(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>uv(cv(a),t))}function Oo(e,t){if(!e)return Jl;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function hv(e,t,n){if(!e)return Jl;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function fv(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let u=e.slice();const d=dv(u,c,r,s);function h(){clearTimeout(n.timer),n.timer=-1}function m(f){n.keysSoFar=f,h(),f!==""&&(n.timer=+setTimeout(()=>{m(""),h()},i))}return m(a),d}var Cr=Object.assign(fv,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:gv});function gv(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function pv(e,t,n){const{signal:r}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{r.aborted||(clearTimeout(l),s(c))}).catch(c=>{r.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function mv(e,t){const{timeout:n,rootNode:r}=t,o=ve(r),i=Fe(r),s=new o.AbortController;return pv(new Promise(a=>{const l=e();if(l){a(l);return}const c=new o.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(i.body,{childList:!0,subtree:!0})}),s,n)}var vv=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),bv=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,dc=e=>{const t={};let n;for(;n=bv.exec(e);)t[n[1]]=n[2];return t},yv=(e,t)=>{if(co(e)){if(co(t))return`${e};${t}`;e=dc(e)}else co(t)&&(t=dc(t));return Object.assign({},e??{},t??{})};function Ke(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=ho(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=vv(t[r],n[r]);continue}if(r==="style"){t[r]=yv(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function hc(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((l,c)=>!Ze(r[c],l)))&&(r=s,o=t(...s)),o}}function _t(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function GR(e){return e}function fc(){return{guards:_t(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}var Mn=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Mn||{}),Ss="__init__";function xv(e){const t=()=>e.getRootNode?.()??document,n=()=>Fe(t()),r=()=>n().defaultView??window,o=()=>tc(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}function Po(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function kv(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const ws=e=>{const t=P.memo(P.forwardRef((n,r)=>{const{asChild:o,children:i,...s}=n;if(!o)return P.createElement(e,{...s,ref:r},i);if(!P.isValidElement(i))return null;const a=P.Children.only(i),l=kv(a);return P.cloneElement(a,{...Ke(s,a.props),ref:r?Po(r,l):l})}));return t.displayName=e.displayName||e.name,t},bt=(()=>{const e=new Map;return new Proxy(ws,{apply(t,n,r){return ws(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,ws(r)),e.get(r)}})})(),[KR,Cv]=Ln({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),gc=()=>(e,t)=>t.reduce((n,r)=>{const[o,i]=n,s=r;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),pc=e=>gc()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function Sv(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var M=()=>e=>Array.from(new Set(e));function wv(e,t){const{state:n,send:r,context:o}=e,i=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&r({type:"NODE.SET",node:s})},unmount(){r({type:"UNMOUNT"})}}}var Ev={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{e("onExitComplete")?.()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",mo(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&i?.ownerDocument.visibilityState==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});G(()=>{const s=Io(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{G(()=>{e.set("prevAnimationName",Io(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const o=a=>{(a.composedPath?.()?.[0]??a.target)===r&&e.set("prevAnimationName",Io(t.get("styles")))},i=a=>{const l=Io(t.get("styles"));$e(a)===r&&l===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",o),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i);const s=Oo(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i),bs(()=>s())}}}}};function Io(e){return e?.animationName||"none"}M()(["onExitComplete","present","immediate"]);var mc=typeof globalThis.document<"u"?P.useLayoutEffect:P.useEffect;function Ro(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=P.useState(t),[o,i]=P.useState(r),s=e().value!==void 0,a=P.useRef(o);a.current=s?e().value:o;const l=P.useRef(a.current);mc(()=>{l.current=a.current},[o,e().value]);const c=d=>{const h=l.current,m=Kt(d)?d(h):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:m,prev:h}),s||i(m),n(m,h)||e().onChange?.(m,h)};function u(){return s?e().value:o}return{initial:r,ref:a,get:u,set(d){(e().sync?It.flushSync:qm)(()=>c(d))},invoke(d,h){e().onChange?.(d,h)},hash(d){return e().hash?.(d)??String(d)}}}Ro.cleanup=e=>{P.useEffect(()=>e,[])},Ro.ref=e=>{const t=P.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function Ov(e){const t=P.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var Pv=(e,t)=>{const n=P.useRef(!1),r=P.useRef(!1);P.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),P.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function vc(e,t={}){const n=P.useMemo(()=>{const{id:T,ids:S,getRootNode:N}=t;return xv({id:T,ids:S,getRootNode:N})},[t]),r=(...T)=>{e.debug&&console.log(...T)},o=e.props?.({props:go(t),scope:n})??t,i=Iv(o),s=e.context?.({prop:i,bindable:Ro,scope:n,flush:yc,getContext(){return l},getComputed(){return k},getRefs(){return p},getEvent(){return m()}}),a=bc(s),l={get(T){return a.current?.[T].ref.current},set(T,S){a.current?.[T].set(S)},initial(T){return a.current?.[T].initial},hash(T){const S=a.current?.[T].get();return a.current?.[T].hash(S)}},c=P.useRef(new Map),u=P.useRef(null),d=P.useRef(null),h=P.useRef({type:""}),m=()=>({...h.current,current(){return h.current},previous(){return d.current}}),f=()=>({...E,matches(...T){return T.includes(E.ref.current)},hasTag(T){return!!e.states[E.ref.current]?.tags?.includes(T)}}),p=Ov(e.refs?.({prop:i,context:l})??{}),v=()=>({state:f(),context:l,event:m(),prop:i,send:A,action:y,guard:b,track:Pv,refs:p,computed:k,flush:yc,scope:n,choose:C}),y=T=>{const S=Kt(T)?T(v()):T;if(!S)return;const N=S.map(z=>{const D=e.implementations?.actions?.[z];return D||xr(`[zag-js] No implementation found for action "${JSON.stringify(z)}"`),D});for(const z of N)z?.(v())},b=T=>Kt(T)?T(v()):e.implementations?.guards?.[T](v()),x=T=>{const S=Kt(T)?T(v()):T;if(!S)return;const N=S.map(D=>{const q=e.implementations?.effects?.[D];return q||xr(`[zag-js] No implementation found for effect "${JSON.stringify(D)}"`),q}),z=[];for(const D of N){const q=D?.(v());q&&z.push(q)}return()=>z.forEach(D=>D?.())},C=T=>lo(T).find(S=>{let N=!S.guard;return co(S.guard)?N=!!b(S.guard):Kt(S.guard)&&(N=S.guard(v())),N}),k=T=>{Yl(e.computed,()=>"[zag-js] No computed object found on machine");const S=e.computed[T];return S({context:l,event:m(),prop:i,refs:p,scope:n,computed:k})},E=Ro(()=>({defaultValue:e.initialState({prop:i}),onChange(T,S){S&&(c.current.get(S)?.(),c.current.delete(S)),S&&y(e.states[S]?.exit),y(u.current?.actions);const N=x(e.states[T]?.effects);if(N&&c.current.set(T,N),S===Ss){y(e.entry);const z=x(e.effects);z&&c.current.set(Ss,z)}y(e.states[T]?.entry)}})),I=P.useRef(void 0),R=P.useRef(Mn.NotStarted);mc(()=>{queueMicrotask(()=>{const N=R.current===Mn.Started;R.current=Mn.Started,r(N?"rehydrating...":"initializing...");const z=I.current??E.initial;E.invoke(z,N?E.get():Ss)});const T=c.current,S=E.ref.current;return()=>{r("unmounting..."),I.current=S,R.current=Mn.Stopped,T.forEach(N=>N?.()),c.current=new Map,u.current=null,queueMicrotask(()=>{y(e.exit)})}},[]);const _=()=>"ref"in E?E.ref.current:E.get(),A=T=>{queueMicrotask(()=>{if(R.current!==Mn.Started)return;d.current=h.current,h.current=T;let S=_();const N=e.states[S].on?.[T.type]??e.on?.[T.type],z=C(N);if(!z)return;u.current=z;const D=z.target??S;r("transition",T.type,z.target||S,`(${z.actions})`);const q=D!==S;q?It.flushSync(()=>E.set(D)):z.reenter&&!q?E.invoke(S,S):y(z.actions??[])})};return e.watch?.(v()),{state:f(),send:A,context:l,prop:i,scope:n,refs:p,computed:k,event:m(),getStatus:()=>R.current}}function bc(e){const t=P.useRef(e);return t.current=e,t}function Iv(e){const t=bc(e);return function(r){return t.current[r]}}function yc(e){queueMicrotask(()=>{It.flushSync(()=>e())})}var Rv=Sv(e=>e);function Tv(e,t={}){const{sync:n=!1}=t,r=Nv(e);return P.useCallback((...o)=>n?queueMicrotask(()=>r.current?.(...o)):r.current?.(...o),[n,r])}function Nv(e){const t=P.useRef(e);return t.current=e,t}const Es=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1,...i}=e,s=P.useRef(!1),a={...i,present:r,onExitComplete:Tv(e.onExitComplete)},l=vc(Ev,a),c=wv(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||n&&!c.present&&s.current,d=()=>({"data-state":c.skip&&o?void 0:r?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:d,present:c.present,unmounted:u}},[xc,Os]=Ln({name:"PresenceContext",hookName:"usePresenceContext",providerName:""}),To=me("span"),{withContext:Av}=Rt({key:"text"}),Le=Av("p");function kc(e,t=[]){const n=P.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return P.useInsertionEffect(()=>{n.current=e}),P.useCallback((...r)=>n.current?.(...r),t)}function Qt(e={}){const t=kc(e.onOpen),n=kc(e.onClose),[r,o]=P.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:r,s=e.open!==void 0,a=P.useCallback(()=>{s||o(!1),n?.()},[s,n]),l=P.useCallback(()=>{s||o(!0),t?.()},[s,t]),c=P.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}var j=(e,t=[])=>({parts:(...n)=>{if(_v(t))return j(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>j(e,[...t,...n]),omit:(...n)=>j(e,t.filter(r=>!n.includes(r))),rename:n=>j(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${jn(e)}"][data-part="${jn(r)}"]`,`& [data-scope="${jn(e)}"][data-part="${jn(r)}"]`].join(", "),attrs:{"data-scope":jn(e),"data-part":jn(r)}}}),{})}),jn=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),_v=e=>e.length===0,Cc=j("collapsible").parts("root","trigger","content","indicator");Cc.build(),M()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Vv=Object.defineProperty,Fv=(e,t,n)=>t in e?Vv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ps=(e,t,n)=>Fv(e,t+"",n),Lv=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},Is=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:o}=this.getChannelRange(e);return i0(n,r,o)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=s0(t,n,r,o);return Gl(i,n,r,o)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=Ve(t,n,r),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),o=n||this.getChannels().find(s=>s!==r),i=this.getChannels().find(s=>s!==r&&s!==o);return{xChannel:r,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=Gl(Ve(this.getChannelValue(e)+t,n,r),n,r,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Lv(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Dv=/^#[\da-f]+$/i,zv=/^rgba?\((.*)\)$/,Mv=/[^#]/gi,Sc=class Mi extends Is{constructor(t,n,r,o){super(),this.red=t,this.green=n,this.blue=r,this.alpha=o}static parse(t){let n=[];if(Dv.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(Mv,"$&$&"):t).slice(1).split("");for(;o.length>0;)n.push(parseInt(o.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(zv);return r?.[1]&&(n=r[1].split(",").map(o=>Number(o.trim())).map((o,i)=>Ve(o,0,i<3?255:1))),n.length<3?void 0:new Mi(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(n-r)/s+(nNumber(a.trim().replace("%","")));return new ji(Hl(r,360),Ve(o,0,100),Ve(i,0,100),Ve(s??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${re(this.saturation,2)}%, ${re(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${re(this.saturation,2)}%, ${re(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Ns(re(this.hue,2),re(t*100,2),re(r*100,2),re(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,o=n*Math.min(r,1-r),i=(s,a=(s+t/30)%12)=>r-o*Math.max(Math.min(a-3,9-a,1),-1);return new Rs(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),re(this.alpha,2))}clone(){return new ji(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return ji.colorChannels}};Ps(wc,"colorChannels",["hue","saturation","lightness"]);var Ts=wc,$v=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Ec=class $i extends Is{constructor(t,n,r,o){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=o}static parse(t){let n;if(n=t.match($v)){const[r,o,i,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new $i(Hl(r,360),Ve(o,0,100),Ve(i,0,100),Ve(s??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${re(this.saturation,2)}%, ${re(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${re(this.saturation,2)}%, ${re(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new Ts(re(this.hue,2),re(t*100,2),re(r*100,2),re(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,o=(i,s=(i+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new Rs(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),re(this.alpha,2))}clone(){return new $i(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return $i.colorChannels}};Ps(Ec,"colorChannels",["hue","saturation","brightness"]);var Ns=Ec,Bv="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",Wv=e=>{const t=new Map,n=e.split(",");for(let r=0;r{if(Oc.has(e))return No(Oc.get(e));const t=Rs.parse(e)||Ns.parse(e)||Ts.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(n,No),n}return t};const Hv=["top","right","bottom","left"],Vt=Math.min,Be=Math.max,Ao=Math.round,_o=Math.floor,ct=e=>({x:e,y:e}),Uv={left:"right",right:"left",bottom:"top",top:"bottom"},Gv={start:"end",end:"start"};function As(e,t,n){return Be(e,Vt(t,n))}function yt(e,t){return typeof e=="function"?e(t):e}function xt(e){return e.split("-")[0]}function $n(e){return e.split("-")[1]}function _s(e){return e==="x"?"y":"x"}function Vs(e){return e==="y"?"height":"width"}const qv=new Set(["top","bottom"]);function ut(e){return qv.has(xt(e))?"y":"x"}function Fs(e){return _s(ut(e))}function Kv(e,t,n){n===void 0&&(n=!1);const r=$n(e),o=Fs(e),i=Vs(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vo(s)),[s,Vo(s)]}function Yv(e){const t=Vo(e);return[Ls(e),t,Ls(t)]}function Ls(e){return e.replace(/start|end/g,t=>Gv[t])}const Pc=["left","right"],Ic=["right","left"],Xv=["top","bottom"],Qv=["bottom","top"];function Jv(e,t,n){switch(e){case"top":case"bottom":return n?t?Ic:Pc:t?Pc:Ic;case"left":case"right":return t?Xv:Qv;default:return[]}}function Zv(e,t,n,r){const o=$n(e);let i=Jv(xt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ls)))),i}function Vo(e){return e.replace(/left|right|bottom|top/g,t=>Uv[t])}function eb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rc(e){return typeof e!="number"?eb(e):{top:e,right:e,bottom:e,left:e}}function Fo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Tc(e,t,n){let{reference:r,floating:o}=e;const i=ut(t),s=Fs(t),a=Vs(s),l=xt(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-o.width,y:d};break;default:m={x:r.x,y:r.y}}switch($n(t)){case"start":m[s]-=h*(n&&c?-1:1);break;case"end":m[s]+=h*(n&&c?-1:1);break}return m}const tb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Tc(c,r,l),h=r,m={},f=0;for(let p=0;p({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=yt(e,t)||{};if(c==null)return{};const d=Rc(u),h={x:n,y:r},m=Fs(o),f=Vs(m),p=await s.getDimensions(c),v=m==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",C=i.reference[f]+i.reference[m]-h[m]-i.floating[f],k=h[m]-i.reference[m],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let I=E?E[x]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[x]||i.floating[f]);const R=C/2-k/2,_=I/2-p[f]/2-1,A=Vt(d[y],_),T=Vt(d[b],_),S=A,N=I-p[f]-T,z=I/2-p[f]/2+R,D=As(S,z,N),q=!l.arrow&&$n(o)!=null&&z!==D&&i.reference[f]/2-(zz<=0)){var T,S;const z=(((T=i.flip)==null?void 0:T.index)||0)+1,D=I[z];if(D&&(!(d==="alignment"?b!==ut(D):!1)||A.every(ce=>ut(ce.placement)===b?ce.overflows[0]>0:!0)))return{data:{index:z,overflows:A},reset:{placement:D}};let q=(S=A.filter(K=>K.overflows[0]<=0).sort((K,ce)=>K.overflows[1]-ce.overflows[1])[0])==null?void 0:S.placement;if(!q)switch(m){case"bestFit":{var N;const K=(N=A.filter(ce=>{if(E){const B=ut(ce.placement);return B===b||B==="y"}return!0}).map(ce=>[ce.placement,ce.overflows.filter(B=>B>0).reduce((B,W)=>B+W,0)]).sort((ce,B)=>ce[1]-B[1])[0])==null?void 0:N[0];K&&(q=K);break}case"initialPlacement":q=a;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function Nc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ac(e){return Hv.some(t=>e[t]>=0)}const ob=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=yt(e,t);switch(r){case"referenceHidden":{const i=await Sr(t,{...o,elementContext:"reference"}),s=Nc(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ac(s)}}}case"escaped":{const i=await Sr(t,{...o,altBoundary:!0}),s=Nc(i,n.floating);return{data:{escapedOffsets:s,escaped:Ac(s)}}}default:return{}}}}},_c=new Set(["left","top"]);async function ib(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=xt(n),a=$n(n),l=ut(n)==="y",c=_c.has(s)?-1:1,u=i&&l?-1:1,d=yt(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const sb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await ib(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},ab=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...l}=yt(e,t),c={x:n,y:r},u=await Sr(t,l),d=ut(xt(o)),h=_s(d);let m=c[h],f=c[d];if(i){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=m+u[v],x=m-u[y];m=As(b,m,x)}if(s){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=f+u[v],x=f-u[y];f=As(b,f,x)}const p=a.fn({...t,[h]:m,[d]:f});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[d]:s}}}}}},lb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=yt(e,t),u={x:n,y:r},d=ut(o),h=_s(d);let m=u[h],f=u[d];const p=yt(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const x=h==="y"?"height":"width",C=i.reference[h]-i.floating[x]+v.mainAxis,k=i.reference[h]+i.reference[x]-v.mainAxis;mk&&(m=k)}if(c){var y,b;const x=h==="y"?"width":"height",C=_c.has(xt(o)),k=i.reference[d]-i.floating[x]+(C&&((y=s.offset)==null?void 0:y[d])||0)+(C?0:v.crossAxis),E=i.reference[d]+i.reference[x]+(C?0:((b=s.offset)==null?void 0:b[d])||0)-(C?v.crossAxis:0);fE&&(f=E)}return{[h]:m,[d]:f}}}},cb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=yt(e,t),u=await Sr(t,c),d=xt(o),h=$n(o),m=ut(o)==="y",{width:f,height:p}=i.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,v=h==="end"?"top":"bottom");const b=p-u.top-u.bottom,x=f-u.left-u.right,C=Vt(p-u[v],b),k=Vt(f-u[y],x),E=!t.middlewareData.shift;let I=C,R=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=b),E&&!h){const A=Be(u.left,0),T=Be(u.right,0),S=Be(u.top,0),N=Be(u.bottom,0);m?R=f-2*(A!==0||T!==0?A+T:Be(u.left,u.right)):I=p-2*(S!==0||N!==0?S+N:Be(u.top,u.bottom))}await l({...t,availableWidth:R,availableHeight:I});const _=await s.getDimensions(a.floating);return f!==_.width||p!==_.height?{reset:{rects:!0}}:{}}}};function Lo(){return typeof window<"u"}function Bn(e){return Vc(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dt(e){var t;return(t=(Vc(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Vc(e){return Lo()?e instanceof Node||e instanceof We(e).Node:!1}function et(e){return Lo()?e instanceof Element||e instanceof We(e).Element:!1}function ht(e){return Lo()?e instanceof HTMLElement||e instanceof We(e).HTMLElement:!1}function Fc(e){return!Lo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof We(e).ShadowRoot}const ub=new Set(["inline","contents"]);function wr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ub.has(o)}const db=new Set(["table","td","th"]);function hb(e){return db.has(Bn(e))}const fb=[":popover-open",":modal"];function Do(e){return fb.some(t=>{try{return e.matches(t)}catch{return!1}})}const gb=["transform","translate","scale","rotate","perspective"],pb=["transform","translate","scale","rotate","perspective","filter"],mb=["paint","layout","strict","content"];function Ds(e){const t=zs(),n=et(e)?tt(e):e;return gb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||pb.some(r=>(n.willChange||"").includes(r))||mb.some(r=>(n.contain||"").includes(r))}function vb(e){let t=Ft(e);for(;ht(t)&&!Wn(t);){if(Ds(t))return t;if(Do(t))return null;t=Ft(t)}return null}function zs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bb=new Set(["html","body","#document"]);function Wn(e){return bb.has(Bn(e))}function tt(e){return We(e).getComputedStyle(e)}function zo(e){return et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ft(e){if(Bn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fc(e)&&e.host||dt(e);return Fc(t)?t.host:t}function Lc(e){const t=Ft(e);return Wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ht(t)&&wr(t)?t:Lc(t)}function Er(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Lc(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=We(o);if(i){const a=Ms(s);return t.concat(s,s.visualViewport||[],wr(o)?o:[],a&&n?Er(a):[])}return t.concat(o,Er(o,[],n))}function Ms(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dc(e){const t=tt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ht(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Ao(n)!==i||Ao(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function js(e){return et(e)?e:e.contextElement}function Hn(e){const t=js(e);if(!ht(t))return ct(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Dc(t);let s=(i?Ao(n.width):n.width)/r,a=(i?Ao(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const yb=ct(0);function zc(e){const t=We(e);return!zs()||!t.visualViewport?yb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==We(e)?!1:t}function Jt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=js(e);let s=ct(1);t&&(r?et(r)&&(s=Hn(r)):s=Hn(e));const a=xb(i,n,r)?zc(i):ct(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const h=We(i),m=r&&et(r)?We(r):r;let f=h,p=Ms(f);for(;p&&r&&m!==f;){const v=Hn(p),y=p.getBoundingClientRect(),b=tt(p),x=y.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,C=y.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=x,c+=C,f=We(p),p=Ms(f)}}return Fo({width:u,height:d,x:l,y:c})}function Mo(e,t){const n=zo(e).scrollLeft;return t?t.left+n:Jt(dt(e)).left+n}function Mc(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Mo(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function kb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=dt(r),a=t?Do(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=ct(1);const u=ct(0),d=ht(r);if((d||!d&&!i)&&((Bn(r)!=="body"||wr(s))&&(l=zo(r)),ht(r))){const m=Jt(r);c=Hn(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const h=s&&!d&&!i?Mc(s,l):ct(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function Cb(e){return Array.from(e.getClientRects())}function Sb(e){const t=dt(e),n=zo(e),r=e.ownerDocument.body,o=Be(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Be(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Mo(e);const a=-n.scrollTop;return tt(r).direction==="rtl"&&(s+=Be(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const jc=25;function wb(e,t){const n=We(e),r=dt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=zs();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Mo(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-d.clientWidth-m);f<=jc&&(i-=f)}else c<=jc&&(i+=c);return{width:i,height:s,x:a,y:l}}const Eb=new Set(["absolute","fixed"]);function Ob(e,t){const n=Jt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ht(e)?Hn(e):ct(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function $c(e,t,n){let r;if(t==="viewport")r=wb(e,n);else if(t==="document")r=Sb(dt(e));else if(et(t))r=Ob(t,n);else{const o=zc(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Fo(r)}function Bc(e,t){const n=Ft(e);return n===t||!et(n)||Wn(n)?!1:tt(n).position==="fixed"||Bc(n,t)}function Pb(e,t){const n=t.get(e);if(n)return n;let r=Er(e,[],!1).filter(a=>et(a)&&Bn(a)!=="body"),o=null;const i=tt(e).position==="fixed";let s=i?Ft(e):e;for(;et(s)&&!Wn(s);){const a=tt(s),l=Ds(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&Eb.has(o.position)||wr(s)&&!l&&Bc(e,s))?r=r.filter(u=>u!==s):o=a,s=Ft(s)}return t.set(e,r),r}function Ib(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Do(t)?[]:Pb(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=$c(t,u,o);return c.top=Be(d.top,c.top),c.right=Vt(d.right,c.right),c.bottom=Vt(d.bottom,c.bottom),c.left=Be(d.left,c.left),c},$c(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Rb(e){const{width:t,height:n}=Dc(e);return{width:t,height:n}}function Tb(e,t,n){const r=ht(t),o=dt(t),i=n==="fixed",s=Jt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=ct(0);function c(){l.x=Mo(o)}if(r||!r&&!i)if((Bn(t)!=="body"||wr(o))&&(a=zo(t)),r){const m=Jt(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?Mc(o,a):ct(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function $s(e){return tt(e).position==="static"}function Wc(e,t){if(!ht(e)||tt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dt(e)===n&&(n=n.ownerDocument.body),n}function Hc(e,t){const n=We(e);if(Do(e))return n;if(!ht(e)){let o=Ft(e);for(;o&&!Wn(o);){if(et(o)&&!$s(o))return o;o=Ft(o)}return n}let r=Wc(e,t);for(;r&&hb(r)&&$s(r);)r=Wc(r,t);return r&&Wn(r)&&$s(r)&&!Ds(r)?n:r||vb(e)||n}const Nb=async function(e){const t=this.getOffsetParent||Hc,n=this.getDimensions,r=await n(e.floating);return{reference:Tb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ab(e){return tt(e).direction==="rtl"}const _b={convertOffsetParentRelativeRectToViewportRelativeRect:kb,getDocumentElement:dt,getClippingRect:Ib,getOffsetParent:Hc,getElementRects:Nb,getClientRects:Cb,getDimensions:Rb,getScale:Hn,isElement:et,isRTL:Ab};function Uc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vb(e,t){let n=null,r;const o=dt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:m}=c;if(a||t(),!h||!m)return;const f=_o(d),p=_o(o.clientWidth-(u+h)),v=_o(o.clientHeight-(d+m)),y=_o(u),x={rootMargin:-f+"px "+-p+"px "+-v+"px "+-y+"px",threshold:Be(0,Vt(1,l))||1};let C=!0;function k(E){const I=E[0].intersectionRatio;if(I!==l){if(!C)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Uc(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(k,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,x)}n.observe(e)}return s(!0),i}function Fb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=js(e),u=o||i?[...c?Er(c):[],...Er(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&a?Vb(c,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let f,p=l?Jt(e):null;l&&v();function v(){const y=Jt(e);p&&!Uc(p,y)&&n(),p=y,f=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d?.(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Lb=sb,Db=ab,zb=rb,Mb=cb,jb=ob,$b=nb,Bb=lb,Wb=(e,t,n)=>{const r=new Map,o={platform:_b,...n},i={...o.platform,_c:r};return tb(e,t,{...o,platform:i})};function Gc(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function Hb(e){if(!e)return Gc();const{x:t,y:n,width:r,height:o}=e;return Gc(t,n,r,o)}function Ub(e,t){return{contextElement:Te(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t?.(n);return r||!n?Hb(r):n.getBoundingClientRect()}}}var qc=e=>({variable:e,reference:`var(${e})`}),Kc={transformOrigin:qc("--transform-origin"),arrowOffset:qc("--arrow-offset")},Gb=e=>e==="top"||e==="bottom"?"y":"x";function qb(e,t){return{name:"transformOrigin",fn(n){const{elements:r,middlewareData:o,placement:i,rects:s,y:a}=n,l=i.split("-")[0],c=Gb(l),u=o.arrow?.x||0,d=o.arrow?.y||0,h=t?.clientWidth||0,m=t?.clientHeight||0,f=u+h/2,p=d+m/2,v=Math.abs(o.shift?.y||0),y=s.reference.height/2,b=m/2,x=e.offset?.mainAxis??e.gutter,C=typeof x=="number"?x+b:x??b,k=v>C,E={top:`${f}px calc(100% + ${C}px)`,bottom:`${f}px ${-C}px`,left:`calc(100% + ${C}px) ${p}px`,right:`${-C}px ${p}px`}[l],I=`${f}px ${s.reference.y+y-a}px`,R=!!e.overlap&&c==="y"&&k;return r.floating.style.setProperty(Kc.transformOrigin.variable,R?I:E),{data:{transformOrigin:R?I:E}}}}}var Kb={name:"rects",fn({rects:e}){return{data:e}}},Yb=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${Kc.arrowOffset.reference})`}),{}}}};function Xb(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function Qb(e){return e.split("-")[0]}var Jb={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Yc(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Bs(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function Zb(e,t,n){const r=e||t.createElement("div");return $b({element:r,padding:n.arrowPadding})}function ey(e,t){if(!jm(t.offset??t.gutter))return Lb(({placement:n})=>{const r=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,i=typeof o=="number"?o+r:o??r,{hasAlign:s}=Xb(n),a=s?void 0:t.shift,l=t.offset?.crossAxis??a;return go({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function ty(e){if(!e.flip)return;const t=Bs(e.boundary);return zb({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function ny(e){if(!e.slide&&!e.overlap)return;const t=Bs(e.boundary);return Db({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Bb()})}function ry(e){return Mb({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const i=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),i.style.setProperty("--reference-width",`${s}px`),i.style.setProperty("--reference-height",`${a}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${r}px`)}})}function oy(e){if(e.hideWhenDetached)return jb({strategy:"referenceHidden",boundary:Bs(e.boundary)??"clippingAncestors"})}function iy(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function sy(e,t,n={}){const r=Ub(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},Jb,n),i=t.querySelector("[data-part=arrow]"),s=[ey(i,o),ty(o),ny(o),Zb(i,t.ownerDocument,o),Yb(i),qb({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),ry(o),oy(o),Kb],{placement:a,strategy:l,onComplete:c,onPositioned:u}=o,d=async()=>{if(!r||!t)return;const p=await Wb(r,t,{placement:a,middleware:s,strategy:l});c?.(p),u?.({placed:!0});const v=ve(t),y=Yc(v,p.x),b=Yc(v,p.y);t.style.setProperty("--x",`${y}px`),t.style.setProperty("--y",`${b}px`),o.hideWhenDetached&&(p.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const x=t.firstElementChild;if(x){const C=mo(x);t.style.setProperty("--z-index",C.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),u?.({placed:!0})):await d()},m=iy(o.listeners),f=o.listeners?Fb(r,t,h,m):Km;return h(),()=>{f?.(),u?.({placed:!1})}}function nt(e,t,n={}){const{defer:r,...o}=n,i=r?G:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(sy(a,l,o))})),()=>{s.forEach(a=>a?.())}}function ay(e){const t={each(n){for(let r=0;r{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function ly(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t?.addEventListener(n,r,o)}catch{}return()=>{try{t?.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t?.removeEventListener(n,r,o)}catch{}}}}var Xc="pointerdown.outside",Qc="focus.outside";function cy(e){for(const t of e)if(Te(t)&&At(t))return!0;return!1}var Jc=e=>"clientY"in e;function uy(e,t){if(!Jc(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function dy(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Zc(e,t){if(!t||!Jc(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return dy(s,a)?r||i:!1}function hy(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s}=t;if(!e)return;const a=Fe(e),l=ve(e),c=ay(l),u=ly(l);function d(b,x){if(!Te(x)||!x.isConnected||Yt(e,x)||uy(e,b))return!1;const C=a.querySelector(`[aria-controls="${e.id}"]`);if(C){const E=Co(C);if(Zc(b,E))return!1}const k=Co(e);return Zc(b,k)?!1:!n?.(x)}const h=new Set,m=Dn(e?.getRootNode());function f(b){function x(C){const k=s&&!rc()?G:R=>R(),E=C??b,I=E?.composedPath?.()??[E?.target];k(()=>{const R=m?I[0]:$e(b);if(!(!e||!d(b,R))){if(o||i){const _=ho(o,i);e.addEventListener(Xc,_,{once:!0})}eu(e,Xc,{bubbles:!1,cancelable:!0,detail:{originalEvent:E,contextmenu:L0(E),focusable:cy(I),target:R}})}})}b.pointerType==="touch"?(h.forEach(C=>C()),h.add(ie(a,"click",x,{once:!0})),h.add(u.addEventListener("click",x,{once:!0})),h.add(c.addEventListener("click",x,{once:!0}))):x()}const p=new Set,v=setTimeout(()=>{p.add(ie(a,"pointerdown",f,!0)),p.add(u.addEventListener("pointerdown",f,!0)),p.add(c.addEventListener("pointerdown",f,!0))},0);function y(b){(s?G:C=>C())(()=>{const C=$e(b);if(!(!e||!d(b,C))){if(r||i){const k=ho(r,i);e.addEventListener(Qc,k,{once:!0})}eu(e,Qc,{bubbles:!1,cancelable:!0,detail:{originalEvent:b,contextmenu:!1,focusable:At(C),target:C}})}})}return rc()||(p.add(ie(a,"focusin",y,!0)),p.add(u.addEventListener("focusin",y,!0)),p.add(c.addEventListener("focusin",y,!0))),()=>{clearTimeout(v),h.forEach(b=>b()),p.forEach(b=>b())}}function fy(e,t){const{defer:n}=t,r=n?G:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(hy(i,t))})),()=>{o.forEach(i=>i?.())}}function eu(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function gy(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return ie(Fe(e),"keydown",n,{capture:!0})}var tu="layer:request-dismiss",Ye={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return tYt(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Yt(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tYe.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];my(e,tu,o=>{r.requestDismiss?.(o),o.defaultPrevented||r?.dismiss()}),py(e,tu,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function py(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function my(e,t,n){e.addEventListener(t,n,{once:!0})}var nu;function ru(){Ye.layers.forEach(({node:e})=>{e.style.pointerEvents=Ye.isBelowPointerBlockingLayer(e)?"none":"auto"})}function vy(e){e.style.pointerEvents=""}function by(e,t){const n=Fe(e),r=[];return Ye.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(nu=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[i,s]=mv(()=>{const a=o();return Te(a)?a:null},{timeout:1e3});i.then(a=>r.push(Oo(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{Ye.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=nu,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function yy(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){xr("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a}=t,l={dismiss:r,node:e,pointerBlocking:i,requestDismiss:o};Ye.add(l),ru();function c(f){const p=$e(f.detail.originalEvent);Ye.isBelowPointerBlockingLayer(e)||Ye.isInBranch(p)||(t.onPointerDownOutside?.(f),t.onInteractOutside?.(f),!f.defaultPrevented&&(a&&console.log("onPointerDownOutside:",f.detail.originalEvent),r?.()))}function u(f){const p=$e(f.detail.originalEvent);Ye.isInBranch(p)||(t.onFocusOutside?.(f),t.onInteractOutside?.(f),!f.defaultPrevented&&(a&&console.log("onFocusOutside:",f.detail.originalEvent),r?.()))}function d(f){Ye.isTopMost(e)&&(t.onEscapeKeyDown?.(f),!f.defaultPrevented&&r&&(f.preventDefault(),r()))}function h(f){if(!e)return!1;const p=typeof s=="function"?s():s,v=Array.isArray(p)?p:[p],y=t.persistentElements?.map(b=>b()).filter(Te);return y&&v.push(...y),v.some(b=>Yt(b,f))||Ye.isInNestedLayer(e,f)}const m=[i?by(e,t.persistentElements):void 0,gy(e,d),fy(e,{exclude:h,onFocusOutside:u,onPointerDownOutside:c,defer:t.defer})];return()=>{Ye.remove(e),ru(),vy(e),m.forEach(f=>f?.())}}function Un(e,t){const{defer:n}=t,r=n?G:i=>i(),o=[];return o.push(r(()=>{const i=Kt(e)?e():e;o.push(yy(i,t))})),()=>{o.forEach(i=>i?.())}}var ou=j("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);ou.build();var xy=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,ky=e=>e.ids?.control??`color-picker:${e.id}:control`,Cy=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,Sy=e=>e.ids?.content??`color-picker:${e.id}:content`,wy=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,Ey=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,Oy=e=>e.ids?.area??`color-picker:${e.id}:area`,Py=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,Iy=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,Ry=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,jo=e=>e.getById(Sy(e)),Ty=e=>e.getById(Py(e)),Ny=(e,t)=>e.getById(Ry(e,t)),Ay=e=>e.getById(Ey(e)),iu=e=>e.getById(xy(e)),_y=e=>e.getById(Oy(e)),Vy=(e,t,n)=>{const r=_y(e);if(!r)return;const{getPercentValue:o}=cc(t,r);return{x:o({dir:n,orientation:"horizontal"}),y:o({orientation:"vertical"})}},Fy=e=>e.getById(ky(e)),Ws=e=>e.getById(Cy(e)),Ly=e=>e.getById(wy(e)),Dy=(e,t)=>e.getById(Iy(e,t)),zy=(e,t,n,r)=>{const o=Dy(e,n);if(!o)return;const{getPercentValue:i}=cc(t,o);return{x:i({dir:r,orientation:"horizontal"}),y:i({orientation:"vertical"})}},My=e=>[...Eo(jo(e),"input[data-channel]"),...Eo(Fy(e),"input[data-channel]")];function jy(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var su=e=>No(e),$y=/^[0-9a-fA-F]{3,8}$/;function By(e){return $y.test(e)}function Wy(e){return e.startsWith("#")?e:By(e)?`#${e}`:e}var{and:Hy}=_t();Hy("isOpenControlled","closeOnSelect");function au(e,t,n){const r=My(e);G(()=>{r.forEach(o=>{const i=o.dataset.channel;xo(o,jy(n||t,i))})})}function Uy(e,t){const n=Ay(e);n&&G(()=>xo(n,t))}M()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),M()(["xChannel","yChannel"]),M()(["channel","orientation"]),M()(["value","disabled"]),M()(["value","respectAlpha"]),M()(["size"]);const[lu,Gy]=Ln({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:""}),cu=e=>gc()(e,["lazyMount","unmountOnExit"]);var uu=j("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");uu.build();var du=e=>e.ids?.root??`accordion:${e.id}`,hu=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,qy=e=>e.getById(du(e)),$o=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(du(e))}']:not([disabled])`;return Eo(qy(e),n)},Ky=e=>br($o(e)),Yy=e=>as($o(e)),Xy=(e,t)=>sv($o(e),hu(e,t)),Qy=(e,t)=>av($o(e),hu(e,t)),{and:Jy,not:Zy}=_t();Jy("isExpanded","canToggle"),Zy("isExpanded"),M()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),M()(["value","disabled"]);var Or=(e,t)=>({x:e,y:t});function ex(e){const{x:t,y:n,width:r,height:o}=e,i=t+r/2,s=n+o/2;return{x:t,y:n,width:r,height:o,minX:t,minY:n,maxX:t+r,maxY:n+o,midX:i,midY:s,center:Or(i,s)}}function tx(e){const t=Or(e.minX,e.minY),n=Or(e.maxX,e.minY),r=Or(e.maxX,e.maxY),o=Or(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:o}}function nx(e,t){const n=ex(e),{top:r,right:o,left:i,bottom:s}=tx(n),[a]=t.split("-");return{top:[i,r,o,s],right:[r,o,s,i],bottom:[r,i,s,o],left:[o,r,i,s]}[a]}function rx(e,t){const{x:n,y:r}=t;let o=!1;for(let i=0,s=e.length-1;ir!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}var fu=j("avatar").parts("root","image","fallback");fu.build(),M()(["dir","id","ids","onStatusChange","getRootNode"]);function ox(e){return!(e.metaKey||!yo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var ix=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sx(e,t,n){const r=n?$e(n):null,o=ve(r);return e=e||r instanceof o.HTMLInputElement&&!ix.has(r?.type)||r instanceof o.HTMLTextAreaElement||r instanceof o.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof o.KeyboardEvent&&!Reflect.has(ax,n.key))}var Zt=null,Hs=new Set,Pr=new Map,en=!1,Us=!1,ax={Tab:!0,Escape:!0};function Bo(e,t){for(let n of Hs)n(e,t)}function Wo(e){en=!0,ox(e)&&(Zt="keyboard",Bo("keyboard",e))}function Xe(e){Zt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(en=!0,Bo("pointer",e))}function gu(e){F0(e)&&(en=!0,Zt="virtual")}function pu(e){const t=$e(e);t===ve(t)||t===Fe(t)||(!en&&!Us&&(Zt="virtual",Bo("virtual",e)),en=!1,Us=!1)}function mu(){en=!1,Us=!0}function lx(e){if(typeof window>"u"||Pr.get(ve(e)))return;const t=ve(e),n=Fe(e);let r=t.HTMLElement.prototype.focus;function o(){Zt="virtual",Bo("virtual",null),en=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o}),n.addEventListener("keydown",Wo,!0),n.addEventListener("keyup",Wo,!0),n.addEventListener("click",gu,!0),t.addEventListener("focus",pu,!0),t.addEventListener("blur",mu,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",Xe,!0),n.addEventListener("pointermove",Xe,!0),n.addEventListener("pointerup",Xe,!0)):(n.addEventListener("mousedown",Xe,!0),n.addEventListener("mousemove",Xe,!0),n.addEventListener("mouseup",Xe,!0)),t.addEventListener("beforeunload",()=>{cx(e)},{once:!0}),Pr.set(t,{focus:r})}var cx=(e,t)=>{const n=ve(e),r=Fe(e);Pr.has(n)&&(n.HTMLElement.prototype.focus=Pr.get(n).focus,r.removeEventListener("keydown",Wo,!0),r.removeEventListener("keyup",Wo,!0),r.removeEventListener("click",gu,!0),n.removeEventListener("focus",pu,!0),n.removeEventListener("blur",mu,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",Xe,!0),r.removeEventListener("pointermove",Xe,!0),r.removeEventListener("pointerup",Xe,!0)):(r.removeEventListener("mousedown",Xe,!0),r.removeEventListener("mousemove",Xe,!0),r.removeEventListener("mouseup",Xe,!0)),Pr.delete(n))};function vu(){return Zt==="keyboard"}function ux(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:o}=e;lx(o),r?.({isFocusVisible:n||vu(),modality:Zt});const i=(s,a)=>{sx(!!t,s,a)&&r?.({isFocusVisible:vu(),modality:s})};return Hs.add(i),()=>{Hs.delete(i)}}var bu=j("checkbox").parts("root","label","control","indicator");bu.build(),M()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const dx=bu.extendWith("group"),[YR,yu]=Ln({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1});var xu=j("clipboard").parts("root","control","trigger","indicator","input","label");xu.build(),M()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),M()(["copied"]);const hx=ou.extendWith("view");var fx=Object.defineProperty,gx=(e,t,n)=>t in e?fx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t,n)=>gx(e,typeof t!="symbol"?t+"":t,n),Ho={itemToValue(e){return typeof e=="string"?e:qt(e)&&Tt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:qt(e)&&Tt(e,"label")?e.label:Ho.itemToValue(e)},isItemDisabled(e){return qt(e)&&Tt(e,"disabled")?!!e.disabled:!1}},Uo=class dp{constructor(t){this.options=t,V(this,"items"),V(this,"indexMap",null),V(this,"copy",n=>new dp({...this.options,items:n??[...this.items]})),V(this,"isEqual",n=>Ze(this.items,n.items)),V(this,"setItems",n=>this.copy(n)),V(this,"getValues",(n=this.items)=>{const r=[];for(const o of n){const i=this.getItemValue(o);i!=null&&r.push(i)}return r}),V(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),V(this,"findMany",n=>{const r=[];for(const o of n){const i=this.find(o);i!=null&&r.push(i)}return r}),V(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){if(r===n)return s;r++}return null}),V(this,"sortFn",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return(o??0)-(i??0)}),V(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),V(this,"getItemValue",n=>n==null?null:this.options.itemToValue?.(n)??Ho.itemToValue(n)),V(this,"getItemDisabled",n=>n==null?!1:this.options.isItemDisabled?.(n)??Ho.isItemDisabled(n)),V(this,"stringifyItem",n=>n==null?null:this.options.itemToString?.(n)??Ho.itemToString(n)),V(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),V(this,"stringifyItems",(n,r=", ")=>{const o=[];for(const i of n){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(r)}),V(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),V(this,"has",n=>this.indexOf(n)!==-1),V(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),V(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=n(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return r&&i.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),c=r.indexOf(a);return l===-1?1:c===-1?-1:l-c}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),i}),V(this,"getNextValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),V(this,"getPreviousValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),V(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){const a=this.getItemValue(s);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(n)??-1}),V(this,"getByText",(n,r)=>{const o=r!=null?this.indexOf(r):-1,i=n.length===1;for(let s=0;s{const{state:o,currentValue:i,timeout:s=350}=r,a=o.keysSoFar+n,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,u=this.getByText(c,i),d=this.getItemValue(u);function h(){clearTimeout(o.timer),o.timer=-1}function m(f){o.keysSoFar=f,h(),f!==""&&(o.timer=+setTimeout(()=>{m(""),h()},s))}return m(a),d}),V(this,"update",(n,r)=>{let o=this.indexOf(n);return o===-1?this:this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),V(this,"upsert",(n,r,o="append")=>{let i=this.indexOf(n);return i===-1?(o==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),V(this,"insert",(n,...r)=>this.copy(Ir(this.items,n,...r))),V(this,"insertBefore",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Ir(this.items,o,...r))}),V(this,"insertAfter",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Ir(this.items,o+1,...r))}),V(this,"prepend",(...n)=>this.copy(Ir(this.items,0,...n))),V(this,"append",(...n)=>this.copy(Ir(this.items,this.items.length,...n))),V(this,"filter",n=>{const r=this.items.filter((o,i)=>n(this.stringifyItem(o),i,o));return this.copy(r)}),V(this,"remove",(...n)=>{const r=n.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const i=this.getItemValue(o);return i==null?!1:!r.includes(i)}))}),V(this,"move",(n,r)=>{const o=this.indexOf(n);return o===-1?this:this.copy(Go(this.items,[o],r))}),V(this,"moveBefore",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Go(this.items,i,o))}),V(this,"moveAfter",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Go(this.items,i,o+1))}),V(this,"reorder",(n,r)=>this.copy(Go(this.items,[n],r))),V(this,"compareValue",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return oi?1:0}),V(this,"range",(n,r)=>{let o=[],i=n;for(;i!=null;){if(this.find(i)&&o.push(i),i===r)return o;i=this.getNextValue(i)}return[]}),V(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),V(this,"toString",()=>{let n="";for(const r of this.items){const o=this.getItemValue(r),i=this.stringifyItem(r),s=this.getItemDisabled(r),a=[o,i,s].filter(Boolean).join(":");n+=a+","}return n}),V(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},px=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Ir(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Go(e,t,n){t=[...t].sort((o,i)=>o-i);const r=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return n=Math.max(0,n-t.filter(o=>ot[n])return 1}return e.length-t.length}function vx(e){return e.sort(Cu)}function bx(e,t){let n;return He(e,{...t,onEnter:(r,o)=>{if(t.predicate(r,o))return n=r,"stop"}}),n}function yx(e,t){const n=[];return He(e,{onEnter:(r,o)=>{t.predicate(r,o)&&n.push(r)},getChildren:t.getChildren}),n}function Su(e,t){let n;return He(e,{onEnter:(r,o)=>{if(t.predicate(r,o))return n=[...o],"stop"},getChildren:t.getChildren}),n}function xx(e,t){let n=t.initialResult;return He(e,{...t,onEnter:(r,o)=>{n=t.nextResult(n,r,o)}}),n}function kx(e,t){return xx(e,{...t,initialResult:[],nextResult:(n,r,o)=>(n.push(...t.transform(r,o)),n)})}function Cx(e,t){const{predicate:n,create:r,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((m,f)=>{const p=[...a,f],v=i(m,p);v&&c.push(v)});const u=a.length===0,d=n(s,a),h=c.length>0;return u||d||h?r(s,c,a):null};return i(e,[])||r(e,[],[])}function Sx(e,t){const n=[];let r=0;const o=new Map,i=new Map;return He(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,r++);const l=t.getChildren(s,a);l.forEach(m=>{i.has(m)||i.set(m,s),o.has(m)||o.set(m,r++)});const c=l.length>0?l.map(m=>o.get(m)):void 0,u=i.get(s),d=u?o.get(u):void 0,h=o.get(s);n.push({...s,_children:c,_parent:d,_index:h})}}),n}function wx(e,t){return{type:"insert",index:e,nodes:t}}function Ex(e){return{type:"remove",indexes:e}}function Gs(){return{type:"replace"}}function wu(e){return[e.slice(0,-1),e[e.length-1]]}function Eu(e,t,n=new Map){const[r,o]=wu(e);for(let s=r.length-1;s>=0;s--){const a=r.slice(0,s).join();switch(n.get(a)?.type){case"remove":continue}n.set(a,Gs())}const i=n.get(r.join());switch(i?.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t});break;default:n.set(r.join(),wx(o,t))}return n}function Ou(e){const t=new Map,n=new Map;for(const r of e){const o=r.slice(0,-1).join(),i=n.get(o)??[];i.push(r[r.length-1]),n.set(o,i.sort((s,a)=>s-a))}for(const r of e)for(let o=r.length-2;o>=0;o--){const i=r.slice(0,o).join();t.has(i)||t.set(i,Gs())}for(const[r,o]of n)t.set(r,Ex(o));return t}function Ox(e,t){const n=new Map,[r,o]=wu(e);for(let i=r.length-1;i>=0;i--){const s=r.slice(0,i).join();n.set(s,Gs())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),n}function qo(e,t,n){return Px(e,{...n,getChildren:(r,o)=>{const i=o.join();switch(t.get(i)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,o);default:return[]}},transform:(r,o,i)=>{const s=i.join(),a=t.get(s);switch(a?.type){case"remove":return n.create(r,o.filter((u,d)=>!a.indexes.includes(d)),i);case"removeThenInsert":const l=o.filter((u,d)=>!a.removeIndexes.includes(d)),c=a.removeIndexes.reduce((u,d)=>d{const i=[0,...o],s=i.join(),a=t.transform(r,n[s]??[],o),l=i.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function Ix(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const o=Eu(r,n);return qo(e,o,t)}function Rx(e,t){if(t.at.length===0)return t.node;const n=Ox(t.at,t.node);return qo(e,n,t)}function Tx(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=Ou(t.indexPaths);return qo(e,n,t)}function Nx(e,t){if(t.indexPaths.length===0)return e;for(const i of t.indexPaths)if(i.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=mx(t.indexPaths),r=n.map(i=>ku(e,i,t)),o=Eu(t.to,r,Ou(n));return qo(e,o,t)}function He(e,t){const{onEnter:n,onLeave:r,getChildren:o}=t;let i=[],s=[{node:e}];const a=t.reuseIndexPath?()=>i:()=>i.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const u=n?.(l.node,a());if(u==="stop")return;l.state=u==="skip"?-1:0}const c=l.children||o(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.stateZe(this.rootNode,n.rootNode)),V(this,"getNodeChildren",n=>this.options.nodeToChildren?.(n)??Gn.nodeToChildren(n)??[]),V(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),V(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),V(this,"getNodeChildrenCount",n=>this.options.nodeToChildrenCount?.(n)??Gn.nodeToChildrenCount(n)),V(this,"getNodeValue",n=>this.options.nodeToValue?.(n)??Gn.nodeToValue(n)),V(this,"getNodeDisabled",n=>this.options.isNodeDisabled?.(n)??Gn.isNodeDisabled(n)),V(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),V(this,"stringifyNode",n=>this.options.nodeToString?.(n)??Gn.nodeToString(n)),V(this,"getFirstNode",(n=this.rootNode)=>{let r;return He(n,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!r&&i.length>0&&!this.getNodeDisabled(o))return r=o,"stop"}}),r}),V(this,"getLastNode",(n=this.rootNode,r={})=>{let o;return He(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isSameNode(i,n)){if(r.skip?.({value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),V(this,"at",n=>ku(this.rootNode,n,{getChildren:this.getNodeChildren})),V(this,"findNode",(n,r=this.rootNode)=>bx(r,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})),V(this,"findNodes",(n,r=this.rootNode)=>{const o=new Set(n.filter(i=>i!=null));return yx(r,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),V(this,"sort",n=>n.reduce((r,o)=>{const i=this.getIndexPath(o);return i&&r.push({value:o,indexPath:i}),r},[]).sort((r,o)=>Cu(r.indexPath,o.indexPath)).map(({value:r})=>r)),V(this,"getIndexPath",n=>Su(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),V(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),V(this,"getValuePath",n=>{if(!n)return[];const r=[];let o=[...n];for(;o.length>0;){const i=this.at(o);i&&r.unshift(this.getNodeValue(i)),o.pop()}return r}),V(this,"getDepth",n=>Su(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})?.length??0),V(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),V(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),V(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((o,i)=>n[i]===r[i])),V(this,"getNextNode",(n,r={})=>{let o=!1,i;return He(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(r.skip?.({value:l,node:s,indexPath:a}))return l===n&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===n&&(o=!0)}}),i}),V(this,"getPreviousNode",(n,r={})=>{let o,i=!1;return He(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(r.skip?.({value:l,node:s,indexPath:a}))return"skip";if(l===n)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),V(this,"getParentNodes",n=>{const r=this.resolveIndexPath(n)?.slice();if(!r)return[];const o=[];for(;r.length>0;){r.pop();const i=this.at(r);i&&!this.isRootNode(i)&&o.unshift(i)}return o}),V(this,"getDescendantNodes",(n,r)=>{const o=this.resolveNode(n);if(!o)return[];const i=[];return He(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!r?.withBranch&&this.isBranchNode(s)||i.push(s))}}),i}),V(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(i=>this.getNodeValue(i))),V(this,"getParentIndexPath",n=>n.slice(0,-1)),V(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),V(this,"visit",n=>{const{skip:r,...o}=n;He(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isRootNode(i))return r?.({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":o.onEnter?.(i,s)}})}),V(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),V(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;++i{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),V(this,"getValues",(n=this.rootNode)=>kx(n,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),V(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),V(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),V(this,"getBranchValues",(n=this.rootNode,r={})=>{let o=[];return He(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(s.length===0)return;const a=this.getNodeValue(i);if(r.skip?.({value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,r.depth)&&o.push(this.getNodeValue(i))}}),o}),V(this,"flatten",(n=this.rootNode)=>Sx(n,{getChildren:this.getNodeChildren})),V(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),V(this,"_insert",(n,r,o)=>this.copy(Ix(n,{at:r,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),V(this,"copy",n=>new hp({...this.options,rootNode:n})),V(this,"_replace",(n,r,o)=>this.copy(Rx(n,{at:r,node:o,getChildren:this.getNodeChildren,create:this._create}))),V(this,"_move",(n,r,o)=>this.copy(Nx(n,{indexPaths:r,to:o,getChildren:this.getNodeChildren,create:this._create}))),V(this,"_remove",(n,r)=>this.copy(Tx(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),V(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),V(this,"remove",n=>this._remove(this.rootNode,n)),V(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),V(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const i=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,i,r)}),V(this,"move",(n,r)=>this._move(this.rootNode,n,r)),V(this,"filter",n=>{const r=Cx(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),V(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Gn={nodeToValue(e){return typeof e=="string"?e:qt(e)&&Tt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:qt(e)&&Tt(e,"label")?e.label:Gn.nodeToValue(e)},isNodeDisabled(e){return qt(e)&&Tt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(qt(e)&&Tt(e,"childrenCount"))return e.childrenCount}},qn=new WeakMap,Ko=new WeakMap,Yo={},qs=0,Ru=e=>e&&(e.host||Ru(e.parentNode)),Ax=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=Ru(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),_x=new Set(["script","output","status","next-route-announcer"]),Vx=e=>_x.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Fx=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o}=t,i=Ax(n,Array.isArray(e)?e:[e]);Yo[r]||(Yo[r]=new WeakMap);const s=Yo[r],a=[],l=new Set,c=new Set(i),u=h=>{!h||l.has(h)||(l.add(h),u(h.parentNode))};i.forEach(u);const d=h=>{!h||c.has(h)||Array.prototype.forEach.call(h.children,m=>{if(l.has(m))d(m);else try{if(Vx(m))return;const p=m.getAttribute(o)==="true",v=(qn.get(m)||0)+1,y=(s.get(m)||0)+1;qn.set(m,v),s.set(m,y),a.push(m),v===1&&p&&Ko.set(m,!0),y===1&&m.setAttribute(r,""),p||m.setAttribute(o,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",m,f)}})};return d(n),l.clear(),qs++,()=>{a.forEach(h=>{const m=qn.get(h)-1,f=s.get(h)-1;qn.set(h,m),s.set(h,f),m||(Ko.has(h)||h.removeAttribute(o),Ko.delete(h)),f||h.removeAttribute(r)}),qs--,qs||(qn=new WeakMap,qn=new WeakMap,Ko=new WeakMap,Yo={})}},Lx=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Dx=(e,t=Lx(e),n="data-aria-hidden")=>{if(t)return Fx(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},zx=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Tu(e,t={}){const{defer:n=!0}=t,r=n?zx:i=>i(),o=[];return o.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(Dx(s))})),()=>{o.forEach(i=>i?.())}}var Nu=j("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Nu.build();var Au=e=>new Uo(e);Au.empty=()=>new Uo({items:[]});var Mx=e=>e.ids?.control??`combobox:${e.id}:control`,jx=e=>e.ids?.input??`combobox:${e.id}:input`,$x=e=>e.ids?.content??`combobox:${e.id}:content`,Bx=e=>e.ids?.positioner??`combobox:${e.id}:popper`,Wx=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,Hx=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Lt=e=>e.getById($x(e)),Kn=e=>e.getById(jx(e)),_u=e=>e.getById(Bx(e)),Vu=e=>e.getById(Mx(e)),Rr=e=>e.getById(Wx(e)),Fu=e=>e.getById(Hx(e)),Tr=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return ov(Lt(e),n)},Lu=e=>{const t=Kn(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},Ux=e=>{const t=Rr(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:Gx,createMachine:qx,choose:Kx}=fc(),{and:be,not:Ue}=Gx;qx({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){ac(t)},collection:Au.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:Ze,hash(o){return o.join(",")},onChange(o){const i=n(),s=i.get("selectedItems"),a=e("collection"),l=o.map(c=>s.find(d=>a.getItemValue(d)===c)||a.find(c));i.set("selectedItems",l),e("onValueChange")?.({value:o,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){const i=e("collection").find(o);e("onHighlightChange")?.({highlightedValue:o,highlightedItem:i})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue")||"";const i=e("defaultValue")||e("value")||[];if(!o.trim()&&!e("multiple")){const s=e("collection").stringifyMany(i);o=vt(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){const a=r(),l=(a.previousEvent||a).src;e("onInputValueChange")?.({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const o=e("highlightedValue");return{defaultValue:e("collection").find(o)}}),selectedItems:t(()=>{const o=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(o)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:o}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{o({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:Kx([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:be("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:be("isCustomValue",Ue("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:be("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:be("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:be("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:be("isOpenControlled","isCustomValue",Ue("hasHighlightedItem"),Ue("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",Ue("hasHighlightedItem"),Ue("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:be("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:be("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:be("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:be("isOpenControlled","isCustomValue",Ue("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",Ue("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:be("isOpenControlled","isCustomValue",Ue("hasHighlightedItem"),Ue("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",Ue("hasHighlightedItem"),Ue("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:be("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:be("isOpenControlled","isCustomValue",Ue("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:be("isCustomValue",Ue("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:be("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return Mm(n)?n:!!n?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Un(()=>Lt(n),{defer:!0,exclude:()=>[Kn(n),Rr(n),Fu(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(o){o.preventDefault(),o.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return Tu([Kn(e),Lt(e),Rr(e),Fu(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>Vu(n)||Rr(n),o=()=>_u(n);return e.set("currentPlacement",t("positioning").placement),nt(r,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const o=Kn(n);let i=[];const s=c=>{const u=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const h=Lt(n),m=t("scrollToIndexFn");if(m){const v=t("collection").indexOf(d);m({index:v,immediate:c,getElement:()=>Tr(n,d)});return}const f=Tr(n,d),p=G(()=>{So(f,{rootEl:h,block:"nearest"})});i.push(p)},a=G(()=>s(!0));i.push(a);const l=ko(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){nt(()=>Vu(n),()=>_u(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(s){e.set("currentPlacement",s.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:n}=e,r=n("collection"),o=t.get("highlightedValue");if(!o||!r.has(o))return;const i=n("multiple")?Fn(t.get("value"),o):[o];n("onSelect")?.({value:i,itemValue:o}),t.set("value",i);const s=vt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){bs(()=>{const r=e.get("highlightedValue");if(r==null)return;const o=Tr(n,r),i=Lt(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>Tr(n,r)});return}So(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=o("multiple")?Fn(t.get("value"),n.value):[n.value];o("onSelect")?.({value:i,itemValue:n.value}),t.set("value",i);const s=vt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=Gt(t.get("value"),n.value);t.set("value",i);const s=vt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){G(()=>{Lu(e)})},setFinalFocus({scope:e}){G(()=>{Rr(e)?.dataset.focusable==null?Lu(e):Ux(e)})},syncInputValue({context:e,scope:t,event:n}){const r=Kn(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&d0(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),o=vt(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:n,event:r,prop:o}=e;n(()=>{t.set("value",r.value);const i=vt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const o=vt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>Tr(t,r)})}else{const r=Lt(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const n=Du(t);e("onOpenChange")?.({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){const n=Du(t);e("onOpenChange")?.({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(Lt(n)?queueMicrotask:G)(()=>{const o=t("collection").firstValue;o&&e.set("highlightedValue",o)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(Lt(n)?queueMicrotask:G)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getNextValue(r),!n&&t("loopFocus")&&(n=o.firstValue)):n=o.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getPreviousValue(r),!n&&t("loopFocus")&&(n=o.lastValue)):n=o.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){G(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){G(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){G(()=>{const r=t("collection");let o=null;n("hasSelectedItems")?o=r.sort(e.get("value"))[0]:o=r.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:o}){const i=Kn(o),s=n("collection");if(!t("autoComplete")||!i||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));G(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",i);const s=vt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function Du(e){return(e.previousEvent||e).src}M()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),M()(["htmlFor"]),M()(["id"]),M()(["item","persistFocus"]);const Yx=Nu.extendWith("empty"),[zu,Dt]=Ln({name:"DialogContext",hookName:"useDialogContext",providerName:""}),Mu=P.forwardRef((e,t)=>{const n=Dt(),r=Gy(),o=Es({...r,present:n.open}),i=Ke(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:g.jsx(bt.div,{...i,ref:Po(o.ref,t)})});Mu.displayName="DialogBackdrop";const ju=P.forwardRef((e,t)=>{const n=Dt(),r=Ke(n.getCloseTriggerProps(),e);return g.jsx(bt.button,{...r,ref:t})});ju.displayName="DialogCloseTrigger";const $u=P.forwardRef((e,t)=>{const n=Dt(),r=Os(),o=Ke(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:g.jsx(bt.div,{...o,ref:Po(r.ref,t)})});$u.displayName="DialogContent";const Bu=P.forwardRef((e,t)=>{const n=Dt(),r=Ke(n.getDescriptionProps(),e);return g.jsx(bt.div,{...r,ref:t})});Bu.displayName="DialogDescription";const Wu=P.forwardRef((e,t)=>{const n=Dt(),r=Ke(n.getPositionerProps(),e);return Os().unmounted?null:g.jsx(bt.div,{...r,ref:t})});Wu.displayName="DialogPositioner";var Xx=Object.defineProperty,Qx=(e,t,n)=>t in e?Xx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,se=(e,t,n)=>Qx(e,typeof t!="symbol"?t+"":t,n),Hu={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},Jx=[],Zx=class{constructor(e,t){se(this,"trapStack"),se(this,"config"),se(this,"doc"),se(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),se(this,"listenerCleanups",[]),se(this,"handleFocus",r=>{const o=$e(r),i=this.findContainerIndex(o,r)>=0;if(i||ds(o))i&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(kr(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1=0&&(s=c[u-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>kr(c)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),se(this,"handlePointerDown",r=>{const o=$e(r);if(!(this.findContainerIndex(o,r)>=0)){if(Ar(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Ar(this.config.allowOutsideClick,r)||r.preventDefault()}}),se(this,"handleClick",r=>{const o=$e(r);this.findContainerIndex(o,r)>=0||Ar(this.config.clickOutsideDeactivates,r)||Ar(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),se(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:o});if(!i)return;Nr(r)&&r.preventDefault(),this.tryFocus(i)}}),se(this,"handleEscapeKey",r=>{e1(r)&&Ar(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),se(this,"_mutationObserver"),se(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(s=>Array.from(s.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),se(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(r=>{this._mutationObserver?.observe(r,{subtree:!0,childList:!0})})}),se(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!At(r))if(this.findContainerIndex(this.doc.activeElement)>=0)r=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];r=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),se(this,"tryFocus",r=>{if(r!==!1&&r!==tc(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,t1(r)&&r.select()}}),se(this,"deactivate",r=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Hu.deactivateTrap(this.trapStack,this);const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i?.();const c=()=>{Uu(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s?.()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),se(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),se(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),se(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),se(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),se(this,"getOption",(r,o,i)=>r&&r[o]!==void 0?r[o]:this.config[i||o]),se(this,"getNodeForOption",(r,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[r];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${r}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),se(this,"findNextNavNode",r=>{const{event:o,isBackward:i=!1}=r,s=r.target||$e(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>s===d);if(u<0&&(c?.container===s||At(s)&&!Xt(s)&&!c?.nextTabbableNode(s,!1))&&(u=l),u>=0){const d=u===0?this.state.tabbableGroups.length-1:u-1,h=this.state.tabbableGroups[d];a=kr(s)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else Nr(o)||(a=c?.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>s===d);if(u<0&&(c?.container===s||At(s)&&!Xt(s)&&!c?.nextTabbableNode(s))&&(u=l),u>=0){const d=u===this.state.tabbableGroups.length-1?0:u+1,h=this.state.tabbableGroups[d];a=kr(s)>=0?h.firstTabbableNode:h.firstDomTabbableNode}else Nr(o)||(a=c?.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||Jx;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(r){return Nr(r)&&!r.shiftKey},isKeyBackward(r){return Nr(r)&&r.shiftKey},...t};this.doc=n.document||Fe(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||n?.includes(r)||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=ms(e),n=sc(e),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=n.find(c=>Xt(c)),s=n.slice().reverse().find(c=>Xt(c)),a=!!t.find(c=>kr(c)>0);function l(c,u=!0){const d=t.indexOf(c);return d<0?u?n.slice(n.indexOf(c)+1).find(h=>Xt(h)):n.slice(0,n.indexOf(c)).reverse().find(h=>Xt(h)):t[d+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return Hu.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Uu(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ie(this.doc,"focusin",this.handleFocus,!0),ie(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ie(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ie(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ie(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ie(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t?.();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n?.()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},Nr=e=>e.key==="Tab",Ar=(e,...t)=>typeof e=="function"?e(...t):e,e1=e=>!e.isComposing&&e.key==="Escape",Uu=e=>setTimeout(e,0),t1=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function n1(e,t={}){let n;const r=G(()=>{const o=typeof e=="function"?e():e;if(o){n=new Zx(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:Fe(o)});try{n.activate()}catch{}}});return function(){n?.deactivate(),r()}}var Ks="data-scroll-lock";function r1(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function o1(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:o}=t;if(o.hasAttribute(Ks))return;const s=n.innerWidth-r.clientWidth;o.setAttribute(Ks,"");const a=()=>hv(r,"--scrollbar-width",`${s}px`),l=r1(r),c=()=>Oo(o,{overflow:"hidden",[l]:`${s}px`}),u=()=>{const{scrollX:h,scrollY:m,visualViewport:f}=n,p=f?.offsetLeft??0,v=f?.offsetTop??0,y=Oo(o,{position:"fixed",overflow:"hidden",top:`${-(m-Math.floor(v))}px`,left:`${-(h-Math.floor(p))}px`,right:"0",[l]:`${s}px`});return()=>{y?.(),n.scrollTo({left:h,top:m,behavior:"instant"})}},d=[a(),bo()?u():c()];return()=>{d.forEach(h=>h?.()),o.removeAttribute(Ks)}}var Ys=j("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),tn=Ys.build(),Gu=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,qu=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,Xs=e=>e.ids?.content??`dialog:${e.id}:content`,Ku=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,Qs=e=>e.ids?.title??`dialog:${e.id}:title`,Js=e=>e.ids?.description??`dialog:${e.id}:description`,Yu=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,Xo=e=>e.getById(Xs(e)),i1=e=>e.getById(Gu(e)),s1=e=>e.getById(qu(e)),a1=e=>e.getById(Ku(e)),l1=e=>e.getById(Qs(e)),c1=e=>e.getById(Js(e)),u1=e=>e.getById(Yu(e));function d1(e,t){const{state:n,send:r,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=n.matches("open");return{open:l,setOpen(c){n.matches("open")!==c&&r({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...tn.trigger.attrs,dir:i("dir"),id:Ku(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":Xs(s),onClick(c){c.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...tn.backdrop.attrs,dir:i("dir"),hidden:!l,id:qu(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...tn.positioner.attrs,dir:i("dir"),id:Gu(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...tn.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:Xs(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:Qs(s),"aria-describedby":c.description?Js(s):void 0})},getTitleProps(){return t.element({...tn.title.attrs,dir:i("dir"),id:Qs(s)})},getDescriptionProps(){return t.element({...tn.description.attrs,dir:i("dir"),id:Js(s)})},getCloseTriggerProps(){return t.button({...tn.closeTrigger.attrs,dir:i("dir"),id:Yu(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),r({type:"CLOSE"}))}})}}}var h1={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>u1(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Un(()=>Xo(e),{defer:!0,pointerBlocking:n("modal"),exclude:[a1(e)],onInteractOutside(o){n("onInteractOutside")?.(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){n("onEscapeKeyDown")?.(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return o1(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?n1(()=>Xo(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>t("finalFocusEl")?.()??r}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Tu(()=>[Xo(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){G(()=>{e.set("rendered",{title:!!l1(t),description:!!c1(t)})})},syncZIndex({scope:e}){G(()=>{const t=Xo(e);if(!t)return;const n=mo(t);[i1(e),s1(e)].forEach(o=>{o?.style.setProperty("--z-index",n.zIndex),o?.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};M()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const f1=e=>{const t=P.useId(),{getRootNode:n}=Xl(),{dir:r}=Cv(),o={id:t,getRootNode:n,dir:r,...e},i=vc(h1,o);return d1(i,Rv)},g1=e=>{const[t,{children:n,...r}]=pc(e),[o]=cu(t),i=f1(r),s=Es(Ke({present:i.open},t));return g.jsx(zu,{value:i,children:g.jsx(lu,{value:o,children:g.jsx(xc,{value:s,children:n})})})},p1=e=>{const[t,{value:n,children:r}]=pc(e),[o]=cu(t),i=Es(Ke({present:n.open},t));return g.jsx(zu,{value:n,children:g.jsx(lu,{value:o,children:g.jsx(xc,{value:i,children:r})})})},Xu=P.forwardRef((e,t)=>{const n=Dt(),r=Ke(n.getTitleProps(),e);return g.jsx(bt.h2,{...r,ref:t})});Xu.displayName="DialogTitle";const Qu=P.forwardRef((e,t)=>{const n=Dt(),r=Os(),o=Ke({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return g.jsx(bt.button,{...o,ref:t})});Qu.displayName="DialogTrigger";var Ju=j("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Ju.build(),M()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const Zu=P.forwardRef((e,t)=>{const n=yu(),r=Ke(n?.getInputProps(),e);return g.jsx(bt.input,{...r,ref:t})});Zu.displayName="FieldInput";const ed=j("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");ed.build();var m1=e=>{if(!e)return;const t=mo(e),n=ve(e),r=Fe(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let c;t.boxSizing==="content-box"?c=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):c=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&c>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),c=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${c}px`})};e.addEventListener("input",o),e.form?.addEventListener("reset",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){s?.set?.apply(this,arguments),o()}});const a=new n.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new n.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),r.fonts?.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const td=P.forwardRef((e,t)=>{const{autoresize:n,...r}=e,o=P.useRef(null),i=yu(),s=Ke(i?.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return P.useEffect(()=>{if(n)return m1(o.current)},[n]),g.jsx(bt.textarea,{...s,ref:Po(t,o)})});td.displayName="FieldTextarea";const nd=j("fieldset").parts("root","errorText","helperText","legend");nd.build();var rd=j("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");rd.build(),M()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),M()(["file"]);var od=j("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");od.build();var v1=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,b1=e=>e.ids?.content??`hover-card:${e.id}:content`,y1=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Zs=e=>e.getById(v1(e)),x1=e=>e.getById(b1(e)),id=e=>e.getById(y1(e)),{not:Qo,and:sd}=_t();sd("isOpenControlled",Qo("isPointer")),Qo("isPointer"),sd("isOpenControlled",Qo("isPointer")),Qo("isPointer"),M()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var ad=j("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");ad.build();var ld=e=>new Iu(e);ld.empty=()=>new Iu({rootNode:{children:[]}});var k1=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,nn=(e,t)=>{t!=null&&e.getById(k1(e,t))?.focus()};function C1(e,t,n){const r=e.getDescendantValues(t),o=r.every(i=>n.includes(i));return Vn(o?Gt(n,...r):Ut(n,...r))}function Jo(e,t){const{context:n,prop:r,refs:o}=e;if(!r("loadChildren")){n.set("expandedValue",p=>Vn(Ut(p,...t)));return}const i=n.get("loadingStatus"),[s,a]=Dl(t,p=>i[p]==="loaded");if(s.length>0&&n.set("expandedValue",p=>Vn(Ut(p,...s))),a.length===0)return;const l=r("collection"),[c,u]=Dl(a,p=>{const v=l.findNode(p);return l.getNodeChildren(v).length>0});if(c.length>0&&n.set("expandedValue",p=>Vn(Ut(p,...c))),u.length===0)return;n.set("loadingStatus",p=>({...p,...u.reduce((v,y)=>({...v,[y]:"loading"}),{})}));const d=u.map(p=>{const v=l.getIndexPath(p),y=l.getValuePath(v),b=l.findNode(p);return{id:p,indexPath:v,valuePath:y,node:b}}),h=o.get("pendingAborts"),m=r("loadChildren");Yl(m,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const f=d.map(({id:p,indexPath:v,valuePath:y,node:b})=>{const x=h.get(p);x&&(x.abort(),h.delete(p));const C=new AbortController;return h.set(p,C),m({valuePath:y,indexPath:v,node:b,signal:C.signal})});Promise.allSettled(f).then(p=>{const v=[],y=[],b=n.get("loadingStatus");let x=r("collection");p.forEach((C,k)=>{const{id:E,indexPath:I,node:R,valuePath:_}=d[k];C.status==="fulfilled"?(b[E]="loaded",v.push(E),x=x.replace(I,{...R,children:C.value})):(h.delete(E),Reflect.deleteProperty(b,E),y.push({node:R,error:C.reason,indexPath:I,valuePath:_}))}),n.set("loadingStatus",b),v.length&&(n.set("expandedValue",C=>Vn(Ut(C,...v))),r("onLoadChildrenComplete")?.({collection:x})),y.length&&r("onLoadChildrenError")?.({nodes:y})})}function zt(e){const{prop:t,context:n}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:ft}=_t();ft("isMultipleSelection","moveFocus"),ft("isShiftKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),ft("isBranchFocused","isBranchExpanded"),ft("isShiftKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),ft("isCtrlKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),ft("isCtrlKey","isMultipleSelection"),ft("isShiftKey","isMultipleSelection"),M()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),M()(["node","indexPath"]);var cd=j("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");cd.build(),M()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),M()(["item","highlightOnHover"]),M()(["id"]),M()(["htmlFor"]);const S1=cd.extendWith("empty");var ud=j("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");ud.build();var dd=e=>e.ids?.trigger??`menu:${e.id}:trigger`,w1=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,hd=e=>e.ids?.content??`menu:${e.id}:content`,E1=e=>e.ids?.positioner??`menu:${e.id}:popper`,ea=(e,t)=>`${e.id}/${t}`,rn=e=>e?.dataset.value??null,Mt=e=>e.getById(hd(e)),fd=e=>e.getById(E1(e)),Zo=e=>e.getById(dd(e)),O1=(e,t)=>t?e.getById(ea(e,t)):null,ta=e=>e.getById(w1(e)),_r=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(hd(e))}]:not([data-disabled])`;return Eo(Mt(e),n)},P1=e=>br(_r(e)),I1=e=>as(_r(e)),na=(e,t)=>t?e.id===t||e.dataset.value===t:!1,R1=(e,t)=>{const n=_r(e),r=n.findIndex(o=>na(o,t.value));return Fm(n,r,{loop:t.loop??t.loopFocus})},T1=(e,t)=>{const n=_r(e),r=n.findIndex(o=>na(o,t.value));return Dm(n,r,{loop:t.loop??t.loopFocus})},N1=(e,t)=>{const n=_r(e),r=n.find(o=>na(o,t.value));return Cr(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},A1=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),_1="menu:select";function V1(e,t){if(!e)return;const n=ve(e),r=new n.CustomEvent(_1,{detail:{value:t}});e.dispatchEvent(r)}var{not:Qe,and:Yn,or:F1}=_t();Qe("isSubmenu"),F1("isOpenAutoFocusEvent","isArrowDownEvent"),Yn(Qe("isTriggerItem"),"isOpenControlled"),Qe("isTriggerItem"),Yn("isSubmenu","isOpenControlled"),Qe("isPointerSuspended"),Yn(Qe("isPointerSuspended"),Qe("isTriggerItem")),Yn(Qe("isTriggerItemHighlighted"),Qe("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Yn(Qe("isTriggerItemHighlighted"),Qe("isHighlightedItemEditable"),"closeOnSelect"),Yn(Qe("isTriggerItemHighlighted"),Qe("isHighlightedItemEditable"));function gd(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function L1(e,t){return e?rx(e,t):!1}function D1(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return ea(n,t);for(const o in e){const i=e[o],s=dd(i.scope);if(s===t)return s}return ea(n,t)}M()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),M()(["closeOnSelect","disabled","value","valueText"]),M()(["htmlFor"]),M()(["id"]),M()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let ra=new Map,oa=!1;try{oa=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ei=!1;try{ei=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const pd={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class z1{format(t){let n="";if(!oa&&this.options.signDisplay!=null?n=j1(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ei){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return n;let a=(r=pd[o])===null||r===void 0?void 0:r[i];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!oa&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ei&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=M1(t,n),this.options=n}}function M1(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ei){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=pd[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(n)}}const $1=new RegExp("^.*\\(.*\\).*$"),B1=["latn","arab","hanidec","deva","beng","fullwide"];class md{parse(t){return ia(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return ia(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return ia(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const vd=new Map;function ia(e,t,n){let r=bd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of B1)if(o!==r.options.numberingSystem){let i=bd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function bd(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,i;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new md(this.locale,s).parse(new z1(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&$1.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Vr(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Vr(t," ",this.symbols.group),t=Vr(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Vr(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=U1(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const yd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),H1=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function U1(e,t,n,r){var o,i,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=H1.map(A=>l.formatToParts(A));var h;let m=(h=(o=c.find(A=>A.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&h!==void 0?h:"-",f=(i=u.find(A=>A.type==="plusSign"))===null||i===void 0?void 0:i.value;!f&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(f="+");let v=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(A=>A.type==="decimal"))===null||s===void 0?void 0:s.value,y=(a=c.find(A=>A.type==="group"))===null||a===void 0?void 0:a.value,b=c.filter(A=>!yd.has(A.type)).map(A=>xd(A.value)),x=d.flatMap(A=>A.filter(T=>!yd.has(T.type)).map(T=>xd(T.value))),C=[...new Set([...b,...x])].sort((A,T)=>T.length-A.length),k=C.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${C.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),I=new Map(E.map((A,T)=>[A,T])),R=new RegExp(`[${E.join("")}]`,"g");return{minusSign:m,plusSign:f,decimal:v,group:y,literals:k,numeral:R,index:A=>String(I.get(A))}}function Vr(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function xd(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var kd=j("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");kd.build();var G1=e=>e.ids?.input??`number-input:${e.id}:input`,q1=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,K1=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,Cd=e=>`number-input:${e.id}:cursor`,ti=e=>e.getById(G1(e)),Y1=e=>e.getById(q1(e)),X1=e=>e.getById(K1(e)),Sd=e=>e.getDoc().getElementById(Cd(e)),Q1=(e,t)=>{let n=null;return t==="increment"&&(n=Y1(e)),t==="decrement"&&(n=X1(e)),n},J1=(e,t)=>{if(!oc())return tk(e,t),()=>{Sd(e)?.remove()}},Z1=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},ek=(e,t)=>{const{point:n,isRtl:r,event:o}=t,i=e.getWin(),s=us(o.movementX,i.devicePixelRatio),a=us(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const c={x:n.x+s,y:n.y+a},u=i.innerWidth,d=us(7.5,i.devicePixelRatio);return c.x=e0(c.x+d,u)-d,{hint:l,point:c}},tk=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=Cd(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:f0,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=` - `,n.body.appendChild(r)};function J1(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,o=r.substring(0,t),i=r.substring(n);return{start:t,end:n,value:r,beforeTxt:o,afterTxt:i}}catch{}}function Z1(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:o="",start:i}=t;let s=n.length;if(n.endsWith(o))s=n.length-o.length;else if(n.startsWith(r))s=r.length;else if(i!=null){const a=r[i-1],l=n.indexOf(a,i-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var ek=(e,t={})=>new Intl.NumberFormat(e,t),tk=(e,t={})=>new fd(e,t),ia=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},Zt=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},nk=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:rk,guards:ok,createMachine:ik}=hc(),{not:kd,and:Cd}=ok;ik({props({props:e}){const t=nk(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){const o=n(),i=ia(r,{computed:o,prop:e});e("onValueChange")?.({value:r,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>ia(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Zt(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Qm(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Xm(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Jm(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:dc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>ek(e,t)),parser:dc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>tk(e,t))},watch({track:e,action:t,context:n,computed:r,prop:o}){e([()=>n.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:Cd("clampValueOnBlur",kd("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:kd("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:rk([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Cd("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=ti(t);return fs(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return K1(t,n)},preventTextSelection({scope:e}){return Y1(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),o=q1(t,r);return ko(o,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=ti(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function o(i){i.preventDefault();const s=Math.sign(i.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return ie(r,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!rc())return Y0(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const o=e.getDoc();function i(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=X1(e,{point:l,isRtl:c,event:a});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return ho(ie(o,"mousemove",i,!1),ie(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=ti(e);e.isActiveElement(n)||G(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let o=n0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=_e(o,n("min"),n("max"))),e.set("value",Zt(o,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let o=r0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=_e(o,n("min"),n("max"))),e.set("value",Zt(o,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=_e(n("valueAsNumber"),t("min"),t("max"));e.set("value",Zt(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let o=ia(t.value,{computed:r,prop:n});n("allowOverflow")||(o=_e(o,n("min"),n("max"))),e.set("value",Zt(o,{computed:r,prop:n}))},setValue({context:e,event:t}){const n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=Zt(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=Zt(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const o=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),i=ti(r),s=J1(i);G(()=>{xo(i,o),Z1(i,s)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=xd(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),M()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Sd=j("pinInput").parts("root","label","input","control");Sd.build(),M()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var wd=j("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");wd.build(),M()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const Cr=e=>{const{children:t,disabled:n}=e,[r,o]=P.useState(e.container?.current),i=P.useSyncExternalStore(ak,()=>!1,()=>!0),{getRootNode:s}=Yl();if(P.useEffect(()=>{o(()=>e.container?.current)},[e.container]),i||n)return m.jsx(m.Fragment,{children:t});const a=r??sk(s);return m.jsx(m.Fragment,{children:P.Children.map(t,l=>St.createPortal(l,a))})},sk=e=>{const t=e?.(),n=t.getRootNode();return Sn(n)?n:Ve(t).body},ak=()=>()=>{};var sa=j("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");sa.build(),M()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Ed=j("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Ed.build(),M()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var aa=j("radio-group").parts("root","label","item","itemText","itemControl","indicator");aa.build(),M()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),M()(["value","disabled","invalid"]);var Od=j("rating-group").parts("root","label","item","control");Od.build(),M()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),M()(["index"]);var Pd=j("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Pd.build(),M()(["dir","getRootNode","ids","id"]);const Id=aa.rename("segment-group");Id.build();var Rd=j("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Rd.build();var Td=e=>new Uo(e);Td.empty=()=>new Uo({items:[]});var lk=e=>e.ids?.content??`select:${e.id}:content`,ck=e=>e.ids?.trigger??`select:${e.id}:trigger`,uk=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,dk=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,hk=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,fk=e=>e.ids?.positioner??`select:${e.id}:positioner`,la=e=>e.getById(hk(e)),Sr=e=>e.getById(lk(e)),ni=e=>e.getById(ck(e)),gk=e=>e.getById(uk(e)),Nd=e=>e.getById(fk(e)),ca=(e,t)=>t==null?null:e.getById(dk(e,t)),{and:wr,not:en,or:pk}=Pt();pk("isTriggerArrowDownEvent","isTriggerEnterEvent"),wr(en("multiple"),"hasSelectedItems"),en("multiple"),wr(en("multiple"),"hasSelectedItems"),en("multiple"),en("multiple"),en("multiple"),en("multiple"),wr("closeOnSelect","isOpenControlled"),wr("hasHighlightedItem","loop","isLastItemHighlighted"),wr("hasHighlightedItem","loop","isFirstItemHighlighted");function Ad(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}M()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),M()(["item","persistFocus"]),M()(["id"]),M()(["htmlFor"]);var _d=j("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");_d.build(),M()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),M()(["index","name"]);var Vd=j("switch").parts("root","label","control","thumb");Vd.build(),M()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var mk=j("toast").parts("group","root","title","description","actionTrigger","closeTrigger");mk.build();var vk=(e,t)=>({...t,...go(e)});function bk(e){const t=vk(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],o=new Set,i=[];const s=S=>(n.push(S),()=>{const N=n.indexOf(S);n.splice(N,1)}),a=S=>(n.forEach(N=>N(S)),S),l=S=>{if(r.length>=t.max){i.push(S);return}a(S),r.unshift(S)},c=()=>{for(;i.length>0&&r.length{const N=S.id??`toast:${Hm()}`,z=r.find(D=>D.id===N);return o.has(N)&&o.delete(N),z?r=r.map(D=>D.id===N?a({...D,...S,id:N}):D):l({id:N,duration:t.duration,removeDelay:t.removeDelay,type:"info",...S,stacked:!t.overlap,gap:t.gap}),N},d=S=>(o.add(S),S?(n.forEach(N=>N({id:S,dismiss:!0})),r=r.filter(N=>N.id!==S),c()):(r.forEach(N=>{n.forEach(z=>z({id:N.id,dismiss:!0}))}),r=[],i=[]),S);return{attrs:t,subscribe:s,create:u,update:(S,N)=>u({id:S,...N}),remove:d,dismiss:S=>{S!=null?r=r.map(N=>N.id===S?a({...N,message:"DISMISS"}):N):r=r.map(N=>a({...N,message:"DISMISS"}))},error:S=>u({...S,type:"error"}),success:S=>u({...S,type:"success"}),info:S=>u({...S,type:"info"}),warning:S=>u({...S,type:"warning"}),loading:S=>u({...S,type:"loading"}),getVisibleToasts:()=>r.filter(S=>!o.has(S.id)),getCount:()=>r.length,promise:(S,N,z={})=>{if(!N||!N.loading){sr("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const D=u({...z,...N.loading,promise:S,type:"loading"});let q=!0,K;const ce=uo(S).then(async W=>{if(K=["resolve",W],yk(W)&&!W.ok){q=!1;const te=uo(N.error,`HTTP Error! status: ${W.status}`);u({...z,...te,id:D,type:"error"})}else if(N.success!==void 0){q=!1;const te=uo(N.success,W);u({...z,...te,id:D,type:"success"})}}).catch(async W=>{if(K=["reject",W],N.error!==void 0){q=!1;const te=uo(N.error,W);u({...z,...te,id:D,type:"error"})}}).finally(()=>{q&&d(D),N.finally?.()});return{id:D,unwrap:()=>new Promise((W,te)=>ce.then(()=>K[0]==="reject"?te(K[1]):W(K[1])).catch(te))}},pause:S=>{S!=null?r=r.map(N=>N.id===S?a({...N,message:"PAUSE"}):N):r=r.map(N=>a({...N,message:"PAUSE"}))},resume:S=>{S!=null?r=r.map(N=>N.id===S?a({...N,message:"RESUME"}):N):r=r.map(N=>a({...N,message:"RESUME"}))},isVisible:S=>!o.has(S)&&!!r.find(N=>N.id===S),isDismissed:S=>o.has(S),expand:()=>{r=r.map(S=>a({...S,stacked:!0}))},collapse:()=>{r=r.map(S=>a({...S,stacked:!1}))}}}var yk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const xk=e=>bk(e);var Fd=j("tooltip").parts("trigger","arrow","arrowTip","positioner","content");Fd.build();var kk=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,Ck=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,ua=e=>e.getById(kk(e)),Ld=e=>e.getById(Ck(e)),tn=o0({id:null}),{and:Sk,not:Dd}=Pt();Sk("noVisibleTooltip",Dd("hasPointerMoveOpened")),Dd("hasPointerMoveOpened"),M()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function zd(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const wk=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const o=t(`colors.${n}`),i=t.raw(`opacity.${r}`)?.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:n};const s=i?Number(i)*100+"%":`${r}%`,a=o??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},Z=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:r.value,[e]:`var(${o}, ${r.color})`}};function da(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>da(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=da(e[n]);return t}function ha(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Ae(e[n])&&Ae(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Ae(t[n]))ha(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;re!=null;function gt(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Ae(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=o?.(c,u)??c,h=[...a,d];if(r?.(s,h))return t(s,a);const p=i(u,h);fa(p)&&(l[d]=p)}return l}return t(s,a)}return i(e)}function Md(e,t){return Array.isArray(e)?e.map(n=>fa(n)?t(n):n):Ae(e)?gt(e,n=>t(n)):fa(e)?t(e):e}const ri=["value","type","description"],Ek=e=>e&&typeof e=="object"&&!Array.isArray(e),jd=(...e)=>{const t=Ln({},...e.map(da));return t.theme?.tokens&>(t.theme.tokens,n=>{const i=Object.keys(n).filter(a=>!ri.includes(a)).length>0,s=ri.some(a=>n[a]!=null);return i&&s&&(n.DEFAULT||(n.DEFAULT={}),ri.forEach(a=>{var l;n[a]!=null&&((l=n.DEFAULT)[a]||(l[a]=n[a]),delete n[a])})),n},{stop(n){return Ek(n)&&Object.keys(n).some(r=>ri.includes(r)||r!==r.toLowerCase()&&r!==r.toUpperCase())}}),t},Ok=e=>e,fe=e=>e,$=e=>e,Pk=e=>e,Ik=e=>e,Dn=e=>e,Rk=e=>e,Tk=e=>e,Nk=e=>e;function $d(){const e=t=>t;return new Proxy(e,{get(){return e}})}const de=$d(),ga=$d(),pa=e=>e,Ak=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function _k(e){return`${e}`.replace(Ak,t=>`\\${t}`)}const Vk=/[A-Z]/g;function Fk(e){return e.replace(Vk,t=>`-${t.toLowerCase()}`)}function Bd(e,t={}){const{fallback:n="",prefix:r=""}=t,o=Fk(["-",r,_k(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${n?`, ${n}`:""})`}}const Lk=e=>/^var\(--.+\)$/.test(e),ye=(e,t)=>t!=null?`${e}(${t})`:t,nn=e=>{if(Lk(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},Wd=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),Dk=Z("borderColor"),xt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),zk=Ok({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),zn=Bd("bg-currentcolor"),Hd=e=>e===zn.ref||e==="currentBg",ee=e=>({...e("colors"),currentBg:zn}),Mk=pa({conditions:zk,utilities:{background:{values:ee,shorthand:["bg"],transform(e,t){if(Hd(t.raw))return{background:zn.ref};const n=Z("background")(e,t);return{...n,[zn.var]:n?.background}}},backgroundColor:{values:ee,shorthand:["bgColor"],transform(e,t){if(Hd(t.raw))return{backgroundColor:zn.ref};const n=Z("backgroundColor")(e,t);return{...n,[zn.var]:n?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:ee,transform:Z("--gradient-from")},gradientTo:{values:ee,transform:Z("--gradient-to")},gradientVia:{values:ee,transform(e,t){return{...Z("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:ee,transform:Z("borderColor")},borderTopColor:{values:ee,transform:Z("borderTopColor")},borderBlockStartColor:{values:ee,transform:Z("borderBlockStartColor")},borderBottomColor:{values:ee,transform:Z("borderBottomColor")},borderBlockEndColor:{values:ee,transform:Z("borderBlockEndColor")},borderLeftColor:{values:ee,transform:Z("borderLeftColor")},borderInlineStartColor:{values:ee,shorthand:["borderStartColor"],transform:Z("borderInlineStartColor")},borderRightColor:{values:ee,transform:Z("borderRightColor")},borderInlineEndColor:{values:ee,shorthand:["borderEndColor"],transform:Z("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:ee,transform:Z("color")},fill:{values:ee,transform:Z("fill")},stroke:{values:ee,transform:Z("stroke")},accentColor:{values:ee,transform:Z("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:ee,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":Dk(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ee,transform:Z("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":ye("blur",e)})},brightness:{transform:e=>({"--brightness":ye("brightness",e)})},contrast:{transform:e=>({"--contrast":ye("contrast",e)})},grayscale:{transform:e=>({"--grayscale":ye("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":ye("hue-rotate",nn(e))})},invert:{transform:e=>({"--invert":ye("invert",e)})},saturate:{transform:e=>({"--saturate":ye("saturate",e)})},sepia:{transform:e=>({"--sepia":ye("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":ye("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":ye("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":ye("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":ye("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":ye("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":ye("hue-rotate",nn(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":ye("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":ye("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":ye("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":ye("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:ee,transform:Z("outlineColor")},focusRing:Wd("&:is(:focus, [data-focus])"),focusVisibleRing:Wd("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ee,transform:Z("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:ee,transform:Z("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:ee,transform:Z("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ee,transform:Z("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:ee,transform:Z("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":nn(e)})},skewY:{transform:e=>({"--skew-y":nn(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:nn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":nn(e)}}},rotateY:{transform(e){return{"--rotate-y":nn(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return xt("all");case"position":return xt("left, right, top, bottom, inset-inline, inset-block");case"colors":return xt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return xt("opacity");case"shadow":return xt("box-shadow");case"transform":return xt("transform");case"size":return xt("width, height");case"backgrounds":return xt("background, background-color, background-image, background-position");case"common":return xt("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return jk[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ee,transform:Z("caretColor")},cursor:{values:"cursor"}}}),jk={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var $k="",Bk=$k.split(","),Wk="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",Hk=Wk.split(",").concat(Bk),Uk=new Map(Hk.map(e=>[e,!0]));function Gk(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var qk=/&|@/,Kk=Gk(e=>Uk.has(e)||e.startsWith("--")||qk.test(e));function Ud(e,t){const n={};return gt(e,(r,o)=>{r&&(n[o.join(".")]=r.value)},{stop:t}),n}var ma,Gd;function Yk(){if(Gd)return ma;Gd=1,ma=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",n=[],r=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,p,f,g){typeof g>"u"&&(g=o()),a(h,"",0,[],void 0,0,g);var v;try{r.length===0?v=JSON.stringify(h,p,f):v=JSON.stringify(h,d(p),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var y=n.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return v}function s(h,p,f,g){var v=Object.getOwnPropertyDescriptor(g,f);v.get!==void 0?v.configurable?(Object.defineProperty(g,f,{value:h}),n.push([g,f,p,v])):r.push([p,f,h]):(g[f]=h,n.push([g,f,p]))}function a(h,p,f,g,v,y,b){y+=1;var x;if(typeof h=="object"&&h!==null){for(x=0;xb.depthLimit){s(e,h,p,v);return}if(typeof b.edgesLimit<"u"&&f+1>b.edgesLimit){s(e,h,p,v);return}if(g.push(h),Array.isArray(h))for(x=0;xp?1:0}function c(h,p,f,g){typeof g>"u"&&(g=o());var v=u(h,"",0,[],void 0,0,g)||h,y;try{r.length===0?y=JSON.stringify(v,p,f):y=JSON.stringify(v,d(p),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var b=n.pop();b.length===4?Object.defineProperty(b[0],b[1],b[3]):b[0][b[1]]=b[2]}}return y}function u(h,p,f,g,v,y,b){y+=1;var x;if(typeof h=="object"&&h!==null){for(x=0;xb.depthLimit){s(e,h,p,v);return}if(typeof b.edgesLimit<"u"&&f+1>b.edgesLimit){s(e,h,p,v);return}if(g.push(h),Array.isArray(h))for(x=0;x0)for(var g=0;g{const t=Object.create(null);function n(...r){const o=r.map(i=>Qk(i)).join("|");return t[o]===void 0&&(t[o]=e(...r)),t[o]}return n},qd=16,oi="px",va="em",Er="rem";function Kd(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${oi}|${va}|${Er}`);return e.match(new RegExp(`${t.source}(${n.source})`))?.[1]}function Yd(e=""){if(typeof e=="number")return`${e}px`;const t=Kd(e);if(!t||t===oi)return e;if(t===va||t===Er)return`${parseFloat(e)*qd}${oi}`}function Xd(e=""){const t=Kd(e);if(!t||t===Er)return e;if(t===va)return`${parseFloat(e)}${Er}`;if(t===oi)return`${parseFloat(e)/qd}${Er}`}const Jk=e=>e.charAt(0).toUpperCase()+e.slice(1);function Zk(e){const t=eC(e),n=Object.fromEntries(t);function r(h){return n[h]}function o(h){return Mn(r(h))}function i(){const h=Object.keys(n),p=tC(h),f=h.flatMap(g=>{const v=r(g),y=[`${g}Down`,Mn({max:ii(v.min)})],b=[g,Mn({min:v.min})],x=[`${g}Only`,o(g)];return[b,x,y]}).filter(([,g])=>g!=="").concat(p.map(([g,v])=>{const y=r(g),b=r(v);return[`${g}To${Jk(v)}`,Mn({min:y.min,max:ii(b.min)})]}));return Object.fromEntries(f)}function s(){const h=i();return Object.fromEntries(Object.entries(h))}const a=s(),l=h=>a[h];function c(){return["base",...Object.keys(n)]}function u(h){return Mn({min:r(h).min})}function d(h){return Mn({max:ii(r(h).min)})}return{values:Object.values(n),only:o,keys:c,conditions:a,getCondition:l,up:u,down:d}}function ii(e){const t=parseFloat(Yd(e)??"")-.04;return Xd(`${t}px`)}function eC(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10){let s=null;return o<=i.length-1&&(s=i[o+1]?.[1]),s!=null&&(s=ii(s)),[n,{name:n,min:Xd(r),max:s}]})}function tC(e){const t=[];return e.forEach((n,r)=>{let o=r;o++;let i=e[o];for(;i;)t.push([n,i]),o++,i=e[o]}),t}function Mn({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const nC=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),rC=e=>{const{breakpoints:t,conditions:n={}}=e,r=nC(n,(u,d)=>[`_${u}`,d]),o=Object.assign({},r,t.conditions);function i(){return Object.keys(o)}function s(u){return i().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function a(u){return u.filter(d=>d!=="base").sort((d,h)=>{const p=s(d),f=s(h);return p&&!f?1:!p&&f?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(o,u)||u}return{keys:i,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},Qd=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| + `,n.body.appendChild(r)};function nk(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,o=r.substring(0,t),i=r.substring(n);return{start:t,end:n,value:r,beforeTxt:o,afterTxt:i}}catch{}}function rk(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:o="",start:i}=t;let s=n.length;if(n.endsWith(o))s=n.length-o.length;else if(n.startsWith(r))s=r.length;else if(i!=null){const a=r[i-1],l=n.indexOf(a,i-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var ok=(e,t={})=>new Intl.NumberFormat(e,t),ik=(e,t={})=>new md(e,t),sa=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},on=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},sk=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:ak,guards:lk,createMachine:ck}=fc(),{not:wd,and:Ed}=lk;ck({props({props:e}){const t=sk(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){const o=n(),i=sa(r,{computed:o,prop:e});e("onValueChange")?.({value:r,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>sa(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>on(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>n0(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>t0(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!r0(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:hc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>ok(e,t)),parser:hc(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>ik(e,t))},watch({track:e,action:t,context:n,computed:r,prop:o}){e([()=>n.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:Ed("clampValueOnBlur",wd("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:wd("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:ak([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Ed("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=ti(t);return gs(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return J1(t,n)},preventTextSelection({scope:e}){return Z1(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),o=Q1(t,r);return ko(o,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=ti(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function o(i){i.preventDefault();const s=Math.sign(i.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return ie(r,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!oc())return ev(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const o=e.getDoc();function i(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=ek(e,{point:l,isRtl:c,event:a});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return ho(ie(o,"mousemove",i,!1),ie(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=ti(e);e.isActiveElement(n)||G(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let o=a0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Ve(o,n("min"),n("max"))),e.set("value",on(o,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let o=l0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Ve(o,n("min"),n("max"))),e.set("value",on(o,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Ve(n("valueAsNumber"),t("min"),t("max"));e.set("value",on(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let o=sa(t.value,{computed:r,prop:n});n("allowOverflow")||(o=Ve(o,n("min"),n("max"))),e.set("value",on(o,{computed:r,prop:n}))},setValue({context:e,event:t}){const n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=on(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=on(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const o=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),i=ti(r),s=nk(i);G(()=>{xo(i,o),rk(i,s)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=Sd(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),M()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Od=j("pinInput").parts("root","label","input","control");Od.build(),M()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var Pd=j("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Pd.build(),M()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const sn=e=>{const{children:t,disabled:n}=e,[r,o]=P.useState(e.container?.current),i=P.useSyncExternalStore(dk,()=>!1,()=>!0),{getRootNode:s}=Xl();if(P.useEffect(()=>{o(()=>e.container?.current)},[e.container]),i||n)return g.jsx(g.Fragment,{children:t});const a=r??uk(s);return g.jsx(g.Fragment,{children:P.Children.map(t,l=>It.createPortal(l,a))})},uk=e=>{const t=e?.(),n=t.getRootNode();return Dn(n)?n:Fe(t).body},dk=()=>()=>{};var aa=j("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");aa.build(),M()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Id=j("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Id.build(),M()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var la=j("radio-group").parts("root","label","item","itemText","itemControl","indicator");la.build(),M()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),M()(["value","disabled","invalid"]);var Rd=j("rating-group").parts("root","label","item","control");Rd.build(),M()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),M()(["index"]);var Td=j("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Td.build(),M()(["dir","getRootNode","ids","id"]);const Nd=la.rename("segment-group");Nd.build();var Ad=j("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Ad.build();var _d=e=>new Uo(e);_d.empty=()=>new Uo({items:[]});var hk=e=>e.ids?.content??`select:${e.id}:content`,fk=e=>e.ids?.trigger??`select:${e.id}:trigger`,gk=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,pk=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,mk=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,vk=e=>e.ids?.positioner??`select:${e.id}:positioner`,ca=e=>e.getById(mk(e)),Fr=e=>e.getById(hk(e)),ni=e=>e.getById(fk(e)),bk=e=>e.getById(gk(e)),Vd=e=>e.getById(vk(e)),ua=(e,t)=>t==null?null:e.getById(pk(e,t)),{and:Lr,not:an,or:yk}=_t();yk("isTriggerArrowDownEvent","isTriggerEnterEvent"),Lr(an("multiple"),"hasSelectedItems"),an("multiple"),Lr(an("multiple"),"hasSelectedItems"),an("multiple"),an("multiple"),an("multiple"),an("multiple"),Lr("closeOnSelect","isOpenControlled"),Lr("hasHighlightedItem","loop","isLastItemHighlighted"),Lr("hasHighlightedItem","loop","isFirstItemHighlighted");function Fd(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}M()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),M()(["item","persistFocus"]),M()(["id"]),M()(["htmlFor"]);var Ld=j("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Ld.build(),M()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),M()(["index","name"]);var Dd=j("switch").parts("root","label","control","thumb");Dd.build(),M()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var xk=j("toast").parts("group","root","title","description","actionTrigger","closeTrigger");xk.build();var kk=(e,t)=>({...t,...go(e)});function Ck(e){const t=kk(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],o=new Set,i=[];const s=S=>(n.push(S),()=>{const N=n.indexOf(S);n.splice(N,1)}),a=S=>(n.forEach(N=>N(S)),S),l=S=>{if(r.length>=t.max){i.push(S);return}a(S),r.unshift(S)},c=()=>{for(;i.length>0&&r.length{const N=S.id??`toast:${Ym()}`,z=r.find(D=>D.id===N);return o.has(N)&&o.delete(N),z?r=r.map(D=>D.id===N?a({...D,...S,id:N}):D):l({id:N,duration:t.duration,removeDelay:t.removeDelay,type:"info",...S,stacked:!t.overlap,gap:t.gap}),N},d=S=>(o.add(S),S?(n.forEach(N=>N({id:S,dismiss:!0})),r=r.filter(N=>N.id!==S),c()):(r.forEach(N=>{n.forEach(z=>z({id:N.id,dismiss:!0}))}),r=[],i=[]),S);return{attrs:t,subscribe:s,create:u,update:(S,N)=>u({id:S,...N}),remove:d,dismiss:S=>{S!=null?r=r.map(N=>N.id===S?a({...N,message:"DISMISS"}):N):r=r.map(N=>a({...N,message:"DISMISS"}))},error:S=>u({...S,type:"error"}),success:S=>u({...S,type:"success"}),info:S=>u({...S,type:"info"}),warning:S=>u({...S,type:"warning"}),loading:S=>u({...S,type:"loading"}),getVisibleToasts:()=>r.filter(S=>!o.has(S.id)),getCount:()=>r.length,promise:(S,N,z={})=>{if(!N||!N.loading){xr("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const D=u({...z,...N.loading,promise:S,type:"loading"});let q=!0,K;const ce=uo(S).then(async W=>{if(K=["resolve",W],Sk(W)&&!W.ok){q=!1;const ne=uo(N.error,`HTTP Error! status: ${W.status}`);u({...z,...ne,id:D,type:"error"})}else if(N.success!==void 0){q=!1;const ne=uo(N.success,W);u({...z,...ne,id:D,type:"success"})}}).catch(async W=>{if(K=["reject",W],N.error!==void 0){q=!1;const ne=uo(N.error,W);u({...z,...ne,id:D,type:"error"})}}).finally(()=>{q&&d(D),N.finally?.()});return{id:D,unwrap:()=>new Promise((W,ne)=>ce.then(()=>K[0]==="reject"?ne(K[1]):W(K[1])).catch(ne))}},pause:S=>{S!=null?r=r.map(N=>N.id===S?a({...N,message:"PAUSE"}):N):r=r.map(N=>a({...N,message:"PAUSE"}))},resume:S=>{S!=null?r=r.map(N=>N.id===S?a({...N,message:"RESUME"}):N):r=r.map(N=>a({...N,message:"RESUME"}))},isVisible:S=>!o.has(S)&&!!r.find(N=>N.id===S),isDismissed:S=>o.has(S),expand:()=>{r=r.map(S=>a({...S,stacked:!0}))},collapse:()=>{r=r.map(S=>a({...S,stacked:!1}))}}}var Sk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const wk=e=>Ck(e);var zd=j("tooltip").parts("trigger","arrow","arrowTip","positioner","content");zd.build();var Ek=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,Ok=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,da=e=>e.getById(Ek(e)),Md=e=>e.getById(Ok(e)),ln=c0({id:null}),{and:Pk,not:jd}=_t();Pk("noVisibleTooltip",jd("hasPointerMoveOpened")),jd("hasPointerMoveOpened"),M()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function $d(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const Ik=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const o=t(`colors.${n}`),i=t.raw(`opacity.${r}`)?.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:n};const s=i?Number(i)*100+"%":`${r}%`,a=o??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},Z=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:r.value,[e]:`var(${o}, ${r.color})`}};function ha(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>ha(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=ha(e[n]);return t}function fa(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!_e(e[n])&&_e(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&_e(t[n]))fa(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;re!=null;function gt(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(_e(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=o?.(c,u)??c,h=[...a,d];if(r?.(s,h))return t(s,a);const m=i(u,h);ga(m)&&(l[d]=m)}return l}return t(s,a)}return i(e)}function Bd(e,t){return Array.isArray(e)?e.map(n=>ga(n)?t(n):n):_e(e)?gt(e,n=>t(n)):ga(e)?t(e):e}const ri=["value","type","description"],Rk=e=>e&&typeof e=="object"&&!Array.isArray(e),Wd=(...e)=>{const t=Xn({},...e.map(ha));return t.theme?.tokens&>(t.theme.tokens,n=>{const i=Object.keys(n).filter(a=>!ri.includes(a)).length>0,s=ri.some(a=>n[a]!=null);return i&&s&&(n.DEFAULT||(n.DEFAULT={}),ri.forEach(a=>{var l;n[a]!=null&&((l=n.DEFAULT)[a]||(l[a]=n[a]),delete n[a])})),n},{stop(n){return Rk(n)&&Object.keys(n).some(r=>ri.includes(r)||r!==r.toLowerCase()&&r!==r.toUpperCase())}}),t},Tk=e=>e,fe=e=>e,$=e=>e,Nk=e=>e,Ak=e=>e,Qn=e=>e,_k=e=>e,Vk=e=>e,Fk=e=>e;function Hd(){const e=t=>t;return new Proxy(e,{get(){return e}})}const de=Hd(),pa=Hd(),ma=e=>e,Lk=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function Dk(e){return`${e}`.replace(Lk,t=>`\\${t}`)}const zk=/[A-Z]/g;function Mk(e){return e.replace(zk,t=>`-${t.toLowerCase()}`)}function Ud(e,t={}){const{fallback:n="",prefix:r=""}=t,o=Mk(["-",r,Dk(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${n?`, ${n}`:""})`}}const jk=e=>/^var\(--.+\)$/.test(e),ye=(e,t)=>t!=null?`${e}(${t})`:t,cn=e=>{if(jk(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},Gd=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),$k=Z("borderColor"),kt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Bk=Tk({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Jn=Ud("bg-currentcolor"),qd=e=>e===Jn.ref||e==="currentBg",ee=e=>({...e("colors"),currentBg:Jn}),Wk=ma({conditions:Bk,utilities:{background:{values:ee,shorthand:["bg"],transform(e,t){if(qd(t.raw))return{background:Jn.ref};const n=Z("background")(e,t);return{...n,[Jn.var]:n?.background}}},backgroundColor:{values:ee,shorthand:["bgColor"],transform(e,t){if(qd(t.raw))return{backgroundColor:Jn.ref};const n=Z("backgroundColor")(e,t);return{...n,[Jn.var]:n?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:ee,transform:Z("--gradient-from")},gradientTo:{values:ee,transform:Z("--gradient-to")},gradientVia:{values:ee,transform(e,t){return{...Z("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:ee,transform:Z("borderColor")},borderTopColor:{values:ee,transform:Z("borderTopColor")},borderBlockStartColor:{values:ee,transform:Z("borderBlockStartColor")},borderBottomColor:{values:ee,transform:Z("borderBottomColor")},borderBlockEndColor:{values:ee,transform:Z("borderBlockEndColor")},borderLeftColor:{values:ee,transform:Z("borderLeftColor")},borderInlineStartColor:{values:ee,shorthand:["borderStartColor"],transform:Z("borderInlineStartColor")},borderRightColor:{values:ee,transform:Z("borderRightColor")},borderInlineEndColor:{values:ee,shorthand:["borderEndColor"],transform:Z("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:ee,transform:Z("color")},fill:{values:ee,transform:Z("fill")},stroke:{values:ee,transform:Z("stroke")},accentColor:{values:ee,transform:Z("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:ee,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":$k(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ee,transform:Z("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":ye("blur",e)})},brightness:{transform:e=>({"--brightness":ye("brightness",e)})},contrast:{transform:e=>({"--contrast":ye("contrast",e)})},grayscale:{transform:e=>({"--grayscale":ye("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":ye("hue-rotate",cn(e))})},invert:{transform:e=>({"--invert":ye("invert",e)})},saturate:{transform:e=>({"--saturate":ye("saturate",e)})},sepia:{transform:e=>({"--sepia":ye("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":ye("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":ye("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":ye("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":ye("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":ye("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":ye("hue-rotate",cn(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":ye("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":ye("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":ye("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":ye("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:ee,transform:Z("outlineColor")},focusRing:Gd("&:is(:focus, [data-focus])"),focusVisibleRing:Gd("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ee,transform:Z("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:ee,transform:Z("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:ee,transform:Z("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ee,transform:Z("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:ee,transform:Z("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":cn(e)})},skewY:{transform:e=>({"--skew-y":cn(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:cn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":cn(e)}}},rotateY:{transform(e){return{"--rotate-y":cn(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return kt("all");case"position":return kt("left, right, top, bottom, inset-inline, inset-block");case"colors":return kt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return kt("opacity");case"shadow":return kt("box-shadow");case"transform":return kt("transform");case"size":return kt("width, height");case"backgrounds":return kt("background, background-color, background-image, background-position");case"common":return kt("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return Hk[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ee,transform:Z("caretColor")},cursor:{values:"cursor"}}}),Hk={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var Uk="",Gk=Uk.split(","),qk="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",Kk=qk.split(",").concat(Gk),Yk=new Map(Kk.map(e=>[e,!0]));function Xk(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Qk=/&|@/,Jk=Xk(e=>Yk.has(e)||e.startsWith("--")||Qk.test(e));function Kd(e,t){const n={};return gt(e,(r,o)=>{r&&(n[o.join(".")]=r.value)},{stop:t}),n}var va,Yd;function Zk(){if(Yd)return va;Yd=1,va=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",n=[],r=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,m,f,p){typeof p>"u"&&(p=o()),a(h,"",0,[],void 0,0,p);var v;try{r.length===0?v=JSON.stringify(h,m,f):v=JSON.stringify(h,d(m),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var y=n.pop();y.length===4?Object.defineProperty(y[0],y[1],y[3]):y[0][y[1]]=y[2]}}return v}function s(h,m,f,p){var v=Object.getOwnPropertyDescriptor(p,f);v.get!==void 0?v.configurable?(Object.defineProperty(p,f,{value:h}),n.push([p,f,m,v])):r.push([m,f,h]):(p[f]=h,n.push([p,f,m]))}function a(h,m,f,p,v,y,b){y+=1;var x;if(typeof h=="object"&&h!==null){for(x=0;xb.depthLimit){s(e,h,m,v);return}if(typeof b.edgesLimit<"u"&&f+1>b.edgesLimit){s(e,h,m,v);return}if(p.push(h),Array.isArray(h))for(x=0;xm?1:0}function c(h,m,f,p){typeof p>"u"&&(p=o());var v=u(h,"",0,[],void 0,0,p)||h,y;try{r.length===0?y=JSON.stringify(v,m,f):y=JSON.stringify(v,d(m),f)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var b=n.pop();b.length===4?Object.defineProperty(b[0],b[1],b[3]):b[0][b[1]]=b[2]}}return y}function u(h,m,f,p,v,y,b){y+=1;var x;if(typeof h=="object"&&h!==null){for(x=0;xb.depthLimit){s(e,h,m,v);return}if(typeof b.edgesLimit<"u"&&f+1>b.edgesLimit){s(e,h,m,v);return}if(p.push(h),Array.isArray(h))for(x=0;x0)for(var p=0;p{const t=Object.create(null);function n(...r){const o=r.map(i=>tC(i)).join("|");return t[o]===void 0&&(t[o]=e(...r)),t[o]}return n},Xd=16,oi="px",ba="em",Dr="rem";function Qd(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${oi}|${ba}|${Dr}`);return e.match(new RegExp(`${t.source}(${n.source})`))?.[1]}function Jd(e=""){if(typeof e=="number")return`${e}px`;const t=Qd(e);if(!t||t===oi)return e;if(t===ba||t===Dr)return`${parseFloat(e)*Xd}${oi}`}function Zd(e=""){const t=Qd(e);if(!t||t===Dr)return e;if(t===ba)return`${parseFloat(e)}${Dr}`;if(t===oi)return`${parseFloat(e)/Xd}${Dr}`}const nC=e=>e.charAt(0).toUpperCase()+e.slice(1);function rC(e){const t=oC(e),n=Object.fromEntries(t);function r(h){return n[h]}function o(h){return Zn(r(h))}function i(){const h=Object.keys(n),m=iC(h),f=h.flatMap(p=>{const v=r(p),y=[`${p}Down`,Zn({max:ii(v.min)})],b=[p,Zn({min:v.min})],x=[`${p}Only`,o(p)];return[b,x,y]}).filter(([,p])=>p!=="").concat(m.map(([p,v])=>{const y=r(p),b=r(v);return[`${p}To${nC(v)}`,Zn({min:y.min,max:ii(b.min)})]}));return Object.fromEntries(f)}function s(){const h=i();return Object.fromEntries(Object.entries(h))}const a=s(),l=h=>a[h];function c(){return["base",...Object.keys(n)]}function u(h){return Zn({min:r(h).min})}function d(h){return Zn({max:ii(r(h).min)})}return{values:Object.values(n),only:o,keys:c,conditions:a,getCondition:l,up:u,down:d}}function ii(e){const t=parseFloat(Jd(e)??"")-.04;return Zd(`${t}px`)}function oC(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10){let s=null;return o<=i.length-1&&(s=i[o+1]?.[1]),s!=null&&(s=ii(s)),[n,{name:n,min:Zd(r),max:s}]})}function iC(e){const t=[];return e.forEach((n,r)=>{let o=r;o++;let i=e[o];for(;i;)t.push([n,i]),o++,i=e[o]}),t}function Zn({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const sC=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),aC=e=>{const{breakpoints:t,conditions:n={}}=e,r=sC(n,(u,d)=>[`_${u}`,d]),o=Object.assign({},r,t.conditions);function i(){return Object.keys(o)}function s(u){return i().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function a(u){return u.filter(d=>d!=="base").sort((d,h)=>{const m=s(d),f=s(h);return m&&!f?1:!m&&f?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(o,u)||u}return{keys:i,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},eh=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.| -)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),oC=Qd("width"),iC=Qd("height"),Jd=e=>({isMin:oh(e.minMax,e.maxMin,e.min),isMax:oh(e.maxMin,e.minMax,e.max)}),{isMin:ba,isMax:Zd}=Jd(oC),{isMin:ya,isMax:eh}=Jd(iC),th=/print/i,nh=/^print$/i,sC=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,aC=/(\d)/,Or=Number.MAX_VALUE,lC={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function rh(e){const t=sC.exec(e)||(ba(e)||ya(e)?aC.exec(e):null);if(!t)return Or;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(lC[r]||1)}function oh(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function cC(e,t){const n=th.test(e),r=nh.test(e),o=th.test(t),i=nh.test(t);return n&&o?!r&&i?1:r&&!i?-1:e.localeCompare(t):n?1:o?-1:null}const uC=nt((e,t)=>{const n=cC(e,t);if(n!==null)return n;const r=ba(e)||ya(e),o=Zd(e)||eh(e),i=ba(t)||ya(t),s=Zd(t)||eh(t);if(r&&s)return-1;if(o&&i)return 1;const a=rh(e),l=rh(t);return a===Or&&l===Or?e.localeCompare(t):a===Or?1:l===Or?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function ih(e){return e.sort(([t],[n])=>uC(t,n))}function sh(e){const t=[],n=[],r={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?n.push([s,a]):Ae(a)?r[s]=sh(a):r[s]=a;const o=ih(t),i=ih(n);return{...r,...Object.fromEntries(o),...Object.fromEntries(i)}}const ah=/\s*!(important)?/i,dC=e=>lt(e)?ah.test(e):!1,hC=e=>lt(e)?e.replace(ah,"").trim():e;function lh(e){const{transform:t,conditions:n,normalize:r}=e,o=pC(e);return nt(function(...s){const a=o(...s),l=r(a),c=Object.create(null);return gt(l,(u,d)=>{const h=dC(u);if(u==null)return;const[p,...f]=n.sort(d).map(n.resolve);h&&(u=hC(u));let g=t(p,u)??Object.create(null);g=gt(g,v=>lt(v)&&h?`${v} !important`:v,{getKey:v=>n.expandAtRule(v)}),fC(c,f.flat(),g)}),sh(c)})}function fC(e,t,n){let r=e;for(const o of t)o&&(r[o]||(r[o]=Object.create(null)),r=r[o]);Ln(r,n)}function gC(...e){return e.filter(t=>Ae(t)&&Object.keys(nr(t)).length>0)}function pC(e){function t(n){const r=gC(...n);return r.length===1?r:r.map(o=>e.normalize(o))}return nt(function(...r){return Ln({},...t(r))})}const ch=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function mC(e){const{css:t,conditions:n,normalize:r,layers:o}=e;function i(a={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:d}=ch(a),h=lh({conditions:n,normalize:r,transform(b,x){return c[b]?.[x]}}),p=(b={})=>{const x=r({...u,...nr(b)});let C={...l};Ln(C,h(x));const k=s(d,x);return o.wrap("recipes",t(C,k))},f=Object.keys(c),g=b=>{const x=zd(b,["recipe"]),[C,k]=yn(x,f);return f.includes("colorPalette")||(C.colorPalette=b.colorPalette||u.colorPalette),f.includes("orientation")&&(k.orientation=b.orientation),[C,k]},v=Object.fromEntries(Object.entries(c).map(([b,x])=>[b,Object.keys(x)]));return Object.assign(b=>t(p(b)),{className:a.className,__cva__:!0,variantMap:v,variantKeys:f,raw:p,config:a,splitVariantProps:g,merge(b){return i(vC(e)(this,b))}})}function s(a,l){let c={};return a.forEach(u=>{Object.entries(u).every(([h,p])=>h==="css"?!0:(Array.isArray(p)?p:[p]).some(g=>l[h]===g))&&(c=t(c,u.css))}),c}return i}function vC(e){const{css:t}=e;return function(r,o){const i=ch(o.config),s=Al(r.variantKeys,Object.keys(o.variants)),a=t(r.base,i.base),l=Object.fromEntries(s.map(h=>[h,t(r.config.variants[h],i.variants[h])])),c=Ln(r.config.defaultVariants,i.defaultVariants),u=[...r.compoundVariants,...i.compoundVariants];return{className:Ue(r.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const bC={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},uh={reset:0,base:1,tokens:2,recipes:3};function yC(e){const t=e.layers??bC,r=Object.values(t).sort((o,i)=>uh[o]-uh[i]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function xC(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:o}=t;return function(i){return gt(i,n,{stop:s=>Array.isArray(s),getKey:r?o:void 0})}}function kC(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Ae(t)?t:{};let o="";n&&r==="parent"?o=`${n} `:n&&r==="element"&&(o=`&${n}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},s={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const a=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function CC(e){const{conditions:t,isValidProperty:n}=e;return function(o){return gt(o,i=>i,{getKey:(i,s)=>Ae(s)&&!t.has(i)&&!n(i)?SC(i).map(a=>"&"+a).join(", "):i})}}function SC(e){const t=[];let n=0,r="",o=!1;for(let i=0;i{const t=o=>({base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?EC(e.compoundVariants,o):[]}),r=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))r.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][s]=a[l]??{}});return Object.fromEntries(r)},EC=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function OC(e){const{cva:t}=e;return function(r={}){const o=Object.entries(wC(r)).map(([d,h])=>[d,t(h)]);function i(d){const h=o.map(([p,f])=>[p,f(d)]);return Object.fromEntries(h)}const s=r.variants??{},a=Object.keys(s);function l(d){const h=zd(d,["recipe"]),[p,f]=yn(h,a);return a.includes("colorPalette")||(p.colorPalette=d.colorPalette||r.defaultVariants?.colorPalette),a.includes("orientation")&&(f.orientation=d.orientation),[p,f]}const c=Object.fromEntries(Object.entries(s).map(([d,h])=>[d,Object.keys(h)]));let u={};return r.className&&(u=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const PC=()=>e=>Array.from(new Set(e)),IC=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,RC=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},dh=e=>(e+"").replace(IC,RC),hh=(e,t)=>{let n="",r=0,o="char",i="",s="";const a=[];for(;r{let t=0;const n=["("];for(;t{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const gh=/({([^}]*)})/g,NC=/[{}]/g,AC=/\w+\.\w+/,ph=e=>{if(!lt(e))return[];const t=e.match(gh);return t?t.map(n=>n.replace(NC,"")).map(n=>n.trim()):[]},_C=e=>gh.test(e);function mh(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((n,r)=>{const o=t[r];if(o.extensions.conditions)return n;const i=mh(o);return n.replace(`{${r}}`,i)},e.value),delete e.extensions.references,e.value}function vh(e){return Ae(e)&&e.reference?e.reference:String(e)}const si=(e,...t)=>t.map(vh).join(` ${e} `).replace(/calc/g,""),bh=(...e)=>`calc(${si("+",...e)})`,yh=(...e)=>`calc(${si("-",...e)})`,xa=(...e)=>`calc(${si("*",...e)})`,xh=(...e)=>`calc(${si("/",...e)})`,kh=e=>{const t=vh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:xa(t,-1)},jn=Object.assign(e=>({add:(...t)=>jn(bh(e,...t)),subtract:(...t)=>jn(yh(e,...t)),multiply:(...t)=>jn(xa(e,...t)),divide:(...t)=>jn(xh(e,...t)),negate:()=>jn(kh(e)),toString:()=>e.toString()}),{add:bh,subtract:yh,multiply:xa,divide:xh,negate:kh}),VC={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:o,registerToken:i}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=r(l,t);if(lt(a.value)&&a.value==="0rem")return;const u=structuredClone(a);Object.assign(u.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),u.value=jn.negate(c.ref);const d=u.path[u.path.length-1];d!=null&&(u.path[u.path.length-1]=`-${d}`),u.path&&(u.name=o(u.path)),i(u)})}},FC=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),LC=[VC,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,o=t.filter(({extensions:a})=>a.category==="colors"),i=new Map,s=new Map;o.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{i.set(r(c),c)}),l.roots.forEach(c=>{const u=r(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const h=l.keys[0]?.filter(Boolean);if(!h.length)return;const p=c.concat(h);i.set(r(p),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=r(l),u=r(l.slice(1));n({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>FC.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:Yd(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],DC=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:r(s.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,o=ph(e.value);return o.length&&o.forEach(i=>{const s=r(i.split("."),n);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const a=[...e.path];a.shift(),n=a}if(n.length===0)return{};const r=n.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),o=n[0],i=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:r,keys:s}}}}],Ch=e=>Ae(e)&&Object.prototype.hasOwnProperty.call(e,"value");function zC(e){return e?{breakpoints:Md(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function MC(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:o={}}=e,i=L=>L.join("."),s=(L,F)=>Bd(L.join("-"),{prefix:F}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,h=new Map,p=new Map,f=new Map,g=new Map,v=[];function y(L,F){a.push(L),l.set(L.name,L),F&&g.forEach(Y=>{Y.enforce===F&&W(Y,L)})}const b=zC(o),x=nr({...n,breakpoints:b.breakpoints,sizes:{...n.sizes,...b.sizes}});function C(){gt(x,(L,F)=>{const Y=F.includes("DEFAULT");F=Sh(F);const oe=F[0],pe=i(F),Ee=lt(L)?{value:L}:L,Ct={value:Ee.value,originalValue:Ee.value,name:pe,path:F,extensions:{condition:"base",originalPath:F,category:oe,prop:i(F.slice(1))}};Y&&(Ct.extensions.default=!0),y(Ct)},{stop:Ch}),gt(r,(L,F)=>{const Y=F.includes("DEFAULT");F=wh(Sh(F));const oe=F[0],pe=i(F),Ee=lt(L.value)?{value:{base:L.value}}:L,Ct={value:Ee.value.base||"",originalValue:Ee.value.base||"",name:pe,path:F,extensions:{originalPath:F,category:oe,conditions:Ee.value,condition:"base",prop:i(F.slice(1))}};Y&&(Ct.extensions.default=!0),y(Ct)},{stop:Ch})}function k(L){return l.get(L)}function E(L){const{condition:F}=L.extensions;F&&(c.has(F)||c.set(F,new Set),c.get(F).add(L))}function I(L){const{category:F,prop:Y}=L.extensions;F&&(f.has(F)||f.set(F,new Map),f.get(F).set(Y,L))}function R(L){const{condition:F,negative:Y,virtual:oe,cssVar:pe}=L.extensions;Y||oe||!F||!pe||(u.has(F)||u.set(F,new Map),u.get(F).set(pe.var,L.value))}function _(L){const{category:F,prop:Y,cssVar:oe,negative:pe}=L.extensions;if(!F)return;p.has(F)||p.set(F,new Map);const Ee=pe?L.extensions.conditions?L.originalValue:L.value:oe.ref;p.get(F).set(Y,Ee),h.set([F,Y].join("."),Ee)}function A(L){const{colorPalette:F,virtual:Y,default:oe}=L.extensions;!F||Y||F.roots.forEach(pe=>{const Ee=i(pe);d.has(Ee)||d.set(Ee,new Map);const Ct=$C([...L.path],[...pe]),Di=i(Ct),rl=k(Di);if(!rl||!rl.extensions.cssVar)return;const{var:RR}=rl.extensions.cssVar;if(d.get(Ee).set(RR,L.extensions.cssVar.ref),oe&&pe.length===1){const TR=i(["colors","colorPalette"]),rp=k(TR);if(!rp)return;const NR=i(L.path),op=k(NR);if(!op)return;const ip=F.keys[0]?.filter(Boolean);if(!ip.length)return;const ol=i(pe.concat(ip));d.has(ol)||d.set(ol,new Map),d.get(ol).set(rp.extensions.cssVar.var,op.extensions.cssVar.ref)}})}let T={};function S(){a.forEach(L=>{E(L),I(L),R(L),_(L),A(L)}),T=fh(p)}const N=(L,F)=>{if(!L||typeof L!="string")return{invalid:!0,value:L};const[Y,oe]=L.split("/");if(!Y||!oe)return{invalid:!0,value:Y};const pe=F(Y),Ee=k(`opacity.${oe}`)?.value;if(!Ee&&isNaN(Number(oe)))return{invalid:!0,value:Y};const Ct=Ee?Number(Ee)*100+"%":`${oe}%`,Di=pe??Y;return{invalid:!1,color:Di,value:`color-mix(in srgb, ${Di} ${Ct}, transparent)`}},z=nt((L,F)=>h.get(L)??F),D=nt(L=>T[L]||null),q=nt(L=>hh(L,F=>{if(!F)return;if(F.includes("/")){const oe=N(F,pe=>z(pe));if(oe.invalid)throw new Error("Invalid color mix at "+F+": "+oe.value);return oe.value}const Y=z(F);return Y||(AC.test(F)?dh(F):F)})),K={prefix:t,allTokens:a,tokenMap:l,registerToken:y,getByName:k,formatTokenName:i,formatCssVar:s,flatMap:h,cssVarMap:u,categoryMap:f,colorPaletteMap:d,getVar:z,getCategoryValues:D,expandReferenceInValue:q};function ce(...L){L.forEach(F=>{g.set(F.name,F)})}function B(...L){v.push(...L)}function W(L,F){if(F.extensions.references||rs(L.match)&&!L.match(F))return;const oe=(pe=>L.transform(pe,K))(F);switch(!0){case L.type==="extensions":Object.assign(F.extensions,oe);break;case L.type==="value":F.value=oe;break;default:F[L.type]=oe;break}}function te(L){v.forEach(F=>{F.enforce===L&&F.transform(K)})}function Ie(L){g.forEach(F=>{F.enforce===L&&a.forEach(Y=>{W(F,Y)})})}function He(){a.forEach(L=>{const F=jC(L);!F||F.length===0||F.forEach(Y=>{y(Y)})})}function Mt(L){return ph(L).map(Y=>k(Y)).filter(Boolean)}function Kn(){a.forEach(L=>{if(!_C(L.value))return;const F=Mt(L.value);L.extensions.references=F.reduce((Y,oe)=>(Y[oe.name]=oe,Y),{})})}function nl(){a.forEach(L=>{mh(L)})}function IR(){te("pre"),Ie("pre"),He(),Kn(),nl(),te("post"),Ie("post"),S()}return C(),ce(...DC),B(...LC),IR(),K}function Sh(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function wh(e){return e.filter(t=>t!=="base")}function jC(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return gt(t,(r,o)=>{const i=wh(o);if(!i.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=i.join(":"),n.push(s)}),n}function $C(e,t){const n=e.findIndex((r,o)=>t.every((i,s)=>e[o+s]===i));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}PC()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function GR(e){return e}function BC(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function WC(e){const t=BC(e.config),n=e.tokens,r=new Map,o=new Map;function i(R,_){t[R]=_,s(R,_)}const s=(R,_)=>{const A=g(_);A&&(o.set(R,A),d(R,_))},a=()=>{for(const[R,_]of Object.entries(t))_&&s(R,_)},l=()=>{for(const[R,_]of Object.entries(t)){const{shorthand:A}=_??{};if(!A)continue;(Array.isArray(A)?A:[A]).forEach(S=>r.set(S,R))}},c=()=>{const R=fh(n.colorPaletteMap);i("colorPalette",{values:Object.keys(R),transform:nt(_=>R[_])})},u=new Map,d=(R,_)=>{if(!_)return;const A=g(_,S=>`type:Tokens["${S}"]`);if(typeof A=="object"&&A.type){u.set(R,new Set([`type:${A.type}`]));return}if(A){const S=new Set(Object.keys(A));u.set(R,S)}const T=u.get(R)??new Set;_.property&&u.set(R,T.add(`CssProperties["${_.property}"]`))},h=()=>{for(const[R,_]of Object.entries(t))_&&d(R,_)},p=(R,_)=>{const A=u.get(R)??new Set;u.set(R,new Set([...A,..._]))},f=()=>{const R=new Map;for(const[_,A]of u.entries()){if(A.size===0){R.set(_,["string"]);continue}const T=Array.from(A).map(S=>S.startsWith("CssProperties")?S:S.startsWith("type:")?S.replace("type:",""):JSON.stringify(S));R.set(_,T)}return R},g=(R,_)=>{const{values:A}=R,T=S=>{const N=_?.(S);return N?{[N]:N}:void 0};return lt(A)?T?.(A)??n.getCategoryValues(A)??{}:Array.isArray(A)?A.reduce((S,N)=>(S[N]=N,S),{}):rs(A)?A(_?T:n.getCategoryValues):A},v=nt((R,_)=>({[R]:R.startsWith("--")?n.getVar(_,_):_})),y=Object.assign(n.getVar,{raw:R=>n.getByName(R)}),b=nt((R,_)=>{const A=k(R);lt(_)&&!_.includes("_EMO_")&&(_=n.expandReferenceInValue(_));const T=t[A];if(!T)return v(A,_);const S=o.get(A)?.[_];if(!T.transform)return v(R,S??_);const N=z=>wk(z,y);return T.transform(S??_,{raw:_,token:y,utils:{colorMix:N}})});function x(){l(),c(),a(),h()}x();const C=r.size>0,k=nt(R=>r.get(R)??R);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:C,transform:b,shorthands:r,resolveShorthand:k,register:i,getTypes:f,addPropertyType:p}}const Fe={};function Eh(...e){const t=jd(...e),{theme:n={},utilities:r={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=yC(t),c=MC({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=Zk(n.breakpoints??Fe),d=rC({conditions:t.conditions??Fe,breakpoints:u}),h=WC({config:r,tokens:c});function p(){const{textStyles:B,layerStyles:W,animationStyles:te}=n,Ie=nr({textStyle:B,layerStyle:W,animationStyle:te});for(const[He,Mt]of Object.entries(Ie)){const Kn=Ud(Mt??Fe,Oh);h.register(He,{values:Object.keys(Kn),transform(nl){return x(Kn[nl])}})}}p(),h.addPropertyType("animationName",Object.keys(n.keyframes??Fe));const f=new Set(["css",...h.keys(),...d.keys()]),g=nt(B=>f.has(B)||Kk(B)),v=B=>Array.isArray(B)?B.reduce((W,te,Ie)=>{const He=d.breakpoints[Ie];return te!=null&&(W[He]=te),W},{}):B,y=xC({utility:h,normalize:v}),b=CC({conditions:d,isValidProperty:g}),x=lh({transform:h.transform,conditions:d,normalize:y}),C=mC({css:x,conditions:d,normalize:y,layers:l}),k=OC({cva:C});function E(){const B={};for(const[W,te]of c.cssVarMap.entries()){const Ie=Object.fromEntries(te);if(Object.keys(Ie).length===0)continue;const He=W==="base"?i:d.resolve(W),Mt=He.startsWith("@"),Kn=x(b({[He]:Mt?{[i]:Ie}:Ie}));Ln(B,Kn)}return l.wrap("tokens",B)}function I(){const B=Object.fromEntries(Object.entries(n.keyframes??Fe).map(([te,Ie])=>[`@keyframes ${te}`,Ie])),W=Object.assign({},B,x(b(o)));return l.wrap("base",W)}function R(B){return yn(B,g)}function _(){const B=kC({preflight:a});return l.wrap("reset",B)}const A=HC(c),T=(B,W)=>A.get(B)?.value||W;T.var=(B,W)=>A.get(B)?.variable||W;function S(B,W){return n.recipes?.[B]??W}function N(B,W){return n.slotRecipes?.[B]??W}function z(B){return Object.hasOwnProperty.call(n.recipes??Fe,B)}function D(B){return Object.hasOwnProperty.call(n.slotRecipes??Fe,B)}function q(B){return z(B)||D(B)}const K=[_(),I(),E()],ce={layerStyles:ka(n.layerStyles??Fe),textStyles:ka(n.textStyles??Fe),animationStyles:ka(n.animationStyles??Fe),tokens:Ph(c,Object.keys(n.tokens??Fe),(B,W)=>!B.extensions.conditions&&!W.includes("colorPalette")),semanticTokens:Ph(c,Object.keys(n.semanticTokens??Fe),B=>!!B.extensions.conditions),keyframes:Ih(n.keyframes??Fe),breakpoints:Ih(n.breakpoints??Fe)};return{$$chakra:!0,_config:t,_global:K,breakpoints:u,tokens:c,conditions:d,utility:h,token:T,properties:f,layers:l,isValidProperty:g,splitCssProps:R,normalizeValue:v,getTokenCss:E,getGlobalCss:I,getPreflightCss:_,css:x,cva:C,sva:k,getRecipe:S,getSlotRecipe:N,hasRecipe:q,isRecipe:z,isSlotRecipe:D,query:ce}}function HC(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:o,conditions:i}=n.extensions,s=i||o?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const Oh=e=>Ae(e)&&"value"in e,ka=e=>({list(){return Object.keys(Ud(e,Oh))},search(t){return this.list().filter(n=>n.includes(t))}}),Ph=(e,t,n)=>({categoryKeys:t,list(r){return Array.from(e.categoryMap.get(r)?.entries()??[]).reduce((o,[i,s])=>(n(s,i)&&o.push(i),o),[])},search(r,o){return this.list(r).filter(i=>i.includes(o))}}),Ih=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),UC={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ca="var(--chakra-empty,/*!*/ /*!*/)",GC=Ik({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Ca,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Ca])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Ca])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),qC=Nk({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),KC=Tk({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Sa=fe({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),YC=fe({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Se=fe({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:XC,defaultVariants:QC}=Sa,JC=fe({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:XC,defaultVariants:QC}),Rh=fe({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),ZC=fe({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),eS=fe({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),tS=fe({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),he=fe({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),nS=fe({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:he.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),rS=fe({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),oS=fe({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),iS=fe({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),we=fe({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),sS=fe({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),aS=fe({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),lS=fe({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),cS=fe({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),uS=fe({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),dS={badge:Sa,button:YC,code:JC,container:ZC,heading:eS,input:he,inputAddon:nS,kbd:rS,link:oS,mark:iS,separator:sS,skeleton:aS,skipNavLink:lS,spinner:cS,textarea:uS,icon:tS,checkmark:Se,radiomark:we,colorSwatch:Rh},hS=ga.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),fS=ga.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),gS=ga.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),pS=cu.extendWith("itemBody"),mS=j("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),vS=j("alert").parts("title","description","root","indicator","content"),bS=j("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),yS=j("blockquote").parts("root","icon","content","caption"),xS=j("card").parts("root","header","body","footer","title","description"),kS=j("checkbox-card",["root","control","label","description","addon","indicator","content"]),CS=j("data-list").parts("root","item","itemLabel","itemValue"),SS=Ks.extendWith("header","body","footer","backdrop"),wS=Ks.extendWith("header","body","footer","backdrop"),ES=Xu.extendWith("textarea"),OS=j("empty-state",["root","content","indicator","title","description"]),PS=Qu.extendWith("requiredIndicator"),IS=Zu.extendWith("content"),RS=ed.extendWith("itemContent","dropzoneContent","fileText"),TS=j("list").parts("root","item","indicator"),NS=ad.extendWith("itemCommand"),AS=j("select").parts("root","field","indicator"),_S=wd.extendWith("header","body","footer"),Th=aa.extendWith("itemAddon","itemIndicator"),VS=Th.extendWith("itemContent","itemDescription"),FS=Od.extendWith("itemIndicator"),LS=Rd.extendWith("indicatorGroup"),DS=Ux.extendWith("indicatorGroup","empty"),zS=_d.extendWith("markerIndicator"),MS=j("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),jS=j("status").parts("root","indicator"),$S=j("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),BS=Vd.extendWith("indicator"),WS=j("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),HS=j("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),US=j("tabs").parts("root","trigger","list","content","contentGroup","indicator"),GS=j("tag").parts("root","label","closeTrigger","startElement","endElement"),qS=j("timeline").parts("root","item","content","separator","indicator","connector","title","description"),KS=lx.extendWith("channelText"),YS=j("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);bu.extendWith("valueText");const XS=y1,QS=$({className:"chakra-accordion",slots:pS.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),JS=$({className:"chakra-action-bar",slots:mS.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),ZS=$({slots:vS.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),ew=$({slots:hu.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),tw=$({className:"chakra-blockquote",slots:yS.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),nw=$({className:"chakra-breadcrumb",slots:bS.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),rw=$({className:"chakra-card",slots:xS.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),ow=$({slots:sx.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Se.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Se.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Se.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Se.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Se.variants?.size?.lg}},variant:{outline:{control:Se.variants?.variant?.outline},solid:{control:Se.variants?.variant?.solid},subtle:{control:Se.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),iw=$({slots:kS.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Se.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:Se.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Se.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Se.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:Se.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Se.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:Se.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Se.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),sw=$({slots:YS.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),aw=$({slots:kc.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),lw=$({className:"colorPicker",slots:KS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...Rh.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...he.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:he.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:he.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:he.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:he.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:he.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:he.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:he.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:he.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:he.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),cw=$({className:"chakra-combobox",slots:DS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),uw=$({slots:CS.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),dw=$({slots:SS.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),hw=$({slots:wS.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),Nh=Dn({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),fw=$({slots:ES.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Nh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Nh,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),gw=$({slots:OS.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),pw=$({className:"chakra-field",slots:PS.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),mw=$({className:"fieldset",slots:IS.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),vw=$({className:"chakra-file-upload",slots:RS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),bw=$({className:"chakra-hover-card",slots:td.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),yw=$({className:"chakra-list",slots:TS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),xw=$({className:"chakra-listbox",slots:XS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),kw=$({className:"chakra-menu",slots:NS.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),ai=$({className:"chakra-select",slots:LS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),Cw=$({className:"chakra-native-select",slots:AS.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:ai.variants?.variant.outline.trigger},subtle:{field:ai.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:ai.defaultVariants});function wa(e,t){const n={};for(const r in e){const o=t(r,e[r]);n[o[0]]=o[1]}return n}const Ah=Dn({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),Sw=$({className:"chakra-number-input",slots:bd.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...he.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...Ah,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Ah,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:he.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:he.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:he.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:he.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:wa(he.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:_h,defaultVariants:ww}=he,Ew=$({className:"chakra-pin-input",slots:Sd.keys(),base:{input:{...he.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:wa(_h.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:wa(_h.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:ww}),Ow=$({className:"chakra-popover",slots:_S.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),Pw=$({slots:sa.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),Iw=$({className:"chakra-progress-circle",slots:sa.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),Rw=$({slots:Ed.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),Tw=$({className:"chakra-radio-card",slots:VS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:we.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:we.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:we.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:we.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:we.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:we.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:we.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:we.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),Nw=$({className:"chakra-radio-group",slots:Th.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:we.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:we.variants?.variant?.outline},subtle:{itemControl:we.variants?.variant?.subtle},solid:{itemControl:we.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:we.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:we.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:we.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:we.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),Aw=$({className:"chakra-rating-group",slots:FS.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),_w=$({className:"chakra-scroll-area",slots:Pd.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),Vw=$({className:"chakra-segment-group",slots:Id.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),Fw=$({className:"chakra-slider",slots:zS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),Lw=$({className:"chakra-stat",slots:MS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),Dw=$({className:"chakra-status",slots:jS.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),zw=$({className:"chakra-steps",slots:$S.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),Mw=$({slots:BS.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),jw=$({className:"chakra-table",slots:WS.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),$w=$({slots:US.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),li=Sa.variants?.variant,Bw=$({slots:GS.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:li?.subtle},solid:{root:li?.solid},outline:{root:li?.outline},surface:{root:li?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),Ww=$({slots:qS.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),Hw=$({slots:HS.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),Uw=$({slots:Fd.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),Vh=Dn({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),Fh=Dn({flex:"1"}),Lh=Dn({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),Dh=Dn({_selected:{layerStyle:"fill.solid"}}),Gw=$({slots:od.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:Vh,item:Vh,itemText:Fh,branchText:Fh,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:Lh,item:Lh},solid:{branchControl:Dh,item:Dh}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),qw={accordion:QS,actionBar:JS,alert:ZS,avatar:ew,blockquote:tw,breadcrumb:nw,card:rw,checkbox:ow,checkboxCard:iw,codeBlock:sw,collapsible:aw,dataList:uw,dialog:dw,drawer:hw,editable:fw,emptyState:gw,field:pw,fieldset:mw,fileUpload:vw,hoverCard:bw,list:yw,listbox:xw,menu:kw,nativeSelect:Cw,numberInput:Sw,pinInput:Ew,popover:Ow,progress:Pw,progressCircle:Iw,radioCard:Tw,radioGroup:Nw,ratingGroup:Aw,scrollArea:_w,segmentGroup:Vw,select:ai,combobox:cw,slider:Fw,stat:Lw,steps:zw,switch:Mw,table:jw,tabs:$w,tag:Bw,toast:Hw,tooltip:Uw,status:Dw,timeline:Ww,colorPicker:lw,qrCode:Rw,treeView:Gw},Kw=Rk({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),Yw=de.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),Xw=de.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),Qw=de.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),Jw=de.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),Zw=de.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),eE=de.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),tE=de.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),nE=de.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),rE=de.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),oE=de.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),zh='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',iE=de.fonts({heading:{value:`Inter, ${zh}`},body:{value:`Inter, ${zh}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),sE=Pk({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),aE=de.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),lE=de.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),cE=de.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),Mh=de.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),uE=de.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),dE=de.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),hE=de.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),fE=de.sizes({...uE,...Mh,...hE,...dE}),gE=de.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),pE=pa({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:GC,theme:{breakpoints:UC,keyframes:sE,tokens:{aspectRatios:Xw,animations:Yw,blurs:Qw,borders:Jw,colors:Zw,durations:tE,easings:nE,fonts:iE,fontSizes:rE,fontWeights:oE,letterSpacings:aE,lineHeights:lE,radii:cE,spacing:Mh,sizes:fE,zIndex:gE,cursor:eE},semanticTokens:{colors:hS,shadows:gS,radii:fS},recipes:dS,slotRecipes:qw,textStyles:Kw,layerStyles:qC,animationStyles:KC}}),jh=jd(Mk,pE);Eh(jh);function mE(e){const{key:t,recipe:n}=e,r=ao();return P.useMemo(()=>{const o=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(o))},[t,n,r])}const vE=e=>e.charAt(0).toUpperCase()+e.slice(1),ci=e=>{const{key:t,recipe:n}=e,r=vE(t||n.className||"Component"),[o,i]=bn({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=bn({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=bn({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(f){const{unstyled:g,...v}=f,y=mE({key:t,recipe:v.recipe||n}),[b,x]=P.useMemo(()=>y.splitVariantProps(v),[v,y]);return{styles:P.useMemo(()=>g?Om:y(b),[g,b,y]),classNames:y.classNameMap,props:x}}function d(f,g={}){const{defaultProps:v}=g,y=b=>{const x=c(),C=P.useMemo(()=>tr(v,x,b),[x,b]),{styles:k,classNames:E,props:I}=u(C);return m.jsx(o,{value:k,children:m.jsx(s,{value:E,children:m.jsx(f,{...I})})})};return y.displayName=f.displayName||f.name,y}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(f,g,v)=>{const{defaultProps:y,...b}=v??{},x=me(f,{},b),C=P.forwardRef((k,E)=>{const I=c(),R=P.useMemo(()=>tr(y??{},I,k),[I,k]),{styles:_,props:A,classNames:T}=u(R),S=T[g],N=m.jsx(o,{value:_,children:m.jsx(s,{value:T,children:m.jsx(x,{ref:E,...A,css:[_[g],R.css],className:Ue(R.className,S)})})});return v?.wrapElement?.(N,R)??N});return C.displayName=f.displayName||f.name,C},withContext:(f,g,v)=>{const y=me(f,{},v),b=P.forwardRef((x,C)=>{const{unstyled:k,...E}=x,I=i(),_=a()?.[g];return m.jsx(y,{...E,css:[!k&&g?I[g]:void 0,x.css],ref:C,className:Ue(x.className,_)})});return b.displayName=f.displayName||f.name,b},withRootProvider:d,useStyles:i,useClassNames:a}},$h=me("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});$h.displayName="AbsoluteCenter";const bE=e=>m.jsx(me.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:m.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),Bh=e=>m.jsx(me.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:m.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),Wh=e=>m.jsx(me.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:m.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),yE=e=>m.jsx(me.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:m.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),[xE,kE]=bn({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:CE,withContext:Ea,useStyles:SE}=ci({key:"alert"}),wE=CE("div","root",{forwardAsChild:!0,wrapElement(e,t){return m.jsx(xE,{value:{status:t.status||"info"},children:e})}}),Hh=Ea("div","title"),EE=Ea("div","description"),OE=Ea("div","content"),PE={info:Wh,warning:Bh,success:bE,error:Bh,neutral:Wh},IE=P.forwardRef(function(t,n){const r=kE(),o=SE(),i=typeof r.status=="string"?PE[r.status]:P.Fragment,{children:s=m.jsx(i,{}),...a}=t;return m.jsx(me.span,{ref:n,...a,css:[o.indicator,t.css],children:s})}),RE=e=>e?"":void 0,{withContext:TE}=jt({key:"badge"}),Uh=TE("span"),{withContext:NE}=jt({key:"spinner"}),AE=NE("span"),_E=O.forwardRef(function(t,n){const{spinner:r=m.jsx(AE,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:i,text:s,visible:a=!0,...l}=t;return a?s?m.jsxs(To,{ref:n,display:"contents",...l,children:[o==="start"&&r,s,o==="end"&&r]}):r?m.jsxs(To,{ref:n,display:"contents",...l,children:[m.jsx($h,{display:"inline-flex",children:r}),m.jsx(To,{visibility:"hidden",display:"contents",children:i})]}):m.jsx(To,{ref:n,display:"contents",...l,children:i}):i}),{useRecipeResult:VE,usePropsContext:FE}=jt({key:"button"}),rt=P.forwardRef(function(t,n){const r=FE(),o=P.useMemo(()=>tr(r,t),[r,t]),i=VE(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=i.props;return m.jsx(me.button,{type:"button",ref:n,...d,"data-loading":RE(s),disabled:s||d.disabled,className:Ue(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?m.jsx(_E,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})}),rn=P.forwardRef(function(t,n){return m.jsx(rt,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),Pr=O.forwardRef(function(t,n){return m.jsx(rn,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??m.jsx(yE,{})})}),Gh=me("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});Gh.displayName="Center";const{withContext:LE}=jt({key:"code"}),DE=LE("code");function zE(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":Md(n,o=>r[o])}}function ME(e){return P.Children.toArray(e).filter(t=>P.isValidElement(t))}const qh=P.forwardRef(function(t,n){const{direction:r="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,h=P.useMemo(()=>zE({gap:s,direction:r}),[s,r]),p=P.useMemo(()=>P.isValidElement(c)?ME(l).map((f,g,v)=>{const y=typeof f.key<"u"?f.key:g,b=c,x=P.cloneElement(b,{css:[h,b.props.css]});return m.jsxs(P.Fragment,{children:[f,g===v.length-1?null:x]},y)}):l,[l,c,h]);return m.jsx(me.div,{ref:n,display:"flex",alignItems:o,justifyContent:i,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:Ue("chakra-stack",u),...d,children:p})}),{withRootProvider:Kh,withContext:pt}=ci({key:"dialog"});Kh(d1,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const Ir=Kh(u1,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});pt(Yu,"trigger",{forwardAsChild:!0});const Rr=pt($u,"positioner",{forwardAsChild:!0}),Tr=pt(Mu,"content",{forwardAsChild:!0});pt(ju,"description",{forwardAsChild:!0});const Nr=pt(Ku,"title",{forwardAsChild:!0}),Ar=pt(zu,"closeTrigger",{forwardAsChild:!0}),_r=P.forwardRef(function(t,n){const r=At();return m.jsx(me.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),Vr=pt(Du,"backdrop",{forwardAsChild:!0}),Fr=pt("div","body"),Lr=pt("div","footer"),Dr=pt("div","header"),ui=P.forwardRef(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return m.jsx(me.div,{ref:n,...d,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})}),{withContext:jE}=jt({key:"link"}),zr=jE("a"),{withProvider:$E,withContext:Yh}=ci({key:"list"}),Xh=$E("ul","root",{defaultProps:{role:"list"}}),Qh=Yh("li","item");Yh("span","indicator");const BE=P.forwardRef(function(t,n){return m.jsx(qh,{align:"center",...t,direction:"row",ref:n})}),WE=P.forwardRef(function(t,n){return m.jsx(qh,{align:"center",...t,direction:"column",ref:n})}),{StylesProvider:HE,ClassNamesProvider:UE,useRecipeResult:GE,withContext:kt}=ci({key:"table"}),Jh=P.forwardRef(function({native:t,...n},r){const{styles:o,props:i,classNames:s}=GE(n),a=P.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return m.jsx(UE,{value:s,children:m.jsx(HE,{value:o,children:m.jsx(me.table,{ref:r,...i,css:[a,n.css],className:Ue(s?.root,n.className)})})})}),di=kt("tr","row");me("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const Zh=kt("thead","header");kt("tfoot","footer");const xe=kt("th","columnHeader"),ke=kt("td","cell");kt("caption","caption",{defaultProps:{captionSide:"bottom"}});const ef=kt("tbody","body");kt("colgroup"),kt("col");const{withContext:qE}=jt({key:"textarea"}),tf=qE(Ju);var $n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},KE={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},YE=class{#e=KE;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},on=new YE;function XE(e){setTimeout(e,0)}var sn=typeof window>"u"||"Deno"in globalThis;function Te(){}function QE(e,t){return typeof e=="function"?e(t):e}function Oa(e){return typeof e=="number"&&e>=0&&e!==1/0}function nf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ft(e,t){return typeof e=="function"?e(t):e}function Xe(e,t){return typeof e=="function"?e(t):e}function rf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Pa(s,t.options))return!1}else if(!Mr(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function of(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(an(t.options.mutationKey)!==an(i))return!1}else if(!Mr(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Pa(e,t){return(t?.queryKeyHashFn||an)(e)}function an(e){return JSON.stringify(e,(t,n)=>Ia(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Mr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Mr(e[n],t[n])):!1}var JE=Object.prototype.hasOwnProperty;function sf(e,t){if(e===t)return e;const n=af(e)&&af(t);if(!n&&!(Ia(e)&&Ia(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let l=0;for(let c=0;c{on.setTimeout(t,e)})}function Ra(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?sf(e,t):t}function e2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function t2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ta=Symbol();function cf(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ta?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function uf(e,t){return typeof e=="function"?e(...t):!!e}var n2=class extends $n{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!sn&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Na=new n2;function Aa(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var r2=XE;function o2(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=r2;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ge=o2(),i2=class extends $n{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!sn&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},fi=new i2;function s2(e){return Math.min(1e3*2**e,3e4)}function df(e){return(e??"online")==="online"?fi.isOnline():!0}var _a=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function hf(e){let t=!1,n=0,r;const o=Aa(),i=()=>o.status!=="pending",s=g=>{if(!i()){const v=new _a(g);h(v),e.onCancel?.(v)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Na.isFocused()&&(e.networkMode==="always"||fi.isOnline())&&e.canRun(),u=()=>df(e.networkMode)&&e.canRun(),d=g=>{i()||(r?.(),o.resolve(g))},h=g=>{i()||(r?.(),o.reject(g))},p=()=>new Promise(g=>{r=v=>{(i()||c())&&g(v)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),f=()=>{if(i())return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(d).catch(y=>{if(i())return;const b=e.retry??(sn?0:3),x=e.retryDelay??s2,C=typeof x=="function"?x(n,y):x,k=b===!0||typeof b=="number"&&nc()?void 0:p()).then(()=>{t?h(y):f()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?f():p().then(f),o)}}var ff=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oa(this.gcTime)&&(this.#e=on.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(sn?1/0:300*1e3))}clearGcTimeout(){this.#e&&(on.clearTimeout(this.#e),this.#e=void 0)}},a2=class extends ff{#e;#t;#n;#r;#o;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=pf(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=pf(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Ra(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(Te).catch(Te):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Xe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ta||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ft(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!nf(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#a?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#o?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,r=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},o=()=>{const a=cf(this.options,t),c=(()=>{const u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return r(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#o=hf({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof _a&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(a,l)=>{this.#i({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#o.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof _a){if(a.silent)return this.#o.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...gf(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ge.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function gf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:df(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function pf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var l2=class extends $n{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=Aa(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#o;#s;#a;#i;#p;#h;#f;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),mf(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Va(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Va(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#k(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xe(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!hi(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&vf(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||Xe(this.options.enabled,this.#t)!==Xe(t.enabled,this.#t)||Ft(this.options.staleTime,this.#t)!==Ft(t.staleTime,this.#t))&&this.#m();const o=this.#v();r&&(this.#t!==n||Xe(this.options.enabled,this.#t)!==Xe(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return u2(this,n)&&(this.#r=n,this.#s=this.options,this.#o=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Te)),t}#m(){this.#x();const e=Ft(this.options.staleTime,this.#t);if(sn||this.#r.isStale||!Oa(e))return;const n=nf(this.#r.dataUpdatedAt,e)+1;this.#c=on.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#k(),this.#l=e,!(sn||Xe(this.options.enabled,this.#t)===!1||!Oa(this.#l)||this.#l===0)&&(this.#u=on.setInterval(()=>{(this.options.refetchIntervalInBackground||Na.isFocused())&&this.#d()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(on.clearTimeout(this.#c),this.#c=void 0)}#k(){this.#u&&(on.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#r,i=this.#o,s=this.#s,l=e!==n?e.state:this.#n,{state:c}=e;let u={...c},d=!1,h;if(t._optimisticResults){const R=this.hasListeners(),_=!R&&mf(e,t),A=R&&vf(e,n,t,r);(_||A)&&(u={...u,...gf(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:p,errorUpdatedAt:f,status:g}=u;h=u.data;let v=!1;if(t.placeholderData!==void 0&&h===void 0&&g==="pending"){let R;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(R=o.data,v=!0):R=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,R!==void 0&&(g="success",h=Ra(o?.data,R,t),d=!0)}if(t.select&&h!==void 0&&!v)if(o&&h===i?.data&&t.select===this.#p)h=this.#h;else try{this.#p=t.select,h=t.select(h),h=Ra(o?.data,h,t),this.#h=h,this.#i=null}catch(R){this.#i=R}this.#i&&(p=this.#i,h=this.#h,f=Date.now(),g="error");const y=u.fetchStatus==="fetching",b=g==="pending",x=g==="error",C=b&&y,k=h!==void 0,I={status:g,fetchStatus:u.fetchStatus,isPending:b,isSuccess:g==="success",isError:x,isInitialLoading:C,isLoading:C,data:h,dataUpdatedAt:u.dataUpdatedAt,error:p,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:y,isRefetching:y&&!b,isLoadingError:x&&!k,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:x&&k,isStale:Fa(e,t),refetch:this.refetch,promise:this.#a,isEnabled:Xe(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const R=T=>{I.status==="error"?T.reject(I.error):I.data!==void 0&&T.resolve(I.data)},_=()=>{const T=this.#a=I.promise=Aa();R(T)},A=this.#a;switch(A.status){case"pending":e.queryHash===n.queryHash&&R(A);break;case"fulfilled":(I.status==="error"||I.data!==A.value)&&_();break;case"rejected":(I.status!=="error"||I.error!==A.reason)&&_();break}}return I}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#o=this.#t.state,this.#s=this.options,this.#o.data!==void 0&&(this.#f=this.#t),hi(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#g.size)return!0;const i=new Set(o??this.#g);return this.options.throwOnError&&i.add("error"),Object.keys(this.#r).some(s=>{const a=s;return this.#r[a]!==e[a]&&i.has(a)})};this.#S({listeners:n()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(e){ge.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function c2(e,t){return Xe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function mf(e,t){return c2(e,t)||e.state.data!==void 0&&Va(e,t,t.refetchOnMount)}function Va(e,t,n){if(Xe(t.enabled,e)!==!1&&Ft(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Fa(e,t)}return!1}function vf(e,t,n,r){return(e!==t||Xe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Fa(e,n)}function Fa(e,t){return Xe(t.enabled,e)!==!1&&e.isStaleByTime(Ft(t.staleTime,e))}function u2(e,t){return!hi(e.getCurrentResult(),t)}function bf(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const d=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},h=cf(t.options,t.fetchOptions),p=async(f,g,v)=>{if(u)return Promise.reject();if(g==null&&f.pages.length)return Promise.resolve(f);const b=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:g,direction:v?"backward":"forward",meta:t.options.meta};return d(E),E})(),x=await h(b),{maxPages:C}=t.options,k=v?t2:e2;return{pages:k(f.pages,x,C),pageParams:k(f.pageParams,g,C)}};if(o&&i.length){const f=o==="backward",g=f?d2:yf,v={pages:i,pageParams:s},y=g(r,v);a=await p(v,y,f)}else{const f=e??i.length;do{const g=l===0?s[0]??r.initialPageParam:yf(r,a);if(l>0&&g==null)break;a=await p(a,g),l++}while(lt.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function yf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function d2(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var h2=class extends ff{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||xf(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=hf({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(o,i)=>{this.#r({type:"failed",failureCount:o,error:i})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#t.config.onMutate?.(e,this);const i=await this.options.onMutate?.(e);i!==this.state.context&&this.#r({type:"pending",context:i,variables:e,isPaused:r})}const o=await this.#n.start();return await this.#t.config.onSuccess?.(o,e,this.state.context,this),await this.options.onSuccess?.(o,e,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,e,this.state.context),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,e,this.state.context,this),await this.options.onError?.(o,e,this.state.context),await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,e,this.state.context),o}finally{this.#r({type:"error",error:o})}}finally{this.#t.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ge.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function xf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var f2=class extends $n{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new h2({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=gi(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=gi(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=gi(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=gi(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ge.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>of(t,n))}findAll(e={}){return this.getAll().filter(t=>of(e,t))}notify(e){ge.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ge.batch(()=>Promise.all(e.map(t=>t.continue().catch(Te))))}};function gi(e){return e.options.scope?.id}var g2=class extends $n{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),hi(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&an(t.mutationKey)!==an(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#s()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#o(){const e=this.#n?.state??xf();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){ge.batch(()=>{if(this.#r&&this.hasListeners()){const t=this.#t.variables,n=this.#t.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,t,n),this.#r.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#r.onError?.(e.error,t,n),this.#r.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(t=>{t(this.#t)})})}},p2=class extends $n{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??Pa(r,t);let i=this.get(o);return i||(i=new a2({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ge.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>rf(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>rf(e,n)):t}notify(e){ge.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ge.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ge.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},m2=class{#e;#t;#n;#r;#o;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new p2,this.#t=e.mutationCache||new f2,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=Na.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=fi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ft(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,s=QE(t,i);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ge.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;ge.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return ge.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ge.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Te).catch(Te)}invalidateQueries(e,t={}){return ge.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ge.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Te)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Te)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(Ft(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Te).catch(Te)}fetchInfiniteQuery(e){return e.behavior=bf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Te).catch(Te)}ensureInfiniteQueryData(e){return e.behavior=bf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return fi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(an(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Mr(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#o.set(an(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{Mr(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Pa(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Ta&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},kf=O.createContext(void 0),Cf=e=>{const t=O.useContext(kf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},v2=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(kf.Provider,{value:e,children:t})),Sf=O.createContext(!1),b2=()=>O.useContext(Sf);Sf.Provider;function y2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var x2=O.createContext(y2()),k2=()=>O.useContext(x2),C2=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},S2=e=>{O.useEffect(()=>{e.clearReset()},[e])},w2=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||uf(n,[e.error,r])),E2=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},O2=(e,t)=>e.isLoading&&e.isFetching&&!t,P2=(e,t)=>e?.suspense&&t.isPending,wf=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function I2(e,t,n){const r=b2(),o=k2(),i=Cf(),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",E2(s),C2(s,o),S2(o);const a=!i.getQueryCache().get(s.queryHash),[l]=O.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(d=>{const h=u?l.subscribe(ge.batchCalls(d)):Te;return l.updateResult(),h},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(s)},[s,l]),P2(s,c))throw wf(s,l,o);if(w2({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!sn&&O2(c,r)&&(a?wf(s,l,o):i.getQueryCache().get(s.queryHash)?.promise)?.catch(Te).finally(()=>{l.updateResult()}),s.notifyOnChangeProps?c:l.trackResult(c)}function Ef(e,t){return I2(e,l2)}function jr(e,t){const n=Cf(),[r]=O.useState(()=>new g2(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);const o=O.useSyncExternalStore(O.useCallback(s=>r.subscribe(ge.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=O.useCallback((s,a)=>{r.mutate(s,a).catch(Te)},[r]);if(o.error&&uf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function Of(e,t){return function(){return e.apply(t,arguments)}}const{toString:R2}=Object.prototype,{getPrototypeOf:La}=Object,{iterator:pi,toStringTag:Pf}=Symbol,mi=(e=>t=>{const n=R2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ot=e=>(e=e.toLowerCase(),t=>mi(t)===e),vi=e=>t=>typeof t===e,{isArray:Bn}=Array,Wn=vi("undefined");function $r(e){return e!==null&&!Wn(e)&&e.constructor!==null&&!Wn(e.constructor)&&Le(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const If=ot("ArrayBuffer");function T2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&If(e.buffer),t}const N2=vi("string"),Le=vi("function"),Rf=vi("number"),Br=e=>e!==null&&typeof e=="object",A2=e=>e===!0||e===!1,bi=e=>{if(mi(e)!=="object")return!1;const t=La(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Pf in e)&&!(pi in e)},_2=e=>{if(!Br(e)||$r(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},V2=ot("Date"),F2=ot("File"),L2=ot("Blob"),D2=ot("FileList"),z2=e=>Br(e)&&Le(e.pipe),M2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Le(e.append)&&((t=mi(e))==="formdata"||t==="object"&&Le(e.toString)&&e.toString()==="[object FormData]"))},j2=ot("URLSearchParams"),[$2,B2,W2,H2]=["ReadableStream","Request","Response","Headers"].map(ot),U2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Bn(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Nf=e=>!Wn(e)&&e!==ln;function Da(){const{caseless:e,skipUndefined:t}=Nf(this)&&this||{},n={},r=(o,i)=>{const s=e&&Tf(n,i)||i;bi(n[s])&&bi(o)?n[s]=Da(n[s],o):bi(o)?n[s]=Da({},o):Bn(o)?n[s]=o.slice():(!t||!Wn(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o(Wr(t,(o,i)=>{n&&Le(o)?e[i]=Of(o,n):e[i]=o},{allOwnKeys:r}),e),q2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),K2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Y2=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&La(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},X2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Q2=e=>{if(!e)return null;if(Bn(e))return e;let t=e.length;if(!Rf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},J2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&La(Uint8Array)),Z2=(e,t)=>{const r=(e&&e[pi]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},eO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tO=ot("HTMLFormElement"),nO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Af=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rO=ot("RegExp"),_f=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wr(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},oO=e=>{_f(e,(t,n)=>{if(Le(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Le(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},iO=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Bn(e)?r(e):r(String(e).split(t)),n},sO=()=>{},aO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function lO(e){return!!(e&&Le(e.append)&&e[Pf]==="FormData"&&e[pi])}const cO=e=>{const t=new Array(10),n=(r,o)=>{if(Br(r)){if(t.indexOf(r)>=0)return;if($r(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Bn(r)?[]:{};return Wr(r,(s,a)=>{const l=n(s,o+1);!Wn(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},uO=ot("AsyncFunction"),dO=e=>e&&(Br(e)||Le(e))&&Le(e.then)&&Le(e.catch),Vf=((e,t)=>e?setImmediate:t?((n,r)=>(ln.addEventListener("message",({source:o,data:i})=>{o===ln&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),ln.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Le(ln.postMessage)),hO=typeof queueMicrotask<"u"?queueMicrotask.bind(ln):typeof process<"u"&&process.nextTick||Vf,w={isArray:Bn,isArrayBuffer:If,isBuffer:$r,isFormData:M2,isArrayBufferView:T2,isString:N2,isNumber:Rf,isBoolean:A2,isObject:Br,isPlainObject:bi,isEmptyObject:_2,isReadableStream:$2,isRequest:B2,isResponse:W2,isHeaders:H2,isUndefined:Wn,isDate:V2,isFile:F2,isBlob:L2,isRegExp:rO,isFunction:Le,isStream:z2,isURLSearchParams:j2,isTypedArray:J2,isFileList:D2,forEach:Wr,merge:Da,extend:G2,trim:U2,stripBOM:q2,inherits:K2,toFlatObject:Y2,kindOf:mi,kindOfTest:ot,endsWith:X2,toArray:Q2,forEachEntry:Z2,matchAll:eO,isHTMLForm:tO,hasOwnProperty:Af,hasOwnProp:Af,reduceDescriptors:_f,freezeMethods:oO,toObjectSet:iO,toCamelCase:nO,noop:sO,toFiniteNumber:aO,findKey:Tf,global:ln,isContextDefined:Nf,isSpecCompliantForm:lO,toJSONObject:cO,isAsyncFn:uO,isThenable:dO,setImmediate:Vf,asap:hO,isIterable:e=>e!=null&&Le(e[pi])};function H(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Ff=H.prototype,Lf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Lf[e]={value:e}}),Object.defineProperties(H,Lf),Object.defineProperty(Ff,"isAxiosError",{value:!0}),H.from=(e,t,n,r,o,i)=>{const s=Object.create(Ff);w.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return H.call(s,a,l,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const fO=null;function za(e){return w.isPlainObject(e)||w.isArray(e)}function Df(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function zf(e,t,n){return e?e.concat(t).map(function(o,i){return o=Df(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function gO(e){return w.isArray(e)&&!e.some(za)}const pO=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function yi(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!w.isUndefined(v[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(w.isDate(f))return f.toISOString();if(w.isBoolean(f))return f.toString();if(!l&&w.isBlob(f))throw new H("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(f)||w.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,v){let y=f;if(f&&!v&&typeof f=="object"){if(w.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(w.isArray(f)&&gO(f)||(w.isFileList(f)||w.endsWith(g,"[]"))&&(y=w.toArray(f)))return g=Df(g),y.forEach(function(x,C){!(w.isUndefined(x)||x===null)&&t.append(s===!0?zf([g],C,i):s===null?g:g+"[]",c(x))}),!1}return za(f)?!0:(t.append(zf(v,g,i),c(f)),!1)}const d=[],h=Object.assign(pO,{defaultVisitor:u,convertValue:c,isVisitable:za});function p(f,g){if(!w.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),w.forEach(f,function(y,b){(!(w.isUndefined(y)||y===null)&&o.call(t,y,w.isString(b)?b.trim():b,g,h))===!0&&p(y,g?g.concat(b):[b])}),d.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Mf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ma(e,t){this._pairs=[],e&&yi(e,this,t)}const jf=Ma.prototype;jf.append=function(t,n){this._pairs.push([t,n])},jf.toString=function(t){const n=t?function(r){return t.call(this,r,Mf)}:Mf;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function mO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $f(e,t,n){if(!t)return e;const r=n&&n.encode||mO;w.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=w.isURLSearchParams(t)?t.toString():new Ma(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Bf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Wf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},vO={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ma,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ja=typeof window<"u"&&typeof document<"u",$a=typeof navigator=="object"&&navigator||void 0,bO=ja&&(!$a||["ReactNative","NativeScript","NS"].indexOf($a.product)<0),yO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xO=ja&&window.location.href||"http://localhost",Pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ja,hasStandardBrowserEnv:bO,hasStandardBrowserWebWorkerEnv:yO,navigator:$a,origin:xO},Symbol.toStringTag,{value:"Module"})),...vO};function kO(e,t){return yi(e,new Pe.classes.URLSearchParams,{visitor:function(n,r,o,i){return Pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function CO(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function SO(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&w.isArray(o)?o.length:s,l?(w.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&w.isArray(o[s])&&(o[s]=SO(o[s])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,o)=>{t(CO(r),o,n,0)}),n}return null}function wO(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Hr={transitional:Wf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(Hf(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return kO(t,this.formSerializer).toString();if((a=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return yi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),wO(t)):t}],transformResponse:[function(t){const n=this.transitional||Hr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?H.from(a,H.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pe.classes.FormData,Blob:Pe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Hr.headers[e]={}});const EO=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),OO=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&EO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Uf=Symbol("internals");function Ur(e){return e&&String(e).trim().toLowerCase()}function xi(e){return e===!1||e==null?e:w.isArray(e)?e.map(xi):String(e)}function PO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const IO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ba(e,t,n,r,o){if(w.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function RO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function TO(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let De=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Ur(l);if(!u)throw new Error("header name must be a non-empty string");const d=w.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=xi(a))}const s=(a,l)=>w.forEach(a,(c,u)=>i(c,u,l));if(w.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(w.isString(t)&&(t=t.trim())&&!IO(t))s(OO(t),n);else if(w.isObject(t)&&w.isIterable(t)){let a={},l,c;for(const u of t){if(!w.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?w.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ur(t),t){const r=w.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return PO(o);if(w.isFunction(n))return n.call(this,o,r);if(w.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ur(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ba(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Ur(s),s){const a=w.findKey(r,s);a&&(!n||Ba(r,r[a],a,n))&&(delete r[a],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Ba(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return w.forEach(this,(o,i)=>{const s=w.findKey(r,i);if(s){n[s]=xi(o),delete n[i];return}const a=t?RO(i):String(i).trim();a!==i&&delete n[i],n[a]=xi(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Uf]=this[Uf]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Ur(s);r[a]||(TO(o,s),r[a]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}};De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(De.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),w.freezeMethods(De);function Wa(e,t){const n=this||Hr,r=t||n,o=De.from(r.headers);let i=r.data;return w.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Gf(e){return!!(e&&e.__CANCEL__)}function Hn(e,t,n){H.call(this,e??"canceled",H.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(Hn,H,{__CANCEL__:!0});function qf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function NO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function AO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,h=0;for(;d!==o;)h+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{n=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-d)))},()=>o&&s(o)]}const ki=(e,t,n=3)=>{let r=0;const o=AO(50,250);return _O(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Kf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Yf=e=>(...t)=>w.asap(()=>e(...t)),VO=Pe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Pe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Pe.origin),Pe.navigator&&/(msie|trident)/i.test(Pe.navigator.userAgent)):()=>!0,FO=Pe.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function LO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xf(e,t,n){let r=!LO(t);return e&&(r||n==!1)?DO(e,t):t}const Qf=e=>e instanceof De?{...e}:e;function cn(e,t){t=t||{};const n={};function r(c,u,d,h){return w.isPlainObject(c)&&w.isPlainObject(u)?w.merge.call({caseless:h},c,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(c,u,d,h){if(w.isUndefined(u)){if(!w.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function i(c,u){if(!w.isUndefined(u))return r(void 0,u)}function s(c,u){if(w.isUndefined(u)){if(!w.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>o(Qf(c),Qf(u),d,!0)};return w.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,h=d(e[u],t[u],u);w.isUndefined(h)&&d!==a||(n[u]=h)}),n}const Jf=e=>{const t=cn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=De.from(s),t.url=$f(Xf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),w.isFormData(n)){if(Pe.hasStandardBrowserEnv||Pe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(w.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&s.set(u,d)})}}if(Pe.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(t)),r||r!==!1&&VO(t.url))){const l=o&&i&&FO.read(i);l&&s.set(o,l)}return t},zO=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=Jf(e);let i=o.data;const s=De.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,h,p,f;function g(){p&&p(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function y(){if(!v)return;const x=De.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};qf(function(I){n(I),g()},function(I){r(I),g()},k),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new H("Request aborted",H.ECONNABORTED,e,v)),v=null)},v.onerror=function(C){const k=C&&C.message?C.message:"Network Error",E=new H(k,H.ERR_NETWORK,e,v);E.event=C||null,r(E),v=null},v.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Wf;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new H(C,k.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&w.forEach(s.toJSON(),function(C,k){v.setRequestHeader(k,C)}),w.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([h,f]=ki(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([d,p]=ki(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=x=>{v&&(r(!x||x.type?new Hn(null,e,v):x),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const b=NO(o.url);if(b&&Pe.protocols.indexOf(b)===-1){r(new H("Unsupported protocol "+b+":",H.ERR_BAD_REQUEST,e));return}v.send(i||null)})},MO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof H?u:new Hn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new H(`timeout ${t} of ms exceeded`,H.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>w.asap(a),l}},jO=function*(e,t){let n=e.byteLength;if(n{const o=$O(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},eg=64*1024,{isFunction:Ci}=w,tg=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(w.global),{ReadableStream:ng,TextEncoder:rg}=w.global,og=(e,...t)=>{try{return!!e(...t)}catch{return!1}},WO=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},tg,e),o=Ci(t),i=Ci(n),s=Ci(r);if(!o)return!1;const a=o&&Ci(ng),l=o&&(typeof rg=="function"?(f=>g=>f.encode(g))(new rg):async f=>new Uint8Array(await new n(f).arrayBuffer())),c=i&&a&&og(()=>{let f=!1;const g=new n(Pe.origin,{body:new ng,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!g}),u=s&&a&&og(()=>w.isReadableStream(new r("").body)),d={stream:u&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!d[f]&&(d[f]=(g,v)=>{let y=g&&g[f];if(y)return y.call(g);throw new H(`Response type '${f}' is not supported`,H.ERR_NOT_SUPPORT,v)})});const h=async f=>{if(f==null)return 0;if(w.isBlob(f))return f.size;if(w.isSpecCompliantForm(f))return(await new n(Pe.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(w.isArrayBufferView(f)||w.isArrayBuffer(f))return f.byteLength;if(w.isURLSearchParams(f)&&(f=f+""),w.isString(f))return(await l(f)).byteLength},p=async(f,g)=>{const v=w.toFiniteNumber(f.getContentLength());return v??h(g)};return async f=>{let{url:g,method:v,data:y,signal:b,cancelToken:x,timeout:C,onDownloadProgress:k,onUploadProgress:E,responseType:I,headers:R,withCredentials:_="same-origin",fetchOptions:A}=Jf(f);I=I?(I+"").toLowerCase():"text";let T=MO([b,x&&x.toAbortSignal()],C),S=null;const N=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let z;try{if(E&&c&&v!=="get"&&v!=="head"&&(z=await p(R,y))!==0){let W=new n(g,{method:"POST",body:y,duplex:"half"}),te;if(w.isFormData(y)&&(te=W.headers.get("content-type"))&&R.setContentType(te),W.body){const[Ie,He]=Kf(z,ki(Yf(E)));y=Zf(W.body,eg,Ie,He)}}w.isString(_)||(_=_?"include":"omit");const D=i&&"credentials"in n.prototype,q={...A,signal:T,method:v.toUpperCase(),headers:R.normalize().toJSON(),body:y,duplex:"half",credentials:D?_:void 0};S=i&&new n(g,q);let K=await(i?t(S,A):t(g,q));const ce=u&&(I==="stream"||I==="response");if(u&&(k||ce&&N)){const W={};["status","statusText","headers"].forEach(Mt=>{W[Mt]=K[Mt]});const te=w.toFiniteNumber(K.headers.get("content-length")),[Ie,He]=k&&Kf(te,ki(Yf(k),!0))||[];K=new r(Zf(K.body,eg,Ie,()=>{He&&He(),N&&N()}),W)}I=I||"text";let B=await d[w.findKey(d,I)||"text"](K,f);return!ce&&N&&N(),await new Promise((W,te)=>{qf(W,te,{data:B,headers:De.from(K.headers),status:K.status,statusText:K.statusText,config:f,request:S})})}catch(D){throw N&&N(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new H("Network Error",H.ERR_NETWORK,f,S),{cause:D.cause||D}):H.from(D,D&&D.code,f,S)}}},HO=new Map,ig=e=>{let t=w.merge.call({skipUndefined:!0},tg,e?e.env:null);const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,a=s,l,c,u=HO;for(;a--;)l=i[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:WO(t)),u=c;return c};ig();const Ha={http:fO,xhr:zO,fetch:{get:ig}};w.forEach(Ha,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sg=e=>`- ${e}`,UO=e=>w.isFunction(e)||e===null||e===!1,ag={getAdapter:(e,t)=>{e=w.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since : -`+s.map(sg).join(` -`):" "+sg(s[0]):"as no adapter specified";throw new H("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Ha};function Ua(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hn(null,e)}function lg(e){return Ua(e),e.headers=De.from(e.headers),e.data=Wa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ag.getAdapter(e.adapter||Hr.adapter,e)(e).then(function(r){return Ua(e),r.data=Wa.call(e,e.transformResponse,r),r.headers=De.from(r.headers),r},function(r){return Gf(r)||(Ua(e),r&&r.response&&(r.response.data=Wa.call(e,e.transformResponse,r.response),r.response.headers=De.from(r.response.headers))),Promise.reject(r)})}const cg="1.12.1",Si={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Si[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ug={};Si.transitional=function(t,n,r){function o(i,s){return"[Axios v"+cg+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new H(o(s," has been removed"+(n?" in "+n:"")),H.ERR_DEPRECATED);return n&&!ug[s]&&(ug[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}},Si.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function GO(e,t,n){if(typeof e!="object")throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new H("option "+i+" must be "+l,H.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new H("Unknown option "+i,H.ERR_BAD_OPTION)}}const wi={assertOptions:GO,validators:Si},mt=wi.validators;let un=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Bf,response:new Bf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&wi.assertOptions(r,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),o!=null&&(w.isFunction(o)?n.paramsSerializer={serialize:o}:wi.assertOptions(o,{encode:mt.function,serialize:mt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),wi.assertOptions(n,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=De.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,h;if(!l){const f=[lg.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Hn(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new lp(function(o){t=o}),cancel:t}}};function KO(e){return function(n){return e.apply(null,n)}}function YO(e){return w.isObject(e)&&e.isAxiosError===!0}const Ga={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ga).forEach(([e,t])=>{Ga[t]=e});function dg(e){const t=new un(e),n=Of(un.prototype.request,t);return w.extend(n,un.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return dg(cn(e,o))},n}const ae=dg(Hr);ae.Axios=un,ae.CanceledError=Hn,ae.CancelToken=qO,ae.isCancel=Gf,ae.VERSION=cg,ae.toFormData=yi,ae.AxiosError=H,ae.Cancel=ae.CanceledError,ae.all=function(t){return Promise.all(t)},ae.spread=KO,ae.isAxiosError=YO,ae.mergeConfig=cn,ae.AxiosHeaders=De,ae.formToJSON=e=>Hf(w.isHTMLForm(e)?new FormData(e):e),ae.getAdapter=ag.getAdapter,ae.HttpStatusCode=Ga,ae.default=ae;const{Axios:rT,AxiosError:oT,CanceledError:iT,isCancel:sT,CancelToken:aT,VERSION:lT,all:cT,Cancel:uT,isAxiosError:dT,spread:hT,toFormData:fT,AxiosHeaders:gT,HttpStatusCode:pT,formToJSON:mT,getAdapter:vT,mergeConfig:bT}=ae;var XO=(e,t,n,r,o,i,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(p){(Array.isArray(e)?e:[e]).forEach(f=>{let g=f==="class",v=g&&i?o.map(y=>i[y]||y):o;g?(l.classList.remove(...v),l.classList.add(i&&i[p]?i[p]:p)):l.setAttribute(f,p)}),d(p)}function d(p){a&&c.includes(p)&&(l.style.colorScheme=p)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)u(r);else try{let p=localStorage.getItem(t)||n,f=s&&p==="system"?h():p;u(f)}catch{}},hg=["light","dark"],fg="(prefers-color-scheme: dark)",QO=typeof window>"u",gg=O.createContext(void 0),JO=e=>O.useContext(gg)?O.createElement(O.Fragment,null,e.children):O.createElement(eP,{...e}),ZO=["light","dark"],eP=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=ZO,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u,scriptProps:d})=>{let[h,p]=O.useState(()=>nP(o,s)),[f,g]=O.useState(()=>h==="system"?qa():h),v=l?Object.values(l):i,y=O.useCallback(k=>{let E=k;if(!E)return;k==="system"&&n&&(E=qa());let I=l?l[E]:E,R=t?rP(u):null,_=document.documentElement,A=T=>{T==="class"?(_.classList.remove(...v),I&&_.classList.add(I)):T.startsWith("data-")&&(I?_.setAttribute(T,I):_.removeAttribute(T))};if(Array.isArray(a)?a.forEach(A):A(a),r){let T=hg.includes(s)?s:null,S=hg.includes(E)?E:T;_.style.colorScheme=S}R?.()},[u]),b=O.useCallback(k=>{let E=typeof k=="function"?k(h):k;p(E);try{localStorage.setItem(o,E)}catch{}},[h]),x=O.useCallback(k=>{let E=qa(k);g(E),h==="system"&&n&&!e&&y("system")},[h,e]);O.useEffect(()=>{let k=window.matchMedia(fg);return k.addListener(x),x(k),()=>k.removeListener(x)},[x]),O.useEffect(()=>{let k=E=>{E.key===o&&(E.newValue?p(E.newValue):b(s))};return window.addEventListener("storage",k),()=>window.removeEventListener("storage",k)},[b]),O.useEffect(()=>{y(e??h)},[e,h]);let C=O.useMemo(()=>({theme:h,setTheme:b,forcedTheme:e,resolvedTheme:h==="system"?f:h,themes:n?[...i,"system"]:i,systemTheme:n?f:void 0}),[h,b,e,f,n,i]);return O.createElement(gg.Provider,{value:C},O.createElement(tP,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:n,enableColorScheme:r,defaultTheme:s,value:l,themes:i,nonce:u,scriptProps:d}),c)},tP=O.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,themes:a,nonce:l,scriptProps:c})=>{let u=JSON.stringify([n,t,i,e,a,s,r,o]).slice(1,-1);return O.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${XO.toString()})(${u})`}})}),nP=(e,t)=>{if(QO)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},rP=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},qa=e=>(e||(e=window.matchMedia(fg)),e.matches?"dark":"light");const oP=e=>m.jsx(JO,{attribute:"class",disableTransitionOnChange:!0,...e});/** +)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),lC=eh("width"),cC=eh("height"),th=e=>({isMin:ah(e.minMax,e.maxMin,e.min),isMax:ah(e.maxMin,e.minMax,e.max)}),{isMin:ya,isMax:nh}=th(lC),{isMin:xa,isMax:rh}=th(cC),oh=/print/i,ih=/^print$/i,uC=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,dC=/(\d)/,zr=Number.MAX_VALUE,hC={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function sh(e){const t=uC.exec(e)||(ya(e)||xa(e)?dC.exec(e):null);if(!t)return zr;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(hC[r]||1)}function ah(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function fC(e,t){const n=oh.test(e),r=ih.test(e),o=oh.test(t),i=ih.test(t);return n&&o?!r&&i?1:r&&!i?-1:e.localeCompare(t):n?1:o?-1:null}const gC=rt((e,t)=>{const n=fC(e,t);if(n!==null)return n;const r=ya(e)||xa(e),o=nh(e)||rh(e),i=ya(t)||xa(t),s=nh(t)||rh(t);if(r&&s)return-1;if(o&&i)return 1;const a=sh(e),l=sh(t);return a===zr&&l===zr?e.localeCompare(t):a===zr?1:l===zr?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function lh(e){return e.sort(([t],[n])=>gC(t,n))}function ch(e){const t=[],n=[],r={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?n.push([s,a]):_e(a)?r[s]=ch(a):r[s]=a;const o=lh(t),i=lh(n);return{...r,...Object.fromEntries(o),...Object.fromEntries(i)}}const uh=/\s*!(important)?/i,pC=e=>lt(e)?uh.test(e):!1,mC=e=>lt(e)?e.replace(uh,"").trim():e;function dh(e){const{transform:t,conditions:n,normalize:r}=e,o=yC(e);return rt(function(...s){const a=o(...s),l=r(a),c=Object.create(null);return gt(l,(u,d)=>{const h=pC(u);if(u==null)return;const[m,...f]=n.sort(d).map(n.resolve);h&&(u=mC(u));let p=t(m,u)??Object.create(null);p=gt(p,v=>lt(v)&&h?`${v} !important`:v,{getKey:v=>n.expandAtRule(v)}),vC(c,f.flat(),p)}),ch(c)})}function vC(e,t,n){let r=e;for(const o of t)o&&(r[o]||(r[o]=Object.create(null)),r=r[o]);Xn(r,n)}function bC(...e){return e.filter(t=>_e(t)&&Object.keys(mr(t)).length>0)}function yC(e){function t(n){const r=bC(...n);return r.length===1?r:r.map(o=>e.normalize(o))}return rt(function(...r){return Xn({},...t(r))})}const hh=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function xC(e){const{css:t,conditions:n,normalize:r,layers:o}=e;function i(a={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:d}=hh(a),h=dh({conditions:n,normalize:r,transform(b,x){return c[b]?.[x]}}),m=(b={})=>{const x=r({...u,...mr(b)});let C={...l};Xn(C,h(x));const k=s(d,x);return o.wrap("recipes",t(C,k))},f=Object.keys(c),p=b=>{const x=$d(b,["recipe"]),[C,k]=_n(x,f);return f.includes("colorPalette")||(C.colorPalette=b.colorPalette||u.colorPalette),f.includes("orientation")&&(k.orientation=b.orientation),[C,k]},v=Object.fromEntries(Object.entries(c).map(([b,x])=>[b,Object.keys(x)]));return Object.assign(b=>t(m(b)),{className:a.className,__cva__:!0,variantMap:v,variantKeys:f,raw:m,config:a,splitVariantProps:p,merge(b){return i(kC(e)(this,b))}})}function s(a,l){let c={};return a.forEach(u=>{Object.entries(u).every(([h,m])=>h==="css"?!0:(Array.isArray(m)?m:[m]).some(p=>l[h]===p))&&(c=t(c,u.css))}),c}return i}function kC(e){const{css:t}=e;return function(r,o){const i=hh(o.config),s=_l(r.variantKeys,Object.keys(o.variants)),a=t(r.base,i.base),l=Object.fromEntries(s.map(h=>[h,t(r.config.variants[h],i.variants[h])])),c=Xn(r.config.defaultVariants,i.defaultVariants),u=[...r.compoundVariants,...i.compoundVariants];return{className:qe(r.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const CC={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},fh={reset:0,base:1,tokens:2,recipes:3};function SC(e){const t=e.layers??CC,r=Object.values(t).sort((o,i)=>fh[o]-fh[i]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function wC(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:o}=t;return function(i){return gt(i,n,{stop:s=>Array.isArray(s),getKey:r?o:void 0})}}function EC(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=_e(t)?t:{};let o="";n&&r==="parent"?o=`${n} `:n&&r==="element"&&(o=`&${n}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},s={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const a=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function OC(e){const{conditions:t,isValidProperty:n}=e;return function(o){return gt(o,i=>i,{getKey:(i,s)=>_e(s)&&!t.has(i)&&!n(i)?PC(i).map(a=>"&"+a).join(", "):i})}}function PC(e){const t=[];let n=0,r="",o=!1;for(let i=0;i{const t=o=>({base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?RC(e.compoundVariants,o):[]}),r=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))r.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][s]=a[l]??{}});return Object.fromEntries(r)},RC=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function TC(e){const{cva:t}=e;return function(r={}){const o=Object.entries(IC(r)).map(([d,h])=>[d,t(h)]);function i(d){const h=o.map(([m,f])=>[m,f(d)]);return Object.fromEntries(h)}const s=r.variants??{},a=Object.keys(s);function l(d){const h=$d(d,["recipe"]),[m,f]=_n(h,a);return a.includes("colorPalette")||(m.colorPalette=d.colorPalette||r.defaultVariants?.colorPalette),a.includes("orientation")&&(f.orientation=d.orientation),[m,f]}const c=Object.fromEntries(Object.entries(s).map(([d,h])=>[d,Object.keys(h)]));let u={};return r.className&&(u=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const NC=()=>e=>Array.from(new Set(e)),AC=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,_C=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},gh=e=>(e+"").replace(AC,_C),ph=(e,t)=>{let n="",r=0,o="char",i="",s="";const a=[];for(;r{let t=0;const n=["("];for(;t{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const vh=/({([^}]*)})/g,FC=/[{}]/g,LC=/\w+\.\w+/,bh=e=>{if(!lt(e))return[];const t=e.match(vh);return t?t.map(n=>n.replace(FC,"")).map(n=>n.trim()):[]},DC=e=>vh.test(e);function yh(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((n,r)=>{const o=t[r];if(o.extensions.conditions)return n;const i=yh(o);return n.replace(`{${r}}`,i)},e.value),delete e.extensions.references,e.value}function xh(e){return _e(e)&&e.reference?e.reference:String(e)}const si=(e,...t)=>t.map(xh).join(` ${e} `).replace(/calc/g,""),kh=(...e)=>`calc(${si("+",...e)})`,Ch=(...e)=>`calc(${si("-",...e)})`,ka=(...e)=>`calc(${si("*",...e)})`,Sh=(...e)=>`calc(${si("/",...e)})`,wh=e=>{const t=xh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:ka(t,-1)},er=Object.assign(e=>({add:(...t)=>er(kh(e,...t)),subtract:(...t)=>er(Ch(e,...t)),multiply:(...t)=>er(ka(e,...t)),divide:(...t)=>er(Sh(e,...t)),negate:()=>er(wh(e)),toString:()=>e.toString()}),{add:kh,subtract:Ch,multiply:ka,divide:Sh,negate:wh}),zC={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:o,registerToken:i}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=r(l,t);if(lt(a.value)&&a.value==="0rem")return;const u=structuredClone(a);Object.assign(u.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),u.value=er.negate(c.ref);const d=u.path[u.path.length-1];d!=null&&(u.path[u.path.length-1]=`-${d}`),u.path&&(u.name=o(u.path)),i(u)})}},MC=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),jC=[zC,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,o=t.filter(({extensions:a})=>a.category==="colors"),i=new Map,s=new Map;o.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{i.set(r(c),c)}),l.roots.forEach(c=>{const u=r(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const h=l.keys[0]?.filter(Boolean);if(!h.length)return;const m=c.concat(h);i.set(r(m),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=r(l),u=r(l.slice(1));n({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>MC.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:Jd(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],$C=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:r(s.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,o=bh(e.value);return o.length&&o.forEach(i=>{const s=r(i.split("."),n);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const a=[...e.path];a.shift(),n=a}if(n.length===0)return{};const r=n.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),o=n[0],i=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:r,keys:s}}}}],Eh=e=>_e(e)&&Object.prototype.hasOwnProperty.call(e,"value");function BC(e){return e?{breakpoints:Bd(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function WC(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:o={}}=e,i=L=>L.join("."),s=(L,F)=>Ud(L.join("-"),{prefix:F}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,h=new Map,m=new Map,f=new Map,p=new Map,v=[];function y(L,F){a.push(L),l.set(L.name,L),F&&p.forEach(Y=>{Y.enforce===F&&W(Y,L)})}const b=BC(o),x=mr({...n,breakpoints:b.breakpoints,sizes:{...n.sizes,...b.sizes}});function C(){gt(x,(L,F)=>{const Y=F.includes("DEFAULT");F=Oh(F);const oe=F[0],pe=i(F),Ee=lt(L)?{value:L}:L,Pt={value:Ee.value,originalValue:Ee.value,name:pe,path:F,extensions:{condition:"base",originalPath:F,category:oe,prop:i(F.slice(1))}};Y&&(Pt.extensions.default=!0),y(Pt)},{stop:Eh}),gt(r,(L,F)=>{const Y=F.includes("DEFAULT");F=Ph(Oh(F));const oe=F[0],pe=i(F),Ee=lt(L.value)?{value:{base:L.value}}:L,Pt={value:Ee.value.base||"",originalValue:Ee.value.base||"",name:pe,path:F,extensions:{originalPath:F,category:oe,conditions:Ee.value,condition:"base",prop:i(F.slice(1))}};Y&&(Pt.extensions.default=!0),y(Pt)},{stop:Eh})}function k(L){return l.get(L)}function E(L){const{condition:F}=L.extensions;F&&(c.has(F)||c.set(F,new Set),c.get(F).add(L))}function I(L){const{category:F,prop:Y}=L.extensions;F&&(f.has(F)||f.set(F,new Map),f.get(F).set(Y,L))}function R(L){const{condition:F,negative:Y,virtual:oe,cssVar:pe}=L.extensions;Y||oe||!F||!pe||(u.has(F)||u.set(F,new Map),u.get(F).set(pe.var,L.value))}function _(L){const{category:F,prop:Y,cssVar:oe,negative:pe}=L.extensions;if(!F)return;m.has(F)||m.set(F,new Map);const Ee=pe?L.extensions.conditions?L.originalValue:L.value:oe.ref;m.get(F).set(Y,Ee),h.set([F,Y].join("."),Ee)}function A(L){const{colorPalette:F,virtual:Y,default:oe}=L.extensions;!F||Y||F.roots.forEach(pe=>{const Ee=i(pe);d.has(Ee)||d.set(Ee,new Map);const Pt=UC([...L.path],[...pe]),zi=i(Pt),ol=k(zi);if(!ol||!ol.extensions.cssVar)return;const{var:MR}=ol.extensions.cssVar;if(d.get(Ee).set(MR,L.extensions.cssVar.ref),oe&&pe.length===1){const jR=i(["colors","colorPalette"]),lp=k(jR);if(!lp)return;const $R=i(L.path),cp=k($R);if(!cp)return;const up=F.keys[0]?.filter(Boolean);if(!up.length)return;const il=i(pe.concat(up));d.has(il)||d.set(il,new Map),d.get(il).set(lp.extensions.cssVar.var,cp.extensions.cssVar.ref)}})}let T={};function S(){a.forEach(L=>{E(L),I(L),R(L),_(L),A(L)}),T=mh(m)}const N=(L,F)=>{if(!L||typeof L!="string")return{invalid:!0,value:L};const[Y,oe]=L.split("/");if(!Y||!oe)return{invalid:!0,value:Y};const pe=F(Y),Ee=k(`opacity.${oe}`)?.value;if(!Ee&&isNaN(Number(oe)))return{invalid:!0,value:Y};const Pt=Ee?Number(Ee)*100+"%":`${oe}%`,zi=pe??Y;return{invalid:!1,color:zi,value:`color-mix(in srgb, ${zi} ${Pt}, transparent)`}},z=rt((L,F)=>h.get(L)??F),D=rt(L=>T[L]||null),q=rt(L=>ph(L,F=>{if(!F)return;if(F.includes("/")){const oe=N(F,pe=>z(pe));if(oe.invalid)throw new Error("Invalid color mix at "+F+": "+oe.value);return oe.value}const Y=z(F);return Y||(LC.test(F)?gh(F):F)})),K={prefix:t,allTokens:a,tokenMap:l,registerToken:y,getByName:k,formatTokenName:i,formatCssVar:s,flatMap:h,cssVarMap:u,categoryMap:f,colorPaletteMap:d,getVar:z,getCategoryValues:D,expandReferenceInValue:q};function ce(...L){L.forEach(F=>{p.set(F.name,F)})}function B(...L){v.push(...L)}function W(L,F){if(F.extensions.references||os(L.match)&&!L.match(F))return;const oe=(pe=>L.transform(pe,K))(F);switch(!0){case L.type==="extensions":Object.assign(F.extensions,oe);break;case L.type==="value":F.value=oe;break;default:F[L.type]=oe;break}}function ne(L){v.forEach(F=>{F.enforce===L&&F.transform(K)})}function Re(L){p.forEach(F=>{F.enforce===L&&a.forEach(Y=>{W(F,Y)})})}function Ge(){a.forEach(L=>{const F=HC(L);!F||F.length===0||F.forEach(Y=>{y(Y)})})}function Ht(L){return bh(L).map(Y=>k(Y)).filter(Boolean)}function lr(){a.forEach(L=>{if(!DC(L.value))return;const F=Ht(L.value);L.extensions.references=F.reduce((Y,oe)=>(Y[oe.name]=oe,Y),{})})}function rl(){a.forEach(L=>{yh(L)})}function zR(){ne("pre"),Re("pre"),Ge(),lr(),rl(),ne("post"),Re("post"),S()}return C(),ce(...$C),B(...jC),zR(),K}function Oh(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Ph(e){return e.filter(t=>t!=="base")}function HC(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return gt(t,(r,o)=>{const i=Ph(o);if(!i.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=i.join(":"),n.push(s)}),n}function UC(e,t){const n=e.findIndex((r,o)=>t.every((i,s)=>e[o+s]===i));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}NC()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function nT(e){return e}function GC(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function qC(e){const t=GC(e.config),n=e.tokens,r=new Map,o=new Map;function i(R,_){t[R]=_,s(R,_)}const s=(R,_)=>{const A=p(_);A&&(o.set(R,A),d(R,_))},a=()=>{for(const[R,_]of Object.entries(t))_&&s(R,_)},l=()=>{for(const[R,_]of Object.entries(t)){const{shorthand:A}=_??{};if(!A)continue;(Array.isArray(A)?A:[A]).forEach(S=>r.set(S,R))}},c=()=>{const R=mh(n.colorPaletteMap);i("colorPalette",{values:Object.keys(R),transform:rt(_=>R[_])})},u=new Map,d=(R,_)=>{if(!_)return;const A=p(_,S=>`type:Tokens["${S}"]`);if(typeof A=="object"&&A.type){u.set(R,new Set([`type:${A.type}`]));return}if(A){const S=new Set(Object.keys(A));u.set(R,S)}const T=u.get(R)??new Set;_.property&&u.set(R,T.add(`CssProperties["${_.property}"]`))},h=()=>{for(const[R,_]of Object.entries(t))_&&d(R,_)},m=(R,_)=>{const A=u.get(R)??new Set;u.set(R,new Set([...A,..._]))},f=()=>{const R=new Map;for(const[_,A]of u.entries()){if(A.size===0){R.set(_,["string"]);continue}const T=Array.from(A).map(S=>S.startsWith("CssProperties")?S:S.startsWith("type:")?S.replace("type:",""):JSON.stringify(S));R.set(_,T)}return R},p=(R,_)=>{const{values:A}=R,T=S=>{const N=_?.(S);return N?{[N]:N}:void 0};return lt(A)?T?.(A)??n.getCategoryValues(A)??{}:Array.isArray(A)?A.reduce((S,N)=>(S[N]=N,S),{}):os(A)?A(_?T:n.getCategoryValues):A},v=rt((R,_)=>({[R]:R.startsWith("--")?n.getVar(_,_):_})),y=Object.assign(n.getVar,{raw:R=>n.getByName(R)}),b=rt((R,_)=>{const A=k(R);lt(_)&&!_.includes("_EMO_")&&(_=n.expandReferenceInValue(_));const T=t[A];if(!T)return v(A,_);const S=o.get(A)?.[_];if(!T.transform)return v(R,S??_);const N=z=>Ik(z,y);return T.transform(S??_,{raw:_,token:y,utils:{colorMix:N}})});function x(){l(),c(),a(),h()}x();const C=r.size>0,k=rt(R=>r.get(R)??R);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:C,transform:b,shorthands:r,resolveShorthand:k,register:i,getTypes:f,addPropertyType:m}}const De={};function Ih(...e){const t=Wd(...e),{theme:n={},utilities:r={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=SC(t),c=WC({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=rC(n.breakpoints??De),d=aC({conditions:t.conditions??De,breakpoints:u}),h=qC({config:r,tokens:c});function m(){const{textStyles:B,layerStyles:W,animationStyles:ne}=n,Re=mr({textStyle:B,layerStyle:W,animationStyle:ne});for(const[Ge,Ht]of Object.entries(Re)){const lr=Kd(Ht??De,Rh);h.register(Ge,{values:Object.keys(lr),transform(rl){return x(lr[rl])}})}}m(),h.addPropertyType("animationName",Object.keys(n.keyframes??De));const f=new Set(["css",...h.keys(),...d.keys()]),p=rt(B=>f.has(B)||Jk(B)),v=B=>Array.isArray(B)?B.reduce((W,ne,Re)=>{const Ge=d.breakpoints[Re];return ne!=null&&(W[Ge]=ne),W},{}):B,y=wC({utility:h,normalize:v}),b=OC({conditions:d,isValidProperty:p}),x=dh({transform:h.transform,conditions:d,normalize:y}),C=xC({css:x,conditions:d,normalize:y,layers:l}),k=TC({cva:C});function E(){const B={};for(const[W,ne]of c.cssVarMap.entries()){const Re=Object.fromEntries(ne);if(Object.keys(Re).length===0)continue;const Ge=W==="base"?i:d.resolve(W),Ht=Ge.startsWith("@"),lr=x(b({[Ge]:Ht?{[i]:Re}:Re}));Xn(B,lr)}return l.wrap("tokens",B)}function I(){const B=Object.fromEntries(Object.entries(n.keyframes??De).map(([ne,Re])=>[`@keyframes ${ne}`,Re])),W=Object.assign({},B,x(b(o)));return l.wrap("base",W)}function R(B){return _n(B,p)}function _(){const B=EC({preflight:a});return l.wrap("reset",B)}const A=KC(c),T=(B,W)=>A.get(B)?.value||W;T.var=(B,W)=>A.get(B)?.variable||W;function S(B,W){return n.recipes?.[B]??W}function N(B,W){return n.slotRecipes?.[B]??W}function z(B){return Object.hasOwnProperty.call(n.recipes??De,B)}function D(B){return Object.hasOwnProperty.call(n.slotRecipes??De,B)}function q(B){return z(B)||D(B)}const K=[_(),I(),E()],ce={layerStyles:Ca(n.layerStyles??De),textStyles:Ca(n.textStyles??De),animationStyles:Ca(n.animationStyles??De),tokens:Th(c,Object.keys(n.tokens??De),(B,W)=>!B.extensions.conditions&&!W.includes("colorPalette")),semanticTokens:Th(c,Object.keys(n.semanticTokens??De),B=>!!B.extensions.conditions),keyframes:Nh(n.keyframes??De),breakpoints:Nh(n.breakpoints??De)};return{$$chakra:!0,_config:t,_global:K,breakpoints:u,tokens:c,conditions:d,utility:h,token:T,properties:f,layers:l,isValidProperty:p,splitCssProps:R,normalizeValue:v,getTokenCss:E,getGlobalCss:I,getPreflightCss:_,css:x,cva:C,sva:k,getRecipe:S,getSlotRecipe:N,hasRecipe:q,isRecipe:z,isSlotRecipe:D,query:ce}}function KC(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:o,conditions:i}=n.extensions,s=i||o?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const Rh=e=>_e(e)&&"value"in e,Ca=e=>({list(){return Object.keys(Kd(e,Rh))},search(t){return this.list().filter(n=>n.includes(t))}}),Th=(e,t,n)=>({categoryKeys:t,list(r){return Array.from(e.categoryMap.get(r)?.entries()??[]).reduce((o,[i,s])=>(n(s,i)&&o.push(i),o),[])},search(r,o){return this.list(r).filter(i=>i.includes(o))}}),Nh=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),YC={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Sa="var(--chakra-empty,/*!*/ /*!*/)",XC=Ak({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Sa,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Sa])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Sa])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),QC=Fk({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),JC=Vk({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),wa=fe({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),ZC=fe({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Se=fe({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:eS,defaultVariants:tS}=wa,nS=fe({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:eS,defaultVariants:tS}),Ah=fe({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),rS=fe({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),oS=fe({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),iS=fe({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),he=fe({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),sS=fe({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:he.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),aS=fe({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),lS=fe({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),cS=fe({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),we=fe({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),uS=fe({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),dS=fe({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),hS=fe({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),fS=fe({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),gS=fe({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),pS={badge:wa,button:ZC,code:nS,container:rS,heading:oS,input:he,inputAddon:sS,kbd:aS,link:lS,mark:cS,separator:uS,skeleton:dS,skipNavLink:hS,spinner:fS,textarea:gS,icon:iS,checkmark:Se,radiomark:we,colorSwatch:Ah},mS=pa.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),vS=pa.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),bS=pa.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),yS=uu.extendWith("itemBody"),xS=j("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),kS=j("alert").parts("title","description","root","indicator","content"),CS=j("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),SS=j("blockquote").parts("root","icon","content","caption"),wS=j("card").parts("root","header","body","footer","title","description"),ES=j("checkbox-card",["root","control","label","description","addon","indicator","content"]),OS=j("data-list").parts("root","item","itemLabel","itemValue"),PS=Ys.extendWith("header","body","footer","backdrop"),IS=Ys.extendWith("header","body","footer","backdrop"),RS=Ju.extendWith("textarea"),TS=j("empty-state",["root","content","indicator","title","description"]),NS=ed.extendWith("requiredIndicator"),AS=nd.extendWith("content"),_S=rd.extendWith("itemContent","dropzoneContent","fileText"),VS=j("list").parts("root","item","indicator"),FS=ud.extendWith("itemCommand"),LS=j("select").parts("root","field","indicator"),DS=Pd.extendWith("header","body","footer"),_h=la.extendWith("itemAddon","itemIndicator"),zS=_h.extendWith("itemContent","itemDescription"),MS=Rd.extendWith("itemIndicator"),jS=Ad.extendWith("indicatorGroup"),$S=Yx.extendWith("indicatorGroup","empty"),BS=Ld.extendWith("markerIndicator"),WS=j("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),HS=j("status").parts("root","indicator"),US=j("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),GS=Dd.extendWith("indicator"),qS=j("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),KS=j("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),YS=j("tabs").parts("root","trigger","list","content","contentGroup","indicator"),XS=j("tag").parts("root","label","closeTrigger","startElement","endElement"),QS=j("timeline").parts("root","item","content","separator","indicator","connector","title","description"),JS=hx.extendWith("channelText"),ZS=j("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);xu.extendWith("valueText");const ew=S1,tw=$({className:"chakra-accordion",slots:yS.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),nw=$({className:"chakra-action-bar",slots:xS.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),rw=$({slots:kS.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),ow=$({slots:fu.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),iw=$({className:"chakra-blockquote",slots:SS.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),sw=$({className:"chakra-breadcrumb",slots:CS.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),aw=$({className:"chakra-card",slots:wS.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),lw=$({slots:dx.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Se.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Se.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Se.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Se.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Se.variants?.size?.lg}},variant:{outline:{control:Se.variants?.variant?.outline},solid:{control:Se.variants?.variant?.solid},subtle:{control:Se.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),cw=$({slots:ES.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Se.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:Se.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Se.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Se.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:Se.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Se.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:Se.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Se.variants?.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),uw=$({slots:ZS.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),dw=$({slots:Cc.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),hw=$({className:"colorPicker",slots:JS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...Ah.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...he.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:he.variants?.size?.["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:he.variants?.size?.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:he.variants?.size?.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:he.variants?.size?.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:he.variants?.size?.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:he.variants?.size?.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:he.variants?.size?.["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:he.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:he.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),fw=$({className:"chakra-combobox",slots:$S.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),gw=$({slots:OS.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),pw=$({slots:PS.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),mw=$({slots:IS.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),Vh=Qn({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),vw=$({slots:RS.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Vh,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Vh,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),bw=$({slots:TS.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),yw=$({className:"chakra-field",slots:NS.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),xw=$({className:"fieldset",slots:AS.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),kw=$({className:"chakra-file-upload",slots:_S.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),Cw=$({className:"chakra-hover-card",slots:od.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),Sw=$({className:"chakra-list",slots:VS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),ww=$({className:"chakra-listbox",slots:ew.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),Ew=$({className:"chakra-menu",slots:FS.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),ai=$({className:"chakra-select",slots:jS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),Ow=$({className:"chakra-native-select",slots:LS.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:ai.variants?.variant.outline.trigger},subtle:{field:ai.variants?.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:ai.defaultVariants});function Ea(e,t){const n={};for(const r in e){const o=t(r,e[r]);n[o[0]]=o[1]}return n}const Fh=Qn({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),Pw=$({className:"chakra-number-input",slots:kd.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...he.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...Fh,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Fh,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:he.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:he.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:he.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:he.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Ea(he.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Lh,defaultVariants:Iw}=he,Rw=$({className:"chakra-pin-input",slots:Od.keys(),base:{input:{...he.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Ea(Lh.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Ea(Lh.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:Iw}),Tw=$({className:"chakra-popover",slots:DS.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),Nw=$({slots:aa.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),Aw=$({className:"chakra-progress-circle",slots:aa.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),_w=$({slots:Id.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),Vw=$({className:"chakra-radio-card",slots:zS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:we.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:we.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:we.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:we.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:we.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:we.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:we.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:we.variants?.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),Fw=$({className:"chakra-radio-group",slots:_h.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:we.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:we.variants?.variant?.outline},subtle:{itemControl:we.variants?.variant?.subtle},solid:{itemControl:we.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:we.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:we.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:we.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:we.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),Lw=$({className:"chakra-rating-group",slots:MS.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),Dw=$({className:"chakra-scroll-area",slots:Td.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),zw=$({className:"chakra-segment-group",slots:Nd.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),Mw=$({className:"chakra-slider",slots:BS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),jw=$({className:"chakra-stat",slots:WS.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),$w=$({className:"chakra-status",slots:HS.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),Bw=$({className:"chakra-steps",slots:US.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),Ww=$({slots:GS.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),Hw=$({className:"chakra-table",slots:qS.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),Uw=$({slots:YS.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),li=wa.variants?.variant,Gw=$({slots:XS.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:li?.subtle},solid:{root:li?.solid},outline:{root:li?.outline},surface:{root:li?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),qw=$({slots:QS.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),Kw=$({slots:KS.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),Yw=$({slots:zd.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),Dh=Qn({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),zh=Qn({flex:"1"}),Mh=Qn({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),jh=Qn({_selected:{layerStyle:"fill.solid"}}),Xw=$({slots:ad.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:Dh,item:Dh,itemText:zh,branchText:zh,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:Mh,item:Mh},solid:{branchControl:jh,item:jh}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),Qw={accordion:tw,actionBar:nw,alert:rw,avatar:ow,blockquote:iw,breadcrumb:sw,card:aw,checkbox:lw,checkboxCard:cw,codeBlock:uw,collapsible:dw,dataList:gw,dialog:pw,drawer:mw,editable:vw,emptyState:bw,field:yw,fieldset:xw,fileUpload:kw,hoverCard:Cw,list:Sw,listbox:ww,menu:Ew,nativeSelect:Ow,numberInput:Pw,pinInput:Rw,popover:Tw,progress:Nw,progressCircle:Aw,radioCard:Vw,radioGroup:Fw,ratingGroup:Lw,scrollArea:Dw,segmentGroup:zw,select:ai,combobox:fw,slider:Mw,stat:jw,steps:Bw,switch:Ww,table:Hw,tabs:Uw,tag:Gw,toast:Kw,tooltip:Yw,status:$w,timeline:qw,colorPicker:hw,qrCode:_w,treeView:Xw},Jw=_k({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),Zw=de.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),eE=de.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),tE=de.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),nE=de.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),rE=de.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),oE=de.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),iE=de.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),sE=de.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),aE=de.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),lE=de.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),$h='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',cE=de.fonts({heading:{value:`Inter, ${$h}`},body:{value:`Inter, ${$h}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),uE=Nk({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),dE=de.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),hE=de.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),fE=de.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),Bh=de.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),gE=de.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),pE=de.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),mE=de.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),vE=de.sizes({...gE,...Bh,...mE,...pE}),bE=de.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),yE=ma({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:XC,theme:{breakpoints:YC,keyframes:uE,tokens:{aspectRatios:eE,animations:Zw,blurs:tE,borders:nE,colors:rE,durations:iE,easings:sE,fonts:cE,fontSizes:aE,fontWeights:lE,letterSpacings:dE,lineHeights:hE,radii:fE,spacing:Bh,sizes:vE,zIndex:bE,cursor:oE},semanticTokens:{colors:mS,shadows:bS,radii:vS},recipes:pS,slotRecipes:Qw,textStyles:Jw,layerStyles:QC,animationStyles:JC}}),Wh=Wd(Wk,yE);Ih(Wh);function xE(e){const{key:t,recipe:n}=e,r=ao();return P.useMemo(()=>{const o=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(o))},[t,n,r])}const kE=e=>e.charAt(0).toUpperCase()+e.slice(1),ci=e=>{const{key:t,recipe:n}=e,r=kE(t||n.className||"Component"),[o,i]=An({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=An({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=An({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(f){const{unstyled:p,...v}=f,y=xE({key:t,recipe:v.recipe||n}),[b,x]=P.useMemo(()=>y.splitVariantProps(v),[v,y]);return{styles:P.useMemo(()=>p?Nm:y(b),[p,b,y]),classNames:y.classNameMap,props:x}}function d(f,p={}){const{defaultProps:v}=p,y=b=>{const x=c(),C=P.useMemo(()=>pr(v,x,b),[x,b]),{styles:k,classNames:E,props:I}=u(C);return g.jsx(o,{value:k,children:g.jsx(s,{value:E,children:g.jsx(f,{...I})})})};return y.displayName=f.displayName||f.name,y}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(f,p,v)=>{const{defaultProps:y,...b}=v??{},x=me(f,{},b),C=P.forwardRef((k,E)=>{const I=c(),R=P.useMemo(()=>pr(y??{},I,k),[I,k]),{styles:_,props:A,classNames:T}=u(R),S=T[p],N=g.jsx(o,{value:_,children:g.jsx(s,{value:T,children:g.jsx(x,{ref:E,...A,css:[_[p],R.css],className:qe(R.className,S)})})});return v?.wrapElement?.(N,R)??N});return C.displayName=f.displayName||f.name,C},withContext:(f,p,v)=>{const y=me(f,{},v),b=P.forwardRef((x,C)=>{const{unstyled:k,...E}=x,I=i(),_=a()?.[p];return g.jsx(y,{...E,css:[!k&&p?I[p]:void 0,x.css],ref:C,className:qe(x.className,_)})});return b.displayName=f.displayName||f.name,b},withRootProvider:d,useStyles:i,useClassNames:a}},Hh=me("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});Hh.displayName="AbsoluteCenter";const CE=e=>g.jsx(me.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:g.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),Uh=e=>g.jsx(me.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:g.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),Gh=e=>g.jsx(me.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:g.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),SE=e=>g.jsx(me.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),[wE,EE]=An({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:OE,withContext:Oa,useStyles:PE}=ci({key:"alert"}),IE=OE("div","root",{forwardAsChild:!0,wrapElement(e,t){return g.jsx(wE,{value:{status:t.status||"info"},children:e})}}),qh=Oa("div","title"),RE=Oa("div","description"),TE=Oa("div","content"),NE={info:Gh,warning:Uh,success:CE,error:Uh,neutral:Gh},AE=P.forwardRef(function(t,n){const r=EE(),o=PE(),i=typeof r.status=="string"?NE[r.status]:P.Fragment,{children:s=g.jsx(i,{}),...a}=t;return g.jsx(me.span,{ref:n,...a,css:[o.indicator,t.css],children:s})}),_E=e=>e?"":void 0,{withContext:VE}=Rt({key:"badge"}),Kh=VE("span"),{withContext:FE}=Rt({key:"spinner"}),LE=FE("span"),DE=O.forwardRef(function(t,n){const{spinner:r=g.jsx(LE,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:i,text:s,visible:a=!0,...l}=t;return a?s?g.jsxs(To,{ref:n,display:"contents",...l,children:[o==="start"&&r,s,o==="end"&&r]}):r?g.jsxs(To,{ref:n,display:"contents",...l,children:[g.jsx(Hh,{display:"inline-flex",children:r}),g.jsx(To,{visibility:"hidden",display:"contents",children:i})]}):g.jsx(To,{ref:n,display:"contents",...l,children:i}):i}),{useRecipeResult:zE,usePropsContext:ME}=Rt({key:"button"}),Pe=P.forwardRef(function(t,n){const r=ME(),o=P.useMemo(()=>pr(r,t),[r,t]),i=zE(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=i.props;return g.jsx(me.button,{type:"button",ref:n,...d,"data-loading":_E(s),disabled:s||d.disabled,className:qe(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?g.jsx(DE,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})}),Ct=P.forwardRef(function(t,n){return g.jsx(Pe,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),un=O.forwardRef(function(t,n){return g.jsx(Ct,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??g.jsx(SE,{})})}),Yh=me("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});Yh.displayName="Center";const{withContext:jE}=Rt({key:"code"}),$E=jE("code");function BE(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":Bd(n,o=>r[o])}}function WE(e){return P.Children.toArray(e).filter(t=>P.isValidElement(t))}const Xh=P.forwardRef(function(t,n){const{direction:r="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,h=P.useMemo(()=>BE({gap:s,direction:r}),[s,r]),m=P.useMemo(()=>P.isValidElement(c)?WE(l).map((f,p,v)=>{const y=typeof f.key<"u"?f.key:p,b=c,x=P.cloneElement(b,{css:[h,b.props.css]});return g.jsxs(P.Fragment,{children:[f,p===v.length-1?null:x]},y)}):l,[l,c,h]);return g.jsx(me.div,{ref:n,display:"flex",alignItems:o,justifyContent:i,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:qe("chakra-stack",u),...d,children:m})}),{withRootProvider:Qh,withContext:pt}=ci({key:"dialog"});Qh(p1,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const dn=Qh(g1,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});pt(Qu,"trigger",{forwardAsChild:!0});const hn=pt(Wu,"positioner",{forwardAsChild:!0}),fn=pt($u,"content",{forwardAsChild:!0});pt(Bu,"description",{forwardAsChild:!0});const gn=pt(Xu,"title",{forwardAsChild:!0}),pn=pt(ju,"closeTrigger",{forwardAsChild:!0}),mn=P.forwardRef(function(t,n){const r=Dt();return g.jsx(me.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),vn=pt(Mu,"backdrop",{forwardAsChild:!0}),bn=pt("div","body"),yn=pt("div","footer"),xn=pt("div","header");function HE(e){const{each:t,fallback:n,children:r}=e;return t?.length===0?n||null:t?.map(r)}const ui=P.forwardRef(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return g.jsx(me.div,{ref:n,...d,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})}),{withContext:UE}=Rt({key:"input"}),GE=UE(Zu),{withContext:qE}=Rt({key:"link"}),Mr=qE("a"),{withProvider:KE,withContext:Jh}=ci({key:"list"}),Zh=KE("ul","root",{defaultProps:{role:"list"}}),ef=Jh("li","item");Jh("span","indicator");const YE=P.forwardRef(function(t,n){return g.jsx(Xh,{align:"center",...t,direction:"row",ref:n})}),di=P.forwardRef(function(t,n){return g.jsx(Xh,{align:"center",...t,direction:"column",ref:n})}),{StylesProvider:XE,ClassNamesProvider:QE,useRecipeResult:JE,withContext:St}=ci({key:"table"}),tf=P.forwardRef(function({native:t,...n},r){const{styles:o,props:i,classNames:s}=JE(n),a=P.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return g.jsx(QE,{value:s,children:g.jsx(XE,{value:o,children:g.jsx(me.table,{ref:r,...i,css:[a,n.css],className:qe(s?.root,n.className)})})})}),hi=St("tr","row");me("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const nf=St("thead","header");St("tfoot","footer");const xe=St("th","columnHeader"),ke=St("td","cell");St("caption","caption",{defaultProps:{captionSide:"bottom"}});const rf=St("tbody","body");St("colgroup"),St("col");const{withContext:ZE}=Rt({key:"textarea"}),of=ZE(td);var tr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},e2={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},t2=class{#e=e2;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},kn=new t2;function n2(e){setTimeout(e,0)}var Cn=typeof window>"u"||"Deno"in globalThis;function Ne(){}function r2(e,t){return typeof e=="function"?e(t):e}function Pa(e){return typeof e=="number"&&e>=0&&e!==1/0}function sf(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jt(e,t){return typeof e=="function"?e(t):e}function Je(e,t){return typeof e=="function"?e(t):e}function af(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Ia(s,t.options))return!1}else if(!jr(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function lf(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Sn(t.options.mutationKey)!==Sn(i))return!1}else if(!jr(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Ia(e,t){return(t?.queryKeyHashFn||Sn)(e)}function Sn(e){return JSON.stringify(e,(t,n)=>Ra(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function jr(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>jr(e[n],t[n])):!1}var o2=Object.prototype.hasOwnProperty;function cf(e,t){if(e===t)return e;const n=uf(e)&&uf(t);if(!n&&!(Ra(e)&&Ra(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let l=0;for(let c=0;c{kn.setTimeout(t,e)})}function Ta(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?cf(e,t):t}function s2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function a2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Na=Symbol();function hf(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Na?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ff(e,t){return typeof e=="function"?e(...t):!!e}var l2=class extends tr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Cn&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Aa=new l2;function _a(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var c2=n2;function u2(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=c2;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var ge=u2(),d2=class extends tr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Cn&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},gi=new d2;function h2(e){return Math.min(1e3*2**e,3e4)}function gf(e){return(e??"online")==="online"?gi.isOnline():!0}var Va=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function pf(e){let t=!1,n=0,r;const o=_a(),i=()=>o.status!=="pending",s=p=>{if(!i()){const v=new Va(p);h(v),e.onCancel?.(v)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Aa.isFocused()&&(e.networkMode==="always"||gi.isOnline())&&e.canRun(),u=()=>gf(e.networkMode)&&e.canRun(),d=p=>{i()||(r?.(),o.resolve(p))},h=p=>{i()||(r?.(),o.reject(p))},m=()=>new Promise(p=>{r=v=>{(i()||c())&&p(v)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),f=()=>{if(i())return;let p;const v=n===0?e.initialPromise:void 0;try{p=v??e.fn()}catch(y){p=Promise.reject(y)}Promise.resolve(p).then(d).catch(y=>{if(i())return;const b=e.retry??(Cn?0:3),x=e.retryDelay??h2,C=typeof x=="function"?x(n,y):x,k=b===!0||typeof b=="number"&&nc()?void 0:m()).then(()=>{t?h(y):f()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r?.(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?f():m().then(f),o)}}var mf=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pa(this.gcTime)&&(this.#e=kn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Cn?1/0:300*1e3))}clearGcTimeout(){this.#e&&(kn.clearTimeout(this.#e),this.#e=void 0)}},f2=class extends mf{#e;#t;#n;#r;#o;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=bf(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#o?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=bf(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Ta(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#o?.promise;return this.#o?.cancel(e),t?t.then(Ne).catch(Ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>Je(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Na||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>jt(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!sf(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#o?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#o?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#o&&(this.#a?this.#o.cancel({revert:!0}):this.#o.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#o?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#o.continueRetry(),this.#o.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,r=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},o=()=>{const a=hf(this.options,t),c=(()=>{const u={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return r(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#o=pf({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof Va&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(a,l)=>{this.#i({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#o.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof Va){if(a.silent)return this.#o.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...vf(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),ge.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function vf(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gf(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function bf(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var g2=class extends tr{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=_a(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#o;#s;#a;#i;#p;#h;#f;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),yf(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fa(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fa(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#k(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Je(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!fi(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&xf(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||Je(this.options.enabled,this.#t)!==Je(t.enabled,this.#t)||jt(this.options.staleTime,this.#t)!==jt(t.staleTime,this.#t))&&this.#m();const o=this.#v();r&&(this.#t!==n||Je(this.options.enabled,this.#t)!==Je(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return m2(this,n)&&(this.#r=n,this.#s=this.options,this.#o=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Ne)),t}#m(){this.#x();const e=jt(this.options.staleTime,this.#t);if(Cn||this.#r.isStale||!Pa(e))return;const n=sf(this.#r.dataUpdatedAt,e)+1;this.#c=kn.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#k(),this.#l=e,!(Cn||Je(this.options.enabled,this.#t)===!1||!Pa(this.#l)||this.#l===0)&&(this.#u=kn.setInterval(()=>{(this.options.refetchIntervalInBackground||Aa.isFocused())&&this.#d()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(kn.clearTimeout(this.#c),this.#c=void 0)}#k(){this.#u&&(kn.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,o=this.#r,i=this.#o,s=this.#s,l=e!==n?e.state:this.#n,{state:c}=e;let u={...c},d=!1,h;if(t._optimisticResults){const R=this.hasListeners(),_=!R&&yf(e,t),A=R&&xf(e,n,t,r);(_||A)&&(u={...u,...vf(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:m,errorUpdatedAt:f,status:p}=u;h=u.data;let v=!1;if(t.placeholderData!==void 0&&h===void 0&&p==="pending"){let R;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(R=o.data,v=!0):R=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,R!==void 0&&(p="success",h=Ta(o?.data,R,t),d=!0)}if(t.select&&h!==void 0&&!v)if(o&&h===i?.data&&t.select===this.#p)h=this.#h;else try{this.#p=t.select,h=t.select(h),h=Ta(o?.data,h,t),this.#h=h,this.#i=null}catch(R){this.#i=R}this.#i&&(m=this.#i,h=this.#h,f=Date.now(),p="error");const y=u.fetchStatus==="fetching",b=p==="pending",x=p==="error",C=b&&y,k=h!==void 0,I={status:p,fetchStatus:u.fetchStatus,isPending:b,isSuccess:p==="success",isError:x,isInitialLoading:C,isLoading:C,data:h,dataUpdatedAt:u.dataUpdatedAt,error:m,errorUpdatedAt:f,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:y,isRefetching:y&&!b,isLoadingError:x&&!k,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:x&&k,isStale:La(e,t),refetch:this.refetch,promise:this.#a,isEnabled:Je(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const R=T=>{I.status==="error"?T.reject(I.error):I.data!==void 0&&T.resolve(I.data)},_=()=>{const T=this.#a=I.promise=_a();R(T)},A=this.#a;switch(A.status){case"pending":e.queryHash===n.queryHash&&R(A);break;case"fulfilled":(I.status==="error"||I.data!==A.value)&&_();break;case"rejected":(I.status!=="error"||I.error!==A.reason)&&_();break}}return I}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#o=this.#t.state,this.#s=this.options,this.#o.data!==void 0&&(this.#f=this.#t),fi(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#g.size)return!0;const i=new Set(o??this.#g);return this.options.throwOnError&&i.add("error"),Object.keys(this.#r).some(s=>{const a=s;return this.#r[a]!==e[a]&&i.has(a)})};this.#S({listeners:n()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#S(e){ge.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function p2(e,t){return Je(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function yf(e,t){return p2(e,t)||e.state.data!==void 0&&Fa(e,t,t.refetchOnMount)}function Fa(e,t,n){if(Je(t.enabled,e)!==!1&&jt(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&La(e,t)}return!1}function xf(e,t,n,r){return(e!==t||Je(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&La(e,n)}function La(e,t){return Je(t.enabled,e)!==!1&&e.isStaleByTime(jt(t.staleTime,e))}function m2(e,t){return!fi(e.getCurrentResult(),t)}function kf(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const d=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},h=hf(t.options,t.fetchOptions),m=async(f,p,v)=>{if(u)return Promise.reject();if(p==null&&f.pages.length)return Promise.resolve(f);const b=(()=>{const E={client:t.client,queryKey:t.queryKey,pageParam:p,direction:v?"backward":"forward",meta:t.options.meta};return d(E),E})(),x=await h(b),{maxPages:C}=t.options,k=v?a2:s2;return{pages:k(f.pages,x,C),pageParams:k(f.pageParams,p,C)}};if(o&&i.length){const f=o==="backward",p=f?v2:Cf,v={pages:i,pageParams:s},y=p(r,v);a=await m(v,y,f)}else{const f=e??i.length;do{const p=l===0?s[0]??r.initialPageParam:Cf(r,a);if(l>0&&p==null)break;a=await m(a,p),l++}while(lt.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function Cf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function v2(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var b2=class extends mf{#e;#t;#n;constructor(e){super(),this.mutationId=e.mutationId,this.#t=e.mutationCache,this.#e=[],this.state=e.state||Sf(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})};this.#n=pf({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(o,i)=>{this.#r({type:"failed",failureCount:o,error:i})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const n=this.state.status==="pending",r=!this.#n.canStart();try{if(n)t();else{this.#r({type:"pending",variables:e,isPaused:r}),await this.#t.config.onMutate?.(e,this);const i=await this.options.onMutate?.(e);i!==this.state.context&&this.#r({type:"pending",context:i,variables:e,isPaused:r})}const o=await this.#n.start();return await this.#t.config.onSuccess?.(o,e,this.state.context,this),await this.options.onSuccess?.(o,e,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,e,this.state.context),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,e,this.state.context,this),await this.options.onError?.(o,e,this.state.context),await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,e,this.state.context),o}finally{this.#r({type:"error",error:o})}}finally{this.#t.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ge.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#t.notify({mutation:this,type:"updated",action:e})})}};function Sf(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var y2=class extends tr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const r=new b2({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);const t=pi(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=pi(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=pi(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=pi(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ge.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>lf(t,n))}findAll(e={}){return this.getAll().filter(t=>lf(e,t))}notify(e){ge.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ge.batch(()=>Promise.all(e.map(t=>t.continue().catch(Ne))))}};function pi(e){return e.options.scope?.id}var x2=class extends tr{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#o()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),fi(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&Sn(t.mutationKey)!==Sn(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#o(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#o(),this.#s()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#o(){const e=this.#n?.state??Sf();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){ge.batch(()=>{if(this.#r&&this.hasListeners()){const t=this.#t.variables,n=this.#t.context;e?.type==="success"?(this.#r.onSuccess?.(e.data,t,n),this.#r.onSettled?.(e.data,null,t,n)):e?.type==="error"&&(this.#r.onError?.(e.error,t,n),this.#r.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach(t=>{t(this.#t)})})}},k2=class extends tr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,o=t.queryHash??Ia(r,t);let i=this.get(o);return i||(i=new f2({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ge.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>af(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>af(e,n)):t}notify(e){ge.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ge.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ge.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},C2=class{#e;#t;#n;#r;#o;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new k2,this.#t=e.mutationCache||new y2,this.#n=e.defaultOptions||{},this.#r=new Map,this.#o=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=Aa.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=gi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(jt(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,s=r2(t,i);if(s!==void 0)return this.#e.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ge.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;ge.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return ge.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ge.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ne).catch(Ne)}invalidateQueries(e,t={}){return ge.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ge.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ne)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ne)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(jt(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ne).catch(Ne)}fetchInfiniteQuery(e){return e.behavior=kf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ne).catch(Ne)}ensureInfiniteQueryData(e){return e.behavior=kf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return gi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Sn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{jr(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#o.set(Sn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#o.values()],n={};return t.forEach(r=>{jr(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ia(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Na&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},wf=O.createContext(void 0),Ef=e=>{const t=O.useContext(wf);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},S2=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(wf.Provider,{value:e,children:t})),Of=O.createContext(!1),w2=()=>O.useContext(Of);Of.Provider;function E2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var O2=O.createContext(E2()),P2=()=>O.useContext(O2),I2=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},R2=e=>{O.useEffect(()=>{e.clearReset()},[e])},T2=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||ff(n,[e.error,r])),N2=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},A2=(e,t)=>e.isLoading&&e.isFetching&&!t,_2=(e,t)=>e?.suspense&&t.isPending,Pf=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function V2(e,t,n){const r=w2(),o=P2(),i=Ef(),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=r?"isRestoring":"optimistic",N2(s),I2(s,o),R2(o);const a=!i.getQueryCache().get(s.queryHash),[l]=O.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(d=>{const h=u?l.subscribe(ge.batchCalls(d)):Ne;return l.updateResult(),h},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(s)},[s,l]),_2(s,c))throw Pf(s,l,o);if(T2({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!Cn&&A2(c,r)&&(a?Pf(s,l,o):i.getQueryCache().get(s.queryHash)?.promise)?.catch(Ne).finally(()=>{l.updateResult()}),s.notifyOnChangeProps?c:l.trackResult(c)}function If(e,t){return V2(e,g2)}function wn(e,t){const n=Ef(),[r]=O.useState(()=>new x2(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);const o=O.useSyncExternalStore(O.useCallback(s=>r.subscribe(ge.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=O.useCallback((s,a)=>{r.mutate(s,a).catch(Ne)},[r]);if(o.error&&ff(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function Rf(e,t){return function(){return e.apply(t,arguments)}}const{toString:F2}=Object.prototype,{getPrototypeOf:Da}=Object,{iterator:mi,toStringTag:Tf}=Symbol,vi=(e=>t=>{const n=F2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ot=e=>(e=e.toLowerCase(),t=>vi(t)===e),bi=e=>t=>typeof t===e,{isArray:nr}=Array,rr=bi("undefined");function $r(e){return e!==null&&!rr(e)&&e.constructor!==null&&!rr(e.constructor)&&ze(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Nf=ot("ArrayBuffer");function L2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nf(e.buffer),t}const D2=bi("string"),ze=bi("function"),Af=bi("number"),Br=e=>e!==null&&typeof e=="object",z2=e=>e===!0||e===!1,yi=e=>{if(vi(e)!=="object")return!1;const t=Da(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Tf in e)&&!(mi in e)},M2=e=>{if(!Br(e)||$r(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},j2=ot("Date"),$2=ot("File"),B2=ot("Blob"),W2=ot("FileList"),H2=e=>Br(e)&&ze(e.pipe),U2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ze(e.append)&&((t=vi(e))==="formdata"||t==="object"&&ze(e.toString)&&e.toString()==="[object FormData]"))},G2=ot("URLSearchParams"),[q2,K2,Y2,X2]=["ReadableStream","Request","Response","Headers"].map(ot),Q2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),nr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const En=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Vf=e=>!rr(e)&&e!==En;function za(){const{caseless:e,skipUndefined:t}=Vf(this)&&this||{},n={},r=(o,i)=>{const s=e&&_f(n,i)||i;yi(n[s])&&yi(o)?n[s]=za(n[s],o):yi(o)?n[s]=za({},o):nr(o)?n[s]=o.slice():(!t||!rr(o))&&(n[s]=o)};for(let o=0,i=arguments.length;o(Wr(t,(o,i)=>{n&&ze(o)?e[i]=Rf(o,n):e[i]=o},{allOwnKeys:r}),e),Z2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),eO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},tO=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Da(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},nO=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},rO=e=>{if(!e)return null;if(nr(e))return e;let t=e.length;if(!Af(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},oO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Da(Uint8Array)),iO=(e,t)=>{const r=(e&&e[mi]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},sO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},aO=ot("HTMLFormElement"),lO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ff=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cO=ot("RegExp"),Lf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wr(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},uO=e=>{Lf(e,(t,n)=>{if(ze(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ze(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},dO=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return nr(e)?r(e):r(String(e).split(t)),n},hO=()=>{},fO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gO(e){return!!(e&&ze(e.append)&&e[Tf]==="FormData"&&e[mi])}const pO=e=>{const t=new Array(10),n=(r,o)=>{if(Br(r)){if(t.indexOf(r)>=0)return;if($r(r))return r;if(!("toJSON"in r)){t[o]=r;const i=nr(r)?[]:{};return Wr(r,(s,a)=>{const l=n(s,o+1);!rr(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},mO=ot("AsyncFunction"),vO=e=>e&&(Br(e)||ze(e))&&ze(e.then)&&ze(e.catch),Df=((e,t)=>e?setImmediate:t?((n,r)=>(En.addEventListener("message",({source:o,data:i})=>{o===En&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),En.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ze(En.postMessage)),bO=typeof queueMicrotask<"u"?queueMicrotask.bind(En):typeof process<"u"&&process.nextTick||Df,w={isArray:nr,isArrayBuffer:Nf,isBuffer:$r,isFormData:U2,isArrayBufferView:L2,isString:D2,isNumber:Af,isBoolean:z2,isObject:Br,isPlainObject:yi,isEmptyObject:M2,isReadableStream:q2,isRequest:K2,isResponse:Y2,isHeaders:X2,isUndefined:rr,isDate:j2,isFile:$2,isBlob:B2,isRegExp:cO,isFunction:ze,isStream:H2,isURLSearchParams:G2,isTypedArray:oO,isFileList:W2,forEach:Wr,merge:za,extend:J2,trim:Q2,stripBOM:Z2,inherits:eO,toFlatObject:tO,kindOf:vi,kindOfTest:ot,endsWith:nO,toArray:rO,forEachEntry:iO,matchAll:sO,isHTMLForm:aO,hasOwnProperty:Ff,hasOwnProp:Ff,reduceDescriptors:Lf,freezeMethods:uO,toObjectSet:dO,toCamelCase:lO,noop:hO,toFiniteNumber:fO,findKey:_f,global:En,isContextDefined:Vf,isSpecCompliantForm:gO,toJSONObject:pO,isAsyncFn:mO,isThenable:vO,setImmediate:Df,asap:bO,isIterable:e=>e!=null&&ze(e[mi])};function H(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}w.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const zf=H.prototype,Mf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Mf[e]={value:e}}),Object.defineProperties(H,Mf),Object.defineProperty(zf,"isAxiosError",{value:!0}),H.from=(e,t,n,r,o,i)=>{const s=Object.create(zf);w.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return H.call(s,a,l,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const yO=null;function Ma(e){return w.isPlainObject(e)||w.isArray(e)}function jf(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function $f(e,t,n){return e?e.concat(t).map(function(o,i){return o=jf(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function xO(e){return w.isArray(e)&&!e.some(Ma)}const kO=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function xi(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!w.isUndefined(v[p])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(w.isDate(f))return f.toISOString();if(w.isBoolean(f))return f.toString();if(!l&&w.isBlob(f))throw new H("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(f)||w.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,p,v){let y=f;if(f&&!v&&typeof f=="object"){if(w.endsWith(p,"{}"))p=r?p:p.slice(0,-2),f=JSON.stringify(f);else if(w.isArray(f)&&xO(f)||(w.isFileList(f)||w.endsWith(p,"[]"))&&(y=w.toArray(f)))return p=jf(p),y.forEach(function(x,C){!(w.isUndefined(x)||x===null)&&t.append(s===!0?$f([p],C,i):s===null?p:p+"[]",c(x))}),!1}return Ma(f)?!0:(t.append($f(v,p,i),c(f)),!1)}const d=[],h=Object.assign(kO,{defaultVisitor:u,convertValue:c,isVisitable:Ma});function m(f,p){if(!w.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(f),w.forEach(f,function(y,b){(!(w.isUndefined(y)||y===null)&&o.call(t,y,w.isString(b)?b.trim():b,p,h))===!0&&m(y,p?p.concat(b):[b])}),d.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Bf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ja(e,t){this._pairs=[],e&&xi(e,this,t)}const Wf=ja.prototype;Wf.append=function(t,n){this._pairs.push([t,n])},Wf.toString=function(t){const n=t?function(r){return t.call(this,r,Bf)}:Bf;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function CO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Hf(e,t,n){if(!t)return e;const r=n&&n.encode||CO;w.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=w.isURLSearchParams(t)?t.toString():new ja(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Uf{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Gf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},SO={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ja,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},$a=typeof window<"u"&&typeof document<"u",Ba=typeof navigator=="object"&&navigator||void 0,wO=$a&&(!Ba||["ReactNative","NativeScript","NS"].indexOf(Ba.product)<0),EO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",OO=$a&&window.location.href||"http://localhost",Ie={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$a,hasStandardBrowserEnv:wO,hasStandardBrowserWebWorkerEnv:EO,navigator:Ba,origin:OO},Symbol.toStringTag,{value:"Module"})),...SO};function PO(e,t){return xi(e,new Ie.classes.URLSearchParams,{visitor:function(n,r,o,i){return Ie.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function IO(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function RO(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&w.isArray(o)?o.length:s,l?(w.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&w.isArray(o[s])&&(o[s]=RO(o[s])),!a)}if(w.isFormData(e)&&w.isFunction(e.entries)){const n={};return w.forEachEntry(e,(r,o)=>{t(IO(r),o,n,0)}),n}return null}function TO(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Hr={transitional:Gf,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(qf(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t)||w.isReadableStream(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return PO(t,this.formSerializer).toString();if((a=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return xi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),TO(t)):t}],transformResponse:[function(t){const n=this.transitional||Hr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(w.isResponse(t)||w.isReadableStream(t))return t;if(t&&w.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?H.from(a,H.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ie.classes.FormData,Blob:Ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{Hr.headers[e]={}});const NO=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AO=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&NO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Kf=Symbol("internals");function Ur(e){return e&&String(e).trim().toLowerCase()}function ki(e){return e===!1||e==null?e:w.isArray(e)?e.map(ki):String(e)}function _O(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const VO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wa(e,t,n,r,o){if(w.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function FO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function LO(e,t){const n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Me=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Ur(l);if(!u)throw new Error("header name must be a non-empty string");const d=w.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=ki(a))}const s=(a,l)=>w.forEach(a,(c,u)=>i(c,u,l));if(w.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(w.isString(t)&&(t=t.trim())&&!VO(t))s(AO(t),n);else if(w.isObject(t)&&w.isIterable(t)){let a={},l,c;for(const u of t){if(!w.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?w.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ur(t),t){const r=w.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _O(o);if(w.isFunction(n))return n.call(this,o,r);if(w.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ur(t),t){const r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Wa(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Ur(s),s){const a=w.findKey(r,s);a&&(!n||Wa(r,r[a],a,n))&&(delete r[a],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Wa(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return w.forEach(this,(o,i)=>{const s=w.findKey(r,i);if(s){n[s]=ki(o),delete n[i];return}const a=t?FO(i):String(i).trim();a!==i&&delete n[i],n[a]=ki(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return w.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Kf]=this[Kf]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Ur(s);r[a]||(LO(o,s),r[a]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}};Me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(Me.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),w.freezeMethods(Me);function Ha(e,t){const n=this||Hr,r=t||n,o=Me.from(r.headers);let i=r.data;return w.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Yf(e){return!!(e&&e.__CANCEL__)}function or(e,t,n){H.call(this,e??"canceled",H.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(or,H,{__CANCEL__:!0});function Xf(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function DO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,h=0;for(;d!==o;)h+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{n=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-d)))},()=>o&&s(o)]}const Ci=(e,t,n=3)=>{let r=0;const o=zO(50,250);return MO(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Qf=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Jf=e=>(...t)=>w.asap(()=>e(...t)),jO=Ie.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ie.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ie.origin),Ie.navigator&&/(msie|trident)/i.test(Ie.navigator.userAgent)):()=>!0,$O=Ie.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function BO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function WO(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Zf(e,t,n){let r=!BO(t);return e&&(r||n==!1)?WO(e,t):t}const eg=e=>e instanceof Me?{...e}:e;function On(e,t){t=t||{};const n={};function r(c,u,d,h){return w.isPlainObject(c)&&w.isPlainObject(u)?w.merge.call({caseless:h},c,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(c,u,d,h){if(w.isUndefined(u)){if(!w.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function i(c,u){if(!w.isUndefined(u))return r(void 0,u)}function s(c,u){if(w.isUndefined(u)){if(!w.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>o(eg(c),eg(u),d,!0)};return w.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,h=d(e[u],t[u],u);w.isUndefined(h)&&d!==a||(n[u]=h)}),n}const tg=e=>{const t=On({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Me.from(s),t.url=Hf(Zf(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),w.isFormData(n)){if(Ie.hasStandardBrowserEnv||Ie.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(w.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&s.set(u,d)})}}if(Ie.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(t)),r||r!==!1&&jO(t.url))){const l=o&&i&&$O.read(i);l&&s.set(o,l)}return t},HO=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=tg(e);let i=o.data;const s=Me.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,h,m,f;function p(){m&&m(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function y(){if(!v)return;const x=Me.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),k={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};Xf(function(I){n(I),p()},function(I){r(I),p()},k),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new H("Request aborted",H.ECONNABORTED,e,v)),v=null)},v.onerror=function(C){const k=C&&C.message?C.message:"Network Error",E=new H(k,H.ERR_NETWORK,e,v);E.event=C||null,r(E),v=null},v.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||Gf;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new H(C,k.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&w.forEach(s.toJSON(),function(C,k){v.setRequestHeader(k,C)}),w.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([h,f]=Ci(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([d,m]=Ci(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=x=>{v&&(r(!x||x.type?new or(null,e,v):x),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const b=DO(o.url);if(b&&Ie.protocols.indexOf(b)===-1){r(new H("Unsupported protocol "+b+":",H.ERR_BAD_REQUEST,e));return}v.send(i||null)})},UO=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof H?u:new or(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new H(`timeout ${t} of ms exceeded`,H.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>w.asap(a),l}},GO=function*(e,t){let n=e.byteLength;if(n{const o=qO(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},rg=64*1024,{isFunction:Si}=w,og=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(w.global),{ReadableStream:ig,TextEncoder:sg}=w.global,ag=(e,...t)=>{try{return!!e(...t)}catch{return!1}},YO=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},og,e),o=Si(t),i=Si(n),s=Si(r);if(!o)return!1;const a=o&&Si(ig),l=o&&(typeof sg=="function"?(f=>p=>f.encode(p))(new sg):async f=>new Uint8Array(await new n(f).arrayBuffer())),c=i&&a&&ag(()=>{let f=!1;const p=new n(Ie.origin,{body:new ig,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!p}),u=s&&a&&ag(()=>w.isReadableStream(new r("").body)),d={stream:u&&(f=>f.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!d[f]&&(d[f]=(p,v)=>{let y=p&&p[f];if(y)return y.call(p);throw new H(`Response type '${f}' is not supported`,H.ERR_NOT_SUPPORT,v)})});const h=async f=>{if(f==null)return 0;if(w.isBlob(f))return f.size;if(w.isSpecCompliantForm(f))return(await new n(Ie.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(w.isArrayBufferView(f)||w.isArrayBuffer(f))return f.byteLength;if(w.isURLSearchParams(f)&&(f=f+""),w.isString(f))return(await l(f)).byteLength},m=async(f,p)=>{const v=w.toFiniteNumber(f.getContentLength());return v??h(p)};return async f=>{let{url:p,method:v,data:y,signal:b,cancelToken:x,timeout:C,onDownloadProgress:k,onUploadProgress:E,responseType:I,headers:R,withCredentials:_="same-origin",fetchOptions:A}=tg(f);I=I?(I+"").toLowerCase():"text";let T=UO([b,x&&x.toAbortSignal()],C),S=null;const N=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let z;try{if(E&&c&&v!=="get"&&v!=="head"&&(z=await m(R,y))!==0){let W=new n(p,{method:"POST",body:y,duplex:"half"}),ne;if(w.isFormData(y)&&(ne=W.headers.get("content-type"))&&R.setContentType(ne),W.body){const[Re,Ge]=Qf(z,Ci(Jf(E)));y=ng(W.body,rg,Re,Ge)}}w.isString(_)||(_=_?"include":"omit");const D=i&&"credentials"in n.prototype,q={...A,signal:T,method:v.toUpperCase(),headers:R.normalize().toJSON(),body:y,duplex:"half",credentials:D?_:void 0};S=i&&new n(p,q);let K=await(i?t(S,A):t(p,q));const ce=u&&(I==="stream"||I==="response");if(u&&(k||ce&&N)){const W={};["status","statusText","headers"].forEach(Ht=>{W[Ht]=K[Ht]});const ne=w.toFiniteNumber(K.headers.get("content-length")),[Re,Ge]=k&&Qf(ne,Ci(Jf(k),!0))||[];K=new r(ng(K.body,rg,Re,()=>{Ge&&Ge(),N&&N()}),W)}I=I||"text";let B=await d[w.findKey(d,I)||"text"](K,f);return!ce&&N&&N(),await new Promise((W,ne)=>{Xf(W,ne,{data:B,headers:Me.from(K.headers),status:K.status,statusText:K.statusText,config:f,request:S})})}catch(D){throw N&&N(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new H("Network Error",H.ERR_NETWORK,f,S),{cause:D.cause||D}):H.from(D,D&&D.code,f,S)}}},XO=new Map,lg=e=>{let t=w.merge.call({skipUndefined:!0},og,e?e.env:null);const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let s=i.length,a=s,l,c,u=XO;for(;a--;)l=i[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:YO(t)),u=c;return c};lg();const Ua={http:yO,xhr:HO,fetch:{get:lg}};w.forEach(Ua,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const cg=e=>`- ${e}`,QO=e=>w.isFunction(e)||e===null||e===!1,ug={getAdapter:(e,t)=>{e=w.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=n?s.length>1?`since : +`+s.map(cg).join(` +`):" "+cg(s[0]):"as no adapter specified";throw new H("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Ua};function Ga(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new or(null,e)}function dg(e){return Ga(e),e.headers=Me.from(e.headers),e.data=Ha.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ug.getAdapter(e.adapter||Hr.adapter,e)(e).then(function(r){return Ga(e),r.data=Ha.call(e,e.transformResponse,r),r.headers=Me.from(r.headers),r},function(r){return Yf(r)||(Ga(e),r&&r.response&&(r.response.data=Ha.call(e,e.transformResponse,r.response),r.response.headers=Me.from(r.response.headers))),Promise.reject(r)})}const hg="1.12.1",wi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const fg={};wi.transitional=function(t,n,r){function o(i,s){return"[Axios v"+hg+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new H(o(s," has been removed"+(n?" in "+n:"")),H.ERR_DEPRECATED);return n&&!fg[s]&&(fg[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}},wi.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function JO(e,t,n){if(typeof e!="object")throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new H("option "+i+" must be "+l,H.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new H("Unknown option "+i,H.ERR_BAD_OPTION)}}const Ei={assertOptions:JO,validators:wi},mt=Ei.validators;let Pn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Uf,response:new Uf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=On(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ei.assertOptions(r,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),o!=null&&(w.isFunction(o)?n.paramsSerializer={serialize:o}:Ei.assertOptions(o,{encode:mt.function,serialize:mt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ei.assertOptions(n,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=Me.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!l){const f=[dg.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new or(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new fp(function(o){t=o}),cancel:t}}};function eP(e){return function(n){return e.apply(null,n)}}function tP(e){return w.isObject(e)&&e.isAxiosError===!0}const qa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qa).forEach(([e,t])=>{qa[t]=e});function gg(e){const t=new Pn(e),n=Rf(Pn.prototype.request,t);return w.extend(n,Pn.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return gg(On(e,o))},n}const ae=gg(Hr);ae.Axios=Pn,ae.CanceledError=or,ae.CancelToken=ZO,ae.isCancel=Yf,ae.VERSION=hg,ae.toFormData=xi,ae.AxiosError=H,ae.Cancel=ae.CanceledError,ae.all=function(t){return Promise.all(t)},ae.spread=eP,ae.isAxiosError=tP,ae.mergeConfig=On,ae.AxiosHeaders=Me,ae.formToJSON=e=>qf(w.isHTMLForm(e)?new FormData(e):e),ae.getAdapter=ug.getAdapter,ae.HttpStatusCode=qa,ae.default=ae;const{Axios:fT,AxiosError:gT,CanceledError:pT,isCancel:mT,CancelToken:vT,VERSION:bT,all:yT,Cancel:xT,isAxiosError:kT,spread:CT,toFormData:ST,AxiosHeaders:wT,HttpStatusCode:ET,formToJSON:OT,getAdapter:PT,mergeConfig:IT}=ae;var nP=(e,t,n,r,o,i,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(m){(Array.isArray(e)?e:[e]).forEach(f=>{let p=f==="class",v=p&&i?o.map(y=>i[y]||y):o;p?(l.classList.remove(...v),l.classList.add(i&&i[m]?i[m]:m)):l.setAttribute(f,m)}),d(m)}function d(m){a&&c.includes(m)&&(l.style.colorScheme=m)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)u(r);else try{let m=localStorage.getItem(t)||n,f=s&&m==="system"?h():m;u(f)}catch{}},pg=["light","dark"],mg="(prefers-color-scheme: dark)",rP=typeof window>"u",vg=O.createContext(void 0),oP=e=>O.useContext(vg)?O.createElement(O.Fragment,null,e.children):O.createElement(sP,{...e}),iP=["light","dark"],sP=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=iP,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u,scriptProps:d})=>{let[h,m]=O.useState(()=>lP(o,s)),[f,p]=O.useState(()=>h==="system"?Ka():h),v=l?Object.values(l):i,y=O.useCallback(k=>{let E=k;if(!E)return;k==="system"&&n&&(E=Ka());let I=l?l[E]:E,R=t?cP(u):null,_=document.documentElement,A=T=>{T==="class"?(_.classList.remove(...v),I&&_.classList.add(I)):T.startsWith("data-")&&(I?_.setAttribute(T,I):_.removeAttribute(T))};if(Array.isArray(a)?a.forEach(A):A(a),r){let T=pg.includes(s)?s:null,S=pg.includes(E)?E:T;_.style.colorScheme=S}R?.()},[u]),b=O.useCallback(k=>{let E=typeof k=="function"?k(h):k;m(E);try{localStorage.setItem(o,E)}catch{}},[h]),x=O.useCallback(k=>{let E=Ka(k);p(E),h==="system"&&n&&!e&&y("system")},[h,e]);O.useEffect(()=>{let k=window.matchMedia(mg);return k.addListener(x),x(k),()=>k.removeListener(x)},[x]),O.useEffect(()=>{let k=E=>{E.key===o&&(E.newValue?m(E.newValue):b(s))};return window.addEventListener("storage",k),()=>window.removeEventListener("storage",k)},[b]),O.useEffect(()=>{y(e??h)},[e,h]);let C=O.useMemo(()=>({theme:h,setTheme:b,forcedTheme:e,resolvedTheme:h==="system"?f:h,themes:n?[...i,"system"]:i,systemTheme:n?f:void 0}),[h,b,e,f,n,i]);return O.createElement(vg.Provider,{value:C},O.createElement(aP,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:n,enableColorScheme:r,defaultTheme:s,value:l,themes:i,nonce:u,scriptProps:d}),c)},aP=O.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,themes:a,nonce:l,scriptProps:c})=>{let u=JSON.stringify([n,t,i,e,a,s,r,o]).slice(1,-1);return O.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${nP.toString()})(${u})`}})}),lP=(e,t)=>{if(rP)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},cP=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Ka=e=>(e||(e=window.matchMedia(mg)),e.matches?"dark":"light");const uP=e=>g.jsx(oP,{attribute:"class",disableTransitionOnChange:!0,...e});/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. @@ -35,7 +35,7 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function mg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sP(){return Math.random().toString(36).substr(2,8)}function vg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ka(e,t,n,r){return n===void 0&&(n=null),Gr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Un(t):t,{state:n,key:t&&t.key||r||sP()})}function Ei(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Un(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function aP(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=Lt.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Gr({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=Lt.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:a,location:g.location,delta:y})}function h(v,y){a=Lt.Push;let b=Ka(g.location,v,y);c=u()+1;let x=vg(b,c),C=g.createHref(b);try{s.pushState(x,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(C)}i&&l&&l({action:a,location:g.location,delta:1})}function p(v,y){a=Lt.Replace;let b=Ka(g.location,v,y);c=u();let x=vg(b,c),C=g.createHref(b);s.replaceState(x,"",C),i&&l&&l({action:a,location:g.location,delta:0})}function f(v){let y=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof v=="string"?v:Ei(v);return b=b.replace(/ $/,"%20"),le(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return a},get location(){return e(o,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(pg,d),l=v,()=>{o.removeEventListener(pg,d),l=null}},createHref(v){return t(o,v)},createURL:f,encodeLocation(v){let y=f(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(v){return s.go(v)}};return g}var bg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bg||(bg={}));function lP(e,t,n){return n===void 0&&(n="/"),cP(e,t,n)}function cP(e,t,n,r){let o=typeof t=="string"?Un(t):t,i=Gn(o.pathname||"/",n);if(i==null)return null;let s=yg(e);uP(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(le(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Dt([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(le(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),yg(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:vP(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of xg(i.path))o(i,s,l)}),t}function xg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=xg(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function uP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const dP=/^:[\w-]+$/,hP=3,fP=2,gP=1,pP=10,mP=-2,kg=e=>e==="*";function vP(e,t){let n=e.split("/"),r=n.length;return n.some(kg)&&(r+=mP),t&&(r+=fP),n.filter(o=>!kg(o)).reduce((o,i)=>o+(dP.test(i)?hP:i===""?gP:pP),r)}function bP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function yP(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=a[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const f=a[d];return p&&!f?c[h]=void 0:c[h]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function xP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),mg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function kP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Gn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function CP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Un(e):e;return{pathname:n?n.startsWith("/")?n:SP(n,t):t,search:OP(r),hash:PP(o)}}function SP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Xa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function wP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Cg(e,t){let n=wP(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Sg(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Un(e):(o=Gr({},e),le(!o.pathname||!o.pathname.includes("?"),Xa("?","pathname","search",o)),le(!o.pathname||!o.pathname.includes("#"),Xa("#","pathname","hash",o)),le(!o.search||!o.search.includes("#"),Xa("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=CP(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Dt=e=>e.join("/").replace(/\/\/+/g,"/"),EP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,PP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function IP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wg=["post","put","patch","delete"];new Set(wg);const RP=["get",...wg];new Set(RP);/** + */function Gr(){return Gr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function yg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hP(){return Math.random().toString(36).substr(2,8)}function xg(e,t){return{usr:e.state,key:e.key,idx:t}}function Ya(e,t,n,r){return n===void 0&&(n=null),Gr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ir(t):t,{state:n,key:t&&t.key||r||hP()})}function Oi(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ir(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function fP(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=$t.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Gr({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=$t.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:a,location:p.location,delta:y})}function h(v,y){a=$t.Push;let b=Ya(p.location,v,y);c=u()+1;let x=xg(b,c),C=p.createHref(b);try{s.pushState(x,"",C)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(C)}i&&l&&l({action:a,location:p.location,delta:1})}function m(v,y){a=$t.Replace;let b=Ya(p.location,v,y);c=u();let x=xg(b,c),C=p.createHref(b);s.replaceState(x,"",C),i&&l&&l({action:a,location:p.location,delta:0})}function f(v){let y=o.location.origin!=="null"?o.location.origin:o.location.href,b=typeof v=="string"?v:Oi(v);return b=b.replace(/ $/,"%20"),le(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let p={get action(){return a},get location(){return e(o,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(bg,d),l=v,()=>{o.removeEventListener(bg,d),l=null}},createHref(v){return t(o,v)},createURL:f,encodeLocation(v){let y=f(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:m,go(v){return s.go(v)}};return p}var kg;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(kg||(kg={}));function gP(e,t,n){return n===void 0&&(n="/"),pP(e,t,n)}function pP(e,t,n,r){let o=typeof t=="string"?ir(t):t,i=sr(o.pathname||"/",n);if(i==null)return null;let s=Cg(e);mP(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(le(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Bt([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(le(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Cg(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:SP(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Sg(i.path))o(i,s,l)}),t}function Sg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Sg(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function mP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const vP=/^:[\w-]+$/,bP=3,yP=2,xP=1,kP=10,CP=-2,wg=e=>e==="*";function SP(e,t){let n=e.split("/"),r=n.length;return n.some(wg)&&(r+=CP),t&&(r+=yP),n.filter(o=>!wg(o)).reduce((o,i)=>o+(vP.test(i)?bP:i===""?xP:kP),r)}function wP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function EP(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:h,isOptional:m}=u;if(h==="*"){let p=a[d]||"";s=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const f=a[d];return m&&!f?c[h]=void 0:c[h]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function OP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),yg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function PP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function sr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function IP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ir(e):e;return{pathname:n?n.startsWith("/")?n:RP(n,t):t,search:AP(r),hash:_P(o)}}function RP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Qa(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function TP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Eg(e,t){let n=TP(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Og(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ir(e):(o=Gr({},e),le(!o.pathname||!o.pathname.includes("?"),Qa("?","pathname","search",o)),le(!o.pathname||!o.pathname.includes("#"),Qa("#","pathname","hash",o)),le(!o.search||!o.search.includes("#"),Qa("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=IP(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Bt=e=>e.join("/").replace(/\/\/+/g,"/"),NP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_P=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function VP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Pg=["post","put","patch","delete"];new Set(Pg);const FP=["get",...Pg];new Set(FP);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. @@ -44,7 +44,7 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),O.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Sg(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Dt([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function Ii(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(zt),{matches:o}=O.useContext(dn),{pathname:i}=Yr(),s=JSON.stringify(Cg(o,r.v7_relativeSplatPath));return O.useMemo(()=>Sg(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function _P(e,t){return VP(e,t)}function VP(e,t,n,r){Kr()||le(!1);let{navigator:o}=O.useContext(zt),{matches:i}=O.useContext(dn),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=Yr(),u;if(t){var d;let v=typeof t=="string"?Un(t):t;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||le(!1),u=v}else u=c;let h=u.pathname||"/",p=h;if(l!=="/"){let v=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let f=lP(e,{pathname:p}),g=MP(f&&f.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:Dt([l,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Dt([l,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r);return t&&g?O.createElement(Pi.Provider,{value:{location:qr({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Lt.Pop}},g):g}function FP(){let e=WP(),t=IP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:o},n):null,null)}const LP=O.createElement(FP,null);class DP extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(dn.Provider,{value:this.props.routeContext},O.createElement(Og.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function zP(e){let{routeContext:t,match:n,children:r}=e,o=O.useContext(Oi);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(dn.Provider,{value:t},r)}function MP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&a?.[d.route.id]!==void 0);u>=0||le(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let p,f=!1,g=null,v=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||LP,l&&(c<0&&h===0?(UP("route-fallback"),f=!0,v=null):c===h&&(f=!0,v=d.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,h+1)),b=()=>{let x;return p?x=g:f?x=v:d.route.Component?x=O.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=u,O.createElement(zP,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?O.createElement(DP,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var Ig=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Ig||{}),Rg=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Rg||{});function jP(e){let t=O.useContext(Oi);return t||le(!1),t}function $P(e){let t=O.useContext(Eg);return t||le(!1),t}function BP(e){let t=O.useContext(dn);return t||le(!1),t}function Tg(e){let t=BP(),n=t.matches[t.matches.length-1];return n.route.id||le(!1),n.route.id}function WP(){var e;let t=O.useContext(Og),n=$P(),r=Tg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function HP(){let{router:e}=jP(Ig.UseNavigateStable),t=Tg(Rg.UseNavigateStable),n=O.useRef(!1);return Pg(()=>{n.current=!0}),O.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qr({fromRouteId:t},i)))},[e,t])}const Ng={};function UP(e,t,n){Ng[e]||(Ng[e]=!0)}function GP(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function Qa(e){le(!1)}function qP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Lt.Pop,navigator:i,static:s=!1,future:a}=e;Kr()&&le(!1);let l=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:l,navigator:i,static:s,future:qr({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Un(r));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:f="default"}=r,g=O.useMemo(()=>{let v=Gn(u,l);return v==null?null:{location:{pathname:v,search:d,hash:h,state:p,key:f},navigationType:o}},[l,u,d,h,p,f,o]);return g==null?null:O.createElement(zt.Provider,{value:c},O.createElement(Pi.Provider,{children:n,value:g}))}function KP(e){let{children:t,location:n}=e;return _P(Ja(t),n)}new Promise(()=>{});function Ja(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,o)=>{if(!O.isValidElement(r))return;let i=[...t,o];if(r.type===O.Fragment){n.push.apply(n,Ja(r.props.children,i));return}r.type!==Qa&&le(!1),!r.props.index||!r.props.children||le(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Ja(r.props.children,i)),n.push(s)}),n}/** + */function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),O.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Og(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Bt([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function Ri(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(Wt),{matches:o}=O.useContext(In),{pathname:i}=Yr(),s=JSON.stringify(Eg(o,r.v7_relativeSplatPath));return O.useMemo(()=>Og(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function MP(e,t){return jP(e,t)}function jP(e,t,n,r){Kr()||le(!1);let{navigator:o}=O.useContext(Wt),{matches:i}=O.useContext(In),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=Yr(),u;if(t){var d;let v=typeof t=="string"?ir(t):t;l==="/"||(d=v.pathname)!=null&&d.startsWith(l)||le(!1),u=v}else u=c;let h=u.pathname||"/",m=h;if(l!=="/"){let v=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(v.length).join("/")}let f=gP(e,{pathname:m}),p=UP(f&&f.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:Bt([l,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Bt([l,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r);return t&&p?O.createElement(Ii.Provider,{value:{location:qr({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:$t.Pop}},p):p}function $P(){let e=YP(),t=VP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:o},n):null,null)}const BP=O.createElement($P,null);class WP extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(In.Provider,{value:this.props.routeContext},O.createElement(Rg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HP(e){let{routeContext:t,match:n,children:r}=e,o=O.useContext(Pi);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(In.Provider,{value:t},r)}function UP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&a?.[d.route.id]!==void 0);u>=0||le(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let m,f=!1,p=null,v=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,p=d.route.errorElement||BP,l&&(c<0&&h===0?(QP("route-fallback"),f=!0,v=null):c===h&&(f=!0,v=d.route.hydrateFallbackElement||null)));let y=t.concat(s.slice(0,h+1)),b=()=>{let x;return m?x=p:f?x=v:d.route.Component?x=O.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=u,O.createElement(HP,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?O.createElement(WP,{location:n.location,revalidation:n.revalidation,component:p,error:m,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var Ng=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Ng||{}),Ag=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Ag||{});function GP(e){let t=O.useContext(Pi);return t||le(!1),t}function qP(e){let t=O.useContext(Ig);return t||le(!1),t}function KP(e){let t=O.useContext(In);return t||le(!1),t}function _g(e){let t=KP(),n=t.matches[t.matches.length-1];return n.route.id||le(!1),n.route.id}function YP(){var e;let t=O.useContext(Rg),n=qP(),r=_g();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function XP(){let{router:e}=GP(Ng.UseNavigateStable),t=_g(Ag.UseNavigateStable),n=O.useRef(!1);return Tg(()=>{n.current=!0}),O.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,qr({fromRouteId:t},i)))},[e,t])}const Vg={};function QP(e,t,n){Vg[e]||(Vg[e]=!0)}function JP(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function Ja(e){le(!1)}function ZP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=$t.Pop,navigator:i,static:s=!1,future:a}=e;Kr()&&le(!1);let l=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:l,navigator:i,static:s,future:qr({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=ir(r));let{pathname:u="/",search:d="",hash:h="",state:m=null,key:f="default"}=r,p=O.useMemo(()=>{let v=sr(u,l);return v==null?null:{location:{pathname:v,search:d,hash:h,state:m,key:f},navigationType:o}},[l,u,d,h,m,f,o]);return p==null?null:O.createElement(Wt.Provider,{value:c},O.createElement(Ii.Provider,{children:n,value:p}))}function eI(e){let{children:t,location:n}=e;return MP(Za(t),n)}new Promise(()=>{});function Za(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,o)=>{if(!O.isValidElement(r))return;let i=[...t,o];if(r.type===O.Fragment){n.push.apply(n,Za(r.props.children,i));return}r.type!==Ja&&le(!1),!r.props.index||!r.props.children||le(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=Za(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. @@ -53,7 +53,7 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ri(){return Ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function YP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XP(e,t){return e.button===0&&(!t||t==="_self")&&!YP(e)}const QP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],JP=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ZP="6";try{window.__reactRouterVersion=ZP}catch{}const eI=O.createContext({isTransitioning:!1}),_g=O["startTransition"];function tI(e){let{basename:t,children:n,future:r,window:o}=e,i=O.useRef();i.current==null&&(i.current=iP({window:o,v5Compat:!0}));let s=i.current,[a,l]=O.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=O.useCallback(d=>{c&&_g?_g(()=>l(d)):l(d)},[l,c]);return O.useLayoutEffect(()=>s.listen(u),[s,u]),O.useEffect(()=>GP(r),[r]),O.createElement(qP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const nI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vg=O.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=Ag(t,QP),{basename:p}=O.useContext(zt),f,g=!1;if(typeof c=="string"&&rI.test(c)&&(f=c,nI))try{let x=new URL(window.location.href),C=c.startsWith("//")?new URL(x.protocol+c):new URL(c),k=Gn(C.pathname,p);C.origin===x.origin&&k!=null?c=k+C.search+C.hash:g=!0}catch{}let v=TP(c,{relative:o}),y=sI(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function b(x){r&&r(x),x.defaultPrevented||y(x)}return O.createElement("a",Ri({},h,{href:f||v,onClick:g||i?r:b,ref:n,target:l}))}),oI=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,viewTransition:c,children:u}=t,d=Ag(t,JP),h=Ii(l,{relative:d.relative}),p=Yr(),f=O.useContext(Eg),{navigator:g,basename:v}=O.useContext(zt),y=f!=null&&aI(h)&&c===!0,b=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,x=p.pathname,C=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;o||(x=x.toLowerCase(),C=C?C.toLowerCase():null,b=b.toLowerCase()),C&&v&&(C=Gn(C,v)||C);const k=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let E=x===b||!s&&x.startsWith(b)&&x.charAt(k)==="/",I=C!=null&&(C===b||!s&&C.startsWith(b)&&C.charAt(b.length)==="/"),R={isActive:E,isPending:I,isTransitioning:y},_=E?r:void 0,A;typeof i=="function"?A=i(R):A=[i,E?"active":null,I?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let T=typeof a=="function"?a(R):a;return O.createElement(Vg,Ri({},d,{"aria-current":_,className:A,ref:n,style:T,to:l,viewTransition:c}),typeof u=="function"?u(R):u)});var Za;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Za||(Za={}));var Fg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Fg||(Fg={}));function iI(e){let t=O.useContext(Oi);return t||le(!1),t}function sI(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=NP(),c=Yr(),u=Ii(e,{relative:s});return O.useCallback(d=>{if(XP(d,n)){d.preventDefault();let h=r!==void 0?r:Ei(c)===Ei(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,u,r,o,n,e,i,s,a])}function aI(e,t){t===void 0&&(t={});let n=O.useContext(eI);n==null&&le(!1);let{basename:r}=iI(Za.useViewTransitionState),o=Ii(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Gn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Gn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ya(o.pathname,s)!=null||Ya(o.pathname,i)!=null}const lI="UiServiceWorker",cI=e=>[lI],uI="UiServiceJobs",dI=e=>[uI];class Lg{_fns;constructor(){this._fns=[]}eject(t){const n=this._fns.indexOf(t);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(t){this._fns=[...this._fns,t]}}const hn={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new Lg,response:new Lg}};class Dg extends Error{url;status;statusText;body;request;constructor(t,n,r){super(r),this.name="ApiError",this.url=n.url,this.status=n.status,this.statusText=n.statusText,this.body=n.body,this.request=t}}class hI extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class fI{_isResolved;_isRejected;_isCancelled;cancelHandlers;promise;_resolve;_reject;constructor(t){this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(o,i,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,n){return this.promise.then(t,n)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new hI("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Ti=e=>typeof e=="string",el=e=>Ti(e)&&e!=="",zg=e=>e instanceof Blob,gI=e=>e instanceof FormData,Mg=e=>e>=200&&e<300,pI=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},mI=e=>{const t=[],n=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},r=(o,i)=>{i!=null&&(i instanceof Date?n(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>r(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>r(`${o}[${s}]`,a)):n(o,i))};return Object.entries(e).forEach(([o,i])=>r(o,i)),t.length?`?${t.join("&")}`:""},vI=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>t.path?.hasOwnProperty(s)?n(String(t.path[s])):i),o=e.BASE+r;return t.query?o+mI(t.query):o},bI=e=>{if(e.formData){const t=new FormData,n=(r,o)=>{Ti(o)||zg(o)?t.append(r,o):t.append(r,JSON.stringify(o))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(i=>n(r,i)):n(r,o)}),t}},Ni=async(e,t)=>t,yI=async(e,t)=>{const[n,r,o,i]=await Promise.all([Ni(t,e.TOKEN),Ni(t,e.USERNAME),Ni(t,e.PASSWORD),Ni(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...i,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(el(n)&&(s.Authorization=`Bearer ${n}`),el(r)&&el(o)){const a=pI(`${r}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:zg(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Ti(t.body)?s["Content-Type"]="text/plain":gI(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},xI=e=>{if(e.body)return e.body},kI=async(e,t,n,r,o,i,s,a)=>{const l=new AbortController;let c={data:r??o,headers:i,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},CI=(e,t)=>{if(t){const n=e.headers[t];if(Ti(n))return n}},SI=e=>{if(e.status!==204)return e.data},wI=(e,t)=>{const r={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(r)throw new Dg(e,t,r);if(!t.ok){const o=t.status??"unknown",i=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new Dg(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},fn=(e,t,n=ae)=>new fI(async(r,o,i)=>{try{const s=vI(e,t),a=bI(t),l=xI(t),c=await yI(e,t);if(!i.isCancelled){let u=await kI(e,t,s,l,a,c,i,n);for(const g of e.interceptors.response._fns)u=await g(u);const d=SI(u),h=CI(u,t.responseHeader);let p=d;t.responseTransformer&&Mg(u.status)&&(p=await t.responseTransformer(d));const f={url:s,ok:Mg(u.status),status:u.status,statusText:u.statusText,body:h??p};wI(t,f),r(f.body)}}catch(s){o(s)}});class gn{static worker(){return fn(hn,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return fn(hn,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return fn(hn,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static updateWorkerMaintenance(t){return fn(hn,{method:"PATCH",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return fn(hn,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static requestWorkerShutdown(t){return fn(hn,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/shutdown",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static deleteWorker(t){return fn(hn,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}}const EI=(e,t)=>Ef({queryKey:cI(),queryFn:()=>gn.worker(),...t}),OI=(e,t)=>Ef({queryKey:dI(),queryFn:()=>gn.jobs(),...t}),PI=e=>jr({mutationFn:({requestBody:t,workerName:n})=>gn.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),II=e=>jr({mutationFn:({workerName:t})=>gn.requestWorkerShutdown({workerName:t}),...e}),RI=e=>jr({mutationFn:({requestBody:t,workerName:n})=>gn.updateWorkerMaintenance({requestBody:t,workerName:n}),...e}),TI=e=>jr({mutationFn:({workerName:t})=>gn.exitWorkerMaintenance({workerName:t}),...e}),NI=e=>jr({mutationFn:({workerName:t})=>gn.deleteWorker({workerName:t}),...e});function Ai(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{const[r,o,...i]=n.map(l=>parseInt(l)),s=[r,o-1,...i];return new Date(Date.UTC(...s))}}const Xr=(e,t,n)=>{const r=e!==1?t+"s":t;return e+" "+r+" "+n};function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;tDate.now();function Vi({date:e,formatter:t,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:i=_i,title:s,now:a=AI,...l}){const[c,u]=P.useState(a());P.useEffect(()=>{if(!r)return;const I=(()=>{const R=Ai(e).valueOf();if(!R)return console.warn("[react-timeago] Invalid Date provided"),0;const _=Math.round(Math.abs(c-R)/1e3),A=_{u(a())},T):0})();return()=>{I&&clearTimeout(I)}},[e,r,i,o,a,c]),P.useEffect(()=>{u(a())},[e]);const d=n,h=Ai(e).valueOf();if(!h)return null;const p=Math.round(Math.abs(c-h)/1e3),f=h"u"?typeof e=="string"?e:Ai(e).toISOString().substring(0,16).replace("T"," "):s,b=d==="time"?{...l,dateTime:Ai(e).toISOString()}:l,x=(E=E,I=I,R=R,_=h,A=Xr,T=T)=>Xr(E,I,R),C=t||Xr;let k;try{k=C(g,v,f,h,x,a),k||(k=Xr(g,v,f,h,x,a))}catch(E){console.error("[react-timeago] Formatter threw an error:",E),k=Xr(g,v,f)}return O.createElement(d,tl({},b,{title:y}),k)}var Bg={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Wg=P.createContext&&P.createContext(Bg),_I=["attr","size","title"];function VI(e,t){if(e==null)return{};var n=FI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FI(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;tP.createElement(t.tag,Li({key:n},t.attr),Ug(t.child)))}function re(e){return t=>P.createElement(MI,Fi({attr:Li({},e.attr)},t),Ug(e.child))}function MI(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=VI(e,_I),a=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),P.createElement("svg",Fi({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:Li(Li({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&P.createElement("title",null,i),e.children)};return Wg!==void 0?P.createElement(Wg.Consumer,null,n=>t(n)):t(Bg)}function jI(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function $I(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function Gg(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function BI(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function WI(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h6v6"},child:[]},{tag:"path",attr:{d:"M10 14 21 3"},child:[]},{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]}]})(e)}function HI(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function UI(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const GI=P.forwardRef((e,t)=>m.jsx(rn,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??m.jsx(UI,{})})),qI=P.forwardRef((e,t)=>{const{children:n,closable:r,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return m.jsxs(wE,{ref:t,...c,alignItems:"center",children:[a??m.jsx(IE,{children:i}),n?m.jsxs(OE,{children:[m.jsx(Hh,{children:l}),m.jsx(EE,{children:n})]}):m.jsx(Hh,{flex:"1",children:l}),o,r?m.jsx(GI,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})});/*! + */function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function tI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nI(e,t){return e.button===0&&(!t||t==="_self")&&!tI(e)}const rI=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],oI=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],iI="6";try{window.__reactRouterVersion=iI}catch{}const sI=O.createContext({isTransitioning:!1}),Lg=O["startTransition"];function aI(e){let{basename:t,children:n,future:r,window:o}=e,i=O.useRef();i.current==null&&(i.current=dP({window:o,v5Compat:!0}));let s=i.current,[a,l]=O.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=O.useCallback(d=>{c&&Lg?Lg(()=>l(d)):l(d)},[l,c]);return O.useLayoutEffect(()=>s.listen(u),[s,u]),O.useEffect(()=>JP(r),[r]),O.createElement(ZP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const lI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dg=O.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=Fg(t,rI),{basename:m}=O.useContext(Wt),f,p=!1;if(typeof c=="string"&&cI.test(c)&&(f=c,lI))try{let x=new URL(window.location.href),C=c.startsWith("//")?new URL(x.protocol+c):new URL(c),k=sr(C.pathname,m);C.origin===x.origin&&k!=null?c=k+C.search+C.hash:p=!0}catch{}let v=LP(c,{relative:o}),y=hI(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function b(x){r&&r(x),x.defaultPrevented||y(x)}return O.createElement("a",Ti({},h,{href:f||v,onClick:p||i?r:b,ref:n,target:l}))}),uI=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,viewTransition:c,children:u}=t,d=Fg(t,oI),h=Ri(l,{relative:d.relative}),m=Yr(),f=O.useContext(Ig),{navigator:p,basename:v}=O.useContext(Wt),y=f!=null&&fI(h)&&c===!0,b=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,x=m.pathname,C=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;o||(x=x.toLowerCase(),C=C?C.toLowerCase():null,b=b.toLowerCase()),C&&v&&(C=sr(C,v)||C);const k=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let E=x===b||!s&&x.startsWith(b)&&x.charAt(k)==="/",I=C!=null&&(C===b||!s&&C.startsWith(b)&&C.charAt(b.length)==="/"),R={isActive:E,isPending:I,isTransitioning:y},_=E?r:void 0,A;typeof i=="function"?A=i(R):A=[i,E?"active":null,I?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let T=typeof a=="function"?a(R):a;return O.createElement(Dg,Ti({},d,{"aria-current":_,className:A,ref:n,style:T,to:l,viewTransition:c}),typeof u=="function"?u(R):u)});var el;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(el||(el={}));var zg;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zg||(zg={}));function dI(e){let t=O.useContext(Pi);return t||le(!1),t}function hI(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=DP(),c=Yr(),u=Ri(e,{relative:s});return O.useCallback(d=>{if(nI(d,n)){d.preventDefault();let h=r!==void 0?r:Oi(c)===Oi(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,u,r,o,n,e,i,s,a])}function fI(e,t){t===void 0&&(t={});let n=O.useContext(sI);n==null&&le(!1);let{basename:r}=dI(el.useViewTransitionState),o=Ri(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=sr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=sr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Xa(o.pathname,s)!=null||Xa(o.pathname,i)!=null}const gI="UiServiceWorker",pI=e=>[gI],mI="UiServiceJobs",vI=e=>[mI];class Mg{_fns;constructor(){this._fns=[]}eject(t){const n=this._fns.indexOf(t);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(t){this._fns=[...this._fns,t]}}const wt={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new Mg,response:new Mg}};class jg extends Error{url;status;statusText;body;request;constructor(t,n,r){super(r),this.name="ApiError",this.url=n.url,this.status=n.status,this.statusText=n.statusText,this.body=n.body,this.request=t}}class bI extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class yI{_isResolved;_isRejected;_isCancelled;cancelHandlers;promise;_resolve;_reject;constructor(t){this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(o,i,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,n){return this.promise.then(t,n)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new bI("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Ni=e=>typeof e=="string",tl=e=>Ni(e)&&e!=="",$g=e=>e instanceof Blob,xI=e=>e instanceof FormData,Bg=e=>e>=200&&e<300,kI=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},CI=e=>{const t=[],n=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},r=(o,i)=>{i!=null&&(i instanceof Date?n(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>r(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>r(`${o}[${s}]`,a)):n(o,i))};return Object.entries(e).forEach(([o,i])=>r(o,i)),t.length?`?${t.join("&")}`:""},SI=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>t.path?.hasOwnProperty(s)?n(String(t.path[s])):i),o=e.BASE+r;return t.query?o+CI(t.query):o},wI=e=>{if(e.formData){const t=new FormData,n=(r,o)=>{Ni(o)||$g(o)?t.append(r,o):t.append(r,JSON.stringify(o))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(i=>n(r,i)):n(r,o)}),t}},Ai=async(e,t)=>t,EI=async(e,t)=>{const[n,r,o,i]=await Promise.all([Ai(t,e.TOKEN),Ai(t,e.USERNAME),Ai(t,e.PASSWORD),Ai(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...i,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(tl(n)&&(s.Authorization=`Bearer ${n}`),tl(r)&&tl(o)){const a=kI(`${r}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:$g(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Ni(t.body)?s["Content-Type"]="text/plain":xI(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},OI=e=>{if(e.body)return e.body},PI=async(e,t,n,r,o,i,s,a)=>{const l=new AbortController;let c={data:r??o,headers:i,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},II=(e,t)=>{if(t){const n=e.headers[t];if(Ni(n))return n}},RI=e=>{if(e.status!==204)return e.data},TI=(e,t)=>{const r={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(r)throw new jg(e,t,r);if(!t.ok){const o=t.status??"unknown",i=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new jg(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},Et=(e,t,n=ae)=>new yI(async(r,o,i)=>{try{const s=SI(e,t),a=wI(t),l=OI(t),c=await EI(e,t);if(!i.isCancelled){let u=await PI(e,t,s,l,a,c,i,n);for(const p of e.interceptors.response._fns)u=await p(u);const d=RI(u),h=II(u,t.responseHeader);let m=d;t.responseTransformer&&Bg(u.status)&&(m=await t.responseTransformer(d));const f={url:s,ok:Bg(u.status),status:u.status,statusText:u.statusText,body:h??m};TI(t,f),r(f.body)}}catch(s){o(s)}});class Ot{static worker(){return Et(wt,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return Et(wt,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return Et(wt,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static updateWorkerMaintenance(t){return Et(wt,{method:"PATCH",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return Et(wt,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static requestWorkerShutdown(t){return Et(wt,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/shutdown",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static deleteWorker(t){return Et(wt,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static addWorkerQueue(t){return Et(wt,{method:"PUT",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}static removeWorkerQueue(t){return Et(wt,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}}const NI=(e,t)=>If({queryKey:pI(),queryFn:()=>Ot.worker(),...t}),AI=(e,t)=>If({queryKey:vI(),queryFn:()=>Ot.jobs(),...t}),_I=e=>wn({mutationFn:({requestBody:t,workerName:n})=>Ot.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),VI=e=>wn({mutationFn:({workerName:t})=>Ot.requestWorkerShutdown({workerName:t}),...e}),FI=e=>wn({mutationFn:({queueName:t,workerName:n})=>Ot.addWorkerQueue({queueName:t,workerName:n}),...e}),LI=e=>wn({mutationFn:({requestBody:t,workerName:n})=>Ot.updateWorkerMaintenance({requestBody:t,workerName:n}),...e}),DI=e=>wn({mutationFn:({workerName:t})=>Ot.exitWorkerMaintenance({workerName:t}),...e}),zI=e=>wn({mutationFn:({workerName:t})=>Ot.deleteWorker({workerName:t}),...e}),MI=e=>wn({mutationFn:({queueName:t,workerName:n})=>Ot.removeWorkerQueue({queueName:t,workerName:n}),...e});function _i(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{const[r,o,...i]=n.map(l=>parseInt(l)),s=[r,o-1,...i];return new Date(Date.UTC(...s))}}const Xr=(e,t,n)=>{const r=e!==1?t+"s":t;return e+" "+r+" "+n};function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;tDate.now();function Fi({date:e,formatter:t,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:i=Vi,title:s,now:a=jI,...l}){const[c,u]=P.useState(a());P.useEffect(()=>{if(!r)return;const I=(()=>{const R=_i(e).valueOf();if(!R)return console.warn("[react-timeago] Invalid Date provided"),0;const _=Math.round(Math.abs(c-R)/1e3),A=_{u(a())},T):0})();return()=>{I&&clearTimeout(I)}},[e,r,i,o,a,c]),P.useEffect(()=>{u(a())},[e]);const d=n,h=_i(e).valueOf();if(!h)return null;const m=Math.round(Math.abs(c-h)/1e3),f=h"u"?typeof e=="string"?e:_i(e).toISOString().substring(0,16).replace("T"," "):s,b=d==="time"?{...l,dateTime:_i(e).toISOString()}:l,x=(E=E,I=I,R=R,_=h,A=Xr,T=T)=>Xr(E,I,R),C=t||Xr;let k;try{k=C(p,v,f,h,x,a),k||(k=Xr(p,v,f,h,x,a))}catch(E){console.error("[react-timeago] Formatter threw an error:",E),k=Xr(p,v,f)}return O.createElement(d,nl({},b,{title:y}),k)}var Ug={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Gg=P.createContext&&P.createContext(Ug),$I=["attr","size","title"];function BI(e,t){if(e==null)return{};var n=WI(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WI(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;tP.createElement(t.tag,Di({key:n},t.attr),Kg(t.child)))}function te(e){return t=>P.createElement(qI,Li({attr:Di({},e.attr)},t),Kg(e.child))}function qI(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=BI(e,$I),a=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),P.createElement("svg",Li({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:Di(Di({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&P.createElement("title",null,i),e.children)};return Gg!==void 0?P.createElement(Gg.Consumer,null,n=>t(n)):t(Ug)}function KI(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function YI(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function Yg(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function XI(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function QI(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h6v6"},child:[]},{tag:"path",attr:{d:"M10 14 21 3"},child:[]},{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]}]})(e)}function Xg(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function Qg(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M18 9v6"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function JI(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function ZI(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const eR=P.forwardRef((e,t)=>g.jsx(Ct,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??g.jsx(ZI,{})})),tR=P.forwardRef((e,t)=>{const{children:n,closable:r,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return g.jsxs(IE,{ref:t,...c,alignItems:"center",children:[a??g.jsx(AE,{children:i}),n?g.jsxs(TE,{children:[g.jsx(qh,{children:l}),g.jsx(RE,{children:n})]}):g.jsx(qh,{flex:"1",children:l}),o,r?g.jsx(eR,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})});/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -70,7 +70,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const KI=xk({pauseOnPageIdle:!0,placement:"bottom-end"});/*! + */const nR=wk({pauseOnPageIdle:!0,placement:"bottom-end"});/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -87,7 +87,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const YI=({block:e="start",inline:t="nearest"})=>{const[n,r]=P.useState(()=>window.location.hash);return P.useEffect(()=>{const o=()=>r(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),P.useEffect(()=>{if(n){const o=document.getElementById(n.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[n,e,t]),null},qg=({error:e})=>{const t=e;if(!t)return;const n=t.body?.detail;let r;return n!==void 0&&(typeof n=="string"?r=n:Array.isArray(n)?r=n.map(o=>`${o.loc.join(".")} ${o.msg}`):r=Object.keys(n).map(o=>`${o}: ${n[o]}`)),m.jsx(qI,{status:"error",children:m.jsxs(BE,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:m.jsx(Ge,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function Kg(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function XI(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function QI(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function JI(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function ZI(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function eR(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function tR(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function Yg(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function nR(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function rR(e){return re({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const oR=({state:e,...t})=>{switch(e){case"deferred":return m.jsx(Yg,{...t});case"failed":return m.jsx(nR,{...t});case"queued":return m.jsx(rR,{...t});case"removed":return m.jsx(tR,{...t});case"restarting":return m.jsx(ZI,{...t});case"running":return m.jsx(Kg,{...t});case"scheduled":return m.jsx(QI,{...t});case"skipped":return m.jsx(eR,{...t});case"success":return m.jsx($I,{...t});case"up_for_reschedule":return m.jsx(jI,{...t});case"up_for_retry":return m.jsx(HI,{...t});case"upstream_failed":return m.jsx(BI,{...t});default:return m.jsx(Gg,{...t})}},iR=O.forwardRef(({children:e,state:t,...n},r)=>m.jsxs(Uh,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:m.jsx(oR,{state:t}),e]}));/*! + */const rR=({block:e="start",inline:t="nearest"})=>{const[n,r]=P.useState(()=>window.location.hash);return P.useEffect(()=>{const o=()=>r(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),P.useEffect(()=>{if(n){const o=document.getElementById(n.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[n,e,t]),null},Jg=({error:e})=>{const t=e;if(!t)return;const n=t.body?.detail;let r;return n!==void 0&&(typeof n=="string"?r=n:Array.isArray(n)?r=n.map(o=>`${o.loc.join(".")} ${o.msg}`):r=Object.keys(n).map(o=>`${o}: ${n[o]}`)),g.jsx(tR,{status:"error",children:g.jsxs(YE,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:g.jsx(Le,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function Zg(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function oR(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function iR(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function sR(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function aR(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function lR(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function cR(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function ep(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function uR(e){return te({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function dR(e){return te({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const hR=({state:e,...t})=>{switch(e){case"deferred":return g.jsx(ep,{...t});case"failed":return g.jsx(uR,{...t});case"queued":return g.jsx(dR,{...t});case"removed":return g.jsx(cR,{...t});case"restarting":return g.jsx(aR,{...t});case"running":return g.jsx(Zg,{...t});case"scheduled":return g.jsx(iR,{...t});case"skipped":return g.jsx(lR,{...t});case"success":return g.jsx(YI,{...t});case"up_for_reschedule":return g.jsx(KI,{...t});case"up_for_retry":return g.jsx(JI,{...t});case"upstream_failed":return g.jsx(XI,{...t});default:return g.jsx(Yg,{...t})}},fR=O.forwardRef(({children:e,state:t,...n},r)=>g.jsxs(Kh,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:g.jsx(hR,{state:t}),e]}));/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -104,7 +104,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const Xg=5e3;/*! + */const tp=5e3;/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -121,7 +121,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const sR=e=>{const[t,n]=P.useState(0);return P.useEffect(()=>{if(!e.current)return;const r=new ResizeObserver(o=>{for(const i of o)n(i.contentRect.width)});return r.observe(e.current),()=>{r.disconnect()}},[e]),t};/*! + */const gR=e=>{const[t,n]=P.useState(0);return P.useEffect(()=>{if(!e.current)return;const r=new ResizeObserver(o=>{for(const i of o)n(i.contentRect.width)});return r.observe(e.current),()=>{r.disconnect()}},[e]),t};/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -138,7 +138,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const Qg="token",aR=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if(n?.trim()==="_token"&&r!==void 0)return localStorage.setItem(Qg,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},lR=e=>{const t=localStorage.getItem(Qg)??aR();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},cR=()=>{const{data:e,error:t}=OI(void 0,{enabled:!0,refetchInterval:Xg});return e?.jobs&&e.jobs.length>0?m.jsx(rr,{p:2,children:m.jsxs(Jh,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[m.jsx(Zh,{children:m.jsxs(di,{children:[m.jsx(xe,{children:"Dag ID"}),m.jsx(xe,{children:"Run ID"}),m.jsx(xe,{children:"Task ID"}),m.jsx(xe,{children:"Map Index"}),m.jsx(xe,{children:"Try Number"}),m.jsx(xe,{children:"State"}),m.jsx(xe,{children:"Queue"}),m.jsx(xe,{children:"Queued DTTM"}),m.jsx(xe,{children:"Edge Worker"}),m.jsx(xe,{children:"Last Update"})]})}),m.jsx(ef,{children:e.jobs.map(n=>m.jsxs(di,{children:[m.jsx(ke,{children:m.jsx(zr,{href:`../dags/${n.dag_id}`,children:n.dag_id})}),m.jsx(ke,{children:m.jsx(zr,{href:`../dags/${n.dag_id}/runs/${n.run_id}`,children:n.run_id})}),m.jsx(ke,{children:n.map_index>=0?m.jsx(zr,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}/mapped/${n.map_index}?try_number=${n.try_number}`,children:n.task_id}):m.jsx(zr,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}?try_number=${n.try_number}`,children:n.task_id})}),m.jsx(ke,{children:n.map_index>=0?n.map_index:"-"}),m.jsx(ke,{children:n.try_number}),m.jsx(ke,{children:m.jsx(iR,{state:n.state,children:n.state})}),m.jsx(ke,{children:n.queue}),m.jsx(ke,{children:n.queued_dttm?m.jsx(Vi,{date:n.queued_dttm,live:!1}):void 0}),m.jsx(ke,{children:m.jsx(Vg,{to:`/plugin/edge_worker#${n.edge_worker}`,children:n.edge_worker})}),m.jsx(ke,{children:n.last_update?m.jsx(Vi,{date:n.last_update,live:!1}):void 0})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):e?m.jsx(Ge,{as:"div",pl:4,pt:1,children:"Currently no jobs running. Start a Dag and then all active jobs should show up here. Note that after some (configurable) time, jobs are purged from the list."}):t?m.jsx(Ge,{as:"div",pl:4,pt:1,children:m.jsx(qg,{error:t})}):m.jsx(Ge,{as:"div",pl:4,pt:1,children:"Loading..."})},uR=({onEditComment:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=cr(),[i,s]=P.useState(""),a=RI({onError:c=>{e({description:`Unable to update comments for worker ${t}: ${c}`,title:"Updating Comments failed",type:"error"})},onSuccess:()=>{e({description:`Worker maintenance comments for ${t} were updated.`,title:"Maintenance Comments updated",type:"success"}),n()}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return m.jsxs(m.Fragment,{children:[m.jsx(rn,{size:"sm",variant:"ghost","aria-label":"Edit Comments",title:"Edit Comments",onClick:r,children:m.jsx(JI,{})}),m.jsx(Ir,{onOpenChange:n,open:o,size:"md",children:m.jsxs(Cr,{children:[m.jsx(Vr,{}),m.jsx(Rr,{children:m.jsxs(Tr,{children:[m.jsx(Dr,{children:m.jsxs(Nr,{children:["Edit maintenance comments for worker ",t]})}),m.jsx(Fr,{children:m.jsx(tf,{placeholder:"Change maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),m.jsxs(Lr,{children:[m.jsx(_r,{asChild:!0,children:m.jsx(rt,{variant:"outline",children:"Cancel"})}),m.jsx(rt,{onClick:l,disabled:!i.trim(),children:"Update Comments"})]}),m.jsx(Ar,{asChild:!0,children:m.jsx(Pr,{size:"sm"})})]})})]})})]})};function Jg(e){return re({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function dR(e){return re({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const hR=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=cr(),[i,s]=P.useState(""),a=PI({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return m.jsxs(m.Fragment,{children:[m.jsx(rn,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,children:m.jsx(Jg,{})}),m.jsx(Ir,{onOpenChange:n,open:o,size:"md",children:m.jsxs(Cr,{children:[m.jsx(Vr,{}),m.jsx(Rr,{children:m.jsxs(Tr,{children:[m.jsx(Dr,{children:m.jsxs(Nr,{children:["Set maintenance for worker ",t]})}),m.jsx(Fr,{children:m.jsx(tf,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),m.jsxs(Lr,{children:[m.jsx(_r,{asChild:!0,children:m.jsx(rt,{variant:"outline",children:"Cancel"})}),m.jsx(rt,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),m.jsx(Ar,{asChild:!0,children:m.jsx(Pr,{size:"sm"})})]})})]})})]})};function fR(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const gR=({onExitMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=cr(),i=TI({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return m.jsxs(m.Fragment,{children:[m.jsx(rn,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:m.jsx(fR,{})}),m.jsx(Ir,{onOpenChange:n,open:o,size:"md",children:m.jsxs(Cr,{children:[m.jsx(Vr,{}),m.jsx(Rr,{children:m.jsxs(Tr,{children:[m.jsx(Dr,{children:m.jsxs(Nr,{children:["Exit maintenance for worker ",t]})}),m.jsx(Fr,{children:m.jsxs(Ge,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),m.jsxs(Lr,{children:[m.jsx(_r,{asChild:!0,children:m.jsx(rt,{variant:"outline",children:"No"})}),m.jsx(rt,{onClick:s,children:"Yes"})]}),m.jsx(Ar,{asChild:!0,children:m.jsx(Pr,{size:"sm"})})]})})]})})]})};function Zg(e){return re({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"},child:[]}]})(e)}const ep=({onDelete:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=cr(),i=NI({onError:a=>{e({description:`Unable to delete worker ${t}: ${a}`,title:"Delete Worker Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} has been deleted from the system.`,title:"Worker Deleted",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return m.jsxs(m.Fragment,{children:[m.jsx(rn,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Delete Worker",title:"Delete Worker",colorPalette:"danger",children:m.jsx(Zg,{})}),m.jsx(Ir,{onOpenChange:n,open:o,size:"md",children:m.jsxs(Cr,{children:[m.jsx(Vr,{}),m.jsx(Rr,{children:m.jsxs(Tr,{children:[m.jsx(Dr,{children:m.jsxs(Nr,{children:["Delete worker ",t]})}),m.jsxs(Fr,{children:[m.jsxs(Ge,{children:["Are you sure you want to delete worker ",t,"?"]}),m.jsx(Ge,{fontSize:"sm",color:"red.500",mt:2,children:"This will permanently remove the worker record from the system. This action cannot be undone."})]}),m.jsxs(Lr,{children:[m.jsx(_r,{asChild:!0,children:m.jsx(rt,{variant:"outline",children:"Cancel"})}),m.jsxs(rt,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Deleting...",children:[m.jsx(Zg,{style:{marginRight:"8px"}}),"Delete Worker"]})]}),m.jsx(Ar,{asChild:!0,children:m.jsx(Pr,{size:"sm"})})]})})]})})]})};function tp(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}const np=({onShutdown:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=cr(),i=II({onError:a=>{e({description:`Unable to request shutdown for worker ${t}: ${a}`,title:"Shutdown Request Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to shutdown.`,title:"Shutdown Request Sent",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return m.jsxs(m.Fragment,{children:[m.jsx(rn,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Shutdown Worker",title:"Shutdown Worker",colorPalette:"danger",children:m.jsx(tp,{})}),m.jsx(Ir,{onOpenChange:n,open:o,size:"md",children:m.jsxs(Cr,{children:[m.jsx(Vr,{}),m.jsx(Rr,{children:m.jsxs(Tr,{children:[m.jsx(Dr,{children:m.jsxs(Nr,{children:["Shutdown worker ",t]})}),m.jsxs(Fr,{children:[m.jsxs(Ge,{children:["Are you sure you want to request shutdown for worker ",t,"?"]}),m.jsx(Ge,{fontSize:"sm",color:"red.500",mt:2,children:"This stops the worker on the remote edge. You can't restart it from the UI — you need to start it remotely instead."})]}),m.jsxs(Lr,{children:[m.jsx(_r,{asChild:!0,children:m.jsx(rt,{variant:"outline",children:"Cancel"})}),m.jsxs(rt,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Shutting down...",children:[m.jsx(tp,{style:{marginRight:"8px"}}),"Shutdown Worker"]})]}),m.jsx(Ar,{asChild:!0,children:m.jsx(Pr,{size:"sm"})})]})})]})})]})},pR=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,o=i=>{KI.create(i),e()};return r==="idle"||r==="running"?m.jsxs(ui,{justifyContent:"end",gap:2,children:[m.jsx(hR,{onEnterMaintenance:o,workerName:n}),m.jsx(np,{onShutdown:o,workerName:n})]}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?m.jsxs(WE,{gap:2,align:"stretch",children:[m.jsx(rr,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),m.jsxs(ui,{justifyContent:"end",gap:2,children:[m.jsx(uR,{onEditComment:o,workerName:n}),m.jsx(gR,{onExitMaintenance:o,workerName:n}),r==="offline maintenance"?m.jsx(ep,{onDelete:o,workerName:n}):m.jsx(np,{onShutdown:o,workerName:n})]})]}):r==="offline"||r==="unknown"?m.jsx(ui,{justifyContent:"end",children:m.jsx(ep,{onDelete:o,workerName:n})}):null};function mR(e){return re({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function vR(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function bR(e){return re({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const yR=({state:e,...t})=>{switch(e){case"starting":return m.jsx(Yg,{...t});case"running":return m.jsx(Kg,{...t});case"idle":return m.jsx(mR,{...t});case"shutdown request":case"terminating":return m.jsx(XI,{...t});case"offline":return m.jsx(vR,{...t});case"unknown":return m.jsx(bR,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return m.jsx(dR,{...t});case"maintenance mode":case"offline maintenance":return m.jsx(Jg,{...t});default:return m.jsx(Gg,{...t})}},xR=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},kR=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker is issued. It will be picked-up on the next heartbeat, tasks will drain and then worker will terminate.";case"terminating":return"Edge Worker is completing work (draining running tasks) and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down or got disconnected.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this message it will pause fetching tasks and drain tasks.";case"maintenance pending":return"Edge Worker received the request for maintenance, waiting for tasks to finish. Once tasks are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge Worker is in maintenance mode. It is online but pauses fetching tasks.";case"maintenance exit":return"Request Worker is requested to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new tasks.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},CR=O.forwardRef(({children:e,state:t,...n},r)=>m.jsxs(Uh,{borderRadius:"full",colorPalette:xR(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,title:kR(t),variant:"solid",...n,children:[t===void 0?void 0:m.jsx(yR,{state:t}),e]})),SR=()=>{const{data:e,error:t,refetch:n}=EI(void 0,{enabled:!0,refetchInterval:Xg});return e?.workers&&e.workers.length>0?m.jsxs(rr,{p:2,children:[m.jsxs(Jh,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[m.jsx(Zh,{children:m.jsxs(di,{children:[m.jsx(xe,{children:"Worker Name"}),m.jsx(xe,{children:"State"}),m.jsx(xe,{children:"Queues"}),m.jsx(xe,{children:"First Online"}),m.jsx(xe,{children:"Last Heartbeat"}),m.jsx(xe,{children:"Active Jobs"}),m.jsx(xe,{children:"System Information"}),m.jsx(xe,{children:"Operations"})]})}),m.jsx(ef,{children:e.workers.map(r=>m.jsxs(di,{id:r.worker_name,children:[m.jsx(ke,{children:r.worker_name}),m.jsx(ke,{children:m.jsx(CR,{state:r.state,children:r.state})}),m.jsx(ke,{children:r.queues?m.jsx(Xh,{children:r.queues.map(o=>m.jsx(Qh,{children:o},o))}):"(all queues)"}),m.jsx(ke,{children:r.first_online?m.jsx(Vi,{date:r.first_online,live:!1}):void 0}),m.jsx(ke,{children:r.last_heartbeat?m.jsx(Vi,{date:r.last_heartbeat,live:!1}):void 0}),m.jsx(ke,{children:r.jobs_active}),m.jsx(ke,{children:r.sysinfo?m.jsx(Xh,{children:Object.entries(r.sysinfo).map(([o,i])=>m.jsxs(Qh,{children:[o,": ",i]},o))}):"N/A"}),m.jsx(ke,{children:m.jsx(pR,{worker:r,onOperations:n})})]},r.worker_name))})]}),m.jsx(YI,{})]}):e?m.jsxs(Ge,{as:"div",pl:4,pt:1,children:["No known workers. Start one via ",m.jsx(DE,{children:"airflow edge worker [...]"}),". See"," ",m.jsxs(zr,{target:"_blank",variant:"underline",color:"fg.info",href:"https://airflow.apache.org/docs/apache-airflow-providers-edge3/stable/deployment.html",children:["Edge Worker Deployment docs ",m.jsx(WI,{})]})," ","how to deploy a new worker."]}):t?m.jsx(Ge,{as:"div",pl:4,pt:1,children:m.jsx(qg,{error:t})}):m.jsx(Ge,{as:"div",pl:4,pt:1,children:"Loading..."})},wR=({tabs:e})=>{const t=P.useRef(null),n=sR(t);return m.jsx(ui,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:o,value:i})=>m.jsx(oI,{end:!0,title:o,to:{pathname:i},children:({isActive:s})=>m.jsx(Gh,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?o:r})},i))})},ER=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return m.jsx(rr,{p:2,children:m.jsxs(tI,{children:[m.jsx(wR,{tabs:e}),m.jsxs(KP,{children:[m.jsx(Qa,{path:"plugin/edge_worker",element:m.jsx(SR,{})}),m.jsx(Qa,{path:"plugin/edge_jobs",element:m.jsx(cR,{})})]})]})})};/*! + */const np="token",pR=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if(n?.trim()==="_token"&&r!==void 0)return localStorage.setItem(np,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},mR=e=>{const t=localStorage.getItem(np)??pR();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},vR=()=>{const{data:e,error:t}=AI(void 0,{enabled:!0,refetchInterval:tp});return e?.jobs&&e.jobs.length>0?g.jsx(vr,{p:2,children:g.jsxs(tf,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[g.jsx(nf,{children:g.jsxs(hi,{children:[g.jsx(xe,{children:"Dag ID"}),g.jsx(xe,{children:"Run ID"}),g.jsx(xe,{children:"Task ID"}),g.jsx(xe,{children:"Map Index"}),g.jsx(xe,{children:"Try Number"}),g.jsx(xe,{children:"State"}),g.jsx(xe,{children:"Queue"}),g.jsx(xe,{children:"Queued DTTM"}),g.jsx(xe,{children:"Edge Worker"}),g.jsx(xe,{children:"Last Update"})]})}),g.jsx(rf,{children:e.jobs.map(n=>g.jsxs(hi,{children:[g.jsx(ke,{children:g.jsx(Mr,{href:`../dags/${n.dag_id}`,children:n.dag_id})}),g.jsx(ke,{children:g.jsx(Mr,{href:`../dags/${n.dag_id}/runs/${n.run_id}`,children:n.run_id})}),g.jsx(ke,{children:n.map_index>=0?g.jsx(Mr,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}/mapped/${n.map_index}?try_number=${n.try_number}`,children:n.task_id}):g.jsx(Mr,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}?try_number=${n.try_number}`,children:n.task_id})}),g.jsx(ke,{children:n.map_index>=0?n.map_index:"-"}),g.jsx(ke,{children:n.try_number}),g.jsx(ke,{children:g.jsx(fR,{state:n.state,children:n.state})}),g.jsx(ke,{children:n.queue}),g.jsx(ke,{children:n.queued_dttm?g.jsx(Fi,{date:n.queued_dttm,live:!1}):void 0}),g.jsx(ke,{children:g.jsx(Dg,{to:`/plugin/edge_worker#${n.edge_worker}`,children:n.edge_worker})}),g.jsx(ke,{children:n.last_update?g.jsx(Fi,{date:n.last_update,live:!1}):void 0})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):e?g.jsx(Le,{as:"div",pl:4,pt:1,children:"Currently no jobs running. Start a Dag and then all active jobs should show up here. Note that after some (configurable) time, jobs are purged from the list."}):t?g.jsx(Le,{as:"div",pl:4,pt:1,children:g.jsx(Jg,{error:t})}):g.jsx(Le,{as:"div",pl:4,pt:1,children:"Loading..."})},bR=({onQueueUpdate:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Qt(),[i,s]=P.useState(""),a=FI({onError:c=>{e({description:`Unable to add queue to worker ${t}: ${c}`,title:"Add Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was added to worker ${t}.`,title:"Queue Added",type:"success"}),n(),s("")}}),l=()=>{if(!i.trim()){e({description:"Please enter a queue name.",title:"Invalid Input",type:"error"});return}a.mutate({queueName:i.trim(),workerName:t})};return g.jsxs(g.Fragment,{children:[g.jsx(Ct,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Add Queue",title:"Add Queue",colorPalette:"success",children:g.jsx(Qg,{})}),g.jsx(dn,{onOpenChange:n,open:o,size:"md",children:g.jsxs(sn,{children:[g.jsx(vn,{}),g.jsx(hn,{children:g.jsxs(fn,{children:[g.jsx(xn,{children:g.jsxs(gn,{children:["Add Queue to ",t]})}),g.jsx(bn,{children:g.jsxs(di,{gap:4,align:"stretch",children:[g.jsx(Le,{children:"Enter the name of the queue to add to this worker:"}),g.jsx(GE,{placeholder:"Queue name",value:i,onChange:c=>s(c.target.value),onKeyDown:c=>{c.key==="Enter"&&l()}})]})}),g.jsxs(yn,{children:[g.jsx(mn,{asChild:!0,children:g.jsx(Pe,{variant:"outline",children:"Cancel"})}),g.jsxs(Pe,{onClick:l,colorPalette:"success",loading:a.isPending,loadingText:"Adding queue...",disabled:!i.trim(),children:[g.jsx(Qg,{}),"Add Queue"]})]}),g.jsx(pn,{asChild:!0,children:g.jsx(un,{size:"sm"})})]})})]})})]})},yR=({onEditComment:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Qt(),[i,s]=P.useState(""),a=LI({onError:c=>{e({description:`Unable to update comments for worker ${t}: ${c}`,title:"Updating Comments failed",type:"error"})},onSuccess:()=>{e({description:`Worker maintenance comments for ${t} were updated.`,title:"Maintenance Comments updated",type:"success"}),n()}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return g.jsxs(g.Fragment,{children:[g.jsx(Ct,{size:"sm",variant:"ghost","aria-label":"Edit Comments",title:"Edit Comments",onClick:r,children:g.jsx(sR,{})}),g.jsx(dn,{onOpenChange:n,open:o,size:"md",children:g.jsxs(sn,{children:[g.jsx(vn,{}),g.jsx(hn,{children:g.jsxs(fn,{children:[g.jsx(xn,{children:g.jsxs(gn,{children:["Edit maintenance comments for worker ",t]})}),g.jsx(bn,{children:g.jsx(of,{placeholder:"Change maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),g.jsxs(yn,{children:[g.jsx(mn,{asChild:!0,children:g.jsx(Pe,{variant:"outline",children:"Cancel"})}),g.jsx(Pe,{onClick:l,disabled:!i.trim(),children:"Update Comments"})]}),g.jsx(pn,{asChild:!0,children:g.jsx(un,{size:"sm"})})]})})]})})]})};function rp(e){return te({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function xR(e){return te({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const kR=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Qt(),[i,s]=P.useState(""),a=_I({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return g.jsxs(g.Fragment,{children:[g.jsx(Ct,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,children:g.jsx(rp,{})}),g.jsx(dn,{onOpenChange:n,open:o,size:"md",children:g.jsxs(sn,{children:[g.jsx(vn,{}),g.jsx(hn,{children:g.jsxs(fn,{children:[g.jsx(xn,{children:g.jsxs(gn,{children:["Set maintenance for worker ",t]})}),g.jsx(bn,{children:g.jsx(of,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),g.jsxs(yn,{children:[g.jsx(mn,{asChild:!0,children:g.jsx(Pe,{variant:"outline",children:"Cancel"})}),g.jsx(Pe,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),g.jsx(pn,{asChild:!0,children:g.jsx(un,{size:"sm"})})]})})]})})]})};function CR(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const SR=({onExitMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Qt(),i=DI({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return g.jsxs(g.Fragment,{children:[g.jsx(Ct,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:g.jsx(CR,{})}),g.jsx(dn,{onOpenChange:n,open:o,size:"md",children:g.jsxs(sn,{children:[g.jsx(vn,{}),g.jsx(hn,{children:g.jsxs(fn,{children:[g.jsx(xn,{children:g.jsxs(gn,{children:["Exit maintenance for worker ",t]})}),g.jsx(bn,{children:g.jsxs(Le,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),g.jsxs(yn,{children:[g.jsx(mn,{asChild:!0,children:g.jsx(Pe,{variant:"outline",children:"No"})}),g.jsx(Pe,{onClick:s,children:"Yes"})]}),g.jsx(pn,{asChild:!0,children:g.jsx(un,{size:"sm"})})]})})]})})]})},wR=({onQueueUpdate:e,worker:t})=>{const{onClose:n,onOpen:r,open:o}=Qt(),[i,s]=P.useState(""),a=MI({onError:u=>{e({description:`Unable to remove queue from worker ${t.worker_name}: ${u}`,title:"Remove Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was removed from worker ${t.worker_name}.`,title:"Queue Removed",type:"success"}),n(),s("")}}),l=()=>{if(!i){e({description:"Please select a queue to remove.",title:"Invalid Selection",type:"error"});return}a.mutate({queueName:i,workerName:t.worker_name})},c=t.queues||[];return c.length===0?null:g.jsxs(g.Fragment,{children:[g.jsx(Ct,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Remove Queue",title:"Remove Queue",colorPalette:"danger",children:g.jsx(Xg,{})}),g.jsx(dn,{onOpenChange:n,open:o,size:"md",children:g.jsxs(sn,{children:[g.jsx(vn,{}),g.jsx(hn,{children:g.jsxs(fn,{children:[g.jsx(xn,{children:g.jsxs(gn,{children:["Remove Queue from ",t.worker_name]})}),g.jsx(bn,{children:g.jsxs(di,{gap:4,align:"stretch",children:[g.jsx(Le,{children:"Select a queue to remove from this worker:"}),g.jsx(di,{gap:2,align:"stretch",children:g.jsx(HE,{each:c,children:u=>g.jsx(Pe,{variant:i===u?"solid":"outline",colorPalette:i===u?"blue":"gray",onClick:()=>s(u),justifyContent:"flex-start",children:u},u)})})]})}),g.jsxs(yn,{children:[g.jsx(mn,{asChild:!0,children:g.jsx(Pe,{variant:"outline",children:"Cancel"})}),g.jsxs(Pe,{onClick:l,colorPalette:"danger",loading:a.isPending,loadingText:"Removing queue...",disabled:!i,children:[g.jsx(Xg,{}),"Remove Queue"]})]}),g.jsx(pn,{asChild:!0,children:g.jsx(un,{size:"sm"})})]})})]})})]})};function op(e){return te({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"},child:[]}]})(e)}const ip=({onDelete:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Qt(),i=zI({onError:a=>{e({description:`Unable to delete worker ${t}: ${a}`,title:"Delete Worker Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} has been deleted from the system.`,title:"Worker Deleted",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return g.jsxs(g.Fragment,{children:[g.jsx(Ct,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Delete Worker",title:"Delete Worker",colorPalette:"danger",children:g.jsx(op,{})}),g.jsx(dn,{onOpenChange:n,open:o,size:"md",children:g.jsxs(sn,{children:[g.jsx(vn,{}),g.jsx(hn,{children:g.jsxs(fn,{children:[g.jsx(xn,{children:g.jsxs(gn,{children:["Delete worker ",t]})}),g.jsxs(bn,{children:[g.jsxs(Le,{children:["Are you sure you want to delete worker ",t,"?"]}),g.jsx(Le,{fontSize:"sm",color:"red.500",mt:2,children:"This will permanently remove the worker record from the system. This action cannot be undone."})]}),g.jsxs(yn,{children:[g.jsx(mn,{asChild:!0,children:g.jsx(Pe,{variant:"outline",children:"Cancel"})}),g.jsxs(Pe,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Deleting...",children:[g.jsx(op,{style:{marginRight:"8px"}}),"Delete Worker"]})]}),g.jsx(pn,{asChild:!0,children:g.jsx(un,{size:"sm"})})]})})]})})]})};function sp(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}const ap=({onShutdown:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Qt(),i=VI({onError:a=>{e({description:`Unable to request shutdown for worker ${t}: ${a}`,title:"Shutdown Request Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to shutdown.`,title:"Shutdown Request Sent",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return g.jsxs(g.Fragment,{children:[g.jsx(Ct,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Shutdown Worker",title:"Shutdown Worker",colorPalette:"danger",children:g.jsx(sp,{})}),g.jsx(dn,{onOpenChange:n,open:o,size:"md",children:g.jsxs(sn,{children:[g.jsx(vn,{}),g.jsx(hn,{children:g.jsxs(fn,{children:[g.jsx(xn,{children:g.jsxs(gn,{children:["Shutdown worker ",t]})}),g.jsxs(bn,{children:[g.jsxs(Le,{children:["Are you sure you want to request shutdown for worker ",t,"?"]}),g.jsx(Le,{fontSize:"sm",color:"red.500",mt:2,children:"This stops the worker on the remote edge. You can't restart it from the UI — you need to start it remotely instead."})]}),g.jsxs(yn,{children:[g.jsx(mn,{asChild:!0,children:g.jsx(Pe,{variant:"outline",children:"Cancel"})}),g.jsxs(Pe,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Shutting down...",children:[g.jsx(sp,{style:{marginRight:"8px"}}),"Shutdown Worker"]})]}),g.jsx(pn,{asChild:!0,children:g.jsx(un,{size:"sm"})})]})})]})})]})},ER=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,o=i=>{nR.create(i),e()};return r==="idle"||r==="running"?g.jsxs(ui,{justifyContent:"end",gap:2,children:[g.jsx(bR,{onQueueUpdate:o,workerName:n}),g.jsx(wR,{onQueueUpdate:o,worker:t}),g.jsx(kR,{onEnterMaintenance:o,workerName:n}),g.jsx(ap,{onShutdown:o,workerName:n})]}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?g.jsxs(di,{gap:2,align:"stretch",children:[g.jsx(vr,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),g.jsxs(ui,{justifyContent:"end",gap:2,children:[g.jsx(yR,{onEditComment:o,workerName:n}),g.jsx(SR,{onExitMaintenance:o,workerName:n}),r==="offline maintenance"?g.jsx(ip,{onDelete:o,workerName:n}):g.jsx(ap,{onShutdown:o,workerName:n})]})]}):r==="offline"||r==="unknown"?g.jsx(ui,{justifyContent:"end",children:g.jsx(ip,{onDelete:o,workerName:n})}):null};function OR(e){return te({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function PR(e){return te({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function IR(e){return te({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const RR=({state:e,...t})=>{switch(e){case"starting":return g.jsx(ep,{...t});case"running":return g.jsx(Zg,{...t});case"idle":return g.jsx(OR,{...t});case"shutdown request":case"terminating":return g.jsx(oR,{...t});case"offline":return g.jsx(PR,{...t});case"unknown":return g.jsx(IR,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return g.jsx(xR,{...t});case"maintenance mode":case"offline maintenance":return g.jsx(rp,{...t});default:return g.jsx(Yg,{...t})}},TR=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},NR=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker is issued. It will be picked-up on the next heartbeat, tasks will drain and then worker will terminate.";case"terminating":return"Edge Worker is completing work (draining running tasks) and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down or got disconnected.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this message it will pause fetching tasks and drain tasks.";case"maintenance pending":return"Edge Worker received the request for maintenance, waiting for tasks to finish. Once tasks are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge Worker is in maintenance mode. It is online but pauses fetching tasks.";case"maintenance exit":return"Request Worker is requested to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new tasks.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},AR=O.forwardRef(({children:e,state:t,...n},r)=>g.jsxs(Kh,{borderRadius:"full",colorPalette:TR(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,title:NR(t),variant:"solid",...n,children:[t===void 0?void 0:g.jsx(RR,{state:t}),e]})),_R=()=>{const{data:e,error:t,refetch:n}=NI(void 0,{enabled:!0,refetchInterval:tp});return e?.workers&&e.workers.length>0?g.jsxs(vr,{p:2,children:[g.jsxs(tf,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[g.jsx(nf,{children:g.jsxs(hi,{children:[g.jsx(xe,{children:"Worker Name"}),g.jsx(xe,{children:"State"}),g.jsx(xe,{children:"Queues"}),g.jsx(xe,{children:"First Online"}),g.jsx(xe,{children:"Last Heartbeat"}),g.jsx(xe,{children:"Active Jobs"}),g.jsx(xe,{children:"System Information"}),g.jsx(xe,{children:"Operations"})]})}),g.jsx(rf,{children:e.workers.map(r=>g.jsxs(hi,{id:r.worker_name,children:[g.jsx(ke,{children:r.worker_name}),g.jsx(ke,{children:g.jsx(AR,{state:r.state,children:r.state})}),g.jsx(ke,{children:r.queues?g.jsx(Zh,{children:r.queues.map(o=>g.jsx(ef,{children:o},o))}):"(all queues)"}),g.jsx(ke,{children:r.first_online?g.jsx(Fi,{date:r.first_online,live:!1}):void 0}),g.jsx(ke,{children:r.last_heartbeat?g.jsx(Fi,{date:r.last_heartbeat,live:!1}):void 0}),g.jsx(ke,{children:r.jobs_active}),g.jsx(ke,{children:r.sysinfo?g.jsx(Zh,{children:Object.entries(r.sysinfo).map(([o,i])=>g.jsxs(ef,{children:[o,": ",i]},o))}):"N/A"}),g.jsx(ke,{children:g.jsx(ER,{worker:r,onOperations:n})})]},r.worker_name))})]}),g.jsx(rR,{})]}):e?g.jsxs(Le,{as:"div",pl:4,pt:1,children:["No known workers. Start one via ",g.jsx($E,{children:"airflow edge worker [...]"}),". See"," ",g.jsxs(Mr,{target:"_blank",variant:"underline",color:"fg.info",href:"https://airflow.apache.org/docs/apache-airflow-providers-edge3/stable/deployment.html",children:["Edge Worker Deployment docs ",g.jsx(QI,{})]})," ","how to deploy a new worker."]}):t?g.jsx(Le,{as:"div",pl:4,pt:1,children:g.jsx(Jg,{error:t})}):g.jsx(Le,{as:"div",pl:4,pt:1,children:"Loading..."})},VR=({tabs:e})=>{const t=P.useRef(null),n=gR(t);return g.jsx(ui,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:o,value:i})=>g.jsx(uI,{end:!0,title:o,to:{pathname:i},children:({isActive:s})=>g.jsx(Yh,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?o:r})},i))})},FR=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return g.jsx(vr,{p:2,children:g.jsxs(aI,{children:[g.jsx(VR,{tabs:e}),g.jsxs(eI,{children:[g.jsx(Ja,{path:"plugin/edge_worker",element:g.jsx(_R,{})}),g.jsx(Ja,{path:"plugin/edge_jobs",element:g.jsx(vR,{})})]})]})})};/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -155,4 +155,4 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const U=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),OR=pa({theme:{tokens:{colors:{black:{value:"oklch(0.23185 0.0323 266.44)"},brand:{50:{value:"oklch(0.98 0.006 248.717)"},100:{value:"oklch(0.962 0.012 249.460)"},200:{value:"oklch(0.923 0.023 255.082)"},300:{value:"oklch(0.865 0.039 252.420)"},400:{value:"oklch(0.705 0.066 256.378)"},500:{value:"oklch(0.575 0.08 257.759)"},600:{value:"oklch(0.469 0.084 257.657)"},700:{value:"oklch(0.399 0.084 257.850)"},800:{value:"oklch(0.324 0.072 260.329)"},900:{value:"oklch(0.259 0.062 265.566)"},950:{value:"oklch(0.179 0.05 265.487)"}},gray:{50:{value:"oklch(0.985 0.004 253)"},100:{value:"oklch(0.955 0.006 253)"},200:{value:"oklch(0.915 0.01 253)"},300:{value:"oklch(0.85 0.016 253)"},400:{value:"oklch(0.75 0.025 252)"},500:{value:"oklch(0.63, 0.04, 252)"},600:{value:"oklch(0.45 0.055 251)"},700:{value:"oklch(0.35 0.045 251)"},800:{value:"oklch(0.28 0.035 251)"},900:{value:"oklch(0.18 0.03 251)"},950:{value:"oklch(0.11 0.025 251)"}},red:{50:{value:"oklch(0.971 0.013 17.38)"},100:{value:"oklch(0.936 0.032 17.717)"},200:{value:"oklch(0.885 0.062 18.334)"},300:{value:"oklch(0.808 0.114 19.571)"},400:{value:"oklch(0.704 0.191 22.216)"},500:{value:"oklch(0.637 0.237 25.331)"},600:{value:"oklch(0.577 0.245 27.325)"},700:{value:"oklch(0.505 0.213 27.518)"},800:{value:"oklch(0.444 0.177 26.899)"},900:{value:"oklch(0.396 0.141 25.723)"},950:{value:"oklch(0.258 0.092 26.042)"}},orange:{50:{value:"oklch(0.982 0.013 83.915)"},100:{value:"oklch(0.961 0.033 82.320)"},200:{value:"oklch(0.918 0.065 79.975)"},300:{value:"oklch(0.857 0.118 76.815)"},400:{value:"oklch(0.7492 0.1439 62.081)"},500:{value:"oklch(0.6462 0.1979 43.792)"},600:{value:"oklch(0.5902 0.198 35.93)"},700:{value:"oklch(0.553 0.184 41.777)"},800:{value:"oklch(0.469 0.144 45.164)"},900:{value:"oklch(0.414 0.110 48.717)"},950:{value:"oklch(0.271 0.069 52.345)"}},amber:{50:{value:"oklch(0.987 0.022 95.277)"},100:{value:"oklch(0.962 0.059 95.617)"},200:{value:"oklch(0.924 0.12 95.746)"},300:{value:"oklch(0.879 0.169 91.605)"},400:{value:"oklch(0.828 0.189 84.429)"},500:{value:"oklch(0.769 0.188 70.08)"},600:{value:"oklch(0.666 0.179 58.318)"},700:{value:"oklch(0.555 0.163 48.998)"},800:{value:"oklch(0.473 0.137 46.201)"},900:{value:"oklch(0.414 0.112 45.904)"},950:{value:"oklch(0.279 0.077 45.635)"}},yellow:{50:{value:"oklch(0.987 0.026 102.212)"},100:{value:"oklch(0.973 0.071 103.193)"},200:{value:"oklch(0.945 0.129 101.54)"},300:{value:"oklch(0.905 0.182 98.111)"},400:{value:"oklch(0.852 0.199 91.936)"},500:{value:"oklch(0.795 0.184 86.047)"},600:{value:"oklch(0.681 0.162 75.834)"},700:{value:"oklch(0.554 0.135 66.442)"},800:{value:"oklch(0.476 0.114 61.907)"},900:{value:"oklch(0.421 0.095 57.708)"},950:{value:"oklch(0.286 0.066 53.813)"}},lime:{50:{value:"oklch(0.986 0.031 120.757)"},100:{value:"oklch(0.967 0.067 122.328)"},200:{value:"oklch(0.938 0.127 124.321)"},300:{value:"oklch(0.897 0.196 126.665)"},400:{value:"oklch(0.841 0.238 128.85)"},500:{value:"oklch(0.768 0.233 130.85)"},600:{value:"oklch(0.648 0.2 131.684)"},700:{value:"oklch(0.532 0.157 131.589)"},800:{value:"oklch(0.453 0.124 130.933)"},900:{value:"oklch(0.405 0.101 131.063)"},950:{value:"oklch(0.274 0.072 132.109)"}},green:{50:{value:"oklch(0.982 0.018 155.826)"},100:{value:"oklch(0.962 0.044 156.743)"},200:{value:"oklch(0.925 0.084 155.995)"},300:{value:"oklch(0.75 0.18 153.0)"},400:{value:"oklch(0.625 0.209 150.0)"},500:{value:"oklch(0.528 0.219 149.579)"},600:{value:"oklch(0.47 0.20 149.0)"},700:{value:"oklch(0.40 0.16 149.5)"},800:{value:"oklch(0.448 0.119 151.328)"},900:{value:"oklch(0.393 0.095 152.535)"},950:{value:"oklch(0.266 0.065 152.934)"}},emerald:{50:{value:"oklch(0.979 0.021 166.113)"},100:{value:"oklch(0.95 0.052 163.051)"},200:{value:"oklch(0.905 0.093 164.15)"},300:{value:"oklch(0.845 0.143 164.978)"},400:{value:"oklch(0.765 0.177 163.223)"},500:{value:"oklch(0.696 0.17 162.48)"},600:{value:"oklch(0.596 0.145 163.225)"},700:{value:"oklch(0.508 0.118 165.612)"},800:{value:"oklch(0.432 0.095 166.913)"},900:{value:"oklch(0.378 0.077 168.94)"},950:{value:"oklch(0.262 0.051 172.552)"}},teal:{50:{value:"oklch(0.984 0.014 180.72)"},100:{value:"oklch(0.953 0.051 180.801)"},200:{value:"oklch(0.91 0.096 180.426)"},300:{value:"oklch(0.855 0.138 181.071)"},400:{value:"oklch(0.777 0.152 181.912)"},500:{value:"oklch(0.704 0.14 182.503)"},600:{value:"oklch(0.6 0.118 184.704)"},700:{value:"oklch(0.511 0.096 186.391)"},800:{value:"oklch(0.437 0.078 188.216)"},900:{value:"oklch(0.386 0.063 188.416)"},950:{value:"oklch(0.277 0.046 192.524)"}},cyan:{50:{value:"oklch(0.984 0.019 200.873)"},100:{value:"oklch(0.956 0.045 203.388)"},200:{value:"oklch(0.917 0.08 205.041)"},300:{value:"oklch(0.865 0.127 207.078)"},400:{value:"oklch(0.789 0.154 211.53)"},500:{value:"oklch(0.715 0.143 215.221)"},600:{value:"oklch(0.609 0.126 221.723)"},700:{value:"oklch(0.52 0.105 223.128)"},800:{value:"oklch(0.45 0.085 224.283)"},900:{value:"oklch(0.398 0.07 227.392)"},950:{value:"oklch(0.302 0.056 229.695)"}},sky:{50:{value:"oklch(0.977 0.013 236.62)"},100:{value:"oklch(0.951 0.026 236.824)"},200:{value:"oklch(0.901 0.058 230.902)"},300:{value:"oklch(0.828 0.111 230.318)"},400:{value:"oklch(0.746 0.16 232.661)"},500:{value:"oklch(0.685 0.169 237.323)"},600:{value:"oklch(0.588 0.158 241.966)"},700:{value:"oklch(0.5 0.134 242.749)"},800:{value:"oklch(0.443 0.11 240.79)"},900:{value:"oklch(0.391 0.09 240.876)"},950:{value:"oklch(0.293 0.066 243.157)"}},blue:{50:{value:"oklch(0.97 0.014 254.604)"},100:{value:"oklch(0.932 0.032 255.585)"},200:{value:"oklch(0.882 0.059 254.128)"},300:{value:"oklch(0.809 0.105 251.813)"},400:{value:"oklch(0.707 0.165 254.624)"},500:{value:"oklch(0.623 0.214 259.815)"},600:{value:"oklch(0.546 0.245 262.881)"},700:{value:"oklch(0.488 0.243 264.376)"},800:{value:"oklch(0.424 0.199 265.638)"},900:{value:"oklch(0.379 0.146 265.522)"},950:{value:"oklch(0.282 0.091 267.935)"}},indigo:{50:{value:"oklch(0.962 0.018 272.314)"},100:{value:"oklch(0.93 0.034 272.788)"},200:{value:"oklch(0.87 0.065 274.039)"},300:{value:"oklch(0.785 0.115 274.713)"},400:{value:"oklch(0.673 0.182 276.935)"},500:{value:"oklch(0.585 0.233 277.117)"},600:{value:"oklch(0.511 0.262 276.966)"},700:{value:"oklch(0.457 0.24 277.023)"},800:{value:"oklch(0.398 0.195 277.366)"},900:{value:"oklch(0.359 0.144 278.697)"},950:{value:"oklch(0.257 0.09 281.288)"}},violet:{50:{value:"oklch(0.969 0.016 293.756)"},100:{value:"oklch(0.943 0.029 294.588)"},200:{value:"oklch(0.894 0.057 293.283)"},300:{value:"oklch(0.811 0.111 293.571)"},400:{value:"oklch(0.702 0.183 293.541)"},500:{value:"oklch(0.606 0.25 292.717)"},600:{value:"oklch(0.541 0.281 293.009)"},700:{value:"oklch(0.491 0.27 292.581)"},800:{value:"oklch(0.432 0.232 292.759)"},900:{value:"oklch(0.38 0.189 293.745)"},950:{value:"oklch(0.283 0.141 291.089)"}},purple:{50:{value:"oklch(0.977 0.014 308.299)"},100:{value:"oklch(0.946 0.033 307.174)"},200:{value:"oklch(0.902 0.063 306.703)"},300:{value:"oklch(0.827 0.119 306.383)"},400:{value:"oklch(0.714 0.203 305.504)"},500:{value:"oklch(0.627 0.265 303.9)"},600:{value:"oklch(0.558 0.288 302.321)"},700:{value:"oklch(0.496 0.265 301.924)"},800:{value:"oklch(0.438 0.218 303.724)"},900:{value:"oklch(0.381 0.176 304.987)"},950:{value:"oklch(0.291 0.149 302.717)"}},fuchsia:{50:{value:"oklch(0.977 0.017 320.058)"},100:{value:"oklch(0.952 0.037 318.852)"},200:{value:"oklch(0.903 0.076 319.62)"},300:{value:"oklch(0.833 0.145 321.434)"},400:{value:"oklch(0.74 0.238 322.16)"},500:{value:"oklch(0.667 0.295 322.15)"},600:{value:"oklch(0.591 0.293 322.896)"},700:{value:"oklch(0.518 0.253 323.949)"},800:{value:"oklch(0.452 0.211 324.591)"},900:{value:"oklch(0.401 0.17 325.612)"},950:{value:"oklch(0.293 0.136 325.661)"}},pink:{50:{value:"oklch(0.971 0.014 343.198)"},100:{value:"oklch(0.948 0.028 342.258)"},200:{value:"oklch(0.899 0.061 343.231)"},300:{value:"oklch(0.823 0.12 346.018)"},400:{value:"oklch(0.718 0.202 349.761)"},500:{value:"oklch(0.656 0.241 354.308)"},600:{value:"oklch(0.592 0.249 0.584)"},700:{value:"oklch(0.525 0.223 3.958)"},800:{value:"oklch(0.459 0.187 3.815)"},900:{value:"oklch(0.408 0.153 2.432)"},950:{value:"oklch(0.284 0.109 3.907)"}},rose:{50:{value:"oklch(0.969 0.015 12.422)"},100:{value:"oklch(0.941 0.03 12.58)"},200:{value:"oklch(0.892 0.058 10.001)"},300:{value:"oklch(0.81 0.117 11.638)"},400:{value:"oklch(0.712 0.194 13.428)"},500:{value:"oklch(0.645 0.246 16.439)"},600:{value:"oklch(0.586 0.253 17.585)"},700:{value:"oklch(0.514 0.222 16.935)"},800:{value:"oklch(0.455 0.188 13.697)"},900:{value:"oklch(0.41 0.159 10.272)"},950:{value:"oklch(0.271 0.105 12.094)"}},slate:{50:{value:"oklch(0.984 0.003 247.858)"},100:{value:"oklch(0.968 0.007 247.896)"},200:{value:"oklch(0.929 0.013 255.508)"},300:{value:"oklch(0.869 0.022 252.894)"},400:{value:"oklch(0.704 0.04 256.788)"},500:{value:"oklch(0.554 0.046 257.417)"},600:{value:"oklch(0.446 0.043 257.281)"},700:{value:"oklch(0.372 0.044 257.287)"},800:{value:"oklch(0.279 0.041 260.031)"},900:{value:"oklch(0.208 0.042 265.755)"},950:{value:"oklch(0.129 0.042 264.695)"}},zinc:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.967 0.001 286.375)"},200:{value:"oklch(0.92 0.004 286.32)"},300:{value:"oklch(0.871 0.006 286.286)"},400:{value:"oklch(0.705 0.015 286.067)"},500:{value:"oklch(0.552 0.016 285.938)"},600:{value:"oklch(0.442 0.017 285.786)"},700:{value:"oklch(0.37 0.013 285.805)"},800:{value:"oklch(0.274 0.006 286.033)"},900:{value:"oklch(0.21 0.006 285.885)"},950:{value:"oklch(0.141 0.005 285.823)"}},neutral:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.97 0 0)"},200:{value:"oklch(0.922 0 0)"},300:{value:"oklch(0.87 0 0)"},400:{value:"oklch(0.708 0 0)"},500:{value:"oklch(0.556 0 0)"},600:{value:"oklch(0.439 0 0)"},700:{value:"oklch(0.371 0 0)"},800:{value:"oklch(0.269 0 0)"},900:{value:"oklch(0.205 0 0)"},950:{value:"oklch(0.145 0 0)"}},stone:{50:{value:"oklch(0.985 0.001 106.423)"},100:{value:"oklch(0.97 0.001 106.424)"},200:{value:"oklch(0.923 0.003 48.717)"},300:{value:"oklch(0.869 0.005 56.366)"},400:{value:"oklch(0.709 0.01 56.259)"},500:{value:"oklch(0.553 0.013 58.071)"},600:{value:"oklch(0.444 0.011 73.639)"},700:{value:"oklch(0.374 0.01 67.558)"},800:{value:"oklch(0.268 0.007 34.298)"},900:{value:"oklch(0.216 0.006 56.043)"},950:{value:"oklch(0.147 0.004 49.25)"}}}},semanticTokens:{colors:{brand:U("brand"),danger:U("red"),info:U("blue"),warning:U("amber"),error:U("red"),active:U("blue"),success:U("green"),failed:U("red"),queued:U("stone"),skipped:U("pink"),up_for_reschedule:U("sky"),up_for_retry:U("yellow"),upstream_failed:U("orange"),running:U("cyan"),restarting:U("violet"),deferred:U("purple"),scheduled:U("zinc"),none:U("gray"),removed:U("slate"),red:U("red"),orange:U("orange"),amber:U("amber"),yellow:U("yellow"),lime:U("lime"),green:U("green"),emerald:U("emerald"),teal:U("teal"),cyan:U("cyan"),sky:U("sky"),blue:U("blue"),indigo:U("indigo"),violet:U("violet"),purple:U("purple"),fuchsia:U("fuchsia"),pink:U("pink"),rose:U("rose"),slate:U("slate"),gray:U("gray"),zinc:U("zinc"),neutral:U("neutral"),stone:U("stone")}}}}),PR=Eh(jh,OR);return()=>{ae.interceptors.request.use(lR);const e=new m2({defaultOptions:{queries:{staleTime:1/0}}});return m.jsx(fm,{value:PR,children:m.jsx(v2,{client:e,children:m.jsx(oP,{children:m.jsx(ER,{})})})})}})); + */const U=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),LR=ma({theme:{tokens:{colors:{black:{value:"oklch(0.23185 0.0323 266.44)"},brand:{50:{value:"oklch(0.98 0.006 248.717)"},100:{value:"oklch(0.962 0.012 249.460)"},200:{value:"oklch(0.923 0.023 255.082)"},300:{value:"oklch(0.865 0.039 252.420)"},400:{value:"oklch(0.705 0.066 256.378)"},500:{value:"oklch(0.575 0.08 257.759)"},600:{value:"oklch(0.469 0.084 257.657)"},700:{value:"oklch(0.399 0.084 257.850)"},800:{value:"oklch(0.324 0.072 260.329)"},900:{value:"oklch(0.259 0.062 265.566)"},950:{value:"oklch(0.179 0.05 265.487)"}},gray:{50:{value:"oklch(0.985 0.004 253)"},100:{value:"oklch(0.955 0.006 253)"},200:{value:"oklch(0.915 0.01 253)"},300:{value:"oklch(0.85 0.016 253)"},400:{value:"oklch(0.75 0.025 252)"},500:{value:"oklch(0.63, 0.04, 252)"},600:{value:"oklch(0.45 0.055 251)"},700:{value:"oklch(0.35 0.045 251)"},800:{value:"oklch(0.28 0.035 251)"},900:{value:"oklch(0.18 0.03 251)"},950:{value:"oklch(0.11 0.025 251)"}},red:{50:{value:"oklch(0.971 0.013 17.38)"},100:{value:"oklch(0.936 0.032 17.717)"},200:{value:"oklch(0.885 0.062 18.334)"},300:{value:"oklch(0.808 0.114 19.571)"},400:{value:"oklch(0.704 0.191 22.216)"},500:{value:"oklch(0.637 0.237 25.331)"},600:{value:"oklch(0.577 0.245 27.325)"},700:{value:"oklch(0.505 0.213 27.518)"},800:{value:"oklch(0.444 0.177 26.899)"},900:{value:"oklch(0.396 0.141 25.723)"},950:{value:"oklch(0.258 0.092 26.042)"}},orange:{50:{value:"oklch(0.982 0.013 83.915)"},100:{value:"oklch(0.961 0.033 82.320)"},200:{value:"oklch(0.918 0.065 79.975)"},300:{value:"oklch(0.857 0.118 76.815)"},400:{value:"oklch(0.7492 0.1439 62.081)"},500:{value:"oklch(0.6462 0.1979 43.792)"},600:{value:"oklch(0.5902 0.198 35.93)"},700:{value:"oklch(0.553 0.184 41.777)"},800:{value:"oklch(0.469 0.144 45.164)"},900:{value:"oklch(0.414 0.110 48.717)"},950:{value:"oklch(0.271 0.069 52.345)"}},amber:{50:{value:"oklch(0.987 0.022 95.277)"},100:{value:"oklch(0.962 0.059 95.617)"},200:{value:"oklch(0.924 0.12 95.746)"},300:{value:"oklch(0.879 0.169 91.605)"},400:{value:"oklch(0.828 0.189 84.429)"},500:{value:"oklch(0.769 0.188 70.08)"},600:{value:"oklch(0.666 0.179 58.318)"},700:{value:"oklch(0.555 0.163 48.998)"},800:{value:"oklch(0.473 0.137 46.201)"},900:{value:"oklch(0.414 0.112 45.904)"},950:{value:"oklch(0.279 0.077 45.635)"}},yellow:{50:{value:"oklch(0.987 0.026 102.212)"},100:{value:"oklch(0.973 0.071 103.193)"},200:{value:"oklch(0.945 0.129 101.54)"},300:{value:"oklch(0.905 0.182 98.111)"},400:{value:"oklch(0.852 0.199 91.936)"},500:{value:"oklch(0.795 0.184 86.047)"},600:{value:"oklch(0.681 0.162 75.834)"},700:{value:"oklch(0.554 0.135 66.442)"},800:{value:"oklch(0.476 0.114 61.907)"},900:{value:"oklch(0.421 0.095 57.708)"},950:{value:"oklch(0.286 0.066 53.813)"}},lime:{50:{value:"oklch(0.986 0.031 120.757)"},100:{value:"oklch(0.967 0.067 122.328)"},200:{value:"oklch(0.938 0.127 124.321)"},300:{value:"oklch(0.897 0.196 126.665)"},400:{value:"oklch(0.841 0.238 128.85)"},500:{value:"oklch(0.768 0.233 130.85)"},600:{value:"oklch(0.648 0.2 131.684)"},700:{value:"oklch(0.532 0.157 131.589)"},800:{value:"oklch(0.453 0.124 130.933)"},900:{value:"oklch(0.405 0.101 131.063)"},950:{value:"oklch(0.274 0.072 132.109)"}},green:{50:{value:"oklch(0.982 0.018 155.826)"},100:{value:"oklch(0.962 0.044 156.743)"},200:{value:"oklch(0.925 0.084 155.995)"},300:{value:"oklch(0.75 0.18 153.0)"},400:{value:"oklch(0.625 0.209 150.0)"},500:{value:"oklch(0.528 0.219 149.579)"},600:{value:"oklch(0.47 0.20 149.0)"},700:{value:"oklch(0.40 0.16 149.5)"},800:{value:"oklch(0.448 0.119 151.328)"},900:{value:"oklch(0.393 0.095 152.535)"},950:{value:"oklch(0.266 0.065 152.934)"}},emerald:{50:{value:"oklch(0.979 0.021 166.113)"},100:{value:"oklch(0.95 0.052 163.051)"},200:{value:"oklch(0.905 0.093 164.15)"},300:{value:"oklch(0.845 0.143 164.978)"},400:{value:"oklch(0.765 0.177 163.223)"},500:{value:"oklch(0.696 0.17 162.48)"},600:{value:"oklch(0.596 0.145 163.225)"},700:{value:"oklch(0.508 0.118 165.612)"},800:{value:"oklch(0.432 0.095 166.913)"},900:{value:"oklch(0.378 0.077 168.94)"},950:{value:"oklch(0.262 0.051 172.552)"}},teal:{50:{value:"oklch(0.984 0.014 180.72)"},100:{value:"oklch(0.953 0.051 180.801)"},200:{value:"oklch(0.91 0.096 180.426)"},300:{value:"oklch(0.855 0.138 181.071)"},400:{value:"oklch(0.777 0.152 181.912)"},500:{value:"oklch(0.704 0.14 182.503)"},600:{value:"oklch(0.6 0.118 184.704)"},700:{value:"oklch(0.511 0.096 186.391)"},800:{value:"oklch(0.437 0.078 188.216)"},900:{value:"oklch(0.386 0.063 188.416)"},950:{value:"oklch(0.277 0.046 192.524)"}},cyan:{50:{value:"oklch(0.984 0.019 200.873)"},100:{value:"oklch(0.956 0.045 203.388)"},200:{value:"oklch(0.917 0.08 205.041)"},300:{value:"oklch(0.865 0.127 207.078)"},400:{value:"oklch(0.789 0.154 211.53)"},500:{value:"oklch(0.715 0.143 215.221)"},600:{value:"oklch(0.609 0.126 221.723)"},700:{value:"oklch(0.52 0.105 223.128)"},800:{value:"oklch(0.45 0.085 224.283)"},900:{value:"oklch(0.398 0.07 227.392)"},950:{value:"oklch(0.302 0.056 229.695)"}},sky:{50:{value:"oklch(0.977 0.013 236.62)"},100:{value:"oklch(0.951 0.026 236.824)"},200:{value:"oklch(0.901 0.058 230.902)"},300:{value:"oklch(0.828 0.111 230.318)"},400:{value:"oklch(0.746 0.16 232.661)"},500:{value:"oklch(0.685 0.169 237.323)"},600:{value:"oklch(0.588 0.158 241.966)"},700:{value:"oklch(0.5 0.134 242.749)"},800:{value:"oklch(0.443 0.11 240.79)"},900:{value:"oklch(0.391 0.09 240.876)"},950:{value:"oklch(0.293 0.066 243.157)"}},blue:{50:{value:"oklch(0.97 0.014 254.604)"},100:{value:"oklch(0.932 0.032 255.585)"},200:{value:"oklch(0.882 0.059 254.128)"},300:{value:"oklch(0.809 0.105 251.813)"},400:{value:"oklch(0.707 0.165 254.624)"},500:{value:"oklch(0.623 0.214 259.815)"},600:{value:"oklch(0.546 0.245 262.881)"},700:{value:"oklch(0.488 0.243 264.376)"},800:{value:"oklch(0.424 0.199 265.638)"},900:{value:"oklch(0.379 0.146 265.522)"},950:{value:"oklch(0.282 0.091 267.935)"}},indigo:{50:{value:"oklch(0.962 0.018 272.314)"},100:{value:"oklch(0.93 0.034 272.788)"},200:{value:"oklch(0.87 0.065 274.039)"},300:{value:"oklch(0.785 0.115 274.713)"},400:{value:"oklch(0.673 0.182 276.935)"},500:{value:"oklch(0.585 0.233 277.117)"},600:{value:"oklch(0.511 0.262 276.966)"},700:{value:"oklch(0.457 0.24 277.023)"},800:{value:"oklch(0.398 0.195 277.366)"},900:{value:"oklch(0.359 0.144 278.697)"},950:{value:"oklch(0.257 0.09 281.288)"}},violet:{50:{value:"oklch(0.969 0.016 293.756)"},100:{value:"oklch(0.943 0.029 294.588)"},200:{value:"oklch(0.894 0.057 293.283)"},300:{value:"oklch(0.811 0.111 293.571)"},400:{value:"oklch(0.702 0.183 293.541)"},500:{value:"oklch(0.606 0.25 292.717)"},600:{value:"oklch(0.541 0.281 293.009)"},700:{value:"oklch(0.491 0.27 292.581)"},800:{value:"oklch(0.432 0.232 292.759)"},900:{value:"oklch(0.38 0.189 293.745)"},950:{value:"oklch(0.283 0.141 291.089)"}},purple:{50:{value:"oklch(0.977 0.014 308.299)"},100:{value:"oklch(0.946 0.033 307.174)"},200:{value:"oklch(0.902 0.063 306.703)"},300:{value:"oklch(0.827 0.119 306.383)"},400:{value:"oklch(0.714 0.203 305.504)"},500:{value:"oklch(0.627 0.265 303.9)"},600:{value:"oklch(0.558 0.288 302.321)"},700:{value:"oklch(0.496 0.265 301.924)"},800:{value:"oklch(0.438 0.218 303.724)"},900:{value:"oklch(0.381 0.176 304.987)"},950:{value:"oklch(0.291 0.149 302.717)"}},fuchsia:{50:{value:"oklch(0.977 0.017 320.058)"},100:{value:"oklch(0.952 0.037 318.852)"},200:{value:"oklch(0.903 0.076 319.62)"},300:{value:"oklch(0.833 0.145 321.434)"},400:{value:"oklch(0.74 0.238 322.16)"},500:{value:"oklch(0.667 0.295 322.15)"},600:{value:"oklch(0.591 0.293 322.896)"},700:{value:"oklch(0.518 0.253 323.949)"},800:{value:"oklch(0.452 0.211 324.591)"},900:{value:"oklch(0.401 0.17 325.612)"},950:{value:"oklch(0.293 0.136 325.661)"}},pink:{50:{value:"oklch(0.971 0.014 343.198)"},100:{value:"oklch(0.948 0.028 342.258)"},200:{value:"oklch(0.899 0.061 343.231)"},300:{value:"oklch(0.823 0.12 346.018)"},400:{value:"oklch(0.718 0.202 349.761)"},500:{value:"oklch(0.656 0.241 354.308)"},600:{value:"oklch(0.592 0.249 0.584)"},700:{value:"oklch(0.525 0.223 3.958)"},800:{value:"oklch(0.459 0.187 3.815)"},900:{value:"oklch(0.408 0.153 2.432)"},950:{value:"oklch(0.284 0.109 3.907)"}},rose:{50:{value:"oklch(0.969 0.015 12.422)"},100:{value:"oklch(0.941 0.03 12.58)"},200:{value:"oklch(0.892 0.058 10.001)"},300:{value:"oklch(0.81 0.117 11.638)"},400:{value:"oklch(0.712 0.194 13.428)"},500:{value:"oklch(0.645 0.246 16.439)"},600:{value:"oklch(0.586 0.253 17.585)"},700:{value:"oklch(0.514 0.222 16.935)"},800:{value:"oklch(0.455 0.188 13.697)"},900:{value:"oklch(0.41 0.159 10.272)"},950:{value:"oklch(0.271 0.105 12.094)"}},slate:{50:{value:"oklch(0.984 0.003 247.858)"},100:{value:"oklch(0.968 0.007 247.896)"},200:{value:"oklch(0.929 0.013 255.508)"},300:{value:"oklch(0.869 0.022 252.894)"},400:{value:"oklch(0.704 0.04 256.788)"},500:{value:"oklch(0.554 0.046 257.417)"},600:{value:"oklch(0.446 0.043 257.281)"},700:{value:"oklch(0.372 0.044 257.287)"},800:{value:"oklch(0.279 0.041 260.031)"},900:{value:"oklch(0.208 0.042 265.755)"},950:{value:"oklch(0.129 0.042 264.695)"}},zinc:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.967 0.001 286.375)"},200:{value:"oklch(0.92 0.004 286.32)"},300:{value:"oklch(0.871 0.006 286.286)"},400:{value:"oklch(0.705 0.015 286.067)"},500:{value:"oklch(0.552 0.016 285.938)"},600:{value:"oklch(0.442 0.017 285.786)"},700:{value:"oklch(0.37 0.013 285.805)"},800:{value:"oklch(0.274 0.006 286.033)"},900:{value:"oklch(0.21 0.006 285.885)"},950:{value:"oklch(0.141 0.005 285.823)"}},neutral:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.97 0 0)"},200:{value:"oklch(0.922 0 0)"},300:{value:"oklch(0.87 0 0)"},400:{value:"oklch(0.708 0 0)"},500:{value:"oklch(0.556 0 0)"},600:{value:"oklch(0.439 0 0)"},700:{value:"oklch(0.371 0 0)"},800:{value:"oklch(0.269 0 0)"},900:{value:"oklch(0.205 0 0)"},950:{value:"oklch(0.145 0 0)"}},stone:{50:{value:"oklch(0.985 0.001 106.423)"},100:{value:"oklch(0.97 0.001 106.424)"},200:{value:"oklch(0.923 0.003 48.717)"},300:{value:"oklch(0.869 0.005 56.366)"},400:{value:"oklch(0.709 0.01 56.259)"},500:{value:"oklch(0.553 0.013 58.071)"},600:{value:"oklch(0.444 0.011 73.639)"},700:{value:"oklch(0.374 0.01 67.558)"},800:{value:"oklch(0.268 0.007 34.298)"},900:{value:"oklch(0.216 0.006 56.043)"},950:{value:"oklch(0.147 0.004 49.25)"}}}},semanticTokens:{colors:{brand:U("brand"),danger:U("red"),info:U("blue"),warning:U("amber"),error:U("red"),active:U("blue"),success:U("green"),failed:U("red"),queued:U("stone"),skipped:U("pink"),up_for_reschedule:U("sky"),up_for_retry:U("yellow"),upstream_failed:U("orange"),running:U("cyan"),restarting:U("violet"),deferred:U("purple"),scheduled:U("zinc"),none:U("gray"),removed:U("slate"),red:U("red"),orange:U("orange"),amber:U("amber"),yellow:U("yellow"),lime:U("lime"),green:U("green"),emerald:U("emerald"),teal:U("teal"),cyan:U("cyan"),sky:U("sky"),blue:U("blue"),indigo:U("indigo"),violet:U("violet"),purple:U("purple"),fuchsia:U("fuchsia"),pink:U("pink"),rose:U("rose"),slate:U("slate"),gray:U("gray"),zinc:U("zinc"),neutral:U("neutral"),stone:U("stone")}}}}),DR=Ih(Wh,LR);return()=>{ae.interceptors.request.use(mR);const e=new C2({defaultOptions:{queries:{staleTime:1/0}}});return g.jsx(bm,{value:DR,children:g.jsx(S2,{client:e,children:g.jsx(uP,{children:g.jsx(FR,{})})})})}})); diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/common.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/common.ts index 7d6ccb0f058d8..e6ef2ff15319a 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/common.ts +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/common.ts @@ -30,9 +30,11 @@ export type LogsServicePushLogsMutationResult = Awaited>; export type UiServiceRequestWorkerMaintenanceMutationResult = Awaited>; export type UiServiceRequestWorkerShutdownMutationResult = Awaited>; +export type UiServiceAddWorkerQueueMutationResult = Awaited>; export type JobsServiceStateMutationResult = Awaited>; export type WorkerServiceSetStateMutationResult = Awaited>; export type WorkerServiceUpdateQueuesMutationResult = Awaited>; export type UiServiceUpdateWorkerMaintenanceMutationResult = Awaited>; export type UiServiceExitWorkerMaintenanceMutationResult = Awaited>; export type UiServiceDeleteWorkerMutationResult = Awaited>; +export type UiServiceRemoveWorkerQueueMutationResult = Awaited>; diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/queries.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/queries.ts index c95cce5c8f5aa..565acd9bc5317 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/queries.ts +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/queries/queries.ts @@ -62,6 +62,13 @@ export const useUiServiceRequestWorkerShutdown = , "mutationFn">) => useMutation({ mutationFn: ({ workerName }) => UiService.requestWorkerShutdown({ workerName }) as unknown as Promise, ...options }); +export const useUiServiceAddWorkerQueue = (options?: Omit, "mutationFn">) => useMutation({ mutationFn: ({ queueName, workerName }) => UiService.addWorkerQueue({ queueName, workerName }) as unknown as Promise, ...options }); export const useJobsServiceState = (options?: Omit, "mutationFn">) => useMutation({ mutationFn: ({ workerName }) => UiService.deleteWorker({ workerName }) as unknown as Promise, ...options }); +export const useUiServiceRemoveWorkerQueue = (options?: Omit, "mutationFn">) => useMutation({ mutationFn: ({ queueName, workerName }) => UiService.removeWorkerQueue({ queueName, workerName }) as unknown as Promise, ...options }); diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts index a26191d60994f..45fe4554830cf 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/services.gen.ts @@ -3,7 +3,7 @@ import type { CancelablePromise } from './core/CancelablePromise'; import { OpenAPI } from './core/OpenAPI'; import { request as __request } from './core/request'; -import type { FetchData, FetchResponse, StateData, StateResponse, LogfilePathData, LogfilePathResponse, PushLogsData, PushLogsResponse, RegisterData, RegisterResponse, SetStateData, SetStateResponse, UpdateQueuesData, UpdateQueuesResponse, HealthResponse, WorkerResponse, JobsResponse, RequestWorkerMaintenanceData, RequestWorkerMaintenanceResponse, UpdateWorkerMaintenanceData, UpdateWorkerMaintenanceResponse, ExitWorkerMaintenanceData, ExitWorkerMaintenanceResponse, RequestWorkerShutdownData, RequestWorkerShutdownResponse, DeleteWorkerData, DeleteWorkerResponse } from './types.gen'; +import type { FetchData, FetchResponse, StateData, StateResponse, LogfilePathData, LogfilePathResponse, PushLogsData, PushLogsResponse, RegisterData, RegisterResponse, SetStateData, SetStateResponse, UpdateQueuesData, UpdateQueuesResponse, HealthResponse, WorkerResponse, JobsResponse, RequestWorkerMaintenanceData, RequestWorkerMaintenanceResponse, UpdateWorkerMaintenanceData, UpdateWorkerMaintenanceResponse, ExitWorkerMaintenanceData, ExitWorkerMaintenanceResponse, RequestWorkerShutdownData, RequestWorkerShutdownResponse, DeleteWorkerData, DeleteWorkerResponse, AddWorkerQueueData, AddWorkerQueueResponse, RemoveWorkerQueueData, RemoveWorkerQueueResponse } from './types.gen'; export class JobsService { /** @@ -397,4 +397,50 @@ export class UiService { }); } + /** + * Add Worker Queue + * Add a queue to a worker. + * @param data The data for the request. + * @param data.workerName + * @param data.queueName + * @returns null Successful Response + * @throws ApiError + */ + public static addWorkerQueue(data: AddWorkerQueueData): CancelablePromise { + return __request(OpenAPI, { + method: 'PUT', + url: '/edge_worker/ui/worker/{worker_name}/queues/{queue_name}', + path: { + worker_name: data.workerName, + queue_name: data.queueName + }, + errors: { + 422: 'Validation Error' + } + }); + } + + /** + * Remove Worker Queue + * Remove a queue from a worker. + * @param data The data for the request. + * @param data.workerName + * @param data.queueName + * @returns null Successful Response + * @throws ApiError + */ + public static removeWorkerQueue(data: RemoveWorkerQueueData): CancelablePromise { + return __request(OpenAPI, { + method: 'DELETE', + url: '/edge_worker/ui/worker/{worker_name}/queues/{queue_name}', + path: { + worker_name: data.workerName, + queue_name: data.queueName + }, + errors: { + 422: 'Validation Error' + } + }); + } + } \ No newline at end of file diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts index b613be3d4e87e..9630cebd4f8c1 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/openapi-gen/requests/types.gen.ts @@ -502,6 +502,20 @@ export type DeleteWorkerData = { export type DeleteWorkerResponse = null; +export type AddWorkerQueueData = { + queueName: string; + workerName: string; +}; + +export type AddWorkerQueueResponse = null; + +export type RemoveWorkerQueueData = { + queueName: string; + workerName: string; +}; + +export type RemoveWorkerQueueResponse = null; + export type $OpenApiTs = { '/edge_worker/v1/jobs/fetch/{worker_name}': { post: { @@ -765,4 +779,32 @@ export type $OpenApiTs = { }; }; }; + '/edge_worker/ui/worker/{worker_name}/queues/{queue_name}': { + put: { + req: AddWorkerQueueData; + res: { + /** + * Successful Response + */ + 200: null; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + delete: { + req: RemoveWorkerQueueData; + res: { + /** + * Successful Response + */ + 200: null; + /** + * Validation Error + */ + 422: HTTPValidationError; + }; + }; + }; }; \ No newline at end of file diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/AddQueueButton.tsx b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/AddQueueButton.tsx new file mode 100644 index 0000000000000..cded43f5b7855 --- /dev/null +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/AddQueueButton.tsx @@ -0,0 +1,138 @@ +/*! + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import { + Button, + CloseButton, + Dialog, + Input, + IconButton, + Portal, + Text, + useDisclosure, + VStack, +} from "@chakra-ui/react"; +import { useUiServiceAddWorkerQueue } from "openapi/queries"; +import { useState } from "react"; +import { LuListPlus } from "react-icons/lu"; + +interface AddQueueButtonProps { + onQueueUpdate: (toast: Record) => void; + workerName: string; +} + +export const AddQueueButton = ({ onQueueUpdate, workerName }: AddQueueButtonProps) => { + const { onClose, onOpen, open } = useDisclosure(); + const [queueName, setQueueName] = useState(""); + + const addQueueMutation = useUiServiceAddWorkerQueue({ + onError: (error) => { + onQueueUpdate({ + description: `Unable to add queue to worker ${workerName}: ${error}`, + title: "Add Queue Failed", + type: "error", + }); + }, + onSuccess: () => { + onQueueUpdate({ + description: `Queue "${queueName}" was added to worker ${workerName}.`, + title: "Queue Added", + type: "success", + }); + onClose(); + setQueueName(""); + }, + }); + + const handleAddQueue = () => { + if (!queueName.trim()) { + onQueueUpdate({ + description: "Please enter a queue name.", + title: "Invalid Input", + type: "error", + }); + return; + } + + addQueueMutation.mutate({ + queueName: queueName.trim(), + workerName, + }); + }; + + return ( + <> + + + + + + + + + + + Add Queue to {workerName} + + + + Enter the name of the queue to add to this worker: + setQueueName(e.target.value)} + onKeyDown={(e) => { + if (e.key === "Enter") { + handleAddQueue(); + } + }} + /> + + + + + + + + + + + + + + + + + ); +}; diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/RemoveQueueButton.tsx b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/RemoveQueueButton.tsx new file mode 100644 index 0000000000000..cc700ec832a9b --- /dev/null +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/RemoveQueueButton.tsx @@ -0,0 +1,151 @@ +/*! + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +import { + Button, + CloseButton, + Dialog, + IconButton, + Portal, + Text, + useDisclosure, + VStack, + For, +} from "@chakra-ui/react"; +import { useUiServiceRemoveWorkerQueue } from "openapi/queries"; +import type { Worker } from "openapi/requests/types.gen"; +import { useState } from "react"; +import { LuListMinus } from "react-icons/lu"; + +interface RemoveQueueButtonProps { + onQueueUpdate: (toast: Record) => void; + worker: Worker; +} + +export const RemoveQueueButton = ({ onQueueUpdate, worker }: RemoveQueueButtonProps) => { + const { onClose, onOpen, open } = useDisclosure(); + const [selectedQueue, setSelectedQueue] = useState(""); + + const removeQueueMutation = useUiServiceRemoveWorkerQueue({ + onError: (error) => { + onQueueUpdate({ + description: `Unable to remove queue from worker ${worker.worker_name}: ${error}`, + title: "Remove Queue Failed", + type: "error", + }); + }, + onSuccess: () => { + onQueueUpdate({ + description: `Queue "${selectedQueue}" was removed from worker ${worker.worker_name}.`, + title: "Queue Removed", + type: "success", + }); + onClose(); + setSelectedQueue(""); + }, + }); + + const handleRemoveQueue = () => { + if (!selectedQueue) { + onQueueUpdate({ + description: "Please select a queue to remove.", + title: "Invalid Selection", + type: "error", + }); + return; + } + + removeQueueMutation.mutate({ + queueName: selectedQueue, + workerName: worker.worker_name, + }); + }; + + const availableQueues = worker.queues || []; + + // Don't render the button if there are no queues to remove + if (availableQueues.length === 0) { + return null; + } + + return ( + <> + + + + + + + + + + + Remove Queue from {worker.worker_name} + + + + Select a queue to remove from this worker: + + + {(queue) => ( + + )} + + + + + + + + + + + + + + + + + + + ); +}; diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/WorkerOperations.tsx b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/WorkerOperations.tsx index 5f94913917127..0d0aa727eea73 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/WorkerOperations.tsx +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/WorkerOperations.tsx @@ -21,9 +21,11 @@ import type { Worker } from "openapi/requests/types.gen"; import { toaster } from "src/components/ui"; +import { AddQueueButton } from "./AddQueueButton"; import { MaintenanceEditCommentButton } from "./MaintenanceEditCommentButton"; import { MaintenanceEnterButton } from "./MaintenanceEnterButton"; import { MaintenanceExitButton } from "./MaintenanceExitButton"; +import { RemoveQueueButton } from "./RemoveQueueButton"; import { WorkerDeleteButton } from "./WorkerDeleteButton"; import { WorkerShutdownButton } from "./WorkerShutdownButton"; @@ -44,6 +46,8 @@ export const WorkerOperations = ({ onOperations, worker }: WorkerOperationsProps if (state === "idle" || state === "running") { return ( + + diff --git a/providers/edge3/src/airflow/providers/edge3/worker_api/datamodels_ui.py b/providers/edge3/src/airflow/providers/edge3/worker_api/datamodels_ui.py index 70aa651d50c90..3aa2e12e9dfed 100644 --- a/providers/edge3/src/airflow/providers/edge3/worker_api/datamodels_ui.py +++ b/providers/edge3/src/airflow/providers/edge3/worker_api/datamodels_ui.py @@ -71,3 +71,9 @@ class MaintenanceRequest(BaseModel): """Request body for maintenance operations.""" maintenance_comment: Annotated[str, Field(description="Comment describing the maintenance reason.")] + + +class QueueUpdateRequest(BaseModel): + """Request body for queue operations.""" + + queue_name: Annotated[str, Field(description="Name of the queue to add or remove.")] diff --git a/providers/edge3/src/airflow/providers/edge3/worker_api/routes/ui.py b/providers/edge3/src/airflow/providers/edge3/worker_api/routes/ui.py index 2ed9115178987..11ea9b71e9054 100644 --- a/providers/edge3/src/airflow/providers/edge3/worker_api/routes/ui.py +++ b/providers/edge3/src/airflow/providers/edge3/worker_api/routes/ui.py @@ -29,9 +29,11 @@ from airflow.providers.edge3.models.edge_job import EdgeJobModel from airflow.providers.edge3.models.edge_worker import ( EdgeWorkerModel, + add_worker_queues, change_maintenance_comment, exit_maintenance, remove_worker, + remove_worker_queues, request_maintenance, request_shutdown, ) @@ -240,3 +242,51 @@ def delete_worker( remove_worker(worker_name, session=session) except Exception as e: raise HTTPException(status.HTTP_400_BAD_REQUEST, detail=str(e)) + + +@ui_router.put( + "/worker/{worker_name}/queues/{queue_name}", + dependencies=[ + Depends(requires_access_view(access_view=AccessView.JOBS)), + ], +) +def add_worker_queue( + worker_name: str, + queue_name: str, + session: SessionDep, +) -> None: + """Add a queue to a worker.""" + # Check if worker exists first + worker_query = select(EdgeWorkerModel).where(EdgeWorkerModel.worker_name == worker_name) + worker = session.scalar(worker_query) + if not worker: + raise HTTPException(status.HTTP_404_NOT_FOUND, detail=f"Worker {worker_name} not found") + + try: + add_worker_queues(worker_name, [queue_name], session=session) + except Exception as e: + raise HTTPException(status.HTTP_400_BAD_REQUEST, detail=str(e)) + + +@ui_router.delete( + "/worker/{worker_name}/queues/{queue_name}", + dependencies=[ + Depends(requires_access_view(access_view=AccessView.JOBS)), + ], +) +def remove_worker_queue( + worker_name: str, + queue_name: str, + session: SessionDep, +) -> None: + """Remove a queue from a worker.""" + # Check if worker exists first + worker_query = select(EdgeWorkerModel).where(EdgeWorkerModel.worker_name == worker_name) + worker = session.scalar(worker_query) + if not worker: + raise HTTPException(status.HTTP_404_NOT_FOUND, detail=f"Worker {worker_name} not found") + + try: + remove_worker_queues(worker_name, [queue_name], session=session) + except Exception as e: + raise HTTPException(status.HTTP_400_BAD_REQUEST, detail=str(e)) diff --git a/providers/edge3/www-hash.txt b/providers/edge3/www-hash.txt index ad26951de75d6..8a05e7f76e0bb 100644 --- a/providers/edge3/www-hash.txt +++ b/providers/edge3/www-hash.txt @@ -1 +1 @@ -9ade83e065f7115a0426e3c234a6071e671de25f9c78782bd2a2d087fbe30270 +00633c53624d560176f73d3cccc880dce2af5bb4ba0bc2dc46e7327a47817051