| 1 |
(()=>{"use strict";var e,t={72:(e,t)=>{var o="function"==typeof Symbol&&Symbol.for,n=o?Symbol.for("react.element"):60103,r=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,a=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,c=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,u=o?Symbol.for("react.concurrent_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,f=o?Symbol.for("react.lazy"):60116,v=o?Symbol.for("react.block"):60121,b=o?Symbol.for("react.fundamental"):60117,x=o?Symbol.for("react.responder"):60118,y=o?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case d:case u:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case f:case m:case l:return e;default:return t}}case r:return t}}}function k(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=f,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||w(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===s||e===a||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y||e.$$typeof===v)},t.typeOf=w},146:(e,t,o)=>{var n=o(404),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||r}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,o,n){if("string"!=typeof o){if(g){var r=h(o);r&&r!==g&&e(t,r,n)}var a=d(o);u&&(a=a.concat(u(o)));for(var s=l(t),m=l(o),f=0;f<a.length;++f){var v=a[f];if(!(i[v]||n&&n[v]||m&&m[v]||s&&s[v])){var b=p(o,v);try{c(t,v,b)}catch(e){}}}}return t}},404:(e,t,o)=>{e.exports=o(72)},598:(e,t,o)=>{const n=window.wp.element,r=window.wp.i18n,i=window.ReactJSXRuntime;function a(e){var t=Object.create(null);return function(o){return void 0===t[o]&&(t[o]=e(o)),t[o]}}var s=/^((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)-.*))$/,l=a(function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});const c=window.React;var d=function(){function e(e){var t=this;this._insertTag=function(e){var o;o=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,o),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var o=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{o.insertRule(e,o.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),u=Math.abs,p=String.fromCharCode,h=Object.assign;function g(e){return e.trim()}function m(e,t,o){return e.replace(t,o)}function f(e,t){return e.indexOf(t)}function v(e,t){return 0|e.charCodeAt(t)}function b(e,t,o){return e.slice(t,o)}function x(e){return e.length}function y(e){return e.length}function w(e,t){return t.push(e),e}var k=1,S=1,C=0,_=0,I=0,E="";function P(e,t,o,n,r,i,a){return{value:e,root:t,parent:o,type:n,props:r,children:i,line:k,column:S,length:a,return:""}}function O(e,t){return h(P("",null,null,"",null,null,0),e,{length:-e.length},t)}function z(){return I=_>0?v(E,--_):0,S--,10===I&&(S=1,k--),I}function T(){return I=_<C?v(E,_++):0,S++,10===I&&(S=1,k++),I}function N(){return v(E,_)}function R(){return _}function V(e,t){return b(E,e,t)}function j(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function A(e){return k=S=1,C=x(E=e),_=0,[]}function D(e){return E="",e}function F(e){return g(V(_-1,L(91===e?e+2:40===e?e+1:e)))}function M(e){for(;(I=N())&&I<33;)T();return j(e)>2||j(I)>3?"":" "}function W(e,t){for(;--t&&T()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return V(e,R()+(t<6&&32==N()&&32==T()))}function L(e){for(;T();)switch(I){case e:return _;case 34:case 39:34!==e&&39!==e&&L(I);break;case 40:41===e&&L(e);break;case 92:T()}return _}function B(e,t){for(;T()&&e+I!==57&&(e+I!==84||47!==N()););return"/*"+V(t,_-1)+"*"+p(47===e?e:T())}function $(e){for(;!j(N());)T();return V(e,_)}var H="-ms-",U="-moz-",G="-webkit-",q="comm",Y="rule",K="decl",X="@keyframes";function J(e,t){for(var o="",n=y(e),r=0;r<n;r++)o+=t(e[r],r,e,t)||"";return o}function Z(e,t,o,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case K:return e.return=e.return||e.value;case q:return"";case X:return e.return=e.value+"{"+J(e.children,n)+"}";case Y:e.value=e.props.join(",")}return x(o=J(e.children,n))?e.return=e.value+"{"+o+"}":""}function Q(e){return D(ee("",null,null,null,[""],e=A(e),0,[0],e))}function ee(e,t,o,n,r,i,a,s,l){for(var c=0,d=0,u=a,h=0,g=0,b=0,y=1,k=1,S=1,C=0,_="",I=r,E=i,P=n,O=_;k;)switch(b=C,C=T()){case 40:if(108!=b&&58==v(O,u-1)){-1!=f(O+=m(F(C),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:O+=F(C);break;case 9:case 10:case 13:case 32:O+=M(b);break;case 92:O+=W(R()-1,7);continue;case 47:switch(N()){case 42:case 47:w(oe(B(T(),R()),t,o),l);break;default:O+="/"}break;case 123*y:s[c++]=x(O)*S;case 125*y:case 59:case 0:switch(C){case 0:case 125:k=0;case 59+d:-1==S&&(O=m(O,/\f/g,"")),g>0&&x(O)-u&&w(g>32?ne(O+";",n,o,u-1):ne(m(O," ","")+";",n,o,u-2),l);break;case 59:O+=";";default:if(w(P=te(O,t,o,c,d,r,s,_,I=[],E=[],u),i),123===C)if(0===d)ee(O,t,P,P,I,i,u,s,E);else switch(99===h&&110===v(O,3)?100:h){case 100:case 108:case 109:case 115:ee(e,P,P,n&&w(te(e,P,P,0,0,r,s,_,r,I=[],u),E),r,E,u,s,n?I:E);break;default:ee(O,P,P,P,[""],E,0,s,E)}}c=d=g=0,y=S=1,_=O="",u=a;break;case 58:u=1+x(O),g=b;default:if(y<1)if(123==C)--y;else if(125==C&&0==y++&&125==z())continue;switch(O+=p(C),C*y){case 38:S=d>0?1:(O+="\f",-1);break;case 44:s[c++]=(x(O)-1)*S,S=1;break;case 64:45===N()&&(O+=F(T())),h=N(),d=u=x(_=O+=$(R())),C++;break;case 45:45===b&&2==x(O)&&(y=0)}}return i}function te(e,t,o,n,r,i,a,s,l,c,d){for(var p=r-1,h=0===r?i:[""],f=y(h),v=0,x=0,w=0;v<n;++v)for(var k=0,S=b(e,p+1,p=u(x=a[v])),C=e;k<f;++k)(C=g(x>0?h[k]+" "+S:m(S,/&\f/g,h[k])))&&(l[w++]=C);return P(e,t,o,0===r?Y:s,l,c,d)}function oe(e,t,o){return P(e,t,o,q,p(I),b(e,2,-2),0)}function ne(e,t,o,n){return P(e,t,o,K,b(e,0,n),b(e,n+1,-1),n)}var re=function(e,t,o){for(var n=0,r=0;n=r,r=N(),38===n&&12===r&&(t[o]=1),!j(r);)T();return V(e,_)},ie=new WeakMap,ae=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,o=e.parent,n=e.column===o.column&&e.line===o.line;"rule"!==o.type;)if(!(o=o.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ie.get(o))&&!n){ie.set(e,!0);for(var r=[],i=function(e,t){return D(function(e,t){var o=-1,n=44;do{switch(j(n)){case 0:38===n&&12===N()&&(t[o]=1),e[o]+=re(_-1,t,o);break;case 2:e[o]+=F(n);break;case 4:if(44===n){e[++o]=58===N()?"&\f":"",t[o]=e[o].length;break}default:e[o]+=p(n)}}while(n=T());return e}(A(e),t))}(t,r),a=o.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=r[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},se=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function le(e,t){switch(function(e,t){return 45^v(e,0)?(((t<<2^v(e,0))<<2^v(e,1))<<2^v(e,2))<<2^v(e,3):0}(e,t)){case 5103:return G+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+U+e+H+e+e;case 6828:case 4268:return G+e+H+e+e;case 6165:return G+e+H+"flex-"+e+e;case 5187:return G+e+m(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+H+"flex-$1$2")+e;case 5443:return G+e+H+"flex-item-"+m(e,/flex-|-self/,"")+e;case 4675:return G+e+H+"flex-line-pack"+m(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+H+m(e,"shrink","negative")+e;case 5292:return G+e+H+m(e,"basis","preferred-size")+e;case 6060:return G+"box-"+m(e,"-grow","")+G+e+H+m(e,"grow","positive")+e;case 4554:return G+m(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return m(m(m(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return m(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return m(m(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+H+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return m(e,/(.+)-inline(.+)/,G+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(x(e)-1-t>6)switch(v(e,t+1)){case 109:if(45!==v(e,t+4))break;case 102:return m(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+U+(108==v(e,t+3)?"$3":"$2-$3"))+e;case 115:return~f(e,"stretch")?le(m(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==v(e,t+1))break;case 6444:switch(v(e,x(e)-3-(~f(e,"!important")&&10))){case 107:return m(e,":",":"+G)+e;case 101:return m(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===v(e,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+H+"$2box$3")+e}break;case 5936:switch(v(e,t+11)){case 114:return G+e+H+m(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+H+m(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+H+m(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+H+e+e}return e}var ce=[function(e,t,o,n){if(e.length>-1&&!e.return)switch(e.type){case K:e.return=le(e.value,e.length);break;case X:return J([O(e,{value:m(e.value,"@","@"+G)})],n);case Y:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return J([O(e,{props:[m(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return J([O(e,{props:[m(t,/:(plac\w+)/,":"+G+"input-$1")]}),O(e,{props:[m(t,/:(plac\w+)/,":-moz-$1")]}),O(e,{props:[m(t,/:(plac\w+)/,H+"input-$1")]})],n)}return""})}}],de=function(e){var t=e.key;if("css"===t){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,r,i=e.stylisPlugins||ce,a={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),o=1;o<t.length;o++)a[t[o]]=!0;s.push(e)});var l,c,u=[Z,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],p=function(e){var t=y(e);return function(o,n,r,i){for(var a="",s=0;s<t;s++)a+=e[s](o,n,r,i)||"";return a}}([ae,se].concat(i,u));r=function(e,t,o,n){l=o,J(Q(e?e+"{"+t.styles+"}":t.styles),p),n&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new d({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return h.sheet.hydrate(s),h};function ue(e,t,o){var n="";return o.split(" ").forEach(function(o){void 0!==e[o]?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var pe=function(e,t,o){var n=e.key+"-"+t.name;!1===o&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},he=function(e,t,o){pe(e,t,o);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+n:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}},ge={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},me=/[A-Z]|^ms/g,fe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ve=function(e){return 45===e.charCodeAt(1)},be=function(e){return null!=e&&"boolean"!=typeof e},xe=a(function(e){return ve(e)?e:e.replace(me,"-$&").toLowerCase()}),ye=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(fe,function(e,t,o){return ke={name:t,styles:o,next:ke},t})}return 1===ge[e]||ve(e)||"number"!=typeof t||0===t?t:t+"px"};function we(e,t,o){if(null==o)return"";var n=o;if(void 0!==n.__emotion_styles)return n;switch(typeof o){case"boolean":return"";case"object":var r=o;if(1===r.anim)return ke={name:r.name,styles:r.styles,next:ke},r.name;var i=o;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)ke={name:a.name,styles:a.styles,next:ke},a=a.next;return i.styles+";"}return function(e,t,o){var n="";if(Array.isArray(o))for(var r=0;r<o.length;r++)n+=we(e,t,o[r])+";";else for(var i in o){var a=o[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":be(s)&&(n+=xe(i)+":"+ye(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=we(e,t,a);switch(i){case"animation":case"animationName":n+=xe(i)+":"+l+";";break;default:n+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)be(a[c])&&(n+=xe(i)+":"+ye(i,a[c])+";")}return n}(e,t,o);case"function":if(void 0!==e){var s=ke,l=o(e);return ke=s,we(e,t,l)}}var c=o;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var ke,Se=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ce(e,t,o){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,r="";ke=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,r+=we(o,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=we(o,t,e[a]),n&&(r+=i[a]);Se.lastIndex=0;for(var s,l="";null!==(s=Se.exec(r));)l+="-"+s[1];var c=function(e){for(var t,o=0,n=0,r=e.length;r>=4;++n,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),o=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&o)+(59797*(o>>>16)<<16);switch(r){case 3:o^=(255&e.charCodeAt(n+2))<<16;case 2:o^=(255&e.charCodeAt(n+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(n)))+(59797*(o>>>16)<<16)}return(((o=1540483477*(65535&(o^=o>>>13))+(59797*(o>>>16)<<16))^o>>>15)>>>0).toString(36)}(r)+l;return{name:c,styles:r,next:ke}}var _e=!!c.useInsertionEffect&&c.useInsertionEffect,Ie=_e||function(e){return e()},Ee=_e||c.useLayoutEffect,Pe=c.createContext("undefined"!=typeof HTMLElement?de({key:"css"}):null),Oe=(Pe.Provider,function(e){return(0,c.forwardRef)(function(t,o){var n=(0,c.useContext)(Pe);return e(t,n,o)})}),ze=c.createContext({}),Te={}.hasOwnProperty,Ne="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Re=function(e){var t=e.cache,o=e.serialized,n=e.isStringTag;return pe(t,o,n),Ie(function(){return he(t,o,n)}),null},Ve=Oe(function(e,t,o){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var r=e[Ne],i=[n],a="";"string"==typeof e.className?a=ue(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Ce(i,void 0,c.useContext(ze));a+=t.key+"-"+s.name;var l={};for(var d in e)Te.call(e,d)&&"css"!==d&&d!==Ne&&(l[d]=e[d]);return l.className=a,o&&(l.ref=o),c.createElement(c.Fragment,null,c.createElement(Re,{cache:t,serialized:s,isStringTag:"string"==typeof r}),c.createElement(r,l))}),je=Ve;function Ae(...e){return function(...t){e.forEach(e=>e?.(...t))}}const De=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),Fe=/^on[A-Z]/;function Me(...e){let t={};for(let o of e){for(let e in t)Fe.test(e)&&"function"==typeof t[e]&&"function"==typeof o[e]?t[e]=Ae(t[e],o[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==o[e]?o[e]:t[e]:Object.assign({},t[e]??{},o[e]??{}):De(t[e],o[e]);for(let e in o)void 0===t[e]&&(t[e]=o[e])}return t}const We=parseInt(c.version.split(".")[0],10)>=19;function Le(e,t){if(null!=e){if("function"==typeof e)return e(t);try{e.current=t}catch(o){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Be(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}const $e=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),He=e=>"string"==typeof e,Ue=e=>"function"==typeof e,Ge=(...e)=>{const t=[];for(let o=0;o<e.length;o++){const n=e[o];if(!He(n))continue;const r=n.trim();r&&t.push(r)}return t.join(" ")},qe=(...e)=>{const t=e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([]));return Array.from(t)};o(146);var Ye,Ke,Xe=function(e,t){var o=arguments;if(null==t||!Te.call(t,"css"))return c.createElement.apply(void 0,o);var n=o.length,r=new Array(n);r[0]=je,r[1]=function(e,t){var o={};for(var n in t)Te.call(t,n)&&(o[n]=t[n]);return o[Ne]=e,o}(e,t);for(var i=2;i<n;i++)r[i]=o[i];return c.createElement.apply(null,r)};Ye=Xe||(Xe={}),Ke||(Ke=Ye.JSX||(Ye.JSX={}));var Je=Oe(function(e,t){var o=Ce([e.styles],void 0,c.useContext(ze)),n=c.useRef();return Ee(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),n.current=[r,i],function(){r.flush()}},[t]),Ee(function(){var e=n.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&he(t,o.next,!0),r.tags.length){var i=r.tags[r.tags.length-1].nextElementSibling;r.before=i,r.flush()}t.insert("",o,r,!1)}},[t,o.name]),null});function Ze(e={}){const{name:t,strict:o=!0,hookName:n="useContext",providerName:r="Provider",errorMessage:i,defaultValue:a}=e,s=(0,c.createContext)(a);return s.displayName=t,[s.Provider,function e(){const t=(0,c.useContext)(s);if(!t&&o){const t=new Error(i??`${n} returned \`undefined\`. Seems you forgot to wrap component within ${r}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[Qe,et]=Ze({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function tt(e){const{value:t,children:o}=e;return(0,i.jsxs)(Qe,{value:t,children:[!t._config.disableLayers&&(0,i.jsx)(Je,{styles:t.layers.atRule}),(0,i.jsx)(Je,{styles:t._global}),o]})}const ot=(e,t)=>((e,t)=>{const o={},n={},r=Object.keys(e);for(const i of r)t(i)?n[i]=e[i]:o[i]=e[i];return[n,o]})(e,Ue(t)?t:e=>t.includes(e)),nt=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function rt(e){return"string"==typeof e&&nt.has(e)}const it=function(e){return e.default||e}(l),at=it,st=e=>"theme"!==e;let lt="undefined"!=typeof document;const ct=({cache:e,serialized:t,isStringTag:o})=>{pe(e,t,o);const n=Ie(()=>he(e,t,o));if(!lt&&void 0!==n){let o=t.name,r=t.next;for(;void 0!==r;)o=Ge(o,r.name),r=r.next;return(0,i.jsx)("style",{"data-emotion":Ge(e.key,o),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},dt={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"]},ut=((e,t={},o={})=>{if(n=dt,r=e,Object.prototype.hasOwnProperty.call(n,r)){o.forwardProps||(o.forwardProps=[]);const t=dt[e];o.forwardProps=qe([...o.forwardProps,...t])}var n,r;const a=e.__emotion_real===e,s=a&&e.__emotion_base||e;let l,d;void 0!==o&&(l=o.label,d=o.target);let u=[];const p=Oe((n,r,l)=>{const{cva:p,isValidProperty:h}=et(),g=t.__cva__?t:p(t),m=gt(e.__emotion_cva,g);var f;!o.shouldForwardProp&&o.forwardProps&&(o.shouldForwardProp=(f=o.forwardProps,(e,t)=>!!f.includes(e)||!t?.includes(e)&&!h(e)));const v=((e,t,o)=>{let n;if(t){const o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?t=>e.__emotion_forwardProp(t)&&o(t):o}return"function"!=typeof n&&o&&(n=e.__emotion_forwardProp),n})(e,o,a)||((t,o)=>{const n="string"==typeof e&&e.charCodeAt(0)>96?at:st,r=!o?.includes(t)&&!h(t);return n(t)&&r}),b=c.useMemo(()=>Object.assign({},o.defaultProps,Be(n)),[n]),{props:x,styles:y}=function(e,t,o){const{css:n,isValidProperty:r}=et(),{children:i,...a}=e,s=(0,c.useMemo)(()=>{const[e,n]=ot(a,e=>o(e,t.variantKeys)),[i,s]=ot(n,t.variantKeys),[l,c]=ot(s,r);return{forwardedProps:e,variantProps:i,styleProps:l,elementProps:c}},[t.variantKeys,o,a,r]),{css:l,...d}=s.styleProps,u=(0,c.useMemo)(()=>{const e={...s.variantProps},o=t.variantKeys.includes("colorPalette"),n=t.variantKeys.includes("orientation");return o||(e.colorPalette=a.colorPalette),n||(e.orientation=a.orientation),t(e)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:(0,c.useMemo)(()=>{return n(u,...(e=l,(Array.isArray(e)?e:[e]).filter(Boolean).flat()),d);var e},[n,u,l,d]),props:{...s.forwardedProps,...s.elementProps,children:i}}}(b,m,v);let w="",k=[y],S=x;if(null==x.theme){S={};for(let e in x)S[e]=x[e];S.theme=c.useContext(ze)}"string"==typeof x.className?w=ue(r.registered,k,x.className):null!=x.className&&(w=Ge(w,x.className));const C=Ce(u.concat(k),r.registered,S);C.styles&&(w=Ge(w,`${r.key}-${C.name}`)),void 0!==d&&(w=Ge(w,d));const _=!v("as");let I=_&&x.as||s,E={};for(let e in x)if(!_||"as"!==e){if(rt(e)){E[e.replace("html","").toLowerCase()]=x[e];continue}v(e)&&(E[e]=x[e])}let P=w.trim();P?E.className=P:Reflect.deleteProperty(E,"className"),E.ref=l;const O=o.forwardAsChild||o.forwardProps?.includes("asChild");if(x.asChild&&!O){const e=c.isValidElement(x.children)?c.Children.only(x.children):c.Children.toArray(x.children).find(c.isValidElement);if(!e)throw new Error("[chakra-ui > factory] No valid child found");I=e.type,E.children=null,Reflect.deleteProperty(E,"asChild"),E=Me(E,e.props),E.ref=function(...e){const t=e.filter(e=>null!=e);if(We){const e=new Map;return o=>(t.forEach(t=>{const n=Le(t,o);n&&e.set(t,n)}),()=>{t.forEach(t=>{const o=e.get(t);o&&"function"==typeof o?o():Le(t,null)}),e.clear()})}return e=>{t.forEach(t=>{Le(t,e)})}}(l,function(e){const t=c.version;return He(t)?t.startsWith("18.")?e?.ref:e?.props?.ref:e?.ref}(e))}return E.as&&O?(E.as=void 0,(0,i.jsxs)(c.Fragment,{children:[(0,i.jsx)(ct,{cache:r,serialized:C,isStringTag:"string"==typeof I}),(0,i.jsx)(I,{asChild:!0,...E,children:(0,i.jsx)(x.as,{children:E.children})})]})):(0,i.jsxs)(c.Fragment,{children:[(0,i.jsx)(ct,{cache:r,serialized:C,isStringTag:"string"==typeof I}),(0,i.jsx)(I,{...E})]})});return p.displayName=void 0!==l?l:`chakra(${"string"==typeof s?s:s.displayName||s.name||"Component"})`,p.__emotion_real=p,p.__emotion_base=s,p.__emotion_forwardProp=o.shouldForwardProp,p.__emotion_cva=t,Object.defineProperty(p,"toString",{value:()=>`.${d}`}),p}).bind(),pt=new Map,ht=new Proxy(ut,{apply:(e,__,t)=>ut(...t),get:(e,t)=>(pt.has(t)||pt.set(t,ut(t)),pt.get(t))}),gt=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),mt=ht("div");mt.displayName="Box";const ft=(0,c.forwardRef)(function(e,t){const{direction:o,align:n,justify:r,wrap:a,basis:s,grow:l,shrink:c,inline:d,...u}=e;return(0,i.jsx)(ht.div,{ref:t,...u,css:{display:d?"inline-flex":"flex",flexDirection:o,alignItems:n,justifyContent:r,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c,...e.css}})});ft.displayName="Flex";const vt=Object.freeze({}),bt=Object.freeze({});function xt(e){const{key:t,recipe:o}=e,n=et();return(0,c.useMemo)(()=>{const e=o||(null!=t?n.getRecipe(t):{});return n.cva(structuredClone(e))},[t,o,n])}function yt(e){const{key:t,recipe:o}=e,n=(r=t||o.className||"Component").charAt(0).toUpperCase()+r.slice(1);var r;const[a,s]=Ze({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function l(e){const{unstyled:n,...r}=e,i=xt({key:t,recipe:r.recipe||o}),[a,s]=(0,c.useMemo)(()=>i.splitVariantProps(r),[i,r]);return{styles:n?vt:i(a),className:i.className,props:s}}return{withContext:(e,t)=>{const o=ht(e,{},t),n=(0,c.forwardRef)((e,t)=>{const n=s(),r=(0,c.useMemo)(()=>Me(n,e),[e,n]),{styles:a,className:d,props:u}=l(r);return(0,i.jsx)(o,{...u,ref:t,css:[a,r.css],className:Ge(d,r.className)})});return n.displayName=e.displayName||e.name,n},PropsProvider:a,withPropsProvider:function(){return a},usePropsContext:s,useRecipeResult:l}}const{withContext:wt,PropsProvider:kt}=yt({key:"text"}),St=wt("p");St.displayName="Text";const Ct=e=>e?"":void 0,_t=ht("span");_t.displayName="Span";const{withContext:It,PropsProvider:Et}=yt({key:"spinner"}),Pt=It("span");Pt.displayName="Spinner";const Ot=ht("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"}});Ot.displayName="AbsoluteCenter";const zt=c.forwardRef(function(e,t){const{spinner:o=(0,i.jsx)(Pt,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:n="start",children:r,text:a,visible:s=!0,...l}=e;return s?a?(0,i.jsxs)(_t,{ref:t,display:"contents",...l,children:["start"===n&&o,a,"end"===n&&o]}):o?(0,i.jsxs)(_t,{ref:t,display:"contents",...l,children:[(0,i.jsx)(Ot,{display:"inline-flex",children:o}),(0,i.jsx)(_t,{visibility:"hidden",display:"contents",children:r})]}):(0,i.jsx)(_t,{ref:t,display:"contents",...l,children:r}):r});zt.displayName="Loader";const{useRecipeResult:Tt,PropsProvider:Nt,usePropsContext:Rt}=yt({key:"button"}),Vt=(0,c.forwardRef)(function(e,t){const o=Rt(),n=(0,c.useMemo)(()=>Me(o,e),[o,e]),r=Tt(n),{loading:a,loadingText:s,children:l,spinner:d,spinnerPlacement:u,...p}=r.props;return(0,i.jsx)(ht.button,{type:"button",ref:t,...p,"data-loading":Ct(a),disabled:a||p.disabled,className:Ge(r.className,n.className),css:[r.styles,n.css],children:!n.asChild&&a?(0,i.jsx)(zt,{spinner:d,text:s,spinnerPlacement:u,children:l}):l})});function jt(){const e=e=>e;return new Proxy(e,{get:()=>e})}Vt.displayName="Button";const At=jt(),Dt=jt();var Ft="".split(","),Mt="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".split(",").concat(Ft),Wt=new Map(Mt.map(e=>[e,!0]));function Lt(e){const t=Object.create(null);return o=>(void 0===t[o]&&(t[o]=e(o)),t[o])}var Bt=/&|@/,$t=Lt(e=>Wt.has(e)||e.startsWith("--")||Bt.test(e));function Ht(e,t){const o={};for(const n in e){const r=t(n,e[n]);o[r[0]]=r[1]}return o}const Ut=e=>null!=e;function Gt(e,t,o={}){const{stop:n,getKey:r}=o;return function e(o,i=[]){if($e(o)||Array.isArray(o)){const a={};for(const[s,l]of Object.entries(o)){const c=r?.(s,l)??s,d=[...i,c];if(n?.(o,d))return t(o,i);const u=e(l,d);Ut(u)&&(a[c]=u)}return a}return t(o,i)}(e)}function qt(e,t){return Array.isArray(e)?e.map(e=>Ut(e)?t(e):e):$e(e)?Gt(e,e=>t(e)):Ut(e)?t(e):e}function Yt(e,t){const o={};return Gt(e,(e,t)=>{e&&(o[t.join(".")]=e.value)},{stop:t}),o}var Kt=Object.defineProperty,Xt=(e,t,o)=>((e,t,o)=>t in e?Kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o);function Jt(e){if(null===e)return"null";if(void 0===e)return"undefined";const t=typeof e;return"string"===t?`s:${e}`:"number"===t?`n:${e}`:"boolean"===t?`b:${e}`:"function"===t?`f:${e.name||"anonymous"}`:Array.isArray(e)?`a:[${e.map(Jt).join(",")}]`:"object"===t?`o:{${Object.keys(e).sort().map(t=>`${t}:${Jt(e[t])}`).join(",")}}`:String(e)}class Zt{constructor(e=500){Xt(this,"cache",new Map),Xt(this,"maxSize"),this.maxSize=e}get(e){const t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){const e=this.cache.keys().next().value;void 0!==e&&this.cache.delete(e)}this.cache.set(e,t)}clear(){this.cache.clear()}}const Qt=e=>{const t=new Zt;return function(...o){const n=1===o.length?Jt(o[0]):o.map(Jt).join("|");let r=t.get(n);return void 0===r&&(r=e.apply(this,o),t.set(n,r)),r}};function eo(e,t){if(null==t)return e;for(const o of Object.keys(t))if(void 0!==t[o]&&"__proto__"!==o)if(!$e(e[o])&&$e(t[o]))Object.assign(e,{[o]:t[o]});else if(e[o]&&$e(t[o]))eo(e[o],t[o]);else if(Array.isArray(t[o])&&Array.isArray(e[o])){let n=0;for(;n<t[o].length;n++)$e(e[o][n])&&$e(t[o][n])?eo(e[o][n],t[o][n]):e[o][n]=t[o][n]}else Object.assign(e,{[o]:t[o]});return e}function to(e,...t){for(const o of t)eo(e,o);return e}const oo="px",no="em",ro="rem";function io(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),o=new RegExp(`${oo}|${no}|${ro}`),n=e.match(new RegExp(`${t.source}(${o.source})`));return n?.[1]}function ao(e=""){if("number"==typeof e)return`${e}px`;const t=io(e);return t?t===oo?e:t===no||t===ro?`${16*parseFloat(e)}${oo}`:void 0:e}function so(e=""){const t=io(e);return t?t===ro?e:t===no?`${parseFloat(e)}${ro}`:t===oo?`${parseFloat(e)/16}${ro}`:void 0:e}function lo(e){return so(parseFloat(ao(e)??"")-.04+"px")}function co({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const uo=/^@|&|&$/;function po(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>po(e));const t=Object.create(Object.getPrototypeOf(e));for(const o of Object.keys(e))t[o]=po(e[o]);return t}const ho=["value","type","description"],go=(...e)=>{const t=to({},...e.map(po));return t.theme?.tokens&&Gt(t.theme.tokens,e=>{const t=Object.keys(e).filter(e=>!ho.includes(e)).length>0,o=ho.some(t=>null!=e[t]);return t&&o&&(e.DEFAULT||(e.DEFAULT={}),ho.forEach(t=>{var o;null!=e[t]&&((o=e.DEFAULT)[t]||(o[t]=e[t]),delete e[t])})),e},{stop:e=>(e=>e&&"object"==typeof e&&!Array.isArray(e))(e)&&Object.keys(e).some(e=>ho.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase())}),t},mo=Object.freeze(Object.create(null)),fo=Object.freeze([]);function vo(){return Object.create(null)}const bo=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|\n)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|\n)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),xo=bo("width"),yo=bo("height"),wo=e=>({isMin:Ro(e.minMax,e.maxMin,e.min),isMax:Ro(e.maxMin,e.minMax,e.max)}),{isMin:ko,isMax:So}=wo(xo),{isMin:Co,isMax:_o}=wo(yo),Io=/print/i,Eo=/^print$/i,Po=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Oo=/(\d)/,zo=Number.MAX_VALUE,To={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function No(e){const t=Po.exec(e)||(ko(e)||Co(e)?Oo.exec(e):null);if(!t)return zo;if("0"===t[0])return 0;const o=parseFloat(t[1]),n=t[2];return o*(To[n]||1)}function Ro(e,t,o){return n=>e.test(n)||!t.test(n)&&o.test(n)}const Vo=Qt((e,t)=>{const o=function(e,t){const o=Io.test(e),n=Eo.test(e),r=Io.test(t),i=Eo.test(t);return o&&r?!n&&i?1:n&&!i?-1:e.localeCompare(t):o?1:r?-1:null}(e,t);if(null!==o)return o;const n=ko(e)||Co(e),r=So(e)||_o(e),i=ko(t)||Co(t),a=So(t)||_o(t);if(n&&a)return-1;if(r&&i)return 1;const s=No(e),l=No(t);return s===zo&&l===zo?e.localeCompare(t):s===zo?1:l===zo?-1:s!==l?s>l?r?-1:1:r?1:-1:e.localeCompare(t)});function jo(e){return e.sort(([e],[t])=>Vo(e,t))}function Ao(e){const t=[],o=[],n={};for(const[r,i]of Object.entries(e))r.startsWith("@media")?t.push([r,i]):r.startsWith("@container")?o.push([r,i]):$e(i)?n[r]=Ao(i):n[r]=i;const r=jo(t),i=jo(o);return{...n,...Object.fromEntries(r),...Object.fromEntries(i)}}const Do=/\s*!(important)?/i,Fo=Qt(e=>!!He(e)&&Do.test(e)),Mo=Qt(e=>He(e)?e.replace(Do,"").trim():e);function Wo(e){const{transform:t,conditions:o,normalize:n}=e,r=(i=e,Qt(function(...e){return to({},...function(e){const t=function(...e){return e.filter(e=>{if(!$e(e))return!1;const t=Be(e);return Object.keys(t).length>0})}(...e);return 1===t.length?t:t.map(e=>i.normalize(e))}(e))}));var i;return Qt(function(...e){const i=r(...e),a=n(i),s=vo();return Gt(a,(e,n)=>{const r=Fo(e);if(null==e)return;const[i,...a]=o.sort(n).map(o.resolve);r&&(e=Mo(e));let l=t(i,e)??mo;l=Gt(l,e=>He(e)&&r?`${e} !important`:e,{getKey:e=>o.expandAtRule(e)}),function(e,t,o){let n=e;for(const e of t)e&&(n[e]||(n[e]=vo()),n=n[e]);to(n,o)}(s,a.flat(),l)}),Ao(s)})}function Lo(e,t=[]){const o=Object.assign({},e);for(const e of t)e in o&&delete o[e];return o}const Bo=e=>({base:mo,variants:mo,defaultVariants:mo,compoundVariants:[],...e});const $o={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Ho={reset:0,base:1,tokens:2,recipes:3};const Uo=/[^a-zA-Z0-9_\u0081-\uffff-]/g,Go=/[A-Z]/g;function qo(e,t={}){const{fallback:o="",prefix:n=""}=t,r=function(e){return e.replace(Go,e=>`-${e.toLowerCase()}`)}(["-",n,(i=e,`${i}`.replace(Uo,e=>`\\${e}`))].filter(Boolean).join("-"));var i;return{var:r,ref:`var(${r}${o?`, ${o}`:""})`}}const Yo=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Ko=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Xo=e=>(e+"").replace(Yo,Ko),Jo=(e,t)=>{let o="",n=0,r="char",i="",a="";const s=[];for(;n<e.length;){const l=e[n];if("{"===l){const r=e.indexOf("}",n);if(-1===r)break;const i=e.slice(n+1,r);o+=t(i)??i,n=r+1;continue}if("token"===r&&","===l){""===e[n]&&n++,r="fallback",s.push(r);const l=t(i);l?.endsWith(")")&&(o+=l.slice(0,-1)),i="",a="";continue}if("fallback"===r&&", var("===a+l){const t=Zo(e.slice(n+1))+n+1,i=e.slice(n+1,t);if(-1===t)break;o+=", var("+i+")",n=t+1,r=s.pop()??r,a="";continue}if("token"===r||"fallback"===r){if(n++,")"===l){r=s.pop()??r??"char",a+=l;const e=i?t(i)??Xo(i):i;if(a)if(a=a.slice(1).trim(),!a.startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){const e=Jo(a,t);e&&(a=e.slice(0,-1))}else if(a){const e=t(a);e&&(a=e)}const n=o.at(-1);a?n?.trim()?o+=e.slice(0,-1)+", "+a+")":o+=a:o+=e||")",i="",a="",r="char";continue}"token"===r&&(i+=l),"fallback"===r&&(a+=l);continue}const c=e.indexOf("token(",n);if(-1!==c){const t=c+6;o+=e.slice(n,c),n=t,r="token",s.push(r);continue}o+=l,n++}return o},Zo=e=>{let t=0;const o=["("];for(;t<e.length;){const n=e[t];if("("===n)o.push(n);else if(")"===n&&(o.pop(),0===o.length))return t;t++}return t};function Qo(e){const t={};return e.forEach((e,o)=>{e instanceof Map?t[o]=Object.fromEntries(e):t[o]=e}),t}const en=/({([^}]*)})/g,tn=/[{}]/g,on=/\w+\.\w+/,nn=e=>{if(!He(e))return[];const t=e.match(en);return t?t.map(e=>e.replace(tn,"").trim()):[]};function rn(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let o=e.value;const n=Object.keys(t);for(let e=0;e<n.length;e++){const r=n[e],i=t[r];if(i.extensions.conditions)continue;const a=rn(i);o=o.replace(`{${r}}`,a)}return e.value=o,delete e.extensions.references,e.value}const an=/calc/g;function sn(e){return $e(e)&&e.reference?e.reference:String(e)}const ln=(e,...t)=>t.map(sn).join(` ${e} `).replace(an,""),cn=(...e)=>`calc(${ln("+",...e)})`,dn=(...e)=>`calc(${ln("-",...e)})`,un=(...e)=>`calc(${ln("*",...e)})`,pn=(...e)=>`calc(${ln("/",...e)})`,hn=e=>{const t=sn(e);return null==t||Number.isNaN(parseFloat(t))?un(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},gn=Object.assign(e=>({add:(...t)=>gn(cn(e,...t)),subtract:(...t)=>gn(dn(e,...t)),multiply:(...t)=>gn(un(e,...t)),divide:(...t)=>gn(pn(e,...t)),negate:()=>gn(hn(e)),toString:()=>e.toString()}),{add:cn,subtract:dn,multiply:un,divide:pn,negate:hn}),mn={enforce:"pre",transform(e){const{prefix:t,allTokens:o,formatCssVar:n,formatTokenName:r,registerToken:i}=e;o.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{const o=e.path.slice(),a=n(o,t);if(He(e.value)&&"0rem"===e.value)return;const s=[...e.path],l=s[s.length-1];null!=l&&(s[s.length-1]=`-${l}`);const c={...e,value:gn.negate(a.ref),name:r(s),path:s,extensions:{...e.extensions,negative:!0,prop:`-${e.extensions.prop}`,originalPath:o}};i(c)})}},fn=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),vn={enforce:"post",transform(e){const t=e.allTokens.filter(e=>fn.has(e.extensions.category)&&!e.extensions.negative);t.forEach(e=>{Object.assign(e.extensions,{pixelValue:ao(e.value)})})}},bn={enforce:"post",transform(e){const{allTokens:t,registerToken:o,formatTokenName:n}=e,r=t.filter(({extensions:e})=>"colors"===e.category),i=new Map,a=new Map;r.forEach(e=>{const{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{i.set(n(e),e)}),t.roots.forEach(o=>{const r=n(o),s=a.get(r)||[];if(s.push(e),a.set(r,s),e.extensions.default&&1===o.length){const e=t.keys[0]?.filter(Boolean);if(!e.length)return;const r=o.concat(e);i.set(n(r),[])}}))}),i.forEach(e=>{const t=["colors","colorPalette",...e].filter(Boolean),r=n(t),i=n(t.slice(1));o({name:r,value:r,originalValue:r,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:i,virtual:!0}},"pre")})}},xn={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}},yn=[mn,bn,vn,xn],wn={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:o,formatCssVar:n}=t,{negative:r,originalPath:i}=e.extensions;return{cssVar:n((r?i:e.path).filter(Boolean),o)}}},kn={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:o,formatCssVar:n}=t,r=nn(e.value);return r.length?(r.forEach(t=>{const r=n(t.split("."),o);e.value=e.value.replace(`{${r.ref}}`,r)}),e.value):e.value}},Sn={type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match:e=>"colors"===e.extensions.category&&!e.extensions.virtual,transform(e,t){let o=e.path.slice();if(o.pop(),o.shift(),0===o.length){const t=[...e.path];t.shift(),o=t}if(0===o.length)return{};const n=o.reduce((e,t,o,n)=>{const r=n.slice(0,o+1);return e.push(r),e},[]),r=o[0],i=t.formatTokenName(o),a=e.path.slice(e.path.indexOf(r)+1).reduce((e,t,o,n)=>(e.push(n.slice(o)),e),[]);return 0===a.length&&a.push([""]),{colorPalette:{value:i,roots:n,keys:a}}}},Cn=[wn,kn,Sn],In=e=>$e(e)&&Object.prototype.hasOwnProperty.call(e,"value");function En(e){const{prefix:t="",tokens:o={},semanticTokens:n={},breakpoints:r={}}=e,i=e=>e.join("."),a=[],s=new Map,l=new Map,c=new Map,d=new Map,u=new Map,p=new Map,h=new Map,g=new Map,m=[];function f(e,t){a.push(e),s.set(e.name,e),t&&g.forEach(o=>{o.enforce===t&&_(o,e)})}const v=function(e){return e?{breakpoints:qt(e,e=>({value:e})),sizes:Ht(e,(e,t)=>[`breakpoint-${e}`,{value:t}])}:{breakpoints:{},sizes:{}}}(r),b=Be({...o,breakpoints:v.breakpoints,sizes:{...o.sizes,...v.sizes}});function x(e){return s.get(e)}let y={};const w=Qt((e,t)=>u.get(e)??t),k=Qt(e=>y[e]||null),S=Qt(e=>Jo(e,e=>{if(!e)return;if(e.includes("/")){const t=(e=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[t,o]=e.split("/");if(!t||!o)return{invalid:!0,value:t};const n=w(t),r=x(`opacity.${o}`)?.value;if(!r&&isNaN(Number(o)))return{invalid:!0,value:t};const i=n??t;return{invalid:!1,color:i,value:`color-mix(in srgb, ${i} ${r?100*Number(r)+"%":`${o}%`}, transparent)`}})(e);if(t.invalid)throw new Error("Invalid color mix at "+e+": "+t.value);return t.value}return w(e)||(on.test(e)?Xo(e):e)})),C={prefix:t,allTokens:a,tokenMap:s,registerToken:f,getByName:x,formatTokenName:i,formatCssVar:(e,t)=>qo(e.join("-"),{prefix:t}),flatMap:u,cssVarMap:c,categoryMap:h,colorPaletteMap:d,getVar:w,getCategoryValues:k,expandReferenceInValue:S};function _(e,t){if(t.extensions.references)return;if(Ue(e.match)&&!e.match(t))return;const o=(n=t,e.transform(n,C));var n;switch(!0){case"extensions"===e.type:Object.assign(t.extensions,o);break;case"value"===e.type:t.value=o;break;default:t[e.type]=o}}function I(e){m.forEach(t=>{t.enforce===e&&t.transform(C)})}function E(e){g.forEach(t=>{t.enforce===e&&a.forEach(e=>{_(t,e)})})}return Gt(b,(e,t)=>{const o=t.includes("DEFAULT"),n=(t=Pn(t))[0],r=i(t),a=He(e)?{value:e}:e,s={value:a.value,originalValue:a.value,name:r,path:t,extensions:{condition:"base",originalPath:t,category:n,prop:i(t.slice(1))}};o&&(s.extensions.default=!0),f(s)},{stop:In}),Gt(n,(e,t)=>{const o=t.includes("DEFAULT"),n=(t=On(Pn(t)))[0],r=i(t),a=He(e.value)?{value:{base:e.value}}:e,s={value:a.value.base||"",originalValue:a.value.base||"",name:r,path:t,extensions:{originalPath:t,category:n,conditions:a.value,condition:"base",prop:i(t.slice(1))}};o&&(s.extensions.default=!0),f(s)},{stop:In}),function(...e){e.forEach(e=>{g.set(e.name,e)})}(...Cn),function(...e){m.push(...e)}(...yn),I("pre"),E("pre"),a.forEach(e=>{const t=function(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,o=[];return Gt(t,(t,n)=>{const r=On(n);if(!r.length)return;const i={...e,value:t,extensions:{...e.extensions,condition:r.join(":")}};o.push(i)}),o}(e);t&&0!==t.length&&t.forEach(e=>{f(e)})}),a.forEach(e=>{if(t=e.value,!en.test(t))return;var t;const o=function(e){const t=nn(e),o=[];for(let e=0;e<t.length;e++){const n=x(t[e]);n&&o.push(n)}return o}(e.value);e.extensions.references=o.reduce((e,t)=>(e[t.name]=t,e),{})}),a.forEach(e=>{rn(e)}),I("post"),E("post"),a.forEach(e=>{!function(e){const{condition:t}=e.extensions;t&&(l.has(t)||l.set(t,new Set),l.get(t).add(e))}(e),function(e){const{category:t,prop:o}=e.extensions;t&&(h.has(t)||h.set(t,new Map),h.get(t).set(o,e))}(e),function(e){const{condition:t,negative:o,virtual:n,cssVar:r}=e.extensions;!o&&!n&&t&&r&&(c.has(t)||c.set(t,new Map),c.get(t).set(r.var,e.value))}(e),function(e){const{category:t,prop:o,cssVar:n,negative:r}=e.extensions;if(!t)return;p.has(t)||p.set(t,new Map);const i=r?e.extensions.conditions?e.originalValue:e.value:n.ref;p.get(t).set(o,i),u.set([t,o].join("."),i)}(e),function(e){const{colorPalette:t,virtual:o,default:n}=e.extensions;t&&!o&&t.roots.forEach(o=>{const r=i(o);d.has(r)||d.set(r,new Map);const a=function(e,t){const o=e.findIndex((o,n)=>t.every((t,o)=>e[n+o]===t));return-1===o||(e.splice(o,t.length),e.splice(o,0,"colorPalette")),e}([...e.path],[...o]),s=x(i(a));if(!s||!s.extensions.cssVar)return;const{var:l}=s.extensions.cssVar;if(d.get(r).set(l,e.extensions.cssVar.ref),n&&1===o.length){const n=x(i(["colors","colorPalette"]));if(!n)return;const r=x(i(e.path));if(!r)return;const a=t.keys[0]?.filter(Boolean);if(!a.length)return;const s=i(o.concat(a));d.has(s)||d.set(s,new Map),d.get(s).set(n.extensions.cssVar.var,r.extensions.cssVar.ref)}})}(e)}),y=Qo(p),C}function Pn(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function On(e){return e.filter(e=>"base"!==e)}Array.from(new Set(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]));const zn=e=>(t,o)=>{const n=o.utils.colorMix(t);if(n.invalid)return{[e]:t};const r="--mix-"+e;return{[r]:n.value,[e]:`var(${r}, ${n.color})`}};function Tn(...e){const t=go(...e),{theme:o={},utilities:n={},globalCss:r={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:a="chakra",preflight:s}=t,l=function(e){const t=e.layers??$o,o=Object.values(t).sort((e,t)=>Ho[e]-Ho[t]);return{names:o,atRule:`@layer ${o.join(", ")};`,wrap(o,n){if(e.disableLayers)return n;const r=t[o];return{[`@layer ${r}`]:n}}}}(t),c=En({breakpoints:o.breakpoints,tokens:o.tokens,semanticTokens:o.semanticTokens,prefix:a}),d=function(e){const t=function(e){return Object.entries(e).sort(([,e],[,t])=>parseInt(e,10)<parseInt(t,10)?-1:1).map(([e,t],o,n)=>{let r=null;return o<=n.length-1&&(r=n[o+1]?.[1]),null!=r&&(r=lo(r)),[e,{name:e,min:so(t),max:r}]})}(e),o=Object.fromEntries(t);function n(e){return o[e]}function r(e){return co(n(e))}const i=function(){const e=function(){const e=Object.keys(o),t=function(e){const t=[];return e.forEach((o,n)=>{let r=n;r++;let i=e[r];for(;i;)t.push([o,i]),r++,i=e[r]}),t}(e),i=e.flatMap(e=>{const t=n(e),o=[`${e}Down`,co({max:lo(t.min)})];return[[e,co({min:t.min})],[`${e}Only`,r(e)],o]}).filter(([,e])=>""!==e).concat(t.map(([e,t])=>{const o=n(e),r=n(t);return[`${e}To${i=t,i.charAt(0).toUpperCase()+i.slice(1)}`,co({min:o.min,max:lo(r.min)})];var i}));return Object.fromEntries(i)}();return Object.fromEntries(Object.entries(e))}();return{values:Object.values(o),only:r,keys:function(){return qe(["base",...Object.keys(o)])},conditions:i,getCondition:e=>i[e],up:function(e){return co({min:n(e).min})},down:function(e){return co({max:lo(n(e).min)})}}}(o.breakpoints??mo),u=(e=>{const{breakpoints:t,conditions:o={}}=e,n=Ht(o,(e,t)=>[`_${e}`,t]),r=Object.assign({},n,t.conditions);function i(){return Object.keys(r)}function a(e){return i().includes(e)||uo.test(e)||e.startsWith("_")}return{keys:i,sort:Qt(e=>e.filter(e=>"base"!==e).sort((e,t)=>{const o=a(e),n=a(t);return o&&!n?1:!o&&n?-1:0})),has:a,resolve:function(e){return Reflect.get(r,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:t.conditions??mo,breakpoints:d}),p=function(e){const t=Ht(e.config,(e,t)=>[e,t]),o=e.tokens,n=new Map,r=new Map;function i(e,o){t[e]=o,a(e,o)}const a=(e,t)=>{const o=c(t);o&&(r.set(e,o),l(e,t))},s=new Map,l=(e,t)=>{if(!t)return;const o=c(t,e=>`type:Tokens["${e}"]`);if("object"==typeof o&&o.type)return void s.set(e,new Set([`type:${o.type}`]));if(o){const t=new Set(Object.keys(o));s.set(e,t)}const n=s.get(e)??new Set;t.property&&s.set(e,n.add(`CssProperties["${t.property}"]`))},c=(e,t)=>{const{values:n}=e,r=e=>{const o=t?.(e);return o?{[o]:o}:void 0};if(He(n))return r?.(n)??o.getCategoryValues(n)??mo;if(Array.isArray(n)){const e={};for(let t=0;t<n.length;t++)e[n[t]]=n[t];return e}return Ue(n)?n(t?r:o.getCategoryValues):n},d=Qt((e,t)=>({[e]:e.startsWith("--")?o.getVar(t,t):t})),u=Object.assign(o.getVar,{raw:e=>o.getByName(e)}),p=Qt((e,n)=>{const i=g(e);He(n)&&!n.includes("_EMO_")&&(n=o.expandReferenceInValue(n));const a=t[i];if(!a)return d(i,n);const s=r.get(i)?.[n];return a.transform?a.transform(s??n,{raw:n,token:u,utils:{colorMix:e=>((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[o,n]=e.split("/");if(!o||!n||"currentBg"===o)return{invalid:!0,value:o};const r=t(`colors.${o}`),i=t.raw(`opacity.${n}`)?.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:o};const a=r??o;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${i?100*Number(i)+"%":`${n}%`}, transparent)`}})(e,u)}}):d(e,s??n)});(()=>{for(const[e,o]of Object.entries(t)){const{shorthand:t}=o??{};t&&(Array.isArray(t)?t:[t]).forEach(t=>n.set(t,e))}})(),(()=>{const e=Qo(o.colorPaletteMap);i("colorPalette",{values:Object.keys(e),transform:Qt(t=>e[t])})})(),(()=>{for(const[e,o]of Object.entries(t))o&&a(e,o)})(),(()=>{for(const[e,o]of Object.entries(t))o&&l(e,o)})();const h=n.size>0,g=Qt(e=>n.get(e)??e);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:h,transform:p,shorthands:n,resolveShorthand:g,register:i,getTypes:()=>{const e=new Map;for(const[t,o]of s.entries()){if(0===o.size){e.set(t,["string"]);continue}const n=Array.from(o).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,n)}return e},addPropertyType:(e,t)=>{const o=s.get(e)??new Set;s.set(e,new Set([...o,...t]))}}}({config:n,tokens:c});!function(){const{textStyles:e,layerStyles:t,animationStyles:n}=o,r=Be({textStyle:e,layerStyle:t,animationStyle:n});for(const[e,t]of Object.entries(r)){const o=Yt(t??mo,Nn);p.register(e,{values:Object.keys(o),transform:e=>b(o[e])})}}(),p.addPropertyType("animationName",Object.keys(o.keyframes??mo));const h=new Set(["css",...p.keys(),...u.keys()]),g=Qt(e=>h.has(e)||$t(e)),m=e=>{if(Array.isArray(e)){const t=vo();for(let o=0;o<e.length;o++){const n=e[o];null!=n&&(t[u.breakpoints[o]]=n)}return t}return e},f=function(e){const{utility:t,normalize:o}=e,{hasShorthand:n,resolveShorthand:r}=t;return function(e){return Gt(e,o,{stop:e=>Array.isArray(e),getKey:n?r:void 0})}}({utility:p,normalize:m}),v=function(e){const{conditions:t,isValidProperty:o}=e;return function(e){return Gt(e,e=>e,{getKey:(e,n)=>$e(n)?t.has(e)||o(e)?e:function(e){const t=[];let o=0,n="",r=!1;for(let i=0;i<e.length;i++){const a=e[i];"\\"!==a||r?r?(r=!1,n+=a):("("===a?o++:")"===a&&o--,","===a&&0===o?(t.push(n.trim()),n=""):n+=a):(r=!0,n+=a)}return n&&t.push(n.trim()),t}(e).map(e=>{const t=e.startsWith("&")?e.slice(1):e;return function(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}(t)?`${t} &`:`&${t}`}).join(", "):e})}}({conditions:u,isValidProperty:g}),b=Wo({transform:p.transform,conditions:u,normalize:f}),x=function(e){const{css:t,conditions:o,normalize:n,layers:r}=e;return function i(a={}){const s=Bo(a),{base:l,defaultVariants:c,compoundVariants:d}=s,u=Ht(s.variants,(e,t)=>[e,Ht(t,(e,t)=>[e,n(t)])]),p=Wo({conditions:o,normalize:n,transform:(e,t)=>u[e]?.[t]}),h=(e={})=>{const o=n({...c,...Be(e)});let i={...l};to(i,p(o));const a=function(e,o){let n=mo;return e.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>o[e]===t))&&(n=t(n,e.css))}),n}(d,o);return r.wrap("recipes",t(i,a))},g=Object.keys(u),m=Ht(u,(e,t)=>[e,Object.keys(t)]);return Object.assign(e=>t(h(e)),{className:a.className,__cva__:!0,variantMap:m,variantKeys:g,raw:h,config:a,splitVariantProps:e=>{const t=Lo(e,["recipe"]),[o,n]=ot(t,g),r=g.includes("colorPalette"),i=g.includes("orientation");return r||(o.colorPalette=e.colorPalette||c.colorPalette),i&&(n.orientation=e.orientation),[o,n]},merge(t){return i(function(e){const{css:t}=e;return function(e,o){const n=Bo(o.config),r=qe(e.variantKeys,Object.keys(o.variants)),i=t(e.base,n.base),a=Object.fromEntries(r.map(o=>[o,t(e.config.variants[o],n.variants[o])])),s=to(e.config.defaultVariants,n.defaultVariants),l=[...e.compoundVariants,...n.compoundVariants];return{className:Ge(e.className,o.className),base:i,variants:a,defaultVariants:s,compoundVariants:l}}}(e)(this,t))}})}}({css:b,conditions:u,normalize:f,layers:l}),y=function(e){const{cva:t}=e;return function(e=mo){const o=Object.entries(((e=mo)=>{const t=t=>{return{base:e.base?.[t]??mo,variants:vo(),defaultVariants:e.defaultVariants??mo,compoundVariants:e.compoundVariants?(o=e.compoundVariants,n=t,o.filter(e=>e.css[n]).map(e=>({...e,css:e.css[n]}))):fo};var o,n},o=(e.slots??[]).map(e=>[e,t(e)]);for(const[t,n]of Object.entries(e.variants??{}))for(const[e,r]of Object.entries(n))o.forEach(([o,n])=>{var i;(i=n.variants)[t]??(i[t]={}),n.variants[t][e]=r[o]??mo});return Object.fromEntries(o)})(e)).map(([e,o])=>[e,t(o)]),n=e.variants??mo,r=Object.keys(n),i=Ht(n,(e,t)=>[e,Object.keys(t)]);let a={};return e.className&&(a=Object.fromEntries(e.slots.map(t=>[t,`${e.className}__${t}`]))),Object.assign(function(e){const t=o.map(([t,o])=>[t,o(e)]);return Object.fromEntries(t)},{variantMap:i,variantKeys:r,splitVariantProps:function(t){const o=Lo(t,["recipe"]),[n,i]=ot(o,r),a=r.includes("colorPalette"),s=r.includes("orientation");return a||(n.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),s&&(i.orientation=t.orientation),[n,i]},classNameMap:a})}}({cva:x});function w(){const e={};for(const[t,o]of c.cssVarMap.entries()){const n=Object.fromEntries(o);if(0===Object.keys(n).length)continue;const r="base"===t?i:u.resolve(t),a=r.startsWith("@");to(e,b(v({[r]:a?{[i]:n}:n})))}return l.wrap("tokens",e)}function k(){const e=Ht(o.keyframes??mo,(e,t)=>[`@keyframes ${e}`,t]),t=Object.assign({},e,b(v(r)));return l.wrap("base",t)}function S(){const e=function(e){const{preflight:t}=e;if(!t)return{};const{scope:o="",level:n="parent"}=$e(t)?t:{};let r="";o&&"parent"===n?r=`${o} `:o&&"element"===n&&(r=`&${o}`);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"}},a={[o||"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("element"===n){const e=Object.entries(i).reduce((e,[t,o])=>(e[t]={[r]:o},e),{});Object.assign(a,e)}else r?a[r]=i:Object.assign(a,i);return a}({preflight:s});return l.wrap("reset",e)}const C=function(e){const t=new Map;return e.allTokens.forEach(e=>{const{cssVar:o,virtual:n,conditions:r}=e.extensions,i=r||n?o.ref:e.value;t.set(e.name,{value:i,variable:o.ref})}),t}(c),_=(e,t)=>C.get(e)?.value||t;function I(e){return Object.hasOwnProperty.call(o.recipes??mo,e)}function E(e){return Object.hasOwnProperty.call(o.slotRecipes??mo,e)}_.var=(e,t)=>C.get(e)?.variable||t;const P=[S(),k(),w()],O={layerStyles:Rn(o.layerStyles??mo),textStyles:Rn(o.textStyles??mo),animationStyles:Rn(o.animationStyles??mo),tokens:Vn(c,Object.keys(o.tokens??mo),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:Vn(c,Object.keys(o.semanticTokens??mo),e=>!!e.extensions.conditions),keyframes:jn(o.keyframes??mo),breakpoints:jn(o.breakpoints??mo)};return{$$chakra:!0,_config:t,_global:P,breakpoints:d,tokens:c,conditions:u,utility:p,token:_,properties:h,layers:l,isValidProperty:g,splitCssProps:function(e){return ot(e,g)},normalizeValue:m,getTokenCss:w,getGlobalCss:k,getPreflightCss:S,css:b,cva:x,sva:y,getRecipe:function(e,t){return o.recipes?.[e]??t},getSlotRecipe:function(e,t){return o.slotRecipes?.[e]??t},hasRecipe:function(e){return I(e)||E(e)},isRecipe:I,isSlotRecipe:E,query:O}}const Nn=e=>$e(e)&&"value"in e,Rn=e=>({list:()=>Object.keys(Yt(e,Nn)),search(e){return this.list().filter(t=>t.includes(e))}}),Vn=(e,t,o)=>({categoryKeys:t,list(t){const n=e.categoryMap.get(t),r=n?[...n.entries()]:[],i=[];for(let e=0;e<r.length;e++){const[t,n]=r[e];o(n,t)&&i.push(t)}return i},search(e,t){return this.list(e).filter(e=>e.includes(t))}}),jn=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}}),An=(e,t)=>null!=t?`${e}(${t})`:t,Dn=e=>{if((e=>/^var\(--.+\)$/.test(e))(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},Fn=e=>({values:["outside","inside","mixed","none"],transform(t,{token:o}){const n=o("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":n,[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":n,[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":n,[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":n,[e]:{outline:"none"}}}[t]??{}}}),Mn=zn("borderColor"),Wn=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Ln=qo("bg-currentcolor"),Bn=e=>e===Ln.ref||"currentBg"===e,$n=e=>({...e("colors"),currentBg:Ln}),Hn={conditions:{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"},utilities:{background:{values:$n,shorthand:["bg"],transform(e,t){if(Bn(t.raw))return{background:Ln.ref};const o=zn("background")(e,t);return{...o,[Ln.var]:o?.background}}},backgroundColor:{values:$n,shorthand:["bgColor"],transform(e,t){if(Bn(t.raw))return{backgroundColor:Ln.ref};const o=zn("backgroundColor")(e,t);return{...o,[Ln.var]:o?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},backgroundGradient:{shorthand:["bgGradient"],values:e=>({...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=>({"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e})},gradientFrom:{values:$n,transform:zn("--gradient-from")},gradientTo:{values:$n,transform:zn("--gradient-to")},gradientVia:{values:$n,transform:(e,t)=>({...zn("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"})},backgroundImage:{values:e=>({...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:$n,transform:zn("borderColor")},borderTopColor:{values:$n,transform:zn("borderTopColor")},borderBlockStartColor:{values:$n,transform:zn("borderBlockStartColor")},borderBottomColor:{values:$n,transform:zn("borderBottomColor")},borderBlockEndColor:{values:$n,transform:zn("borderBlockEndColor")},borderLeftColor:{values:$n,transform:zn("borderLeftColor")},borderInlineStartColor:{values:$n,shorthand:["borderStartColor"],transform:zn("borderInlineStartColor")},borderRightColor:{values:$n,transform:zn("borderRightColor")},borderInlineEndColor:{values:$n,shorthand:["borderEndColor"],transform:zn("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:$n,transform:zn("color")},fill:{values:$n,transform:zn("fill")},stroke:{values:$n,transform:zn("stroke")},accentColor:{values:$n,transform:zn("accentColor")},divideX:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}})},divideY:{values:{type:"string"},transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}})},divideColor:{values:$n,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":Mn(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:$n,transform:zn("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform:e=>"auto"!==e?{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":An("blur",e)})},brightness:{transform:e=>({"--brightness":An("brightness",e)})},contrast:{transform:e=>({"--contrast":An("contrast",e)})},grayscale:{transform:e=>({"--grayscale":An("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":An("hue-rotate",Dn(e))})},invert:{transform:e=>({"--invert":An("invert",e)})},saturate:{transform:e=>({"--saturate":An("saturate",e)})},sepia:{transform:e=>({"--sepia":An("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":An("drop-shadow",e)})},backdropFilter:{transform:e=>"auto"!==e?{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":An("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":An("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":An("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":An("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":An("hue-rotate",Dn(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":An("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":An("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":An("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":An("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:$n,transform:zn("outlineColor")},focusRing:Fn("&:is(:focus, [data-focus])"),focusVisibleRing:Fn("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:$n,transform:zn("--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:o})=>{const n=o.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`;return{[n]:{display:"none"}}}},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:o}){const n=o.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`;return{[n]:{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:$n,transform:zn("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=>({"--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:$n,transform:zn("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:$n,transform:zn("--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:$n,transform:zn("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return"auto"===e&&(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))"),"auto-gpu"===e&&(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":Dn(e)})},skewY:{transform:e=>({"--skew-y":Dn(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform:e=>"auto"!==e?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}},spaceXReverse:{values:{type:"boolean"},transform:e=>({"& > :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=>({"& > :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=>"auto"!==e?{rotate:Dn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":Dn(e)})},rotateY:{transform:e=>({"--rotate-y":Dn(e)})},translate:{transform:e=>"auto"!==e?{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 Wn("all");case"position":return Wn("left, right, top, bottom, inset-inline, inset-block");case"colors":return Wn("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Wn("opacity");case"shadow":return Wn("box-shadow");case"transform":return Wn("transform");case"size":return Wn("width, height");case"backgrounds":return Wn("background, background-color, background-image, background-position");case"common":return Wn("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=>!0===e?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}},lineClamp:{transform:e=>"none"===e?{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=>({"--border-spacing-x":e})},borderSpacingY:{values:"spacing",transform:e=>({"--border-spacing-y":e})},srOnly:{values:{type:"boolean"},transform:e=>Un[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:$n,transform:zn("caretColor")},cursor:{values:"cursor"}}},Un={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"}},Gn="var(--chakra-empty,/*!*/ /*!*/)",qn={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Gn,"--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}`,Gn])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Gn])),"--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"}},Yn={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","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},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"}},Kn={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:Xn,defaultVariants:Jn}=Yn,Zn={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"}},Qn={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"}},er={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"}},tr={badge:Yn,button:{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","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",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"}},code:{className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:Xn,defaultVariants:Jn},container:{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"}}}},heading:{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"}},input:Qn,inputAddon:{className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:Qn.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"}},kbd:{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"}},link:{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"}},mark:{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:{}}}},separator:{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"}},skeleton:{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}},skipNavLink:{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"}}},spinner:{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"}},textarea:{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"}},icon:{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"}},checkmark:Kn,radiomark:er,colorSwatch:Zn},or=Dt.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}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},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}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},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}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},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}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},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}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},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}"}},border:{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}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},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}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},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}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},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}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),nr=Dt.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),rr=Dt.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}"}}});var ir=(e,t=[])=>({parts:(...o)=>{if(sr(t))return ir(e,o);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...o)=>ir(e,[...t,...o]),omit:(...o)=>ir(e,t.filter(e=>!o.includes(e))),rename:e=>ir(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,o)=>Object.assign(t,{[o]:{selector:[`&[data-scope="${ar(e)}"][data-part="${ar(o)}"]`,`& [data-scope="${ar(e)}"][data-part="${ar(o)}"]`].join(", "),attrs:{"data-scope":ar(e),"data-part":ar(o)}}}),{})}),ar=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),sr=e=>0===e.length,lr=Object.defineProperty,cr=e=>{throw TypeError(e)},dr=(e,t,o)=>((e,t,o)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o),ur=(e,t,o)=>(((e,t)=>{t.has(e)||cr("Cannot read from private field")})(e,t),t.get(e));var pr=(e,...t)=>e.concat(t),hr=(e,...t)=>e.filter(e=>!t.includes(e)),gr=(e,t)=>((e,t)=>-1!==e.indexOf(t))(e,t)?hr(e,t):pr(e,t);var mr=e=>"Array"===e?.constructor.name,fr=(e,t)=>{if(Object.is(e,t))return!0;if(null==e&&null!=t||null!=e&&null==t)return!1;if("function"==typeof e?.isEqual&&"function"==typeof t?.isEqual)return e.isEqual(t);if("function"==typeof e&&"function"==typeof t)return e.toString()===t.toString();if(mr(e)&&mr(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!fr(e[o],t[o]))return!1;return!0})(Array.from(e),Array.from(t));if("object"!=typeof e||"object"!=typeof t)return!1;const o=Object.keys(t??Object.create(null)),n=o.length;for(let t=0;t<n;t++)if(!Reflect.has(e,o[t]))return!1;for(let r=0;r<n;r++){const n=o[r];if(!fr(e[n],t[n]))return!1}return!0},vr=e=>null!=e&&"object"==typeof e,br=e=>vr(e)&&!(e=>Array.isArray(e))(e),xr=e=>"string"==typeof e,yr=e=>"function"==typeof e,wr=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),kr=Function.prototype.toString,Sr=kr.call(Object),Cr=e=>(e=>"object"==typeof e&&null!==e&&"$$typeof"in e&&"props"in e)(e)||(e=>"object"==typeof e&&null!==e&&"__v_isVNode"in e)(e),_r=(e,...t)=>("function"==typeof e?e(...t):e)??void 0,Ir=e=>e(),Er=()=>{},Pr=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})},Or=(()=>{let e=0;return()=>(e++,e.toString(36))})();function zr(e,t,...o){if(e in t){const n=t[e];return yr(n)?n(...o):n}const n=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(n,zr),n}var{floor:Tr,abs:Nr,round:Rr,min:Vr,max:jr,pow:Ar,sign:Dr}=Math,Fr=e=>Number.isNaN(e),Mr=e=>Fr(e)?0:e,Wr=(e,t)=>(e%t+t)%t,Lr=(e,t,o)=>{const n=Mr(e);return(null==t||n>=t)&&(null==o||n<=o)},Br=(e,t,o)=>Vr(jr(Mr(e),t),o),$r=(e,t,o)=>(Mr(e)-t)/(o-t),Hr=(e,t,o,n)=>Br(((e,t,o)=>Rr((Mr(e)-t)/o)*o+t)(e*(o-t)+t,t,n),t,o),Ur=(e,t)=>{let o=e,n=t.toString(),r=n.indexOf("."),i=r>=0?n.length-r:0;if(i>0){let e=Ar(10,i);o=Rr(o*e)/e}return o},Gr=(e,t)=>"number"==typeof t?Tr(e*t+.5)/t:Rr(e),qr=(e,t,o,n)=>{const r=null!=t?Number(t):0,i=Number(o),a=(e-r)%n;let s=2*Nr(a)>=n?e+Dr(a)*(n-Nr(a)):e-a;if(s=Ur(s,n),!Fr(r)&&s<r)s=r;else if(!Fr(i)&&s>i){const e=Tr((i-r)/n),t=r+e*n;s=e<=0||t<r?i:t}return Ur(s,n)},Yr=(e,t,o)=>e[t]===o?e:[...e.slice(0,t),o,...e.slice(t+1)];var Kr=(e,t=0,o=10)=>{const n=Math.pow(o,t);return Rr(e*n)/n},Xr=e=>{if(!Number.isFinite(e))return 0;let t=1,o=0;for(;Math.round(e*t)/t!==e;)t*=10,o+=1;return o},Jr=(e,t,o)=>{let n="+"===t?e+o:e-o;if(e%1!=0||o%1!=0){const r=10**Math.max(Xr(e),Xr(o));e=Math.round(e*r),o=Math.round(o*r),n="+"===t?e+o:e-o,n/=r}return n},Zr=e=>"number"==typeof e?`${e}px`:e;function Qr(e){if(!(e=>{if(!vr(e)||"[object Object]"!=(e=>Object.prototype.toString.call(e))(e)||Cr(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const o=wr(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&kr.call(o)==Sr})(e)||void 0===e)return e;const t=Reflect.ownKeys(e).filter(e=>"string"==typeof e),o={};for(const n of t){const t=e[n];void 0!==t&&(o[n]=Qr(t))}return o}var ei,ti=e=>function(t){return function(e,t){const o={},n={},r=new Set(t),i=Reflect.ownKeys(e);for(const t of i)r.has(t)?n[t]=e[t]:o[t]=e[t];return[n,o]}(t,e)},oi=()=>performance.now(),ni=class{constructor(e){var t,o,n;this.onTick=e,dr(this,"frameId",null),dr(this,"pausedAtMs",null),dr(this,"context"),dr(this,"cancelFrame",()=>{null!==this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=null)}),dr(this,"setStartMs",e=>{this.context.startMs=e}),dr(this,"start",()=>{if(null!==this.frameId)return;const e=oi();null!==this.pausedAtMs?(this.context.startMs+=e-this.pausedAtMs,this.pausedAtMs=null):this.context.startMs=e,this.frameId=requestAnimationFrame(ur(this,ei))}),dr(this,"pause",()=>{null!==this.frameId&&(this.cancelFrame(),this.pausedAtMs=oi())}),dr(this,"stop",()=>{null!==this.frameId&&(this.cancelFrame(),this.pausedAtMs=null)}),t=this,n=e=>{this.context.now=e,this.context.deltaMs=e-this.context.startMs,!1!==this.onTick(this.context)?this.frameId=requestAnimationFrame(ur(this,ei)):this.stop()},(o=ei).has(t)?cr("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(t):o.set(t,n),this.context={now:0,startMs:oi(),deltaMs:0}}get elapsedMs(){return null!==this.pausedAtMs?this.pausedAtMs-this.context.startMs:oi()-this.context.startMs}};function ri(e,t){const o=new ni(({deltaMs:o})=>{if(o>=t)return e(),!1});return o.start(),()=>o.stop()}function ii(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function ai(e,t){if(null==e)throw new Error(t())}ei=new WeakMap;var si=Object.defineProperty,li=(e,t,o)=>((e,t,o)=>t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o),ci={itemToValue:e=>"string"==typeof e?e:br(e)&&wr(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:br(e)&&wr(e,"label")?e.label:ci.itemToValue(e),isItemDisabled:e=>!(!br(e)||!wr(e,"disabled")||!e.disabled)},di=class e{constructor(t){this.options=t,li(this,"items"),li(this,"indexMap",null),li(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),li(this,"isEqual",e=>fr(this.items,e.items)),li(this,"setItems",e=>this.copy(e)),li(this,"getValues",(e=this.items)=>{const t=[];for(const o of e){const e=this.getItemValue(o);null!=e&&t.push(e)}return t}),li(this,"find",e=>{if(null==e)return null;const t=this.indexOf(e);return-1!==t?this.at(t):null}),li(this,"findMany",e=>{const t=[];for(const o of e){const e=this.find(o);null!=e&&t.push(e)}return t}),li(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;const o=this.group();for(const[,n]of o)for(const o of n){if(t===e)return o;t++}return null}),li(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),li(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),li(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??ci.itemToValue(e)),li(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??ci.isItemDisabled(e))),li(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??ci.itemToString(e)),li(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),li(this,"stringifyItems",(e,t=", ")=>{const o=[];for(const t of e){const e=this.stringifyItem(t);null!=e&&o.push(e)}return o.join(t)}),li(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),li(this,"has",e=>-1!==this.indexOf(e)),li(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),li(this,"group",()=>{const{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];const o=new Map;this.items.forEach((t,n)=>{const r=e(t,n);o.has(r)||o.set(r,[]),o.get(r).push(t)});let n=Array.from(o.entries());return t&&n.sort(([e],[o])=>{if("function"==typeof t)return t(e,o);if(Array.isArray(t)){const n=t.indexOf(e),r=t.indexOf(o);return-1===n?1:-1===r?-1:n-r}return"asc"===t?e.localeCompare(o):"desc"===t?o.localeCompare(e):0}),n}),li(this,"getNextValue",(e,t=1,o=!1)=>{let n=this.indexOf(e);if(-1===n)return null;for(n=o?Math.min(n+t,this.size-1):n+t;n<=this.size&&this.getItemDisabled(this.at(n));)n++;return this.getItemValue(this.at(n))}),li(this,"getPreviousValue",(e,t=1,o=!1)=>{let n=this.indexOf(e);if(-1===n)return null;for(n=o?Math.max(n-t,0):n-t;n>=0&&this.getItemDisabled(this.at(n));)n--;return this.getItemValue(this.at(n))}),li(this,"indexOf",e=>{if(null==e)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(t=>this.getItemValue(t)===e);if(!this.indexMap){this.indexMap=new Map;let e=0;const t=this.group();for(const[,o]of t)for(const t of o){const o=this.getItemValue(t);null!=o&&this.indexMap.set(o,e),e++}}return this.indexMap.get(e)??-1}),li(this,"getByText",(e,t)=>{const o=null!=t?this.indexOf(t):-1,n=1===e.length;for(let r=0;r<this.items.length;r++){const i=this.items[(o+r+1)%this.items.length];if((!n||this.getItemValue(i)!==t)&&!this.getItemDisabled(i)&&ui(this.stringifyItem(i),e))return i}}),li(this,"search",(e,t)=>{const{state:o,currentValue:n,timeout:r=350}=t,i=o.keysSoFar+e,a=i.length>1&&Array.from(i).every(e=>e===i[0])?i[0]:i,s=this.getByText(a,n),l=this.getItemValue(s);function c(){clearTimeout(o.timer),o.timer=-1}return function e(t){o.keysSoFar=t,c(),""!==t&&(o.timer=+setTimeout(()=>{e(""),c()},r))}(i),l}),li(this,"update",(e,t)=>{let o=this.indexOf(e);return-1===o?this:this.copy([...this.items.slice(0,o),t,...this.items.slice(o+1)])}),li(this,"upsert",(e,t,o="append")=>{let n=this.indexOf(e);return-1===n?("append"===o?this.append:this.prepend)(t):this.copy([...this.items.slice(0,n),t,...this.items.slice(n+1)])}),li(this,"insert",(e,...t)=>this.copy(pi(this.items,e,...t))),li(this,"insertBefore",(e,...t)=>{let o=this.indexOf(e);if(-1===o){if(0!==this.items.length)return this;o=0}return this.copy(pi(this.items,o,...t))}),li(this,"insertAfter",(e,...t)=>{let o=this.indexOf(e);if(-1===o){if(0!==this.items.length)return this;o=0}return this.copy(pi(this.items,o+1,...t))}),li(this,"prepend",(...e)=>this.copy(pi(this.items,0,...e))),li(this,"append",(...e)=>this.copy(pi(this.items,this.items.length,...e))),li(this,"filter",e=>{const t=this.items.filter((t,o)=>e(this.stringifyItem(t),o,t));return this.copy(t)}),li(this,"remove",(...e)=>{const t=e.map(e=>"string"==typeof e?e:this.getItemValue(e));return this.copy(this.items.filter(e=>{const o=this.getItemValue(e);return null!=o&&!t.includes(o)}))}),li(this,"move",(e,t)=>{const o=this.indexOf(e);return-1===o?this:this.copy(hi(this.items,[o],t))}),li(this,"moveBefore",(e,...t)=>{let o=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===o)return this;let n=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(hi(this.items,n,o))}),li(this,"moveAfter",(e,...t)=>{let o=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===o)return this;let n=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(hi(this.items,n,o+1))}),li(this,"reorder",(e,t)=>this.copy(hi(this.items,[e],t))),li(this,"compareValue",(e,t)=>{const o=this.indexOf(e),n=this.indexOf(t);return o<n?-1:o>n?1:0}),li(this,"range",(e,t)=>{let o=[],n=e;for(;null!=n;){if(this.find(n)&&o.push(n),n===t)return o;n=this.getNextValue(n)}return[]}),li(this,"getValueRange",(e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[]),li(this,"toString",()=>{let e="";for(const t of this.items)e+=[this.getItemValue(t),this.stringifyItem(t),this.getItemDisabled(t)].filter(Boolean).join(":")+",";return e}),li(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let e=0;for(;this.getItemDisabled(this.at(e));)e++;return this.getItemValue(this.at(e))}get lastValue(){let e=this.size-1;for(;this.getItemDisabled(this.at(e));)e--;return this.getItemValue(this.at(e))}*[Symbol.iterator](){yield*this.items}},ui=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function pi(e,t,...o){return[...e.slice(0,t),...o,...e.slice(t)]}function hi(e,t,o){const n=(t=[...t].sort((e,t)=>e-t)).map(t=>e[t]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return o=Math.max(0,o-t.filter(e=>e<o).length),[...e.slice(0,o),...n,...e.slice(o)]}var gi=class e extends Set{constructor(t=[]){super(t),li(this,"selectionMode","single"),li(this,"deselectable",!0),li(this,"copy",()=>{const t=new e([...this]);return this.sync(t)}),li(this,"sync",e=>(e.selectionMode=this.selectionMode,e.deselectable=this.deselectable,e)),li(this,"isEmpty",()=>0===this.size),li(this,"isSelected",e=>"none"!==this.selectionMode&&null!=e&&this.has(e)),li(this,"canSelect",(e,t)=>"none"!==this.selectionMode||!e.getItemDisabled(e.find(t))),li(this,"firstSelectedValue",e=>{let t=null;for(let o of this)(!t||e.compareValue(o,t)<0)&&(t=o);return t}),li(this,"lastSelectedValue",e=>{let t=null;for(let o of this)(!t||e.compareValue(o,t)>0)&&(t=o);return t}),li(this,"extendSelection",(e,t,o)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode)return this.replaceSelection(e,o);const n=this.copy(),r=Array.from(this).pop();for(let i of e.getValueRange(t,r??o))n.delete(i);for(let r of e.getValueRange(o,t))this.canSelect(e,r)&&n.add(r);return n}),li(this,"toggleSelection",(e,t)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode&&!this.isSelected(t))return this.replaceSelection(e,t);const o=this.copy();return o.has(t)?o.delete(t):o.canSelect(e,t)&&o.add(t),o}),li(this,"replaceSelection",(t,o)=>{if("none"===this.selectionMode)return this;if(null==o)return this;if(!this.canSelect(t,o))return this;const n=new e([o]);return this.sync(n)}),li(this,"setSelection",t=>{if("none"===this.selectionMode)return this;let o=new e;for(let e of t)if(null!=e&&(o.add(e),"single"===this.selectionMode))break;return this.sync(o)}),li(this,"clearSelection",()=>{const e=this.copy();return e.deselectable&&e.size>0&&e.clear(),e}),li(this,"select",(e,t,o)=>"none"===this.selectionMode?this:"single"===this.selectionMode?this.isSelected(t)&&this.deselectable?this.toggleSelection(e,t):this.replaceSelection(e,t):"multiple"===this.selectionMode||o?this.toggleSelection(e,t):this.replaceSelection(e,t)),li(this,"deselect",e=>{const t=this.copy();return t.delete(e),t}),li(this,"isEqual",e=>fr(Array.from(this),Array.from(e)))}};function mi(e,t,o){for(let n=0;n<t.length;n++)e=o.getChildren(e,t.slice(n+1))[t[n]];return e}function fi(e,t){for(let o=0;o<Math.min(e.length,t.length);o++){if(e[o]<t[o])return-1;if(e[o]>t[o])return 1}return e.length-t.length}function vi(e,t){let o;return _i(e,{onEnter:(e,n)=>{if(t.predicate(e,n))return o=[...n],"stop"},getChildren:t.getChildren}),o}function bi(e){return{type:"remove",indexes:e}}function xi(){return{type:"replace"}}function yi(e){return[e.slice(0,-1),e[e.length-1]]}function wi(e,t,o=new Map){const[n,r]=yi(e);for(let e=n.length-1;e>=0;e--){const t=n.slice(0,e).join();"remove"!==o.get(t)?.type&&o.set(t,xi())}const i=o.get(n.join());return"remove"===i?.type?o.set(n.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:r,insertNodes:t}):o.set(n.join(),function(e,t){return{type:"insert",index:e,nodes:t}}(r,t)),o}function ki(e){const t=new Map,o=new Map;for(const t of e){const e=t.slice(0,-1).join(),n=o.get(e)??[];n.push(t[t.length-1]),o.set(e,n.sort((e,t)=>e-t))}for(const o of e)for(let e=o.length-2;e>=0;e--){const n=o.slice(0,e).join();t.has(n)||t.set(n,xi())}for(const[e,n]of o)t.set(e,bi(n));return t}function Si(e,t,o){return function(e,t){const o={};return _i(e,{...t,onLeave:(e,n)=>{const r=[0,...n],i=r.join(),a=t.transform(e,o[i]??[],n),s=r.slice(0,-1).join(),l=o[s]??[];l.push(a),o[s]=l}}),o[""][0]}(e,{...o,getChildren:(e,n)=>{const r=n.join(),i=t.get(r);switch(i?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return o.getChildren(e,n);default:return[]}},transform:(e,n,r)=>{const i=r.join(),a=t.get(i);switch(a?.type){case"remove":return o.create(e,n.filter((e,t)=>!a.indexes.includes(t)),r);case"removeThenInsert":const t=n.filter((e,t)=>!a.removeIndexes.includes(t)),i=a.removeIndexes.reduce((e,t)=>t<e?e-1:e,a.insertIndex);return o.create(e,Ci(t,i,0,...a.insertNodes),r);case"insert":return o.create(e,Ci(n,a.index,0,...a.nodes),r);case"replace":return o.create(e,n,r);default:return e}}})}function Ci(e,t,o,...n){return[...e.slice(0,t),...n,...e.slice(t+o)]}function _i(e,t){const{onEnter:o,onLeave:n,getChildren:r}=t;let i=[],a=[{node:e}];const s=t.reuseIndexPath?()=>i:()=>i.slice();for(;a.length>0;){let e=a[a.length-1];if(void 0===e.state){const t=o?.(e.node,s());if("stop"===t)return;e.state="skip"===t?-1:0}const t=e.children||r(e.node,s());if(e.children||(e.children=t),-1!==e.state){if(e.state<t.length){let o=e.state;i.push(o),a.push({node:t[o]}),e.state=o+1;continue}const o=n?.(e.node,s());if("stop"===o)return}i.pop(),a.pop()}}var Ii=class e{constructor(t){this.options=t,li(this,"rootNode"),li(this,"isEqual",e=>fr(this.rootNode,e.rootNode)),li(this,"getNodeChildren",e=>this.options.nodeToChildren?.(e)??Ei.nodeToChildren(e)??[]),li(this,"resolveIndexPath",e=>"string"==typeof e?this.getIndexPath(e):e),li(this,"resolveNode",e=>{const t=this.resolveIndexPath(e);return t?this.at(t):void 0}),li(this,"getNodeChildrenCount",e=>this.options.nodeToChildrenCount?.(e)??Ei.nodeToChildrenCount(e)),li(this,"getNodeValue",e=>this.options.nodeToValue?.(e)??Ei.nodeToValue(e)),li(this,"getNodeDisabled",e=>this.options.isNodeDisabled?.(e)??Ei.isNodeDisabled(e)),li(this,"stringify",e=>{const t=this.findNode(e);return t?this.stringifyNode(t):null}),li(this,"stringifyNode",e=>this.options.nodeToString?.(e)??Ei.nodeToString(e)),li(this,"getFirstNode",(e=this.rootNode)=>{let t;return _i(e,{getChildren:this.getNodeChildren,onEnter:(e,o)=>{if(!t&&o.length>0&&!this.getNodeDisabled(e))return t=e,"stop"}}),t}),li(this,"getLastNode",(e=this.rootNode,t={})=>{let o;return _i(e,{getChildren:this.getNodeChildren,onEnter:(n,r)=>{if(!this.isSameNode(n,e))return t.skip?.({value:this.getNodeValue(n),node:n,indexPath:r})?"skip":void(r.length>0&&!this.getNodeDisabled(n)&&(o=n))}}),o}),li(this,"at",e=>mi(this.rootNode,e,{getChildren:this.getNodeChildren})),li(this,"findNode",(e,t=this.rootNode)=>function(e,t){let o;return _i(e,{...t,onEnter:(e,n)=>{if(t.predicate(e,n))return o=e,"stop"}}),o}(t,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),li(this,"findNodes",(e,t=this.rootNode)=>{const o=new Set(e.filter(e=>null!=e));return function(e,t){const o=[];return _i(e,{onEnter:(e,n)=>{t.predicate(e,n)&&o.push(e)},getChildren:t.getChildren}),o}(t,{getChildren:this.getNodeChildren,predicate:e=>o.has(this.getNodeValue(e))})}),li(this,"sort",e=>e.reduce((e,t)=>{const o=this.getIndexPath(t);return o&&e.push({value:t,indexPath:o}),e},[]).sort((e,t)=>fi(e.indexPath,t.indexPath)).map(({value:e})=>e)),li(this,"getIndexPath",e=>vi(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),li(this,"getValue",e=>{const t=this.at(e);return t?this.getNodeValue(t):void 0}),li(this,"getValuePath",e=>{if(!e)return[];const t=[];let o=[...e];for(;o.length>0;){const e=this.at(o);e&&t.unshift(this.getNodeValue(e)),o.pop()}return t}),li(this,"getDepth",e=>{const t=vi(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e});return t?.length??0}),li(this,"isSameNode",(e,t)=>this.getNodeValue(e)===this.getNodeValue(t)),li(this,"isRootNode",e=>this.isSameNode(e,this.rootNode)),li(this,"contains",(e,t)=>!(!e||!t)&&t.slice(0,e.length).every((o,n)=>e[n]===t[n])),li(this,"getNextNode",(e,t={})=>{let o,n=!1;return _i(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(r,i)=>{if(this.isRootNode(r))return;const a=this.getNodeValue(r);return t.skip?.({value:a,node:r,indexPath:i})?(a===e&&(n=!0),"skip"):n&&!this.getNodeDisabled(r)?(o=r,"stop"):void(a===e&&(n=!0))}}),o}),li(this,"getPreviousNode",(e,t={})=>{let o,n=!1;return _i(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(r,i)=>{if(this.isRootNode(r))return;const a=this.getNodeValue(r);return t.skip?.({value:a,node:r,indexPath:i})?"skip":a===e?(n=!0,"stop"):void(this.getNodeDisabled(r)||(o=r))}}),n?o:void 0}),li(this,"getParentNodes",e=>{const t=this.resolveIndexPath(e)?.slice();if(!t)return[];const o=[];for(;t.length>0;){t.pop();const e=this.at(t);e&&!this.isRootNode(e)&&o.unshift(e)}return o}),li(this,"getDescendantNodes",(e,t)=>{const o=this.resolveNode(e);if(!o)return[];const n=[];return _i(o,{getChildren:this.getNodeChildren,onEnter:(e,o)=>{0!==o.length&&(!t?.withBranch&&this.isBranchNode(e)||n.push(e))}}),n}),li(this,"getDescendantValues",(e,t)=>this.getDescendantNodes(e,t).map(e=>this.getNodeValue(e))),li(this,"getParentIndexPath",e=>e.slice(0,-1)),li(this,"getParentNode",e=>{const t=this.resolveIndexPath(e);return t?this.at(this.getParentIndexPath(t)):void 0}),li(this,"visit",e=>{const{skip:t,...o}=e;_i(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(e,n)=>{if(!this.isRootNode(e))return t?.({value:this.getNodeValue(e),node:e,indexPath:n})?"skip":o.onEnter?.(e,n)}})}),li(this,"getPreviousSibling",e=>{const t=this.getParentNode(e);if(!t)return;const o=this.getNodeChildren(t);let n=e[e.length-1];for(;--n>=0;){const e=o[n];if(!this.getNodeDisabled(e))return e}}),li(this,"getNextSibling",e=>{const t=this.getParentNode(e);if(!t)return;const o=this.getNodeChildren(t);let n=e[e.length-1];for(;++n<o.length;){const e=o[n];if(!this.getNodeDisabled(e))return e}}),li(this,"getSiblingNodes",e=>{const t=this.getParentNode(e);return t?this.getNodeChildren(t):[]}),li(this,"getValues",(e=this.rootNode)=>{const t=function(e,t){return function(e,t){let o=t.initialResult;return _i(e,{...t,onEnter:(e,n)=>{o=t.nextResult(o,e,n)}}),o}(e,{...t,initialResult:[],nextResult:(e,o,n)=>(e.push(...t.transform(o,n)),e)})}(e,{getChildren:this.getNodeChildren,transform:e=>[this.getNodeValue(e)]});return t.slice(1)}),li(this,"isValidDepth",(e,t)=>null==t||("function"==typeof t?t(e.length):e.length===t)),li(this,"isBranchNode",e=>this.getNodeChildren(e).length>0||null!=this.getNodeChildrenCount(e)),li(this,"getBranchValues",(e=this.rootNode,t={})=>{let o=[];return _i(e,{getChildren:this.getNodeChildren,onEnter:(e,n)=>{if(0===n.length)return;const r=this.getNodeValue(e);if(t.skip?.({value:r,node:e,indexPath:n}))return"skip";this.isBranchNode(e)&&this.isValidDepth(n,t.depth)&&o.push(this.getNodeValue(e))}}),o}),li(this,"flatten",(e=this.rootNode)=>function(e,t){const o=[];let n=0;const r=new Map,i=new Map;return _i(e,{getChildren:t.getChildren,onEnter:(e,a)=>{r.has(e)||r.set(e,n++);const s=t.getChildren(e,a);s.forEach(t=>{i.has(t)||i.set(t,e),r.has(t)||r.set(t,n++)});const l=s.length>0?s.map(e=>r.get(e)):void 0,c=i.get(e),d=c?r.get(c):void 0,u=r.get(e);o.push({...e,_children:l,_parent:d,_index:u})}}),o}(e,{getChildren:this.getNodeChildren})),li(this,"_create",(e,t)=>this.getNodeChildren(e).length>0||t.length>0?{...e,children:t}:{...e}),li(this,"_insert",(e,t,o)=>this.copy(function(e,t){const{nodes:o,at:n}=t;if(0===n.length)throw new Error("Can't insert nodes at the root");return Si(e,wi(n,o),t)}(e,{at:t,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),li(this,"copy",t=>new e({...this.options,rootNode:t})),li(this,"_replace",(e,t,o)=>this.copy(function(e,t){if(0===t.at.length)return t.node;const o=function(e,t){const o=new Map,[n,r]=yi(e);for(let e=n.length-1;e>=0;e--){const t=n.slice(0,e).join();o.set(t,xi())}return o.set(n.join(),{type:"removeThenInsert",removeIndexes:[r],insertIndex:r,insertNodes:[t]}),o}(t.at,t.node);return Si(e,o,t)}(e,{at:t,node:o,getChildren:this.getNodeChildren,create:this._create}))),li(this,"_move",(e,t,o)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(const e of t.indexPaths)if(0===e.length)throw new Error("Can't move the root node");if(0===t.to.length)throw new Error("Can't move nodes to the root");const o=function(e){const t=function(e){return e.sort(fi)}(e),o=[],n=new Set;for(const e of t){const t=e.join();n.has(t)||(n.add(t),o.push(e))}return o}(t.indexPaths),n=o.map(o=>mi(e,o,t)),r=wi(t.to,n,ki(o));return Si(e,r,t)}(e,{indexPaths:t,to:o,getChildren:this.getNodeChildren,create:this._create}))),li(this,"_remove",(e,t)=>this.copy(function(e,t){if(0===t.indexPaths.length)return e;for(const e of t.indexPaths)if(0===e.length)throw new Error("Can't remove the root node");return Si(e,ki(t.indexPaths),t)}(e,{indexPaths:t,getChildren:this.getNodeChildren,create:this._create}))),li(this,"replace",(e,t)=>this._replace(this.rootNode,e,t)),li(this,"remove",e=>this._remove(this.rootNode,e)),li(this,"insertBefore",(e,t)=>this.getParentNode(e)?this._insert(this.rootNode,e,t):void 0),li(this,"insertAfter",(e,t)=>{if(!this.getParentNode(e))return;const o=[...e.slice(0,-1),e[e.length-1]+1];return this._insert(this.rootNode,o,t)}),li(this,"move",(e,t)=>this._move(this.rootNode,e,t)),li(this,"filter",e=>{const t=function(e,t){const{predicate:o,create:n,getChildren:r}=t,i=(e,t)=>{const a=r(e,t),s=[];a.forEach((e,o)=>{const n=[...t,o],r=i(e,n);r&&s.push(r)});const l=0===t.length,c=o(e,t),d=s.length>0;return l||c||d?n(e,s,t):null};return i(e,[])||n(e,[],[])}(this.rootNode,{predicate:e,getChildren:this.getNodeChildren,create:this._create});return this.copy(t)}),li(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Ei={nodeToValue:e=>"string"==typeof e?e:br(e)&&wr(e,"value")?e.value:"",nodeToString:e=>"string"==typeof e?e:br(e)&&wr(e,"label")?e.label:Ei.nodeToValue(e),isNodeDisabled:e=>!(!br(e)||!wr(e,"disabled")||!e.disabled),nodeToChildren:e=>e.children,nodeToChildrenCount(e){if(br(e)&&wr(e,"childrenCount"))return e.childrenCount}},Pi=Object.defineProperty,Oi=(e,t,o)=>((e,t,o)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o),zi=()=>{},Ti=e=>"object"==typeof e&&null!==e,Ni=2147483647,Ri=e=>e?"":void 0,Vi=e=>Ti(e)&&1===e.nodeType&&"string"==typeof e.nodeName,ji=e=>Ti(e)&&9===e.nodeType,Ai=e=>Vi(e)?e.localName||"":"#document",Di=e=>(e=>Ti(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e;function Fi(e){return!!e&&$i(e.getRootNode())===e}var Mi=/(textarea|select)/;function Wi(e,t){if(!e||!t)return!1;if(!Vi(e)||!Vi(t))return!1;const o=t.getRootNode?.();if(e===t)return!0;if(e.contains(t))return!0;if(o&&Di(o)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Li(e){return ji(e)?e:(e=>Ti(e)&&e===e.window)(e)?e.document:e?.ownerDocument??document}function Bi(e){return Di(e)?Bi(e.host):ji(e)?e.defaultView??window:Vi(e)?e.ownerDocument?.defaultView??window:window}function $i(e){let t=e.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(!e||e===t)break;t=e}return t}function Hi(e){let t;try{if(t=e.getRootNode({composed:!0}),ji(t)||Di(t))return t}catch{}return e.ownerDocument??document}var Ui=new WeakMap;function Gi(e){return Ui.has(e)||Ui.set(e,Bi(e).getComputedStyle(e)),Ui.get(e)}var qi=new Set(["menu","listbox","dialog","grid","tree","region"]),Yi=e=>qi.has(e),Ki=e=>e.getAttribute("aria-controls")?.split(" ")||[];function Xi(e,t){const o=new Set,n=Hi(e),r=e=>{const i=e.querySelectorAll("[aria-controls]");for(const e of i){if("true"!==e.getAttribute("aria-expanded"))continue;const i=Ki(e);for(const e of i){if(!e||o.has(e))continue;o.add(e);const i=n.getElementById(e);if(i){const e=i.getAttribute("role"),o="true"===i.getAttribute("aria-modal");if(e&&Yi(e)&&!o){if(i===t||i.contains(t))return!0;if(r(i))return!0}}}}return!1};return r(e)}function Ji(e,t){const o=Hi(e),n=new Set,r=e=>{const i=e.querySelectorAll("[aria-controls]");for(const e of i){if("true"!==e.getAttribute("aria-expanded"))continue;const i=Ki(e);for(const e of i){if(!e||n.has(e))continue;n.add(e);const i=o.getElementById(e);if(i){const e=i.getAttribute("role"),o="true"===i.getAttribute("aria-modal");e&&qi.has(e)&&!o&&(t(i),r(i))}}}};r(e)}var Zi=()=>"undefined"!=typeof document,Qi=e=>Zi()&&e.test(function(){const e=navigator.userAgentData;return e?.platform??navigator.platform}()),ea=e=>Zi()&&e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}()),ta=()=>Zi()&&!!navigator.maxTouchPoints,oa=()=>Qi(/^iPhone/i)||Qi(/^iPad/i)||na()&&navigator.maxTouchPoints>1,na=()=>Qi(/^Mac/i),ra=()=>{return(na()||oa())&&(e=/apple/i,Zi()&&e.test(navigator.vendor));var e};function ia(e){const t=function(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}(e);return t?.[0]??e.target}var aa=(e,t,o,n)=>{const r="function"==typeof e?e():e;return r?.addEventListener(t,o,n),()=>{r?.removeEventListener(t,o,n)}};function sa(e,t){const{type:o="HTMLInputElement",property:n="value"}=t,r=Bi(e)[o].prototype;return Object.getOwnPropertyDescriptor(r,n)??{}}function la(e,t,o="value"){if(!e)return;const n=function(e){return"input"===e.localName?"HTMLInputElement":"textarea"===e.localName?"HTMLTextAreaElement":"select"===e.localName?"HTMLSelectElement":void 0}(e);if(n){const r=sa(e,{type:n,property:o});r.set?.call(e,t)}e.setAttribute(o,t)}function ca(e,t){const{checked:o,bubbles:n=!0}=t;if(!e)return;const r=Bi(e);e instanceof r.HTMLInputElement&&(function(e,t){if(!e)return;const o=sa(e,{type:"HTMLInputElement",property:"checked"});o.set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}(e,o),e.dispatchEvent(new r.Event("click",{bubbles:n})))}function da(e,t){if(!e)return;const o=function(e){return function(e){return e.matches("textarea, input, select, button")}(e)?e.form:e.closest("form")}(e),n=e=>{e.defaultPrevented||t()};return o?.addEventListener("reset",n,{passive:!0}),()=>o?.removeEventListener("reset",n)}function ua(e,t){const o=e?.closest("fieldset");if(!o)return;t(o.disabled);const n=new(Bi(o).MutationObserver)(()=>t(o.disabled));return n.observe(o,{attributes:!0,attributeFilter:["disabled"]}),()=>n.disconnect()}function pa(e,t){if(!e)return;const{onFieldsetDisabledChange:o,onFormReset:n}=t,r=[da(e,n),ua(e,o)];return()=>r.forEach(e=>e?.())}var ha=e=>Vi(e)&&"IFRAME"===e.tagName,ga=/^(audio|video|details)$/;function ma(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}function fa(e,t){if(!t)return null;if(!0===t)return e.shadowRoot||null;const o=t(e);return(!0===o?e.shadowRoot:o)||null}function va(e,t,o){const n=[...e],r=[...e],i=new Set,a=new Map;e.forEach((e,t)=>a.set(e,t));let s=0;for(;s<r.length;){const e=r[s++];if(!e||i.has(e))continue;i.add(e);const l=fa(e,t);if(l){const t=Array.from(l.querySelectorAll(ba)).filter(o),i=a.get(e);if(void 0!==i){const e=i+1;n.splice(e,0,...t),t.forEach((t,o)=>{a.set(t,e+o)});for(let o=e+t.length;o<n.length;o++)a.set(n[o],o)}else{const e=n.length;n.push(...t),t.forEach((t,o)=>{a.set(t,e+o)})}r.push(...t)}}return n}var ba="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",xa=(e,t={})=>{if(!e)return[];const{includeContainer:o=!1,getShadowRoot:n}=t,r=Array.from(e.querySelectorAll(ba));(1==o||"if-empty"==o&&0===r.length)&&Vi(e)&&ya(e)&&r.unshift(e);const i=[];for(const e of r)if(ya(e)){if(ha(e)&&e.contentDocument){const t=e.contentDocument.body;i.push(...xa(t,{getShadowRoot:n}));continue}i.push(e)}return n?va(i,n,ya):i};function ya(e){return!(!Vi(e)||e.closest("[inert]"))&&e.matches(ba)&&!!Vi(t=e)&&(t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0);var t}function wa(e,t={}){if(!e)return[];const{includeContainer:o,getShadowRoot:n}=t,r=Array.from(e.querySelectorAll(ba));o&&ka(e)&&r.unshift(e);const i=[];for(const e of r)if(ka(e)){if(ha(e)&&e.contentDocument){const t=e.contentDocument.body;i.push(...wa(t,{getShadowRoot:n}));continue}i.push(e)}if(n){const e=va(i,n,ka);return!e.length&&o?r:e}return!i.length&&o?r:i}function ka(e){return!!(Vi(e)&&e.tabIndex>0)||ya(e)&&!(e=>ma(e)<0)(e)}function Sa(e){return e.tabIndex<0&&(ga.test(e.localName)||function(e){if(null==e||!Vi(e))return!1;try{return(e=>Vi(e)&&"input"===e.localName)(e)&&null!=e.selectionStart||Mi.test(e.localName)||e.isContentEditable||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")}catch{return!1}}(e))&&(t=e,Number.isNaN(ma(t)))?0:e.tabIndex;var t}var Ca=class e{constructor(){Oi(this,"id",null),Oi(this,"fn_cleanup"),Oi(this,"cleanup",()=>{this.cancel()})}static create(){return new e}request(e){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=e?.()})}cancel(){null!==this.id&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return null!==this.id}};function _a(e){const t=Ca.create();return t.request(e),t.cleanup}function Ia(e){const t=new Set;function o(e){const o=globalThis.requestAnimationFrame(e);t.add(()=>globalThis.cancelAnimationFrame(o))}return o(()=>o(e)),function(){t.forEach(e=>e())}}function Ea(e,t){const{defer:o}=t,n=o?_a:e=>e(),r=[];return r.push(n(()=>{const o="function"==typeof e?e():e;r.push(function(e,t){if(!e)return;const{attributes:o,callback:n}=t,r=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&o.includes(t.attributeName)&&n(t)});return r.observe(e,{attributes:!0,attributeFilter:o}),()=>r.disconnect()}(o,t))})),()=>{r.forEach(e=>e?.())}}function Pa(e){const t=function(e){if("html"===Ai(e))return e;const t=e.assignedSlot||e.parentNode||Di(e)&&e.host||Li(e).documentElement;return Di(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(Ai(e))}(t)?Li(t).body:Vi(t)&&Ta(t)?t:Pa(t)}var Oa=/auto|scroll|overlay|hidden|clip/,za=new Set(["inline","contents"]);function Ta(e){const t=Bi(e),{overflow:o,overflowX:n,overflowY:r,display:i}=t.getComputedStyle(e);return Oa.test(o+r+n)&&!za.has(i)}function Na(e,t){const{rootEl:o,...n}=t||{};e&&o&&Ta(o)&&function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(o)&&e.scrollIntoView(n)}function Ra(e,t){return Array.from(e?.querySelectorAll(t)??[])}var Va=e=>e.id;function ja(e,t,o=Va){const n=function(e,t,o=Va){return e.find(e=>o(e)===t)}(e,t,o);return n?e.indexOf(n):-1}function Aa(e){const t=new WeakMap;let o;const n=new WeakMap,r=e=>o||(o=new e.ResizeObserver(e=>{for(const o of e){n.set(o.target,o);const e=t.get(o.target);if(e)for(const t of e)t(o)}}),o);return{observe:(o,n)=>{let i=t.get(o)||new Set;i.add(n),t.set(o,i);const a=Bi(o);return r(a).observe(o,e),()=>{const e=t.get(o);e&&(e.delete(n),0===e.size&&(t.delete(o),r(a).unobserve(o)))}},unobserve:e=>{t.delete(e),o?.unobserve(e)}}}var Da=Aa({box:"border-box"});function Fa(e,t){if(!e)return zi;const o=Object.keys(t).reduce((t,o)=>(t[o]=e.style.getPropertyValue(o),t),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,o),0===e.style.length&&e.removeAttribute("style")}}function Ma(e,t){const{state:o,activeId:n,key:r,timeout:i=350,itemToId:a}=t,s=o.keysSoFar+r,l=s.length>1&&Array.from(s).every(e=>e===s[0])?s[0]:s,c=function(e,t,o,n=Va){const r=o?ja(e,o,n):-1;let i=o?((e,t)=>e.map((o,n)=>e[(Math.max(t,0)+n)%e.length]))(e,r):e;return 1===t.length&&(i=i.filter(e=>n(e)!==o)),i.find(e=>{return r=e,o=(r.dataset?.valuetext??r.textContent??"").split("").map(e=>{const t=e.charCodeAt(0);return t>0&&t<128?e:t>=128&&t<=255?`/x${t.toString(16)}`.replace("/","\\"):""}).join("").trim(),n=t,o.trim().toLowerCase().startsWith(n.toLowerCase());var o,n,r})}(e.slice(),l,n,a);function d(){clearTimeout(o.timer),o.timer=-1}return function e(t){o.keysSoFar=t,d(),""!==t&&(o.timer=+setTimeout(()=>{e(""),d()},i))}(s),c}var Wa=Object.assign(Ma,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}}),La={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};const Ba=["top","right","bottom","left"],$a=Math.min,Ha=Math.max,Ua=Math.round,Ga=Math.floor,qa=e=>({x:e,y:e}),Ya={left:"right",right:"left",bottom:"top",top:"bottom"},Ka={start:"end",end:"start"};function Xa(e,t,o){return Ha(e,$a(t,o))}function Ja(e,t){return"function"==typeof e?e(t):e}function Za(e){return e.split("-")[0]}function Qa(e){return e.split("-")[1]}function es(e){return"x"===e?"y":"x"}function ts(e){return"y"===e?"height":"width"}const os=new Set(["top","bottom"]);function ns(e){return os.has(Za(e))?"y":"x"}function rs(e){return es(ns(e))}function is(e){return e.replace(/start|end/g,e=>Ka[e])}const as=["left","right"],ss=["right","left"],ls=["top","bottom"],cs=["bottom","top"];function ds(e){return e.replace(/left|right|bottom|top/g,e=>Ya[e])}function us(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ps(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function hs(e,t,o){let{reference:n,floating:r}=e;const i=ns(t),a=rs(t),s=ts(a),l=Za(t),c="y"===i,d=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2,p=n[s]/2-r[s]/2;let h;switch(l){case"top":h={x:d,y:n.y-r.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:u};break;case"left":h={x:n.x-r.width,y:u};break;default:h={x:n.x,y:n.y}}switch(Qa(t)){case"start":h[a]-=p*(o&&c?-1:1);break;case"end":h[a]+=p*(o&&c?-1:1)}return h}async function gs(e,t){var o;void 0===t&&(t={});const{x:n,y:r,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=Ja(t,e),g=us(h),m=s[p?"floating"===u?"reference":"floating":u],f=ps(await i.getClippingRect({element:null==(o=await(null==i.isElement?void 0:i.isElement(m)))||o?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),v="floating"===u?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),x=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},y=ps(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(f.top-y.top+g.top)/x.y,bottom:(y.bottom-f.bottom+g.bottom)/x.y,left:(f.left-y.left+g.left)/x.x,right:(y.right-f.right+g.right)/x.x}}function ms(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fs(e){return Ba.some(t=>e[t]>=0)}const vs=new Set(["left","top"]);function bs(){return"undefined"!=typeof window}function xs(e){return ks(e)?(e.nodeName||"").toLowerCase():"#document"}function ys(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ws(e){var t;return null==(t=(ks(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ks(e){return!!bs()&&(e instanceof Node||e instanceof ys(e).Node)}function Ss(e){return!!bs()&&(e instanceof Element||e instanceof ys(e).Element)}function Cs(e){return!!bs()&&(e instanceof HTMLElement||e instanceof ys(e).HTMLElement)}function _s(e){return!(!bs()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ys(e).ShadowRoot)}const Is=new Set(["inline","contents"]);function Es(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=Ms(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!Is.has(r)}const Ps=new Set(["table","td","th"]);function Os(e){return Ps.has(xs(e))}const zs=[":popover-open",":modal"];function Ts(e){return zs.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Ns=["transform","translate","scale","rotate","perspective"],Rs=["transform","translate","scale","rotate","perspective","filter"],Vs=["paint","layout","strict","content"];function js(e){const t=As(),o=Ss(e)?Ms(e):e;return Ns.some(e=>!!o[e]&&"none"!==o[e])||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||Rs.some(e=>(o.willChange||"").includes(e))||Vs.some(e=>(o.contain||"").includes(e))}function As(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ds=new Set(["html","body","#document"]);function Fs(e){return Ds.has(xs(e))}function Ms(e){return ys(e).getComputedStyle(e)}function Ws(e){return Ss(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ls(e){if("html"===xs(e))return e;const t=e.assignedSlot||e.parentNode||_s(e)&&e.host||ws(e);return _s(t)?t.host:t}function Bs(e){const t=Ls(e);return Fs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cs(t)&&Es(t)?t:Bs(t)}function $s(e,t,o){var n;void 0===t&&(t=[]),void 0===o&&(o=!0);const r=Bs(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=ys(r);if(i){const e=Hs(a);return t.concat(a,a.visualViewport||[],Es(r)?r:[],e&&o?$s(e):[])}return t.concat(r,$s(r,[],o))}function Hs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Us(e){const t=Ms(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Cs(e),i=r?e.offsetWidth:o,a=r?e.offsetHeight:n,s=Ua(o)!==i||Ua(n)!==a;return s&&(o=i,n=a),{width:o,height:n,$:s}}function Gs(e){return Ss(e)?e:e.contextElement}function qs(e){const t=Gs(e);if(!Cs(t))return qa(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:i}=Us(t);let a=(i?Ua(o.width):o.width)/n,s=(i?Ua(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ys=qa(0);function Ks(e){const t=ys(e);return As()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ys}function Xs(e,t,o,n){void 0===t&&(t=!1),void 0===o&&(o=!1);const r=e.getBoundingClientRect(),i=Gs(e);let a=qa(1);t&&(n?Ss(n)&&(a=qs(n)):a=qs(e));const s=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==ys(e))&&t}(i,o,n)?Ks(i):qa(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,u=r.height/a.y;if(i){const e=ys(i),t=n&&Ss(n)?ys(n):n;let o=e,r=Hs(o);for(;r&&n&&t!==o;){const e=qs(r),t=r.getBoundingClientRect(),n=Ms(r),i=t.left+(r.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=a,o=ys(r),r=Hs(o)}}return ps({width:d,height:u,x:l,y:c})}function Js(e,t){const o=Ws(e).scrollLeft;return t?t.left+o:Xs(ws(e)).left+o}function Zs(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-Js(e,o),y:o.top+t.scrollTop}}const Qs=new Set(["absolute","fixed"]);function el(e,t,o){let n;if("viewport"===t)n=function(e,t){const o=ys(e),n=ws(e),r=o.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;const e=As();(!e||e&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}const c=Js(n);if(c<=0){const e=n.ownerDocument,t=e.body,o=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,a=Math.abs(n.clientWidth-t.clientWidth-r);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:s,y:l}}(e,o);else if("document"===t)n=function(e){const t=ws(e),o=Ws(e),n=e.ownerDocument.body,r=Ha(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Ha(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-o.scrollLeft+Js(e);const s=-o.scrollTop;return"rtl"===Ms(n).direction&&(a+=Ha(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:s}}(ws(e));else if(Ss(t))n=function(e,t){const o=Xs(e,!0,"fixed"===t),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=Cs(e)?qs(e):qa(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:n*i.y}}(t,o);else{const o=Ks(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ps(n)}function tl(e,t){const o=Ls(e);return!(o===t||!Ss(o)||Fs(o))&&("fixed"===Ms(o).position||tl(o,t))}function ol(e,t,o){const n=Cs(t),r=ws(t),i="fixed"===o,a=Xs(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=qa(0);function c(){l.x=Js(r)}if(n||!n&&!i)if(("body"!==xs(t)||Es(r))&&(s=Ws(t)),n){const e=Xs(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&c();i&&!n&&r&&c();const d=!r||n||i?qa(0):Zs(r,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}function nl(e){return"static"===Ms(e).position}function rl(e,t){if(!Cs(e)||"fixed"===Ms(e).position)return null;if(t)return t(e);let o=e.offsetParent;return ws(e)===o&&(o=o.ownerDocument.body),o}function il(e,t){const o=ys(e);if(Ts(e))return o;if(!Cs(e)){let t=Ls(e);for(;t&&!Fs(t);){if(Ss(t)&&!nl(t))return t;t=Ls(t)}return o}let n=rl(e,t);for(;n&&Os(n)&&nl(n);)n=rl(n,t);return n&&Fs(n)&&nl(n)&&!js(n)?o:n||function(e){let t=Ls(e);for(;Cs(t)&&!Fs(t);){if(js(t))return t;if(Ts(t))return null;t=Ls(t)}return null}(e)||o}const al={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const i="fixed"===r,a=ws(n),s=!!t&&Ts(t.floating);if(n===a||s&&i)return o;let l={scrollLeft:0,scrollTop:0},c=qa(1);const d=qa(0),u=Cs(n);if((u||!u&&!i)&&(("body"!==xs(n)||Es(a))&&(l=Ws(n)),Cs(n))){const e=Xs(n);c=qs(n),d.x=e.x+n.clientLeft,d.y=e.y+n.clientTop}const p=!a||u||i?qa(0):Zs(a,l);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:o.y*c.y-l.scrollTop*c.y+d.y+p.y}},getDocumentElement:ws,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const i="clippingAncestors"===o?Ts(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let n=$s(e,[],!1).filter(e=>Ss(e)&&"body"!==xs(e)),r=null;const i="fixed"===Ms(e).position;let a=i?Ls(e):e;for(;Ss(a)&&!Fs(a);){const t=Ms(a),o=js(a);o||"fixed"!==t.position||(r=null),(i?!o&&!r:!o&&"static"===t.position&&r&&Qs.has(r.position)||Es(a)&&!o&&tl(e,a))?n=n.filter(e=>e!==a):r=t,a=Ls(a)}return t.set(e,n),n}(t,this._c):[].concat(o),a=[...i,n],s=a[0],l=a.reduce((e,o)=>{const n=el(t,o,r);return e.top=Ha(n.top,e.top),e.right=$a(n.right,e.right),e.bottom=$a(n.bottom,e.bottom),e.left=Ha(n.left,e.left),e},el(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:il,getElementRects:async function(e){const t=this.getOffsetParent||il,o=this.getDimensions,n=await o(e.floating);return{reference:ol(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=Us(e);return{width:t,height:o}},getScale:qs,isElement:Ss,isRTL:function(e){return"rtl"===Ms(e).direction}};function sl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const ll=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...f}=Ja(e,t);if(null!=(o=i.arrow)&&o.alignmentOffset)return{};const v=Za(r),b=ns(s),x=Za(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(x||!m?[ds(s)]:function(e){const t=ds(e);return[is(e),t,is(t)]}(s)),k="none"!==g;!p&&k&&w.push(...function(e,t,o,n){const r=Qa(e);let i=function(e,t,o){switch(e){case"top":case"bottom":return o?t?ss:as:t?as:ss;case"left":case"right":return t?ls:cs;default:return[]}}(Za(e),"start"===o,n);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(is)))),i}(s,m,g,y));const S=[s,...w],C=await gs(t,f),_=[];let I=(null==(n=i.flip)?void 0:n.overflows)||[];if(d&&_.push(C[v]),u){const e=function(e,t,o){void 0===o&&(o=!1);const n=Qa(e),r=rs(e),i=ts(r);let a="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ds(a)),[a,ds(a)]}(r,a,y);_.push(C[e[0]],C[e[1]])}if(I=[...I,{placement:r,overflows:_}],!_.every(e=>e<=0)){var E,P;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=S[e];if(t&&("alignment"!==u||b===ns(t)||I.every(e=>ns(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let o=null==(P=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!o)switch(h){case"bestFit":{var O;const e=null==(O=I.filter(e=>{if(k){const t=ns(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:O[0];e&&(o=e);break}case"initialPlacement":o=s}if(r!==o)return{reset:{placement:o}}}return{}}}};function cl(e=0,t=0,o=0,n=0){if("function"==typeof DOMRect)return new DOMRect(e,t,o,n);const r={x:e,y:t,width:o,height:n,top:t,right:e+o,bottom:t+n,left:e};return{...r,toJSON:()=>r}}var dl=e=>({variable:e,reference:`var(${e})`}),ul={arrowSize:dl("--arrow-size"),arrowSizeHalf:dl("--arrow-size-half"),arrowBg:dl("--arrow-background"),transformOrigin:dl("--transform-origin"),arrowOffset:dl("--arrow-offset")};function pl(e,t){return{name:"transformOrigin",fn(o){const{elements:n,middlewareData:r,placement:i,rects:a,y:s}=o,l=i.split("-")[0],c=(e=>"top"===e||"bottom"===e?"y":"x")(l),d=r.arrow?.x||0,u=r.arrow?.y||0,p=t?.clientWidth||0,h=t?.clientHeight||0,g=d+p/2,m=u+h/2,f=Math.abs(r.shift?.y||0),v=a.reference.height/2,b=h/2,x=e.offset?.mainAxis??e.gutter,y="number"==typeof x?x+b:x??b,w=f>y,k={top:`${g}px calc(100% + ${y}px)`,bottom:`${g}px ${-y}px`,left:`calc(100% + ${y}px) ${m}px`,right:`${-y}px ${m}px`}[l],S=`${g}px ${a.reference.y+v-s}px`,C=Boolean(e.overlap)&&"y"===c&&w;return n.floating.style.setProperty(ul.transformOrigin.variable,C?S:k),{data:{transformOrigin:C?S:k}}}}}var hl={name:"rects",fn:({rects:e})=>({data:e})},gl=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:o}){if(!o.arrow)return{};const{x:n,y:r}=o.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:null!=n?`${n}px`:"",top:null!=r?`${r}px`:"",[i]:`calc(100% + ${ul.arrowOffset.reference})`}),{}}}},ml={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function fl(e,t){const o=e.devicePixelRatio||1;return Math.round(t*o)/o}function vl(e){return"function"==typeof e?e():"clipping-ancestors"===e?"clippingAncestors":e}function bl(e,t,o){const n=e||t.createElement("div");return{name:"arrow",options:r={element:n,padding:o.arrowPadding},async fn(e){const{x:t,y:o,placement:n,rects:i,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:d=0}=Ja(r,e)||{};if(null==c)return{};const u=us(d),p={x:t,y:o},h=rs(n),g=ts(h),m=await a.getDimensions(c),f="y"===h,v=f?"top":"left",b=f?"bottom":"right",x=f?"clientHeight":"clientWidth",y=i.reference[g]+i.reference[h]-p[h]-i.floating[g],w=p[h]-i.reference[h],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=k?k[x]:0;S&&await(null==a.isElement?void 0:a.isElement(k))||(S=s.floating[x]||i.floating[g]);const C=y/2-w/2,_=S/2-m[g]/2-1,I=$a(u[v],_),E=$a(u[b],_),P=I,O=S-m[g]-E,z=S/2-m[g]/2+C,T=Xa(P,z,O),N=!l.arrow&&null!=Qa(n)&&z!==T&&i.reference[g]/2-(z<P?I:E)-m[g]/2<0,R=N?z<P?z-P:z-O:0;return{[h]:p[h]+R,data:{[h]:T,centerOffset:z-T-R,...N&&{alignmentOffset:R}},reset:N}}};var r}function xl(e,t){if(null!=(t.offset??t.gutter))return void 0===(o=({placement:o})=>{const n=(e?.clientHeight||0)/2,r=t.offset?.mainAxis??t.gutter,i="number"==typeof r?r+n:r??n,{hasAlign:a}=function(e){const[t,o]=e.split("-");return{side:t,align:o,hasAlign:null!=o}}(o),s=a?void 0:t.shift;return Qr({crossAxis:t.offset?.crossAxis??s,mainAxis:i,alignmentAxis:t.shift})})&&(o=0),{name:"offset",options:o,async fn(e){var t,n;const{x:r,y:i,placement:a,middlewareData:s}=e,l=await async function(e,t){const{placement:o,platform:n,elements:r}=e,i=await(null==n.isRTL?void 0:n.isRTL(r.floating)),a=Za(o),s=Qa(o),l="y"===ns(o),c=vs.has(a)?-1:1,d=i&&l?-1:1,u=Ja(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:g}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof g&&(h="end"===s?-1*g:g),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(e,o);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}};var o}function yl(e){if(!e.flip)return;const t=vl(e.boundary);return ll({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip})}function wl(e){if(!e.slide&&!e.overlap)return;const t=vl(e.boundary);return function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=Ja(e,t),c={x:o,y:n},d=await gs(t,l),u=ns(Za(r)),p=es(u);let h=c[p],g=c[u];if(i){const e="y"===p?"bottom":"right";h=Xa(h+d["y"===p?"top":"left"],h,h-d[e])}if(a){const e="y"===u?"bottom":"right";g=Xa(g+d["y"===u?"top":"left"],g,g-d[e])}const m=s.fn({...t,[p]:h,[u]:g});return{...m,data:{x:m.x-o,y:m.y-n,enabled:{[p]:i,[u]:a}}}}}}({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:(void 0===o&&(o={}),{options:o,fn(e){const{x:t,y:n,placement:r,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ja(o,e),d={x:t,y:n},u=ns(r),p=es(u);let h=d[p],g=d[u];const m=Ja(s,e),f="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+f.mainAxis,o=i.reference[p]+i.reference[e]-f.mainAxis;h<t?h=t:h>o&&(h=o)}if(c){var v,b;const e="y"===p?"width":"height",t=vs.has(Za(r)),o=i.reference[u]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[u])||0)+(t?0:f.crossAxis),n=i.reference[u]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[u])||0)-(t?f.crossAxis:0);g<o?g=o:g>n&&(g=n)}return{[p]:h,[u]:g}}})});var o}function kl(e){return void 0===(t={padding:e.overflowPadding,apply({elements:e,rects:t,availableHeight:o,availableWidth:n}){const r=e.floating,i=Math.round(t.reference.width),a=Math.round(t.reference.height);n=Math.floor(n),o=Math.floor(o),r.style.setProperty("--reference-width",`${i}px`),r.style.setProperty("--reference-height",`${a}px`),r.style.setProperty("--available-width",`${n}px`),r.style.setProperty("--available-height",`${o}px`)}})&&(t={}),{name:"size",options:t,async fn(e){var o,n;const{placement:r,rects:i,platform:a,elements:s}=e,{apply:l=()=>{},...c}=Ja(t,e),d=await gs(e,c),u=Za(r),p=Qa(r),h="y"===ns(r),{width:g,height:m}=i.floating;let f,v;"top"===u||"bottom"===u?(f=u,v=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=u,f="end"===p?"top":"bottom");const b=m-d.top-d.bottom,x=g-d.left-d.right,y=$a(m-d[f],b),w=$a(g-d[v],x),k=!e.middlewareData.shift;let S=y,C=w;if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(C=x),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(S=b),k&&!p){const e=Ha(d.left,0),t=Ha(d.right,0),o=Ha(d.top,0),n=Ha(d.bottom,0);h?C=g-2*(0!==e||0!==t?e+t:Ha(d.left,d.right)):S=m-2*(0!==o||0!==n?o+n:Ha(d.top,d.bottom))}await l({...e,availableWidth:C,availableHeight:S});const _=await a.getDimensions(s.floating);return g!==_.width||m!==_.height?{reset:{rects:!0}}:{}}};var t}function Sl(e){if(e.hideWhenDetached)return void 0===(t={strategy:"referenceHidden",boundary:vl(e.boundary)??"clippingAncestors"})&&(t={}),{name:"hide",options:t,async fn(e){const{rects:o}=e,{strategy:n="referenceHidden",...r}=Ja(t,e);switch(n){case"referenceHidden":{const t=ms(await gs(e,{...r,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:fs(t)}}}case"escaped":{const t=ms(await gs(e,{...r,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:fs(t)}}}default:return{}}}};var t}function Cl(e,t,o={}){const{defer:n,...r}=o,i=n?_a:e=>e(),a=[];return a.push(i(()=>{const o="function"==typeof e?e():e,n="function"==typeof t?t():t;a.push(function(e,t,o={}){const n=(r=o.getAnchorElement?.()??e,i=o.getAnchorRect,{contextElement:Vi(r)?r:r?.contextElement,getBoundingClientRect:()=>{const e=r,t=i?.(e);return t||!e?function(e){if(!e)return cl();const{x:t,y:o,width:n,height:r}=e;return cl(t,o,n,r)}(t):e.getBoundingClientRect()}});var r,i;if(!t||!n)return;const a=Object.assign({},ml,o),s=t.querySelector("[data-part=arrow]"),l=[xl(s,a),yl(a),wl(a),bl(s,t.ownerDocument,a),gl(s),pl({gutter:a.gutter,offset:a.offset,overlap:a.overlap},s),kl(a),Sl(a),hl],{placement:c,strategy:d,onComplete:u,onPositioned:p}=a,h=async()=>{if(!n||!t)return;const e=await((e,t,o)=>{const n=new Map,r={platform:al,...o},i={...r.platform,_c:n};return(async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:a}=o,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=hs(c,n,l),p=n,h={},g=0;for(let o=0;o<s.length;o++){const{name:i,fn:m}=s[o],{x:f,y:v,data:b,reset:x}=await m({x:d,y:u,initialPlacement:n,placement:p,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=f?f:d,u=null!=v?v:u,h={...h,[i]:{...h[i],...b}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:r}):x.rects),({x:d,y:u}=hs(c,p,l))),o=-1)}return{x:d,y:u,placement:p,strategy:r,middlewareData:h}})(e,t,{...r,platform:i})})(n,t,{placement:c,middleware:l,strategy:d});u?.(e),p?.({placed:!0});const o=Bi(t),r=fl(o,e.x),i=fl(o,e.y);if(t.style.setProperty("--x",`${r}px`),t.style.setProperty("--y",`${i}px`),a.hideWhenDetached){const o=e.middlewareData.hide?.referenceHidden;o?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events"))}const s=t.firstElementChild;if(s){const e=Gi(s);t.style.setProperty("--z-index",e.zIndex)}},g=async()=>{o.updatePosition?(await o.updatePosition({updatePosition:h,floatingElement:t}),p?.({placed:!0})):await h()},m=function(e){return e?!0===e?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}(a.listeners),f=a.listeners?function(e,t,o,n){void 0===n&&(n={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=Gs(e),d=r||i?[...c?$s(c):[],...$s(t)]:[];d.forEach(e=>{r&&e.addEventListener("scroll",o,{passive:!0}),i&&e.addEventListener("resize",o)});const u=c&&s?function(e,t){let o,n=null;const r=ws(e);function i(){var e;clearTimeout(o),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(s||t(),!p||!h)return;const g={rootMargin:-Ga(u)+"px "+-Ga(r.clientWidth-(d+p))+"px "+-Ga(r.clientHeight-(u+h))+"px "+-Ga(d)+"px",threshold:Ha(0,$a(1,l))||1};let m=!0;function f(t){const n=t[0].intersectionRatio;if(n!==l){if(!m)return a();n?a(!1,n):o=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||sl(c,e.getBoundingClientRect())||a(),m=!1}try{n=new IntersectionObserver(f,{...g,root:r.ownerDocument})}catch(e){n=new IntersectionObserver(f,g)}n.observe(e)}(!0),i}(c,o):null;let p,h=-1,g=null;a&&(g=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),o()}),c&&!l&&g.observe(c),g.observe(t));let m=l?Xs(e):null;return l&&function t(){const n=Xs(e);m&&!sl(m,n)&&o(),m=n,p=requestAnimationFrame(t)}(),o(),()=>{var e;d.forEach(e=>{r&&e.removeEventListener("scroll",o),i&&e.removeEventListener("resize",o)}),null==u||u(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(p)}}(n,t,g,m):Er;return g(),()=>{f?.(),p?.({placed:!1})}}(o,n,r))})),()=>{a.forEach(e=>e?.())}}var _l={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"},Il=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),El=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Pl=e=>{const t={};let o;for(;o=El.exec(e);)t[o[1]]=o[2];return t},Ol=(e,t)=>{if(xr(e)){if(xr(t))return`${e};${t}`;e=Pl(e)}else xr(t)&&(t=Pl(t));return Object.assign({},e??{},t??{})};function zl(...e){let t={};for(let o of e){if(!o)continue;for(let e in t)e.startsWith("on")&&"function"==typeof t[e]&&"function"==typeof o[e]?t[e]=Pr(o[e],t[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==o[e]?o[e]:t[e]:Ol(t[e],o[e]):Il(t[e],o[e]);for(let e in o)void 0===t[e]&&(t[e]=o[e]);const e=Object.getOwnPropertySymbols(o);for(let n of e)t[n]=o[n]}return t}function Tl(e,t,o){let n,r=[];return i=>{const a=e(i);return a.length!==r.length||a.some((e,t)=>!fr(r[t],e))?(r=a,n=t(a,i),o?.onChange?.(n),n):n}}var Nl=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Nl||{}),Rl="__init__",Vl="pointerdown.outside",jl="focus.outside";function Al(e){for(const t of e)if(Vi(t)&&ya(t))return!0;return!1}var Dl=e=>"clientY"in e;function Fl(e,t){if(!t||!Dl(e))return!1;const o=t.scrollHeight>t.clientHeight,n=o&&e.clientX>t.offsetLeft+t.clientWidth,r=t.scrollWidth>t.clientWidth,i=r&&e.clientY>t.offsetTop+t.clientHeight;return a={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(o?16:0),height:t.clientHeight+(r?16:0)},s={x:e.clientX,y:e.clientY},!!(a.y<=s.y&&s.y<=a.y+a.height&&a.x<=s.x&&s.x<=a.x+a.width)&&(n||i);var a,s}function Ml(e,t){const{defer:o}=t,n=o?_a:e=>e(),r=[];return r.push(n(()=>{const o="function"==typeof e?e():e;r.push(function(e,t){const{exclude:o,onFocusOutside:n,onPointerDownOutside:r,onInteractOutside:i,defer:a,followControlledElements:s=!0}=t;if(!e)return;const l=Li(e),c=Bi(e),d=function(e){const t={each(t){for(let o=0;o<e.frames?.length;o+=1){const n=e.frames[o];n&&t(n)}},addEventListener:(e,o,n)=>(t.each(t=>{try{t.document.addEventListener(e,o,n)}catch{}}),()=>{try{t.removeEventListener(e,o,n)}catch{}}),removeEventListener(e,o,n){t.each(t=>{try{t.document.removeEventListener(e,o,n)}catch{}})}};return t}(c),u=function(e){const t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,o,n)=>{try{t?.addEventListener(e,o,n)}catch{}return()=>{try{t?.removeEventListener(e,o,n)}catch{}}},removeEventListener:(e,o,n)=>{try{t?.removeEventListener(e,o,n)}catch{}}}}(c);function p(t,n){if(!Vi(n))return!1;if(!n.isConnected)return!1;if(Wi(e,n))return!1;if(function(e,t){if(!Dl(t)||!e)return!1;const o=e.getBoundingClientRect();return 0!==o.width&&0!==o.height&&o.top<=t.clientY&&t.clientY<=o.top+o.height&&o.left<=t.clientX&&t.clientX<=o.left+o.width}(e,t))return!1;if(s&&Xi(e,n))return!1;const r=l.querySelector(`[aria-controls="${e.id}"]`);return!(r&&Fl(t,Pa(r))||Fl(t,Pa(e))||o?.(n))}const h=new Set,g=Di(e?.getRootNode());function m(t){function o(o){const n=a&&!ta()?_a:e=>e(),s=o??t,l=s?.composedPath?.()??[s?.target];n(()=>{const o=g?l[0]:ia(t);if(e&&p(t,o)){if(r||i){const t=Pr(r,i);e.addEventListener(Vl,t,{once:!0})}var n;Wl(e,Vl,{bubbles:!1,cancelable:!0,detail:{originalEvent:s,contextmenu:(n=s,2===n.button||na()&&n.ctrlKey&&0===n.button),focusable:Al(l),target:o}})}})}"touch"===t.pointerType?(h.forEach(e=>e()),h.add(aa(l,"click",o,{once:!0})),h.add(u.addEventListener("click",o,{once:!0})),h.add(d.addEventListener("click",o,{once:!0}))):o()}const f=new Set,v=setTimeout(()=>{f.add(aa(l,"pointerdown",m,!0)),f.add(u.addEventListener("pointerdown",m,!0)),f.add(d.addEventListener("pointerdown",m,!0))},0);function b(t){(a?_a:e=>e())(()=>{const o=t?.composedPath?.()??[t?.target],r=g?o[0]:ia(t);if(e&&p(t,r)){if(n||i){const t=Pr(n,i);e.addEventListener(jl,t,{once:!0})}Wl(e,jl,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:ya(r),target:r}})}})}return ta()||(f.add(aa(l,"focusin",b,!0)),f.add(u.addEventListener("focusin",b,!0)),f.add(d.addEventListener("focusin",b,!0))),()=>{clearTimeout(v),h.forEach(e=>e()),f.forEach(e=>e())}}(o,t))})),()=>{r.forEach(e=>e?.())}}function Wl(e,t,o){const n=new(e.ownerDocument.defaultView||window).CustomEvent(t,o);return e.dispatchEvent(n)}function Ll(e,t){return aa(Li(e),"keydown",e=>{"Escape"===e.key&&(e.isComposing||t?.(e))},{capture:!0})}var Bl,$l="layer:request-dismiss",Hl={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){return this.indexOf(e)<(this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1)},isTopMost(e){const t=this.layers[this.count()-1];return t?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){const o=this.indexOf(e);return-1===o?[]:this.layers.slice(o+1).filter(e=>e.type===t)},getParentLayerOfType(e,t){const o=this.indexOf(e);if(!(o<=0))return this.layers.slice(0,o).reverse().find(e=>e.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(e=>Wi(e.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Wi(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(t=>Hl.dismiss(t.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const o=this.countNestedLayersOfType(e.node,e.type);o>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${o}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const o=this.indexOf(e);if(-1===o)return;const n=this.layers[o];var r,i;r=$l,i=e=>{n.requestDismiss?.(e),e.defaultPrevented||n?.dismiss()},e.addEventListener(r,i,{once:!0}),function(e,t,o){const n=new(e.ownerDocument.defaultView||window).CustomEvent(t,{cancelable:!0,bubbles:!0,detail:o});e.dispatchEvent(n)}(e,$l,{originalLayer:e,targetLayer:t,originalIndex:o,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function Ul(){Hl.layers.forEach(({node:e})=>{e.style.pointerEvents=Hl.isBelowPointerBlockingLayer(e)?"none":"auto"})}function Gl(e,t){const o=Li(e),n=[];return Hl.hasPointerBlockingLayer()&&!o.body.hasAttribute("data-inert")&&(Bl=document.body.style.pointerEvents,queueMicrotask(()=>{o.body.style.pointerEvents="none",o.body.setAttribute("data-inert","")})),t?.forEach(e=>{const[t,o]=function(e,t){const{timeout:o,rootNode:n}=t,r=Bi(n),i=Li(n),a=new r.AbortController;return function(e,t,o){const{signal:n}=t;return[new Promise((t,r)=>{const i=setTimeout(()=>{r(new Error(`Timeout of ${o}ms exceeded`))},o);n.addEventListener("abort",()=>{clearTimeout(i),r(new Error("Promise aborted"))}),e.then(e=>{n.aborted||(clearTimeout(i),t(e))}).catch(e=>{n.aborted||(clearTimeout(i),r(e))})}),()=>t.abort()]}(new Promise(t=>{const o=e();if(o)return void t(o);const n=new r.MutationObserver(()=>{const o=e();o&&o.isConnected&&(n.disconnect(),t(o))});n.observe(i.body,{childList:!0,subtree:!0})}),a,o)}(()=>{const t=e();return Vi(t)?t:null},{timeout:1e3});t.then(e=>n.push(Fa(e,{pointerEvents:"auto"}))),n.push(o)}),()=>{Hl.hasPointerBlockingLayer()||(queueMicrotask(()=>{o.body.style.pointerEvents=Bl,o.body.removeAttribute("data-inert"),0===o.body.style.length&&o.body.removeAttribute("style")}),n.forEach(e=>e()))}}function ql(e,t){const{defer:o}=t,n=o?_a:e=>e(),r=[];return r.push(n(()=>{const o=yr(e)?e():e;r.push(function(e,t){const{warnOnMissingNode:o=!0}=t;if(o&&!e)return void ii("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;const{onDismiss:n,onRequestDismiss:r,pointerBlocking:i,exclude:a,debug:s,type:l="dialog"}=t,c={dismiss:n,node:e,type:l,pointerBlocking:i,requestDismiss:r};Hl.add(c),Ul();const d=[i?Gl(e,t.persistentElements):void 0,Ll(e,function(o){Hl.isTopMost(e)&&(t.onEscapeKeyDown?.(o),!o.defaultPrevented&&n&&(o.preventDefault(),n()))}),Ml(e,{exclude:function(o){if(!e)return!1;const n="function"==typeof a?a():a,r=Array.isArray(n)?n:[n],i=t.persistentElements?.map(e=>e()).filter(Vi);return i&&r.push(...i),r.some(e=>Wi(e,o))||Hl.isInNestedLayer(e,o)},onFocusOutside:function(e){const o=ia(e.detail.originalEvent);Hl.isInBranch(o)||(t.onFocusOutside?.(e),t.onInteractOutside?.(e),e.defaultPrevented||(s&&console.log("onFocusOutside:",e.detail.originalEvent),n?.()))},onPointerDownOutside:function(o){const r=ia(o.detail.originalEvent);Hl.isBelowPointerBlockingLayer(e)||Hl.isInBranch(r)||(t.onPointerDownOutside?.(o),t.onInteractOutside?.(o),o.defaultPrevented||(s&&console.log("onPointerDownOutside:",o.detail.originalEvent),n?.()))},defer:t.defer})];return()=>{Hl.remove(e),Ul(),function(e){e.style.pointerEvents=""}(e),d.forEach(e=>e?.())}}(o,t))})),()=>{r.forEach(e=>e?.())}}var Yl=()=>e=>Array.from(new Set(e)),Kl=ir("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger"),Xl=(Kl.build(),e=>new di(e));Xl.empty=()=>new di({items:[]});var Jl=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Zl=e=>e.getById((e=>e.ids?.content??`combobox:${e.id}:content`)(e)),Ql=e=>e.getById((e=>e.ids?.input??`combobox:${e.id}:input`)(e)),ec=e=>e.getById((e=>e.ids?.positioner??`combobox:${e.id}:popper`)(e)),tc=e=>e.getById((e=>e.ids?.control??`combobox:${e.id}:control`)(e)),oc=e=>e.getById((e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`)(e)),nc=(e,t)=>{if(null==t)return null;const o=`[role=option][data-value="${CSS.escape(t)}"]`;return function(e,t){return e?.querySelector(t)??null}(Zl(e),o)},rc=e=>{const t=Ql(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:ic,createMachine:ac,choose:sc}={guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}},{and:lc,not:cc}=ic;function dc(e){return(e.previousEvent||e).src}ac({props:({props:e})=>({loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:e}){!function(e){const t=()=>{const t=Bi(e);e.dispatchEvent(new t.MouseEvent("click"))};ea(/Firefox/i)?function(e,t,o){const n=_a(()=>{e.removeEventListener(t,r,!0),o()}),r=()=>{n(),o()};e.addEventListener(t,r,{once:!0,capture:!0})}(e,"keyup",t):queueMicrotask(t)}(e)},collection:Xl.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"suggesting":"idle",context:({prop:e,bindable:t,getContext:o,getEvent:n})=>({currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:fr,hash:e=>e.join(","),onChange(t){const n=o(),r=n.get("selectedItems"),i=e("collection"),a=t.map(e=>r.find(t=>i.getItemValue(t)===e)||i.find(e));n.set("selectedItems",a),e("onValueChange")?.({value:t,items:a})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(t){const o=e("collection").find(t);e("onHighlightChange")?.({highlightedValue:t,highlightedItem:o})}})),inputValue:t(()=>{let t=e("inputValue")||e("defaultInputValue");const o=e("value")||e("defaultValue");if(!t.trim()&&!e("multiple")){const n=e("collection").stringifyMany(o);t=zr(e("selectionBehavior"),{preserve:t||n,replace:n,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){const o=n(),r=(o.previousEvent||o).src;e("onInputValueChange")?.({inputValue:t,reason:r})}}}),highlightedItem:t(()=>{const t=e("highlightedValue");return{defaultValue:e("collection").find(t)}}),selectedItems:t(()=>{const t=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(t)}})}),computed:{isInputValueEmpty:({context:e})=>0===e.get("inputValue").length,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>"autocomplete"===e("inputBehavior"),autoHighlight:({prop:e})=>"autohighlight"===e("inputBehavior"),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:o,action:n,send:r}){o([()=>e.hash("value")],()=>{n(["syncSelectedItems"])}),o([()=>e.get("inputValue")],()=>{n(["syncInputValue"])}),o([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem","autofillInputValue"])}),o([()=>t("open")],()=>{n(["toggleVisibility"])}),o([()=>t("collection").toString()],()=>{r({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:sc([{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:lc("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:lc("isCustomValue",cc("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:lc("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"],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:lc("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:lc("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:lc("isOpenControlled","isCustomValue",cc("hasHighlightedItem"),cc("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:lc("isCustomValue",cc("hasHighlightedItem"),cc("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:lc("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:lc("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:lc("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:lc("isOpenControlled","isCustomValue",cc("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:lc("isCustomValue",cc("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"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:lc("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"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:lc("isOpenControlled","isCustomValue",cc("hasHighlightedItem"),cc("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:lc("isCustomValue",cc("hasHighlightedItem"),cc("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:lc("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:lc("isOpenControlled","isCustomValue",cc("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:lc("isCustomValue",cc("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:lc("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})=>null!=e.get("highlightedValue"),closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>null!=e("open"),openOnChange:({prop:e,context:t})=>{const o=e("openOnChange");return!0===(n=o)||!1===n?o:!!o?.({inputValue:t.get("inputValue")});var n},restoreFocus:({event:e})=>{const t=e.restoreFocus??e.previousEvent?.restoreFocus;return null==t||!!t},isChangeEvent:({event:e})=>"INPUT.CHANGE"===e.previousEvent?.type,autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:o}){if(!t("disableLayer"))return ql(()=>Zl(o),{type:"listbox",defer:!0,exclude:()=>{return[Ql(o),oc(o),(e=o,e.getById(Jl(e)))];var e},onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(t){t.preventDefault(),t.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},trackPlacement:({context:e,prop:t,scope:o})=>(e.set("currentPlacement",t("positioning").placement),Cl(()=>tc(o)||oc(o),()=>ec(o),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:o,event:n}){const r=Ql(o);let i=[];const a=r=>{const a=n.current().type.includes("POINTER"),s=e.get("highlightedValue");if(a||!s)return;const l=Zl(o),c=t("scrollToIndexFn");if(c)return void c({index:t("collection").indexOf(s),immediate:r,getElement:()=>nc(o,s)});const d=nc(o,s),u=_a(()=>{Na(d,{rootEl:l,block:"nearest"})});i.push(u)},s=_a(()=>a(!0));i.push(s);const l=Ea(r,{attributes:["aria-activedescendant"],callback:()=>a(!1)});return i.push(l),()=>{i.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:o,event:n}){Cl(()=>tc(o),()=>ec(o),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},setHighlightedValue({context:e,event:t}){null!=t.value&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:o}=e,n=o("collection"),r=t.get("highlightedValue");if(!r||!n.has(r))return;const i=o("multiple")?gr(t.get("value"),r):[r];o("onSelect")?.({value:i,itemValue:r}),t.set("value",i);const a=zr(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(i),clear:""});t.set("inputValue",a)},scrollToHighlightedItem({context:e,prop:t,scope:o}){Ia(()=>{const n=e.get("highlightedValue");if(null==n)return;const r=nc(o,n),i=Zl(o),a=t("scrollToIndexFn");a?a({index:t("collection").indexOf(n),immediate:!0,getElement:()=>nc(o,n)}):Na(r,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:o,flush:n,prop:r}=e;null!=o.value&&n(()=>{const e=r("multiple")?gr(t.get("value"),o.value):[o.value];r("onSelect")?.({value:e,itemValue:o.value}),t.set("value",e);const n=zr(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany(e),clear:""});t.set("inputValue",n)})},clearItem(e){const{context:t,event:o,flush:n,prop:r}=e;null!=o.value&&n(()=>{const e=hr(t.get("value"),o.value);t.set("value",e);const n=zr(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany(e),clear:""});t.set("inputValue",n)})},setInitialFocus({scope:e}){_a(()=>{rc(e)})},setFinalFocus({scope:e}){_a(()=>{const t=oc(e);null==t?.dataset.focusable?rc(e):(e=>{const t=oc(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})})(e)})},syncInputValue({context:e,scope:t,event:o}){const n=Ql(t);n&&(n.value=e.get("inputValue"),queueMicrotask(()=>{"INPUT.CHANGE"!==o.current().type&&function(e){if(!e)return;const t=e.selectionStart??0,o=e.selectionEnd??0;0===Math.abs(o-t)&&0===t&&e.setSelectionRange(e.value.length,e.value.length)}(n)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:o}){const n=zr(t("selectionBehavior"),{replace:o("hasSelectedItems")?o("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",n)},setValue(e){const{context:t,flush:o,event:n,prop:r}=e;o(()=>{t.set("value",n.value);const e=zr(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany(n.value),clear:""});t.set("inputValue",e)})},clearSelectedItems(e){const{context:t,flush:o,prop:n}=e;o(()=>{t.set("value",[]);const e=zr(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany([]),clear:""});t.set("inputValue",e)})},scrollContentToTop({prop:e,scope:t}){const o=e("scrollToIndexFn");if(o){const n=e("collection").firstValue;o({index:0,immediate:!0,getElement:()=>nc(t,n)})}else{const e=Zl(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:o}){const n=dc(t);e("onOpenChange")?.({open:!0,reason:n,value:o.get("value")})},invokeOnClose({prop:e,event:t,context:o}){const n=dc(t);e("onOpenChange")?.({open:!1,reason:n,value:o.get("value")})},highlightFirstItem({context:e,prop:t,scope:o}){(Zl(o)?queueMicrotask:_a)(()=>{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:o}){(Zl(o)?queueMicrotask:_a)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let o=null;const n=e.get("highlightedValue"),r=t("collection");n?(o=r.getNextValue(n),!o&&t("loopFocus")&&(o=r.firstValue)):o=r.firstValue,o&&e.set("highlightedValue",o)},highlightPrevItem({context:e,prop:t}){let o=null;const n=e.get("highlightedValue"),r=t("collection");n?(o=r.getPreviousValue(n),!o&&t("loopFocus")&&(o=r.lastValue)):o=r.lastValue,o&&e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t}){_a(()=>{const[o]=t("collection").sort(e.get("value"));o&&e.set("highlightedValue",o)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:o}){_a(()=>{let n=null;n=o("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue,n&&e.set("highlightedValue",n)})},highlightLastOrSelectedItem({context:e,prop:t,computed:o}){_a(()=>{const n=t("collection");let r=null;r=o("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue,r&&e.set("highlightedValue",r)})},autofillInputValue({context:e,computed:t,prop:o,event:n,scope:r}){const i=Ql(r),a=o("collection");if(!t("autoComplete")||!i||!n.keypress)return;const s=a.stringify(e.get("highlightedValue"));_a(()=>{i.value=s||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:o}=e,n=o("collection"),r=t.get("value"),i=r.map(e=>t.get("selectedItems").find(t=>n.getItemValue(t)===e)||n.find(e));t.set("selectedItems",i);const a=zr(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(r),clear:""});t.set("inputValue",a)})},syncHighlightedItem({context:e,prop:t}){const o=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",o)},toggleVisibility({event:e,send:t,prop:o}){t({type:o("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});var uc=(ti(Yl()(["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","alwaysSubmitOnEnter"])),Yl()(["htmlFor"])),pc=(ti(uc),Yl()(["id"])),hc=(ti(pc),Yl()(["item","persistFocus"]));ti(hc);const gc=Kl.extendWith("empty");var mc=ir("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator"),{and:fc,not:vc}=(mc.build(),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}}),bc=(ti((fc("isExpanded","canToggle"),vc("isExpanded"),Yl()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]))),Yl()(["value","disabled"])),xc=(ti(bc),ir("clipboard").parts("root","control","trigger","indicator","input","label"));xc.build();var yc=(ti(Yl()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"])),Yl()(["copied"])),wc=(ti(yc),Object.defineProperty),kc=(e,t,o)=>((e,t,o)=>t in e?wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,t+"",o),Sc=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 o=t??this.getChannelValue(e),{minValue:n,maxValue:r}=this.getChannelRange(e);return $r(o,n,r)}getChannelPercentValue(e,t){const{minValue:o,maxValue:n,step:r}=this.getChannelRange(e),i=Hr(t,o,n,r);return qr(i,o,n,r)}withChannelValue(e,t){const{minValue:o,maxValue:n}=this.getChannelRange(e);if(e in this){let r=this.clone();return r[e]=Br(t,o,n),r}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:o}=e,n=t||this.getChannels().find(e=>e!==o),r=o||this.getChannels().find(e=>e!==n),i=this.getChannels().find(e=>e!==n&&e!==r);return{xChannel:n,yChannel:r,zChannel:i}}incrementChannel(e,t){const{minValue:o,maxValue:n,step:r}=this.getChannelRange(e),i=qr(Br(this.getChannelValue(e)+t,o,n),o,n,r);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return((e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let o in e)if(e[o]!==t[o])return!1;return!0})(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Cc=/^#[\da-f]+$/i,_c=/^rgba?\((.*)\)$/,Ic=/[^#]/gi,Ec=class e extends Sc{constructor(e,t,o,n){super(),this.red=e,this.green=t,this.blue=o,this.alpha=n}static parse(t){let o=[];if(Cc.test(t)&&[4,5,7,9].includes(t.length)){const e=(t.length<6?t.replace(Ic,"$&$&"):t).slice(1).split("");for(;e.length>0;)o.push(parseInt(e.splice(0,2).join(""),16));o[3]=void 0!==o[3]?o[3]/255:void 0}const n=t.match(_c);return n?.[1]&&(o=n[1].split(",").map(e=>Number(e.trim())).map((e,t)=>Br(e,0,t<3?255:1))),o.length<3?void 0:new e(o[0],o[1],o[2],o[3]??1)}toString(e){switch(e){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(255*this.alpha).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(e).toString(e)}}toFormat(e){switch(e){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+e)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const e=this.red/255,t=this.green/255,o=this.blue/255,n=Math.min(e,t,o),r=Math.max(e,t,o),i=r-n,a=0===r?0:i/r;let s=0;if(0!==i){switch(r){case e:s=(t-o)/i+(t<o?6:0);break;case t:s=(o-e)/i+2;break;case o:s=(e-t)/i+4}s/=6}return new Vc(Kr(360*s,2),Kr(100*a,2),Kr(100*r,2),Kr(this.alpha,2))}toHSL(){const e=this.red/255,t=this.green/255,o=this.blue/255,n=Math.min(e,t,o),r=Math.max(e,t,o),i=(r+n)/2,a=r-n;let s=-1,l=-1;if(0===a)s=l=0;else{switch(l=a/(i<.5?r+n:2-r-n),r){case e:s=(t-o)/a+(t<o?6:0);break;case t:s=(o-e)/a+2;break;case o:s=(e-t)/a+4}s/=6}return new Tc(Kr(360*s,2),Kr(100*l,2),Kr(100*i,2),Kr(this.alpha,2))}clone(){return new e(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(e){switch(e){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+e)}}formatChannelValue(e,t){let o=this.getChannelFormatOptions(e),n=this.getChannelValue(e);return new Intl.NumberFormat(t,o).format(n)}getChannelRange(e){switch(e){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+e)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return e.colorChannels}};kc(Ec,"colorChannels",["red","green","blue"]);var Pc=Ec,Oc=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,zc=class e extends Sc{constructor(e,t,o,n){super(),this.hue=e,this.saturation=t,this.lightness=o,this.alpha=n}static parse(t){let o;if(o=t.match(Oc)){const[t,n,r,i]=(o[1]??o[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e(Wr(t,360),Br(n,0,100),Br(r,0,100),Br(i??1,0,1))}}toString(e){switch(e){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${Kr(this.saturation,2)}%, ${Kr(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Kr(this.saturation,2)}%, ${Kr(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+e)}}toHSB(){let e=this.saturation/100,t=this.lightness/100,o=t+e*Math.min(t,1-t);return e=0===o?0:2*(1-t/o),new Vc(Kr(this.hue,2),Kr(100*e,2),Kr(100*o,2),Kr(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,o=this.lightness/100,n=t*Math.min(o,1-o),r=(t,r=(t+e/30)%12)=>o-n*Math.max(Math.min(r-3,9-r,1),-1);return new Pc(Math.round(255*r(0)),Math.round(255*r(8)),Math.round(255*r(4)),Kr(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(e){switch(e){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: "+e)}}formatChannelValue(e,t){let o=this.getChannelFormatOptions(e),n=this.getChannelValue(e);return"saturation"!==e&&"lightness"!==e||(n/=100),new Intl.NumberFormat(t,o).format(n)}getChannelRange(e){switch(e){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: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return e.colorChannels}};kc(zc,"colorChannels",["hue","saturation","lightness"]);var Tc=zc,Nc=/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+)?)\)/,Rc=class e extends Sc{constructor(e,t,o,n){super(),this.hue=e,this.saturation=t,this.brightness=o,this.alpha=n}static parse(t){let o;if(o=t.match(Nc)){const[t,n,r,i]=(o[1]??o[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e(Wr(t,360),Br(n,0,100),Br(r,0,100),Br(i??1,0,1))}}toString(e){switch(e){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}, ${Kr(this.saturation,2)}%, ${Kr(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Kr(this.saturation,2)}%, ${Kr(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(e).toString(e)}}toFormat(e){switch(e){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+e)}}toHSL(){let e=this.saturation/100,t=this.brightness/100,o=t*(1-e/2);return e=0===o||1===o?0:(t-o)/Math.min(o,1-o),new Tc(Kr(this.hue,2),Kr(100*e,2),Kr(100*o,2),Kr(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,o=this.brightness/100,n=(n,r=(n+e/60)%6)=>o-t*o*Math.max(Math.min(r,4-r,1),0);return new Pc(Math.round(255*n(5)),Math.round(255*n(3)),Math.round(255*n(1)),Kr(this.alpha,2))}clone(){return new e(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(e){switch(e){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: "+e)}}formatChannelValue(e,t){let o=this.getChannelFormatOptions(e),n=this.getChannelValue(e);return"saturation"!==e&&"brightness"!==e||(n/=100),new Intl.NumberFormat(t,o).format(n)}getChannelRange(e){switch(e){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: "+e)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return e.colorChannels}};kc(Rc,"colorChannels",["hue","saturation","brightness"]);var Vc=Rc,jc=((()=>{const e=new Map,t="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".split(",");for(let o=0;o<t.length;o++){const[n,r]=t[o].split(":");e.set(n,`#${r}`),n.includes("gray")&&e.set(n.replace("gray","grey"),`#${r}`)}})(),ir("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"]));jc.build();new RegExp(`^(${["hsba","hsla","rgba"].join("|")})$`);var{and:Ac}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}};Ac("isOpenControlled","closeOnSelect");var Dc=(ti(Yl()(["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"])),Yl()(["xChannel","yChannel"])),Fc=(ti(Dc),Yl()(["channel","orientation"])),Mc=(ti(Fc),Yl()(["value","disabled"])),Wc=(ti(Mc),Yl()(["value","respectAlpha"])),Lc=(ti(Wc),Yl()(["size"]));ti(Lc);const Bc=jc.extendWith("view");var $c=new WeakMap,Hc=new WeakMap,Uc={},Gc=0,qc=e=>e&&(e.host||qc(e.parentNode)),Yc=new Set(["script","output","status","next-route-announcer"]),Kc=(e,t=(e=>(Array.isArray(e)?e[0]:e).ownerDocument.body)(e),o="data-aria-hidden",n=!0)=>{if(t)return((e,t)=>{const{parentNode:o,markerName:n,controlAttribute:r,followControlledElements:i=!0}=t,a=((e,t)=>t.map(t=>{if(e.contains(t))return t;const o=qc(t);return o&&e.contains(o)?o:(console.error("[zag-js > ariaHidden] target",t,"in not contained inside",e,". Doing nothing"),null)}).filter(e=>Boolean(e)))(o,Array.isArray(e)?e:[e]);Uc[n]||(Uc[n]=new WeakMap);const s=Uc[n],l=[],c=new Set,d=new Set(a),u=e=>{e&&!c.has(e)&&(c.add(e),u(e.parentNode))};a.forEach(e=>{u(e),i&&Vi(e)&&Ji(e,e=>{u(e)})});const p=e=>{e&&!d.has(e)&&Array.prototype.forEach.call(e.children,e=>{if(c.has(e))p(e);else try{if((e=>!!Yc.has(e.localName)||"status"===e.role||!!e.hasAttribute("aria-live")||e.matches("[data-live-announcer]"))(e))return;const t="true"===e.getAttribute(r),o=($c.get(e)||0)+1,i=(s.get(e)||0)+1;$c.set(e,o),s.set(e,i),l.push(e),1===o&&t&&Hc.set(e,!0),1===i&&e.setAttribute(n,""),t||e.setAttribute(r,"true")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return p(o),c.clear(),Gc++,()=>{l.forEach(e=>{const t=$c.get(e)-1,o=s.get(e)-1;$c.set(e,t),s.set(e,o),t||(Hc.has(e)||e.removeAttribute(r),Hc.delete(e)),o||e.removeAttribute(n)}),--Gc||($c=new WeakMap,$c=new WeakMap,Hc=new WeakMap,Uc={})}})(e,{parentNode:t,markerName:o,controlAttribute:"aria-hidden",followControlledElements:n})},Xc=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};var Jc=Object.defineProperty,Zc=(e,t,o)=>((e,t,o)=>t in e?Jc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o),Qc={activateTrap(e,t){if(e.length>0){const o=e[e.length-1];o!==t&&o.pause()}const o=e.indexOf(t);-1===o||e.splice(o,1),e.push(t)},deactivateTrap(e,t){const o=e.indexOf(t);-1!==o&&e.splice(o,1),e.length>0&&e[e.length-1].unpause()}},ed=[],td=class{constructor(e,t){Zc(this,"trapStack"),Zc(this,"config"),Zc(this,"doc"),Zc(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),Zc(this,"portalContainers",new Set),Zc(this,"listenerCleanups",[]),Zc(this,"handleFocus",e=>{const t=ia(e),o=this.findContainerIndex(t,e)>=0;if(o||ji(t))o&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let o=!0;if(this.state.mostRecentlyFocusedNode)if(Sa(this.state.mostRecentlyFocusedNode)>0){const e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:n}=this.state.containerGroups[e];if(n.length>0){const e=n.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<n.length&&(t=n[e+1],o=!1):e-1>=0&&(t=n[e-1],o=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>Sa(e)>0))||(o=!1);else o=!1;o&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),Zc(this,"handlePointerDown",e=>{const t=ia(e);this.findContainerIndex(t,e)>=0||(nd(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):nd(this.config.allowOutsideClick,e)||e.preventDefault())}),Zc(this,"handleClick",e=>{const t=ia(e);this.findContainerIndex(t,e)>=0||nd(this.config.clickOutsideDeactivates,e)||nd(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),Zc(this,"handleTabKey",e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;const t=this.config.isKeyBackward(e),o=this.findNextNavNode({event:e,isBackward:t});if(!o)return;od(e)&&e.preventDefault(),this.tryFocus(o)}}),Zc(this,"handleEscapeKey",e=>{rd(e)&&!1!==nd(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())}),Zc(this,"_mutationObserver"),Zc(this,"setupMutationObserver",()=>{const e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver(e=>{const t=e.some(e=>Array.from(e.removedNodes).some(e=>e===this.state.mostRecentlyFocusedNode));t&&this.tryFocus(this.getInitialFocusNode());const o=e.some(e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return!1;const t=e;return!!function(e){return!!function(e){return e.hasAttribute("aria-controls")&&"true"===e.getAttribute("aria-expanded")}(e)||Boolean(e.querySelector?.('[aria-controls][aria-expanded="true"]'))}(t)||!(!t.id||this.state.containers.some(e=>e.contains(t)))&&function(e){if(!e.id)return!1;const t=Hi(e),o=CSS.escape(e.id),n=`[aria-controls~="${o}"][aria-expanded="true"], [aria-controls="${o}"][aria-expanded="true"]`,r=t.querySelector(n);return Boolean(r&&function(e){const t=e.getAttribute("role");return Boolean(t&&qi.has(t))}(e))}(t)}));o&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),Zc(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(e=>{this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(e=>{this.observePortalContainer(e)}))}),Zc(this,"getInitialFocusNode",()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!ya(e)){const t=$i(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{const t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e.isConnected||(e=this.getNodeForOption("fallbackFocus")),e}),Zc(this,"tryFocus",e=>{!1!==e&&e!==$i(this.doc)&&(e&&e.focus?(e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,ad(e)&&e.select()):this.tryFocus(this.getInitialFocusNode()))}),Zc(this,"deactivate",e=>{if(!this.state.active)return this;const t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Qc.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const o=this.getOption(t,"onDeactivate"),n=this.getOption(t,"onPostDeactivate"),r=this.getOption(t,"checkCanReturnFocus"),i=this.getOption(t,"returnFocus","returnFocusOnDeactivate");o?.();const a=()=>{id(()=>{if(i){const e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}n?.()})};return i&&r?(r(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(a,a),this):(a(),this)}),Zc(this,"pause",e=>{if(this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onPause"),o=this.getOption(e,"onPostPause");return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),o?.(),this}),Zc(this,"unpause",e=>{if(!this.state.paused||!this.state.active)return this;const t=this.getOption(e,"onUnpause"),o=this.getOption(e,"onPostUnpause");return this.state.paused=!1,t?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.(),this}),Zc(this,"updateContainerElements",e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),Zc(this,"getReturnFocusNode",e=>{const t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e}),Zc(this,"getOption",(e,t,o)=>e&&void 0!==e[t]?e[t]:this.config[o||t]),Zc(this,"getNodeForOption",(e,{hasFallback:t=!1,params:o=[]}={})=>{let n=this.config[e];if("function"==typeof n&&(n=n(...o)),!0===n&&(n=void 0),!n){if(void 0===n||!1===n)return n;throw new Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let r=n;if("string"==typeof n){try{r=this.doc.querySelector(n)}catch(t){throw new Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!r&&!t)throw new Error(`\`${e}\` as selector refers to no known node`)}return r}),Zc(this,"findNextNavNode",e=>{const{event:t,isBackward:o=!1}=e,n=e.target||ia(t);this.updateTabbableNodes();let r=null;if(this.state.tabbableGroups.length>0){const e=this.findContainerIndex(n,t),i=e>=0?this.state.containerGroups[e]:void 0;if(e<0)r=o?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(o){let o=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>n===e);if(o<0&&(i?.container===n||ya(n)&&!ka(n)&&!i?.nextTabbableNode(n,!1))&&(o=e),o>=0){const e=0===o?this.state.tabbableGroups.length-1:o-1,t=this.state.tabbableGroups[e];r=Sa(n)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else od(t)||(r=i?.nextTabbableNode(n,!1))}else{let o=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>n===e);if(o<0&&(i?.container===n||ya(n)&&!ka(n)&&!i?.nextTabbableNode(n))&&(o=e),o>=0){const e=o===this.state.tabbableGroups.length-1?0:o+1,t=this.state.tabbableGroups[e];r=Sa(n)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else od(t)||(r=i?.nextTabbableNode(n))}}else r=this.getNodeForOption("fallbackFocus");return r}),this.trapStack=t.trapStack||ed;const o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:e=>od(e)&&!e.shiftKey,isKeyBackward:e=>od(e)&&e.shiftKey,...t};this.doc=o.document||Li(Array.isArray(e)?e[0]:e),this.config=o,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{const t=function(e){const t=new Set;return Ji(e,o=>{e.contains(o)||t.add(o)}),Array.from(t)}(e);t.forEach(e=>{this.addPortalContainer(e)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const o="function"==typeof t?.composedPath?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:n})=>t.contains(e)||o?.includes(t)||n.find(t=>t===e)||this.isControlledElement(t,e))}isControlledElement(e,t){return!!this.config.followControlledElements&&Xi(e,t)}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=wa(e,{getShadowRoot:this.config.getShadowRoot}),o=xa(e,{getShadowRoot:this.config.getShadowRoot}),n=t[0],r=t[t.length-1],i=n,a=r;let s=!1;for(let e=0;e<t.length;e++)if(Sa(t[e])>0){s=!0;break}return{container:e,tabbableNodes:t,focusableNodes:o,posTabIndexesFound:s,firstTabbableNode:n,lastTabbableNode:r,firstDomTabbableNode:i,lastDomTabbableNode:a,nextTabbableNode:function(e,n=!0){const r=t.indexOf(e);if(r>=0)return t[r+(n?1:-1)];const i=o.indexOf(e);if(!(i<0))if(n){for(let e=i+1;e<o.length;e++)if(ka(o[e]))return o[e]}else for(let e=i-1;e>=0;e--)if(ka(o[e]))return o[e]}}}),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 Qc.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?id(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(aa(this.doc,"focusin",this.handleFocus,!0),aa(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),aa(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),aa(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),aa(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),aa(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"),o=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=$i(this.doc),t?.();const r=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return n?(n(this.state.containers.concat()).then(r,r),this):(r(),this)}},od=e=>"Tab"===e.key,nd=(e,...t)=>"function"==typeof e?e(...t):e,rd=e=>!e.isComposing&&"Escape"===e.key,id=e=>setTimeout(e,0),ad=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;var sd="data-scroll-lock";function ld(e){const t=Gi(e),o=t?.scrollbarGutter;return"stable"===o||!0===o?.startsWith("stable ")}var cd=ir("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),dd=cd.build(),ud=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,pd=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,hd=e=>e.ids?.content??`dialog:${e.id}:content`,gd=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,md=e=>e.ids?.title??`dialog:${e.id}:title`,fd=e=>e.ids?.description??`dialog:${e.id}:description`,vd=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,bd=e=>e.getById(hd(e)),xd=e=>e.getById(pd(e)),yd=e=>e.getById(fd(e)),wd={props({props:e,scope:t}){const o="alertdialog"===e.role,n=o?()=>{return(e=t).getById(vd(e));var e}:void 0,r="boolean"!=typeof e.modal||e.modal;return{role:"dialog",modal:r,trapFocus:r,preventScroll:r,closeOnInteractOutside:!o,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...e}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e})=>({rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}),watch({track:e,action:t,prop:o}){e([()=>o("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})=>null!=e("open")},effects:{trackDismissableElement({scope:e,send:t,prop:o}){return ql(()=>bd(e),{type:"dialog",defer:!0,pointerBlocking:o("modal"),exclude:[(n=e,n.getById(gd(n)))],onInteractOutside(e){o("onInteractOutside")?.(e),o("closeOnInteractOutside")||e.preventDefault()},persistentElements:o("persistentElements"),onFocusOutside:o("onFocusOutside"),onPointerDownOutside:o("onPointerDownOutside"),onRequestDismiss:o("onRequestDismiss"),onEscapeKeyDown(e){o("onEscapeKeyDown")?.(e),o("closeOnEscape")||e.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}});var n},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return function(e){const t=e??document,o=t.defaultView??window,{documentElement:n,body:r}=t;if(r.hasAttribute(sd))return;const i=ld(n)||ld(r),a=o.innerWidth-n.clientWidth;r.setAttribute(sd,"");const s=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(n),l=[function(e,t,o){if(!e)return zi;const n=e.style.getPropertyValue(t);return e.style.setProperty(t,o),()=>{e.style.setProperty(t,n),0===e.style.length&&e.removeAttribute("style")}}(n,"--scrollbar-width",`${a}px`),oa()?(()=>{const{scrollX:e,scrollY:t,visualViewport:n}=o,l=n?.offsetLeft??0,c=n?.offsetTop??0,d={position:"fixed",overflow:"hidden",top:-(t-Math.floor(c))+"px",left:-(e-Math.floor(l))+"px",right:"0"};!i&&a>0&&(d[s]=`${a}px`);const u=Fa(r,d);return()=>{u?.(),o.scrollTo({left:e,top:t,behavior:"instant"})}})():(()=>{const e={overflow:"hidden"};return!i&&a>0&&(e[s]=`${a}px`),Fa(r,e)})()];return()=>{l.forEach(e=>e?.()),r.removeAttribute(sd)}}(e.getDoc())},trapFocus({scope:e,prop:t}){if(t("trapFocus"))return function(e,t={}){let o;const n=_a(()=>{const n="function"==typeof e?e():e;if(n){o=new td(n,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:n,...t,document:Li(n)});try{o.activate()}catch{}}});return function(){o?.deactivate(),n()}}(()=>bd(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:e=>t("finalFocusEl")?.()??e,getShadowRoot:!0})},hideContentBelow({scope:e,prop:t}){if(t("modal"))return function(e,t={}){const{defer:o=!0}=t,n=o?Xc:e=>e(),r=[];return r.push(n(()=>{const t=("function"==typeof e?e():e).filter(Boolean);0!==t.length&&r.push(Kc(t))})),()=>{r.forEach(e=>e?.())}}(()=>[bd(e)],{defer:!0})}},actions:{checkRenderedElements({context:e,scope:t}){_a(()=>{var o;e.set("rendered",{title:(o=t,!!o.getById(md(o))),description:!!yd(t)})})},syncZIndex({scope:e}){_a(()=>{const t=bd(e);if(!t)return;const o=Gi(t);var n;[(n=e,n.getById(ud(n))),xd(e)].forEach(e=>{e?.style.setProperty("--z-index",o.zIndex),e?.style.setProperty("--layer-index",o.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:o}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:o})}}}},kd=(ti(Yl()(["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"])),ir("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control"));kd.build(),ti(Yl()(["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 Sd=ir("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),Cd=(Sd.build(),ir("fieldset").parts("root","errorText","helperText","legend"));Cd.build(),new Map("3g2_video/3gpp2[3gp,3gpp_video/3gpp[3mf_model/3mf[7z_application/x-7z-compressed[aac_audio/aac[ac_application/pkix-attr-cert[adp_audio/adpcm[adts_audio/aac[ai_application/postscript[aml_application/automationml-aml+xml[amlx_application/automationml-amlx+zip[amr_audio/amr[apk_application/vnd.android.package-archive[apng_image/apng[appcache,manifest_text/cache-manifest[appinstaller_application/appinstaller[appx_application/appx[appxbundle_application/appxbundle[asc_application/pgp-keys[atom_application/atom+xml[atomcat_application/atomcat+xml[atomdeleted_application/atomdeleted+xml[atomsvc_application/atomsvc+xml[au,snd_audio/basic[avi_video/x-msvideo[avci_image/avci[avcs_image/avcs[avif_image/avif[aw_application/applixware[bdoc_application/bdoc[bin,bpk,buffer,deb,deploy,dist,distz,dll,dmg,dms,dump,elc,exe,img,iso,lrf,mar,msi,msm,msp,pkg,so_application/octet-stream[bmp,dib_image/bmp[btf,btif_image/prs.btif[bz2_application/x-bzip2[c_text/x-c[ccxml_application/ccxml+xml[cdfx_application/cdfx+xml[cdmia_application/cdmi-capability[cdmic_application/cdmi-container[cdmid_application/cdmi-domain[cdmio_application/cdmi-object[cdmiq_application/cdmi-queue[cer_application/pkix-cert[cgm_image/cgm[cjs_application/node[class_application/java-vm[coffee,litcoffee_text/coffeescript[conf,def,in,ini,list,log,text,txt_text/plain[cpp,cxx,cc_text/x-c++src[cpl_application/cpl+xml[cpt_application/mac-compactpro[crl_application/pkix-crl[css_text/css[csv_text/csv[cu_application/cu-seeme[cwl_application/cwl[cww_application/prs.cww[davmount_application/davmount+xml[dbk_application/docbook+xml[doc_application/msword[docx_application/vnd.openxmlformats-officedocument.wordprocessingml.document[dsc_text/prs.lines.tag[dssc_application/dssc+der[dtd_application/xml-dtd[dwd_application/atsc-dwd+xml[ear,jar,war_application/java-archive[ecma_application/ecmascript[emf_image/emf[eml,mime_message/rfc822[emma_application/emma+xml[emotionml_application/emotionml+xml[eot_application/vnd.ms-fontobject[eps,ps_application/postscript[epub_application/epub+zip[exi_application/exi[exp_application/express[exr_image/aces[ez_application/andrew-inset[fdf_application/fdf[fdt_application/fdt+xml[fits_image/fits[flac_audio/flac[flv_video/x-flv[g3_image/g3fax[geojson_application/geo+json[gif_image/gif[glb_model/gltf-binary[gltf_model/gltf+json[gml_application/gml+xml[go_text/x-go[gpx_application/gpx+xml[gz_application/gzip[h_text/x-h[h261_video/h261[h263_video/h263[h264_video/h264[heic_image/heic[heics_image/heic-sequence[heif_image/heif[heifs_image/heif-sequence[htm,html,shtml_text/html[ico_image/x-icon[icns_image/x-icns[ics,ifb_text/calendar[iges,igs_model/iges[ink,inkml_application/inkml+xml[ipa_application/octet-stream[java_text/x-java-source[jp2,jpg2_image/jp2[jpeg,jpe,jpg_image/jpeg[jpf,jpx_image/jpx[jpm,jpgm_image/jpm[jpgv_video/jpeg[jph_image/jph[js,mjs_text/javascript[json_application/json[json5_application/json5[jsonld_application/ld+json[jsx_text/jsx[jxl_image/jxl[jxr_image/jxr[ktx_image/ktx[ktx2_image/ktx2[less_text/less[m1v,m2v,mpe,mpeg,mpg_video/mpeg[m4a_audio/mp4[m4v_video/x-m4v[md,markdown_text/markdown[mid,midi,kar,rmi_audio/midi[mkv_video/x-matroska[mp2,mp2a,mp3,mpga,m3a,m2a_audio/mpeg[mp4,mp4v,mpg4_video/mp4[mp4a_audio/mp4[mp4s,m4p_application/mp4[odp_application/vnd.oasis.opendocument.presentation[oda_application/oda[ods_application/vnd.oasis.opendocument.spreadsheet[odt_application/vnd.oasis.opendocument.text[oga,ogg,opus,spx_audio/ogg[ogv_video/ogg[ogx_application/ogg[otf_font/otf[p12,pfx_application/x-pkcs12[pdf_application/pdf[pem_application/x-pem-file[php_text/x-php[png_image/png[ppt_application/vnd.ms-powerpoint[pptx_application/vnd.openxmlformats-officedocument.presentationml.presentation[pskcxml_application/pskc+xml[psd_image/vnd.adobe.photoshop[py_text/x-python[qt,mov_video/quicktime[rar_application/vnd.rar[rdf_application/rdf+xml[rtf_text/rtf[sass_text/x-sass[scss_text/x-scss[sgm,sgml_text/sgml[sh_application/x-sh[svg,svgz_image/svg+xml[swf_application/x-shockwave-flash[tar_application/x-tar[tif,tiff_image/tiff[toml_application/toml[ts_video/mp2t[tsx_text/tsx[tsv_text/tab-separated-values[ttc_font/collection[ttf_font/ttf[vtt_text/vtt[wasm_application/wasm[wav_audio/wav[weba_audio/webm[webm_video/webm[webmanifest_application/manifest+json[webp_image/webp[wma_audio/x-ms-wma[wmv_video/x-ms-wmv[woff_font/woff[woff2_font/woff2[xls_application/vnd.ms-excel[xlsx_application/vnd.openxmlformats-officedocument.spreadsheetml.sheet[xml_application/xml[xz_application/x-xz[yaml,yml_text/yaml[zip_application/zip".split("[").flatMap(e=>{const[t,o]=e.split("_");return t.split(",").map(e=>[e,o])}));var _d=ir("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");_d.build();var Id=(ti(Yl()(["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"])),Yl()(["file","type"]));ti(Id);var Ed=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Pd=null,Od=new Set,zd=new Map,Td=!1,Nd=!1,Rd={Tab:!0,Escape:!0};function Vd(e,t){for(let o of Od)o(e,t)}function jd(e){Td=!0,function(e){return!(e.metaKey||!na()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Pd="keyboard",Vd("keyboard",e))}function Ad(e){Pd="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Td=!0,Vd("pointer",e))}function Dd(e){(function(e){return!(""!==e.pointerType||!e.isTrusted)||(ea(/Android/i)&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)})(e)&&(Td=!0,Pd="virtual")}function Fd(e){const t=ia(e);t!==Bi(t)&&t!==Li(t)&&(Td||Nd||(Pd="virtual",Vd("virtual",e)),Td=!1,Nd=!1)}function Md(){Td=!1,Nd=!0}var Wd=(e,t)=>{const o=Bi(e),n=Li(e),r=zd.get(o);if(r){try{Object.defineProperty(o.HTMLElement.prototype,"focus",{configurable:!0,value:r.focus})}catch{}n.removeEventListener("keydown",jd,!0),n.removeEventListener("keyup",jd,!0),n.removeEventListener("click",Dd,!0),o.removeEventListener("focus",Fd,!0),o.removeEventListener("blur",Md,!1),void 0!==o.PointerEvent?(n.removeEventListener("pointerdown",Ad,!0),n.removeEventListener("pointermove",Ad,!0),n.removeEventListener("pointerup",Ad,!0)):(n.removeEventListener("mousedown",Ad,!0),n.removeEventListener("mousemove",Ad,!0),n.removeEventListener("mouseup",Ad,!0)),zd.delete(o)}};function Ld(){return"keyboard"===Pd}function Bd(e={}){const{isTextInput:t,autoFocus:o,onChange:n,root:r}=e;(function(e){if("undefined"==typeof window||zd.get(Bi(e)))return;const t=Bi(e),o=Li(e);let n=t.HTMLElement.prototype.focus;try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:function(){Pd="virtual",Vd("virtual",null),Td=!0,n.apply(this,arguments)}})}catch{}o.addEventListener("keydown",jd,!0),o.addEventListener("keyup",jd,!0),o.addEventListener("click",Dd,!0),t.addEventListener("focus",Fd,!0),t.addEventListener("blur",Md,!1),void 0!==t.PointerEvent?(o.addEventListener("pointerdown",Ad,!0),o.addEventListener("pointermove",Ad,!0),o.addEventListener("pointerup",Ad,!0)):(o.addEventListener("mousedown",Ad,!0),o.addEventListener("mousemove",Ad,!0),o.addEventListener("mouseup",Ad,!0)),t.addEventListener("beforeunload",()=>{Wd(e)},{once:!0}),zd.set(t,{focus:n})})(r),n?.({isFocusVisible:o||Ld(),modality:Pd});const i=(e,o)=>{(function(e,t,o){const n=o?ia(o):null,r=Bi(n);return!((e=e||n instanceof r.HTMLInputElement&&!Ed.has(n?.type)||n instanceof r.HTMLTextAreaElement||n instanceof r.HTMLElement&&n.isContentEditable)&&"keyboard"===t&&o instanceof r.KeyboardEvent&&!Reflect.has(Rd,o.key))})(!!t,e,o)&&n?.({isFocusVisible:Ld(),modality:e})};return Od.add(i),()=>{Od.delete(i)}}var $d=ir("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText"),Hd=($d.build(),e=>new di(e));Hd.empty=()=>new di({items:[]});var Ud=e=>e.getById((e=>e.ids?.content??`select:${e.id}:content`)(e)),Gd=(e,t)=>e.getById(((e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`)(e,t)),{guards:qd,createMachine:Yd}={guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}},{or:Kd}=qd,Xd=(Yd({props:({props:e})=>({loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:Hd.empty(),orientation:"vertical",selectionMode:"single",...e}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:fr,onChange(t){const o=e("collection").findMany(t);return e("onValueChange")?.({value:t,items:o})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(t){e("onHighlightChange")?.({highlightedValue:t,highlightedItem:e("collection").find(t),highlightedIndex:e("collection").indexOf(t)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const t=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(t)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}),refs:()=>({typeahead:{...Wa.defaultOptions},focusVisible:!1,inputState:{autoHighlight:!1,focused:!1}}),computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>""!==e.get("typeahead").keysSoFar,isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{const o=new gi(e.get("value"));return o.selectionMode=t("selectionMode"),o.deselectable=!!t("deselectable"),o},multiple:({prop:e})=>"multiple"===e("selectionMode")||"extended"===e("selectionMode"),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState:()=>"idle",watch({context:e,prop:t,track:o,action:n}){o([()=>e.get("value").toString()],()=>{n(["syncSelectedItems"])}),o([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),o([()=>t("collection").toString()],()=>{n(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused","setInputState"]},"CONTENT.FOCUS":[{guard:Kd("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused","clearInputState"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>null!=e.get("highlightedValue")},effects:{trackFocusVisible:({scope:e,refs:t})=>Bd({root:e.getRootNode?.(),onChange(e){t.set("focusVisible",e.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:o}){const n=n=>{const r=e.get("highlightedValue");if(null==r)return;if("keyboard"!==Pd)return;const i=Ud(o),a=t("scrollToIndexFn");if(a){const e=t("collection").indexOf(r);return void a?.({index:e,immediate:n,getElement:()=>Gd(o,r)})}Na(Gd(o,r),{rootEl:i,block:"nearest"})};return _a(()=>n(!0)),Ea(()=>Ud(o),{defer:!0,attributes:["data-activedescendant"],callback(){n(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:o,computed:n}){const r=o.value??e.get("highlightedValue"),i=t("collection");if(null==r||!i.has(r))return;const a=n("selection");if(o.shiftKey&&n("multiple")&&o.anchorValue){const n=a.extendSelection(i,o.anchorValue,r);Jd(a,n,t("onSelect")),e.set("value",Array.from(n))}else{const n=a.select(i,r,o.metaKey);Jd(a,n,t("onSelect")),e.set("value",Array.from(n))}},selectWithKeyboard({context:e,prop:t,event:o,computed:n}){const r=n("selection"),i=t("collection");if(o.shiftKey&&n("multiple")&&o.anchorValue){const n=r.extendSelection(i,o.anchorValue,o.value);return Jd(r,n,t("onSelect")),void e.set("value",Array.from(n))}if(t("selectOnHighlight")){const n=r.replaceSelection(i,o.value);Jd(r,n,t("onSelect")),e.set("value",Array.from(n))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:o,refs:n}){const r=t("collection").search(o.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});null!=r&&e.set("highlightedValue",r)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:o,computed:n}){const r=t("collection"),i=n("selection"),a=i.select(r,o.value);Jd(i,a,t("onSelect")),e.set("value",Array.from(a))},clearItem({context:e,event:t,computed:o}){const n=o("selection").deselect(t.value);e.set("value",Array.from(n))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){const o=t("collection"),n=e.get("selectedItems"),r=e.get("value").map(e=>n.find(t=>o.getItemValue(t)===e)||o.find(e));e.set("selectedItems",r)},syncHighlightedItem({context:e,prop:t}){const o=t("collection"),n=e.get("highlightedValue"),r=n?o.find(n):null;e.set("highlightedItem",r)},syncHighlightedValue({context:e,prop:t,refs:o}){const n=t("collection"),r=e.get("highlightedValue"),{autoHighlight:i}=o.get("inputState");i?queueMicrotask(()=>{e.set("highlightedValue",t("collection").firstValue??null)}):null==r||n.has(r)||queueMicrotask(()=>{e.set("highlightedValue",null)})},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const o=t("collection").firstValue;null!=o&&e.set("highlightedValue",o)},clearFocused({context:e}){e.set("focused",!1)},setInputState({refs:e,event:t}){e.set("inputState",{autoHighlight:!!t.autoHighlight,focused:!0})},clearInputState({refs:e}){e.set("inputState",{autoHighlight:!1,focused:!1})}}}}),(e,t)=>{const o=new Set(e);for(const e of t)o.delete(e);return o});function Jd(e,t,o){const n=Xd(t,e);for(const e of n)o?.({value:e})}var Zd=(ti(Yl()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"])),Yl()(["item","highlightOnHover"])),Qd=(ti(Zd),Yl()(["id"])),eu=(ti(Qd),Yl()(["htmlFor"]));ti(eu);const tu=$d.extendWith("empty");Object.defineProperty;var{min:ou,max:nu}=Math,{sign:ru,abs:iu,min:au}=Math,su=ir("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),{not:lu,and:cu,or:du}=(su.build(),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}});lu("isSubmenu"),du("isOpenAutoFocusEvent","isArrowDownEvent"),cu(lu("isTriggerItem"),"isOpenControlled"),lu("isTriggerItem"),cu("isSubmenu","isOpenControlled"),lu("isPointerSuspended"),cu(lu("isPointerSuspended"),lu("isTriggerItem")),cu(lu("isTriggerItemHighlighted"),lu("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),cu(lu("isTriggerItemHighlighted"),lu("isHighlightedItemEditable"),"closeOnSelect"),cu(lu("isTriggerItemHighlighted"),lu("isHighlightedItemEditable"));var uu=(ti(Yl()(["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"])),Yl()(["closeOnSelect","disabled","value","valueText"])),pu=(ti(uu),Yl()(["htmlFor"])),hu=(ti(pu),Yl()(["id"])),gu=(ti(hu),Yl()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"])),mu=(ti(gu),ir("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"));mu.build();var fu=(ti(Yl()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"])),ir("radio-group").parts("root","label","item","itemText","itemControl","indicator")),vu=fu.build(),bu=e=>e.ids?.root??`radio-group:${e.id}`,xu=e=>e.ids?.label??`radio-group:${e.id}:label`,yu=(e,t)=>e.ids?.item?.(t)??`radio-group:${e.id}:radio:${t}`,wu=(e,t)=>e.ids?.itemHiddenInput?.(t)??`radio-group:${e.id}:radio:input:${t}`,ku=e=>e.ids?.indicator??`radio-group:${e.id}:indicator`,Su=e=>e.getById(bu(e)),Cu=e=>{const t=`input[type=radio][data-ownedby='${CSS.escape(bu(e))}']:not([disabled])`;return Ra(Su(e),t)};var{not:_u}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},Iu={props:({props:e})=>({orientation:"vertical",...e}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){e("onValueChange")?.({value:t})}})),activeValue:t(()=>({defaultValue:null})),focusedValue:t(()=>({defaultValue:null})),focusVisibleValue:t(()=>({defaultValue:null})),hoveredValue:t(()=>({defaultValue:null})),indicatorRect:t(()=>({defaultValue:null})),fieldsetDisabled:t(()=>({defaultValue:!1})),ssr:t(()=>({defaultValue:!0}))}),refs:()=>({indicatorCleanup:null,focusVisibleValue:null}),computed:{isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled")},entry:["syncIndicatorRect","syncSsr"],exit:["cleanupObserver"],effects:["trackFormControlState","trackFocusVisible"],watch({track:e,action:t,context:o}){e([()=>o.get("value")],()=>{t(["syncIndicatorRect","syncInputElements"])})},on:{SET_VALUE:[{guard:_u("isTrusted"),actions:["setValue","dispatchChangeEvent"]},{actions:["setValue"]}],SET_HOVERED:{actions:["setHovered"]},SET_ACTIVE:{actions:["setActive"]},SET_FOCUSED:{actions:["setFocused"]}},states:{idle:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackFormControlState:({context:e,scope:t})=>pa(Su(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackFocusVisible:({scope:e})=>Bd({root:e.getRootNode?.()})},actions:{setValue({context:e,event:t}){e.set("value",t.value)},setHovered({context:e,event:t}){e.set("hoveredValue",t.value)},setActive({context:e,event:t}){e.set("activeValue",t.value)},setFocused({context:e,event:t}){e.set("focusedValue",t.value);const o=null!=t.value&&t.focusVisible?t.value:null;e.set("focusVisibleValue",o)},syncInputElements({context:e,scope:t}){Cu(t).forEach(t=>{t.checked=t.value===e.get("value")})},cleanupObserver({refs:e}){e.get("indicatorCleanup")?.()},syncSsr({context:e}){e.set("ssr",!1)},syncIndicatorRect({context:e,scope:t,refs:o}){if(o.get("indicatorCleanup")?.(),!(n=t).getById(ku(n)))return;var n;const r=e.get("value"),i=((e,t)=>{if(t)return e.getById(yu(e,t))})(t,r);if(null==r||!i)return void e.set("indicatorRect",null);const a=()=>{var t;e.set("indicatorRect",(t=i,{x:t?.offsetLeft??0,y:t?.offsetTop??0,width:t?.offsetWidth??0,height:t?.offsetHeight??0}))};a();const s=Da.observe(i,a);o.set("indicatorCleanup",s)},dispatchChangeEvent({context:e,scope:t}){Cu(t).forEach(t=>{const o=t.value===e.get("value");o!==t.checked&&ca(t,{checked:o})})}}}},Eu=(ti(Yl()(["dir","disabled","form","getRootNode","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value","defaultValue"])),Yl()(["value","disabled","invalid"])),Pu=(ti(Eu),ir("rating-group").parts("root","label","item","control"));Pu.build();var Ou=(ti(Yl()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"])),Yl()(["index"])),zu=(ti(Ou),ir("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"));(zu.build(),e=>new di(e)).empty=()=>new di({items:[]});var{and:Tu,not:Nu,or:Ru}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}};Ru("isTriggerArrowDownEvent","isTriggerEnterEvent"),Tu(Nu("multiple"),"hasSelectedItems"),Nu("multiple"),Tu(Nu("multiple"),"hasSelectedItems"),Nu("multiple"),Nu("multiple"),Nu("multiple"),Nu("multiple"),Tu("closeOnSelect","isOpenControlled"),Tu("hasHighlightedItem","loop","isLastItemHighlighted"),Tu("hasHighlightedItem","loop","isFirstItemHighlighted");var Vu=(ti(Yl()(["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"])),Yl()(["item","persistFocus"])),ju=(ti(Vu),Yl()(["id"])),Au=(ti(ju),Yl()(["htmlFor"])),Du=(ti(Au),ir("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator"));Du.build();var Fu=(ti((Tl(({context:e,prop:t})=>[e.get("value"),t("min"),t("max")],([e,t,o])=>e.map(e=>100*$r(e,t,o))),Yl()(["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"]))),Yl()(["index","name"])),Mu=(ti(Fu),Yl()(["value"])),Wu=(ti(Mu),ir("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator"));Wu.build();var Lu=(ti(Yl()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"])),Yl()(["id"])),Bu=(ti(Lu),Yl()(["disabled","id"])),$u=(ti(Bu),ir("switch").parts("root","label","control","thumb")),{not:Hu}=($u.build(),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}});ti((Hu("isTrusted"),Hu("isTrusted"),Yl()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"])));const Uu=mc.extendWith("itemBody"),Gu=ir("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),qu=ir("alert").parts("title","description","root","indicator","content"),Yu=ir("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),Ku=ir("blockquote").parts("root","icon","content","caption"),Xu=ir("card").parts("root","header","body","footer","title","description"),Ju=ir("checkbox-card",["root","control","label","description","addon","indicator","content"]),Zu=ir("data-list").parts("root","item","itemLabel","itemValue"),Qu=cd.extendWith("header","body","footer","backdrop"),ep=cd.extendWith("header","body","footer","backdrop"),tp=kd.extendWith("textarea"),op=ir("empty-state",["root","content","indicator","title","description"]),np=Sd.extendWith("requiredIndicator"),rp=Cd.extendWith("content"),ip=_d.extendWith("itemContent","dropzoneContent","fileText"),ap=ir("list").parts("root","item","indicator"),sp=su.extendWith("itemCommand"),lp=ir("select").parts("root","field","indicator"),cp=mu.extendWith("header","body","footer"),dp=fu.extendWith("itemAddon","itemIndicator"),up=dp.extendWith("itemContent","itemDescription"),pp=Pu.extendWith("itemIndicator"),hp=zu.extendWith("indicatorGroup"),gp=gc.extendWith("indicatorGroup","empty"),mp=Du.extendWith("markerIndicator"),fp=ir("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),vp=ir("status").parts("root","indicator"),bp=ir("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),xp=$u.extendWith("indicator"),yp=ir("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),wp=ir("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),kp=ir("tabs").parts("root","trigger","list","content","contentGroup","indicator"),Sp=ir("tag").parts("root","label","closeTrigger","startElement","endElement"),Cp=ir("timeline").parts("root","item","content","separator","indicator","connector","title","description"),_p=Bc.extendWith("channelText"),Ip=ir("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),Ep=Wu.extendWith("resizeTriggerSeparator","resizeTriggerIndicator"),Pp=(xc.extendWith("valueText"),tu),Op={className:"chakra-accordion",slots:Uu.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"}},zp={className:"chakra-action-bar",slots:Gu.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"}}},Tp={slots:qu.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)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},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}};var Np=ir("avatar").parts("root","image","fallback");Np.build(),ti(Yl()(["dir","id","ids","onStatusChange","getRootNode"]));const Rp={slots:Np.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","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},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"}},Vp={className:"chakra-blockquote",slots:Ku.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"}},jp={className:"chakra-breadcrumb",slots:Yu.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"}},Ap={className:"chakra-card",slots:Xu.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"}};var Dp=ir("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");Dp.build();var Fp=(ti(Yl()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"])),Yl()(["index","readOnly"])),Mp=(ti(Fp),Yl()(["index","snapAlign"]));ti(Mp);const Wp={className:"carousel",slots:Dp.extendWith("progressText","autoplayIndicator").keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}};var Lp=ir("checkbox").parts("root","label","control","indicator"),{not:Bp}=(Lp.build(),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}});Bp("isTrusted"),Bp("isTrusted"),ti(Yl()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]));const $p={slots:Lp.extendWith("group").keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Kn.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Kn.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Kn.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Kn.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Kn.variants?.size?.lg}},variant:{outline:{control:Kn.variants?.variant?.outline},solid:{control:Kn.variants?.variant?.solid},subtle:{control:Kn.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},Hp={slots:Ju.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:Kn.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:Kn.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Kn.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Kn.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:Kn.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Kn.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:Kn.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Kn.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"}},Up={slots:Ip.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",overflowX:"auto",overflowY:"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",paddingInlineEnd:"var(--code-block-padding)","--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",top:"0",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",whiteSpace:"nowrap",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"}};var Gp=ir("collapsible").parts("root","trigger","content","indicator");Gp.build(),ti(Yl()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]));const qp={slots:Gp.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}},Yp={className:"colorPicker",slots:_p.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:{...Zn.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:{...Qn.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:Qn.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:Qn.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:Qn.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:Qn.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:Qn.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:Qn.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:Qn.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:Qn.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:Qn.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},Kp={className:"chakra-combobox",slots:gp.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--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"},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"}},Xp={slots:Zu.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"}},Jp={slots:Qu.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"}},Zp={slots:ep.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"}},Qp={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},eh={slots:tp.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Qp,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Qp,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"}},th={slots:op.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"}},oh={className:"chakra-field",slots:np.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"}},nh={className:"fieldset",slots:rp.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"}},rh={className:"chakra-file-upload",slots:ip.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:{}};var ih=ir("hoverCard").parts("arrow","arrowTip","trigger","positioner","content"),ah=ih.build(),sh=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,lh=e=>e.ids?.content??`hover-card:${e.id}:content`,ch=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,dh=e=>e.getById(sh(e)),uh=e=>e.getById(ch(e));var{not:ph,and:hh}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},gh={props:({props:e})=>({disabled:!1,openDelay:600,closeDelay:300,...e,positioning:{placement:"bottom",...e.positioning}}),initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({prop:e,bindable:t})=>({open:t(()=>({defaultValue:e("defaultOpen"),value:e("open"),onChange(t){e("onOpenChange")?.({open:t})}})),currentPlacement:t(()=>({defaultValue:void 0})),isPointer:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,action:o,prop:n,send:r}){e([()=>n("disabled")],()=>{n("disabled")&&r({type:"CLOSE",src:"disabled.change"})}),e([()=>t.get("open")],()=>{o(["toggleVisibility"])})},states:{closed:{tags:["closed"],entry:["clearIsPointer"],on:{"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"opening",actions:["setIsPointer"]},TRIGGER_FOCUS:{target:"opening"},OPEN:{target:"opening"}}},opening:{tags:["closed"],effects:["waitForOpenDelay"],on:{OPEN_DELAY:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],"CONTROLLED.OPEN":{target:"open"},"CONTROLLED.CLOSE":{target:"closed"},POINTER_LEAVE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:hh("isOpenControlled",ph("isPointer")),actions:["invokeOnClose","toggleVisibility"]},{guard:ph("isPointer"),target:"closed",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose","toggleVisibility"]},{target:"closed",actions:["invokeOnClose"]}]}},open:{tags:["open"],effects:["trackDismissableElement","trackPositioning"],on:{"CONTROLLED.CLOSE":{target:"closed"},POINTER_ENTER:{actions:["setIsPointer"]},POINTER_LEAVE:{target:"closing"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TRIGGER_BLUR:[{guard:hh("isOpenControlled",ph("isPointer")),actions:["invokeOnClose"]},{guard:ph("isPointer"),target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}},closing:{tags:["open"],effects:["trackPositioning","waitForCloseDelay"],on:{CLOSE_DELAY:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"CONTROLLED.CLOSE":{target:"closed"},"CONTROLLED.OPEN":{target:"open"},POINTER_ENTER:{target:"open",actions:["setIsPointer"]}}}},implementations:{guards:{isPointer:({context:e})=>!!e.get("isPointer"),isOpenControlled:({prop:e})=>null!=e("open")},effects:{waitForOpenDelay({send:e,prop:t}){const o=setTimeout(()=>{e({type:"OPEN_DELAY"})},t("openDelay"));return()=>clearTimeout(o)},waitForCloseDelay({send:e,prop:t}){const o=setTimeout(()=>{e({type:"CLOSE_DELAY"})},t("closeDelay"));return()=>clearTimeout(o)},trackPositioning:({context:e,prop:t,scope:o})=>(e.get("currentPlacement")||e.set("currentPlacement",t("positioning").placement),Cl(dh(o),()=>uh(o),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),trackDismissableElement:({send:e,scope:t,prop:o})=>ql(()=>{return(e=t).getById(lh(e));var e},{type:"popover",defer:!0,exclude:[dh(t)],onDismiss(){e({type:"CLOSE",src:"interact-outside"})},onInteractOutside:o("onInteractOutside"),onPointerDownOutside:o("onPointerDownOutside"),onFocusOutside(e){e.preventDefault(),o("onFocusOutside")?.(e)}})},actions:{invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setIsPointer({context:e}){e.set("isPointer",!0)},clearIsPointer({context:e}){e.set("isPointer",!1)},reposition({context:e,prop:t,scope:o,event:n}){Cl(dh(o),()=>uh(o),{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(t){e.set("currentPlacement",t.placement)}})},toggleVisibility({prop:e,event:t,send:o}){queueMicrotask(()=>{o({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:t})})}}}};ti(Yl()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]));const mh={className:"chakra-hover-card",slots:ih.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",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}},fh={className:"chakra-list",slots:ap.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"}},vh={className:"chakra-listbox",slots:Pp.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"}},bh={className:"chakra-menu",slots:sp.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"}},xh={className:"chakra-select",slots:hp.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"}},yh={className:"chakra-native-select",slots:lp.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:xh.variants?.variant.outline.trigger},subtle:{field:xh.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:xh.defaultVariants};let wh=new Map,kh=!1;try{kh="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let Sh=!1;try{Sh="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}const Ch={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class _h{format(e){let t="";if(t=kh||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,o){if("auto"===t)return e.format(o);if("never"===t)return e.format(Math.abs(o));{let n=!1;if("always"===t?n=o>0||Object.is(o,0):"exceptZero"===t&&(Object.is(o,-0)||Object.is(o,0)?o=Math.abs(o):n=o>0),n){let t=e.format(-o),n=e.format(o),r=t.replace(n,"").replace(/\u200e|\u061C/,"");return 1!==[...r].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(n,"!!!").replace(r,"+").replace("!!!",n)}return e.format(o)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Sh){var o;let{unit:e,unitDisplay:n="short",locale:r}=this.resolvedOptions();if(!e)return t;let i=null===(o=Ch[e])||void 0===o?void 0:o[n];t+=i[r]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.numberFormatter.formatRange)return this.numberFormatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.format(e)} – ${this.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.numberFormatter.formatRangeToParts)return this.numberFormatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let o=this.numberFormatter.formatToParts(e),n=this.numberFormatter.formatToParts(t);return[...o.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...n.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return kh||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),Sh||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:o}=t;if(o&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${o}`),"unit"===t.style&&!Sh){var n;let{unit:e,unitDisplay:o="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(n=Ch[e])||void 0===n?void 0:n[o]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(wh.has(r))return wh.get(r);let i=new Intl.NumberFormat(e,t);return wh.set(r,i),i}(e,t),this.options=t}}const Ih=new RegExp("^.*\\(.*\\).*$"),Eh=["latn","arab","hanidec","deva","beng","fullwide"];class Ph{parse(e){return zh(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,o){return zh(this.locale,this.options,e).isValidPartialNumber(e,t,o)}getNumberingSystem(e){return zh(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const Oh=new Map;function zh(e,t,o){let n=Th(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(o))for(let r of Eh)if(r!==n.options.numberingSystem){let n=Th(e+(e.includes("-u-")?"-nu-":"-u-nu-")+r,t);if(n.isValidPartialNumber(o))return n}return n}function Th(e,t){let o=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),n=Oh.get(o);return n||(n=new Nh(e,t),Oh.set(o,n)),n}class Nh{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=jh(t,this.symbols.group,"")),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(t=t.replace(this.symbols.minusSign,"-")),t=t.replace(this.symbols.numeral,this.symbols.index),"percent"===this.options.style){let e=t.indexOf("-");t=t.replace("-",""),t=t.replace("+","");let o=t.indexOf(".");-1===o&&(o=t.length),t=t.replace(".",""),t=o-2==0?`0.${t}`:o-2==-1?`0.0${t}`:o-2==-2?"0.00":`${t.slice(0,o-2)}.${t.slice(o-2)}`,e>-1&&(t=`-${t}`)}let o=t?+t:NaN;if(isNaN(o))return NaN;if("percent"===this.options.style){var n,r;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(n=this.options.minimumFractionDigits)&&void 0!==n?n:0)+2,20),maximumFractionDigits:Math.min((null!==(r=this.options.maximumFractionDigits)&&void 0!==r?r:0)+2,20)};return new Ph(this.locale,e).parse(new _h(this.locale,e).format(o))}return"accounting"===this.options.currencySign&&Ih.test(e)&&(o*=-1),o}sanitize(e){return e=e.replace(this.symbols.literals,""),this.symbols.minusSign&&(e=e.replace("-",this.symbols.minusSign)),"arab"===this.options.numberingSystem&&(this.symbols.decimal&&(e=(e=e.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal)),this.symbols.group&&(e=jh(e,".",this.symbols.group))),"’"===this.symbols.group&&e.includes("'")&&(e=jh(e,"'",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&(e=jh(e," ",this.symbols.group),e=jh(e,/\u00A0/g,this.symbols.group)),e}isValidPartialNumber(e,t=-1/0,o=1/0){return e=this.sanitize(e),this.symbols.minusSign&&e.startsWith(this.symbols.minusSign)&&t<0?e=e.slice(this.symbols.minusSign.length):this.symbols.plusSign&&e.startsWith(this.symbols.plusSign)&&o>0&&(e=e.slice(this.symbols.plusSign.length)),!(this.symbols.group&&e.startsWith(this.symbols.group)||this.symbols.decimal&&e.indexOf(this.symbols.decimal)>-1&&0===this.options.maximumFractionDigits||(this.symbols.group&&(e=jh(e,this.symbols.group,"")),e=e.replace(this.symbols.numeral,""),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,"")),0!==e.length))}constructor(e,t={}){var o,n;this.locale=e,1!==t.roundingIncrement&&null!=t.roundingIncrement&&(null==t.maximumFractionDigits&&null==t.minimumFractionDigits?(t.maximumFractionDigits=0,t.minimumFractionDigits=0):null==t.maximumFractionDigits?t.maximumFractionDigits=t.minimumFractionDigits:null==t.minimumFractionDigits&&(t.minimumFractionDigits=t.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(e,t),this.options=this.formatter.resolvedOptions(),this.symbols=function(e,t,o,n){var r,i,a,s;let l=new Intl.NumberFormat(e,{...o,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),u=Vh.map(e=>l.formatToParts(e));var p;let h=null!==(p=null===(r=c.find(e=>"minusSign"===e.type))||void 0===r?void 0:r.value)&&void 0!==p?p:"-",g=null===(i=d.find(e=>"plusSign"===e.type))||void 0===i?void 0:i.value;g||"exceptZero"!==(null==n?void 0:n.signDisplay)&&"always"!==(null==n?void 0:n.signDisplay)||(g="+");let m=null===(a=new Intl.NumberFormat(e,{...o,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(e=>"decimal"===e.type))||void 0===a?void 0:a.value,f=null===(s=c.find(e=>"group"===e.type))||void 0===s?void 0:s.value,v=c.filter(e=>!Rh.has(e.type)).map(e=>Ah(e.value)),b=u.flatMap(e=>e.filter(e=>!Rh.has(e.type)).map(e=>Ah(e.value))),x=[...new Set([...v,...b])].sort((e,t)=>t.length-e.length),y=0===x.length?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${x.join("|")}|[\\p{White_Space}]`,"gu"),w=[...new Intl.NumberFormat(o.locale,{useGrouping:!1}).format(9876543210)].reverse(),k=new Map(w.map((e,t)=>[e,t]));return{minusSign:h,plusSign:g,decimal:m,group:f,literals:y,numeral:new RegExp(`[${w.join("")}]`,"g"),index:e=>String(k.get(e))}}(e,this.formatter,this.options,t),"percent"===this.options.style&&((null!==(o=this.options.minimumFractionDigits)&&void 0!==o?o:0)>18||(null!==(n=this.options.maximumFractionDigits)&&void 0!==n?n:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Rh=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Vh=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function jh(e,t,o){return e.replaceAll?e.replaceAll(t,o):e.split(t).join(o)}function Ah(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Dh=ir("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber"),Fh=(Dh.build(),e=>e.ids?.input??`number-input:${e.id}:input`),Mh=e=>`number-input:${e.id}:cursor`,Wh=e=>e.getById(Fh(e)),Lh=e=>e.getDoc().getElementById(Mh(e));function Bh(e,t,o){const n=e.slice(0,o),r=e.slice(o);let i=0;const a=Math.min(n.length,t.length);for(let e=0;e<a&&n[e]===t[e];e++)i=e+1;let s=0;const l=Math.min(r.length,t.length-i);for(let e=0;e<l;e++){const o=r.length-1-e,n=t.length-1-e;if(r[o]!==t[n])break;s=e+1}if(i>=n.length)return i;if(s>=r.length)return t.length-s;if(i>0)return i;if(s>0)return t.length-s;if(e.length>0){const n=o/e.length;return Math.round(n*t.length)}return t.length}var $h=(e,t)=>{const{prop:o,computed:n}=t;return o("formatOptions")?""===e?Number.NaN:n("parser").parse(e):parseFloat(e)},Hh=(e,t)=>{const{prop:o,computed:n}=t;return Number.isNaN(e)?"":o("formatOptions")?n("formatter").format(e):e.toString()},{choose:Uh,guards:Gh,createMachine:qh}={guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}},{not:Yh,and:Kh}=Gh,Xh=(qh({props({props:e}){const t=((e,t)=>{let o=void 0===e||Number.isNaN(e)?1:e;return"percent"!==t?.style||void 0!==e&&!Number.isNaN(e)||(o=.01),o})(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:()=>"idle",context:({prop:e,bindable:t,getComputed:o})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(t){const n=o(),r=$h(t,{computed:n,prop:e});e("onValueChange")?.({value:t,valueAsNumber:r})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash:e=>e?`x:${e.x}, y:${e.y}`:""})),fieldsetDisabled:t(()=>({defaultValue:!1}))}),computed:{isRtl:({prop:e})=>"rtl"===e("dir"),valueAsNumber:({context:e,computed:t,prop:o})=>$h(e.get("value"),{computed:t,prop:o}),formattedValue:({computed:e,prop:t})=>Hh(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>{return o=e("valueAsNumber"),n=t("min"),Mr(o)<=n;var o,n},isAtMax:({computed:e,prop:t})=>{return o=e("valueAsNumber"),n=t("max"),Mr(o)>=n;var o,n},isOutOfRange:({computed:e,prop:t})=>!Lr(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:Tl(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>((e,t={})=>new Intl.NumberFormat(e,t))(e,t)),parser:Tl(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>((e,t={})=>new Ph(e,t))(e,t))},watch({track:e,action:t,context:o,computed:n,prop:r}){e([()=>o.get("value"),()=>r("locale"),()=>JSON.stringify(r("formatOptions"))],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>o.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:Kh("clampValueOnBlur",Yh("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:Yh("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid","invokeOnValueCommit"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:Uh([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Kh("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})=>"decrement"===(t.hint??e.get("hint")),isIncrementHint:({context:e,event:t})=>"increment"===(t.hint??e.get("hint")),isTouchPointer:({event:e})=>"touch"===e.pointerType},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})=>pa(Wh(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),setupVirtualCursor:({context:e,scope:t})=>((e,t)=>{if(!ra())return((e,t)=>{const o=e.getDoc(),n=o.createElement("div");n.className="scrubber--cursor",n.id=Mh(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:Ni,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML='\n <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">\n <g transform="translate(2 3)">\n <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>\n <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>\n </g>\n </svg>',o.body.appendChild(n)})(e,t),()=>{Lh(e)?.remove()}})(t,e.get("scrubberCursorPoint")),preventTextSelection:({scope:e})=>(e=>{const t=e.getDoc(),o=t.documentElement,n=t.body;return n.style.pointerEvents="none",o.style.userSelect="none",o.style.cursor="ew-resize",()=>{n.style.pointerEvents="",o.style.userSelect="",o.style.cursor="",o.style.length||o.removeAttribute("style"),n.style.length||n.removeAttribute("style")}})(e),trackButtonDisabled:({context:e,scope:t,send:o})=>Ea(((e,t)=>{let o=null;return"increment"===t&&(o=(e=>e.getById((e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`)(e)))(e)),"decrement"===t&&(o=(e=>e.getById((e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`)(e)))(e)),o})(t,e.get("hint")),{attributes:["disabled"],callback(){o({type:"TRIGGER.PRESS_UP",src:"attr"})}}),attachWheelListener({scope:e,send:t,prop:o}){const n=Wh(e);if(n&&e.isActiveElement(n)&&o("allowMouseWheel"))return aa(n,"wheel",function(e){e.preventDefault();const o=-1*Math.sign(e.deltaY);1===o?t({type:"VALUE.INCREMENT"}):-1===o&&t({type:"VALUE.DECREMENT"})},{passive:!1})},activatePointerLock({scope:e}){if(!ra())return function(e,t){const o=e.body,n=()=>!!e.pointerLockElement;if(!("pointerLockElement"in e)&&!("mozPointerLockElement"in e))return;try{o.requestPointerLock()}catch{}const r=[aa(e,"pointerlockchange",function(){t?.(n())},!1),aa(e,"pointerlockerror",function(o){n()&&t?.(!1),console.error("PointerLock error occurred:",o),e.exitPointerLock()},!1)];return()=>{r.forEach(e=>e()),e.exitPointerLock()}}(e.getDoc())},trackMousemove({scope:e,send:t,context:o,computed:n}){const r=e.getDoc();return Pr(aa(r,"mousemove",function(r){const i=o.get("scrubberCursorPoint"),a=n("isRtl"),s=((e,t)=>{const{point:o,isRtl:n,event:r}=t,i=e.getWin(),a=Gr(r.movementX,i.devicePixelRatio),s=Gr(r.movementY,i.devicePixelRatio);let l=a>0?"increment":a<0?"decrement":null;n&&"increment"===l&&(l="decrement"),n&&"decrement"===l&&(l="increment");const c={x:o.x+a,y:o.y+s},d=i.innerWidth,u=Gr(7.5,i.devicePixelRatio);var p;return c.x=((c.x+u)%(p=d)+p)%p-u,{hint:l,point:c}})(e,{point:i,isRtl:a,event:r});s.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:s.hint,point:s.point})},!1),aa(r,"mouseup",function(){t({type:"SCRUBBER.POINTER_UP"})},!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const o=Wh(e);e.isActiveElement(o)||_a(()=>o?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:o,computed:n}){let r=(i=n("valueAsNumber"),a=t.step??o("step"),Jr(Mr(i),"+",a));var i,a;o("allowOverflow")||(r=Br(r,o("min"),o("max"))),e.set("value",Hh(r,{computed:n,prop:o}))},decrement({context:e,event:t,prop:o,computed:n}){let r=(i=n("valueAsNumber"),a=t.step??o("step"),Jr(Mr(i),"-",a));var i,a;o("allowOverflow")||(r=Br(r,o("min"),o("max"))),e.set("value",Hh(r,{computed:n,prop:o}))},setClampedValue({context:e,prop:t,computed:o}){const n=Br(o("valueAsNumber"),t("min"),t("max"));e.set("value",Hh(n,{computed:o,prop:t}))},setRawValue({context:e,event:t,prop:o,computed:n}){let r=$h(t.value,{computed:n,prop:o});o("allowOverflow")||(r=Br(r,o("min"),o("max"))),e.set("value",Hh(r,{computed:n,prop:o}))},setValue({context:e,event:t}){const o=t.target?.value??t.value;e.set("value",o)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:o}){const n=Hh(t("max"),{computed:o,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:o}){const n=Hh(t("min"),{computed:o,prop:t});e.set("value",n)},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:o}){if("INPUT.CHANGE"===o.type)return;const n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnValueCommit({computed:e,prop:t}){t("onValueCommit")?.({value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:o,scope:n}){const r=t.type.endsWith("CHANGE")?e.get("value"):o("formattedValue"),i=Wh(n),a=t.selection??function(e,t){if(e&&t.isActiveElement(e))try{const{selectionStart:t,selectionEnd:o,value:n}=e;if(null==t||null==o)return;return{start:t,end:o,value:n}}catch{return}}(i,n);_a(()=>{la(i,r),function(e,t,o){if(e&&o.isActiveElement(e)){if(!t){const t=e.value.length;return void e.setSelectionRange(t,t)}try{const o=e.value,{start:n,end:r,value:i}=t;if(o===i)return void e.setSelectionRange(n,r);const a=Bh(i,o,n),s=n===r?a:Bh(i,o,r),l=Math.max(0,Math.min(a,o.length)),c=Math.max(l,Math.min(s,o.length));e.setSelectionRange(l,c)}catch{const t=e.value.length;e.setSelectionRange(t,t)}}}(i,a,n)})},setFormattedValue({context:e,computed:t,action:o}){e.set("value",t("formattedValue")),o(["syncInputElement"])},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const o=Lh(t),n=e.get("scrubberCursorPoint");o&&n&&(o.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}}),Yl()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueCommit","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]));ti(Xh);const Jh={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"}},Zh={className:"chakra-number-input",slots:Dh.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...Qn.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:{...Jh,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Jh,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:Qn.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:Qn.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:Qn.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:Qn.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Ht(Qn.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}};var Qh=ir("pinInput").parts("root","label","input","control"),eg=(Qh.build(),e=>e.ids?.root??`pin-input:${e.id}`),tg=e=>{const t=`input[data-ownedby=${CSS.escape(eg(e))}]`;return Ra((e=>e.getById(eg(e)))(e),t)},og=(e,t)=>tg(e)[t],ng=e=>e.getById((e=>e.ids?.hiddenInput??`pin-input:${e.id}:hidden`)(e)),rg=(e,t)=>{e.value=t,e.setAttribute("value",t)},{choose:ig,createMachine:ag}={guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}};function sg(e,t){let o=t;e[0]===t[0]?o=t[1]:e[0]===t[1]&&(o=t[0]);const n=o.split("");return o=n[n.length-1],o??""}function lg(e,t){return Array.from({length:t}).fill("").map((t,o)=>e[o]||t)}ag({props:({props:e})=>({placeholder:"○",otp:!1,type:"numeric",defaultValue:e.count?lg([],e.count):[],...e,translations:{inputLabel:(e,t)=>`pin code ${e+1} of ${t}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t})=>({value:t(()=>({value:e("value"),defaultValue:e("defaultValue"),isEqual:fr,onChange(t){e("onValueChange")?.({value:t,valueAsString:t.join("")})}})),focusedIndex:t(()=>({sync:!0,defaultValue:-1})),count:t(()=>({defaultValue:e("count")}))}),computed:{_value:({context:e})=>lg(e.get("value"),e.get("count")),valueLength:({computed:e})=>e("_value").length,filledValueLength:({computed:e})=>e("_value").filter(e=>""!==e?.trim()).length,isValueComplete:({computed:e})=>e("valueLength")===e("filledValueLength"),valueAsString:({computed:e})=>e("_value").join(""),focusedValue:({computed:e,context:t})=>e("_value")[t.get("focusedIndex")]||""},entry:ig([{guard:"autoFocus",actions:["setInputCount","setFocusIndexToFirst"]},{actions:["setInputCount"]}]),watch({action:e,track:t,context:o,computed:n}){t([()=>o.get("focusedIndex")],()=>{e(["focusInput","selectInputIfNeeded"])}),t([()=>o.get("value").join(",")],()=>{e(["syncInputElements","dispatchInputEvent"])}),t([()=>n("isValueComplete")],()=>{e(["invokeOnComplete","blurFocusedInputIfNeeded"])})},on:{"VALUE.SET":[{guard:"hasIndex",actions:["setValueAtIndex"]},{actions:["setValue"]}],"VALUE.CLEAR":{actions:["clearValue","setFocusIndexToFirst"]}},states:{idle:{on:{"INPUT.FOCUS":{target:"focused",actions:["setFocusedIndex"]}}},focused:{on:{"INPUT.CHANGE":{actions:["setFocusedValue","syncInputValue","setNextFocusedIndex"]},"INPUT.PASTE":{actions:["setPastedValue","setLastValueFocusIndex"]},"INPUT.FOCUS":{actions:["setFocusedIndex"]},"INPUT.BLUR":{target:"idle",actions:["clearFocusedIndex"]},"INPUT.DELETE":{guard:"hasValue",actions:["clearFocusedValue"]},"INPUT.ARROW_LEFT":{actions:["setPrevFocusedIndex"]},"INPUT.ARROW_RIGHT":{actions:["setNextFocusedIndex"]},"INPUT.BACKSPACE":[{guard:"hasValue",actions:["clearFocusedValue"]},{actions:["setPrevFocusedIndex","clearFocusedValue"]}],"INPUT.ENTER":{guard:"isValueComplete",actions:["requestFormSubmit"]},"VALUE.INVALID":{actions:["invokeOnInvalid"]}}}},implementations:{guards:{autoFocus:({prop:e})=>!!e("autoFocus"),hasValue:({context:e})=>""!==e.get("value")[e.get("focusedIndex")],isValueComplete:({computed:e})=>e("isValueComplete"),hasIndex:({event:e})=>void 0!==e.index},actions:{dispatchInputEvent({computed:e,scope:t}){!function(e,t){const{value:o,bubbles:n=!0}=t;if(!e)return;const r=Bi(e);e instanceof r.HTMLInputElement&&(la(e,`${o}`),e.dispatchEvent(new r.Event("input",{bubbles:n})))}(ng(t),{value:e("valueAsString")})},setInputCount({scope:e,context:t,prop:o}){if(o("count"))return;const n=tg(e);t.set("count",n.length)},focusInput({context:e,scope:t}){const o=e.get("focusedIndex");-1!==o&&og(t,o)?.focus({preventScroll:!0})},selectInputIfNeeded({context:e,prop:t,scope:o}){const n=e.get("focusedIndex");t("selectOnFocus")&&-1!==n&&_a(()=>{og(o,n)?.select()})},invokeOnComplete({computed:e,prop:t}){e("isValueComplete")&&t("onValueComplete")?.({value:e("_value"),valueAsString:e("valueAsString")})},invokeOnInvalid({context:e,event:t,prop:o}){o("onValueInvalid")?.({value:t.value,index:e.get("focusedIndex")})},clearFocusedIndex({context:e}){e.set("focusedIndex",-1)},setFocusedIndex({context:e,event:t}){e.set("focusedIndex",t.index)},setValue({context:e,event:t}){const o=lg(t.value,e.get("count"));e.set("value",o)},setFocusedValue({context:e,event:t,computed:o,flush:n}){const r=o("focusedValue"),i=e.get("focusedIndex"),a=sg(r,t.value);n(()=>{e.set("value",Yr(o("_value"),i,a))})},revertInputValue({context:e,computed:t,scope:o}){const n=og(o,e.get("focusedIndex"));rg(n,t("focusedValue"))},syncInputValue({context:e,event:t,scope:o}){const n=e.get("value"),r=og(o,t.index);rg(r,n[t.index])},syncInputElements({context:e,scope:t}){const o=tg(t),n=e.get("value");o.forEach((e,t)=>{rg(e,n[t])})},setPastedValue({context:e,event:t,computed:o,flush:n}){_a(()=>{const r=o("valueAsString"),i=e.get("focusedIndex"),a=o("valueLength"),s=o("filledValueLength"),l=Math.min(i,s),c=lg(`${l>0?r.substring(0,i):""}${t.value.substring(0,a-l)}`.split(""),a);n(()=>{e.set("value",c)})})},setValueAtIndex({context:e,event:t,computed:o}){const n=sg(o("focusedValue"),t.value);e.set("value",Yr(o("_value"),t.index,n))},clearValue({context:e}){const t=Array.from({length:e.get("count")}).fill("");queueMicrotask(()=>{e.set("value",t)})},clearFocusedValue({context:e,computed:t}){const o=e.get("focusedIndex");-1!==o&&e.set("value",Yr(t("_value"),o,""))},setFocusIndexToFirst({context:e}){e.set("focusedIndex",0)},setNextFocusedIndex({context:e,computed:t}){e.set("focusedIndex",Math.min(e.get("focusedIndex")+1,t("valueLength")-1))},setPrevFocusedIndex({context:e}){e.set("focusedIndex",Math.max(e.get("focusedIndex")-1,0))},setLastValueFocusIndex({context:e,computed:t}){_a(()=>{e.set("focusedIndex",Math.min(t("filledValueLength"),t("valueLength")-1))})},blurFocusedInputIfNeeded({context:e,prop:t,scope:o}){t("blurOnComplete")&&_a(()=>{og(o,e.get("focusedIndex"))?.blur()})},requestFormSubmit({computed:e,prop:t,scope:o}){if(!t("name")||!e("isValueComplete"))return;const n=ng(o);n?.form?.requestSubmit()}}}}),ti(Yl()(["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"]));const{variants:cg,defaultVariants:dg}=Qn,ug={className:"chakra-pin-input",slots:Qh.keys(),base:{input:{...Qn.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Ht(cg.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Ht(cg.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:dg},pg={className:"chakra-popover",slots:cp.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",borderLeftWidth:"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"}};var hg=ir("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");hg.build(),Tl(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>new Intl.NumberFormat(e,t));ti(Yl()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]));const gg={slots:hg.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"}},mg={className:"chakra-progress-circle",slots:hg.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"}};var fg=(e=>(e[e.Border=-1]="Border",e[e.Data=0]="Data",e[e.Function=1]="Function",e[e.Position=2]="Position",e[e.Timing=3]="Timing",e[e.Alignment=4]="Alignment",e))(fg||{}),vg=Object.defineProperty,bg=(e,t,o)=>(((e,t,o)=>{t in e?vg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o})(e,"symbol"!=typeof t?t+"":t,o),o);const xg=[1,0],yg=[2,3],wg=[3,2],kg={L:[0,1],M:xg,Q:yg,H:wg},Sg=/^[0-9]*$/,Cg=/^[A-Z0-9 $%*+.\/:-]*$/,_g="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Ig=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Eg=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]];class Pg{constructor(e,t,o,n){if(this.version=e,this.ecc=t,bg(this,"size"),bg(this,"mask"),bg(this,"modules",[]),bg(this,"types",[]),e<1||e>40)throw new RangeError("Version value out of range");if(n<-1||n>7)throw new RangeError("Mask value out of range");this.size=4*e+17;const r=Array.from({length:this.size},()=>!1);for(let e=0;e<this.size;e++)this.modules.push(r.slice()),this.types.push(r.map(()=>0));this.drawFunctionPatterns();const i=this.addEccAndInterleave(o);if(this.drawCodewords(i),-1===n){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const o=this.getPenaltyScore();o<e&&(n=t,e=o),this.applyMask(t)}}this.mask=n,this.applyMask(n),this.drawFormatBits(n)}getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,fg.Timing),this.setFunctionModule(e,6,e%2==0,fg.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let o=0;o<t;o++)for(let n=0;n<t;n++)0===o&&0===n||0===o&&n===t-1||o===t-1&&0===n||this.drawAlignmentPattern(e[o],e[n]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.ecc[1]<<3|e;let o=t;for(let e=0;e<10;e++)o=o<<1^1335*(o>>>9);const n=21522^(t<<10|o);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,zg(n,e));this.setFunctionModule(8,7,zg(n,6)),this.setFunctionModule(8,8,zg(n,7)),this.setFunctionModule(7,8,zg(n,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,zg(n,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,zg(n,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,zg(n,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^7973*(e>>>11);const t=this.version<<12|e;for(let e=0;e<18;e++){const o=zg(t,e),n=this.size-11+e%3,r=Math.floor(e/3);this.setFunctionModule(n,r,o),this.setFunctionModule(r,n,o)}}drawFinderPattern(e,t){for(let o=-4;o<=4;o++)for(let n=-4;n<=4;n++){const r=Math.max(Math.abs(n),Math.abs(o)),i=e+n,a=t+o;i>=0&&i<this.size&&a>=0&&a<this.size&&this.setFunctionModule(i,a,2!==r&&4!==r,fg.Position)}}drawAlignmentPattern(e,t){for(let o=-2;o<=2;o++)for(let n=-2;n<=2;n++)this.setFunctionModule(e+n,t+o,1!==Math.max(Math.abs(n),Math.abs(o)),fg.Alignment)}setFunctionModule(e,t,o,n=fg.Function){this.modules[t][e]=o,this.types[t][e]=n}addEccAndInterleave(e){const t=this.version,o=this.ecc;if(e.length!==Hg(t,o))throw new RangeError("Invalid argument");const n=Eg[o[0]][t],r=Ig[o[0]][t],i=Math.floor($g(t)/8),a=n-i%n,s=Math.floor(i/n),l=[],c=function(e){if(e<1||e>255)throw new RangeError("Degree out of range");const t=[];for(let o=0;o<e-1;o++)t.push(0);t.push(1);let o=1;for(let n=0;n<e;n++){for(let e=0;e<t.length;e++)t[e]=Gg(t[e],o),e+1<t.length&&(t[e]^=t[e+1]);o=Gg(o,2)}return t}(r);for(let t=0,o=0;t<n;t++){const n=e.slice(o,o+s-r+(t<a?0:1));o+=n.length;const i=Ug(n,c);t<a&&n.push(0),l.push(n.concat(i))}const d=[];for(let e=0;e<l[0].length;e++)l.forEach((t,o)=>{(e!==s-r||o>=a)&&d.push(t[e])});return d}drawCodewords(e){if(e.length!==Math.floor($g(this.version)/8))throw new RangeError("Invalid argument");let t=0;for(let o=this.size-1;o>=1;o-=2){6===o&&(o=5);for(let n=0;n<this.size;n++)for(let r=0;r<2;r++){const i=o-r,a=o+1&2?n:this.size-1-n;!this.types[a][i]&&t<8*e.length&&(this.modules[a][i]=zg(e[t>>>3],7-(7&t)),t++)}}}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let o=0;o<this.size;o++){let n;switch(e){case 0:n=(o+t)%2==0;break;case 1:n=t%2==0;break;case 2:n=o%3==0;break;case 3:n=(o+t)%3==0;break;case 4:n=(Math.floor(o/3)+Math.floor(t/2))%2==0;break;case 5:n=o*t%2+o*t%3==0;break;case 6:n=(o*t%2+o*t%3)%2==0;break;case 7:n=((o+t)%2+o*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.types[t][o]&&n&&(this.modules[t][o]=!this.modules[t][o])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let o=!1,n=0;const r=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[t][i]===o?(n++,5===n?e+=3:n>5&&e++):(this.finderPenaltyAddHistory(n,r),o||(e+=40*this.finderPenaltyCountPatterns(r)),o=this.modules[t][i],n=1);e+=40*this.finderPenaltyTerminateAndCount(o,n,r)}for(let t=0;t<this.size;t++){let o=!1,n=0;const r=[0,0,0,0,0,0,0];for(let i=0;i<this.size;i++)this.modules[i][t]===o?(n++,5===n?e+=3:n>5&&e++):(this.finderPenaltyAddHistory(n,r),o||(e+=40*this.finderPenaltyCountPatterns(r)),o=this.modules[i][t],n=1);e+=40*this.finderPenaltyTerminateAndCount(o,n,r)}for(let t=0;t<this.size-1;t++)for(let o=0;o<this.size-1;o++){const n=this.modules[t][o];n===this.modules[t][o+1]&&n===this.modules[t+1][o]&&n===this.modules[t+1][o+1]&&(e+=3)}let t=0;for(const e of this.modules)t=e.reduce((e,t)=>e+(t?1:0),t);const o=this.size*this.size;return e+=10*(Math.ceil(Math.abs(20*t-10*o)/o)-1),e}getAlignmentPatternPositions(){if(1===this.version)return[];{const e=Math.floor(this.version/7)+2,t=32===this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),o=[6];for(let n=this.size-7;o.length<e;n-=t)o.splice(1,0,n);return o}}finderPenaltyCountPatterns(e){const t=e[1],o=t>0&&e[2]===t&&e[3]===3*t&&e[4]===t&&e[5]===t;return(o&&e[0]>=4*t&&e[6]>=t?1:0)+(o&&e[6]>=4*t&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,o){return e&&(this.finderPenaltyAddHistory(t,o),t=0),t+=this.size,this.finderPenaltyAddHistory(t,o),this.finderPenaltyCountPatterns(o)}finderPenaltyAddHistory(e,t){0===t[0]&&(e+=this.size),t.pop(),t.unshift(e)}}function Og(e,t,o){if(t<0||t>31||e>>>t!==0)throw new RangeError("Value out of range");for(let n=t-1;n>=0;n--)o.push(e>>>n&1)}function zg(e,t){return!!(e>>>t&1)}class Tg{constructor(e,t,o){if(this.mode=e,this.numChars=t,this.bitData=o,t<0)throw new RangeError("Invalid argument");this.bitData=o.slice()}getData(){return this.bitData.slice()}}const Ng=[1,10,12,14],Rg=[2,9,11,13],Vg=[4,8,16,16];function jg(e,t){return e[Math.floor((t+7)/17)+1]}function Ag(e){const t=[];for(const o of e)Og(o,8,t);return new Tg(Vg,e.length,t)}function Dg(e){if(!Mg(e))throw new RangeError("String contains non-numeric characters");const t=[];for(let o=0;o<e.length;){const n=Math.min(e.length-o,3);Og(Number.parseInt(e.substring(o,o+n),10),3*n+1,t),o+=n}return new Tg(Ng,e.length,t)}function Fg(e){if(!Wg(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");const t=[];let o;for(o=0;o+2<=e.length;o+=2){let n=45*_g.indexOf(e.charAt(o));n+=_g.indexOf(e.charAt(o+1)),Og(n,11,t)}return o<e.length&&Og(_g.indexOf(e.charAt(o)),6,t),new Tg(Rg,e.length,t)}function Mg(e){return Sg.test(e)}function Wg(e){return Cg.test(e)}function Lg(e,t){let o=0;for(const n of e){const e=jg(n.mode,t);if(n.numChars>=1<<e)return Number.POSITIVE_INFINITY;o+=4+e+n.bitData.length}return o}function Bg(e){e=encodeURI(e);const t=[];for(let o=0;o<e.length;o++)"%"!==e.charAt(o)?t.push(e.charCodeAt(o)):(t.push(Number.parseInt(e.substring(o+1,o+3),16)),o+=2);return t}function $g(e){if(e<1||e>40)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){const o=Math.floor(e/7)+2;t-=(25*o-10)*o-55,e>=7&&(t-=36)}return t}function Hg(e,t){return Math.floor($g(e)/8)-Ig[t[0]][e]*Eg[t[0]][e]}function Ug(e,t){const o=t.map(e=>0);for(const n of e){const e=n^o.shift();o.push(0),t.forEach((t,n)=>o[n]^=Gg(t,e))}return o}function Gg(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let o=0;for(let n=7;n>=0;n--)o=o<<1^285*(o>>>7),o^=(t>>>n&1)*e;return o}var qg=ir("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");qg.build();Tl(({context:e,prop:t})=>[e.get("value"),t("encoding")],([e,t])=>function(e,t){const{ecc:o="L",boostEcc:n=!1,minVersion:r=1,maxVersion:i=40,maskPattern:a=-1,border:s=1}=t||{},l="string"==typeof e?""===(c=e)?[]:Mg(c)?[Dg(c)]:Wg(c)?[Fg(c)]:[Ag(Bg(c))]:Array.isArray(e)?[Ag(e)]:void 0;var c;if(!l)throw new Error("uqr only supports encoding string and binary data, but got: "+typeof e);const d=function(e,t,o=1,n=40,r=-1,i=!0){if(!(1<=o&&o<=n&&n<=40)||r<-1||r>7)throw new RangeError("Invalid value");let a,s;for(a=o;;a++){const o=8*Hg(a,t),r=Lg(e,a);if(r<=o){s=r;break}if(a>=n)throw new RangeError("Data too long")}for(const e of[xg,yg,wg])i&&s<=8*Hg(a,e)&&(t=e);const l=[];for(const t of e){Og(t.mode[0],4,l),Og(t.numChars,jg(t.mode,a),l);for(const e of t.getData())l.push(e)}const c=8*Hg(a,t);Og(0,Math.min(4,c-l.length),l),Og(0,(8-l.length%8)%8,l);for(let e=236;l.length<c;e^=253)Og(e,8,l);const d=Array.from({length:Math.ceil(l.length/8)},()=>0);return l.forEach((e,t)=>d[t>>>3]|=e<<7-(7&t)),new Pg(a,t,d,r)}(l,kg[o],r,i,a,n),u=function(e,t=1){if(!t)return e;const{size:o}=e,n=o+2*t;e.size=n,e.data.forEach(e=>{for(let o=0;o<t;o++)e.unshift(!1),e.push(!1)});for(let o=0;o<t;o++)e.data.unshift(Array.from({length:n},e=>!1)),e.data.push(Array.from({length:n},e=>!1));const r=fg.Border;e.types.forEach(e=>{for(let o=0;o<t;o++)e.unshift(r),e.push(r)});for(let o=0;o<t;o++)e.types.unshift(Array.from({length:n},e=>r)),e.types.push(Array.from({length:n},e=>r));return e}({version:d.version,maskPattern:d.mask,size:d.size,data:d.modules,types:d.types},s);return t?.invert&&(u.data=u.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(u),u}(e,t)),ti(Yl()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]));const Yg={slots:qg.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"}},Kg={className:"chakra-radio-card",slots:up.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:er.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:er.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:er.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:er.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:er.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:er.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:er.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:er.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"}},Xg={className:"chakra-radio-group",slots:dp.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:er.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:er.variants?.variant?.outline},subtle:{itemControl:er.variants?.variant?.subtle},solid:{itemControl:er.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:er.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:er.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:er.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:er.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},Jg={className:"chakra-rating-group",slots:pp.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"}};Object.defineProperty;var Zg=ir("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Zg.build(),ti(Yl()(["dir","getRootNode","ids","id"]));const Qg={className:"chakra-scroll-area",slots:Zg.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"}},em=fu.rename("segment-group"),tm=(em.build(),{className:"chakra-segment-group",slots:em.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",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:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",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"}}),om={className:"chakra-slider",slots:mp.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"}},nm={slots:Ep.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}},rm={className:"chakra-stat",slots:fp.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"}},im={className:"chakra-status",slots:vp.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"}},am={className:"chakra-steps",slots:bp.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"}},sm={slots:xp.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"}},lm={className:"chakra-table",slots:yp.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}"},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"}},cm={slots:kp.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",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-trigger-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-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}},dm=Yn.variants?.variant,um={slots:Sp.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:dm?.subtle},solid:{root:dm?.solid},outline:{root:dm?.outline},surface:{root:dm?.surface}}},defaultVariants:{size:"md",variant:"surface"}};var pm=e=>{if(!e)return;const t=Gi(e),o=Bi(e),n=Li(e),r=()=>{requestAnimationFrame(()=>{let o;e.style.height="auto",o="content-box"===t.boxSizing?e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),"none"!==t.maxHeight&&o>parseFloat(t.maxHeight)?("hidden"===t.overflowY&&(e.style.overflowY="scroll"),o=parseFloat(t.maxHeight)):"hidden"!==t.overflowY&&(e.style.overflowY="hidden"),e.style.height=`${o}px`})};e.addEventListener("input",r),e.form?.addEventListener("reset",r);const i=Object.getPrototypeOf(e),a=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...a,set(){a?.set?.apply(this,arguments),r()}});const s=new o.ResizeObserver(()=>{requestAnimationFrame(()=>r())});s.observe(e);const l=new o.MutationObserver(()=>r());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",r),()=>{e.removeEventListener("input",r),e.form?.removeEventListener("reset",r),n.fonts?.removeEventListener("loadingdone",r),s.disconnect(),l.disconnect()}},hm=ir("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger"),{and:gm,not:mm,or:fm}=(hm.build(),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}}),vm=(ti((gm(fm(mm("isAtMax"),"allowOverflow"),mm("isInputValueEmpty")),mm("hasHighlightedTag"),gm("hasTags","isCaretAtStart"),gm("hasTags","isCaretAtStart"),gm("hasTags","isCaretAtStart",mm("isLastTagHighlighted")),mm("isCaretAtStart"),gm("isTagEditable","hasHighlightedTag"),mm("isCaretAtStart"),mm("isCaretAtStart"),Yl()(["addOnPaste","allowOverflow","autoFocus","blurBehavior","delimiter","dir","disabled","editable","form","getRootNode","id","ids","inputValue","invalid","max","maxLength","name","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onPointerDownOutside","onValueChange","onValueInvalid","required","readOnly","translations","validate","value","defaultValue","defaultInputValue"]))),Yl()(["index","disabled","value"]));ti(vm);const bm={slots:hm.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}},xm={slots:Cp.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",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:"var(--timeline-content-gap)",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:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},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",showLastSeparator:!1}},ym={slots:wp.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"}}}};var wm=ir("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),{and:km,not:Sm}=(wm.build(),function(e,t=Object.is){let o={...e};const n=new Set,r=()=>{n.forEach(e=>e())}}({id:null}),{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}});ti((km("noVisibleTooltip",Sm("hasPointerMoveOpened")),Sm("hasPointerMoveOpened"),Yl()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"])));const Cm={slots:wm.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",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}};var _m=ir("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");(_m.build(),e=>new Ii(e)).empty=()=>new Ii({rootNode:{children:[]}});var{and:Im}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}};Im("isMultipleSelection","moveFocus"),Im("isShiftKey","isMultipleSelection"),Im("isShiftKey","isMultipleSelection"),Im("isBranchFocused","isBranchExpanded"),Im("isShiftKey","isMultipleSelection"),Im("isShiftKey","isMultipleSelection"),Im("isCtrlKey","isMultipleSelection"),Im("isShiftKey","isMultipleSelection"),Im("isCtrlKey","isMultipleSelection"),Im("isShiftKey","isMultipleSelection");var Em=(ti(Yl()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren","canRename","onRenameStart","onBeforeRename","onRenameComplete","scrollToIndexFn"])),Yl()(["node","indexPath"]));ti(Em);const Pm={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"}},Om={flex:"1"},zm={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},Tm={_selected:{layerStyle:"fill.solid"}},Nm={accordion:Op,actionBar:zp,alert:Tp,avatar:Rp,blockquote:Vp,breadcrumb:jp,card:Ap,carousel:Wp,checkbox:$p,checkboxCard:Hp,codeBlock:Up,collapsible:qp,dataList:Xp,dialog:Jp,drawer:Zp,editable:eh,emptyState:th,field:oh,fieldset:nh,fileUpload:rh,hoverCard:mh,list:fh,listbox:vh,menu:bh,nativeSelect:yh,numberInput:Zh,pinInput:ug,popover:pg,progress:gg,progressCircle:mg,radioCard:Kg,radioGroup:Xg,ratingGroup:Jg,scrollArea:Qg,segmentGroup:tm,select:xh,combobox:Kp,slider:om,splitter:nm,stat:rm,steps:am,switch:sm,table:lm,tabs:cm,tag:um,tagsInput:bm,toast:ym,tooltip:Cm,status:im,timeline:xm,colorPicker:Yp,qrCode:Yg,treeView:{slots:_m.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:Pm,item:Pm,itemText:Om,branchText:Om,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:zm,item:zm},solid:{branchControl:Tm,item:Tm}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}},Rm=At.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"}}),Vm=At.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"}}),jm=At.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),Am=At.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),Dm=At.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"}}}),Fm=At.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"}}),Mm=At.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),Wm=At.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)"}}),Lm=At.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"}}),Bm=At.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"}}),$m='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',Hm=At.fonts({heading:{value:`Inter, ${$m}`},body:{value:`Inter, ${$m}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),Um=At.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),Gm=At.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),qm=At.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"}}),Ym=At.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"}}),Km=At.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"}}),Xm=At.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"}}),Jm=At.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%"}}),Zm=At.sizes({...Km,...Ym,...Jm,...Xm}),Qm=At.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}}),ef=go(Hn,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:qn,theme:{breakpoints:{sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},keyframes:{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:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 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"}}},tokens:{aspectRatios:Vm,animations:Rm,blurs:jm,borders:Am,colors:Dm,durations:Mm,easings:Wm,fonts:Hm,fontSizes:Lm,fontWeights:Bm,letterSpacings:Um,lineHeights:Gm,radii:qm,spacing:Ym,sizes:Zm,zIndex:Qm,cursor:Fm},semanticTokens:{colors:or,shadows:rr,radii:nr},recipes:tr,slotRecipes:Nm,textStyles:{"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"}}},layerStyles:{"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:{}}},animationStyles:{"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"}}}}}),tf=(Tn(ef),"#6366f1"),of=Tn(ef,{theme:{tokens:{colors:{purple:{50:{value:"#eef2ff"},100:{value:"#e0e7ff"},200:{value:"#c7d2fe"},300:{value:"#a5b4fc"},400:{value:"#818cf8"},500:{value:"#6366f1"},600:{value:tf},700:{value:"#4f46e5"},800:{value:"#4338ca"},900:{value:"#3730a3"},950:{value:"#1e1b4b"}},colorPalette:{solid:{value:tf}}}}}}),nf=e=>(0,i.jsx)(tt,{value:of,...e}),rf=window.ReactDOM;function af(e={}){const{name:t,strict:o=!0,hookName:n="useContext",providerName:r="Provider",errorMessage:i,defaultValue:a}=e,s=(0,c.createContext)(a);return s.displayName=t,[s.Provider,function e(){const t=(0,c.useContext)(s);if(!t&&o){const t=new Error(i??`${n} returned \`undefined\`. Seems you forgot to wrap component within ${r}`);throw t.name="ContextError",wr(Error,"captureStackTrace")&&yr(Error.captureStackTrace)&&Error.captureStackTrace(t,e),t}return t},s]}const[sf,lf]=af({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),cf=e=>{const{children:t,disabled:o}=e,[n,r]=(0,c.useState)(e.container?.current),a=(0,c.useSyncExternalStore)(uf,()=>!1,()=>!0),{getRootNode:s}=lf();if((0,c.useEffect)(()=>{r(()=>e.container?.current)},[e.container]),a||o)return(0,i.jsx)(i.Fragment,{children:t});const l=n??df(s);return(0,i.jsx)(i.Fragment,{children:c.Children.map(t,e=>(0,rf.createPortal)(e,l))})},df=e=>{const t=e?.(),o=t.getRootNode();return Di(o)?o:Li(t).body},uf=()=>()=>{},[pf,hf]=af({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),gf=e=>(e=>["lazyMount","unmountOnExit"].reduce((e,t)=>{const[o,n]=e,r=t;return void 0!==n[r]&&(o[r]=n[r]),delete n[r],[o,n]},[{},{...e}]))(e),mf=e=>(e=>["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"].reduce((e,t)=>{const[o,n]=e,r=t;return void 0!==n[r]&&(o[r]=n[r]),delete n[r],[o,n]},[{},{...e}]))(e);var ff={props:({props:e})=>({...e,present:!!e.present}),initialState:({prop:e})=>e("present")?"mounted":"unmounted",refs:()=>({node:null,styles:null}),context:({bindable:e})=>({unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}),exit:["cleanupNode"],watch({track:e,prop:t,send:o}){e([()=>t("present")],()=>{o({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)})},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();const o=t.get("node");if(!o)return;const n=new(Bi(o).CustomEvent)("exitcomplete",{bubbles:!1});o.dispatchEvent(n)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Gi(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:o,prop:n})=>{const r=n("present");if(r)return o({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!r&&"hidden"===i?.ownerDocument.visibilityState)return o({type:"UNMOUNT",src:"visibilitychange"});_a(()=>{const n=vf(t.get("styles"));e.set("unmountAnimationName",n),"none"===n||n===e.get("prevAnimationName")||"none"===t.get("styles")?.display||"0s"===t.get("styles")?.animationDuration?o({type:"UNMOUNT",src:"presence.changed"}):o({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{_a(()=>{e.set("prevAnimationName",vf(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:o,prop:n})=>{const r=t.get("node");if(!r)return;const i=o=>{(o.composedPath?.()?.[0]??o.target)===r&&e.set("prevAnimationName",vf(t.get("styles")))},a=i=>{const a=vf(t.get("styles"));ia(i)!==r||a!==e.get("unmountAnimationName")||n("present")||o({type:"UNMOUNT",src:"animationend"})},s=e=>{ia(e)!==r||n("present")||o({type:"UNMOUNT",src:"animationcancel"})};r.addEventListener("animationstart",i),r.addEventListener("animationcancel",s),r.addEventListener("animationend",a);const l=Fa(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",s),r.removeEventListener("animationend",a),Ia(()=>l())}}}}};function vf(e){return e?.animationName||"none"}Yl()(["onExitComplete","present","immediate"]);var bf=void 0!==globalThis.document?c.useLayoutEffect:c.useEffect;function xf(e){const t=e().value??e().defaultValue,o=e().isEqual??Object.is,[n]=(0,c.useState)(t),[r,i]=(0,c.useState)(n),a=void 0!==e().value,s=(0,c.useRef)(r);s.current=a?e().value:r;const l=(0,c.useRef)(s.current);return bf(()=>{l.current=s.current},[r,e().value]),{initial:n,ref:s,get:function(){return a?e().value:r},set(t){(e().sync?rf.flushSync:Ir)(()=>(t=>{const n=l.current,r=yr(t)?t(n):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:r,prev:n}),a||i(r),o(r,n)||e().onChange?.(r,n)})(t))},invoke(t,o){e().onChange?.(t,o)},hash:t=>e().hash?.(t)??String(t)}}xf.cleanup=e=>{(0,c.useEffect)(()=>e,[])},xf.ref=e=>{const t=(0,c.useRef)(e);return{get:()=>t.current,set:e=>{t.current=e}}};var yf=(e,t)=>{const o=(0,c.useRef)(!1),n=(0,c.useRef)(!1);(0,c.useEffect)(()=>{if(o.current&&n.current)return t();n.current=!0},[...(e??[]).map(e=>"function"==typeof e?e():e)]),(0,c.useEffect)(()=>(o.current=!0,()=>{o.current=!1}),[])};function wf(e,t={}){const o=(0,c.useMemo)(()=>{const{id:e,ids:o,getRootNode:n}=t;return function(e){const t=()=>e.getRootNode?.()??document,o=()=>Li(t());return{...e,getRootNode:t,getDoc:o,getWin:()=>o().defaultView??window,getActiveElement:()=>$i(t()),isActiveElement:Fi,getById:e=>t().getElementById(e)}}({id:e,ids:o,getRootNode:n})},[t]),n=(...t)=>{e.debug&&console.log(...t)},r=function(e){const t=kf(e);return function(e){return t.current[e]}}(e.props?.({props:Qr(t),scope:o})??t),i=e.context?.({prop:r,bindable:xf,scope:o,flush:Sf,getContext:()=>s,getComputed:()=>w,getRefs:()=>m,getEvent:()=>h()}),a=kf(i),s={get:e=>a.current?.[e].ref.current,set(e,t){a.current?.[e].set(t)},initial:e=>a.current?.[e].initial,hash(e){const t=a.current?.[e].get();return a.current?.[e].hash(t)}},l=(0,c.useRef)(new Map),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=(0,c.useRef)({type:""}),h=()=>({...p.current,current:()=>p.current,previous:()=>u.current}),g=()=>({...k,matches:(...e)=>e.includes(k.ref.current),hasTag:t=>!!e.states[k.ref.current]?.tags?.includes(t)}),m=function(e){const t=(0,c.useRef)(e);return{get:e=>t.current[e],set(e,o){t.current[e]=o}}}(e.refs?.({prop:r,context:s})??{}),f=()=>({state:g(),context:s,event:h(),prop:r,send:_,action:v,guard:b,track:yf,refs:m,computed:w,flush:Sf,scope:o,choose:y}),v=t=>{const o=yr(t)?t(f()):t;if(!o)return;const n=o.map(t=>{const o=e.implementations?.actions?.[t];return o||ii(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),o});for(const e of n)e?.(f())},b=t=>yr(t)?t(f()):e.implementations?.guards?.[t](f()),x=t=>{const o=yr(t)?t(f()):t;if(!o)return;const n=o.map(t=>{const o=e.implementations?.effects?.[t];return o||ii(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),o}),r=[];for(const e of n){const t=e?.(f());t&&r.push(t)}return()=>r.forEach(e=>e?.())},y=e=>{return(t=e,null==t?[]:Array.isArray(t)?t:[t]).find(e=>{let t=!e.guard;return xr(e.guard)?t=!!b(e.guard):yr(e.guard)&&(t=e.guard(f())),t});var t},w=t=>(ai(e.computed,()=>"[zag-js] No computed object found on machine"),(0,e.computed[t])({context:s,event:h(),prop:r,refs:m,scope:o,computed:w})),k=xf(()=>({defaultValue:e.initialState({prop:r}),onChange(t,o){if(o){const e=l.current.get(o);e?.(),l.current.delete(o)}o&&v(e.states[o]?.exit),v(d.current?.actions);const n=x(e.states[t]?.effects);if(n&&l.current.set(t,n),o===Rl){v(e.entry);const t=x(e.effects);t&&l.current.set(Rl,t)}v(e.states[t]?.entry)}})),S=(0,c.useRef)(void 0),C=(0,c.useRef)(Nl.NotStarted);bf(()=>{queueMicrotask(()=>{const e=C.current===Nl.Started;C.current=Nl.Started,n(e?"rehydrating...":"initializing...");const t=S.current??k.initial;k.invoke(t,e?k.get():Rl)});const t=l.current,o=k.ref.current;return()=>{n("unmounting..."),S.current=o,C.current=Nl.Stopped,t.forEach(e=>e?.()),l.current=new Map,d.current=null,queueMicrotask(()=>{v(e.exit)})}},[]);const _=t=>{queueMicrotask(()=>{if(C.current!==Nl.Started)return;u.current=p.current,p.current=t;let o="ref"in k?k.ref.current:k.get();const r=e.states[o].on?.[t.type]??e.on?.[t.type],i=y(r);if(!i)return;d.current=i;const a=i.target??o;n("transition",t.type,i.target||o,`(${i.actions})`);const s=a!==o;s?(0,rf.flushSync)(()=>k.set(a)):i.reenter&&!s?k.invoke(o,o):v(i.actions??[])})};return e.watch?.(f()),{state:g(),send:_,context:s,prop:r,scope:o,refs:m,computed:w,event:h(),getStatus:()=>C.current}}function kf(e){const t=(0,c.useRef)(e);return t.current=e,t}function Sf(e){queueMicrotask(()=>{(0,rf.flushSync)(()=>e())})}var Cf,_f=(Cf=e=>e,new Proxy({},{get:(e,t)=>"style"===t?e=>({style:e}.style):Cf}));function If(e,t={}){const{sync:o=!1}=t,n=function(e){const t=(0,c.useRef)(e);return t.current=e,t}(e);return(0,c.useCallback)((...e)=>o?queueMicrotask(()=>n.current?.(...e)):n.current?.(...e),[o,n])}const Ef=(e={})=>{const{lazyMount:t,unmountOnExit:o,present:n,skipAnimationOnMount:r=!1,...i}=e,a=(0,c.useRef)(!1),s={...i,present:n,onExitComplete:If(e.onExitComplete)},l=function(e){const{state:t,send:o,context:n}=e,r=t.matches("mounted","unmountSuspended");return{skip:!n.get("initial"),present:r,setNode(e){e&&o({type:"NODE.SET",node:e})},unmount(){o({type:"UNMOUNT"})}}}(wf(ff,s));l.present&&(a.current=!0);const d=!l.present&&!a.current&&t||o&&!l.present&&a.current;return{ref:l.setNode,getPresenceProps:()=>({"data-state":l.skip&&r?void 0:n?"open":"closed",hidden:!l.present}),present:l.present,unmounted:d}},[Pf,Of]=af({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),[zf,Tf]=af({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),[Nf,Rf]=af({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function Vf(...e){return t=>{const o=[];for(const n of e)if("function"==typeof n){const e=n(t);"function"==typeof e&&o.push(e)}else n&&(n.current=t);if(o.length)return()=>{for(const e of o)e()}}}const jf=e=>{const t=(0,c.memo)((0,c.forwardRef)((t,o)=>{const{asChild:n,children:r,...i}=t;if(!n)return(0,c.createElement)(e,{...i,ref:o},r);if(!(0,c.isValidElement)(r))return null;const a=c.Children.only(r),s=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}(a);return(0,c.cloneElement)(a,{...zl(i,a.props),ref:o?Vf(o,s):s})}));return t.displayName=e.displayName||e.name,t},Af=(()=>{const e=new Map;return new Proxy(jf,{apply:(e,t,o)=>jf(o[0]),get(t,o){const n=o;return e.has(n)||e.set(n,jf(n)),e.get(n)}})})(),Df=(0,c.forwardRef)((e,t)=>{const o=Tf(),n=Of(),r=zl({...o.getTriggerProps(),"aria-controls":n.unmounted?void 0:o.getTriggerProps()["aria-controls"]},e);return(0,i.jsx)(Af.button,{...r,ref:t})});Df.displayName="DialogTrigger";const Ff=(0,c.forwardRef)((e,t)=>{const o=zl(Tf().getPositionerProps(),e);return Of().unmounted?null:(0,i.jsx)(Af.div,{...o,ref:t})});Ff.displayName="DialogPositioner";const Mf=(0,c.forwardRef)((e,t)=>{const o=Tf(),n=Of(),r=zl(o.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:(0,i.jsx)(Af.div,{...r,ref:Vf(n.ref,t)})});Mf.displayName="DialogContent";const Wf=(0,c.forwardRef)((e,t)=>{const o=zl(Tf().getDescriptionProps(),e);return(0,i.jsx)(Af.div,{...o,ref:t})});Wf.displayName="DialogDescription";const Lf=(0,c.forwardRef)((e,t)=>{const o=zl(Tf().getTitleProps(),e);return(0,i.jsx)(Af.h2,{...o,ref:t})});Lf.displayName="DialogTitle";const Bf=(0,c.forwardRef)((e,t)=>{const o=zl(Tf().getCloseTriggerProps(),e);return(0,i.jsx)(Af.button,{...o,ref:t})});Bf.displayName="DialogCloseTrigger";const $f=(0,c.forwardRef)((e,t)=>{const o=Tf(),n=hf(),r=Ef({...n,present:o.open}),a=zl(o.getBackdropProps(),r.getPresenceProps(),e);return r.unmounted?null:(0,i.jsx)(Af.div,{...a,ref:Vf(r.ref,t)})});$f.displayName="DialogBackdrop";const Hf=e=>{const{key:t,recipe:o}=e,n=(r=t||o.className||"Component").charAt(0).toUpperCase()+r.slice(1);var r;const[a,s]=Ze({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[l,d]=Ze({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[u,p]=Ze({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function h(e){const{unstyled:n,...r}=e,i=function(e){const{key:t,recipe:o}=e,n=et();return(0,c.useMemo)(()=>{const e=o||(null!=t?n.getSlotRecipe(t):{});return n.sva(structuredClone(e))},[t,o,n])}({key:t,recipe:r.recipe||o}),[a,s]=(0,c.useMemo)(()=>i.splitVariantProps(r),[r,i]);return{styles:(0,c.useMemo)(()=>n?bt:i(a),[n,a,i]),classNames:i.classNameMap,props:s}}return{StylesProvider:a,ClassNamesProvider:l,PropsProvider:u,usePropsContext:p,useRecipeResult:h,withProvider:(e,t,o)=>{const{defaultProps:n,...r}=o??{},s=ht(e,{},r),d=(0,c.forwardRef)((e,r)=>{const d=p(),u=(0,c.useMemo)(()=>Me(n??{},d,e),[d,e]),{styles:g,props:m,classNames:f}=h(u),v=f[t],b=(0,i.jsx)(a,{value:g,children:(0,i.jsx)(l,{value:f,children:(0,i.jsx)(s,{ref:r,...m,css:[g[t],u.css],className:Ge(u.className,v)})})});return o?.wrapElement?.(b,u)??b});return d.displayName=e.displayName||e.name,d},withContext:(e,t,o)=>{const n=ht(e,{},o),r=(0,c.forwardRef)((e,o)=>{const{unstyled:r,...a}=e,l=s(),c=d(),u=c?.[t];return(0,i.jsx)(n,{...a,css:[!r&&t?l[t]:void 0,e.css],ref:o,className:Ge(e.className,u)})});return r.displayName=e.displayName||e.name,r},withRootProvider:function(e,t={}){const{defaultProps:o}=t,n=t=>{const n=p(),r=(0,c.useMemo)(()=>Me(o,n,t),[n,t]),{styles:s,classNames:d,props:u}=h(r);return(0,i.jsx)(a,{value:s,children:(0,i.jsx)(l,{value:d,children:(0,i.jsx)(e,{...u})})})};return n.displayName=e.displayName||e.name,n},useStyles:s,useClassNames:d}},{withRootProvider:Uf,withContext:Gf,useStyles:qf,PropsProvider:Yf}=Hf({key:"dialog"}),Kf=(Uf(e=>{const[t,{value:o,children:n}]=mf(e),[r]=gf(t),a=Ef(zl({present:o.open},t));return(0,i.jsx)(zf,{value:o,children:(0,i.jsx)(pf,{value:r,children:(0,i.jsx)(Pf,{value:a,children:n})})})},{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),Uf(e=>{const[t,{children:o,...n}]=mf(e),[r]=gf(t),a=(e=>{const t=(0,c.useId)(),{getRootNode:o}=lf(),{dir:n}=Rf(),r={id:t,getRootNode:o,dir:n,...e};return function(e,t){const{state:o,send:n,context:r,prop:i,scope:a}=e,s=i("aria-label"),l=o.matches("open");return{open:l,setOpen(e){o.matches("open")!==e&&n({type:e?"OPEN":"CLOSE"})},getTriggerProps:()=>t.button({...dd.trigger.attrs,dir:i("dir"),id:gd(a),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":hd(a),onClick(e){e.defaultPrevented||n({type:"TOGGLE"})}}),getBackdropProps:()=>t.element({...dd.backdrop.attrs,dir:i("dir"),hidden:!l,id:pd(a),"data-state":l?"open":"closed"}),getPositionerProps:()=>t.element({...dd.positioner.attrs,dir:i("dir"),id:ud(a),style:{pointerEvents:l?void 0:"none"}}),getContentProps(){const e=r.get("rendered");return t.element({...dd.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:hd(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":s||void 0,"aria-labelledby":s||!e.title?void 0:md(a),"aria-describedby":e.description?fd(a):void 0})},getTitleProps:()=>t.element({...dd.title.attrs,dir:i("dir"),id:md(a)}),getDescriptionProps:()=>t.element({...dd.description.attrs,dir:i("dir"),id:fd(a)}),getCloseTriggerProps:()=>t.button({...dd.closeTrigger.attrs,dir:i("dir"),id:vd(a),type:"button",onClick(e){e.defaultPrevented||(e.stopPropagation(),n({type:"CLOSE"}))}})}}(wf(wd,r),_f)})(n),s=Ef(zl({present:a.open},t));return(0,i.jsx)(zf,{value:a,children:(0,i.jsx)(pf,{value:r,children:(0,i.jsx)(Pf,{value:s,children:o})})})},{defaultProps:{unmountOnExit:!0,lazyMount:!0}})),Xf=(Gf(Df,"trigger",{forwardAsChild:!0}),Gf(Ff,"positioner",{forwardAsChild:!0})),Jf=Gf(Mf,"content",{forwardAsChild:!0}),Zf=(Gf(Wf,"description",{forwardAsChild:!0}),Gf(Lf,"title",{forwardAsChild:!0}),Gf(Bf,"closeTrigger",{forwardAsChild:!0})),Qf=((0,c.forwardRef)(function(e,t){const o=Tf();return(0,i.jsx)(ht.button,{...e,ref:t,onClick:()=>o.setOpen(!1)})}),Gf($f,"backdrop",{forwardAsChild:!0})),ev=Gf("div","body"),tv=Gf("div","footer"),ov=Gf("div","header"),nv=e=>(0,i.jsx)(ht.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,i.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"})}),rv=e=>(0,i.jsx)(ht.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,i.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"})}),iv=(0,c.forwardRef)(function(e,t){return(0,i.jsx)(Vt,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})});iv.displayName="IconButton";const av=c.forwardRef(function(e,t){return(0,i.jsx)(iv,{variant:"ghost","aria-label":"Close",ref:t,...e,children:e.children??(0,i.jsx)(rv,{})})});av.displayName="CloseButton";const[sv,lv]=af({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),cv=(0,c.forwardRef)((e,t)=>{const o=lv(),n=zl(o?.getInputProps(),e);return(0,i.jsx)(Af.input,{...n,ref:t})});cv.displayName="FieldInput";const{withContext:dv,PropsProvider:uv}=yt({key:"input"}),pv=dv(cv),hv=window.wp.apiFetch;var gv=o.n(hv),mv=ir("toast").parts("group","root","title","description","actionTrigger","closeTrigger").build(),fv=e=>`toast-group:${e}`,vv=(e,t)=>e.getById(`toast-group:${t}`),bv=e=>`toast:${e.id}`,xv=e=>e.getById(bv(e)),yv=e=>`toast:${e.id}:title`,wv=e=>`toast:${e.id}:description`,kv={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function Sv(e,t){return e??kv[t]??kv.DEFAULT}function Cv(e,t){const{prop:o,computed:n,context:r}=e,{offsets:i,gap:a}=o("store").attrs,s=r.get("heights"),l=(e=>"string"==typeof e?{left:e,right:e,bottom:e,top:e}:e)(i),c="rtl"===o("dir"),d=t.replace("-start",c?"-right":"-left").replace("-end",c?"-left":"-right"),u=d.includes("right"),p=d.includes("left"),h={position:"fixed",pointerEvents:n("count")>0?void 0:"none",display:"flex",flexDirection:"column","--gap":`${a}px`,"--first-height":`${s[0]?.height||0}px`,"--viewport-offset-left":l.left,"--viewport-offset-right":l.right,"--viewport-offset-top":l.top,"--viewport-offset-bottom":l.bottom,zIndex:Ni};let g="center";if(u&&(g="flex-end"),p&&(g="flex-start"),h.alignItems=g,d.includes("top")){const e=l.top;h.top=`max(env(safe-area-inset-top, 0px), ${e})`}if(d.includes("bottom")){const e=l.bottom;h.bottom=`max(env(safe-area-inset-bottom, 0px), ${e})`}if(!d.includes("left")){const e=l.right;h.insetInlineEnd=`calc(env(safe-area-inset-right, 0px) + ${e})`}if(!d.includes("right")){const e=l.left;h.insetInlineStart=`calc(env(safe-area-inset-left, 0px) + ${e})`}return h}function _v(e,t){const{prop:o,context:n,computed:r}=e,i=o("parent"),a=i.computed("placement"),{gap:s}=i.prop("store").attrs,[l]=a.split("-"),c=n.get("mounted"),d=n.get("remainingTime"),u=r("height"),p=r("frontmost"),h=!p,g=!o("stacked"),m=o("stacked"),f="loading"===o("type")?Number.MAX_SAFE_INTEGER:d,v=r("heightIndex")*s+r("heightBefore"),b={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${o("removeDelay")}ms`,"--duration":`${f}ms`,"--initial-height":`${u}px`,"--offset":`${v}px`,"--index":o("index"),"--z-index":r("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},x=e=>Object.assign(b,e);return"top"===l?x({top:"0","--sign":"-1","--y":"-100%","--lift":"1"}):"bottom"===l&&x({bottom:"0","--sign":"1","--y":"100%","--lift":"-1"}),c&&(x({"--y":"0","--opacity":"1"}),m&&x({"--y":"calc(var(--lift) * var(--offset))","--height":"var(--initial-height)"})),t||x({"--opacity":"0",pointerEvents:"none"}),h&&g&&(x({"--base-scale":"var(--index) * 0.05 + 1","--y":"calc(var(--lift-amount) * var(--index))","--scale":"calc(-1 * var(--base-scale))","--height":"var(--first-height)"}),t||x({"--y":"calc(var(--sign) * 40%)"})),h&&m&&!t&&x({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),p&&!t&&x({"--y":"calc(var(--lift) * -100%)"}),b}function Iv(e,t){const{computed:o}=e,n={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"};var r;return o("frontmost")&&!t&&(r={height:"calc(var(--initial-height) + 80%)"},Object.assign(n,r)),n}var{guards:Ev,createMachine:Pv}={guards:{and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},createMachine:e=>e,choose:e=>function({choose:t}){return t(e)?.actions}},{and:Ov}=Ev,zv=Pv({props:({props:e})=>({dir:"ltr",id:Or(),...e,store:e.store}),initialState:({prop:e})=>e("store").attrs.overlap?"overlap":"stack",refs:()=>({lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:Ca.create(),dismissableCleanup:void 0}),context:({bindable:e})=>({toasts:e(()=>({defaultValue:[],sync:!0,hash:e=>e.map(e=>e.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}),computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:o}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{o(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl","clearMouseEventTimer"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:Ov("isOverlapping","isPointerOut"),target:"overlap",actions:["collapseToasts","resumeToasts","restoreFocusIfPointerOut"]},{guard:"isPointerOut",target:"stack",actions:["resumeToasts","restoreFocusIfPointerOut"]},{actions:["clearFocusWithin"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight","ignoreMouseEventsTemporarily"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["clearPointerWithin","resumeToasts","collapseToasts"]},{actions:["clearPointerWithin","resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["setPointerWithin","pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["setPointerWithin","pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap"),isPointerOut:({refs:e})=>!e.get("isPointerWithin")},effects:{subscribeToStore:({context:e,prop:t})=>t("store").subscribe(t=>{t.dismiss?e.set("toasts",e=>e.filter(e=>e.id!==t.id)):e.set("toasts",e=>{const o=e.findIndex(e=>e.id===t.id);return-1!==o?[...e.slice(0,o),{...e[o],...t},...e.slice(o+1)]:[t,...e]})}),trackHotKeyPress:({prop:e,send:t})=>aa(document,"keydown",o=>{const{hotkey:n}=e("store").attrs;n.every(e=>o[e]||o.code===e)&&t({type:"DOC.HOTKEY"})},{capture:!0}),trackDocumentVisibility({prop:e,send:t,scope:o}){const{pauseOnPageIdle:n}=e("store").attrs;if(!n)return;const r=o.getDoc();return aa(r,"visibilitychange",()=>{const e="hidden"===r.visibilityState;t({type:e?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:o,scope:n}){const r=t.get("toasts"),i=o("placement"),a=r.length>0;if(!a)return void e.get("dismissableCleanup")?.();if(a&&e.get("dismissableCleanup"))return;const s=function(e,t={}){const{defer:o}=t,n=o?_a:e=>e(),r=[];return r.push(n(()=>{const t=yr(e)?e():e;t?(Hl.addBranch(t),r.push(()=>{Hl.removeBranch(t)})):ii("[@zag-js/dismissable] branch node is `null` or `undefined`")})),()=>{r.forEach(e=>e?.())}}(()=>vv(n,i),{defer:!0});e.set("dismissableCleanup",s)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{vv(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){null!=e?.id&&queueMicrotask(()=>{t.set("heights",t=>t.filter(t=>t.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){!e.get("isFocusWithin")&&t.target&&(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreFocusIfPointerOut({refs:e}){e.get("lastFocusedEl")&&!e.get("isPointerWithin")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},setPointerWithin({refs:e}){e.set("isPointerWithin",!0)},clearPointerWithin({refs:e}){e.set("isPointerWithin",!1),e.get("lastFocusedEl")&&!e.get("isFocusWithin")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null))},clearFocusWithin({refs:e}){e.set("isFocusWithin",!1)},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},ignoreMouseEventsTemporarily({refs:e}){e.get("ignoreMouseTimer").request()},clearMouseEventTimer({refs:e}){e.get("ignoreMouseTimer").cancel()}}}}),{not:Tv}={and:(...e)=>function(t){return e.every(e=>t.guard(e))},or:(...e)=>function(t){return e.some(e=>t.guard(e))},not:e=>function(t){return!t.guard(e)}},Nv={props:({props:e})=>(function(e,t,o){let n=[];for(const o of t)null==e[o]&&n.push(o);if(n.length>0)throw new Error(`[zag-js${o?` > ${o}`:""}] missing required props: ${n.join(", ")}`)}(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:Sv(e.duration,e.type)}),initialState:({prop:e})=>"loading"===e("type")||e("duration")===1/0?"visible:persist":"visible",context:({prop:e,bindable:t})=>({remainingTime:t(()=>({defaultValue:Sv(e("duration"),e("type"))})),createdAt:t(()=>({defaultValue:Date.now()})),mounted:t(()=>({defaultValue:!1})),initialHeight:t(()=>({defaultValue:0}))}),refs:()=>({closeTimerStartTime:Date.now(),lastCloseStartTimerStartTime:0}),computed:{zIndex:({prop:e})=>{const t=e("parent").context.get("toasts"),o=t.findIndex(t=>t.id===e("id"));return t.length-o},height:({prop:e})=>{const t=e("parent").context.get("heights").find(t=>t.id===e("id"));return t?.height??0},heightIndex:({prop:e})=>e("parent").context.get("heights").findIndex(t=>t.id===e("id")),frontmost:({prop:e})=>0===e("index"),heightBefore:({prop:e})=>{const t=e("parent").context.get("heights"),o=t.findIndex(t=>t.id===e("id"));return t.reduce((e,t,n)=>n>=o?e:e+t.height,0)},shouldPersist:({prop:e})=>"loading"===e("type")||e("duration")===1/0},watch({track:e,prop:t,send:o}){e([()=>t("message")],()=>{const e=t("message");e&&o({type:e,src:"programmatic"})}),e([()=>t("type"),()=>t("duration")],()=>{o({type:"UPDATE"})})},on:{UPDATE:[{guard:"shouldPersist",target:"visible:persist",actions:["resetCloseTimer"]},{target:"visible:updating",actions:["resetCloseTimer"]}],MEASURE:{actions:["measureHeight"]}},entry:["setMounted","measureHeight","invokeOnVisible"],effects:["trackHeight"],states:{"visible:updating":{tags:["visible","updating"],effects:["waitForNextTick"],on:{SHOW:{target:"visible"}}},"visible:persist":{tags:["visible","paused"],on:{RESUME:{guard:Tv("isLoadingType"),target:"visible",actions:["setCloseTimer"]},DISMISS:{target:"dismissing"}}},visible:{tags:["visible"],effects:["waitForDuration"],on:{DISMISS:{target:"dismissing"},PAUSE:{target:"visible:persist",actions:["syncRemainingTime"]}}},dismissing:{entry:["invokeOnDismiss"],effects:["waitForRemoveDelay"],on:{REMOVE:{target:"unmounted",actions:["notifyParentToRemove"]}}},unmounted:{entry:["invokeOnUnmount"]}},implementations:{effects:{waitForRemoveDelay:({prop:e,send:t})=>ri(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay")),waitForDuration({send:e,context:t,computed:o}){if(!o("shouldPersist"))return ri(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick:({send:e})=>ri(()=>{e({type:"SHOW",src:"timer"})},0),trackHeight({scope:e,prop:t}){let o;return _a(()=>{const n=xv(e);if(!n)return;const r=new(e.getWin().MutationObserver)(()=>{const e=n.style.height;n.style.height="auto";const o=n.getBoundingClientRect().height;n.style.height=e;const r={id:t("id"),height:o};Rv(t("parent"),r)});r.observe(n,{childList:!0,subtree:!0,characterData:!0}),o=()=>r.disconnect()}),()=>o?.()}},guards:{isLoadingType:({prop:e})=>"loading"===e("type"),shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){_a(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:o}){queueMicrotask(()=>{const n=xv(e);if(!n)return;const r=n.style.height;n.style.height="auto";const i=n.getBoundingClientRect().height;n.style.height=r,o.set("initialHeight",i);const a={id:t("id"),height:i};Rv(t("parent"),a)})},setCloseTimer({refs:e}){e.set("closeTimerStartTime",Date.now())},resetCloseTimer({context:e,refs:t,prop:o}){t.set("closeTimerStartTime",Date.now()),e.set("remainingTime",Sv(o("duration"),o("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",e=>{const o=t.get("closeTimerStartTime"),n=Date.now()-o;return t.set("lastCloseStartTimerStartTime",Date.now()),e-n})},notifyParentToRemove({prop:e}){e("parent").send({type:"TOAST.REMOVE",id:e("id")})},invokeOnDismiss({prop:e,event:t}){e("onStatusChange")?.({status:"dismissing",src:t.src})},invokeOnUnmount({prop:e}){e("onStatusChange")?.({status:"unmounted"})},invokeOnVisible({prop:e}){e("onStatusChange")?.({status:"visible"})}}}};function Rv(e,t){const{id:o,height:n}=t;e.context.set("heights",e=>e.find(e=>e.id===o)?e.map(e=>e.id===o?{...e,height:n}:e):[{id:o,height:n},...e])}var Vv=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,jv={connect:function(e,t){const{context:o,prop:n,send:r,refs:i,computed:a}=e;return{getCount:()=>o.get("toasts").length,getToasts:()=>o.get("toasts"),getGroupProps(o={}){const{label:s="Notifications"}=o,{hotkey:l}=n("store").attrs,c=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),d=a("placement"),[u,p="center"]=d.split("-");return t.element({...mv.group.attrs,dir:n("dir"),tabIndex:-1,"aria-label":`${d} ${s} ${c}`,id:fv(d),"data-placement":d,"data-side":u,"data-align":p,"aria-live":"polite",role:"region",style:Cv(e,d),onMouseEnter(){i.get("ignoreMouseTimer").isActive()||r({type:"REGION.POINTER_ENTER",placement:d})},onMouseMove(){i.get("ignoreMouseTimer").isActive()||r({type:"REGION.POINTER_ENTER",placement:d})},onMouseLeave(){i.get("ignoreMouseTimer").isActive()||r({type:"REGION.POINTER_LEAVE",placement:d})},onFocus(e){r({type:"REGION.FOCUS",target:e.relatedTarget})},onBlur(e){i.get("isFocusWithin")&&!Wi(e.currentTarget,e.relatedTarget)&&queueMicrotask(()=>r({type:"REGION.BLUR"}))}})},subscribe:e=>n("store").subscribe(()=>e(o.get("toasts")))}},machine:zv};const[Av,Dv]=af({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),Fv=(0,c.forwardRef)((e,t)=>{const{toaster:o,children:n,...r}=e,a=Rf(),s=lf(),l=wf(jv.machine,{store:o,id:(0,c.useId)(),dir:a?.dir,getRootNode:s?.getRootNode}),d=jv.connect(l,_f),u=zl(d.getGroupProps(),r);return(0,i.jsx)(Af.div,{...u,ref:t,children:d.getToasts().map((e,t)=>(0,i.jsx)(Mv,{value:e,parent:l,index:t,children:e=>n(e)},e.id))})});Fv.displayName="Toaster";const Mv=e=>{const t=lf(),o={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},n=function(e,t){const{state:o,send:n,prop:r,scope:i,context:a,computed:s}=e,l=o.hasTag("visible"),c=o.hasTag("paused"),d=a.get("mounted"),u=s("frontmost"),p=r("parent").computed("placement"),h=r("type"),g=r("stacked"),m=r("title"),f=r("description"),v=r("action"),[b,x="center"]=p.split("-");return{type:h,title:m,description:f,placement:p,visible:l,paused:c,closable:!!r("closable"),pause(){n({type:"PAUSE"})},resume(){n({type:"RESUME"})},dismiss(){n({type:"DISMISS",src:"programmatic"})},getRootProps:()=>t.element({...mv.root.attrs,dir:r("dir"),id:bv(i),"data-state":l?"open":"closed","data-type":h,"data-placement":p,"data-align":x,"data-side":b,"data-mounted":Ri(d),"data-paused":Ri(c),"data-first":Ri(u),"data-sibling":Ri(!u),"data-stack":Ri(g),"data-overlap":Ri(!g),role:"status","aria-atomic":"true","aria-describedby":f?wv(i):void 0,"aria-labelledby":m?yv(i):void 0,tabIndex:0,style:_v(e,l),onKeyDown(e){e.defaultPrevented||"Escape"==e.key&&(n({type:"DISMISS",src:"keyboard"}),e.preventDefault())}}),getGhostBeforeProps:()=>t.element({"data-ghost":"before",style:Iv(e,l)}),getGhostAfterProps:()=>t.element({"data-ghost":"after",style:{position:"absolute",left:"0",height:"calc(var(--gap) + 2px)",bottom:"100%",width:"100%"}}),getTitleProps:()=>t.element({...mv.title.attrs,id:yv(i)}),getDescriptionProps:()=>t.element({...mv.description.attrs,id:wv(i)}),getActionTriggerProps:()=>t.button({...mv.actionTrigger.attrs,type:"button",onClick(e){e.defaultPrevented||(v?.onClick?.(),n({type:"DISMISS",src:"user"}))}}),getCloseTriggerProps(){return t.button({id:(e=i,`toast${e.id}:close`),...mv.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(e){e.defaultPrevented||n({type:"DISMISS",src:"user"})}});var e}}}(wf(Nv,{...o}),_f);return(0,i.jsx)(Av,{value:n,children:e.children(e.value)})};Mv.displayName="ToastActor";const Wv=(0,c.forwardRef)((e,t)=>{const o=Dv(),n=zl(o.getRootProps(),e);return(0,i.jsxs)("div",{...n,ref:t,children:[(0,i.jsx)("div",{...o.getGhostBeforeProps()}),e.children,(0,i.jsx)("div",{...o.getGhostAfterProps()})]})});Wv.displayName="ToastRoot";const Lv=(0,c.forwardRef)((e,t)=>{const o=zl(Dv().getCloseTriggerProps(),e);return(0,i.jsx)(Af.button,{...o,ref:t})});Lv.displayName="ToastCloseTrigger";const Bv=(0,c.forwardRef)((e,t)=>{const o=zl(Dv().getTitleProps(),e);return(0,i.jsx)(Af.div,{...o,ref:t})});Bv.displayName="ToastTitle";const $v=(0,c.forwardRef)((e,t)=>{const o=zl(Dv().getDescriptionProps(),e);return(0,i.jsx)(Af.div,{...o,ref:t})});$v.displayName="ToastDescription";const Hv=(0,c.forwardRef)((e,t)=>{const o=zl(Dv().getActionTriggerProps(),e);return(0,i.jsx)(Af.button,{...o,ref:t})});Hv.displayName="ToastActionTrigger";const{withProvider:Uv,withContext:Gv,useStyles:qv}=Hf({key:"toast"}),Yv=ht(Fv,{},{forwardAsChild:!0}),Kv=Uv(Wv,"root",{forwardAsChild:!0}),Xv=Gv(Lv,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:(0,i.jsx)(rv,{})}}),Jv=Gv(Bv,"title",{forwardAsChild:!0}),Zv=Gv($v,"description",{forwardAsChild:!0}),Qv=(Gv(Hv,"actionTrigger",{forwardAsChild:!0}),{warning:nv,success:e=>(0,i.jsx)(ht.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,i.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"})}),error:nv}),eb=(0,c.forwardRef)(function(e,t){const{unstyled:o,...n}=e,r=Dv(),a=qv(),s=Qv[r.type];return s?(0,i.jsx)(s,{ref:t,...n,css:[o?void 0:a.indicator,e.css]}):null}),tb=(0,c.forwardRef)(function(e,t){const{direction:o="column",align:n,justify:r,gap:a="0.5rem",wrap:s,children:l,separator:d,className:u,...p}=e,h=(0,c.useMemo)(()=>function(e){const{gap:t,direction:o}=e,n={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{"&":qt(o,e=>n[e])}}({gap:a,direction:o}),[a,o]),g=(0,c.useMemo)(()=>(0,c.isValidElement)(d)?function(e){return c.Children.toArray(e).filter(e=>(0,c.isValidElement)(e))}(l).map((e,t,o)=>{const n=void 0!==e.key?e.key:t,r=d,a=(0,c.cloneElement)(r,{css:[h,r.props.css]});return(0,i.jsxs)(c.Fragment,{children:[e,t===o.length-1?null:a]},n)}):l,[l,d,h]);return(0,i.jsx)(ht.div,{ref:t,display:"flex",alignItems:n,justifyContent:r,flexDirection:o,flexWrap:s,gap:d?void 0:a,className:Ge("chakra-stack",u),...p,children:g})});tb.displayName="Stack";const ob=function(e={}){const t={placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0,...Qr(e)};let o=[],n=[],r=new Set,i=[];const a=e=>(o.forEach(t=>t(e)),e),s=e=>{const o=e.id??`toast:${Or()}`,s=n.find(e=>e.id===o);return r.has(o)&&r.delete(o),s?n=n.map(t=>t.id===o?a({...t,...e,id:o}):t):(e=>{n.length>=t.max?i.push(e):(a(e),n.unshift(e))})({id:o,duration:t.duration,removeDelay:t.removeDelay,type:"info",...e,stacked:!t.overlap,gap:t.gap}),o},l=e=>(r.add(e),e?(o.forEach(t=>t({id:e,dismiss:!0})),n=n.filter(t=>t.id!==e),(()=>{for(;i.length>0&&n.length<t.max;){const e=i.shift();e&&(a(e),n.unshift(e))}})()):(n.forEach(e=>{o.forEach(t=>t({id:e.id,dismiss:!0}))}),n=[],i=[]),e);return{attrs:t,subscribe:e=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)}),create:s,update:(e,t)=>s({id:e,...t}),remove:l,dismiss:e=>{n=null!=e?n.map(t=>t.id===e?a({...t,message:"DISMISS"}):t):n.map(e=>a({...e,message:"DISMISS"}))},error:e=>s({...e,type:"error"}),success:e=>s({...e,type:"success"}),info:e=>s({...e,type:"info"}),warning:e=>s({...e,type:"warning"}),loading:e=>s({...e,type:"loading"}),getVisibleToasts:()=>n.filter(e=>!r.has(e.id)),getCount:()=>n.length,promise:(e,t,o={})=>{if(!t||!t.loading)return void ii("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");const n=s({...o,...t.loading,promise:e,type:"loading"});let r,i=!0;const a=_r(e).then(async e=>{if(r=["resolve",e],Vv(e)&&!e.ok){i=!1;const r=_r(t.error,`HTTP Error! status: ${e.status}`);s({...o,...r,id:n,type:"error"})}else if(void 0!==t.success){i=!1;const r=_r(t.success,e);s({...o,...r,id:n,type:"success"})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){i=!1;const r=_r(t.error,e);s({...o,...r,id:n,type:"error"})}}).finally(()=>{i&&l(n),t.finally?.()});return{id:n,unwrap:()=>new Promise((e,t)=>a.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t))}},pause:e=>{n=null!=e?n.map(t=>t.id===e?a({...t,message:"PAUSE"}):t):n.map(e=>a({...e,message:"PAUSE"}))},resume:e=>{n=null!=e?n.map(t=>t.id===e?a({...t,message:"RESUME"}):t):n.map(e=>a({...e,message:"RESUME"}))},isVisible:e=>!r.has(e)&&!!n.find(t=>t.id===e),isDismissed:e=>r.has(e),expand:()=>{n=n.map(e=>a({...e,stacked:!0}))},collapse:()=>{n=n.map(e=>a({...e,stacked:!1}))}}}({placement:"bottom-end",pauseOnPageIdle:!0}),nb=()=>(0,i.jsx)(cf,{children:(0,i.jsx)(Yv,{toaster:ob,insetInline:{mdDown:"4"},children:e=>(0,i.jsxs)(Kv,{width:{md:"sm"},children:["loading"===e.type?(0,i.jsx)(Pt,{size:"sm",color:"blue.solid"}):(0,i.jsx)(eb,{}),(0,i.jsxs)(tb,{gap:"1",flex:"1",maxWidth:"100%",children:[e.title&&(0,i.jsx)(Jv,{children:e.title}),e.description&&(0,i.jsx)(Zv,{children:e.description})]}),(0,i.jsx)(Xv,{})]})})}),rb=({isOpen:e,onClose:t,onSuccess:o})=>{const[a,s]=(0,n.useState)(""),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(e){const e=document.getElementById("title");e&&s(e.value||"")}},[e]),e?(0,i.jsx)(cf,{children:(0,i.jsxs)(Kf,{open:e,placement:"center",onOpenChange:e=>t(!e.open),children:[(0,i.jsx)(Qf,{}),(0,i.jsx)(Xf,{children:(0,i.jsxs)(Jf,{style:{maxWidth:"600px",margin:0,width:"90%"},children:[(0,i.jsx)(Zf,{asChild:!0,children:(0,i.jsx)(av,{size:"sm"})}),(0,i.jsx)(ov,{fontWeight:"semibold",color:"gray.700",pb:2,children:(0,r.__)("Save a Snippet as a Template","insert-php")}),(0,i.jsxs)(ev,{pt:2,pb:6,children:[(0,i.jsx)(St,{fontSize:"sm",color:"gray.600",mb:4,children:(0,r.__)("Your snippets will be available for export and reuse on any page or website","insert-php")}),(0,i.jsxs)(ft,{gap:2,children:[(0,i.jsx)(pv,{placeholder:(0,r.__)("Snippet title","insert-php"),value:a,onChange:e=>s(e.target.value),size:"lg",flex:"1"}),(0,i.jsx)(Vt,{colorPalette:"purple",size:"lg",px:8,onClick:async()=>{if(a.trim()){c(!0);try{const e=window.winpMetaboxData?.snippetId;if(!e)throw new Error((0,r.__)("Snippet ID not found.","insert-php"));const n=await gv()({path:"/woody/v1/sync",method:"POST",data:{title:a,id:e}});if(n.error)throw new Error(n.error);if(!n?.success)throw new Error(n.message||(0,r.__)("Failed to save template.","insert-php"));ob.create({description:n.message||(0,r.__)("Snippet saved as template successfully.","insert-php"),type:"success"}),o?o():t()}catch(e){ob.create({description:e.message||(0,r.__)("An error occurred while saving the template.","insert-php"),type:"error"})}c(!1)}},disabled:!a.trim()||l,loading:l,children:(0,r.__)("SAVE","insert-php")})]})]})]})})]})}):null};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",ab):ab();const ib=()=>{const[e,t]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),s=window.winpMetaboxData?.isPremium||!1,l=window.winpMetaboxData?.upgradeUrl||"",c=Boolean(window.winpMetaboxData?.isChanged);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(mt,{px:3,py:2,mx:-3,mb:-3,children:s?(0,i.jsx)(mt,{children:o||!c?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(ft,{gap:2,align:"center",justify:"center",py:3,bg:"green.50",borderRadius:"md",children:[(0,i.jsx)("span",{className:"dashicons dashicons-yes-alt",style:{color:"#16a34a",fontSize:"20px"}}),(0,i.jsx)(St,{fontSize:"sm",fontWeight:"medium",color:"green.700",children:(0,r.__)("Snippet saved as template","insert-php")})]}),(0,i.jsx)(St,{fontSize:"xs",color:"gray.500",textAlign:"center",mt:2,children:(0,r.__)("Template is available across all your sites","insert-php")})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(St,{fontSize:"sm",color:"gray.600",my:2,children:(0,r.__)("Save your snippet as a template to use on other sites.","insert-php")}),(0,i.jsxs)(Vt,{colorPalette:"purple",width:"full",onClick:()=>{t(!0)},children:[(0,i.jsx)("span",{className:"dashicons dashicons-cloud-saved",style:{marginRight:"6px",fontSize:"18px"}}),(0,r.__)("Save as Template","insert-php")]}),(0,i.jsx)(St,{fontSize:"xs",color:"gray.500",textAlign:"center",mt:2,children:(0,r.__)("Templates will be available across all your sites","insert-php")})]})}):(0,i.jsxs)(mt,{children:[(0,i.jsxs)(ft,{gap:3,align:"start",mb:3,children:[(0,i.jsx)(mt,{flexShrink:0,width:"36px",height:"36px",bg:"purple.500",borderRadius:"lg",display:"flex",alignItems:"center",justifyContent:"center",children:(0,i.jsx)("span",{className:"dashicons dashicons-cloud-upload",style:{color:"white",fontSize:"18px"}})}),(0,i.jsxs)(mt,{flex:"1",children:[(0,i.jsx)(St,{fontSize:"xs",fontWeight:"semibold",m:0,children:(0,r.__)("Save as Template","insert-php")}),(0,i.jsx)(St,{fontSize:"xs",color:"gray.500",m:0,children:(0,r.__)("Pro feature","insert-php")})]})]}),(0,i.jsx)(St,{color:"gray.700",mb:3,children:(0,r.__)("Sync snippets across all your sites with cloud templates.","insert-php")}),(0,i.jsx)(Vt,{as:"a",href:l,w:"full",size:"md",fontWeight:"semibold",colorScheme:"purple",color:"white",_hover:{color:"white"},target:"_blank",rel:"noopener noreferrer",children:(0,r.__)("Upgrade to Pro","insert-php")})]})}),(0,i.jsx)(rb,{isOpen:e,onClose:()=>{t(!1)},onSuccess:()=>{a(!0),t(!1)}}),(0,i.jsx)(nb,{})]})};function ab(){const e=document.getElementById("winp-cloud-sync-root");e&&(0,n.createRoot)(e).render((0,i.jsx)(nf,{children:(0,i.jsx)(ib,{})}))}const{StylesProvider:sb,ClassNamesProvider:lb,useRecipeResult:cb,withContext:db,useStyles:ub,PropsProvider:pb}=Hf({key:"table"}),hb=(0,c.forwardRef)(function({native:e,...t},o){const{styles:n,props:r,classNames:a}=cb(t),s=(0,c.useMemo)(()=>e?{...n.root,"& thead":n.header,"& tbody":n.body,"& tfoot":n.footer,"& thead th":n.columnHeader,"& tr":n.row,"& td":n.cell,"& caption":n.caption}:n.root,[n,e]);return(0,i.jsx)(lb,{value:a,children:(0,i.jsx)(sb,{value:n,children:(0,i.jsx)(ht.table,{ref:o,...r,css:[s,t.css],className:Ge(a?.root,t.className)})})})}),gb=db("tr","row"),mb=(ht("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}}),db("thead","header")),fb=(db("tfoot","footer"),db("th","columnHeader")),vb=db("td","cell"),bb=(db("caption","caption",{defaultProps:{captionSide:"bottom"}}),db("tbody","body")),xb=(db("colgroup"),db("col"),({isOpen:e,onClose:t,onConfirm:o,selectedCount:n})=>e?(0,i.jsx)(cf,{children:(0,i.jsxs)(Kf,{open:e,placement:"center",onOpenChange:e=>t(!e.open),children:[(0,i.jsx)(Qf,{}),(0,i.jsx)(Xf,{children:(0,i.jsxs)(Jf,{style:{maxWidth:"450px",margin:0,width:"90%"},children:[(0,i.jsx)(Zf,{asChild:!0,children:(0,i.jsx)(av,{size:"sm"})}),(0,i.jsx)(ov,{fontWeight:"semibold",color:"gray.700",pb:2,children:(0,r.__)("Delete Revisions","insert-php")}),(0,i.jsx)(ev,{pt:2,pb:4,children:(0,i.jsx)(St,{fontSize:"sm",color:"gray.600",children:1===n?(0,r.__)("Are you sure you want to delete this revision? This action cannot be undone.","insert-php"):(0,r.__)(`Are you sure you want to delete these ${n} revisions? This action cannot be undone.`,"insert-php")})}),(0,i.jsxs)(tv,{gap:2,children:[(0,i.jsx)(Vt,{variant:"outline",onClick:t,children:(0,r.__)("Cancel","insert-php")}),(0,i.jsx)(Vt,{colorPalette:"red",variant:"outline",onClick:o,children:(0,r.__)("Delete","insert-php")})]})]})})]})}):null),yb=({isOpen:e,onClose:t,onConfirm:o,revisionDate:n})=>e?(0,i.jsx)(cf,{children:(0,i.jsxs)(Kf,{open:e,placement:"center",onOpenChange:e=>t(!e.open),children:[(0,i.jsx)(Qf,{}),(0,i.jsx)(Xf,{children:(0,i.jsxs)(Jf,{style:{maxWidth:"450px",margin:0,width:"90%"},children:[(0,i.jsx)(Zf,{asChild:!0,children:(0,i.jsx)(av,{size:"sm"})}),(0,i.jsx)(ov,{fontWeight:"semibold",color:"gray.700",pb:2,children:(0,r.__)("Restore Revision","insert-php")}),(0,i.jsxs)(ev,{pt:2,pb:4,children:[(0,i.jsx)(St,{fontSize:"sm",color:"gray.600",mb:2,children:(0,r.__)("Are you sure you want to restore this revision?","insert-php")}),n&&(0,i.jsx)(St,{fontSize:"sm",color:"gray.500",fontWeight:"medium",children:n})]}),(0,i.jsxs)(tv,{gap:2,children:[(0,i.jsx)(Vt,{variant:"outline",onClick:t,children:(0,r.__)("Cancel","insert-php")}),(0,i.jsx)(Vt,{colorPalette:"purple",onClick:o,children:(0,r.__)("Restore","insert-php")})]})]})})]})}):null,wb=({revisions:e,disabled:t=!1})=>{const[o,a]=(0,n.useState)([]),[s,l]=(0,n.useState)([]),[c,d]=(0,n.useState)(!1),[u,p]=(0,n.useState)(!1),[h,g]=(0,n.useState)(null);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(mt,{children:[(0,i.jsxs)(hb,{size:"sm",variant:"outline",children:[(0,i.jsx)(mb,{children:(0,i.jsxs)(gb,{children:[(0,i.jsx)(fb,{children:(0,r.__)("Compare","insert-php")}),(0,i.jsx)(fb,{children:(0,r.__)("Revision","insert-php")}),(0,i.jsx)(fb,{children:(0,r.__)("Author","insert-php")}),(0,i.jsx)(fb,{children:(0,r.__)("Delete","insert-php")}),(0,i.jsx)(fb,{children:(0,r.__)("Restore","insert-php")})]})}),(0,i.jsx)(bb,{children:e.length>0?e.map(e=>(0,i.jsxs)(gb,{children:[(0,i.jsx)(vb,{children:(0,i.jsx)("input",{type:"checkbox",name:"winp_rev_compare",value:e.id,checked:o.includes(e.id),onChange:()=>{return o=e.id,void(t||a(e=>e.includes(o)?e.filter(e=>e!==o):e.length<2?[...e,o]:[e[1],o]));var o},disabled:t})}),(0,i.jsx)(vb,{children:(0,i.jsx)(St,{fontSize:"sm",children:e.date})}),(0,i.jsx)(vb,{children:(0,i.jsx)(St,{fontSize:"sm",children:e.author})}),(0,i.jsx)(vb,{children:(0,i.jsx)("input",{type:"checkbox",name:"winp_rev_delete_mark",value:e.id,checked:s.includes(e.id),onChange:()=>{return o=e.id,void(t||l(e=>e.includes(o)?e.filter(e=>e!==o):[...e,o]));var o},disabled:t||!e.canDelete})}),(0,i.jsx)(vb,{children:e.canRestore?(0,i.jsx)(Vt,{variant:"plain",size:"xs",color:"purple.600",onClick:()=>{return o=e.id,void(t||(g(o),p(!0)));var o},disabled:t,_hover:{color:"purple.700",textDecoration:"underline"},children:(0,r.__)("Restore","insert-php")}):(0,i.jsx)(St,{fontSize:"sm",color:"gray.400",children:(0,r.__)("Restore","insert-php")})})]},e.id)):(0,i.jsx)(gb,{children:(0,i.jsx)(vb,{colSpan:5,textAlign:"center",py:4,children:(0,i.jsx)(St,{fontSize:"sm",color:"gray.500",fontStyle:"italic",children:(0,r.__)("No revisions","insert-php")})})})})]}),e.length>0&&(0,i.jsxs)(ft,{gap:2,mt:3,pt:3,borderTop:"1px solid",borderColor:"gray.200",children:[(0,i.jsx)(Vt,{size:"sm",variant:"outline",onClick:()=>{if(t||2!==o.length)return;const e=window.winpMetaboxData?.snippetId;if(!e)return void console.error("Bad snippet id in revisions metabox");const[n,r]=o.sort((e,t)=>e-t),i=new URLSearchParams({post_type:"wbcr-snippets",page:"revisions-wbcr_insert_php",snippet:e,from:n,to:r});window.location.href=`/wp-admin/edit.php?${i.toString()}`},disabled:t||2!==o.length,children:(0,r.__)("Compare","insert-php")}),(0,i.jsx)(Vt,{size:"sm",variant:"outline",colorPalette:"red",onClick:()=>{t||0===s.length||d(!0)},disabled:t||0===s.length,children:(0,r.__)("Delete","insert-php")})]})]}),(0,i.jsx)(xb,{isOpen:c,onClose:()=>d(!1),onConfirm:()=>{const e=window.winpMetaboxData?.snippetId,t=window.winpMetaboxData?.deleteNonce;if(!e||!t)return void console.error("Missing snippet ID or nonce for delete action");const o=s.join(","),n=new URLSearchParams({post_type:"wbcr-snippets",page:"revisions-wbcr_insert_php",action:"delete",ids:o,_wpnonce:t,ref:window.location.href});window.location.href=`/wp-admin/edit.php?${n.toString()}`},selectedCount:s.length}),(0,i.jsx)(yb,{isOpen:u,onClose:()=>{p(!1),g(null)},onConfirm:()=>{if(!h)return;window.winpMetaboxData;const e=window.winpMetaboxData?.restoreNonces?.[h];if(!e)return void console.error("Missing restore nonce for revision:",h);const t=new URLSearchParams({post_type:"wbcr-snippets",page:"revisions-wbcr_insert_php",action:"restore",revision:h,_wpnonce:e});window.location.href=`/wp-admin/edit.php?${t.toString()}`},revisionDate:(()=>{if(!h)return"";const t=e.find(e=>e.id===h);return t?t.date:""})()})]})},kb=()=>{const e=window.winpMetaboxData?.isPremium||!1,t=window.winpMetaboxData?.upgradeUrl||"",o=window.winpMetaboxData?.revisions||[],n=e?o:[{id:123,date:"Jan 10, 2026 @ 14:30",author:"John Doe",canDelete:!0,canRestore:!0},{id:122,date:"Jan 9, 2026 @ 10:15",author:"Jane Smith",canDelete:!0,canRestore:!0},{id:121,date:"Jan 8, 2026 @ 16:45",author:"John Doe",canDelete:!0,canRestore:!0}];return(0,i.jsx)(mt,{px:3,py:2,mx:-3,mb:-3,children:e?(0,i.jsx)(wb,{revisions:n}):(0,i.jsxs)(mt,{position:"relative",children:[(0,i.jsx)(mt,{opacity:.4,pointerEvents:"none",filter:"blur(1px)",children:(0,i.jsx)(wb,{revisions:n,disabled:!0})}),(0,i.jsxs)(mt,{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:10,bg:"white",p:6,borderRadius:"lg",boxShadow:"lg",textAlign:"center",maxWidth:"320px",width:"90%",children:[(0,i.jsxs)(ft,{gap:3,align:"start",mb:3,justify:"center",children:[(0,i.jsx)(mt,{flexShrink:0,width:"36px",height:"36px",bg:"purple.500",borderRadius:"lg",display:"flex",alignItems:"center",justifyContent:"center",children:(0,i.jsx)("span",{className:"dashicons dashicons-backup",style:{color:"white",fontSize:"18px"}})}),(0,i.jsxs)(mt,{flex:"1",textAlign:"left",children:[(0,i.jsx)(St,{fontSize:"xs",fontWeight:"semibold",m:0,children:(0,r.__)("Code Revisions","insert-php")}),(0,i.jsx)(St,{fontSize:"xs",color:"gray.500",m:0,children:(0,r.__)("Pro feature","insert-php")})]})]}),(0,i.jsx)(St,{fontSize:"sm",color:"gray.700",mb:4,children:(0,r.__)("View, compare, and restore previous versions of your code snippets.","insert-php")}),(0,i.jsx)(Vt,{as:"a",href:t,w:"full",size:"md",fontWeight:"semibold",colorScheme:"purple",color:"white",_hover:{color:"white"},target:"_blank",rel:"noopener noreferrer",children:(0,r.__)("Upgrade to Pro","insert-php")})]})]})})};function Sb(){const e=document.getElementById("winp-code-revisions-root");e&&(0,n.createRoot)(e).render((0,i.jsxs)(nf,{children:[(0,i.jsx)(kb,{}),(0,i.jsx)(nb,{})]}))}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Sb):Sb();const Cb=(0,c.forwardRef)((e,t)=>{const o=lv(),n=zl(o?.getSelectProps(),e);return(0,i.jsx)(Af.select,{...n,ref:t})});Cb.displayName="FieldSelect";const[_b,Ib]=Ze({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"<NativeSelectRoot />",strict:!1}),{withProvider:Eb,useClassNames:Pb,useStyles:Ob,PropsProvider:zb}=Hf({key:"nativeSelect"}),Tb=Eb("div","root",{wrapElement(e,t){const o=lv(),n=Boolean(o?.disabled??t.disabled),r=Boolean(o?.invalid??t.invalid);return(0,i.jsx)(_b,{value:{disabled:n,invalid:r},children:e})}}),Nb=ht(Cb,{},{forwardAsChild:!0}),Rb=(0,c.forwardRef)(function(e,t){const{children:o,placeholder:n,unstyled:r,...a}=e,{disabled:s,invalid:l}=Ib(),c=Ob(),d=Pb();return(0,i.jsxs)(Nb,{disabled:s,"data-invalid":Ct(l),...a,ref:t,className:Ge(d.field,e.className),css:[r?void 0:c.field,e.css],children:[n&&(0,i.jsx)("option",{value:"",children:n}),o]})}),[Vb,jb]=af({name:"HoverCardContext",hookName:"useHoverCardContext",providerName:"<HoverCardProvider />"}),Ab=(0,c.forwardRef)((e,t)=>{const o=zl(jb().getTriggerProps(),e);return(0,i.jsx)(Af.button,{...o,ref:t})});Ab.displayName="HoverCardTrigger";const Db=(0,c.forwardRef)((e,t)=>{const o=zl(jb().getPositionerProps(),e);return Of().unmounted?null:(0,i.jsx)(Af.div,{...o,ref:t})});Db.displayName="HoverCardPositioner";const Fb=(0,c.forwardRef)((e,t)=>{const o=jb(),n=Of(),r=zl(o.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:(0,i.jsx)(Af.div,{...r,ref:Vf(n.ref,t)})});Fb.displayName="HoverCardContent";const Mb=(0,c.forwardRef)((e,t)=>{const o=zl(jb().getArrowTipProps(),e);return(0,i.jsx)(Af.div,{...o,ref:t})});Mb.displayName="HoverCardArrowTip";const Wb=(0,c.forwardRef)((e,t)=>{const o=zl(jb().getArrowProps(),e);return(0,i.jsx)(Af.div,{...o,ref:t})});Wb.displayName="HoverCardArrow";const{withRootProvider:Lb,withContext:Bb,useStyles:$b,PropsProvider:Hb}=Hf({key:"hoverCard"}),Ub=(Lb(e=>{const[t,{value:o,children:n}]=mf(e),r=Ef(zl({present:o.open},t));return(0,i.jsx)(Vb,{value:o,children:(0,i.jsx)(Pf,{value:r,children:n})})}),Lb(e=>{const[t,{children:o,...n}]=mf(e),r=(e=>{const t=(0,c.useId)(),{getRootNode:o}=lf(),{dir:n}=Rf(),r={id:t,dir:n,getRootNode:o,...e};return function(e,t){const{state:o,send:n,prop:r,context:i,scope:a}=e,s=o.hasTag("open"),l=function(e={}){const{placement:t,sameWidth:o,fitViewport:n,strategy:r="absolute"}=e;return{arrow:{position:"absolute",width:ul.arrowSize.reference,height:ul.arrowSize.reference,[ul.arrowSizeHalf.variable]:`calc(${ul.arrowSize.reference} / 2)`,[ul.arrowOffset.variable]:`calc(${ul.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?_l[t.split("-")[0]]:void 0,background:ul.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:r,isolation:"isolate",minWidth:o?void 0:"max-content",width:o?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}({...r("positioning"),placement:i.get("currentPlacement")});return{open:s,setOpen(e){o.hasTag("open")!==e&&(r("disabled")||n({type:e?"OPEN":"CLOSE"}))},reposition(e={}){n({type:"POSITIONING.SET",options:e})},getArrowProps(){return t.element({id:(e=a,e.ids?.arrow??`hover-card:${e.id}:arrow`),...ah.arrow.attrs,dir:r("dir"),style:l.arrow});var e},getArrowTipProps:()=>t.element({...ah.arrowTip.attrs,dir:r("dir"),style:l.arrowTip}),getTriggerProps:()=>t.element({...ah.trigger.attrs,dir:r("dir"),"data-placement":i.get("currentPlacement"),id:sh(a),"data-state":s?"open":"closed",onPointerEnter(e){"touch"!==e.pointerType&&(r("disabled")||n({type:"POINTER_ENTER",src:"trigger"}))},onPointerLeave(e){"touch"!==e.pointerType&&(r("disabled")||n({type:"POINTER_LEAVE",src:"trigger"}))},onFocus(){r("disabled")||n({type:"TRIGGER_FOCUS"})},onBlur(){r("disabled")||n({type:"TRIGGER_BLUR"})}}),getPositionerProps:()=>t.element({id:ch(a),...ah.positioner.attrs,dir:r("dir"),style:l.floating}),getContentProps:()=>t.element({...ah.content.attrs,dir:r("dir"),id:lh(a),hidden:!s,tabIndex:-1,"data-state":s?"open":"closed","data-placement":i.get("currentPlacement"),onPointerEnter(e){"touch"!==e.pointerType&&(r("disabled")||n({type:"POINTER_ENTER",src:"content"}))},onPointerLeave(e){"touch"!==e.pointerType&&(r("disabled")||n({type:"POINTER_LEAVE",src:"content"}))}})}}(wf(gh,r),_f)})(n),a=Ef(zl({present:r.open},t));return(0,i.jsx)(Vb,{value:r,children:(0,i.jsx)(Pf,{value:a,children:o})})})),Gb=Bb(Ab,"trigger",{forwardAsChild:!0}),qb=Bb(Db,"positioner",{forwardAsChild:!0}),Yb=Bb(Fb,"content",{forwardAsChild:!0}),Kb=Bb(Mb,"arrowTip",{forwardAsChild:!0}),Xb=Bb(Wb,"arrow",{forwardAsChild:!0,defaultProps:{children:(0,i.jsx)(Kb,{})}}),[Jb,Zb]=af({name:"RadioGroupContext",hookName:"useRadioGroupContext",providerName:"<RadioGroupProvider />"}),Qb=(0,c.forwardRef)((e,t)=>{const[{value:o},n]=((e,t)=>t.reduce((e,t)=>{const[o,n]=e,r=t;return void 0!==n[r]&&(o[r]=n[r]),delete n[r],[o,n]},[{},{...e}]))(e,["value"]),r=zl(o.getRootProps(),n);return(0,i.jsx)(Jb,{value:o,children:(0,i.jsx)(Af.div,{...r,ref:t})})});Qb.displayName="RadioGroupRootProvider";const[ex,tx]=af({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),ox=(0,c.forwardRef)((e,t)=>{const[o,n]=((e,t)=>t.reduce((e,t)=>{const[o,n]=e,r=t;return void 0!==n[r]&&(o[r]=n[r]),delete n[r],[o,n]},[{},{...e}]))(e,["defaultValue","disabled","form","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value"]),r=(e=>{const t=tx(),o=(0,c.useId)(),{getRootNode:n}=lf(),{dir:r}=Rf(),i={id:o,ids:{label:t?.ids?.legend},dir:r,disabled:t?.disabled,invalid:t?.invalid,getRootNode:n,...e};return function(e,t){const{context:o,send:n,computed:r,prop:i,scope:a}=e,s=r("isDisabled"),l=i("invalid"),c=i("readOnly");function d(e){return{value:e.value,invalid:!!e.invalid||!!l,disabled:!!e.disabled||s,checked:o.get("value")===e.value,focused:o.get("focusedValue")===e.value,focusVisible:o.get("focusVisibleValue")===e.value,hovered:o.get("hoveredValue")===e.value,active:o.get("activeValue")===e.value}}function u(e){const t=d(e);return{"data-focus":Ri(t.focused),"data-focus-visible":Ri(t.focusVisible),"data-disabled":Ri(t.disabled),"data-readonly":Ri(c),"data-state":t.checked?"checked":"unchecked","data-hover":Ri(t.hovered),"data-invalid":Ri(t.invalid),"data-orientation":i("orientation"),"data-ssr":Ri(o.get("ssr"))}}const p=()=>{const e=(t=a,Su(t)?.querySelector("input:not(:disabled):checked")??(e=>Su(e)?.querySelector("input:not(:disabled)"))(a));var t;e?.focus()};return{focus:p,value:o.get("value"),setValue(e){n({type:"SET_VALUE",value:e,isTrusted:!1})},clearValue(){n({type:"SET_VALUE",value:null,isTrusted:!1})},getRootProps:()=>t.element({...vu.root.attrs,role:"radiogroup",id:bu(a),"aria-labelledby":xu(a),"aria-required":i("required")||void 0,"aria-disabled":s||void 0,"aria-readonly":c||void 0,"data-orientation":i("orientation"),"data-disabled":Ri(s),"data-invalid":Ri(l),"data-required":Ri(i("required")),"aria-orientation":i("orientation"),dir:i("dir"),style:{position:"relative"}}),getLabelProps:()=>t.element({...vu.label.attrs,dir:i("dir"),"data-orientation":i("orientation"),"data-disabled":Ri(s),"data-invalid":Ri(l),"data-required":Ri(i("required")),id:xu(a),onClick:p}),getItemState:d,getItemProps(e){const o=d(e);return t.label({...vu.item.attrs,dir:i("dir"),id:yu(a,e.value),htmlFor:wu(a,e.value),...u(e),onPointerMove(){o.disabled||o.hovered||n({type:"SET_HOVERED",value:e.value,hovered:!0})},onPointerLeave(){o.disabled||n({type:"SET_HOVERED",value:null})},onPointerDown(t){o.disabled||0===t.button&&(o.focused&&"mouse"===t.pointerType&&t.preventDefault(),n({type:"SET_ACTIVE",value:e.value,active:!0}))},onPointerUp(){o.disabled||n({type:"SET_ACTIVE",value:null})},onClick(){var t,n;!o.disabled&&ra()&&(t=a,n=e.value,t.getById(wu(t,n)))?.focus()}})},getItemTextProps(e){return t.element({...vu.itemText.attrs,dir:i("dir"),id:(o=a,n=e.value,o.ids?.itemLabel?.(n)??`radio-group:${o.id}:radio:label:${n}`),...u(e)});var o,n},getItemControlProps(e){const o=d(e);return t.element({...vu.itemControl.attrs,dir:i("dir"),id:(n=a,r=e.value,n.ids?.itemControl?.(r)??`radio-group:${n.id}:radio:control:${r}`),"data-active":Ri(o.active),"aria-hidden":!0,...u(e)});var n,r},getItemHiddenInputProps(e){const o=d(e);return t.input({"data-ownedby":bu(a),id:wu(a,e.value),type:"radio",name:i("name")||i("id"),form:i("form"),value:e.value,required:i("required"),"aria-invalid":o.invalid||void 0,onClick(t){c?t.preventDefault():t.currentTarget.checked&&n({type:"SET_VALUE",value:e.value,isTrusted:!0})},onBlur(){n({type:"SET_FOCUSED",value:null,focused:!1,focusVisible:!1})},onFocus(){const t=Ld();n({type:"SET_FOCUSED",value:e.value,focused:!0,focusVisible:t})},onKeyDown(t){t.defaultPrevented||" "===t.key&&n({type:"SET_ACTIVE",value:e.value,active:!0})},onKeyUp(e){e.defaultPrevented||" "===e.key&&n({type:"SET_ACTIVE",value:null})},disabled:o.disabled||c,defaultChecked:o.checked,style:La})},getIndicatorProps(){const e=o.get("indicatorRect"),n=null==e||0===e.width&&0===e.height&&0===e.x&&0===e.y;return t.element({id:ku(a),...vu.indicator.attrs,dir:i("dir"),hidden:null==o.get("value")||n,"data-disabled":Ri(s),"data-orientation":i("orientation"),style:{"--transition-property":"left, top, width, height","--left":Zr(e?.x),"--top":Zr(e?.y),"--width":Zr(e?.width),"--height":Zr(e?.height),position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:"var(--transition-duration, 150ms)",transitionTimingFunction:"var(--transition-timing-function)",["horizontal"===i("orientation")?"left":"top"]:"horizontal"===i("orientation")?"var(--left)":"var(--top)"}})}}}(wf(Iu,i),_f)})(o),a=zl(r.getRootProps(),n);return(0,i.jsx)(Jb,{value:r,children:(0,i.jsx)(Af.div,{...a,ref:t})})});ox.displayName="RadioGroupRoot";const nx=(0,c.forwardRef)((e,t)=>{const o=zl(Zb().getLabelProps(),e);return(0,i.jsx)(Af.label,{...o,ref:t})});nx.displayName="RadioGroupLabel";const[rx,ix]=af({name:"RadioGroupItemContext",hookName:"useRadioGroupItemContext",providerName:"<RadioGroupItemProvider />"}),[ax,sx]=af({name:"RadioGroupItemPropsContext",hookName:"useRadioGroupItemPropsContext",providerName:"<RadioGroupItemPropsProvider />"}),lx=(0,c.forwardRef)((e,t)=>{const[o,n]=((e,t)=>t.reduce((e,t)=>{const[o,n]=e,r=t;return void 0!==n[r]&&(o[r]=n[r]),delete n[r],[o,n]},[{},{...e}]))(e,["value","disabled","invalid"]),r=Zb(),a=zl(r.getItemProps(o),n),s=r.getItemState(o);return(0,i.jsx)(rx,{value:s,children:(0,i.jsx)(ax,{value:o,children:(0,i.jsx)(Af.label,{...a,ref:t})})})});lx.displayName="RadioGroupItem";const cx=(0,c.forwardRef)((e,t)=>{const o=Zb(),n=sx(),r=zl(o.getItemTextProps(n),e);return(0,i.jsx)(Af.span,{...r,ref:t})});cx.displayName="RadioGroupItemText";const dx=(0,c.forwardRef)((e,t)=>{const o=Zb(),n=sx(),r=zl(o.getItemControlProps(n),e);return(0,i.jsx)(Af.div,{...r,ref:t})});dx.displayName="RadioGroupItemControl";const ux=e=>e.children(ix()),px=(0,c.forwardRef)((e,t)=>{const o=Zb(),n=sx(),r=zl(o.getItemHiddenInputProps(n),e);return(0,i.jsx)(Af.input,{...r,ref:t})});px.displayName="RadioGroupItemHiddenInput";const hx=(0,c.forwardRef)(function(e,t){const o=xt({key:"radiomark",recipe:e.recipe}),[n,r]=o.splitVariantProps(e),{checked:a,disabled:s,unstyled:l,children:c,...d}=r,u=l?vt:o(n),p={ref:t,"data-checked":Ct(a),"data-disabled":Ct(s),...d,css:[u,e.css]};return(0,i.jsx)(ht.span,{...p,children:a&&(0,i.jsx)("span",{className:"dot"})})});hx.displayName="Radiomark";const{withProvider:gx,withContext:mx,useStyles:fx,PropsProvider:vx}=Hf({key:"radioGroup"}),bx=(gx(Qb,"root",{forwardAsChild:!0}),gx(ox,"root",{forwardAsChild:!0})),xx=(mx(nx,"label",{forwardAsChild:!0}),mx(lx,"item",{forwardAsChild:!0})),yx=mx(cx,"itemText",{forwardAsChild:!0}),wx=mx(dx,"itemControl",{forwardAsChild:!0}),kx=((0,c.forwardRef)(function(e,t){const o=fx();return(0,i.jsx)(ux,{children:n=>(0,i.jsx)(dx,{asChild:!0,children:(0,i.jsx)(hx,{ref:t,unstyled:!0,...e,checked:n.checked,disabled:n.disabled,css:[o.itemControl,e.css]})})})}),px),Sx=[{value:"seconds",label:(0,r.__)("Second(s)","insert-php")},{value:"minutes",label:(0,r.__)("Minutes(s)","insert-php")},{value:"hours",label:(0,r.__)("Hours(s)","insert-php")},{value:"days",label:(0,r.__)("Day(s)","insert-php")},{value:"weeks",label:(0,r.__)("Week(s)","insert-php")},{value:"months",label:(0,r.__)("Month(s)","insert-php")},{value:"years",label:(0,r.__)("Year(s)","insert-php")}],Cx=({value:e,onChange:t,operator:o})=>{const[a,s]=(0,n.useState)("relative"),[l,c]=(0,n.useState)({unitsCount:"",units:"days"}),[d,u]=(0,n.useState)(""),[p,h]=(0,n.useState)({type:"relative",unitsCount:"",units:"days"}),[g,m]=(0,n.useState)({type:"relative",unitsCount:"",units:"days"});(0,n.useEffect)(()=>{e&&("between"===o&&e.range?(e.start&&("relative"===e.start.type?h({type:"relative",unitsCount:e.start.unitsCount||"",units:e.start.units||"days"}):h({type:"absolute",timestamp:e.start})),e.end&&("relative"===e.end.type?m({type:"relative",unitsCount:e.end.unitsCount||"",units:e.end.units||"days"}):m({type:"absolute",timestamp:e.end}))):"relative"===e.type?(s("relative"),c({unitsCount:e.unitsCount||"",units:e.units||"days"})):"number"==typeof e&&(s("absolute"),u(new Date(e).toISOString().split("T")[0])))},[]);const f=(e,o)=>{const n={...l,[e]:o};c(n),t&&t({type:"relative",unitsCount:n.unitsCount,units:n.units,isValid:""!==n.unitsCount&&!isNaN(n.unitsCount)&&Number(n.unitsCount)>0})},v=(e,o,n)=>{if("start"===e){const e={...p,[o]:n};if(h(e),t){const o="relative"===e.type?""!==e.unitsCount&&!isNaN(e.unitsCount)&&Number(e.unitsCount)>0:""!==e.timestamp&&void 0!==e.timestamp,n="relative"===g.type?""!==g.unitsCount&&!isNaN(g.unitsCount)&&Number(g.unitsCount)>0:""!==g.timestamp&&void 0!==g.timestamp;t({range:!0,start:e,end:g,isValid:o&&n})}}else{const e={...g,[o]:n};if(m(e),t){const o="relative"===p.type?""!==p.unitsCount&&!isNaN(p.unitsCount)&&Number(p.unitsCount)>0:""!==p.timestamp&&void 0!==p.timestamp,n="relative"===e.type?""!==e.unitsCount&&!isNaN(e.unitsCount)&&Number(e.unitsCount)>0:""!==e.timestamp&&void 0!==e.timestamp;t({range:!0,start:p,end:e,isValid:o&&n})}}};if("between"===o){const e=p.type||"relative",o=e=>{const o={...p,type:e},n={...g,type:e};h(o),m(n),t&&t({range:!0,start:o,end:n})};return(0,i.jsxs)(ft,{gap:2,alignItems:"center",flex:"1",wrap:"wrap",children:[(0,i.jsx)(bx,{value:e,onValueChange:e=>o(e.value),size:"xs",children:(0,i.jsxs)(ft,{gap:2,children:[(0,i.jsxs)(xx,{value:"relative",children:[(0,i.jsx)(kx,{}),(0,i.jsx)(wx,{}),(0,i.jsx)(yx,{fontSize:"xs",children:(0,r.__)("Relative","insert-php")})]}),(0,i.jsxs)(xx,{value:"absolute",children:[(0,i.jsx)(kx,{}),(0,i.jsx)(wx,{}),(0,i.jsx)(yx,{fontSize:"xs",children:(0,r.__)("Absolute","insert-php")})]})]})}),"relative"===e?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(St,{fontSize:"xs",color:"gray.600",fontWeight:"medium",children:(0,r.__)("From","insert-php")}),(0,i.jsx)(pv,{size:"sm",type:"number",value:p.unitsCount||"",onChange:e=>v("start","unitsCount",e.target.value),placeholder:(0,r.__)("Start","insert-php"),width:"70px",min:"1",borderColor:p.unitsCount&&""!==p.unitsCount?void 0:"red.500",_focus:p.unitsCount&&""!==p.unitsCount?void 0:{borderColor:"red.500",boxShadow:"0 0 0 1px var(--chakra-colors-red-500)"}}),(0,i.jsx)(Tb,{size:"sm",width:"90px",children:(0,i.jsx)(Rb,{value:p.units||"days",onChange:e=>v("start","units",e.target.value),children:Sx.map(e=>(0,i.jsx)("option",{value:e.value,children:e.label},e.value))})}),(0,i.jsx)(St,{fontSize:"xs",color:"gray.600",children:(0,r.__)("ago","insert-php")}),(0,i.jsx)(St,{fontSize:"xs",color:"gray.600",fontWeight:"medium",children:(0,r.__)("to","insert-php")}),(0,i.jsx)(pv,{size:"sm",type:"number",value:g.unitsCount||"",onChange:e=>v("end","unitsCount",e.target.value),placeholder:(0,r.__)("End","insert-php"),width:"70px",min:"1",borderColor:g.unitsCount&&""!==g.unitsCount?void 0:"red.500",_focus:g.unitsCount&&""!==g.unitsCount?void 0:{borderColor:"red.500",boxShadow:"0 0 0 1px var(--chakra-colors-red-500)"}}),(0,i.jsx)(Tb,{size:"sm",width:"90px",children:(0,i.jsx)(Rb,{value:g.units||"days",onChange:e=>v("end","units",e.target.value),children:Sx.map(e=>(0,i.jsx)("option",{value:e.value,children:e.label},e.value))})}),(0,i.jsx)(St,{fontSize:"xs",color:"gray.600",children:(0,r.__)("ago","insert-php")})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(St,{fontSize:"xs",color:"gray.600",fontWeight:"medium",children:(0,r.__)("from","insert-php")}),(0,i.jsx)(pv,{size:"sm",type:"date",value:p.timestamp?new Date(p.timestamp).toISOString().split("T")[0]:"",onChange:e=>v("start","timestamp",e.target.value?new Date(e.target.value).getTime():""),maxWidth:"160px",borderColor:p.timestamp&&""!==p.timestamp?void 0:"red.500",_focus:p.timestamp&&""!==p.timestamp?void 0:{borderColor:"red.500",boxShadow:"0 0 0 1px var(--chakra-colors-red-500)"}}),(0,i.jsx)(St,{fontSize:"xs",color:"gray.600",fontWeight:"medium",children:(0,r.__)("to","insert-php")}),(0,i.jsx)(pv,{size:"sm",type:"date",value:g.timestamp?new Date(g.timestamp).toISOString().split("T")[0]:"",onChange:e=>v("end","timestamp",e.target.value?new Date(e.target.value).getTime():""),maxWidth:"160px",borderColor:g.timestamp&&""!==g.timestamp?void 0:"red.500",_focus:g.timestamp&&""!==g.timestamp?void 0:{borderColor:"red.500",boxShadow:"0 0 0 1px var(--chakra-colors-red-500)"}})]})]})}return(0,i.jsxs)(ft,{gap:2,alignItems:"center",flex:"1",wrap:"wrap",children:[(0,i.jsx)(bx,{value:a,onValueChange:e=>(e=>{if(s(e),"relative"===e)t&&t({type:"relative",unitsCount:l.unitsCount,units:l.units});else if(d&&t){const e=new Date(d).getTime();t(e)}})(e.value),size:"xs",children:(0,i.jsxs)(ft,{gap:2,children:[(0,i.jsxs)(xx,{value:"relative",children:[(0,i.jsx)(kx,{}),(0,i.jsx)(wx,{}),(0,i.jsx)(yx,{fontSize:"xs",children:(0,r.__)("Relative","insert-php")})]}),(0,i.jsxs)(xx,{value:"absolute",children:[(0,i.jsx)(kx,{}),(0,i.jsx)(wx,{}),(0,i.jsx)(yx,{fontSize:"xs",children:(0,r.__)("Absolute","insert-php")})]})]})}),"relative"===a?(0,i.jsxs)(ft,{gap:1,alignItems:"center",flex:"1",children:[(0,i.jsx)(pv,{size:"sm",type:"number",value:l.unitsCount||"",onChange:e=>f("unitsCount",e.target.value),placeholder:(0,r.__)("Number","insert-php"),width:"80px",min:"1",borderColor:l.unitsCount&&""!==l.unitsCount?void 0:"red.500",_focus:l.unitsCount&&""!==l.unitsCount?void 0:{borderColor:"red.500",boxShadow:"0 0 0 1px var(--chakra-colors-red-500)"}}),(0,i.jsx)(Tb,{size:"sm",width:"100px",children:(0,i.jsx)(Rb,{value:l.units||"days",onChange:e=>f("units",e.target.value),children:Sx.map(e=>(0,i.jsx)("option",{value:e.value,children:e.label},e.value))})}),(0,i.jsx)(St,{fontSize:"sm",color:"gray.600",children:(0,r.__)("ago","insert-php")})]}):(0,i.jsx)(pv,{size:"sm",type:"date",value:d||"",onChange:e=>(e=>{if(u(e),t){const o=new Date(e).getTime();t(o)}})(e.target.value),flex:"1",maxWidth:"200px"})]})},Ix=({condition:e,onRemove:t,onAddOr:o,onAddAnd:a,onChange:s})=>{const[l,c]=(0,n.useState)([]),[d,u]=(0,n.useState)(null),[p,h]=(0,n.useState)([]),[g,m]=(0,n.useState)([]),[f,v]=(0,n.useState)(!1);(0,n.useEffect)(()=>{const e=window.winpMetaboxData?.groupedFiltersParams||[],t=Array.isArray(e)?e:Object.values(e);c(t)},[]);const b=(0,n.useMemo)(()=>{if(!e.field||0===l.length)return null;for(const t of l){const o=t.items?.find(t=>t.id===e.field);if(o)return o}return null},[e.field,l]);(0,n.useEffect)(()=>{u(b),x(b),b&&"select"===b.type&&y(b)},[b]);const x=e=>{if(!e)return void h([]);let t=[];t="select"===e.type||e.onlyEquals?["equals","notequal"]:"date"===e.type?["equals","notequal","younger","older","between"]:"date-between"===e.type||"time-range"===e.type?[]:"integer"===e.type?["equals","notequal","less","greater","between"]:["equals","notequal","contains","notcontain"],h(t)},y=async e=>{if(e.values)if("ajax"===e.values.type){v(!0);try{const t=await fetch(window.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:e.values.action,snippet_id:window.winpMetaboxData?.snippetId||"",_wpnonce:document.getElementById("wbcr_inp_snippet_conditions_metabox_nonce")?.value||""})}),o=await t.json();o.error?(console.error("Error loading options:",o.error),m([])):o.values&&m(o.values)}catch(e){console.error("Error loading select options:",e),m([])}finally{v(!1)}}else Array.isArray(e.values)&&m(e.values)},w=t=>{s&&s({...e,value:t.target.value})},k=(t,o)=>{const n=e.value||{range:!0,start:"",end:""};s&&s({...e,value:{...n,[t]:o}})},S=(t,o)=>{const n=o?new Date(o).getTime():"",r=e.value||{range:!0,start:"",end:""};s&&s({...e,value:{...r,[t]:n},isValid:""!==n&&("start"===t?""!==r.end:""!==r.start)})};return(0,i.jsx)(mt,{mb:2,children:(0,i.jsxs)(ft,{gap:2,alignItems:"center",children:[(0,i.jsx)(Tb,{size:"sm",flex:"1",children:(0,i.jsx)(Rb,{value:e.field,onChange:t=>{const o=t.target.value;let n=null;for(const e of l)if(n=e.items?.find(e=>e.id===o),n)break;u(n),x(n),s&&s({...e,field:o,operator:"equals",value:""})},children:Array.isArray(l)&&l.map(e=>(0,i.jsx)("optgroup",{label:e.title,children:e.items.map(e=>(0,i.jsx)("option",{value:e.id,disabled:"disabled"===e.type,children:e.title},e.id))},e.id))})}),(0,i.jsxs)(Ub,{children:[(0,i.jsx)(Gb,{asChild:!0,children:(0,i.jsx)(Vt,{size:"sm",variant:"outline",borderColor:"gray.300",color:"gray.500",minW:"32px",px:2,fontWeight:"normal",_hover:{bg:"gray.50"},children:"?"})}),(0,i.jsx)(qb,{children:(0,i.jsxs)(Yb,{maxW:"300px",p:3,children:[(0,i.jsx)(Xb,{children:(0,i.jsx)(Kb,{})}),(0,i.jsx)(St,{fontSize:"sm",children:d?.description||(0,r.__)("Choose the condition type and set its value. Click OR to add alternative conditions or AND to add requirements that must all be met.","insert-php")})]})})]}),p.length>0&&(0,i.jsx)(Tb,{size:"sm",flex:"1",children:(0,i.jsxs)(Rb,{value:e.operator,onChange:t=>{s&&s({...e,operator:t.target.value,value:""})},children:[p.includes("equals")&&(0,i.jsx)("option",{value:"equals",children:(0,r.__)("Equals","insert-php")}),p.includes("notequal")&&(0,i.jsx)("option",{value:"notequal",children:(0,r.__)("Not Equals","insert-php")}),p.includes("contains")&&(0,i.jsx)("option",{value:"contains",children:(0,r.__)("Contains","insert-php")}),p.includes("notcontain")&&(0,i.jsx)("option",{value:"notcontain",children:(0,r.__)("Not Contain","insert-php")}),p.includes("greater")&&(0,i.jsx)("option",{value:"greater",children:(0,r.__)("Greater Than","insert-php")}),p.includes("less")&&(0,i.jsx)("option",{value:"less",children:(0,r.__)("Less Than","insert-php")}),p.includes("younger")&&(0,i.jsx)("option",{value:"younger",children:(0,r.__)("Younger","insert-php")}),p.includes("older")&&(0,i.jsx)("option",{value:"older",children:(0,r.__)("Older","insert-php")}),p.includes("between")&&(0,i.jsx)("option",{value:"between",children:(0,r.__)("Between","insert-php")})]})}),(()=>{if(!d)return null;const{type:t}=d,o=e.operator;if("integer"===t&&"between"===o){const t=e.value||{range:!0,start:"",end:""};return(0,i.jsxs)(ft,{gap:2,alignItems:"center",flex:"1",children:[(0,i.jsx)(pv,{size:"sm",type:"number",value:t.start||"",onChange:e=>k("start",e.target.value),placeholder:(0,r.__)("Min","insert-php")}),(0,i.jsx)(St,{fontSize:"sm",color:"gray.500",children:(0,r.__)("and","insert-php")}),(0,i.jsx)(pv,{size:"sm",type:"number",value:t.end||"",onChange:e=>k("end",e.target.value),placeholder:(0,r.__)("Max","insert-php")})]})}if("integer"===t)return(0,i.jsx)(pv,{size:"sm",type:"number",value:e.value||"",onChange:w,flex:"1"});if("text"===t)return(0,i.jsx)(pv,{size:"sm",type:"text",value:e.value||"",onChange:w,flex:"1"});if("select"===t)return f?(0,i.jsxs)(ft,{gap:2,alignItems:"center",flex:"1",px:2,children:[(0,i.jsx)(Pt,{size:"sm"}),(0,i.jsx)(St,{fontSize:"sm",color:"gray.500",children:(0,r.__)("Loading...","insert-php")})]}):(0,i.jsx)(Tb,{size:"sm",flex:"1",children:(0,i.jsxs)(Rb,{value:e.value||"",onChange:w,children:[(0,i.jsx)("option",{value:"",children:(0,r.__)("Select value...","insert-php")}),Array.isArray(g)?g.map(e=>(0,i.jsx)("option",{value:e.value,disabled:e.disabled,children:e.title},e.value)):Object.entries(g).map(([e,t])=>(0,i.jsx)("optgroup",{label:e,children:t.map(e=>(0,i.jsx)("option",{value:e.value,disabled:e.disabled,children:e.title},e.value))},e))]})});if("date-between"===t||"time-range"===t){const t=e.value||{range:!0,start:"",end:""},o=t.start?new Date(t.start).toISOString().split("T")[0]:"",n=t.end?new Date(t.end).toISOString().split("T")[0]:"",a=!t.start||""===t.start,s=!t.end||""===t.end;return(0,i.jsxs)(ft,{gap:2,alignItems:"center",flex:"1",children:[(0,i.jsx)(St,{fontSize:"sm",color:"gray.600",fontWeight:"medium",children:(0,r.__)("from","insert-php")}),(0,i.jsx)(pv,{size:"sm",type:"date",value:o,onChange:e=>S("start",e.target.value),width:"140px",borderColor:a?"red.500":void 0,_focus:a?{borderColor:"red.500",boxShadow:"0 0 0 1px var(--chakra-colors-red-500)"}:void 0}),(0,i.jsx)(St,{fontSize:"sm",color:"gray.600",fontWeight:"medium",children:(0,r.__)("to","insert-php")}),(0,i.jsx)(pv,{size:"sm",type:"date",value:n,onChange:e=>S("end",e.target.value),width:"140px",borderColor:s?"red.500":void 0,_focus:s?{borderColor:"red.500",boxShadow:"0 0 0 1px var(--chakra-colors-red-500)"}:void 0})]})}return"date"===t?(0,i.jsx)(Cx,{value:e.value,onChange:t=>{s&&s({...e,value:t})},operator:o}):(0,i.jsx)(pv,{size:"sm",type:"text",value:e.value||"",onChange:w,flex:"1"})})(),(0,i.jsxs)(ft,{gap:0,borderWidth:"1px",borderColor:"gray.200",borderRadius:"md",overflow:"hidden",children:[(0,i.jsx)(Vt,{size:"sm",variant:"ghost",onClick:t,borderRadius:"none",px:3,color:"gray.600",_hover:{bg:"gray.100"},children:"-"}),(0,i.jsx)(mt,{w:"1px",bg:"gray.200"}),(0,i.jsx)(Vt,{size:"sm",variant:"ghost",onClick:o,borderRadius:"none",px:2,color:"blue.600",fontWeight:"semibold",_hover:{bg:"blue.50"},children:"OR"}),(0,i.jsx)(mt,{w:"1px",bg:"gray.200"}),(0,i.jsx)(Vt,{size:"sm",variant:"ghost",onClick:a,borderRadius:"none",px:2,color:"blue.600",fontWeight:"semibold",_hover:{bg:"blue.50"},children:"AND"})]})]})})},Ex=({conditions:e,onRemove:t,onAddOr:o,onAddAnd:n,onChange:r})=>(0,i.jsx)(mt,{bg:"gray.50",borderRadius:"md",p:3,borderWidth:"1px",borderColor:"gray.200",children:e.map((a,s)=>(0,i.jsxs)(mt,{children:[(0,i.jsx)(Ix,{condition:a,onRemove:()=>t(a.id),onAddOr:()=>o(a.id),onAddAnd:()=>n(a.id),onChange:e=>r(s,e)}),s<e.length-1&&(0,i.jsx)(mt,{pl:3,mb:2,children:(0,i.jsx)(St,{fontSize:"xs",fontWeight:"bold",color:"gray.700",textTransform:"uppercase",letterSpacing:"wide",children:"OR"})})]},a.id))}),Px=()=>{const[e,t]=(0,n.useState)("showif"),[o,a]=(0,n.useState)([]),[s,l]=(0,n.useState)(0),c=(0,n.useRef)({orGroups:[],showIf:"showif",changedFilters:0}),d=e=>{const t=window.winpMetaboxData?.groupedFiltersParams||[],o=Array.isArray(t)?t:Object.values(t);for(const t of o){const o=t.items?.find(t=>t.id===e);if(o)return o.type||"text"}return"text"},u=e=>{const t=window.winpMetaboxData?.groupedFiltersParams||[],o=Array.isArray(t)?t:Object.values(t);for(const t of o){const o=t.items?.find(t=>t.id===e);if(o)return o.title||e}return e},p=(e,t,o)=>{const n=e.length>0?[{type:t,conditions:e.map(e=>({type:"scope",conditions:e.map(e=>({param:e.field,operator:e.operator,type:d(e.field),value:e.value}))}))}]:[],r=document.getElementById("winp_visibility_filters"),i=document.getElementById("winp_changed_filters");r&&(r.value=JSON.stringify(n)),i&&(i.value=o)};(0,n.useEffect)(()=>{const e=window.winpMetaboxData||{},o=e.snippetFilters||[],n=e.changedFilters||0;if(l(n),o.length>0){const e=o[0];if(e.type&&t(e.type),e.conditions&&Array.isArray(e.conditions)){const t=e.conditions.map((e,t)=>"scope"===e.type&&e.conditions?e.conditions.map((e,o)=>({id:`${t}-${o}`,field:e.param||"role",operator:e.operator||"equals",value:e.value||"administrator"})):[]).filter(e=>e.length>0);t.length>0&&a(t)}}},[]),(0,n.useEffect)(()=>{c.current={orGroups:o,showIf:e,changedFilters:s},p(o,e,s)},[o,e,s]),(0,n.useEffect)(()=>{const e=document.getElementById("post");if(!e)return;const t=e=>{const{orGroups:t,showIf:o,changedFilters:n}=c.current;let i=!1;const a=[];for(const e of t)for(const t of e){const e=d(t.field),o=u(t.field);if(t.value&&""!==t.value){if("date-between"!==e&&"time-range"!==e||"object"==typeof t.value&&t.value.range&&(t.value.start&&""!==t.value.start||(i=!0,a.push(`${o} (start date)`)),t.value.end&&""!==t.value.end||(i=!0,a.push(`${o} (end date)`))),"date"===e&&"between"===t.operator&&"object"==typeof t.value&&t.value.range){const e=t.value.start,n=t.value.end;e&&n?("relative"!==e.type||e.unitsCount&&""!==e.unitsCount||(i=!0,a.push(`${o} (start range)`)),"relative"!==n.type||n.unitsCount&&""!==n.unitsCount||(i=!0,a.push(`${o} (end range)`)),"absolute"!==e.type||e.timestamp&&""!==e.timestamp||(i=!0,a.push(`${o} (start date)`)),"absolute"!==n.type||n.timestamp&&""!==n.timestamp||(i=!0,a.push(`${o} (end date)`))):(i=!0,a.push(`${o} (date range)`))}"date"===e&&"object"==typeof t.value&&"relative"===t.value.type&&(t.value.unitsCount&&""!==t.value.unitsCount||(i=!0,a.push(`${o} (time value)`))),"integer"===e&&"between"===t.operator&&"object"==typeof t.value&&t.value.range&&(t.value.start&&""!==t.value.start||(i=!0,a.push(`${o} (start value)`)),t.value.end&&""!==t.value.end||(i=!0,a.push(`${o} (end value)`)))}else i=!0,a.push(o)}if(i){e.preventDefault();const t=[...new Set(a)];alert((0,r.__)("Please fill in all required condition fields before saving:","insert-php")+"\n- "+t.join("\n- "));const o=document.getElementById("publish");o&&(o.disabled=!1,o.classList.remove("disabled"));const n=document.querySelector("#publishing-action .spinner");return n&&n.classList.remove("is-active"),!1}p(t,o,n)};return e.addEventListener("submit",t),()=>{e.removeEventListener("submit",t)}},[]);const h=(e,t)=>{const n=[...o],r=n[e];1===r.length?n.splice(e,1):n[e]=r.filter(e=>e.id!==t),a(n),l(1)},g=(e,t)=>{const n=[...o],r={id:`${Date.now()}-${n[e].length}`,field:"user-role",operator:"equals",value:""};n[e].push(r),a(n),l(1)},m=(e,t)=>{const n=[...o],r={id:`${Date.now()}-0`,field:"user-role",operator:"equals",value:""};n.splice(e+1,0,[r]),a(n),l(1)},f=(e,t,n)=>{const r=[...o];r[e][t]=n,a(r),l(1)};return(0,i.jsxs)(mt,{bg:"white",p:4,children:[o.length>0&&(0,i.jsxs)(ft,{gap:2,alignItems:"center",mb:4,children:[(0,i.jsx)(St,{fontSize:"sm",fontWeight:"semibold",children:(0,r.__)("Snippet Condition","insert-php")}),(0,i.jsx)(Tb,{size:"sm",width:"auto",minW:"160px",children:(0,i.jsxs)(Rb,{value:e,onChange:e=>t(e.target.value),children:[(0,i.jsx)("option",{value:"showif",children:(0,r.__)("Display If","insert-php")}),(0,i.jsx)("option",{value:"hideif",children:(0,r.__)("Hide If","insert-php")})]})}),(0,i.jsx)(St,{fontSize:"sm",color:"gray.600",children:(0,r.__)("or","insert-php")}),(0,i.jsx)(Vt,{size:"sm",variant:"outline",onClick:()=>{a([]),l(1)},borderColor:"blue.500",color:"blue.500",px:3,_hover:{bg:"blue.50"},children:"X"})]}),(0,i.jsx)(mt,{children:0===o.length?(0,i.jsxs)(mt,{textAlign:"center",py:6,px:4,children:[(0,i.jsx)(St,{fontSize:"sm",color:"gray.600",mb:3,children:(0,r.__)("No conditions specified. The snippet will display everywhere.","insert-php")}),(0,i.jsx)(Vt,{size:"sm",variant:"outline",onClick:()=>{const e={id:`${Date.now()}-0`,field:"user-role",operator:"equals",value:""};a([[e]]),l(1)},children:(0,r.__)("Add Condition","insert-php")})]}):o.map((e,t)=>(0,i.jsxs)(mt,{children:[1===e.length?(0,i.jsx)(mt,{bg:"gray.50",borderRadius:"md",p:3,borderWidth:"1px",borderColor:"gray.200",mb:2,children:(0,i.jsx)(Ix,{condition:e[0],onRemove:()=>h(t,e[0].id),onAddOr:()=>g(t,e[0].id),onAddAnd:()=>m(t,e[0].id),onChange:e=>f(t,0,e)})}):(0,i.jsx)(mt,{mb:2,children:(0,i.jsx)(Ex,{conditions:e,onRemove:e=>h(t,e),onAddOr:e=>g(t),onAddAnd:e=>m(t),onChange:(e,o)=>f(t,e,o)})}),t<o.length-1&&(0,i.jsx)(mt,{pl:3,mb:2,children:(0,i.jsx)(St,{fontSize:"xs",fontWeight:"bold",color:"gray.500",textTransform:"uppercase",letterSpacing:"wide",children:"AND"})})]},t))})]})};document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("winp-snippet-conditions-root");e&&(0,n.createRoot)(e).render((0,i.jsxs)(nf,{children:[(0,i.jsx)(Px,{}),(0,i.jsx)(nb,{})]}))});const{withProvider:Ox,withContext:zx,useStyles:Tx,PropsProvider:Nx}=Hf({key:"radioCard"}),Rx=(Ox(Qb,"root",{forwardAsChild:!0}),Ox(ox,"root",{forwardAsChild:!0})),Vx=(zx(nx,"label",{forwardAsChild:!0}),zx(lx,"item",{forwardAsChild:!0})),jx=zx(cx,"itemText",{forwardAsChild:!0}),Ax=(zx("div","itemDescription",{forwardAsChild:!0}),(0,c.forwardRef)(function(e,t){const o=ix(),n=Tx();return(0,i.jsx)(ht.div,{ref:t,"data-focus":Ct(o.focused),"data-disabled":Ct(o.disabled),"data-state":o.checked?"checked":"unchecked","data-hover":Ct(o.hovered),"data-active":Ct(o.active),"data-invalid":Ct(o.invalid),...e,css:[n.itemControl,e.css]})})),Dx=zx("div","itemContent"),Fx=(zx("div","itemAddon"),(0,c.forwardRef)(function(e,t){const{checked:o,...n}=e,r=Tx(),a=ix();return o&&a.checked?(0,i.jsx)(ht.span,{ref:t,asChild:!0,...n,"aria-hidden":"true",css:[r.itemIndicator,e.css],children:o}):(0,i.jsx)(hx,{ref:t,unstyled:!0,...e,"aria-hidden":"true",checked:a.checked,disabled:a.disabled,css:[r.itemIndicator,e.css]})})),Mx=px,Wx=({options:e,value:t,onChange:o,name:n})=>(0,i.jsx)(Rx,{value:t,onValueChange:e=>o(e.value),name:n,children:(0,i.jsx)(tb,{direction:"row",gap:3,children:e.map(e=>(0,i.jsxs)(Vx,{value:e.value,flex:"initial",children:[(0,i.jsx)(Mx,{}),(0,i.jsxs)(Ax,{children:[(0,i.jsx)(Dx,{children:(0,i.jsx)(jx,{children:e.label})}),(0,i.jsx)(Fx,{})]})]},e.value))})}),Lx=({label:e,hint:t,children:o})=>(0,i.jsxs)(mt,{children:[e&&(0,i.jsx)(St,{fontWeight:600,mt:0,mb:2,fontSize:"sm",children:e}),o,t&&(0,i.jsx)(St,{fontSize:"xs",color:"gray.600",mt:1,children:t})]}),Bx=({value:e,onChange:t,placeholder:o,disabled:n})=>(0,i.jsx)(pv,{value:e,onChange:e=>t(e.target.value),placeholder:o,disabled:n,size:"sm",maxW:"300px",_placeholder:{color:"gray.400"},css:{opacity:n?.6:1,cursor:n?"not-allowed":"text"}}),$x=({options:e,value:t,onChange:o,disabled:n})=>(0,i.jsx)(Tb,{size:"sm",maxW:"400px",children:(0,i.jsx)(Rb,{value:t,onChange:e=>o(e.target.value),disabled:n,children:e.map((e,t)=>(0,i.jsx)("optgroup",{label:e.title,children:e.items.map(e=>(0,i.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value))},t))})}),Hx=(0,c.forwardRef)((e,t)=>{const{autoresize:o,...n}=e,r=(0,c.useRef)(null),a=lv(),s=zl(a?.getTextareaProps(),{style:{resize:o?"none":void 0}},n);return(0,c.useEffect)(()=>{if(o)return pm(r.current)},[o]),(0,i.jsx)(Af.textarea,{...s,ref:Vf(t,r)})});Hx.displayName="FieldTextarea";const{withContext:Ux,PropsProvider:Gx}=yt({key:"textarea"}),qx=Ux(Hx);qx.displayName="Textarea";const Yx=({value:e,onChange:t,placeholder:o,disabled:n,rows:r=5})=>(0,i.jsx)(qx,{value:e,onChange:e=>t(e.target.value),placeholder:o,disabled:n,size:"sm",rows:r,opacity:n?.6:1,cursor:n?"not-allowed":"auto"}),Kx=()=>{const[e,t]=(0,n.useState)("php"),[o,a]=(0,n.useState)("shortcode"),[s,l]=(0,n.useState)(""),[c,d]=(0,n.useState)("header"),[u,p]=(0,n.useState)("0"),[h,g]=(0,n.useState)("external"),[m,f]=(0,n.useState)(""),[v,b]=(0,n.useState)(""),[x,y]=(0,n.useState)(""),w=(0,n.useRef)({scope:"shortcode",customName:"",location:"header",locationNumber:"0",linking:"external",description:"",tags:"",wpmlLang:""}),k=window.winpMetaboxData?.isPremium||!1,S=window.winpMetaboxData?.locationOptions||[],C=window.winpMetaboxData?.wpmlLanguages||[],_=(e,t,o,n,r,i,a,s)=>{const l=document.getElementById("winp_snippet_scope");l&&(l.value=e);const c=document.getElementById("winp_snippet_custom_name");c&&(c.value=t);const d=document.getElementById("winp_snippet_location");d&&(d.value=o);const u=document.getElementById("winp_snippet_p_number");u&&(u.value=n);const p=document.getElementById("winp_snippet_linking");p&&(p.value=r);const h=document.getElementById("winp_snippet_description");h&&(h.value=i);const g=document.getElementById("winp_snippet_tags");g&&(g.value=a);const m=document.getElementById("winp_snippet_wpml_lang");m&&(m.value=s)};(0,n.useEffect)(()=>{const e=document.getElementById("wbcr_inp_snippet_type");e&&e.value&&t(e.value)},[]),(0,n.useEffect)(()=>{const e=document.getElementById("winp_snippet_scope");e&&e.value&&a(e.value)},[]),(0,n.useEffect)(()=>{const e=document.getElementById("winp_snippet_custom_name");e&&e.value&&l(e.value)},[]),(0,n.useEffect)(()=>{const e=document.getElementById("winp_snippet_location");e&&e.value&&d(e.value)},[]),(0,n.useEffect)(()=>{const e=document.getElementById("winp_snippet_p_number");e&&e.value&&p(e.value)},[]),(0,n.useEffect)(()=>{const e=document.getElementById("winp_snippet_linking");e&&e.value&&g(e.value)},[]),(0,n.useEffect)(()=>{const e=document.getElementById("winp_snippet_description");e&&e.value&&f(e.value)},[]),(0,n.useEffect)(()=>{const e=document.getElementById("winp_snippet_tags");e&&e.value&&b(e.value)},[]),(0,n.useEffect)(()=>{const e=document.getElementById("winp_snippet_wpml_lang");e&&e.value&&y(e.value)},[]),(0,n.useEffect)(()=>{w.current={scope:o,customName:s,location:c,locationNumber:u,linking:h,description:m,tags:v,wpmlLang:x},_(o,s,c,u,h,m,v,x)},[o,s,c,u,h,m,v,x]),(0,n.useEffect)(()=>{const e={evrywhere:{show:".wbcr_inp_whereuse_input_container",hide:".wbcr_inp_shortcode_input_container"},auto:{show:".wbcr_inp_whereuse_input_container",hide:".wbcr_inp_shortcode_input_container"},shortcode:{show:".wbcr_inp_shortcode_input_container",hide:".wbcr_inp_whereuse_input_container"}}[o];e&&(e.show&&document.querySelectorAll(e.show).forEach(e=>{e.style.display=""}),e.hide&&document.querySelectorAll(e.hide).forEach(e=>{e.style.display="none"}))},[o]),(0,n.useEffect)(()=>{const e=document.getElementById("post");if(!e)return;const t=()=>{const{scope:e,customName:t,location:o,locationNumber:n,linking:r,description:i,tags:a,wpmlLang:s}=w.current;_(e,t,o,n,r,i,a,s)};return e.addEventListener("submit",t),()=>{e.removeEventListener("submit",t)}},[]);const I=()=>{if("shortcode"!==o||"php"===e)return null;if("text"===e||"advert"===e)return(0,r.__)('If you want to place some content into your snippet from the shortcode just wrap it inside [wbcr_text_snippet id="xxx"]content[/wbcr_text_snippet]. To use this content inside the snippet use {{SNIPPET_CONTENT}} variable.',"insert-php");const t="universal"===e?"":"_"+e;return(0,r.sprintf)((0,r.__)('If you want to place some content into your snippet from the shortcode just wrap it inside [wbcr%1$s_snippet id="xxx"]content[/wbcr%2$s_snippet]. To use this content inside the snippet use $content variable.',"insert-php"),t,t)};return(0,i.jsx)(mt,{p:4,children:(0,i.jsxs)(tb,{gap:2,children:[(0,i.jsxs)(Lx,{label:(0,r.__)("Where to execute the code?","insert-php"),hint:"php"===e?(0,r.__)('If you select the "Run everywhere" option, after activating the widget, the php code will be launched on all pages of your site. Another option works only where you have set a shortcode snippet (widgets, post).',"insert-php"):(0,r.__)('If you select the "Automatic insertion" option, after activating the widget, the code will be launched on all pages of your site. Another option works only where you have set a shortcode snippet (widgets, post).',"insert-php"),children:[(0,i.jsx)(Wx,{options:"php"===e?[{value:"evrywhere",label:(0,r.__)("Run everywhere","insert-php")},{value:"shortcode",label:(0,r.__)("Where there is a shortcode","insert-php")}]:[{value:"auto",label:(0,r.__)("Automatic insertion","insert-php")},{value:"shortcode",label:(0,r.__)("Where there is a shortcode","insert-php")}],value:o,onChange:a,name:"snippet_scope"}),I()&&(0,i.jsx)(mt,{mt:3,p:3,bg:"purple.50",borderLeft:"3px solid",borderColor:"purple.500",fontSize:"sm",color:"gray.700",children:I()})]}),"shortcode"===o&&(0,i.jsx)(Lx,{label:(0,i.jsxs)(i.Fragment,{children:[(0,r.__)("Custom shortcode name","insert-php"),!k&&(0,i.jsx)(St,{as:"span",ml:2,fontSize:"xs",color:"purple.600",fontWeight:700,children:"(PRO)"})]}),hint:(0,r.__)('By default, all snippet shortcodes look like this: [wbcr_snippet id="121"]. Such shortcodes are hard to remember. In addition, when you move a snippet to another website its ID can be changed. So the best solution for the snippets use regularly is to define a custom shortcode name. The custom shortcode may look like this: [soccer_match_date]',"insert-php"),children:(0,i.jsx)(Bx,{value:s,onChange:l,placeholder:"",disabled:!k})}),"auto"===o&&"php"!==e&&S.length>0&&(()=>{let e=!1;for(const t of S){const o=t.items?.find(e=>e.value===c);if(o){e=o.requiresLocationNumber||!1;break}}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Lx,{label:(0,r.__)("Insertion location","insert-php"),hint:(0,r.__)("Select the location for you snippet.","insert-php"),children:(0,i.jsx)($x,{options:S,value:c,onChange:d})}),e&&(0,i.jsx)(Lx,{label:(0,r.__)("Location number","insert-php"),hint:(0,r.__)("Paragraph / Post number","insert-php"),children:(0,i.jsx)(pv,{value:u,onChange:e=>p(e.target.value),type:"number",size:"sm",maxW:"150px"})})]})})(),("css"===e||"js"===e)&&(0,i.jsx)(Lx,{label:(0,r.__)("Linking type","insert-php"),hint:(0,r.__)("Select how the snippet will be linked to the page.","insert-php"),children:(0,i.jsx)(Wx,{options:[{value:"external",label:(0,r.__)("External File","insert-php")},{value:"inline",label:(0,r.__)("Inline Code","insert-php")}],value:h,onChange:g,name:"snippet_linking"})}),(0,i.jsx)(Lx,{label:(0,r.__)("Description","insert-php"),hint:(0,r.__)("You can write a short note so that you can always remember why this code or your colleague was able to apply this code in his works.","insert-php"),children:(0,i.jsx)(Yx,{value:m,onChange:f,placeholder:"",rows:4})}),"text"!==e&&"advert"!==e&&(0,i.jsx)(Lx,{label:(0,r.__)("Available attributes","insert-php"),hint:(0,r.sprintf)((0,r.__)("Available attributes for shortcode via comma. Only numbers, letters and underscore characters are allowed. Attribute id is always available. With this option you can set additional attributes for the shortcode. Example: start_date attribute to [%s id='xxx' start_date='2018/01/15'] shortcode. Now we can get attribute value in the snippet with the $start_date variable. It's convenient if you want to print out different results depending on this attributes.","insert-php"),"universal"===e?"wbcr_snippet":"wbcr_"+e+"_snippet"),children:(0,i.jsx)(Bx,{value:v,onChange:b,placeholder:"title, pass_attr1, pass_attr2"})}),C.length>0&&(0,i.jsx)(Lx,{label:(0,r.__)("WPML Language","insert-php"),hint:(0,r.__)("Select the WPML language/languages that this snippet will work for.","insert-php"),children:(0,i.jsx)(tb,{gap:2,children:C.map(e=>{const t=x?x.split(","):[],o=t.includes(e.code);return(0,i.jsxs)(mt,{display:"flex",alignItems:"center",gap:2,children:[(0,i.jsx)("input",{type:"checkbox",checked:o,onChange:o=>{const n=o.target.checked;let r=t.filter(t=>t!==e.code);n&&r.push(e.code),y(r.join(","))},style:{cursor:"pointer"}}),(0,i.jsxs)(mt,{display:"flex",alignItems:"center",gap:1,children:[(0,i.jsx)("img",{src:e.flag,alt:e.code,style:{verticalAlign:"bottom",width:"20px",height:"auto"}}),(0,i.jsx)(St,{fontSize:"sm",children:e.name})]})]},e.code)})})})]})})};document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("winp-base-options-root");e&&(0,n.createRoot)(e).render((0,i.jsxs)(nf,{children:[(0,i.jsx)(Kx,{}),(0,i.jsx)(nb,{})]}))})}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var i=o[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,o,r,i)=>{if(!o){var a=1/0;for(d=0;d<e.length;d++){for(var[o,r,i]=e[d],s=!0,l=0;l<o.length;l++)(!1&i||a>=i)&&Object.keys(n.O).every(e=>n.O[e](o[l]))?o.splice(l--,1):(s=!1,i<a&&(a=i));if(s){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[o,r,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};n.O.j=t=>0===e[t];var t=(t,o)=>{var r,i,[a,s,l]=o,c=0;if(a.some(t=>0!==e[t])){for(r in s)n.o(s,r)&&(n.m[r]=s[r]);if(l)var d=l(n)}for(t&&t(o);c<a.length;c++)i=a[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(d)},o=globalThis.webpackChunkinsert_php=globalThis.webpackChunkinsert_php||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var r=n.O(void 0,[350],()=>n(598));r=n.O(r)})(); |