# insert-php/2.7.8/admin/assets/dashboard/build/index.js

Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts, version 2.7.8. 2 lines.

- Page: https://pluginprobe.com/plugins/insert-php/2.7.8/code/admin/assets/dashboard/build/index.js
- Raw: https://pluginprobe.com/plugins/insert-php/2.7.8/raw/admin/assets/dashboard/build/index.js
- Modified: 2026-04-23T14:13:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/insert-php/2.7.8/code/admin/assets/dashboard/build/index.js#L10-L20`.

```javascript
(()=>{"use strict";var e,t={72:(e,t)=>{var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,n=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,f=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,v=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 r:switch(e=e.type){case d:case u:case n:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case m:case f:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=n,t.Lazy=m,t.Memo=f,t.Portal=i,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===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===n},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===f},t.isPortal=function(e){return w(e)===i},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===n||e===u||e===s||e===a||e===h||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===x||e.$$typeof===y||e.$$typeof===b)},t.typeOf=w},146:(e,t,o)=>{var r=o(404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.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,r){if("string"!=typeof o){if(g){var i=h(o);i&&i!==g&&e(t,i,r)}var a=d(o);u&&(a=a.concat(u(o)));for(var s=l(t),f=l(o),m=0;m<a.length;++m){var b=a[m];if(!(n[b]||r&&r[b]||f&&f[b]||s&&s[b])){var v=p(o,b);try{c(t,b,v)}catch(e){}}}}return t}},404:(e,t,o)=>{e.exports=o(72)},433:(e,t,o)=>{const r=window.wp.element;function i(){const e=e=>e;return new Proxy(e,{get:()=>e})}const n=i(),a=i();var s="".split(","),l="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(s),c=new Map(l.map(e=>[e,!0]));function d(e){const t=Object.create(null);return o=>(void 0===t[o]&&(t[o]=e(o)),t[o])}var u=/&|@/,p=d(e=>c.has(e)||e.startsWith("--")||u.test(e));function h(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e,t){const o={};for(const r in e){const i=t(r,e[r]);o[i[0]]=i[1]}return o}const f=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),m=e=>"string"==typeof e,b=e=>"function"==typeof e,v=e=>null!=e;function x(e,t,o={}){const{stop:r,getKey:i}=o;return function e(o,n=[]){if(f(o)||Array.isArray(o)){const a={};for(const[s,l]of Object.entries(o)){const c=i?.(s,l)??s,d=[...n,c];if(r?.(o,d))return t(o,n);const u=e(l,d);v(u)&&(a[c]=u)}return a}return t(o,n)}(e)}function y(e,t){return Array.isArray(e)?e.map(e=>v(e)?t(e):e):f(e)?x(e,e=>t(e)):v(e)?t(e):e}function w(e,t){const o={};return x(e,(e,t)=>{e&&(o[t.join(".")]=e.value)},{stop:t}),o}var k=Object.defineProperty,S=(e,t,o)=>((e,t,o)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o);function C(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(C).join(",")}]`:"object"===t?`o:{${Object.keys(e).sort().map(t=>`${t}:${C(e[t])}`).join(",")}}`:String(e)}class I{constructor(e=500){S(this,"cache",new Map),S(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 E=e=>{const t=new I;return function(...o){const r=1===o.length?C(o[0]):o.map(C).join("|");let i=t.get(r);return void 0===i&&(i=e.apply(this,o),t.set(r,i)),i}};function _(e,t){if(null==t)return e;for(const o of Object.keys(t))if(void 0!==t[o]&&"__proto__"!==o)if(!f(e[o])&&f(t[o]))Object.assign(e,{[o]:t[o]});else if(e[o]&&f(t[o]))_(e[o],t[o]);else if(Array.isArray(t[o])&&Array.isArray(e[o])){let r=0;for(;r<t[o].length;r++)f(e[o][r])&&f(t[o][r])?_(e[o][r],t[o][r]):e[o][r]=t[o][r]}else Object.assign(e,{[o]:t[o]});return e}function P(e,...t){for(const o of t)_(e,o);return e}const z=(e,t)=>((e,t)=>{const o={},r={},i=Object.keys(e);for(const n of i)t(n)?r[n]=e[n]:o[n]=e[n];return[r,o]})(e,b(t)?t:e=>t.includes(e)),R=(...e)=>{const t=e.reduce((e,t)=>(null!=t&&t.forEach(t=>e.add(t)),e),new Set([]));return Array.from(t)},T="px",O="em",V="rem";function N(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),o=new RegExp(`${T}|${O}|${V}`),r=e.match(new RegExp(`${t.source}(${o.source})`));return r?.[1]}function j(e=""){if("number"==typeof e)return`${e}px`;const t=N(e);return t?t===T?e:t===O||t===V?`${16*parseFloat(e)}${T}`:void 0:e}function F(e=""){const t=N(e);return t?t===V?e:t===O?`${parseFloat(e)}${V}`:t===T?`${parseFloat(e)/16}${V}`:void 0:e}function A(e){return F(parseFloat(j(e)??"")-.04+"px")}function D({min:e,max:t}){return null==e&&null==t?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const W=/^@|&|&$/;function L(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(e=>L(e));const t=Object.create(Object.getPrototypeOf(e));for(const o of Object.keys(e))t[o]=L(e[o]);return t}const M=["value","type","description"],B=(...e)=>{const t=P({},...e.map(L));return t.theme?.tokens&&x(t.theme.tokens,e=>{const t=Object.keys(e).filter(e=>!M.includes(e)).length>0,o=M.some(t=>null!=e[t]);return t&&o&&(e.DEFAULT||(e.DEFAULT={}),M.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=>M.includes(e)||e!==e.toLowerCase()&&e!==e.toUpperCase())}),t},H=Object.freeze(Object.create(null)),$=Object.freeze([]);function U(){return Object.create(null)}const G=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")}),q=G("width"),K=G("height"),Y=e=>({isMin:se(e.minMax,e.maxMin,e.min),isMax:se(e.maxMin,e.minMax,e.max)}),{isMin:X,isMax:Z}=Y(q),{isMin:J,isMax:Q}=Y(K),ee=/print/i,te=/^print$/i,oe=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,re=/(\d)/,ie=Number.MAX_VALUE,ne={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function ae(e){const t=oe.exec(e)||(X(e)||J(e)?re.exec(e):null);if(!t)return ie;if("0"===t[0])return 0;const o=parseFloat(t[1]),r=t[2];return o*(ne[r]||1)}function se(e,t,o){return r=>e.test(r)||!t.test(r)&&o.test(r)}const le=E((e,t)=>{const o=function(e,t){const o=ee.test(e),r=te.test(e),i=ee.test(t),n=te.test(t);return o&&i?!r&&n?1:r&&!n?-1:e.localeCompare(t):o?1:i?-1:null}(e,t);if(null!==o)return o;const r=X(e)||J(e),i=Z(e)||Q(e),n=X(t)||J(t),a=Z(t)||Q(t);if(r&&a)return-1;if(i&&n)return 1;const s=ae(e),l=ae(t);return s===ie&&l===ie?e.localeCompare(t):s===ie?1:l===ie?-1:s!==l?s>l?i?-1:1:i?1:-1:e.localeCompare(t)});function ce(e){return e.sort(([e],[t])=>le(e,t))}function de(e){const t=[],o=[],r={};for(const[i,n]of Object.entries(e))i.startsWith("@media")?t.push([i,n]):i.startsWith("@container")?o.push([i,n]):f(n)?r[i]=de(n):r[i]=n;const i=ce(t),n=ce(o);return{...r,...Object.fromEntries(i),...Object.fromEntries(n)}}const ue=/\s*!(important)?/i,pe=E(e=>!!m(e)&&ue.test(e)),he=E(e=>m(e)?e.replace(ue,"").trim():e);function ge(e){const{transform:t,conditions:o,normalize:r}=e,i=(n=e,E(function(...e){return P({},...function(e){const t=function(...e){return e.filter(e=>{if(!f(e))return!1;const t=h(e);return Object.keys(t).length>0})}(...e);return 1===t.length?t:t.map(e=>n.normalize(e))}(e))}));var n;return E(function(...e){const n=i(...e),a=r(n),s=U();return x(a,(e,r)=>{const i=pe(e);if(null==e)return;const[n,...a]=o.sort(r).map(o.resolve);i&&(e=he(e));let l=t(n,e)??H;l=x(l,e=>m(e)&&i?`${e} !important`:e,{getKey:e=>o.expandAtRule(e)}),function(e,t,o){let r=e;for(const e of t)e&&(r[e]||(r[e]=U()),r=r[e]);P(r,o)}(s,a.flat(),l)}),de(s)})}const fe=(...e)=>{const t=[];for(let o=0;o<e.length;o++){const r=e[o];if(!m(r))continue;const i=r.trim();i&&t.push(i)}return t.join(" ")};function me(e,t=[]){const o=Object.assign({},e);for(const e of t)e in o&&delete o[e];return o}const be=e=>({base:H,variants:H,defaultVariants:H,compoundVariants:[],...e});const ve={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},xe={reset:0,base:1,tokens:2,recipes:3};const ye=/[^a-zA-Z0-9_\u0081-\uffff-]/g,we=/[A-Z]/g;function ke(e,t={}){const{fallback:o="",prefix:r=""}=t,i=function(e){return e.replace(we,e=>`-${e.toLowerCase()}`)}(["-",r,(n=e,`${n}`.replace(ye,e=>`\\${e}`))].filter(Boolean).join("-"));var n;return{var:i,ref:`var(${i}${o?`, ${o}`:""})`}}const Se=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Ce=function(e,t){return t?"\0"===e?"�":"-"===e&&1===e.length?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Ie=e=>(e+"").replace(Se,Ce),Ee=(e,t)=>{let o="",r=0,i="char",n="",a="";const s=[];for(;r<e.length;){const l=e[r];if("{"===l){const i=e.indexOf("}",r);if(-1===i)break;const n=e.slice(r+1,i);o+=t(n)??n,r=i+1;continue}if("token"===i&&","===l){""===e[r]&&r++,i="fallback",s.push(i);const l=t(n);l?.endsWith(")")&&(o+=l.slice(0,-1)),n="",a="";continue}if("fallback"===i&&", var("===a+l){const t=_e(e.slice(r+1))+r+1,n=e.slice(r+1,t);if(-1===t)break;o+=", var("+n+")",r=t+1,i=s.pop()??i,a="";continue}if("token"===i||"fallback"===i){if(r++,")"===l){i=s.pop()??i??"char",a+=l;const e=n?t(n)??Ie(n):n;if(a)if(a=a.slice(1).trim(),!a.startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){const e=Ee(a,t);e&&(a=e.slice(0,-1))}else if(a){const e=t(a);e&&(a=e)}const r=o.at(-1);a?r?.trim()?o+=e.slice(0,-1)+", "+a+")":o+=a:o+=e||")",n="",a="",i="char";continue}"token"===i&&(n+=l),"fallback"===i&&(a+=l);continue}const c=e.indexOf("token(",r);if(-1!==c){const t=c+6;o+=e.slice(r,c),r=t,i="token",s.push(i);continue}o+=l,r++}return o},_e=e=>{let t=0;const o=["("];for(;t<e.length;){const r=e[t];if("("===r)o.push(r);else if(")"===r&&(o.pop(),0===o.length))return t;t++}return t};function Pe(e){const t={};return e.forEach((e,o)=>{e instanceof Map?t[o]=Object.fromEntries(e):t[o]=e}),t}const ze=/({([^}]*)})/g,Re=/[{}]/g,Te=/\w+\.\w+/,Oe=e=>{if(!m(e))return[];const t=e.match(ze);return t?t.map(e=>e.replace(Re,"").trim()):[]};function Ve(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let o=e.value;const r=Object.keys(t);for(let e=0;e<r.length;e++){const i=r[e],n=t[i];if(n.extensions.conditions)continue;const a=Ve(n);o=o.replace(`{${i}}`,a)}return e.value=o,delete e.extensions.references,e.value}const Ne=/calc/g;function je(e){return f(e)&&e.reference?e.reference:String(e)}const Fe=(e,...t)=>t.map(je).join(` ${e} `).replace(Ne,""),Ae=(...e)=>`calc(${Fe("+",...e)})`,De=(...e)=>`calc(${Fe("-",...e)})`,We=(...e)=>`calc(${Fe("*",...e)})`,Le=(...e)=>`calc(${Fe("/",...e)})`,Me=e=>{const t=je(e);return null==t||Number.isNaN(parseFloat(t))?We(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Be=Object.assign(e=>({add:(...t)=>Be(Ae(e,...t)),subtract:(...t)=>Be(De(e,...t)),multiply:(...t)=>Be(We(e,...t)),divide:(...t)=>Be(Le(e,...t)),negate:()=>Be(Me(e)),toString:()=>e.toString()}),{add:Ae,subtract:De,multiply:We,divide:Le,negate:Me}),He={enforce:"pre",transform(e){const{prefix:t,allTokens:o,formatCssVar:r,formatTokenName:i,registerToken:n}=e;o.filter(({extensions:e})=>"spacing"===e.category).forEach(e=>{const o=e.path.slice(),a=r(o,t);if(m(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:Be.negate(a.ref),name:i(s),path:s,extensions:{...e.extensions,negative:!0,prop:`-${e.extensions.prop}`,originalPath:o}};n(c)})}},$e=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),Ue={enforce:"post",transform(e){const t=e.allTokens.filter(e=>$e.has(e.extensions.category)&&!e.extensions.negative);t.forEach(e=>{Object.assign(e.extensions,{pixelValue:j(e.value)})})}},Ge={enforce:"post",transform(e){const{allTokens:t,registerToken:o,formatTokenName:r}=e,i=t.filter(({extensions:e})=>"colors"===e.category),n=new Map,a=new Map;i.forEach(e=>{const{colorPalette:t}=e.extensions;t&&(t.keys.forEach(e=>{n.set(r(e),e)}),t.roots.forEach(o=>{const i=r(o),s=a.get(i)||[];if(s.push(e),a.set(i,s),e.extensions.default&&1===o.length){const e=t.keys[0]?.filter(Boolean);if(!e.length)return;const i=o.concat(e);n.set(r(i),[])}}))}),n.forEach(e=>{const t=["colors","colorPalette",...e].filter(Boolean),i=r(t),n=r(t.slice(1));o({name:i,value:i,originalValue:i,path:t,extensions:{condition:"base",originalPath:t,category:"colors",prop:n,virtual:!0}},"pre")})}},qe={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(e=>""!==e.value)}},Ke=[He,Ge,Ue,qe],Ye={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:o,formatCssVar:r}=t,{negative:i,originalPath:n}=e.extensions;return{cssVar:r((i?n:e.path).filter(Boolean),o)}}},Xe={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:o,formatCssVar:r}=t,i=Oe(e.value);return i.length?(i.forEach(t=>{const i=r(t.split("."),o);e.value=e.value.replace(`{${i.ref}}`,i)}),e.value):e.value}},Ze={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 r=o.reduce((e,t,o,r)=>{const i=r.slice(0,o+1);return e.push(i),e},[]),i=o[0],n=t.formatTokenName(o),a=e.path.slice(e.path.indexOf(i)+1).reduce((e,t,o,r)=>(e.push(r.slice(o)),e),[]);return 0===a.length&&a.push([""]),{colorPalette:{value:n,roots:r,keys:a}}}},Je=[Ye,Xe,Ze],Qe=e=>f(e)&&Object.prototype.hasOwnProperty.call(e,"value");function et(e){const{prefix:t="",tokens:o={},semanticTokens:r={},breakpoints:i={}}=e,n=e=>e.join("."),a=[],s=new Map,l=new Map,c=new Map,d=new Map,u=new Map,p=new Map,f=new Map,v=new Map,w=[];function k(e,t){a.push(e),s.set(e.name,e),t&&v.forEach(o=>{o.enforce===t&&O(o,e)})}const S=function(e){return e?{breakpoints:y(e,e=>({value:e})),sizes:g(e,(e,t)=>[`breakpoint-${e}`,{value:t}])}:{breakpoints:{},sizes:{}}}(i),C=h({...o,breakpoints:S.breakpoints,sizes:{...o.sizes,...S.sizes}});function I(e){return s.get(e)}let _={};const P=E((e,t)=>u.get(e)??t),z=E(e=>_[e]||null),R=E(e=>Ee(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 r=P(t),i=I(`opacity.${o}`)?.value;if(!i&&isNaN(Number(o)))return{invalid:!0,value:t};const n=r??t;return{invalid:!1,color:n,value:`color-mix(in srgb, ${n} ${i?100*Number(i)+"%":`${o}%`}, transparent)`}})(e);if(t.invalid)throw new Error("Invalid color mix at "+e+": "+t.value);return t.value}return P(e)||(Te.test(e)?Ie(e):e)})),T={prefix:t,allTokens:a,tokenMap:s,registerToken:k,getByName:I,formatTokenName:n,formatCssVar:(e,t)=>ke(e.join("-"),{prefix:t}),flatMap:u,cssVarMap:c,categoryMap:f,colorPaletteMap:d,getVar:P,getCategoryValues:z,expandReferenceInValue:R};function O(e,t){if(t.extensions.references)return;if(b(e.match)&&!e.match(t))return;const o=(r=t,e.transform(r,T));var r;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 V(e){w.forEach(t=>{t.enforce===e&&t.transform(T)})}function N(e){v.forEach(t=>{t.enforce===e&&a.forEach(e=>{O(t,e)})})}return x(C,(e,t)=>{const o=t.includes("DEFAULT"),r=(t=tt(t))[0],i=n(t),a=m(e)?{value:e}:e,s={value:a.value,originalValue:a.value,name:i,path:t,extensions:{condition:"base",originalPath:t,category:r,prop:n(t.slice(1))}};o&&(s.extensions.default=!0),k(s)},{stop:Qe}),x(r,(e,t)=>{const o=t.includes("DEFAULT"),r=(t=ot(tt(t)))[0],i=n(t),a=m(e.value)?{value:{base:e.value}}:e,s={value:a.value.base||"",originalValue:a.value.base||"",name:i,path:t,extensions:{originalPath:t,category:r,conditions:a.value,condition:"base",prop:n(t.slice(1))}};o&&(s.extensions.default=!0),k(s)},{stop:Qe}),function(...e){e.forEach(e=>{v.set(e.name,e)})}(...Je),function(...e){w.push(...e)}(...Ke),V("pre"),N("pre"),a.forEach(e=>{const t=function(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,o=[];return x(t,(t,r)=>{const i=ot(r);if(!i.length)return;const n={...e,value:t,extensions:{...e.extensions,condition:i.join(":")}};o.push(n)}),o}(e);t&&0!==t.length&&t.forEach(e=>{k(e)})}),a.forEach(e=>{if(t=e.value,!ze.test(t))return;var t;const o=function(e){const t=Oe(e),o=[];for(let e=0;e<t.length;e++){const r=I(t[e]);r&&o.push(r)}return o}(e.value);e.extensions.references=o.reduce((e,t)=>(e[t.name]=t,e),{})}),a.forEach(e=>{Ve(e)}),V("post"),N("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&&(f.has(t)||f.set(t,new Map),f.get(t).set(o,e))}(e),function(e){const{condition:t,negative:o,virtual:r,cssVar:i}=e.extensions;!o&&!r&&t&&i&&(c.has(t)||c.set(t,new Map),c.get(t).set(i.var,e.value))}(e),function(e){const{category:t,prop:o,cssVar:r,negative:i}=e.extensions;if(!t)return;p.has(t)||p.set(t,new Map);const n=i?e.extensions.conditions?e.originalValue:e.value:r.ref;p.get(t).set(o,n),u.set([t,o].join("."),n)}(e),function(e){const{colorPalette:t,virtual:o,default:r}=e.extensions;t&&!o&&t.roots.forEach(o=>{const i=n(o);d.has(i)||d.set(i,new Map);const a=function(e,t){const o=e.findIndex((o,r)=>t.every((t,o)=>e[r+o]===t));return-1===o||(e.splice(o,t.length),e.splice(o,0,"colorPalette")),e}([...e.path],[...o]),s=I(n(a));if(!s||!s.extensions.cssVar)return;const{var:l}=s.extensions.cssVar;if(d.get(i).set(l,e.extensions.cssVar.ref),r&&1===o.length){const r=I(n(["colors","colorPalette"]));if(!r)return;const i=I(n(e.path));if(!i)return;const a=t.keys[0]?.filter(Boolean);if(!a.length)return;const s=n(o.concat(a));d.has(s)||d.set(s,new Map),d.get(s).set(r.extensions.cssVar.var,i.extensions.cssVar.ref)}})}(e)}),_=Pe(p),T}function tt(e){return"DEFAULT"===e[0]?e:e.filter(e=>"DEFAULT"!==e)}function ot(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 rt=e=>(t,o)=>{const r=o.utils.colorMix(t);if(r.invalid)return{[e]:t};const i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}};function it(...e){const t=B(...e),{theme:o={},utilities:r={},globalCss:i={},cssVarsRoot:n=":where(:root, :host)",cssVarsPrefix:a="chakra",preflight:s}=t,l=function(e){const t=e.layers??ve,o=Object.values(t).sort((e,t)=>xe[e]-xe[t]);return{names:o,atRule:`@layer ${o.join(", ")};`,wrap(o,r){if(e.disableLayers)return r;const i=t[o];return{[`@layer ${i}`]:r}}}}(t),c=et({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,r)=>{let i=null;return o<=r.length-1&&(i=r[o+1]?.[1]),null!=i&&(i=A(i)),[e,{name:e,min:F(t),max:i}]})}(e),o=Object.fromEntries(t);function r(e){return o[e]}function i(e){return D(r(e))}const n=function(){const e=function(){const e=Object.keys(o),t=function(e){const t=[];return e.forEach((o,r)=>{let i=r;i++;let n=e[i];for(;n;)t.push([o,n]),i++,n=e[i]}),t}(e),n=e.flatMap(e=>{const t=r(e),o=[`${e}Down`,D({max:A(t.min)})];return[[e,D({min:t.min})],[`${e}Only`,i(e)],o]}).filter(([,e])=>""!==e).concat(t.map(([e,t])=>{const o=r(e),i=r(t);return[`${e}To${n=t,n.charAt(0).toUpperCase()+n.slice(1)}`,D({min:o.min,max:A(i.min)})];var n}));return Object.fromEntries(n)}();return Object.fromEntries(Object.entries(e))}();return{values:Object.values(o),only:i,keys:function(){return R(["base",...Object.keys(o)])},conditions:n,getCondition:e=>n[e],up:function(e){return D({min:r(e).min})},down:function(e){return D({max:A(r(e).min)})}}}(o.breakpoints??H),u=(e=>{const{breakpoints:t,conditions:o={}}=e,r=g(o,(e,t)=>[`_${e}`,t]),i=Object.assign({},r,t.conditions);function n(){return Object.keys(i)}function a(e){return n().includes(e)||W.test(e)||e.startsWith("_")}return{keys:n,sort:E(e=>e.filter(e=>"base"!==e).sort((e,t)=>{const o=a(e),r=a(t);return o&&!r?1:!o&&r?-1:0})),has:a,resolve:function(e){return Reflect.get(i,e)||e},breakpoints:t.keys(),expandAtRule:function(e){return e.startsWith("@breakpoint")?t.getCondition(e.replace("@breakpoint ","")):e}}})({conditions:t.conditions??H,breakpoints:d}),v=function(e){const t=g(e.config,(e,t)=>[e,t]),o=e.tokens,r=new Map,i=new Map;function n(e,o){t[e]=o,a(e,o)}const a=(e,t)=>{const o=c(t);o&&(i.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 r=s.get(e)??new Set;t.property&&s.set(e,r.add(`CssProperties["${t.property}"]`))},c=(e,t)=>{const{values:r}=e,i=e=>{const o=t?.(e);return o?{[o]:o}:void 0};if(m(r))return i?.(r)??o.getCategoryValues(r)??H;if(Array.isArray(r)){const e={};for(let t=0;t<r.length;t++)e[r[t]]=r[t];return e}return b(r)?r(t?i:o.getCategoryValues):r},d=E((e,t)=>({[e]:e.startsWith("--")?o.getVar(t,t):t})),u=Object.assign(o.getVar,{raw:e=>o.getByName(e)}),p=E((e,r)=>{const n=f(e);m(r)&&!r.includes("_EMO_")&&(r=o.expandReferenceInValue(r));const a=t[n];if(!a)return d(n,r);const s=i.get(n)?.[r];return a.transform?a.transform(s??r,{raw:r,token:u,utils:{colorMix:e=>((e,t)=>{if(!e||"string"!=typeof e)return{invalid:!0,value:e};const[o,r]=e.split("/");if(!o||!r||"currentBg"===o)return{invalid:!0,value:o};const i=t(`colors.${o}`),n=t.raw(`opacity.${r}`)?.value;if(!n&&isNaN(Number(r)))return{invalid:!0,value:o};const a=i??o;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${n?100*Number(n)+"%":`${r}%`}, transparent)`}})(e,u)}}):d(e,s??r)});(()=>{for(const[e,o]of Object.entries(t)){const{shorthand:t}=o??{};t&&(Array.isArray(t)?t:[t]).forEach(t=>r.set(t,e))}})(),(()=>{const e=Pe(o.colorPaletteMap);n("colorPalette",{values:Object.keys(e),transform:E(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=r.size>0,f=E(e=>r.get(e)??e);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:h,transform:p,shorthands:r,resolveShorthand:f,register:n,getTypes:()=>{const e=new Map;for(const[t,o]of s.entries()){if(0===o.size){e.set(t,["string"]);continue}const r=Array.from(o).map(e=>e.startsWith("CssProperties")?e:e.startsWith("type:")?e.replace("type:",""):JSON.stringify(e));e.set(t,r)}return e},addPropertyType:(e,t)=>{const o=s.get(e)??new Set;s.set(e,new Set([...o,...t]))}}}({config:r,tokens:c});!function(){const{textStyles:e,layerStyles:t,animationStyles:r}=o,i=h({textStyle:e,layerStyle:t,animationStyle:r});for(const[e,t]of Object.entries(i)){const o=w(t??H,nt);v.register(e,{values:Object.keys(o),transform:e=>_(o[e])})}}(),v.addPropertyType("animationName",Object.keys(o.keyframes??H));const y=new Set(["css",...v.keys(),...u.keys()]),k=E(e=>y.has(e)||p(e)),S=e=>{if(Array.isArray(e)){const t=U();for(let o=0;o<e.length;o++){const r=e[o];null!=r&&(t[u.breakpoints[o]]=r)}return t}return e},C=function(e){const{utility:t,normalize:o}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(e){return x(e,o,{stop:e=>Array.isArray(e),getKey:r?i:void 0})}}({utility:v,normalize:S}),I=function(e){const{conditions:t,isValidProperty:o}=e;return function(e){return x(e,e=>e,{getKey:(e,r)=>f(r)?t.has(e)||o(e)?e:function(e){const t=[];let o=0,r="",i=!1;for(let n=0;n<e.length;n++){const a=e[n];"\\"!==a||i?i?(i=!1,r+=a):("("===a?o++:")"===a&&o--,","===a&&0===o?(t.push(r.trim()),r=""):r+=a):(i=!0,r+=a)}return r&&t.push(r.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:k}),_=ge({transform:v.transform,conditions:u,normalize:C}),T=function(e){const{css:t,conditions:o,normalize:r,layers:i}=e;return function n(a={}){const s=be(a),{base:l,defaultVariants:c,compoundVariants:d}=s,u=g(s.variants,(e,t)=>[e,g(t,(e,t)=>[e,r(t)])]),p=ge({conditions:o,normalize:r,transform:(e,t)=>u[e]?.[t]}),f=(e={})=>{const o=r({...c,...h(e)});let n={...l};P(n,p(o));const a=function(e,o){let r=H;return e.forEach(e=>{Object.entries(e).every(([e,t])=>"css"===e||(Array.isArray(t)?t:[t]).some(t=>o[e]===t))&&(r=t(r,e.css))}),r}(d,o);return i.wrap("recipes",t(n,a))},m=Object.keys(u),b=g(u,(e,t)=>[e,Object.keys(t)]);return Object.assign(e=>t(f(e)),{className:a.className,__cva__:!0,variantMap:b,variantKeys:m,raw:f,config:a,splitVariantProps:e=>{const t=me(e,["recipe"]),[o,r]=z(t,m),i=m.includes("colorPalette"),n=m.includes("orientation");return i||(o.colorPalette=e.colorPalette||c.colorPalette),n&&(r.orientation=e.orientation),[o,r]},merge(t){return n(function(e){const{css:t}=e;return function(e,o){const r=be(o.config),i=R(e.variantKeys,Object.keys(o.variants)),n=t(e.base,r.base),a=Object.fromEntries(i.map(o=>[o,t(e.config.variants[o],r.variants[o])])),s=P(e.config.defaultVariants,r.defaultVariants),l=[...e.compoundVariants,...r.compoundVariants];return{className:fe(e.className,o.className),base:n,variants:a,defaultVariants:s,compoundVariants:l}}}(e)(this,t))}})}}({css:_,conditions:u,normalize:C,layers:l}),O=function(e){const{cva:t}=e;return function(e=H){const o=Object.entries(((e=H)=>{const t=t=>{return{base:e.base?.[t]??H,variants:U(),defaultVariants:e.defaultVariants??H,compoundVariants:e.compoundVariants?(o=e.compoundVariants,r=t,o.filter(e=>e.css[r]).map(e=>({...e,css:e.css[r]}))):$};var o,r},o=(e.slots??[]).map(e=>[e,t(e)]);for(const[t,r]of Object.entries(e.variants??{}))for(const[e,i]of Object.entries(r))o.forEach(([o,r])=>{var n;(n=r.variants)[t]??(n[t]={}),r.variants[t][e]=i[o]??H});return Object.fromEntries(o)})(e)).map(([e,o])=>[e,t(o)]),r=e.variants??H,i=Object.keys(r),n=g(r,(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:n,variantKeys:i,splitVariantProps:function(t){const o=me(t,["recipe"]),[r,n]=z(o,i),a=i.includes("colorPalette"),s=i.includes("orientation");return a||(r.colorPalette=t.colorPalette||e.defaultVariants?.colorPalette),s&&(n.orientation=t.orientation),[r,n]},classNameMap:a})}}({cva:T});function V(){const e={};for(const[t,o]of c.cssVarMap.entries()){const r=Object.fromEntries(o);if(0===Object.keys(r).length)continue;const i="base"===t?n:u.resolve(t),a=i.startsWith("@");P(e,_(I({[i]:a?{[n]:r}:r})))}return l.wrap("tokens",e)}function N(){const e=g(o.keyframes??H,(e,t)=>[`@keyframes ${e}`,t]),t=Object.assign({},e,_(I(i)));return l.wrap("base",t)}function j(){const e=function(e){const{preflight:t}=e;if(!t)return{};const{scope:o="",level:r="parent"}=f(t)?t:{};let i="";o&&"parent"===r?i=`${o} `:o&&"element"===r&&(i=`&${o}`);const n={"*":{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"===r){const e=Object.entries(n).reduce((e,[t,o])=>(e[t]={[i]:o},e),{});Object.assign(a,e)}else i?a[i]=n:Object.assign(a,n);return a}({preflight:s});return l.wrap("reset",e)}const L=function(e){const t=new Map;return e.allTokens.forEach(e=>{const{cssVar:o,virtual:r,conditions:i}=e.extensions,n=i||r?o.ref:e.value;t.set(e.name,{value:n,variable:o.ref})}),t}(c),M=(e,t)=>L.get(e)?.value||t;function G(e){return Object.hasOwnProperty.call(o.recipes??H,e)}function q(e){return Object.hasOwnProperty.call(o.slotRecipes??H,e)}M.var=(e,t)=>L.get(e)?.variable||t;const K=[j(),N(),V()],Y={layerStyles:at(o.layerStyles??H),textStyles:at(o.textStyles??H),animationStyles:at(o.animationStyles??H),tokens:st(c,Object.keys(o.tokens??H),(e,t)=>!e.extensions.conditions&&!t.includes("colorPalette")),semanticTokens:st(c,Object.keys(o.semanticTokens??H),e=>!!e.extensions.conditions),keyframes:lt(o.keyframes??H),breakpoints:lt(o.breakpoints??H)};return{$$chakra:!0,_config:t,_global:K,breakpoints:d,tokens:c,conditions:u,utility:v,token:M,properties:y,layers:l,isValidProperty:k,splitCssProps:function(e){return z(e,k)},normalizeValue:S,getTokenCss:V,getGlobalCss:N,getPreflightCss:j,css:_,cva:T,sva:O,getRecipe:function(e,t){return o.recipes?.[e]??t},getSlotRecipe:function(e,t){return o.slotRecipes?.[e]??t},hasRecipe:function(e){return G(e)||q(e)},isRecipe:G,isSlotRecipe:q,query:Y}}const nt=e=>f(e)&&"value"in e,at=e=>({list:()=>Object.keys(w(e,nt)),search(e){return this.list().filter(t=>t.includes(e))}}),st=(e,t,o)=>({categoryKeys:t,list(t){const r=e.categoryMap.get(t),i=r?[...r.entries()]:[],n=[];for(let e=0;e<i.length;e++){const[t,r]=i[e];o(r,t)&&n.push(t)}return n},search(e,t){return this.list(e).filter(e=>e.includes(t))}}),lt=e=>({list:()=>Object.keys(e),search(e){return this.list().filter(t=>t.includes(e))}}),ct=(e,t)=>null!=t?`${e}(${t})`:t,dt=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},ut=e=>({values:["outside","inside","mixed","none"],transform(t,{token:o}){const r=o("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),pt=rt("borderColor"),ht=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),gt=ke("bg-currentcolor"),ft=e=>e===gt.ref||"currentBg"===e,mt=e=>({...e("colors"),currentBg:gt}),bt={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:mt,shorthand:["bg"],transform(e,t){if(ft(t.raw))return{background:gt.ref};const o=rt("background")(e,t);return{...o,[gt.var]:o?.background}}},backgroundColor:{values:mt,shorthand:["bgColor"],transform(e,t){if(ft(t.raw))return{backgroundColor:gt.ref};const o=rt("backgroundColor")(e,t);return{...o,[gt.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:mt,transform:rt("--gradient-from")},gradientTo:{values:mt,transform:rt("--gradient-to")},gradientVia:{values:mt,transform:(e,t)=>({...rt("--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:mt,transform:rt("borderColor")},borderTopColor:{values:mt,transform:rt("borderTopColor")},borderBlockStartColor:{values:mt,transform:rt("borderBlockStartColor")},borderBottomColor:{values:mt,transform:rt("borderBottomColor")},borderBlockEndColor:{values:mt,transform:rt("borderBlockEndColor")},borderLeftColor:{values:mt,transform:rt("borderLeftColor")},borderInlineStartColor:{values:mt,shorthand:["borderStartColor"],transform:rt("borderInlineStartColor")},borderRightColor:{values:mt,transform:rt("borderRightColor")},borderInlineEndColor:{values:mt,shorthand:["borderEndColor"],transform:rt("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:mt,transform:rt("color")},fill:{values:mt,transform:rt("fill")},stroke:{values:mt,transform:rt("stroke")},accentColor:{values:mt,transform:rt("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:mt,transform:(e,t)=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":pt(e,t)})},divideStyle:{property:"borderStyle",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}})},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:mt,transform:rt("--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":ct("blur",e)})},brightness:{transform:e=>({"--brightness":ct("brightness",e)})},contrast:{transform:e=>({"--contrast":ct("contrast",e)})},grayscale:{transform:e=>({"--grayscale":ct("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":ct("hue-rotate",dt(e))})},invert:{transform:e=>({"--invert":ct("invert",e)})},saturate:{transform:e=>({"--saturate":ct("saturate",e)})},sepia:{transform:e=>({"--sepia":ct("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":ct("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":ct("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":ct("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":ct("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":ct("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":ct("hue-rotate",dt(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":ct("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":ct("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":ct("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":ct("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:mt,transform:rt("outlineColor")},focusRing:ut("&:is(:focus, [data-focus])"),focusVisibleRing:ut("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:mt,transform:rt("--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 r=o.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`;return{[r]:{display:"none"}}}},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:o}){const r=o.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`;return{[r]:{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:mt,transform:rt("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:mt,transform:rt("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:mt,transform:rt("--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:mt,transform:rt("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":dt(e)})},skewY:{transform:e=>({"--skew-y":dt(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:dt(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}},rotateX:{transform:e=>({"--rotate-x":dt(e)})},rotateY:{transform:e=>({"--rotate-y":dt(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 ht("all");case"position":return ht("left, right, top, bottom, inset-inline, inset-block");case"colors":return ht("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return ht("opacity");case"shadow":return ht("box-shadow");case"transform":return ht("transform");case"size":return ht("width, height");case"backgrounds":return ht("background, background-color, background-image, background-position");case"common":return ht("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=>vt[e]||{}},debug:{values:{type:"boolean"},transform:e=>e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}},caretColor:{values:mt,transform:rt("caretColor")},cursor:{values:"cursor"}}},vt={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"}},xt="var(--chakra-empty,/*!*/ /*!*/)",yt={"*":{fontFeatureSettings:'"cv11"',"--ring-inset":xt,"--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}`,xt])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,xt])),"--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"}},wt={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"}},kt={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:St,defaultVariants:Ct}=wt,It={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"}},Et={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"}},_t={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"}},Pt={badge:wt,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:St,defaultVariants:Ct},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:Et,inputAddon:{className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:Et.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:kt,radiomark:_t,colorSwatch:It},zt=a.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}"}}}}),Rt=a.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),Tt=a.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 Ot=(e,t=[])=>({parts:(...o)=>{if(Nt(t))return Ot(e,o);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...o)=>Ot(e,[...t,...o]),omit:(...o)=>Ot(e,t.filter(e=>!o.includes(e))),rename:e=>Ot(e,t),keys:()=>t,build:()=>[...new Set(t)].reduce((t,o)=>Object.assign(t,{[o]:{selector:[`&[data-scope="${Vt(e)}"][data-part="${Vt(o)}"]`,`& [data-scope="${Vt(e)}"][data-part="${Vt(o)}"]`].join(", "),attrs:{"data-scope":Vt(e),"data-part":Vt(o)}}}),{})}),Vt=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Nt=e=>0===e.length,jt=Object.defineProperty,Ft=e=>{throw TypeError(e)},At=(e,t,o)=>((e,t,o)=>t in e?jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o),Dt=(e,t,o)=>(((e,t)=>{t.has(e)||Ft("Cannot read from private field")})(e,t),t.get(e));var Wt=(e,...t)=>e.concat(t),Lt=(e,...t)=>e.filter(e=>!t.includes(e)),Mt=(e,t)=>((e,t)=>-1!==e.indexOf(t))(e,t)?Lt(e,t):Wt(e,t);function Bt(e){return e.reduce((e,t)=>Array.isArray(t)?e.concat(Bt(t)):e.concat(t),[])}var Ht=e=>"Array"===e?.constructor.name,$t=(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(Ht(e)&&Ht(t))return((e,t)=>{if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!$t(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)),r=o.length;for(let t=0;t<r;t++)if(!Reflect.has(e,o[t]))return!1;for(let i=0;i<r;i++){const r=o[i];if(!$t(e[r],t[r]))return!1}return!0},Ut=e=>null!=e&&"object"==typeof e,Gt=e=>Ut(e)&&!(e=>Array.isArray(e))(e),qt=e=>"string"==typeof e,Kt=e=>"function"==typeof e,Yt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Xt=Function.prototype.toString,Zt=Xt.call(Object),Jt=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),Qt=(e,...t)=>("function"==typeof e?e(...t):e)??void 0,eo=e=>e(),to=()=>{},oo=(...e)=>(...t)=>{e.forEach(function(e){e?.(...t)})},ro=(()=>{let e=0;return()=>(e++,e.toString(36))})();function io(e,t,...o){if(e in t){const r=t[e];return Kt(r)?r(...o):r}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,io),r}var{floor:no,abs:ao,round:so,min:lo,max:co,pow:uo,sign:po}=Math,ho=e=>Number.isNaN(e),go=e=>ho(e)?0:e,fo=(e,t)=>(e%t+t)%t,mo=(e,t,o)=>{const r=go(e);return(null==t||r>=t)&&(null==o||r<=o)},bo=(e,t,o)=>lo(co(go(e),t),o),vo=(e,t,o)=>(go(e)-t)/(o-t),xo=(e,t,o,r)=>bo(((e,t,o)=>so((go(e)-t)/o)*o+t)(e*(o-t)+t,t,r),t,o),yo=(e,t)=>{let o=e,r=t.toString(),i=r.indexOf("."),n=i>=0?r.length-i:0;if(n>0){let e=uo(10,n);o=so(o*e)/e}return o},wo=(e,t)=>"number"==typeof t?no(e*t+.5)/t:so(e),ko=(e,t,o,r)=>{const i=null!=t?Number(t):0,n=Number(o),a=(e-i)%r;let s=2*ao(a)>=r?e+po(a)*(r-ao(a)):e-a;if(s=yo(s,r),!ho(i)&&s<i)s=i;else if(!ho(n)&&s>n){const e=no((n-i)/r),t=i+e*r;s=e<=0||t<i?n:t}return yo(s,r)},So=(e,t,o)=>e[t]===o?e:[...e.slice(0,t),o,...e.slice(t+1)];var Co=(e,t=0,o=10)=>{const r=Math.pow(o,t);return so(e*r)/r},Io=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},Eo=(e,t,o)=>{let r="+"===t?e+o:e-o;if(e%1!=0||o%1!=0){const i=10**Math.max(Io(e),Io(o));e=Math.round(e*i),o=Math.round(o*i),r="+"===t?e+o:e-o,r/=i}return r},_o=e=>"number"==typeof e?`${e}px`:e;function Po(e){if(!(e=>{if(!Ut(e)||"[object Object]"!=(e=>Object.prototype.toString.call(e))(e)||Jt(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const o=Yt(t,"constructor")&&t.constructor;return"function"==typeof o&&o instanceof o&&Xt.call(o)==Zt})(e)||void 0===e)return e;const t=Reflect.ownKeys(e).filter(e=>"string"==typeof e),o={};for(const r of t){const t=e[r];void 0!==t&&(o[r]=Po(t))}return o}var zo,Ro=e=>function(t){return function(e,t){const o={},r={},i=new Set(t),n=Reflect.ownKeys(e);for(const t of n)i.has(t)?r[t]=e[t]:o[t]=e[t];return[r,o]}(t,e)},To=()=>performance.now(),Oo=class{constructor(e){var t,o,r;this.onTick=e,At(this,"frameId",null),At(this,"pausedAtMs",null),At(this,"context"),At(this,"cancelFrame",()=>{null!==this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=null)}),At(this,"setStartMs",e=>{this.context.startMs=e}),At(this,"start",()=>{if(null!==this.frameId)return;const e=To();null!==this.pausedAtMs?(this.context.startMs+=e-this.pausedAtMs,this.pausedAtMs=null):this.context.startMs=e,this.frameId=requestAnimationFrame(Dt(this,zo))}),At(this,"pause",()=>{null!==this.frameId&&(this.cancelFrame(),this.pausedAtMs=To())}),At(this,"stop",()=>{null!==this.frameId&&(this.cancelFrame(),this.pausedAtMs=null)}),t=this,r=e=>{this.context.now=e,this.context.deltaMs=e-this.context.startMs,!1!==this.onTick(this.context)?this.frameId=requestAnimationFrame(Dt(this,zo)):this.stop()},(o=zo).has(t)?Ft("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(t):o.set(t,r),this.context={now:0,startMs:To(),deltaMs:0}}get elapsedMs(){return null!==this.pausedAtMs?this.pausedAtMs-this.context.startMs:To()-this.context.startMs}};function Vo(e,t){const o=new Oo(({deltaMs:o})=>{if(o>=t)return e(),!1});return o.start(),()=>o.stop()}function No(...e){1===e.length?e[0]:e[1],2!==e.length||e[0]}function jo(e,t){if(null==e)throw new Error(t())}zo=new WeakMap;var Fo=Object.defineProperty,Ao=(e,t,o)=>((e,t,o)=>t in e?Fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o),Do={itemToValue:e=>"string"==typeof e?e:Gt(e)&&Yt(e,"value")?e.value:"",itemToString:e=>"string"==typeof e?e:Gt(e)&&Yt(e,"label")?e.label:Do.itemToValue(e),isItemDisabled:e=>!(!Gt(e)||!Yt(e,"disabled")||!e.disabled)},Wo=class e{constructor(t){this.options=t,Ao(this,"items"),Ao(this,"indexMap",null),Ao(this,"copy",t=>new e({...this.options,items:t??[...this.items]})),Ao(this,"isEqual",e=>$t(this.items,e.items)),Ao(this,"setItems",e=>this.copy(e)),Ao(this,"getValues",(e=this.items)=>{const t=[];for(const o of e){const e=this.getItemValue(o);null!=e&&t.push(e)}return t}),Ao(this,"find",e=>{if(null==e)return null;const t=this.indexOf(e);return-1!==t?this.at(t):null}),Ao(this,"findMany",e=>{const t=[];for(const o of e){const e=this.find(o);null!=e&&t.push(e)}return t}),Ao(this,"at",e=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[e]??null;let t=0;const o=this.group();for(const[,r]of o)for(const o of r){if(t===e)return o;t++}return null}),Ao(this,"sortFn",(e,t)=>(this.indexOf(e)??0)-(this.indexOf(t)??0)),Ao(this,"sort",e=>[...e].sort(this.sortFn.bind(this))),Ao(this,"getItemValue",e=>null==e?null:this.options.itemToValue?.(e)??Do.itemToValue(e)),Ao(this,"getItemDisabled",e=>null!=e&&(this.options.isItemDisabled?.(e)??Do.isItemDisabled(e))),Ao(this,"stringifyItem",e=>null==e?null:this.options.itemToString?.(e)??Do.itemToString(e)),Ao(this,"stringify",e=>null==e?null:this.stringifyItem(this.find(e))),Ao(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)}),Ao(this,"stringifyMany",(e,t)=>this.stringifyItems(this.findMany(e),t)),Ao(this,"has",e=>-1!==this.indexOf(e)),Ao(this,"hasItem",e=>null!=e&&this.has(this.getItemValue(e))),Ao(this,"group",()=>{const{groupBy:e,groupSort:t}=this.options;if(!e)return[["",[...this.items]]];const o=new Map;this.items.forEach((t,r)=>{const i=e(t,r);o.has(i)||o.set(i,[]),o.get(i).push(t)});let r=Array.from(o.entries());return t&&r.sort(([e],[o])=>{if("function"==typeof t)return t(e,o);if(Array.isArray(t)){const r=t.indexOf(e),i=t.indexOf(o);return-1===r?1:-1===i?-1:r-i}return"asc"===t?e.localeCompare(o):"desc"===t?o.localeCompare(e):0}),r}),Ao(this,"getNextValue",(e,t=1,o=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=o?Math.min(r+t,this.size-1):r+t;r<=this.size&&this.getItemDisabled(this.at(r));)r++;return this.getItemValue(this.at(r))}),Ao(this,"getPreviousValue",(e,t=1,o=!1)=>{let r=this.indexOf(e);if(-1===r)return null;for(r=o?Math.max(r-t,0):r-t;r>=0&&this.getItemDisabled(this.at(r));)r--;return this.getItemValue(this.at(r))}),Ao(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}),Ao(this,"getByText",(e,t)=>{const o=null!=t?this.indexOf(t):-1,r=1===e.length;for(let i=0;i<this.items.length;i++){const n=this.items[(o+i+1)%this.items.length];if((!r||this.getItemValue(n)!==t)&&!this.getItemDisabled(n)&&Lo(this.stringifyItem(n),e))return n}}),Ao(this,"search",(e,t)=>{const{state:o,currentValue:r,timeout:i=350}=t,n=o.keysSoFar+e,a=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,s=this.getByText(a,r),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()},i))}(n),l}),Ao(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)])}),Ao(this,"upsert",(e,t,o="append")=>{let r=this.indexOf(e);return-1===r?("append"===o?this.append:this.prepend)(t):this.copy([...this.items.slice(0,r),t,...this.items.slice(r+1)])}),Ao(this,"insert",(e,...t)=>this.copy(Mo(this.items,e,...t))),Ao(this,"insertBefore",(e,...t)=>{let o=this.indexOf(e);if(-1===o){if(0!==this.items.length)return this;o=0}return this.copy(Mo(this.items,o,...t))}),Ao(this,"insertAfter",(e,...t)=>{let o=this.indexOf(e);if(-1===o){if(0!==this.items.length)return this;o=0}return this.copy(Mo(this.items,o+1,...t))}),Ao(this,"prepend",(...e)=>this.copy(Mo(this.items,0,...e))),Ao(this,"append",(...e)=>this.copy(Mo(this.items,this.items.length,...e))),Ao(this,"filter",e=>{const t=this.items.filter((t,o)=>e(this.stringifyItem(t),o,t));return this.copy(t)}),Ao(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)}))}),Ao(this,"move",(e,t)=>{const o=this.indexOf(e);return-1===o?this:this.copy(Bo(this.items,[o],t))}),Ao(this,"moveBefore",(e,...t)=>{let o=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===o)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(Bo(this.items,r,o))}),Ao(this,"moveAfter",(e,...t)=>{let o=this.items.findIndex(t=>this.getItemValue(t)===e);if(-1===o)return this;let r=t.map(e=>this.items.findIndex(t=>this.getItemValue(t)===e)).sort((e,t)=>e-t);return this.copy(Bo(this.items,r,o+1))}),Ao(this,"reorder",(e,t)=>this.copy(Bo(this.items,[e],t))),Ao(this,"compareValue",(e,t)=>{const o=this.indexOf(e),r=this.indexOf(t);return o<r?-1:o>r?1:0}),Ao(this,"range",(e,t)=>{let o=[],r=e;for(;null!=r;){if(this.find(r)&&o.push(r),r===t)return o;r=this.getNextValue(r)}return[]}),Ao(this,"getValueRange",(e,t)=>e&&t?this.compareValue(e,t)<=0?this.range(e,t):this.range(t,e):[]),Ao(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}),Ao(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}},Lo=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Mo(e,t,...o){return[...e.slice(0,t),...o,...e.slice(t)]}function Bo(e,t,o){const r=(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),...r,...e.slice(o)]}var Ho=class e extends Set{constructor(t=[]){super(t),Ao(this,"selectionMode","single"),Ao(this,"deselectable",!0),Ao(this,"copy",()=>{const t=new e([...this]);return this.sync(t)}),Ao(this,"sync",e=>(e.selectionMode=this.selectionMode,e.deselectable=this.deselectable,e)),Ao(this,"isEmpty",()=>0===this.size),Ao(this,"isSelected",e=>"none"!==this.selectionMode&&null!=e&&this.has(e)),Ao(this,"canSelect",(e,t)=>"none"!==this.selectionMode||!e.getItemDisabled(e.find(t))),Ao(this,"firstSelectedValue",e=>{let t=null;for(let o of this)(!t||e.compareValue(o,t)<0)&&(t=o);return t}),Ao(this,"lastSelectedValue",e=>{let t=null;for(let o of this)(!t||e.compareValue(o,t)>0)&&(t=o);return t}),Ao(this,"extendSelection",(e,t,o)=>{if("none"===this.selectionMode)return this;if("single"===this.selectionMode)return this.replaceSelection(e,o);const r=this.copy(),i=Array.from(this).pop();for(let n of e.getValueRange(t,i??o))r.delete(n);for(let i of e.getValueRange(o,t))this.canSelect(e,i)&&r.add(i);return r}),Ao(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}),Ao(this,"replaceSelection",(t,o)=>{if("none"===this.selectionMode)return this;if(null==o)return this;if(!this.canSelect(t,o))return this;const r=new e([o]);return this.sync(r)}),Ao(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)}),Ao(this,"clearSelection",()=>{const e=this.copy();return e.deselectable&&e.size>0&&e.clear(),e}),Ao(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)),Ao(this,"deselect",e=>{const t=this.copy();return t.delete(e),t}),Ao(this,"isEqual",e=>$t(Array.from(this),Array.from(e)))}};function $o(e,t,o){for(let r=0;r<t.length;r++)e=o.getChildren(e,t.slice(r+1))[t[r]];return e}function Uo(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 Go(e,t){let o;return er(e,{onEnter:(e,r)=>{if(t.predicate(e,r))return o=[...r],"stop"},getChildren:t.getChildren}),o}function qo(e){return{type:"remove",indexes:e}}function Ko(){return{type:"replace"}}function Yo(e){return[e.slice(0,-1),e[e.length-1]]}function Xo(e,t,o=new Map){const[r,i]=Yo(e);for(let e=r.length-1;e>=0;e--){const t=r.slice(0,e).join();"remove"!==o.get(t)?.type&&o.set(t,Ko())}const n=o.get(r.join());return"remove"===n?.type?o.set(r.join(),{type:"removeThenInsert",removeIndexes:n.indexes,insertIndex:i,insertNodes:t}):o.set(r.join(),function(e,t){return{type:"insert",index:e,nodes:t}}(i,t)),o}function Zo(e){const t=new Map,o=new Map;for(const t of e){const e=t.slice(0,-1).join(),r=o.get(e)??[];r.push(t[t.length-1]),o.set(e,r.sort((e,t)=>e-t))}for(const o of e)for(let e=o.length-2;e>=0;e--){const r=o.slice(0,e).join();t.has(r)||t.set(r,Ko())}for(const[e,r]of o)t.set(e,qo(r));return t}function Jo(e,t,o){return function(e,t){const o={};return er(e,{...t,onLeave:(e,r)=>{const i=[0,...r],n=i.join(),a=t.transform(e,o[n]??[],r),s=i.slice(0,-1).join(),l=o[s]??[];l.push(a),o[s]=l}}),o[""][0]}(e,{...o,getChildren:(e,r)=>{const i=r.join(),n=t.get(i);switch(n?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return o.getChildren(e,r);default:return[]}},transform:(e,r,i)=>{const n=i.join(),a=t.get(n);switch(a?.type){case"remove":return o.create(e,r.filter((e,t)=>!a.indexes.includes(t)),i);case"removeThenInsert":const t=r.filter((e,t)=>!a.removeIndexes.includes(t)),n=a.removeIndexes.reduce((e,t)=>t<e?e-1:e,a.insertIndex);return o.create(e,Qo(t,n,0,...a.insertNodes),i);case"insert":return o.create(e,Qo(r,a.index,0,...a.nodes),i);case"replace":return o.create(e,r,i);default:return e}}})}function Qo(e,t,o,...r){return[...e.slice(0,t),...r,...e.slice(t+o)]}function er(e,t){const{onEnter:o,onLeave:r,getChildren:i}=t;let n=[],a=[{node:e}];const s=t.reuseIndexPath?()=>n:()=>n.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||i(e.node,s());if(e.children||(e.children=t),-1!==e.state){if(e.state<t.length){let o=e.state;n.push(o),a.push({node:t[o]}),e.state=o+1;continue}const o=r?.(e.node,s());if("stop"===o)return}n.pop(),a.pop()}}var tr=class e{constructor(t){this.options=t,Ao(this,"rootNode"),Ao(this,"isEqual",e=>$t(this.rootNode,e.rootNode)),Ao(this,"getNodeChildren",e=>this.options.nodeToChildren?.(e)??or.nodeToChildren(e)??[]),Ao(this,"resolveIndexPath",e=>"string"==typeof e?this.getIndexPath(e):e),Ao(this,"resolveNode",e=>{const t=this.resolveIndexPath(e);return t?this.at(t):void 0}),Ao(this,"getNodeChildrenCount",e=>this.options.nodeToChildrenCount?.(e)??or.nodeToChildrenCount(e)),Ao(this,"getNodeValue",e=>this.options.nodeToValue?.(e)??or.nodeToValue(e)),Ao(this,"getNodeDisabled",e=>this.options.isNodeDisabled?.(e)??or.isNodeDisabled(e)),Ao(this,"stringify",e=>{const t=this.findNode(e);return t?this.stringifyNode(t):null}),Ao(this,"stringifyNode",e=>this.options.nodeToString?.(e)??or.nodeToString(e)),Ao(this,"getFirstNode",(e=this.rootNode)=>{let t;return er(e,{getChildren:this.getNodeChildren,onEnter:(e,o)=>{if(!t&&o.length>0&&!this.getNodeDisabled(e))return t=e,"stop"}}),t}),Ao(this,"getLastNode",(e=this.rootNode,t={})=>{let o;return er(e,{getChildren:this.getNodeChildren,onEnter:(r,i)=>{if(!this.isSameNode(r,e))return t.skip?.({value:this.getNodeValue(r),node:r,indexPath:i})?"skip":void(i.length>0&&!this.getNodeDisabled(r)&&(o=r))}}),o}),Ao(this,"at",e=>$o(this.rootNode,e,{getChildren:this.getNodeChildren})),Ao(this,"findNode",(e,t=this.rootNode)=>function(e,t){let o;return er(e,{...t,onEnter:(e,r)=>{if(t.predicate(e,r))return o=e,"stop"}}),o}(t,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),Ao(this,"findNodes",(e,t=this.rootNode)=>{const o=new Set(e.filter(e=>null!=e));return function(e,t){const o=[];return er(e,{onEnter:(e,r)=>{t.predicate(e,r)&&o.push(e)},getChildren:t.getChildren}),o}(t,{getChildren:this.getNodeChildren,predicate:e=>o.has(this.getNodeValue(e))})}),Ao(this,"sort",e=>e.reduce((e,t)=>{const o=this.getIndexPath(t);return o&&e.push({value:t,indexPath:o}),e},[]).sort((e,t)=>Uo(e.indexPath,t.indexPath)).map(({value:e})=>e)),Ao(this,"getIndexPath",e=>Go(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e})),Ao(this,"getValue",e=>{const t=this.at(e);return t?this.getNodeValue(t):void 0}),Ao(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}),Ao(this,"getDepth",e=>{const t=Go(this.rootNode,{getChildren:this.getNodeChildren,predicate:t=>this.getNodeValue(t)===e});return t?.length??0}),Ao(this,"isSameNode",(e,t)=>this.getNodeValue(e)===this.getNodeValue(t)),Ao(this,"isRootNode",e=>this.isSameNode(e,this.rootNode)),Ao(this,"contains",(e,t)=>!(!e||!t)&&t.slice(0,e.length).every((o,r)=>e[r]===t[r])),Ao(this,"getNextNode",(e,t={})=>{let o,r=!1;return er(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(i,n)=>{if(this.isRootNode(i))return;const a=this.getNodeValue(i);return t.skip?.({value:a,node:i,indexPath:n})?(a===e&&(r=!0),"skip"):r&&!this.getNodeDisabled(i)?(o=i,"stop"):void(a===e&&(r=!0))}}),o}),Ao(this,"getPreviousNode",(e,t={})=>{let o,r=!1;return er(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(i,n)=>{if(this.isRootNode(i))return;const a=this.getNodeValue(i);return t.skip?.({value:a,node:i,indexPath:n})?"skip":a===e?(r=!0,"stop"):void(this.getNodeDisabled(i)||(o=i))}}),r?o:void 0}),Ao(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}),Ao(this,"getDescendantNodes",(e,t)=>{const o=this.resolveNode(e);if(!o)return[];const r=[];return er(o,{getChildren:this.getNodeChildren,onEnter:(e,o)=>{0!==o.length&&(!t?.withBranch&&this.isBranchNode(e)||r.push(e))}}),r}),Ao(this,"getDescendantValues",(e,t)=>this.getDescendantNodes(e,t).map(e=>this.getNodeValue(e))),Ao(this,"getParentIndexPath",e=>e.slice(0,-1)),Ao(this,"getParentNode",e=>{const t=this.resolveIndexPath(e);return t?this.at(this.getParentIndexPath(t)):void 0}),Ao(this,"visit",e=>{const{skip:t,...o}=e;er(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(e,r)=>{if(!this.isRootNode(e))return t?.({value:this.getNodeValue(e),node:e,indexPath:r})?"skip":o.onEnter?.(e,r)}})}),Ao(this,"getPreviousSibling",e=>{const t=this.getParentNode(e);if(!t)return;const o=this.getNodeChildren(t);let r=e[e.length-1];for(;--r>=0;){const e=o[r];if(!this.getNodeDisabled(e))return e}}),Ao(this,"getNextSibling",e=>{const t=this.getParentNode(e);if(!t)return;const o=this.getNodeChildren(t);let r=e[e.length-1];for(;++r<o.length;){const e=o[r];if(!this.getNodeDisabled(e))return e}}),Ao(this,"getSiblingNodes",e=>{const t=this.getParentNode(e);return t?this.getNodeChildren(t):[]}),Ao(this,"getValues",(e=this.rootNode)=>{const t=function(e,t){return function(e,t){let o=t.initialResult;return er(e,{...t,onEnter:(e,r)=>{o=t.nextResult(o,e,r)}}),o}(e,{...t,initialResult:[],nextResult:(e,o,r)=>(e.push(...t.transform(o,r)),e)})}(e,{getChildren:this.getNodeChildren,transform:e=>[this.getNodeValue(e)]});return t.slice(1)}),Ao(this,"isValidDepth",(e,t)=>null==t||("function"==typeof t?t(e.length):e.length===t)),Ao(this,"isBranchNode",e=>this.getNodeChildren(e).length>0||null!=this.getNodeChildrenCount(e)),Ao(this,"getBranchValues",(e=this.rootNode,t={})=>{let o=[];return er(e,{getChildren:this.getNodeChildren,onEnter:(e,r)=>{if(0===r.length)return;const i=this.getNodeValue(e);if(t.skip?.({value:i,node:e,indexPath:r}))return"skip";this.isBranchNode(e)&&this.isValidDepth(r,t.depth)&&o.push(this.getNodeValue(e))}}),o}),Ao(this,"flatten",(e=this.rootNode)=>function(e,t){const o=[];let r=0;const i=new Map,n=new Map;return er(e,{getChildren:t.getChildren,onEnter:(e,a)=>{i.has(e)||i.set(e,r++);const s=t.getChildren(e,a);s.forEach(t=>{n.has(t)||n.set(t,e),i.has(t)||i.set(t,r++)});const l=s.length>0?s.map(e=>i.get(e)):void 0,c=n.get(e),d=c?i.get(c):void 0,u=i.get(e);o.push({...e,_children:l,_parent:d,_index:u})}}),o}(e,{getChildren:this.getNodeChildren})),Ao(this,"_create",(e,t)=>this.getNodeChildren(e).length>0||t.length>0?{...e,children:t}:{...e}),Ao(this,"_insert",(e,t,o)=>this.copy(function(e,t){const{nodes:o,at:r}=t;if(0===r.length)throw new Error("Can't insert nodes at the root");return Jo(e,Xo(r,o),t)}(e,{at:t,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),Ao(this,"copy",t=>new e({...this.options,rootNode:t})),Ao(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,[r,i]=Yo(e);for(let e=r.length-1;e>=0;e--){const t=r.slice(0,e).join();o.set(t,Ko())}return o.set(r.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),o}(t.at,t.node);return Jo(e,o,t)}(e,{at:t,node:o,getChildren:this.getNodeChildren,create:this._create}))),Ao(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(Uo)}(e),o=[],r=new Set;for(const e of t){const t=e.join();r.has(t)||(r.add(t),o.push(e))}return o}(t.indexPaths),r=o.map(o=>$o(e,o,t)),i=Xo(t.to,r,Zo(o));return Jo(e,i,t)}(e,{indexPaths:t,to:o,getChildren:this.getNodeChildren,create:this._create}))),Ao(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 Jo(e,Zo(t.indexPaths),t)}(e,{indexPaths:t,getChildren:this.getNodeChildren,create:this._create}))),Ao(this,"replace",(e,t)=>this._replace(this.rootNode,e,t)),Ao(this,"remove",e=>this._remove(this.rootNode,e)),Ao(this,"insertBefore",(e,t)=>this.getParentNode(e)?this._insert(this.rootNode,e,t):void 0),Ao(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)}),Ao(this,"move",(e,t)=>this._move(this.rootNode,e,t)),Ao(this,"filter",e=>{const t=function(e,t){const{predicate:o,create:r,getChildren:i}=t,n=(e,t)=>{const a=i(e,t),s=[];a.forEach((e,o)=>{const r=[...t,o],i=n(e,r);i&&s.push(i)});const l=0===t.length,c=o(e,t),d=s.length>0;return l||c||d?r(e,s,t):null};return n(e,[])||r(e,[],[])}(this.rootNode,{predicate:e,getChildren:this.getNodeChildren,create:this._create});return this.copy(t)}),Ao(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},or={nodeToValue:e=>"string"==typeof e?e:Gt(e)&&Yt(e,"value")?e.value:"",nodeToString:e=>"string"==typeof e?e:Gt(e)&&Yt(e,"label")?e.label:or.nodeToValue(e),isNodeDisabled:e=>!(!Gt(e)||!Yt(e,"disabled")||!e.disabled),nodeToChildren:e=>e.children,nodeToChildrenCount(e){if(Gt(e)&&Yt(e,"childrenCount"))return e.childrenCount}},rr=Object.defineProperty,ir=(e,t,o)=>((e,t,o)=>t in e?rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,"symbol"!=typeof t?t+"":t,o),nr=(...e)=>t=>e.reduce((e,t)=>t(e),t),ar=()=>{},sr=e=>"object"==typeof e&&null!==e,lr=2147483647,cr=e=>e?"":void 0,dr=e=>sr(e)&&1===e.nodeType&&"string"==typeof e.nodeName,ur=e=>sr(e)&&9===e.nodeType,pr=e=>dr(e)?e.localName||"":"#document",hr=e=>(e=>sr(e)&&void 0!==e.nodeType)(e)&&11===e.nodeType&&"host"in e;function gr(e){return!!e&&vr(e.getRootNode())===e}function fr(e,t){if(!e||!t)return!1;if(!dr(e)||!dr(t))return!1;const o=t.getRootNode?.();if(e===t)return!0;if(e.contains(t))return!0;if(o&&hr(o)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function mr(e){return ur(e)?e:(e=>sr(e)&&e===e.window)(e)?e.document:e?.ownerDocument??document}function br(e){return hr(e)?br(e.host):ur(e)?e.defaultView??window:dr(e)?e.ownerDocument?.defaultView??window:window}function vr(e){let t=e.activeElement;for(;t?.shadowRoot;){const e=t.shadowRoot.activeElement;if(!e||e===t)break;t=e}return t}var xr=new WeakMap;function yr(e){return xr.has(e)||xr.set(e,br(e).getComputedStyle(e)),xr.get(e)}var wr=new Set(["menu","listbox","dialog","grid","tree","region"]),kr=e=>wr.has(e),Sr=e=>e.getAttribute("aria-controls")?.split(" ")||[];function Cr(e,t){const o=new Set,r=function(e){let t;try{if(t=e.getRootNode({composed:!0}),ur(t)||hr(t))return t}catch{}return e.ownerDocument??document}(e),i=e=>{const n=e.querySelectorAll("[aria-controls]");for(const e of n){if("true"!==e.getAttribute("aria-expanded"))continue;const n=Sr(e);for(const e of n){if(!e||o.has(e))continue;o.add(e);const n=r.getElementById(e);if(n){const e=n.getAttribute("role"),o="true"===n.getAttribute("aria-modal");if(e&&kr(e)&&!o){if(n===t||n.contains(t))return!0;if(i(n))return!0}}}}return!1};return i(e)}var Ir=()=>"undefined"!=typeof document,Er=e=>Ir()&&e.test(function(){const e=navigator.userAgentData;return e?.platform??navigator.platform}()),_r=e=>Ir()&&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}()),Pr=()=>Ir()&&!!navigator.maxTouchPoints,zr=()=>Er(/^iPhone/i)||Er(/^iPad/i)||Rr()&&navigator.maxTouchPoints>1,Rr=()=>Er(/^Mac/i),Tr=()=>{return(Rr()||zr())&&(e=/apple/i,Ir()&&e.test(navigator.vendor));var e};function Or(e){const t=function(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}(e);return t?.[0]??e.target}function Vr(e,t="client"){const o=(e=>"touches"in e&&e.touches.length>0)(e)?e.touches[0]||e.changedTouches[0]:e;return{x:o[`${t}X`],y:o[`${t}Y`]}}var Nr=(e,t,o,r)=>{const i="function"==typeof e?e():e;return i?.addEventListener(t,o,r),()=>{i?.removeEventListener(t,o,r)}};function jr(e,t){const{type:o="HTMLInputElement",property:r="value"}=t,i=br(e)[o].prototype;return Object.getOwnPropertyDescriptor(i,r)??{}}function Fr(e,t,o="value"){if(!e)return;const r=function(e){return"input"===e.localName?"HTMLInputElement":"textarea"===e.localName?"HTMLTextAreaElement":"select"===e.localName?"HTMLSelectElement":void 0}(e);if(r){const i=jr(e,{type:r,property:o});i.set?.call(e,t)}e.setAttribute(o,t)}function Ar(e,t){if(!e)return;const o=jr(e,{type:"HTMLInputElement",property:"checked"});o.set?.call(e,t),t?e.setAttribute("checked",""):e.removeAttribute("checked")}function Dr(e,t){const{checked:o,bubbles:r=!0}=t;if(!e)return;const i=br(e);e instanceof i.HTMLInputElement&&(Ar(e,o),e.dispatchEvent(new i.Event("click",{bubbles:r})))}function Wr(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),r=e=>{e.defaultPrevented||t()};return o?.addEventListener("reset",r,{passive:!0}),()=>o?.removeEventListener("reset",r)}function Lr(e,t){const o=e?.closest("fieldset");if(!o)return;t(o.disabled);const r=new(br(o).MutationObserver)(()=>t(o.disabled));return r.observe(o,{attributes:!0,attributeFilter:["disabled"]}),()=>r.disconnect()}function Mr(e,t){if(!e)return;const{onFieldsetDisabledChange:o,onFormReset:r}=t,i=[Wr(e,r),Lr(e,o)];return()=>i.forEach(e=>e?.())}var Br="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";function Hr(e){return!(!dr(e)||e.closest("[inert]"))&&e.matches(Br)&&!!dr(t=e)&&(t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0);var t}var $r=class e{constructor(){ir(this,"id",null),ir(this,"fn_cleanup"),ir(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 Ur(e){const t=$r.create();return t.request(e),t.cleanup}function Gr(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 qr(e,t){const{defer:o}=t,r=o?Ur:e=>e(),i=[];return i.push(r(()=>{const o="function"==typeof e?e():e;i.push(function(e,t){if(!e)return;const{attributes:o,callback:r}=t,i=new(e.ownerDocument.defaultView||window).MutationObserver(e=>{for(const t of e)"attributes"===t.type&&t.attributeName&&o.includes(t.attributeName)&&r(t)});return i.observe(e,{attributes:!0,attributeFilter:o}),()=>i.disconnect()}(o,t))})),()=>{i.forEach(e=>e?.())}}function Kr(e){const t=function(e){if("html"===pr(e))return e;const t=e.assignedSlot||e.parentNode||hr(e)&&e.host||mr(e).documentElement;return hr(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(pr(e))}(t)?mr(t).body:dr(t)&&Zr(t)?t:Kr(t)}var Yr=/auto|scroll|overlay|hidden|clip/,Xr=new Set(["inline","contents"]);function Zr(e){const t=br(e),{overflow:o,overflowX:r,overflowY:i,display:n}=t.getComputedStyle(e);return Yr.test(o+i+r)&&!Xr.has(n)}function Jr(e,t){const{rootEl:o,...r}=t||{};e&&o&&Zr(o)&&function(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}(o)&&e.scrollIntoView(r)}function Qr(e){const{pointerNode:t,keyboardNode:o=t,onPress:r,onPressStart:i,onPressEnd:n,isValidKey:a=e=>"Enter"===e.key}=e;if(!t)return ar;const s=br(t);let l=ar,c=ar,d=ar;const u=e=>({point:Vr(e),event:e});function p(e){i?.(u(e))}function h(e){n?.(u(e))}const g=Nr(t,"pointerdown",e=>{c();const i=Nr(s,"pointerup",e=>{const o=Or(e);fr(t,o)?r?.(u(e)):n?.(u(e))},{passive:!r,once:!0}),a=Nr(s,"pointercancel",h,{passive:!n,once:!0});c=nr(i,a),gr(o)&&"mouse"===e.pointerType&&e.preventDefault(),p(e)},{passive:!i}),f=Nr(o,"focus",function(){const e=Nr(o,"keydown",e=>{a(e)&&(c(),c=Nr(o,"keyup",e=>{if(!a(e))return;const t=new s.PointerEvent("pointerup"),o=u(t);r?.(o),n?.(o)}),p(new s.PointerEvent("pointerdown")))}),t=Nr(o,"blur",()=>{h(new s.PointerEvent("pointercancel"))});d=nr(e,t)});return l=nr(g,f),()=>{l(),c(),d()}}function ei(e,t){return Array.from(e?.querySelectorAll(t)??[])}var ti=e=>e.id;function oi(e,t,o=ti){const r=function(e,t,o=ti){return e.find(e=>o(e)===t)}(e,t,o);return r?e.indexOf(r):-1}function ri(e){const t=new WeakMap;let o;const r=new WeakMap,i=e=>o||(o=new e.ResizeObserver(e=>{for(const o of e){r.set(o.target,o);const e=t.get(o.target);if(e)for(const t of e)t(o)}}),o);return{observe:(o,r)=>{let n=t.get(o)||new Set;n.add(r),t.set(o,n);const a=br(o);return i(a).observe(o,e),()=>{const e=t.get(o);e&&(e.delete(r),0===e.size&&(t.delete(o),i(a).unobserve(o)))}},unobserve:e=>{t.delete(e),o?.unobserve(e)}}}var ii=ri({box:"border-box"});function ni(e,t){const{state:o,activeId:r,key:i,timeout:n=350,itemToId:a}=t,s=o.keysSoFar+i,l=s.length>1&&Array.from(s).every(e=>e===s[0])?s[0]:s,c=function(e,t,o,r=ti){const i=o?oi(e,o,r):-1;let n=o?((e,t)=>e.map((o,r)=>e[(Math.max(t,0)+r)%e.length]))(e,i):e;return 1===t.length&&(n=n.filter(e=>r(e)!==o)),n.find(e=>{return i=e,o=(i.dataset?.valuetext??i.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(),r=t,o.trim().toLowerCase().startsWith(r.toLowerCase());var o,r,i})}(e.slice(),l,r,a);function d(){clearTimeout(o.timer),o.timer=-1}return function e(t){o.keysSoFar=t,d(),""!==t&&(o.timer=+setTimeout(()=>{e(""),d()},n))}(s),c}var ai=Object.assign(ni,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}}),si={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 li=["top","right","bottom","left"],ci=Math.min,di=Math.max,ui=Math.round,pi=Math.floor,hi=e=>({x:e,y:e}),gi={left:"right",right:"left",bottom:"top",top:"bottom"},fi={start:"end",end:"start"};function mi(e,t,o){return di(e,ci(t,o))}function bi(e,t){return"function"==typeof e?e(t):e}function vi(e){return e.split("-")[0]}function xi(e){return e.split("-")[1]}function yi(e){return"x"===e?"y":"x"}function wi(e){return"y"===e?"height":"width"}const ki=new Set(["top","bottom"]);function Si(e){return ki.has(vi(e))?"y":"x"}function Ci(e){return yi(Si(e))}function Ii(e){return e.replace(/start|end/g,e=>fi[e])}const Ei=["left","right"],_i=["right","left"],Pi=["top","bottom"],zi=["bottom","top"];function Ri(e){return e.replace(/left|right|bottom|top/g,e=>gi[e])}function Ti(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 Oi(e){const{x:t,y:o,width:r,height:i}=e;return{width:r,height:i,top:o,left:t,right:t+r,bottom:o+i,x:t,y:o}}function Vi(e,t,o){let{reference:r,floating:i}=e;const n=Si(t),a=Ci(t),s=wi(a),l=vi(t),c="y"===n,d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let h;switch(l){case"top":h={x:d,y:r.y-i.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-i.width,y:u};break;default:h={x:r.x,y:r.y}}switch(xi(t)){case"start":h[a]-=p*(o&&c?-1:1);break;case"end":h[a]+=p*(o&&c?-1:1)}return h}async function Ni(e,t){var o;void 0===t&&(t={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=bi(t,e),g=Ti(h),f=s[p?"floating"===u?"reference":"floating":u],m=Oi(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(f)))||o?f:f.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===u?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),x=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},y=Oi(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:l}):b);return{top:(m.top-y.top+g.top)/x.y,bottom:(y.bottom-m.bottom+g.bottom)/x.y,left:(m.left-y.left+g.left)/x.x,right:(y.right-m.right+g.right)/x.x}}function ji(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fi(e){return li.some(t=>e[t]>=0)}const Ai=new Set(["left","top"]);function Di(){return"undefined"!=typeof window}function Wi(e){return Bi(e)?(e.nodeName||"").toLowerCase():"#document"}function Li(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Mi(e){var t;return null==(t=(Bi(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Bi(e){return!!Di()&&(e instanceof Node||e instanceof Li(e).Node)}function Hi(e){return!!Di()&&(e instanceof Element||e instanceof Li(e).Element)}function $i(e){return!!Di()&&(e instanceof HTMLElement||e instanceof Li(e).HTMLElement)}function Ui(e){return!(!Di()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Li(e).ShadowRoot)}const Gi=new Set(["inline","contents"]);function qi(e){const{overflow:t,overflowX:o,overflowY:r,display:i}=an(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+o)&&!Gi.has(i)}const Ki=new Set(["table","td","th"]);function Yi(e){return Ki.has(Wi(e))}const Xi=[":popover-open",":modal"];function Zi(e){return Xi.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const Ji=["transform","translate","scale","rotate","perspective"],Qi=["transform","translate","scale","rotate","perspective","filter"],en=["paint","layout","strict","content"];function tn(e){const t=on(),o=Hi(e)?an(e):e;return Ji.some(e=>!!o[e]&&"none"!==o[e])||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||Qi.some(e=>(o.willChange||"").includes(e))||en.some(e=>(o.contain||"").includes(e))}function on(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const rn=new Set(["html","body","#document"]);function nn(e){return rn.has(Wi(e))}function an(e){return Li(e).getComputedStyle(e)}function sn(e){return Hi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ln(e){if("html"===Wi(e))return e;const t=e.assignedSlot||e.parentNode||Ui(e)&&e.host||Mi(e);return Ui(t)?t.host:t}function cn(e){const t=ln(e);return nn(t)?e.ownerDocument?e.ownerDocument.body:e.body:$i(t)&&qi(t)?t:cn(t)}function dn(e,t,o){var r;void 0===t&&(t=[]),void 0===o&&(o=!0);const i=cn(e),n=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Li(i);if(n){const e=un(a);return t.concat(a,a.visualViewport||[],qi(i)?i:[],e&&o?dn(e):[])}return t.concat(i,dn(i,[],o))}function un(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function pn(e){const t=an(e);let o=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=$i(e),n=i?e.offsetWidth:o,a=i?e.offsetHeight:r,s=ui(o)!==n||ui(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function hn(e){return Hi(e)?e:e.contextElement}function gn(e){const t=hn(e);if(!$i(t))return hi(1);const o=t.getBoundingClientRect(),{width:r,height:i,$:n}=pn(t);let a=(n?ui(o.width):o.width)/r,s=(n?ui(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const fn=hi(0);function mn(e){const t=Li(e);return on()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:fn}function bn(e,t,o,r){void 0===t&&(t=!1),void 0===o&&(o=!1);const i=e.getBoundingClientRect(),n=hn(e);let a=hi(1);t&&(r?Hi(r)&&(a=gn(r)):a=gn(e));const s=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==Li(e))&&t}(n,o,r)?mn(n):hi(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(n){const e=Li(n),t=r&&Hi(r)?Li(r):r;let o=e,i=un(o);for(;i&&r&&t!==o;){const e=gn(i),t=i.getBoundingClientRect(),r=an(i),n=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=n,c+=a,o=Li(i),i=un(o)}}return Oi({width:d,height:u,x:l,y:c})}function vn(e,t){const o=sn(e).scrollLeft;return t?t.left+o:bn(Mi(e)).left+o}function xn(e,t){const o=e.getBoundingClientRect();return{x:o.left+t.scrollLeft-vn(e,o),y:o.top+t.scrollTop}}const yn=new Set(["absolute","fixed"]);function wn(e,t,o){let r;if("viewport"===t)r=function(e,t){const o=Li(e),r=Mi(e),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){n=i.width,a=i.height;const e=on();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}const c=vn(r);if(c<=0){const e=r.ownerDocument,t=e.body,o=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(o.marginLeft)+parseFloat(o.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(n-=a)}else c<=25&&(n+=c);return{width:n,height:a,x:s,y:l}}(e,o);else if("document"===t)r=function(e){const t=Mi(e),o=sn(e),r=e.ownerDocument.body,i=di(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=di(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+vn(e);const s=-o.scrollTop;return"rtl"===an(r).direction&&(a+=di(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Mi(e));else if(Hi(t))r=function(e,t){const o=bn(e,!0,"fixed"===t),r=o.top+e.clientTop,i=o.left+e.clientLeft,n=$i(e)?gn(e):hi(1);return{width:e.clientWidth*n.x,height:e.clientHeight*n.y,x:i*n.x,y:r*n.y}}(t,o);else{const o=mn(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Oi(r)}function kn(e,t){const o=ln(e);return!(o===t||!Hi(o)||nn(o))&&("fixed"===an(o).position||kn(o,t))}function Sn(e,t,o){const r=$i(t),i=Mi(t),n="fixed"===o,a=bn(e,!0,n,t);let s={scrollLeft:0,scrollTop:0};const l=hi(0);function c(){l.x=vn(i)}if(r||!r&&!n)if(("body"!==Wi(t)||qi(i))&&(s=sn(t)),r){const e=bn(t,!0,n,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&c();n&&!r&&i&&c();const d=!i||r||n?hi(0):xn(i,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 Cn(e){return"static"===an(e).position}function In(e,t){if(!$i(e)||"fixed"===an(e).position)return null;if(t)return t(e);let o=e.offsetParent;return Mi(e)===o&&(o=o.ownerDocument.body),o}function En(e,t){const o=Li(e);if(Zi(e))return o;if(!$i(e)){let t=ln(e);for(;t&&!nn(t);){if(Hi(t)&&!Cn(t))return t;t=ln(t)}return o}let r=In(e,t);for(;r&&Yi(r)&&Cn(r);)r=In(r,t);return r&&nn(r)&&Cn(r)&&!tn(r)?o:r||function(e){let t=ln(e);for(;$i(t)&&!nn(t);){if(tn(t))return t;if(Zi(t))return null;t=ln(t)}return null}(e)||o}const Pn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:o,offsetParent:r,strategy:i}=e;const n="fixed"===i,a=Mi(r),s=!!t&&Zi(t.floating);if(r===a||s&&n)return o;let l={scrollLeft:0,scrollTop:0},c=hi(1);const d=hi(0),u=$i(r);if((u||!u&&!n)&&(("body"!==Wi(r)||qi(a))&&(l=sn(r)),$i(r))){const e=bn(r);c=gn(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const p=!a||u||n?hi(0):xn(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:Mi,getClippingRect:function(e){let{element:t,boundary:o,rootBoundary:r,strategy:i}=e;const n="clippingAncestors"===o?Zi(t)?[]:function(e,t){const o=t.get(e);if(o)return o;let r=dn(e,[],!1).filter(e=>Hi(e)&&"body"!==Wi(e)),i=null;const n="fixed"===an(e).position;let a=n?ln(e):e;for(;Hi(a)&&!nn(a);){const t=an(a),o=tn(a);o||"fixed"!==t.position||(i=null),(n?!o&&!i:!o&&"static"===t.position&&i&&yn.has(i.position)||qi(a)&&!o&&kn(e,a))?r=r.filter(e=>e!==a):i=t,a=ln(a)}return t.set(e,r),r}(t,this._c):[].concat(o),a=[...n,r],s=a[0],l=a.reduce((e,o)=>{const r=wn(t,o,i);return e.top=di(r.top,e.top),e.right=ci(r.right,e.right),e.bottom=ci(r.bottom,e.bottom),e.left=di(r.left,e.left),e},wn(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:En,getElementRects:async function(e){const t=this.getOffsetParent||En,o=this.getDimensions,r=await o(e.floating);return{reference:Sn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:o}=pn(e);return{width:t,height:o}},getScale:gn,isElement:Hi,isRTL:function(e){return"rtl"===an(e).direction}};function zn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const Rn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var o,r;const{placement:i,middlewareData:n,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:f=!0,...m}=bi(e,t);if(null!=(o=n.arrow)&&o.alignmentOffset)return{};const b=vi(i),v=Si(s),x=vi(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(x||!f?[Ri(s)]:function(e){const t=Ri(e);return[Ii(e),t,Ii(t)]}(s)),k="none"!==g;!p&&k&&w.push(...function(e,t,o,r){const i=xi(e);let n=function(e,t,o){switch(e){case"top":case"bottom":return o?t?_i:Ei:t?Ei:_i;case"left":case"right":return t?Pi:zi;default:return[]}}(vi(e),"start"===o,r);return i&&(n=n.map(e=>e+"-"+i),t&&(n=n.concat(n.map(Ii)))),n}(s,f,g,y));const S=[s,...w],C=await Ni(t,m),I=[];let E=(null==(r=n.flip)?void 0:r.overflows)||[];if(d&&I.push(C[b]),u){const e=function(e,t,o){void 0===o&&(o=!1);const r=xi(e),i=Ci(e),n=wi(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[n]>t.floating[n]&&(a=Ri(a)),[a,Ri(a)]}(i,a,y);I.push(C[e[0]],C[e[1]])}if(E=[...E,{placement:i,overflows:I}],!I.every(e=>e<=0)){var _,P;const e=((null==(_=n.flip)?void 0:_.index)||0)+1,t=S[e];if(t&&("alignment"!==u||v===Si(t)||E.every(e=>Si(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}};let o=null==(P=E.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 z;const e=null==(z=E.filter(e=>{if(k){const t=Si(e.placement);return t===v||"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:z[0];e&&(o=e);break}case"initialPlacement":o=s}if(i!==o)return{reset:{placement:o}}}return{}}}};function Tn(e=0,t=0,o=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,o,r);const i={x:e,y:t,width:o,height:r,top:t,right:e+o,bottom:t+r,left:e};return{...i,toJSON:()=>i}}var On=e=>({variable:e,reference:`var(${e})`}),Vn={arrowSize:On("--arrow-size"),arrowSizeHalf:On("--arrow-size-half"),arrowBg:On("--arrow-background"),transformOrigin:On("--transform-origin"),arrowOffset:On("--arrow-offset")};function Nn(e,t){return{name:"transformOrigin",fn(o){const{elements:r,middlewareData:i,placement:n,rects:a,y:s}=o,l=n.split("-")[0],c=(e=>"top"===e||"bottom"===e?"y":"x")(l),d=i.arrow?.x||0,u=i.arrow?.y||0,p=t?.clientWidth||0,h=t?.clientHeight||0,g=d+p/2,f=u+h/2,m=Math.abs(i.shift?.y||0),b=a.reference.height/2,v=h/2,x=e.offset?.mainAxis??e.gutter,y="number"==typeof x?x+v:x??v,w=m>y,k={top:`${g}px calc(100% + ${y}px)`,bottom:`${g}px ${-y}px`,left:`calc(100% + ${y}px) ${f}px`,right:`${-y}px ${f}px`}[l],S=`${g}px ${a.reference.y+b-s}px`,C=Boolean(e.overlap)&&"y"===c&&w;return r.floating.style.setProperty(Vn.transformOrigin.variable,C?S:k),{data:{transformOrigin:C?S:k}}}}}var jn={name:"rects",fn:({rects:e})=>({data:e})},Fn=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:o}){if(!o.arrow)return{};const{x:r,y:i}=o.arrow,n=t.split("-")[0];return Object.assign(e.style,{left:null!=r?`${r}px`:"",top:null!=i?`${i}px`:"",[n]:`calc(100% + ${Vn.arrowOffset.reference})`}),{}}}},An={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Dn(e,t){const o=e.devicePixelRatio||1;return Math.round(t*o)/o}function Wn(e){return"function"==typeof e?e():"clipping-ancestors"===e?"clippingAncestors":e}function Ln(e,t,o){const r=e||t.createElement("div");return{name:"arrow",options:i={element:r,padding:o.arrowPadding},async fn(e){const{x:t,y:o,placement:r,rects:n,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:d=0}=bi(i,e)||{};if(null==c)return{};const u=Ti(d),p={x:t,y:o},h=Ci(r),g=wi(h),f=await a.getDimensions(c),m="y"===h,b=m?"top":"left",v=m?"bottom":"right",x=m?"clientHeight":"clientWidth",y=n.reference[g]+n.reference[h]-p[h]-n.floating[g],w=p[h]-n.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]||n.floating[g]);const C=y/2-w/2,I=S/2-f[g]/2-1,E=ci(u[b],I),_=ci(u[v],I),P=E,z=S-f[g]-_,R=S/2-f[g]/2+C,T=mi(P,R,z),O=!l.arrow&&null!=xi(r)&&R!==T&&n.reference[g]/2-(R<P?E:_)-f[g]/2<0,V=O?R<P?R-P:R-z:0;return{[h]:p[h]+V,data:{[h]:T,centerOffset:R-T-V,...O&&{alignmentOffset:V}},reset:O}}};var i}function Mn(e,t){if(null!=(t.offset??t.gutter))return void 0===(o=({placement:o})=>{const r=(e?.clientHeight||0)/2,i=t.offset?.mainAxis??t.gutter,n="number"==typeof i?i+r:i??r,{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 Po({crossAxis:t.offset?.crossAxis??s,mainAxis:n,alignmentAxis:t.shift})})&&(o=0),{name:"offset",options:o,async fn(e){var t,r;const{x:i,y:n,placement:a,middlewareData:s}=e,l=await async function(e,t){const{placement:o,platform:r,elements:i}=e,n=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=vi(o),s=xi(o),l="y"===Si(o),c=Ai.has(a)?-1:1,d=n&&l?-1:1,u=bi(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!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:n+l.y,data:{...l,placement:a}}}};var o}function Bn(e){if(!e.flip)return;const t=Wn(e.boundary);return Rn({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:!0===e.flip?void 0:e.flip})}function Hn(e){if(!e.slide&&!e.overlap)return;const t=Wn(e.boundary);return function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:r,placement:i}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:o}=e;return{x:t,y:o}}},...l}=bi(e,t),c={x:o,y:r},d=await Ni(t,l),u=Si(vi(i)),p=yi(u);let h=c[p],g=c[u];if(n){const e="y"===p?"bottom":"right";h=mi(h+d["y"===p?"top":"left"],h,h-d[e])}if(a){const e="y"===u?"bottom":"right";g=mi(g+d["y"===u?"top":"left"],g,g-d[e])}const f=s.fn({...t,[p]:h,[u]:g});return{...f,data:{x:f.x-o,y:f.y-r,enabled:{[p]:n,[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:r,placement:i,rects:n,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=bi(o,e),d={x:t,y:r},u=Si(i),p=yi(u);let h=d[p],g=d[u];const f=bi(s,e),m="number"==typeof f?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const e="y"===p?"height":"width",t=n.reference[p]-n.floating[e]+m.mainAxis,o=n.reference[p]+n.reference[e]-m.mainAxis;h<t?h=t:h>o&&(h=o)}if(c){var b,v;const e="y"===p?"width":"height",t=Ai.has(vi(i)),o=n.reference[u]-n.floating[e]+(t&&(null==(b=a.offset)?void 0:b[u])||0)+(t?0:m.crossAxis),r=n.reference[u]+n.reference[e]+(t?0:(null==(v=a.offset)?void 0:v[u])||0)-(t?m.crossAxis:0);g<o?g=o:g>r&&(g=r)}return{[p]:h,[u]:g}}})});var o}function $n(e){return void 0===(t={padding:e.overflowPadding,apply({elements:e,rects:t,availableHeight:o,availableWidth:r}){const i=e.floating,n=Math.round(t.reference.width),a=Math.round(t.reference.height);r=Math.floor(r),o=Math.floor(o),i.style.setProperty("--reference-width",`${n}px`),i.style.setProperty("--reference-height",`${a}px`),i.style.setProperty("--available-width",`${r}px`),i.style.setProperty("--available-height",`${o}px`)}})&&(t={}),{name:"size",options:t,async fn(e){var o,r;const{placement:i,rects:n,platform:a,elements:s}=e,{apply:l=()=>{},...c}=bi(t,e),d=await Ni(e,c),u=vi(i),p=xi(i),h="y"===Si(i),{width:g,height:f}=n.floating;let m,b;"top"===u||"bottom"===u?(m=u,b=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=u,m="end"===p?"top":"bottom");const v=f-d.top-d.bottom,x=g-d.left-d.right,y=ci(f-d[m],v),w=ci(g-d[b],x),k=!e.middlewareData.shift;let S=y,C=w;if(null!=(o=e.middlewareData.shift)&&o.enabled.x&&(C=x),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(S=v),k&&!p){const e=di(d.left,0),t=di(d.right,0),o=di(d.top,0),r=di(d.bottom,0);h?C=g-2*(0!==e||0!==t?e+t:di(d.left,d.right)):S=f-2*(0!==o||0!==r?o+r:di(d.top,d.bottom))}await l({...e,availableWidth:C,availableHeight:S});const I=await a.getDimensions(s.floating);return g!==I.width||f!==I.height?{reset:{rects:!0}}:{}}};var t}function Un(e){if(e.hideWhenDetached)return void 0===(t={strategy:"referenceHidden",boundary:Wn(e.boundary)??"clippingAncestors"})&&(t={}),{name:"hide",options:t,async fn(e){const{rects:o}=e,{strategy:r="referenceHidden",...i}=bi(t,e);switch(r){case"referenceHidden":{const t=ji(await Ni(e,{...i,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:Fi(t)}}}case"escaped":{const t=ji(await Ni(e,{...i,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:Fi(t)}}}default:return{}}}};var t}function Gn(e,t,o={}){const{defer:r,...i}=o,n=r?Ur:e=>e(),a=[];return a.push(n(()=>{const o="function"==typeof e?e():e,r="function"==typeof t?t():t;a.push(function(e,t,o={}){const r=(i=o.getAnchorElement?.()??e,n=o.getAnchorRect,{contextElement:dr(i)?i:i?.contextElement,getBoundingClientRect:()=>{const e=i,t=n?.(e);return t||!e?function(e){if(!e)return Tn();const{x:t,y:o,width:r,height:i}=e;return Tn(t,o,r,i)}(t):e.getBoundingClientRect()}});var i,n;if(!t||!r)return;const a=Object.assign({},An,o),s=t.querySelector("[data-part=arrow]"),l=[Mn(s,a),Bn(a),Hn(a),Ln(s,t.ownerDocument,a),Fn(s),Nn({gutter:a.gutter,offset:a.offset,overlap:a.overlap},s),$n(a),Un(a),jn],{placement:c,strategy:d,onComplete:u,onPositioned:p}=a,h=async()=>{if(!r||!t)return;const e=await((e,t,o)=>{const r=new Map,i={platform:Pn,...o},n={...i.platform,_c:r};return(async(e,t,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Vi(c,r,l),p=r,h={},g=0;for(let o=0;o<s.length;o++){const{name:n,fn:f}=s[o],{x:m,y:b,data:v,reset:x}=await f({x:d,y:u,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=m?m:d,u=null!=b?b:u,h={...h,[n]:{...h[n],...v}},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:i}):x.rects),({x:d,y:u}=Vi(c,p,l))),o=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:h}})(e,t,{...i,platform:n})})(r,t,{placement:c,middleware:l,strategy:d});u?.(e),p?.({placed:!0});const o=br(t),i=Dn(o,e.x),n=Dn(o,e.y);if(t.style.setProperty("--x",`${i}px`),t.style.setProperty("--y",`${n}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=yr(s);t.style.setProperty("--z-index",e.zIndex)}},g=async()=>{o.updatePosition?(await o.updatePosition({updatePosition:h,floatingElement:t}),p?.({placed:!0})):await h()},f=function(e){return e?!0===e?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}(a.listeners),m=a.listeners?function(e,t,o,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=hn(e),d=i||n?[...c?dn(c):[],...dn(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",o,{passive:!0}),n&&e.addEventListener("resize",o)});const u=c&&s?function(e,t){let o,r=null;const i=Mi(e);function n(){var e;clearTimeout(o),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),n();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(s||t(),!p||!h)return;const g={rootMargin:-pi(u)+"px "+-pi(i.clientWidth-(d+p))+"px "+-pi(i.clientHeight-(u+h))+"px "+-pi(d)+"px",threshold:di(0,ci(1,l))||1};let f=!0;function m(t){const r=t[0].intersectionRatio;if(r!==l){if(!f)return a();r?a(!1,r):o=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||zn(c,e.getBoundingClientRect())||a(),f=!1}try{r=new IntersectionObserver(m,{...g,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(m,g)}r.observe(e)}(!0),n}(c,o):null;let p,h=-1,g=null;a&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.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 f=l?bn(e):null;return l&&function t(){const r=bn(e);f&&!zn(f,r)&&o(),f=r,p=requestAnimationFrame(t)}(),o(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",o),n&&e.removeEventListener("resize",o)}),null==u||u(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(p)}}(r,t,g,f):to;return g(),()=>{m?.(),p?.({placed:!1})}}(o,r,i))})),()=>{a.forEach(e=>e?.())}}var qn=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),Kn=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Yn=e=>{const t={};let o;for(;o=Kn.exec(e);)t[o[1]]=o[2];return t},Xn=(e,t)=>{if(qt(e)){if(qt(t))return`${e};${t}`;e=Yn(e)}else qt(t)&&(t=Yn(t));return Object.assign({},e??{},t??{})};function Zn(...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]=oo(o[e],t[e]):t[e]="className"!==e&&"class"!==e?"style"!==e?void 0!==o[e]?o[e]:t[e]:Xn(t[e],o[e]):qn(t[e],o[e]);for(let e in o)void 0===t[e]&&(t[e]=o[e]);const e=Object.getOwnPropertySymbols(o);for(let r of e)t[r]=o[r]}return t}function Jn(e,t,o){let r,i=[];return n=>{const a=e(n);return a.length!==i.length||a.some((e,t)=>!$t(i[t],e))?(i=a,r=t(a,n),o?.onChange?.(r),r):r}}var Qn=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Qn||{}),ea="__init__",ta="pointerdown.outside",oa="focus.outside";function ra(e){for(const t of e)if(dr(t)&&Hr(t))return!0;return!1}var ia=e=>"clientY"in e;function na(e,t){if(!t||!ia(e))return!1;const o=t.scrollHeight>t.clientHeight,r=o&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,n=i&&e.clientY>t.offsetTop+t.clientHeight;return a={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(o?16:0),height:t.clientHeight+(i?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)&&(r||n);var a,s}function aa(e,t){const{defer:o}=t,r=o?Ur:e=>e(),i=[];return i.push(r(()=>{const o="function"==typeof e?e():e;i.push(function(e,t){const{exclude:o,onFocusOutside:r,onPointerDownOutside:i,onInteractOutside:n,defer:a,followControlledElements:s=!0}=t;if(!e)return;const l=mr(e),c=br(e),d=function(e){const t={each(t){for(let o=0;o<e.frames?.length;o+=1){const r=e.frames[o];r&&t(r)}},addEventListener:(e,o,r)=>(t.each(t=>{try{t.document.addEventListener(e,o,r)}catch{}}),()=>{try{t.removeEventListener(e,o,r)}catch{}}),removeEventListener(e,o,r){t.each(t=>{try{t.document.removeEventListener(e,o,r)}catch{}})}};return t}(c),u=function(e){const t=null!=e.frameElement?e.parent:null;return{addEventListener:(e,o,r)=>{try{t?.addEventListener(e,o,r)}catch{}return()=>{try{t?.removeEventListener(e,o,r)}catch{}}},removeEventListener:(e,o,r)=>{try{t?.removeEventListener(e,o,r)}catch{}}}}(c);function p(t,r){if(!dr(r))return!1;if(!r.isConnected)return!1;if(fr(e,r))return!1;if(function(e,t){if(!ia(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&&Cr(e,r))return!1;const i=l.querySelector(`[aria-controls="${e.id}"]`);return!(i&&na(t,Kr(i))||na(t,Kr(e))||o?.(r))}const h=new Set,g=hr(e?.getRootNode());function f(t){function o(o){const r=a&&!Pr()?Ur:e=>e(),s=o??t,l=s?.composedPath?.()??[s?.target];r(()=>{const o=g?l[0]:Or(t);if(e&&p(t,o)){if(i||n){const t=oo(i,n);e.addEventListener(ta,t,{once:!0})}var r;sa(e,ta,{bubbles:!1,cancelable:!0,detail:{originalEvent:s,contextmenu:(r=s,2===r.button||Rr()&&r.ctrlKey&&0===r.button),focusable:ra(l),target:o}})}})}"touch"===t.pointerType?(h.forEach(e=>e()),h.add(Nr(l,"click",o,{once:!0})),h.add(u.addEventListener("click",o,{once:!0})),h.add(d.addEventListener("click",o,{once:!0}))):o()}const m=new Set,b=setTimeout(()=>{m.add(Nr(l,"pointerdown",f,!0)),m.add(u.addEventListener("pointerdown",f,!0)),m.add(d.addEventListener("pointerdown",f,!0))},0);function v(t){(a?Ur:e=>e())(()=>{const o=t?.composedPath?.()??[t?.target],i=g?o[0]:Or(t);if(e&&p(t,i)){if(r||n){const t=oo(r,n);e.addEventListener(oa,t,{once:!0})}sa(e,oa,{bubbles:!1,cancelable:!0,detail:{originalEvent:t,contextmenu:!1,focusable:Hr(i),target:i}})}})}return Pr()||(m.add(Nr(l,"focusin",v,!0)),m.add(u.addEventListener("focusin",v,!0)),m.add(d.addEventListener("focusin",v,!0))),()=>{clearTimeout(b),h.forEach(e=>e()),m.forEach(e=>e())}}(o,t))})),()=>{i.forEach(e=>e?.())}}function sa(e,t,o){const r=new(e.ownerDocument.defaultView||window).CustomEvent(t,o);return e.dispatchEvent(r)}function la(e,t){return Nr(mr(e),"keydown",e=>{"Escape"===e.key&&(e.isComposing||t?.(e))},{capture:!0})}var ca,da="layer:request-dismiss",ua={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=>fr(e.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>fr(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=>ua.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 r=this.layers[o];var i,n;i=da,n=e=>{r.requestDismiss?.(e),e.defaultPrevented||r?.dismiss()},e.addEventListener(i,n,{once:!0}),function(e,t,o){const r=new(e.ownerDocument.defaultView||window).CustomEvent(t,{cancelable:!0,bubbles:!0,detail:o});e.dispatchEvent(r)}(e,da,{originalLayer:e,targetLayer:t,originalIndex:o,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function pa(){ua.layers.forEach(({node:e})=>{e.style.pointerEvents=ua.isBelowPointerBlockingLayer(e)?"none":"auto"})}function ha(e,t){const o=mr(e),r=[];return ua.hasPointerBlockingLayer()&&!o.body.hasAttribute("data-inert")&&(ca=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:r}=t,i=br(r),n=mr(r),a=new i.AbortController;return function(e,t,o){const{signal:r}=t;return[new Promise((t,i)=>{const n=setTimeout(()=>{i(new Error(`Timeout of ${o}ms exceeded`))},o);r.addEventListener("abort",()=>{clearTimeout(n),i(new Error("Promise aborted"))}),e.then(e=>{r.aborted||(clearTimeout(n),t(e))}).catch(e=>{r.aborted||(clearTimeout(n),i(e))})}),()=>t.abort()]}(new Promise(t=>{const o=e();if(o)return void t(o);const r=new i.MutationObserver(()=>{const o=e();o&&o.isConnected&&(r.disconnect(),t(o))});r.observe(n.body,{childList:!0,subtree:!0})}),a,o)}(()=>{const t=e();return dr(t)?t:null},{timeout:1e3});t.then(e=>r.push(function(e,t){if(!e)return ar;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")}}(e,{pointerEvents:"auto"}))),r.push(o)}),()=>{ua.hasPointerBlockingLayer()||(queueMicrotask(()=>{o.body.style.pointerEvents=ca,o.body.removeAttribute("data-inert"),0===o.body.style.length&&o.body.removeAttribute("style")}),r.forEach(e=>e()))}}var ga=()=>e=>Array.from(new Set(e)),fa=Ot("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger"),ma=(fa.build(),e=>new Wo(e));ma.empty=()=>new Wo({items:[]});var ba=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,va=e=>e.getById((e=>e.ids?.content??`combobox:${e.id}:content`)(e)),xa=e=>e.getById((e=>e.ids?.input??`combobox:${e.id}:input`)(e)),ya=e=>e.getById((e=>e.ids?.positioner??`combobox:${e.id}:popper`)(e)),wa=e=>e.getById((e=>e.ids?.control??`combobox:${e.id}:control`)(e)),ka=e=>e.getById((e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`)(e)),Sa=(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}(va(e),o)},Ca=e=>{const t=xa(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:Ia,createMachine:Ea,choose:_a}={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:Pa,not:za}=Ia;function Ra(e){return(e.previousEvent||e).src}Ea({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=br(e);e.dispatchEvent(new t.MouseEvent("click"))};_r(/Firefox/i)?function(e,t,o){const r=Ur(()=>{e.removeEventListener(t,i,!0),o()}),i=()=>{r(),o()};e.addEventListener(t,i,{once:!0,capture:!0})}(e,"keyup",t):queueMicrotask(t)}(e)},collection:ma.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:r})=>({currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:$t,hash:e=>e.join(","),onChange(t){const r=o(),i=r.get("selectedItems"),n=e("collection"),a=t.map(e=>i.find(t=>n.getItemValue(t)===e)||n.find(e));r.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 r=e("collection").stringifyMany(o);t=io(e("selectionBehavior"),{preserve:t||r,replace:r,clear:""})}return{defaultValue:t,value:e("inputValue"),onChange(t){const o=r(),i=(o.previousEvent||o).src;e("onInputValueChange")?.({inputValue:t,reason:i})}}}),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:r,send:i}){o([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),o([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),o([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),o([()=>t("open")],()=>{r(["toggleVisibility"])}),o([()=>t("collection").toString()],()=>{i({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:_a([{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:Pa("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Pa("isCustomValue",za("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:Pa("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:Pa("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Pa("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Pa("isOpenControlled","isCustomValue",za("hasHighlightedItem"),za("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pa("isCustomValue",za("hasHighlightedItem"),za("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Pa("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:Pa("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Pa("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:Pa("isOpenControlled","isCustomValue",za("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pa("isCustomValue",za("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:Pa("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:Pa("isOpenControlled","isCustomValue",za("hasHighlightedItem"),za("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pa("isCustomValue",za("hasHighlightedItem"),za("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Pa("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:Pa("isOpenControlled","isCustomValue",za("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pa("isCustomValue",za("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:Pa("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===(r=o)||!1===r?o:!!o?.({inputValue:t.get("inputValue")});var r},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 function(e,t){const{defer:o}=t,r=o?Ur:e=>e(),i=[];return i.push(r(()=>{const o=Kt(e)?e():e;i.push(function(e,t){const{warnOnMissingNode:o=!0}=t;if(o&&!e)return void No("[@zag-js/dismissable] node is `null` or `undefined`");if(!e)return;const{onDismiss:r,onRequestDismiss:i,pointerBlocking:n,exclude:a,debug:s,type:l="dialog"}=t,c={dismiss:r,node:e,type:l,pointerBlocking:n,requestDismiss:i};ua.add(c),pa();const d=[n?ha(e,t.persistentElements):void 0,la(e,function(o){ua.isTopMost(e)&&(t.onEscapeKeyDown?.(o),!o.defaultPrevented&&r&&(o.preventDefault(),r()))}),aa(e,{exclude:function(o){if(!e)return!1;const r="function"==typeof a?a():a,i=Array.isArray(r)?r:[r],n=t.persistentElements?.map(e=>e()).filter(dr);return n&&i.push(...n),i.some(e=>fr(e,o))||ua.isInNestedLayer(e,o)},onFocusOutside:function(e){const o=Or(e.detail.originalEvent);ua.isInBranch(o)||(t.onFocusOutside?.(e),t.onInteractOutside?.(e),e.defaultPrevented||(s&&console.log("onFocusOutside:",e.detail.originalEvent),r?.()))},onPointerDownOutside:function(o){const i=Or(o.detail.originalEvent);ua.isBelowPointerBlockingLayer(e)||ua.isInBranch(i)||(t.onPointerDownOutside?.(o),t.onInteractOutside?.(o),o.defaultPrevented||(s&&console.log("onPointerDownOutside:",o.detail.originalEvent),r?.()))},defer:t.defer})];return()=>{ua.remove(e),pa(),function(e){e.style.pointerEvents=""}(e),d.forEach(e=>e?.())}}(o,t))})),()=>{i.forEach(e=>e?.())}}(()=>va(o),{type:"listbox",defer:!0,exclude:()=>{return[xa(o),ka(o),(e=o,e.getById(ba(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),Gn(()=>wa(o)||ka(o),()=>ya(o),{...t("positioning"),defer:!0,onComplete(t){e.set("currentPlacement",t.placement)}})),scrollToHighlightedItem({context:e,prop:t,scope:o,event:r}){const i=xa(o);let n=[];const a=i=>{const a=r.current().type.includes("POINTER"),s=e.get("highlightedValue");if(a||!s)return;const l=va(o),c=t("scrollToIndexFn");if(c)return void c({index:t("collection").indexOf(s),immediate:i,getElement:()=>Sa(o,s)});const d=Sa(o,s),u=Ur(()=>{Jr(d,{rootEl:l,block:"nearest"})});n.push(u)},s=Ur(()=>a(!0));n.push(s);const l=qr(i,{attributes:["aria-activedescendant"],callback:()=>a(!1)});return n.push(l),()=>{n.forEach(e=>e())}}},actions:{reposition({context:e,prop:t,scope:o,event:r}){Gn(()=>wa(o),()=>ya(o),{...t("positioning"),...r.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,r=o("collection"),i=t.get("highlightedValue");if(!i||!r.has(i))return;const n=o("multiple")?Mt(t.get("value"),i):[i];o("onSelect")?.({value:n,itemValue:i}),t.set("value",n);const a=io(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(n),clear:""});t.set("inputValue",a)},scrollToHighlightedItem({context:e,prop:t,scope:o}){Gr(()=>{const r=e.get("highlightedValue");if(null==r)return;const i=Sa(o,r),n=va(o),a=t("scrollToIndexFn");a?a({index:t("collection").indexOf(r),immediate:!0,getElement:()=>Sa(o,r)}):Jr(i,{rootEl:n,block:"nearest"})})},selectItem(e){const{context:t,event:o,flush:r,prop:i}=e;null!=o.value&&r(()=>{const e=i("multiple")?Mt(t.get("value"),o.value):[o.value];i("onSelect")?.({value:e,itemValue:o.value}),t.set("value",e);const r=io(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(e),clear:""});t.set("inputValue",r)})},clearItem(e){const{context:t,event:o,flush:r,prop:i}=e;null!=o.value&&r(()=>{const e=Lt(t.get("value"),o.value);t.set("value",e);const r=io(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(e),clear:""});t.set("inputValue",r)})},setInitialFocus({scope:e}){Ur(()=>{Ca(e)})},setFinalFocus({scope:e}){Ur(()=>{const t=ka(e);null==t?.dataset.focusable?Ca(e):(e=>{const t=ka(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})})(e)})},syncInputValue({context:e,scope:t,event:o}){const r=xa(t);r&&(r.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)}(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:o}){const r=io(t("selectionBehavior"),{replace:o("hasSelectedItems")?o("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",r)},setValue(e){const{context:t,flush:o,event:r,prop:i}=e;o(()=>{t.set("value",r.value);const e=io(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(r.value),clear:""});t.set("inputValue",e)})},clearSelectedItems(e){const{context:t,flush:o,prop:r}=e;o(()=>{t.set("value",[]);const e=io(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",e)})},scrollContentToTop({prop:e,scope:t}){const o=e("scrollToIndexFn");if(o){const r=e("collection").firstValue;o({index:0,immediate:!0,getElement:()=>Sa(t,r)})}else{const e=va(t);if(!e)return;e.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:o}){const r=Ra(t);e("onOpenChange")?.({open:!0,reason:r,value:o.get("value")})},invokeOnClose({prop:e,event:t,context:o}){const r=Ra(t);e("onOpenChange")?.({open:!1,reason:r,value:o.get("value")})},highlightFirstItem({context:e,prop:t,scope:o}){(va(o)?queueMicrotask:Ur)(()=>{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}){(va(o)?queueMicrotask:Ur)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let o=null;const r=e.get("highlightedValue"),i=t("collection");r?(o=i.getNextValue(r),!o&&t("loopFocus")&&(o=i.firstValue)):o=i.firstValue,o&&e.set("highlightedValue",o)},highlightPrevItem({context:e,prop:t}){let o=null;const r=e.get("highlightedValue"),i=t("collection");r?(o=i.getPreviousValue(r),!o&&t("loopFocus")&&(o=i.lastValue)):o=i.lastValue,o&&e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t}){Ur(()=>{const[o]=t("collection").sort(e.get("value"));o&&e.set("highlightedValue",o)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:o}){Ur(()=>{let r=null;r=o("hasSelectedItems")?t("collection").sort(e.get("value"))[0]:t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:o}){Ur(()=>{const r=t("collection");let i=null;i=o("hasSelectedItems")?r.sort(e.get("value"))[0]:r.lastValue,i&&e.set("highlightedValue",i)})},autofillInputValue({context:e,computed:t,prop:o,event:r,scope:i}){const n=xa(i),a=o("collection");if(!t("autoComplete")||!n||!r.keypress)return;const s=a.stringify(e.get("highlightedValue"));Ur(()=>{n.value=s||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:o}=e,r=o("collection"),i=t.get("value"),n=i.map(e=>t.get("selectedItems").find(t=>r.getItemValue(t)===e)||r.find(e));t.set("selectedItems",n);const a=io(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),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 Ta=(Ro(ga()(["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"])),ga()(["htmlFor"])),Oa=(Ro(Ta),ga()(["id"])),Va=(Ro(Oa),ga()(["item","persistFocus"]));Ro(Va);const Na=fa.extendWith("empty");var ja=Ot("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator"),{and:Fa,not:Aa}=(ja.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)}}),Da=(Ro((Fa("isExpanded","canToggle"),Aa("isExpanded"),ga()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]))),ga()(["value","disabled"])),Wa=(Ro(Da),Ot("clipboard").parts("root","control","trigger","indicator","input","label"));Wa.build();var La=(Ro(ga()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"])),ga()(["copied"])),Ma=(Ro(La),Object.defineProperty),Ba=(e,t,o)=>((e,t,o)=>t in e?Ma(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o)(e,t+"",o),Ha=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:r,maxValue:i}=this.getChannelRange(e);return vo(o,r,i)}getChannelPercentValue(e,t){const{minValue:o,maxValue:r,step:i}=this.getChannelRange(e),n=xo(t,o,r,i);return ko(n,o,r,i)}withChannelValue(e,t){const{minValue:o,maxValue:r}=this.getChannelRange(e);if(e in this){let i=this.clone();return i[e]=bo(t,o,r),i}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:o}=e,r=t||this.getChannels().find(e=>e!==o),i=o||this.getChannels().find(e=>e!==r),n=this.getChannels().find(e=>e!==r&&e!==i);return{xChannel:r,yChannel:i,zChannel:n}}incrementChannel(e,t){const{minValue:o,maxValue:r,step:i}=this.getChannelRange(e),n=ko(bo(this.getChannelValue(e)+t,o,r),o,r,i);return this.withChannelValue(e,n)}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")}},$a=/^#[\da-f]+$/i,Ua=/^rgba?\((.*)\)$/,Ga=/[^#]/gi,qa=class e extends Ha{constructor(e,t,o,r){super(),this.red=e,this.green=t,this.blue=o,this.alpha=r}static parse(t){let o=[];if($a.test(t)&&[4,5,7,9].includes(t.length)){const e=(t.length<6?t.replace(Ga,"$&$&"):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 r=t.match(Ua);return r?.[1]&&(o=r[1].split(",").map(e=>Number(e.trim())).map((e,t)=>bo(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,r=Math.min(e,t,o),i=Math.max(e,t,o),n=i-r,a=0===i?0:n/i;let s=0;if(0!==n){switch(i){case e:s=(t-o)/n+(t<o?6:0);break;case t:s=(o-e)/n+2;break;case o:s=(e-t)/n+4}s/=6}return new es(Co(360*s,2),Co(100*a,2),Co(100*i,2),Co(this.alpha,2))}toHSL(){const e=this.red/255,t=this.green/255,o=this.blue/255,r=Math.min(e,t,o),i=Math.max(e,t,o),n=(i+r)/2,a=i-r;let s=-1,l=-1;if(0===a)s=l=0;else{switch(l=a/(n<.5?i+r:2-i-r),i){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 Za(Co(360*s,2),Co(100*l,2),Co(100*n,2),Co(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),r=this.getChannelValue(e);return new Intl.NumberFormat(t,o).format(r)}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}};Ba(qa,"colorChannels",["red","green","blue"]);var Ka=qa,Ya=/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+)?)\)/,Xa=class e extends Ha{constructor(e,t,o,r){super(),this.hue=e,this.saturation=t,this.lightness=o,this.alpha=r}static parse(t){let o;if(o=t.match(Ya)){const[t,r,i,n]=(o[1]??o[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e(fo(t,360),bo(r,0,100),bo(i,0,100),bo(n??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}, ${Co(this.saturation,2)}%, ${Co(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${Co(this.saturation,2)}%, ${Co(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 es(Co(this.hue,2),Co(100*e,2),Co(100*o,2),Co(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,o=this.lightness/100,r=t*Math.min(o,1-o),i=(t,i=(t+e/30)%12)=>o-r*Math.max(Math.min(i-3,9-i,1),-1);return new Ka(Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4)),Co(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),r=this.getChannelValue(e);return"saturation"!==e&&"lightness"!==e||(r/=100),new Intl.NumberFormat(t,o).format(r)}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}};Ba(Xa,"colorChannels",["hue","saturation","lightness"]);var Za=Xa,Ja=/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+)?)\)/,Qa=class e extends Ha{constructor(e,t,o,r){super(),this.hue=e,this.saturation=t,this.brightness=o,this.alpha=r}static parse(t){let o;if(o=t.match(Ja)){const[t,r,i,n]=(o[1]??o[2]).split(",").map(e=>Number(e.trim().replace("%","")));return new e(fo(t,360),bo(r,0,100),bo(i,0,100),bo(n??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}, ${Co(this.saturation,2)}%, ${Co(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${Co(this.saturation,2)}%, ${Co(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 Za(Co(this.hue,2),Co(100*e,2),Co(100*o,2),Co(this.alpha,2))}toRGB(){let e=this.hue,t=this.saturation/100,o=this.brightness/100,r=(r,i=(r+e/60)%6)=>o-t*o*Math.max(Math.min(i,4-i,1),0);return new Ka(Math.round(255*r(5)),Math.round(255*r(3)),Math.round(255*r(1)),Co(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),r=this.getChannelValue(e);return"saturation"!==e&&"brightness"!==e||(r/=100),new Intl.NumberFormat(t,o).format(r)}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}};Ba(Qa,"colorChannels",["hue","saturation","brightness"]);var es=Qa,ts=((()=>{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[r,i]=t[o].split(":");e.set(r,`#${i}`),r.includes("gray")&&e.set(r.replace("gray","grey"),`#${i}`)}})(),Ot("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"]));ts.build();new RegExp(`^(${["hsba","hsla","rgba"].join("|")})$`);var{and:os}={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)}};os("isOpenControlled","closeOnSelect");var rs=(Ro(ga()(["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"])),ga()(["xChannel","yChannel"])),is=(Ro(rs),ga()(["channel","orientation"])),ns=(Ro(is),ga()(["value","disabled"])),as=(Ro(ns),ga()(["value","respectAlpha"])),ss=(Ro(as),ga()(["size"]));Ro(ss);const ls=ts.extendWith("view");Object.defineProperty;var cs=Ot("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");cs.build();var ds=(Ro(ga()(["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"])),Ot("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control"));ds.build(),Ro(ga()(["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 us=Ot("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator"),ps=(us.build(),Ot("fieldset").parts("root","errorText","helperText","legend"));ps.build();var hs=e=>e.isDirectory,gs=e=>e.isFile,fs=(e,t)=>(Object.defineProperty(e,"relativePath",{value:t?`${t}/${e.name}`:e.name}),e),ms=(e,t="")=>new Promise(o=>{const r=[],i=()=>{e.readEntries(e=>{if(0===e.length)return void o(Promise.all(r).then(e=>e.flat()));const n=e.map(e=>e?hs(e)?ms(e.createReader(),`${t}${e.name}`):gs(e)?new Promise(o=>{e.file(e=>{o(fs(e,t))})}):void 0:null).filter(e=>e);r.push(Promise.all(n)),i()})};i()}),bs=e=>function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}(e)||function(e){return/^.*\.[\w]+$/.test(e)}(e),vs=(e,t)=>e.name===t.name&&e.size===t.size&&e.type===t.type,xs=e=>null!=e,ys=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])}));function ws(e){const t=new Map;return function(o,r){const i=o+(r?Object.entries(r).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(t.has(i))return t.get(i);let n=new e(o,r);return t.set(i,n),n}}ws(Intl.Collator),ws(Intl.Collator);var ks=ws(Intl.NumberFormat),Ss=["","kilo","mega","giga","tera"],Cs=["","kilo","mega","giga","tera","peta"];ws(Intl.ListFormat),ws(Intl.RelativeTimeFormat);var Is=Ot("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger"),Es=Is.build(),_s=e=>e.ids?.root??`file:${e.id}`,Ps=e=>e.ids?.dropzone??`file:${e.id}:dropzone`,zs=e=>e.ids?.hiddenInput??`file:${e.id}:input`,Rs=e=>e.getById(zs(e));function Ts(e){const t=Or(e);return e.dataTransfer?e.dataTransfer.types.some(e=>"Files"===e||"application/x-moz-file"===e):!!t&&"files"in t}function Os(e,t,o=[],r=[]){const{prop:i,computed:n}=e,a=[],s=[],l={acceptedFiles:o,rejectedFiles:r};return t.forEach(e=>{const[t,o]=function(e,t){const o="application/x-moz-file"===e.type||function(e,t){if(e&&t){const o=Array.isArray(t)?t:"string"==typeof t?t.split(","):[];if(0===o.length)return!0;const r=e.name||"",i=(e.type||function(e){const t=e.split(".").pop();return t&&ys.get(t)||null}(r)||"").toLowerCase(),n=i.replace(/\/.*$/,"");return o.some(e=>{const t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?n===t.replace(/\/.*$/,""):i===t})}return!0}(e,t);return[o,o?null:"FILE_INVALID_TYPE"]}(e,n("acceptAttr")),[r,c]=function(e,t,o){if(xs(e.size))if(xs(t)&&xs(o)){if(e.size>o)return[!1,"FILE_TOO_LARGE"];if(e.size<t)return[!1,"FILE_TOO_SMALL"]}else{if(xs(t)&&e.size<t)return[!1,"FILE_TOO_SMALL"];if(xs(o)&&e.size>o)return[!1,"FILE_TOO_LARGE"]}return[!0,null]}(e,i("minFileSize"),i("maxFileSize")),d=i("validate")?.(e,l),u=!d||0===d.length;if(t&&r&&u)a.push(e);else{const t=[o,c];u||t.push(...d??[]),s.push({file:e,errors:t.filter(Boolean)})}}),function(e,t,o){const{prop:r,computed:i}=e;return!(!i("multiple")&&t>1||(i("multiple")||t+o.length!==2)&&t+o.length>r("maxFiles"))}(e,a.length,o)||(a.forEach(e=>{s.push({file:e,errors:["TOO_MANY_FILES"]})}),a.splice(0)),{acceptedFiles:a,rejectedFiles:s}}var Vs="accepted";function Ns(e,t){if(!e||"file"===e.getAttribute("type"))return!1;const o=e.closest("button, a[href], input:not([type='file']), select, textarea, [tabindex], [contenteditable]");return o!=t&&fr(t,o)}function js(e,t){const{state:o,send:r,prop:i,computed:n,scope:a,context:s}=e,l=!!i("disabled"),c=!!i("required"),d=i("allowDrop"),u=i("translations"),p=o.matches("dragging"),h=o.matches("focused")&&!l;return{dragging:p,focused:h,disabled:!!l,transforming:s.get("transforming"),openFilePicker(){l||r({type:"OPEN"})},deleteFile(e,t=Vs){r({type:"FILE.DELETE",file:e,itemType:t})},acceptedFiles:s.get("acceptedFiles"),rejectedFiles:s.get("rejectedFiles"),setFiles(e){r({type:"FILES.SET",files:e,count:e.length})},clearRejectedFiles(){r({type:"REJECTED_FILES.CLEAR"})},clearFiles(){r({type:"FILES.CLEAR"})},getFileSize:e=>((e,t="en-US",o={})=>{if(Number.isNaN(e))return"";if(0===e)return"0 B";const{unitSystem:r="decimal",precision:i=3,unit:n="byte",unitDisplay:a="short"}=o,s="binary"===r?1024:1e3,l="bit"===n?Ss:Cs,c=e<0;let d=Math.abs(e),u=0;for(;d>=s&&u<l.length-1;)d/=s,u++;const p=parseFloat(d.toPrecision(i));return function(e,t,o={}){return ks(t,o).format(e)}(c?-p:p,t,{style:"unit",unit:l[u]+n,unitDisplay:a})})(e.size,i("locale")),createFileUrl(e,t){const o=a.getWin(),r=o.URL.createObjectURL(e);return t(r),()=>o.URL.revokeObjectURL(r)},setClipboardFiles(e){if(l)return!1;const t=Array.from(e?.items??[]).reduce((e,t)=>{if("file"!==t.kind)return e;const o=t.getAsFile();return o?[...e,o]:e},[]);return!!t.length&&(r({type:"FILES.SET",files:t}),!0)},getRootProps:()=>t.element({...Es.root.attrs,dir:i("dir"),id:_s(a),"data-disabled":cr(l),"data-dragging":cr(p)}),getDropzoneProps:(e={})=>t.element({...Es.dropzone.attrs,dir:i("dir"),id:Ps(a),tabIndex:l||e.disableClick?void 0:0,role:e.disableClick?"application":"button","aria-label":u.dropzone,"aria-disabled":l,"data-invalid":cr(i("invalid")),"data-disabled":cr(l),"data-dragging":cr(p),onKeyDown(t){if(l)return;if(t.defaultPrevented)return;const o=Or(t);fr(t.currentTarget,o)&&(Ns(o,t.currentTarget)||e.disableClick||"Enter"!==t.key&&" "!==t.key||r({type:"DROPZONE.CLICK",src:"keydown"}))},onClick(t){if(l)return;if(t.defaultPrevented)return;if(e.disableClick)return;const o=Or(t);fr(t.currentTarget,o)&&(Ns(o,t.currentTarget)||("label"===t.currentTarget.localName&&t.preventDefault(),r({type:"DROPZONE.CLICK"})))},onDragOver(e){if(l)return;if(!d)return;e.preventDefault(),e.stopPropagation();try{e.dataTransfer.dropEffect="copy"}catch{}if(!Ts(e))return;const t=e.dataTransfer.items.length;r({type:"DROPZONE.DRAG_OVER",count:t})},onDragLeave(e){l||d&&(fr(e.currentTarget,e.relatedTarget)||r({type:"DROPZONE.DRAG_LEAVE"}))},onDrop(e){if(l)return;d&&(e.preventDefault(),e.stopPropagation());const t=Ts(e);var o,n;!l&&t&&(o=e.dataTransfer.items,n=i("directory"),Promise.all(Array.from(o).filter(e=>"file"===e.kind).map(e=>{const t=(e=>"function"==typeof e.getAsEntry?e.getAsEntry():"function"==typeof e.webkitGetAsEntry?e.webkitGetAsEntry():null)(e);if(!t)return null;if(hs(t)&&n)return ms(t.createReader(),`${t.name}`);if(gs(t)&&"function"==typeof e.getAsFile){const t=e.getAsFile();return Promise.resolve(t?fs(t,""):null)}return gs(t)?new Promise(e=>{t.file(t=>{e(fs(t,""))})}):void 0}).filter(e=>e))).then(e=>{r({type:"DROPZONE.DROP",files:Bt(e)})})},onFocus(){l||r({type:"DROPZONE.FOCUS"})},onBlur(){l||r({type:"DROPZONE.BLUR"})}}),getTriggerProps(){return t.button({...Es.trigger.attrs,dir:i("dir"),id:(e=a,e.ids?.trigger??`file:${e.id}:trigger`),disabled:l,"data-disabled":cr(l),"data-invalid":cr(i("invalid")),type:"button",onClick(e){l||(fr((e=>e.getById(Ps(e)))(a),e.currentTarget)&&e.stopPropagation(),r({type:"OPEN"}))}});var e},getHiddenInputProps:()=>t.input({id:zs(a),tabIndex:-1,disabled:l,type:"file",required:i("required"),capture:i("capture"),name:i("name"),accept:n("acceptAttr"),webkitdirectory:i("directory")?"":void 0,multiple:n("multiple")||i("maxFiles")>1,onClick(e){e.stopPropagation(),e.currentTarget.value=""},onInput(e){if(l)return;const{files:t}=e.currentTarget;r({type:"FILE.SELECT",files:t?Array.from(t):[]})},style:si}),getItemGroupProps(e={}){const{type:o=Vs}=e;return t.element({...Es.itemGroup.attrs,dir:i("dir"),"data-disabled":cr(l),"data-type":o})},getItemProps(e){const{file:o,type:r=Vs}=e;return t.element({...Es.item.attrs,dir:i("dir"),id:(n=a,s=o.name,n.ids?.item?.(s)??`file:${n.id}:item:${s}`),"data-disabled":cr(l),"data-type":r});var n,s},getItemNameProps(e){const{file:o,type:r=Vs}=e;return t.element({...Es.itemName.attrs,dir:i("dir"),id:(n=a,s=o.name,n.ids?.itemName?.(s)??`file:${n.id}:item-name:${s}`),"data-disabled":cr(l),"data-type":r});var n,s},getItemSizeTextProps(e){const{file:o,type:r=Vs}=e;return t.element({...Es.itemSizeText.attrs,dir:i("dir"),id:(n=a,s=o.name,n.ids?.itemSizeText?.(s)??`file:${n.id}:item-size:${s}`),"data-disabled":cr(l),"data-type":r});var n,s},getItemPreviewProps(e){const{file:o,type:r=Vs}=e;return t.element({...Es.itemPreview.attrs,dir:i("dir"),id:(n=a,s=o.name,n.ids?.itemPreview?.(s)??`file:${n.id}:item-preview:${s}`),"data-disabled":cr(l),"data-type":r});var n,s},getItemPreviewImageProps(e){const{file:o,url:r,type:i=Vs}=e;if(!o.type.startsWith("image/"))throw new Error("Preview Image is only supported for image files");return t.img({...Es.itemPreviewImage.attrs,alt:u.itemPreview?.(o),src:r,"data-disabled":cr(l),"data-type":i})},getItemDeleteTriggerProps(e){const{file:o,type:n=Vs}=e;return t.button({...Es.itemDeleteTrigger.attrs,dir:i("dir"),type:"button",disabled:l,"data-disabled":cr(l),"data-type":n,"aria-label":u.deleteFile?.(o),onClick(){l||r({type:"FILE.DELETE",file:o,itemType:n})}})},getLabelProps(){return t.label({...Es.label.attrs,dir:i("dir"),id:(e=a,e.ids?.label??`file:${e.id}:label`),htmlFor:zs(a),"data-disabled":cr(l),"data-required":cr(c)});var e},getClearTriggerProps:()=>t.button({...Es.clearTrigger.attrs,dir:i("dir"),type:"button",disabled:l,hidden:0===s.get("acceptedFiles").length,"data-disabled":cr(l),onClick(e){e.defaultPrevented||l||r({type:"FILES.CLEAR"})}})}}var Fs={props:({props:e})=>({minFileSize:0,maxFileSize:Number.POSITIVE_INFINITY,maxFiles:1,allowDrop:!0,preventDocumentDrop:!0,defaultAcceptedFiles:[],...e,translations:{dropzone:"dropzone",itemPreview:e=>`preview of ${e.name}`,deleteFile:e=>`delete file ${e.name}`,...e.translations}}),initialState:()=>"idle",context:({prop:e,bindable:t,getContext:o})=>({acceptedFiles:t(()=>({defaultValue:e("defaultAcceptedFiles"),value:e("acceptedFiles"),isEqual:(e,t)=>e.length===t?.length&&e.every((e,o)=>vs(e,t[o])),hash:e=>e.map(e=>`${e.name}-${e.size}`).join(","),onChange(t){const r=o();e("onFileAccept")?.({files:t}),e("onFileChange")?.({acceptedFiles:t,rejectedFiles:r.get("rejectedFiles")})}})),rejectedFiles:t(()=>({defaultValue:[],isEqual:(e,t)=>e.length===t?.length&&e.every((e,o)=>vs(e.file,t[o].file)),onChange(t){const r=o();e("onFileReject")?.({files:t}),e("onFileChange")?.({acceptedFiles:r.get("acceptedFiles"),rejectedFiles:t})}})),transforming:t(()=>({defaultValue:!1}))}),computed:{acceptAttr:({prop:e})=>function(e){if(null!=e)return"string"==typeof e?e:Array.isArray(e)?e.filter(bs).join(","):Object.entries(e).reduce((e,[t,o])=>[...e,t,...o],[]).filter(bs).join(",")}(e("accept")),multiple:({prop:e})=>e("maxFiles")>1},watch({track:e,context:t,action:o}){e([()=>t.hash("acceptedFiles")],()=>{o(["syncInputElement"])})},on:{"FILES.SET":{actions:["setFiles"]},"FILE.SELECT":{actions:["setEventFiles"]},"FILE.DELETE":{actions:["removeFile"]},"FILES.CLEAR":{actions:["clearFiles"]},"REJECTED_FILES.CLEAR":{actions:["clearRejectedFiles"]}},effects:["preventDocumentDrop"],states:{idle:{on:{OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.FOCUS":{target:"focused"},"DROPZONE.DRAG_OVER":{target:"dragging"}}},focused:{on:{"DROPZONE.BLUR":{target:"idle"},OPEN:{actions:["openFilePicker"]},"DROPZONE.CLICK":{actions:["openFilePicker"]},"DROPZONE.DRAG_OVER":{target:"dragging"}}},dragging:{on:{"DROPZONE.DROP":{target:"idle",actions:["setEventFiles"]},"DROPZONE.DRAG_LEAVE":{target:"idle"}}}},implementations:{effects:{preventDocumentDrop({prop:e,scope:t}){if(!e("preventDocumentDrop"))return;if(!e("allowDrop"))return;if(e("disabled"))return;const o=t.getDoc();return oo(Nr(o,"dragover",e=>{e?.preventDefault()},!1),Nr(o,"drop",e=>{var o;fr((o=t).getById(_s(o)),Or(e))||e.preventDefault()},!1))}},actions:{syncInputElement({scope:e,context:t}){queueMicrotask(()=>{const o=Rs(e);if(!o)return;!function(e,t){const o=br(e);try{if("DataTransfer"in o){const r=new o.DataTransfer;t.forEach(e=>{r.items.add(e)}),e.files=r.files}}catch{}}(o,t.get("acceptedFiles"));const r=e.getWin();o.dispatchEvent(new r.Event("change",{bubbles:!0}))})},openFilePicker({scope:e}){Ur(()=>{Rs(e)?.click()})},setFiles(e){const{computed:t,context:o,event:r}=e,{acceptedFiles:i,rejectedFiles:n}=Os(e,r.files);o.set("acceptedFiles",t("multiple")?i:i.length>0?[i[0]]:[]),o.set("rejectedFiles",n)},setEventFiles(e){const{computed:t,context:o,event:r,prop:i}=e,n=o.get("acceptedFiles"),a=o.get("rejectedFiles"),{acceptedFiles:s,rejectedFiles:l}=Os(e,r.files,n,a),c=e=>t("multiple")?(o.set("acceptedFiles",t=>[...t,...e]),void o.set("rejectedFiles",l)):e.length?(o.set("acceptedFiles",[e[0]]),void o.set("rejectedFiles",l)):void(l.length&&(o.set("acceptedFiles",o.get("acceptedFiles")),o.set("rejectedFiles",l))),d=i("transformFiles");d?(o.set("transforming",!0),d(s).then(c).catch(e=>{No(`[zag-js/file-upload] error transforming files\n${e}`)}).finally(()=>{o.set("transforming",!1)})):c(s)},removeFile({context:e,event:t}){if("rejected"===t.itemType){const o=e.get("rejectedFiles").filter(e=>!vs(e.file,t.file));e.set("rejectedFiles",o)}else{const o=e.get("acceptedFiles").filter(e=>!vs(e,t.file));e.set("acceptedFiles",o)}},clearRejectedFiles({context:e}){e.set("rejectedFiles",[])},clearFiles({context:e}){e.set("acceptedFiles",[]),e.set("rejectedFiles",[])}}}},As=(Ro(ga()(["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"])),ga()(["file","type"]));Ro(As);var Ds=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),Ws=null,Ls=new Set,Ms=new Map,Bs=!1,Hs=!1,$s={Tab:!0,Escape:!0};function Us(e,t){for(let o of Ls)o(e,t)}function Gs(e){Bs=!0,function(e){return!(e.metaKey||!Rr()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Ws="keyboard",Us("keyboard",e))}function qs(e){Ws="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Bs=!0,Us("pointer",e))}function Ks(e){(function(e){return!(""!==e.pointerType||!e.isTrusted)||(_r(/Android/i)&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)})(e)&&(Bs=!0,Ws="virtual")}function Ys(e){const t=Or(e);t!==br(t)&&t!==mr(t)&&(Bs||Hs||(Ws="virtual",Us("virtual",e)),Bs=!1,Hs=!1)}function Xs(){Bs=!1,Hs=!0}var Zs=(e,t)=>{const o=br(e),r=mr(e),i=Ms.get(o);if(i){try{Object.defineProperty(o.HTMLElement.prototype,"focus",{configurable:!0,value:i.focus})}catch{}r.removeEventListener("keydown",Gs,!0),r.removeEventListener("keyup",Gs,!0),r.removeEventListener("click",Ks,!0),o.removeEventListener("focus",Ys,!0),o.removeEventListener("blur",Xs,!1),void 0!==o.PointerEvent?(r.removeEventListener("pointerdown",qs,!0),r.removeEventListener("pointermove",qs,!0),r.removeEventListener("pointerup",qs,!0)):(r.removeEventListener("mousedown",qs,!0),r.removeEventListener("mousemove",qs,!0),r.removeEventListener("mouseup",qs,!0)),Ms.delete(o)}};function Js(){return"keyboard"===Ws}function Qs(e={}){const{isTextInput:t,autoFocus:o,onChange:r,root:i}=e;(function(e){if("undefined"==typeof window||Ms.get(br(e)))return;const t=br(e),o=mr(e);let r=t.HTMLElement.prototype.focus;try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:function(){Ws="virtual",Us("virtual",null),Bs=!0,r.apply(this,arguments)}})}catch{}o.addEventListener("keydown",Gs,!0),o.addEventListener("keyup",Gs,!0),o.addEventListener("click",Ks,!0),t.addEventListener("focus",Ys,!0),t.addEventListener("blur",Xs,!1),void 0!==t.PointerEvent?(o.addEventListener("pointerdown",qs,!0),o.addEventListener("pointermove",qs,!0),o.addEventListener("pointerup",qs,!0)):(o.addEventListener("mousedown",qs,!0),o.addEventListener("mousemove",qs,!0),o.addEventListener("mouseup",qs,!0)),t.addEventListener("beforeunload",()=>{Zs(e)},{once:!0}),Ms.set(t,{focus:r})})(i),r?.({isFocusVisible:o||Js(),modality:Ws});const n=(e,o)=>{(function(e,t,o){const r=o?Or(o):null,i=br(r);return!((e=e||r instanceof i.HTMLInputElement&&!Ds.has(r?.type)||r instanceof i.HTMLTextAreaElement||r instanceof i.HTMLElement&&r.isContentEditable)&&"keyboard"===t&&o instanceof i.KeyboardEvent&&!Reflect.has($s,o.key))})(!!t,e,o)&&r?.({isFocusVisible:Js(),modality:e})};return Ls.add(n),()=>{Ls.delete(n)}}var el=Ot("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText"),tl=(el.build(),e=>new Wo(e));tl.empty=()=>new Wo({items:[]});var ol=e=>e.getById((e=>e.ids?.content??`select:${e.id}:content`)(e)),rl=(e,t)=>e.getById(((e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`)(e,t)),{guards:il,createMachine:nl}={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:al}=il,sl=(nl({props:({props:e})=>({loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:tl.empty(),orientation:"vertical",selectionMode:"single",...e}),context:({prop:e,bindable:t})=>({value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:$t,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:{...ai.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 Ho(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:r}){o([()=>e.get("value").toString()],()=>{r(["syncSelectedItems"])}),o([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem"])}),o([()=>t("collection").toString()],()=>{r(["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:al("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})=>Qs({root:e.getRootNode?.(),onChange(e){t.set("focusVisible",e.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:o}){const r=r=>{const i=e.get("highlightedValue");if(null==i)return;if("keyboard"!==Ws)return;const n=ol(o),a=t("scrollToIndexFn");if(a){const e=t("collection").indexOf(i);return void a?.({index:e,immediate:r,getElement:()=>rl(o,i)})}Jr(rl(o,i),{rootEl:n,block:"nearest"})};return Ur(()=>r(!0)),qr(()=>ol(o),{defer:!0,attributes:["data-activedescendant"],callback(){r(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:o,computed:r}){const i=o.value??e.get("highlightedValue"),n=t("collection");if(null==i||!n.has(i))return;const a=r("selection");if(o.shiftKey&&r("multiple")&&o.anchorValue){const r=a.extendSelection(n,o.anchorValue,i);ll(a,r,t("onSelect")),e.set("value",Array.from(r))}else{const r=a.select(n,i,o.metaKey);ll(a,r,t("onSelect")),e.set("value",Array.from(r))}},selectWithKeyboard({context:e,prop:t,event:o,computed:r}){const i=r("selection"),n=t("collection");if(o.shiftKey&&r("multiple")&&o.anchorValue){const r=i.extendSelection(n,o.anchorValue,o.value);return ll(i,r,t("onSelect")),void e.set("value",Array.from(r))}if(t("selectOnHighlight")){const r=i.replaceSelection(n,o.value);ll(i,r,t("onSelect")),e.set("value",Array.from(r))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:o,refs:r}){const i=t("collection").search(o.key,{state:r.get("typeahead"),currentValue:e.get("highlightedValue")});null!=i&&e.set("highlightedValue",i)},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:r}){const i=t("collection"),n=r("selection"),a=n.select(i,o.value);ll(n,a,t("onSelect")),e.set("value",Array.from(a))},clearItem({context:e,event:t,computed:o}){const r=o("selection").deselect(t.value);e.set("value",Array.from(r))},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"),r=e.get("selectedItems"),i=e.get("value").map(e=>r.find(t=>o.getItemValue(t)===e)||o.find(e));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){const o=t("collection"),r=e.get("highlightedValue"),i=r?o.find(r):null;e.set("highlightedItem",i)},syncHighlightedValue({context:e,prop:t,refs:o}){const r=t("collection"),i=e.get("highlightedValue"),{autoHighlight:n}=o.get("inputState");n?queueMicrotask(()=>{e.set("highlightedValue",t("collection").firstValue??null)}):null==i||r.has(i)||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 ll(e,t,o){const r=sl(t,e);for(const e of r)o?.({value:e})}var cl=(Ro(ga()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"])),ga()(["item","highlightOnHover"])),dl=(Ro(cl),ga()(["id"])),ul=(Ro(dl),ga()(["htmlFor"]));Ro(ul);const pl=el.extendWith("empty");Object.defineProperty;var{min:hl,max:gl}=Math,{sign:fl,abs:ml,min:bl}=Math,vl=Ot("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem"),{not:xl,and:yl,or:wl}=(vl.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)}});xl("isSubmenu"),wl("isOpenAutoFocusEvent","isArrowDownEvent"),yl(xl("isTriggerItem"),"isOpenControlled"),xl("isTriggerItem"),yl("isSubmenu","isOpenControlled"),xl("isPointerSuspended"),yl(xl("isPointerSuspended"),xl("isTriggerItem")),yl(xl("isTriggerItemHighlighted"),xl("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),yl(xl("isTriggerItemHighlighted"),xl("isHighlightedItemEditable"),"closeOnSelect"),yl(xl("isTriggerItemHighlighted"),xl("isHighlightedItemEditable"));var kl=(Ro(ga()(["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"])),ga()(["closeOnSelect","disabled","value","valueText"])),Sl=(Ro(kl),ga()(["htmlFor"])),Cl=(Ro(Sl),ga()(["id"])),Il=(Ro(Cl),ga()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"])),El=(Ro(Il),Ot("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"));El.build();var _l=(Ro(ga()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"])),Ot("radio-group").parts("root","label","item","itemText","itemControl","indicator")),Pl=_l.build(),zl=e=>e.ids?.root??`radio-group:${e.id}`,Rl=e=>e.ids?.label??`radio-group:${e.id}:label`,Tl=(e,t)=>e.ids?.item?.(t)??`radio-group:${e.id}:radio:${t}`,Ol=(e,t)=>e.ids?.itemHiddenInput?.(t)??`radio-group:${e.id}:radio:input:${t}`,Vl=e=>e.ids?.indicator??`radio-group:${e.id}:indicator`,Nl=e=>e.getById(zl(e)),jl=e=>{const t=`input[type=radio][data-ownedby='${CSS.escape(zl(e))}']:not([disabled])`;return ei(Nl(e),t)};var{not:Fl}={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)}},Al={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:Fl("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})=>Mr(Nl(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),trackFocusVisible:({scope:e})=>Qs({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}){jl(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")?.(),!(r=t).getById(Vl(r)))return;var r;const i=e.get("value"),n=((e,t)=>{if(t)return e.getById(Tl(e,t))})(t,i);if(null==i||!n)return void e.set("indicatorRect",null);const a=()=>{var t;e.set("indicatorRect",(t=n,{x:t?.offsetLeft??0,y:t?.offsetTop??0,width:t?.offsetWidth??0,height:t?.offsetHeight??0}))};a();const s=ii.observe(n,a);o.set("indicatorCleanup",s)},dispatchChangeEvent({context:e,scope:t}){jl(t).forEach(t=>{const o=t.value===e.get("value");o!==t.checked&&Dr(t,{checked:o})})}}}},Dl=(Ro(ga()(["dir","disabled","form","getRootNode","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value","defaultValue"])),ga()(["value","disabled","invalid"])),Wl=(Ro(Dl),Ot("rating-group").parts("root","label","item","control"));Wl.build();var Ll=(Ro(ga()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"])),ga()(["index"])),Ml=(Ro(Ll),Ot("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"));(Ml.build(),e=>new Wo(e)).empty=()=>new Wo({items:[]});var{and:Bl,not:Hl,or:$l}={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)}};$l("isTriggerArrowDownEvent","isTriggerEnterEvent"),Bl(Hl("multiple"),"hasSelectedItems"),Hl("multiple"),Bl(Hl("multiple"),"hasSelectedItems"),Hl("multiple"),Hl("multiple"),Hl("multiple"),Hl("multiple"),Bl("closeOnSelect","isOpenControlled"),Bl("hasHighlightedItem","loop","isLastItemHighlighted"),Bl("hasHighlightedItem","loop","isFirstItemHighlighted");var Ul=(Ro(ga()(["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"])),ga()(["item","persistFocus"])),Gl=(Ro(Ul),ga()(["id"])),ql=(Ro(Gl),ga()(["htmlFor"])),Kl=(Ro(ql),Ot("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator"));Kl.build();var Yl=(Ro((Jn(({context:e,prop:t})=>[e.get("value"),t("min"),t("max")],([e,t,o])=>e.map(e=>100*vo(e,t,o))),ga()(["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"]))),ga()(["index","name"])),Xl=(Ro(Yl),ga()(["value"])),Zl=(Ro(Xl),Ot("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator"));Zl.build();var Jl=(Ro(ga()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"])),ga()(["id"])),Ql=(Ro(Jl),ga()(["disabled","id"])),ec=(Ro(Ql),Ot("switch").parts("root","label","control","thumb")),tc=ec.build(),oc=e=>e.ids?.root??`switch:${e.id}`,rc=e=>e.ids?.label??`switch:${e.id}:label`,ic=e=>e.ids?.hiddenInput??`switch:${e.id}:input`,nc=e=>e.getById(ic(e)),{not: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)}},sc={props:({props:e})=>({defaultChecked:!1,label:"switch",value:"on",...e}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),computed:{isDisabled:({context:e,prop:t})=>t("disabled")||e.get("fieldsetDisabled")},watch({track:e,prop:t,context:o,action:r}){e([()=>t("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>o.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:ac("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:ac("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({computed:e,scope:t,context:o}){var r;if(!e("isDisabled"))return Qr({pointerNode:(r=t,r.getById(oc(r))),keyboardNode:nc(t),isValidKey:e=>" "===e.key,onPress:()=>o.set("active",!1),onPressStart:()=>o.set("active",!0),onPressEnd:()=>o.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("isDisabled"))return Qs({root:t.getRootNode()})},trackFormControlState:({context:e,send:t,scope:o})=>Mr(nc(o),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){const o=e.initial("checked");t({type:"CHECKED.SET",checked:!!o,src:"form-reset"})}})},actions:{setContext({context:e,event:t}){for(const o in t.context)e.set(o,t.context[o])},syncInputElement({context:e,scope:t}){const o=nc(t);o&&Ar(o,!!e.get("checked"))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.set("focused",!1)},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e}){e.set("checked",!e.get("checked"))},dispatchChangeEvent({context:e,scope:t}){Dr(nc(t),{checked:e.get("checked")})}}}};Ro(ga()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]));const lc=ja.extendWith("itemBody"),cc=Ot("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),dc=Ot("alert").parts("title","description","root","indicator","content"),uc=Ot("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),pc=Ot("blockquote").parts("root","icon","content","caption"),hc=Ot("card").parts("root","header","body","footer","title","description"),gc=Ot("checkbox-card",["root","control","label","description","addon","indicator","content"]),fc=Ot("data-list").parts("root","item","itemLabel","itemValue"),mc=cs.extendWith("header","body","footer","backdrop"),bc=cs.extendWith("header","body","footer","backdrop"),vc=ds.extendWith("textarea"),xc=Ot("empty-state",["root","content","indicator","title","description"]),yc=us.extendWith("requiredIndicator"),wc=ps.extendWith("content"),kc=Is.extendWith("itemContent","dropzoneContent","fileText"),Sc=Ot("list").parts("root","item","indicator"),Cc=vl.extendWith("itemCommand"),Ic=Ot("select").parts("root","field","indicator"),Ec=El.extendWith("header","body","footer"),_c=_l.extendWith("itemAddon","itemIndicator"),Pc=_c.extendWith("itemContent","itemDescription"),zc=Wl.extendWith("itemIndicator"),Rc=Ml.extendWith("indicatorGroup"),Tc=Na.extendWith("indicatorGroup","empty"),Oc=Kl.extendWith("markerIndicator"),Vc=Ot("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),Nc=Ot("status").parts("root","indicator"),jc=Ot("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),Fc=ec.extendWith("indicator"),Ac=Ot("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),Dc=Ot("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),Wc=Ot("tabs").parts("root","trigger","list","content","contentGroup","indicator"),Lc=Ot("tag").parts("root","label","closeTrigger","startElement","endElement"),Mc=Ot("timeline").parts("root","item","content","separator","indicator","connector","title","description"),Bc=ls.extendWith("channelText"),Hc=Ot("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),$c=Zl.extendWith("resizeTriggerSeparator","resizeTriggerIndicator"),Uc=(Wa.extendWith("valueText"),pl),Gc={className:"chakra-accordion",slots:lc.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"}},qc={className:"chakra-action-bar",slots:cc.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"}}},Kc={slots:dc.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 Yc=Ot("avatar").parts("root","image","fallback");Yc.build(),Ro(ga()(["dir","id","ids","onStatusChange","getRootNode"]));const Xc={slots:Yc.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"}},Zc={className:"chakra-blockquote",slots:pc.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"}},Jc={className:"chakra-breadcrumb",slots:uc.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"}},Qc={className:"chakra-card",slots:hc.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 ed=Ot("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");ed.build();var td=(Ro(ga()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"])),ga()(["index","readOnly"])),od=(Ro(td),ga()(["index","snapAlign"]));Ro(od);const rd={className:"carousel",slots:ed.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 id=Ot("checkbox").parts("root","label","control","indicator"),nd=id.build(),ad=e=>e.ids?.root??`checkbox:${e.id}`,sd=e=>e.ids?.label??`checkbox:${e.id}:label`,ld=e=>e.ids?.hiddenInput??`checkbox:${e.id}:input`,cd=e=>e.getById(ld(e)),{not:dd}={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)}},ud={props:({props:e})=>({value:"on",...e,defaultChecked:e.defaultChecked??!1}),initialState:()=>"ready",context:({prop:e,bindable:t})=>({checked:t(()=>({defaultValue:e("defaultChecked"),value:e("checked"),onChange(t){e("onCheckedChange")?.({checked:t})}})),fieldsetDisabled:t(()=>({defaultValue:!1})),focusVisible:t(()=>({defaultValue:!1})),active:t(()=>({defaultValue:!1})),focused:t(()=>({defaultValue:!1})),hovered:t(()=>({defaultValue:!1}))}),watch({track:e,context:t,prop:o,action:r}){e([()=>o("disabled")],()=>{r(["removeFocusIfNeeded"])}),e([()=>t.get("checked")],()=>{r(["syncInputElement"])})},effects:["trackFormControlState","trackPressEvent","trackFocusVisible"],on:{"CHECKED.TOGGLE":[{guard:dd("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:dd("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{indeterminate:({context:e})=>pd(e.get("checked")),checked:({context:e})=>{return!pd(t=e.get("checked"))&&!!t;var t},disabled:({context:e,prop:t})=>!!t("disabled")||e.get("fieldsetDisabled")},states:{ready:{}},implementations:{guards:{isTrusted:({event:e})=>!!e.isTrusted},effects:{trackPressEvent({context:e,computed:t,scope:o}){var r;if(!t("disabled"))return Qr({pointerNode:(r=o,r.getById(ad(r))),keyboardNode:cd(o),isValidKey:e=>" "===e.key,onPress:()=>e.set("active",!1),onPressStart:()=>e.set("active",!0),onPressEnd:()=>e.set("active",!1)})},trackFocusVisible({computed:e,scope:t}){if(!e("disabled"))return Qs({root:t.getRootNode?.()})},trackFormControlState:({context:e,scope:t})=>Mr(cd(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("checked",e.initial("checked"))}})},actions:{setContext({context:e,event:t}){for(const o in t.context)e.set(o,t.context[o])},syncInputElement({context:e,computed:t,scope:o}){const r=cd(o);r&&(Ar(r,t("checked")),r.indeterminate=pd(e.get("checked")))},removeFocusIfNeeded({context:e,prop:t}){t("disabled")&&e.get("focused")&&(e.set("focused",!1),e.set("focusVisible",!1))},setChecked({context:e,event:t}){e.set("checked",t.checked)},toggleChecked({context:e,computed:t}){const o=!!pd(t("checked"))||!t("checked");e.set("checked",o)},dispatchChangeEvent({computed:e,scope:t}){queueMicrotask(()=>{Dr(cd(t),{checked:e("checked")})})}}}};function pd(e){return"indeterminate"===e}Ro(ga()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]));const hd=id.extendWith("group"),gd={slots:hd.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:kt.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:kt.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:kt.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:kt.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:kt.variants?.size?.lg}},variant:{outline:{control:kt.variants?.variant?.outline},solid:{control:kt.variants?.variant?.solid},subtle:{control:kt.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}},fd={slots:gc.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:kt.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:kt.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:kt.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:kt.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:kt.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:kt.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:kt.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:kt.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"}},md={slots:Hc.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 bd=Ot("collapsible").parts("root","trigger","content","indicator");bd.build(),Ro(ga()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]));const vd={slots:bd.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"}}}}},xd={className:"colorPicker",slots:Bc.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:{...It.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:{...Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:Et.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}},yd={className:"chakra-combobox",slots:Tc.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"}},wd={slots:fc.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"}},kd={slots:mc.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"}},Sd={slots:bc.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"}},Cd={fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"},Id={slots:vc.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Cd,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Cd,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"}},Ed={slots:xc.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"}},_d={className:"chakra-field",slots:yc.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"}},Pd={className:"fieldset",slots:wc.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"}},zd={className:"chakra-file-upload",slots:kc.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 Rd=Ot("hoverCard").parts("arrow","arrowTip","trigger","positioner","content"),{not:Td,and:Od}=(Rd.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)}});Ro((Od("isOpenControlled",Td("isPointer")),Td("isPointer"),Od("isOpenControlled",Td("isPointer")),Td("isPointer"),ga()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"])));const Vd={className:"chakra-hover-card",slots:Rd.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"}},Nd={className:"chakra-list",slots:Sc.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"}},jd={className:"chakra-listbox",slots:Uc.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"}},Fd={className:"chakra-menu",slots:Cc.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"}},Ad={className:"chakra-select",slots:Rc.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"}},Dd={className:"chakra-native-select",slots:Ic.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:Ad.variants?.variant.outline.trigger},subtle:{field:Ad.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:Ad.defaultVariants};let Wd=new Map,Ld=!1;try{Ld="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch{}let Md=!1;try{Md="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch{}const Bd={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Hd{format(e){let t="";if(t=Ld||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 r=!1;if("always"===t?r=o>0||Object.is(o,0):"exceptZero"===t&&(Object.is(o,-0)||Object.is(o,0)?o=Math.abs(o):r=o>0),r){let t=e.format(-o),r=e.format(o),i=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...i].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(i,"+").replace("!!!",r)}return e.format(o)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!Md){var o;let{unit:e,unitDisplay:r="short",locale:i}=this.resolvedOptions();if(!e)return t;let n=null===(o=Bd[e])||void 0===o?void 0:o[r];t+=n[i]||n.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),r=this.numberFormatter.formatToParts(t);return[...o.map(e=>({...e,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(e=>({...e,source:"endRange"}))]}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return Ld||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),Md||"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&&!Md){var r;let{unit:e,unitDisplay:o="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(r=Bd[e])||void 0===r?void 0:r[o]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(Wd.has(i))return Wd.get(i);let n=new Intl.NumberFormat(e,t);return Wd.set(i,n),n}(e,t),this.options=t}}const $d=new RegExp("^.*\\(.*\\).*$"),Ud=["latn","arab","hanidec","deva","beng","fullwide"];class Gd{parse(e){return Kd(this.locale,this.options,e).parse(e)}isValidPartialNumber(e,t,o){return Kd(this.locale,this.options,e).isValidPartialNumber(e,t,o)}getNumberingSystem(e){return Kd(this.locale,this.options,e).options.numberingSystem}constructor(e,t={}){this.locale=e,this.options=t}}const qd=new Map;function Kd(e,t,o){let r=Yd(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(o))for(let i of Ud)if(i!==r.options.numberingSystem){let r=Yd(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(r.isValidPartialNumber(o))return r}return r}function Yd(e,t){let o=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():""),r=qd.get(o);return r||(r=new Xd(e,t),qd.set(o,r)),r}class Xd{parse(e){let t=this.sanitize(e);if(this.symbols.group&&(t=Qd(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 r,i;let e={...this.options,style:"decimal",minimumFractionDigits:Math.min((null!==(r=this.options.minimumFractionDigits)&&void 0!==r?r:0)+2,20),maximumFractionDigits:Math.min((null!==(i=this.options.maximumFractionDigits)&&void 0!==i?i:0)+2,20)};return new Gd(this.locale,e).parse(new Hd(this.locale,e).format(o))}return"accounting"===this.options.currencySign&&$d.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=Qd(e,".",this.symbols.group))),"’"===this.symbols.group&&e.includes("'")&&(e=Qd(e,"'",this.symbols.group)),"fr-FR"===this.options.locale&&this.symbols.group&&(e=Qd(e," ",this.symbols.group),e=Qd(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=Qd(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,r;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,r){var i,n,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=Jd.map(e=>l.formatToParts(e));var p;let h=null!==(p=null===(i=c.find(e=>"minusSign"===e.type))||void 0===i?void 0:i.value)&&void 0!==p?p:"-",g=null===(n=d.find(e=>"plusSign"===e.type))||void 0===n?void 0:n.value;g||"exceptZero"!==(null==r?void 0:r.signDisplay)&&"always"!==(null==r?void 0:r.signDisplay)||(g="+");let f=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,m=null===(s=c.find(e=>"group"===e.type))||void 0===s?void 0:s.value,b=c.filter(e=>!Zd.has(e.type)).map(e=>eu(e.value)),v=u.flatMap(e=>e.filter(e=>!Zd.has(e.type)).map(e=>eu(e.value))),x=[...new Set([...b,...v])].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:f,group:m,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!==(r=this.options.maximumFractionDigits)&&void 0!==r?r:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Zd=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),Jd=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function Qd(e,t,o){return e.replaceAll?e.replaceAll(t,o):e.split(t).join(o)}function eu(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var tu=Ot("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber"),ou=(tu.build(),e=>e.ids?.input??`number-input:${e.id}:input`),ru=e=>`number-input:${e.id}:cursor`,iu=e=>e.getById(ou(e)),nu=e=>e.getDoc().getElementById(ru(e));function au(e,t,o){const r=e.slice(0,o),i=e.slice(o);let n=0;const a=Math.min(r.length,t.length);for(let e=0;e<a&&r[e]===t[e];e++)n=e+1;let s=0;const l=Math.min(i.length,t.length-n);for(let e=0;e<l;e++){const o=i.length-1-e,r=t.length-1-e;if(i[o]!==t[r])break;s=e+1}if(n>=r.length)return n;if(s>=i.length)return t.length-s;if(n>0)return n;if(s>0)return t.length-s;if(e.length>0){const r=o/e.length;return Math.round(r*t.length)}return t.length}var su=(e,t)=>{const{prop:o,computed:r}=t;return o("formatOptions")?""===e?Number.NaN:r("parser").parse(e):parseFloat(e)},lu=(e,t)=>{const{prop:o,computed:r}=t;return Number.isNaN(e)?"":o("formatOptions")?r("formatter").format(e):e.toString()},{choose:cu,guards:du,createMachine:uu}={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:pu,and:hu}=du,gu=(uu({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 r=o(),i=su(t,{computed:r,prop:e});e("onValueChange")?.({value:t,valueAsNumber:i})}})),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})=>su(e.get("value"),{computed:t,prop:o}),formattedValue:({computed:e,prop:t})=>lu(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>{return o=e("valueAsNumber"),r=t("min"),go(o)<=r;var o,r},isAtMax:({computed:e,prop:t})=>{return o=e("valueAsNumber"),r=t("max"),go(o)>=r;var o,r},isOutOfRange:({computed:e,prop:t})=>!mo(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:Jn(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>((e,t={})=>new Intl.NumberFormat(e,t))(e,t)),parser:Jn(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>((e,t={})=>new Gd(e,t))(e,t))},watch({track:e,action:t,context:o,computed:r,prop:i}){e([()=>o.get("value"),()=>i("locale"),()=>JSON.stringify(i("formatOptions"))],()=>{t(["syncInputElement"])}),e([()=>r("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:hu("clampValueOnBlur",pu("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:pu("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:cu([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:hu("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})=>Mr(iu(t),{onFieldsetDisabledChange(t){e.set("fieldsetDisabled",t)},onFormReset(){e.set("value",e.initial("value"))}}),setupVirtualCursor:({context:e,scope:t})=>((e,t)=>{if(!Tr())return((e,t)=>{const o=e.getDoc(),r=o.createElement("div");r.className="scrubber--cursor",r.id=ru(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:lr,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.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(r)})(e,t),()=>{nu(e)?.remove()}})(t,e.get("scrubberCursorPoint")),preventTextSelection:({scope:e})=>(e=>{const t=e.getDoc(),o=t.documentElement,r=t.body;return r.style.pointerEvents="none",o.style.userSelect="none",o.style.cursor="ew-resize",()=>{r.style.pointerEvents="",o.style.userSelect="",o.style.cursor="",o.style.length||o.removeAttribute("style"),r.style.length||r.removeAttribute("style")}})(e),trackButtonDisabled:({context:e,scope:t,send:o})=>qr(((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 r=iu(e);if(r&&e.isActiveElement(r)&&o("allowMouseWheel"))return Nr(r,"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(!Tr())return function(e,t){const o=e.body,r=()=>!!e.pointerLockElement;if(!("pointerLockElement"in e)&&!("mozPointerLockElement"in e))return;try{o.requestPointerLock()}catch{}const i=[Nr(e,"pointerlockchange",function(){t?.(r())},!1),Nr(e,"pointerlockerror",function(o){r()&&t?.(!1),console.error("PointerLock error occurred:",o),e.exitPointerLock()},!1)];return()=>{i.forEach(e=>e()),e.exitPointerLock()}}(e.getDoc())},trackMousemove({scope:e,send:t,context:o,computed:r}){const i=e.getDoc();return oo(Nr(i,"mousemove",function(i){const n=o.get("scrubberCursorPoint"),a=r("isRtl"),s=((e,t)=>{const{point:o,isRtl:r,event:i}=t,n=e.getWin(),a=wo(i.movementX,n.devicePixelRatio),s=wo(i.movementY,n.devicePixelRatio);let l=a>0?"increment":a<0?"decrement":null;r&&"increment"===l&&(l="decrement"),r&&"decrement"===l&&(l="increment");const c={x:o.x+a,y:o.y+s},d=n.innerWidth,u=wo(7.5,n.devicePixelRatio);var p;return c.x=((c.x+u)%(p=d)+p)%p-u,{hint:l,point:c}})(e,{point:n,isRtl:a,event:i});s.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:s.hint,point:s.point})},!1),Nr(i,"mouseup",function(){t({type:"SCRUBBER.POINTER_UP"})},!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const o=iu(e);e.isActiveElement(o)||Ur(()=>o?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:o,computed:r}){let i=(n=r("valueAsNumber"),a=t.step??o("step"),Eo(go(n),"+",a));var n,a;o("allowOverflow")||(i=bo(i,o("min"),o("max"))),e.set("value",lu(i,{computed:r,prop:o}))},decrement({context:e,event:t,prop:o,computed:r}){let i=(n=r("valueAsNumber"),a=t.step??o("step"),Eo(go(n),"-",a));var n,a;o("allowOverflow")||(i=bo(i,o("min"),o("max"))),e.set("value",lu(i,{computed:r,prop:o}))},setClampedValue({context:e,prop:t,computed:o}){const r=bo(o("valueAsNumber"),t("min"),t("max"));e.set("value",lu(r,{computed:o,prop:t}))},setRawValue({context:e,event:t,prop:o,computed:r}){let i=su(t.value,{computed:r,prop:o});o("allowOverflow")||(i=bo(i,o("min"),o("max"))),e.set("value",lu(i,{computed:r,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 r=lu(t("max"),{computed:o,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:o}){const r=lu(t("min"),{computed:o,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:o}){if("INPUT.CHANGE"===o.type)return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,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:r}){const i=t.type.endsWith("CHANGE")?e.get("value"):o("formattedValue"),n=iu(r),a=t.selection??function(e,t){if(e&&t.isActiveElement(e))try{const{selectionStart:t,selectionEnd:o,value:r}=e;if(null==t||null==o)return;return{start:t,end:o,value:r}}catch{return}}(n,r);Ur(()=>{Fr(n,i),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:r,end:i,value:n}=t;if(o===n)return void e.setSelectionRange(r,i);const a=au(n,o,r),s=r===i?a:au(n,o,i),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)}}}(n,a,r)})},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=nu(t),r=e.get("scrubberCursorPoint");o&&r&&(o.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),ga()(["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"]));Ro(gu);const fu={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"}},mu={className:"chakra-number-input",slots:tu.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...Et.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:{...fu,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...fu,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:Et.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:Et.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:Et.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:Et.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:g(Et.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}};var bu=Ot("pinInput").parts("root","label","input","control"),vu=(bu.build(),e=>e.ids?.root??`pin-input:${e.id}`),xu=e=>{const t=`input[data-ownedby=${CSS.escape(vu(e))}]`;return ei((e=>e.getById(vu(e)))(e),t)},yu=(e,t)=>xu(e)[t],wu=e=>e.getById((e=>e.ids?.hiddenInput??`pin-input:${e.id}:hidden`)(e)),ku=(e,t)=>{e.value=t,e.setAttribute("value",t)},{choose:Su,createMachine:Cu}={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 Iu(e,t){let o=t;e[0]===t[0]?o=t[1]:e[0]===t[1]&&(o=t[0]);const r=o.split("");return o=r[r.length-1],o??""}function Eu(e,t){return Array.from({length:t}).fill("").map((t,o)=>e[o]||t)}Cu({props:({props:e})=>({placeholder:"○",otp:!1,type:"numeric",defaultValue:e.count?Eu([],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:$t,onChange(t){e("onValueChange")?.({value:t,valueAsString:t.join("")})}})),focusedIndex:t(()=>({sync:!0,defaultValue:-1})),count:t(()=>({defaultValue:e("count")}))}),computed:{_value:({context:e})=>Eu(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:Su([{guard:"autoFocus",actions:["setInputCount","setFocusIndexToFirst"]},{actions:["setInputCount"]}]),watch({action:e,track:t,context:o,computed:r}){t([()=>o.get("focusedIndex")],()=>{e(["focusInput","selectInputIfNeeded"])}),t([()=>o.get("value").join(",")],()=>{e(["syncInputElements","dispatchInputEvent"])}),t([()=>r("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:r=!0}=t;if(!e)return;const i=br(e);e instanceof i.HTMLInputElement&&(Fr(e,`${o}`),e.dispatchEvent(new i.Event("input",{bubbles:r})))}(wu(t),{value:e("valueAsString")})},setInputCount({scope:e,context:t,prop:o}){if(o("count"))return;const r=xu(e);t.set("count",r.length)},focusInput({context:e,scope:t}){const o=e.get("focusedIndex");-1!==o&&yu(t,o)?.focus({preventScroll:!0})},selectInputIfNeeded({context:e,prop:t,scope:o}){const r=e.get("focusedIndex");t("selectOnFocus")&&-1!==r&&Ur(()=>{yu(o,r)?.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=Eu(t.value,e.get("count"));e.set("value",o)},setFocusedValue({context:e,event:t,computed:o,flush:r}){const i=o("focusedValue"),n=e.get("focusedIndex"),a=Iu(i,t.value);r(()=>{e.set("value",So(o("_value"),n,a))})},revertInputValue({context:e,computed:t,scope:o}){const r=yu(o,e.get("focusedIndex"));ku(r,t("focusedValue"))},syncInputValue({context:e,event:t,scope:o}){const r=e.get("value"),i=yu(o,t.index);ku(i,r[t.index])},syncInputElements({context:e,scope:t}){const o=xu(t),r=e.get("value");o.forEach((e,t)=>{ku(e,r[t])})},setPastedValue({context:e,event:t,computed:o,flush:r}){Ur(()=>{const i=o("valueAsString"),n=e.get("focusedIndex"),a=o("valueLength"),s=o("filledValueLength"),l=Math.min(n,s),c=Eu(`${l>0?i.substring(0,n):""}${t.value.substring(0,a-l)}`.split(""),a);r(()=>{e.set("value",c)})})},setValueAtIndex({context:e,event:t,computed:o}){const r=Iu(o("focusedValue"),t.value);e.set("value",So(o("_value"),t.index,r))},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",So(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}){Ur(()=>{e.set("focusedIndex",Math.min(t("filledValueLength"),t("valueLength")-1))})},blurFocusedInputIfNeeded({context:e,prop:t,scope:o}){t("blurOnComplete")&&Ur(()=>{yu(o,e.get("focusedIndex"))?.blur()})},requestFormSubmit({computed:e,prop:t,scope:o}){if(!t("name")||!e("isValueComplete"))return;const r=wu(o);r?.form?.requestSubmit()}}}}),Ro(ga()(["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:_u,defaultVariants:Pu}=Et,zu={className:"chakra-pin-input",slots:bu.keys(),base:{input:{...Et.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:g(_u.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:g(_u.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:Pu},Ru={className:"chakra-popover",slots:Ec.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 Tu=Ot("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Tu.build(),Jn(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>new Intl.NumberFormat(e,t));Ro(ga()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]));const Ou={slots:Tu.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"}},Vu={className:"chakra-progress-circle",slots:Tu.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 Nu=(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))(Nu||{}),ju=Object.defineProperty,Fu=(e,t,o)=>(((e,t,o)=>{t in e?ju(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o})(e,"symbol"!=typeof t?t+"":t,o),o);const Au=[1,0],Du=[2,3],Wu=[3,2],Lu={L:[0,1],M:Au,Q:Du,H:Wu},Mu=/^[0-9]*$/,Bu=/^[A-Z0-9 $%*+.\/:-]*$/,Hu="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",$u=[[-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]],Uu=[[-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 Gu{constructor(e,t,o,r){if(this.version=e,this.ecc=t,Fu(this,"size"),Fu(this,"mask"),Fu(this,"modules",[]),Fu(this,"types",[]),e<1||e>40)throw new RangeError("Version value out of range");if(r<-1||r>7)throw new RangeError("Mask value out of range");this.size=4*e+17;const i=Array.from({length:this.size},()=>!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();const n=this.addEccAndInterleave(o);if(this.drawCodewords(n),-1===r){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);const o=this.getPenaltyScore();o<e&&(r=t,e=o),this.applyMask(t)}}this.mask=r,this.applyMask(r),this.drawFormatBits(r)}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,Nu.Timing),this.setFunctionModule(e,6,e%2==0,Nu.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 r=0;r<t;r++)0===o&&0===r||0===o&&r===t-1||o===t-1&&0===r||this.drawAlignmentPattern(e[o],e[r]);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 r=21522^(t<<10|o);for(let e=0;e<=5;e++)this.setFunctionModule(8,e,Ku(r,e));this.setFunctionModule(8,7,Ku(r,6)),this.setFunctionModule(8,8,Ku(r,7)),this.setFunctionModule(7,8,Ku(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,Ku(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,Ku(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,Ku(r,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=Ku(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,o),this.setFunctionModule(i,r,o)}}drawFinderPattern(e,t){for(let o=-4;o<=4;o++)for(let r=-4;r<=4;r++){const i=Math.max(Math.abs(r),Math.abs(o)),n=e+r,a=t+o;n>=0&&n<this.size&&a>=0&&a<this.size&&this.setFunctionModule(n,a,2!==i&&4!==i,Nu.Position)}}drawAlignmentPattern(e,t){for(let o=-2;o<=2;o++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+o,1!==Math.max(Math.abs(r),Math.abs(o)),Nu.Alignment)}setFunctionModule(e,t,o,r=Nu.Function){this.modules[t][e]=o,this.types[t][e]=r}addEccAndInterleave(e){const t=this.version,o=this.ecc;if(e.length!==lp(t,o))throw new RangeError("Invalid argument");const r=Uu[o[0]][t],i=$u[o[0]][t],n=Math.floor(sp(t)/8),a=r-n%r,s=Math.floor(n/r),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 r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=dp(t[e],o),e+1<t.length&&(t[e]^=t[e+1]);o=dp(o,2)}return t}(i);for(let t=0,o=0;t<r;t++){const r=e.slice(o,o+s-i+(t<a?0:1));o+=r.length;const n=cp(r,c);t<a&&r.push(0),l.push(r.concat(n))}const d=[];for(let e=0;e<l[0].length;e++)l.forEach((t,o)=>{(e!==s-i||o>=a)&&d.push(t[e])});return d}drawCodewords(e){if(e.length!==Math.floor(sp(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 r=0;r<this.size;r++)for(let i=0;i<2;i++){const n=o-i,a=o+1&2?r:this.size-1-r;!this.types[a][n]&&t<8*e.length&&(this.modules[a][n]=Ku(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 r;switch(e){case 0:r=(o+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=o%3==0;break;case 3:r=(o+t)%3==0;break;case 4:r=(Math.floor(o/3)+Math.floor(t/2))%2==0;break;case 5:r=o*t%2+o*t%3==0;break;case 6:r=(o*t%2+o*t%3)%2==0;break;case 7:r=((o+t)%2+o*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.types[t][o]&&r&&(this.modules[t][o]=!this.modules[t][o])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let o=!1,r=0;const i=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[t][n]===o?(r++,5===r?e+=3:r>5&&e++):(this.finderPenaltyAddHistory(r,i),o||(e+=40*this.finderPenaltyCountPatterns(i)),o=this.modules[t][n],r=1);e+=40*this.finderPenaltyTerminateAndCount(o,r,i)}for(let t=0;t<this.size;t++){let o=!1,r=0;const i=[0,0,0,0,0,0,0];for(let n=0;n<this.size;n++)this.modules[n][t]===o?(r++,5===r?e+=3:r>5&&e++):(this.finderPenaltyAddHistory(r,i),o||(e+=40*this.finderPenaltyCountPatterns(i)),o=this.modules[n][t],r=1);e+=40*this.finderPenaltyTerminateAndCount(o,r,i)}for(let t=0;t<this.size-1;t++)for(let o=0;o<this.size-1;o++){const r=this.modules[t][o];r===this.modules[t][o+1]&&r===this.modules[t+1][o]&&r===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 r=this.size-7;o.length<e;r-=t)o.splice(1,0,r);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 qu(e,t,o){if(t<0||t>31||e>>>t!==0)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)o.push(e>>>r&1)}function Ku(e,t){return!!(e>>>t&1)}class Yu{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 Xu=[1,10,12,14],Zu=[2,9,11,13],Ju=[4,8,16,16];function Qu(e,t){return e[Math.floor((t+7)/17)+1]}function ep(e){const t=[];for(const o of e)qu(o,8,t);return new Yu(Ju,e.length,t)}function tp(e){if(!rp(e))throw new RangeError("String contains non-numeric characters");const t=[];for(let o=0;o<e.length;){const r=Math.min(e.length-o,3);qu(Number.parseInt(e.substring(o,o+r),10),3*r+1,t),o+=r}return new Yu(Xu,e.length,t)}function op(e){if(!ip(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 r=45*Hu.indexOf(e.charAt(o));r+=Hu.indexOf(e.charAt(o+1)),qu(r,11,t)}return o<e.length&&qu(Hu.indexOf(e.charAt(o)),6,t),new Yu(Zu,e.length,t)}function rp(e){return Mu.test(e)}function ip(e){return Bu.test(e)}function np(e,t){let o=0;for(const r of e){const e=Qu(r.mode,t);if(r.numChars>=1<<e)return Number.POSITIVE_INFINITY;o+=4+e+r.bitData.length}return o}function ap(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 sp(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 lp(e,t){return Math.floor(sp(e)/8)-$u[t[0]][e]*Uu[t[0]][e]}function cp(e,t){const o=t.map(e=>0);for(const r of e){const e=r^o.shift();o.push(0),t.forEach((t,r)=>o[r]^=dp(t,e))}return o}function dp(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");let o=0;for(let r=7;r>=0;r--)o=o<<1^285*(o>>>7),o^=(t>>>r&1)*e;return o}var up=Ot("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");up.build();Jn(({context:e,prop:t})=>[e.get("value"),t("encoding")],([e,t])=>function(e,t){const{ecc:o="L",boostEcc:r=!1,minVersion:i=1,maxVersion:n=40,maskPattern:a=-1,border:s=1}=t||{},l="string"==typeof e?""===(c=e)?[]:rp(c)?[tp(c)]:ip(c)?[op(c)]:[ep(ap(c))]:Array.isArray(e)?[ep(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,r=40,i=-1,n=!0){if(!(1<=o&&o<=r&&r<=40)||i<-1||i>7)throw new RangeError("Invalid value");let a,s;for(a=o;;a++){const o=8*lp(a,t),i=np(e,a);if(i<=o){s=i;break}if(a>=r)throw new RangeError("Data too long")}for(const e of[Au,Du,Wu])n&&s<=8*lp(a,e)&&(t=e);const l=[];for(const t of e){qu(t.mode[0],4,l),qu(t.numChars,Qu(t.mode,a),l);for(const e of t.getData())l.push(e)}const c=8*lp(a,t);qu(0,Math.min(4,c-l.length),l),qu(0,(8-l.length%8)%8,l);for(let e=236;l.length<c;e^=253)qu(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 Gu(a,t,d,i)}(l,Lu[o],i,n,a,r),u=function(e,t=1){if(!t)return e;const{size:o}=e,r=o+2*t;e.size=r,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:r},e=>!1)),e.data.push(Array.from({length:r},e=>!1));const i=Nu.Border;e.types.forEach(e=>{for(let o=0;o<t;o++)e.unshift(i),e.push(i)});for(let o=0;o<t;o++)e.types.unshift(Array.from({length:r},e=>i)),e.types.push(Array.from({length:r},e=>i));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)),Ro(ga()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]));const pp={slots:up.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"}},hp={className:"chakra-radio-card",slots:Pc.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:_t.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:_t.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:_t.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:_t.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:_t.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:_t.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:_t.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:_t.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"}},gp={className:"chakra-radio-group",slots:_c.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:_t.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:_t.variants?.variant?.outline},subtle:{itemControl:_t.variants?.variant?.subtle},solid:{itemControl:_t.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:_t.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:_t.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:_t.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:_t.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}},fp={className:"chakra-rating-group",slots:zc.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 mp=Ot("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");mp.build(),Ro(ga()(["dir","getRootNode","ids","id"]));const bp={className:"chakra-scroll-area",slots:mp.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"}},vp=_l.rename("segment-group"),xp=(vp.build(),{className:"chakra-segment-group",slots:vp.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"}}),yp={className:"chakra-slider",slots:Oc.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"}},wp={slots:$c.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"}}}},kp={className:"chakra-stat",slots:Vc.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"}},Sp={className:"chakra-status",slots:Nc.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"}},Cp={className:"chakra-steps",slots:jc.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"}},Ip={slots:Fc.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"}},Ep={className:"chakra-table",slots:Ac.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"}},_p={slots:Wc.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"}},Pp=wt.variants?.variant,zp={slots:Lc.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:Pp?.subtle},solid:{root:Pp?.solid},outline:{root:Pp?.outline},surface:{root:Pp?.surface}}},defaultVariants:{size:"md",variant:"surface"}};var Rp=Ot("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger"),{and:Tp,not:Op,or:Vp}=(Rp.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)}}),Np=(Ro((Tp(Vp(Op("isAtMax"),"allowOverflow"),Op("isInputValueEmpty")),Op("hasHighlightedTag"),Tp("hasTags","isCaretAtStart"),Tp("hasTags","isCaretAtStart"),Tp("hasTags","isCaretAtStart",Op("isLastTagHighlighted")),Op("isCaretAtStart"),Tp("isTagEditable","hasHighlightedTag"),Op("isCaretAtStart"),Op("isCaretAtStart"),ga()(["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"]))),ga()(["index","disabled","value"]));Ro(Np);const jp={slots:Rp.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"}},Fp={slots:Mc.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}},Ap={slots:Dc.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 Dp=Ot("tooltip").parts("trigger","arrow","arrowTip","positioner","content"),{and:Wp,not:Lp}=(Dp.build(),function(e,t=Object.is){let o={...e};const r=new Set,i=()=>{r.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)}});Ro((Wp("noVisibleTooltip",Lp("hasPointerMoveOpened")),Lp("hasPointerMoveOpened"),ga()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"])));const Mp={slots:Dp.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 Bp=Ot("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");(Bp.build(),e=>new tr(e)).empty=()=>new tr({rootNode:{children:[]}});var{and:Hp}={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)}};Hp("isMultipleSelection","moveFocus"),Hp("isShiftKey","isMultipleSelection"),Hp("isShiftKey","isMultipleSelection"),Hp("isBranchFocused","isBranchExpanded"),Hp("isShiftKey","isMultipleSelection"),Hp("isShiftKey","isMultipleSelection"),Hp("isCtrlKey","isMultipleSelection"),Hp("isShiftKey","isMultipleSelection"),Hp("isCtrlKey","isMultipleSelection"),Hp("isShiftKey","isMultipleSelection");var $p=(Ro(ga()(["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"])),ga()(["node","indexPath"]));Ro($p);const Up={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"}},Gp={flex:"1"},qp={_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},Kp={_selected:{layerStyle:"fill.solid"}},Yp={accordion:Gc,actionBar:qc,alert:Kc,avatar:Xc,blockquote:Zc,breadcrumb:Jc,card:Qc,carousel:rd,checkbox:gd,checkboxCard:fd,codeBlock:md,collapsible:vd,dataList:wd,dialog:kd,drawer:Sd,editable:Id,emptyState:Ed,field:_d,fieldset:Pd,fileUpload:zd,hoverCard:Vd,list:Nd,listbox:jd,menu:Fd,nativeSelect:Dd,numberInput:mu,pinInput:zu,popover:Ru,progress:Ou,progressCircle:Vu,radioCard:hp,radioGroup:gp,ratingGroup:fp,scrollArea:bp,segmentGroup:xp,select:Ad,combobox:yd,slider:yp,splitter:wp,stat:kp,steps:Cp,switch:Ip,table:Ep,tabs:_p,tag:zp,tagsInput:jp,toast:Ap,tooltip:Mp,status:Sp,timeline:Fp,colorPicker:xd,qrCode:pp,treeView:{slots:Bp.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:Up,item:Up,itemText:Gp,branchText:Gp,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:qp,item:qp},solid:{branchControl:Kp,item:Kp}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}},Xp=n.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"}}),Zp=n.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"}}),Jp=n.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),Qp=n.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),eh=n.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"}}}),th=n.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"}}),oh=n.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),rh=n.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)"}}),ih=n.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"}}),nh=n.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"}}),ah='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',sh=n.fonts({heading:{value:`Inter, ${ah}`},body:{value:`Inter, ${ah}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),lh=n.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),ch=n.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),dh=n.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"}}),uh=n.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"}}),ph=n.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"}}),hh=n.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"}}),gh=n.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%"}}),fh=n.sizes({...ph,...uh,...gh,...hh}),mh=n.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}}),bh=B(bt,{preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:yt,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:Zp,animations:Xp,blurs:Jp,borders:Qp,colors:eh,durations:oh,easings:rh,fonts:sh,fontSizes:ih,fontWeights:nh,letterSpacings:lh,lineHeights:ch,radii:dh,spacing:uh,sizes:fh,zIndex:mh,cursor:th},semanticTokens:{colors:zt,shadows:Tt,radii:Rt},recipes:Pt,slotRecipes:Yp,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"}}}}}),vh=(it(bh),window.ReactJSXRuntime),xh=window.React;var yh=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}(),wh=Math.abs,kh=String.fromCharCode,Sh=Object.assign;function Ch(e){return e.trim()}function Ih(e,t,o){return e.replace(t,o)}function Eh(e,t){return e.indexOf(t)}function _h(e,t){return 0|e.charCodeAt(t)}function Ph(e,t,o){return e.slice(t,o)}function zh(e){return e.length}function Rh(e){return e.length}function Th(e,t){return t.push(e),e}var Oh=1,Vh=1,Nh=0,jh=0,Fh=0,Ah="";function Dh(e,t,o,r,i,n,a){return{value:e,root:t,parent:o,type:r,props:i,children:n,line:Oh,column:Vh,length:a,return:""}}function Wh(e,t){return Sh(Dh("",null,null,"",null,null,0),e,{length:-e.length},t)}function Lh(){return Fh=jh>0?_h(Ah,--jh):0,Vh--,10===Fh&&(Vh=1,Oh--),Fh}function Mh(){return Fh=jh<Nh?_h(Ah,jh++):0,Vh++,10===Fh&&(Vh=1,Oh++),Fh}function Bh(){return _h(Ah,jh)}function Hh(){return jh}function $h(e,t){return Ph(Ah,e,t)}function Uh(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 Gh(e){return Oh=Vh=1,Nh=zh(Ah=e),jh=0,[]}function qh(e){return Ah="",e}function Kh(e){return Ch($h(jh-1,Zh(91===e?e+2:40===e?e+1:e)))}function Yh(e){for(;(Fh=Bh())&&Fh<33;)Mh();return Uh(e)>2||Uh(Fh)>3?"":" "}function Xh(e,t){for(;--t&&Mh()&&!(Fh<48||Fh>102||Fh>57&&Fh<65||Fh>70&&Fh<97););return $h(e,Hh()+(t<6&&32==Bh()&&32==Mh()))}function Zh(e){for(;Mh();)switch(Fh){case e:return jh;case 34:case 39:34!==e&&39!==e&&Zh(Fh);break;case 40:41===e&&Zh(e);break;case 92:Mh()}return jh}function Jh(e,t){for(;Mh()&&e+Fh!==57&&(e+Fh!==84||47!==Bh()););return"/*"+$h(t,jh-1)+"*"+kh(47===e?e:Mh())}function Qh(e){for(;!Uh(Bh());)Mh();return $h(e,jh)}var eg="-ms-",tg="-moz-",og="-webkit-",rg="comm",ig="rule",ng="decl",ag="@keyframes";function sg(e,t){for(var o="",r=Rh(e),i=0;i<r;i++)o+=t(e[i],i,e,t)||"";return o}function lg(e,t,o,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ng:return e.return=e.return||e.value;case rg:return"";case ag:return e.return=e.value+"{"+sg(e.children,r)+"}";case ig:e.value=e.props.join(",")}return zh(o=sg(e.children,r))?e.return=e.value+"{"+o+"}":""}function cg(e){return qh(dg("",null,null,null,[""],e=Gh(e),0,[0],e))}function dg(e,t,o,r,i,n,a,s,l){for(var c=0,d=0,u=a,p=0,h=0,g=0,f=1,m=1,b=1,v=0,x="",y=i,w=n,k=r,S=x;m;)switch(g=v,v=Mh()){case 40:if(108!=g&&58==_h(S,u-1)){-1!=Eh(S+=Ih(Kh(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:S+=Kh(v);break;case 9:case 10:case 13:case 32:S+=Yh(g);break;case 92:S+=Xh(Hh()-1,7);continue;case 47:switch(Bh()){case 42:case 47:Th(pg(Jh(Mh(),Hh()),t,o),l);break;default:S+="/"}break;case 123*f:s[c++]=zh(S)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+d:-1==b&&(S=Ih(S,/\f/g,"")),h>0&&zh(S)-u&&Th(h>32?hg(S+";",r,o,u-1):hg(Ih(S," ","")+";",r,o,u-2),l);break;case 59:S+=";";default:if(Th(k=ug(S,t,o,c,d,i,s,x,y=[],w=[],u),n),123===v)if(0===d)dg(S,t,k,k,y,n,u,s,w);else switch(99===p&&110===_h(S,3)?100:p){case 100:case 108:case 109:case 115:dg(e,k,k,r&&Th(ug(e,k,k,0,0,i,s,x,i,y=[],u),w),i,w,u,s,r?y:w);break;default:dg(S,k,k,k,[""],w,0,s,w)}}c=d=h=0,f=b=1,x=S="",u=a;break;case 58:u=1+zh(S),h=g;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==Lh())continue;switch(S+=kh(v),v*f){case 38:b=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(zh(S)-1)*b,b=1;break;case 64:45===Bh()&&(S+=Kh(Mh())),p=Bh(),d=u=zh(x=S+=Qh(Hh())),v++;break;case 45:45===g&&2==zh(S)&&(f=0)}}return n}function ug(e,t,o,r,i,n,a,s,l,c,d){for(var u=i-1,p=0===i?n:[""],h=Rh(p),g=0,f=0,m=0;g<r;++g)for(var b=0,v=Ph(e,u+1,u=wh(f=a[g])),x=e;b<h;++b)(x=Ch(f>0?p[b]+" "+v:Ih(v,/&\f/g,p[b])))&&(l[m++]=x);return Dh(e,t,o,0===i?ig:s,l,c,d)}function pg(e,t,o){return Dh(e,t,o,rg,kh(Fh),Ph(e,2,-2),0)}function hg(e,t,o,r){return Dh(e,t,o,ng,Ph(e,0,r),Ph(e,r+1,-1),r)}var gg=function(e,t,o){for(var r=0,i=0;r=i,i=Bh(),38===r&&12===i&&(t[o]=1),!Uh(i);)Mh();return $h(e,jh)},fg=new WeakMap,mg=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,o=e.parent,r=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)||fg.get(o))&&!r){fg.set(e,!0);for(var i=[],n=function(e,t){return qh(function(e,t){var o=-1,r=44;do{switch(Uh(r)){case 0:38===r&&12===Bh()&&(t[o]=1),e[o]+=gg(jh-1,t,o);break;case 2:e[o]+=Kh(r);break;case 4:if(44===r){e[++o]=58===Bh()?"&\f":"",t[o]=e[o].length;break}default:e[o]+=kh(r)}}while(r=Mh());return e}(Gh(e),t))}(t,i),a=o.props,s=0,l=0;s<n.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?n[s].replace(/&\f/g,a[c]):a[c]+" "+n[s]}}},bg=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function vg(e,t){switch(function(e,t){return 45^_h(e,0)?(((t<<2^_h(e,0))<<2^_h(e,1))<<2^_h(e,2))<<2^_h(e,3):0}(e,t)){case 5103:return og+"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 og+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return og+e+tg+e+eg+e+e;case 6828:case 4268:return og+e+eg+e+e;case 6165:return og+e+eg+"flex-"+e+e;case 5187:return og+e+Ih(e,/(\w+).+(:[^]+)/,og+"box-$1$2"+eg+"flex-$1$2")+e;case 5443:return og+e+eg+"flex-item-"+Ih(e,/flex-|-self/,"")+e;case 4675:return og+e+eg+"flex-line-pack"+Ih(e,/align-content|flex-|-self/,"")+e;case 5548:return og+e+eg+Ih(e,"shrink","negative")+e;case 5292:return og+e+eg+Ih(e,"basis","preferred-size")+e;case 6060:return og+"box-"+Ih(e,"-grow","")+og+e+eg+Ih(e,"grow","positive")+e;case 4554:return og+Ih(e,/([^-])(transform)/g,"$1"+og+"$2")+e;case 6187:return Ih(Ih(Ih(e,/(zoom-|grab)/,og+"$1"),/(image-set)/,og+"$1"),e,"")+e;case 5495:case 3959:return Ih(e,/(image-set\([^]*)/,og+"$1$`$1");case 4968:return Ih(Ih(e,/(.+:)(flex-)?(.*)/,og+"box-pack:$3"+eg+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+og+e+e;case 4095:case 3583:case 4068:case 2532:return Ih(e,/(.+)-inline(.+)/,og+"$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(zh(e)-1-t>6)switch(_h(e,t+1)){case 109:if(45!==_h(e,t+4))break;case 102:return Ih(e,/(.+:)(.+)-([^]+)/,"$1"+og+"$2-$3$1"+tg+(108==_h(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Eh(e,"stretch")?vg(Ih(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_h(e,t+1))break;case 6444:switch(_h(e,zh(e)-3-(~Eh(e,"!important")&&10))){case 107:return Ih(e,":",":"+og)+e;case 101:return Ih(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+og+(45===_h(e,14)?"inline-":"")+"box$3$1"+og+"$2$3$1"+eg+"$2box$3")+e}break;case 5936:switch(_h(e,t+11)){case 114:return og+e+eg+Ih(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return og+e+eg+Ih(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return og+e+eg+Ih(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return og+e+eg+e+e}return e}var xg=[function(e,t,o,r){if(e.length>-1&&!e.return)switch(e.type){case ng:e.return=vg(e.value,e.length);break;case ag:return sg([Wh(e,{value:Ih(e.value,"@","@"+og)})],r);case ig: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 sg([Wh(e,{props:[Ih(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return sg([Wh(e,{props:[Ih(t,/:(plac\w+)/,":"+og+"input-$1")]}),Wh(e,{props:[Ih(t,/:(plac\w+)/,":-moz-$1")]}),Wh(e,{props:[Ih(t,/:(plac\w+)/,eg+"input-$1")]})],r)}return""})}}],yg=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 r,i,n=e.stylisPlugins||xg,a={},s=[];r=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,d=[lg,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],u=function(e){var t=Rh(e);return function(o,r,i,n){for(var a="",s=0;s<t;s++)a+=e[s](o,r,i,n)||"";return a}}([mg,bg].concat(n,d));i=function(e,t,o,r){l=o,sg(cg(e?e+"{"+t.styles+"}":t.styles),u),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new yh({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p};function wg(e,t,o){var r="";return o.split(" ").forEach(function(o){void 0!==e[o]?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var kg=function(e,t,o){var r=e.key+"-"+t.name;!1===o&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Sg=function(e,t,o){kg(e,t,o);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}},Cg={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};function Ig(e){var t=Object.create(null);return function(o){return void 0===t[o]&&(t[o]=e(o)),t[o]}}var Eg=/[A-Z]|^ms/g,_g=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pg=function(e){return 45===e.charCodeAt(1)},zg=function(e){return null!=e&&"boolean"!=typeof e},Rg=Ig(function(e){return Pg(e)?e:e.replace(Eg,"-$&").toLowerCase()}),Tg=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(_g,function(e,t,o){return Vg={name:t,styles:o,next:Vg},t})}return 1===Cg[e]||Pg(e)||"number"!=typeof t||0===t?t:t+"px"};function Og(e,t,o){if(null==o)return"";var r=o;if(void 0!==r.__emotion_styles)return r;switch(typeof o){case"boolean":return"";case"object":var i=o;if(1===i.anim)return Vg={name:i.name,styles:i.styles,next:Vg},i.name;var n=o;if(void 0!==n.styles){var a=n.next;if(void 0!==a)for(;void 0!==a;)Vg={name:a.name,styles:a.styles,next:Vg},a=a.next;return n.styles+";"}return function(e,t,o){var r="";if(Array.isArray(o))for(var i=0;i<o.length;i++)r+=Og(e,t,o[i])+";";else for(var n in o){var a=o[n];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=n+"{"+t[s]+"}":zg(s)&&(r+=Rg(n)+":"+Tg(n,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Og(e,t,a);switch(n){case"animation":case"animationName":r+=Rg(n)+":"+l+";";break;default:r+=n+"{"+l+"}"}}else for(var c=0;c<a.length;c++)zg(a[c])&&(r+=Rg(n)+":"+Tg(n,a[c])+";")}return r}(e,t,o);case"function":if(void 0!==e){var s=Vg,l=o(e);return Vg=s,Og(e,t,l)}}var c=o;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var Vg,Ng=/label:\s*([^\s;{]+)\s*(;|$)/g;function jg(e,t,o){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Vg=void 0;var n=e[0];null==n||void 0===n.raw?(r=!1,i+=Og(o,t,n)):i+=n[0];for(var a=1;a<e.length;a++)i+=Og(o,t,e[a]),r&&(i+=n[a]);Ng.lastIndex=0;for(var s,l="";null!==(s=Ng.exec(i));)l+="-"+s[1];var c=function(e){for(var t,o=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),o=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&o)+(59797*(o>>>16)<<16);switch(i){case 3:o^=(255&e.charCodeAt(r+2))<<16;case 2:o^=(255&e.charCodeAt(r+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(r)))+(59797*(o>>>16)<<16)}return(((o=1540483477*(65535&(o^=o>>>13))+(59797*(o>>>16)<<16))^o>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Vg}}var Fg,Ag,Dg=!!xh.useInsertionEffect&&xh.useInsertionEffect,Wg=Dg||function(e){return e()},Lg=Dg||xh.useLayoutEffect,Mg=xh.createContext("undefined"!=typeof HTMLElement?yg({key:"css"}):null),Bg=(Mg.Provider,function(e){return(0,xh.forwardRef)(function(t,o){var r=(0,xh.useContext)(Mg);return e(t,r,o)})}),Hg=xh.createContext({}),$g={}.hasOwnProperty,Ug="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Gg=function(e){var t=e.cache,o=e.serialized,r=e.isStringTag;return kg(t,o,r),Wg(function(){return Sg(t,o,r)}),null},qg=Bg(function(e,t,o){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ug],n=[r],a="";"string"==typeof e.className?a=wg(t.registered,n,e.className):null!=e.className&&(a=e.className+" ");var s=jg(n,void 0,xh.useContext(Hg));a+=t.key+"-"+s.name;var l={};for(var c in e)$g.call(e,c)&&"css"!==c&&c!==Ug&&(l[c]=e[c]);return l.className=a,o&&(l.ref=o),xh.createElement(xh.Fragment,null,xh.createElement(Gg,{cache:t,serialized:s,isStringTag:"string"==typeof i}),xh.createElement(i,l))}),Kg=qg,Yg=(o(146),function(e,t){var o=arguments;if(null==t||!$g.call(t,"css"))return xh.createElement.apply(void 0,o);var r=o.length,i=new Array(r);i[0]=Kg,i[1]=function(e,t){var o={};for(var r in t)$g.call(t,r)&&(o[r]=t[r]);return o[Ug]=e,o}(e,t);for(var n=2;n<r;n++)i[n]=o[n];return xh.createElement.apply(null,i)});Fg=Yg||(Yg={}),Ag||(Ag=Fg.JSX||(Fg.JSX={}));var Xg=Bg(function(e,t){var o=jg([e.styles],void 0,xh.useContext(Hg)),r=xh.useRef();return Lg(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,a=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(n=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,n],function(){i.flush()}},[t]),Lg(function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&Sg(t,o.next,!0),i.tags.length){var n=i.tags[i.tags.length-1].nextElementSibling;i.before=n,i.flush()}t.insert("",o,i,!1)}},[t,o.name]),null});function Zg(e={}){const{name:t,strict:o=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:n,defaultValue:a}=e,s=(0,xh.createContext)(a);return s.displayName=t,[s.Provider,function e(){const t=(0,xh.useContext)(s);if(!t&&o){const t=new Error(n??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Error.captureStackTrace?.(t,e),t}return t},s]}const[Jg,Qg]=Zg({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function ef(e){const{value:t,children:o}=e;return(0,vh.jsxs)(Jg,{value:t,children:[!t._config.disableLayers&&(0,vh.jsx)(Xg,{styles:t.layers.atRule}),(0,vh.jsx)(Xg,{styles:t._global}),o]})}var tf=Ot("toast").parts("group","root","title","description","actionTrigger","closeTrigger").build(),of=e=>`toast-group:${e}`,rf=(e,t)=>e.getById(`toast-group:${t}`),nf=e=>`toast:${e.id}`,af=e=>e.getById(nf(e)),sf=e=>`toast:${e.id}:title`,lf=e=>`toast:${e.id}:description`,cf={info:5e3,error:5e3,success:2e3,loading:1/0,DEFAULT:5e3};function df(e,t){return e??cf[t]??cf.DEFAULT}function uf(e,t){const{prop:o,computed:r,context:i}=e,{offsets:n,gap:a}=o("store").attrs,s=i.get("heights"),l=(e=>"string"==typeof e?{left:e,right:e,bottom:e,top:e}:e)(n),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:r("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:lr};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 pf(e,t){const{prop:o,context:r,computed:i}=e,n=o("parent"),a=n.computed("placement"),{gap:s}=n.prop("store").attrs,[l]=a.split("-"),c=r.get("mounted"),d=r.get("remainingTime"),u=i("height"),p=i("frontmost"),h=!p,g=!o("stacked"),f=o("stacked"),m="loading"===o("type")?Number.MAX_SAFE_INTEGER:d,b=i("heightIndex")*s+i("heightBefore"),v={position:"absolute",pointerEvents:"auto","--opacity":"0","--remove-delay":`${o("removeDelay")}ms`,"--duration":`${m}ms`,"--initial-height":`${u}px`,"--offset":`${b}px`,"--index":o("index"),"--z-index":i("zIndex"),"--lift-amount":"calc(var(--lift) * var(--gap))","--y":"100%","--x":"0"},x=e=>Object.assign(v,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"}),f&&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&&f&&!t&&x({"--y":"calc(var(--lift) * var(--offset) + var(--lift) * -100%)"}),p&&!t&&x({"--y":"calc(var(--lift) * -100%)"}),v}function hf(e,t){const{computed:o}=e,r={position:"absolute",inset:"0",scale:"1 2",pointerEvents:t?"none":"auto"};var i;return o("frontmost")&&!t&&(i={height:"calc(var(--initial-height) + 80%)"},Object.assign(r,i)),r}var{guards:gf,createMachine:ff}={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:mf}=gf,bf=ff({props:({props:e})=>({dir:"ltr",id:ro(),...e,store:e.store}),initialState:({prop:e})=>e("store").attrs.overlap?"overlap":"stack",refs:()=>({lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:$r.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:mf("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})=>Nr(document,"keydown",o=>{const{hotkey:r}=e("store").attrs;r.every(e=>o[e]||o.code===e)&&t({type:"DOC.HOTKEY"})},{capture:!0}),trackDocumentVisibility({prop:e,send:t,scope:o}){const{pauseOnPageIdle:r}=e("store").attrs;if(!r)return;const i=o.getDoc();return Nr(i,"visibilitychange",()=>{const e="hidden"===i.visibilityState;t({type:e?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:o,scope:r}){const i=t.get("toasts"),n=o("placement"),a=i.length>0;if(!a)return void e.get("dismissableCleanup")?.();if(a&&e.get("dismissableCleanup"))return;const s=function(e,t={}){const{defer:o}=t,r=o?Ur:e=>e(),i=[];return i.push(r(()=>{const t=Kt(e)?e():e;t?(ua.addBranch(t),i.push(()=>{ua.removeBranch(t)})):No("[@zag-js/dismissable] branch node is `null` or `undefined`")})),()=>{i.forEach(e=>e?.())}}(()=>rf(r,n),{defer:!0});e.set("dismissableCleanup",s)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{rf(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:vf}={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)}},xf={props:({props:e})=>(function(e,t,o){let r=[];for(const o of t)null==e[o]&&r.push(o);if(r.length>0)throw new Error(`[zag-js${o?` > ${o}`:""}] missing required props: ${r.join(", ")}`)}(e,["id","type","parent","removeDelay"],"toast"),{closable:!0,...e,duration:df(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:df(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,r)=>r>=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:vf("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})=>Vo(()=>{t({type:"REMOVE",src:"timer"})},e("removeDelay")),waitForDuration({send:e,context:t,computed:o}){if(!o("shouldPersist"))return Vo(()=>{e({type:"DISMISS",src:"timer"})},t.get("remainingTime"))},waitForNextTick:({send:e})=>Vo(()=>{e({type:"SHOW",src:"timer"})},0),trackHeight({scope:e,prop:t}){let o;return Ur(()=>{const r=af(e);if(!r)return;const i=new(e.getWin().MutationObserver)(()=>{const e=r.style.height;r.style.height="auto";const o=r.getBoundingClientRect().height;r.style.height=e;const i={id:t("id"),height:o};yf(t("parent"),i)});i.observe(r,{childList:!0,subtree:!0,characterData:!0}),o=()=>i.disconnect()}),()=>o?.()}},guards:{isLoadingType:({prop:e})=>"loading"===e("type"),shouldPersist:({computed:e})=>e("shouldPersist")},actions:{setMounted({context:e}){Ur(()=>{e.set("mounted",!0)})},measureHeight({scope:e,prop:t,context:o}){queueMicrotask(()=>{const r=af(e);if(!r)return;const i=r.style.height;r.style.height="auto";const n=r.getBoundingClientRect().height;r.style.height=i,o.set("initialHeight",n);const a={id:t("id"),height:n};yf(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",df(o("duration"),o("type")))},syncRemainingTime({context:e,refs:t}){e.set("remainingTime",e=>{const o=t.get("closeTimerStartTime"),r=Date.now()-o;return t.set("lastCloseStartTimerStartTime",Date.now()),e-r})},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 yf(e,t){const{id:o,height:r}=t;e.context.set("heights",e=>e.find(e=>e.id===o)?e.map(e=>e.id===o?{...e,height:r}:e):[{id:o,height:r},...e])}var wf=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,kf={connect:function(e,t){const{context:o,prop:r,send:i,refs:n,computed:a}=e;return{getCount:()=>o.get("toasts").length,getToasts:()=>o.get("toasts"),getGroupProps(o={}){const{label:s="Notifications"}=o,{hotkey:l}=r("store").attrs,c=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),d=a("placement"),[u,p="center"]=d.split("-");return t.element({...tf.group.attrs,dir:r("dir"),tabIndex:-1,"aria-label":`${d} ${s} ${c}`,id:of(d),"data-placement":d,"data-side":u,"data-align":p,"aria-live":"polite",role:"region",style:uf(e,d),onMouseEnter(){n.get("ignoreMouseTimer").isActive()||i({type:"REGION.POINTER_ENTER",placement:d})},onMouseMove(){n.get("ignoreMouseTimer").isActive()||i({type:"REGION.POINTER_ENTER",placement:d})},onMouseLeave(){n.get("ignoreMouseTimer").isActive()||i({type:"REGION.POINTER_LEAVE",placement:d})},onFocus(e){i({type:"REGION.FOCUS",target:e.relatedTarget})},onBlur(e){n.get("isFocusWithin")&&!fr(e.currentTarget,e.relatedTarget)&&queueMicrotask(()=>i({type:"REGION.BLUR"}))}})},subscribe:e=>r("store").subscribe(()=>e(o.get("toasts")))}},machine:bf};const Sf=window.ReactDOM;function Cf(e={}){const{name:t,strict:o=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:n,defaultValue:a}=e,s=(0,xh.createContext)(a);return s.displayName=t,[s.Provider,function e(){const t=(0,xh.useContext)(s);if(!t&&o){const t=new Error(n??`${r} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw t.name="ContextError",Yt(Error,"captureStackTrace")&&Kt(Error.captureStackTrace)&&Error.captureStackTrace(t,e),t}return t},s]}const[If,Ef]=Cf({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),_f=e=>{const{children:t,disabled:o}=e,[r,i]=(0,xh.useState)(e.container?.current),n=(0,xh.useSyncExternalStore)(zf,()=>!1,()=>!0),{getRootNode:a}=Ef();if((0,xh.useEffect)(()=>{i(()=>e.container?.current)},[e.container]),n||o)return(0,vh.jsx)(vh.Fragment,{children:t});const s=r??Pf(a);return(0,vh.jsx)(vh.Fragment,{children:xh.Children.map(t,e=>(0,Sf.createPortal)(e,s))})},Pf=e=>{const t=e?.(),o=t.getRootNode();return hr(o)?o:mr(t).body},zf=()=>()=>{};var Rf=void 0!==globalThis.document?xh.useLayoutEffect:xh.useEffect;function Tf(e){const t=e().value??e().defaultValue,o=e().isEqual??Object.is,[r]=(0,xh.useState)(t),[i,n]=(0,xh.useState)(r),a=void 0!==e().value,s=(0,xh.useRef)(i);s.current=a?e().value:i;const l=(0,xh.useRef)(s.current);return Rf(()=>{l.current=s.current},[i,e().value]),{initial:r,ref:s,get:function(){return a?e().value:i},set(t){(e().sync?Sf.flushSync:eo)(()=>(t=>{const r=l.current,i=Kt(t)?t(r):t;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:i,prev:r}),a||n(i),o(i,r)||e().onChange?.(i,r)})(t))},invoke(t,o){e().onChange?.(t,o)},hash:t=>e().hash?.(t)??String(t)}}Tf.cleanup=e=>{(0,xh.useEffect)(()=>e,[])},Tf.ref=e=>{const t=(0,xh.useRef)(e);return{get:()=>t.current,set:e=>{t.current=e}}};var Of=(e,t)=>{const o=(0,xh.useRef)(!1),r=(0,xh.useRef)(!1);(0,xh.useEffect)(()=>{if(o.current&&r.current)return t();r.current=!0},[...(e??[]).map(e=>"function"==typeof e?e():e)]),(0,xh.useEffect)(()=>(o.current=!0,()=>{o.current=!1}),[])};function Vf(e,t={}){const o=(0,xh.useMemo)(()=>{const{id:e,ids:o,getRootNode:r}=t;return function(e){const t=()=>e.getRootNode?.()??document,o=()=>mr(t());return{...e,getRootNode:t,getDoc:o,getWin:()=>o().defaultView??window,getActiveElement:()=>vr(t()),isActiveElement:gr,getById:e=>t().getElementById(e)}}({id:e,ids:o,getRootNode:r})},[t]),r=(...t)=>{e.debug&&console.log(...t)},i=function(e){const t=Nf(e);return function(e){return t.current[e]}}(e.props?.({props:Po(t),scope:o})??t),n=e.context?.({prop:i,bindable:Tf,scope:o,flush:jf,getContext:()=>s,getComputed:()=>y,getRefs:()=>g,getEvent:()=>p()}),a=Nf(n),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,xh.useRef)(new Map),c=(0,xh.useRef)(null),d=(0,xh.useRef)(null),u=(0,xh.useRef)({type:""}),p=()=>({...u.current,current:()=>u.current,previous:()=>d.current}),h=()=>({...w,matches:(...e)=>e.includes(w.ref.current),hasTag:t=>!!e.states[w.ref.current]?.tags?.includes(t)}),g=function(e){const t=(0,xh.useRef)(e);return{get:e=>t.current[e],set(e,o){t.current[e]=o}}}(e.refs?.({prop:i,context:s})??{}),f=()=>({state:h(),context:s,event:p(),prop:i,send:C,action:m,guard:b,track:Of,refs:g,computed:y,flush:jf,scope:o,choose:x}),m=t=>{const o=Kt(t)?t(f()):t;if(!o)return;const r=o.map(t=>{const o=e.implementations?.actions?.[t];return o||No(`[zag-js] No implementation found for action "${JSON.stringify(t)}"`),o});for(const e of r)e?.(f())},b=t=>Kt(t)?t(f()):e.implementations?.guards?.[t](f()),v=t=>{const o=Kt(t)?t(f()):t;if(!o)return;const r=o.map(t=>{const o=e.implementations?.effects?.[t];return o||No(`[zag-js] No implementation found for effect "${JSON.stringify(t)}"`),o}),i=[];for(const e of r){const t=e?.(f());t&&i.push(t)}return()=>i.forEach(e=>e?.())},x=e=>{return(t=e,null==t?[]:Array.isArray(t)?t:[t]).find(e=>{let t=!e.guard;return qt(e.guard)?t=!!b(e.guard):Kt(e.guard)&&(t=e.guard(f())),t});var t},y=t=>(jo(e.computed,()=>"[zag-js] No computed object found on machine"),(0,e.computed[t])({context:s,event:p(),prop:i,refs:g,scope:o,computed:y})),w=Tf(()=>({defaultValue:e.initialState({prop:i}),onChange(t,o){if(o){const e=l.current.get(o);e?.(),l.current.delete(o)}o&&m(e.states[o]?.exit),m(c.current?.actions);const r=v(e.states[t]?.effects);if(r&&l.current.set(t,r),o===ea){m(e.entry);const t=v(e.effects);t&&l.current.set(ea,t)}m(e.states[t]?.entry)}})),k=(0,xh.useRef)(void 0),S=(0,xh.useRef)(Qn.NotStarted);Rf(()=>{queueMicrotask(()=>{const e=S.current===Qn.Started;S.current=Qn.Started,r(e?"rehydrating...":"initializing...");const t=k.current??w.initial;w.invoke(t,e?w.get():ea)});const t=l.current,o=w.ref.current;return()=>{r("unmounting..."),k.current=o,S.current=Qn.Stopped,t.forEach(e=>e?.()),l.current=new Map,c.current=null,queueMicrotask(()=>{m(e.exit)})}},[]);const C=t=>{queueMicrotask(()=>{if(S.current!==Qn.Started)return;d.current=u.current,u.current=t;let o="ref"in w?w.ref.current:w.get();const i=e.states[o].on?.[t.type]??e.on?.[t.type],n=x(i);if(!n)return;c.current=n;const a=n.target??o;r("transition",t.type,n.target||o,`(${n.actions})`);const s=a!==o;s?(0,Sf.flushSync)(()=>w.set(a)):n.reenter&&!s?w.invoke(o,o):m(n.actions??[])})};return e.watch?.(f()),{state:h(),send:C,context:s,prop:i,scope:o,refs:g,computed:y,event:p(),getStatus:()=>S.current}}function Nf(e){const t=(0,xh.useRef)(e);return t.current=e,t}function jf(e){queueMicrotask(()=>{(0,Sf.flushSync)(()=>e())})}var Ff,Af=(Ff=e=>e,new Proxy({},{get:(e,t)=>"style"===t?e=>({style:e}.style):Ff}));const[Df,Wf]=Cf({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function Lf(...e){return t=>{const o=[];for(const r of e)if("function"==typeof r){const e=r(t);"function"==typeof e&&o.push(e)}else r&&(r.current=t);if(o.length)return()=>{for(const e of o)e()}}}const Mf=e=>{const t=(0,xh.memo)((0,xh.forwardRef)((t,o)=>{const{asChild:r,children:i,...n}=t;if(!r)return(0,xh.createElement)(e,{...n,ref:o},i);if(!(0,xh.isValidElement)(i))return null;const a=xh.Children.only(i),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,xh.cloneElement)(a,{...Zn(n,a.props),ref:o?Lf(o,s):s})}));return t.displayName=e.displayName||e.name,t},Bf=(()=>{const e=new Map;return new Proxy(Mf,{apply:(e,t,o)=>Mf(o[0]),get(t,o){const r=o;return e.has(r)||e.set(r,Mf(r)),e.get(r)}})})(),[Hf,$f]=Cf({name:"ToastContext",hookName:"useToastContext",providerName:"<ToastProvider />"}),Uf=(0,xh.forwardRef)((e,t)=>{const{toaster:o,children:r,...i}=e,n=Wf(),a=Ef(),s=Vf(kf.machine,{store:o,id:(0,xh.useId)(),dir:n?.dir,getRootNode:a?.getRootNode}),l=kf.connect(s,Af),c=Zn(l.getGroupProps(),i);return(0,vh.jsx)(Bf.div,{...c,ref:t,children:l.getToasts().map((e,t)=>(0,vh.jsx)(Gf,{value:e,parent:s,index:t,children:e=>r(e)},e.id))})});Uf.displayName="Toaster";const Gf=e=>{const t=Ef(),o={...e.value,parent:e.parent,index:e.index,getRootNode:t.getRootNode},r=function(e,t){const{state:o,send:r,prop:i,scope:n,context:a,computed:s}=e,l=o.hasTag("visible"),c=o.hasTag("paused"),d=a.get("mounted"),u=s("frontmost"),p=i("parent").computed("placement"),h=i("type"),g=i("stacked"),f=i("title"),m=i("description"),b=i("action"),[v,x="center"]=p.split("-");return{type:h,title:f,description:m,placement:p,visible:l,paused:c,closable:!!i("closable"),pause(){r({type:"PAUSE"})},resume(){r({type:"RESUME"})},dismiss(){r({type:"DISMISS",src:"programmatic"})},getRootProps:()=>t.element({...tf.root.attrs,dir:i("dir"),id:nf(n),"data-state":l?"open":"closed","data-type":h,"data-placement":p,"data-align":x,"data-side":v,"data-mounted":cr(d),"data-paused":cr(c),"data-first":cr(u),"data-sibling":cr(!u),"data-stack":cr(g),"data-overlap":cr(!g),role:"status","aria-atomic":"true","aria-describedby":m?lf(n):void 0,"aria-labelledby":f?sf(n):void 0,tabIndex:0,style:pf(e,l),onKeyDown(e){e.defaultPrevented||"Escape"==e.key&&(r({type:"DISMISS",src:"keyboard"}),e.preventDefault())}}),getGhostBeforeProps:()=>t.element({"data-ghost":"before",style:hf(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({...tf.title.attrs,id:sf(n)}),getDescriptionProps:()=>t.element({...tf.description.attrs,id:lf(n)}),getActionTriggerProps:()=>t.button({...tf.actionTrigger.attrs,type:"button",onClick(e){e.defaultPrevented||(b?.onClick?.(),r({type:"DISMISS",src:"user"}))}}),getCloseTriggerProps(){return t.button({id:(e=n,`toast${e.id}:close`),...tf.closeTrigger.attrs,type:"button","aria-label":"Dismiss notification",onClick(e){e.defaultPrevented||r({type:"DISMISS",src:"user"})}});var e}}}(Vf(xf,{...o}),Af);return(0,vh.jsx)(Hf,{value:r,children:e.children(e.value)})};Gf.displayName="ToastActor";const qf=(0,xh.forwardRef)((e,t)=>{const o=$f(),r=Zn(o.getRootProps(),e);return(0,vh.jsxs)("div",{...r,ref:t,children:[(0,vh.jsx)("div",{...o.getGhostBeforeProps()}),e.children,(0,vh.jsx)("div",{...o.getGhostAfterProps()})]})});qf.displayName="ToastRoot";const Kf=(0,xh.forwardRef)((e,t)=>{const o=Zn($f().getCloseTriggerProps(),e);return(0,vh.jsx)(Bf.button,{...o,ref:t})});Kf.displayName="ToastCloseTrigger";const Yf=(0,xh.forwardRef)((e,t)=>{const o=Zn($f().getTitleProps(),e);return(0,vh.jsx)(Bf.div,{...o,ref:t})});Yf.displayName="ToastTitle";const Xf=(0,xh.forwardRef)((e,t)=>{const o=Zn($f().getDescriptionProps(),e);return(0,vh.jsx)(Bf.div,{...o,ref:t})});Xf.displayName="ToastDescription";const Zf=(0,xh.forwardRef)((e,t)=>{const o=Zn($f().getActionTriggerProps(),e);return(0,vh.jsx)(Bf.button,{...o,ref:t})});function Jf(...e){return function(...t){e.forEach(e=>e?.(...t))}}Zf.displayName="ToastActionTrigger";const Qf=(...e)=>e.map(e=>e?.trim?.()).filter(Boolean).join(" "),em=/^on[A-Z]/;function tm(...e){let t={};for(let o of e){for(let e in t)em.test(e)&&"function"==typeof t[e]&&"function"==typeof o[e]?t[e]=Jf(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]??{}):Qf(t[e],o[e]);for(let e in o)void 0===t[e]&&(t[e]=o[e])}return t}const om=Object.freeze({}),rm=Object.freeze({});var im=/^((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)-.*))$/,nm=Ig(function(e){return im.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});const am=parseInt(xh.version.split(".")[0],10)>=19;function sm(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}'`)}}}const lm=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function cm(e){return"string"==typeof e&&lm.has(e)}const dm=function(e){return e.default||e}(nm),um=dm,pm=e=>"theme"!==e;let hm="undefined"!=typeof document;const gm=({cache:e,serialized:t,isStringTag:o})=>{kg(e,t,o);const r=Wg(()=>Sg(e,t,o));if(!hm&&void 0!==r){let o=t.name,i=t.next;for(;void 0!==i;)o=fe(o,i.name),i=i.next;return(0,vh.jsx)("style",{"data-emotion":fe(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},fm={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"]},mm=((e,t={},o={})=>{if(r=fm,i=e,Object.prototype.hasOwnProperty.call(r,i)){o.forwardProps||(o.forwardProps=[]);const t=fm[e];o.forwardProps=R([...o.forwardProps,...t])}var r,i;const n=e.__emotion_real===e,a=n&&e.__emotion_base||e;let s,l;void 0!==o&&(s=o.label,l=o.target);let c=[];const d=Bg((r,i,s)=>{const{cva:d,isValidProperty:u}=Qg(),p=t.__cva__?t:d(t),g=xm(e.__emotion_cva,p);var f;!o.shouldForwardProp&&o.forwardProps&&(o.shouldForwardProp=(f=o.forwardProps,(e,t)=>!!f.includes(e)||!t?.includes(e)&&!u(e)));const b=((e,t,o)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?t=>e.__emotion_forwardProp(t)&&o(t):o}return"function"!=typeof r&&o&&(r=e.__emotion_forwardProp),r})(e,o,n)||((t,o)=>{const r="string"==typeof e&&e.charCodeAt(0)>96?um:pm,i=!o?.includes(t)&&!u(t);return r(t)&&i}),v=xh.useMemo(()=>Object.assign({},o.defaultProps,h(r)),[r]),{props:x,styles:y}=function(e,t,o){const{css:r,isValidProperty:i}=Qg(),{children:n,...a}=e,s=(0,xh.useMemo)(()=>{const[e,r]=z(a,e=>o(e,t.variantKeys)),[n,s]=z(r,t.variantKeys),[l,c]=z(s,i);return{forwardedProps:e,variantProps:n,styleProps:l,elementProps:c}},[t.variantKeys,o,a,i]),{css:l,...c}=s.styleProps,d=(0,xh.useMemo)(()=>{const e={...s.variantProps},o=t.variantKeys.includes("colorPalette"),r=t.variantKeys.includes("orientation");return o||(e.colorPalette=a.colorPalette),r||(e.orientation=a.orientation),t(e)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:(0,xh.useMemo)(()=>{return r(d,...(e=l,(Array.isArray(e)?e:[e]).filter(Boolean).flat()),c);var e},[r,d,l,c]),props:{...s.forwardedProps,...s.elementProps,children:n}}}(v,g,b);let w="",k=[y],S=x;if(null==x.theme){S={};for(let e in x)S[e]=x[e];S.theme=xh.useContext(Hg)}"string"==typeof x.className?w=wg(i.registered,k,x.className):null!=x.className&&(w=fe(w,x.className));const C=jg(c.concat(k),i.registered,S);C.styles&&(w=fe(w,`${i.key}-${C.name}`)),void 0!==l&&(w=fe(w,l));const I=!b("as");let E=I&&x.as||a,_={};for(let e in x)if(!I||"as"!==e){if(cm(e)){_[e.replace("html","").toLowerCase()]=x[e];continue}b(e)&&(_[e]=x[e])}let P=w.trim();P?_.className=P:Reflect.deleteProperty(_,"className"),_.ref=s;const R=o.forwardAsChild||o.forwardProps?.includes("asChild");if(x.asChild&&!R){const e=xh.isValidElement(x.children)?xh.Children.only(x.children):xh.Children.toArray(x.children).find(xh.isValidElement);if(!e)throw new Error("[chakra-ui > factory] No valid child found");E=e.type,_.children=null,Reflect.deleteProperty(_,"asChild"),_=tm(_,e.props),_.ref=function(...e){const t=e.filter(e=>null!=e);if(am){const e=new Map;return o=>(t.forEach(t=>{const r=sm(t,o);r&&e.set(t,r)}),()=>{t.forEach(t=>{const o=e.get(t);o&&"function"==typeof o?o():sm(t,null)}),e.clear()})}return e=>{t.forEach(t=>{sm(t,e)})}}(s,function(e){const t=xh.version;return m(t)?t.startsWith("18.")?e?.ref:e?.props?.ref:e?.ref}(e))}return _.as&&R?(_.as=void 0,(0,vh.jsxs)(xh.Fragment,{children:[(0,vh.jsx)(gm,{cache:i,serialized:C,isStringTag:"string"==typeof E}),(0,vh.jsx)(E,{asChild:!0,..._,children:(0,vh.jsx)(x.as,{children:_.children})})]})):(0,vh.jsxs)(xh.Fragment,{children:[(0,vh.jsx)(gm,{cache:i,serialized:C,isStringTag:"string"==typeof E}),(0,vh.jsx)(E,{..._})]})});return d.displayName=void 0!==s?s:`chakra(${"string"==typeof a?a:a.displayName||a.name||"Component"})`,d.__emotion_real=d,d.__emotion_base=a,d.__emotion_forwardProp=o.shouldForwardProp,d.__emotion_cva=t,Object.defineProperty(d,"toString",{value:()=>`.${l}`}),d}).bind(),bm=new Map,vm=new Proxy(mm,{apply:(e,__,t)=>mm(...t),get:(e,t)=>(bm.has(t)||bm.set(t,mm(t)),bm.get(t))}),xm=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),ym=e=>{const{key:t,recipe:o}=e,r=(i=t||o.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[n,a]=Zg({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,l]=Zg({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[c,d]=Zg({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(e){const{unstyled:r,...i}=e,n=function(e){const{key:t,recipe:o}=e,r=Qg();return(0,xh.useMemo)(()=>{const e=o||(null!=t?r.getSlotRecipe(t):{});return r.sva(structuredClone(e))},[t,o,r])}({key:t,recipe:i.recipe||o}),[a,s]=(0,xh.useMemo)(()=>n.splitVariantProps(i),[i,n]);return{styles:(0,xh.useMemo)(()=>r?rm:n(a),[r,a,n]),classNames:n.classNameMap,props:s}}return{StylesProvider:n,ClassNamesProvider:s,PropsProvider:c,usePropsContext:d,useRecipeResult:u,withProvider:(e,t,o)=>{const{defaultProps:r,...i}=o??{},a=vm(e,{},i),l=(0,xh.forwardRef)((e,i)=>{const l=d(),c=(0,xh.useMemo)(()=>tm(r??{},l,e),[l,e]),{styles:p,props:h,classNames:g}=u(c),f=g[t],m=(0,vh.jsx)(n,{value:p,children:(0,vh.jsx)(s,{value:g,children:(0,vh.jsx)(a,{ref:i,...h,css:[p[t],c.css],className:fe(c.className,f)})})});return o?.wrapElement?.(m,c)??m});return l.displayName=e.displayName||e.name,l},withContext:(e,t,o)=>{const r=vm(e,{},o),i=(0,xh.forwardRef)((e,o)=>{const{unstyled:i,...n}=e,s=a(),c=l(),d=c?.[t];return(0,vh.jsx)(r,{...n,css:[!i&&t?s[t]:void 0,e.css],ref:o,className:fe(e.className,d)})});return i.displayName=e.displayName||e.name,i},withRootProvider:function(e,t={}){const{defaultProps:o}=t,r=t=>{const r=d(),i=(0,xh.useMemo)(()=>tm(o,r,t),[r,t]),{styles:a,classNames:l,props:c}=u(i);return(0,vh.jsx)(n,{value:a,children:(0,vh.jsx)(s,{value:l,children:(0,vh.jsx)(e,{...c})})})};return r.displayName=e.displayName||e.name,r},useStyles:a,useClassNames:l}},wm=e=>(0,vh.jsx)(vm.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,vh.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"})}),km=e=>(0,vh.jsx)(vm.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,vh.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"})}),Sm=e=>(0,vh.jsxs)(vm.svg,{stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,vh.jsx)("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),(0,vh.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})]}),{withProvider:Cm,withContext:Im,useStyles:Em}=ym({key:"toast"}),_m=vm(Uf,{},{forwardAsChild:!0}),Pm=Cm(qf,"root",{forwardAsChild:!0}),zm=Im(Kf,"closeTrigger",{forwardAsChild:!0,defaultProps:{children:(0,vh.jsx)(km,{})}}),Rm=Im(Yf,"title",{forwardAsChild:!0}),Tm=Im(Xf,"description",{forwardAsChild:!0}),Om=(Im(Zf,"actionTrigger",{forwardAsChild:!0}),{warning:wm,success:e=>(0,vh.jsx)(vm.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:(0,vh.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:wm}),Vm=(0,xh.forwardRef)(function(e,t){const{unstyled:o,...r}=e,i=$f(),n=Em(),a=Om[i.type];return a?(0,vh.jsx)(a,{ref:t,...r,css:[o?void 0:n.indicator,e.css]}):null});function Nm(e){const{key:t,recipe:o}=e,r=Qg();return(0,xh.useMemo)(()=>{const e=o||(null!=t?r.getRecipe(t):{});return r.cva(structuredClone(e))},[t,o,r])}function jm(e){const{key:t,recipe:o}=e,r=(i=t||o.className||"Component").charAt(0).toUpperCase()+i.slice(1);var i;const[n,a]=Zg({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(e){const{unstyled:r,...i}=e,n=Nm({key:t,recipe:i.recipe||o}),[a,s]=(0,xh.useMemo)(()=>n.splitVariantProps(i),[n,i]);return{styles:r?om:n(a),className:n.className,props:s}}return{withContext:(e,t)=>{const o=vm(e,{},t),r=(0,xh.forwardRef)((e,t)=>{const r=a(),i=(0,xh.useMemo)(()=>tm(r,e),[e,r]),{styles:n,className:l,props:c}=s(i);return(0,vh.jsx)(o,{...c,ref:t,css:[n,i.css],className:fe(l,i.className)})});return r.displayName=e.displayName||e.name,r},PropsProvider:n,withPropsProvider:function(){return n},usePropsContext:a,useRecipeResult:s}}const{withContext:Fm,PropsProvider:Am}=jm({key:"spinner"}),Dm=Fm("span");Dm.displayName="Spinner";const Wm=(0,xh.forwardRef)(function(e,t){const{direction:o="column",align:r,justify:i,gap:n="0.5rem",wrap:a,children:s,separator:l,className:c,...d}=e,u=(0,xh.useMemo)(()=>function(e){const{gap:t,direction:o}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":y(o,e=>r[e])}}({gap:n,direction:o}),[n,o]),p=(0,xh.useMemo)(()=>(0,xh.isValidElement)(l)?function(e){return xh.Children.toArray(e).filter(e=>(0,xh.isValidElement)(e))}(s).map((e,t,o)=>{const r=void 0!==e.key?e.key:t,i=l,n=(0,xh.cloneElement)(i,{css:[u,i.props.css]});return(0,vh.jsxs)(xh.Fragment,{children:[e,t===o.length-1?null:n]},r)}):s,[s,l,u]);return(0,vh.jsx)(vm.div,{ref:t,display:"flex",alignItems:r,justifyContent:i,flexDirection:o,flexWrap:a,gap:l?void 0:n,className:fe("chakra-stack",c),...d,children:p})});Wm.displayName="Stack";const Lm=function(e={}){const t={placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0,...Po(e)};let o=[],r=[],i=new Set,n=[];const a=e=>(o.forEach(t=>t(e)),e),s=e=>{const o=e.id??`toast:${ro()}`,s=r.find(e=>e.id===o);return i.has(o)&&i.delete(o),s?r=r.map(t=>t.id===o?a({...t,...e,id:o}):t):(e=>{r.length>=t.max?n.push(e):(a(e),r.unshift(e))})({id:o,duration:t.duration,removeDelay:t.removeDelay,type:"info",...e,stacked:!t.overlap,gap:t.gap}),o},l=e=>(i.add(e),e?(o.forEach(t=>t({id:e,dismiss:!0})),r=r.filter(t=>t.id!==e),(()=>{for(;n.length>0&&r.length<t.max;){const e=n.shift();e&&(a(e),r.unshift(e))}})()):(r.forEach(e=>{o.forEach(t=>t({id:e.id,dismiss:!0}))}),r=[],n=[]),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=>{r=null!=e?r.map(t=>t.id===e?a({...t,message:"DISMISS"}):t):r.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:()=>r.filter(e=>!i.has(e.id)),getCount:()=>r.length,promise:(e,t,o={})=>{if(!t||!t.loading)return void No("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");const r=s({...o,...t.loading,promise:e,type:"loading"});let i,n=!0;const a=Qt(e).then(async e=>{if(i=["resolve",e],wf(e)&&!e.ok){n=!1;const i=Qt(t.error,`HTTP Error! status: ${e.status}`);s({...o,...i,id:r,type:"error"})}else if(void 0!==t.success){n=!1;const i=Qt(t.success,e);s({...o,...i,id:r,type:"success"})}}).catch(async e=>{if(i=["reject",e],void 0!==t.error){n=!1;const i=Qt(t.error,e);s({...o,...i,id:r,type:"error"})}}).finally(()=>{n&&l(r),t.finally?.()});return{id:r,unwrap:()=>new Promise((e,t)=>a.then(()=>"reject"===i[0]?t(i[1]):e(i[1])).catch(t))}},pause:e=>{r=null!=e?r.map(t=>t.id===e?a({...t,message:"PAUSE"}):t):r.map(e=>a({...e,message:"PAUSE"}))},resume:e=>{r=null!=e?r.map(t=>t.id===e?a({...t,message:"RESUME"}):t):r.map(e=>a({...e,message:"RESUME"}))},isVisible:e=>!i.has(e)&&!!r.find(t=>t.id===e),isDismissed:e=>i.has(e),expand:()=>{r=r.map(e=>a({...e,stacked:!0}))},collapse:()=>{r=r.map(e=>a({...e,stacked:!1}))}}}({placement:"bottom-end",pauseOnPageIdle:!0}),Mm=()=>(0,vh.jsx)(_f,{children:(0,vh.jsx)(_m,{toaster:Lm,insetInline:{mdDown:"4"},children:e=>(0,vh.jsxs)(Pm,{width:{md:"sm"},children:["loading"===e.type?(0,vh.jsx)(Dm,{size:"sm",color:"blue.solid"}):(0,vh.jsx)(Vm,{}),(0,vh.jsxs)(Wm,{gap:"1",flex:"1",maxWidth:"100%",children:[e.title&&(0,vh.jsx)(Rm,{children:e.title}),e.description&&(0,vh.jsx)(Tm,{children:e.description})]}),(0,vh.jsx)(zm,{})]})})}),Bm=(0,r.createContext)(),Hm="#6366f1",$m=it(bh,{theme:{tokens:{colors:{purple:{50:{value:"#eef2ff"},100:{value:"#e0e7ff"},200:{value:"#c7d2fe"},300:{value:"#a5b4fc"},400:{value:"#818cf8"},500:{value:"#6366f1"},600:{value:Hm},700:{value:"#4f46e5"},800:{value:"#4338ca"},900:{value:"#3730a3"},950:{value:"#1e1b4b"}},colorPalette:{solid:{value:Hm}}}}}}),Um=e=>{const{children:t,...o}=e,[i,n]=(0,r.useState)(window.winpObjects?.license||{}),a="valid"===i?.status,s=(window.winpObjects?.settings||[]).reduce((e,t)=>(t.name&&(e[t.name]=t.value),e),{}),[l,c]=(0,r.useState)(s);return(0,vh.jsx)(Bm.Provider,{value:{license:i,setLicense:n,isLicenseActive:a,settings:l,setSettings:c,updateSetting:(e,t)=>{c(o=>({...o,[e]:t}))}},children:(0,vh.jsxs)(ef,{value:$m,...o,children:[t,(0,vh.jsx)(Mm,{})]})})},Gm=window.wp.i18n,qm=vm("div");qm.displayName="Box";const Km=(0,xh.forwardRef)(function(e,t){const{direction:o,align:r,justify:i,wrap:n,basis:a,grow:s,shrink:l,inline:c,...d}=e;return(0,vh.jsx)(vm.div,{ref:t,...d,css:{display:c?"inline-flex":"flex",flexDirection:o,alignItems:r,justifyContent:i,flexWrap:n,flexBasis:a,flexGrow:s,flexShrink:l,...e.css}})});Km.displayName="Flex";const Ym=e=>e?"":void 0,Xm=vm("span");Xm.displayName="Span";const Zm=vm("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"}});Zm.displayName="AbsoluteCenter";const Jm=xh.forwardRef(function(e,t){const{spinner:o=(0,vh.jsx)(Dm,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:r="start",children:i,text:n,visible:a=!0,...s}=e;return a?n?(0,vh.jsxs)(Xm,{ref:t,display:"contents",...s,children:["start"===r&&o,n,"end"===r&&o]}):o?(0,vh.jsxs)(Xm,{ref:t,display:"contents",...s,children:[(0,vh.jsx)(Zm,{display:"inline-flex",children:o}),(0,vh.jsx)(Xm,{visibility:"hidden",display:"contents",children:i})]}):(0,vh.jsx)(Xm,{ref:t,display:"contents",...s,children:i}):i});Jm.displayName="Loader";const{useRecipeResult:Qm,PropsProvider:eb,usePropsContext:tb}=jm({key:"button"}),ob=(0,xh.forwardRef)(function(e,t){const o=tb(),r=(0,xh.useMemo)(()=>tm(o,e),[o,e]),i=Qm(r),{loading:n,loadingText:a,children:s,spinner:l,spinnerPlacement:c,...d}=i.props;return(0,vh.jsx)(vm.button,{type:"button",ref:t,...d,"data-loading":Ym(n),disabled:n||d.disabled,className:fe(i.className,r.className),css:[i.styles,r.css],children:!r.asChild&&n?(0,vh.jsx)(Jm,{spinner:l,text:a,spinnerPlacement:c,children:s}):s})});ob.displayName="Button";const rb=window.wp.apiFetch;var ib=o.n(rb);const nb=(0,xh.forwardRef)(function(e,t){const{align:o,fit:r="cover",...i}=e;return(0,vh.jsx)(vm.img,{ref:t,objectFit:r,objectPosition:o,className:fe("chakra-image",e.className),...i})});nb.displayName="Image";const ab=()=>{const e=window.winpObjects?.assetsUrl||"";return(0,vh.jsxs)(qm,{mb:6,children:[(0,vh.jsx)(Km,{align:"center",gap:3,children:(0,vh.jsx)(nb,{src:`${e}/img/logo.png`,alt:(0,Gm.__)("Woody","insert-php"),h:"96px"})}),(0,vh.jsx)("div",{id:"tsdk_banner"})]})},sb=({activeTab:e,setActiveTab:t,tabs:o})=>(0,vh.jsx)(qm,{borderBottom:"1px solid",borderColor:"gray.200",children:(0,vh.jsx)(Km,{children:o.map((o,r)=>(0,vh.jsx)(qm,{px:6,py:4,cursor:"pointer",fontSize:"sm",fontWeight:"semibold",color:e===r?"purple.600":"gray.600",borderBottom:"2px solid",borderColor:e===r?"purple.600":"transparent",marginBottom:"-1px",onClick:()=>t(r),_hover:{color:e===r?"gray.900":"purple.600",borderColor:e===r?"purple.600":"none"},children:o},o))})}),lb=(0,xh.forwardRef)(function(e,t){return(0,vh.jsx)(Wm,{align:"center",...e,direction:"column",ref:t})});lb.displayName="VStack";const{withContext:cb,PropsProvider:db}=jm({key:"heading"}),ub=cb("h2");ub.displayName="Heading";const{PropsProvider:pb,withContext:hb}=jm({key:"badge"}),gb=hb("span");gb.displayName="Badge";const[fb,mb]=Cf({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1}),bb=(0,xh.forwardRef)((e,t)=>{const o=mb(),r=Zn(o?.getInputProps(),e);return(0,vh.jsx)(Bf.input,{...r,ref:t})});bb.displayName="FieldInput";const{withContext:vb,PropsProvider:xb}=jm({key:"input"}),yb=vb(bb),{withContext:wb,PropsProvider:kb}=jm({key:"text"}),Sb=wb("p");Sb.displayName="Text";const Cb=()=>{const[e,t]=(0,r.useState)(!1),{license:o,setLicense:i,isLicenseActive:n}=(0,r.useContext)(Bm),a=n,[s,l]=(0,r.useState)(("free"!==o.key?o.key:"")||"");return(0,r.useEffect)(()=>{l(("free"!==o.key?o.key:"")||"")},[o.key]),(0,vh.jsxs)(qm,{bg:"white",borderRadius:"xl",boxShadow:"sm",p:6,children:[(0,vh.jsxs)(Km,{align:"center",justify:"space-between",mb:4,children:[(0,vh.jsx)(ub,{fontSize:"sm",children:(0,Gm.__)("License","insert-php")}),(0,vh.jsx)(gb,{bg:a?"green.50":"yellow.50",color:a?"green.800":"yellow.800",fontSize:"xs",fontWeight:"semibold",px:3,py:1,borderRadius:"full",children:a?(0,Gm.__)("Active","insert-php"):(0,Gm.__)("Inactive","insert-php")})]}),(0,vh.jsxs)(lb,{gap:3,children:[(0,vh.jsx)(yb,{placeholder:(0,Gm.__)("Enter license key","insert-php"),size:"md",value:a?"******************************"+(o.key?o.key.slice(-5):""):s,onChange:e=>{a||l(e.target.value)},disabled:a||e,readOnly:a}),(0,vh.jsx)(ob,{colorScheme:a?"red":"blue",w:"full",size:"md",fontWeight:"semibold",loading:e,onClick:async()=>{t(!0);try{const e=await ib()({path:`${window.winpObjects?.api}/license`,method:"POST",data:{data:{key:s,action:a?"deactivate":"activate"}}});if(e.error)throw new Error(e.error);if(e?.success&&e.license&&"free"!==e.license.key){i(e.license);const t=document.querySelector('a[href*="/wp-admin/admin.php?page=winp-settings"]');if(t){const e=t.closest("div.error");e&&e.remove()}}else i({}),Lm.create({description:e.message,type:"error"})}catch(e){Lm.create({description:e.message||(0,Gm.__)("An error occurred while processing your license.","insert-php"),type:"error"})}t(!1)},disabled:!a&&!s.trim()||e,children:a?(0,Gm.__)("Deactivate License","insert-php"):(0,Gm.__)("Activate License","insert-php")})]}),(0,vh.jsx)(Sb,{mt:4,fontSize:"xs",color:"gray.600",lineHeight:"tall",children:!a&&(0,Gm.__)("Enter your license key to activate premium features and support.","insert-php")})]})},Ib=(0,xh.forwardRef)(function(e,t){return(0,vh.jsx)(Wm,{align:"center",...e,direction:"row",ref:t})});Ib.displayName="HStack";const Eb="winp_upgrade_card_dismissed",_b=()=>{const[e,t]=(0,r.useState)(!0),o=window.winpObjects?.links?.upgrade||"#";return(0,r.useEffect)(()=>{"true"===localStorage.getItem(Eb)&&t(!1)},[]),e?(0,vh.jsxs)(qm,{bg:"purple.50",borderWidth:"2px",borderColor:"purple.200",borderRadius:"xl",p:6,position:"relative",children:[(0,vh.jsx)(qm,{as:"button",position:"absolute",top:4,insetEnd:4,onClick:()=>{localStorage.setItem(Eb,"true"),t(!1)},cursor:"pointer",color:"gray.500",_hover:{color:"gray.700",bg:"purple.100"},borderRadius:"md",p:2,"aria-label":(0,Gm.__)("Close","insert-php"),children:(0,vh.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:(0,vh.jsx)("path",{d:"M7.41 6l4.29-4.29a1 1 0 1 0-1.41-1.41L6 4.59 1.71.3A1 1 0 0 0 .3 1.71L4.59 6 .3 10.29a1 1 0 1 0 1.41 1.41L6 7.41l4.29 4.29a1 1 0 0 0 1.41-1.41L7.41 6z"})})}),(0,vh.jsx)(Sb,{fontSize:"2xl",mt:0,mb:3,children:"🚀"}),(0,vh.jsx)(ub,{fontSize:"lg",mt:0,mb:3,fontWeight:"bold",children:(0,Gm.__)("Upgrade to Pro","insert-php")}),(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.600",mb:5,lineHeight:"tall",children:(0,Gm.__)("Unlock advanced features, priority support, and exclusive updates","insert-php")}),(0,vh.jsxs)(lb,{align:"start",spacing:2,mb:5,children:[(0,vh.jsxs)(Ib,{spacing:3,children:[(0,vh.jsx)(qm,{color:"purple.500",flexShrink:0,children:(0,vh.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,vh.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.700",fontWeight:"medium",m:0,children:(0,Gm.__)("Code Revision","insert-php")})]}),(0,vh.jsxs)(Ib,{spacing:3,children:[(0,vh.jsx)(qm,{color:"purple.500",flexShrink:0,children:(0,vh.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,vh.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.700",fontWeight:"medium",m:0,children:(0,Gm.__)("Cloud Snippets Library","insert-php")})]}),(0,vh.jsxs)(Ib,{spacing:3,children:[(0,vh.jsx)(qm,{color:"purple.500",flexShrink:0,children:(0,vh.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,vh.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}),(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.700",fontWeight:"medium",m:0,children:(0,Gm.__)("Pro Conditional Fields","insert-php")})]})]}),(0,vh.jsx)(ob,{as:"a",href:o,w:"full",size:"md",fontWeight:"semibold",colorScheme:"purple",color:"white",_hover:{color:"white"},target:"_blank",rel:"noopener noreferrer",children:(0,Gm.__)("Upgrade Now","insert-php")})]}):null},Pb=window.winpObjects?.links||{},zb=()=>(0,vh.jsxs)(qm,{bg:"white",borderRadius:"xl",boxShadow:"sm",p:6,children:[(0,vh.jsx)(ub,{fontSize:"sm",mb:3,mt:0,children:(0,Gm.__)("Need Help?","insert-php")}),(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.600",mb:4,mt:0,lineHeight:"tall",children:(0,Gm.__)("Check out our documentation or contact our support team.","insert-php")}),(0,vh.jsxs)(lb,{gap:1,align:"stretch",children:[(0,vh.jsxs)(Sb,{as:"a",href:Pb.docs,fontSize:"sm",m:1,fontWeight:"medium",color:"purple.600",target:"_blank",rel:"noopener noreferrer",_focus:{boxShadow:"none",outline:"none"},_active:{boxShadow:"none",outline:"none"},children:["📚 ",(0,Gm.__)("Documentation","insert-php")]}),(0,vh.jsxs)(Sb,{as:"a",href:Pb.orgSupport,fontSize:"sm",m:1,fontWeight:"medium",color:"purple.600",target:"_blank",rel:"noopener noreferrer",_focus:{boxShadow:"none",outline:"none"},_active:{boxShadow:"none",outline:"none"},children:["💬 ",(0,Gm.__)("Support Forum","insert-php")]}),(0,vh.jsxs)(Sb,{as:"a",href:Pb.support,fontSize:"sm",m:1,fontWeight:"medium",color:"purple.600",target:"_blank",rel:"noopener noreferrer",_focus:{boxShadow:"none",outline:"none"},_active:{boxShadow:"none",outline:"none"},children:["✉️ ",(0,Gm.__)("Contact Support","insert-php")]})]})]}),Rb=window.winpObjects?.links||{},Tb=()=>(0,vh.jsxs)(qm,{bg:"white",borderRadius:"xl",boxShadow:"sm",p:6,children:[(0,vh.jsx)(ub,{fontSize:"sm",mb:3,mt:0,children:(0,Gm.__)("Need help beyond snippets?","insert-php")}),(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.600",mb:4,mt:0,lineHeight:"tall",children:(0,Gm.__)("Get hands-on help from experts for performance, stability, and site growth.","insert-php")}),(0,vh.jsxs)(lb,{gap:1,align:"stretch",children:[(0,vh.jsxs)(Sb,{as:"a",href:Rb.websiteDesign,fontSize:"sm",m:1,fontWeight:"medium",color:"purple.600",target:"_blank",rel:"noopener noreferrer",_focus:{boxShadow:"none",outline:"none"},_active:{boxShadow:"none",outline:"none"},children:["🎨 ",(0,Gm.__)("Website Design","insert-php")]}),(0,vh.jsxs)(Sb,{as:"a",href:Rb.speedOptimization,fontSize:"sm",m:1,fontWeight:"medium",color:"purple.600",target:"_blank",rel:"noopener noreferrer",_focus:{boxShadow:"none",outline:"none"},_active:{boxShadow:"none",outline:"none"},children:["⚡ ",(0,Gm.__)("Speed Optimization","insert-php")]}),(0,vh.jsxs)(Sb,{as:"a",href:Rb.seoFoundation,fontSize:"sm",m:1,fontWeight:"medium",color:"purple.600",target:"_blank",rel:"noopener noreferrer",_focus:{boxShadow:"none",outline:"none"},_active:{boxShadow:"none",outline:"none"},children:["🔍 ",(0,Gm.__)("SEO Foundation","insert-php")]}),(0,vh.jsxs)(Sb,{as:"a",href:Rb.siteMaintenance,fontSize:"sm",m:1,fontWeight:"medium",color:"purple.600",target:"_blank",rel:"noopener noreferrer",_focus:{boxShadow:"none",outline:"none"},_active:{boxShadow:"none",outline:"none"},children:["🔧 ",(0,Gm.__)("Site Maintenance","insert-php")]}),(0,vh.jsxs)(Sb,{as:"a",href:Rb.hackedSiteRepair,fontSize:"sm",m:1,fontWeight:"medium",color:"purple.600",target:"_blank",rel:"noopener noreferrer",_focus:{boxShadow:"none",outline:"none"},_active:{boxShadow:"none",outline:"none"},children:["🛡️ ",(0,Gm.__)("Hacked Site Repair","insert-php")]})]})]}),Ob=()=>{const{isLicenseActive:e}=(0,r.useContext)(Bm),t=window.winpObjects?.isProActive||!1;return(0,vh.jsxs)(lb,{w:{base:"full",lg:"320px"},gap:6,align:"stretch",children:[t&&(0,vh.jsx)(Cb,{}),(!t||!e)&&(0,vh.jsx)(_b,{}),(0,vh.jsx)(zb,{}),(0,vh.jsx)(Tb,{})]})},[Vb,Nb]=Cf({name:"SwitchContext",hookName:"useSwitchContext",providerName:"<SwitchProvider />"}),jb=(0,xh.forwardRef)((e,t)=>{const[{value:o},r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["value"]),i=Zn(o.getRootProps(),r);return(0,vh.jsx)(Vb,{value:o,children:(0,vh.jsx)(Bf.label,{...i,ref:t})})});jb.displayName="SwitchRootProvider";const Fb=(0,xh.forwardRef)((e,t)=>{const[o,r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["checked","defaultChecked","disabled","form","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]),i=(e=>{const t=(0,xh.useId)(),{getRootNode:o}=Ef(),{dir:r}=Wf(),i=mb(),n={id:t,ids:{label:i?.ids.label,hiddenInput:i?.ids.control},dir:r,disabled:i?.disabled,readOnly:i?.readOnly,invalid:i?.invalid,required:i?.required,getRootNode:o,...e};return function(e,t){const{context:o,send:r,prop:i,scope:n}=e,a=!!i("disabled"),s=!!i("readOnly"),l=!!i("required"),c=!!o.get("checked"),d=!a&&o.get("focused"),u=!a&&o.get("focusVisible"),p=!a&&o.get("active"),h={"data-active":cr(p),"data-focus":cr(d),"data-focus-visible":cr(u),"data-readonly":cr(s),"data-hover":cr(o.get("hovered")),"data-disabled":cr(a),"data-state":c?"checked":"unchecked","data-invalid":cr(i("invalid")),"data-required":cr(l)};return{checked:c,disabled:a,focused:d,setChecked(e){r({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){r({type:"CHECKED.TOGGLE",checked:c,isTrusted:!1})},getRootProps:()=>t.label({...tc.root.attrs,...h,dir:i("dir"),id:oc(n),htmlFor:ic(n),onPointerMove(){a||r({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){a||r({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){a||(Or(e)===nc(n)&&e.stopPropagation(),Tr()&&nc(n)?.focus())}}),getLabelProps:()=>t.element({...tc.label.attrs,...h,dir:i("dir"),id:rc(n)}),getThumbProps(){return t.element({...tc.thumb.attrs,...h,dir:i("dir"),id:(e=n,e.ids?.thumb??`switch:${e.id}:thumb`),"aria-hidden":!0});var e},getControlProps(){return t.element({...tc.control.attrs,...h,dir:i("dir"),id:(e=n,e.ids?.control??`switch:${e.id}:control`),"aria-hidden":!0});var e},getHiddenInputProps:()=>t.input({id:ic(n),type:"checkbox",required:i("required"),defaultChecked:c,disabled:a,"aria-labelledby":rc(n),"aria-invalid":i("invalid"),name:i("name"),form:i("form"),value:i("value"),style:si,onFocus(){const e=Js();r({type:"CONTEXT.SET",context:{focused:!0,focusVisible:e}})},onBlur(){r({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(s)return void e.preventDefault();const t=e.currentTarget.checked;r({type:"CHECKED.SET",checked:t,isTrusted:!0})}})}}(Vf(sc,n),Af)})(o),n=Zn(i.getRootProps(),r);return(0,vh.jsx)(Vb,{value:i,children:(0,vh.jsx)(Bf.label,{...n,ref:t})})});Fb.displayName="SwitchRoot";const Ab=(0,xh.forwardRef)((e,t)=>{const o=Zn(Nb().getLabelProps(),e);return(0,vh.jsx)(Bf.span,{...o,ref:t})});Ab.displayName="SwitchLabel";const Db=(0,xh.forwardRef)((e,t)=>{const o=Zn(Nb().getThumbProps(),e);return(0,vh.jsx)(Bf.span,{...o,ref:t})});Db.displayName="SwitchThumb";const Wb=(0,xh.forwardRef)((e,t)=>{const o=Zn(Nb().getControlProps(),e);return(0,vh.jsx)(Bf.span,{...o,ref:t})});Wb.displayName="SwitchControl";const Lb=(0,xh.forwardRef)((e,t)=>{const o=Zn(Nb().getHiddenInputProps(),e),r=mb();return(0,vh.jsx)(Bf.input,{"aria-describedby":r?.ariaDescribedby,...o,ref:t})});Lb.displayName="SwitchHiddenInput";const{withProvider:Mb,withContext:Bb,useStyles:Hb,PropsProvider:$b}=ym({key:"switch"}),Ub=(Mb(jb,"root",{forwardAsChild:!0}),Mb(Fb,"root",{forwardAsChild:!0})),Gb=(Bb(Ab,"label",{forwardAsChild:!0}),Bb(Db,"thumb",{forwardAsChild:!0})),qb=Bb(Wb,"control",{forwardAsChild:!0,defaultProps:{children:(0,vh.jsx)(Gb,{})}}),Kb=((0,xh.forwardRef)(function(e,t){const o=Nb(),r=Hb(),{fallback:i,children:n,unstyled:a,...s}=e;return(0,vh.jsx)(vm.span,{ref:t,"data-checked":Ym(o.checked),...s,css:[a?void 0:r.indicator,e.css],children:o.checked?n:i})}),(0,xh.forwardRef)(function(e,t){const o=Nb(),{fallback:r,children:i,...n}=e;return(0,vh.jsx)(vm.span,{ref:t,"data-checked":Ym(o.checked),...n,children:o.checked?i:r})}),Lb),Yb=({label:e,description:t,children:o,showBorder:r})=>(0,vh.jsxs)(Km,{align:"flex-start",py:5,borderBottom:r?"1px solid":"none",borderColor:"gray.100",children:[(0,vh.jsxs)(qm,{flex:"1",pr:6,children:[(0,vh.jsx)(Sb,{fontSize:"sm",fontWeight:"semibold",color:"gray.900",mb:1.5,children:e}),(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.600",mt:0,dangerouslySetInnerHTML:{__html:t}})]}),o]}),Xb=({label:e,description:t,checked:o,showBorder:r,onChange:i})=>(0,vh.jsx)(Yb,{label:e,description:t,showBorder:r,children:(0,vh.jsxs)(Ub,{size:"lg",checked:o,onCheckedChange:e=>{i&&i(e.checked)},children:[(0,vh.jsx)(Kb,{}),(0,vh.jsx)(qb,{dir:window.winpObjects?.isRTL?"rtl":"ltr"})]})}),Zb=(0,xh.forwardRef)((e,t)=>{const o=mb(),r=Zn(o?.getSelectProps(),e);return(0,vh.jsx)(Bf.select,{...r,ref:t})});Zb.displayName="FieldSelect";const[Jb,Qb]=Zg({name:"NativeSelectBasePropsContext",hookName:"useNativeSelectBaseProps",providerName:"<NativeSelectRoot />",strict:!1}),{withProvider:ev,useClassNames:tv,useStyles:ov,PropsProvider:rv}=ym({key:"nativeSelect"}),iv=ev("div","root",{wrapElement(e,t){const o=mb(),r=Boolean(o?.disabled??t.disabled),i=Boolean(o?.invalid??t.invalid);return(0,vh.jsx)(Jb,{value:{disabled:r,invalid:i},children:e})}}),nv=vm(Zb,{},{forwardAsChild:!0}),av=(0,xh.forwardRef)(function(e,t){const{children:o,placeholder:r,unstyled:i,...n}=e,{disabled:a,invalid:s}=Qb(),l=ov(),c=tv();return(0,vh.jsxs)(nv,{disabled:a,"data-invalid":Ym(s),...n,ref:t,className:fe(c.field,e.className),css:[i?void 0:l.field,e.css],children:[r&&(0,vh.jsx)("option",{value:"",children:r}),o]})}),sv=({label:e,description:t,options:o,value:r,showBorder:i,onChange:n})=>(0,vh.jsx)(Yb,{label:e,description:t,showBorder:i,children:(0,vh.jsx)(iv,{size:"md",width:"180px",children:(0,vh.jsx)(av,{value:r,onChange:e=>{n&&n(e.target.value)},children:o.map(e=>(0,vh.jsx)("option",{value:e.value,children:e.label},e.value))})})}),lv=({label:e,description:t,type:o="text",placeholder:i,value:n,width:a="112px",min:s,max:l,showBorder:c,onChange:d})=>{const[u,p]=(0,r.useState)(!1);return(0,vh.jsx)(Yb,{label:e,description:t,showBorder:c,children:(0,vh.jsx)(yb,{type:o,w:a,placeholder:i,value:n||"",min:s,max:l,isInvalid:u,onChange:e=>{const t=e.target.value;if("email"===o&&t){const t=e.target.validity.valid;p(!t)}else p(!1);d&&d(t)},onBlur:e=>{"email"===o&&e.target.value&&p(!e.target.validity.valid)}})})},cv=({sectionId:e})=>{const{settings:t,updateSetting:o}=(0,r.useContext)(Bm),i=(window.winpObjects?.settings||[]).filter(t=>t.section===e),n=e=>{if(!e.visibility)return!0;const{field:o,value:r,type:i}=e.visibility,n=t[o];switch(i){case"equals":return"boolean"==typeof r?!!n===r:n===r;case"not_equals":return"boolean"==typeof r?!!n!==r:n!==r;default:return!0}};return(0,vh.jsx)(qm,{p:7,children:(0,vh.jsx)(lb,{align:"stretch",children:i.map((e,r)=>(e=>{if(!n(e))return null;const r=i.filter(n),a=r.indexOf(e)<r.length-1,s={key:e.name,label:e.title,description:e.hint,showBorder:a,onChange:t=>((e,t)=>{o(e,t)})(e.name,t)};switch(e.type){case"checkbox":return(0,vh.jsx)(Xb,{...s,checked:t[e.name]});case"dropdown":return(0,vh.jsx)(sv,{...s,options:e.data||[],value:t[e.name]});case"integer":return(0,vh.jsx)(lv,{...s,type:"number",value:t[e.name],min:1,max:12});case"textbox":return(0,vh.jsx)(lv,{...s,type:"text",placeholder:e.placeholder,value:t[e.name],width:"md"});case"email":return(0,vh.jsx)(lv,{...s,type:"email",placeholder:e.placeholder,value:t[e.name],width:"md"});case"password":return(0,vh.jsx)(lv,{...s,type:"password",placeholder:e.placeholder,value:t[e.name],width:"md"});default:return null}})(e))})})},[dv,uv]=Cf({name:"RadioGroupContext",hookName:"useRadioGroupContext",providerName:"<RadioGroupProvider />"}),pv=(0,xh.forwardRef)((e,t)=>{const[{value:o},r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["value"]),i=Zn(o.getRootProps(),r);return(0,vh.jsx)(dv,{value:o,children:(0,vh.jsx)(Bf.div,{...i,ref:t})})});pv.displayName="RadioGroupRootProvider";const[hv,gv]=Cf({name:"FieldsetContext",hookName:"useFieldsetContext",providerName:"<FieldsetProvider />",strict:!1}),fv=(0,xh.forwardRef)((e,t)=>{const[o,r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["defaultValue","disabled","form","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value"]),i=(e=>{const t=gv(),o=(0,xh.useId)(),{getRootNode:r}=Ef(),{dir:i}=Wf(),n={id:o,ids:{label:t?.ids?.legend},dir:i,disabled:t?.disabled,invalid:t?.invalid,getRootNode:r,...e};return function(e,t){const{context:o,send:r,computed:i,prop:n,scope:a}=e,s=i("isDisabled"),l=n("invalid"),c=n("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":cr(t.focused),"data-focus-visible":cr(t.focusVisible),"data-disabled":cr(t.disabled),"data-readonly":cr(c),"data-state":t.checked?"checked":"unchecked","data-hover":cr(t.hovered),"data-invalid":cr(t.invalid),"data-orientation":n("orientation"),"data-ssr":cr(o.get("ssr"))}}const p=()=>{const e=(t=a,Nl(t)?.querySelector("input:not(:disabled):checked")??(e=>Nl(e)?.querySelector("input:not(:disabled)"))(a));var t;e?.focus()};return{focus:p,value:o.get("value"),setValue(e){r({type:"SET_VALUE",value:e,isTrusted:!1})},clearValue(){r({type:"SET_VALUE",value:null,isTrusted:!1})},getRootProps:()=>t.element({...Pl.root.attrs,role:"radiogroup",id:zl(a),"aria-labelledby":Rl(a),"aria-required":n("required")||void 0,"aria-disabled":s||void 0,"aria-readonly":c||void 0,"data-orientation":n("orientation"),"data-disabled":cr(s),"data-invalid":cr(l),"data-required":cr(n("required")),"aria-orientation":n("orientation"),dir:n("dir"),style:{position:"relative"}}),getLabelProps:()=>t.element({...Pl.label.attrs,dir:n("dir"),"data-orientation":n("orientation"),"data-disabled":cr(s),"data-invalid":cr(l),"data-required":cr(n("required")),id:Rl(a),onClick:p}),getItemState:d,getItemProps(e){const o=d(e);return t.label({...Pl.item.attrs,dir:n("dir"),id:Tl(a,e.value),htmlFor:Ol(a,e.value),...u(e),onPointerMove(){o.disabled||o.hovered||r({type:"SET_HOVERED",value:e.value,hovered:!0})},onPointerLeave(){o.disabled||r({type:"SET_HOVERED",value:null})},onPointerDown(t){o.disabled||0===t.button&&(o.focused&&"mouse"===t.pointerType&&t.preventDefault(),r({type:"SET_ACTIVE",value:e.value,active:!0}))},onPointerUp(){o.disabled||r({type:"SET_ACTIVE",value:null})},onClick(){var t,r;!o.disabled&&Tr()&&(t=a,r=e.value,t.getById(Ol(t,r)))?.focus()}})},getItemTextProps(e){return t.element({...Pl.itemText.attrs,dir:n("dir"),id:(o=a,r=e.value,o.ids?.itemLabel?.(r)??`radio-group:${o.id}:radio:label:${r}`),...u(e)});var o,r},getItemControlProps(e){const o=d(e);return t.element({...Pl.itemControl.attrs,dir:n("dir"),id:(r=a,i=e.value,r.ids?.itemControl?.(i)??`radio-group:${r.id}:radio:control:${i}`),"data-active":cr(o.active),"aria-hidden":!0,...u(e)});var r,i},getItemHiddenInputProps(e){const o=d(e);return t.input({"data-ownedby":zl(a),id:Ol(a,e.value),type:"radio",name:n("name")||n("id"),form:n("form"),value:e.value,required:n("required"),"aria-invalid":o.invalid||void 0,onClick(t){c?t.preventDefault():t.currentTarget.checked&&r({type:"SET_VALUE",value:e.value,isTrusted:!0})},onBlur(){r({type:"SET_FOCUSED",value:null,focused:!1,focusVisible:!1})},onFocus(){const t=Js();r({type:"SET_FOCUSED",value:e.value,focused:!0,focusVisible:t})},onKeyDown(t){t.defaultPrevented||" "===t.key&&r({type:"SET_ACTIVE",value:e.value,active:!0})},onKeyUp(e){e.defaultPrevented||" "===e.key&&r({type:"SET_ACTIVE",value:null})},disabled:o.disabled||c,defaultChecked:o.checked,style:si})},getIndicatorProps(){const e=o.get("indicatorRect"),r=null==e||0===e.width&&0===e.height&&0===e.x&&0===e.y;return t.element({id:Vl(a),...Pl.indicator.attrs,dir:n("dir"),hidden:null==o.get("value")||r,"data-disabled":cr(s),"data-orientation":n("orientation"),style:{"--transition-property":"left, top, width, height","--left":_o(e?.x),"--top":_o(e?.y),"--width":_o(e?.width),"--height":_o(e?.height),position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:"var(--transition-duration, 150ms)",transitionTimingFunction:"var(--transition-timing-function)",["horizontal"===n("orientation")?"left":"top"]:"horizontal"===n("orientation")?"var(--left)":"var(--top)"}})}}}(Vf(Al,n),Af)})(o),n=Zn(i.getRootProps(),r);return(0,vh.jsx)(dv,{value:i,children:(0,vh.jsx)(Bf.div,{...n,ref:t})})});fv.displayName="RadioGroupRoot";const mv=(0,xh.forwardRef)((e,t)=>{const o=Zn(uv().getLabelProps(),e);return(0,vh.jsx)(Bf.label,{...o,ref:t})});mv.displayName="RadioGroupLabel";const[bv,vv]=Cf({name:"RadioGroupItemContext",hookName:"useRadioGroupItemContext",providerName:"<RadioGroupItemProvider />"}),[xv,yv]=Cf({name:"RadioGroupItemPropsContext",hookName:"useRadioGroupItemPropsContext",providerName:"<RadioGroupItemPropsProvider />"}),wv=(0,xh.forwardRef)((e,t)=>{const[o,r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["value","disabled","invalid"]),i=uv(),n=Zn(i.getItemProps(o),r),a=i.getItemState(o);return(0,vh.jsx)(bv,{value:a,children:(0,vh.jsx)(xv,{value:o,children:(0,vh.jsx)(Bf.label,{...n,ref:t})})})});wv.displayName="RadioGroupItem";const kv=(0,xh.forwardRef)((e,t)=>{const o=uv(),r=yv(),i=Zn(o.getItemTextProps(r),e);return(0,vh.jsx)(Bf.span,{...i,ref:t})});kv.displayName="RadioGroupItemText";const Sv=(0,xh.forwardRef)((e,t)=>{const o=uv(),r=yv(),i=Zn(o.getItemControlProps(r),e);return(0,vh.jsx)(Bf.div,{...i,ref:t})});Sv.displayName="RadioGroupItemControl";const Cv=e=>e.children(vv()),Iv=(0,xh.forwardRef)((e,t)=>{const o=uv(),r=yv(),i=Zn(o.getItemHiddenInputProps(r),e);return(0,vh.jsx)(Bf.input,{...i,ref:t})});Iv.displayName="RadioGroupItemHiddenInput";const Ev=(0,xh.forwardRef)(function(e,t){const o=Nm({key:"radiomark",recipe:e.recipe}),[r,i]=o.splitVariantProps(e),{checked:n,disabled:a,unstyled:s,children:l,...c}=i,d=s?om:o(r),u={ref:t,"data-checked":Ym(n),"data-disabled":Ym(a),...c,css:[d,e.css]};return(0,vh.jsx)(vm.span,{...u,children:n&&(0,vh.jsx)("span",{className:"dot"})})});Ev.displayName="Radiomark";const{withProvider:_v,withContext:Pv,useStyles:zv,PropsProvider:Rv}=ym({key:"radioGroup"}),Tv=(_v(pv,"root",{forwardAsChild:!0}),_v(fv,"root",{forwardAsChild:!0})),Ov=(Pv(mv,"label",{forwardAsChild:!0}),Pv(wv,"item",{forwardAsChild:!0})),Vv=Pv(kv,"itemText",{forwardAsChild:!0}),Nv=(Pv(Sv,"itemControl",{forwardAsChild:!0}),(0,xh.forwardRef)(function(e,t){const o=zv();return(0,vh.jsx)(Cv,{children:r=>(0,vh.jsx)(Sv,{asChild:!0,children:(0,vh.jsx)(Ev,{ref:t,unstyled:!0,...e,checked:r.checked,disabled:r.disabled,css:[o.itemControl,e.css]})})})})),jv=Iv,[Fv,Av]=Cf({name:"FileUploadContext",hookName:"useFileUploadContext",providerName:"<FileUploadProvider />"}),Dv=(0,xh.forwardRef)((e,t)=>{const[{value:o},r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["value"]),i=Zn(o.getRootProps(),r);return(0,vh.jsx)(Fv,{value:o,children:(0,vh.jsx)(Bf.div,{...i,ref:t})})});Dv.displayName="FileUploadRootProvider";const Wv=(0,xh.forwardRef)((e,t)=>{const[o,r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","directory","disabled","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","translations","transformFiles","validate"]),i=(e=>{const t=(0,xh.useId)(),{getRootNode:o}=Ef(),{dir:r,locale:i}=Wf(),n=mb(),a={id:t,ids:{label:n?.ids.label,hiddenInput:n?.ids.control},dir:r,disabled:n?.disabled,locale:i,required:n?.required,invalid:n?.invalid,getRootNode:o,...e};return js(Vf(Fs,a),Af)})(o),n=Zn(i.getRootProps(),r);return(0,vh.jsx)(Fv,{value:i,children:(0,vh.jsx)(Bf.div,{...n,ref:t})})});Wv.displayName="FileUploadRoot";const Lv=(0,xh.forwardRef)((e,t)=>{const o=Zn(Av().getClearTriggerProps(),e);return(0,vh.jsx)(Bf.button,{...o,ref:t})});Lv.displayName="FileUploadClearTrigger";const Mv=(0,xh.forwardRef)((e,t)=>{const[o,r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["disableClick"]),i=Zn(Av().getDropzoneProps(o),r);return(0,vh.jsx)(Bf.div,{...i,ref:t})});Mv.displayName="FileUploadDropzone";const[Bv,Hv]=Cf({name:"FileUploadItemGroupPropsContext",hookName:"useFileUploadItemGroupPropsContext",providerName:"<FileUploadItemGroupPropsProvider />"}),[$v,Uv]=Cf({name:"FileUploadItemPropsContext",hookName:"useFileUploadItemPropsContext",providerName:"<FileUploadItemPropsProvider />"}),Gv=(0,xh.forwardRef)((e,t)=>{const[o,r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["file"]),i=Av(),n={...o,type:Hv().type},a=Zn(i.getItemProps(n),r);return(0,vh.jsx)($v,{value:n,children:(0,vh.jsx)(Bf.li,{...a,ref:t})})});Gv.displayName="FileUploadItem";const qv=(0,xh.forwardRef)((e,t)=>{const o=Av(),r=Uv(),i=Zn(o.getItemDeleteTriggerProps(r),e);return(0,vh.jsx)(Bf.button,{...i,ref:t})});qv.displayName="FileUploadItemDeleteTrigger";const Kv=(0,xh.forwardRef)((e,t)=>{const[o,r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["type"]),i=Zn(Av().getItemGroupProps(o),r);return(0,vh.jsx)(Bv,{value:o,children:(0,vh.jsx)(Bf.ul,{...i,ref:t})})});Kv.displayName="FileUploadItemGroup";const Yv=(0,xh.forwardRef)((e,t)=>{const{children:o,...r}=e,i=Av(),n=Uv(),a=Zn(i.getItemNameProps(n),r);return(0,vh.jsx)(Bf.div,{...a,ref:t,children:o||n.file.name})});Yv.displayName="FileUploadItemName";const Xv=(0,xh.forwardRef)((e,t)=>{const o=Av(),r=Uv(),i=Zn(o.getItemPreviewProps(r),e);return r.file.type.match(e.type??".*")?(0,vh.jsx)(Bf.div,{...i,ref:t}):null});Xv.displayName="FileUploadItemPreview";const Zv=(0,xh.forwardRef)((e,t)=>{const[o,r]=(0,xh.useState)(""),i=Av(),n=Uv(),a=Zn(i.getItemPreviewImageProps({...n,url:o}),e);return(0,xh.useEffect)(()=>i.createFileUrl(n.file,e=>r(e)),[n,i]),o?(0,vh.jsx)(Bf.img,{...a,ref:t}):null});Zv.displayName="FileUploadItemPreviewImage";const Jv=(0,xh.forwardRef)((e,t)=>{const{children:o,...r}=e,i=Av(),n=Uv(),a=Zn(i.getItemSizeTextProps(n),r);return(0,vh.jsx)(Bf.div,{...a,ref:t,children:o||i.getFileSize(n.file)})});Jv.displayName="FileUploadItemSizeText";const Qv=(0,xh.forwardRef)((e,t)=>{const o=Zn(Av().getLabelProps(),e);return(0,vh.jsx)(Bf.label,{...o,ref:t})});Qv.displayName="FileUploadLabel";const ex=(0,xh.forwardRef)((e,t)=>{const o=Zn(Av().getTriggerProps(),e);return(0,vh.jsx)(Bf.button,{...o,ref:t})});ex.displayName="FileUploadTrigger";const tx=(0,xh.forwardRef)((e,t)=>{const o=Zn(Av().getHiddenInputProps(),e),r=mb();return(0,vh.jsx)(Bf.input,{"aria-describedby":r?.ariaDescribedby,...o,ref:t})});function ox(e){const{each:t,fallback:o,children:r}=e;return 0===t?.length?o||null:t?.map(r)}tx.displayName="FileUploadHiddenInput";const{withProvider:rx,withContext:ix,useStyles:nx,PropsProvider:ax}=ym({key:"fileUpload"}),sx=(rx(Dv,"root",{forwardAsChild:!0}),rx(Wv,"root",{forwardAsChild:!0})),lx=(ix(Lv,"clearTrigger",{forwardAsChild:!0}),ix(Mv,"dropzone",{forwardAsChild:!0}),ix("div","dropzoneContent"),ix(Gv,"item",{forwardAsChild:!0})),cx=ix("div","itemContent"),dx=ix(qv,"itemDeleteTrigger",{forwardAsChild:!0,defaultProps:{children:(0,vh.jsx)(km,{})}}),ux=ix(Kv,"itemGroup",{forwardAsChild:!0}),px=ix(Yv,"itemName",{forwardAsChild:!0}),hx=ix(Xv,"itemPreview",{forwardAsChild:!0,defaultProps:{children:(0,vh.jsx)(Sm,{})}}),gx=(ix(Zv,"itemPreviewImage",{forwardAsChild:!0}),ix(Jv,"itemSizeText",{forwardAsChild:!0})),fx=(ix(Qv,"label",{forwardAsChild:!0}),ix(ex,"trigger",{forwardAsChild:!0})),mx=e=>{const{showSize:t,clearable:o,files:r,...i}=e,n=Av(),a=r??n.acceptedFiles;return(0,vh.jsx)(ox,{each:a,children:e=>(0,vh.jsxs)(lx,{file:e,...i,children:[(0,vh.jsx)(hx,{}),t?(0,vh.jsxs)(cx,{children:[(0,vh.jsx)(px,{}),(0,vh.jsx)(gx,{})]}):(0,vh.jsx)(px,{flex:"1"}),o&&(0,vh.jsx)(dx,{})]},e.name)})},bx=((0,xh.forwardRef)(function(e,t){const{showSize:o,clearable:r,files:i,...n}=e;return(0,vh.jsx)(ux,{ref:t,...n,children:(0,vh.jsx)(mx,{showSize:o,clearable:r,files:i})})}),(0,xh.forwardRef)(function(e,t){const{fallback:o="Select file(s)",...r}=e,i=Av(),n=nx(),a=i.acceptedFiles,s=(0,xh.useMemo)(()=>1===a.length?a[0].name:a.length>1?`${a.length} files`:o,[a,o]);return(0,vh.jsx)(Xm,{ref:t,"data-placeholder":s===o?"":void 0,"data-scope":"file-upload","data-part":"file-text",...r,css:[n.fileText,e.css],children:s})}),e=>e.children(Av())),vx=tx,xx=(0,xh.forwardRef)(function(e,t){return(0,vh.jsx)(ob,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:t,...e})});xx.displayName="IconButton";const yx=xh.forwardRef(function(e,t){return(0,vh.jsx)(xx,{variant:"ghost","aria-label":"Close",ref:t,...e,children:e.children??(0,vh.jsx)(km,{})})});yx.displayName="CloseButton";const wx=({value:e,options:t,onChange:o})=>(0,vh.jsx)(Tv,{value:e,onValueChange:e=>o(e.value),children:(0,vh.jsx)(Wm,{gap:3,children:t.map(e=>(0,vh.jsxs)(Ov,{value:e.value,children:[(0,vh.jsx)(jv,{}),(0,vh.jsx)(Nv,{}),(0,vh.jsx)(Vv,{fontSize:"sm",color:"gray.700",children:e.label})]},e.value))})}),kx=()=>{const[e,t]=(0,r.useState)("ignore"),[o,i]=(0,r.useState)([]),[n,a]=(0,r.useState)(!1),[s,l]=(0,r.useState)(0),c=[{value:"ignore",label:(0,Gm.__)("Ignore any duplicate snippets: import all snippets from the file regardless and leave all existing snippets unchanged.","insert-php")},{value:"replace",label:(0,Gm.__)("Replace any existing snippets with a newly imported snippet of the same name.","insert-php")},{value:"skip",label:(0,Gm.__)("Do not import any duplicate snippets; leave all existing snippets unchanged.","insert-php")}];return(0,vh.jsx)(qm,{p:7,children:(0,vh.jsx)(lb,{gap:0,align:"stretch",children:(0,vh.jsxs)(qm,{children:[(0,vh.jsx)(ub,{fontSize:"lg",fontWeight:"semibold",mb:2,children:(0,Gm.__)("Import Snippets","insert-php")}),(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.600",mb:6,children:(0,Gm.__)("Upload one or more PHP Snippets export files and the snippets will be imported.","insert-php")}),(0,vh.jsxs)(qm,{bg:"gray.50",border:"1px",borderColor:"gray.200",borderRadius:"lg",p:5,mb:6,children:[(0,vh.jsx)(ub,{fontSize:"sm",fontWeight:"semibold",mt:0,mb:3,children:(0,Gm.__)("Duplicate Snippets","insert-php")}),(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.600",mb:4,children:(0,Gm.__)("What should happen if an existing snippet is found with an identical name to an imported snippet?","insert-php")}),(0,vh.jsx)(wx,{value:e,options:c,onChange:t}),(0,vh.jsx)(Sb,{fontSize:"sm",fontWeight:"medium",color:"gray.700",mb:3,mt:5,children:(0,Gm.sprintf)(/* translators: %s is the maximum upload size, e.g., "2 MB". */ /* translators: %s is the maximum upload size, e.g., "2 MB". */
(0,Gm.__)("Choose files from your computer (Maximum size: %s)","insert-php"),window.winpObjects?.maxUploadSize)}),(0,vh.jsxs)(sx,{maxFiles:25,accept:".json,.zip",onFileChange:e=>{const t=new Map(o.map(e=>[`${e.name}-${e.size}`,e])),r=e.acceptedFiles.filter(e=>!t.has(`${e.name}-${e.size}`));i([...o,...r])},gap:0,children:[(0,vh.jsx)(fx,{asChild:!0,children:(0,vh.jsx)(ob,{size:"sm",variant:"outline",mb:3,children:(0,Gm.__)("Browse…","insert-php")})}),(0,vh.jsx)(ux,{children:(0,vh.jsx)(bx,{children:()=>(0,vh.jsx)(lb,{gap:2,align:"stretch",mb:4,children:0===o.length?(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.500",children:(0,Gm.__)("No files selected.","insert-php")}):o.map(e=>(0,vh.jsx)(lx,{file:e,children:(0,vh.jsx)(hx,{asChild:!0,children:(0,vh.jsxs)(Ib,{gap:3,p:3,border:"1px",borderColor:"gray.200",borderRadius:"md",justify:"space-between",align:"center",children:[(0,vh.jsxs)(Ib,{gap:2,flex:"1",minW:"0",children:[(0,vh.jsx)(Sb,{fontSize:"sm",fontWeight:"medium",children:e.name}),(0,vh.jsxs)(Sb,{fontSize:"xs",color:"gray.500",children:[(e.size/1024).toFixed(2)," ","KB"]})]}),(0,vh.jsx)(yx,{size:"sm",onClick:()=>{const t=o.findIndex(t=>t.name===e.name&&t.size===e.size);if(t>-1){const e=o.filter((e,o)=>o!==t);i(e),l(e=>e+1)}}})]})})},e.name))})})}),(0,vh.jsx)(vx,{})]},s),(0,vh.jsx)(ob,{size:"md",fontWeight:"semibold",disabled:0===o.length,onClick:async()=>{if(0!==o.length){a(!0);try{const t=new FormData;t.append("duplicate_action",e),o.forEach(e=>{t.append("files[]",e)});const r=await ib()({path:`${window.winpObjects?.api}/import`,method:"POST",body:t,parse:!1}).then(e=>e.json());r.success?(Lm.create({description:r.message||(0,Gm.__)("Snippets imported successfully.","insert-php"),type:"success"}),i([]),l(e=>e+1),r.errors&&r.errors.length>0&&r.errors.forEach(e=>{Lm.create({description:e,type:"warning"})})):(Lm.create({description:r.message||(0,Gm.__)("Import failed.","insert-php"),type:"error"}),r.errors&&r.errors.length>0&&r.errors.forEach(e=>{Lm.create({description:e,type:"error"})}))}catch(e){Lm.create({description:e.message||"An error occurred while importing snippets.",type:"error"})}finally{a(!1)}}},loading:n,children:(0,Gm.__)("Upload files and import","insert-php")})]})]})})})},[Sx,Cx]=Cf({name:"CheckboxContext",hookName:"useCheckboxContext",providerName:"<CheckboxProvider />"}),Ix=(0,xh.forwardRef)((e,t)=>{const[{value:o},r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["value"]),i=Zn(o.getRootProps(),r);return(0,vh.jsx)(Sx,{value:o,children:(0,vh.jsx)(Bf.label,{...i,ref:t})})});Ix.displayName="CheckboxRootProvider";const[Ex,Px]=Cf({name:"CheckboxGroupContext",hookName:"useCheckboxGroupContext",providerName:"<CheckboxGroupProvider />",strict:!1}),zx=(0,xh.forwardRef)((e,t)=>{const[o,r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["checked","defaultChecked","disabled","form","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]),i=((e={})=>{const t=Px(),o=mb(),r=(0,xh.useMemo)(()=>Zn(e,t?.getItemProps({value:e.value})??{}),[e,t]),i=(0,xh.useId)(),{getRootNode:n}=Ef(),{dir:a}=Wf(),s={id:i,ids:{label:o?.ids.label,hiddenInput:o?.ids.control},dir:a,disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,getRootNode:n,...r};return function(e,t){const{send:o,context:r,prop:i,computed:n,scope:a}=e,s=!!i("disabled"),l=!!i("readOnly"),c=!!i("required"),d=!!i("invalid"),u=!s&&r.get("focused"),p=!s&&r.get("focusVisible"),h=n("checked"),g=n("indeterminate"),f=r.get("checked"),m={"data-active":cr(r.get("active")),"data-focus":cr(u),"data-focus-visible":cr(p),"data-readonly":cr(l),"data-hover":cr(r.get("hovered")),"data-disabled":cr(s),"data-state":g?"indeterminate":h?"checked":"unchecked","data-invalid":cr(d),"data-required":cr(c)};return{checked:h,disabled:s,indeterminate:g,focused:u,checkedState:f,setChecked(e){o({type:"CHECKED.SET",checked:e,isTrusted:!1})},toggleChecked(){o({type:"CHECKED.TOGGLE",checked:h,isTrusted:!1})},getRootProps:()=>t.label({...nd.root.attrs,...m,dir:i("dir"),id:ad(a),htmlFor:ld(a),onPointerMove(){s||o({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){s||o({type:"CONTEXT.SET",context:{hovered:!1}})},onClick(e){Or(e)===cd(a)&&e.stopPropagation()}}),getLabelProps:()=>t.element({...nd.label.attrs,...m,dir:i("dir"),id:sd(a)}),getControlProps(){return t.element({...nd.control.attrs,...m,dir:i("dir"),id:(e=a,e.ids?.control??`checkbox:${e.id}:control`),"aria-hidden":!0});var e},getIndicatorProps:()=>t.element({...nd.indicator.attrs,...m,dir:i("dir"),hidden:!g&&!h}),getHiddenInputProps:()=>t.input({id:ld(a),type:"checkbox",required:i("required"),defaultChecked:h,disabled:s,"aria-labelledby":sd(a),"aria-invalid":d,name:i("name"),form:i("form"),value:i("value"),style:si,onFocus(){const e=Js();o({type:"CONTEXT.SET",context:{focused:!0,focusVisible:e}})},onBlur(){o({type:"CONTEXT.SET",context:{focused:!1,focusVisible:!1}})},onClick(e){if(l)return void e.preventDefault();const t=e.currentTarget.checked;o({type:"CHECKED.SET",checked:t,isTrusted:!0})}})}}(Vf(ud,s),Af)})(o),n=Zn(i.getRootProps(),r);return(0,vh.jsx)(Sx,{value:i,children:(0,vh.jsx)(Bf.label,{...n,ref:t})})});zx.displayName="CheckboxRoot";const Rx=(0,xh.forwardRef)((e,t)=>{const o=Zn(Cx().getLabelProps(),e);return(0,vh.jsx)(Bf.span,{...o,ref:t})});Rx.displayName="CheckboxLabel";const Tx=(0,xh.forwardRef)((e,t)=>{const o=Zn(Cx().getControlProps(),e);return(0,vh.jsx)(Bf.div,{...o,ref:t})});function Ox(e={}){const t=gv(),{defaultValue:o,value:r,onValueChange:i,disabled:n=t?.disabled,readOnly:a,name:s,invalid:l=t?.invalid}=e,c=!(n||a),d=function(e,t={}){const{sync:o=!1}=t,r=function(e){const t=(0,xh.useRef)(e);return t.current=e,t}(e);return(0,xh.useCallback)((...e)=>o?queueMicrotask(()=>r.current?.(...e)):r.current?.(...e),[o,r])}(i,{sync:!0}),[u,p]=function(e){const{value:t,onChange:o,defaultValue:r}=e,[i,n]=(0,xh.useState)(r),a=void 0!==t;return[a?t:i,(0,xh.useCallback)(e=>(a||n(e),o?.(e)),[a,o])]}({value:r,defaultValue:o||[],onChange:d}),h=e=>u.some(t=>String(t)===String(e)),g=e=>{h(e)?m(e):f(e)},f=e=>{c&&(h(e)||p(u.concat(e)))},m=e=>{c&&p(u.filter(t=>String(t)!==String(e)))};return{isChecked:h,value:u,name:s,disabled:!!n,readOnly:!!a,invalid:!!l,setValue:p,addValue:f,toggleValue:g,getItemProps:e=>({checked:null!=e.value?h(e.value):void 0,onCheckedChange(){null!=e.value&&g(e.value)},name:s,disabled:n,readOnly:a,invalid:l})}}Tx.displayName="CheckboxControl";const Vx=(0,xh.forwardRef)((e,t)=>{const[o,r]=((e,t)=>t.reduce((e,t)=>{const[o,r]=e,i=t;return void 0!==r[i]&&(o[i]=r[i]),delete r[i],[o,r]},[{},{...e}]))(e,["defaultValue","value","onValueChange","disabled","invalid","readOnly","name"]),i=Ox(o);return(0,vh.jsx)(Ex,{value:i,children:(0,vh.jsx)(Bf.div,{ref:t,role:"group",...r,...hd.build().group.attrs})})});Vx.displayName="CheckboxGroup";const Nx=(0,xh.forwardRef)((e,t)=>{const o=Zn(Cx().getHiddenInputProps(),e),r=mb();return(0,vh.jsx)(Bf.input,{"aria-describedby":r?.ariaDescribedby,...o,ref:t})});Nx.displayName="CheckboxHiddenInput";const jx=(0,xh.forwardRef)(function(e,t){const o=Nm({key:"checkmark",recipe:e.recipe}),[r,i]=o.splitVariantProps(e),{checked:n,indeterminate:a,disabled:s,unstyled:l,children:c,...d}=i,u=l?om:o(r);return(0,vh.jsx)(vm.svg,{ref:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3px",strokeLinecap:"round",strokeLinejoin:"round","data-state":a?"indeterminate":n?"checked":"unchecked","data-disabled":Ym(s),css:[u,e.css],...d,children:a?(0,vh.jsx)("path",{d:"M5 12h14"}):n?(0,vh.jsx)("polyline",{points:"20 6 9 17 4 12"}):null})});jx.displayName="Checkmark";const{withProvider:Fx,withContext:Ax,useStyles:Dx,PropsProvider:Wx}=ym({key:"checkbox"}),Lx=(Fx(Ix,"root",{forwardAsChild:!0}),Fx(zx,"root",{forwardAsChild:!0})),Mx=Ax(Rx,"label",{forwardAsChild:!0}),Bx=(0,xh.forwardRef)(function(e,t){const{checked:o,indeterminate:r,...i}=e,n=Cx(),a=Dx();return o&&n.checked?(0,vh.jsx)(vm.svg,{ref:t,asChild:!0,...i,css:[a.indicator,e.css],children:o}):r&&n.indeterminate?(0,vh.jsx)(vm.svg,{ref:t,asChild:!0,...i,css:[a.indicator,e.css],children:r}):(0,vh.jsx)(jx,{ref:t,checked:n.checked,indeterminate:n.indeterminate,disabled:n.disabled,unstyled:!0,...i,css:[a.indicator,e.css]})}),Hx=Ax(Tx,"control",{forwardAsChild:!0,defaultProps:{children:(0,vh.jsx)(Bx,{})}}),$x=(vm(Vx,{base:{display:"flex",flexDirection:"column",gap:"1.5"}},{forwardAsChild:!0}),Nx),Ux=({checked:e,onCheckedChange:t,children:o})=>(0,vh.jsxs)(Lx,{checked:e,onCheckedChange:t,children:[(0,vh.jsx)($x,{}),(0,vh.jsx)(Hx,{children:(0,vh.jsx)(Bx,{})}),(0,vh.jsx)(Mx,{children:o})]}),Gx=()=>{const[e,t]=(0,r.useState)("all"),[o,i]=(0,r.useState)([]),[n,a]=(0,r.useState)([]),[s,l]=(0,r.useState)(!1),c=window.winpObjects?.snippetData||{},d=c.types||[],u=(c.tags||[]).filter(e=>"__all"!==e.value),p=[{value:"active",label:(0,Gm.__)("Active","insert-php")},{value:"inactive",label:(0,Gm.__)("Not active","insert-php")},{value:"all",label:(0,Gm.__)("All","insert-php")}];return(0,vh.jsx)(qm,{p:7,children:(0,vh.jsxs)(lb,{gap:2,align:"stretch",children:[(0,vh.jsx)(Sb,{fontSize:"sm",color:"gray.600",children:(0,Gm.__)("Download an export file of all snippets or selected snippets to back them up or transfer to another site.","insert-php")}),(0,vh.jsxs)(qm,{children:[(0,vh.jsx)(ub,{fontSize:"sm",fontWeight:"semibold",mb:3,children:(0,Gm.__)("Status","insert-php")}),(0,vh.jsx)(qm,{display:"flex",borderRadius:"md",overflow:"hidden",width:"fit-content",border:"1px solid",borderColor:"gray.200",children:(0,vh.jsx)(ox,{each:p,children:(o,r)=>(0,vh.jsx)(ob,{size:"sm",borderRadius:"none",borderRight:r<p.length-1?"1px":"none",borderColor:"gray.200",bg:e===o.value?"purple.50":"white",color:e===o.value?"purple.700":"gray.700",fontWeight:e===o.value?"semibold":"normal",_hover:{bg:e===o.value?"purple.100":"gray.50"},onClick:()=>t(o.value),children:o.label},o.value)})}),(0,vh.jsx)(Sb,{fontSize:"xs",color:"gray.500",mt:2,children:(0,Gm.__)("Status for snippets","insert-php")})]}),(0,vh.jsxs)(qm,{children:[(0,vh.jsx)(ub,{fontSize:"sm",fontWeight:"semibold",mb:3,children:(0,Gm.__)("Snippet types","insert-php")}),(0,vh.jsx)(qm,{border:"1px solid",borderColor:"gray.200",borderRadius:"md",p:3,maxH:"300px",overflowY:"auto",children:(0,vh.jsx)(lb,{gap:1,align:"stretch",children:(0,vh.jsx)(ox,{each:d,children:e=>(0,vh.jsx)(Ux,{checked:o.includes(e.value),onCheckedChange:()=>{return t=e.value,void i(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},children:(0,vh.jsx)(Sb,{fontSize:"sm",children:e.label+" ("+e.count+")"})},e.value)})})}),(0,vh.jsx)(Sb,{fontSize:"xs",color:"gray.500",mt:2,children:(0,Gm.__)("Types of snippets","insert-php")})]}),(0,vh.jsxs)(qm,{children:[(0,vh.jsx)(ub,{fontSize:"sm",fontWeight:"semibold",mb:3,children:(0,Gm.__)("Tags","insert-php")}),(0,vh.jsx)(qm,{border:"1px solid",borderColor:"gray.200",borderRadius:"md",p:3,maxH:"300px",overflowY:"auto",children:(0,vh.jsxs)(lb,{gap:1,align:"stretch",children:[(0,vh.jsx)(Ux,{checked:n.length===u.length,onCheckedChange:()=>{n.length===u.length?a([]):a(u.map(e=>e.value))},children:(0,vh.jsx)(Sb,{fontSize:"sm",fontWeight:"bold",children:(0,Gm.__)("Select all","insert-php")})}),(0,vh.jsx)(ox,{each:u,children:e=>(0,vh.jsx)(Ux,{checked:n.includes(e.value),onCheckedChange:()=>{return t=e.value,void a(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t]);var t},children:(0,vh.jsx)(Sb,{fontSize:"sm",children:e.label+" ("+e.count+")"})},e.value)})]})}),(0,vh.jsx)(Sb,{fontSize:"xs",color:"gray.500",mt:2,children:(0,Gm.__)("Snippet tags","insert-php")})]}),(0,vh.jsx)(qm,{pt:2,children:(0,vh.jsx)(ob,{size:"md",fontWeight:"semibold",onClick:async()=>{l(!0);try{const t=await ib()({path:`${window.winpObjects?.api}/export`,method:"POST",data:{status:e,types:o,tags:n}});if(t.success){let e;if(t.is_zip){const o=window.atob(t.data),r=new Uint8Array(o.length);for(let e=0;e<o.length;e++)r[e]=o.charCodeAt(e);e=new Blob([r],{type:"application/zip"})}else e=new Blob([t.data],{type:"application/json"});const o=window.URL.createObjectURL(e),r=document.createElement("a");r.href=o,r.download=t.filename,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(o),Lm.create({description:(0,Gm.__)("Successfully exported","insert-php")+` ${t.count} `+(0,Gm.__)("snippet(s).","insert-php"),type:"success"})}else Lm.create({description:t.message||(0,Gm.__)("Export failed.","insert-php"),type:"error"})}catch(e){Lm.create({description:e.message||(0,Gm.__)("An error occurred while exporting snippets.","insert-php"),type:"error"})}finally{l(!1)}},loading:s,children:(0,Gm.__)("Export Snippets","insert-php")})})]})})},qx=e=>{switch(e){case"import":return(0,vh.jsx)(kx,{});case"export":return(0,vh.jsx)(Gx,{});default:return(0,vh.jsx)(cv,{sectionId:e})}},Kx=function(){const[e,t]=(0,r.useState)(0),[o,i]=(0,r.useState)(!1),{settings:n}=(0,r.useContext)(Bm),a=window.winpObjects?.sections||[],s=a.map(e=>e.title);return(0,vh.jsx)(qm,{minH:"100vh",py:8,children:(0,vh.jsxs)(qm,{maxW:"1400px",mx:"auto",px:{base:4,sm:6,lg:8},children:[(0,vh.jsx)(ab,{}),(0,vh.jsxs)(Km,{gap:6,direction:{base:"column",lg:"row"},children:[(0,vh.jsx)(qm,{flex:"1",children:(0,vh.jsxs)(qm,{bg:"white",borderRadius:"xl",boxShadow:"sm",children:[(0,vh.jsx)(sb,{activeTab:e,setActiveTab:t,tabs:s}),(0,vh.jsx)(qm,{children:qx(a[e]?.id)}),"import"!==a[e]?.id&&"export"!==a[e]?.id&&(0,vh.jsx)(qm,{borderTop:"1px",borderColor:"gray.200",px:7,py:4,bg:"gray.50",borderBottomRadius:"xl",children:(0,vh.jsx)(Km,{justify:"flex-end",children:(0,vh.jsx)(ob,{size:"md",fontWeight:"semibold",loading:o,onClick:async()=>{const e=(window.winpObjects?.settings||[]).filter(e=>"email"===e.type);for(const t of e){if(t.visibility){const{field:e,value:o,type:r}=t.visibility,i=n[e];let a=!0;if("equals"===r?a="boolean"==typeof o?!!i===o:i===o:"not_equals"===r&&(a="boolean"==typeof o?!!i!==o:i!==o),!a)continue}const e=n[t.name];if(e&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e))return void Lm.create({description:(0,Gm.__)("Please enter a valid email address.","insert-php"),type:"error"})}i(!0);try{const e=await ib()({path:`${window.winpObjects?.api}/settings`,method:"POST",data:{data:n}});if(e.error)throw new Error(e.error);e?.success&&Lm.create({description:e.message||(0,Gm.__)("Settings saved successfully.","insert-php"),type:"success"})}catch(e){Lm.create({description:e.message||(0,Gm.__)("An error occurred while saving settings.","insert-php"),type:"error"})}i(!1)},children:(0,Gm.__)("Save","insert-php")})})})]})}),(0,vh.jsx)(Ob,{})]})]})})};(0,r.createRoot)(document.getElementById("woody-settings")).render((0,vh.jsx)(Um,{children:(0,vh.jsx)(Kx,{})}))}},o={};function r(e){var i=o[e];if(void 0!==i)return i.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.m=t,e=[],r.O=(t,o,i,n)=>{if(!o){var a=1/0;for(d=0;d<e.length;d++){for(var[o,i,n]=e[d],s=!0,l=0;l<o.length;l++)(!1&n||a>=n)&&Object.keys(r.O).every(e=>r.O[e](o[l]))?o.splice(l--,1):(s=!1,n<a&&(a=n));if(s){e.splice(d--,1);var c=i();void 0!==c&&(t=c)}}return t}n=n||0;for(var d=e.length;d>0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[o,i,n]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={57:0,350:0};r.O.j=t=>0===e[t];var t=(t,o)=>{var i,n,[a,s,l]=o,c=0;if(a.some(t=>0!==e[t])){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(l)var d=l(r)}for(t&&t(o);c<a.length;c++)n=a[c],r.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return r.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 i=r.O(void 0,[350],()=>r(433));i=r.O(i)})();
```
