dori-pdp-widget 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget.js +11 -11
- package/package.json +1 -1
package/dist/widget.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(){try{var ro=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};ro.SENTRY_RELEASE={id:"
|
1
|
+
(function(){try{var ro=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};ro.SENTRY_RELEASE={id:"d788040f73faf1e93b16b6bc17f14cd96bb83227"}}catch{}})();try{(function(){var ro=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},Kc=new ro.Error().stack;Kc&&(ro._sentryDebugIds=ro._sentryDebugIds||{},ro._sentryDebugIds[Kc]="bede50d0-dc8a-4d31-a122-e59ef3002205",ro._sentryDebugIdIdentifier="sentry-dbid-bede50d0-dc8a-4d31-a122-e59ef3002205")})()}catch{}(function(){"use strict";function ro(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(r,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Kc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Jy(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var l=!1;try{l=this instanceof r}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}),n}var Mm={exports:{}},kd={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.js
|
4
4
|
*
|
@@ -53,15 +53,15 @@ Error generating stack: `+o.message+`
|
|
53
53
|
*
|
54
54
|
* This source code is licensed under the MIT license found in the
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
56
|
-
*/var S1;function DT(){if(S1)return Qt;S1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,A=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,Y=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,X=e?Symbol.for("react.scope"):60119;function V(U){if(typeof U=="object"&&U!==null){var J=U.$$typeof;switch(J){case t:switch(U=U.type,U){case g:case v:case r:case s:case l:case A:return U;default:switch(U=U&&U.$$typeof,U){case f:case y:case R:case w:case u:return U;default:return J}}case n:return J}}}function re(U){return V(U)===v}return Qt.AsyncMode=g,Qt.ConcurrentMode=v,Qt.ContextConsumer=f,Qt.ContextProvider=u,Qt.Element=t,Qt.ForwardRef=y,Qt.Fragment=r,Qt.Lazy=R,Qt.Memo=w,Qt.Portal=n,Qt.Profiler=s,Qt.StrictMode=l,Qt.Suspense=A,Qt.isAsyncMode=function(U){return re(U)||V(U)===g},Qt.isConcurrentMode=re,Qt.isContextConsumer=function(U){return V(U)===f},Qt.isContextProvider=function(U){return V(U)===u},Qt.isElement=function(U){return typeof U=="object"&&U!==null&&U.$$typeof===t},Qt.isForwardRef=function(U){return V(U)===y},Qt.isFragment=function(U){return V(U)===r},Qt.isLazy=function(U){return V(U)===R},Qt.isMemo=function(U){return V(U)===w},Qt.isPortal=function(U){return V(U)===n},Qt.isProfiler=function(U){return V(U)===s},Qt.isStrictMode=function(U){return V(U)===l},Qt.isSuspense=function(U){return V(U)===A},Qt.isValidElementType=function(U){return typeof U=="string"||typeof U=="function"||U===r||U===v||U===s||U===l||U===A||U===C||typeof U=="object"&&U!==null&&(U.$$typeof===R||U.$$typeof===w||U.$$typeof===u||U.$$typeof===f||U.$$typeof===y||U.$$typeof===Y||U.$$typeof===L||U.$$typeof===X||U.$$typeof===N)},Qt.typeOf=V,Qt}var E1;function MT(){return E1||(E1=1,Km.exports=DT()),Km.exports}var jm,C1;function WT(){if(C1)return jm;C1=1;var e=MT(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=l;function u(R){return e.isMemo(R)?l:s[R.$$typeof]||t}var f=Object.defineProperty,g=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,A=Object.getPrototypeOf,C=Object.prototype;function w(R,N,Y){if(typeof N!="string"){if(C){var L=A(N);L&&L!==C&&w(R,L,Y)}var X=g(N);v&&(X=X.concat(v(N)));for(var V=u(R),re=u(N),U=0;U<X.length;++U){var J=X[U];if(!n[J]&&!(Y&&Y[J])&&!(re&&re[J])&&!(V&&V[J])){var de=y(N,J);try{f(R,J,de)}catch{}}}}return R}return jm=w,jm}var LT=WT();const YT=zu(LT);var VT=(function(e,t){return YT(e,t)}),XT=!0;function Jm(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(r+=l+" ")}),r}var Tg=function(t,n,r){var l=t.key+"-"+n.name;(r===!1||XT===!1)&&t.registered[l]===void 0&&(t.registered[l]=n.styles)},_g=function(t,n,r){Tg(t,n,r);var l=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+l:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function BT(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var HT={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},UT=/[A-Z]|^ms/g,GT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,w1=function(t){return t.charCodeAt(1)===45},k1=function(t){return t!=null&&typeof t!="boolean"},qm=c1(function(e){return w1(e)?e:e.replace(UT,"-$&").toLowerCase()}),T1=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(GT,function(r,l,s){return lo={name:l,styles:s,next:lo},l})}return HT[t]!==1&&!w1(t)&&typeof n=="number"&&n!==0?n+"px":n};function Id(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var l=n;if(l.anim===1)return lo={name:l.name,styles:l.styles,next:lo},l.name;var s=n;if(s.styles!==void 0){var u=s.next;if(u!==void 0)for(;u!==void 0;)lo={name:u.name,styles:u.styles,next:lo},u=u.next;var f=s.styles+";";return f}return ZT(e,t,n)}case"function":{if(e!==void 0){var g=lo,v=n(e);return lo=g,Id(e,t,v)}break}}var y=n;if(t==null)return y;var A=t[y];return A!==void 0?A:y}function ZT(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l<n.length;l++)r+=Id(e,t,n[l])+";";else for(var s in n){var u=n[s];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?r+=s+"{"+t[f]+"}":k1(f)&&(r+=qm(s)+":"+T1(s,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var g=0;g<u.length;g++)k1(u[g])&&(r+=qm(s)+":"+T1(s,u[g])+";");else{var v=Id(e,t,u);switch(s){case"animation":case"animationName":{r+=qm(s)+":"+v+";";break}default:r+=s+"{"+v+"}"}}}return r}var _1=/label:\s*([^\s;{]+)\s*(;|$)/g,lo;function Nd(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,l="";lo=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,l+=Id(n,t,s);else{var u=s;l+=u[0]}for(var f=1;f<e.length;f++)if(l+=Id(n,t,e[f]),r){var g=s;l+=g[f]}_1.lastIndex=0;for(var v="",y;(y=_1.exec(l))!==null;)v+="-"+y[1];var A=BT(l)+v;return{name:A,styles:l,next:lo}}var QT=function(t){return t()},O1=r1.useInsertionEffect?r1.useInsertionEffect:!1,$m=O1||QT,R1=O1||Te.useLayoutEffect,ev=Te.createContext(typeof HTMLElement<"u"?Qm({key:"css"}):null),F1=ev.Provider,KT=function(){return Te.useContext(ev)},Pd=function(t){return Te.forwardRef(function(n,r){var l=Te.useContext(ev);return t(n,l,r)})},Bo=Te.createContext({}),jT=function(){return Te.useContext(Bo)},JT=function(t,n){if(typeof n=="function"){var r=n(t);return r}return kg({},t,n)},qT=y1(function(e){return y1(function(t){return JT(e,t)})}),$T=function(t){var n=Te.useContext(Bo);return t.theme!==n&&(n=qT(n)(t.theme)),Te.createElement(Bo.Provider,{value:n},t.children)};function e_(e){var t=e.displayName||e.name||"Component",n=Te.forwardRef(function(l,s){var u=Te.useContext(Bo);return Te.createElement(e,kg({theme:u,ref:s},l))});return n.displayName="WithTheme("+t+")",VT(n,e)}var tv={}.hasOwnProperty,nv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",t_=function(t,n){var r={};for(var l in n)tv.call(n,l)&&(r[l]=n[l]);return r[nv]=t,r},n_=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return Tg(n,r,l),$m(function(){return _g(n,r,l)}),null},r_=Pd(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var l=e[nv],s=[r],u="";typeof e.className=="string"?u=Jm(t.registered,s,e.className):e.className!=null&&(u=e.className+" ");var f=Nd(s,void 0,Te.useContext(Bo));u+=t.key+"-"+f.name;var g={};for(var v in e)tv.call(e,v)&&v!=="css"&&v!==nv&&(g[v]=e[v]);return g.className=u,n&&(g.ref=n),Te.createElement(Te.Fragment,null,Te.createElement(n_,{cache:t,serialized:f,isStringTag:typeof l=="string"}),Te.createElement(l,g))}),i_=r_,Og=function(t,n){var r=arguments;if(n==null||!tv.call(n,"css"))return Te.createElement.apply(void 0,r);var l=r.length,s=new Array(l);s[0]=i_,s[1]=t_(t,n);for(var u=2;u<l;u++)s[u]=r[u];return Te.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Og||(Og={}));var rv=Pd(function(e,t){var n=e.styles,r=Nd([n],void 0,Te.useContext(Bo)),l=Te.useRef();return R1(function(){var s=t.key+"-global",u=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,g=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),g!==null&&(f=!0,g.setAttribute("data-emotion",s),u.hydrate([g])),l.current=[u,f],function(){u.flush()}},[t]),R1(function(){var s=l.current,u=s[0],f=s[1];if(f){s[1]=!1;return}if(r.next!==void 0&&_g(t,r.next,!0),u.tags.length){var g=u.tags[u.tags.length-1].nextElementSibling;u.before=g,u.flush()}t.insert("",r,u,!1)},[t,r.name]),null});function I1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Nd(t)}function a_(){var e=I1.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var l_=function e(t){for(var n=t.length,r=0,l="";r<n;r++){var s=t[r];if(s!=null){var u=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))u=e(s);else{u="";for(var f in s)s[f]&&f&&(u&&(u+=" "),u+=f)}break}default:u=s}u&&(l&&(l+=" "),l+=u)}}return l};function o_(e,t,n){var r=[],l=Jm(e,r,n);return r.length<2?n:l+t(r)}var s_=function(t){var n=t.cache,r=t.serializedArr;return $m(function(){for(var l=0;l<r.length;l++)_g(n,r[l],!1)}),null},u_=Pd(function(e,t){var n=[],r=function(){for(var g=arguments.length,v=new Array(g),y=0;y<g;y++)v[y]=arguments[y];var A=Nd(v,t.registered);return n.push(A),Tg(t,A,!1),t.key+"-"+A.name},l=function(){for(var g=arguments.length,v=new Array(g),y=0;y<g;y++)v[y]=arguments[y];return o_(t.registered,r,l_(v))},s={css:r,cx:l,theme:Te.useContext(Bo)},u=e.children(s);return Te.createElement(Te.Fragment,null,Te.createElement(s_,{cache:t,serializedArr:n}),u)});const c_=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:F1,ClassNames:u_,Global:rv,ThemeContext:Bo,ThemeProvider:$T,__unsafe_useEmotionCache:KT,get createElement(){return Og},css:I1,get jsx(){return Og},keyframes:a_,useTheme:jT,withEmotionCache:Pd,withTheme:e_},Symbol.toStringTag,{value:"Module"}));function f_(...e){return function(...n){e.forEach(r=>r?.(...n))}}const d_=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),h_=/^on[A-Z]/;function iv(...e){let t={};for(let n of e){for(let r in t){if(h_.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=f_(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=d_(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function g_(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function p_(...e){return t=>{e.forEach(n=>{g_(n,t)})}}function zd(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const oo=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function m_(e){return e.default||e}const Pi=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),so=e=>typeof e=="string",av=e=>typeof e=="function";function v_(e){const t=Te.version;return!so(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const N1=(...e)=>{const t=e.reduce((n,r)=>(r?.forEach(l=>n.add(l)),n),new Set([]));return Array.from(t)};function b_(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function P1(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:l="Provider",errorMessage:s,defaultValue:u}=e,f=Te.createContext(u);f.displayName=t;function g(){const v=Te.useContext(f);if(!v&&n){const y=new Error(s??b_(r,l));throw y.name="ContextError",Error.captureStackTrace?.(y,g),y}return v}return[f.Provider,g,f]}const[y_,Rg]=P1({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function x_(e){const{value:t,children:n}=e;return ne.jsxs(y_,{value:t,children:[!t._config.disableLayers&&ne.jsx(rv,{styles:t.layers.atRule}),ne.jsx(rv,{styles:t._global}),n]})}const A_=(e,t)=>{const n={},r={},l=Object.keys(e);for(const s of l)t(s)?r[s]=e[s]:n[s]=e[s];return[r,n]},ef=(e,t)=>{const n=av(t)?t:r=>t.includes(r);return A_(e,n)},S_=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function E_(e){return typeof e=="string"&&S_.has(e)}function C_(e,t,n){const{css:r,isValidProperty:l}=Rg(),{children:s,...u}=e,f=Te.useMemo(()=>{const[C,w]=ef(u,X=>n(X,t.variantKeys)),[R,N]=ef(w,t.variantKeys),[Y,L]=ef(N,l);return{forwardedProps:C,variantProps:R,styleProps:Y,elementProps:L}},[t.variantKeys,n,u,l]),{css:g,...v}=f.styleProps,y=Te.useMemo(()=>{const C={...f.variantProps};return t.variantKeys.includes("colorPalette")||(C.colorPalette=u.colorPalette),t.variantKeys.includes("orientation")||(C.orientation=u.orientation),t(C)},[t,f.variantProps,u.colorPalette,u.orientation]);return{styles:Te.useMemo(()=>r(y,...w_(g),v),[r,y,g,v]),props:{...f.forwardedProps,...f.elementProps,children:s}}}const w_=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),k_=m_(lT),T_=e=>e!=="theme",__=(e,t,n)=>{let r;if(t){const l=t.shouldForwardProp;r=e.__emotion_forwardProp&&l?s=>e.__emotion_forwardProp(s)&&l(s):l}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let O_=typeof document<"u";const z1=({cache:e,serialized:t,isStringTag:n})=>{Tg(e,t,n);const r=$m(()=>_g(e,t,n));if(!O_&&r!==void 0){let l=t.name,s=t.next;for(;s!==void 0;)l=oo(l,s.name),s=s.next;return ne.jsx("style",{"data-emotion":oo(e.key,l),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},D1={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"]},R_=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),lv=((e,t={},n={})=>{if(R_(D1,e)){n.forwardProps||(n.forwardProps=[]);const v=D1[e];n.forwardProps=N1([...n.forwardProps,...v])}const r=e.__emotion_real===e,l=r&&e.__emotion_base||e;let s,u;n!==void 0&&(s=n.label,u=n.target);let f=[];const g=Pd((v,y,A)=>{const{cva:C,isValidProperty:w}=Rg(),R=t.__cva__?t:C(t),N=F_(e.__emotion_cva,R),Y=ue=>(z,Q)=>ue.includes(z)?!0:!Q?.includes(z)&&!w(z);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=Y(n.forwardProps));const L=(ue,z)=>{const Q=typeof e=="string"&&e.charCodeAt(0)>96?k_:T_,Ce=!z?.includes(ue)&&!w(ue);return Q(ue)&&Ce},X=__(e,n,r)||L,V=Te.useMemo(()=>Object.assign({},n.defaultProps,zd(v)),[v]),{props:re,styles:U}=C_(V,N,X);let J="",de=[U],ae=re;if(re.theme==null){ae={};for(let ue in re)ae[ue]=re[ue];ae.theme=Te.useContext(Bo)}typeof re.className=="string"?J=Jm(y.registered,de,re.className):re.className!=null&&(J=oo(J,re.className));const ie=Nd(f.concat(de),y.registered,ae);ie.styles&&(J=oo(J,`${y.key}-${ie.name}`)),u!==void 0&&(J=oo(J,u));const H=!X("as");let Ae=H&&re.as||l,ce={};for(let ue in re)if(!(H&&ue==="as")){if(E_(ue)){const z=ue.replace("html","").toLowerCase();ce[z]=re[ue];continue}X(ue)&&(ce[ue]=re[ue])}let _e=J.trim();_e?ce.className=_e:Reflect.deleteProperty(ce,"className"),ce.ref=A;const $=n.forwardAsChild||n.forwardProps?.includes("asChild");if(re.asChild&&!$){const ue=Te.isValidElement(re.children)?Te.Children.only(re.children):Te.Children.toArray(re.children).find(Te.isValidElement);if(!ue)throw new Error("[chakra-ui > factory] No valid child found");Ae=ue.type,ce.children=null,Reflect.deleteProperty(ce,"asChild"),ce=iv(ce,ue.props),ce.ref=p_(A,v_(ue))}return ce.as&&$?(ce.as=void 0,ne.jsxs(Te.Fragment,{children:[ne.jsx(z1,{cache:y,serialized:ie,isStringTag:typeof Ae=="string"}),ne.jsx(Ae,{asChild:!0,...ce,children:ne.jsx(re.as,{children:ce.children})})]})):ne.jsxs(Te.Fragment,{children:[ne.jsx(z1,{cache:y,serialized:ie,isStringTag:typeof Ae=="string"}),ne.jsx(Ae,{...ce})]})});return g.displayName=s!==void 0?s:`chakra(${typeof l=="string"?l:l.displayName||l.name||"Component"})`,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_forwardProp=n.shouldForwardProp,g.__emotion_cva=t,Object.defineProperty(g,"toString",{value(){return`.${u}`}}),g}).bind(),ov=new Map,Rs=new Proxy(lv,{apply(e,t,n){return lv(...n)},get(e,t){return ov.has(t)||ov.set(t,lv(t)),ov.get(t)}}),F_=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),Ft=Rs("div");Ft.displayName="Box";const I_=Object.freeze({});function N_(e){const{key:t,recipe:n}=e,r=Rg();return Te.useMemo(()=>{const l=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(l))},[t,n,r])}const P_=e=>e.charAt(0).toUpperCase()+e.slice(1);function tf(e){const{key:t,recipe:n}=e,r=P_(t||n.className||"Component"),[l,s]=P1({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function u(v){const{unstyled:y,...A}=v,C=N_({key:t,recipe:A.recipe||n}),[w,R]=Te.useMemo(()=>C.splitVariantProps(A),[C,A]);return{styles:y?I_:C(w),className:C.className,props:R}}const f=(v,y)=>{const A=Rs(v,{},y),C=Te.forwardRef((w,R)=>{const N=s(),Y=Te.useMemo(()=>iv(N,w),[w,N]),{styles:L,className:X,props:V}=u(Y);return ne.jsx(A,{...V,ref:R,css:[L,Y.css],className:oo(X,Y.className)})});return C.displayName=v.displayName||v.name,C};function g(){return l}return{withContext:f,PropsProvider:l,withPropsProvider:g,usePropsContext:s,useRecipeResult:u}}const z_=Te.forwardRef(function(t,n){const{templateAreas:r,column:l,row:s,autoFlow:u,autoRows:f,templateRows:g,autoColumns:v,templateColumns:y,inline:A,...C}=t;return ne.jsx(Rs.div,{...C,ref:n,css:[{display:A?"inline-grid":"grid",gridTemplateAreas:r,gridAutoColumns:v,gridColumn:l,gridRow:s,gridAutoFlow:u,gridAutoRows:f,gridTemplateRows:g,gridTemplateColumns:y},t.css]})});function sv(e){return e==null?[]:Array.isArray(e)?e:[e]}var Dd=e=>e[0],uv=e=>e[e.length-1],D_=(e,t)=>e.indexOf(t)!==-1,Du=(e,...t)=>e.concat(t),Mu=(e,...t)=>e.filter(n=>!t.includes(n)),nf=e=>Array.from(new Set(e)),cv=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},rf=(e,t)=>D_(e,t)?Mu(e,t):Du(e,t);function M1(e,t,n={}){const{step:r=1,loop:l=!0}=n,s=t+r,u=e.length,f=u-1;return t===-1?r>0?0:f:s<0?l?f:0:s>=u?l?0:t>u?u:t:s}function M_(e,t,n={}){return e[M1(e,t,n)]}function W_(e,t,n={}){const{step:r=1,loop:l=!0}=n;return M1(e,t,{step:-r,loop:l})}function L_(e,t,n={}){return e[W_(e,t,n)]}function W1(e,t){return e.reduce(([n,r],l)=>(t(l)?n.push(l):r.push(l),[n,r]),[[],[]])}var L1=e=>e?.constructor.name==="Array",Y_=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!cl(e[n],t[n]))return!1;return!0},cl=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(L1(e)&&L1(t))return Y_(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let l=0;l<r;l++)if(!Reflect.has(e,n[l]))return!1;for(let l=0;l<r;l++){const s=n[l];if(!cl(e[s],t[s]))return!1}return!0},Md=e=>Array.isArray(e),V_=e=>e===!0||e===!1,Y1=e=>e!=null&&typeof e=="object",Wu=e=>Y1(e)&&!Md(e),fv=e=>typeof e=="string",V1=e=>typeof e=="function",X_=e=>e==null,Fs=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),B_=e=>Object.prototype.toString.call(e),X1=Function.prototype.toString,H_=X1.call(Object),U_=e=>{if(!Y1(e)||B_(e)!="[object Object]"||Q_(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Fs(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&X1.call(n)==H_},G_=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Z_=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Q_=e=>G_(e)||Z_(e),K_=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,j_=()=>{},Fg=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})};function Ho(e,t,...n){if(e in t){const l=t[e];return V1(l)?l(...n):l}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Ho),r}var B1=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,B1),t?.()}},{floor:H1,abs:U1,round:Ig,min:J_,max:q_,pow:$_,sign:eO}=Math,dv=e=>Number.isNaN(e),Uo=e=>dv(e)?0:e,G1=(e,t)=>(e%t+t)%t,tO=(e,t)=>(e%t+t)%t,nO=(e,t)=>Uo(e)>=t,rO=(e,t)=>Uo(e)<=t,iO=(e,t,n)=>Uo(e)>=t&&Uo(e)<=n,aO=(e,t,n)=>Ig((Uo(e)-t)/n)*n+t,zi=(e,t,n)=>J_(q_(Uo(e),t),n),lO=(e,t,n)=>(Uo(e)-t)/(n-t),oO=(e,t,n,r)=>zi(aO(e*(n-t)+t,t,r),t,n),Z1=(e,t)=>{let n=e,r=t.toString(),l=r.indexOf("."),s=l>=0?r.length-l:0;if(s>0){let u=$_(10,s);n=Ig(n*u)/u}return n},hv=(e,t)=>typeof t=="number"?H1(e*t+.5)/t:Ig(e),Q1=(e,t,n,r)=>{const l=t!=null?Number(t):0,s=Number(n),u=(e-l)%r;let f=U1(u)*2>=r?e+eO(u)*(r-U1(u)):e-u;if(f=Z1(f,r),!dv(l)&&f<l)f=l;else if(!dv(s)&&f>s){const g=H1((s-l)/r),v=l+g*r;f=g<=0||v<l?s:v}return Z1(f,r)},mn=(e,t=0,n=10)=>{const r=Math.pow(n,t);return Ig(e*r)/r},K1=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},j1=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const l=10**Math.max(K1(e),K1(n));e=Math.round(e*l),n=Math.round(n*l),r=t==="+"?e+n:e-n,r/=l}return r},sO=(e,t)=>j1(Uo(e),"+",t),uO=(e,t)=>j1(Uo(e),"-",t);function J1(e){if(!U_(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const l=e[r];l!==void 0&&(n[r]=J1(l))}return n}function q1(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function cO(e,t){if(e==null)throw new Error(t())}function fO(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function $1(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:l="Provider",errorMessage:s,defaultValue:u}=e,f=Te.createContext(u);f.displayName=t;function g(){const v=Te.useContext(f);if(!v&&n){const y=new Error(s??fO(r,l));throw y.name="ContextError",Error.captureStackTrace?.(y,g),y}return v}return[f.Provider,g,f]}const[dO,VU]=$1({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function hO(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var ex=e=>Math.max(0,Math.min(1,e)),gO=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),pO=()=>{},Ng=e=>typeof e=="object"&&e!==null,mO=2147483647,vO=1,bO=9,yO=11,Di=e=>Ng(e)&&e.nodeType===vO&&typeof e.nodeName=="string",tx=e=>Ng(e)&&e.nodeType===bO,xO=e=>Ng(e)&&e===e.window,nx=e=>Di(e)?e.localName||"":"#document";function AO(e){return["html","body","#document"].includes(nx(e))}var SO=e=>Ng(e)&&e.nodeType!==void 0,Wd=e=>SO(e)&&e.nodeType===yO&&"host"in e,EO=e=>Di(e)&&e.localName==="input",CO=e=>Di(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,wO=/(textarea|select)/;function kO(e){if(e==null||!Di(e))return!1;try{return EO(e)&&e.selectionStart!=null||wO.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Lu(e,t){if(!e||!t||!Di(e)||!Di(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Wd(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function fl(e){return tx(e)?e:xO(e)?e.document:e?.ownerDocument??document}function TO(e){return fl(e).documentElement}function hr(e){return Wd(e)?hr(e.host):tx(e)?e.defaultView??window:Di(e)?e.ownerDocument?.defaultView??window:window}function _O(e){if(nx(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wd(e)&&e.host||TO(e);return Wd(t)?t.host:t}var gv=new WeakMap;function rx(e){return gv.has(e)||gv.set(e,hr(e).getComputedStyle(e)),gv.get(e)}var Pg=()=>typeof document<"u";function OO(){return navigator.userAgentData?.platform??navigator.platform}function RO(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var pv=e=>Pg()&&e.test(OO()),ix=e=>Pg()&&e.test(RO()),FO=e=>Pg()&&e.test(navigator.vendor),ax=()=>Pg()&&!!navigator.maxTouchPoints,IO=()=>pv(/^iPhone/i),NO=()=>pv(/^iPad/i)||zg()&&navigator.maxTouchPoints>1,mv=()=>IO()||NO(),PO=()=>zg()||mv(),zg=()=>pv(/^Mac/i),lx=()=>PO()&&FO(/apple/i),zO=()=>ix(/Firefox/i),DO=()=>ix(/Android/i);function MO(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function Is(e){return MO(e)?.[0]??e.target}function WO(e){return XO(e).isComposing||e.keyCode===229}function LO(e){return e.mozInputSource===0&&e.isTrusted?!0:DO()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var YO=e=>e.button===2||zg()&&e.ctrlKey&&e.button===0,VO=e=>"touches"in e&&e.touches.length>0;function XO(e){return e.nativeEvent??e}function BO(e,t="client"){const n=VO(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var Nr=(e,t,n,r)=>{const l=typeof e=="function"?e():e;return l?.addEventListener(t,n,r),()=>{l?.removeEventListener(t,n,r)}};function HO(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,l=hr(e)[n].prototype;return Object.getOwnPropertyDescriptor(l,r)??{}}function UO(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Dg(e,t,n="value"){if(!e)return;const r=UO(e);r&&HO(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function GO(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const l=hr(e);e instanceof l.HTMLInputElement&&(Dg(e,`${n}`),e.dispatchEvent(new l.Event("input",{bubbles:r})))}function ZO(e){return QO(e)?e.form:e.closest("form")}function QO(e){return e.matches("textarea, input, select, button")}function KO(e,t){if(!e)return;const n=ZO(e),r=l=>{l.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function jO(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=hr(n),l=new r.MutationObserver(()=>t(n.disabled));return l.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>l.disconnect()}function vv(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,l=[KO(e,r),jO(e,n)];return()=>l.forEach(s=>s?.())}var JO=e=>Di(e)&&e.tagName==="IFRAME",qO=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,ox="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 bv(e){return!e||e.closest("[inert]")?!1:e.matches(ox)&&CO(e)}function sx(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(ox)).filter($O);return r.forEach((l,s)=>{if(JO(l)&&l.contentDocument){const u=l.contentDocument.body,f=sx(u);r.splice(s,1,...f)}}),r.length,r}function $O(e){return e!=null&&e.tabIndex>0?!0:bv(e)&&!qO(e)}function yv(e){const{root:t,getInitialEl:n,filter:r,enabled:l=!0}=e;if(!l)return;let s=null;if(s||(s=typeof n=="function"?n():n),s||(s=t?.querySelector("[data-autofocus],[autofocus]")),!s){const u=sx(t);s=r?u.filter(r)[0]:u[0]}return s||t||void 0}function ux(e){const t=new Set;function n(r){const l=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(l))}return n(()=>n(e)),function(){t.forEach(l=>l())}}function zt(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function eR(e,t,n){const r=zt(()=>{e.removeEventListener(t,l,!0),n()}),l=()=>{r(),n()};return e.addEventListener(t,l,{once:!0,capture:!0}),r}function tR(e,t){if(!e)return;const{attributes:n,callback:r}=t,l=e.ownerDocument.defaultView||window,s=new l.MutationObserver(u=>{for(const f of u)f.type==="attributes"&&f.attributeName&&n.includes(f.attributeName)&&r(f)});return s.observe(e,{attributes:!0,attributeFilter:n}),()=>s.disconnect()}function Mg(e,t){const{defer:n}=t,r=n?zt:s=>s(),l=[];return l.push(r(()=>{const s=typeof e=="function"?e():e;l.push(tR(s,t))})),()=>{l.forEach(s=>s?.())}}function cx(e){const t=()=>{const n=hr(e);e.dispatchEvent(new n.MouseEvent("click"))};zO()?eR(e,"keyup",t):queueMicrotask(t)}function Wg(e){const t=_O(e);return AO(t)?fl(t).body:Di(t)&&xv(t)?t:Wg(t)}function fx(e,t=[]){const n=Wg(e),r=n===e.ownerDocument.body,l=hr(n);return r?t.concat(l,l.visualViewport||[],xv(n)?n:[]):t.concat(n,fx(n,[]))}var nR=/auto|scroll|overlay|hidden|clip/,rR=new Set(["inline","contents"]);function xv(e){const t=hr(e),{overflow:n,overflowX:r,overflowY:l,display:s}=t.getComputedStyle(e);return nR.test(n+l+r)&&!rR.has(s)}function iR(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Lg(e,t){const{rootEl:n,...r}=t||{};!e||!n||!xv(n)||!iR(n)||e.scrollIntoView(r)}function dx(e,t){const{left:n,top:r,width:l,height:s}=t.getBoundingClientRect(),u={x:e.x-n,y:e.y-r},f={x:ex(u.x/l),y:ex(u.y/s)};function g(v={}){const{dir:y="ltr",orientation:A="horizontal",inverted:C}=v,w=typeof C=="object"?C.x:C,R=typeof C=="object"?C.y:C;return A==="horizontal"?y==="rtl"||w?1-f.x:f.x:R?1-f.y:f.y}return{offset:u,percent:f,getPercentValue:g}}function aR(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,l=()=>!!e.pointerLockElement;function s(){}function u(g){l(),console.error("PointerLock error occurred:",g),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const f=[Nr(e,"pointerlockchange",s,!1),Nr(e,"pointerlockerror",u,!1)];return()=>{f.forEach(g=>g()),e.exitPointerLock()}}var af="default",Av="",Yg=new WeakMap;function lR(e={}){const{target:t,doc:n}=e,r=n??document,l=r.documentElement;return mv()?(af==="default"&&(Av=l.style.webkitUserSelect,l.style.webkitUserSelect="none"),af="disabled"):t&&(Yg.set(t,t.style.userSelect),t.style.userSelect="none"),()=>oR({target:t,doc:r})}function oR(e={}){const{target:t,doc:n}=e,l=(n??document).documentElement;if(mv()){if(af!=="disabled")return;af="restoring",setTimeout(()=>{ux(()=>{af==="restoring"&&(l.style.webkitUserSelect==="none"&&(l.style.webkitUserSelect=Av||""),Av="",af="default")})},300)}else if(t&&Yg.has(t)){const s=Yg.get(t);t.style.userSelect==="none"&&(t.style.userSelect=s??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Yg.delete(t)}}function hx(e={}){const{defer:t,target:n,...r}=e,l=t?zt:u=>u(),s=[];return s.push(l(()=>{const u=typeof n=="function"?n():n;s.push(lR({...r,target:u}))})),()=>{s.forEach(u=>u?.())}}function sR(e,t){const{onPointerMove:n,onPointerUp:r}=t,s=[Nr(e,"pointermove",u=>{const f=BO(u),g=Math.sqrt(f.x**2+f.y**2),v=u.pointerType==="touch"?10:5;if(!(g<v)){if(u.pointerType==="mouse"&&u.button===0){r();return}n({point:f,event:u})}},!1),Nr(e,"pointerup",r,!1),Nr(e,"pointercancel",r,!1),Nr(e,"contextmenu",r,!1),hx({doc:e})];return()=>{s.forEach(u=>u())}}function Vg(e,t){return Array.from(e?.querySelectorAll(t)??[])}function uR(e,t){return e?.querySelector(t)??null}var Sv=e=>e.id;function cR(e,t,n=Sv){return e.find(r=>n(r)===t)}function Ev(e,t,n=Sv){const r=cR(e,t,n);return r?e.indexOf(r):-1}function fR(e,t,n=!0){let r=Ev(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function dR(e,t,n=!0){let r=Ev(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var hR=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),gR=e=>hR(e.dataset?.valuetext??e.textContent??""),pR=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function mR(e,t,n,r=Sv){const l=n?Ev(e,n,r):-1;let s=n?gO(e,l):e;return t.length===1&&(s=s.filter(f=>r(f)!==n)),s.find(f=>pR(gR(f),t))}function vR(e,t){if(!e)return pO;const n=Object.keys(t).reduce((r,l)=>(r[l]=e.style.getPropertyValue(l),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function bR(e,t){const{state:n,activeId:r,key:l,timeout:s=350,itemToId:u}=t,f=n.keysSoFar+l,v=f.length>1&&Array.from(f).every(R=>R===f[0])?f[0]:f;let y=e.slice();const A=mR(y,v,r,u);function C(){clearTimeout(n.timer),n.timer=-1}function w(R){n.keysSoFar=R,C(),R!==""&&(n.timer=+setTimeout(()=>{w(""),C()},s))}return w(f),A}var Ld=Object.assign(bR,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:yR});function yR(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function xR(e,t,n){const{signal:r}=t;return[new Promise((u,f)=>{const g=setTimeout(()=>{f(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(g),f(new Error("Promise aborted"))}),e.then(v=>{r.aborted||(clearTimeout(g),u(v))}).catch(v=>{r.aborted||(clearTimeout(g),f(v))})}),()=>t.abort()]}function AR(e,t){const{timeout:n,rootNode:r}=t,l=hr(r),s=fl(r),u=new l.AbortController;return xR(new Promise(f=>{const g=e();if(g){f(g);return}const v=new l.MutationObserver(()=>{const y=e();y&&y.isConnected&&(v.disconnect(),f(y))});v.observe(s.body,{childList:!0,subtree:!0})}),u,n)}var SR=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),ER=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,gx=e=>{const t={};let n;for(;n=ER.exec(e);)t[n[1]]=n[2];return t},CR=(e,t)=>{if(fv(e)){if(fv(t))return`${e};${t}`;e=gx(e)}else fv(t)&&(t=gx(t));return Object.assign({},e??{},t??{})};function px(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=Fg(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=SR(t[r],n[r]);continue}if(r==="style"){t[r]=CR(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function mx(e,t,n){let r=[],l;return s=>{const u=e(s);return(u.length!==r.length||u.some((g,v)=>!cl(r[v],g)))&&(r=u,l=t(...u)),l}}function Ns(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function XU(e){return e}function vx(){return{guards:Ns(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}function bx(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const l=r(t);typeof l=="function"&&n.push(l)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function wR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Cv=e=>{const t=Te.memo(Te.forwardRef((n,r)=>{const{asChild:l,children:s,...u}=n;if(!l)return Te.createElement(e,{...u,ref:r},s);if(!Te.isValidElement(s))return null;const f=Te.Children.only(s),g=wR(f);return Te.cloneElement(f,{...px(u,f.props),ref:r?bx(r,g):g})}));return t.displayName=e.displayName||e.name,t},kR=(()=>{const e=new Map;return new Proxy(Cv,{apply(t,n,r){return Cv(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Cv(r)),e.get(r)}})})();var ut=()=>e=>Array.from(new Set(e));const Xg=Rs("span"),{withContext:TR}=tf({key:"text"}),gr=TR("p");var nt=(e,t=[])=>({parts:(...n)=>{if(_R(t))return nt(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>nt(e,[...t,...n]),omit:(...n)=>nt(e,t.filter(r=>!n.includes(r))),rename:n=>nt(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${lf(e)}"][data-part="${lf(r)}"]`,`& [data-scope="${lf(e)}"][data-part="${lf(r)}"]`].join(", "),attrs:{"data-scope":lf(e),"data-part":lf(r)}}}),{})}),lf=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),_R=e=>e.length===0,yx=nt("collapsible").parts("root","trigger","content","indicator");yx.build(),ut()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var OR=Object.defineProperty,RR=(e,t,n)=>t in e?OR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wv=(e,t,n)=>RR(e,t+"",n),FR=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},kv=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:l}=this.getChannelRange(e);return lO(n,r,l)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:l}=this.getChannelRange(e),s=oO(t,n,r,l);return Q1(s,n,r,l)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let l=this.clone();return l[e]=zi(t,n,r),l}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(u=>u!==n),l=n||this.getChannels().find(u=>u!==r),s=this.getChannels().find(u=>u!==r&&u!==l);return{xChannel:r,yChannel:l,zChannel:s}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:l}=this.getChannelRange(e),s=Q1(zi(this.getChannelValue(e)+t,n,r),n,r,l);return this.withChannelValue(e,s)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return FR(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},IR=/^#[\da-f]+$/i,NR=/^rgba?\((.*)\)$/,PR=/[^#]/gi,xx=class Pm extends kv{constructor(t,n,r,l){super(),this.red=t,this.green=n,this.blue=r,this.alpha=l}static parse(t){let n=[];if(IR.test(t)&&[4,5,7,9].includes(t.length)){const l=(t.length<6?t.replace(PR,"$&$&"):t).slice(1).split("");for(;l.length>0;)n.push(parseInt(l.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(NR);return r?.[1]&&(n=r[1].split(",").map(l=>Number(l.trim())).map((l,s)=>zi(l,0,s<3?255:1))),n.length<3?void 0:new Pm(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,l=Math.min(t,n,r),s=Math.max(t,n,r),u=s-l,f=s===0?0:u/s;let g=0;if(u!==0){switch(s){case t:g=(n-r)/u+(n<r?6:0);break;case n:g=(r-t)/u+2;break;case r:g=(t-n)/u+4;break}g/=6}return new Ov(mn(g*360,2),mn(f*100,2),mn(s*100,2),mn(this.alpha,2))}toHSL(){const t=this.red/255,n=this.green/255,r=this.blue/255,l=Math.min(t,n,r),s=Math.max(t,n,r),u=(s+l)/2,f=s-l;let g=-1,v=-1;if(f===0)g=v=0;else{switch(v=f/(u<.5?s+l:2-s-l),s){case t:g=(n-r)/f+(n<r?6:0);break;case n:g=(r-t)/f+2;break;case r:g=(t-n)/f+4;break}g/=6}return new _v(mn(g*360,2),mn(v*100,2),mn(u*100,2),mn(this.alpha,2))}clone(){return new Pm(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return new Intl.NumberFormat(n,r).format(l)}getChannelRange(t){switch(t){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: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return Pm.colorChannels}};wv(xx,"colorChannels",["red","green","blue"]);var Tv=xx,zR=/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+)?)\)/,Ax=class zm extends kv{constructor(t,n,r,l){super(),this.hue=t,this.saturation=n,this.lightness=r,this.alpha=l}static parse(t){let n;if(n=t.match(zR)){const[r,l,s,u]=(n[1]??n[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new zm(G1(r,360),zi(l,0,100),zi(s,0,100),zi(u??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${mn(this.saturation,2)}%, ${mn(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${mn(this.saturation,2)}%, ${mn(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Ov(mn(this.hue,2),mn(t*100,2),mn(r*100,2),mn(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,l=n*Math.min(r,1-r),s=(u,f=(u+t/30)%12)=>r-l*Math.max(Math.min(f-3,9-f,1),-1);return new Tv(Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255),mn(this.alpha,2))}clone(){return new zm(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(l/=100),new Intl.NumberFormat(n,r).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return zm.colorChannels}};wv(Ax,"colorChannels",["hue","saturation","lightness"]);var _v=Ax,DR=/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+)?)\)/,Sx=class Dm extends kv{constructor(t,n,r,l){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=l}static parse(t){let n;if(n=t.match(DR)){const[r,l,s,u]=(n[1]??n[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new Dm(G1(r,360),zi(l,0,100),zi(s,0,100),zi(u??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${mn(this.saturation,2)}%, ${mn(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${mn(this.saturation,2)}%, ${mn(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new _v(mn(this.hue,2),mn(t*100,2),mn(r*100,2),mn(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,l=(s,u=(s+t/60)%6)=>r-n*r*Math.max(Math.min(u,4-u,1),0);return new Tv(Math.round(l(5)*255),Math.round(l(3)*255),Math.round(l(1)*255),mn(this.alpha,2))}clone(){return new Dm(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(l/=100),new Intl.NumberFormat(n,r).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Dm.colorChannels}};wv(Sx,"colorChannels",["hue","saturation","brightness"]);var Ov=Sx,MR="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",WR=e=>{const t=new Map,n=e.split(",");for(let r=0;r<n.length;r++){const[l,s]=n[r].split(":");t.set(l,`#${s}`),l.includes("gray")&&t.set(l.replace("gray","grey"),`#${s}`)}return t},Ex=WR(MR),Bg=e=>{if(Ex.has(e))return Bg(Ex.get(e));const t=Tv.parse(e)||Ov.parse(e)||_v.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(n,Bg),n}return t};const LR=["top","right","bottom","left"],Ps=Math.min,na=Math.max,Hg=Math.round,Ug=Math.floor,uo=e=>({x:e,y:e}),YR={left:"right",right:"left",bottom:"top",top:"bottom"},VR={start:"end",end:"start"};function Rv(e,t,n){return na(e,Ps(t,n))}function Go(e,t){return typeof e=="function"?e(t):e}function Zo(e){return e.split("-")[0]}function of(e){return e.split("-")[1]}function Fv(e){return e==="x"?"y":"x"}function Iv(e){return e==="y"?"height":"width"}const XR=new Set(["top","bottom"]);function co(e){return XR.has(Zo(e))?"y":"x"}function Nv(e){return Fv(co(e))}function BR(e,t,n){n===void 0&&(n=!1);const r=of(e),l=Nv(e),s=Iv(l);let u=l==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=Gg(u)),[u,Gg(u)]}function HR(e){const t=Gg(e);return[Pv(e),t,Pv(t)]}function Pv(e){return e.replace(/start|end/g,t=>VR[t])}const Cx=["left","right"],wx=["right","left"],UR=["top","bottom"],GR=["bottom","top"];function ZR(e,t,n){switch(e){case"top":case"bottom":return n?t?wx:Cx:t?Cx:wx;case"left":case"right":return t?UR:GR;default:return[]}}function QR(e,t,n,r){const l=of(e);let s=ZR(Zo(e),n==="start",r);return l&&(s=s.map(u=>u+"-"+l),t&&(s=s.concat(s.map(Pv)))),s}function Gg(e){return e.replace(/left|right|bottom|top/g,t=>YR[t])}function KR(e){return{top:0,right:0,bottom:0,left:0,...e}}function kx(e){return typeof e!="number"?KR(e):{top:e,right:e,bottom:e,left:e}}function Zg(e){const{x:t,y:n,width:r,height:l}=e;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function Tx(e,t,n){let{reference:r,floating:l}=e;const s=co(t),u=Nv(t),f=Iv(u),g=Zo(t),v=s==="y",y=r.x+r.width/2-l.width/2,A=r.y+r.height/2-l.height/2,C=r[f]/2-l[f]/2;let w;switch(g){case"top":w={x:y,y:r.y-l.height};break;case"bottom":w={x:y,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:A};break;case"left":w={x:r.x-l.width,y:A};break;default:w={x:r.x,y:r.y}}switch(of(t)){case"start":w[u]-=C*(n&&v?-1:1);break;case"end":w[u]+=C*(n&&v?-1:1);break}return w}const jR=async(e,t,n)=>{const{placement:r="bottom",strategy:l="absolute",middleware:s=[],platform:u}=n,f=s.filter(Boolean),g=await(u.isRTL==null?void 0:u.isRTL(t));let v=await u.getElementRects({reference:e,floating:t,strategy:l}),{x:y,y:A}=Tx(v,r,g),C=r,w={},R=0;for(let N=0;N<f.length;N++){const{name:Y,fn:L}=f[N],{x:X,y:V,data:re,reset:U}=await L({x:y,y:A,initialPlacement:r,placement:C,strategy:l,middlewareData:w,rects:v,platform:u,elements:{reference:e,floating:t}});y=X??y,A=V??A,w={...w,[Y]:{...w[Y],...re}},U&&R<=50&&(R++,typeof U=="object"&&(U.placement&&(C=U.placement),U.rects&&(v=U.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:l}):U.rects),{x:y,y:A}=Tx(v,C,g)),N=-1)}return{x:y,y:A,placement:C,strategy:l,middlewareData:w}};async function Yd(e,t){var n;t===void 0&&(t={});const{x:r,y:l,platform:s,rects:u,elements:f,strategy:g}=e,{boundary:v="clippingAncestors",rootBoundary:y="viewport",elementContext:A="floating",altBoundary:C=!1,padding:w=0}=Go(t,e),R=kx(w),Y=f[C?A==="floating"?"reference":"floating":A],L=Zg(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(Y)))==null||n?Y:Y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:v,rootBoundary:y,strategy:g})),X=A==="floating"?{x:r,y:l,width:u.floating.width,height:u.floating.height}:u.reference,V=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),re=await(s.isElement==null?void 0:s.isElement(V))?await(s.getScale==null?void 0:s.getScale(V))||{x:1,y:1}:{x:1,y:1},U=Zg(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:X,offsetParent:V,strategy:g}):X);return{top:(L.top-U.top+R.top)/re.y,bottom:(U.bottom-L.bottom+R.bottom)/re.y,left:(L.left-U.left+R.left)/re.x,right:(U.right-L.right+R.right)/re.x}}const JR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:l,rects:s,platform:u,elements:f,middlewareData:g}=t,{element:v,padding:y=0}=Go(e,t)||{};if(v==null)return{};const A=kx(y),C={x:n,y:r},w=Nv(l),R=Iv(w),N=await u.getDimensions(v),Y=w==="y",L=Y?"top":"left",X=Y?"bottom":"right",V=Y?"clientHeight":"clientWidth",re=s.reference[R]+s.reference[w]-C[w]-s.floating[R],U=C[w]-s.reference[w],J=await(u.getOffsetParent==null?void 0:u.getOffsetParent(v));let de=J?J[V]:0;(!de||!await(u.isElement==null?void 0:u.isElement(J)))&&(de=f.floating[V]||s.floating[R]);const ae=re/2-U/2,ie=de/2-N[R]/2-1,H=Ps(A[L],ie),Ae=Ps(A[X],ie),ce=H,_e=de-N[R]-Ae,$=de/2-N[R]/2+ae,ue=Rv(ce,$,_e),z=!g.arrow&&of(l)!=null&&$!==ue&&s.reference[R]/2-($<ce?H:Ae)-N[R]/2<0,Q=z?$<ce?$-ce:$-_e:0;return{[w]:C[w]+Q,data:{[w]:ue,centerOffset:$-ue-Q,...z&&{alignmentOffset:Q}},reset:z}}}),qR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:l,middlewareData:s,rects:u,initialPlacement:f,platform:g,elements:v}=t,{mainAxis:y=!0,crossAxis:A=!0,fallbackPlacements:C,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:N=!0,...Y}=Go(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const L=Zo(l),X=co(f),V=Zo(f)===f,re=await(g.isRTL==null?void 0:g.isRTL(v.floating)),U=C||(V||!N?[Gg(f)]:HR(f)),J=R!=="none";!C&&J&&U.push(...QR(f,N,R,re));const de=[f,...U],ae=await Yd(t,Y),ie=[];let H=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&ie.push(ae[L]),A){const $=BR(l,u,re);ie.push(ae[$[0]],ae[$[1]])}if(H=[...H,{placement:l,overflows:ie}],!ie.every($=>$<=0)){var Ae,ce;const $=(((Ae=s.flip)==null?void 0:Ae.index)||0)+1,ue=de[$];if(ue&&(!(A==="alignment"?X!==co(ue):!1)||H.every(Ce=>co(Ce.placement)===X?Ce.overflows[0]>0:!0)))return{data:{index:$,overflows:H},reset:{placement:ue}};let z=(ce=H.filter(Q=>Q.overflows[0]<=0).sort((Q,Ce)=>Q.overflows[1]-Ce.overflows[1])[0])==null?void 0:ce.placement;if(!z)switch(w){case"bestFit":{var _e;const Q=(_e=H.filter(Ce=>{if(J){const Ee=co(Ce.placement);return Ee===X||Ee==="y"}return!0}).map(Ce=>[Ce.placement,Ce.overflows.filter(Ee=>Ee>0).reduce((Ee,k)=>Ee+k,0)]).sort((Ce,Ee)=>Ce[1]-Ee[1])[0])==null?void 0:_e[0];Q&&(z=Q);break}case"initialPlacement":z=f;break}if(l!==z)return{reset:{placement:z}}}return{}}}};function _x(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ox(e){return LR.some(t=>e[t]>=0)}const $R=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...l}=Go(e,t);switch(r){case"referenceHidden":{const s=await Yd(t,{...l,elementContext:"reference"}),u=_x(s,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Ox(u)}}}case"escaped":{const s=await Yd(t,{...l,altBoundary:!0}),u=_x(s,n.floating);return{data:{escapedOffsets:u,escaped:Ox(u)}}}default:return{}}}}},Rx=new Set(["left","top"]);async function e9(e,t){const{placement:n,platform:r,elements:l}=e,s=await(r.isRTL==null?void 0:r.isRTL(l.floating)),u=Zo(n),f=of(n),g=co(n)==="y",v=Rx.has(u)?-1:1,y=s&&g?-1:1,A=Go(t,e);let{mainAxis:C,crossAxis:w,alignmentAxis:R}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};return f&&typeof R=="number"&&(w=f==="end"?R*-1:R),g?{x:w*y,y:C*v}:{x:C*v,y:w*y}}const t9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:l,y:s,placement:u,middlewareData:f}=t,g=await e9(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:l+g.x,y:s+g.y,data:{...g,placement:u}}}}},n9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:l}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:f={fn:Y=>{let{x:L,y:X}=Y;return{x:L,y:X}}},...g}=Go(e,t),v={x:n,y:r},y=await Yd(t,g),A=co(Zo(l)),C=Fv(A);let w=v[C],R=v[A];if(s){const Y=C==="y"?"top":"left",L=C==="y"?"bottom":"right",X=w+y[Y],V=w-y[L];w=Rv(X,w,V)}if(u){const Y=A==="y"?"top":"left",L=A==="y"?"bottom":"right",X=R+y[Y],V=R-y[L];R=Rv(X,R,V)}const N=f.fn({...t,[C]:w,[A]:R});return{...N,data:{x:N.x-n,y:N.y-r,enabled:{[C]:s,[A]:u}}}}}},r9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:l,rects:s,middlewareData:u}=t,{offset:f=0,mainAxis:g=!0,crossAxis:v=!0}=Go(e,t),y={x:n,y:r},A=co(l),C=Fv(A);let w=y[C],R=y[A];const N=Go(f,t),Y=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(g){const V=C==="y"?"height":"width",re=s.reference[C]-s.floating[V]+Y.mainAxis,U=s.reference[C]+s.reference[V]-Y.mainAxis;w<re?w=re:w>U&&(w=U)}if(v){var L,X;const V=C==="y"?"width":"height",re=Rx.has(Zo(l)),U=s.reference[A]-s.floating[V]+(re&&((L=u.offset)==null?void 0:L[A])||0)+(re?0:Y.crossAxis),J=s.reference[A]+s.reference[V]+(re?0:((X=u.offset)==null?void 0:X[A])||0)-(re?Y.crossAxis:0);R<U?R=U:R>J&&(R=J)}return{[C]:w,[A]:R}}}},i9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:l,rects:s,platform:u,elements:f}=t,{apply:g=()=>{},...v}=Go(e,t),y=await Yd(t,v),A=Zo(l),C=of(l),w=co(l)==="y",{width:R,height:N}=s.floating;let Y,L;A==="top"||A==="bottom"?(Y=A,L=C===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(L=A,Y=C==="end"?"top":"bottom");const X=N-y.top-y.bottom,V=R-y.left-y.right,re=Ps(N-y[Y],X),U=Ps(R-y[L],V),J=!t.middlewareData.shift;let de=re,ae=U;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ae=V),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(de=X),J&&!C){const H=na(y.left,0),Ae=na(y.right,0),ce=na(y.top,0),_e=na(y.bottom,0);w?ae=R-2*(H!==0||Ae!==0?H+Ae:na(y.left,y.right)):de=N-2*(ce!==0||_e!==0?ce+_e:na(y.top,y.bottom))}await g({...t,availableWidth:ae,availableHeight:de});const ie=await u.getDimensions(f.floating);return R!==ie.width||N!==ie.height?{reset:{rects:!0}}:{}}}};function Qg(){return typeof window<"u"}function sf(e){return Fx(e)?(e.nodeName||"").toLowerCase():"#document"}function ra(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fo(e){var t;return(t=(Fx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fx(e){return Qg()?e instanceof Node||e instanceof ra(e).Node:!1}function dl(e){return Qg()?e instanceof Element||e instanceof ra(e).Element:!1}function ho(e){return Qg()?e instanceof HTMLElement||e instanceof ra(e).HTMLElement:!1}function Ix(e){return!Qg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ra(e).ShadowRoot}const a9=new Set(["inline","contents"]);function Vd(e){const{overflow:t,overflowX:n,overflowY:r,display:l}=hl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!a9.has(l)}const l9=new Set(["table","td","th"]);function o9(e){return l9.has(sf(e))}const s9=[":popover-open",":modal"];function Kg(e){return s9.some(t=>{try{return e.matches(t)}catch{return!1}})}const u9=["transform","translate","scale","rotate","perspective"],c9=["transform","translate","scale","rotate","perspective","filter"],f9=["paint","layout","strict","content"];function zv(e){const t=Dv(),n=dl(e)?hl(e):e;return u9.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||c9.some(r=>(n.willChange||"").includes(r))||f9.some(r=>(n.contain||"").includes(r))}function d9(e){let t=zs(e);for(;ho(t)&&!uf(t);){if(zv(t))return t;if(Kg(t))return null;t=zs(t)}return null}function Dv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const h9=new Set(["html","body","#document"]);function uf(e){return h9.has(sf(e))}function hl(e){return ra(e).getComputedStyle(e)}function jg(e){return dl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zs(e){if(sf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ix(e)&&e.host||fo(e);return Ix(t)?t.host:t}function Nx(e){const t=zs(e);return uf(t)?e.ownerDocument?e.ownerDocument.body:e.body:ho(t)&&Vd(t)?t:Nx(t)}function Xd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=Nx(e),s=l===((r=e.ownerDocument)==null?void 0:r.body),u=ra(l);if(s){const f=Mv(u);return t.concat(u,u.visualViewport||[],Vd(l)?l:[],f&&n?Xd(f):[])}return t.concat(l,Xd(l,[],n))}function Mv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Px(e){const t=hl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const l=ho(e),s=l?e.offsetWidth:n,u=l?e.offsetHeight:r,f=Hg(n)!==s||Hg(r)!==u;return f&&(n=s,r=u),{width:n,height:r,$:f}}function Wv(e){return dl(e)?e:e.contextElement}function cf(e){const t=Wv(e);if(!ho(t))return uo(1);const n=t.getBoundingClientRect(),{width:r,height:l,$:s}=Px(t);let u=(s?Hg(n.width):n.width)/r,f=(s?Hg(n.height):n.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const g9=uo(0);function zx(e){const t=ra(e);return!Dv()||!t.visualViewport?g9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function p9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ra(e)?!1:t}function Yu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),s=Wv(e);let u=uo(1);t&&(r?dl(r)&&(u=cf(r)):u=cf(e));const f=p9(s,n,r)?zx(s):uo(0);let g=(l.left+f.x)/u.x,v=(l.top+f.y)/u.y,y=l.width/u.x,A=l.height/u.y;if(s){const C=ra(s),w=r&&dl(r)?ra(r):r;let R=C,N=Mv(R);for(;N&&r&&w!==R;){const Y=cf(N),L=N.getBoundingClientRect(),X=hl(N),V=L.left+(N.clientLeft+parseFloat(X.paddingLeft))*Y.x,re=L.top+(N.clientTop+parseFloat(X.paddingTop))*Y.y;g*=Y.x,v*=Y.y,y*=Y.x,A*=Y.y,g+=V,v+=re,R=ra(N),N=Mv(R)}}return Zg({width:y,height:A,x:g,y:v})}function Lv(e,t){const n=jg(e).scrollLeft;return t?t.left+n:Yu(fo(e)).left+n}function Dx(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),l=r.left+t.scrollLeft-(n?0:Lv(e,r)),s=r.top+t.scrollTop;return{x:l,y:s}}function m9(e){let{elements:t,rect:n,offsetParent:r,strategy:l}=e;const s=l==="fixed",u=fo(r),f=t?Kg(t.floating):!1;if(r===u||f&&s)return n;let g={scrollLeft:0,scrollTop:0},v=uo(1);const y=uo(0),A=ho(r);if((A||!A&&!s)&&((sf(r)!=="body"||Vd(u))&&(g=jg(r)),ho(r))){const w=Yu(r);v=cf(r),y.x=w.x+r.clientLeft,y.y=w.y+r.clientTop}const C=u&&!A&&!s?Dx(u,g,!0):uo(0);return{width:n.width*v.x,height:n.height*v.y,x:n.x*v.x-g.scrollLeft*v.x+y.x+C.x,y:n.y*v.y-g.scrollTop*v.y+y.y+C.y}}function v9(e){return Array.from(e.getClientRects())}function b9(e){const t=fo(e),n=jg(e),r=e.ownerDocument.body,l=na(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=na(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+Lv(e);const f=-n.scrollTop;return hl(r).direction==="rtl"&&(u+=na(t.clientWidth,r.clientWidth)-l),{width:l,height:s,x:u,y:f}}function y9(e,t){const n=ra(e),r=fo(e),l=n.visualViewport;let s=r.clientWidth,u=r.clientHeight,f=0,g=0;if(l){s=l.width,u=l.height;const v=Dv();(!v||v&&t==="fixed")&&(f=l.offsetLeft,g=l.offsetTop)}return{width:s,height:u,x:f,y:g}}const x9=new Set(["absolute","fixed"]);function A9(e,t){const n=Yu(e,!0,t==="fixed"),r=n.top+e.clientTop,l=n.left+e.clientLeft,s=ho(e)?cf(e):uo(1),u=e.clientWidth*s.x,f=e.clientHeight*s.y,g=l*s.x,v=r*s.y;return{width:u,height:f,x:g,y:v}}function Mx(e,t,n){let r;if(t==="viewport")r=y9(e,n);else if(t==="document")r=b9(fo(e));else if(dl(t))r=A9(t,n);else{const l=zx(e);r={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Zg(r)}function Wx(e,t){const n=zs(e);return n===t||!dl(n)||uf(n)?!1:hl(n).position==="fixed"||Wx(n,t)}function S9(e,t){const n=t.get(e);if(n)return n;let r=Xd(e,[],!1).filter(f=>dl(f)&&sf(f)!=="body"),l=null;const s=hl(e).position==="fixed";let u=s?zs(e):e;for(;dl(u)&&!uf(u);){const f=hl(u),g=zv(u);!g&&f.position==="fixed"&&(l=null),(s?!g&&!l:!g&&f.position==="static"&&!!l&&x9.has(l.position)||Vd(u)&&!g&&Wx(e,u))?r=r.filter(y=>y!==u):l=f,u=zs(u)}return t.set(e,r),r}function E9(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e;const u=[...n==="clippingAncestors"?Kg(t)?[]:S9(t,this._c):[].concat(n),r],f=u[0],g=u.reduce((v,y)=>{const A=Mx(t,y,l);return v.top=na(A.top,v.top),v.right=Ps(A.right,v.right),v.bottom=Ps(A.bottom,v.bottom),v.left=na(A.left,v.left),v},Mx(t,f,l));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function C9(e){const{width:t,height:n}=Px(e);return{width:t,height:n}}function w9(e,t,n){const r=ho(t),l=fo(t),s=n==="fixed",u=Yu(e,!0,s,t);let f={scrollLeft:0,scrollTop:0};const g=uo(0);function v(){g.x=Lv(l)}if(r||!r&&!s)if((sf(t)!=="body"||Vd(l))&&(f=jg(t)),r){const w=Yu(t,!0,s,t);g.x=w.x+t.clientLeft,g.y=w.y+t.clientTop}else l&&v();s&&!r&&l&&v();const y=l&&!r&&!s?Dx(l,f):uo(0),A=u.left+f.scrollLeft-g.x-y.x,C=u.top+f.scrollTop-g.y-y.y;return{x:A,y:C,width:u.width,height:u.height}}function Yv(e){return hl(e).position==="static"}function Lx(e,t){if(!ho(e)||hl(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fo(e)===n&&(n=n.ownerDocument.body),n}function Yx(e,t){const n=ra(e);if(Kg(e))return n;if(!ho(e)){let l=zs(e);for(;l&&!uf(l);){if(dl(l)&&!Yv(l))return l;l=zs(l)}return n}let r=Lx(e,t);for(;r&&o9(r)&&Yv(r);)r=Lx(r,t);return r&&uf(r)&&Yv(r)&&!zv(r)?n:r||d9(e)||n}const k9=async function(e){const t=this.getOffsetParent||Yx,n=this.getDimensions,r=await n(e.floating);return{reference:w9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function T9(e){return hl(e).direction==="rtl"}const _9={convertOffsetParentRelativeRectToViewportRelativeRect:m9,getDocumentElement:fo,getClippingRect:E9,getOffsetParent:Yx,getElementRects:k9,getClientRects:v9,getDimensions:C9,getScale:cf,isElement:dl,isRTL:T9};function Vx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function O9(e,t){let n=null,r;const l=fo(e);function s(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function u(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),s();const v=e.getBoundingClientRect(),{left:y,top:A,width:C,height:w}=v;if(f||t(),!C||!w)return;const R=Ug(A),N=Ug(l.clientWidth-(y+C)),Y=Ug(l.clientHeight-(A+w)),L=Ug(y),V={rootMargin:-R+"px "+-N+"px "+-Y+"px "+-L+"px",threshold:na(0,Ps(1,g))||1};let re=!0;function U(J){const de=J[0].intersectionRatio;if(de!==g){if(!re)return u();de?u(!1,de):r=setTimeout(()=>{u(!1,1e-7)},1e3)}de===1&&!Vx(v,e.getBoundingClientRect())&&u(),re=!1}try{n=new IntersectionObserver(U,{...V,root:l.ownerDocument})}catch{n=new IntersectionObserver(U,V)}n.observe(e)}return u(!0),s}function R9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:g=!1}=r,v=Wv(e),y=l||s?[...v?Xd(v):[],...Xd(t)]:[];y.forEach(L=>{l&&L.addEventListener("scroll",n,{passive:!0}),s&&L.addEventListener("resize",n)});const A=v&&f?O9(v,n):null;let C=-1,w=null;u&&(w=new ResizeObserver(L=>{let[X]=L;X&&X.target===v&&w&&(w.unobserve(t),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var V;(V=w)==null||V.observe(t)})),n()}),v&&!g&&w.observe(v),w.observe(t));let R,N=g?Yu(e):null;g&&Y();function Y(){const L=Yu(e);N&&!Vx(N,L)&&n(),N=L,R=requestAnimationFrame(Y)}return n(),()=>{var L;y.forEach(X=>{l&&X.removeEventListener("scroll",n),s&&X.removeEventListener("resize",n)}),A?.(),(L=w)==null||L.disconnect(),w=null,g&&cancelAnimationFrame(R)}}const F9=t9,I9=n9,N9=qR,P9=i9,z9=$R,D9=JR,M9=r9,W9=(e,t,n)=>{const r=new Map,l={platform:_9,...n},s={...l.platform,_c:r};return jR(e,t,{...l,platform:s})};function Xx(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const l={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...l,toJSON:()=>l}}function L9(e){if(!e)return Xx();const{x:t,y:n,width:r,height:l}=e;return Xx(t,n,r,l)}function Y9(e,t){return{contextElement:Di(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t?.(n);return r||!n?L9(r):n.getBoundingClientRect()}}}var Bx=e=>({variable:e,reference:`var(${e})`}),Hx={transformOrigin:Bx("--transform-origin"),arrowOffset:Bx("--arrow-offset")},V9=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),X9={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:n}){const{arrow:r}=n,l=V9(r)[e],{floating:s}=t;return s.style.setProperty(Hx.transformOrigin.variable,l),{data:{transformOrigin:l}}}},B9={name:"rects",fn({rects:e}){return{data:e}}},H9=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:l}=n.arrow,s=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:l!=null?`${l}px`:"",[s]:`calc(100% + ${Hx.arrowOffset.reference})`}),{}}}};function U9(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function G9(e){return e.split("-")[0]}var Z9={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Ux(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Gx(e){return K_(e.boundary)}function Q9(e,t){if(e)return D9({element:e,padding:t.arrowPadding})}function K9(e,t){if(!X_(t.offset??t.gutter))return F9(({placement:n})=>{const r=(e?.clientHeight||0)/2,l=t.offset?.mainAxis??t.gutter,s=typeof l=="number"?l+r:l??r,{hasAlign:u}=U9(n),f=u?void 0:t.shift,g=t.offset?.crossAxis??f;return J1({crossAxis:g,mainAxis:s,alignmentAxis:t.shift})})}function j9(e){if(e.flip)return N9({boundary:Gx(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function J9(e){if(!(!e.slide&&!e.overlap))return I9({boundary:Gx(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:M9()})}function q9(e){return P9({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:l}){const s=t.floating,u=Math.round(n.reference.width);l=Math.floor(l),r=Math.floor(r),s.style.setProperty("--reference-width",`${u}px`),s.style.setProperty("--available-width",`${l}px`),s.style.setProperty("--available-height",`${r}px`)}})}function $9(e){if(e.hideWhenDetached)return z9({strategy:"referenceHidden",boundary:e.boundary?.()??"clippingAncestors"})}function e3(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function t3(e,t,n={}){const r=Y9(e,n.getAnchorRect);if(!t||!r)return;const l=Object.assign({},Z9,n),s=t.querySelector("[data-part=arrow]"),u=[K9(s,l),j9(l),J9(l),Q9(s,l),H9(s),X9,q9(l),$9(l),B9],{placement:f,strategy:g,onComplete:v,onPositioned:y}=l,A=async()=>{if(!r||!t)return;const N=await W9(r,t,{placement:f,middleware:u,strategy:g});v?.(N),y?.({placed:!0});const Y=hr(t),L=Ux(Y,N.x),X=Ux(Y,N.y);t.style.setProperty("--x",`${L}px`),t.style.setProperty("--y",`${X}px`),l.hideWhenDetached&&(N.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const V=t.firstElementChild;if(V){const re=rx(V);t.style.setProperty("--z-index",re.zIndex)}},C=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:A,floatingElement:t}),y?.({placed:!0})):await A()},w=e3(l.listeners),R=l.listeners?R9(r,t,C,w):j_;return C(),()=>{R?.(),y?.({placed:!1})}}function gl(e,t,n={}){const{defer:r,...l}=n,s=r?zt:f=>f(),u=[];return u.push(s(()=>{const f=typeof e=="function"?e():e,g=typeof t=="function"?t():t;u.push(t3(f,g,l))})),()=>{u.forEach(f=>f?.())}}function n3(e){const t={each(n){for(let r=0;r<e.frames?.length;r+=1){const l=e.frames[r];l&&n(l)}},addEventListener(n,r,l){return t.each(s=>{try{s.document.addEventListener(n,r,l)}catch{}}),()=>{try{t.removeEventListener(n,r,l)}catch{}}},removeEventListener(n,r,l){t.each(s=>{try{s.document.removeEventListener(n,r,l)}catch{}})}};return t}function r3(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,l)=>{try{t?.addEventListener(n,r,l)}catch{}return()=>{try{t?.removeEventListener(n,r,l)}catch{}}},removeEventListener:(n,r,l)=>{try{t?.removeEventListener(n,r,l)}catch{}}}}var Zx="pointerdown.outside",Qx="focus.outside";function i3(e){for(const t of e)if(Di(t)&&bv(t))return!0;return!1}var Kx=e=>"clientY"in e;function a3(e,t){if(!Kx(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function l3(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function jx(e,t){if(!t||!Kx(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,l=t.scrollWidth>t.clientWidth,s=l&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(l?16:0)},f={x:e.clientX,y:e.clientY};return l3(u,f)?r||s:!1}function o3(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:l,onInteractOutside:s,defer:u}=t;if(!e)return;const f=fl(e),g=hr(e),v=n3(g),y=r3(g);function A(X,V){if(!Di(V)||!V.isConnected||Lu(e,V)||a3(e,X))return!1;const re=f.querySelector(`[aria-controls="${e.id}"]`);if(re){const J=Wg(re);if(jx(X,J))return!1}const U=Wg(e);return jx(X,U)?!1:!n?.(V)}const C=new Set,w=Wd(e?.getRootNode());function R(X){function V(re){const U=u&&!ax()?zt:ae=>ae(),J=re??X,de=J?.composedPath?.()??[J?.target];U(()=>{const ae=w?de[0]:Is(X);if(!(!e||!A(X,ae))){if(l||s){const ie=Fg(l,s);e.addEventListener(Zx,ie,{once:!0})}Jx(e,Zx,{bubbles:!1,cancelable:!0,detail:{originalEvent:J,contextmenu:YO(J),focusable:i3(de),target:ae}})}})}X.pointerType==="touch"?(C.forEach(re=>re()),C.add(Nr(f,"click",V,{once:!0})),C.add(y.addEventListener("click",V,{once:!0})),C.add(v.addEventListener("click",V,{once:!0}))):V()}const N=new Set,Y=setTimeout(()=>{N.add(Nr(f,"pointerdown",R,!0)),N.add(y.addEventListener("pointerdown",R,!0)),N.add(v.addEventListener("pointerdown",R,!0))},0);function L(X){(u?zt:re=>re())(()=>{const re=Is(X);if(!(!e||!A(X,re))){if(r||s){const U=Fg(r,s);e.addEventListener(Qx,U,{once:!0})}Jx(e,Qx,{bubbles:!1,cancelable:!0,detail:{originalEvent:X,contextmenu:!1,focusable:bv(re),target:re}})}})}return ax()||(N.add(Nr(f,"focusin",L,!0)),N.add(y.addEventListener("focusin",L,!0)),N.add(v.addEventListener("focusin",L,!0))),()=>{clearTimeout(Y),C.forEach(X=>X()),N.forEach(X=>X())}}function s3(e,t){const{defer:n}=t,r=n?zt:s=>s(),l=[];return l.push(r(()=>{const s=typeof e=="function"?e():e;l.push(o3(s,t))})),()=>{l.forEach(s=>s?.())}}function Jx(e,t,n){const r=e.ownerDocument.defaultView||window,l=new r.CustomEvent(t,n);return e.dispatchEvent(l)}function u3(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return Nr(fl(e),"keydown",n,{capture:!0})}var pl={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<n},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>Lu(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Lu(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>r.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}},qx;function $x(){pl.layers.forEach(({node:e})=>{e.style.pointerEvents=pl.isBelowPointerBlockingLayer(e)?"none":"auto"})}function c3(e){e.style.pointerEvents=""}function f3(e,t){const n=fl(e),r=[];return pl.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(qx=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t?.forEach(l=>{const[s,u]=AR(()=>{const f=l();return Di(f)?f:null},{timeout:1e3});s.then(f=>r.push(vR(f,{pointerEvents:"auto"}))),r.push(u)}),()=>{pl.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=qx,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(l=>l()))}}function d3(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){q1("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,pointerBlocking:l,exclude:s,debug:u}=t,f={dismiss:r,node:e,pointerBlocking:l};pl.add(f),$x();function g(w){const R=Is(w.detail.originalEvent);pl.isBelowPointerBlockingLayer(e)||pl.isInBranch(R)||(t.onPointerDownOutside?.(w),t.onInteractOutside?.(w),!w.defaultPrevented&&(u&&console.log("onPointerDownOutside:",w.detail.originalEvent),r?.()))}function v(w){const R=Is(w.detail.originalEvent);pl.isInBranch(R)||(t.onFocusOutside?.(w),t.onInteractOutside?.(w),!w.defaultPrevented&&(u&&console.log("onFocusOutside:",w.detail.originalEvent),r?.()))}function y(w){pl.isTopMost(e)&&(t.onEscapeKeyDown?.(w),!w.defaultPrevented&&r&&(w.preventDefault(),r()))}function A(w){if(!e)return!1;const R=typeof s=="function"?s():s,N=Array.isArray(R)?R:[R],Y=t.persistentElements?.map(L=>L()).filter(Di);return Y&&N.push(...Y),N.some(L=>Lu(L,w))||pl.isInNestedLayer(e,w)}const C=[l?f3(e,t.persistentElements):void 0,u3(e,y),s3(e,{exclude:A,onFocusOutside:v,onPointerDownOutside:g,defer:t.defer})];return()=>{pl.remove(e),$x(),c3(e),C.forEach(w=>w?.())}}function Bd(e,t){const{defer:n}=t,r=n?zt:s=>s(),l=[];return l.push(r(()=>{const s=V1(e)?e():e;l.push(d3(s,t))})),()=>{l.forEach(s=>s?.())}}var eA=nt("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"]);eA.build();var h3=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,g3=e=>e.ids?.control??`color-picker:${e.id}:control`,p3=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,m3=e=>e.ids?.content??`color-picker:${e.id}:content`,v3=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,b3=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,y3=e=>e.ids?.area??`color-picker:${e.id}:area`,x3=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,A3=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,S3=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Jg=e=>e.getById(m3(e)),E3=e=>e.getById(x3(e)),C3=(e,t)=>e.getById(S3(e,t)),w3=e=>e.getById(b3(e)),tA=e=>e.getById(h3(e)),k3=e=>e.getById(y3(e)),T3=(e,t)=>{const n=k3(e);if(!n)return;const{percent:r}=dx(t,n);return r},_3=e=>e.getById(g3(e)),Vv=e=>e.getById(p3(e)),O3=e=>e.getById(v3(e)),R3=(e,t)=>e.getById(A3(e,t)),F3=(e,t,n)=>{const r=R3(e,n);if(!r)return;const{percent:l}=dx(t,r);return l},I3=e=>[...Vg(Jg(e),"input[data-channel]"),...Vg(_3(e),"input[data-channel]")];function N3(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var nA=e=>Bg(e),P3=/^[0-9a-fA-F]{3,8}$/;function z3(e){return P3.test(e)}function D3(e){return e.startsWith("#")?e:z3(e)?`#${e}`:e}var{and:M3}=Ns();M3("isOpenControlled","closeOnSelect");function rA(e,t,n){const r=I3(e);zt(()=>{r.forEach(l=>{const s=l.dataset.channel;Dg(l,N3(n||t,s))})})}function W3(e,t){const n=w3(e);n&&zt(()=>Dg(n,t))}ut()(["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"]),ut()(["xChannel","yChannel"]),ut()(["channel","orientation"]),ut()(["value","disabled"]),ut()(["value","respectAlpha"]),ut()(["size"]);var iA=nt("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");iA.build();var aA=e=>e.ids?.root??`accordion:${e.id}`,lA=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,L3=e=>e.getById(aA(e)),qg=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(aA(e))}']:not([disabled])`;return Vg(L3(e),n)},Y3=e=>Dd(qg(e)),V3=e=>uv(qg(e)),X3=(e,t)=>fR(qg(e),lA(e,t)),B3=(e,t)=>dR(qg(e),lA(e,t)),{and:H3,not:U3}=Ns();H3("isExpanded","canToggle"),U3("isExpanded"),ut()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),ut()(["value","disabled"]);var Hd=(e,t)=>({x:e,y:t});function G3(e){const{x:t,y:n,width:r,height:l}=e,s=t+r/2,u=n+l/2;return{x:t,y:n,width:r,height:l,minX:t,minY:n,maxX:t+r,maxY:n+l,midX:s,midY:u,center:Hd(s,u)}}function Z3(e){const t=Hd(e.minX,e.minY),n=Hd(e.maxX,e.minY),r=Hd(e.maxX,e.maxY),l=Hd(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:l}}function Q3(e,t){const n=G3(e),{top:r,right:l,left:s,bottom:u}=Z3(n),[f]=t.split("-");return{top:[s,r,l,u],right:[r,l,u,s],bottom:[r,s,u,l],left:[l,r,s,u]}[f]}function K3(e,t){const{x:n,y:r}=t;let l=!1;for(let s=0,u=e.length-1;s<e.length;u=s++){const f=e[s].x,g=e[s].y,v=e[u].x,y=e[u].y;g>r!=y>r&&n<(v-f)*(r-g)/(y-g)+f&&(l=!l)}return l}var oA=nt("avatar").parts("root","image","fallback");oA.build(),ut()(["dir","id","ids","onStatusChange","getRootNode"]);function j3(e){return!(e.metaKey||!zg()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var J3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function q3(e,t,n){const r=n?Is(n):null,l=hr(r);return e=e||r instanceof l.HTMLInputElement&&!J3.has(r?.type)||r instanceof l.HTMLTextAreaElement||r instanceof l.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof l.KeyboardEvent&&!Reflect.has($3,n.key))}var Vu=null,Xv=new Set,Ud=new Map,Xu=!1,Bv=!1,$3={Tab:!0,Escape:!0};function $g(e,t){for(let n of Xv)n(e,t)}function ep(e){Xu=!0,j3(e)&&(Vu="keyboard",$g("keyboard",e))}function Ya(e){Vu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Xu=!0,$g("pointer",e))}function sA(e){LO(e)&&(Xu=!0,Vu="virtual")}function uA(e){const t=Is(e);t===hr(t)||t===fl(t)||(!Xu&&!Bv&&(Vu="virtual",$g("virtual",e)),Xu=!1,Bv=!1)}function cA(){Xu=!1,Bv=!0}function e7(e){if(typeof window>"u"||Ud.get(hr(e)))return;const t=hr(e),n=fl(e);let r=t.HTMLElement.prototype.focus;function l(){Vu="virtual",$g("virtual",null),Xu=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:l}),n.addEventListener("keydown",ep,!0),n.addEventListener("keyup",ep,!0),n.addEventListener("click",sA,!0),t.addEventListener("focus",uA,!0),t.addEventListener("blur",cA,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",Ya,!0),n.addEventListener("pointermove",Ya,!0),n.addEventListener("pointerup",Ya,!0)):(n.addEventListener("mousedown",Ya,!0),n.addEventListener("mousemove",Ya,!0),n.addEventListener("mouseup",Ya,!0)),t.addEventListener("beforeunload",()=>{t7(e)},{once:!0}),Ud.set(t,{focus:r})}var t7=(e,t)=>{const n=hr(e),r=fl(e);Ud.has(n)&&(n.HTMLElement.prototype.focus=Ud.get(n).focus,r.removeEventListener("keydown",ep,!0),r.removeEventListener("keyup",ep,!0),r.removeEventListener("click",sA,!0),n.removeEventListener("focus",uA,!0),n.removeEventListener("blur",cA,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",Ya,!0),r.removeEventListener("pointermove",Ya,!0),r.removeEventListener("pointerup",Ya,!0)):(r.removeEventListener("mousedown",Ya,!0),r.removeEventListener("mousemove",Ya,!0),r.removeEventListener("mouseup",Ya,!0)),Ud.delete(n))};function fA(){return Vu==="keyboard"}function n7(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:l}=e;e7(l),r?.({isFocusVisible:n||fA(),modality:Vu});const s=(u,f)=>{q3(!!t,u,f)&&r?.({isFocusVisible:fA(),modality:u})};return Xv.add(s),()=>{Xv.delete(s)}}var dA=nt("checkbox").parts("root","label","control","indicator");dA.build(),ut()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const r7=dA.extendWith("group"),[HU,i7]=$1({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var hA=nt("clipboard").parts("root","control","trigger","indicator","input","label");hA.build(),ut()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),ut()(["copied"]);const a7=eA.extendWith("view");var l7=Object.defineProperty,o7=(e,t,n)=>t in e?l7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ze=(e,t,n)=>o7(e,typeof t!="symbol"?t+"":t,n),tp={itemToValue(e){return typeof e=="string"?e:Wu(e)&&Fs(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Wu(e)&&Fs(e,"label")?e.label:tp.itemToValue(e)},isItemDisabled(e){return Wu(e)&&Fs(e,"disabled")?!!e.disabled:!1}},np=class Z5{constructor(t){this.options=t,ze(this,"items"),ze(this,"indexMap",null),ze(this,"copy",n=>new Z5({...this.options,items:n??[...this.items]})),ze(this,"isEqual",n=>cl(this.items,n.items)),ze(this,"setItems",n=>this.copy(n)),ze(this,"getValues",(n=this.items)=>{const r=[];for(const l of n){const s=this.getItemValue(l);s!=null&&r.push(s)}return r}),ze(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),ze(this,"findMany",n=>{const r=[];for(const l of n){const s=this.find(l);s!=null&&r.push(s)}return r}),ze(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const l=this.group();for(const[,s]of l)for(const u of s){if(r===n)return u;r++}return null}),ze(this,"sortFn",(n,r)=>{const l=this.indexOf(n),s=this.indexOf(r);return(l??0)-(s??0)}),ze(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),ze(this,"getItemValue",n=>n==null?null:this.options.itemToValue?.(n)??tp.itemToValue(n)),ze(this,"getItemDisabled",n=>n==null?!1:this.options.isItemDisabled?.(n)??tp.isItemDisabled(n)),ze(this,"stringifyItem",n=>n==null?null:this.options.itemToString?.(n)??tp.itemToString(n)),ze(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),ze(this,"stringifyItems",(n,r=", ")=>{const l=[];for(const s of n){const u=this.stringifyItem(s);u!=null&&l.push(u)}return l.join(r)}),ze(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),ze(this,"has",n=>this.indexOf(n)!==-1),ze(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),ze(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const l=new Map;this.items.forEach((u,f)=>{const g=n(u,f);l.has(g)||l.set(g,[]),l.get(g).push(u)});let s=Array.from(l.entries());return r&&s.sort(([u],[f])=>{if(typeof r=="function")return r(u,f);if(Array.isArray(r)){const g=r.indexOf(u),v=r.indexOf(f);return g===-1?1:v===-1?-1:g-v}return r==="asc"?u.localeCompare(f):r==="desc"?f.localeCompare(u):0}),s}),ze(this,"getNextValue",(n,r=1,l=!1)=>{let s=this.indexOf(n);if(s===-1)return null;for(s=l?Math.min(s+r,this.size-1):s+r;s<=this.size&&this.getItemDisabled(this.at(s));)s++;return this.getItemValue(this.at(s))}),ze(this,"getPreviousValue",(n,r=1,l=!1)=>{let s=this.indexOf(n);if(s===-1)return null;for(s=l?Math.max(s-r,0):s-r;s>=0&&this.getItemDisabled(this.at(s));)s--;return this.getItemValue(this.at(s))}),ze(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const l=this.group();for(const[,s]of l)for(const u of s){const f=this.getItemValue(u);f!=null&&this.indexMap.set(f,r),r++}}return this.indexMap.get(n)??-1}),ze(this,"getByText",(n,r)=>{let l=r!=null?u7(this.items,this.indexOf(r)):this.items;return n.length===1&&(l=l.filter(u=>this.getItemValue(u)!==r)),l.find(u=>s7(this.stringifyItem(u),n))}),ze(this,"search",(n,r)=>{const{state:l,currentValue:s,timeout:u=350}=r,f=l.keysSoFar+n,v=f.length>1&&Array.from(f).every(R=>R===f[0])?f[0]:f,y=this.getByText(v,s),A=this.getItemValue(y);function C(){clearTimeout(l.timer),l.timer=-1}function w(R){l.keysSoFar=R,C(),R!==""&&(l.timer=+setTimeout(()=>{w(""),C()},u))}return w(f),A}),ze(this,"update",(n,r)=>{let l=this.indexOf(n);return l===-1?this:this.copy([...this.items.slice(0,l),r,...this.items.slice(l+1)])}),ze(this,"upsert",(n,r,l="append")=>{let s=this.indexOf(n);return s===-1?(l==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,s),r,...this.items.slice(s+1)])}),ze(this,"insert",(n,...r)=>this.copy(Gd(this.items,n,...r))),ze(this,"insertBefore",(n,...r)=>{let l=this.indexOf(n);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(Gd(this.items,l,...r))}),ze(this,"insertAfter",(n,...r)=>{let l=this.indexOf(n);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(Gd(this.items,l+1,...r))}),ze(this,"prepend",(...n)=>this.copy(Gd(this.items,0,...n))),ze(this,"append",(...n)=>this.copy(Gd(this.items,this.items.length,...n))),ze(this,"filter",n=>{const r=this.items.filter((l,s)=>n(this.stringifyItem(l),s,l));return this.copy(r)}),ze(this,"remove",(...n)=>{const r=n.map(l=>typeof l=="string"?l:this.getItemValue(l));return this.copy(this.items.filter(l=>{const s=this.getItemValue(l);return s==null?!1:!r.includes(s)}))}),ze(this,"move",(n,r)=>{const l=this.indexOf(n);return l===-1?this:this.copy(rp(this.items,[l],r))}),ze(this,"moveBefore",(n,...r)=>{let l=this.items.findIndex(u=>this.getItemValue(u)===n);if(l===-1)return this;let s=r.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(rp(this.items,s,l))}),ze(this,"moveAfter",(n,...r)=>{let l=this.items.findIndex(u=>this.getItemValue(u)===n);if(l===-1)return this;let s=r.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(rp(this.items,s,l+1))}),ze(this,"reorder",(n,r)=>this.copy(rp(this.items,[n],r))),ze(this,"compareValue",(n,r)=>{const l=this.indexOf(n),s=this.indexOf(r);return l<s?-1:l>s?1:0}),ze(this,"range",(n,r)=>{let l=[],s=n;for(;s!=null;){if(this.find(s)&&l.push(s),s===r)return l;s=this.getNextValue(s)}return[]}),ze(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),ze(this,"toString",()=>{let n="";for(const r of this.items){const l=this.getItemValue(r),s=this.stringifyItem(r),u=this.getItemDisabled(r),f=[l,s,u].filter(Boolean).join(":");n+=f+","}return n}),ze(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},s7=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase()),u7=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]);function Gd(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function rp(e,t,n){t=[...t].sort((l,s)=>l-s);const r=t.map(l=>e[l]);for(let l=t.length-1;l>=0;l--)e=[...e.slice(0,t[l]),...e.slice(t[l]+1)];return n=Math.max(0,n-t.filter(l=>l<n).length),[...e.slice(0,n),...r,...e.slice(n)]}function gA(e,t,n){for(let r=0;r<t.length;r++)e=n.getChildren(e,t.slice(r+1))[t[r]];return e}function c7(e){const t=f7(e),n=[],r=new Set;for(const l of t){const s=l.join();r.has(s)||(r.add(s),n.push(l))}return n}function pA(e,t){for(let n=0;n<Math.min(e.length,t.length);n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return e.length-t.length}function f7(e){return e.sort(pA)}function d7(e,t){let n;return ia(e,{...t,onEnter:(r,l)=>{if(t.predicate(r,l))return n=r,"stop"}}),n}function h7(e,t){const n=[];return ia(e,{onEnter:(r,l)=>{t.predicate(r,l)&&n.push(r)},getChildren:t.getChildren}),n}function mA(e,t){let n;return ia(e,{onEnter:(r,l)=>{if(t.predicate(r,l))return n=[...l],"stop"},getChildren:t.getChildren}),n}function g7(e,t){let n=t.initialResult;return ia(e,{...t,onEnter:(r,l)=>{n=t.nextResult(n,r,l)}}),n}function p7(e,t){return g7(e,{...t,initialResult:[],nextResult:(n,r,l)=>(n.push(...t.transform(r,l)),n)})}function m7(e,t){const{predicate:n,create:r,getChildren:l}=t,s=(u,f)=>{const g=l(u,f),v=[];g.forEach((w,R)=>{const N=[...f,R],Y=s(w,N);Y&&v.push(Y)});const y=f.length===0,A=n(u,f),C=v.length>0;return y||A||C?r(u,v,f):null};return s(e,[])||r(e,[],[])}function v7(e,t){const n=[];let r=0;const l=new Map,s=new Map;return ia(e,{getChildren:t.getChildren,onEnter:(u,f)=>{l.has(u)||l.set(u,r++);const g=t.getChildren(u,f);g.forEach(w=>{s.has(w)||s.set(w,u),l.has(w)||l.set(w,r++)});const v=g.length>0?g.map(w=>l.get(w)):void 0,y=s.get(u),A=y?l.get(y):void 0,C=l.get(u);n.push({...u,_children:v,_parent:A,_index:C})}}),n}function b7(e,t){return{type:"insert",index:e,nodes:t}}function y7(e){return{type:"remove",indexes:e}}function Hv(){return{type:"replace"}}function vA(e){return[e.slice(0,-1),e[e.length-1]]}function bA(e,t,n=new Map){const[r,l]=vA(e);for(let u=r.length-1;u>=0;u--){const f=r.slice(0,u).join();switch(n.get(f)?.type){case"remove":continue}n.set(f,Hv())}const s=n.get(r.join());switch(s?.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:s.indexes,insertIndex:l,insertNodes:t});break;default:n.set(r.join(),b7(l,t))}return n}function yA(e){const t=new Map,n=new Map;for(const r of e){const l=r.slice(0,-1).join(),s=n.get(l)??[];s.push(r[r.length-1]),n.set(l,s.sort((u,f)=>u-f))}for(const r of e)for(let l=r.length-2;l>=0;l--){const s=r.slice(0,l).join();t.has(s)||t.set(s,Hv())}for(const[r,l]of n)t.set(r,y7(l));return t}function x7(e,t){const n=new Map,[r,l]=vA(e);for(let s=r.length-1;s>=0;s--){const u=r.slice(0,s).join();n.set(u,Hv())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[l],insertIndex:l,insertNodes:[t]}),n}function ip(e,t,n){return A7(e,{...n,getChildren:(r,l)=>{const s=l.join();switch(t.get(s)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,l);default:return[]}},transform:(r,l,s)=>{const u=s.join(),f=t.get(u);switch(f?.type){case"remove":return n.create(r,l.filter((y,A)=>!f.indexes.includes(A)),s);case"removeThenInsert":const g=l.filter((y,A)=>!f.removeIndexes.includes(A)),v=f.removeIndexes.reduce((y,A)=>A<y?y-1:y,f.insertIndex);return n.create(r,xA(g,v,0,...f.insertNodes),s);case"insert":return n.create(r,xA(l,f.index,0,...f.nodes),s);case"replace":return n.create(r,l,s);default:return r}}})}function xA(e,t,n,...r){return[...e.slice(0,t),...r,...e.slice(t+n)]}function A7(e,t){const n={};return ia(e,{...t,onLeave:(r,l)=>{const s=[0,...l],u=s.join(),f=t.transform(r,n[u]??[],l),g=s.slice(0,-1).join(),v=n[g]??[];v.push(f),n[g]=v}}),n[""][0]}function S7(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const l=bA(r,n);return ip(e,l,t)}function E7(e,t){if(t.at.length===0)return t.node;const n=x7(t.at,t.node);return ip(e,n,t)}function C7(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=yA(t.indexPaths);return ip(e,n,t)}function w7(e,t){if(t.indexPaths.length===0)return e;for(const s of t.indexPaths)if(s.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=c7(t.indexPaths),r=n.map(s=>gA(e,s,t)),l=bA(t.to,r,yA(n));return ip(e,l,t)}function ia(e,t){const{onEnter:n,onLeave:r,getChildren:l}=t;let s=[],u=[{node:e}];const f=t.reuseIndexPath?()=>s:()=>s.slice();for(;u.length>0;){let g=u[u.length-1];if(g.state===void 0){const y=n?.(g.node,f());if(y==="stop")return;g.state=y==="skip"?-1:0}const v=g.children||l(g.node,f());if(g.children||(g.children=v),g.state!==-1){if(g.state<v.length){let A=g.state;s.push(A),u.push({node:v[A]}),g.state=A+1;continue}if(r?.(g.node,f())==="stop")return}s.pop(),u.pop()}}var AA=class Q5{constructor(t){this.options=t,ze(this,"rootNode"),ze(this,"isEqual",n=>cl(this.rootNode,n.rootNode)),ze(this,"getNodeChildren",n=>this.options.nodeToChildren?.(n)??ff.nodeToChildren(n)??[]),ze(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),ze(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),ze(this,"getNodeChildrenCount",n=>this.options.nodeToChildrenCount?.(n)??ff.nodeToChildrenCount(n)),ze(this,"getNodeValue",n=>this.options.nodeToValue?.(n)??ff.nodeToValue(n)),ze(this,"getNodeDisabled",n=>this.options.isNodeDisabled?.(n)??ff.isNodeDisabled(n)),ze(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),ze(this,"stringifyNode",n=>this.options.nodeToString?.(n)??ff.nodeToString(n)),ze(this,"getFirstNode",(n=this.rootNode)=>{let r;return ia(n,{getChildren:this.getNodeChildren,onEnter:(l,s)=>{if(!r&&s.length>0&&!this.getNodeDisabled(l))return r=l,"stop"}}),r}),ze(this,"getLastNode",(n=this.rootNode,r={})=>{let l;return ia(n,{getChildren:this.getNodeChildren,onEnter:(s,u)=>{if(!this.isSameNode(s,n)){if(r.skip?.({value:this.getNodeValue(s),node:s,indexPath:u}))return"skip";u.length>0&&!this.getNodeDisabled(s)&&(l=s)}}}),l}),ze(this,"at",n=>gA(this.rootNode,n,{getChildren:this.getNodeChildren})),ze(this,"findNode",(n,r=this.rootNode)=>d7(r,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===n})),ze(this,"findNodes",(n,r=this.rootNode)=>{const l=new Set(n.filter(s=>s!=null));return h7(r,{getChildren:this.getNodeChildren,predicate:s=>l.has(this.getNodeValue(s))})}),ze(this,"sort",n=>n.reduce((r,l)=>{const s=this.getIndexPath(l);return s&&r.push({value:l,indexPath:s}),r},[]).sort((r,l)=>pA(r.indexPath,l.indexPath)).map(({value:r})=>r)),ze(this,"getIndexPath",n=>mA(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),ze(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),ze(this,"getValuePath",n=>{if(!n)return[];const r=[];let l=[...n];for(;l.length>0;){const s=this.at(l);s&&r.unshift(this.getNodeValue(s)),l.pop()}return r}),ze(this,"getDepth",n=>mA(this.rootNode,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===n})?.length??0),ze(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),ze(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),ze(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((l,s)=>n[s]===r[s])),ze(this,"getNextNode",(n,r={})=>{let l=!1,s;return ia(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(r.skip?.({value:g,node:u,indexPath:f}))return g===n&&(l=!0),"skip";if(l&&!this.getNodeDisabled(u))return s=u,"stop";g===n&&(l=!0)}}),s}),ze(this,"getPreviousNode",(n,r={})=>{let l,s=!1;return ia(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(r.skip?.({value:g,node:u,indexPath:f}))return"skip";if(g===n)return s=!0,"stop";this.getNodeDisabled(u)||(l=u)}}),s?l:void 0}),ze(this,"getParentNodes",n=>{const r=this.resolveIndexPath(n)?.slice();if(!r)return[];const l=[];for(;r.length>0;){r.pop();const s=this.at(r);s&&!this.isRootNode(s)&&l.unshift(s)}return l}),ze(this,"getDescendantNodes",(n,r)=>{const l=this.resolveNode(n);if(!l)return[];const s=[];return ia(l,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{f.length!==0&&(!r?.withBranch&&this.isBranchNode(u)||s.push(u))}}),s}),ze(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(s=>this.getNodeValue(s))),ze(this,"getParentIndexPath",n=>n.slice(0,-1)),ze(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),ze(this,"visit",n=>{const{skip:r,...l}=n;ia(this.rootNode,{...l,getChildren:this.getNodeChildren,onEnter:(s,u)=>{if(!this.isRootNode(s))return r?.({value:this.getNodeValue(s),node:s,indexPath:u})?"skip":l.onEnter?.(s,u)}})}),ze(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const l=this.getNodeChildren(r);let s=n[n.length-1];for(;--s>=0;){const u=l[s];if(!this.getNodeDisabled(u))return u}}),ze(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const l=this.getNodeChildren(r);let s=n[n.length-1];for(;++s<l.length;){const u=l[s];if(!this.getNodeDisabled(u))return u}}),ze(this,"getSiblingNodes",n=>{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),ze(this,"getValues",(n=this.rootNode)=>p7(n,{getChildren:this.getNodeChildren,transform:l=>[this.getNodeValue(l)]}).slice(1)),ze(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),ze(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),ze(this,"getBranchValues",(n=this.rootNode,r={})=>{let l=[];return ia(n,{getChildren:this.getNodeChildren,onEnter:(s,u)=>{if(u.length===0)return;const f=this.getNodeValue(s);if(r.skip?.({value:f,node:s,indexPath:u}))return"skip";this.isBranchNode(s)&&this.isValidDepth(u,r.depth)&&l.push(this.getNodeValue(s))}}),l}),ze(this,"flatten",(n=this.rootNode)=>v7(n,{getChildren:this.getNodeChildren})),ze(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),ze(this,"_insert",(n,r,l)=>this.copy(S7(n,{at:r,nodes:l,getChildren:this.getNodeChildren,create:this._create}))),ze(this,"copy",n=>new Q5({...this.options,rootNode:n})),ze(this,"_replace",(n,r,l)=>this.copy(E7(n,{at:r,node:l,getChildren:this.getNodeChildren,create:this._create}))),ze(this,"_move",(n,r,l)=>this.copy(w7(n,{indexPaths:r,to:l,getChildren:this.getNodeChildren,create:this._create}))),ze(this,"_remove",(n,r)=>this.copy(C7(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),ze(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),ze(this,"remove",n=>this._remove(this.rootNode,n)),ze(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),ze(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const s=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,s,r)}),ze(this,"move",(n,r)=>this._move(this.rootNode,n,r)),ze(this,"filter",n=>{const r=m7(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),ze(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},ff={nodeToValue(e){return typeof e=="string"?e:Wu(e)&&Fs(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Wu(e)&&Fs(e,"label")?e.label:ff.nodeToValue(e)},isNodeDisabled(e){return Wu(e)&&Fs(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Wu(e)&&Fs(e,"childrenCount"))return e.childrenCount}},df=new WeakMap,ap=new WeakMap,lp={},Uv=0,SA=e=>e&&(e.host||SA(e.parentNode)),k7=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=SA(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),T7=new Set(["script","output","status","next-route-announcer"]),_7=e=>T7.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),O7=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:l}=t,s=k7(n,Array.isArray(e)?e:[e]);lp[r]||(lp[r]=new WeakMap);const u=lp[r],f=[],g=new Set,v=new Set(s),y=C=>{!C||g.has(C)||(g.add(C),y(C.parentNode))};s.forEach(y);const A=C=>{!C||v.has(C)||Array.prototype.forEach.call(C.children,w=>{if(g.has(w))A(w);else try{if(_7(w))return;const N=w.getAttribute(l)==="true",Y=(df.get(w)||0)+1,L=(u.get(w)||0)+1;df.set(w,Y),u.set(w,L),f.push(w),Y===1&&N&&ap.set(w,!0),L===1&&w.setAttribute(r,""),N||w.setAttribute(l,"true")}catch(R){console.error("[zag-js > ariaHidden] cannot operate on ",w,R)}})};return A(n),g.clear(),Uv++,()=>{f.forEach(C=>{const w=df.get(C)-1,R=u.get(C)-1;df.set(C,w),u.set(C,R),w||(ap.has(C)||C.removeAttribute(l),ap.delete(C)),R||C.removeAttribute(r)}),Uv--,Uv||(df=new WeakMap,df=new WeakMap,ap=new WeakMap,lp={})}},R7=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,F7=(e,t=R7(e),n="data-aria-hidden")=>{if(t)return O7(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},I7=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function N7(e,t={}){const{defer:n=!0}=t,r=n?I7:s=>s(),l=[];return l.push(r(()=>{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&l.push(F7(u))})),()=>{l.forEach(s=>s?.())}}var EA=nt("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");EA.build();var CA=e=>new np(e);CA.empty=()=>new np({items:[]});var P7=e=>e.ids?.control??`combobox:${e.id}:control`,z7=e=>e.ids?.input??`combobox:${e.id}:input`,D7=e=>e.ids?.content??`combobox:${e.id}:content`,M7=e=>e.ids?.positioner??`combobox:${e.id}:popper`,W7=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,L7=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Ds=e=>e.getById(D7(e)),hf=e=>e.getById(z7(e)),wA=e=>e.getById(M7(e)),kA=e=>e.getById(P7(e)),Zd=e=>e.getById(W7(e)),TA=e=>e.getById(L7(e)),_A=(e,t)=>{if(t==null)return;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return uR(Ds(e),n)},OA=e=>{const t=hf(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},Y7=e=>{const t=Zd(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:V7,createMachine:X7,choose:B7}=vx(),{and:Ar,not:aa}=V7;X7({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){cx(t)},collection:CA.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:cl,hash(l){return l.join(",")},onChange(l){const s=n(),u=s.get("selectedItems"),f=e("collection"),g=l.map(v=>u.find(A=>f.getItemValue(A)===v)||f.find(v));s.set("selectedItems",g),e("onValueChange")?.({value:l,items:g})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){const s=e("collection").find(l);e("onHighlightChange")?.({highlightedValue:l,highlightedItem:s})}})),inputValue:t(()=>{let l=e("inputValue")||e("defaultInputValue")||"";const s=e("defaultValue")||e("value")||[];if(!l.trim()&&!e("multiple")){const u=e("collection").stringifyMany(s);l=Ho(e("selectionBehavior"),{preserve:l||u,replace:u,clear:""})}return{defaultValue:l,value:e("inputValue"),onChange(u){const f=r(),g=(f.previousEvent||f).src;e("onInputValueChange")?.({inputValue:u,reason:g})}}}),highlightedItem:t(()=>{const l=e("highlightedValue");return{defaultValue:e("collection").find(l)}}),selectedItems:t(()=>{const l=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(l)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:l}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{l({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:B7([{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:Ar("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Ar("isCustomValue",aa("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:Ar("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Ar("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Ar("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Ar("isOpenControlled","isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ar("isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Ar("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:Ar("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Ar("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:Ar("isOpenControlled","isCustomValue",aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ar("isCustomValue",aa("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Ar("isOpenControlled","isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ar("isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Ar("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:Ar("isOpenControlled","isCustomValue",aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ar("isCustomValue",aa("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:Ar("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return V_(n)?n:!!n?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Bd(()=>Ds(n),{defer:!0,exclude:()=>[hf(n),Zd(n),TA(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(l){l.preventDefault(),l.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return N7([hf(e),Ds(e),Zd(e),TA(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>kA(n)||Zd(n),l=()=>wA(n);return e.set("currentPlacement",t("positioning").placement),gl(r,l,{...t("positioning"),defer:!0,onComplete(s){e.set("currentPlacement",s.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const l=hf(n);let s=[];const u=v=>{const y=r.current().type.includes("POINTER"),A=e.get("highlightedValue");if(y||!A)return;const C=_A(n,A),w=Ds(n),R=t("scrollToIndexFn");if(R){const Y=t("collection").indexOf(A);R({index:Y,immediate:v});return}const N=zt(()=>{Lg(C,{rootEl:w,block:"nearest"})});s.push(N)},f=zt(()=>u(!0));s.push(f);const g=Mg(l,{attributes:["aria-activedescendant"],callback:()=>u(!1)});return s.push(g),()=>{s.forEach(v=>v())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){gl(()=>kA(n),()=>wA(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(u){e.set("currentPlacement",u.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:n}=e,r=n("collection"),l=t.get("highlightedValue");if(!l||!r.has(l))return;const s=n("multiple")?rf(t.get("value"),l):[l];n("onSelect")?.({value:s,itemValue:l}),t.set("value",s);const u=Ho(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(s),clear:""});t.set("inputValue",u)},scrollToHighlightedItem({context:e,prop:t,scope:n}){ux(()=>{const r=e.get("highlightedValue");if(r==null)return;const l=_A(n,r),s=Ds(n),u=t("scrollToIndexFn");if(u){const f=t("collection").indexOf(r);u({index:f,immediate:!0});return}Lg(l,{rootEl:s,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:l}=e;n.value!=null&&r(()=>{const s=l("multiple")?rf(t.get("value"),n.value):[n.value];l("onSelect")?.({value:s,itemValue:n.value}),t.set("value",s);const u=Ho(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(s),clear:""});t.set("inputValue",u)})},clearItem(e){const{context:t,event:n,flush:r,prop:l}=e;n.value!=null&&r(()=>{const s=Mu(t.get("value"),n.value);t.set("value",s);const u=Ho(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(s),clear:""});t.set("inputValue",u)})},setInitialFocus({scope:e}){zt(()=>{OA(e)})},setFinalFocus({scope:e}){zt(()=>{Zd(e)?.dataset.focusable==null?OA(e):Y7(e)})},syncInputValue({context:e,scope:t,event:n}){const r=hf(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&hO(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),l=Ho(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",l)},setValue(e){const{context:t,flush:n,event:r,prop:l}=e;n(()=>{t.set("value",r.value);const s=Ho(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(r.value),clear:""});t.set("inputValue",s)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const l=Ho(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",l)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n)n({index:0,immediate:!0});else{const r=Ds(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const n=RA(t);e("onOpenChange")?.({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){const n=RA(t);e("onOpenChange")?.({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(Ds(n)?queueMicrotask:zt)(()=>{const l=t("collection").firstValue;l&&e.set("highlightedValue",l)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(Ds(n)?queueMicrotask:zt)(()=>{const l=t("collection").lastValue;l&&e.set("highlightedValue",l)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),l=t("collection");r?(n=l.getNextValue(r),!n&&t("loopFocus")&&(n=l.firstValue)):n=l.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),l=t("collection");r?(n=l.getPreviousValue(r),!n&&t("loopFocus")&&(n=l.lastValue)):n=l.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){zt(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){zt(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){zt(()=>{const r=t("collection");let l=null;n("hasSelectedItems")?l=r.sort(e.get("value"))[0]:l=r.lastValue,l&&e.set("highlightedValue",l)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:l}){const s=hf(l),u=n("collection");if(!t("autoComplete")||!s||!r.keypress)return;const f=u.stringify(e.get("highlightedValue"));zt(()=>{s.value=f||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),l=t.get("value"),s=l.map(f=>t.get("selectedItems").find(v=>r.getItemValue(v)===f)||r.find(f));t.set("selectedItems",s);const u=Ho(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(l),clear:""});t.set("inputValue",u)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function RA(e){return(e.previousEvent||e).src}ut()(["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"]),ut()(["htmlFor"]),ut()(["id"]),ut()(["item","persistFocus"]);var Gv=nt("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");Gv.build(),ut()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var FA=nt("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");FA.build(),ut()(["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 IA=nt("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");IA.build();var H7=e=>{if(!e)return;const t=rx(e),n=hr(e),r=fl(e),l=()=>{requestAnimationFrame(()=>{e.style.height="auto";let v;t.boxSizing==="content-box"?v=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):v=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&v>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),v=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${v}px`})};e.addEventListener("input",l),e.form?.addEventListener("reset",l);const s=Object.getPrototypeOf(e),u=Object.getOwnPropertyDescriptor(s,"value");Object.defineProperty(e,"value",{...u,set(){u?.set?.apply(this,arguments),l()}});const f=new n.ResizeObserver(()=>{requestAnimationFrame(()=>l())});f.observe(e);const g=new n.MutationObserver(()=>l());return g.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",l),()=>{e.removeEventListener("input",l),e.form?.removeEventListener("reset",l),r.fonts?.removeEventListener("loadingdone",l),f.disconnect(),g.disconnect()}};const NA=Te.forwardRef((e,t)=>{const{autoresize:n,...r}=e,l=Te.useRef(null),s=i7(),u=px(s?.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return Te.useEffect(()=>{if(n)return H7(l.current)},[n]),ne.jsx(kR.textarea,{...u,ref:bx(t,l)})});NA.displayName="FieldTextarea";const PA=nt("fieldset").parts("root","errorText","helperText","legend");PA.build();var zA=nt("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");zA.build(),ut()(["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"]),ut()(["file"]);const U7=Symbol(),DA=Object.getPrototypeOf,Zv=new WeakMap,G7=e=>e&&(Zv.has(e)?Zv.get(e):DA(e)===Object.prototype||DA(e)===Array.prototype),Z7=e=>G7(e)&&e[U7]||null,MA=(e,t=!0)=>{Zv.set(e,t)};function Q7(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function WA(e,t){const n=Q7();return n?(n[e]||(n[e]=t()),n[e]):t()}var op=WA("__zag__refSet",()=>new WeakSet),K7=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,j7=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,J7=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",q7=e=>K7(e)||j7(e)||J7(e),Qv=e=>e!==null&&typeof e=="object",LA=e=>Qv(e)&&!op.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!q7(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),Bu=WA("__zag__proxyStateMap",()=>new WeakMap),$7=(e=Object.is,t=(f,g)=>new Proxy(f,g),n=new WeakMap,r=(f,g)=>{const v=n.get(f);if(v?.[0]===g)return v[1];const y=Array.isArray(f)?[]:Object.create(Object.getPrototypeOf(f));return MA(y,!0),n.set(f,[g,y]),Reflect.ownKeys(f).forEach(A=>{const C=Reflect.get(f,A);op.has(C)?(MA(C,!1),y[A]=C):Bu.has(C)?y[A]=n4(C):y[A]=C}),Object.freeze(y)},l=new WeakMap,s=[1,1],u=f=>{if(!Qv(f))throw new Error("object required");const g=l.get(f);if(g)return g;let v=s[0];const y=new Set,A=(de,ae=++s[0])=>{v!==ae&&(v=ae,y.forEach(ie=>ie(de,ae)))};let C=s[1];const w=(de=++s[1])=>(C!==de&&!y.size&&(C=de,N.forEach(([ae])=>{const ie=ae[1](de);ie>v&&(v=ie)})),v),R=de=>(ae,ie)=>{const H=[...ae];H[1]=[de,...H[1]],A(H,ie)},N=new Map,Y=(de,ae)=>{if(y.size){const ie=ae[3](R(de));N.set(de,[ae,ie])}else N.set(de,[ae])},L=de=>{const ae=N.get(de);ae&&(N.delete(de),ae[1]?.())},X=de=>(y.add(de),y.size===1&&N.forEach(([ie,H],Ae)=>{const ce=ie[3](R(Ae));N.set(Ae,[ie,ce])}),()=>{y.delete(de),y.size===0&&N.forEach(([ie,H],Ae)=>{H&&(H(),N.set(Ae,[ie]))})}),V=Array.isArray(f)?[]:Object.create(Object.getPrototypeOf(f)),U=t(V,{deleteProperty(de,ae){const ie=Reflect.get(de,ae);L(ae);const H=Reflect.deleteProperty(de,ae);return H&&A(["delete",[ae],ie]),H},set(de,ae,ie,H){const Ae=Reflect.has(de,ae),ce=Reflect.get(de,ae,H);if(Ae&&(e(ce,ie)||l.has(ie)&&e(ce,l.get(ie))))return!0;L(ae),Qv(ie)&&(ie=Z7(ie)||ie);let _e=ie;if(!Object.getOwnPropertyDescriptor(de,ae)?.set){!Bu.has(ie)&&LA(ie)&&(_e=YA(ie));const $=!op.has(_e)&&Bu.get(_e);$&&Y(ae,$)}return Reflect.set(de,ae,_e,H),A(["set",[ae],ie,ce]),!0}});l.set(f,U);const J=[V,w,r,X];return Bu.set(U,J),Reflect.ownKeys(f).forEach(de=>{const ae=Object.getOwnPropertyDescriptor(f,de);ae.get||ae.set?Object.defineProperty(V,de,ae):U[de]=f[de]}),U})=>[u,Bu,op,e,t,LA,n,r,l,s],[e4]=$7();function YA(e={}){return e4(e)}function t4(e,t,n){const r=Bu.get(e);let l;const s=[],u=r[3];let f=!1;const v=u(y=>{s.push(y),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(s.splice(0))}))});return f=!0,()=>{f=!1,v()}}function n4(e){const t=Bu.get(e),[n,r,l]=t;return l(n,r())}const r4=e=>typeof e=="function",i4=(e,...t)=>r4(e)?e(...t):e,a4=e=>{const{value:t,children:n}=e,[r,l]=Te.useState(),s=Te.useMemo(()=>()=>i4(t)??r?.getRootNode()??document,[t,r]),u=Te.useMemo(()=>({getRootNode:s,getWindow:()=>hr(s()),getDocument:()=>fl(s())}),[s]);return ne.jsxs(dO,{value:u,children:[n,!t&&ne.jsx("span",{hidden:!0,ref:l})]})};var VA=nt("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");VA.build();var l4=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,o4=e=>e.ids?.content??`hover-card:${e.id}:content`,s4=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Kv=e=>e.getById(l4(e)),u4=e=>e.getById(o4(e)),XA=e=>e.getById(s4(e)),{not:sp,and:BA}=Ns();BA("isOpenControlled",sp("isPointer")),sp("isPointer"),BA("isOpenControlled",sp("isPointer")),sp("isPointer"),ut()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var HA=nt("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");HA.build();var UA=e=>new AA(e);UA.empty=()=>new AA({rootNode:{children:[]}});var c4=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,Hu=(e,t)=>{t!=null&&e.getById(c4(e,t))?.focus()};function f4(e,t,n){const r=e.getDescendantValues(t),l=r.every(s=>n.includes(s));return nf(l?Mu(n,...r):Du(n,...r))}function up(e,t){const{context:n,prop:r,refs:l}=e;if(!r("loadChildren")){n.set("expandedValue",N=>nf(Du(N,...t)));return}const s=n.get("loadingStatus"),[u,f]=W1(t,N=>s[N]==="loaded");if(u.length>0&&n.set("expandedValue",N=>nf(Du(N,...u))),f.length===0)return;const g=r("collection"),[v,y]=W1(f,N=>{const Y=g.findNode(N);return g.getNodeChildren(Y).length>0});if(v.length>0&&n.set("expandedValue",N=>nf(Du(N,...v))),y.length===0)return;n.set("loadingStatus",N=>({...N,...y.reduce((Y,L)=>({...Y,[L]:"loading"}),{})}));const A=y.map(N=>{const Y=g.getIndexPath(N),L=g.getValuePath(Y),X=g.findNode(N);return{id:N,indexPath:Y,valuePath:L,node:X}}),C=l.get("pendingAborts"),w=r("loadChildren");cO(w,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const R=A.map(({id:N,indexPath:Y,valuePath:L,node:X})=>{const V=C.get(N);V&&(V.abort(),C.delete(N));const re=new AbortController;return C.set(N,re),w({valuePath:L,indexPath:Y,node:X,signal:re.signal})});Promise.allSettled(R).then(N=>{const Y=[],L=[],X=n.get("loadingStatus");let V=r("collection");N.forEach((re,U)=>{const{id:J,indexPath:de,node:ae,valuePath:ie}=A[U];re.status==="fulfilled"?(X[J]="loaded",Y.push(J),V=V.replace(de,{...ae,children:re.value})):(C.delete(J),Reflect.deleteProperty(X,J),L.push({node:ae,error:re.reason,indexPath:de,valuePath:ie}))}),n.set("loadingStatus",X),Y.length&&(n.set("expandedValue",re=>nf(Du(re,...Y))),r("onLoadChildrenComplete")?.({collection:V})),L.length&&r("onLoadChildrenError")?.({nodes:L})})}function Ms(e){const{prop:t,context:n}=e;return function({indexPath:l}){return t("collection").getValuePath(l).slice(0,-1).some(u=>!n.get("expandedValue").includes(u))}}var{and:go}=Ns();go("isMultipleSelection","moveFocus"),go("isShiftKey","isMultipleSelection"),go("isShiftKey","isMultipleSelection"),go("isBranchFocused","isBranchExpanded"),go("isShiftKey","isMultipleSelection"),go("isShiftKey","isMultipleSelection"),go("isCtrlKey","isMultipleSelection"),go("isShiftKey","isMultipleSelection"),go("isCtrlKey","isMultipleSelection"),go("isShiftKey","isMultipleSelection"),ut()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),ut()(["node","indexPath"]);var GA=nt("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");GA.build();var ZA=e=>e.ids?.trigger??`menu:${e.id}:trigger`,d4=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,QA=e=>e.ids?.content??`menu:${e.id}:content`,h4=e=>e.ids?.positioner??`menu:${e.id}:popper`,jv=(e,t)=>`${e.id}/${t}`,Uu=e=>e?.dataset.value??null,Ws=e=>e.getById(QA(e)),KA=e=>e.getById(h4(e)),cp=e=>e.getById(ZA(e)),g4=(e,t)=>t?e.getById(jv(e,t)):null,Jv=e=>e.getById(d4(e)),Qd=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(QA(e))}]:not([data-disabled])`;return Vg(Ws(e),n)},p4=e=>Dd(Qd(e)),m4=e=>uv(Qd(e)),qv=(e,t)=>t?e.id===t||e.dataset.value===t:!1,v4=(e,t)=>{const n=Qd(e),r=n.findIndex(l=>qv(l,t.value));return M_(n,r,{loop:t.loop??t.loopFocus})},b4=(e,t)=>{const n=Qd(e),r=n.findIndex(l=>qv(l,t.value));return L_(n,r,{loop:t.loop??t.loopFocus})},y4=(e,t)=>{const n=Qd(e),r=n.find(l=>qv(l,t.value));return Ld(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},x4=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),A4="menu:select";function S4(e,t){if(!e)return;const n=hr(e),r=new n.CustomEvent(A4,{detail:{value:t}});e.dispatchEvent(r)}var{not:Va,and:gf,or:E4}=Ns();Va("isSubmenu"),E4("isOpenAutoFocusEvent","isArrowDownEvent"),gf(Va("isTriggerItem"),"isOpenControlled"),Va("isTriggerItem"),gf("isSubmenu","isOpenControlled"),Va("isPointerSuspended"),gf(Va("isPointerSuspended"),Va("isTriggerItem")),gf(Va("isTriggerItemHighlighted"),Va("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),gf(Va("isTriggerItemHighlighted"),Va("isHighlightedItemEditable"),"closeOnSelect"),gf(Va("isTriggerItemHighlighted"),Va("isHighlightedItemEditable"));function jA(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function C4(e,t){return e?K3(e,t):!1}function w4(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return jv(n,t);for(const l in e){const s=e[l],u=ZA(s.scope);if(u===t)return u}return jv(n,t)}ut()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),ut()(["closeOnSelect","disabled","value","valueText"]),ut()(["htmlFor"]),ut()(["id"]),ut()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let $v=new Map,e0=!1;try{e0=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let fp=!1;try{fp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const JA={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class k4{format(t){let n="";if(!e0&&this.options.signDisplay!=null?n=_4(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!fp){var r;let{unit:l,unitDisplay:s="short",locale:u}=this.resolvedOptions();if(!l)return n;let f=(r=JA[l])===null||r===void 0?void 0:r[s];n+=f[u]||f.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),l=this.numberFormatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...l.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!e0&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!fp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=T4(t,n),this.options=n}}function T4(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!fp){var r;let{unit:u,unitDisplay:f="short"}=t;if(!u)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=JA[u])===null||r===void 0)&&r[f]))throw new Error(`Unsupported unit ${u} with unitDisplay = ${f}`);t={...t,style:"decimal"}}let l=e+(t?Object.entries(t).sort((u,f)=>u[0]<f[0]?-1:1).join():"");if($v.has(l))return $v.get(l);let s=new Intl.NumberFormat(e,t);return $v.set(l,s),s}function _4(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let l=e.format(-n),s=e.format(n),u=l.replace(s,"").replace(/\u200e|\u061C/,"");return[...u].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),l.replace(s,"!!!").replace(u,"+").replace("!!!",s)}else return e.format(n)}}const O4=new RegExp("^.*\\(.*\\).*$"),R4=["latn","arab","hanidec","deva","beng","fullwide"];class qA{parse(t){return t0(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return t0(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return t0(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const $A=new Map;function t0(e,t,n){let r=e2(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let l of R4)if(l!==r.options.numberingSystem){let s=e2(e+(e.includes("-u-")?"-nu-":"-u-nu-")+l,t);if(s.isValidPartialNumber(n))return s}}return r}function e2(e,t){let n=e+(t?Object.entries(t).sort((l,s)=>l[0]<s[0]?-1:1).join():""),r=$A.get(n);return r||(r=new F4(e,t),$A.set(n,r)),r}class F4{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Kd(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let u=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let f=n.indexOf(".");f===-1&&(f=n.length),n=n.replace(".",""),f-2===0?n=`0.${n}`:f-2===-1?n=`0.0${n}`:f-2===-2?n="0.00":n=`${n.slice(0,f-2)}.${n.slice(f-2)}`,u>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var l,s;let u={...this.options,style:"decimal",minimumFractionDigits:Math.min(((l=this.options.minimumFractionDigits)!==null&&l!==void 0?l:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)};return new qA(this.locale,u).parse(new k4(this.locale,u).format(r))}return this.options.currencySign==="accounting"&&O4.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Kd(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Kd(t," ",this.symbols.group),t=Kd(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Kd(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=N4(t,this.formatter,this.options,n);var r,l;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((l=this.options.maximumFractionDigits)!==null&&l!==void 0?l:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const t2=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),I4=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function N4(e,t,n,r){var l,s,u,f;let g=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),v=g.formatToParts(-10000.111),y=g.formatToParts(10000.111),A=I4.map(H=>g.formatToParts(H));var C;let w=(C=(l=v.find(H=>H.type==="minusSign"))===null||l===void 0?void 0:l.value)!==null&&C!==void 0?C:"-",R=(s=y.find(H=>H.type==="plusSign"))===null||s===void 0?void 0:s.value;!R&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(R="+");let Y=(u=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(H=>H.type==="decimal"))===null||u===void 0?void 0:u.value,L=(f=v.find(H=>H.type==="group"))===null||f===void 0?void 0:f.value,X=v.filter(H=>!t2.has(H.type)).map(H=>n2(H.value)),V=A.flatMap(H=>H.filter(Ae=>!t2.has(Ae.type)).map(Ae=>n2(Ae.value))),re=[...new Set([...X,...V])].sort((H,Ae)=>Ae.length-H.length),U=re.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${re.join("|")}|[\\p{White_Space}]`,"gu"),J=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),de=new Map(J.map((H,Ae)=>[H,Ae])),ae=new RegExp(`[${J.join("")}]`,"g");return{minusSign:w,plusSign:R,decimal:Y,group:L,literals:U,numeral:ae,index:H=>String(de.get(H))}}function Kd(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function n2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var r2=nt("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");r2.build();var P4=e=>e.ids?.input??`number-input:${e.id}:input`,z4=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,D4=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,i2=e=>`number-input:${e.id}:cursor`,dp=e=>e.getById(P4(e)),M4=e=>e.getById(z4(e)),W4=e=>e.getById(D4(e)),a2=e=>e.getDoc().getElementById(i2(e)),L4=(e,t)=>{let n=null;return t==="increment"&&(n=M4(e)),t==="decrement"&&(n=W4(e)),n},Y4=(e,t)=>{if(!lx())return B4(e,t),()=>{a2(e)?.remove()}},V4=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},X4=(e,t)=>{const{point:n,isRtl:r,event:l}=t,s=e.getWin(),u=hv(l.movementX,s.devicePixelRatio),f=hv(l.movementY,s.devicePixelRatio);let g=u>0?"increment":u<0?"decrement":null;r&&g==="increment"&&(g="decrement"),r&&g==="decrement"&&(g="increment");const v={x:n.x+u,y:n.y+f},y=s.innerWidth,A=hv(7.5,s.devicePixelRatio);return v.x=tO(v.x+A,y)-A,{hint:g,point:v}},B4=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=i2(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:mO,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
|
56
|
+
*/var S1;function DT(){if(S1)return Qt;S1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,g=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,A=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,R=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,Y=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,X=e?Symbol.for("react.scope"):60119;function V(U){if(typeof U=="object"&&U!==null){var J=U.$$typeof;switch(J){case t:switch(U=U.type,U){case g:case v:case r:case s:case l:case A:return U;default:switch(U=U&&U.$$typeof,U){case f:case y:case R:case w:case u:return U;default:return J}}case n:return J}}}function re(U){return V(U)===v}return Qt.AsyncMode=g,Qt.ConcurrentMode=v,Qt.ContextConsumer=f,Qt.ContextProvider=u,Qt.Element=t,Qt.ForwardRef=y,Qt.Fragment=r,Qt.Lazy=R,Qt.Memo=w,Qt.Portal=n,Qt.Profiler=s,Qt.StrictMode=l,Qt.Suspense=A,Qt.isAsyncMode=function(U){return re(U)||V(U)===g},Qt.isConcurrentMode=re,Qt.isContextConsumer=function(U){return V(U)===f},Qt.isContextProvider=function(U){return V(U)===u},Qt.isElement=function(U){return typeof U=="object"&&U!==null&&U.$$typeof===t},Qt.isForwardRef=function(U){return V(U)===y},Qt.isFragment=function(U){return V(U)===r},Qt.isLazy=function(U){return V(U)===R},Qt.isMemo=function(U){return V(U)===w},Qt.isPortal=function(U){return V(U)===n},Qt.isProfiler=function(U){return V(U)===s},Qt.isStrictMode=function(U){return V(U)===l},Qt.isSuspense=function(U){return V(U)===A},Qt.isValidElementType=function(U){return typeof U=="string"||typeof U=="function"||U===r||U===v||U===s||U===l||U===A||U===C||typeof U=="object"&&U!==null&&(U.$$typeof===R||U.$$typeof===w||U.$$typeof===u||U.$$typeof===f||U.$$typeof===y||U.$$typeof===Y||U.$$typeof===L||U.$$typeof===X||U.$$typeof===N)},Qt.typeOf=V,Qt}var E1;function MT(){return E1||(E1=1,Km.exports=DT()),Km.exports}var jm,C1;function WT(){if(C1)return jm;C1=1;var e=MT(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=l;function u(R){return e.isMemo(R)?l:s[R.$$typeof]||t}var f=Object.defineProperty,g=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,A=Object.getPrototypeOf,C=Object.prototype;function w(R,N,Y){if(typeof N!="string"){if(C){var L=A(N);L&&L!==C&&w(R,L,Y)}var X=g(N);v&&(X=X.concat(v(N)));for(var V=u(R),re=u(N),U=0;U<X.length;++U){var J=X[U];if(!n[J]&&!(Y&&Y[J])&&!(re&&re[J])&&!(V&&V[J])){var de=y(N,J);try{f(R,J,de)}catch{}}}}return R}return jm=w,jm}var LT=WT();const YT=zu(LT);var VT=(function(e,t){return YT(e,t)}),XT=!0;function Jm(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]!==void 0?t.push(e[l]+";"):l&&(r+=l+" ")}),r}var Tg=function(t,n,r){var l=t.key+"-"+n.name;(r===!1||XT===!1)&&t.registered[l]===void 0&&(t.registered[l]=n.styles)},_g=function(t,n,r){Tg(t,n,r);var l=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+l:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function BT(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var HT={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},UT=/[A-Z]|^ms/g,GT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,w1=function(t){return t.charCodeAt(1)===45},k1=function(t){return t!=null&&typeof t!="boolean"},qm=c1(function(e){return w1(e)?e:e.replace(UT,"-$&").toLowerCase()}),T1=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(GT,function(r,l,s){return lo={name:l,styles:s,next:lo},l})}return HT[t]!==1&&!w1(t)&&typeof n=="number"&&n!==0?n+"px":n};function Id(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var l=n;if(l.anim===1)return lo={name:l.name,styles:l.styles,next:lo},l.name;var s=n;if(s.styles!==void 0){var u=s.next;if(u!==void 0)for(;u!==void 0;)lo={name:u.name,styles:u.styles,next:lo},u=u.next;var f=s.styles+";";return f}return ZT(e,t,n)}case"function":{if(e!==void 0){var g=lo,v=n(e);return lo=g,Id(e,t,v)}break}}var y=n;if(t==null)return y;var A=t[y];return A!==void 0?A:y}function ZT(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l<n.length;l++)r+=Id(e,t,n[l])+";";else for(var s in n){var u=n[s];if(typeof u!="object"){var f=u;t!=null&&t[f]!==void 0?r+=s+"{"+t[f]+"}":k1(f)&&(r+=qm(s)+":"+T1(s,f)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var g=0;g<u.length;g++)k1(u[g])&&(r+=qm(s)+":"+T1(s,u[g])+";");else{var v=Id(e,t,u);switch(s){case"animation":case"animationName":{r+=qm(s)+":"+v+";";break}default:r+=s+"{"+v+"}"}}}return r}var _1=/label:\s*([^\s;{]+)\s*(;|$)/g,lo;function Nd(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,l="";lo=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,l+=Id(n,t,s);else{var u=s;l+=u[0]}for(var f=1;f<e.length;f++)if(l+=Id(n,t,e[f]),r){var g=s;l+=g[f]}_1.lastIndex=0;for(var v="",y;(y=_1.exec(l))!==null;)v+="-"+y[1];var A=BT(l)+v;return{name:A,styles:l,next:lo}}var QT=function(t){return t()},O1=r1.useInsertionEffect?r1.useInsertionEffect:!1,$m=O1||QT,R1=O1||Te.useLayoutEffect,ev=Te.createContext(typeof HTMLElement<"u"?Qm({key:"css"}):null),F1=ev.Provider,KT=function(){return Te.useContext(ev)},Pd=function(t){return Te.forwardRef(function(n,r){var l=Te.useContext(ev);return t(n,l,r)})},Bo=Te.createContext({}),jT=function(){return Te.useContext(Bo)},JT=function(t,n){if(typeof n=="function"){var r=n(t);return r}return kg({},t,n)},qT=y1(function(e){return y1(function(t){return JT(e,t)})}),$T=function(t){var n=Te.useContext(Bo);return t.theme!==n&&(n=qT(n)(t.theme)),Te.createElement(Bo.Provider,{value:n},t.children)};function e_(e){var t=e.displayName||e.name||"Component",n=Te.forwardRef(function(l,s){var u=Te.useContext(Bo);return Te.createElement(e,kg({theme:u,ref:s},l))});return n.displayName="WithTheme("+t+")",VT(n,e)}var tv={}.hasOwnProperty,nv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",t_=function(t,n){var r={};for(var l in n)tv.call(n,l)&&(r[l]=n[l]);return r[nv]=t,r},n_=function(t){var n=t.cache,r=t.serialized,l=t.isStringTag;return Tg(n,r,l),$m(function(){return _g(n,r,l)}),null},r_=Pd(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var l=e[nv],s=[r],u="";typeof e.className=="string"?u=Jm(t.registered,s,e.className):e.className!=null&&(u=e.className+" ");var f=Nd(s,void 0,Te.useContext(Bo));u+=t.key+"-"+f.name;var g={};for(var v in e)tv.call(e,v)&&v!=="css"&&v!==nv&&(g[v]=e[v]);return g.className=u,n&&(g.ref=n),Te.createElement(Te.Fragment,null,Te.createElement(n_,{cache:t,serialized:f,isStringTag:typeof l=="string"}),Te.createElement(l,g))}),i_=r_,Og=function(t,n){var r=arguments;if(n==null||!tv.call(n,"css"))return Te.createElement.apply(void 0,r);var l=r.length,s=new Array(l);s[0]=i_,s[1]=t_(t,n);for(var u=2;u<l;u++)s[u]=r[u];return Te.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Og||(Og={}));var rv=Pd(function(e,t){var n=e.styles,r=Nd([n],void 0,Te.useContext(Bo)),l=Te.useRef();return R1(function(){var s=t.key+"-global",u=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,g=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),g!==null&&(f=!0,g.setAttribute("data-emotion",s),u.hydrate([g])),l.current=[u,f],function(){u.flush()}},[t]),R1(function(){var s=l.current,u=s[0],f=s[1];if(f){s[1]=!1;return}if(r.next!==void 0&&_g(t,r.next,!0),u.tags.length){var g=u.tags[u.tags.length-1].nextElementSibling;u.before=g,u.flush()}t.insert("",r,u,!1)},[t,r.name]),null});function I1(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Nd(t)}function a_(){var e=I1.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var l_=function e(t){for(var n=t.length,r=0,l="";r<n;r++){var s=t[r];if(s!=null){var u=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))u=e(s);else{u="";for(var f in s)s[f]&&f&&(u&&(u+=" "),u+=f)}break}default:u=s}u&&(l&&(l+=" "),l+=u)}}return l};function o_(e,t,n){var r=[],l=Jm(e,r,n);return r.length<2?n:l+t(r)}var s_=function(t){var n=t.cache,r=t.serializedArr;return $m(function(){for(var l=0;l<r.length;l++)_g(n,r[l],!1)}),null},u_=Pd(function(e,t){var n=[],r=function(){for(var g=arguments.length,v=new Array(g),y=0;y<g;y++)v[y]=arguments[y];var A=Nd(v,t.registered);return n.push(A),Tg(t,A,!1),t.key+"-"+A.name},l=function(){for(var g=arguments.length,v=new Array(g),y=0;y<g;y++)v[y]=arguments[y];return o_(t.registered,r,l_(v))},s={css:r,cx:l,theme:Te.useContext(Bo)},u=e.children(s);return Te.createElement(Te.Fragment,null,Te.createElement(s_,{cache:t,serializedArr:n}),u)});const c_=Object.freeze(Object.defineProperty({__proto__:null,CacheProvider:F1,ClassNames:u_,Global:rv,ThemeContext:Bo,ThemeProvider:$T,__unsafe_useEmotionCache:KT,get createElement(){return Og},css:I1,get jsx(){return Og},keyframes:a_,useTheme:jT,withEmotionCache:Pd,withTheme:e_},Symbol.toStringTag,{value:"Module"}));function f_(...e){return function(...n){e.forEach(r=>r?.(...n))}}const d_=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),h_=/^on[A-Z]/;function iv(...e){let t={};for(let n of e){for(let r in t){if(h_.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=f_(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=d_(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function g_(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function p_(...e){return t=>{e.forEach(n=>{g_(n,t)})}}function zd(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const oo=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function m_(e){return e.default||e}const Pi=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),so=e=>typeof e=="string",av=e=>typeof e=="function";function v_(e){const t=Te.version;return!so(t)||t.startsWith("18.")?e?.ref:e?.props?.ref}const N1=(...e)=>{const t=e.reduce((n,r)=>(r?.forEach(l=>n.add(l)),n),new Set([]));return Array.from(t)};function b_(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function P1(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:l="Provider",errorMessage:s,defaultValue:u}=e,f=Te.createContext(u);f.displayName=t;function g(){const v=Te.useContext(f);if(!v&&n){const y=new Error(s??b_(r,l));throw y.name="ContextError",Error.captureStackTrace?.(y,g),y}return v}return[f.Provider,g,f]}const[y_,Rg]=P1({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function x_(e){const{value:t,children:n}=e;return ne.jsxs(y_,{value:t,children:[!t._config.disableLayers&&ne.jsx(rv,{styles:t.layers.atRule}),ne.jsx(rv,{styles:t._global}),n]})}const A_=(e,t)=>{const n={},r={},l=Object.keys(e);for(const s of l)t(s)?r[s]=e[s]:n[s]=e[s];return[r,n]},ef=(e,t)=>{const n=av(t)?t:r=>t.includes(r);return A_(e,n)},S_=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function E_(e){return typeof e=="string"&&S_.has(e)}function C_(e,t,n){const{css:r,isValidProperty:l}=Rg(),{children:s,...u}=e,f=Te.useMemo(()=>{const[C,w]=ef(u,X=>n(X,t.variantKeys)),[R,N]=ef(w,t.variantKeys),[Y,L]=ef(N,l);return{forwardedProps:C,variantProps:R,styleProps:Y,elementProps:L}},[t.variantKeys,n,u,l]),{css:g,...v}=f.styleProps,y=Te.useMemo(()=>{const C={...f.variantProps};return t.variantKeys.includes("colorPalette")||(C.colorPalette=u.colorPalette),t.variantKeys.includes("orientation")||(C.orientation=u.orientation),t(C)},[t,f.variantProps,u.colorPalette,u.orientation]);return{styles:Te.useMemo(()=>r(y,...w_(g),v),[r,y,g,v]),props:{...f.forwardedProps,...f.elementProps,children:s}}}const w_=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),k_=m_(lT),T_=e=>e!=="theme",__=(e,t,n)=>{let r;if(t){const l=t.shouldForwardProp;r=e.__emotion_forwardProp&&l?s=>e.__emotion_forwardProp(s)&&l(s):l}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let O_=typeof document<"u";const z1=({cache:e,serialized:t,isStringTag:n})=>{Tg(e,t,n);const r=$m(()=>_g(e,t,n));if(!O_&&r!==void 0){let l=t.name,s=t.next;for(;s!==void 0;)l=oo(l,s.name),s=s.next;return ne.jsx("style",{"data-emotion":oo(e.key,l),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},D1={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"]},R_=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),lv=((e,t={},n={})=>{if(R_(D1,e)){n.forwardProps||(n.forwardProps=[]);const v=D1[e];n.forwardProps=N1([...n.forwardProps,...v])}const r=e.__emotion_real===e,l=r&&e.__emotion_base||e;let s,u;n!==void 0&&(s=n.label,u=n.target);let f=[];const g=Pd((v,y,A)=>{const{cva:C,isValidProperty:w}=Rg(),R=t.__cva__?t:C(t),N=F_(e.__emotion_cva,R),Y=ue=>(z,Q)=>ue.includes(z)?!0:!Q?.includes(z)&&!w(z);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=Y(n.forwardProps));const L=(ue,z)=>{const Q=typeof e=="string"&&e.charCodeAt(0)>96?k_:T_,Ce=!z?.includes(ue)&&!w(ue);return Q(ue)&&Ce},X=__(e,n,r)||L,V=Te.useMemo(()=>Object.assign({},n.defaultProps,zd(v)),[v]),{props:re,styles:U}=C_(V,N,X);let J="",de=[U],ae=re;if(re.theme==null){ae={};for(let ue in re)ae[ue]=re[ue];ae.theme=Te.useContext(Bo)}typeof re.className=="string"?J=Jm(y.registered,de,re.className):re.className!=null&&(J=oo(J,re.className));const ie=Nd(f.concat(de),y.registered,ae);ie.styles&&(J=oo(J,`${y.key}-${ie.name}`)),u!==void 0&&(J=oo(J,u));const H=!X("as");let Ae=H&&re.as||l,ce={};for(let ue in re)if(!(H&&ue==="as")){if(E_(ue)){const z=ue.replace("html","").toLowerCase();ce[z]=re[ue];continue}X(ue)&&(ce[ue]=re[ue])}let _e=J.trim();_e?ce.className=_e:Reflect.deleteProperty(ce,"className"),ce.ref=A;const $=n.forwardAsChild||n.forwardProps?.includes("asChild");if(re.asChild&&!$){const ue=Te.isValidElement(re.children)?Te.Children.only(re.children):Te.Children.toArray(re.children).find(Te.isValidElement);if(!ue)throw new Error("[chakra-ui > factory] No valid child found");Ae=ue.type,ce.children=null,Reflect.deleteProperty(ce,"asChild"),ce=iv(ce,ue.props),ce.ref=p_(A,v_(ue))}return ce.as&&$?(ce.as=void 0,ne.jsxs(Te.Fragment,{children:[ne.jsx(z1,{cache:y,serialized:ie,isStringTag:typeof Ae=="string"}),ne.jsx(Ae,{asChild:!0,...ce,children:ne.jsx(re.as,{children:ce.children})})]})):ne.jsxs(Te.Fragment,{children:[ne.jsx(z1,{cache:y,serialized:ie,isStringTag:typeof Ae=="string"}),ne.jsx(Ae,{...ce})]})});return g.displayName=s!==void 0?s:`chakra(${typeof l=="string"?l:l.displayName||l.name||"Component"})`,g.__emotion_real=g,g.__emotion_base=l,g.__emotion_forwardProp=n.shouldForwardProp,g.__emotion_cva=t,Object.defineProperty(g,"toString",{value(){return`.${u}`}}),g}).bind(),ov=new Map,Rs=new Proxy(lv,{apply(e,t,n){return lv(...n)},get(e,t){return ov.has(t)||ov.set(t,lv(t)),ov.get(t)}}),F_=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),Ft=Rs("div");Ft.displayName="Box";const I_=Object.freeze({});function N_(e){const{key:t,recipe:n}=e,r=Rg();return Te.useMemo(()=>{const l=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(l))},[t,n,r])}const P_=e=>e.charAt(0).toUpperCase()+e.slice(1);function tf(e){const{key:t,recipe:n}=e,r=P_(t||n.className||"Component"),[l,s]=P1({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function u(v){const{unstyled:y,...A}=v,C=N_({key:t,recipe:A.recipe||n}),[w,R]=Te.useMemo(()=>C.splitVariantProps(A),[C,A]);return{styles:y?I_:C(w),className:C.className,props:R}}const f=(v,y)=>{const A=Rs(v,{},y),C=Te.forwardRef((w,R)=>{const N=s(),Y=Te.useMemo(()=>iv(N,w),[w,N]),{styles:L,className:X,props:V}=u(Y);return ne.jsx(A,{...V,ref:R,css:[L,Y.css],className:oo(X,Y.className)})});return C.displayName=v.displayName||v.name,C};function g(){return l}return{withContext:f,PropsProvider:l,withPropsProvider:g,usePropsContext:s,useRecipeResult:u}}const z_=Te.forwardRef(function(t,n){const{templateAreas:r,column:l,row:s,autoFlow:u,autoRows:f,templateRows:g,autoColumns:v,templateColumns:y,inline:A,...C}=t;return ne.jsx(Rs.div,{...C,ref:n,css:[{display:A?"inline-grid":"grid",gridTemplateAreas:r,gridAutoColumns:v,gridColumn:l,gridRow:s,gridAutoFlow:u,gridAutoRows:f,gridTemplateRows:g,gridTemplateColumns:y},t.css]})});function sv(e){return e==null?[]:Array.isArray(e)?e:[e]}var Dd=e=>e[0],uv=e=>e[e.length-1],D_=(e,t)=>e.indexOf(t)!==-1,Du=(e,...t)=>e.concat(t),Mu=(e,...t)=>e.filter(n=>!t.includes(n)),nf=e=>Array.from(new Set(e)),cv=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},rf=(e,t)=>D_(e,t)?Mu(e,t):Du(e,t);function M1(e,t,n={}){const{step:r=1,loop:l=!0}=n,s=t+r,u=e.length,f=u-1;return t===-1?r>0?0:f:s<0?l?f:0:s>=u?l?0:t>u?u:t:s}function M_(e,t,n={}){return e[M1(e,t,n)]}function W_(e,t,n={}){const{step:r=1,loop:l=!0}=n;return M1(e,t,{step:-r,loop:l})}function L_(e,t,n={}){return e[W_(e,t,n)]}function W1(e,t){return e.reduce(([n,r],l)=>(t(l)?n.push(l):r.push(l),[n,r]),[[],[]])}var L1=e=>e?.constructor.name==="Array",Y_=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!cl(e[n],t[n]))return!1;return!0},cl=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(L1(e)&&L1(t))return Y_(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let l=0;l<r;l++)if(!Reflect.has(e,n[l]))return!1;for(let l=0;l<r;l++){const s=n[l];if(!cl(e[s],t[s]))return!1}return!0},Md=e=>Array.isArray(e),V_=e=>e===!0||e===!1,Y1=e=>e!=null&&typeof e=="object",Wu=e=>Y1(e)&&!Md(e),fv=e=>typeof e=="string",V1=e=>typeof e=="function",X_=e=>e==null,Fs=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),B_=e=>Object.prototype.toString.call(e),X1=Function.prototype.toString,H_=X1.call(Object),U_=e=>{if(!Y1(e)||B_(e)!="[object Object]"||Q_(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Fs(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&X1.call(n)==H_},G_=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Z_=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Q_=e=>G_(e)||Z_(e),K_=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,j_=()=>{},Fg=(...e)=>(...t)=>{e.forEach(function(n){n?.(...t)})};function Ho(e,t,...n){if(e in t){const l=t[e];return V1(l)?l(...n):l}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(r,Ho),r}var B1=(e,t)=>{try{return e()}catch(n){return n instanceof Error&&Error.captureStackTrace?.(n,B1),t?.()}},{floor:H1,abs:U1,round:Ig,min:J_,max:q_,pow:$_,sign:eO}=Math,dv=e=>Number.isNaN(e),Uo=e=>dv(e)?0:e,G1=(e,t)=>(e%t+t)%t,tO=(e,t)=>(e%t+t)%t,nO=(e,t)=>Uo(e)>=t,rO=(e,t)=>Uo(e)<=t,iO=(e,t,n)=>Uo(e)>=t&&Uo(e)<=n,aO=(e,t,n)=>Ig((Uo(e)-t)/n)*n+t,zi=(e,t,n)=>J_(q_(Uo(e),t),n),lO=(e,t,n)=>(Uo(e)-t)/(n-t),oO=(e,t,n,r)=>zi(aO(e*(n-t)+t,t,r),t,n),Z1=(e,t)=>{let n=e,r=t.toString(),l=r.indexOf("."),s=l>=0?r.length-l:0;if(s>0){let u=$_(10,s);n=Ig(n*u)/u}return n},hv=(e,t)=>typeof t=="number"?H1(e*t+.5)/t:Ig(e),Q1=(e,t,n,r)=>{const l=t!=null?Number(t):0,s=Number(n),u=(e-l)%r;let f=U1(u)*2>=r?e+eO(u)*(r-U1(u)):e-u;if(f=Z1(f,r),!dv(l)&&f<l)f=l;else if(!dv(s)&&f>s){const g=H1((s-l)/r),v=l+g*r;f=g<=0||v<l?s:v}return Z1(f,r)},mn=(e,t=0,n=10)=>{const r=Math.pow(n,t);return Ig(e*r)/r},K1=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},j1=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const l=10**Math.max(K1(e),K1(n));e=Math.round(e*l),n=Math.round(n*l),r=t==="+"?e+n:e-n,r/=l}return r},sO=(e,t)=>j1(Uo(e),"+",t),uO=(e,t)=>j1(Uo(e),"-",t);function J1(e){if(!U_(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const l=e[r];l!==void 0&&(n[r]=J1(l))}return n}function q1(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function cO(e,t){if(e==null)throw new Error(t())}function fO(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function $1(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:l="Provider",errorMessage:s,defaultValue:u}=e,f=Te.createContext(u);f.displayName=t;function g(){const v=Te.useContext(f);if(!v&&n){const y=new Error(s??fO(r,l));throw y.name="ContextError",Error.captureStackTrace?.(y,g),y}return v}return[f.Provider,g,f]}const[dO,VU]=$1({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function hO(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var ex=e=>Math.max(0,Math.min(1,e)),gO=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),pO=()=>{},Ng=e=>typeof e=="object"&&e!==null,mO=2147483647,vO=1,bO=9,yO=11,Di=e=>Ng(e)&&e.nodeType===vO&&typeof e.nodeName=="string",tx=e=>Ng(e)&&e.nodeType===bO,xO=e=>Ng(e)&&e===e.window,nx=e=>Di(e)?e.localName||"":"#document";function AO(e){return["html","body","#document"].includes(nx(e))}var SO=e=>Ng(e)&&e.nodeType!==void 0,Wd=e=>SO(e)&&e.nodeType===yO&&"host"in e,EO=e=>Di(e)&&e.localName==="input",CO=e=>Di(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,wO=/(textarea|select)/;function kO(e){if(e==null||!Di(e))return!1;try{return EO(e)&&e.selectionStart!=null||wO.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Lu(e,t){if(!e||!t||!Di(e)||!Di(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Wd(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function fl(e){return tx(e)?e:xO(e)?e.document:e?.ownerDocument??document}function TO(e){return fl(e).documentElement}function hr(e){return Wd(e)?hr(e.host):tx(e)?e.defaultView??window:Di(e)?e.ownerDocument?.defaultView??window:window}function _O(e){if(nx(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Wd(e)&&e.host||TO(e);return Wd(t)?t.host:t}var gv=new WeakMap;function rx(e){return gv.has(e)||gv.set(e,hr(e).getComputedStyle(e)),gv.get(e)}var Pg=()=>typeof document<"u";function OO(){return navigator.userAgentData?.platform??navigator.platform}function RO(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var pv=e=>Pg()&&e.test(OO()),ix=e=>Pg()&&e.test(RO()),FO=e=>Pg()&&e.test(navigator.vendor),ax=()=>Pg()&&!!navigator.maxTouchPoints,IO=()=>pv(/^iPhone/i),NO=()=>pv(/^iPad/i)||zg()&&navigator.maxTouchPoints>1,mv=()=>IO()||NO(),PO=()=>zg()||mv(),zg=()=>pv(/^Mac/i),lx=()=>PO()&&FO(/apple/i),zO=()=>ix(/Firefox/i),DO=()=>ix(/Android/i);function MO(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function Is(e){return MO(e)?.[0]??e.target}function WO(e){return XO(e).isComposing||e.keyCode===229}function LO(e){return e.mozInputSource===0&&e.isTrusted?!0:DO()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var YO=e=>e.button===2||zg()&&e.ctrlKey&&e.button===0,VO=e=>"touches"in e&&e.touches.length>0;function XO(e){return e.nativeEvent??e}function BO(e,t="client"){const n=VO(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var Nr=(e,t,n,r)=>{const l=typeof e=="function"?e():e;return l?.addEventListener(t,n,r),()=>{l?.removeEventListener(t,n,r)}};function HO(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,l=hr(e)[n].prototype;return Object.getOwnPropertyDescriptor(l,r)??{}}function UO(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Dg(e,t,n="value"){if(!e)return;const r=UO(e);r&&HO(e,{type:r,property:n}).set?.call(e,t),e.setAttribute(n,t)}function GO(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const l=hr(e);e instanceof l.HTMLInputElement&&(Dg(e,`${n}`),e.dispatchEvent(new l.Event("input",{bubbles:r})))}function ZO(e){return QO(e)?e.form:e.closest("form")}function QO(e){return e.matches("textarea, input, select, button")}function KO(e,t){if(!e)return;const n=ZO(e),r=l=>{l.defaultPrevented||t()};return n?.addEventListener("reset",r,{passive:!0}),()=>n?.removeEventListener("reset",r)}function jO(e,t){const n=e?.closest("fieldset");if(!n)return;t(n.disabled);const r=hr(n),l=new r.MutationObserver(()=>t(n.disabled));return l.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>l.disconnect()}function vv(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,l=[KO(e,r),jO(e,n)];return()=>l.forEach(s=>s?.())}var JO=e=>Di(e)&&e.tagName==="IFRAME",qO=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,ox="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 bv(e){return!e||e.closest("[inert]")?!1:e.matches(ox)&&CO(e)}function sx(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(ox)).filter($O);return r.forEach((l,s)=>{if(JO(l)&&l.contentDocument){const u=l.contentDocument.body,f=sx(u);r.splice(s,1,...f)}}),r.length,r}function $O(e){return e!=null&&e.tabIndex>0?!0:bv(e)&&!qO(e)}function yv(e){const{root:t,getInitialEl:n,filter:r,enabled:l=!0}=e;if(!l)return;let s=null;if(s||(s=typeof n=="function"?n():n),s||(s=t?.querySelector("[data-autofocus],[autofocus]")),!s){const u=sx(t);s=r?u.filter(r)[0]:u[0]}return s||t||void 0}function ux(e){const t=new Set;function n(r){const l=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(l))}return n(()=>n(e)),function(){t.forEach(l=>l())}}function zt(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t?.()}}function eR(e,t,n){const r=zt(()=>{e.removeEventListener(t,l,!0),n()}),l=()=>{r(),n()};return e.addEventListener(t,l,{once:!0,capture:!0}),r}function tR(e,t){if(!e)return;const{attributes:n,callback:r}=t,l=e.ownerDocument.defaultView||window,s=new l.MutationObserver(u=>{for(const f of u)f.type==="attributes"&&f.attributeName&&n.includes(f.attributeName)&&r(f)});return s.observe(e,{attributes:!0,attributeFilter:n}),()=>s.disconnect()}function Mg(e,t){const{defer:n}=t,r=n?zt:s=>s(),l=[];return l.push(r(()=>{const s=typeof e=="function"?e():e;l.push(tR(s,t))})),()=>{l.forEach(s=>s?.())}}function cx(e){const t=()=>{const n=hr(e);e.dispatchEvent(new n.MouseEvent("click"))};zO()?eR(e,"keyup",t):queueMicrotask(t)}function Wg(e){const t=_O(e);return AO(t)?fl(t).body:Di(t)&&xv(t)?t:Wg(t)}function fx(e,t=[]){const n=Wg(e),r=n===e.ownerDocument.body,l=hr(n);return r?t.concat(l,l.visualViewport||[],xv(n)?n:[]):t.concat(n,fx(n,[]))}var nR=/auto|scroll|overlay|hidden|clip/,rR=new Set(["inline","contents"]);function xv(e){const t=hr(e),{overflow:n,overflowX:r,overflowY:l,display:s}=t.getComputedStyle(e);return nR.test(n+l+r)&&!rR.has(s)}function iR(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Lg(e,t){const{rootEl:n,...r}=t||{};!e||!n||!xv(n)||!iR(n)||e.scrollIntoView(r)}function dx(e,t){const{left:n,top:r,width:l,height:s}=t.getBoundingClientRect(),u={x:e.x-n,y:e.y-r},f={x:ex(u.x/l),y:ex(u.y/s)};function g(v={}){const{dir:y="ltr",orientation:A="horizontal",inverted:C}=v,w=typeof C=="object"?C.x:C,R=typeof C=="object"?C.y:C;return A==="horizontal"?y==="rtl"||w?1-f.x:f.x:R?1-f.y:f.y}return{offset:u,percent:f,getPercentValue:g}}function aR(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,l=()=>!!e.pointerLockElement;function s(){}function u(g){l(),console.error("PointerLock error occurred:",g),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const f=[Nr(e,"pointerlockchange",s,!1),Nr(e,"pointerlockerror",u,!1)];return()=>{f.forEach(g=>g()),e.exitPointerLock()}}var af="default",Av="",Yg=new WeakMap;function lR(e={}){const{target:t,doc:n}=e,r=n??document,l=r.documentElement;return mv()?(af==="default"&&(Av=l.style.webkitUserSelect,l.style.webkitUserSelect="none"),af="disabled"):t&&(Yg.set(t,t.style.userSelect),t.style.userSelect="none"),()=>oR({target:t,doc:r})}function oR(e={}){const{target:t,doc:n}=e,l=(n??document).documentElement;if(mv()){if(af!=="disabled")return;af="restoring",setTimeout(()=>{ux(()=>{af==="restoring"&&(l.style.webkitUserSelect==="none"&&(l.style.webkitUserSelect=Av||""),Av="",af="default")})},300)}else if(t&&Yg.has(t)){const s=Yg.get(t);t.style.userSelect==="none"&&(t.style.userSelect=s??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Yg.delete(t)}}function hx(e={}){const{defer:t,target:n,...r}=e,l=t?zt:u=>u(),s=[];return s.push(l(()=>{const u=typeof n=="function"?n():n;s.push(lR({...r,target:u}))})),()=>{s.forEach(u=>u?.())}}function sR(e,t){const{onPointerMove:n,onPointerUp:r}=t,s=[Nr(e,"pointermove",u=>{const f=BO(u),g=Math.sqrt(f.x**2+f.y**2),v=u.pointerType==="touch"?10:5;if(!(g<v)){if(u.pointerType==="mouse"&&u.button===0){r();return}n({point:f,event:u})}},!1),Nr(e,"pointerup",r,!1),Nr(e,"pointercancel",r,!1),Nr(e,"contextmenu",r,!1),hx({doc:e})];return()=>{s.forEach(u=>u())}}function Vg(e,t){return Array.from(e?.querySelectorAll(t)??[])}function uR(e,t){return e?.querySelector(t)??null}var Sv=e=>e.id;function cR(e,t,n=Sv){return e.find(r=>n(r)===t)}function Ev(e,t,n=Sv){const r=cR(e,t,n);return r?e.indexOf(r):-1}function fR(e,t,n=!0){let r=Ev(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function dR(e,t,n=!0){let r=Ev(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var hR=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),gR=e=>hR(e.dataset?.valuetext??e.textContent??""),pR=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function mR(e,t,n,r=Sv){const l=n?Ev(e,n,r):-1;let s=n?gO(e,l):e;return t.length===1&&(s=s.filter(f=>r(f)!==n)),s.find(f=>pR(gR(f),t))}function vR(e,t){if(!e)return pO;const n=Object.keys(t).reduce((r,l)=>(r[l]=e.style.getPropertyValue(l),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function bR(e,t){const{state:n,activeId:r,key:l,timeout:s=350,itemToId:u}=t,f=n.keysSoFar+l,v=f.length>1&&Array.from(f).every(R=>R===f[0])?f[0]:f;let y=e.slice();const A=mR(y,v,r,u);function C(){clearTimeout(n.timer),n.timer=-1}function w(R){n.keysSoFar=R,C(),R!==""&&(n.timer=+setTimeout(()=>{w(""),C()},s))}return w(f),A}var Ld=Object.assign(bR,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:yR});function yR(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function xR(e,t,n){const{signal:r}=t;return[new Promise((u,f)=>{const g=setTimeout(()=>{f(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(g),f(new Error("Promise aborted"))}),e.then(v=>{r.aborted||(clearTimeout(g),u(v))}).catch(v=>{r.aborted||(clearTimeout(g),f(v))})}),()=>t.abort()]}function AR(e,t){const{timeout:n,rootNode:r}=t,l=hr(r),s=fl(r),u=new l.AbortController;return xR(new Promise(f=>{const g=e();if(g){f(g);return}const v=new l.MutationObserver(()=>{const y=e();y&&y.isConnected&&(v.disconnect(),f(y))});v.observe(s.body,{childList:!0,subtree:!0})}),u,n)}var SR=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),ER=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,gx=e=>{const t={};let n;for(;n=ER.exec(e);)t[n[1]]=n[2];return t},CR=(e,t)=>{if(fv(e)){if(fv(t))return`${e};${t}`;e=gx(e)}else fv(t)&&(t=gx(t));return Object.assign({},e??{},t??{})};function px(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=Fg(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=SR(t[r],n[r]);continue}if(r==="style"){t[r]=CR(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function mx(e,t,n){let r=[],l;return s=>{const u=e(s);return(u.length!==r.length||u.some((g,v)=>!cl(r[v],g)))&&(r=u,l=t(...u)),l}}function Ns(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function XU(e){return e}function vx(){return{guards:Ns(),createMachine:e=>e,choose:e=>function({choose:n}){return n(e)?.actions}}}function bx(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const l=r(t);typeof l=="function"&&n.push(l)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function wR(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Cv=e=>{const t=Te.memo(Te.forwardRef((n,r)=>{const{asChild:l,children:s,...u}=n;if(!l)return Te.createElement(e,{...u,ref:r},s);if(!Te.isValidElement(s))return null;const f=Te.Children.only(s),g=wR(f);return Te.cloneElement(f,{...px(u,f.props),ref:r?bx(r,g):g})}));return t.displayName=e.displayName||e.name,t},kR=(()=>{const e=new Map;return new Proxy(Cv,{apply(t,n,r){return Cv(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Cv(r)),e.get(r)}})})();var ut=()=>e=>Array.from(new Set(e));const Xg=Rs("span"),{withContext:TR}=tf({key:"text"}),gr=TR("p");var nt=(e,t=[])=>({parts:(...n)=>{if(_R(t))return nt(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>nt(e,[...t,...n]),omit:(...n)=>nt(e,t.filter(r=>!n.includes(r))),rename:n=>nt(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${lf(e)}"][data-part="${lf(r)}"]`,`& [data-scope="${lf(e)}"][data-part="${lf(r)}"]`].join(", "),attrs:{"data-scope":lf(e),"data-part":lf(r)}}}),{})}),lf=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),_R=e=>e.length===0,yx=nt("collapsible").parts("root","trigger","content","indicator");yx.build(),ut()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var OR=Object.defineProperty,RR=(e,t,n)=>t in e?OR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wv=(e,t,n)=>RR(e,t+"",n),FR=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},kv=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:l}=this.getChannelRange(e);return lO(n,r,l)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:l}=this.getChannelRange(e),s=oO(t,n,r,l);return Q1(s,n,r,l)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let l=this.clone();return l[e]=zi(t,n,r),l}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(u=>u!==n),l=n||this.getChannels().find(u=>u!==r),s=this.getChannels().find(u=>u!==r&&u!==l);return{xChannel:r,yChannel:l,zChannel:s}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:l}=this.getChannelRange(e),s=Q1(zi(this.getChannelValue(e)+t,n,r),n,r,l);return this.withChannelValue(e,s)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return FR(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},IR=/^#[\da-f]+$/i,NR=/^rgba?\((.*)\)$/,PR=/[^#]/gi,xx=class Pm extends kv{constructor(t,n,r,l){super(),this.red=t,this.green=n,this.blue=r,this.alpha=l}static parse(t){let n=[];if(IR.test(t)&&[4,5,7,9].includes(t.length)){const l=(t.length<6?t.replace(PR,"$&$&"):t).slice(1).split("");for(;l.length>0;)n.push(parseInt(l.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(NR);return r?.[1]&&(n=r[1].split(",").map(l=>Number(l.trim())).map((l,s)=>zi(l,0,s<3?255:1))),n.length<3?void 0:new Pm(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,l=Math.min(t,n,r),s=Math.max(t,n,r),u=s-l,f=s===0?0:u/s;let g=0;if(u!==0){switch(s){case t:g=(n-r)/u+(n<r?6:0);break;case n:g=(r-t)/u+2;break;case r:g=(t-n)/u+4;break}g/=6}return new Ov(mn(g*360,2),mn(f*100,2),mn(s*100,2),mn(this.alpha,2))}toHSL(){const t=this.red/255,n=this.green/255,r=this.blue/255,l=Math.min(t,n,r),s=Math.max(t,n,r),u=(s+l)/2,f=s-l;let g=-1,v=-1;if(f===0)g=v=0;else{switch(v=f/(u<.5?s+l:2-s-l),s){case t:g=(n-r)/f+(n<r?6:0);break;case n:g=(r-t)/f+2;break;case r:g=(t-n)/f+4;break}g/=6}return new _v(mn(g*360,2),mn(v*100,2),mn(u*100,2),mn(this.alpha,2))}clone(){return new Pm(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return new Intl.NumberFormat(n,r).format(l)}getChannelRange(t){switch(t){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: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return Pm.colorChannels}};wv(xx,"colorChannels",["red","green","blue"]);var Tv=xx,zR=/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+)?)\)/,Ax=class zm extends kv{constructor(t,n,r,l){super(),this.hue=t,this.saturation=n,this.lightness=r,this.alpha=l}static parse(t){let n;if(n=t.match(zR)){const[r,l,s,u]=(n[1]??n[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new zm(G1(r,360),zi(l,0,100),zi(s,0,100),zi(u??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${mn(this.saturation,2)}%, ${mn(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${mn(this.saturation,2)}%, ${mn(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Ov(mn(this.hue,2),mn(t*100,2),mn(r*100,2),mn(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,l=n*Math.min(r,1-r),s=(u,f=(u+t/30)%12)=>r-l*Math.max(Math.min(f-3,9-f,1),-1);return new Tv(Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255),mn(this.alpha,2))}clone(){return new zm(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(l/=100),new Intl.NumberFormat(n,r).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return zm.colorChannels}};wv(Ax,"colorChannels",["hue","saturation","lightness"]);var _v=Ax,DR=/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+)?)\)/,Sx=class Dm extends kv{constructor(t,n,r,l){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=l}static parse(t){let n;if(n=t.match(DR)){const[r,l,s,u]=(n[1]??n[2]).split(",").map(f=>Number(f.trim().replace("%","")));return new Dm(G1(r,360),zi(l,0,100),zi(s,0,100),zi(u??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${mn(this.saturation,2)}%, ${mn(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${mn(this.saturation,2)}%, ${mn(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new _v(mn(this.hue,2),mn(t*100,2),mn(r*100,2),mn(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,l=(s,u=(s+t/60)%6)=>r-n*r*Math.max(Math.min(u,4-u,1),0);return new Tv(Math.round(l(5)*255),Math.round(l(3)*255),Math.round(l(1)*255),mn(this.alpha,2))}clone(){return new Dm(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),l=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(l/=100),new Intl.NumberFormat(n,r).format(l)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Dm.colorChannels}};wv(Sx,"colorChannels",["hue","saturation","brightness"]);var Ov=Sx,MR="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",WR=e=>{const t=new Map,n=e.split(",");for(let r=0;r<n.length;r++){const[l,s]=n[r].split(":");t.set(l,`#${s}`),l.includes("gray")&&t.set(l.replace("gray","grey"),`#${s}`)}return t},Ex=WR(MR),Bg=e=>{if(Ex.has(e))return Bg(Ex.get(e));const t=Tv.parse(e)||Ov.parse(e)||_v.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(n,Bg),n}return t};const LR=["top","right","bottom","left"],Ps=Math.min,na=Math.max,Hg=Math.round,Ug=Math.floor,uo=e=>({x:e,y:e}),YR={left:"right",right:"left",bottom:"top",top:"bottom"},VR={start:"end",end:"start"};function Rv(e,t,n){return na(e,Ps(t,n))}function Go(e,t){return typeof e=="function"?e(t):e}function Zo(e){return e.split("-")[0]}function of(e){return e.split("-")[1]}function Fv(e){return e==="x"?"y":"x"}function Iv(e){return e==="y"?"height":"width"}const XR=new Set(["top","bottom"]);function co(e){return XR.has(Zo(e))?"y":"x"}function Nv(e){return Fv(co(e))}function BR(e,t,n){n===void 0&&(n=!1);const r=of(e),l=Nv(e),s=Iv(l);let u=l==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=Gg(u)),[u,Gg(u)]}function HR(e){const t=Gg(e);return[Pv(e),t,Pv(t)]}function Pv(e){return e.replace(/start|end/g,t=>VR[t])}const Cx=["left","right"],wx=["right","left"],UR=["top","bottom"],GR=["bottom","top"];function ZR(e,t,n){switch(e){case"top":case"bottom":return n?t?wx:Cx:t?Cx:wx;case"left":case"right":return t?UR:GR;default:return[]}}function QR(e,t,n,r){const l=of(e);let s=ZR(Zo(e),n==="start",r);return l&&(s=s.map(u=>u+"-"+l),t&&(s=s.concat(s.map(Pv)))),s}function Gg(e){return e.replace(/left|right|bottom|top/g,t=>YR[t])}function KR(e){return{top:0,right:0,bottom:0,left:0,...e}}function kx(e){return typeof e!="number"?KR(e):{top:e,right:e,bottom:e,left:e}}function Zg(e){const{x:t,y:n,width:r,height:l}=e;return{width:r,height:l,top:n,left:t,right:t+r,bottom:n+l,x:t,y:n}}function Tx(e,t,n){let{reference:r,floating:l}=e;const s=co(t),u=Nv(t),f=Iv(u),g=Zo(t),v=s==="y",y=r.x+r.width/2-l.width/2,A=r.y+r.height/2-l.height/2,C=r[f]/2-l[f]/2;let w;switch(g){case"top":w={x:y,y:r.y-l.height};break;case"bottom":w={x:y,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:A};break;case"left":w={x:r.x-l.width,y:A};break;default:w={x:r.x,y:r.y}}switch(of(t)){case"start":w[u]-=C*(n&&v?-1:1);break;case"end":w[u]+=C*(n&&v?-1:1);break}return w}const jR=async(e,t,n)=>{const{placement:r="bottom",strategy:l="absolute",middleware:s=[],platform:u}=n,f=s.filter(Boolean),g=await(u.isRTL==null?void 0:u.isRTL(t));let v=await u.getElementRects({reference:e,floating:t,strategy:l}),{x:y,y:A}=Tx(v,r,g),C=r,w={},R=0;for(let N=0;N<f.length;N++){const{name:Y,fn:L}=f[N],{x:X,y:V,data:re,reset:U}=await L({x:y,y:A,initialPlacement:r,placement:C,strategy:l,middlewareData:w,rects:v,platform:u,elements:{reference:e,floating:t}});y=X??y,A=V??A,w={...w,[Y]:{...w[Y],...re}},U&&R<=50&&(R++,typeof U=="object"&&(U.placement&&(C=U.placement),U.rects&&(v=U.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:l}):U.rects),{x:y,y:A}=Tx(v,C,g)),N=-1)}return{x:y,y:A,placement:C,strategy:l,middlewareData:w}};async function Yd(e,t){var n;t===void 0&&(t={});const{x:r,y:l,platform:s,rects:u,elements:f,strategy:g}=e,{boundary:v="clippingAncestors",rootBoundary:y="viewport",elementContext:A="floating",altBoundary:C=!1,padding:w=0}=Go(t,e),R=kx(w),Y=f[C?A==="floating"?"reference":"floating":A],L=Zg(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(Y)))==null||n?Y:Y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:v,rootBoundary:y,strategy:g})),X=A==="floating"?{x:r,y:l,width:u.floating.width,height:u.floating.height}:u.reference,V=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),re=await(s.isElement==null?void 0:s.isElement(V))?await(s.getScale==null?void 0:s.getScale(V))||{x:1,y:1}:{x:1,y:1},U=Zg(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:X,offsetParent:V,strategy:g}):X);return{top:(L.top-U.top+R.top)/re.y,bottom:(U.bottom-L.bottom+R.bottom)/re.y,left:(L.left-U.left+R.left)/re.x,right:(U.right-L.right+R.right)/re.x}}const JR=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:l,rects:s,platform:u,elements:f,middlewareData:g}=t,{element:v,padding:y=0}=Go(e,t)||{};if(v==null)return{};const A=kx(y),C={x:n,y:r},w=Nv(l),R=Iv(w),N=await u.getDimensions(v),Y=w==="y",L=Y?"top":"left",X=Y?"bottom":"right",V=Y?"clientHeight":"clientWidth",re=s.reference[R]+s.reference[w]-C[w]-s.floating[R],U=C[w]-s.reference[w],J=await(u.getOffsetParent==null?void 0:u.getOffsetParent(v));let de=J?J[V]:0;(!de||!await(u.isElement==null?void 0:u.isElement(J)))&&(de=f.floating[V]||s.floating[R]);const ae=re/2-U/2,ie=de/2-N[R]/2-1,H=Ps(A[L],ie),Ae=Ps(A[X],ie),ce=H,_e=de-N[R]-Ae,$=de/2-N[R]/2+ae,ue=Rv(ce,$,_e),z=!g.arrow&&of(l)!=null&&$!==ue&&s.reference[R]/2-($<ce?H:Ae)-N[R]/2<0,Q=z?$<ce?$-ce:$-_e:0;return{[w]:C[w]+Q,data:{[w]:ue,centerOffset:$-ue-Q,...z&&{alignmentOffset:Q}},reset:z}}}),qR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:l,middlewareData:s,rects:u,initialPlacement:f,platform:g,elements:v}=t,{mainAxis:y=!0,crossAxis:A=!0,fallbackPlacements:C,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:N=!0,...Y}=Go(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const L=Zo(l),X=co(f),V=Zo(f)===f,re=await(g.isRTL==null?void 0:g.isRTL(v.floating)),U=C||(V||!N?[Gg(f)]:HR(f)),J=R!=="none";!C&&J&&U.push(...QR(f,N,R,re));const de=[f,...U],ae=await Yd(t,Y),ie=[];let H=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&ie.push(ae[L]),A){const $=BR(l,u,re);ie.push(ae[$[0]],ae[$[1]])}if(H=[...H,{placement:l,overflows:ie}],!ie.every($=>$<=0)){var Ae,ce;const $=(((Ae=s.flip)==null?void 0:Ae.index)||0)+1,ue=de[$];if(ue&&(!(A==="alignment"?X!==co(ue):!1)||H.every(Ce=>co(Ce.placement)===X?Ce.overflows[0]>0:!0)))return{data:{index:$,overflows:H},reset:{placement:ue}};let z=(ce=H.filter(Q=>Q.overflows[0]<=0).sort((Q,Ce)=>Q.overflows[1]-Ce.overflows[1])[0])==null?void 0:ce.placement;if(!z)switch(w){case"bestFit":{var _e;const Q=(_e=H.filter(Ce=>{if(J){const Ee=co(Ce.placement);return Ee===X||Ee==="y"}return!0}).map(Ce=>[Ce.placement,Ce.overflows.filter(Ee=>Ee>0).reduce((Ee,k)=>Ee+k,0)]).sort((Ce,Ee)=>Ce[1]-Ee[1])[0])==null?void 0:_e[0];Q&&(z=Q);break}case"initialPlacement":z=f;break}if(l!==z)return{reset:{placement:z}}}return{}}}};function _x(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ox(e){return LR.some(t=>e[t]>=0)}const $R=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...l}=Go(e,t);switch(r){case"referenceHidden":{const s=await Yd(t,{...l,elementContext:"reference"}),u=_x(s,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Ox(u)}}}case"escaped":{const s=await Yd(t,{...l,altBoundary:!0}),u=_x(s,n.floating);return{data:{escapedOffsets:u,escaped:Ox(u)}}}default:return{}}}}},Rx=new Set(["left","top"]);async function e9(e,t){const{placement:n,platform:r,elements:l}=e,s=await(r.isRTL==null?void 0:r.isRTL(l.floating)),u=Zo(n),f=of(n),g=co(n)==="y",v=Rx.has(u)?-1:1,y=s&&g?-1:1,A=Go(t,e);let{mainAxis:C,crossAxis:w,alignmentAxis:R}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};return f&&typeof R=="number"&&(w=f==="end"?R*-1:R),g?{x:w*y,y:C*v}:{x:C*v,y:w*y}}const t9=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:l,y:s,placement:u,middlewareData:f}=t,g=await e9(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:l+g.x,y:s+g.y,data:{...g,placement:u}}}}},n9=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:l}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:f={fn:Y=>{let{x:L,y:X}=Y;return{x:L,y:X}}},...g}=Go(e,t),v={x:n,y:r},y=await Yd(t,g),A=co(Zo(l)),C=Fv(A);let w=v[C],R=v[A];if(s){const Y=C==="y"?"top":"left",L=C==="y"?"bottom":"right",X=w+y[Y],V=w-y[L];w=Rv(X,w,V)}if(u){const Y=A==="y"?"top":"left",L=A==="y"?"bottom":"right",X=R+y[Y],V=R-y[L];R=Rv(X,R,V)}const N=f.fn({...t,[C]:w,[A]:R});return{...N,data:{x:N.x-n,y:N.y-r,enabled:{[C]:s,[A]:u}}}}}},r9=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:l,rects:s,middlewareData:u}=t,{offset:f=0,mainAxis:g=!0,crossAxis:v=!0}=Go(e,t),y={x:n,y:r},A=co(l),C=Fv(A);let w=y[C],R=y[A];const N=Go(f,t),Y=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(g){const V=C==="y"?"height":"width",re=s.reference[C]-s.floating[V]+Y.mainAxis,U=s.reference[C]+s.reference[V]-Y.mainAxis;w<re?w=re:w>U&&(w=U)}if(v){var L,X;const V=C==="y"?"width":"height",re=Rx.has(Zo(l)),U=s.reference[A]-s.floating[V]+(re&&((L=u.offset)==null?void 0:L[A])||0)+(re?0:Y.crossAxis),J=s.reference[A]+s.reference[V]+(re?0:((X=u.offset)==null?void 0:X[A])||0)-(re?Y.crossAxis:0);R<U?R=U:R>J&&(R=J)}return{[C]:w,[A]:R}}}},i9=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:l,rects:s,platform:u,elements:f}=t,{apply:g=()=>{},...v}=Go(e,t),y=await Yd(t,v),A=Zo(l),C=of(l),w=co(l)==="y",{width:R,height:N}=s.floating;let Y,L;A==="top"||A==="bottom"?(Y=A,L=C===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(L=A,Y=C==="end"?"top":"bottom");const X=N-y.top-y.bottom,V=R-y.left-y.right,re=Ps(N-y[Y],X),U=Ps(R-y[L],V),J=!t.middlewareData.shift;let de=re,ae=U;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ae=V),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(de=X),J&&!C){const H=na(y.left,0),Ae=na(y.right,0),ce=na(y.top,0),_e=na(y.bottom,0);w?ae=R-2*(H!==0||Ae!==0?H+Ae:na(y.left,y.right)):de=N-2*(ce!==0||_e!==0?ce+_e:na(y.top,y.bottom))}await g({...t,availableWidth:ae,availableHeight:de});const ie=await u.getDimensions(f.floating);return R!==ie.width||N!==ie.height?{reset:{rects:!0}}:{}}}};function Qg(){return typeof window<"u"}function sf(e){return Fx(e)?(e.nodeName||"").toLowerCase():"#document"}function ra(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fo(e){var t;return(t=(Fx(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fx(e){return Qg()?e instanceof Node||e instanceof ra(e).Node:!1}function dl(e){return Qg()?e instanceof Element||e instanceof ra(e).Element:!1}function ho(e){return Qg()?e instanceof HTMLElement||e instanceof ra(e).HTMLElement:!1}function Ix(e){return!Qg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ra(e).ShadowRoot}const a9=new Set(["inline","contents"]);function Vd(e){const{overflow:t,overflowX:n,overflowY:r,display:l}=hl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!a9.has(l)}const l9=new Set(["table","td","th"]);function o9(e){return l9.has(sf(e))}const s9=[":popover-open",":modal"];function Kg(e){return s9.some(t=>{try{return e.matches(t)}catch{return!1}})}const u9=["transform","translate","scale","rotate","perspective"],c9=["transform","translate","scale","rotate","perspective","filter"],f9=["paint","layout","strict","content"];function zv(e){const t=Dv(),n=dl(e)?hl(e):e;return u9.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||c9.some(r=>(n.willChange||"").includes(r))||f9.some(r=>(n.contain||"").includes(r))}function d9(e){let t=zs(e);for(;ho(t)&&!uf(t);){if(zv(t))return t;if(Kg(t))return null;t=zs(t)}return null}function Dv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const h9=new Set(["html","body","#document"]);function uf(e){return h9.has(sf(e))}function hl(e){return ra(e).getComputedStyle(e)}function jg(e){return dl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zs(e){if(sf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ix(e)&&e.host||fo(e);return Ix(t)?t.host:t}function Nx(e){const t=zs(e);return uf(t)?e.ownerDocument?e.ownerDocument.body:e.body:ho(t)&&Vd(t)?t:Nx(t)}function Xd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=Nx(e),s=l===((r=e.ownerDocument)==null?void 0:r.body),u=ra(l);if(s){const f=Mv(u);return t.concat(u,u.visualViewport||[],Vd(l)?l:[],f&&n?Xd(f):[])}return t.concat(l,Xd(l,[],n))}function Mv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Px(e){const t=hl(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const l=ho(e),s=l?e.offsetWidth:n,u=l?e.offsetHeight:r,f=Hg(n)!==s||Hg(r)!==u;return f&&(n=s,r=u),{width:n,height:r,$:f}}function Wv(e){return dl(e)?e:e.contextElement}function cf(e){const t=Wv(e);if(!ho(t))return uo(1);const n=t.getBoundingClientRect(),{width:r,height:l,$:s}=Px(t);let u=(s?Hg(n.width):n.width)/r,f=(s?Hg(n.height):n.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const g9=uo(0);function zx(e){const t=ra(e);return!Dv()||!t.visualViewport?g9:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function p9(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ra(e)?!1:t}function Yu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),s=Wv(e);let u=uo(1);t&&(r?dl(r)&&(u=cf(r)):u=cf(e));const f=p9(s,n,r)?zx(s):uo(0);let g=(l.left+f.x)/u.x,v=(l.top+f.y)/u.y,y=l.width/u.x,A=l.height/u.y;if(s){const C=ra(s),w=r&&dl(r)?ra(r):r;let R=C,N=Mv(R);for(;N&&r&&w!==R;){const Y=cf(N),L=N.getBoundingClientRect(),X=hl(N),V=L.left+(N.clientLeft+parseFloat(X.paddingLeft))*Y.x,re=L.top+(N.clientTop+parseFloat(X.paddingTop))*Y.y;g*=Y.x,v*=Y.y,y*=Y.x,A*=Y.y,g+=V,v+=re,R=ra(N),N=Mv(R)}}return Zg({width:y,height:A,x:g,y:v})}function Lv(e,t){const n=jg(e).scrollLeft;return t?t.left+n:Yu(fo(e)).left+n}function Dx(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),l=r.left+t.scrollLeft-(n?0:Lv(e,r)),s=r.top+t.scrollTop;return{x:l,y:s}}function m9(e){let{elements:t,rect:n,offsetParent:r,strategy:l}=e;const s=l==="fixed",u=fo(r),f=t?Kg(t.floating):!1;if(r===u||f&&s)return n;let g={scrollLeft:0,scrollTop:0},v=uo(1);const y=uo(0),A=ho(r);if((A||!A&&!s)&&((sf(r)!=="body"||Vd(u))&&(g=jg(r)),ho(r))){const w=Yu(r);v=cf(r),y.x=w.x+r.clientLeft,y.y=w.y+r.clientTop}const C=u&&!A&&!s?Dx(u,g,!0):uo(0);return{width:n.width*v.x,height:n.height*v.y,x:n.x*v.x-g.scrollLeft*v.x+y.x+C.x,y:n.y*v.y-g.scrollTop*v.y+y.y+C.y}}function v9(e){return Array.from(e.getClientRects())}function b9(e){const t=fo(e),n=jg(e),r=e.ownerDocument.body,l=na(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=na(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+Lv(e);const f=-n.scrollTop;return hl(r).direction==="rtl"&&(u+=na(t.clientWidth,r.clientWidth)-l),{width:l,height:s,x:u,y:f}}function y9(e,t){const n=ra(e),r=fo(e),l=n.visualViewport;let s=r.clientWidth,u=r.clientHeight,f=0,g=0;if(l){s=l.width,u=l.height;const v=Dv();(!v||v&&t==="fixed")&&(f=l.offsetLeft,g=l.offsetTop)}return{width:s,height:u,x:f,y:g}}const x9=new Set(["absolute","fixed"]);function A9(e,t){const n=Yu(e,!0,t==="fixed"),r=n.top+e.clientTop,l=n.left+e.clientLeft,s=ho(e)?cf(e):uo(1),u=e.clientWidth*s.x,f=e.clientHeight*s.y,g=l*s.x,v=r*s.y;return{width:u,height:f,x:g,y:v}}function Mx(e,t,n){let r;if(t==="viewport")r=y9(e,n);else if(t==="document")r=b9(fo(e));else if(dl(t))r=A9(t,n);else{const l=zx(e);r={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return Zg(r)}function Wx(e,t){const n=zs(e);return n===t||!dl(n)||uf(n)?!1:hl(n).position==="fixed"||Wx(n,t)}function S9(e,t){const n=t.get(e);if(n)return n;let r=Xd(e,[],!1).filter(f=>dl(f)&&sf(f)!=="body"),l=null;const s=hl(e).position==="fixed";let u=s?zs(e):e;for(;dl(u)&&!uf(u);){const f=hl(u),g=zv(u);!g&&f.position==="fixed"&&(l=null),(s?!g&&!l:!g&&f.position==="static"&&!!l&&x9.has(l.position)||Vd(u)&&!g&&Wx(e,u))?r=r.filter(y=>y!==u):l=f,u=zs(u)}return t.set(e,r),r}function E9(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e;const u=[...n==="clippingAncestors"?Kg(t)?[]:S9(t,this._c):[].concat(n),r],f=u[0],g=u.reduce((v,y)=>{const A=Mx(t,y,l);return v.top=na(A.top,v.top),v.right=Ps(A.right,v.right),v.bottom=Ps(A.bottom,v.bottom),v.left=na(A.left,v.left),v},Mx(t,f,l));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function C9(e){const{width:t,height:n}=Px(e);return{width:t,height:n}}function w9(e,t,n){const r=ho(t),l=fo(t),s=n==="fixed",u=Yu(e,!0,s,t);let f={scrollLeft:0,scrollTop:0};const g=uo(0);function v(){g.x=Lv(l)}if(r||!r&&!s)if((sf(t)!=="body"||Vd(l))&&(f=jg(t)),r){const w=Yu(t,!0,s,t);g.x=w.x+t.clientLeft,g.y=w.y+t.clientTop}else l&&v();s&&!r&&l&&v();const y=l&&!r&&!s?Dx(l,f):uo(0),A=u.left+f.scrollLeft-g.x-y.x,C=u.top+f.scrollTop-g.y-y.y;return{x:A,y:C,width:u.width,height:u.height}}function Yv(e){return hl(e).position==="static"}function Lx(e,t){if(!ho(e)||hl(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return fo(e)===n&&(n=n.ownerDocument.body),n}function Yx(e,t){const n=ra(e);if(Kg(e))return n;if(!ho(e)){let l=zs(e);for(;l&&!uf(l);){if(dl(l)&&!Yv(l))return l;l=zs(l)}return n}let r=Lx(e,t);for(;r&&o9(r)&&Yv(r);)r=Lx(r,t);return r&&uf(r)&&Yv(r)&&!zv(r)?n:r||d9(e)||n}const k9=async function(e){const t=this.getOffsetParent||Yx,n=this.getDimensions,r=await n(e.floating);return{reference:w9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function T9(e){return hl(e).direction==="rtl"}const _9={convertOffsetParentRelativeRectToViewportRelativeRect:m9,getDocumentElement:fo,getClippingRect:E9,getOffsetParent:Yx,getElementRects:k9,getClientRects:v9,getDimensions:C9,getScale:cf,isElement:dl,isRTL:T9};function Vx(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function O9(e,t){let n=null,r;const l=fo(e);function s(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function u(f,g){f===void 0&&(f=!1),g===void 0&&(g=1),s();const v=e.getBoundingClientRect(),{left:y,top:A,width:C,height:w}=v;if(f||t(),!C||!w)return;const R=Ug(A),N=Ug(l.clientWidth-(y+C)),Y=Ug(l.clientHeight-(A+w)),L=Ug(y),V={rootMargin:-R+"px "+-N+"px "+-Y+"px "+-L+"px",threshold:na(0,Ps(1,g))||1};let re=!0;function U(J){const de=J[0].intersectionRatio;if(de!==g){if(!re)return u();de?u(!1,de):r=setTimeout(()=>{u(!1,1e-7)},1e3)}de===1&&!Vx(v,e.getBoundingClientRect())&&u(),re=!1}try{n=new IntersectionObserver(U,{...V,root:l.ownerDocument})}catch{n=new IntersectionObserver(U,V)}n.observe(e)}return u(!0),s}function R9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:g=!1}=r,v=Wv(e),y=l||s?[...v?Xd(v):[],...Xd(t)]:[];y.forEach(L=>{l&&L.addEventListener("scroll",n,{passive:!0}),s&&L.addEventListener("resize",n)});const A=v&&f?O9(v,n):null;let C=-1,w=null;u&&(w=new ResizeObserver(L=>{let[X]=L;X&&X.target===v&&w&&(w.unobserve(t),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var V;(V=w)==null||V.observe(t)})),n()}),v&&!g&&w.observe(v),w.observe(t));let R,N=g?Yu(e):null;g&&Y();function Y(){const L=Yu(e);N&&!Vx(N,L)&&n(),N=L,R=requestAnimationFrame(Y)}return n(),()=>{var L;y.forEach(X=>{l&&X.removeEventListener("scroll",n),s&&X.removeEventListener("resize",n)}),A?.(),(L=w)==null||L.disconnect(),w=null,g&&cancelAnimationFrame(R)}}const F9=t9,I9=n9,N9=qR,P9=i9,z9=$R,D9=JR,M9=r9,W9=(e,t,n)=>{const r=new Map,l={platform:_9,...n},s={...l.platform,_c:r};return jR(e,t,{...l,platform:s})};function Xx(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const l={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...l,toJSON:()=>l}}function L9(e){if(!e)return Xx();const{x:t,y:n,width:r,height:l}=e;return Xx(t,n,r,l)}function Y9(e,t){return{contextElement:Di(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t?.(n);return r||!n?L9(r):n.getBoundingClientRect()}}}var Bx=e=>({variable:e,reference:`var(${e})`}),Hx={transformOrigin:Bx("--transform-origin"),arrowOffset:Bx("--arrow-offset")},V9=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),X9={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:n}){const{arrow:r}=n,l=V9(r)[e],{floating:s}=t;return s.style.setProperty(Hx.transformOrigin.variable,l),{data:{transformOrigin:l}}}},B9={name:"rects",fn({rects:e}){return{data:e}}},H9=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:l}=n.arrow,s=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:l!=null?`${l}px`:"",[s]:`calc(100% + ${Hx.arrowOffset.reference})`}),{}}}};function U9(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function G9(e){return e.split("-")[0]}var Z9={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Ux(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Gx(e){return K_(e.boundary)}function Q9(e,t){if(e)return D9({element:e,padding:t.arrowPadding})}function K9(e,t){if(!X_(t.offset??t.gutter))return F9(({placement:n})=>{const r=(e?.clientHeight||0)/2,l=t.offset?.mainAxis??t.gutter,s=typeof l=="number"?l+r:l??r,{hasAlign:u}=U9(n),f=u?void 0:t.shift,g=t.offset?.crossAxis??f;return J1({crossAxis:g,mainAxis:s,alignmentAxis:t.shift})})}function j9(e){if(e.flip)return N9({boundary:Gx(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function J9(e){if(!(!e.slide&&!e.overlap))return I9({boundary:Gx(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:M9()})}function q9(e){return P9({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:l}){const s=t.floating,u=Math.round(n.reference.width);l=Math.floor(l),r=Math.floor(r),s.style.setProperty("--reference-width",`${u}px`),s.style.setProperty("--available-width",`${l}px`),s.style.setProperty("--available-height",`${r}px`)}})}function $9(e){if(e.hideWhenDetached)return z9({strategy:"referenceHidden",boundary:e.boundary?.()??"clippingAncestors"})}function e3(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function t3(e,t,n={}){const r=Y9(e,n.getAnchorRect);if(!t||!r)return;const l=Object.assign({},Z9,n),s=t.querySelector("[data-part=arrow]"),u=[K9(s,l),j9(l),J9(l),Q9(s,l),H9(s),X9,q9(l),$9(l),B9],{placement:f,strategy:g,onComplete:v,onPositioned:y}=l,A=async()=>{if(!r||!t)return;const N=await W9(r,t,{placement:f,middleware:u,strategy:g});v?.(N),y?.({placed:!0});const Y=hr(t),L=Ux(Y,N.x),X=Ux(Y,N.y);t.style.setProperty("--x",`${L}px`),t.style.setProperty("--y",`${X}px`),l.hideWhenDetached&&(N.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const V=t.firstElementChild;if(V){const re=rx(V);t.style.setProperty("--z-index",re.zIndex)}},C=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:A,floatingElement:t}),y?.({placed:!0})):await A()},w=e3(l.listeners),R=l.listeners?R9(r,t,C,w):j_;return C(),()=>{R?.(),y?.({placed:!1})}}function gl(e,t,n={}){const{defer:r,...l}=n,s=r?zt:f=>f(),u=[];return u.push(s(()=>{const f=typeof e=="function"?e():e,g=typeof t=="function"?t():t;u.push(t3(f,g,l))})),()=>{u.forEach(f=>f?.())}}function n3(e){const t={each(n){for(let r=0;r<e.frames?.length;r+=1){const l=e.frames[r];l&&n(l)}},addEventListener(n,r,l){return t.each(s=>{try{s.document.addEventListener(n,r,l)}catch{}}),()=>{try{t.removeEventListener(n,r,l)}catch{}}},removeEventListener(n,r,l){t.each(s=>{try{s.document.removeEventListener(n,r,l)}catch{}})}};return t}function r3(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,l)=>{try{t?.addEventListener(n,r,l)}catch{}return()=>{try{t?.removeEventListener(n,r,l)}catch{}}},removeEventListener:(n,r,l)=>{try{t?.removeEventListener(n,r,l)}catch{}}}}var Zx="pointerdown.outside",Qx="focus.outside";function i3(e){for(const t of e)if(Di(t)&&bv(t))return!0;return!1}var Kx=e=>"clientY"in e;function a3(e,t){if(!Kx(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function l3(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function jx(e,t){if(!t||!Kx(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,l=t.scrollWidth>t.clientWidth,s=l&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(l?16:0)},f={x:e.clientX,y:e.clientY};return l3(u,f)?r||s:!1}function o3(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:l,onInteractOutside:s,defer:u}=t;if(!e)return;const f=fl(e),g=hr(e),v=n3(g),y=r3(g);function A(X,V){if(!Di(V)||!V.isConnected||Lu(e,V)||a3(e,X))return!1;const re=f.querySelector(`[aria-controls="${e.id}"]`);if(re){const J=Wg(re);if(jx(X,J))return!1}const U=Wg(e);return jx(X,U)?!1:!n?.(V)}const C=new Set,w=Wd(e?.getRootNode());function R(X){function V(re){const U=u&&!ax()?zt:ae=>ae(),J=re??X,de=J?.composedPath?.()??[J?.target];U(()=>{const ae=w?de[0]:Is(X);if(!(!e||!A(X,ae))){if(l||s){const ie=Fg(l,s);e.addEventListener(Zx,ie,{once:!0})}Jx(e,Zx,{bubbles:!1,cancelable:!0,detail:{originalEvent:J,contextmenu:YO(J),focusable:i3(de),target:ae}})}})}X.pointerType==="touch"?(C.forEach(re=>re()),C.add(Nr(f,"click",V,{once:!0})),C.add(y.addEventListener("click",V,{once:!0})),C.add(v.addEventListener("click",V,{once:!0}))):V()}const N=new Set,Y=setTimeout(()=>{N.add(Nr(f,"pointerdown",R,!0)),N.add(y.addEventListener("pointerdown",R,!0)),N.add(v.addEventListener("pointerdown",R,!0))},0);function L(X){(u?zt:re=>re())(()=>{const re=Is(X);if(!(!e||!A(X,re))){if(r||s){const U=Fg(r,s);e.addEventListener(Qx,U,{once:!0})}Jx(e,Qx,{bubbles:!1,cancelable:!0,detail:{originalEvent:X,contextmenu:!1,focusable:bv(re),target:re}})}})}return ax()||(N.add(Nr(f,"focusin",L,!0)),N.add(y.addEventListener("focusin",L,!0)),N.add(v.addEventListener("focusin",L,!0))),()=>{clearTimeout(Y),C.forEach(X=>X()),N.forEach(X=>X())}}function s3(e,t){const{defer:n}=t,r=n?zt:s=>s(),l=[];return l.push(r(()=>{const s=typeof e=="function"?e():e;l.push(o3(s,t))})),()=>{l.forEach(s=>s?.())}}function Jx(e,t,n){const r=e.ownerDocument.defaultView||window,l=new r.CustomEvent(t,n);return e.dispatchEvent(l)}function u3(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t?.(r))};return Nr(fl(e),"keydown",n,{capture:!0})}var pl={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return t<n},isTopMost(e){return this.layers[this.count()-1]?.node===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>Lu(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Lu(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>r.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){this.layers[this.indexOf(e)]?.dismiss()},clear(){this.remove(this.layers[0].node)}},qx;function $x(){pl.layers.forEach(({node:e})=>{e.style.pointerEvents=pl.isBelowPointerBlockingLayer(e)?"none":"auto"})}function c3(e){e.style.pointerEvents=""}function f3(e,t){const n=fl(e),r=[];return pl.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(qx=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t?.forEach(l=>{const[s,u]=AR(()=>{const f=l();return Di(f)?f:null},{timeout:1e3});s.then(f=>r.push(vR(f,{pointerEvents:"auto"}))),r.push(u)}),()=>{pl.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=qx,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(l=>l()))}}function d3(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){q1("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,pointerBlocking:l,exclude:s,debug:u}=t,f={dismiss:r,node:e,pointerBlocking:l};pl.add(f),$x();function g(w){const R=Is(w.detail.originalEvent);pl.isBelowPointerBlockingLayer(e)||pl.isInBranch(R)||(t.onPointerDownOutside?.(w),t.onInteractOutside?.(w),!w.defaultPrevented&&(u&&console.log("onPointerDownOutside:",w.detail.originalEvent),r?.()))}function v(w){const R=Is(w.detail.originalEvent);pl.isInBranch(R)||(t.onFocusOutside?.(w),t.onInteractOutside?.(w),!w.defaultPrevented&&(u&&console.log("onFocusOutside:",w.detail.originalEvent),r?.()))}function y(w){pl.isTopMost(e)&&(t.onEscapeKeyDown?.(w),!w.defaultPrevented&&r&&(w.preventDefault(),r()))}function A(w){if(!e)return!1;const R=typeof s=="function"?s():s,N=Array.isArray(R)?R:[R],Y=t.persistentElements?.map(L=>L()).filter(Di);return Y&&N.push(...Y),N.some(L=>Lu(L,w))||pl.isInNestedLayer(e,w)}const C=[l?f3(e,t.persistentElements):void 0,u3(e,y),s3(e,{exclude:A,onFocusOutside:v,onPointerDownOutside:g,defer:t.defer})];return()=>{pl.remove(e),$x(),c3(e),C.forEach(w=>w?.())}}function Bd(e,t){const{defer:n}=t,r=n?zt:s=>s(),l=[];return l.push(r(()=>{const s=V1(e)?e():e;l.push(d3(s,t))})),()=>{l.forEach(s=>s?.())}}var eA=nt("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"]);eA.build();var h3=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,g3=e=>e.ids?.control??`color-picker:${e.id}:control`,p3=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,m3=e=>e.ids?.content??`color-picker:${e.id}:content`,v3=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,b3=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,y3=e=>e.ids?.area??`color-picker:${e.id}:area`,x3=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,A3=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,S3=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,Jg=e=>e.getById(m3(e)),E3=e=>e.getById(x3(e)),C3=(e,t)=>e.getById(S3(e,t)),w3=e=>e.getById(b3(e)),tA=e=>e.getById(h3(e)),k3=e=>e.getById(y3(e)),T3=(e,t)=>{const n=k3(e);if(!n)return;const{percent:r}=dx(t,n);return r},_3=e=>e.getById(g3(e)),Vv=e=>e.getById(p3(e)),O3=e=>e.getById(v3(e)),R3=(e,t)=>e.getById(A3(e,t)),F3=(e,t,n)=>{const r=R3(e,n);if(!r)return;const{percent:l}=dx(t,r);return l},I3=e=>[...Vg(Jg(e),"input[data-channel]"),...Vg(_3(e),"input[data-channel]")];function N3(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var nA=e=>Bg(e),P3=/^[0-9a-fA-F]{3,8}$/;function z3(e){return P3.test(e)}function D3(e){return e.startsWith("#")?e:z3(e)?`#${e}`:e}var{and:M3}=Ns();M3("isOpenControlled","closeOnSelect");function rA(e,t,n){const r=I3(e);zt(()=>{r.forEach(l=>{const s=l.dataset.channel;Dg(l,N3(n||t,s))})})}function W3(e,t){const n=w3(e);n&&zt(()=>Dg(n,t))}ut()(["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"]),ut()(["xChannel","yChannel"]),ut()(["channel","orientation"]),ut()(["value","disabled"]),ut()(["value","respectAlpha"]),ut()(["size"]);var iA=nt("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");iA.build();var aA=e=>e.ids?.root??`accordion:${e.id}`,lA=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,L3=e=>e.getById(aA(e)),qg=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(aA(e))}']:not([disabled])`;return Vg(L3(e),n)},Y3=e=>Dd(qg(e)),V3=e=>uv(qg(e)),X3=(e,t)=>fR(qg(e),lA(e,t)),B3=(e,t)=>dR(qg(e),lA(e,t)),{and:H3,not:U3}=Ns();H3("isExpanded","canToggle"),U3("isExpanded"),ut()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),ut()(["value","disabled"]);var Hd=(e,t)=>({x:e,y:t});function G3(e){const{x:t,y:n,width:r,height:l}=e,s=t+r/2,u=n+l/2;return{x:t,y:n,width:r,height:l,minX:t,minY:n,maxX:t+r,maxY:n+l,midX:s,midY:u,center:Hd(s,u)}}function Z3(e){const t=Hd(e.minX,e.minY),n=Hd(e.maxX,e.minY),r=Hd(e.maxX,e.maxY),l=Hd(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:l}}function Q3(e,t){const n=G3(e),{top:r,right:l,left:s,bottom:u}=Z3(n),[f]=t.split("-");return{top:[s,r,l,u],right:[r,l,u,s],bottom:[r,s,u,l],left:[l,r,s,u]}[f]}function K3(e,t){const{x:n,y:r}=t;let l=!1;for(let s=0,u=e.length-1;s<e.length;u=s++){const f=e[s].x,g=e[s].y,v=e[u].x,y=e[u].y;g>r!=y>r&&n<(v-f)*(r-g)/(y-g)+f&&(l=!l)}return l}var oA=nt("avatar").parts("root","image","fallback");oA.build(),ut()(["dir","id","ids","onStatusChange","getRootNode"]);function j3(e){return!(e.metaKey||!zg()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var J3=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function q3(e,t,n){const r=n?Is(n):null,l=hr(r);return e=e||r instanceof l.HTMLInputElement&&!J3.has(r?.type)||r instanceof l.HTMLTextAreaElement||r instanceof l.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof l.KeyboardEvent&&!Reflect.has($3,n.key))}var Vu=null,Xv=new Set,Ud=new Map,Xu=!1,Bv=!1,$3={Tab:!0,Escape:!0};function $g(e,t){for(let n of Xv)n(e,t)}function ep(e){Xu=!0,j3(e)&&(Vu="keyboard",$g("keyboard",e))}function Ya(e){Vu="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Xu=!0,$g("pointer",e))}function sA(e){LO(e)&&(Xu=!0,Vu="virtual")}function uA(e){const t=Is(e);t===hr(t)||t===fl(t)||(!Xu&&!Bv&&(Vu="virtual",$g("virtual",e)),Xu=!1,Bv=!1)}function cA(){Xu=!1,Bv=!0}function e7(e){if(typeof window>"u"||Ud.get(hr(e)))return;const t=hr(e),n=fl(e);let r=t.HTMLElement.prototype.focus;function l(){Vu="virtual",$g("virtual",null),Xu=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:l}),n.addEventListener("keydown",ep,!0),n.addEventListener("keyup",ep,!0),n.addEventListener("click",sA,!0),t.addEventListener("focus",uA,!0),t.addEventListener("blur",cA,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",Ya,!0),n.addEventListener("pointermove",Ya,!0),n.addEventListener("pointerup",Ya,!0)):(n.addEventListener("mousedown",Ya,!0),n.addEventListener("mousemove",Ya,!0),n.addEventListener("mouseup",Ya,!0)),t.addEventListener("beforeunload",()=>{t7(e)},{once:!0}),Ud.set(t,{focus:r})}var t7=(e,t)=>{const n=hr(e),r=fl(e);Ud.has(n)&&(n.HTMLElement.prototype.focus=Ud.get(n).focus,r.removeEventListener("keydown",ep,!0),r.removeEventListener("keyup",ep,!0),r.removeEventListener("click",sA,!0),n.removeEventListener("focus",uA,!0),n.removeEventListener("blur",cA,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",Ya,!0),r.removeEventListener("pointermove",Ya,!0),r.removeEventListener("pointerup",Ya,!0)):(r.removeEventListener("mousedown",Ya,!0),r.removeEventListener("mousemove",Ya,!0),r.removeEventListener("mouseup",Ya,!0)),Ud.delete(n))};function fA(){return Vu==="keyboard"}function n7(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:l}=e;e7(l),r?.({isFocusVisible:n||fA(),modality:Vu});const s=(u,f)=>{q3(!!t,u,f)&&r?.({isFocusVisible:fA(),modality:u})};return Xv.add(s),()=>{Xv.delete(s)}}var dA=nt("checkbox").parts("root","label","control","indicator");dA.build(),ut()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const r7=dA.extendWith("group"),[HU,i7]=$1({name:"FieldContext",hookName:"useFieldContext",providerName:"<FieldProvider />",strict:!1});var hA=nt("clipboard").parts("root","control","trigger","indicator","input","label");hA.build(),ut()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),ut()(["copied"]);const a7=eA.extendWith("view");var l7=Object.defineProperty,o7=(e,t,n)=>t in e?l7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ze=(e,t,n)=>o7(e,typeof t!="symbol"?t+"":t,n),tp={itemToValue(e){return typeof e=="string"?e:Wu(e)&&Fs(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Wu(e)&&Fs(e,"label")?e.label:tp.itemToValue(e)},isItemDisabled(e){return Wu(e)&&Fs(e,"disabled")?!!e.disabled:!1}},np=class Z5{constructor(t){this.options=t,ze(this,"items"),ze(this,"indexMap",null),ze(this,"copy",n=>new Z5({...this.options,items:n??[...this.items]})),ze(this,"isEqual",n=>cl(this.items,n.items)),ze(this,"setItems",n=>this.copy(n)),ze(this,"getValues",(n=this.items)=>{const r=[];for(const l of n){const s=this.getItemValue(l);s!=null&&r.push(s)}return r}),ze(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),ze(this,"findMany",n=>{const r=[];for(const l of n){const s=this.find(l);s!=null&&r.push(s)}return r}),ze(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const l=this.group();for(const[,s]of l)for(const u of s){if(r===n)return u;r++}return null}),ze(this,"sortFn",(n,r)=>{const l=this.indexOf(n),s=this.indexOf(r);return(l??0)-(s??0)}),ze(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),ze(this,"getItemValue",n=>n==null?null:this.options.itemToValue?.(n)??tp.itemToValue(n)),ze(this,"getItemDisabled",n=>n==null?!1:this.options.isItemDisabled?.(n)??tp.isItemDisabled(n)),ze(this,"stringifyItem",n=>n==null?null:this.options.itemToString?.(n)??tp.itemToString(n)),ze(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),ze(this,"stringifyItems",(n,r=", ")=>{const l=[];for(const s of n){const u=this.stringifyItem(s);u!=null&&l.push(u)}return l.join(r)}),ze(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),ze(this,"has",n=>this.indexOf(n)!==-1),ze(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),ze(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const l=new Map;this.items.forEach((u,f)=>{const g=n(u,f);l.has(g)||l.set(g,[]),l.get(g).push(u)});let s=Array.from(l.entries());return r&&s.sort(([u],[f])=>{if(typeof r=="function")return r(u,f);if(Array.isArray(r)){const g=r.indexOf(u),v=r.indexOf(f);return g===-1?1:v===-1?-1:g-v}return r==="asc"?u.localeCompare(f):r==="desc"?f.localeCompare(u):0}),s}),ze(this,"getNextValue",(n,r=1,l=!1)=>{let s=this.indexOf(n);if(s===-1)return null;for(s=l?Math.min(s+r,this.size-1):s+r;s<=this.size&&this.getItemDisabled(this.at(s));)s++;return this.getItemValue(this.at(s))}),ze(this,"getPreviousValue",(n,r=1,l=!1)=>{let s=this.indexOf(n);if(s===-1)return null;for(s=l?Math.max(s-r,0):s-r;s>=0&&this.getItemDisabled(this.at(s));)s--;return this.getItemValue(this.at(s))}),ze(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const l=this.group();for(const[,s]of l)for(const u of s){const f=this.getItemValue(u);f!=null&&this.indexMap.set(f,r),r++}}return this.indexMap.get(n)??-1}),ze(this,"getByText",(n,r)=>{let l=r!=null?u7(this.items,this.indexOf(r)):this.items;return n.length===1&&(l=l.filter(u=>this.getItemValue(u)!==r)),l.find(u=>s7(this.stringifyItem(u),n))}),ze(this,"search",(n,r)=>{const{state:l,currentValue:s,timeout:u=350}=r,f=l.keysSoFar+n,v=f.length>1&&Array.from(f).every(R=>R===f[0])?f[0]:f,y=this.getByText(v,s),A=this.getItemValue(y);function C(){clearTimeout(l.timer),l.timer=-1}function w(R){l.keysSoFar=R,C(),R!==""&&(l.timer=+setTimeout(()=>{w(""),C()},u))}return w(f),A}),ze(this,"update",(n,r)=>{let l=this.indexOf(n);return l===-1?this:this.copy([...this.items.slice(0,l),r,...this.items.slice(l+1)])}),ze(this,"upsert",(n,r,l="append")=>{let s=this.indexOf(n);return s===-1?(l==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,s),r,...this.items.slice(s+1)])}),ze(this,"insert",(n,...r)=>this.copy(Gd(this.items,n,...r))),ze(this,"insertBefore",(n,...r)=>{let l=this.indexOf(n);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(Gd(this.items,l,...r))}),ze(this,"insertAfter",(n,...r)=>{let l=this.indexOf(n);if(l===-1)if(this.items.length===0)l=0;else return this;return this.copy(Gd(this.items,l+1,...r))}),ze(this,"prepend",(...n)=>this.copy(Gd(this.items,0,...n))),ze(this,"append",(...n)=>this.copy(Gd(this.items,this.items.length,...n))),ze(this,"filter",n=>{const r=this.items.filter((l,s)=>n(this.stringifyItem(l),s,l));return this.copy(r)}),ze(this,"remove",(...n)=>{const r=n.map(l=>typeof l=="string"?l:this.getItemValue(l));return this.copy(this.items.filter(l=>{const s=this.getItemValue(l);return s==null?!1:!r.includes(s)}))}),ze(this,"move",(n,r)=>{const l=this.indexOf(n);return l===-1?this:this.copy(rp(this.items,[l],r))}),ze(this,"moveBefore",(n,...r)=>{let l=this.items.findIndex(u=>this.getItemValue(u)===n);if(l===-1)return this;let s=r.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(rp(this.items,s,l))}),ze(this,"moveAfter",(n,...r)=>{let l=this.items.findIndex(u=>this.getItemValue(u)===n);if(l===-1)return this;let s=r.map(u=>this.items.findIndex(f=>this.getItemValue(f)===u)).sort((u,f)=>u-f);return this.copy(rp(this.items,s,l+1))}),ze(this,"reorder",(n,r)=>this.copy(rp(this.items,[n],r))),ze(this,"compareValue",(n,r)=>{const l=this.indexOf(n),s=this.indexOf(r);return l<s?-1:l>s?1:0}),ze(this,"range",(n,r)=>{let l=[],s=n;for(;s!=null;){if(this.find(s)&&l.push(s),s===r)return l;s=this.getNextValue(s)}return[]}),ze(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),ze(this,"toString",()=>{let n="";for(const r of this.items){const l=this.getItemValue(r),s=this.stringifyItem(r),u=this.getItemDisabled(r),f=[l,s,u].filter(Boolean).join(":");n+=f+","}return n}),ze(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},s7=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase()),u7=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]);function Gd(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function rp(e,t,n){t=[...t].sort((l,s)=>l-s);const r=t.map(l=>e[l]);for(let l=t.length-1;l>=0;l--)e=[...e.slice(0,t[l]),...e.slice(t[l]+1)];return n=Math.max(0,n-t.filter(l=>l<n).length),[...e.slice(0,n),...r,...e.slice(n)]}function gA(e,t,n){for(let r=0;r<t.length;r++)e=n.getChildren(e,t.slice(r+1))[t[r]];return e}function c7(e){const t=f7(e),n=[],r=new Set;for(const l of t){const s=l.join();r.has(s)||(r.add(s),n.push(l))}return n}function pA(e,t){for(let n=0;n<Math.min(e.length,t.length);n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return e.length-t.length}function f7(e){return e.sort(pA)}function d7(e,t){let n;return ia(e,{...t,onEnter:(r,l)=>{if(t.predicate(r,l))return n=r,"stop"}}),n}function h7(e,t){const n=[];return ia(e,{onEnter:(r,l)=>{t.predicate(r,l)&&n.push(r)},getChildren:t.getChildren}),n}function mA(e,t){let n;return ia(e,{onEnter:(r,l)=>{if(t.predicate(r,l))return n=[...l],"stop"},getChildren:t.getChildren}),n}function g7(e,t){let n=t.initialResult;return ia(e,{...t,onEnter:(r,l)=>{n=t.nextResult(n,r,l)}}),n}function p7(e,t){return g7(e,{...t,initialResult:[],nextResult:(n,r,l)=>(n.push(...t.transform(r,l)),n)})}function m7(e,t){const{predicate:n,create:r,getChildren:l}=t,s=(u,f)=>{const g=l(u,f),v=[];g.forEach((w,R)=>{const N=[...f,R],Y=s(w,N);Y&&v.push(Y)});const y=f.length===0,A=n(u,f),C=v.length>0;return y||A||C?r(u,v,f):null};return s(e,[])||r(e,[],[])}function v7(e,t){const n=[];let r=0;const l=new Map,s=new Map;return ia(e,{getChildren:t.getChildren,onEnter:(u,f)=>{l.has(u)||l.set(u,r++);const g=t.getChildren(u,f);g.forEach(w=>{s.has(w)||s.set(w,u),l.has(w)||l.set(w,r++)});const v=g.length>0?g.map(w=>l.get(w)):void 0,y=s.get(u),A=y?l.get(y):void 0,C=l.get(u);n.push({...u,_children:v,_parent:A,_index:C})}}),n}function b7(e,t){return{type:"insert",index:e,nodes:t}}function y7(e){return{type:"remove",indexes:e}}function Hv(){return{type:"replace"}}function vA(e){return[e.slice(0,-1),e[e.length-1]]}function bA(e,t,n=new Map){const[r,l]=vA(e);for(let u=r.length-1;u>=0;u--){const f=r.slice(0,u).join();switch(n.get(f)?.type){case"remove":continue}n.set(f,Hv())}const s=n.get(r.join());switch(s?.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:s.indexes,insertIndex:l,insertNodes:t});break;default:n.set(r.join(),b7(l,t))}return n}function yA(e){const t=new Map,n=new Map;for(const r of e){const l=r.slice(0,-1).join(),s=n.get(l)??[];s.push(r[r.length-1]),n.set(l,s.sort((u,f)=>u-f))}for(const r of e)for(let l=r.length-2;l>=0;l--){const s=r.slice(0,l).join();t.has(s)||t.set(s,Hv())}for(const[r,l]of n)t.set(r,y7(l));return t}function x7(e,t){const n=new Map,[r,l]=vA(e);for(let s=r.length-1;s>=0;s--){const u=r.slice(0,s).join();n.set(u,Hv())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[l],insertIndex:l,insertNodes:[t]}),n}function ip(e,t,n){return A7(e,{...n,getChildren:(r,l)=>{const s=l.join();switch(t.get(s)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,l);default:return[]}},transform:(r,l,s)=>{const u=s.join(),f=t.get(u);switch(f?.type){case"remove":return n.create(r,l.filter((y,A)=>!f.indexes.includes(A)),s);case"removeThenInsert":const g=l.filter((y,A)=>!f.removeIndexes.includes(A)),v=f.removeIndexes.reduce((y,A)=>A<y?y-1:y,f.insertIndex);return n.create(r,xA(g,v,0,...f.insertNodes),s);case"insert":return n.create(r,xA(l,f.index,0,...f.nodes),s);case"replace":return n.create(r,l,s);default:return r}}})}function xA(e,t,n,...r){return[...e.slice(0,t),...r,...e.slice(t+n)]}function A7(e,t){const n={};return ia(e,{...t,onLeave:(r,l)=>{const s=[0,...l],u=s.join(),f=t.transform(r,n[u]??[],l),g=s.slice(0,-1).join(),v=n[g]??[];v.push(f),n[g]=v}}),n[""][0]}function S7(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const l=bA(r,n);return ip(e,l,t)}function E7(e,t){if(t.at.length===0)return t.node;const n=x7(t.at,t.node);return ip(e,n,t)}function C7(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=yA(t.indexPaths);return ip(e,n,t)}function w7(e,t){if(t.indexPaths.length===0)return e;for(const s of t.indexPaths)if(s.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=c7(t.indexPaths),r=n.map(s=>gA(e,s,t)),l=bA(t.to,r,yA(n));return ip(e,l,t)}function ia(e,t){const{onEnter:n,onLeave:r,getChildren:l}=t;let s=[],u=[{node:e}];const f=t.reuseIndexPath?()=>s:()=>s.slice();for(;u.length>0;){let g=u[u.length-1];if(g.state===void 0){const y=n?.(g.node,f());if(y==="stop")return;g.state=y==="skip"?-1:0}const v=g.children||l(g.node,f());if(g.children||(g.children=v),g.state!==-1){if(g.state<v.length){let A=g.state;s.push(A),u.push({node:v[A]}),g.state=A+1;continue}if(r?.(g.node,f())==="stop")return}s.pop(),u.pop()}}var AA=class Q5{constructor(t){this.options=t,ze(this,"rootNode"),ze(this,"isEqual",n=>cl(this.rootNode,n.rootNode)),ze(this,"getNodeChildren",n=>this.options.nodeToChildren?.(n)??ff.nodeToChildren(n)??[]),ze(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),ze(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),ze(this,"getNodeChildrenCount",n=>this.options.nodeToChildrenCount?.(n)??ff.nodeToChildrenCount(n)),ze(this,"getNodeValue",n=>this.options.nodeToValue?.(n)??ff.nodeToValue(n)),ze(this,"getNodeDisabled",n=>this.options.isNodeDisabled?.(n)??ff.isNodeDisabled(n)),ze(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),ze(this,"stringifyNode",n=>this.options.nodeToString?.(n)??ff.nodeToString(n)),ze(this,"getFirstNode",(n=this.rootNode)=>{let r;return ia(n,{getChildren:this.getNodeChildren,onEnter:(l,s)=>{if(!r&&s.length>0&&!this.getNodeDisabled(l))return r=l,"stop"}}),r}),ze(this,"getLastNode",(n=this.rootNode,r={})=>{let l;return ia(n,{getChildren:this.getNodeChildren,onEnter:(s,u)=>{if(!this.isSameNode(s,n)){if(r.skip?.({value:this.getNodeValue(s),node:s,indexPath:u}))return"skip";u.length>0&&!this.getNodeDisabled(s)&&(l=s)}}}),l}),ze(this,"at",n=>gA(this.rootNode,n,{getChildren:this.getNodeChildren})),ze(this,"findNode",(n,r=this.rootNode)=>d7(r,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===n})),ze(this,"findNodes",(n,r=this.rootNode)=>{const l=new Set(n.filter(s=>s!=null));return h7(r,{getChildren:this.getNodeChildren,predicate:s=>l.has(this.getNodeValue(s))})}),ze(this,"sort",n=>n.reduce((r,l)=>{const s=this.getIndexPath(l);return s&&r.push({value:l,indexPath:s}),r},[]).sort((r,l)=>pA(r.indexPath,l.indexPath)).map(({value:r})=>r)),ze(this,"getIndexPath",n=>mA(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),ze(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),ze(this,"getValuePath",n=>{if(!n)return[];const r=[];let l=[...n];for(;l.length>0;){const s=this.at(l);s&&r.unshift(this.getNodeValue(s)),l.pop()}return r}),ze(this,"getDepth",n=>mA(this.rootNode,{getChildren:this.getNodeChildren,predicate:l=>this.getNodeValue(l)===n})?.length??0),ze(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),ze(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),ze(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((l,s)=>n[s]===r[s])),ze(this,"getNextNode",(n,r={})=>{let l=!1,s;return ia(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(r.skip?.({value:g,node:u,indexPath:f}))return g===n&&(l=!0),"skip";if(l&&!this.getNodeDisabled(u))return s=u,"stop";g===n&&(l=!0)}}),s}),ze(this,"getPreviousNode",(n,r={})=>{let l,s=!1;return ia(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{if(this.isRootNode(u))return;const g=this.getNodeValue(u);if(r.skip?.({value:g,node:u,indexPath:f}))return"skip";if(g===n)return s=!0,"stop";this.getNodeDisabled(u)||(l=u)}}),s?l:void 0}),ze(this,"getParentNodes",n=>{const r=this.resolveIndexPath(n)?.slice();if(!r)return[];const l=[];for(;r.length>0;){r.pop();const s=this.at(r);s&&!this.isRootNode(s)&&l.unshift(s)}return l}),ze(this,"getDescendantNodes",(n,r)=>{const l=this.resolveNode(n);if(!l)return[];const s=[];return ia(l,{getChildren:this.getNodeChildren,onEnter:(u,f)=>{f.length!==0&&(!r?.withBranch&&this.isBranchNode(u)||s.push(u))}}),s}),ze(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(s=>this.getNodeValue(s))),ze(this,"getParentIndexPath",n=>n.slice(0,-1)),ze(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),ze(this,"visit",n=>{const{skip:r,...l}=n;ia(this.rootNode,{...l,getChildren:this.getNodeChildren,onEnter:(s,u)=>{if(!this.isRootNode(s))return r?.({value:this.getNodeValue(s),node:s,indexPath:u})?"skip":l.onEnter?.(s,u)}})}),ze(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const l=this.getNodeChildren(r);let s=n[n.length-1];for(;--s>=0;){const u=l[s];if(!this.getNodeDisabled(u))return u}}),ze(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const l=this.getNodeChildren(r);let s=n[n.length-1];for(;++s<l.length;){const u=l[s];if(!this.getNodeDisabled(u))return u}}),ze(this,"getSiblingNodes",n=>{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),ze(this,"getValues",(n=this.rootNode)=>p7(n,{getChildren:this.getNodeChildren,transform:l=>[this.getNodeValue(l)]}).slice(1)),ze(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),ze(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),ze(this,"getBranchValues",(n=this.rootNode,r={})=>{let l=[];return ia(n,{getChildren:this.getNodeChildren,onEnter:(s,u)=>{if(u.length===0)return;const f=this.getNodeValue(s);if(r.skip?.({value:f,node:s,indexPath:u}))return"skip";this.isBranchNode(s)&&this.isValidDepth(u,r.depth)&&l.push(this.getNodeValue(s))}}),l}),ze(this,"flatten",(n=this.rootNode)=>v7(n,{getChildren:this.getNodeChildren})),ze(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),ze(this,"_insert",(n,r,l)=>this.copy(S7(n,{at:r,nodes:l,getChildren:this.getNodeChildren,create:this._create}))),ze(this,"copy",n=>new Q5({...this.options,rootNode:n})),ze(this,"_replace",(n,r,l)=>this.copy(E7(n,{at:r,node:l,getChildren:this.getNodeChildren,create:this._create}))),ze(this,"_move",(n,r,l)=>this.copy(w7(n,{indexPaths:r,to:l,getChildren:this.getNodeChildren,create:this._create}))),ze(this,"_remove",(n,r)=>this.copy(C7(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),ze(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),ze(this,"remove",n=>this._remove(this.rootNode,n)),ze(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),ze(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const s=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,s,r)}),ze(this,"move",(n,r)=>this._move(this.rootNode,n,r)),ze(this,"filter",n=>{const r=m7(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),ze(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},ff={nodeToValue(e){return typeof e=="string"?e:Wu(e)&&Fs(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:Wu(e)&&Fs(e,"label")?e.label:ff.nodeToValue(e)},isNodeDisabled(e){return Wu(e)&&Fs(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(Wu(e)&&Fs(e,"childrenCount"))return e.childrenCount}},df=new WeakMap,ap=new WeakMap,lp={},Uv=0,SA=e=>e&&(e.host||SA(e.parentNode)),k7=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=SA(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),T7=new Set(["script","output","status","next-route-announcer"]),_7=e=>T7.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),O7=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:l}=t,s=k7(n,Array.isArray(e)?e:[e]);lp[r]||(lp[r]=new WeakMap);const u=lp[r],f=[],g=new Set,v=new Set(s),y=C=>{!C||g.has(C)||(g.add(C),y(C.parentNode))};s.forEach(y);const A=C=>{!C||v.has(C)||Array.prototype.forEach.call(C.children,w=>{if(g.has(w))A(w);else try{if(_7(w))return;const N=w.getAttribute(l)==="true",Y=(df.get(w)||0)+1,L=(u.get(w)||0)+1;df.set(w,Y),u.set(w,L),f.push(w),Y===1&&N&&ap.set(w,!0),L===1&&w.setAttribute(r,""),N||w.setAttribute(l,"true")}catch(R){console.error("[zag-js > ariaHidden] cannot operate on ",w,R)}})};return A(n),g.clear(),Uv++,()=>{f.forEach(C=>{const w=df.get(C)-1,R=u.get(C)-1;df.set(C,w),u.set(C,R),w||(ap.has(C)||C.removeAttribute(l),ap.delete(C)),R||C.removeAttribute(r)}),Uv--,Uv||(df=new WeakMap,df=new WeakMap,ap=new WeakMap,lp={})}},R7=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,F7=(e,t=R7(e),n="data-aria-hidden")=>{if(t)return O7(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},I7=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function N7(e,t={}){const{defer:n=!0}=t,r=n?I7:s=>s(),l=[];return l.push(r(()=>{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&l.push(F7(u))})),()=>{l.forEach(s=>s?.())}}var EA=nt("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");EA.build();var CA=e=>new np(e);CA.empty=()=>new np({items:[]});var P7=e=>e.ids?.control??`combobox:${e.id}:control`,z7=e=>e.ids?.input??`combobox:${e.id}:input`,D7=e=>e.ids?.content??`combobox:${e.id}:content`,M7=e=>e.ids?.positioner??`combobox:${e.id}:popper`,W7=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,L7=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,Ds=e=>e.getById(D7(e)),hf=e=>e.getById(z7(e)),wA=e=>e.getById(M7(e)),kA=e=>e.getById(P7(e)),Zd=e=>e.getById(W7(e)),TA=e=>e.getById(L7(e)),_A=(e,t)=>{if(t==null)return;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return uR(Ds(e),n)},OA=e=>{const t=hf(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},Y7=e=>{const t=Zd(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:V7,createMachine:X7,choose:B7}=vx(),{and:Ar,not:aa}=V7;X7({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){cx(t)},collection:CA.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:cl,hash(l){return l.join(",")},onChange(l){const s=n(),u=s.get("selectedItems"),f=e("collection"),g=l.map(v=>u.find(A=>f.getItemValue(A)===v)||f.find(v));s.set("selectedItems",g),e("onValueChange")?.({value:l,items:g})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(l){const s=e("collection").find(l);e("onHighlightChange")?.({highlightedValue:l,highlightedItem:s})}})),inputValue:t(()=>{let l=e("inputValue")||e("defaultInputValue")||"";const s=e("defaultValue")||e("value")||[];if(!l.trim()&&!e("multiple")){const u=e("collection").stringifyMany(s);l=Ho(e("selectionBehavior"),{preserve:l||u,replace:u,clear:""})}return{defaultValue:l,value:e("inputValue"),onChange(u){const f=r(),g=(f.previousEvent||f).src;e("onInputValueChange")?.({inputValue:u,reason:g})}}}),highlightedItem:t(()=>{const l=e("highlightedValue");return{defaultValue:e("collection").find(l)}}),selectedItems:t(()=>{const l=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(l)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:l}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{l({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:B7([{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:Ar("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Ar("isCustomValue",aa("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:Ar("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Ar("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Ar("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Ar("isOpenControlled","isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ar("isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Ar("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:Ar("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Ar("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:Ar("isOpenControlled","isCustomValue",aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ar("isCustomValue",aa("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Ar("isOpenControlled","isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ar("isCustomValue",aa("hasHighlightedItem"),aa("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Ar("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:Ar("isOpenControlled","isCustomValue",aa("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Ar("isCustomValue",aa("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:Ar("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return V_(n)?n:!!n?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Bd(()=>Ds(n),{defer:!0,exclude:()=>[hf(n),Zd(n),TA(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(l){l.preventDefault(),l.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return N7([hf(e),Ds(e),Zd(e),TA(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>kA(n)||Zd(n),l=()=>wA(n);return e.set("currentPlacement",t("positioning").placement),gl(r,l,{...t("positioning"),defer:!0,onComplete(s){e.set("currentPlacement",s.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const l=hf(n);let s=[];const u=v=>{const y=r.current().type.includes("POINTER"),A=e.get("highlightedValue");if(y||!A)return;const C=_A(n,A),w=Ds(n),R=t("scrollToIndexFn");if(R){const Y=t("collection").indexOf(A);R({index:Y,immediate:v});return}const N=zt(()=>{Lg(C,{rootEl:w,block:"nearest"})});s.push(N)},f=zt(()=>u(!0));s.push(f);const g=Mg(l,{attributes:["aria-activedescendant"],callback:()=>u(!1)});return s.push(g),()=>{s.forEach(v=>v())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){gl(()=>kA(n),()=>wA(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(u){e.set("currentPlacement",u.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){const{context:t,prop:n}=e,r=n("collection"),l=t.get("highlightedValue");if(!l||!r.has(l))return;const s=n("multiple")?rf(t.get("value"),l):[l];n("onSelect")?.({value:s,itemValue:l}),t.set("value",s);const u=Ho(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(s),clear:""});t.set("inputValue",u)},scrollToHighlightedItem({context:e,prop:t,scope:n}){ux(()=>{const r=e.get("highlightedValue");if(r==null)return;const l=_A(n,r),s=Ds(n),u=t("scrollToIndexFn");if(u){const f=t("collection").indexOf(r);u({index:f,immediate:!0});return}Lg(l,{rootEl:s,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:l}=e;n.value!=null&&r(()=>{const s=l("multiple")?rf(t.get("value"),n.value):[n.value];l("onSelect")?.({value:s,itemValue:n.value}),t.set("value",s);const u=Ho(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(s),clear:""});t.set("inputValue",u)})},clearItem(e){const{context:t,event:n,flush:r,prop:l}=e;n.value!=null&&r(()=>{const s=Mu(t.get("value"),n.value);t.set("value",s);const u=Ho(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(s),clear:""});t.set("inputValue",u)})},setInitialFocus({scope:e}){zt(()=>{OA(e)})},setFinalFocus({scope:e}){zt(()=>{Zd(e)?.dataset.focusable==null?OA(e):Y7(e)})},syncInputValue({context:e,scope:t,event:n}){const r=hf(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&hO(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),l=Ho(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",l)},setValue(e){const{context:t,flush:n,event:r,prop:l}=e;n(()=>{t.set("value",r.value);const s=Ho(l("selectionBehavior"),{preserve:t.get("inputValue"),replace:l("collection").stringifyMany(r.value),clear:""});t.set("inputValue",s)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const l=Ho(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",l)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n)n({index:0,immediate:!0});else{const r=Ds(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){const n=RA(t);e("onOpenChange")?.({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){const n=RA(t);e("onOpenChange")?.({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(Ds(n)?queueMicrotask:zt)(()=>{const l=t("collection").firstValue;l&&e.set("highlightedValue",l)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(Ds(n)?queueMicrotask:zt)(()=>{const l=t("collection").lastValue;l&&e.set("highlightedValue",l)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),l=t("collection");r?(n=l.getNextValue(r),!n&&t("loopFocus")&&(n=l.firstValue)):n=l.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),l=t("collection");r?(n=l.getPreviousValue(r),!n&&t("loopFocus")&&(n=l.lastValue)):n=l.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){zt(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){zt(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){zt(()=>{const r=t("collection");let l=null;n("hasSelectedItems")?l=r.sort(e.get("value"))[0]:l=r.lastValue,l&&e.set("highlightedValue",l)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:l}){const s=hf(l),u=n("collection");if(!t("autoComplete")||!s||!r.keypress)return;const f=u.stringify(e.get("highlightedValue"));zt(()=>{s.value=f||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),l=t.get("value"),s=l.map(f=>t.get("selectedItems").find(v=>r.getItemValue(v)===f)||r.find(f));t.set("selectedItems",s);const u=Ho(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(l),clear:""});t.set("inputValue",u)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function RA(e){return(e.previousEvent||e).src}ut()(["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"]),ut()(["htmlFor"]),ut()(["id"]),ut()(["item","persistFocus"]);var Gv=nt("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger");Gv.build(),ut()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);var FA=nt("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");FA.build(),ut()(["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 IA=nt("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");IA.build();var H7=e=>{if(!e)return;const t=rx(e),n=hr(e),r=fl(e),l=()=>{requestAnimationFrame(()=>{e.style.height="auto";let v;t.boxSizing==="content-box"?v=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):v=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&v>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),v=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${v}px`})};e.addEventListener("input",l),e.form?.addEventListener("reset",l);const s=Object.getPrototypeOf(e),u=Object.getOwnPropertyDescriptor(s,"value");Object.defineProperty(e,"value",{...u,set(){u?.set?.apply(this,arguments),l()}});const f=new n.ResizeObserver(()=>{requestAnimationFrame(()=>l())});f.observe(e);const g=new n.MutationObserver(()=>l());return g.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),r.fonts?.addEventListener("loadingdone",l),()=>{e.removeEventListener("input",l),e.form?.removeEventListener("reset",l),r.fonts?.removeEventListener("loadingdone",l),f.disconnect(),g.disconnect()}};const NA=Te.forwardRef((e,t)=>{const{autoresize:n,...r}=e,l=Te.useRef(null),s=i7(),u=px(s?.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return Te.useEffect(()=>{if(n)return H7(l.current)},[n]),ne.jsx(kR.textarea,{...u,ref:bx(t,l)})});NA.displayName="FieldTextarea";const PA=nt("fieldset").parts("root","errorText","helperText","legend");PA.build();var zA=nt("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");zA.build(),ut()(["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"]),ut()(["file"]);const U7=Symbol(),DA=Object.getPrototypeOf,Zv=new WeakMap,G7=e=>e&&(Zv.has(e)?Zv.get(e):DA(e)===Object.prototype||DA(e)===Array.prototype),Z7=e=>G7(e)&&e[U7]||null,MA=(e,t=!0)=>{Zv.set(e,t)};function Q7(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function WA(e,t){const n=Q7();return n?(n[e]||(n[e]=t()),n[e]):t()}var op=WA("__zag__refSet",()=>new WeakSet),K7=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,j7=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,J7=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",q7=e=>K7(e)||j7(e)||J7(e),Qv=e=>e!==null&&typeof e=="object",LA=e=>Qv(e)&&!op.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!q7(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),Bu=WA("__zag__proxyStateMap",()=>new WeakMap),$7=(e=Object.is,t=(f,g)=>new Proxy(f,g),n=new WeakMap,r=(f,g)=>{const v=n.get(f);if(v?.[0]===g)return v[1];const y=Array.isArray(f)?[]:Object.create(Object.getPrototypeOf(f));return MA(y,!0),n.set(f,[g,y]),Reflect.ownKeys(f).forEach(A=>{const C=Reflect.get(f,A);op.has(C)?(MA(C,!1),y[A]=C):Bu.has(C)?y[A]=nF(C):y[A]=C}),Object.freeze(y)},l=new WeakMap,s=[1,1],u=f=>{if(!Qv(f))throw new Error("object required");const g=l.get(f);if(g)return g;let v=s[0];const y=new Set,A=(de,ae=++s[0])=>{v!==ae&&(v=ae,y.forEach(ie=>ie(de,ae)))};let C=s[1];const w=(de=++s[1])=>(C!==de&&!y.size&&(C=de,N.forEach(([ae])=>{const ie=ae[1](de);ie>v&&(v=ie)})),v),R=de=>(ae,ie)=>{const H=[...ae];H[1]=[de,...H[1]],A(H,ie)},N=new Map,Y=(de,ae)=>{if(y.size){const ie=ae[3](R(de));N.set(de,[ae,ie])}else N.set(de,[ae])},L=de=>{const ae=N.get(de);ae&&(N.delete(de),ae[1]?.())},X=de=>(y.add(de),y.size===1&&N.forEach(([ie,H],Ae)=>{const ce=ie[3](R(Ae));N.set(Ae,[ie,ce])}),()=>{y.delete(de),y.size===0&&N.forEach(([ie,H],Ae)=>{H&&(H(),N.set(Ae,[ie]))})}),V=Array.isArray(f)?[]:Object.create(Object.getPrototypeOf(f)),U=t(V,{deleteProperty(de,ae){const ie=Reflect.get(de,ae);L(ae);const H=Reflect.deleteProperty(de,ae);return H&&A(["delete",[ae],ie]),H},set(de,ae,ie,H){const Ae=Reflect.has(de,ae),ce=Reflect.get(de,ae,H);if(Ae&&(e(ce,ie)||l.has(ie)&&e(ce,l.get(ie))))return!0;L(ae),Qv(ie)&&(ie=Z7(ie)||ie);let _e=ie;if(!Object.getOwnPropertyDescriptor(de,ae)?.set){!Bu.has(ie)&&LA(ie)&&(_e=YA(ie));const $=!op.has(_e)&&Bu.get(_e);$&&Y(ae,$)}return Reflect.set(de,ae,_e,H),A(["set",[ae],ie,ce]),!0}});l.set(f,U);const J=[V,w,r,X];return Bu.set(U,J),Reflect.ownKeys(f).forEach(de=>{const ae=Object.getOwnPropertyDescriptor(f,de);ae.get||ae.set?Object.defineProperty(V,de,ae):U[de]=f[de]}),U})=>[u,Bu,op,e,t,LA,n,r,l,s],[eF]=$7();function YA(e={}){return eF(e)}function tF(e,t,n){const r=Bu.get(e);let l;const s=[],u=r[3];let f=!1;const v=u(y=>{s.push(y),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(s.splice(0))}))});return f=!0,()=>{f=!1,v()}}function nF(e){const t=Bu.get(e),[n,r,l]=t;return l(n,r())}const rF=e=>typeof e=="function",iF=(e,...t)=>rF(e)?e(...t):e,aF=e=>{const{value:t,children:n}=e,[r,l]=Te.useState(),s=Te.useMemo(()=>()=>iF(t)??r?.getRootNode()??document,[t,r]),u=Te.useMemo(()=>({getRootNode:s,getWindow:()=>hr(s()),getDocument:()=>fl(s())}),[s]);return ne.jsxs(dO,{value:u,children:[n,!t&&ne.jsx("span",{hidden:!0,ref:l})]})};var VA=nt("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");VA.build();var lF=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,oF=e=>e.ids?.content??`hover-card:${e.id}:content`,sF=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Kv=e=>e.getById(lF(e)),uF=e=>e.getById(oF(e)),XA=e=>e.getById(sF(e)),{not:sp,and:BA}=Ns();BA("isOpenControlled",sp("isPointer")),sp("isPointer"),BA("isOpenControlled",sp("isPointer")),sp("isPointer"),ut()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var HA=nt("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");HA.build();var UA=e=>new AA(e);UA.empty=()=>new AA({rootNode:{children:[]}});var cF=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,Hu=(e,t)=>{t!=null&&e.getById(cF(e,t))?.focus()};function fF(e,t,n){const r=e.getDescendantValues(t),l=r.every(s=>n.includes(s));return nf(l?Mu(n,...r):Du(n,...r))}function up(e,t){const{context:n,prop:r,refs:l}=e;if(!r("loadChildren")){n.set("expandedValue",N=>nf(Du(N,...t)));return}const s=n.get("loadingStatus"),[u,f]=W1(t,N=>s[N]==="loaded");if(u.length>0&&n.set("expandedValue",N=>nf(Du(N,...u))),f.length===0)return;const g=r("collection"),[v,y]=W1(f,N=>{const Y=g.findNode(N);return g.getNodeChildren(Y).length>0});if(v.length>0&&n.set("expandedValue",N=>nf(Du(N,...v))),y.length===0)return;n.set("loadingStatus",N=>({...N,...y.reduce((Y,L)=>({...Y,[L]:"loading"}),{})}));const A=y.map(N=>{const Y=g.getIndexPath(N),L=g.getValuePath(Y),X=g.findNode(N);return{id:N,indexPath:Y,valuePath:L,node:X}}),C=l.get("pendingAborts"),w=r("loadChildren");cO(w,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const R=A.map(({id:N,indexPath:Y,valuePath:L,node:X})=>{const V=C.get(N);V&&(V.abort(),C.delete(N));const re=new AbortController;return C.set(N,re),w({valuePath:L,indexPath:Y,node:X,signal:re.signal})});Promise.allSettled(R).then(N=>{const Y=[],L=[],X=n.get("loadingStatus");let V=r("collection");N.forEach((re,U)=>{const{id:J,indexPath:de,node:ae,valuePath:ie}=A[U];re.status==="fulfilled"?(X[J]="loaded",Y.push(J),V=V.replace(de,{...ae,children:re.value})):(C.delete(J),Reflect.deleteProperty(X,J),L.push({node:ae,error:re.reason,indexPath:de,valuePath:ie}))}),n.set("loadingStatus",X),Y.length&&(n.set("expandedValue",re=>nf(Du(re,...Y))),r("onLoadChildrenComplete")?.({collection:V})),L.length&&r("onLoadChildrenError")?.({nodes:L})})}function Ms(e){const{prop:t,context:n}=e;return function({indexPath:l}){return t("collection").getValuePath(l).slice(0,-1).some(u=>!n.get("expandedValue").includes(u))}}var{and:go}=Ns();go("isMultipleSelection","moveFocus"),go("isShiftKey","isMultipleSelection"),go("isShiftKey","isMultipleSelection"),go("isBranchFocused","isBranchExpanded"),go("isShiftKey","isMultipleSelection"),go("isShiftKey","isMultipleSelection"),go("isCtrlKey","isMultipleSelection"),go("isShiftKey","isMultipleSelection"),go("isCtrlKey","isMultipleSelection"),go("isShiftKey","isMultipleSelection"),ut()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),ut()(["node","indexPath"]);var GA=nt("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");GA.build();var ZA=e=>e.ids?.trigger??`menu:${e.id}:trigger`,dF=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,QA=e=>e.ids?.content??`menu:${e.id}:content`,hF=e=>e.ids?.positioner??`menu:${e.id}:popper`,jv=(e,t)=>`${e.id}/${t}`,Uu=e=>e?.dataset.value??null,Ws=e=>e.getById(QA(e)),KA=e=>e.getById(hF(e)),cp=e=>e.getById(ZA(e)),gF=(e,t)=>t?e.getById(jv(e,t)):null,Jv=e=>e.getById(dF(e)),Qd=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(QA(e))}]:not([data-disabled])`;return Vg(Ws(e),n)},pF=e=>Dd(Qd(e)),mF=e=>uv(Qd(e)),qv=(e,t)=>t?e.id===t||e.dataset.value===t:!1,vF=(e,t)=>{const n=Qd(e),r=n.findIndex(l=>qv(l,t.value));return M_(n,r,{loop:t.loop??t.loopFocus})},bF=(e,t)=>{const n=Qd(e),r=n.findIndex(l=>qv(l,t.value));return L_(n,r,{loop:t.loop??t.loopFocus})},yF=(e,t)=>{const n=Qd(e),r=n.find(l=>qv(l,t.value));return Ld(n,{state:t.typeaheadState,key:t.key,activeId:r?.id??null})},xF=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),AF="menu:select";function SF(e,t){if(!e)return;const n=hr(e),r=new n.CustomEvent(AF,{detail:{value:t}});e.dispatchEvent(r)}var{not:Va,and:gf,or:EF}=Ns();Va("isSubmenu"),EF("isOpenAutoFocusEvent","isArrowDownEvent"),gf(Va("isTriggerItem"),"isOpenControlled"),Va("isTriggerItem"),gf("isSubmenu","isOpenControlled"),Va("isPointerSuspended"),gf(Va("isPointerSuspended"),Va("isTriggerItem")),gf(Va("isTriggerItemHighlighted"),Va("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),gf(Va("isTriggerItemHighlighted"),Va("isHighlightedItemEditable"),"closeOnSelect"),gf(Va("isTriggerItemHighlighted"),Va("isHighlightedItemEditable"));function jA(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function CF(e,t){return e?K3(e,t):!1}function wF(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return jv(n,t);for(const l in e){const s=e[l],u=ZA(s.scope);if(u===t)return u}return jv(n,t)}ut()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]),ut()(["closeOnSelect","disabled","value","valueText"]),ut()(["htmlFor"]),ut()(["id"]),ut()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let $v=new Map,e0=!1;try{e0=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let fp=!1;try{fp=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const JA={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class kF{format(t){let n="";if(!e0&&this.options.signDisplay!=null?n=_F(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!fp){var r;let{unit:l,unitDisplay:s="short",locale:u}=this.resolvedOptions();if(!l)return n;let f=(r=JA[l])===null||r===void 0?void 0:r[s];n+=f[u]||f.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),l=this.numberFormatter.formatToParts(n);return[...r.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...l.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!e0&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!fp&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=TF(t,n),this.options=n}}function TF(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!fp){var r;let{unit:u,unitDisplay:f="short"}=t;if(!u)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=JA[u])===null||r===void 0)&&r[f]))throw new Error(`Unsupported unit ${u} with unitDisplay = ${f}`);t={...t,style:"decimal"}}let l=e+(t?Object.entries(t).sort((u,f)=>u[0]<f[0]?-1:1).join():"");if($v.has(l))return $v.get(l);let s=new Intl.NumberFormat(e,t);return $v.set(l,s),s}function _F(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let l=e.format(-n),s=e.format(n),u=l.replace(s,"").replace(/\u200e|\u061C/,"");return[...u].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),l.replace(s,"!!!").replace(u,"+").replace("!!!",s)}else return e.format(n)}}const OF=new RegExp("^.*\\(.*\\).*$"),RF=["latn","arab","hanidec","deva","beng","fullwide"];class qA{parse(t){return t0(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return t0(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return t0(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const $A=new Map;function t0(e,t,n){let r=e2(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let l of RF)if(l!==r.options.numberingSystem){let s=e2(e+(e.includes("-u-")?"-nu-":"-u-nu-")+l,t);if(s.isValidPartialNumber(n))return s}}return r}function e2(e,t){let n=e+(t?Object.entries(t).sort((l,s)=>l[0]<s[0]?-1:1).join():""),r=$A.get(n);return r||(r=new FF(e,t),$A.set(n,r)),r}class FF{parse(t){let n=this.sanitize(t);if(this.symbols.group&&(n=Kd(n,this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let u=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let f=n.indexOf(".");f===-1&&(f=n.length),n=n.replace(".",""),f-2===0?n=`0.${n}`:f-2===-1?n=`0.0${n}`:f-2===-2?n="0.00":n=`${n.slice(0,f-2)}.${n.slice(f-2)}`,u>-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var l,s;let u={...this.options,style:"decimal",minimumFractionDigits:Math.min(((l=this.options.minimumFractionDigits)!==null&&l!==void 0?l:0)+2,20),maximumFractionDigits:Math.min(((s=this.options.maximumFractionDigits)!==null&&s!==void 0?s:0)+2,20)};return new qA(this.locale,u).parse(new kF(this.locale,u).format(r))}return this.options.currencySign==="accounting"&&OF.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Kd(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Kd(t," ",this.symbols.group),t=Kd(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Kd(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=NF(t,this.formatter,this.options,n);var r,l;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((l=this.options.maximumFractionDigits)!==null&&l!==void 0?l:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const t2=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),IF=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function NF(e,t,n,r){var l,s,u,f;let g=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),v=g.formatToParts(-10000.111),y=g.formatToParts(10000.111),A=IF.map(H=>g.formatToParts(H));var C;let w=(C=(l=v.find(H=>H.type==="minusSign"))===null||l===void 0?void 0:l.value)!==null&&C!==void 0?C:"-",R=(s=y.find(H=>H.type==="plusSign"))===null||s===void 0?void 0:s.value;!R&&(r?.signDisplay==="exceptZero"||r?.signDisplay==="always")&&(R="+");let Y=(u=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(H=>H.type==="decimal"))===null||u===void 0?void 0:u.value,L=(f=v.find(H=>H.type==="group"))===null||f===void 0?void 0:f.value,X=v.filter(H=>!t2.has(H.type)).map(H=>n2(H.value)),V=A.flatMap(H=>H.filter(Ae=>!t2.has(Ae.type)).map(Ae=>n2(Ae.value))),re=[...new Set([...X,...V])].sort((H,Ae)=>Ae.length-H.length),U=re.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${re.join("|")}|[\\p{White_Space}]`,"gu"),J=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),de=new Map(J.map((H,Ae)=>[H,Ae])),ae=new RegExp(`[${J.join("")}]`,"g");return{minusSign:w,plusSign:R,decimal:Y,group:L,literals:U,numeral:ae,index:H=>String(de.get(H))}}function Kd(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function n2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var r2=nt("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");r2.build();var PF=e=>e.ids?.input??`number-input:${e.id}:input`,zF=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,DF=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,i2=e=>`number-input:${e.id}:cursor`,dp=e=>e.getById(PF(e)),MF=e=>e.getById(zF(e)),WF=e=>e.getById(DF(e)),a2=e=>e.getDoc().getElementById(i2(e)),LF=(e,t)=>{let n=null;return t==="increment"&&(n=MF(e)),t==="decrement"&&(n=WF(e)),n},YF=(e,t)=>{if(!lx())return BF(e,t),()=>{a2(e)?.remove()}},VF=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},XF=(e,t)=>{const{point:n,isRtl:r,event:l}=t,s=e.getWin(),u=hv(l.movementX,s.devicePixelRatio),f=hv(l.movementY,s.devicePixelRatio);let g=u>0?"increment":u<0?"decrement":null;r&&g==="increment"&&(g="decrement"),r&&g==="decrement"&&(g="increment");const v={x:n.x+u,y:n.y+f},y=s.innerWidth,A=hv(7.5,s.devicePixelRatio);return v.x=tO(v.x+A,y)-A,{hint:g,point:v}},BF=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=i2(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:mO,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=`
|
57
57
|
<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);">
|
58
58
|
<g transform="translate(2 3)">
|
59
59
|
<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>
|
60
60
|
<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>
|
61
61
|
</g>
|
62
|
-
</svg>`,n.body.appendChild(r)};function H4(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,l=r.substring(0,t),s=r.substring(n);return{start:t,end:n,value:r,beforeTxt:l,afterTxt:s}}catch{}}function U4(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:l="",start:s}=t;let u=n.length;if(n.endsWith(l))u=n.length-l.length;else if(n.startsWith(r))u=r.length;else if(s!=null){const f=r[s-1],g=n.indexOf(f,s-1);g!==-1&&(u=g+1)}e.setSelectionRange(u,u)}catch{}}}var G4=(e,t={})=>new Intl.NumberFormat(e,t),Z4=(e,t={})=>new qA(e,t),n0=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?r("parser").parse(String(e)):parseFloat(e)},Gu=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},Q4=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:K4,guards:j4,createMachine:J4}=vx(),{not:l2,and:o2}=j4;J4({props({props:e}){const t=Q4(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){const l=n(),s=n0(r,{computed:l,prop:e});e("onValueChange")?.({value:r,valueAsNumber:s})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>n0(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Gu(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>rO(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>nO(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!iO(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:mx(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>G4(e,t)),parser:mx(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>Z4(e,t))},watch({track:e,action:t,context:n,computed:r,prop:l}){e([()=>n.get("value"),()=>l("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:o2("clampValueOnBlur",l2("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:l2("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:K4([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:o2("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=dp(t);return vv(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return Y4(t,n)},preventTextSelection({scope:e}){return V4(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),l=L4(t,r);return Mg(l,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=dp(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function l(s){s.preventDefault();const u=Math.sign(s.deltaY)*-1;u===1?t({type:"VALUE.INCREMENT"}):u===-1&&t({type:"VALUE.DECREMENT"})}return Nr(r,"wheel",l,{passive:!1})},activatePointerLock({scope:e}){if(!lx())return aR(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const l=e.getDoc();function s(f){const g=n.get("scrubberCursorPoint"),v=r("isRtl"),y=X4(e,{point:g,isRtl:v,event:f});y.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:y.hint,point:y.point})}function u(){t({type:"SCRUBBER.POINTER_UP"})}return Fg(Nr(l,"mousemove",s,!1),Nr(l,"mouseup",u,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=dp(e);e.isActiveElement(n)||zt(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let l=sO(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(l=zi(l,n("min"),n("max"))),e.set("value",Gu(l,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let l=uO(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(l=zi(l,n("min"),n("max"))),e.set("value",Gu(l,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=zi(n("valueAsNumber"),t("min"),t("max"));e.set("value",Gu(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let l=n0(t.value,{computed:r,prop:n});n("allowOverflow")||(l=zi(l,n("min"),n("max"))),e.set("value",Gu(l,{computed:r,prop:n}))},setValue({context:e,event:t}){const n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=Gu(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=Gu(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const l=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),s=dp(r),u=H4(s);zt(()=>{Dg(s,l),U4(s,u)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=a2(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),ut()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var s2=nt("pinInput").parts("root","label","input","control");s2.build(),ut()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var u2=nt("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");u2.build(),ut()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);var r0=nt("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");r0.build(),ut()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var c2=nt("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");c2.build(),ut()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var i0=nt("radio-group").parts("root","label","item","itemText","itemControl","indicator");i0.build(),ut()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),ut()(["value","disabled","invalid"]);var f2=nt("rating-group").parts("root","label","item","control");f2.build(),ut()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),ut()(["index"]);var d2=nt("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");d2.build(),ut()(["dir","getRootNode","ids","id"]);const h2=i0.rename("segment-group");h2.build();var g2=nt("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");g2.build();var p2=e=>new np(e);p2.empty=()=>new np({items:[]});var q4=e=>e.ids?.content??`select:${e.id}:content`,$4=e=>e.ids?.trigger??`select:${e.id}:trigger`,eF=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,tF=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,nF=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,rF=e=>e.ids?.positioner??`select:${e.id}:positioner`,a0=e=>e.getById(nF(e)),jd=e=>e.getById(q4(e)),hp=e=>e.getById($4(e)),iF=e=>e.getById(eF(e)),m2=e=>e.getById(rF(e)),aF=(e,t)=>e.getById(tF(e,t)),{and:Jd,not:Zu,or:lF}=Ns();lF("isTriggerArrowDownEvent","isTriggerEnterEvent"),Jd(Zu("multiple"),"hasSelectedItems"),Zu("multiple"),Jd(Zu("multiple"),"hasSelectedItems"),Zu("multiple"),Zu("multiple"),Zu("multiple"),Zu("multiple"),Jd("closeOnSelect","isOpenControlled"),Jd("hasHighlightedItem","loop","isLastItemHighlighted"),Jd("hasHighlightedItem","loop","isFirstItemHighlighted");function v2(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}ut()(["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"]),ut()(["item","persistFocus"]),ut()(["id"]),ut()(["htmlFor"]);var b2=nt("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");b2.build(),ut()(["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"]),ut()(["index","name"]);var y2=nt("switch").parts("root","label","control","thumb");y2.build(),ut()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var x2=nt("tooltip").parts("trigger","arrow","arrowTip","positioner","content");x2.build();var oF=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,sF=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,l0=e=>e.getById(oF(e)),A2=e=>e.getById(sF(e)),Qu=YA({id:null}),{and:uF,not:S2}=Ns();uF("noVisibleTooltip",S2("hasPointerMoveOpened")),S2("hasPointerMoveOpened"),ut()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function E2(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const cF=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const l=t(`colors.${n}`),s=t.raw(`opacity.${r}`)?.value;if(!s&&isNaN(Number(r)))return{invalid:!0,value:n};const u=s?Number(s)*100+"%":`${r}%`,f=l??n;return{invalid:!1,color:f,value:`color-mix(in srgb, ${f} ${u}, transparent)`}},cn=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const l="--mix-"+e;return{[l]:r.value,[e]:`var(${l}, ${r.color})`}};function o0(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>o0(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=o0(e[n]);return t}function s0(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Pi(e[n])&&Pi(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Pi(t[n]))s0(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;r<t[n].length;r++)Pi(e[n][r])&&Pi(t[n][r])?s0(e[n][r],t[n][r]):e[n][r]=t[n][r]}else Object.assign(e,{[n]:t[n]});return e}function pf(e,...t){for(const n of t)s0(e,n);return e}const u0=e=>e!=null;function po(e,t,n={}){const{stop:r,getKey:l}=n;function s(u,f=[]){if(Pi(u)||Array.isArray(u)){const g={};for(const[v,y]of Object.entries(u)){const A=l?.(v,y)??v,C=[...f,A];if(r?.(u,C))return t(u,f);const w=s(y,C);u0(w)&&(g[A]=w)}return g}return t(u,f)}return s(e)}function gp(e,t){return Array.isArray(e)?e.map(n=>u0(n)?t(n):n):Pi(e)?po(e,n=>t(n)):u0(e)?t(e):e}const pp=["value","type","description"],fF=e=>e&&typeof e=="object"&&!Array.isArray(e),C2=(...e)=>{const t=pf({},...e.map(o0));return t.theme?.tokens&&po(t.theme.tokens,n=>{const s=Object.keys(n).filter(f=>!pp.includes(f)).length>0,u=pp.some(f=>n[f]!=null);return s&&u&&(n.DEFAULT||(n.DEFAULT={}),pp.forEach(f=>{var g;n[f]!=null&&((g=n.DEFAULT)[f]||(g[f]=n[f]),delete n[f])})),n},{stop(n){return fF(n)&&Object.keys(n).some(r=>pp.includes(r)||r!==r.toLowerCase()&&r!==r.toUpperCase())}}),t},dF=e=>e,pr=e=>e,it=e=>e,hF=e=>e,gF=e=>e,mf=e=>e,pF=e=>e,mF=e=>e,vF=e=>e;function w2(){const e=t=>t;return new Proxy(e,{get(){return e}})}const ir=w2(),c0=w2(),f0=e=>e,bF=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function yF(e){return`${e}`.replace(bF,t=>`\\${t}`)}const xF=/[A-Z]/g;function AF(e){return e.replace(xF,t=>`-${t.toLowerCase()}`)}function k2(e,t={}){const{fallback:n="",prefix:r=""}=t,l=AF(["-",r,yF(e)].filter(Boolean).join("-"));return{var:l,ref:`var(${l}${n?`, ${n}`:""})`}}const SF=e=>/^var\(--.+\)$/.test(e),Sr=(e,t)=>t!=null?`${e}(${t})`:t,Ku=e=>{if(SF(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},T2=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),EF=cn("borderColor"),Qo=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),CF=dF({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"}),vf=k2("bg-currentcolor"),_2=e=>e===vf.ref||e==="currentBg",fn=e=>({...e("colors"),currentBg:vf}),wF=f0({conditions:CF,utilities:{background:{values:fn,shorthand:["bg"],transform(e,t){if(_2(t.raw))return{background:vf.ref};const n=cn("background")(e,t);return{...n,[vf.var]:n?.background}}},backgroundColor:{values:fn,shorthand:["bgColor"],transform(e,t){if(_2(t.raw))return{backgroundColor:vf.ref};const n=cn("backgroundColor")(e,t);return{...n,[vf.var]:n?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:fn,transform:cn("--gradient-from")},gradientTo:{values:fn,transform:cn("--gradient-to")},gradientVia:{values:fn,transform(e,t){return{...cn("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:fn,transform:cn("borderColor")},borderTopColor:{values:fn,transform:cn("borderTopColor")},borderBlockStartColor:{values:fn,transform:cn("borderBlockStartColor")},borderBottomColor:{values:fn,transform:cn("borderBottomColor")},borderBlockEndColor:{values:fn,transform:cn("borderBlockEndColor")},borderLeftColor:{values:fn,transform:cn("borderLeftColor")},borderInlineStartColor:{values:fn,shorthand:["borderStartColor"],transform:cn("borderInlineStartColor")},borderRightColor:{values:fn,transform:cn("borderRightColor")},borderInlineEndColor:{values:fn,shorthand:["borderEndColor"],transform:cn("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:fn,transform:cn("color")},fill:{values:fn,transform:cn("fill")},stroke:{values:fn,transform:cn("stroke")},accentColor:{values:fn,transform:cn("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:fn,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":EF(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:fn,transform:cn("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Sr("blur",e)})},brightness:{transform:e=>({"--brightness":Sr("brightness",e)})},contrast:{transform:e=>({"--contrast":Sr("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Sr("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Sr("hue-rotate",Ku(e))})},invert:{transform:e=>({"--invert":Sr("invert",e)})},saturate:{transform:e=>({"--saturate":Sr("saturate",e)})},sepia:{transform:e=>({"--sepia":Sr("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Sr("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Sr("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Sr("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Sr("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Sr("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Sr("hue-rotate",Ku(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Sr("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Sr("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Sr("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Sr("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:fn,transform:cn("outlineColor")},focusRing:T2("&:is(:focus, [data-focus])"),focusVisibleRing:T2("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:fn,transform:cn("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:fn,transform:cn("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:fn,transform:cn("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:fn,transform:cn("--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:fn,transform:cn("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":Ku(e)})},skewY:{transform:e=>({"--skew-y":Ku(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:Ku(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":Ku(e)}}},rotateY:{transform(e){return{"--rotate-y":Ku(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Qo("all");case"position":return Qo("left, right, top, bottom, inset-inline, inset-block");case"colors":return Qo("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Qo("opacity");case"shadow":return Qo("box-shadow");case"transform":return Qo("transform");case"size":return Qo("width, height");case"backgrounds":return Qo("background, background-color, background-image, background-position");case"common":return Qo("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return kF[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:fn,transform:cn("caretColor")},cursor:{values:"cursor"}}}),kF={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var TF="",_F=TF.split(","),OF="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",RF=OF.split(",").concat(_F),FF=new Map(RF.map(e=>[e,!0]));function IF(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var NF=/&|@/,PF=IF(e=>FF.has(e)||e.startsWith("--")||NF.test(e));function O2(e,t){const n={};return po(e,(r,l)=>{r&&(n[l.join(".")]=r.value)},{stop:t}),n}var d0,R2;function zF(){if(R2)return d0;R2=1,d0=s,s.default=s,s.stable=v,s.stableStringify=v;var e="[...]",t="[Circular]",n=[],r=[];function l(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(C,w,R,N){typeof N>"u"&&(N=l()),f(C,"",0,[],void 0,0,N);var Y;try{r.length===0?Y=JSON.stringify(C,w,R):Y=JSON.stringify(C,A(w),R)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var L=n.pop();L.length===4?Object.defineProperty(L[0],L[1],L[3]):L[0][L[1]]=L[2]}}return Y}function u(C,w,R,N){var Y=Object.getOwnPropertyDescriptor(N,R);Y.get!==void 0?Y.configurable?(Object.defineProperty(N,R,{value:C}),n.push([N,R,w,Y])):r.push([w,R,C]):(N[R]=C,n.push([N,R,w]))}function f(C,w,R,N,Y,L,X){L+=1;var V;if(typeof C=="object"&&C!==null){for(V=0;V<N.length;V++)if(N[V]===C){u(t,C,w,Y);return}if(typeof X.depthLimit<"u"&&L>X.depthLimit){u(e,C,w,Y);return}if(typeof X.edgesLimit<"u"&&R+1>X.edgesLimit){u(e,C,w,Y);return}if(N.push(C),Array.isArray(C))for(V=0;V<C.length;V++)f(C[V],V,V,N,C,L,X);else{var re=Object.keys(C);for(V=0;V<re.length;V++){var U=re[V];f(C[U],U,V,N,C,L,X)}}N.pop()}}function g(C,w){return C<w?-1:C>w?1:0}function v(C,w,R,N){typeof N>"u"&&(N=l());var Y=y(C,"",0,[],void 0,0,N)||C,L;try{r.length===0?L=JSON.stringify(Y,w,R):L=JSON.stringify(Y,A(w),R)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var X=n.pop();X.length===4?Object.defineProperty(X[0],X[1],X[3]):X[0][X[1]]=X[2]}}return L}function y(C,w,R,N,Y,L,X){L+=1;var V;if(typeof C=="object"&&C!==null){for(V=0;V<N.length;V++)if(N[V]===C){u(t,C,w,Y);return}try{if(typeof C.toJSON=="function")return}catch{return}if(typeof X.depthLimit<"u"&&L>X.depthLimit){u(e,C,w,Y);return}if(typeof X.edgesLimit<"u"&&R+1>X.edgesLimit){u(e,C,w,Y);return}if(N.push(C),Array.isArray(C))for(V=0;V<C.length;V++)y(C[V],V,V,N,C,L,X);else{var re={},U=Object.keys(C).sort(g);for(V=0;V<U.length;V++){var J=U[V];y(C[J],J,V,N,C,L,X),re[J]=C[J]}if(typeof Y<"u")n.push([Y,w,C]),Y[w]=re;else return re}N.pop()}}function A(C){return C=typeof C<"u"?C:function(w,R){return R},function(w,R){if(r.length>0)for(var N=0;N<r.length;N++){var Y=r[N];if(Y[1]===w&&Y[0]===R){R=Y[2],r.splice(N,1);break}}return C.call(this,w,R)}}return d0}var DF=zF();const MF=zu(DF),ml=e=>{const t=Object.create(null);function n(...r){const l=r.map(s=>MF(s)).join("|");return t[l]===void 0&&(t[l]=e(...r)),t[l]}return n},F2=16,mp="px",h0="em",qd="rem";function I2(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${mp}|${h0}|${qd}`);return e.match(new RegExp(`${t.source}(${n.source})`))?.[1]}function N2(e=""){if(typeof e=="number")return`${e}px`;const t=I2(e);if(!t||t===mp)return e;if(t===h0||t===qd)return`${parseFloat(e)*F2}${mp}`}function P2(e=""){const t=I2(e);if(!t||t===qd)return e;if(t===h0)return`${parseFloat(e)}${qd}`;if(t===mp)return`${parseFloat(e)/F2}${qd}`}const WF=e=>e.charAt(0).toUpperCase()+e.slice(1);function LF(e){const t=YF(e),n=Object.fromEntries(t);function r(C){return n[C]}function l(C){return bf(r(C))}function s(){const C=Object.keys(n),w=VF(C),R=C.flatMap(N=>{const Y=r(N),L=[`${N}Down`,bf({max:vp(Y.min)})],X=[N,bf({min:Y.min})],V=[`${N}Only`,l(N)];return[X,V,L]}).filter(([,N])=>N!=="").concat(w.map(([N,Y])=>{const L=r(N),X=r(Y);return[`${N}To${WF(Y)}`,bf({min:L.min,max:vp(X.min)})]}));return Object.fromEntries(R)}function u(){const C=s();return Object.fromEntries(Object.entries(C))}const f=u(),g=C=>f[C];function v(){return["base",...Object.keys(n)]}function y(C){return bf({min:r(C).min})}function A(C){return bf({max:vp(r(C).min)})}return{values:Object.values(n),only:l,keys:v,conditions:f,getCondition:g,up:y,down:A}}function vp(e){const t=parseFloat(N2(e)??"")-.04;return P2(`${t}px`)}function YF(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10)<parseInt(r,10)?-1:1).map(([n,r],l,s)=>{let u=null;return l<=s.length-1&&(u=s[l+1]?.[1]),u!=null&&(u=vp(u)),[n,{name:n,min:P2(r),max:u}]})}function VF(e){const t=[];return e.forEach((n,r)=>{let l=r;l++;let s=e[l];for(;s;)t.push([n,s]),l++,s=e[l]}),t}function bf({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const XF=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),BF=e=>{const{breakpoints:t,conditions:n={}}=e,r=XF(n,(y,A)=>[`_${y}`,A]),l=Object.assign({},r,t.conditions);function s(){return Object.keys(l)}function u(y){return s().includes(y)||/^@|&|&$/.test(y)||y.startsWith("_")}function f(y){return y.filter(A=>A!=="base").sort((A,C)=>{const w=u(A),R=u(C);return w&&!R?1:!w&&R?-1:0})}function g(y){return y.startsWith("@breakpoint")?t.getCondition(y.replace("@breakpoint ","")):y}function v(y){return Reflect.get(l,y)||y}return{keys:s,sort:f,has:u,resolve:v,breakpoints:t.keys(),expandAtRule:g}},z2=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
|
62
|
+
</svg>`,n.body.appendChild(r)};function HF(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,l=r.substring(0,t),s=r.substring(n);return{start:t,end:n,value:r,beforeTxt:l,afterTxt:s}}catch{}}function UF(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:l="",start:s}=t;let u=n.length;if(n.endsWith(l))u=n.length-l.length;else if(n.startsWith(r))u=r.length;else if(s!=null){const f=r[s-1],g=n.indexOf(f,s-1);g!==-1&&(u=g+1)}e.setSelectionRange(u,u)}catch{}}}var GF=(e,t={})=>new Intl.NumberFormat(e,t),ZF=(e,t={})=>new qA(e,t),n0=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?r("parser").parse(String(e)):parseFloat(e)},Gu=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},QF=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:KF,guards:jF,createMachine:JF}=vx(),{not:l2,and:o2}=jF;JF({props({props:e}){const t=QF(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){const l=n(),s=n0(r,{computed:l,prop:e});e("onValueChange")?.({value:r,valueAsNumber:s})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>n0(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Gu(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>rO(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>nO(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!iO(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:mx(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>GF(e,t)),parser:mx(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>ZF(e,t))},watch({track:e,action:t,context:n,computed:r,prop:l}){e([()=>n.get("value"),()=>l("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:o2("clampValueOnBlur",l2("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:l2("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:KF([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:o2("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=dp(t);return vv(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return YF(t,n)},preventTextSelection({scope:e}){return VF(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),l=LF(t,r);return Mg(l,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=dp(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function l(s){s.preventDefault();const u=Math.sign(s.deltaY)*-1;u===1?t({type:"VALUE.INCREMENT"}):u===-1&&t({type:"VALUE.DECREMENT"})}return Nr(r,"wheel",l,{passive:!1})},activatePointerLock({scope:e}){if(!lx())return aR(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const l=e.getDoc();function s(f){const g=n.get("scrubberCursorPoint"),v=r("isRtl"),y=XF(e,{point:g,isRtl:v,event:f});y.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:y.hint,point:y.point})}function u(){t({type:"SCRUBBER.POINTER_UP"})}return Fg(Nr(l,"mousemove",s,!1),Nr(l,"mouseup",u,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=dp(e);e.isActiveElement(n)||zt(()=>n?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let l=sO(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(l=zi(l,n("min"),n("max"))),e.set("value",Gu(l,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let l=uO(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(l=zi(l,n("min"),n("max"))),e.set("value",Gu(l,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=zi(n("valueAsNumber"),t("min"),t("max"));e.set("value",Gu(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let l=n0(t.value,{computed:r,prop:n});n("allowOverflow")||(l=zi(l,n("min"),n("max"))),e.set("value",Gu(l,{computed:r,prop:n}))},setValue({context:e,event:t}){const n=t.target?.value??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=Gu(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=Gu(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const l=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),s=dp(r),u=HF(s);zt(()=>{Dg(s,l),UF(s,u)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=a2(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),ut()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var s2=nt("pinInput").parts("root","label","input","control");s2.build(),ut()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var u2=nt("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");u2.build(),ut()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);var r0=nt("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");r0.build(),ut()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var c2=nt("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");c2.build(),ut()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var i0=nt("radio-group").parts("root","label","item","itemText","itemControl","indicator");i0.build(),ut()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),ut()(["value","disabled","invalid"]);var f2=nt("rating-group").parts("root","label","item","control");f2.build(),ut()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),ut()(["index"]);var d2=nt("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");d2.build(),ut()(["dir","getRootNode","ids","id"]);const h2=i0.rename("segment-group");h2.build();var g2=nt("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");g2.build();var p2=e=>new np(e);p2.empty=()=>new np({items:[]});var qF=e=>e.ids?.content??`select:${e.id}:content`,$F=e=>e.ids?.trigger??`select:${e.id}:trigger`,e4=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,t4=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,n4=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,r4=e=>e.ids?.positioner??`select:${e.id}:positioner`,a0=e=>e.getById(n4(e)),jd=e=>e.getById(qF(e)),hp=e=>e.getById($F(e)),i4=e=>e.getById(e4(e)),m2=e=>e.getById(r4(e)),a4=(e,t)=>e.getById(t4(e,t)),{and:Jd,not:Zu,or:l4}=Ns();l4("isTriggerArrowDownEvent","isTriggerEnterEvent"),Jd(Zu("multiple"),"hasSelectedItems"),Zu("multiple"),Jd(Zu("multiple"),"hasSelectedItems"),Zu("multiple"),Zu("multiple"),Zu("multiple"),Zu("multiple"),Jd("closeOnSelect","isOpenControlled"),Jd("hasHighlightedItem","loop","isLastItemHighlighted"),Jd("hasHighlightedItem","loop","isFirstItemHighlighted");function v2(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}ut()(["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"]),ut()(["item","persistFocus"]),ut()(["id"]),ut()(["htmlFor"]);var b2=nt("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");b2.build(),ut()(["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"]),ut()(["index","name"]);var y2=nt("switch").parts("root","label","control","thumb");y2.build(),ut()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var x2=nt("tooltip").parts("trigger","arrow","arrowTip","positioner","content");x2.build();var o4=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,s4=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,l0=e=>e.getById(o4(e)),A2=e=>e.getById(s4(e)),Qu=YA({id:null}),{and:u4,not:S2}=Ns();u4("noVisibleTooltip",S2("hasPointerMoveOpened")),S2("hasPointerMoveOpened"),ut()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function E2(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const c4=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const l=t(`colors.${n}`),s=t.raw(`opacity.${r}`)?.value;if(!s&&isNaN(Number(r)))return{invalid:!0,value:n};const u=s?Number(s)*100+"%":`${r}%`,f=l??n;return{invalid:!1,color:f,value:`color-mix(in srgb, ${f} ${u}, transparent)`}},cn=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const l="--mix-"+e;return{[l]:r.value,[e]:`var(${l}, ${r.color})`}};function o0(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>o0(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=o0(e[n]);return t}function s0(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Pi(e[n])&&Pi(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Pi(t[n]))s0(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;r<t[n].length;r++)Pi(e[n][r])&&Pi(t[n][r])?s0(e[n][r],t[n][r]):e[n][r]=t[n][r]}else Object.assign(e,{[n]:t[n]});return e}function pf(e,...t){for(const n of t)s0(e,n);return e}const u0=e=>e!=null;function po(e,t,n={}){const{stop:r,getKey:l}=n;function s(u,f=[]){if(Pi(u)||Array.isArray(u)){const g={};for(const[v,y]of Object.entries(u)){const A=l?.(v,y)??v,C=[...f,A];if(r?.(u,C))return t(u,f);const w=s(y,C);u0(w)&&(g[A]=w)}return g}return t(u,f)}return s(e)}function gp(e,t){return Array.isArray(e)?e.map(n=>u0(n)?t(n):n):Pi(e)?po(e,n=>t(n)):u0(e)?t(e):e}const pp=["value","type","description"],f4=e=>e&&typeof e=="object"&&!Array.isArray(e),C2=(...e)=>{const t=pf({},...e.map(o0));return t.theme?.tokens&&po(t.theme.tokens,n=>{const s=Object.keys(n).filter(f=>!pp.includes(f)).length>0,u=pp.some(f=>n[f]!=null);return s&&u&&(n.DEFAULT||(n.DEFAULT={}),pp.forEach(f=>{var g;n[f]!=null&&((g=n.DEFAULT)[f]||(g[f]=n[f]),delete n[f])})),n},{stop(n){return f4(n)&&Object.keys(n).some(r=>pp.includes(r)||r!==r.toLowerCase()&&r!==r.toUpperCase())}}),t},d4=e=>e,pr=e=>e,it=e=>e,h4=e=>e,g4=e=>e,mf=e=>e,p4=e=>e,m4=e=>e,v4=e=>e;function w2(){const e=t=>t;return new Proxy(e,{get(){return e}})}const ir=w2(),c0=w2(),f0=e=>e,b4=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function y4(e){return`${e}`.replace(b4,t=>`\\${t}`)}const x4=/[A-Z]/g;function A4(e){return e.replace(x4,t=>`-${t.toLowerCase()}`)}function k2(e,t={}){const{fallback:n="",prefix:r=""}=t,l=A4(["-",r,y4(e)].filter(Boolean).join("-"));return{var:l,ref:`var(${l}${n?`, ${n}`:""})`}}const S4=e=>/^var\(--.+\)$/.test(e),Sr=(e,t)=>t!=null?`${e}(${t})`:t,Ku=e=>{if(S4(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},T2=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),E4=cn("borderColor"),Qo=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),C4=d4({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"}),vf=k2("bg-currentcolor"),_2=e=>e===vf.ref||e==="currentBg",fn=e=>({...e("colors"),currentBg:vf}),w4=f0({conditions:C4,utilities:{background:{values:fn,shorthand:["bg"],transform(e,t){if(_2(t.raw))return{background:vf.ref};const n=cn("background")(e,t);return{...n,[vf.var]:n?.background}}},backgroundColor:{values:fn,shorthand:["bgColor"],transform(e,t){if(_2(t.raw))return{backgroundColor:vf.ref};const n=cn("backgroundColor")(e,t);return{...n,[vf.var]:n?.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:fn,transform:cn("--gradient-from")},gradientTo:{values:fn,transform:cn("--gradient-to")},gradientVia:{values:fn,transform(e,t){return{...cn("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:fn,transform:cn("borderColor")},borderTopColor:{values:fn,transform:cn("borderTopColor")},borderBlockStartColor:{values:fn,transform:cn("borderBlockStartColor")},borderBottomColor:{values:fn,transform:cn("borderBottomColor")},borderBlockEndColor:{values:fn,transform:cn("borderBlockEndColor")},borderLeftColor:{values:fn,transform:cn("borderLeftColor")},borderInlineStartColor:{values:fn,shorthand:["borderStartColor"],transform:cn("borderInlineStartColor")},borderRightColor:{values:fn,transform:cn("borderRightColor")},borderInlineEndColor:{values:fn,shorthand:["borderEndColor"],transform:cn("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:fn,transform:cn("color")},fill:{values:fn,transform:cn("fill")},stroke:{values:fn,transform:cn("stroke")},accentColor:{values:fn,transform:cn("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:fn,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":E4(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:fn,transform:cn("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Sr("blur",e)})},brightness:{transform:e=>({"--brightness":Sr("brightness",e)})},contrast:{transform:e=>({"--contrast":Sr("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Sr("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Sr("hue-rotate",Ku(e))})},invert:{transform:e=>({"--invert":Sr("invert",e)})},saturate:{transform:e=>({"--saturate":Sr("saturate",e)})},sepia:{transform:e=>({"--sepia":Sr("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Sr("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Sr("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Sr("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Sr("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Sr("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Sr("hue-rotate",Ku(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Sr("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Sr("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Sr("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Sr("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:fn,transform:cn("outlineColor")},focusRing:T2("&:is(:focus, [data-focus])"),focusVisibleRing:T2("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:fn,transform:cn("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:fn,transform:cn("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:fn,transform:cn("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:fn,transform:cn("--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:fn,transform:cn("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":Ku(e)})},skewY:{transform:e=>({"--skew-y":Ku(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:Ku(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":Ku(e)}}},rotateY:{transform(e){return{"--rotate-y":Ku(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Qo("all");case"position":return Qo("left, right, top, bottom, inset-inline, inset-block");case"colors":return Qo("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Qo("opacity");case"shadow":return Qo("box-shadow");case"transform":return Qo("transform");case"size":return Qo("width, height");case"backgrounds":return Qo("background, background-color, background-image, background-position");case"common":return Qo("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return k4[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:fn,transform:cn("caretColor")},cursor:{values:"cursor"}}}),k4={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var T4="",_4=T4.split(","),O4="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",R4=O4.split(",").concat(_4),F4=new Map(R4.map(e=>[e,!0]));function I4(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var N4=/&|@/,P4=I4(e=>F4.has(e)||e.startsWith("--")||N4.test(e));function O2(e,t){const n={};return po(e,(r,l)=>{r&&(n[l.join(".")]=r.value)},{stop:t}),n}var d0,R2;function z4(){if(R2)return d0;R2=1,d0=s,s.default=s,s.stable=v,s.stableStringify=v;var e="[...]",t="[Circular]",n=[],r=[];function l(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(C,w,R,N){typeof N>"u"&&(N=l()),f(C,"",0,[],void 0,0,N);var Y;try{r.length===0?Y=JSON.stringify(C,w,R):Y=JSON.stringify(C,A(w),R)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var L=n.pop();L.length===4?Object.defineProperty(L[0],L[1],L[3]):L[0][L[1]]=L[2]}}return Y}function u(C,w,R,N){var Y=Object.getOwnPropertyDescriptor(N,R);Y.get!==void 0?Y.configurable?(Object.defineProperty(N,R,{value:C}),n.push([N,R,w,Y])):r.push([w,R,C]):(N[R]=C,n.push([N,R,w]))}function f(C,w,R,N,Y,L,X){L+=1;var V;if(typeof C=="object"&&C!==null){for(V=0;V<N.length;V++)if(N[V]===C){u(t,C,w,Y);return}if(typeof X.depthLimit<"u"&&L>X.depthLimit){u(e,C,w,Y);return}if(typeof X.edgesLimit<"u"&&R+1>X.edgesLimit){u(e,C,w,Y);return}if(N.push(C),Array.isArray(C))for(V=0;V<C.length;V++)f(C[V],V,V,N,C,L,X);else{var re=Object.keys(C);for(V=0;V<re.length;V++){var U=re[V];f(C[U],U,V,N,C,L,X)}}N.pop()}}function g(C,w){return C<w?-1:C>w?1:0}function v(C,w,R,N){typeof N>"u"&&(N=l());var Y=y(C,"",0,[],void 0,0,N)||C,L;try{r.length===0?L=JSON.stringify(Y,w,R):L=JSON.stringify(Y,A(w),R)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;n.length!==0;){var X=n.pop();X.length===4?Object.defineProperty(X[0],X[1],X[3]):X[0][X[1]]=X[2]}}return L}function y(C,w,R,N,Y,L,X){L+=1;var V;if(typeof C=="object"&&C!==null){for(V=0;V<N.length;V++)if(N[V]===C){u(t,C,w,Y);return}try{if(typeof C.toJSON=="function")return}catch{return}if(typeof X.depthLimit<"u"&&L>X.depthLimit){u(e,C,w,Y);return}if(typeof X.edgesLimit<"u"&&R+1>X.edgesLimit){u(e,C,w,Y);return}if(N.push(C),Array.isArray(C))for(V=0;V<C.length;V++)y(C[V],V,V,N,C,L,X);else{var re={},U=Object.keys(C).sort(g);for(V=0;V<U.length;V++){var J=U[V];y(C[J],J,V,N,C,L,X),re[J]=C[J]}if(typeof Y<"u")n.push([Y,w,C]),Y[w]=re;else return re}N.pop()}}function A(C){return C=typeof C<"u"?C:function(w,R){return R},function(w,R){if(r.length>0)for(var N=0;N<r.length;N++){var Y=r[N];if(Y[1]===w&&Y[0]===R){R=Y[2],r.splice(N,1);break}}return C.call(this,w,R)}}return d0}var D4=z4();const M4=zu(D4),ml=e=>{const t=Object.create(null);function n(...r){const l=r.map(s=>M4(s)).join("|");return t[l]===void 0&&(t[l]=e(...r)),t[l]}return n},F2=16,mp="px",h0="em",qd="rem";function I2(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${mp}|${h0}|${qd}`);return e.match(new RegExp(`${t.source}(${n.source})`))?.[1]}function N2(e=""){if(typeof e=="number")return`${e}px`;const t=I2(e);if(!t||t===mp)return e;if(t===h0||t===qd)return`${parseFloat(e)*F2}${mp}`}function P2(e=""){const t=I2(e);if(!t||t===qd)return e;if(t===h0)return`${parseFloat(e)}${qd}`;if(t===mp)return`${parseFloat(e)/F2}${qd}`}const W4=e=>e.charAt(0).toUpperCase()+e.slice(1);function L4(e){const t=Y4(e),n=Object.fromEntries(t);function r(C){return n[C]}function l(C){return bf(r(C))}function s(){const C=Object.keys(n),w=V4(C),R=C.flatMap(N=>{const Y=r(N),L=[`${N}Down`,bf({max:vp(Y.min)})],X=[N,bf({min:Y.min})],V=[`${N}Only`,l(N)];return[X,V,L]}).filter(([,N])=>N!=="").concat(w.map(([N,Y])=>{const L=r(N),X=r(Y);return[`${N}To${W4(Y)}`,bf({min:L.min,max:vp(X.min)})]}));return Object.fromEntries(R)}function u(){const C=s();return Object.fromEntries(Object.entries(C))}const f=u(),g=C=>f[C];function v(){return["base",...Object.keys(n)]}function y(C){return bf({min:r(C).min})}function A(C){return bf({max:vp(r(C).min)})}return{values:Object.values(n),only:l,keys:v,conditions:f,getCondition:g,up:y,down:A}}function vp(e){const t=parseFloat(N2(e)??"")-.04;return P2(`${t}px`)}function Y4(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10)<parseInt(r,10)?-1:1).map(([n,r],l,s)=>{let u=null;return l<=s.length-1&&(u=s[l+1]?.[1]),u!=null&&(u=vp(u)),[n,{name:n,min:P2(r),max:u}]})}function V4(e){const t=[];return e.forEach((n,r)=>{let l=r;l++;let s=e[l];for(;s;)t.push([n,s]),l++,s=e[l]}),t}function bf({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const X4=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),B4=e=>{const{breakpoints:t,conditions:n={}}=e,r=X4(n,(y,A)=>[`_${y}`,A]),l=Object.assign({},r,t.conditions);function s(){return Object.keys(l)}function u(y){return s().includes(y)||/^@|&|&$/.test(y)||y.startsWith("_")}function f(y){return y.filter(A=>A!=="base").sort((A,C)=>{const w=u(A),R=u(C);return w&&!R?1:!w&&R?-1:0})}function g(y){return y.startsWith("@breakpoint")?t.getCondition(y.replace("@breakpoint ","")):y}function v(y){return Reflect.get(l,y)||y}return{keys:s,sort:f,has:u,resolve:v,breakpoints:t.keys(),expandAtRule:g}},z2=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
|
63
63
|
)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
|
64
|
-
)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),HF=z2("width"),UF=z2("height"),D2=e=>({isMin:X2(e.minMax,e.maxMin,e.min),isMax:X2(e.maxMin,e.minMax,e.max)}),{isMin:g0,isMax:M2}=D2(HF),{isMin:p0,isMax:W2}=D2(UF),L2=/print/i,Y2=/^print$/i,GF=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,ZF=/(\d)/,$d=Number.MAX_VALUE,QF={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function V2(e){const t=GF.exec(e)||(g0(e)||p0(e)?ZF.exec(e):null);if(!t)return $d;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(QF[r]||1)}function X2(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function KF(e,t){const n=L2.test(e),r=Y2.test(e),l=L2.test(t),s=Y2.test(t);return n&&l?!r&&s?1:r&&!s?-1:e.localeCompare(t):n?1:l?-1:null}const jF=ml((e,t)=>{const n=KF(e,t);if(n!==null)return n;const r=g0(e)||p0(e),l=M2(e)||W2(e),s=g0(t)||p0(t),u=M2(t)||W2(t);if(r&&u)return-1;if(l&&s)return 1;const f=V2(e),g=V2(t);return f===$d&&g===$d?e.localeCompare(t):f===$d?1:g===$d?-1:f!==g?f>g?l?-1:1:l?1:-1:e.localeCompare(t)});function B2(e){return e.sort(([t],[n])=>jF(t,n))}function H2(e){const t=[],n=[],r={};for(const[u,f]of Object.entries(e))u.startsWith("@media")?t.push([u,f]):u.startsWith("@container")?n.push([u,f]):Pi(f)?r[u]=H2(f):r[u]=f;const l=B2(t),s=B2(n);return{...r,...Object.fromEntries(l),...Object.fromEntries(s)}}const U2=/\s*!(important)?/i,JF=e=>so(e)?U2.test(e):!1,qF=e=>so(e)?e.replace(U2,"").trim():e;function G2(e){const{transform:t,conditions:n,normalize:r}=e,l=tI(e);return ml(function(...u){const f=l(...u),g=r(f),v=Object.create(null);return po(g,(y,A)=>{const C=JF(y);if(y==null)return;const[w,...R]=n.sort(A).map(n.resolve);C&&(y=qF(y));let N=t(w,y)??Object.create(null);N=po(N,Y=>so(Y)&&C?`${Y} !important`:Y,{getKey:Y=>n.expandAtRule(Y)}),$F(v,R.flat(),N)}),H2(v)})}function $F(e,t,n){let r=e;for(const l of t)l&&(r[l]||(r[l]=Object.create(null)),r=r[l]);pf(r,n)}function eI(...e){return e.filter(t=>Pi(t)&&Object.keys(zd(t)).length>0)}function tI(e){function t(n){const r=eI(...n);return r.length===1?r:r.map(l=>e.normalize(l))}return ml(function(...r){return pf({},...t(r))})}const Z2=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function nI(e){const{css:t,conditions:n,normalize:r,layers:l}=e;function s(f={}){const{base:g,variants:v,defaultVariants:y,compoundVariants:A}=Z2(f),C=G2({conditions:n,normalize:r,transform(X,V){return v[X]?.[V]}}),w=(X={})=>{const V=r({...y,...zd(X)});let re={...g};pf(re,C(V));const U=u(A,V);return l.wrap("recipes",t(re,U))},R=Object.keys(v),N=X=>{const V=E2(X,["recipe"]),[re,U]=ef(V,R);return R.includes("colorPalette")||(re.colorPalette=X.colorPalette||y.colorPalette),R.includes("orientation")&&(U.orientation=X.orientation),[re,U]},Y=Object.fromEntries(Object.entries(v).map(([X,V])=>[X,Object.keys(V)]));return Object.assign(X=>t(w(X)),{className:f.className,__cva__:!0,variantMap:Y,variantKeys:R,raw:w,config:f,splitVariantProps:N,merge(X){return s(rI(e)(this,X))}})}function u(f,g){let v={};return f.forEach(y=>{Object.entries(y).every(([C,w])=>C==="css"?!0:(Array.isArray(w)?w:[w]).some(N=>g[C]===N))&&(v=t(v,y.css))}),v}return s}function rI(e){const{css:t}=e;return function(r,l){const s=Z2(l.config),u=N1(r.variantKeys,Object.keys(l.variants)),f=t(r.base,s.base),g=Object.fromEntries(u.map(C=>[C,t(r.config.variants[C],s.variants[C])])),v=pf(r.config.defaultVariants,s.defaultVariants),y=[...r.compoundVariants,...s.compoundVariants];return{className:oo(r.className,l.className),base:f,variants:g,defaultVariants:v,compoundVariants:y}}}const iI={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Q2={reset:0,base:1,tokens:2,recipes:3};function aI(e){const t=e.layers??iI,r=Object.values(t).sort((l,s)=>Q2[l]-Q2[s]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(l,s){return e.disableLayers?s:{[`@layer ${t[l]}`]:s}}}}function lI(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:l}=t;return function(s){return po(s,n,{stop:u=>Array.isArray(u),getKey:r?l:void 0})}}function oI(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Pi(t)?t:{};let l="";n&&r==="parent"?l=`${n} `:n&&r==="element"&&(l=`&${n}`);const s={"*":{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"}},u={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const f=Object.entries(s).reduce((g,[v,y])=>(g[v]={[l]:y},g),{});Object.assign(u,f)}else l?u[l]=s:Object.assign(u,s);return u}function sI(e){const{conditions:t,isValidProperty:n}=e;return function(l){return po(l,s=>s,{getKey:(s,u)=>Pi(u)&&!t.has(s)&&!n(s)?uI(s).map(f=>"&"+f).join(", "):s})}}function uI(e){const t=[];let n=0,r="",l=!1;for(let s=0;s<e.length;s++){const u=e[s];if(u==="\\"&&!l){l=!0,r+=u;continue}if(l){l=!1,r+=u;continue}u==="("?n++:u===")"&&n--,u===","&&n===0?(t.push(r.trim()),r=""):r+=u}return r&&t.push(r.trim()),t}const cI=(e={})=>{const t=l=>({base:e.base?.[l]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?fI(e.compoundVariants,l):[]}),r=(e.slots??[]).map(l=>[l,t(l)]);for(const[l,s]of Object.entries(e.variants??{}))for(const[u,f]of Object.entries(s))r.forEach(([g,v])=>{var y;(y=v.variants)[l]??(y[l]={}),v.variants[l][u]=f[g]??{}});return Object.fromEntries(r)},fI=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function dI(e){const{cva:t}=e;return function(r={}){const l=Object.entries(cI(r)).map(([A,C])=>[A,t(C)]);function s(A){const C=l.map(([w,R])=>[w,R(A)]);return Object.fromEntries(C)}const u=r.variants??{},f=Object.keys(u);function g(A){const C=E2(A,["recipe"]),[w,R]=ef(C,f);return f.includes("colorPalette")||(w.colorPalette=A.colorPalette||r.defaultVariants?.colorPalette),f.includes("orientation")&&(R.orientation=A.orientation),[w,R]}const v=Object.fromEntries(Object.entries(u).map(([A,C])=>[A,Object.keys(C)]));let y={};return r.className&&(y=Object.fromEntries(r.slots.map(A=>[A,`${r.className}__${A}`]))),Object.assign(s,{variantMap:v,variantKeys:f,splitVariantProps:g,classNameMap:y})}}const hI=()=>e=>Array.from(new Set(e)),gI=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,pI=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},K2=e=>(e+"").replace(gI,pI),j2=(e,t)=>{let n="",r=0,l="char",s="",u="";const f=[];for(;r<e.length;){const g=e[r];if(g==="{"){const y=e.indexOf("}",r);if(y===-1)break;const A=e.slice(r+1,y),C=t(A);n+=C??A,r=y+1;continue}if(l==="token"&&g===","){e[r]===""&&r++,l="fallback",f.push(l);const y=t(s);y?.endsWith(")")&&(n+=y.slice(0,-1)),s="",u="";continue}if(l==="fallback"&&u+g===", var("){const C=mI(e.slice(r+1))+r+1,w=e.slice(r+1,C);if(C===-1)break;n+=", var("+w+")",r=C+1,l=f.pop()??l,u="";continue}if(l==="token"||l==="fallback"){if(r++,g===")"){l=f.pop()??l??"char",u+=g;const y=s&&(t(s)??K2(s));if(u){if(u=u.slice(1).trim(),!u.startsWith("token(")&&u.endsWith(")")&&(u=u.slice(0,-1)),u.includes("token(")){const C=j2(u,t);C&&(u=C.slice(0,-1))}else if(u){const C=t(u);C&&(u=C)}}const A=n.at(-1);u?A?.trim()?n+=y.slice(0,-1)+(", "+u+")"):n+=u:n+=y||")",s="",u="",l="char";continue}l==="token"&&(s+=g),l==="fallback"&&(u+=g);continue}const v=e.indexOf("token(",r);if(v!==-1){const y=v+6;n+=e.slice(r,v),r=y,l="token",f.push(l);continue}n+=g,r++}return n},mI=e=>{let t=0;const n=["("];for(;t<e.length;){const r=e[t];if(r==="(")n.push(r);else if(r===")"&&(n.pop(),n.length===0))return t;t++}return t};function J2(e){const t={};return e.forEach((n,r)=>{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const q2=/({([^}]*)})/g,vI=/[{}]/g,bI=/\w+\.\w+/,$2=e=>{if(!so(e))return[];const t=e.match(q2);return t?t.map(n=>n.replace(vI,"")).map(n=>n.trim()):[]},yI=e=>q2.test(e);function eS(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((n,r)=>{const l=t[r];if(l.extensions.conditions)return n;const s=eS(l);return n.replace(`{${r}}`,s)},e.value),delete e.extensions.references,e.value}function tS(e){return Pi(e)&&e.reference?e.reference:String(e)}const bp=(e,...t)=>t.map(tS).join(` ${e} `).replace(/calc/g,""),nS=(...e)=>`calc(${bp("+",...e)})`,rS=(...e)=>`calc(${bp("-",...e)})`,m0=(...e)=>`calc(${bp("*",...e)})`,iS=(...e)=>`calc(${bp("/",...e)})`,aS=e=>{const t=tS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:m0(t,-1)},yf=Object.assign(e=>({add:(...t)=>yf(nS(e,...t)),subtract:(...t)=>yf(rS(e,...t)),multiply:(...t)=>yf(m0(e,...t)),divide:(...t)=>yf(iS(e,...t)),negate:()=>yf(aS(e)),toString:()=>e.toString()}),{add:nS,subtract:rS,multiply:m0,divide:iS,negate:aS}),xI={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:l,registerToken:s}=e;n.filter(({extensions:f})=>f.category==="spacing").forEach(f=>{const g=f.path.slice(),v=r(g,t);if(so(f.value)&&f.value==="0rem")return;const y=structuredClone(f);Object.assign(y.extensions,{negative:!0,prop:`-${f.extensions.prop}`,originalPath:g}),y.value=yf.negate(v.ref);const A=y.path[y.path.length-1];A!=null&&(y.path[y.path.length-1]=`-${A}`),y.path&&(y.name=l(y.path)),s(y)})}},AI=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),SI=[xI,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,l=t.filter(({extensions:f})=>f.category==="colors"),s=new Map,u=new Map;l.forEach(f=>{const{colorPalette:g}=f.extensions;g&&(g.keys.forEach(v=>{s.set(r(v),v)}),g.roots.forEach(v=>{const y=r(v),A=u.get(y)||[];if(A.push(f),u.set(y,A),f.extensions.default&&v.length===1){const C=g.keys[0]?.filter(Boolean);if(!C.length)return;const w=v.concat(C);s.set(r(w),[])}}))}),s.forEach(f=>{const g=["colors","colorPalette",...f].filter(Boolean),v=r(g),y=r(g.slice(1));n({name:v,value:v,originalValue:v,path:g,extensions:{condition:"base",originalPath:g,category:"colors",prop:y,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>AI.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:N2(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],EI=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:l,originalPath:s}=e.extensions,u=l?s:e.path;return{cssVar:r(u.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,l=$2(e.value);return l.length&&l.forEach(s=>{const u=r(s.split("."),n);e.value=e.value.replace(`{${u.ref}}`,u)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const f=[...e.path];f.shift(),n=f}if(n.length===0)return{};const r=n.reduce((f,g,v,y)=>{const A=y.slice(0,v+1);return f.push(A),f},[]),l=n[0],s=t.formatTokenName(n),u=e.path.slice(e.path.indexOf(l)+1).reduce((f,g,v,y)=>(f.push(y.slice(v)),f),[]);return u.length===0&&u.push([""]),{colorPalette:{value:s,roots:r,keys:u}}}}],lS=e=>Pi(e)&&Object.prototype.hasOwnProperty.call(e,"value");function CI(e){return e?{breakpoints:gp(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function wI(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:l={}}=e,s=ye=>ye.join("."),u=(ye,Re)=>k2(ye.join("-"),{prefix:Re}),f=[],g=new Map,v=new Map,y=new Map,A=new Map,C=new Map,w=new Map,R=new Map,N=new Map,Y=[];function L(ye,Re){f.push(ye),g.set(ye.name,ye),Re&&N.forEach(Fe=>{Fe.enforce===Re&&k(Fe,ye)})}const X=CI(l),V=zd({...n,breakpoints:X.breakpoints,sizes:{...n.sizes,...X.sizes}});function re(){po(V,(ye,Re)=>{const Fe=Re.includes("DEFAULT");Re=oS(Re);const We=Re[0],Le=s(Re),ct=so(ye)?{value:ye}:ye,Ut={value:ct.value,originalValue:ct.value,name:Le,path:Re,extensions:{condition:"base",originalPath:Re,category:We,prop:s(Re.slice(1))}};Fe&&(Ut.extensions.default=!0),L(Ut)},{stop:lS}),po(r,(ye,Re)=>{const Fe=Re.includes("DEFAULT");Re=sS(oS(Re));const We=Re[0],Le=s(Re),ct=so(ye.value)?{value:{base:ye.value}}:ye,Ut={value:ct.value.base||"",originalValue:ct.value.base||"",name:Le,path:Re,extensions:{originalPath:Re,category:We,conditions:ct.value,condition:"base",prop:s(Re.slice(1))}};Fe&&(Ut.extensions.default=!0),L(Ut)},{stop:lS})}function U(ye){return g.get(ye)}function J(ye){const{condition:Re}=ye.extensions;Re&&(v.has(Re)||v.set(Re,new Set),v.get(Re).add(ye))}function de(ye){const{category:Re,prop:Fe}=ye.extensions;Re&&(R.has(Re)||R.set(Re,new Map),R.get(Re).set(Fe,ye))}function ae(ye){const{condition:Re,negative:Fe,virtual:We,cssVar:Le}=ye.extensions;Fe||We||!Re||!Le||(y.has(Re)||y.set(Re,new Map),y.get(Re).set(Le.var,ye.value))}function ie(ye){const{category:Re,prop:Fe,cssVar:We,negative:Le}=ye.extensions;if(!Re)return;w.has(Re)||w.set(Re,new Map);const ct=Le?ye.extensions.conditions?ye.originalValue:ye.value:We.ref;w.get(Re).set(Fe,ct),C.set([Re,Fe].join("."),ct)}function H(ye){const{colorPalette:Re,virtual:Fe,default:We}=ye.extensions;!Re||Fe||Re.roots.forEach(Le=>{const ct=s(Le);A.has(ct)||A.set(ct,new Map);const Ut=TI([...ye.path],[...Le]),Xn=s(Ut),wt=U(Xn);if(!wt||!wt.extensions.cssVar)return;const{var:nn}=wt.extensions.cssVar;if(A.get(ct).set(nn,ye.extensions.cssVar.ref),We&&Le.length===1){const Yi=s(["colors","colorPalette"]),Mr=U(Yi);if(!Mr)return;const Dn=s(ye.path),rn=U(Dn);if(!rn)return;const xt=Re.keys[0]?.filter(Boolean);if(!xt.length)return;const Cn=s(Le.concat(xt));A.has(Cn)||A.set(Cn,new Map),A.get(Cn).set(Mr.extensions.cssVar.var,rn.extensions.cssVar.ref)}})}let Ae={};function ce(){f.forEach(ye=>{J(ye),de(ye),ae(ye),ie(ye),H(ye)}),Ae=J2(w)}const _e=(ye,Re)=>{if(!ye||typeof ye!="string")return{invalid:!0,value:ye};const[Fe,We]=ye.split("/");if(!Fe||!We)return{invalid:!0,value:Fe};const Le=Re(Fe),ct=U(`opacity.${We}`)?.value;if(!ct&&isNaN(Number(We)))return{invalid:!0,value:Fe};const Ut=ct?Number(ct)*100+"%":`${We}%`,Xn=Le??Fe;return{invalid:!1,color:Xn,value:`color-mix(in srgb, ${Xn} ${Ut}, transparent)`}},$=ml((ye,Re)=>C.get(ye)??Re),ue=ml(ye=>Ae[ye]||null),z=ml(ye=>j2(ye,Re=>{if(!Re)return;if(Re.includes("/")){const We=_e(Re,Le=>$(Le));if(We.invalid)throw new Error("Invalid color mix at "+Re+": "+We.value);return We.value}const Fe=$(Re);return Fe||(bI.test(Re)?K2(Re):Re)})),Q={prefix:t,allTokens:f,tokenMap:g,registerToken:L,getByName:U,formatTokenName:s,formatCssVar:u,flatMap:C,cssVarMap:y,categoryMap:R,colorPaletteMap:A,getVar:$,getCategoryValues:ue,expandReferenceInValue:z};function Ce(...ye){ye.forEach(Re=>{N.set(Re.name,Re)})}function Ee(...ye){Y.push(...ye)}function k(ye,Re){if(Re.extensions.references||av(ye.match)&&!ye.match(Re))return;const We=(Le=>ye.transform(Le,Q))(Re);switch(!0){case ye.type==="extensions":Object.assign(Re.extensions,We);break;case ye.type==="value":Re.value=We;break;default:Re[ye.type]=We;break}}function B(ye){Y.forEach(Re=>{Re.enforce===ye&&Re.transform(Q)})}function ve(ye){N.forEach(Re=>{Re.enforce===ye&&f.forEach(Fe=>{k(Re,Fe)})})}function D(){f.forEach(ye=>{const Re=kI(ye);!Re||Re.length===0||Re.forEach(Fe=>{L(Fe)})})}function xe(ye){return $2(ye).map(Fe=>U(Fe)).filter(Boolean)}function Ve(){f.forEach(ye=>{if(!yI(ye.value))return;const Re=xe(ye.value);ye.extensions.references=Re.reduce((Fe,We)=>(Fe[We.name]=We,Fe),{})})}function De(){f.forEach(ye=>{eS(ye)})}function ht(){B("pre"),ve("pre"),D(),Ve(),De(),B("post"),ve("post"),ce()}return re(),Ce(...EI),Ee(...SI),ht(),Q}function oS(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function sS(e){return e.filter(t=>t!=="base")}function kI(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return po(t,(r,l)=>{const s=sS(l);if(!s.length)return;const u=structuredClone(e);u.value=r,u.extensions.condition=s.join(":"),n.push(u)}),n}function TI(e,t){const n=e.findIndex((r,l)=>t.every((s,u)=>e[l+u]===s));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}hI()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function JU(e){return e}function _I(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function OI(e){const t=_I(e.config),n=e.tokens,r=new Map,l=new Map;function s(ae,ie){t[ae]=ie,u(ae,ie)}const u=(ae,ie)=>{const H=N(ie);H&&(l.set(ae,H),A(ae,ie))},f=()=>{for(const[ae,ie]of Object.entries(t))ie&&u(ae,ie)},g=()=>{for(const[ae,ie]of Object.entries(t)){const{shorthand:H}=ie??{};if(!H)continue;(Array.isArray(H)?H:[H]).forEach(ce=>r.set(ce,ae))}},v=()=>{const ae=J2(n.colorPaletteMap);s("colorPalette",{values:Object.keys(ae),transform:ml(ie=>ae[ie])})},y=new Map,A=(ae,ie)=>{if(!ie)return;const H=N(ie,ce=>`type:Tokens["${ce}"]`);if(typeof H=="object"&&H.type){y.set(ae,new Set([`type:${H.type}`]));return}if(H){const ce=new Set(Object.keys(H));y.set(ae,ce)}const Ae=y.get(ae)??new Set;ie.property&&y.set(ae,Ae.add(`CssProperties["${ie.property}"]`))},C=()=>{for(const[ae,ie]of Object.entries(t))ie&&A(ae,ie)},w=(ae,ie)=>{const H=y.get(ae)??new Set;y.set(ae,new Set([...H,...ie]))},R=()=>{const ae=new Map;for(const[ie,H]of y.entries()){if(H.size===0){ae.set(ie,["string"]);continue}const Ae=Array.from(H).map(ce=>ce.startsWith("CssProperties")?ce:ce.startsWith("type:")?ce.replace("type:",""):JSON.stringify(ce));ae.set(ie,Ae)}return ae},N=(ae,ie)=>{const{values:H}=ae,Ae=ce=>{const _e=ie?.(ce);return _e?{[_e]:_e}:void 0};return so(H)?Ae?.(H)??n.getCategoryValues(H)??{}:Array.isArray(H)?H.reduce((ce,_e)=>(ce[_e]=_e,ce),{}):av(H)?H(ie?Ae:n.getCategoryValues):H},Y=ml((ae,ie)=>({[ae]:ae.startsWith("--")?n.getVar(ie,ie):ie})),L=Object.assign(n.getVar,{raw:ae=>n.getByName(ae)}),X=ml((ae,ie)=>{const H=U(ae);so(ie)&&!ie.includes("_EMO_")&&(ie=n.expandReferenceInValue(ie));const Ae=t[H];if(!Ae)return Y(H,ie);const ce=l.get(H)?.[ie];if(!Ae.transform)return Y(ae,ce??ie);const _e=$=>cF($,L);return Ae.transform(ce??ie,{raw:ie,token:L,utils:{colorMix:_e}})});function V(){g(),v(),f(),C()}V();const re=r.size>0,U=ml(ae=>r.get(ae)??ae);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:re,transform:X,shorthands:r,resolveShorthand:U,register:s,getTypes:R,addPropertyType:w}}const Mi={};function uS(...e){const t=C2(...e),{theme:n={},utilities:r={},globalCss:l={},cssVarsRoot:s=":where(:root, :host)",cssVarsPrefix:u="chakra",preflight:f}=t,g=aI(t),v=wI({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:u}),y=LF(n.breakpoints??Mi),A=BF({conditions:t.conditions??Mi,breakpoints:y}),C=OI({config:r,tokens:v});function w(){const{textStyles:Ee,layerStyles:k,animationStyles:B}=n,ve=zd({textStyle:Ee,layerStyle:k,animationStyle:B});for(const[D,xe]of Object.entries(ve)){const Ve=O2(xe??Mi,cS);C.register(D,{values:Object.keys(Ve),transform(De){return V(Ve[De])}})}}w(),C.addPropertyType("animationName",Object.keys(n.keyframes??Mi));const R=new Set(["css",...C.keys(),...A.keys()]),N=ml(Ee=>R.has(Ee)||PF(Ee)),Y=Ee=>Array.isArray(Ee)?Ee.reduce((k,B,ve)=>{const D=A.breakpoints[ve];return B!=null&&(k[D]=B),k},{}):Ee,L=lI({utility:C,normalize:Y}),X=sI({conditions:A,isValidProperty:N}),V=G2({transform:C.transform,conditions:A,normalize:L}),re=nI({css:V,conditions:A,normalize:L,layers:g}),U=dI({cva:re});function J(){const Ee={};for(const[k,B]of v.cssVarMap.entries()){const ve=Object.fromEntries(B);if(Object.keys(ve).length===0)continue;const D=k==="base"?s:A.resolve(k),xe=D.startsWith("@"),Ve=V(X({[D]:xe?{[s]:ve}:ve}));pf(Ee,Ve)}return g.wrap("tokens",Ee)}function de(){const Ee=Object.fromEntries(Object.entries(n.keyframes??Mi).map(([B,ve])=>[`@keyframes ${B}`,ve])),k=Object.assign({},Ee,V(X(l)));return g.wrap("base",k)}function ae(Ee){return ef(Ee,N)}function ie(){const Ee=oI({preflight:f});return g.wrap("reset",Ee)}const H=RI(v),Ae=(Ee,k)=>H.get(Ee)?.value||k;Ae.var=(Ee,k)=>H.get(Ee)?.variable||k;function ce(Ee,k){return n.recipes?.[Ee]??k}function _e(Ee,k){return n.slotRecipes?.[Ee]??k}function $(Ee){return Object.hasOwnProperty.call(n.recipes??Mi,Ee)}function ue(Ee){return Object.hasOwnProperty.call(n.slotRecipes??Mi,Ee)}function z(Ee){return $(Ee)||ue(Ee)}const Q=[ie(),de(),J()],Ce={layerStyles:v0(n.layerStyles??Mi),textStyles:v0(n.textStyles??Mi),animationStyles:v0(n.animationStyles??Mi),tokens:fS(v,Object.keys(n.tokens??Mi),(Ee,k)=>!Ee.extensions.conditions&&!k.includes("colorPalette")),semanticTokens:fS(v,Object.keys(n.semanticTokens??Mi),Ee=>!!Ee.extensions.conditions),keyframes:dS(n.keyframes??Mi),breakpoints:dS(n.breakpoints??Mi)};return{$$chakra:!0,_config:t,_global:Q,breakpoints:y,tokens:v,conditions:A,utility:C,token:Ae,properties:R,layers:g,isValidProperty:N,splitCssProps:ae,normalizeValue:Y,getTokenCss:J,getGlobalCss:de,getPreflightCss:ie,css:V,cva:re,sva:U,getRecipe:ce,getSlotRecipe:_e,hasRecipe:z,isRecipe:$,isSlotRecipe:ue,query:Ce}}function RI(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:l,conditions:s}=n.extensions,u=s||l?r.ref:n.value;t.set(n.name,{value:u,variable:r.ref})}),t}const cS=e=>Pi(e)&&"value"in e,v0=e=>({list(){return Object.keys(O2(e,cS))},search(t){return this.list().filter(n=>n.includes(t))}}),fS=(e,t,n)=>({categoryKeys:t,list(r){return Array.from(e.categoryMap.get(r)?.entries()??[]).reduce((l,[s,u])=>(n(u,s)&&l.push(s),l),[])},search(r,l){return this.list(r).filter(s=>s.includes(l))}}),dS=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),FI={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},b0="var(--chakra-empty,/*!*/ /*!*/)",II=gF({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":b0,"--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}`,b0])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,b0])),"--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"}}),NI=vF({"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:{}}}),PI=mF({"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"}}}),y0=pr({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),zI=pr({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Pr=pr({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"}}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:DI,defaultVariants:MI}=y0,WI=pr({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:DI,defaultVariants:MI}),hS=pr({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"}}),LI=pr({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"}}}}),YI=pr({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"}}),VI=pr({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"}}),ar=pr({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"}}),XI=pr({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:ar.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"}}),BI=pr({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"}}),HI=pr({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"}}),UI=pr({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:{}}}}),zr=pr({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"}}},defaultVariants:{variant:"solid",size:"md"}}),GI=pr({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"}}),ZI=pr({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}}),QI=pr({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"}}}),KI=pr({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"}}),jI=pr({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"}}),JI={badge:y0,button:zI,code:WI,container:LI,heading:YI,input:ar,inputAddon:XI,kbd:BI,link:HI,mark:UI,separator:GI,skeleton:ZI,skipNavLink:QI,spinner:KI,textarea:jI,icon:VI,checkmark:Pr,radiomark:zr,colorSwatch:hS},qI=c0.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),$I=c0.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),e6=c0.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}"}}}),t6=iA.extendWith("itemBody"),n6=nt("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),r6=nt("alert").parts("title","description","root","indicator","content"),i6=nt("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),a6=nt("blockquote").parts("root","icon","content","caption"),l6=nt("card").parts("root","header","body","footer","title","description"),o6=nt("checkbox-card",["root","control","label","description","addon","indicator","content"]),s6=nt("data-list").parts("root","item","itemLabel","itemValue"),u6=Gv.extendWith("header","body","footer","backdrop"),c6=Gv.extendWith("header","body","footer","backdrop"),f6=FA.extendWith("textarea"),d6=nt("empty-state",["root","content","indicator","title","description"]),h6=IA.extendWith("requiredIndicator"),g6=PA.extendWith("content"),p6=zA.extendWith("itemContent","dropzoneContent","fileText"),m6=nt("list").parts("root","item","indicator"),v6=GA.extendWith("itemCommand"),b6=nt("select").parts("root","field","indicator"),y6=u2.extendWith("header","body","footer"),gS=i0.extendWith("itemAddon","itemIndicator"),x6=gS.extendWith("itemContent","itemDescription"),A6=f2.extendWith("itemIndicator"),S6=g2.extendWith("indicatorGroup"),E6=EA.extendWith("indicatorGroup","empty"),C6=b2.extendWith("markerIndicator"),w6=nt("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),k6=nt("status").parts("root","indicator"),T6=nt("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),_6=y2.extendWith("indicator"),O6=nt("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),R6=nt("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),F6=nt("tabs").parts("root","trigger","list","content","contentGroup","indicator"),I6=nt("tag").parts("root","label","closeTrigger","startElement","endElement"),N6=nt("timeline").parts("root","item","content","separator","indicator","connector","title","description"),P6=a7.extendWith("channelText"),z6=nt("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);hA.extendWith("valueText");const D6=it({className:"chakra-accordion",slots:t6.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"}}),M6=it({className:"chakra-action-bar",slots:n6.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"}}}),W6=it({slots:r6.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),L6=it({slots:oA.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),Y6=it({className:"chakra-blockquote",slots:a6.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"}}),V6=it({className:"chakra-breadcrumb",slots:i6.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"}}),X6=it({className:"chakra-card",slots:l6.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"}}),B6=it({slots:r7.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Pr.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Pr.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Pr.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Pr.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Pr.variants?.size?.lg}},variant:{outline:{control:Pr.variants?.variant?.outline},solid:{control:Pr.variants?.variant?.solid},subtle:{control:Pr.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),H6=it({slots:o6.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:Pr.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:Pr.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Pr.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Pr.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:Pr.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Pr.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:Pr.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Pr.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"}}),U6=it({slots:z6.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),G6=it({slots:yx.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),Z6=it({className:"colorPicker",slots:P6.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:{...hS.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:{...ar.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:ar.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:ar.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:ar.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:ar.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:ar.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:ar.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:ar.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:ar.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:ar.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),Q6=it({className:"chakra-combobox",slots:E6.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),K6=it({slots:s6.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"}}),j6=it({slots:u6.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"}}),J6=it({slots:c6.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"}}),pS=mf({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),q6=it({slots:f6.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...pS,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...pS,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"}}),$6=it({slots:d6.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"}}),eN=it({className:"chakra-field",slots:h6.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"}}),tN=it({className:"fieldset",slots:g6.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"}}),nN=it({className:"chakra-file-upload",slots:p6.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:{}}),rN=it({className:"chakra-hover-card",slots:VA.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),iN=it({className:"chakra-list",slots:m6.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"}}),aN=it({className:"chakra-menu",slots:v6.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"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),yp=it({className:"chakra-select",slots:S6.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"}}),lN=it({className:"chakra-native-select",slots:b6.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:yp.variants?.variant.outline.trigger},subtle:{field:yp.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:yp.defaultVariants});function x0(e,t){const n={};for(const r in e){const l=t(r,e[r]);n[l[0]]=l[1]}return n}const mS=mf({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"}}),oN=it({className:"chakra-number-input",slots:r2.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...ar.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:{...mS,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...mS,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:ar.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:ar.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:ar.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:ar.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:x0(ar.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:vS,defaultVariants:sN}=ar,uN=it({className:"chakra-pin-input",slots:s2.keys(),base:{input:{...ar.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:x0(vS.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:x0(vS.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:sN}),cN=it({className:"chakra-popover",slots:y6.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),fN=it({slots:r0.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"}}),dN=it({className:"chakra-progress-circle",slots:r0.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"}}),hN=it({slots:c2.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"}}),gN=it({className:"chakra-radio-card",slots:x6.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:zr.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:zr.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:zr.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:zr.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:zr.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:zr.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:zr.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:zr.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"}}),pN=it({className:"chakra-radio-group",slots:gS.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:zr.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:zr.variants?.variant?.outline},subtle:{itemControl:zr.variants?.variant?.subtle},solid:{itemControl:zr.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:zr.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:zr.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:zr.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:zr.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),mN=it({className:"chakra-rating-group",slots:A6.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"}}),vN=it({className:"chakra-scroll-area",slots:d2.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"}}),bN=it({className:"chakra-segment-group",slots:h2.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),yN=it({className:"chakra-slider",slots:C6.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"}}),xN=it({className:"chakra-stat",slots:w6.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"}}),AN=it({className:"chakra-status",slots:k6.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"}}),SN=it({className:"chakra-steps",slots:T6.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"}}),EN=it({slots:_6.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"}}),CN=it({className:"chakra-table",slots:O6.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),wN=it({slots:F6.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),xp=y0.variants?.variant,kN=it({slots:I6.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:xp?.subtle},solid:{root:xp?.solid},outline:{root:xp?.outline},surface:{root:xp?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),TN=it({slots:N6.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),_N=it({slots:R6.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"}}}}),ON=it({slots:x2.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),bS=mf({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"}}),yS=mf({flex:"1"}),xS=mf({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),AS=mf({_selected:{layerStyle:"fill.solid"}}),RN=it({slots:HA.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:bS,item:bS,itemText:yS,branchText:yS,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:xS,item:xS},solid:{branchControl:AS,item:AS}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),FN={accordion:D6,actionBar:M6,alert:W6,avatar:L6,blockquote:Y6,breadcrumb:V6,card:X6,checkbox:B6,checkboxCard:H6,codeBlock:U6,collapsible:G6,dataList:K6,dialog:j6,drawer:J6,editable:q6,emptyState:$6,field:eN,fieldset:tN,fileUpload:nN,hoverCard:rN,list:iN,menu:aN,nativeSelect:lN,numberInput:oN,pinInput:uN,popover:cN,progress:fN,progressCircle:dN,radioCard:gN,radioGroup:pN,ratingGroup:mN,scrollArea:vN,segmentGroup:bN,select:yp,combobox:Q6,slider:yN,stat:xN,steps:SN,switch:EN,table:CN,tabs:wN,tag:kN,toast:_N,tooltip:ON,status:AN,timeline:TN,colorPicker:Z6,qrCode:hN,treeView:RN},IN=pF({"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"}}}),NN=ir.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"}}),PN=ir.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"}}),zN=ir.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),DN=ir.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),MN=ir.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"}}}),WN=ir.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"}}),LN=ir.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),YN=ir.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)"}}),VN=ir.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"}}),XN=ir.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"}}),SS='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',BN=ir.fonts({heading:{value:`Inter, ${SS}`},body:{value:`Inter, ${SS}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),HN=hF({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),UN=ir.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),GN=ir.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),ZN=ir.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"}}),ES=ir.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"}}),QN=ir.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"}}),KN=ir.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"}}),jN=ir.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%"}}),JN=ir.sizes({...QN,...ES,...jN,...KN}),qN=ir.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}}),$N=f0({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:II,theme:{breakpoints:FI,keyframes:HN,tokens:{aspectRatios:PN,animations:NN,blurs:zN,borders:DN,colors:MN,durations:LN,easings:YN,fonts:BN,fontSizes:VN,fontWeights:XN,letterSpacings:UN,lineHeights:GN,radii:ZN,spacing:ES,sizes:JN,zIndex:qN,cursor:WN},semanticTokens:{colors:qI,shadows:e6,radii:$I},recipes:JI,slotRecipes:FN,textStyles:IN,layerStyles:NI,animationStyles:PI}}),A0=C2(wF,$N);uS(A0);const CS=Rs("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"}});CS.displayName="AbsoluteCenter";const eP=e=>e?"":void 0,{withContext:tP}=tf({key:"badge"}),nP=tP("span"),{withContext:rP}=tf({key:"spinner"}),iP=rP("span"),aP=Te.forwardRef(function(t,n){const{spinner:r=ne.jsx(iP,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:l="start",children:s,text:u,visible:f=!0,...g}=t;return f?u?ne.jsxs(Xg,{ref:n,display:"contents",...g,children:[l==="start"&&r,u,l==="end"&&r]}):r?ne.jsxs(Xg,{ref:n,display:"contents",...g,children:[ne.jsx(CS,{display:"inline-flex",children:r}),ne.jsx(Xg,{visibility:"hidden",display:"contents",children:s})]}):ne.jsx(Xg,{ref:n,display:"contents",...g,children:s}):s}),{useRecipeResult:lP,usePropsContext:oP}=tf({key:"button"}),ju=Te.forwardRef(function(t,n){const r=oP(),l=Te.useMemo(()=>iv(r,t),[r,t]),s=lP(l),{loading:u,loadingText:f,children:g,spinner:v,spinnerPlacement:y,...A}=s.props;return ne.jsx(Rs.button,{type:"button",ref:n,...A,"data-loading":eP(u),disabled:u||A.disabled,className:oo(s.className,l.className),css:[s.styles,l.css],children:!l.asChild&&u?ne.jsx(aP,{spinner:v,text:f,spinnerPlacement:y,children:g}):g})}),eh=Te.forwardRef(function(t,n){return ne.jsx(ju,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})});function sP(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":gp(n,l=>r[l])}}function uP(e){return Te.Children.toArray(e).filter(t=>Te.isValidElement(t))}const wS=Te.forwardRef(function(t,n){const{direction:r="column",align:l,justify:s,gap:u="0.5rem",wrap:f,children:g,separator:v,className:y,...A}=t,C=Te.useMemo(()=>sP({gap:u,direction:r}),[u,r]),w=Te.useMemo(()=>Te.isValidElement(v)?uP(g).map((R,N,Y)=>{const L=typeof R.key<"u"?R.key:N,X=v,V=Te.cloneElement(X,{css:[C,X.props.css]});return ne.jsxs(Te.Fragment,{children:[R,N===Y.length-1?null:V]},L)}):g,[g,v,C]);return ne.jsx(Rs.div,{ref:n,display:"flex",alignItems:l,justifyContent:s,flexDirection:r,flexWrap:f,gap:v?void 0:u,className:oo("chakra-stack",y),...A,children:w})}),mo=Te.forwardRef(function(t,n){const{align:r,fit:l="cover",...s}=t;return ne.jsx(Rs.img,{ref:n,objectFit:l,objectPosition:r,className:oo("chakra-image",t.className),...s})}),{withContext:cP}=tf({key:"link"}),kS=cP("a"),fP=Te.forwardRef(function(t,n){const{columns:r,minChildWidth:l,...s}=t,u=Rg(),f=l?hP(l,u):gP(r);return ne.jsx(z_,{ref:n,templateColumns:f,...s})});function dP(e){return typeof e=="number"?`${e}px`:e}function hP(e,t){return gp(e,n=>{const r=t.tokens.getVar(`sizes.${n}`,dP(n));return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function gP(e){return gp(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const Xa=Te.forwardRef(function(t,n){return ne.jsx(wS,{align:"center",...t,direction:"row",ref:n})}),ri=Te.forwardRef(function(t,n){return ne.jsx(wS,{align:"center",...t,direction:"column",ref:n})}),{withContext:pP}=tf({key:"textarea"}),TS=pP(NA),St=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,dn=globalThis,Ju="10.5.0";function Ap(){return Sp(dn),dn}function Sp(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ju,t[Ju]=t[Ju]||{}}function th(e,t,n=dn){const r=n.__SENTRY__=n.__SENTRY__||{},l=r[Ju]=r[Ju]||{};return l[e]||(l[e]=t())}const mP=["debug","info","warn","error","log","assert","trace"],vP="Sentry Logger ",Ep={};function Cp(e){if(!("console"in dn))return e();const t=dn.console,n={},r=Object.keys(Ep);r.forEach(l=>{const s=Ep[l];n[l]=t[l],t[l]=s});try{return e()}finally{r.forEach(l=>{t[l]=n[l]})}}function bP(){E0().enabled=!0}function yP(){E0().enabled=!1}function _S(){return E0().enabled}function xP(...e){S0("log",...e)}function AP(...e){S0("warn",...e)}function SP(...e){S0("error",...e)}function S0(e,...t){St&&_S()&&Cp(()=>{dn.console[e](`${vP}[${e}]:`,...t)})}function E0(){return St?th("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const ft={enable:bP,disable:yP,isEnabled:_S,log:xP,warn:AP,error:SP},OS=50,qu="?",RS=/\(error: (.*)\)/,FS=/captureMessage|captureException/;function EP(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,l=0)=>{const s=[],u=n.split(`
|
64
|
+
)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),H4=z2("width"),U4=z2("height"),D2=e=>({isMin:X2(e.minMax,e.maxMin,e.min),isMax:X2(e.maxMin,e.minMax,e.max)}),{isMin:g0,isMax:M2}=D2(H4),{isMin:p0,isMax:W2}=D2(U4),L2=/print/i,Y2=/^print$/i,G4=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Z4=/(\d)/,$d=Number.MAX_VALUE,Q4={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function V2(e){const t=G4.exec(e)||(g0(e)||p0(e)?Z4.exec(e):null);if(!t)return $d;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(Q4[r]||1)}function X2(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function K4(e,t){const n=L2.test(e),r=Y2.test(e),l=L2.test(t),s=Y2.test(t);return n&&l?!r&&s?1:r&&!s?-1:e.localeCompare(t):n?1:l?-1:null}const j4=ml((e,t)=>{const n=K4(e,t);if(n!==null)return n;const r=g0(e)||p0(e),l=M2(e)||W2(e),s=g0(t)||p0(t),u=M2(t)||W2(t);if(r&&u)return-1;if(l&&s)return 1;const f=V2(e),g=V2(t);return f===$d&&g===$d?e.localeCompare(t):f===$d?1:g===$d?-1:f!==g?f>g?l?-1:1:l?1:-1:e.localeCompare(t)});function B2(e){return e.sort(([t],[n])=>j4(t,n))}function H2(e){const t=[],n=[],r={};for(const[u,f]of Object.entries(e))u.startsWith("@media")?t.push([u,f]):u.startsWith("@container")?n.push([u,f]):Pi(f)?r[u]=H2(f):r[u]=f;const l=B2(t),s=B2(n);return{...r,...Object.fromEntries(l),...Object.fromEntries(s)}}const U2=/\s*!(important)?/i,J4=e=>so(e)?U2.test(e):!1,q4=e=>so(e)?e.replace(U2,"").trim():e;function G2(e){const{transform:t,conditions:n,normalize:r}=e,l=tI(e);return ml(function(...u){const f=l(...u),g=r(f),v=Object.create(null);return po(g,(y,A)=>{const C=J4(y);if(y==null)return;const[w,...R]=n.sort(A).map(n.resolve);C&&(y=q4(y));let N=t(w,y)??Object.create(null);N=po(N,Y=>so(Y)&&C?`${Y} !important`:Y,{getKey:Y=>n.expandAtRule(Y)}),$4(v,R.flat(),N)}),H2(v)})}function $4(e,t,n){let r=e;for(const l of t)l&&(r[l]||(r[l]=Object.create(null)),r=r[l]);pf(r,n)}function eI(...e){return e.filter(t=>Pi(t)&&Object.keys(zd(t)).length>0)}function tI(e){function t(n){const r=eI(...n);return r.length===1?r:r.map(l=>e.normalize(l))}return ml(function(...r){return pf({},...t(r))})}const Z2=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function nI(e){const{css:t,conditions:n,normalize:r,layers:l}=e;function s(f={}){const{base:g,variants:v,defaultVariants:y,compoundVariants:A}=Z2(f),C=G2({conditions:n,normalize:r,transform(X,V){return v[X]?.[V]}}),w=(X={})=>{const V=r({...y,...zd(X)});let re={...g};pf(re,C(V));const U=u(A,V);return l.wrap("recipes",t(re,U))},R=Object.keys(v),N=X=>{const V=E2(X,["recipe"]),[re,U]=ef(V,R);return R.includes("colorPalette")||(re.colorPalette=X.colorPalette||y.colorPalette),R.includes("orientation")&&(U.orientation=X.orientation),[re,U]},Y=Object.fromEntries(Object.entries(v).map(([X,V])=>[X,Object.keys(V)]));return Object.assign(X=>t(w(X)),{className:f.className,__cva__:!0,variantMap:Y,variantKeys:R,raw:w,config:f,splitVariantProps:N,merge(X){return s(rI(e)(this,X))}})}function u(f,g){let v={};return f.forEach(y=>{Object.entries(y).every(([C,w])=>C==="css"?!0:(Array.isArray(w)?w:[w]).some(N=>g[C]===N))&&(v=t(v,y.css))}),v}return s}function rI(e){const{css:t}=e;return function(r,l){const s=Z2(l.config),u=N1(r.variantKeys,Object.keys(l.variants)),f=t(r.base,s.base),g=Object.fromEntries(u.map(C=>[C,t(r.config.variants[C],s.variants[C])])),v=pf(r.config.defaultVariants,s.defaultVariants),y=[...r.compoundVariants,...s.compoundVariants];return{className:oo(r.className,l.className),base:f,variants:g,defaultVariants:v,compoundVariants:y}}}const iI={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Q2={reset:0,base:1,tokens:2,recipes:3};function aI(e){const t=e.layers??iI,r=Object.values(t).sort((l,s)=>Q2[l]-Q2[s]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(l,s){return e.disableLayers?s:{[`@layer ${t[l]}`]:s}}}}function lI(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:l}=t;return function(s){return po(s,n,{stop:u=>Array.isArray(u),getKey:r?l:void 0})}}function oI(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Pi(t)?t:{};let l="";n&&r==="parent"?l=`${n} `:n&&r==="element"&&(l=`&${n}`);const s={"*":{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"}},u={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const f=Object.entries(s).reduce((g,[v,y])=>(g[v]={[l]:y},g),{});Object.assign(u,f)}else l?u[l]=s:Object.assign(u,s);return u}function sI(e){const{conditions:t,isValidProperty:n}=e;return function(l){return po(l,s=>s,{getKey:(s,u)=>Pi(u)&&!t.has(s)&&!n(s)?uI(s).map(f=>"&"+f).join(", "):s})}}function uI(e){const t=[];let n=0,r="",l=!1;for(let s=0;s<e.length;s++){const u=e[s];if(u==="\\"&&!l){l=!0,r+=u;continue}if(l){l=!1,r+=u;continue}u==="("?n++:u===")"&&n--,u===","&&n===0?(t.push(r.trim()),r=""):r+=u}return r&&t.push(r.trim()),t}const cI=(e={})=>{const t=l=>({base:e.base?.[l]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?fI(e.compoundVariants,l):[]}),r=(e.slots??[]).map(l=>[l,t(l)]);for(const[l,s]of Object.entries(e.variants??{}))for(const[u,f]of Object.entries(s))r.forEach(([g,v])=>{var y;(y=v.variants)[l]??(y[l]={}),v.variants[l][u]=f[g]??{}});return Object.fromEntries(r)},fI=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function dI(e){const{cva:t}=e;return function(r={}){const l=Object.entries(cI(r)).map(([A,C])=>[A,t(C)]);function s(A){const C=l.map(([w,R])=>[w,R(A)]);return Object.fromEntries(C)}const u=r.variants??{},f=Object.keys(u);function g(A){const C=E2(A,["recipe"]),[w,R]=ef(C,f);return f.includes("colorPalette")||(w.colorPalette=A.colorPalette||r.defaultVariants?.colorPalette),f.includes("orientation")&&(R.orientation=A.orientation),[w,R]}const v=Object.fromEntries(Object.entries(u).map(([A,C])=>[A,Object.keys(C)]));let y={};return r.className&&(y=Object.fromEntries(r.slots.map(A=>[A,`${r.className}__${A}`]))),Object.assign(s,{variantMap:v,variantKeys:f,splitVariantProps:g,classNameMap:y})}}const hI=()=>e=>Array.from(new Set(e)),gI=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,pI=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},K2=e=>(e+"").replace(gI,pI),j2=(e,t)=>{let n="",r=0,l="char",s="",u="";const f=[];for(;r<e.length;){const g=e[r];if(g==="{"){const y=e.indexOf("}",r);if(y===-1)break;const A=e.slice(r+1,y),C=t(A);n+=C??A,r=y+1;continue}if(l==="token"&&g===","){e[r]===""&&r++,l="fallback",f.push(l);const y=t(s);y?.endsWith(")")&&(n+=y.slice(0,-1)),s="",u="";continue}if(l==="fallback"&&u+g===", var("){const C=mI(e.slice(r+1))+r+1,w=e.slice(r+1,C);if(C===-1)break;n+=", var("+w+")",r=C+1,l=f.pop()??l,u="";continue}if(l==="token"||l==="fallback"){if(r++,g===")"){l=f.pop()??l??"char",u+=g;const y=s&&(t(s)??K2(s));if(u){if(u=u.slice(1).trim(),!u.startsWith("token(")&&u.endsWith(")")&&(u=u.slice(0,-1)),u.includes("token(")){const C=j2(u,t);C&&(u=C.slice(0,-1))}else if(u){const C=t(u);C&&(u=C)}}const A=n.at(-1);u?A?.trim()?n+=y.slice(0,-1)+(", "+u+")"):n+=u:n+=y||")",s="",u="",l="char";continue}l==="token"&&(s+=g),l==="fallback"&&(u+=g);continue}const v=e.indexOf("token(",r);if(v!==-1){const y=v+6;n+=e.slice(r,v),r=y,l="token",f.push(l);continue}n+=g,r++}return n},mI=e=>{let t=0;const n=["("];for(;t<e.length;){const r=e[t];if(r==="(")n.push(r);else if(r===")"&&(n.pop(),n.length===0))return t;t++}return t};function J2(e){const t={};return e.forEach((n,r)=>{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const q2=/({([^}]*)})/g,vI=/[{}]/g,bI=/\w+\.\w+/,$2=e=>{if(!so(e))return[];const t=e.match(q2);return t?t.map(n=>n.replace(vI,"")).map(n=>n.trim()):[]},yI=e=>q2.test(e);function eS(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((n,r)=>{const l=t[r];if(l.extensions.conditions)return n;const s=eS(l);return n.replace(`{${r}}`,s)},e.value),delete e.extensions.references,e.value}function tS(e){return Pi(e)&&e.reference?e.reference:String(e)}const bp=(e,...t)=>t.map(tS).join(` ${e} `).replace(/calc/g,""),nS=(...e)=>`calc(${bp("+",...e)})`,rS=(...e)=>`calc(${bp("-",...e)})`,m0=(...e)=>`calc(${bp("*",...e)})`,iS=(...e)=>`calc(${bp("/",...e)})`,aS=e=>{const t=tS(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:m0(t,-1)},yf=Object.assign(e=>({add:(...t)=>yf(nS(e,...t)),subtract:(...t)=>yf(rS(e,...t)),multiply:(...t)=>yf(m0(e,...t)),divide:(...t)=>yf(iS(e,...t)),negate:()=>yf(aS(e)),toString:()=>e.toString()}),{add:nS,subtract:rS,multiply:m0,divide:iS,negate:aS}),xI={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:l,registerToken:s}=e;n.filter(({extensions:f})=>f.category==="spacing").forEach(f=>{const g=f.path.slice(),v=r(g,t);if(so(f.value)&&f.value==="0rem")return;const y=structuredClone(f);Object.assign(y.extensions,{negative:!0,prop:`-${f.extensions.prop}`,originalPath:g}),y.value=yf.negate(v.ref);const A=y.path[y.path.length-1];A!=null&&(y.path[y.path.length-1]=`-${A}`),y.path&&(y.name=l(y.path)),s(y)})}},AI=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),SI=[xI,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,l=t.filter(({extensions:f})=>f.category==="colors"),s=new Map,u=new Map;l.forEach(f=>{const{colorPalette:g}=f.extensions;g&&(g.keys.forEach(v=>{s.set(r(v),v)}),g.roots.forEach(v=>{const y=r(v),A=u.get(y)||[];if(A.push(f),u.set(y,A),f.extensions.default&&v.length===1){const C=g.keys[0]?.filter(Boolean);if(!C.length)return;const w=v.concat(C);s.set(r(w),[])}}))}),s.forEach(f=>{const g=["colors","colorPalette",...f].filter(Boolean),v=r(g),y=r(g.slice(1));n({name:v,value:v,originalValue:v,path:g,extensions:{condition:"base",originalPath:g,category:"colors",prop:y,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>AI.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:N2(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],EI=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:l,originalPath:s}=e.extensions,u=l?s:e.path;return{cssVar:r(u.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,l=$2(e.value);return l.length&&l.forEach(s=>{const u=r(s.split("."),n);e.value=e.value.replace(`{${u.ref}}`,u)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const f=[...e.path];f.shift(),n=f}if(n.length===0)return{};const r=n.reduce((f,g,v,y)=>{const A=y.slice(0,v+1);return f.push(A),f},[]),l=n[0],s=t.formatTokenName(n),u=e.path.slice(e.path.indexOf(l)+1).reduce((f,g,v,y)=>(f.push(y.slice(v)),f),[]);return u.length===0&&u.push([""]),{colorPalette:{value:s,roots:r,keys:u}}}}],lS=e=>Pi(e)&&Object.prototype.hasOwnProperty.call(e,"value");function CI(e){return e?{breakpoints:gp(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function wI(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:l={}}=e,s=ye=>ye.join("."),u=(ye,Re)=>k2(ye.join("-"),{prefix:Re}),f=[],g=new Map,v=new Map,y=new Map,A=new Map,C=new Map,w=new Map,R=new Map,N=new Map,Y=[];function L(ye,Re){f.push(ye),g.set(ye.name,ye),Re&&N.forEach(Fe=>{Fe.enforce===Re&&k(Fe,ye)})}const X=CI(l),V=zd({...n,breakpoints:X.breakpoints,sizes:{...n.sizes,...X.sizes}});function re(){po(V,(ye,Re)=>{const Fe=Re.includes("DEFAULT");Re=oS(Re);const We=Re[0],Le=s(Re),ct=so(ye)?{value:ye}:ye,Ut={value:ct.value,originalValue:ct.value,name:Le,path:Re,extensions:{condition:"base",originalPath:Re,category:We,prop:s(Re.slice(1))}};Fe&&(Ut.extensions.default=!0),L(Ut)},{stop:lS}),po(r,(ye,Re)=>{const Fe=Re.includes("DEFAULT");Re=sS(oS(Re));const We=Re[0],Le=s(Re),ct=so(ye.value)?{value:{base:ye.value}}:ye,Ut={value:ct.value.base||"",originalValue:ct.value.base||"",name:Le,path:Re,extensions:{originalPath:Re,category:We,conditions:ct.value,condition:"base",prop:s(Re.slice(1))}};Fe&&(Ut.extensions.default=!0),L(Ut)},{stop:lS})}function U(ye){return g.get(ye)}function J(ye){const{condition:Re}=ye.extensions;Re&&(v.has(Re)||v.set(Re,new Set),v.get(Re).add(ye))}function de(ye){const{category:Re,prop:Fe}=ye.extensions;Re&&(R.has(Re)||R.set(Re,new Map),R.get(Re).set(Fe,ye))}function ae(ye){const{condition:Re,negative:Fe,virtual:We,cssVar:Le}=ye.extensions;Fe||We||!Re||!Le||(y.has(Re)||y.set(Re,new Map),y.get(Re).set(Le.var,ye.value))}function ie(ye){const{category:Re,prop:Fe,cssVar:We,negative:Le}=ye.extensions;if(!Re)return;w.has(Re)||w.set(Re,new Map);const ct=Le?ye.extensions.conditions?ye.originalValue:ye.value:We.ref;w.get(Re).set(Fe,ct),C.set([Re,Fe].join("."),ct)}function H(ye){const{colorPalette:Re,virtual:Fe,default:We}=ye.extensions;!Re||Fe||Re.roots.forEach(Le=>{const ct=s(Le);A.has(ct)||A.set(ct,new Map);const Ut=TI([...ye.path],[...Le]),Xn=s(Ut),wt=U(Xn);if(!wt||!wt.extensions.cssVar)return;const{var:nn}=wt.extensions.cssVar;if(A.get(ct).set(nn,ye.extensions.cssVar.ref),We&&Le.length===1){const Yi=s(["colors","colorPalette"]),Mr=U(Yi);if(!Mr)return;const Dn=s(ye.path),rn=U(Dn);if(!rn)return;const xt=Re.keys[0]?.filter(Boolean);if(!xt.length)return;const Cn=s(Le.concat(xt));A.has(Cn)||A.set(Cn,new Map),A.get(Cn).set(Mr.extensions.cssVar.var,rn.extensions.cssVar.ref)}})}let Ae={};function ce(){f.forEach(ye=>{J(ye),de(ye),ae(ye),ie(ye),H(ye)}),Ae=J2(w)}const _e=(ye,Re)=>{if(!ye||typeof ye!="string")return{invalid:!0,value:ye};const[Fe,We]=ye.split("/");if(!Fe||!We)return{invalid:!0,value:Fe};const Le=Re(Fe),ct=U(`opacity.${We}`)?.value;if(!ct&&isNaN(Number(We)))return{invalid:!0,value:Fe};const Ut=ct?Number(ct)*100+"%":`${We}%`,Xn=Le??Fe;return{invalid:!1,color:Xn,value:`color-mix(in srgb, ${Xn} ${Ut}, transparent)`}},$=ml((ye,Re)=>C.get(ye)??Re),ue=ml(ye=>Ae[ye]||null),z=ml(ye=>j2(ye,Re=>{if(!Re)return;if(Re.includes("/")){const We=_e(Re,Le=>$(Le));if(We.invalid)throw new Error("Invalid color mix at "+Re+": "+We.value);return We.value}const Fe=$(Re);return Fe||(bI.test(Re)?K2(Re):Re)})),Q={prefix:t,allTokens:f,tokenMap:g,registerToken:L,getByName:U,formatTokenName:s,formatCssVar:u,flatMap:C,cssVarMap:y,categoryMap:R,colorPaletteMap:A,getVar:$,getCategoryValues:ue,expandReferenceInValue:z};function Ce(...ye){ye.forEach(Re=>{N.set(Re.name,Re)})}function Ee(...ye){Y.push(...ye)}function k(ye,Re){if(Re.extensions.references||av(ye.match)&&!ye.match(Re))return;const We=(Le=>ye.transform(Le,Q))(Re);switch(!0){case ye.type==="extensions":Object.assign(Re.extensions,We);break;case ye.type==="value":Re.value=We;break;default:Re[ye.type]=We;break}}function B(ye){Y.forEach(Re=>{Re.enforce===ye&&Re.transform(Q)})}function ve(ye){N.forEach(Re=>{Re.enforce===ye&&f.forEach(Fe=>{k(Re,Fe)})})}function D(){f.forEach(ye=>{const Re=kI(ye);!Re||Re.length===0||Re.forEach(Fe=>{L(Fe)})})}function xe(ye){return $2(ye).map(Fe=>U(Fe)).filter(Boolean)}function Ve(){f.forEach(ye=>{if(!yI(ye.value))return;const Re=xe(ye.value);ye.extensions.references=Re.reduce((Fe,We)=>(Fe[We.name]=We,Fe),{})})}function De(){f.forEach(ye=>{eS(ye)})}function ht(){B("pre"),ve("pre"),D(),Ve(),De(),B("post"),ve("post"),ce()}return re(),Ce(...EI),Ee(...SI),ht(),Q}function oS(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function sS(e){return e.filter(t=>t!=="base")}function kI(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return po(t,(r,l)=>{const s=sS(l);if(!s.length)return;const u=structuredClone(e);u.value=r,u.extensions.condition=s.join(":"),n.push(u)}),n}function TI(e,t){const n=e.findIndex((r,l)=>t.every((s,u)=>e[l+u]===s));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}hI()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function JU(e){return e}function _I(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function OI(e){const t=_I(e.config),n=e.tokens,r=new Map,l=new Map;function s(ae,ie){t[ae]=ie,u(ae,ie)}const u=(ae,ie)=>{const H=N(ie);H&&(l.set(ae,H),A(ae,ie))},f=()=>{for(const[ae,ie]of Object.entries(t))ie&&u(ae,ie)},g=()=>{for(const[ae,ie]of Object.entries(t)){const{shorthand:H}=ie??{};if(!H)continue;(Array.isArray(H)?H:[H]).forEach(ce=>r.set(ce,ae))}},v=()=>{const ae=J2(n.colorPaletteMap);s("colorPalette",{values:Object.keys(ae),transform:ml(ie=>ae[ie])})},y=new Map,A=(ae,ie)=>{if(!ie)return;const H=N(ie,ce=>`type:Tokens["${ce}"]`);if(typeof H=="object"&&H.type){y.set(ae,new Set([`type:${H.type}`]));return}if(H){const ce=new Set(Object.keys(H));y.set(ae,ce)}const Ae=y.get(ae)??new Set;ie.property&&y.set(ae,Ae.add(`CssProperties["${ie.property}"]`))},C=()=>{for(const[ae,ie]of Object.entries(t))ie&&A(ae,ie)},w=(ae,ie)=>{const H=y.get(ae)??new Set;y.set(ae,new Set([...H,...ie]))},R=()=>{const ae=new Map;for(const[ie,H]of y.entries()){if(H.size===0){ae.set(ie,["string"]);continue}const Ae=Array.from(H).map(ce=>ce.startsWith("CssProperties")?ce:ce.startsWith("type:")?ce.replace("type:",""):JSON.stringify(ce));ae.set(ie,Ae)}return ae},N=(ae,ie)=>{const{values:H}=ae,Ae=ce=>{const _e=ie?.(ce);return _e?{[_e]:_e}:void 0};return so(H)?Ae?.(H)??n.getCategoryValues(H)??{}:Array.isArray(H)?H.reduce((ce,_e)=>(ce[_e]=_e,ce),{}):av(H)?H(ie?Ae:n.getCategoryValues):H},Y=ml((ae,ie)=>({[ae]:ae.startsWith("--")?n.getVar(ie,ie):ie})),L=Object.assign(n.getVar,{raw:ae=>n.getByName(ae)}),X=ml((ae,ie)=>{const H=U(ae);so(ie)&&!ie.includes("_EMO_")&&(ie=n.expandReferenceInValue(ie));const Ae=t[H];if(!Ae)return Y(H,ie);const ce=l.get(H)?.[ie];if(!Ae.transform)return Y(ae,ce??ie);const _e=$=>c4($,L);return Ae.transform(ce??ie,{raw:ie,token:L,utils:{colorMix:_e}})});function V(){g(),v(),f(),C()}V();const re=r.size>0,U=ml(ae=>r.get(ae)??ae);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:re,transform:X,shorthands:r,resolveShorthand:U,register:s,getTypes:R,addPropertyType:w}}const Mi={};function uS(...e){const t=C2(...e),{theme:n={},utilities:r={},globalCss:l={},cssVarsRoot:s=":where(:root, :host)",cssVarsPrefix:u="chakra",preflight:f}=t,g=aI(t),v=wI({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:u}),y=L4(n.breakpoints??Mi),A=B4({conditions:t.conditions??Mi,breakpoints:y}),C=OI({config:r,tokens:v});function w(){const{textStyles:Ee,layerStyles:k,animationStyles:B}=n,ve=zd({textStyle:Ee,layerStyle:k,animationStyle:B});for(const[D,xe]of Object.entries(ve)){const Ve=O2(xe??Mi,cS);C.register(D,{values:Object.keys(Ve),transform(De){return V(Ve[De])}})}}w(),C.addPropertyType("animationName",Object.keys(n.keyframes??Mi));const R=new Set(["css",...C.keys(),...A.keys()]),N=ml(Ee=>R.has(Ee)||P4(Ee)),Y=Ee=>Array.isArray(Ee)?Ee.reduce((k,B,ve)=>{const D=A.breakpoints[ve];return B!=null&&(k[D]=B),k},{}):Ee,L=lI({utility:C,normalize:Y}),X=sI({conditions:A,isValidProperty:N}),V=G2({transform:C.transform,conditions:A,normalize:L}),re=nI({css:V,conditions:A,normalize:L,layers:g}),U=dI({cva:re});function J(){const Ee={};for(const[k,B]of v.cssVarMap.entries()){const ve=Object.fromEntries(B);if(Object.keys(ve).length===0)continue;const D=k==="base"?s:A.resolve(k),xe=D.startsWith("@"),Ve=V(X({[D]:xe?{[s]:ve}:ve}));pf(Ee,Ve)}return g.wrap("tokens",Ee)}function de(){const Ee=Object.fromEntries(Object.entries(n.keyframes??Mi).map(([B,ve])=>[`@keyframes ${B}`,ve])),k=Object.assign({},Ee,V(X(l)));return g.wrap("base",k)}function ae(Ee){return ef(Ee,N)}function ie(){const Ee=oI({preflight:f});return g.wrap("reset",Ee)}const H=RI(v),Ae=(Ee,k)=>H.get(Ee)?.value||k;Ae.var=(Ee,k)=>H.get(Ee)?.variable||k;function ce(Ee,k){return n.recipes?.[Ee]??k}function _e(Ee,k){return n.slotRecipes?.[Ee]??k}function $(Ee){return Object.hasOwnProperty.call(n.recipes??Mi,Ee)}function ue(Ee){return Object.hasOwnProperty.call(n.slotRecipes??Mi,Ee)}function z(Ee){return $(Ee)||ue(Ee)}const Q=[ie(),de(),J()],Ce={layerStyles:v0(n.layerStyles??Mi),textStyles:v0(n.textStyles??Mi),animationStyles:v0(n.animationStyles??Mi),tokens:fS(v,Object.keys(n.tokens??Mi),(Ee,k)=>!Ee.extensions.conditions&&!k.includes("colorPalette")),semanticTokens:fS(v,Object.keys(n.semanticTokens??Mi),Ee=>!!Ee.extensions.conditions),keyframes:dS(n.keyframes??Mi),breakpoints:dS(n.breakpoints??Mi)};return{$$chakra:!0,_config:t,_global:Q,breakpoints:y,tokens:v,conditions:A,utility:C,token:Ae,properties:R,layers:g,isValidProperty:N,splitCssProps:ae,normalizeValue:Y,getTokenCss:J,getGlobalCss:de,getPreflightCss:ie,css:V,cva:re,sva:U,getRecipe:ce,getSlotRecipe:_e,hasRecipe:z,isRecipe:$,isSlotRecipe:ue,query:Ce}}function RI(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:l,conditions:s}=n.extensions,u=s||l?r.ref:n.value;t.set(n.name,{value:u,variable:r.ref})}),t}const cS=e=>Pi(e)&&"value"in e,v0=e=>({list(){return Object.keys(O2(e,cS))},search(t){return this.list().filter(n=>n.includes(t))}}),fS=(e,t,n)=>({categoryKeys:t,list(r){return Array.from(e.categoryMap.get(r)?.entries()??[]).reduce((l,[s,u])=>(n(u,s)&&l.push(s),l),[])},search(r,l){return this.list(r).filter(s=>s.includes(l))}}),dS=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),FI={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},b0="var(--chakra-empty,/*!*/ /*!*/)",II=g4({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":b0,"--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}`,b0])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,b0])),"--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"}}),NI=v4({"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:{}}}),PI=m4({"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"}}}),y0=pr({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),zI=pr({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Pr=pr({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"}}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:DI,defaultVariants:MI}=y0,WI=pr({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:DI,defaultVariants:MI}),hS=pr({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"}}),LI=pr({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"}}}}),YI=pr({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"}}),VI=pr({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"}}),ar=pr({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"}}),XI=pr({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:ar.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"}}),BI=pr({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"}}),HI=pr({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"}}),UI=pr({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:{}}}}),zr=pr({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"}}},defaultVariants:{variant:"solid",size:"md"}}),GI=pr({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"}}),ZI=pr({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}}),QI=pr({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"}}}),KI=pr({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"}}),jI=pr({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"}}),JI={badge:y0,button:zI,code:WI,container:LI,heading:YI,input:ar,inputAddon:XI,kbd:BI,link:HI,mark:UI,separator:GI,skeleton:ZI,skipNavLink:QI,spinner:KI,textarea:jI,icon:VI,checkmark:Pr,radiomark:zr,colorSwatch:hS},qI=c0.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),$I=c0.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),e6=c0.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}"}}}),t6=iA.extendWith("itemBody"),n6=nt("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),r6=nt("alert").parts("title","description","root","indicator","content"),i6=nt("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),a6=nt("blockquote").parts("root","icon","content","caption"),l6=nt("card").parts("root","header","body","footer","title","description"),o6=nt("checkbox-card",["root","control","label","description","addon","indicator","content"]),s6=nt("data-list").parts("root","item","itemLabel","itemValue"),u6=Gv.extendWith("header","body","footer","backdrop"),c6=Gv.extendWith("header","body","footer","backdrop"),f6=FA.extendWith("textarea"),d6=nt("empty-state",["root","content","indicator","title","description"]),h6=IA.extendWith("requiredIndicator"),g6=PA.extendWith("content"),p6=zA.extendWith("itemContent","dropzoneContent","fileText"),m6=nt("list").parts("root","item","indicator"),v6=GA.extendWith("itemCommand"),b6=nt("select").parts("root","field","indicator"),y6=u2.extendWith("header","body","footer"),gS=i0.extendWith("itemAddon","itemIndicator"),x6=gS.extendWith("itemContent","itemDescription"),A6=f2.extendWith("itemIndicator"),S6=g2.extendWith("indicatorGroup"),E6=EA.extendWith("indicatorGroup","empty"),C6=b2.extendWith("markerIndicator"),w6=nt("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),k6=nt("status").parts("root","indicator"),T6=nt("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),_6=y2.extendWith("indicator"),O6=nt("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),R6=nt("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),F6=nt("tabs").parts("root","trigger","list","content","contentGroup","indicator"),I6=nt("tag").parts("root","label","closeTrigger","startElement","endElement"),N6=nt("timeline").parts("root","item","content","separator","indicator","connector","title","description"),P6=a7.extendWith("channelText"),z6=nt("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);hA.extendWith("valueText");const D6=it({className:"chakra-accordion",slots:t6.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"}}),M6=it({className:"chakra-action-bar",slots:n6.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"}}}),W6=it({slots:r6.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),L6=it({slots:oA.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),Y6=it({className:"chakra-blockquote",slots:a6.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"}}),V6=it({className:"chakra-breadcrumb",slots:i6.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"}}),X6=it({className:"chakra-card",slots:l6.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"}}),B6=it({slots:r7.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Pr.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Pr.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Pr.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Pr.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Pr.variants?.size?.lg}},variant:{outline:{control:Pr.variants?.variant?.outline},solid:{control:Pr.variants?.variant?.solid},subtle:{control:Pr.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),H6=it({slots:o6.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:Pr.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:Pr.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Pr.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Pr.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:Pr.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Pr.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:Pr.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Pr.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"}}),U6=it({slots:z6.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),G6=it({slots:yx.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),Z6=it({className:"colorPicker",slots:P6.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:{...hS.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:{...ar.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:ar.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:ar.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:ar.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:ar.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:ar.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:ar.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:ar.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:ar.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:ar.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),Q6=it({className:"chakra-combobox",slots:E6.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),K6=it({slots:s6.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"}}),j6=it({slots:u6.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"}}),J6=it({slots:c6.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"}}),pS=mf({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),q6=it({slots:f6.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...pS,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...pS,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"}}),$6=it({slots:d6.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"}}),eN=it({className:"chakra-field",slots:h6.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"}}),tN=it({className:"fieldset",slots:g6.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"}}),nN=it({className:"chakra-file-upload",slots:p6.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:{}}),rN=it({className:"chakra-hover-card",slots:VA.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),iN=it({className:"chakra-list",slots:m6.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"}}),aN=it({className:"chakra-menu",slots:v6.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"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),yp=it({className:"chakra-select",slots:S6.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"}}),lN=it({className:"chakra-native-select",slots:b6.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:yp.variants?.variant.outline.trigger},subtle:{field:yp.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:yp.defaultVariants});function x0(e,t){const n={};for(const r in e){const l=t(r,e[r]);n[l[0]]=l[1]}return n}const mS=mf({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"}}),oN=it({className:"chakra-number-input",slots:r2.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...ar.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:{...mS,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...mS,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:ar.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:ar.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:ar.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:ar.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:x0(ar.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:vS,defaultVariants:sN}=ar,uN=it({className:"chakra-pin-input",slots:s2.keys(),base:{input:{...ar.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:x0(vS.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:x0(vS.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:sN}),cN=it({className:"chakra-popover",slots:y6.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),fN=it({slots:r0.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"}}),dN=it({className:"chakra-progress-circle",slots:r0.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"}}),hN=it({slots:c2.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"}}),gN=it({className:"chakra-radio-card",slots:x6.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:zr.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:zr.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:zr.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:zr.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:zr.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:zr.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:zr.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:zr.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"}}),pN=it({className:"chakra-radio-group",slots:gS.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:zr.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:zr.variants?.variant?.outline},subtle:{itemControl:zr.variants?.variant?.subtle},solid:{itemControl:zr.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:zr.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:zr.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:zr.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:zr.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),mN=it({className:"chakra-rating-group",slots:A6.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"}}),vN=it({className:"chakra-scroll-area",slots:d2.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"}}),bN=it({className:"chakra-segment-group",slots:h2.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),yN=it({className:"chakra-slider",slots:C6.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"}}),xN=it({className:"chakra-stat",slots:w6.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"}}),AN=it({className:"chakra-status",slots:k6.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"}}),SN=it({className:"chakra-steps",slots:T6.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"}}),EN=it({slots:_6.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"}}),CN=it({className:"chakra-table",slots:O6.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),wN=it({slots:F6.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),xp=y0.variants?.variant,kN=it({slots:I6.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:xp?.subtle},solid:{root:xp?.solid},outline:{root:xp?.outline},surface:{root:xp?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),TN=it({slots:N6.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),_N=it({slots:R6.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"}}}}),ON=it({slots:x2.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),bS=mf({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"}}),yS=mf({flex:"1"}),xS=mf({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),AS=mf({_selected:{layerStyle:"fill.solid"}}),RN=it({slots:HA.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:bS,item:bS,itemText:yS,branchText:yS,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:xS,item:xS},solid:{branchControl:AS,item:AS}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),FN={accordion:D6,actionBar:M6,alert:W6,avatar:L6,blockquote:Y6,breadcrumb:V6,card:X6,checkbox:B6,checkboxCard:H6,codeBlock:U6,collapsible:G6,dataList:K6,dialog:j6,drawer:J6,editable:q6,emptyState:$6,field:eN,fieldset:tN,fileUpload:nN,hoverCard:rN,list:iN,menu:aN,nativeSelect:lN,numberInput:oN,pinInput:uN,popover:cN,progress:fN,progressCircle:dN,radioCard:gN,radioGroup:pN,ratingGroup:mN,scrollArea:vN,segmentGroup:bN,select:yp,combobox:Q6,slider:yN,stat:xN,steps:SN,switch:EN,table:CN,tabs:wN,tag:kN,toast:_N,tooltip:ON,status:AN,timeline:TN,colorPicker:Z6,qrCode:hN,treeView:RN},IN=p4({"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"}}}),NN=ir.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"}}),PN=ir.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"}}),zN=ir.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),DN=ir.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),MN=ir.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"}}}),WN=ir.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"}}),LN=ir.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),YN=ir.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)"}}),VN=ir.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"}}),XN=ir.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"}}),SS='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',BN=ir.fonts({heading:{value:`Inter, ${SS}`},body:{value:`Inter, ${SS}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),HN=h4({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),UN=ir.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),GN=ir.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),ZN=ir.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"}}),ES=ir.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"}}),QN=ir.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"}}),KN=ir.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"}}),jN=ir.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%"}}),JN=ir.sizes({...QN,...ES,...jN,...KN}),qN=ir.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}}),$N=f0({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:II,theme:{breakpoints:FI,keyframes:HN,tokens:{aspectRatios:PN,animations:NN,blurs:zN,borders:DN,colors:MN,durations:LN,easings:YN,fonts:BN,fontSizes:VN,fontWeights:XN,letterSpacings:UN,lineHeights:GN,radii:ZN,spacing:ES,sizes:JN,zIndex:qN,cursor:WN},semanticTokens:{colors:qI,shadows:e6,radii:$I},recipes:JI,slotRecipes:FN,textStyles:IN,layerStyles:NI,animationStyles:PI}}),A0=C2(w4,$N);uS(A0);const CS=Rs("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"}});CS.displayName="AbsoluteCenter";const eP=e=>e?"":void 0,{withContext:tP}=tf({key:"badge"}),nP=tP("span"),{withContext:rP}=tf({key:"spinner"}),iP=rP("span"),aP=Te.forwardRef(function(t,n){const{spinner:r=ne.jsx(iP,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:l="start",children:s,text:u,visible:f=!0,...g}=t;return f?u?ne.jsxs(Xg,{ref:n,display:"contents",...g,children:[l==="start"&&r,u,l==="end"&&r]}):r?ne.jsxs(Xg,{ref:n,display:"contents",...g,children:[ne.jsx(CS,{display:"inline-flex",children:r}),ne.jsx(Xg,{visibility:"hidden",display:"contents",children:s})]}):ne.jsx(Xg,{ref:n,display:"contents",...g,children:s}):s}),{useRecipeResult:lP,usePropsContext:oP}=tf({key:"button"}),ju=Te.forwardRef(function(t,n){const r=oP(),l=Te.useMemo(()=>iv(r,t),[r,t]),s=lP(l),{loading:u,loadingText:f,children:g,spinner:v,spinnerPlacement:y,...A}=s.props;return ne.jsx(Rs.button,{type:"button",ref:n,...A,"data-loading":eP(u),disabled:u||A.disabled,className:oo(s.className,l.className),css:[s.styles,l.css],children:!l.asChild&&u?ne.jsx(aP,{spinner:v,text:f,spinnerPlacement:y,children:g}):g})}),eh=Te.forwardRef(function(t,n){return ne.jsx(ju,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})});function sP(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":gp(n,l=>r[l])}}function uP(e){return Te.Children.toArray(e).filter(t=>Te.isValidElement(t))}const wS=Te.forwardRef(function(t,n){const{direction:r="column",align:l,justify:s,gap:u="0.5rem",wrap:f,children:g,separator:v,className:y,...A}=t,C=Te.useMemo(()=>sP({gap:u,direction:r}),[u,r]),w=Te.useMemo(()=>Te.isValidElement(v)?uP(g).map((R,N,Y)=>{const L=typeof R.key<"u"?R.key:N,X=v,V=Te.cloneElement(X,{css:[C,X.props.css]});return ne.jsxs(Te.Fragment,{children:[R,N===Y.length-1?null:V]},L)}):g,[g,v,C]);return ne.jsx(Rs.div,{ref:n,display:"flex",alignItems:l,justifyContent:s,flexDirection:r,flexWrap:f,gap:v?void 0:u,className:oo("chakra-stack",y),...A,children:w})}),mo=Te.forwardRef(function(t,n){const{align:r,fit:l="cover",...s}=t;return ne.jsx(Rs.img,{ref:n,objectFit:l,objectPosition:r,className:oo("chakra-image",t.className),...s})}),{withContext:cP}=tf({key:"link"}),kS=cP("a"),fP=Te.forwardRef(function(t,n){const{columns:r,minChildWidth:l,...s}=t,u=Rg(),f=l?hP(l,u):gP(r);return ne.jsx(z_,{ref:n,templateColumns:f,...s})});function dP(e){return typeof e=="number"?`${e}px`:e}function hP(e,t){return gp(e,n=>{const r=t.tokens.getVar(`sizes.${n}`,dP(n));return n===null?null:`repeat(auto-fit, minmax(${r}, 1fr))`})}function gP(e){return gp(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const Xa=Te.forwardRef(function(t,n){return ne.jsx(wS,{align:"center",...t,direction:"row",ref:n})}),ri=Te.forwardRef(function(t,n){return ne.jsx(wS,{align:"center",...t,direction:"column",ref:n})}),{withContext:pP}=tf({key:"textarea"}),TS=pP(NA),St=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,dn=globalThis,Ju="10.5.0";function Ap(){return Sp(dn),dn}function Sp(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ju,t[Ju]=t[Ju]||{}}function th(e,t,n=dn){const r=n.__SENTRY__=n.__SENTRY__||{},l=r[Ju]=r[Ju]||{};return l[e]||(l[e]=t())}const mP=["debug","info","warn","error","log","assert","trace"],vP="Sentry Logger ",Ep={};function Cp(e){if(!("console"in dn))return e();const t=dn.console,n={},r=Object.keys(Ep);r.forEach(l=>{const s=Ep[l];n[l]=t[l],t[l]=s});try{return e()}finally{r.forEach(l=>{t[l]=n[l]})}}function bP(){E0().enabled=!0}function yP(){E0().enabled=!1}function _S(){return E0().enabled}function xP(...e){S0("log",...e)}function AP(...e){S0("warn",...e)}function SP(...e){S0("error",...e)}function S0(e,...t){St&&_S()&&Cp(()=>{dn.console[e](`${vP}[${e}]:`,...t)})}function E0(){return St?th("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const ft={enable:bP,disable:yP,isEnabled:_S,log:xP,warn:AP,error:SP},OS=50,qu="?",RS=/\(error: (.*)\)/,FS=/captureMessage|captureException/;function EP(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,l=0)=>{const s=[],u=n.split(`
|
65
65
|
`);for(let f=r;f<u.length;f++){let g=u[f];g.length>1024&&(g=g.slice(0,1024));const v=RS.test(g)?g.replace(RS,"$1"):g;if(!v.match(/\S*Error: /)){for(const y of t){const A=y(v);if(A){s.push(A);break}}if(s.length>=OS+l)break}}return CP(s.slice(l))}}function CP(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(wp(t).function||"")&&t.pop(),t.reverse(),FS.test(wp(t).function||"")&&(t.pop(),FS.test(wp(t).function||"")&&t.pop()),t.slice(0,OS).map(n=>({...n,filename:n.filename||wp(t).filename,function:n.function||qu}))}function wp(e){return e[e.length-1]||{}}const C0="<anonymous>";function Ls(e){try{return!e||typeof e!="function"?C0:e.name||C0}catch{return C0}}function IS(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const kp={},NS={};function $u(e,t){kp[e]=kp[e]||[],kp[e].push(t)}function ec(e,t){if(!NS[e]){NS[e]=!0;try{t()}catch(n){St&&ft.error(`Error while instrumenting ${e}`,n)}}}function vl(e,t){const n=e&&kp[e];if(n)for(const r of n)try{r(t)}catch(l){St&&ft.error(`Error while triggering instrumentation handler.
|
66
66
|
Type: ${e}
|
67
67
|
Name: ${Ls(r)}
|
@@ -75,20 +75,20 @@ Event: ${nc(e)}`),!0;if(UD(e,t.denyUrls))return St&&ft.warn(`Event dropped due t
|
|
75
75
|
Event: ${nc(e)}.
|
76
76
|
Url: ${Wp(e)}`),!0;if(!GD(e,t.allowUrls))return St&&ft.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
77
77
|
Event: ${nc(e)}.
|
78
|
-
Url: ${Wp(e)}`),!0}return!1}function BD(e,t){return t?.length?OE(e).some(n=>Fp(n,t)):!1}function HD(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Fp(n,t):!1}function UD(e,t){if(!t?.length)return!1;const n=Wp(e);return n?Fp(n,t):!1}function GD(e,t){if(!t?.length)return!0;const n=Wp(e);return n?Fp(n,t):!0}function ZD(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Wp(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?ZD(n):null}catch{return St&&ft.error(`Cannot extract url for event ${nc(e)}`),null}}function QD(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function KD(e,t,n,r,l,s){if(!l.exception?.values||!s||!Ys(s.originalException,Error))return;const u=l.exception.values.length>0?l.exception.values[l.exception.values.length-1]:void 0;u&&(l.exception.values=H0(e,t,r,s.originalException,n,l.exception.values,u,0))}function H0(e,t,n,r,l,s,u,f){if(s.length>=n+1)return s;let g=[...s];if(Ys(r[l],Error)){XE(u,f);const v=e(t,r[l]),y=g.length;BE(v,l,y,f),g=H0(e,t,n,r[l],l,[v,...g],v,y)}return Array.isArray(r.errors)&&r.errors.forEach((v,y)=>{if(Ys(v,Error)){XE(u,f);const A=e(t,v),C=g.length;BE(A,`errors[${y}]`,C,f),g=H0(e,t,n,v,l,[A,...g],A,C)}}),g}function XE(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function BE(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function jD(e){const t="console";$u(t,e),ec(t,JD)}function JD(){"console"in dn&&mP.forEach(function(e){e in dn.console&&la(dn.console,e,function(t){return Ep[e]=t,function(...n){vl("console",{args:n,level:e}),Ep[e]?.apply(dn.console,n)}})})}function qD(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const $D="Dedupe",eM=(()=>{let e;return{name:$D,processEvent(t){if(t.type)return t;try{if(tM(t,e))return St&&ft.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function tM(e,t){return t?!!(nM(e,t)||rM(e,t)):!1}function nM(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!UE(e,t)||!HE(e,t))}function rM(e,t){const n=GE(t),r=GE(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!UE(e,t)||!HE(e,t))}function HE(e,t){let n=IS(e),r=IS(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let l=0;l<r.length;l++){const s=r[l],u=n[l];if(s.filename!==u.filename||s.lineno!==u.lineno||s.colno!==u.colno||s.function!==u.function)return!1}return!0}function UE(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function GE(e){return e.exception?.values?.[0]}function U0(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function ZE(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const oh=dn;function iM(){return"history"in oh&&!!oh.history}function aM(){if(!("fetch"in oh))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function G0(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function lM(){if(typeof EdgeRuntime=="string")return!0;if(!aM())return!1;if(G0(oh.fetch))return!0;let e=!1;const t=oh.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=G0(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){St&&ft.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function oM(e,t){const n="fetch";$u(n,e),ec(n,()=>sM(void 0,t))}function sM(e,t=!1){t&&!lM()||la(dn,"fetch",function(n){return function(...r){const l=new Error,{method:s,url:u}=uM(r),f={args:r,fetchData:{method:s,url:u},startTimestamp:jo()*1e3,virtualError:l,headers:cM(r)};return vl("fetch",{...f}),n.apply(dn,r).then(async g=>(vl("fetch",{...f,endTimestamp:jo()*1e3,response:g}),g),g=>{if(vl("fetch",{...f,endTimestamp:jo()*1e3,error:g}),T0(g)&&g.stack===void 0&&(g.stack=l.stack,tc(g,"framesToPop",1)),g instanceof TypeError&&(g.message==="Failed to fetch"||g.message==="Load failed"||g.message==="NetworkError when attempting to fetch resource."))try{const v=new URL(f.fetchData.url);g.message=`${g.message} (${v.host})`}catch{}throw g})}})}function Z0(e,t){return!!e&&typeof e=="object"&&!!e[t]}function QE(e){return typeof e=="string"?e:e?Z0(e,"url")?e.url:e.toString?e.toString():"":""}function uM(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:QE(n),method:Z0(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:QE(t),method:Z0(t,"method")?String(t.method).toUpperCase():"GET"}}function cM(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(NP(t))return new Headers(t.headers)}catch{}}function fM(){return"npm"}const Dr=dn;let Q0=0;function KE(){return Q0>0}function dM(){Q0++,setTimeout(()=>{Q0--})}function wf(e,t={}){function n(l){return typeof l=="function"}if(!n(e))return e;try{const l=e.__sentry_wrapped__;if(l)return typeof l=="function"?l:e;if(F0(e))return e}catch{return e}const r=function(...l){try{const s=l.map(u=>wf(u,t));return e.apply(this,s)}catch(s){throw dM(),qP(u=>{u.addEventProcessor(f=>(t.mechanism&&(I0(f,void 0),Af(f,t.mechanism)),f.extra={...f.extra,arguments:l},f)),uD(s)}),s}};try{for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(r[l]=e[l])}catch{}VS(r,e),tc(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function hM(){const e=LS(),{referrer:t}=Dr.document||{},{userAgent:n}=Dr.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function K0(e,t){const n=J0(e,t),r={type:bM(t),value:yM(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function gM(e,t,n,r){const s=mi()?.getOptions().normalizeDepth,u=CM(t),f={__serialized__:dE(t,s)};if(u)return{exception:{values:[K0(e,u)]},extra:f};const g={exception:{values:[{type:Tp(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:SM(t,{isUnhandledRejection:r})}]},extra:f};if(n){const v=J0(e,n);v.length&&(g.exception.values[0].stacktrace={frames:v})}return g}function j0(e,t){return{exception:{values:[K0(e,t)]}}}function J0(e,t){const n=t.stacktrace||t.stack||"",r=mM(t),l=vM(t);try{return e(n,r,l)}catch{}return[]}const pM=/Minified React error #\d+;/i;function mM(e){return e&&pM.test(e.message)?1:0}function vM(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function jE(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function bM(e){const t=e?.name;return!t&&jE(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function yM(e){const t=e?.message;return jE(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function xM(e,t,n,r){const l=n?.syntheticException||void 0,s=q0(e,t,l,r);return Af(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),rc(s)}function AM(e,t,n="info",r,l){const s=r?.syntheticException||void 0,u=$0(e,t,s,l);return u.level=n,r?.event_id&&(u.event_id=r.event_id),rc(u)}function q0(e,t,n,r,l){let s;if(zS(t)&&t.error)return j0(e,t.error);if(DS(t)||OP(t)){const u=t;if("stack"in t)s=j0(e,t);else{const f=u.name||(DS(u)?"DOMError":"DOMException"),g=u.message?`${f}: ${u.message}`:f;s=$0(e,g,n,r),I0(s,g)}return"code"in u&&(s.tags={...s.tags,"DOMException.code":`${u.code}`}),s}return T0(t)?j0(e,t):nh(t)||Tp(t)?(s=gM(e,t,n,l),Af(s,{synthetic:!0}),s):(s=$0(e,t,n,r),I0(s,`${t}`),Af(s,{synthetic:!0}),s)}function $0(e,t,n,r){const l={};if(r&&n){const s=J0(e,n);s.length&&(l.exception={values:[{value:t,stacktrace:{frames:s}}]}),Af(l,{synthetic:!0})}if(_0(t)){const{__sentry_template_string__:s,__sentry_template_values__:u}=t;return l.logentry={message:s,params:u},l}return l.message=t,l}function SM(e,{isUnhandledRejection:t}){const n=MP(e),r=t?"promise rejection":"exception";return zS(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Tp(e)?`Event \`${EM(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function EM(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function CM(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const wM=5e3;class kM extends yD{constructor(t){const n=TM(t),r=Dr.SENTRY_SDK_SOURCE||fM();PD(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:l,sendClientReports:s,enableLogs:u}=this._options;Dr.document&&(s||u)&&Dr.document.addEventListener("visibilitychange",()=>{Dr.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),u&&B0(this))}),u&&(this.on("flush",()=>{B0(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{B0(this)},wM)})),l&&this.on("beforeSendSession",ND)}eventFromException(t,n){return xM(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return AM(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,l){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,l)}}function TM(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Dr.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const _M=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vi=dn,OM=1e3;let JE,eb,tb;function RM(e){$u("dom",e),ec("dom",FM)}function FM(){if(!vi.document)return;const e=vl.bind(null,"dom"),t=qE(e,!0);vi.document.addEventListener("click",t,!1),vi.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const l=vi[n]?.prototype;l?.hasOwnProperty?.("addEventListener")&&(la(l,"addEventListener",function(s){return function(u,f,g){if(u==="click"||u=="keypress")try{const v=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},y=v[u]=v[u]||{refCount:0};if(!y.handler){const A=qE(e);y.handler=A,s.call(this,u,A,g)}y.refCount++}catch{}return s.call(this,u,f,g)}}),la(l,"removeEventListener",function(s){return function(u,f,g){if(u==="click"||u=="keypress")try{const v=this.__sentry_instrumentation_handlers__||{},y=v[u];y&&(y.refCount--,y.refCount<=0&&(s.call(this,u,y.handler,g),y.handler=void 0,delete v[u]),Object.keys(v).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,u,f,g)}}))})}function IM(e){if(e.type!==eb)return!1;try{if(!e.target||e.target._sentryId!==tb)return!1}catch{}return!0}function NM(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function qE(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=PM(n);if(NM(n.type,r))return;tc(n,"_sentryCaptured",!0),r&&!r._sentryId&&tc(r,"_sentryId",Ba());const l=n.type==="keypress"?"input":n.type;IM(n)||(e({event:n,name:l,global:t}),eb=n.type,tb=r?r._sentryId:void 0),clearTimeout(JE),JE=vi.setTimeout(()=>{tb=void 0,eb=void 0},OM)}}function PM(e){try{return e.target}catch{return null}}let Lp;function $E(e){const t="history";$u(t,e),ec(t,zM)}function zM(){if(vi.addEventListener("popstate",()=>{const t=vi.location.href,n=Lp;if(Lp=t,n===t)return;vl("history",{from:n,to:t})}),!iM())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const l=Lp,s=DM(String(r));if(Lp=s,l===s)return t.apply(this,n);vl("history",{from:l,to:s})}return t.apply(this,n)}}la(vi.history,"pushState",e),la(vi.history,"replaceState",e)}function DM(e){try{return new URL(e,vi.location.origin).toString()}catch{return e}}const Yp={};function MM(e){const t=Yp[e];if(t)return t;let n=vi[e];if(G0(n))return Yp[e]=n.bind(vi);const r=vi.document;if(r&&typeof r.createElement=="function")try{const l=r.createElement("iframe");l.hidden=!0,r.head.appendChild(l);const s=l.contentWindow;s?.[e]&&(n=s[e]),r.head.removeChild(l)}catch(l){_M&&ft.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,l)}return n&&(Yp[e]=n.bind(vi))}function eC(e){Yp[e]=void 0}const sh="__sentry_xhr_v3__";function WM(e){$u("xhr",e),ec("xhr",LM)}function LM(){if(!vi.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const l=new Error,s=jo()*1e3,u=Ko(r[0])?r[0].toUpperCase():void 0,f=YM(r[1]);if(!u||!f)return t.apply(n,r);n[sh]={method:u,url:f,request_headers:{}},u==="POST"&&f.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const g=()=>{const v=n[sh];if(v&&n.readyState===4){try{v.status_code=n.status}catch{}const y={endTimestamp:jo()*1e3,startTimestamp:s,xhr:n,virtualError:l};vl("xhr",y)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(v,y,A){return g(),v.apply(y,A)}}):n.addEventListener("readystatechange",g),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(v,y,A){const[C,w]=A,R=y[sh];return R&&Ko(C)&&Ko(w)&&(R.request_headers[C.toLowerCase()]=w),v.apply(y,A)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const l=n[sh];if(!l)return t.apply(n,r);r[0]!==void 0&&(l.body=r[0]);const s={startTimestamp:jo()*1e3,xhr:n};return vl("xhr",s),t.apply(n,r)}})}function YM(e){if(Ko(e))return e;try{return e.toString()}catch{}}function VM(e,t=MM("fetch")){let n=0,r=0;function l(s){const u=s.body.length;n+=u,r++;const f={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return eC("fetch"),Np("No fetch implementation available");try{return t(e.url,f).then(g=>(n-=u,r--,{statusCode:g.status,headers:{"x-sentry-rate-limits":g.headers.get("X-Sentry-Rate-Limits"),"retry-after":g.headers.get("Retry-After")}}))}catch(g){return eC("fetch"),n-=u,r--,Np(g)}}return ID(e,l)}const XM=30,BM=50;function nb(e,t,n,r){const l={filename:e,function:t==="<anonymous>"?qu:t,in_app:!0};return n!==void 0&&(l.lineno=n),r!==void 0&&(l.colno=r),l}const HM=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,UM=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,GM=/\((\S*)(?::(\d+))(?::(\d+))\)/,ZM=/at (.+?) ?\(data:(.+?),/,QM=[XM,e=>{const t=e.match(ZM);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=HM.exec(e);if(n){const[,l,s,u]=n;return nb(l,qu,+s,+u)}const r=UM.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const f=GM.exec(r[2]);f&&(r[2]=f[1],r[3]=f[2],r[4]=f[3])}const[s,u]=tC(r[1]||qu,r[2]);return nb(u,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],KM=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jM=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,JM=EP(...[QM,[BM,e=>{const t=KM.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=jM.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],l=t[1]||qu;return[l,r]=tC(l,r),nb(r,l,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),tC=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:qu,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rb=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vp=1024,qM="Breadcrumbs",$M=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:qM,setup(n){t.console&&jD(nW(n)),t.dom&&RM(tW(n,t.dom)),t.xhr&&WM(rW(n)),t.fetch&&oM(iW(n)),t.history&&$E(aW(n)),t.sentry&&n.on("beforeSendEvent",eW(n))}}});function eW(e){return function(n){mi()===e&&ic({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:nc(n)},{event:n})}}function tW(e,t){return function(r){if(mi()!==e)return;let l,s,u=typeof t=="object"?t.serializeAttribute:void 0,f=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;f&&f>Vp&&(rb&&ft.warn(`\`dom.maxStringLength\` cannot exceed ${Vp}, but a value of ${f} was configured. Sentry will use ${Vp} instead.`),f=Vp),typeof u=="string"&&(u=[u]);try{const v=r.event,y=lW(v)?v.target:v;l=WS(y,{keyAttrs:u,maxStringLength:f}),s=DP(y)}catch{l="<unknown>"}if(l.length===0)return;const g={category:`ui.${r.name}`,message:l};s&&(g.data={"ui.component_name":s}),ic(g,{event:r.event,name:r.name,global:r.global})}}function nW(e){return function(n){if(mi()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:qD(n.level),message:YS(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${YS(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ic(r,{input:n.args,level:n.level})}}function rW(e){return function(n){if(mi()!==e)return;const{startTimestamp:r,endTimestamp:l}=n,s=n.xhr[sh];if(!r||!l||!s)return;const{method:u,url:f,status_code:g,body:v}=s,y={method:u,url:f,status_code:g},A={xhr:n.xhr,input:v,startTimestamp:r,endTimestamp:l},C={category:"xhr",data:y,type:"http",level:ZE(g)};e.emit("beforeOutgoingRequestBreadcrumb",C,A),ic(C,A)}}function iW(e){return function(n){if(mi()!==e)return;const{startTimestamp:r,endTimestamp:l}=n;if(l&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,u={data:n.error,input:n.args,startTimestamp:r,endTimestamp:l},f={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",f,u),ic(f,u)}else{const s=n.response,u={...n.fetchData,status_code:s?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s?.status;const f={input:n.args,response:s,startTimestamp:r,endTimestamp:l},g={category:"fetch",data:u,type:"http",level:ZE(u.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",g,f),ic(g,f)}}}function aW(e){return function(n){if(mi()!==e)return;let r=n.from,l=n.to;const s=U0(Dr.location.href);let u=r?U0(r):void 0;const f=U0(l);u?.path||(u=s),s.protocol===f.protocol&&s.host===f.host&&(l=f.relative),s.protocol===u.protocol&&s.host===u.host&&(r=u.relative),ic({category:"navigation",data:{from:r,to:l}})}}function lW(e){return!!e&&!!e.target}const oW=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],sW="BrowserApiErrors",uW=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:sW,setupOnce(){t.setTimeout&&la(Dr,"setTimeout",nC),t.setInterval&&la(Dr,"setInterval",nC),t.requestAnimationFrame&&la(Dr,"requestAnimationFrame",cW),t.XMLHttpRequest&&"XMLHttpRequest"in Dr&&la(XMLHttpRequest.prototype,"send",fW);const n=t.eventTarget;n&&(Array.isArray(n)?n:oW).forEach(l=>dW(l,t))}}});function nC(e){return function(...t){const n=t[0];return t[0]=wf(n,{mechanism:{data:{function:Ls(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function cW(e){return function(t){return e.apply(this,[wf(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ls(e)},handled:!1,type:"instrument"}})])}}function fW(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(l=>{l in n&&typeof n[l]=="function"&&la(n,l,function(s){const u={mechanism:{data:{function:l,handler:Ls(s)},handled:!1,type:"instrument"}},f=F0(s);return f&&(u.mechanism.data.handler=Ls(f)),wf(s,u)})}),e.apply(this,t)}}function dW(e,t){const r=Dr[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(la(r,"addEventListener",function(l){return function(s,u,f){try{hW(u)&&(u.handleEvent=wf(u.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ls(u),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&gW(this,s,u),l.apply(this,[s,wf(u,{mechanism:{data:{function:"addEventListener",handler:Ls(u),target:e},handled:!1,type:"instrument"}}),f])}}),la(r,"removeEventListener",function(l){return function(s,u,f){try{const g=u.__sentry_wrapped__;g&&l.call(this,s,g,f)}catch{}return l.call(this,s,u,f)}}))}function hW(e){return typeof e.handleEvent=="function"}function gW(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const pW=()=>({name:"BrowserSession",setupOnce(){if(typeof Dr.document>"u"){rb&&ft.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}SE({ignoreDuration:!0}),wE(),$E(({from:e,to:t})=>{e!==void 0&&e!==t&&(SE({ignoreDuration:!0}),wE())})}}),mW="GlobalHandlers",vW=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:mW,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(bW(n),rC("onerror")),t.onunhandledrejection&&(yW(n),rC("onunhandledrejection"))}}});function bW(e){wP(t=>{const{stackParser:n,attachStacktrace:r}=iC();if(mi()!==e||KE())return;const{msg:l,url:s,line:u,column:f,error:g}=t,v=SW(q0(n,g||l,void 0,r,!1),s,u,f);v.level="error",AE(v,{originalException:g,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function yW(e){TP(t=>{const{stackParser:n,attachStacktrace:r}=iC();if(mi()!==e||KE())return;const l=xW(t),s=O0(l)?AW(l):q0(n,l,void 0,r,!0);s.level="error",AE(s,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function xW(e){if(O0(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function AW(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function SW(e,t,n,r){const l=e.exception=e.exception||{},s=l.values=l.values||[],u=s[0]=s[0]||{},f=u.stacktrace=u.stacktrace||{},g=f.frames=f.frames||[],v=r,y=n,A=EW(t)??LS();return g.length===0&&g.push({colno:v,filename:A,function:qu,in_app:!0,lineno:y}),e}function rC(e){rb&&ft.log(`Global Handler attached: ${e}`)}function iC(){return mi()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function EW(e){if(!(!Ko(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e.slice(0,1024)}}const CW=()=>({name:"HttpContext",preprocessEvent(e){if(!Dr.navigator&&!Dr.location&&!Dr.document)return;const t=hM(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),wW="cause",kW=5,TW="LinkedErrors",_W=((e={})=>{const t=e.limit||kW,n=e.key||wW;return{name:TW,preprocessEvent(r,l,s){const u=s.getOptions();KD(K0,u.stackParser,n,t,r,l)}}});function OW(e){return[VD(),MD(),uW(),$M(),vW(),_W(),eM(),CW(),pW()]}const RW=!1,FW=OW().filter(e=>{const t=["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name);return t&&console.log(`[Sentry] Excluding integration: ${e.name}`),!t}),aC=new kM({dsn:"https://ffd963e90a83743e3fed7e00476fc6d8@sentry.hamravesh.com/9104",transport:VM,stackParser:JM,integrations:FW,tracesSampleRate:.1,tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/],debug:RW,environment:"production"}),uh=new vo;uh.setClient(aC);try{aC.init(),console.log("[Sentry] Client initialized successfully")}catch(e){console.error("[Sentry] Failed to initialize client:",e)}const ac=(e,t)=>((...n)=>{try{return t(...n)}catch(r){console.error(`${e} error:`,r),uh.captureException(r,{captureContext:{extra:{context:e}}})}}),ch=(e,t)=>((...n)=>{try{return t(...n).catch(r=>{throw r.name!=="AbortError"&&(console.error(`${e} async error:`,r),uh.captureException(r,{captureContext:{extra:{context:e}}})),r})}catch(r){throw r.name!=="AbortError"&&(console.error(`${e} error:`,r),uh.captureException(r,{captureContext:{extra:{context:e}}})),r}});async function IW(e,t=3){let n;for(let r=0;r<t;r++)try{return await e()}catch(l){if(n=l,r===t-1)throw n}throw n}const Xp="https://standardapi.dori.tech",ib={demoSharingData:`${Xp}/bot-sharing-data/`,streamChat:`${Xp}/stream-chat-with-assistant/`,searchProductLog:`${Xp}/search-selected-item-log`,getUploadUrl:`${Xp}/get-upload-url`},NW=ch("fetchBotDataBySharingID",async(e,t)=>IW(async()=>{const n=ib.demoSharingData+e+(t?`?product_id=${t}`:""),r=await fetch(n);if(r.status!==200)throw new Error(`Network response was not ok: ${r.status}`);return await r.json()},3)),PW=ch("sendMessageToStreamAPI",async(e,t,n,r,l,s,u,f)=>{const g=t.assistant_id;let v=e;const y={assistant_id:g,thread_id:n||void 0,src:typeof window<"u"?window.location.href:"",message:v,platform:"shopify_pdp",product_id:f||void 0};Object.keys(y).forEach(L=>y[L]===void 0&&delete y[L]);const A=new URLSearchParams({assistant_id:g}).toString(),C=`${ib.streamChat}?${A}`,w=await fetch(C,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(y),signal:u?.signal});if(u?.signal.aborted){console.log("after response abortController");return}if(w.status===429){l("You have exceeded the request limit. Please wait at least 24 hours and try again.");return}if(w.status===402){l("Hello 😊 The smart assistant for this business is currently inactive because its subscription has expired. If you have any questions, please contact the business directly. We hope to be at your service again soon!");return}if(!w.body)throw new Error("ReadableStream not supported in this environment.");const R=w.body.getReader(),N=new TextDecoder("utf-8");let Y="";for(;;){if(u?.signal.aborted){R.cancel();return}const{value:L,done:X}=await R.read();if(X)break;if(L){const V=N.decode(L,{stream:!0});Y+=V;let re=Y.indexOf("}{");for(;re!==-1;){const U=Y.slice(0,re+1);Y=Y.slice(re+1),ac("JSON parse in streaming",()=>{const J=JSON.parse(U);r(J)})(),re=Y.indexOf("}{")}Y.endsWith("}")&&ac("JSON parse remaining buffer",()=>{const U=JSON.parse(Y);r(U),Y=""})()}}s()}),zW=ch("trackProductClick",async(e,t,n)=>{const r={log:{assistant_id:t.assistant_id,thread_id:n,created_at:new Date().toISOString(),selected_item_id:e.id,tool_call_id:e.tool_call_id}};await fetch(ib.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)})}),lC={create_custom_product_card:"Preparing products to show you...",create_product_card:"Preparing products to show you...",create_order:"Starting the order process...",get_product_detail:"Finding product details for you...",product_retrieval:"Searching for the best options for you...",order_notes:"Adding your notes to the order...",order_persistence:"Saving your order carefully...",payment_processing:"Processing your payment information...",retrieve_faq:"Looking for the best answer for you...",prompt_recommendation:"",similar_products:"Looking for similar products for you...",track_order:"Checking your order status...",thinking:"Thinking..."},DW=e=>e&&e in lC?lC[e]:"Let me check for a moment...",oC=Te.createContext(void 0);function MW({children:e}){const[t,n]=Te.useState(null),[r,l]=Te.useState(!1),[s,u]=Te.useState(null),[f,g]=Te.useState(null),[v,y]=Te.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[A,C]=Te.useState([]),[w,R]=Te.useState("welcome"),[N,Y]=Te.useState(!1),[L,X]=Te.useState("starting"),V=Te.useRef(null),re=Te.useCallback(ce=>{y(_e=>({..._e,repliedProduct:ce}))},[]),U=Te.useCallback(()=>{V.current&&(V.current.abort(),V.current=null),y(ce=>({...ce,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),R("ongoing"),C(ce=>ce.filter(_e=>_e.type!=="loading"))},[]),J=Te.useCallback(ch("initializeBot",async(ce,_e)=>{if(!ce||ce.trim()===""){u("Invalid sharing ID provided"),console.error("Invalid sharing ID provided");return}l(!0),u(null),g(_e||null);const $=await NW(ce,_e||void 0);if(console.log("result",$),$.error){u($.error),console.error("Error initializing bot:",$.error);return}if($.data){const ue={...$.data,sharing_id:ce,suggestedReply:de($.data.suggested_prompts||$.data.suggestedReply)};n(ue),R("initial-greeting")}else u("No bot data found"),console.error("No bot data found")}),[]),de=ac("parseSuggestedReply",ce=>{if(!ce)return[];if(Array.isArray(ce))return ce;try{return JSON.parse(ce)}catch(_e){return console.error("Error parsing suggested reply:",_e),[]}}),ae=Te.useCallback(ac("addWelcomeMessage",()=>{const ce={id:Date.now().toString(),type:"welcome",timestamp:new Date,content:t?.wellcomeMessage||"Whatever you have in mind about your purchase, I'm here to help you!"};C(_e=>[..._e,ce])}),[t?.wellcomeMessage]),ie=Te.useCallback(ch("sendMessage",async({message:ce,apiMessage:_e},$)=>{if(!t||N)return;const ue={id:Date.now().toString(),type:"user",content:ce,timestamp:new Date,repliedProduct:$};C(ve=>[...ve.filter(xe=>xe.type!=="suggestions"),ue]),V.current&&(V.current.abort(),V.current=null),R("thinking"),Y(!0),X("generating"),y(ve=>({...ve,isRequestInProgress:!0})),V.current=new AbortController;let z={id:(Date.now()+1).toString(),type:"loading",content:"Let me check for a moment...",timestamp:new Date};C(ve=>[...ve,z]);let Q=_e||ce;$&&(Q=`this message is replied to product with id ${$.id}: ${ce}`);let Ce="",Ee=null,k=[],B=[];try{await PW(Q,t,v.threadId,ve=>{ac("streaming chunk handler",()=>{if(console.log("[StreamChatResponse chunk received]:",ve),ve.thread_id)console.log("[StreamChatResponse] thread_id received:",ve.thread_id),y(D=>({...D,threadId:ve.thread_id||null}));else if(ve.wait)console.log("[StreamChatResponse] wait received, creating new message session"),Ee&&Ce.trim()&&C(D=>D.map(xe=>xe.id===Ee?.id?{...xe,content:Ce}:xe)),Ee=null,Ce="",C(D=>[...D.filter(Ve=>Ve.type!=="loading"),{id:(Date.now()+Math.random()).toString(),type:"loading",content:DW(ve.tool_name),timestamp:new Date}]);else if(ve.text)if(console.log("[StreamChatResponse] text chunk received:",ve.text),Ce+=ve.text,Ee)console.log("[StreamChatResponse] Updating existing bot message with:",Ce),C(D=>D.map(xe=>xe.id===Ee?.id?{...xe,content:Ce}:xe));else{console.log("[StreamChatResponse] Creating new bot message:",Ce);const D={id:(Date.now()+Math.random()).toString(),type:"mori",content:Ce,timestamp:new Date};C(xe=>[...xe.filter(De=>De.type!=="loading"),D]),Ee=D}else ve.products&&ve.products.length>0?(console.log("[StreamChatResponse] products received:",ve.products),k=[...k,...ve.products],C(D=>{const Ve=[...D.filter(ye=>ye.type!=="loading")],De=Ve.findIndex(ye=>ye.id===Ee?.id),ht={id:(Date.now()+3).toString(),type:"products",content:"Suggested products:",timestamp:new Date,products:k,tool_call_id:ve.products?.[0]?.tool_call_id||""};return De!==-1?(console.log("[StreamChatResponse] Inserting/updating product message after current bot message"),Ve.splice(De+1,0,ht)):(console.log("[StreamChatResponse] No current bot message found, pushing product message to end"),Ve.push(ht)),Ve}),console.log("Products accumulated and displayed:",k)):ve.suggestions&&ve.suggestions.length>0&&(B=[...B,...ve.suggestions])})()},ve=>{if(V.current?.signal.aborted){V.current=null,y(D=>({...D,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),R("ongoing"),C(D=>D.filter(xe=>xe.type!=="loading"));return}C(D=>[...D.filter(xe=>xe.type!=="loading"),{id:(Date.now()+2).toString(),type:"mori",content:ve,timestamp:new Date}]),R("ongoing")},()=>{B.length>0&&C(ve=>{const xe=[...ve.filter(ht=>ht.type!=="suggestions"&&ht.type!=="loading")],Ve=xe.findIndex(ht=>ht.id===Ee?.id),De={id:(Date.now()+4).toString(),type:"suggestions",content:"Suggestions:",timestamp:new Date,suggestions:B};return Ve!==-1?xe.splice(Ve+1,0,De):xe.push(De),xe}),V.current=null,y(ve=>({...ve,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),R("ongoing")},V.current,f)}catch(ve){V.current?.signal.aborted||ve.name==="AbortError"?(V.current=null,y(D=>({...D,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),R("ongoing"),C(D=>D.filter(xe=>xe.type!=="loading"))):(console.error("Error in sendMessage:",ve),C(D=>[...D.filter(xe=>xe.type!=="loading"),{id:(Date.now()+2).toString(),type:"mori",content:"Unfortunately, an error occurred. Please try again.",timestamp:new Date}]),R("ongoing"),y(D=>({...D,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),V.current=null)}}),[t,N,v.threadId]),H=Te.useCallback(()=>{V.current&&(V.current.abort(),V.current=null),n(null),C([]),R("welcome"),Y(!1),X("starting"),y({repliedProduct:null,threadId:null,isRequestInProgress:!1})},[]),Ae={botData:t,isLoadingBot:r,botError:s,chatState:v,messages:A,currentStep:w,isInputDisabled:N,inputState:L,initializeBot:J,sendMessage:ie,stopCurrentRequest:U,setCurrentStep:R,setInputState:X,addWelcomeMessage:ae,setRepliedProduct:re,resetBot:H};return ne.jsx(oC.Provider,{value:Ae,children:e})}function bo(){const e=Te.useContext(oC);if(e===void 0)throw new Error("useChatContext must be used within a ChatProvider");return e}function gG(){}function pG(){}function WW(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const LW=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YW=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VW={};function sC(e,t){return(VW.jsx?YW:LW).test(e)}const XW=/[ \t\n\f\r]/g;function BW(e){return typeof e=="object"?e.type==="text"?uC(e.value):!1:uC(e)}function uC(e){return e.replace(XW,"")===""}class fh{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}fh.prototype.normal={},fh.prototype.property={},fh.prototype.space=void 0;function cC(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new fh(n,r,t)}function ab(e){return e.toLowerCase()}class Wi{constructor(t,n){this.attribute=n,this.property=t}}Wi.prototype.attribute="",Wi.prototype.booleanish=!1,Wi.prototype.boolean=!1,Wi.prototype.commaOrSpaceSeparated=!1,Wi.prototype.commaSeparated=!1,Wi.prototype.defined=!1,Wi.prototype.mustUseProperty=!1,Wi.prototype.number=!1,Wi.prototype.overloadedBoolean=!1,Wi.prototype.property="",Wi.prototype.spaceSeparated=!1,Wi.prototype.space=void 0;let HW=0;const vt=lc(),lr=lc(),lb=lc(),Me=lc(),vn=lc(),kf=lc(),oa=lc();function lc(){return 2**++HW}const ob=Object.freeze(Object.defineProperty({__proto__:null,boolean:vt,booleanish:lr,commaOrSpaceSeparated:oa,commaSeparated:kf,number:Me,overloadedBoolean:lb,spaceSeparated:vn},Symbol.toStringTag,{value:"Module"})),sb=Object.keys(ob);class ub extends Wi{constructor(t,n,r,l){let s=-1;if(super(t,n),fC(this,"space",l),typeof r=="number")for(;++s<sb.length;){const u=sb[s];fC(this,sb[s],(r&ob[u])===ob[u])}}}ub.prototype.defined=!0;function fC(e,t,n){n&&(e[t]=n)}function Tf(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const s=new ub(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[ab(r)]=r,n[ab(s.attribute)]=r}return new fh(t,n,e.space)}const dC=Tf({properties:{ariaActiveDescendant:null,ariaAtomic:lr,ariaAutoComplete:null,ariaBusy:lr,ariaChecked:lr,ariaColCount:Me,ariaColIndex:Me,ariaColSpan:Me,ariaControls:vn,ariaCurrent:null,ariaDescribedBy:vn,ariaDetails:null,ariaDisabled:lr,ariaDropEffect:vn,ariaErrorMessage:null,ariaExpanded:lr,ariaFlowTo:vn,ariaGrabbed:lr,ariaHasPopup:null,ariaHidden:lr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vn,ariaLevel:Me,ariaLive:null,ariaModal:lr,ariaMultiLine:lr,ariaMultiSelectable:lr,ariaOrientation:null,ariaOwns:vn,ariaPlaceholder:null,ariaPosInSet:Me,ariaPressed:lr,ariaReadOnly:lr,ariaRelevant:null,ariaRequired:lr,ariaRoleDescription:vn,ariaRowCount:Me,ariaRowIndex:Me,ariaRowSpan:Me,ariaSelected:lr,ariaSetSize:Me,ariaSort:null,ariaValueMax:Me,ariaValueMin:Me,ariaValueNow:Me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hC(e,t){return t in e?e[t]:t}function gC(e,t){return hC(e,t.toLowerCase())}const UW=Tf({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kf,acceptCharset:vn,accessKey:vn,action:null,allow:null,allowFullScreen:vt,allowPaymentRequest:vt,allowUserMedia:vt,alt:null,as:null,async:vt,autoCapitalize:null,autoComplete:vn,autoFocus:vt,autoPlay:vt,blocking:vn,capture:null,charSet:null,checked:vt,cite:null,className:vn,cols:Me,colSpan:null,content:null,contentEditable:lr,controls:vt,controlsList:vn,coords:Me|kf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:vt,defer:vt,dir:null,dirName:null,disabled:vt,download:lb,draggable:lr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:vt,formTarget:null,headers:vn,height:Me,hidden:lb,high:Me,href:null,hrefLang:null,htmlFor:vn,httpEquiv:vn,id:null,imageSizes:null,imageSrcSet:null,inert:vt,inputMode:null,integrity:null,is:null,isMap:vt,itemId:null,itemProp:vn,itemRef:vn,itemScope:vt,itemType:vn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:vt,low:Me,manifest:null,max:null,maxLength:Me,media:null,method:null,min:null,minLength:Me,multiple:vt,muted:vt,name:null,nonce:null,noModule:vt,noValidate:vt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:vt,optimum:Me,pattern:null,ping:vn,placeholder:null,playsInline:vt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:vt,referrerPolicy:null,rel:vn,required:vt,reversed:vt,rows:Me,rowSpan:Me,sandbox:vn,scope:null,scoped:vt,seamless:vt,selected:vt,shadowRootClonable:vt,shadowRootDelegatesFocus:vt,shadowRootMode:null,shape:null,size:Me,sizes:null,slot:null,span:Me,spellCheck:lr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Me,step:null,style:null,tabIndex:Me,target:null,title:null,translate:null,type:null,typeMustMatch:vt,useMap:null,value:lr,width:Me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vn,axis:null,background:null,bgColor:null,border:Me,borderColor:null,bottomMargin:Me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:vt,declare:vt,event:null,face:null,frame:null,frameBorder:null,hSpace:Me,leftMargin:Me,link:null,longDesc:null,lowSrc:null,marginHeight:Me,marginWidth:Me,noResize:vt,noHref:vt,noShade:vt,noWrap:vt,object:null,profile:null,prompt:null,rev:null,rightMargin:Me,rules:null,scheme:null,scrolling:lr,standby:null,summary:null,text:null,topMargin:Me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:vt,disableRemotePlayback:vt,prefix:null,property:null,results:Me,security:null,unselectable:null},space:"html",transform:gC}),GW=Tf({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:oa,accentHeight:Me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Me,amplitude:Me,arabicForm:null,ascent:Me,attributeName:null,attributeType:null,azimuth:Me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Me,by:null,calcMode:null,capHeight:Me,className:vn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Me,diffuseConstant:Me,direction:null,display:null,dur:null,divisor:Me,dominantBaseline:null,download:vt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Me,enableBackground:null,end:null,event:null,exponent:Me,externalResourcesRequired:null,fill:null,fillOpacity:Me,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:kf,g2:kf,glyphName:kf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Me,horizOriginX:Me,horizOriginY:Me,id:null,ideographic:Me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Me,k:Me,k1:Me,k2:Me,k3:Me,k4:Me,kernelMatrix:oa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Me,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Me,overlineThickness:Me,paintOrder:null,panose1:null,path:null,pathLength:Me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Me,pointsAtY:Me,pointsAtZ:Me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oa,rev:oa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oa,requiredFeatures:oa,requiredFonts:oa,requiredFormats:oa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Me,specularExponent:Me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Me,strikethroughThickness:Me,string:null,stroke:null,strokeDashArray:oa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Me,strokeOpacity:Me,strokeWidth:null,style:null,surfaceScale:Me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oa,tabIndex:Me,tableValues:null,target:null,targetX:Me,targetY:Me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Me,underlineThickness:Me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Me,values:null,vAlphabetic:Me,vMathematical:Me,vectorEffect:null,vHanging:Me,vIdeographic:Me,version:null,vertAdvY:Me,vertOriginX:Me,vertOriginY:Me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hC}),pC=Tf({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),mC=Tf({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gC}),vC=Tf({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ZW={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},QW=/[A-Z]/g,bC=/-[a-z]/g,KW=/^data[-\w.:]+$/i;function jW(e,t){const n=ab(t);let r=t,l=Wi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&KW.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(bC,qW);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!bC.test(s)){let u=s.replace(QW,JW);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=ub}return new l(r,t)}function JW(e){return"-"+e.toLowerCase()}function qW(e){return e.charAt(1).toUpperCase()}const $W=cC([dC,UW,pC,mC,vC],"html"),cb=cC([dC,GW,pC,mC,vC],"svg");function e8(e){return e.join(" ").trim()}var _f={},fb,yC;function t8(){if(yC)return fb;yC=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,g=`
|
79
|
-
`,v="/",y="*",A="",C="comment",w="declaration";fb=function(N,Y){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];Y=Y||{};var L=1,X=1;function V(_e){var $=_e.match(t);$&&(L+=$.length);var ue=_e.lastIndexOf(g);X=~ue?_e.length-ue:X+_e.length}function re(){var _e={line:L,column:X};return function($){return $.position=new U(_e),ae(),$}}function U(_e){this.start=_e,this.end={line:L,column:X},this.source=Y.source}U.prototype.content=N;function J(_e){var $=new Error(Y.source+":"+L+":"+X+": "+_e);if($.reason=_e,$.filename=Y.source,$.line=L,$.column=X,$.source=N,!Y.silent)throw $}function de(_e){var $=_e.exec(N);if($){var ue=$[0];return V(ue),N=N.slice(ue.length),$}}function ae(){de(n)}function ie(_e){var $;for(_e=_e||[];$=H();)$!==!1&&_e.push($);return _e}function H(){var _e=re();if(!(v!=N.charAt(0)||y!=N.charAt(1))){for(var $=2;A!=N.charAt($)&&(y!=N.charAt($)||v!=N.charAt($+1));)++$;if($+=2,A===N.charAt($-1))return J("End of comment missing");var ue=N.slice(2,$-2);return X+=2,V(ue),N=N.slice($),X+=2,_e({type:C,comment:ue})}}function Ae(){var _e=re(),$=de(r);if($){if(H(),!de(l))return J("property missing ':'");var ue=de(s),z=_e({type:w,property:R($[0].replace(e,A)),value:ue?R(ue[0].replace(e,A)):A});return de(u),z}}function ce(){var _e=[];ie(_e);for(var $;$=Ae();)$!==!1&&(_e.push($),ie(_e));return _e}return ae(),ce()};function R(N){return N?N.replace(f,A):A}return fb}var xC;function n8(){if(xC)return _f;xC=1;var e=_f&&_f.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_f,"__esModule",{value:!0}),_f.default=n;var t=e(t8());function n(r,l){var s=null;if(!r||typeof r!="string")return s;var u=(0,t.default)(r),f=typeof l=="function";return u.forEach(function(g){if(g.type==="declaration"){var v=g.property,y=g.value;f?l(v,y,g):y&&(s=s||{},s[v]=y)}}),s}return _f}var dh={},AC;function r8(){if(AC)return dh;AC=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(v){return!v||n.test(v)||e.test(v)},u=function(v,y){return y.toUpperCase()},f=function(v,y){return"".concat(y,"-")},g=function(v,y){return y===void 0&&(y={}),s(v)?v:(v=v.toLowerCase(),y.reactCompat?v=v.replace(l,f):v=v.replace(r,f),v.replace(t,u))};return dh.camelCase=g,dh}var hh,SC;function i8(){if(SC)return hh;SC=1;var e=hh&&hh.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(n8()),n=r8();function r(l,s){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(f,g){f&&g&&(u[(0,n.camelCase)(f,s)]=g)}),u}return r.default=r,hh=r,hh}var a8=i8();const l8=zu(a8),EC=CC("end"),db=CC("start");function CC(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function o8(e){const t=db(e),n=EC(e);if(t&&n)return{start:t,end:n}}function gh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?wC(e.position):"start"in e||"end"in e?wC(e):"line"in e||"column"in e?hb(e):""}function hb(e){return kC(e&&e.line)+":"+kC(e&&e.column)}function wC(e){return hb(e&&e.start)+"-"+hb(e&&e.end)}function kC(e){return e&&typeof e=="number"?e:1}class ii extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?l=t:!s.cause&&t&&(u=!0,l=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const g=r.indexOf(":");g===-1?s.ruleId=r:(s.source=r.slice(0,g),s.ruleId=r.slice(g+1))}if(!s.place&&s.ancestors&&s.ancestors){const g=s.ancestors[s.ancestors.length-1];g&&(s.place=g.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=gh(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ii.prototype.file="",ii.prototype.name="",ii.prototype.reason="",ii.prototype.message="",ii.prototype.stack="",ii.prototype.column=void 0,ii.prototype.line=void 0,ii.prototype.ancestors=void 0,ii.prototype.cause=void 0,ii.prototype.fatal=void 0,ii.prototype.place=void 0,ii.prototype.ruleId=void 0,ii.prototype.source=void 0;const gb={}.hasOwnProperty,s8=new Map,u8=/[A-Z]/g,c8=new Set(["table","tbody","thead","tfoot","tr"]),f8=new Set(["td","th"]),TC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function d8(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=x8(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=y8(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?cb:$W,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=_C(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function _C(e,t,n){if(t.type==="element")return h8(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return g8(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return m8(e,t,n);if(t.type==="mdxjsEsm")return p8(e,t);if(t.type==="root")return v8(e,t,n);if(t.type==="text")return b8(e,t)}function h8(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=cb,e.schema=l),e.ancestors.push(t);const s=RC(e,t.tagName,!1),u=A8(e,t);let f=mb(e,t);return c8.has(t.tagName)&&(f=f.filter(function(g){return typeof g=="string"?!BW(g):!0})),OC(e,u,s,t),pb(u,f),e.ancestors.pop(),e.schema=r,e.create(t,s,u,n)}function g8(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ph(e,t.position)}function p8(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ph(e,t.position)}function m8(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=cb,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:RC(e,t.name,!0),u=S8(e,t),f=mb(e,t);return OC(e,u,s,t),pb(u,f),e.ancestors.pop(),e.schema=r,e.create(t,s,u,n)}function v8(e,t,n){const r={};return pb(r,mb(e,t)),e.create(t,e.Fragment,r,n)}function b8(e,t){return t.value}function OC(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function pb(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function y8(e,t,n){return r;function r(l,s,u,f){const v=Array.isArray(u.children)?n:t;return f?v(s,u,f):v(s,u)}}function x8(e,t){return n;function n(r,l,s,u){const f=Array.isArray(s.children),g=db(r);return t(l,s,u,f,{columnNumber:g?g.column-1:void 0,fileName:e,lineNumber:g?g.line:void 0},void 0)}}function A8(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&gb.call(t.properties,l)){const s=E8(e,l,t.properties[l]);if(s){const[u,f]=s;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&f8.has(t.tagName)?r=f:n[u]=f}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function S8(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const u=s.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else ph(e,t.position);else{const l=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const f=r.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else ph(e,t.position);else s=r.value===null?!0:r.value;n[l]=s}return n}function mb(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:s8;for(;++r<t.children.length;){const s=t.children[r];let u;if(e.passKeys){const g=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(g){const v=l.get(g)||0;u=g+"-"+v,l.set(g,v+1)}}const f=_C(e,s,u);f!==void 0&&n.push(f)}return n}function E8(e,t,n){const r=jW(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?WW(n):e8(n)),r.property==="style"){let l=typeof n=="object"?n:C8(e,String(n));return e.stylePropertyNameCase==="css"&&(l=w8(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?ZW[r.property]||r.property:r.attribute,n]}}function C8(e,t){try{return l8(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new ii("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=TC+"#cannot-parse-style-attribute",l}}function RC(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let s=-1,u;for(;++s<l.length;){const f=sC(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}r=u}else r=sC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return gb.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);ph(e)}function ph(e,t){const n=new ii("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=TC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function w8(e){const t={};let n;for(n in e)gb.call(e,n)&&(t[k8(n)]=e[n]);return t}function k8(e){let t=e.replace(u8,T8);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function T8(e){return"-"+e.toLowerCase()}const vb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_8={};function bb(e,t){const n=_8,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return FC(e,r,l)}function FC(e,t,n){if(O8(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return IC(e.children,t,n)}return Array.isArray(e)?IC(e,t,n):""}function IC(e,t,n){const r=[];let l=-1;for(;++l<e.length;)r[l]=FC(e[l],t,n);return r.join("")}function O8(e){return!!(e&&typeof e=="object")}const NC=document.createElement("i");function yb(e){const t="&"+e+";";NC.innerHTML=t;const n=NC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function sa(e,t,n,r){const l=e.length;let s=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);s<r.length;)u=r.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function Ha(e,t){return e.length>0?(sa(e,e.length,0,t),e):t}const PC={}.hasOwnProperty;function zC(e){const t={};let n=-1;for(;++n<e.length;)R8(t,e[n]);return t}function R8(e,t){let n;for(n in t){const l=(PC.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let u;if(s)for(u in s){PC.call(l,u)||(l[u]=[]);const f=s[u];F8(l[u],Array.isArray(f)?f:f?[f]:[])}}}function F8(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);sa(e,0,0,r)}function DC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function bl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bi=Xs(/[A-Za-z]/),ai=Xs(/[\dA-Za-z]/),I8=Xs(/[#-'*+\--9=?A-Z^-~]/);function Bp(e){return e!==null&&(e<32||e===127)}const xb=Xs(/\d/),N8=Xs(/[\dA-Fa-f]/),P8=Xs(/[!-/:-@[-`{-~]/);function $e(e){return e!==null&&e<-2}function hn(e){return e!==null&&(e<0||e===32)}function Ct(e){return e===-2||e===-1||e===32}const Hp=Xs(new RegExp("\\p{P}|\\p{S}","u")),oc=Xs(/\s/);function Xs(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Of(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const s=e.charCodeAt(n);let u="";if(s===37&&ai(e.charCodeAt(n+1))&&ai(e.charCodeAt(n+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(n+1);s<56320&&f>56319&&f<57344?(u=String.fromCharCode(s,f),l=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+l+1,u=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function It(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(g){return Ct(g)?(e.enter(n),f(g)):t(g)}function f(g){return Ct(g)&&s++<l?(e.consume(g),f):(e.exit(n),t(g))}}const z8={tokenize:D8};function D8(e){const t=e.attempt(this.parser.constructs.contentInitial,r,l);let n;return t;function r(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),It(e,t,"linePrefix")}function l(f){return e.enter("paragraph"),s(f)}function s(f){const g=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=g),n=g,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return $e(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),u)}}const M8={tokenize:W8},MC={tokenize:L8};function W8(e){const t=this,n=[];let r=0,l,s,u;return f;function f(V){if(r<n.length){const re=n[r];return t.containerState=re[1],e.attempt(re[0].continuation,g,v)(V)}return v(V)}function g(V){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&X();const re=t.events.length;let U=re,J;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){J=t.events[U][1].end;break}L(r);let de=re;for(;de<t.events.length;)t.events[de][1].end={...J},de++;return sa(t.events,U+1,0,t.events.slice(re)),t.events.length=de,v(V)}return f(V)}function v(V){if(r===n.length){if(!l)return C(V);if(l.currentConstruct&&l.currentConstruct.concrete)return R(V);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(MC,y,A)(V)}function y(V){return l&&X(),L(r),C(V)}function A(V){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,R(V)}function C(V){return t.containerState={},e.attempt(MC,w,R)(V)}function w(V){return r++,n.push([t.currentConstruct,t.containerState]),C(V)}function R(V){if(V===null){l&&X(),L(0),e.consume(V);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),N(V)}function N(V){if(V===null){Y(e.exit("chunkFlow"),!0),L(0),e.consume(V);return}return $e(V)?(e.consume(V),Y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,f):(e.consume(V),N)}function Y(V,re){const U=t.sliceStream(V);if(re&&U.push(null),V.previous=s,s&&(s.next=V),s=V,l.defineSkip(V.start),l.write(U),t.parser.lazy[V.start.line]){let J=l.events.length;for(;J--;)if(l.events[J][1].start.offset<u&&(!l.events[J][1].end||l.events[J][1].end.offset>u))return;const de=t.events.length;let ae=de,ie,H;for(;ae--;)if(t.events[ae][0]==="exit"&&t.events[ae][1].type==="chunkFlow"){if(ie){H=t.events[ae][1].end;break}ie=!0}for(L(r),J=de;J<t.events.length;)t.events[J][1].end={...H},J++;sa(t.events,ae+1,0,t.events.slice(de)),t.events.length=J}}function L(V){let re=n.length;for(;re-- >V;){const U=n[re];t.containerState=U[1],U[0].exit.call(t,e)}n.length=V}function X(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function L8(e,t,n){return It(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Rf(e){if(e===null||hn(e)||oc(e))return 1;if(Hp(e))return 2}function Up(e,t,n){const r=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Ab={name:"attention",resolveAll:Y8,tokenize:V8};function Y8(e,t){let n=-1,r,l,s,u,f,g,v,y;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;g=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const A={...e[r][1].end},C={...e[n][1].start};WC(A,-g),WC(C,g),u={type:g>1?"strongSequence":"emphasisSequence",start:A,end:{...e[r][1].end}},f={type:g>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:C},s={type:g>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},l={type:g>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[r][1].end={...u.start},e[n][1].start={...f.end},v=[],e[r][1].end.offset-e[r][1].start.offset&&(v=Ha(v,[["enter",e[r][1],t],["exit",e[r][1],t]])),v=Ha(v,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",s,t]]),v=Ha(v,Up(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),v=Ha(v,[["exit",s,t],["enter",f,t],["exit",f,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(y=2,v=Ha(v,[["enter",e[n][1],t],["exit",e[n][1],t]])):y=0,sa(e,r-1,n-r+3,v),n=r+v.length-y-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function V8(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=Rf(r);let s;return u;function u(g){return s=g,e.enter("attentionSequence"),f(g)}function f(g){if(g===s)return e.consume(g),f;const v=e.exit("attentionSequence"),y=Rf(g),A=!y||y===2&&l||n.includes(g),C=!l||l===2&&y||n.includes(r);return v._open=!!(s===42?A:A&&(l||!C)),v._close=!!(s===42?C:C&&(y||!A)),t(g)}}function WC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const X8={name:"autolink",tokenize:B8};function B8(e,t,n){let r=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return bi(w)?(e.consume(w),u):w===64?n(w):v(w)}function u(w){return w===43||w===45||w===46||ai(w)?(r=1,f(w)):v(w)}function f(w){return w===58?(e.consume(w),r=0,g):(w===43||w===45||w===46||ai(w))&&r++<32?(e.consume(w),f):(r=0,v(w))}function g(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||Bp(w)?n(w):(e.consume(w),g)}function v(w){return w===64?(e.consume(w),y):I8(w)?(e.consume(w),v):n(w)}function y(w){return ai(w)?A(w):n(w)}function A(w){return w===46?(e.consume(w),r=0,y):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):C(w)}function C(w){if((w===45||ai(w))&&r++<63){const R=w===45?C:A;return e.consume(w),R}return n(w)}}const mh={partial:!0,tokenize:H8};function H8(e,t,n){return r;function r(s){return Ct(s)?It(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||$e(s)?t(s):n(s)}}const LC={continuation:{tokenize:G8},exit:Z8,name:"blockQuote",tokenize:U8};function U8(e,t,n){const r=this;return l;function l(u){if(u===62){const f=r.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return n(u)}function s(u){return Ct(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function G8(e,t,n){const r=this;return l;function l(u){return Ct(u)?It(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(LC,t,n)(u)}}function Z8(e){e.exit("blockQuote")}const YC={name:"characterEscape",tokenize:Q8};function Q8(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return P8(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const VC={name:"characterReference",tokenize:K8};function K8(e,t,n){const r=this;let l=0,s,u;return f;function f(A){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(A),e.exit("characterReferenceMarker"),g}function g(A){return A===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(A),e.exit("characterReferenceMarkerNumeric"),v):(e.enter("characterReferenceValue"),s=31,u=ai,y(A))}function v(A){return A===88||A===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(A),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=N8,y):(e.enter("characterReferenceValue"),s=7,u=xb,y(A))}function y(A){if(A===59&&l){const C=e.exit("characterReferenceValue");return u===ai&&!yb(r.sliceSerialize(C))?n(A):(e.enter("characterReferenceMarker"),e.consume(A),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(A)&&l++<s?(e.consume(A),y):n(A)}}const XC={partial:!0,tokenize:J8},BC={concrete:!0,name:"codeFenced",tokenize:j8};function j8(e,t,n){const r=this,l={partial:!0,tokenize:U};let s=0,u=0,f;return g;function g(J){return v(J)}function v(J){const de=r.events[r.events.length-1];return s=de&&de[1].type==="linePrefix"?de[2].sliceSerialize(de[1],!0).length:0,f=J,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(J)}function y(J){return J===f?(u++,e.consume(J),y):u<3?n(J):(e.exit("codeFencedFenceSequence"),Ct(J)?It(e,A,"whitespace")(J):A(J))}function A(J){return J===null||$e(J)?(e.exit("codeFencedFence"),r.interrupt?t(J):e.check(XC,N,re)(J)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),C(J))}function C(J){return J===null||$e(J)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),A(J)):Ct(J)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),It(e,w,"whitespace")(J)):J===96&&J===f?n(J):(e.consume(J),C)}function w(J){return J===null||$e(J)?A(J):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),R(J))}function R(J){return J===null||$e(J)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),A(J)):J===96&&J===f?n(J):(e.consume(J),R)}function N(J){return e.attempt(l,re,Y)(J)}function Y(J){return e.enter("lineEnding"),e.consume(J),e.exit("lineEnding"),L}function L(J){return s>0&&Ct(J)?It(e,X,"linePrefix",s+1)(J):X(J)}function X(J){return J===null||$e(J)?e.check(XC,N,re)(J):(e.enter("codeFlowValue"),V(J))}function V(J){return J===null||$e(J)?(e.exit("codeFlowValue"),X(J)):(e.consume(J),V)}function re(J){return e.exit("codeFenced"),t(J)}function U(J,de,ae){let ie=0;return H;function H(ue){return J.enter("lineEnding"),J.consume(ue),J.exit("lineEnding"),Ae}function Ae(ue){return J.enter("codeFencedFence"),Ct(ue)?It(J,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ue):ce(ue)}function ce(ue){return ue===f?(J.enter("codeFencedFenceSequence"),_e(ue)):ae(ue)}function _e(ue){return ue===f?(ie++,J.consume(ue),_e):ie>=u?(J.exit("codeFencedFenceSequence"),Ct(ue)?It(J,$,"whitespace")(ue):$(ue)):ae(ue)}function $(ue){return ue===null||$e(ue)?(J.exit("codeFencedFence"),de(ue)):ae(ue)}}}function J8(e,t,n){const r=this;return l;function l(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const Sb={name:"codeIndented",tokenize:$8},q8={partial:!0,tokenize:eL};function $8(e,t,n){const r=this;return l;function l(v){return e.enter("codeIndented"),It(e,s,"linePrefix",5)(v)}function s(v){const y=r.events[r.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(v):n(v)}function u(v){return v===null?g(v):$e(v)?e.attempt(q8,u,g)(v):(e.enter("codeFlowValue"),f(v))}function f(v){return v===null||$e(v)?(e.exit("codeFlowValue"),u(v)):(e.consume(v),f)}function g(v){return e.exit("codeIndented"),t(v)}}function eL(e,t,n){const r=this;return l;function l(u){return r.parser.lazy[r.now().line]?n(u):$e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):It(e,s,"linePrefix",5)(u)}function s(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):$e(u)?l(u):n(u)}}const tL={name:"codeText",previous:rL,resolve:nL,tokenize:iL};function nL(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)l===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(l=r):(r===t||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),t-=r-l-2,r=l+2),l=void 0);return e}function rL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iL(e,t,n){let r=0,l,s;return u;function u(A){return e.enter("codeText"),e.enter("codeTextSequence"),f(A)}function f(A){return A===96?(e.consume(A),r++,f):(e.exit("codeTextSequence"),g(A))}function g(A){return A===null?n(A):A===32?(e.enter("space"),e.consume(A),e.exit("space"),g):A===96?(s=e.enter("codeTextSequence"),l=0,y(A)):$e(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),g):(e.enter("codeTextData"),v(A))}function v(A){return A===null||A===32||A===96||$e(A)?(e.exit("codeTextData"),g(A)):(e.consume(A),v)}function y(A){return A===96?(e.consume(A),l++,y):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(A)):(s.type="codeTextData",v(A))}}class aL{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const l=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&vh(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),vh(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vh(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);vh(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vh(this.left,n.reverse())}}}function vh(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function HC(e){const t={};let n=-1,r,l,s,u,f,g,v;const y=new aL(e);for(;++n<y.length;){for(;n in t;)n=t[n];if(r=y.get(n),n&&r[1].type==="chunkFlow"&&y.get(n-1)[1].type==="listItemPrefix"&&(g=r[1]._tokenizer.events,s=0,s<g.length&&g[s][1].type==="lineEndingBlank"&&(s+=2),s<g.length&&g[s][1].type==="content"))for(;++s<g.length&&g[s][1].type!=="content";)g[s][1].type==="chunkText"&&(g[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,lL(y,n)),n=t[n],v=!0);else if(r[1]._container){for(s=n,l=void 0;s--;)if(u=y.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(y.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(r[1].end={...y.get(l)[1].start},f=y.slice(l,n),f.unshift(r),y.splice(l,n-l+1,f))}}return sa(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!v}function lL(e,t){const n=e.get(t)[1],r=e.get(t)[2];let l=t-1;const s=[];let u=n._tokenizer;u||(u=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,g=[],v={};let y,A,C=-1,w=n,R=0,N=0;const Y=[N];for(;w;){for(;e.get(++l)[1]!==w;);s.push(l),w._tokenizer||(y=r.sliceStream(w),w.next||y.push(null),A&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),A=w,w=w.next}for(w=n;++C<f.length;)f[C][0]==="exit"&&f[C-1][0]==="enter"&&f[C][1].type===f[C-1][1].type&&f[C][1].start.line!==f[C][1].end.line&&(N=C+1,Y.push(N),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):Y.pop(),C=Y.length;C--;){const L=f.slice(Y[C],Y[C+1]),X=s.pop();g.push([X,X+L.length-1]),e.splice(X,2,L)}for(g.reverse(),C=-1;++C<g.length;)v[R+g[C][0]]=R+g[C][1],R+=g[C][1]-g[C][0]-1;return v}const oL={resolve:uL,tokenize:cL},sL={partial:!0,tokenize:fL};function uL(e){return HC(e),e}function cL(e,t){let n;return r;function r(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?s(f):$e(f)?e.check(sL,u,s)(f):(e.consume(f),l)}function s(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function fL(e,t,n){const r=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),It(e,s,"linePrefix")}function s(u){if(u===null||$e(u))return n(u);const f=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function UC(e,t,n,r,l,s,u,f,g){const v=g||Number.POSITIVE_INFINITY;let y=0;return A;function A(L){return L===60?(e.enter(r),e.enter(l),e.enter(s),e.consume(L),e.exit(s),C):L===null||L===32||L===41||Bp(L)?n(L):(e.enter(r),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),N(L))}function C(L){return L===62?(e.enter(s),e.consume(L),e.exit(s),e.exit(l),e.exit(r),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===62?(e.exit("chunkString"),e.exit(f),C(L)):L===null||L===60||$e(L)?n(L):(e.consume(L),L===92?R:w)}function R(L){return L===60||L===62||L===92?(e.consume(L),w):w(L)}function N(L){return!y&&(L===null||L===41||hn(L))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(r),t(L)):y<v&&L===40?(e.consume(L),y++,N):L===41?(e.consume(L),y--,N):L===null||L===32||L===40||Bp(L)?n(L):(e.consume(L),L===92?Y:N)}function Y(L){return L===40||L===41||L===92?(e.consume(L),N):N(L)}}function GC(e,t,n,r,l,s){const u=this;let f=0,g;return v;function v(w){return e.enter(r),e.enter(l),e.consume(w),e.exit(l),e.enter(s),y}function y(w){return f>999||w===null||w===91||w===93&&!g||w===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(w):w===93?(e.exit(s),e.enter(l),e.consume(w),e.exit(l),e.exit(r),t):$e(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),A(w))}function A(w){return w===null||w===91||w===93||$e(w)||f++>999?(e.exit("chunkString"),y(w)):(e.consume(w),g||(g=!Ct(w)),w===92?C:A)}function C(w){return w===91||w===92||w===93?(e.consume(w),f++,A):A(w)}}function ZC(e,t,n,r,l,s){let u;return f;function f(C){return C===34||C===39||C===40?(e.enter(r),e.enter(l),e.consume(C),e.exit(l),u=C===40?41:C,g):n(C)}function g(C){return C===u?(e.enter(l),e.consume(C),e.exit(l),e.exit(r),t):(e.enter(s),v(C))}function v(C){return C===u?(e.exit(s),g(u)):C===null?n(C):$e(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),It(e,v,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===u||C===null||$e(C)?(e.exit("chunkString"),v(C)):(e.consume(C),C===92?A:y)}function A(C){return C===u||C===92?(e.consume(C),y):y(C)}}function bh(e,t){let n;return r;function r(l){return $e(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):Ct(l)?It(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const dL={name:"definition",tokenize:gL},hL={partial:!0,tokenize:pL};function gL(e,t,n){const r=this;let l;return s;function s(w){return e.enter("definition"),u(w)}function u(w){return GC.call(r,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function f(w){return l=bl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),g):n(w)}function g(w){return hn(w)?bh(e,v)(w):v(w)}function v(w){return UC(e,y,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function y(w){return e.attempt(hL,A,A)(w)}function A(w){return Ct(w)?It(e,C,"whitespace")(w):C(w)}function C(w){return w===null||$e(w)?(e.exit("definition"),r.parser.defined.push(l),t(w)):n(w)}}function pL(e,t,n){return r;function r(f){return hn(f)?bh(e,l)(f):n(f)}function l(f){return ZC(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Ct(f)?It(e,u,"whitespace")(f):u(f)}function u(f){return f===null||$e(f)?t(f):n(f)}}const mL={name:"hardBreakEscape",tokenize:vL};function vL(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return $e(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const bL={name:"headingAtx",resolve:yL,tokenize:xL};function yL(e,t){let n=e.length-2,r=3,l,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},sa(e,r,n-r+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function xL(e,t,n){let r=0;return l;function l(y){return e.enter("atxHeading"),s(y)}function s(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&r++<6?(e.consume(y),u):y===null||hn(y)?(e.exit("atxHeadingSequence"),f(y)):n(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),g(y)):y===null||$e(y)?(e.exit("atxHeading"),t(y)):Ct(y)?It(e,f,"whitespace")(y):(e.enter("atxHeadingText"),v(y))}function g(y){return y===35?(e.consume(y),g):(e.exit("atxHeadingSequence"),f(y))}function v(y){return y===null||y===35||hn(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),v)}}const AL=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],QC=["pre","script","style","textarea"],SL={concrete:!0,name:"htmlFlow",resolveTo:wL,tokenize:kL},EL={partial:!0,tokenize:_L},CL={partial:!0,tokenize:TL};function wL(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function kL(e,t,n){const r=this;let l,s,u,f,g;return v;function v(D){return y(D)}function y(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),A}function A(D){return D===33?(e.consume(D),C):D===47?(e.consume(D),s=!0,N):D===63?(e.consume(D),l=3,r.interrupt?t:k):bi(D)?(e.consume(D),u=String.fromCharCode(D),Y):n(D)}function C(D){return D===45?(e.consume(D),l=2,w):D===91?(e.consume(D),l=5,f=0,R):bi(D)?(e.consume(D),l=4,r.interrupt?t:k):n(D)}function w(D){return D===45?(e.consume(D),r.interrupt?t:k):n(D)}function R(D){const xe="CDATA[";return D===xe.charCodeAt(f++)?(e.consume(D),f===xe.length?r.interrupt?t:ce:R):n(D)}function N(D){return bi(D)?(e.consume(D),u=String.fromCharCode(D),Y):n(D)}function Y(D){if(D===null||D===47||D===62||hn(D)){const xe=D===47,Ve=u.toLowerCase();return!xe&&!s&&QC.includes(Ve)?(l=1,r.interrupt?t(D):ce(D)):AL.includes(u.toLowerCase())?(l=6,xe?(e.consume(D),L):r.interrupt?t(D):ce(D)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):s?X(D):V(D))}return D===45||ai(D)?(e.consume(D),u+=String.fromCharCode(D),Y):n(D)}function L(D){return D===62?(e.consume(D),r.interrupt?t:ce):n(D)}function X(D){return Ct(D)?(e.consume(D),X):H(D)}function V(D){return D===47?(e.consume(D),H):D===58||D===95||bi(D)?(e.consume(D),re):Ct(D)?(e.consume(D),V):H(D)}function re(D){return D===45||D===46||D===58||D===95||ai(D)?(e.consume(D),re):U(D)}function U(D){return D===61?(e.consume(D),J):Ct(D)?(e.consume(D),U):V(D)}function J(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),g=D,de):Ct(D)?(e.consume(D),J):ae(D)}function de(D){return D===g?(e.consume(D),g=null,ie):D===null||$e(D)?n(D):(e.consume(D),de)}function ae(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||hn(D)?U(D):(e.consume(D),ae)}function ie(D){return D===47||D===62||Ct(D)?V(D):n(D)}function H(D){return D===62?(e.consume(D),Ae):n(D)}function Ae(D){return D===null||$e(D)?ce(D):Ct(D)?(e.consume(D),Ae):n(D)}function ce(D){return D===45&&l===2?(e.consume(D),z):D===60&&l===1?(e.consume(D),Q):D===62&&l===4?(e.consume(D),B):D===63&&l===3?(e.consume(D),k):D===93&&l===5?(e.consume(D),Ee):$e(D)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(EL,ve,_e)(D)):D===null||$e(D)?(e.exit("htmlFlowData"),_e(D)):(e.consume(D),ce)}function _e(D){return e.check(CL,$,ve)(D)}function $(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),ue}function ue(D){return D===null||$e(D)?_e(D):(e.enter("htmlFlowData"),ce(D))}function z(D){return D===45?(e.consume(D),k):ce(D)}function Q(D){return D===47?(e.consume(D),u="",Ce):ce(D)}function Ce(D){if(D===62){const xe=u.toLowerCase();return QC.includes(xe)?(e.consume(D),B):ce(D)}return bi(D)&&u.length<8?(e.consume(D),u+=String.fromCharCode(D),Ce):ce(D)}function Ee(D){return D===93?(e.consume(D),k):ce(D)}function k(D){return D===62?(e.consume(D),B):D===45&&l===2?(e.consume(D),k):ce(D)}function B(D){return D===null||$e(D)?(e.exit("htmlFlowData"),ve(D)):(e.consume(D),B)}function ve(D){return e.exit("htmlFlow"),t(D)}}function TL(e,t,n){const r=this;return l;function l(u){return $e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):n(u)}function s(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function _L(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(mh,t,n)}}const OL={name:"htmlText",tokenize:RL};function RL(e,t,n){const r=this;let l,s,u;return f;function f(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),g}function g(k){return k===33?(e.consume(k),v):k===47?(e.consume(k),U):k===63?(e.consume(k),V):bi(k)?(e.consume(k),ae):n(k)}function v(k){return k===45?(e.consume(k),y):k===91?(e.consume(k),s=0,R):bi(k)?(e.consume(k),X):n(k)}function y(k){return k===45?(e.consume(k),w):n(k)}function A(k){return k===null?n(k):k===45?(e.consume(k),C):$e(k)?(u=A,Q(k)):(e.consume(k),A)}function C(k){return k===45?(e.consume(k),w):A(k)}function w(k){return k===62?z(k):k===45?C(k):A(k)}function R(k){const B="CDATA[";return k===B.charCodeAt(s++)?(e.consume(k),s===B.length?N:R):n(k)}function N(k){return k===null?n(k):k===93?(e.consume(k),Y):$e(k)?(u=N,Q(k)):(e.consume(k),N)}function Y(k){return k===93?(e.consume(k),L):N(k)}function L(k){return k===62?z(k):k===93?(e.consume(k),L):N(k)}function X(k){return k===null||k===62?z(k):$e(k)?(u=X,Q(k)):(e.consume(k),X)}function V(k){return k===null?n(k):k===63?(e.consume(k),re):$e(k)?(u=V,Q(k)):(e.consume(k),V)}function re(k){return k===62?z(k):V(k)}function U(k){return bi(k)?(e.consume(k),J):n(k)}function J(k){return k===45||ai(k)?(e.consume(k),J):de(k)}function de(k){return $e(k)?(u=de,Q(k)):Ct(k)?(e.consume(k),de):z(k)}function ae(k){return k===45||ai(k)?(e.consume(k),ae):k===47||k===62||hn(k)?ie(k):n(k)}function ie(k){return k===47?(e.consume(k),z):k===58||k===95||bi(k)?(e.consume(k),H):$e(k)?(u=ie,Q(k)):Ct(k)?(e.consume(k),ie):z(k)}function H(k){return k===45||k===46||k===58||k===95||ai(k)?(e.consume(k),H):Ae(k)}function Ae(k){return k===61?(e.consume(k),ce):$e(k)?(u=Ae,Q(k)):Ct(k)?(e.consume(k),Ae):ie(k)}function ce(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,_e):$e(k)?(u=ce,Q(k)):Ct(k)?(e.consume(k),ce):(e.consume(k),$)}function _e(k){return k===l?(e.consume(k),l=void 0,ue):k===null?n(k):$e(k)?(u=_e,Q(k)):(e.consume(k),_e)}function $(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||hn(k)?ie(k):(e.consume(k),$)}function ue(k){return k===47||k===62||hn(k)?ie(k):n(k)}function z(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function Q(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Ce}function Ce(k){return Ct(k)?It(e,Ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):Ee(k)}function Ee(k){return e.enter("htmlTextData"),u(k)}}const Eb={name:"labelEnd",resolveAll:PL,resolveTo:zL,tokenize:DL},FL={tokenize:ML},IL={tokenize:WL},NL={tokenize:LL};function PL(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const l=r.type==="labelImage"?4:2;r.type="data",t+=l}}return e.length!==n.length&&sa(e,0,e.length,n),e}function zL(e,t){let n=e.length,r=0,l,s,u,f;for(;n--;)if(l=e[n][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(u=n);const g={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},v={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},y={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",g,t],["enter",v,t]],f=Ha(f,e.slice(s+1,s+r+3)),f=Ha(f,[["enter",y,t]]),f=Ha(f,Up(t.parser.constructs.insideSpan.null,e.slice(s+r+4,u-3),t)),f=Ha(f,[["exit",y,t],e[u-2],e[u-1],["exit",v,t]]),f=Ha(f,e.slice(u+1)),f=Ha(f,[["exit",g,t]]),sa(e,s,e.length,f),e}function DL(e,t,n){const r=this;let l=r.events.length,s,u;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){s=r.events[l][1];break}return f;function f(C){return s?s._inactive?A(C):(u=r.parser.defined.includes(bl(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(C),e.exit("labelMarker"),e.exit("labelEnd"),g):n(C)}function g(C){return C===40?e.attempt(FL,y,u?y:A)(C):C===91?e.attempt(IL,y,u?v:A)(C):u?y(C):A(C)}function v(C){return e.attempt(NL,y,A)(C)}function y(C){return t(C)}function A(C){return s._balanced=!0,n(C)}}function ML(e,t,n){return r;function r(A){return e.enter("resource"),e.enter("resourceMarker"),e.consume(A),e.exit("resourceMarker"),l}function l(A){return hn(A)?bh(e,s)(A):s(A)}function s(A){return A===41?y(A):UC(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(A)}function u(A){return hn(A)?bh(e,g)(A):y(A)}function f(A){return n(A)}function g(A){return A===34||A===39||A===40?ZC(e,v,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(A):y(A)}function v(A){return hn(A)?bh(e,y)(A):y(A)}function y(A){return A===41?(e.enter("resourceMarker"),e.consume(A),e.exit("resourceMarker"),e.exit("resource"),t):n(A)}}function WL(e,t,n){const r=this;return l;function l(f){return GC.call(r,e,s,u,"reference","referenceMarker","referenceString")(f)}function s(f){return r.parser.defined.includes(bl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function LL(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const YL={name:"labelStartImage",resolveAll:Eb.resolveAll,tokenize:VL};function VL(e,t,n){const r=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(f):t(f)}}const XL={name:"labelStartLink",resolveAll:Eb.resolveAll,tokenize:BL};function BL(e,t,n){const r=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Cb={name:"lineEnding",tokenize:HL};function HL(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),It(e,t,"linePrefix")}}const Gp={name:"thematicBreak",tokenize:UL};function UL(e,t,n){let r=0,l;return s;function s(v){return e.enter("thematicBreak"),u(v)}function u(v){return l=v,f(v)}function f(v){return v===l?(e.enter("thematicBreakSequence"),g(v)):r>=3&&(v===null||$e(v))?(e.exit("thematicBreak"),t(v)):n(v)}function g(v){return v===l?(e.consume(v),r++,g):(e.exit("thematicBreakSequence"),Ct(v)?It(e,f,"whitespace")(v):f(v))}}const Li={continuation:{tokenize:KL},exit:JL,name:"list",tokenize:QL},GL={partial:!0,tokenize:qL},ZL={partial:!0,tokenize:jL};function QL(e,t,n){const r=this,l=r.events[r.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return f;function f(w){const R=r.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!r.containerState.marker||w===r.containerState.marker:xb(w)){if(r.containerState.type||(r.containerState.type=R,e.enter(R,{_container:!0})),R==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Gp,n,v)(w):v(w);if(!r.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),g(w)}return n(w)}function g(w){return xb(w)&&++u<10?(e.consume(w),g):(!r.interrupt||u<2)&&(r.containerState.marker?w===r.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),v(w)):n(w)}function v(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||w,e.check(mh,r.interrupt?n:y,e.attempt(GL,C,A))}function y(w){return r.containerState.initialBlankLine=!0,s++,C(w)}function A(w){return Ct(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),C):n(w)}function C(w){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function KL(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(mh,l,s);function l(f){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,It(e,t,"listItemIndent",r.containerState.size+1)(f)}function s(f){return r.containerState.furtherBlankLines||!Ct(f)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(f)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ZL,t,u)(f))}function u(f){return r.containerState._closeFlow=!0,r.interrupt=void 0,It(e,e.attempt(Li,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function jL(e,t,n){const r=this;return It(e,l,"listItemIndent",r.containerState.size+1);function l(s){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(s):n(s)}}function JL(e){e.exit(this.containerState.type)}function qL(e,t,n){const r=this;return It(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const u=r.events[r.events.length-1];return!Ct(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const KC={name:"setextUnderline",resolveTo:$L,tokenize:eY};function $L(e,t){let n=e.length,r,l,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const u={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",u,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=u,e.push(["exit",u,t]),e}function eY(e,t,n){const r=this;let l;return s;function s(v){let y=r.events.length,A;for(;y--;)if(r.events[y][1].type!=="lineEnding"&&r.events[y][1].type!=="linePrefix"&&r.events[y][1].type!=="content"){A=r.events[y][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||A)?(e.enter("setextHeadingLine"),l=v,u(v)):n(v)}function u(v){return e.enter("setextHeadingLineSequence"),f(v)}function f(v){return v===l?(e.consume(v),f):(e.exit("setextHeadingLineSequence"),Ct(v)?It(e,g,"lineSuffix")(v):g(v))}function g(v){return v===null||$e(v)?(e.exit("setextHeadingLine"),t(v)):n(v)}}const tY={tokenize:nY};function nY(e){const t=this,n=e.attempt(mh,r,e.attempt(this.parser.constructs.flowInitial,l,It(e,e.attempt(this.parser.constructs.flow,l,e.attempt(oL,l)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const rY={resolveAll:JC()},iY=jC("string"),aY=jC("text");function jC(e){return{resolveAll:JC(e==="text"?lY:void 0),tokenize:t};function t(n){const r=this,l=this.parser.constructs[e],s=n.attempt(l,u,f);return u;function u(y){return v(y)?s(y):f(y)}function f(y){if(y===null){n.consume(y);return}return n.enter("data"),n.consume(y),g}function g(y){return v(y)?(n.exit("data"),s(y)):(n.consume(y),g)}function v(y){if(y===null)return!0;const A=l[y];let C=-1;if(A)for(;++C<A.length;){const w=A[C];if(!w.previous||w.previous.call(r,r.previous))return!0}return!1}}}function JC(e){return t;function t(n,r){let l=-1,s;for(;++l<=n.length;)s===void 0?n[l]&&n[l][1].type==="data"&&(s=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==s+2&&(n[s][1].end=n[l-1][1].end,n.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(n,r):n}}function lY(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],l=t.sliceStream(r);let s=l.length,u=-1,f=0,g;for(;s--;){const v=l[s];if(typeof v=="string"){for(u=v.length;v.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(v===-2)g=!0,f++;else if(v!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const v={type:n===e.length||g||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:r.start._bufferIndex+u,_index:r.start._index+s,line:r.end.line,column:r.end.column-f,offset:r.end.offset-f},end:{...r.end}};r.end={...v.start},r.start.offset===r.end.offset?Object.assign(r,v):(e.splice(n,0,["enter",v,t],["exit",v,t]),n+=2)}n++}return e}const oY=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:dL},disable:{null:[]},document:{42:Li,43:Li,45:Li,48:Li,49:Li,50:Li,51:Li,52:Li,53:Li,54:Li,55:Li,56:Li,57:Li,62:LC},flow:{35:bL,42:Gp,45:[KC,Gp],60:SL,61:KC,95:Gp,96:BC,126:BC},flowInitial:{[-2]:Sb,[-1]:Sb,32:Sb},insideSpan:{null:[Ab,rY]},string:{38:VC,92:YC},text:{[-5]:Cb,[-4]:Cb,[-3]:Cb,33:YL,38:VC,42:Ab,60:[X8,OL],91:XL,92:[mL,YC],93:Eb,95:Ab,96:tL}},Symbol.toStringTag,{value:"Module"}));function sY(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},s=[];let u=[],f=[];const g={attempt:de(U),check:de(J),consume:X,enter:V,exit:re,interrupt:de(J,{interrupt:!0})},v={code:null,containerState:{},defineSkip:N,events:[],now:R,parser:e,previous:null,sliceSerialize:C,sliceStream:w,write:A};let y=t.tokenize.call(v,g);return t.resolveAll&&s.push(t),v;function A(Ae){return u=Ha(u,Ae),Y(),u[u.length-1]!==null?[]:(ae(t,0),v.events=Up(s,v.events,v),v.events)}function C(Ae,ce){return cY(w(Ae),ce)}function w(Ae){return uY(u,Ae)}function R(){const{_bufferIndex:Ae,_index:ce,line:_e,column:$,offset:ue}=r;return{_bufferIndex:Ae,_index:ce,line:_e,column:$,offset:ue}}function N(Ae){l[Ae.line]=Ae.column,H()}function Y(){let Ae;for(;r._index<u.length;){const ce=u[r._index];if(typeof ce=="string")for(Ae=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Ae&&r._bufferIndex<ce.length;)L(ce.charCodeAt(r._bufferIndex));else L(ce)}}function L(Ae){y=y(Ae)}function X(Ae){$e(Ae)?(r.line++,r.column=1,r.offset+=Ae===-3?2:1,H()):Ae!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),v.previous=Ae}function V(Ae,ce){const _e=ce||{};return _e.type=Ae,_e.start=R(),v.events.push(["enter",_e,v]),f.push(_e),_e}function re(Ae){const ce=f.pop();return ce.end=R(),v.events.push(["exit",ce,v]),ce}function U(Ae,ce){ae(Ae,ce.from)}function J(Ae,ce){ce.restore()}function de(Ae,ce){return _e;function _e($,ue,z){let Q,Ce,Ee,k;return Array.isArray($)?ve($):"tokenize"in $?ve([$]):B($);function B(De){return ht;function ht(ye){const Re=ye!==null&&De[ye],Fe=ye!==null&&De.null,We=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return ve(We)(ye)}}function ve(De){return Q=De,Ce=0,De.length===0?z:D(De[Ce])}function D(De){return ht;function ht(ye){return k=ie(),Ee=De,De.partial||(v.currentConstruct=De),De.name&&v.parser.constructs.disable.null.includes(De.name)?Ve():De.tokenize.call(ce?Object.assign(Object.create(v),ce):v,g,xe,Ve)(ye)}}function xe(De){return Ae(Ee,k),ue}function Ve(De){return k.restore(),++Ce<Q.length?D(Q[Ce]):z}}}function ae(Ae,ce){Ae.resolveAll&&!s.includes(Ae)&&s.push(Ae),Ae.resolve&&sa(v.events,ce,v.events.length-ce,Ae.resolve(v.events.slice(ce),v)),Ae.resolveTo&&(v.events=Ae.resolveTo(v.events,v))}function ie(){const Ae=R(),ce=v.previous,_e=v.currentConstruct,$=v.events.length,ue=Array.from(f);return{from:$,restore:z};function z(){r=Ae,v.previous=ce,v.currentConstruct=_e,v.events.length=$,f=ue,H()}}function H(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function uY(e,t){const n=t.start._index,r=t.start._bufferIndex,l=t.end._index,s=t.end._bufferIndex;let u;if(n===l)u=[e[n].slice(r,s)];else{if(u=e.slice(n,l),r>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(r):u.shift()}s>0&&u.push(e[l].slice(0,s))}return u}function cY(e,t){let n=-1;const r=[];let l;for(;++n<e.length;){const s=e[n];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
|
78
|
+
Url: ${Wp(e)}`),!0}return!1}function BD(e,t){return t?.length?OE(e).some(n=>Fp(n,t)):!1}function HD(e,t){if(!t?.length)return!1;const n=e.transaction;return n?Fp(n,t):!1}function UD(e,t){if(!t?.length)return!1;const n=Wp(e);return n?Fp(n,t):!1}function GD(e,t){if(!t?.length)return!0;const n=Wp(e);return n?Fp(n,t):!0}function ZD(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Wp(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?ZD(n):null}catch{return St&&ft.error(`Cannot extract url for event ${nc(e)}`),null}}function QD(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function KD(e,t,n,r,l,s){if(!l.exception?.values||!s||!Ys(s.originalException,Error))return;const u=l.exception.values.length>0?l.exception.values[l.exception.values.length-1]:void 0;u&&(l.exception.values=H0(e,t,r,s.originalException,n,l.exception.values,u,0))}function H0(e,t,n,r,l,s,u,f){if(s.length>=n+1)return s;let g=[...s];if(Ys(r[l],Error)){XE(u,f);const v=e(t,r[l]),y=g.length;BE(v,l,y,f),g=H0(e,t,n,r[l],l,[v,...g],v,y)}return Array.isArray(r.errors)&&r.errors.forEach((v,y)=>{if(Ys(v,Error)){XE(u,f);const A=e(t,v),C=g.length;BE(A,`errors[${y}]`,C,f),g=H0(e,t,n,v,l,[A,...g],A,C)}}),g}function XE(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function BE(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function jD(e){const t="console";$u(t,e),ec(t,JD)}function JD(){"console"in dn&&mP.forEach(function(e){e in dn.console&&la(dn.console,e,function(t){return Ep[e]=t,function(...n){vl("console",{args:n,level:e}),Ep[e]?.apply(dn.console,n)}})})}function qD(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const $D="Dedupe",eM=(()=>{let e;return{name:$D,processEvent(t){if(t.type)return t;try{if(tM(t,e))return St&&ft.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}});function tM(e,t){return t?!!(nM(e,t)||rM(e,t)):!1}function nM(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!UE(e,t)||!HE(e,t))}function rM(e,t){const n=GE(t),r=GE(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!UE(e,t)||!HE(e,t))}function HE(e,t){let n=IS(e),r=IS(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let l=0;l<r.length;l++){const s=r[l],u=n[l];if(s.filename!==u.filename||s.lineno!==u.lineno||s.colno!==u.colno||s.function!==u.function)return!1}return!0}function UE(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function GE(e){return e.exception?.values?.[0]}function U0(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function ZE(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const oh=dn;function iM(){return"history"in oh&&!!oh.history}function aM(){if(!("fetch"in oh))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function G0(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function lM(){if(typeof EdgeRuntime=="string")return!0;if(!aM())return!1;if(G0(oh.fetch))return!0;let e=!1;const t=oh.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=G0(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){St&&ft.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function oM(e,t){const n="fetch";$u(n,e),ec(n,()=>sM(void 0,t))}function sM(e,t=!1){t&&!lM()||la(dn,"fetch",function(n){return function(...r){const l=new Error,{method:s,url:u}=uM(r),f={args:r,fetchData:{method:s,url:u},startTimestamp:jo()*1e3,virtualError:l,headers:cM(r)};return vl("fetch",{...f}),n.apply(dn,r).then(async g=>(vl("fetch",{...f,endTimestamp:jo()*1e3,response:g}),g),g=>{if(vl("fetch",{...f,endTimestamp:jo()*1e3,error:g}),T0(g)&&g.stack===void 0&&(g.stack=l.stack,tc(g,"framesToPop",1)),g instanceof TypeError&&(g.message==="Failed to fetch"||g.message==="Load failed"||g.message==="NetworkError when attempting to fetch resource."))try{const v=new URL(f.fetchData.url);g.message=`${g.message} (${v.host})`}catch{}throw g})}})}function Z0(e,t){return!!e&&typeof e=="object"&&!!e[t]}function QE(e){return typeof e=="string"?e:e?Z0(e,"url")?e.url:e.toString?e.toString():"":""}function uM(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:QE(n),method:Z0(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:QE(t),method:Z0(t,"method")?String(t.method).toUpperCase():"GET"}}function cM(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(NP(t))return new Headers(t.headers)}catch{}}function fM(){return"npm"}const Dr=dn;let Q0=0;function KE(){return Q0>0}function dM(){Q0++,setTimeout(()=>{Q0--})}function wf(e,t={}){function n(l){return typeof l=="function"}if(!n(e))return e;try{const l=e.__sentry_wrapped__;if(l)return typeof l=="function"?l:e;if(F0(e))return e}catch{return e}const r=function(...l){try{const s=l.map(u=>wf(u,t));return e.apply(this,s)}catch(s){throw dM(),qP(u=>{u.addEventProcessor(f=>(t.mechanism&&(I0(f,void 0),Af(f,t.mechanism)),f.extra={...f.extra,arguments:l},f)),uD(s)}),s}};try{for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(r[l]=e[l])}catch{}VS(r,e),tc(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function hM(){const e=LS(),{referrer:t}=Dr.document||{},{userAgent:n}=Dr.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function K0(e,t){const n=J0(e,t),r={type:bM(t),value:yM(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function gM(e,t,n,r){const s=mi()?.getOptions().normalizeDepth,u=CM(t),f={__serialized__:dE(t,s)};if(u)return{exception:{values:[K0(e,u)]},extra:f};const g={exception:{values:[{type:Tp(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:SM(t,{isUnhandledRejection:r})}]},extra:f};if(n){const v=J0(e,n);v.length&&(g.exception.values[0].stacktrace={frames:v})}return g}function j0(e,t){return{exception:{values:[K0(e,t)]}}}function J0(e,t){const n=t.stacktrace||t.stack||"",r=mM(t),l=vM(t);try{return e(n,r,l)}catch{}return[]}const pM=/Minified React error #\d+;/i;function mM(e){return e&&pM.test(e.message)?1:0}function vM(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function jE(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function bM(e){const t=e?.name;return!t&&jE(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function yM(e){const t=e?.message;return jE(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function xM(e,t,n,r){const l=n?.syntheticException||void 0,s=q0(e,t,l,r);return Af(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),rc(s)}function AM(e,t,n="info",r,l){const s=r?.syntheticException||void 0,u=$0(e,t,s,l);return u.level=n,r?.event_id&&(u.event_id=r.event_id),rc(u)}function q0(e,t,n,r,l){let s;if(zS(t)&&t.error)return j0(e,t.error);if(DS(t)||OP(t)){const u=t;if("stack"in t)s=j0(e,t);else{const f=u.name||(DS(u)?"DOMError":"DOMException"),g=u.message?`${f}: ${u.message}`:f;s=$0(e,g,n,r),I0(s,g)}return"code"in u&&(s.tags={...s.tags,"DOMException.code":`${u.code}`}),s}return T0(t)?j0(e,t):nh(t)||Tp(t)?(s=gM(e,t,n,l),Af(s,{synthetic:!0}),s):(s=$0(e,t,n,r),I0(s,`${t}`),Af(s,{synthetic:!0}),s)}function $0(e,t,n,r){const l={};if(r&&n){const s=J0(e,n);s.length&&(l.exception={values:[{value:t,stacktrace:{frames:s}}]}),Af(l,{synthetic:!0})}if(_0(t)){const{__sentry_template_string__:s,__sentry_template_values__:u}=t;return l.logentry={message:s,params:u},l}return l.message=t,l}function SM(e,{isUnhandledRejection:t}){const n=MP(e),r=t?"promise rejection":"exception";return zS(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Tp(e)?`Event \`${EM(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function EM(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function CM(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const wM=5e3;class kM extends yD{constructor(t){const n=TM(t),r=Dr.SENTRY_SDK_SOURCE||fM();PD(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:l,sendClientReports:s,enableLogs:u}=this._options;Dr.document&&(s||u)&&Dr.document.addEventListener("visibilitychange",()=>{Dr.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),u&&B0(this))}),u&&(this.on("flush",()=>{B0(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{B0(this)},wM)})),l&&this.on("beforeSendSession",ND)}eventFromException(t,n){return xM(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return AM(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,l){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,l)}}function TM(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Dr.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const _M=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vi=dn,OM=1e3;let JE,eb,tb;function RM(e){$u("dom",e),ec("dom",FM)}function FM(){if(!vi.document)return;const e=vl.bind(null,"dom"),t=qE(e,!0);vi.document.addEventListener("click",t,!1),vi.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const l=vi[n]?.prototype;l?.hasOwnProperty?.("addEventListener")&&(la(l,"addEventListener",function(s){return function(u,f,g){if(u==="click"||u=="keypress")try{const v=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},y=v[u]=v[u]||{refCount:0};if(!y.handler){const A=qE(e);y.handler=A,s.call(this,u,A,g)}y.refCount++}catch{}return s.call(this,u,f,g)}}),la(l,"removeEventListener",function(s){return function(u,f,g){if(u==="click"||u=="keypress")try{const v=this.__sentry_instrumentation_handlers__||{},y=v[u];y&&(y.refCount--,y.refCount<=0&&(s.call(this,u,y.handler,g),y.handler=void 0,delete v[u]),Object.keys(v).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,u,f,g)}}))})}function IM(e){if(e.type!==eb)return!1;try{if(!e.target||e.target._sentryId!==tb)return!1}catch{}return!0}function NM(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function qE(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=PM(n);if(NM(n.type,r))return;tc(n,"_sentryCaptured",!0),r&&!r._sentryId&&tc(r,"_sentryId",Ba());const l=n.type==="keypress"?"input":n.type;IM(n)||(e({event:n,name:l,global:t}),eb=n.type,tb=r?r._sentryId:void 0),clearTimeout(JE),JE=vi.setTimeout(()=>{tb=void 0,eb=void 0},OM)}}function PM(e){try{return e.target}catch{return null}}let Lp;function $E(e){const t="history";$u(t,e),ec(t,zM)}function zM(){if(vi.addEventListener("popstate",()=>{const t=vi.location.href,n=Lp;if(Lp=t,n===t)return;vl("history",{from:n,to:t})}),!iM())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const l=Lp,s=DM(String(r));if(Lp=s,l===s)return t.apply(this,n);vl("history",{from:l,to:s})}return t.apply(this,n)}}la(vi.history,"pushState",e),la(vi.history,"replaceState",e)}function DM(e){try{return new URL(e,vi.location.origin).toString()}catch{return e}}const Yp={};function MM(e){const t=Yp[e];if(t)return t;let n=vi[e];if(G0(n))return Yp[e]=n.bind(vi);const r=vi.document;if(r&&typeof r.createElement=="function")try{const l=r.createElement("iframe");l.hidden=!0,r.head.appendChild(l);const s=l.contentWindow;s?.[e]&&(n=s[e]),r.head.removeChild(l)}catch(l){_M&&ft.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,l)}return n&&(Yp[e]=n.bind(vi))}function eC(e){Yp[e]=void 0}const sh="__sentry_xhr_v3__";function WM(e){$u("xhr",e),ec("xhr",LM)}function LM(){if(!vi.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const l=new Error,s=jo()*1e3,u=Ko(r[0])?r[0].toUpperCase():void 0,f=YM(r[1]);if(!u||!f)return t.apply(n,r);n[sh]={method:u,url:f,request_headers:{}},u==="POST"&&f.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const g=()=>{const v=n[sh];if(v&&n.readyState===4){try{v.status_code=n.status}catch{}const y={endTimestamp:jo()*1e3,startTimestamp:s,xhr:n,virtualError:l};vl("xhr",y)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(v,y,A){return g(),v.apply(y,A)}}):n.addEventListener("readystatechange",g),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(v,y,A){const[C,w]=A,R=y[sh];return R&&Ko(C)&&Ko(w)&&(R.request_headers[C.toLowerCase()]=w),v.apply(y,A)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const l=n[sh];if(!l)return t.apply(n,r);r[0]!==void 0&&(l.body=r[0]);const s={startTimestamp:jo()*1e3,xhr:n};return vl("xhr",s),t.apply(n,r)}})}function YM(e){if(Ko(e))return e;try{return e.toString()}catch{}}function VM(e,t=MM("fetch")){let n=0,r=0;function l(s){const u=s.body.length;n+=u,r++;const f={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return eC("fetch"),Np("No fetch implementation available");try{return t(e.url,f).then(g=>(n-=u,r--,{statusCode:g.status,headers:{"x-sentry-rate-limits":g.headers.get("X-Sentry-Rate-Limits"),"retry-after":g.headers.get("Retry-After")}}))}catch(g){return eC("fetch"),n-=u,r--,Np(g)}}return ID(e,l)}const XM=30,BM=50;function nb(e,t,n,r){const l={filename:e,function:t==="<anonymous>"?qu:t,in_app:!0};return n!==void 0&&(l.lineno=n),r!==void 0&&(l.colno=r),l}const HM=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,UM=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,GM=/\((\S*)(?::(\d+))(?::(\d+))\)/,ZM=/at (.+?) ?\(data:(.+?),/,QM=[XM,e=>{const t=e.match(ZM);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=HM.exec(e);if(n){const[,l,s,u]=n;return nb(l,qu,+s,+u)}const r=UM.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){const f=GM.exec(r[2]);f&&(r[2]=f[1],r[3]=f[2],r[4]=f[3])}const[s,u]=tC(r[1]||qu,r[2]);return nb(u,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],KM=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,jM=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,JM=EP(...[QM,[BM,e=>{const t=KM.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const s=jM.exec(t[3]);s&&(t[1]=t[1]||"eval",t[3]=s[1],t[4]=s[2],t[5]="")}let r=t[3],l=t[1]||qu;return[l,r]=tC(l,r),nb(r,l,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),tC=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:qu,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rb=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vp=1024,qM="Breadcrumbs",$M=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:qM,setup(n){t.console&&jD(nW(n)),t.dom&&RM(tW(n,t.dom)),t.xhr&&WM(rW(n)),t.fetch&&oM(iW(n)),t.history&&$E(aW(n)),t.sentry&&n.on("beforeSendEvent",eW(n))}}});function eW(e){return function(n){mi()===e&&ic({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:nc(n)},{event:n})}}function tW(e,t){return function(r){if(mi()!==e)return;let l,s,u=typeof t=="object"?t.serializeAttribute:void 0,f=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;f&&f>Vp&&(rb&&ft.warn(`\`dom.maxStringLength\` cannot exceed ${Vp}, but a value of ${f} was configured. Sentry will use ${Vp} instead.`),f=Vp),typeof u=="string"&&(u=[u]);try{const v=r.event,y=lW(v)?v.target:v;l=WS(y,{keyAttrs:u,maxStringLength:f}),s=DP(y)}catch{l="<unknown>"}if(l.length===0)return;const g={category:`ui.${r.name}`,message:l};s&&(g.data={"ui.component_name":s}),ic(g,{event:r.event,name:r.name,global:r.global})}}function nW(e){return function(n){if(mi()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:qD(n.level),message:YS(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${YS(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ic(r,{input:n.args,level:n.level})}}function rW(e){return function(n){if(mi()!==e)return;const{startTimestamp:r,endTimestamp:l}=n,s=n.xhr[sh];if(!r||!l||!s)return;const{method:u,url:f,status_code:g,body:v}=s,y={method:u,url:f,status_code:g},A={xhr:n.xhr,input:v,startTimestamp:r,endTimestamp:l},C={category:"xhr",data:y,type:"http",level:ZE(g)};e.emit("beforeOutgoingRequestBreadcrumb",C,A),ic(C,A)}}function iW(e){return function(n){if(mi()!==e)return;const{startTimestamp:r,endTimestamp:l}=n;if(l&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,u={data:n.error,input:n.args,startTimestamp:r,endTimestamp:l},f={category:"fetch",data:s,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",f,u),ic(f,u)}else{const s=n.response,u={...n.fetchData,status_code:s?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s?.status;const f={input:n.args,response:s,startTimestamp:r,endTimestamp:l},g={category:"fetch",data:u,type:"http",level:ZE(u.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",g,f),ic(g,f)}}}function aW(e){return function(n){if(mi()!==e)return;let r=n.from,l=n.to;const s=U0(Dr.location.href);let u=r?U0(r):void 0;const f=U0(l);u?.path||(u=s),s.protocol===f.protocol&&s.host===f.host&&(l=f.relative),s.protocol===u.protocol&&s.host===u.host&&(r=u.relative),ic({category:"navigation",data:{from:r,to:l}})}}function lW(e){return!!e&&!!e.target}const oW=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],sW="BrowserApiErrors",uW=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:sW,setupOnce(){t.setTimeout&&la(Dr,"setTimeout",nC),t.setInterval&&la(Dr,"setInterval",nC),t.requestAnimationFrame&&la(Dr,"requestAnimationFrame",cW),t.XMLHttpRequest&&"XMLHttpRequest"in Dr&&la(XMLHttpRequest.prototype,"send",fW);const n=t.eventTarget;n&&(Array.isArray(n)?n:oW).forEach(l=>dW(l,t))}}});function nC(e){return function(...t){const n=t[0];return t[0]=wf(n,{mechanism:{data:{function:Ls(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function cW(e){return function(t){return e.apply(this,[wf(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Ls(e)},handled:!1,type:"instrument"}})])}}function fW(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(l=>{l in n&&typeof n[l]=="function"&&la(n,l,function(s){const u={mechanism:{data:{function:l,handler:Ls(s)},handled:!1,type:"instrument"}},f=F0(s);return f&&(u.mechanism.data.handler=Ls(f)),wf(s,u)})}),e.apply(this,t)}}function dW(e,t){const r=Dr[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(la(r,"addEventListener",function(l){return function(s,u,f){try{hW(u)&&(u.handleEvent=wf(u.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ls(u),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&gW(this,s,u),l.apply(this,[s,wf(u,{mechanism:{data:{function:"addEventListener",handler:Ls(u),target:e},handled:!1,type:"instrument"}}),f])}}),la(r,"removeEventListener",function(l){return function(s,u,f){try{const g=u.__sentry_wrapped__;g&&l.call(this,s,g,f)}catch{}return l.call(this,s,u,f)}}))}function hW(e){return typeof e.handleEvent=="function"}function gW(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const pW=()=>({name:"BrowserSession",setupOnce(){if(typeof Dr.document>"u"){rb&&ft.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}SE({ignoreDuration:!0}),wE(),$E(({from:e,to:t})=>{e!==void 0&&e!==t&&(SE({ignoreDuration:!0}),wE())})}}),mW="GlobalHandlers",vW=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:mW,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(bW(n),rC("onerror")),t.onunhandledrejection&&(yW(n),rC("onunhandledrejection"))}}});function bW(e){wP(t=>{const{stackParser:n,attachStacktrace:r}=iC();if(mi()!==e||KE())return;const{msg:l,url:s,line:u,column:f,error:g}=t,v=SW(q0(n,g||l,void 0,r,!1),s,u,f);v.level="error",AE(v,{originalException:g,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function yW(e){TP(t=>{const{stackParser:n,attachStacktrace:r}=iC();if(mi()!==e||KE())return;const l=xW(t),s=O0(l)?AW(l):q0(n,l,void 0,r,!0);s.level="error",AE(s,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function xW(e){if(O0(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function AW(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function SW(e,t,n,r){const l=e.exception=e.exception||{},s=l.values=l.values||[],u=s[0]=s[0]||{},f=u.stacktrace=u.stacktrace||{},g=f.frames=f.frames||[],v=r,y=n,A=EW(t)??LS();return g.length===0&&g.push({colno:v,filename:A,function:qu,in_app:!0,lineno:y}),e}function rC(e){rb&&ft.log(`Global Handler attached: ${e}`)}function iC(){return mi()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function EW(e){if(!(!Ko(e)||e.length===0)){if(e.startsWith("data:")){const t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e.slice(0,1024)}}const CW=()=>({name:"HttpContext",preprocessEvent(e){if(!Dr.navigator&&!Dr.location&&!Dr.document)return;const t=hM(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),wW="cause",kW=5,TW="LinkedErrors",_W=((e={})=>{const t=e.limit||kW,n=e.key||wW;return{name:TW,preprocessEvent(r,l,s){const u=s.getOptions();KD(K0,u.stackParser,n,t,r,l)}}});function OW(e){return[VD(),MD(),uW(),$M(),vW(),_W(),eM(),CW(),pW()]}const RW=!1,FW=OW().filter(e=>{const t=["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name);return t&&console.log(`[Sentry] Excluding integration: ${e.name}`),!t}),aC=new kM({dsn:"https://ffd963e90a83743e3fed7e00476fc6d8@sentry.hamravesh.com/9104",transport:VM,stackParser:JM,integrations:FW,tracesSampleRate:.1,tracePropagationTargets:["localhost",/^https:\/\/yourserver\.io\/api/],debug:RW,environment:"production"}),uh=new vo;uh.setClient(aC);try{aC.init(),console.log("[Sentry] Client initialized successfully")}catch(e){console.error("[Sentry] Failed to initialize client:",e)}const ac=(e,t)=>((...n)=>{try{return t(...n)}catch(r){console.error(`${e} error:`,r),uh.captureException(r,{captureContext:{extra:{context:e}}})}}),ch=(e,t)=>((...n)=>{try{return t(...n).catch(r=>{throw r.name!=="AbortError"&&(console.error(`${e} async error:`,r),uh.captureException(r,{captureContext:{extra:{context:e}}})),r})}catch(r){throw r.name!=="AbortError"&&(console.error(`${e} error:`,r),uh.captureException(r,{captureContext:{extra:{context:e}}})),r}});async function IW(e,t=3){let n;for(let r=0;r<t;r++)try{return await e()}catch(l){if(n=l,r===t-1)throw n}throw n}const Xp="https://standardapi.dori.tech",ib={demoSharingData:`${Xp}/bot-sharing-data/`,streamChat:`${Xp}/stream-chat-with-assistant/`,searchProductLog:`${Xp}/search-selected-item-log`,getUploadUrl:`${Xp}/get-upload-url`},NW=ch("fetchBotDataBySharingID",async(e,t)=>IW(async()=>{const n=ib.demoSharingData+e+(t?`?product_id=${t}`:""),r=await fetch(n);if(r.status!==200)throw new Error(`Network response was not ok: ${r.status}`);return await r.json()},3)),PW=ch("sendMessageToStreamAPI",async(e,t,n,r,l,s,u,f)=>{const g=t.assistant_id;let v=e;const y={assistant_id:g,thread_id:n||void 0,src:typeof window<"u"?window.location.href:"",message:v,platform:"shopify_pdp",product_id:f||void 0};Object.keys(y).forEach(L=>y[L]===void 0&&delete y[L]);const A=new URLSearchParams({assistant_id:g}).toString(),C=`${ib.streamChat}?${A}`,w=await fetch(C,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(y),signal:u?.signal});if(u?.signal.aborted){console.log("after response abortController");return}if(w.status===429){l("You have exceeded the request limit. Please wait at least 24 hours and try again.");return}if(w.status===402){l("Hello 😊 The smart assistant for this business is currently inactive because its subscription has expired. If you have any questions, please contact the business directly. We hope to be at your service again soon!");return}if(!w.body)throw new Error("ReadableStream not supported in this environment.");const R=w.body.getReader(),N=new TextDecoder("utf-8");let Y="";for(;;){if(u?.signal.aborted){R.cancel();return}const{value:L,done:X}=await R.read();if(X)break;if(L){const V=N.decode(L,{stream:!0});Y+=V;let re=Y.indexOf("}{");for(;re!==-1;){const U=Y.slice(0,re+1);Y=Y.slice(re+1),ac("JSON parse in streaming",()=>{const J=JSON.parse(U);r(J)})(),re=Y.indexOf("}{")}Y.endsWith("}")&&ac("JSON parse remaining buffer",()=>{const U=JSON.parse(Y);r(U),Y=""})()}}s()}),zW=ch("trackProductClick",async(e,t,n)=>{const r={log:{assistant_id:t.assistant_id,thread_id:n,created_at:new Date().toISOString(),selected_item_id:e.id,tool_call_id:e.tool_call_id}};await fetch(ib.searchProductLog,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(r)})}),lC={create_custom_product_card:"Preparing products to show you...",create_product_card:"Preparing products to show you...",create_order:"Starting the order process...",get_product_detail:"Finding product details for you...",product_retrieval:"Searching for the best options for you...",order_notes:"Adding your notes to the order...",order_persistence:"Saving your order carefully...",payment_processing:"Processing your payment information...",retrieve_faq:"Looking for the best answer for you...",prompt_recommendation:"",similar_products:"Looking for similar products for you...",track_order:"Checking your order status...",thinking:"Thinking..."},DW=e=>e&&e in lC?lC[e]:"Let me check for a moment...",oC=Te.createContext(void 0);function MW({children:e}){const[t,n]=Te.useState(null),[r,l]=Te.useState(!1),[s,u]=Te.useState(null),[f,g]=Te.useState(null),[v,y]=Te.useState({repliedProduct:null,threadId:null,isRequestInProgress:!1}),[A,C]=Te.useState([]),[w,R]=Te.useState("welcome"),[N,Y]=Te.useState(!1),[L,X]=Te.useState("starting"),V=Te.useRef(null),re=Te.useCallback(ce=>{y(_e=>({..._e,repliedProduct:ce}))},[]),U=Te.useCallback(()=>{V.current&&(V.current.abort(),V.current=null),y(ce=>({...ce,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),R("ongoing"),C(ce=>ce.filter(_e=>_e.type!=="loading"))},[]),J=Te.useCallback(ch("initializeBot",async(ce,_e)=>{if(!ce||ce.trim()===""){u("Invalid sharing ID provided"),console.error("Invalid sharing ID provided");return}l(!0),u(null),g(_e||null);const $=await NW(ce,_e||void 0);if(console.log("result",$),$.error){u($.error),console.error("Error initializing bot:",$.error);return}if($.data){const ue={...$.data,sharing_id:ce,suggestedReply:de($.data.suggested_prompts||$.data.suggestedReply)};n(ue),R("initial-greeting")}else u("No bot data found"),console.error("No bot data found")}),[]),de=ac("parseSuggestedReply",ce=>{if(!ce)return[];if(Array.isArray(ce))return ce;try{return JSON.parse(ce)}catch(_e){return console.error("Error parsing suggested reply:",_e),[]}}),ae=Te.useCallback(ac("addWelcomeMessage",()=>{const ce={id:Date.now().toString(),type:"welcome",timestamp:new Date,content:t?.wellcomeMessage||"Whatever you have in mind about your purchase, I'm here to help you!"};C(_e=>[..._e,ce])}),[t?.wellcomeMessage]),ie=Te.useCallback(ch("sendMessage",async({message:ce,apiMessage:_e},$)=>{if(!t||N)return;const ue={id:Date.now().toString(),type:"user",content:ce,timestamp:new Date,repliedProduct:$};C(ve=>[...ve.filter(xe=>xe.type!=="suggestions"),ue]),V.current&&(V.current.abort(),V.current=null),R("thinking"),Y(!0),X("generating"),y(ve=>({...ve,isRequestInProgress:!0})),V.current=new AbortController;let z={id:(Date.now()+1).toString(),type:"loading",content:"Let me check for a moment...",timestamp:new Date};C(ve=>[...ve,z]);let Q=_e||ce;$&&(Q=`this message is replied to product with id ${$.id}: ${ce}`);let Ce="",Ee=null,k=[],B=[];try{await PW(Q,t,v.threadId,ve=>{ac("streaming chunk handler",()=>{if(console.log("[StreamChatResponse chunk received]:",ve),ve.thread_id)console.log("[StreamChatResponse] thread_id received:",ve.thread_id),y(D=>({...D,threadId:ve.thread_id||null}));else if(ve.wait)console.log("[StreamChatResponse] wait received, creating new message session"),Ee&&Ce.trim()&&C(D=>D.map(xe=>xe.id===Ee?.id?{...xe,content:Ce}:xe)),Ee=null,Ce="",C(D=>[...D.filter(Ve=>Ve.type!=="loading"),{id:(Date.now()+Math.random()).toString(),type:"loading",content:DW(ve.tool_name),timestamp:new Date}]);else if(ve.text)if(console.log("[StreamChatResponse] text chunk received:",ve.text),Ce+=ve.text,Ee)console.log("[StreamChatResponse] Updating existing bot message with:",Ce),C(D=>D.map(xe=>xe.id===Ee?.id?{...xe,content:Ce}:xe));else{console.log("[StreamChatResponse] Creating new bot message:",Ce);const D={id:(Date.now()+Math.random()).toString(),type:"mori",content:Ce,timestamp:new Date};C(xe=>[...xe.filter(De=>De.type!=="loading"),D]),Ee=D}else ve.products&&ve.products.length>0?(console.log("[StreamChatResponse] products received:",ve.products),k=[...k,...ve.products],C(D=>{const Ve=[...D.filter(ye=>ye.type!=="loading")],De=Ve.findIndex(ye=>ye.id===Ee?.id),ht={id:(Date.now()+3).toString(),type:"products",content:"Suggested products:",timestamp:new Date,products:k,tool_call_id:ve.products?.[0]?.tool_call_id||""};return De!==-1?(console.log("[StreamChatResponse] Inserting/updating product message after current bot message"),Ve.splice(De+1,0,ht)):(console.log("[StreamChatResponse] No current bot message found, pushing product message to end"),Ve.push(ht)),Ve}),console.log("Products accumulated and displayed:",k)):ve.suggestions&&ve.suggestions.length>0&&(B=[...B,...ve.suggestions])})()},ve=>{if(V.current?.signal.aborted){V.current=null,y(D=>({...D,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),R("ongoing"),C(D=>D.filter(xe=>xe.type!=="loading"));return}C(D=>[...D.filter(xe=>xe.type!=="loading"),{id:(Date.now()+2).toString(),type:"mori",content:ve,timestamp:new Date}]),R("ongoing")},()=>{B.length>0&&C(ve=>{const xe=[...ve.filter(ht=>ht.type!=="suggestions"&&ht.type!=="loading")],Ve=xe.findIndex(ht=>ht.id===Ee?.id),De={id:(Date.now()+4).toString(),type:"suggestions",content:"Suggestions:",timestamp:new Date,suggestions:B};return Ve!==-1?xe.splice(Ve+1,0,De):xe.push(De),xe}),V.current=null,y(ve=>({...ve,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),R("ongoing")},V.current,f)}catch(ve){V.current?.signal.aborted||ve.name==="AbortError"?(V.current=null,y(D=>({...D,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),R("ongoing"),C(D=>D.filter(xe=>xe.type!=="loading"))):(console.error("Error in sendMessage:",ve),C(D=>[...D.filter(xe=>xe.type!=="loading"),{id:(Date.now()+2).toString(),type:"mori",content:"Unfortunately, an error occurred. Please try again.",timestamp:new Date}]),R("ongoing"),y(D=>({...D,isRequestInProgress:!1,repliedProduct:null})),Y(!1),X("starting"),V.current=null)}}),[t,N,v.threadId]),H=Te.useCallback(()=>{V.current&&(V.current.abort(),V.current=null),n(null),C([]),R("welcome"),Y(!1),X("starting"),y({repliedProduct:null,threadId:null,isRequestInProgress:!1})},[]),Ae={botData:t,isLoadingBot:r,botError:s,chatState:v,messages:A,currentStep:w,isInputDisabled:N,inputState:L,initializeBot:J,sendMessage:ie,stopCurrentRequest:U,setCurrentStep:R,setInputState:X,addWelcomeMessage:ae,setRepliedProduct:re,resetBot:H};return ne.jsx(oC.Provider,{value:Ae,children:e})}function bo(){const e=Te.useContext(oC);if(e===void 0)throw new Error("useChatContext must be used within a ChatProvider");return e}function gG(){}function pG(){}function WW(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const LW=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YW=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VW={};function sC(e,t){return(VW.jsx?YW:LW).test(e)}const XW=/[ \t\n\f\r]/g;function BW(e){return typeof e=="object"?e.type==="text"?uC(e.value):!1:uC(e)}function uC(e){return e.replace(XW,"")===""}class fh{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}fh.prototype.normal={},fh.prototype.property={},fh.prototype.space=void 0;function cC(e,t){const n={},r={};for(const l of e)Object.assign(n,l.property),Object.assign(r,l.normal);return new fh(n,r,t)}function ab(e){return e.toLowerCase()}class Wi{constructor(t,n){this.attribute=n,this.property=t}}Wi.prototype.attribute="",Wi.prototype.booleanish=!1,Wi.prototype.boolean=!1,Wi.prototype.commaOrSpaceSeparated=!1,Wi.prototype.commaSeparated=!1,Wi.prototype.defined=!1,Wi.prototype.mustUseProperty=!1,Wi.prototype.number=!1,Wi.prototype.overloadedBoolean=!1,Wi.prototype.property="",Wi.prototype.spaceSeparated=!1,Wi.prototype.space=void 0;let HW=0;const vt=lc(),lr=lc(),lb=lc(),Me=lc(),vn=lc(),kf=lc(),oa=lc();function lc(){return 2**++HW}const ob=Object.freeze(Object.defineProperty({__proto__:null,boolean:vt,booleanish:lr,commaOrSpaceSeparated:oa,commaSeparated:kf,number:Me,overloadedBoolean:lb,spaceSeparated:vn},Symbol.toStringTag,{value:"Module"})),sb=Object.keys(ob);class ub extends Wi{constructor(t,n,r,l){let s=-1;if(super(t,n),fC(this,"space",l),typeof r=="number")for(;++s<sb.length;){const u=sb[s];fC(this,sb[s],(r&ob[u])===ob[u])}}}ub.prototype.defined=!0;function fC(e,t,n){n&&(e[t]=n)}function Tf(e){const t={},n={};for(const[r,l]of Object.entries(e.properties)){const s=new ub(r,e.transform(e.attributes||{},r),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[ab(r)]=r,n[ab(s.attribute)]=r}return new fh(t,n,e.space)}const dC=Tf({properties:{ariaActiveDescendant:null,ariaAtomic:lr,ariaAutoComplete:null,ariaBusy:lr,ariaChecked:lr,ariaColCount:Me,ariaColIndex:Me,ariaColSpan:Me,ariaControls:vn,ariaCurrent:null,ariaDescribedBy:vn,ariaDetails:null,ariaDisabled:lr,ariaDropEffect:vn,ariaErrorMessage:null,ariaExpanded:lr,ariaFlowTo:vn,ariaGrabbed:lr,ariaHasPopup:null,ariaHidden:lr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:vn,ariaLevel:Me,ariaLive:null,ariaModal:lr,ariaMultiLine:lr,ariaMultiSelectable:lr,ariaOrientation:null,ariaOwns:vn,ariaPlaceholder:null,ariaPosInSet:Me,ariaPressed:lr,ariaReadOnly:lr,ariaRelevant:null,ariaRequired:lr,ariaRoleDescription:vn,ariaRowCount:Me,ariaRowIndex:Me,ariaRowSpan:Me,ariaSelected:lr,ariaSetSize:Me,ariaSort:null,ariaValueMax:Me,ariaValueMin:Me,ariaValueNow:Me,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function hC(e,t){return t in e?e[t]:t}function gC(e,t){return hC(e,t.toLowerCase())}const UW=Tf({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kf,acceptCharset:vn,accessKey:vn,action:null,allow:null,allowFullScreen:vt,allowPaymentRequest:vt,allowUserMedia:vt,alt:null,as:null,async:vt,autoCapitalize:null,autoComplete:vn,autoFocus:vt,autoPlay:vt,blocking:vn,capture:null,charSet:null,checked:vt,cite:null,className:vn,cols:Me,colSpan:null,content:null,contentEditable:lr,controls:vt,controlsList:vn,coords:Me|kf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:vt,defer:vt,dir:null,dirName:null,disabled:vt,download:lb,draggable:lr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:vt,formTarget:null,headers:vn,height:Me,hidden:lb,high:Me,href:null,hrefLang:null,htmlFor:vn,httpEquiv:vn,id:null,imageSizes:null,imageSrcSet:null,inert:vt,inputMode:null,integrity:null,is:null,isMap:vt,itemId:null,itemProp:vn,itemRef:vn,itemScope:vt,itemType:vn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:vt,low:Me,manifest:null,max:null,maxLength:Me,media:null,method:null,min:null,minLength:Me,multiple:vt,muted:vt,name:null,nonce:null,noModule:vt,noValidate:vt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:vt,optimum:Me,pattern:null,ping:vn,placeholder:null,playsInline:vt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:vt,referrerPolicy:null,rel:vn,required:vt,reversed:vt,rows:Me,rowSpan:Me,sandbox:vn,scope:null,scoped:vt,seamless:vt,selected:vt,shadowRootClonable:vt,shadowRootDelegatesFocus:vt,shadowRootMode:null,shape:null,size:Me,sizes:null,slot:null,span:Me,spellCheck:lr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Me,step:null,style:null,tabIndex:Me,target:null,title:null,translate:null,type:null,typeMustMatch:vt,useMap:null,value:lr,width:Me,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:vn,axis:null,background:null,bgColor:null,border:Me,borderColor:null,bottomMargin:Me,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:vt,declare:vt,event:null,face:null,frame:null,frameBorder:null,hSpace:Me,leftMargin:Me,link:null,longDesc:null,lowSrc:null,marginHeight:Me,marginWidth:Me,noResize:vt,noHref:vt,noShade:vt,noWrap:vt,object:null,profile:null,prompt:null,rev:null,rightMargin:Me,rules:null,scheme:null,scrolling:lr,standby:null,summary:null,text:null,topMargin:Me,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Me,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:vt,disableRemotePlayback:vt,prefix:null,property:null,results:Me,security:null,unselectable:null},space:"html",transform:gC}),GW=Tf({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:oa,accentHeight:Me,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Me,amplitude:Me,arabicForm:null,ascent:Me,attributeName:null,attributeType:null,azimuth:Me,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Me,by:null,calcMode:null,capHeight:Me,className:vn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Me,diffuseConstant:Me,direction:null,display:null,dur:null,divisor:Me,dominantBaseline:null,download:vt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Me,enableBackground:null,end:null,event:null,exponent:Me,externalResourcesRequired:null,fill:null,fillOpacity:Me,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:kf,g2:kf,glyphName:kf,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Me,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Me,horizOriginX:Me,horizOriginY:Me,id:null,ideographic:Me,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Me,k:Me,k1:Me,k2:Me,k3:Me,k4:Me,kernelMatrix:oa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Me,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Me,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Me,overlineThickness:Me,paintOrder:null,panose1:null,path:null,pathLength:Me,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:vn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Me,pointsAtY:Me,pointsAtZ:Me,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oa,rev:oa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oa,requiredFeatures:oa,requiredFonts:oa,requiredFormats:oa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Me,specularExponent:Me,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Me,strikethroughThickness:Me,string:null,stroke:null,strokeDashArray:oa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Me,strokeOpacity:Me,strokeWidth:null,style:null,surfaceScale:Me,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oa,tabIndex:Me,tableValues:null,target:null,targetX:Me,targetY:Me,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Me,underlineThickness:Me,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Me,values:null,vAlphabetic:Me,vMathematical:Me,vectorEffect:null,vHanging:Me,vIdeographic:Me,version:null,vertAdvY:Me,vertOriginX:Me,vertOriginY:Me,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Me,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hC}),pC=Tf({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),mC=Tf({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gC}),vC=Tf({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ZW={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},QW=/[A-Z]/g,bC=/-[a-z]/g,KW=/^data[-\w.:]+$/i;function jW(e,t){const n=ab(t);let r=t,l=Wi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&KW.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(bC,qW);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!bC.test(s)){let u=s.replace(QW,JW);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=ub}return new l(r,t)}function JW(e){return"-"+e.toLowerCase()}function qW(e){return e.charAt(1).toUpperCase()}const $W=cC([dC,UW,pC,mC,vC],"html"),cb=cC([dC,GW,pC,mC,vC],"svg");function eL(e){return e.join(" ").trim()}var _f={},fb,yC;function tL(){if(yC)return fb;yC=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,g=`
|
79
|
+
`,v="/",y="*",A="",C="comment",w="declaration";fb=function(N,Y){if(typeof N!="string")throw new TypeError("First argument must be a string");if(!N)return[];Y=Y||{};var L=1,X=1;function V(_e){var $=_e.match(t);$&&(L+=$.length);var ue=_e.lastIndexOf(g);X=~ue?_e.length-ue:X+_e.length}function re(){var _e={line:L,column:X};return function($){return $.position=new U(_e),ae(),$}}function U(_e){this.start=_e,this.end={line:L,column:X},this.source=Y.source}U.prototype.content=N;function J(_e){var $=new Error(Y.source+":"+L+":"+X+": "+_e);if($.reason=_e,$.filename=Y.source,$.line=L,$.column=X,$.source=N,!Y.silent)throw $}function de(_e){var $=_e.exec(N);if($){var ue=$[0];return V(ue),N=N.slice(ue.length),$}}function ae(){de(n)}function ie(_e){var $;for(_e=_e||[];$=H();)$!==!1&&_e.push($);return _e}function H(){var _e=re();if(!(v!=N.charAt(0)||y!=N.charAt(1))){for(var $=2;A!=N.charAt($)&&(y!=N.charAt($)||v!=N.charAt($+1));)++$;if($+=2,A===N.charAt($-1))return J("End of comment missing");var ue=N.slice(2,$-2);return X+=2,V(ue),N=N.slice($),X+=2,_e({type:C,comment:ue})}}function Ae(){var _e=re(),$=de(r);if($){if(H(),!de(l))return J("property missing ':'");var ue=de(s),z=_e({type:w,property:R($[0].replace(e,A)),value:ue?R(ue[0].replace(e,A)):A});return de(u),z}}function ce(){var _e=[];ie(_e);for(var $;$=Ae();)$!==!1&&(_e.push($),ie(_e));return _e}return ae(),ce()};function R(N){return N?N.replace(f,A):A}return fb}var xC;function nL(){if(xC)return _f;xC=1;var e=_f&&_f.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_f,"__esModule",{value:!0}),_f.default=n;var t=e(tL());function n(r,l){var s=null;if(!r||typeof r!="string")return s;var u=(0,t.default)(r),f=typeof l=="function";return u.forEach(function(g){if(g.type==="declaration"){var v=g.property,y=g.value;f?l(v,y,g):y&&(s=s||{},s[v]=y)}}),s}return _f}var dh={},AC;function rL(){if(AC)return dh;AC=1,Object.defineProperty(dh,"__esModule",{value:!0}),dh.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(v){return!v||n.test(v)||e.test(v)},u=function(v,y){return y.toUpperCase()},f=function(v,y){return"".concat(y,"-")},g=function(v,y){return y===void 0&&(y={}),s(v)?v:(v=v.toLowerCase(),y.reactCompat?v=v.replace(l,f):v=v.replace(r,f),v.replace(t,u))};return dh.camelCase=g,dh}var hh,SC;function iL(){if(SC)return hh;SC=1;var e=hh&&hh.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(nL()),n=rL();function r(l,s){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(f,g){f&&g&&(u[(0,n.camelCase)(f,s)]=g)}),u}return r.default=r,hh=r,hh}var aL=iL();const lL=zu(aL),EC=CC("end"),db=CC("start");function CC(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function oL(e){const t=db(e),n=EC(e);if(t&&n)return{start:t,end:n}}function gh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?wC(e.position):"start"in e||"end"in e?wC(e):"line"in e||"column"in e?hb(e):""}function hb(e){return kC(e&&e.line)+":"+kC(e&&e.column)}function wC(e){return hb(e&&e.start)+"-"+hb(e&&e.end)}function kC(e){return e&&typeof e=="number"?e:1}class ii extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let l="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?l=t:!s.cause&&t&&(u=!0,l=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const g=r.indexOf(":");g===-1?s.ruleId=r:(s.source=r.slice(0,g),s.ruleId=r.slice(g+1))}if(!s.place&&s.ancestors&&s.ancestors){const g=s.ancestors[s.ancestors.length-1];g&&(s.place=g.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=gh(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ii.prototype.file="",ii.prototype.name="",ii.prototype.reason="",ii.prototype.message="",ii.prototype.stack="",ii.prototype.column=void 0,ii.prototype.line=void 0,ii.prototype.ancestors=void 0,ii.prototype.cause=void 0,ii.prototype.fatal=void 0,ii.prototype.place=void 0,ii.prototype.ruleId=void 0,ii.prototype.source=void 0;const gb={}.hasOwnProperty,sL=new Map,uL=/[A-Z]/g,cL=new Set(["table","tbody","thead","tfoot","tr"]),fL=new Set(["td","th"]),TC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dL(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=xL(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=yL(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?cb:$W,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=_C(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function _C(e,t,n){if(t.type==="element")return hL(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return gL(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return mL(e,t,n);if(t.type==="mdxjsEsm")return pL(e,t);if(t.type==="root")return vL(e,t,n);if(t.type==="text")return bL(e,t)}function hL(e,t,n){const r=e.schema;let l=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(l=cb,e.schema=l),e.ancestors.push(t);const s=RC(e,t.tagName,!1),u=AL(e,t);let f=mb(e,t);return cL.has(t.tagName)&&(f=f.filter(function(g){return typeof g=="string"?!BW(g):!0})),OC(e,u,s,t),pb(u,f),e.ancestors.pop(),e.schema=r,e.create(t,s,u,n)}function gL(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}ph(e,t.position)}function pL(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ph(e,t.position)}function mL(e,t,n){const r=e.schema;let l=r;t.name==="svg"&&r.space==="html"&&(l=cb,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:RC(e,t.name,!0),u=SL(e,t),f=mb(e,t);return OC(e,u,s,t),pb(u,f),e.ancestors.pop(),e.schema=r,e.create(t,s,u,n)}function vL(e,t,n){const r={};return pb(r,mb(e,t)),e.create(t,e.Fragment,r,n)}function bL(e,t){return t.value}function OC(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function pb(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function yL(e,t,n){return r;function r(l,s,u,f){const v=Array.isArray(u.children)?n:t;return f?v(s,u,f):v(s,u)}}function xL(e,t){return n;function n(r,l,s,u){const f=Array.isArray(s.children),g=db(r);return t(l,s,u,f,{columnNumber:g?g.column-1:void 0,fileName:e,lineNumber:g?g.line:void 0},void 0)}}function AL(e,t){const n={};let r,l;for(l in t.properties)if(l!=="children"&&gb.call(t.properties,l)){const s=EL(e,l,t.properties[l]);if(s){const[u,f]=s;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&fL.has(t.tagName)?r=f:n[u]=f}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function SL(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const u=s.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else ph(e,t.position);else{const l=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const f=r.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else ph(e,t.position);else s=r.value===null?!0:r.value;n[l]=s}return n}function mb(e,t){const n=[];let r=-1;const l=e.passKeys?new Map:sL;for(;++r<t.children.length;){const s=t.children[r];let u;if(e.passKeys){const g=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(g){const v=l.get(g)||0;u=g+"-"+v,l.set(g,v+1)}}const f=_C(e,s,u);f!==void 0&&n.push(f)}return n}function EL(e,t,n){const r=jW(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?WW(n):eL(n)),r.property==="style"){let l=typeof n=="object"?n:CL(e,String(n));return e.stylePropertyNameCase==="css"&&(l=wL(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&r.space?ZW[r.property]||r.property:r.attribute,n]}}function CL(e,t){try{return lL(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,l=new ii("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=TC+"#cannot-parse-style-attribute",l}}function RC(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let s=-1,u;for(;++s<l.length;){const f=sC(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}r=u}else r=sC(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const l=r.value;return gb.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(r);ph(e)}function ph(e,t){const n=new ii("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=TC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function wL(e){const t={};let n;for(n in e)gb.call(e,n)&&(t[kL(n)]=e[n]);return t}function kL(e){let t=e.replace(uL,TL);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function TL(e){return"-"+e.toLowerCase()}const vb={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_L={};function bb(e,t){const n=_L,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return FC(e,r,l)}function FC(e,t,n){if(OL(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return IC(e.children,t,n)}return Array.isArray(e)?IC(e,t,n):""}function IC(e,t,n){const r=[];let l=-1;for(;++l<e.length;)r[l]=FC(e[l],t,n);return r.join("")}function OL(e){return!!(e&&typeof e=="object")}const NC=document.createElement("i");function yb(e){const t="&"+e+";";NC.innerHTML=t;const n=NC.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function sa(e,t,n,r){const l=e.length;let s=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);s<r.length;)u=r.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function Ha(e,t){return e.length>0?(sa(e,e.length,0,t),e):t}const PC={}.hasOwnProperty;function zC(e){const t={};let n=-1;for(;++n<e.length;)RL(t,e[n]);return t}function RL(e,t){let n;for(n in t){const l=(PC.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let u;if(s)for(u in s){PC.call(l,u)||(l[u]=[]);const f=s[u];FL(l[u],Array.isArray(f)?f:f?[f]:[])}}}function FL(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);sa(e,0,0,r)}function DC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function bl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const bi=Xs(/[A-Za-z]/),ai=Xs(/[\dA-Za-z]/),IL=Xs(/[#-'*+\--9=?A-Z^-~]/);function Bp(e){return e!==null&&(e<32||e===127)}const xb=Xs(/\d/),NL=Xs(/[\dA-Fa-f]/),PL=Xs(/[!-/:-@[-`{-~]/);function $e(e){return e!==null&&e<-2}function hn(e){return e!==null&&(e<0||e===32)}function Ct(e){return e===-2||e===-1||e===32}const Hp=Xs(new RegExp("\\p{P}|\\p{S}","u")),oc=Xs(/\s/);function Xs(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Of(e){const t=[];let n=-1,r=0,l=0;for(;++n<e.length;){const s=e.charCodeAt(n);let u="";if(s===37&&ai(e.charCodeAt(n+1))&&ai(e.charCodeAt(n+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(n+1);s<56320&&f>56319&&f<57344?(u=String.fromCharCode(s,f),l=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+l+1,u=""),l&&(n+=l,l=0)}return t.join("")+e.slice(r)}function It(e,t,n,r){const l=r?r-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(g){return Ct(g)?(e.enter(n),f(g)):t(g)}function f(g){return Ct(g)&&s++<l?(e.consume(g),f):(e.exit(n),t(g))}}const zL={tokenize:DL};function DL(e){const t=e.attempt(this.parser.constructs.contentInitial,r,l);let n;return t;function r(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),It(e,t,"linePrefix")}function l(f){return e.enter("paragraph"),s(f)}function s(f){const g=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=g),n=g,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return $e(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),u)}}const ML={tokenize:WL},MC={tokenize:LL};function WL(e){const t=this,n=[];let r=0,l,s,u;return f;function f(V){if(r<n.length){const re=n[r];return t.containerState=re[1],e.attempt(re[0].continuation,g,v)(V)}return v(V)}function g(V){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&X();const re=t.events.length;let U=re,J;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){J=t.events[U][1].end;break}L(r);let de=re;for(;de<t.events.length;)t.events[de][1].end={...J},de++;return sa(t.events,U+1,0,t.events.slice(re)),t.events.length=de,v(V)}return f(V)}function v(V){if(r===n.length){if(!l)return C(V);if(l.currentConstruct&&l.currentConstruct.concrete)return R(V);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(MC,y,A)(V)}function y(V){return l&&X(),L(r),C(V)}function A(V){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,R(V)}function C(V){return t.containerState={},e.attempt(MC,w,R)(V)}function w(V){return r++,n.push([t.currentConstruct,t.containerState]),C(V)}function R(V){if(V===null){l&&X(),L(0),e.consume(V);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),N(V)}function N(V){if(V===null){Y(e.exit("chunkFlow"),!0),L(0),e.consume(V);return}return $e(V)?(e.consume(V),Y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,f):(e.consume(V),N)}function Y(V,re){const U=t.sliceStream(V);if(re&&U.push(null),V.previous=s,s&&(s.next=V),s=V,l.defineSkip(V.start),l.write(U),t.parser.lazy[V.start.line]){let J=l.events.length;for(;J--;)if(l.events[J][1].start.offset<u&&(!l.events[J][1].end||l.events[J][1].end.offset>u))return;const de=t.events.length;let ae=de,ie,H;for(;ae--;)if(t.events[ae][0]==="exit"&&t.events[ae][1].type==="chunkFlow"){if(ie){H=t.events[ae][1].end;break}ie=!0}for(L(r),J=de;J<t.events.length;)t.events[J][1].end={...H},J++;sa(t.events,ae+1,0,t.events.slice(de)),t.events.length=J}}function L(V){let re=n.length;for(;re-- >V;){const U=n[re];t.containerState=U[1],U[0].exit.call(t,e)}n.length=V}function X(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function LL(e,t,n){return It(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Rf(e){if(e===null||hn(e)||oc(e))return 1;if(Hp(e))return 2}function Up(e,t,n){const r=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Ab={name:"attention",resolveAll:YL,tokenize:VL};function YL(e,t){let n=-1,r,l,s,u,f,g,v,y;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;g=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const A={...e[r][1].end},C={...e[n][1].start};WC(A,-g),WC(C,g),u={type:g>1?"strongSequence":"emphasisSequence",start:A,end:{...e[r][1].end}},f={type:g>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:C},s={type:g>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},l={type:g>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[r][1].end={...u.start},e[n][1].start={...f.end},v=[],e[r][1].end.offset-e[r][1].start.offset&&(v=Ha(v,[["enter",e[r][1],t],["exit",e[r][1],t]])),v=Ha(v,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",s,t]]),v=Ha(v,Up(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),v=Ha(v,[["exit",s,t],["enter",f,t],["exit",f,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(y=2,v=Ha(v,[["enter",e[n][1],t],["exit",e[n][1],t]])):y=0,sa(e,r-1,n-r+3,v),n=r+v.length-y-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function VL(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,l=Rf(r);let s;return u;function u(g){return s=g,e.enter("attentionSequence"),f(g)}function f(g){if(g===s)return e.consume(g),f;const v=e.exit("attentionSequence"),y=Rf(g),A=!y||y===2&&l||n.includes(g),C=!l||l===2&&y||n.includes(r);return v._open=!!(s===42?A:A&&(l||!C)),v._close=!!(s===42?C:C&&(y||!A)),t(g)}}function WC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const XL={name:"autolink",tokenize:BL};function BL(e,t,n){let r=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(w){return bi(w)?(e.consume(w),u):w===64?n(w):v(w)}function u(w){return w===43||w===45||w===46||ai(w)?(r=1,f(w)):v(w)}function f(w){return w===58?(e.consume(w),r=0,g):(w===43||w===45||w===46||ai(w))&&r++<32?(e.consume(w),f):(r=0,v(w))}function g(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||Bp(w)?n(w):(e.consume(w),g)}function v(w){return w===64?(e.consume(w),y):IL(w)?(e.consume(w),v):n(w)}function y(w){return ai(w)?A(w):n(w)}function A(w){return w===46?(e.consume(w),r=0,y):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):C(w)}function C(w){if((w===45||ai(w))&&r++<63){const R=w===45?C:A;return e.consume(w),R}return n(w)}}const mh={partial:!0,tokenize:HL};function HL(e,t,n){return r;function r(s){return Ct(s)?It(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||$e(s)?t(s):n(s)}}const LC={continuation:{tokenize:GL},exit:ZL,name:"blockQuote",tokenize:UL};function UL(e,t,n){const r=this;return l;function l(u){if(u===62){const f=r.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return n(u)}function s(u){return Ct(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function GL(e,t,n){const r=this;return l;function l(u){return Ct(u)?It(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(LC,t,n)(u)}}function ZL(e){e.exit("blockQuote")}const YC={name:"characterEscape",tokenize:QL};function QL(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return PL(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const VC={name:"characterReference",tokenize:KL};function KL(e,t,n){const r=this;let l=0,s,u;return f;function f(A){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(A),e.exit("characterReferenceMarker"),g}function g(A){return A===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(A),e.exit("characterReferenceMarkerNumeric"),v):(e.enter("characterReferenceValue"),s=31,u=ai,y(A))}function v(A){return A===88||A===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(A),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=NL,y):(e.enter("characterReferenceValue"),s=7,u=xb,y(A))}function y(A){if(A===59&&l){const C=e.exit("characterReferenceValue");return u===ai&&!yb(r.sliceSerialize(C))?n(A):(e.enter("characterReferenceMarker"),e.consume(A),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(A)&&l++<s?(e.consume(A),y):n(A)}}const XC={partial:!0,tokenize:JL},BC={concrete:!0,name:"codeFenced",tokenize:jL};function jL(e,t,n){const r=this,l={partial:!0,tokenize:U};let s=0,u=0,f;return g;function g(J){return v(J)}function v(J){const de=r.events[r.events.length-1];return s=de&&de[1].type==="linePrefix"?de[2].sliceSerialize(de[1],!0).length:0,f=J,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(J)}function y(J){return J===f?(u++,e.consume(J),y):u<3?n(J):(e.exit("codeFencedFenceSequence"),Ct(J)?It(e,A,"whitespace")(J):A(J))}function A(J){return J===null||$e(J)?(e.exit("codeFencedFence"),r.interrupt?t(J):e.check(XC,N,re)(J)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),C(J))}function C(J){return J===null||$e(J)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),A(J)):Ct(J)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),It(e,w,"whitespace")(J)):J===96&&J===f?n(J):(e.consume(J),C)}function w(J){return J===null||$e(J)?A(J):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),R(J))}function R(J){return J===null||$e(J)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),A(J)):J===96&&J===f?n(J):(e.consume(J),R)}function N(J){return e.attempt(l,re,Y)(J)}function Y(J){return e.enter("lineEnding"),e.consume(J),e.exit("lineEnding"),L}function L(J){return s>0&&Ct(J)?It(e,X,"linePrefix",s+1)(J):X(J)}function X(J){return J===null||$e(J)?e.check(XC,N,re)(J):(e.enter("codeFlowValue"),V(J))}function V(J){return J===null||$e(J)?(e.exit("codeFlowValue"),X(J)):(e.consume(J),V)}function re(J){return e.exit("codeFenced"),t(J)}function U(J,de,ae){let ie=0;return H;function H(ue){return J.enter("lineEnding"),J.consume(ue),J.exit("lineEnding"),Ae}function Ae(ue){return J.enter("codeFencedFence"),Ct(ue)?It(J,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ue):ce(ue)}function ce(ue){return ue===f?(J.enter("codeFencedFenceSequence"),_e(ue)):ae(ue)}function _e(ue){return ue===f?(ie++,J.consume(ue),_e):ie>=u?(J.exit("codeFencedFenceSequence"),Ct(ue)?It(J,$,"whitespace")(ue):$(ue)):ae(ue)}function $(ue){return ue===null||$e(ue)?(J.exit("codeFencedFence"),de(ue)):ae(ue)}}}function JL(e,t,n){const r=this;return l;function l(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const Sb={name:"codeIndented",tokenize:$L},qL={partial:!0,tokenize:e8};function $L(e,t,n){const r=this;return l;function l(v){return e.enter("codeIndented"),It(e,s,"linePrefix",5)(v)}function s(v){const y=r.events[r.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(v):n(v)}function u(v){return v===null?g(v):$e(v)?e.attempt(qL,u,g)(v):(e.enter("codeFlowValue"),f(v))}function f(v){return v===null||$e(v)?(e.exit("codeFlowValue"),u(v)):(e.consume(v),f)}function g(v){return e.exit("codeIndented"),t(v)}}function e8(e,t,n){const r=this;return l;function l(u){return r.parser.lazy[r.now().line]?n(u):$e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):It(e,s,"linePrefix",5)(u)}function s(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):$e(u)?l(u):n(u)}}const t8={name:"codeText",previous:r8,resolve:n8,tokenize:i8};function n8(e){let t=e.length-4,n=3,r,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)l===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(l=r):(r===t||e[r][1].type==="lineEnding")&&(e[l][1].type="codeTextData",r!==l+2&&(e[l][1].end=e[r-1][1].end,e.splice(l+2,r-l-2),t-=r-l-2,r=l+2),l=void 0);return e}function r8(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function i8(e,t,n){let r=0,l,s;return u;function u(A){return e.enter("codeText"),e.enter("codeTextSequence"),f(A)}function f(A){return A===96?(e.consume(A),r++,f):(e.exit("codeTextSequence"),g(A))}function g(A){return A===null?n(A):A===32?(e.enter("space"),e.consume(A),e.exit("space"),g):A===96?(s=e.enter("codeTextSequence"),l=0,y(A)):$e(A)?(e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),g):(e.enter("codeTextData"),v(A))}function v(A){return A===null||A===32||A===96||$e(A)?(e.exit("codeTextData"),g(A)):(e.consume(A),v)}function y(A){return A===96?(e.consume(A),l++,y):l===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(A)):(s.type="codeTextData",v(A))}}class a8{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const l=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return r&&vh(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),vh(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vh(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);vh(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vh(this.left,n.reverse())}}}function vh(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function HC(e){const t={};let n=-1,r,l,s,u,f,g,v;const y=new a8(e);for(;++n<y.length;){for(;n in t;)n=t[n];if(r=y.get(n),n&&r[1].type==="chunkFlow"&&y.get(n-1)[1].type==="listItemPrefix"&&(g=r[1]._tokenizer.events,s=0,s<g.length&&g[s][1].type==="lineEndingBlank"&&(s+=2),s<g.length&&g[s][1].type==="content"))for(;++s<g.length&&g[s][1].type!=="content";)g[s][1].type==="chunkText"&&(g[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,l8(y,n)),n=t[n],v=!0);else if(r[1]._container){for(s=n,l=void 0;s--;)if(u=y.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(y.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(r[1].end={...y.get(l)[1].start},f=y.slice(l,n),f.unshift(r),y.splice(l,n-l+1,f))}}return sa(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!v}function l8(e,t){const n=e.get(t)[1],r=e.get(t)[2];let l=t-1;const s=[];let u=n._tokenizer;u||(u=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,g=[],v={};let y,A,C=-1,w=n,R=0,N=0;const Y=[N];for(;w;){for(;e.get(++l)[1]!==w;);s.push(l),w._tokenizer||(y=r.sliceStream(w),w.next||y.push(null),A&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),A=w,w=w.next}for(w=n;++C<f.length;)f[C][0]==="exit"&&f[C-1][0]==="enter"&&f[C][1].type===f[C-1][1].type&&f[C][1].start.line!==f[C][1].end.line&&(N=C+1,Y.push(N),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):Y.pop(),C=Y.length;C--;){const L=f.slice(Y[C],Y[C+1]),X=s.pop();g.push([X,X+L.length-1]),e.splice(X,2,L)}for(g.reverse(),C=-1;++C<g.length;)v[R+g[C][0]]=R+g[C][1],R+=g[C][1]-g[C][0]-1;return v}const o8={resolve:u8,tokenize:c8},s8={partial:!0,tokenize:f8};function u8(e){return HC(e),e}function c8(e,t){let n;return r;function r(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?s(f):$e(f)?e.check(s8,u,s)(f):(e.consume(f),l)}function s(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function f8(e,t,n){const r=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),It(e,s,"linePrefix")}function s(u){if(u===null||$e(u))return n(u);const f=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function UC(e,t,n,r,l,s,u,f,g){const v=g||Number.POSITIVE_INFINITY;let y=0;return A;function A(L){return L===60?(e.enter(r),e.enter(l),e.enter(s),e.consume(L),e.exit(s),C):L===null||L===32||L===41||Bp(L)?n(L):(e.enter(r),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),N(L))}function C(L){return L===62?(e.enter(s),e.consume(L),e.exit(s),e.exit(l),e.exit(r),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),w(L))}function w(L){return L===62?(e.exit("chunkString"),e.exit(f),C(L)):L===null||L===60||$e(L)?n(L):(e.consume(L),L===92?R:w)}function R(L){return L===60||L===62||L===92?(e.consume(L),w):w(L)}function N(L){return!y&&(L===null||L===41||hn(L))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(r),t(L)):y<v&&L===40?(e.consume(L),y++,N):L===41?(e.consume(L),y--,N):L===null||L===32||L===40||Bp(L)?n(L):(e.consume(L),L===92?Y:N)}function Y(L){return L===40||L===41||L===92?(e.consume(L),N):N(L)}}function GC(e,t,n,r,l,s){const u=this;let f=0,g;return v;function v(w){return e.enter(r),e.enter(l),e.consume(w),e.exit(l),e.enter(s),y}function y(w){return f>999||w===null||w===91||w===93&&!g||w===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(w):w===93?(e.exit(s),e.enter(l),e.consume(w),e.exit(l),e.exit(r),t):$e(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),A(w))}function A(w){return w===null||w===91||w===93||$e(w)||f++>999?(e.exit("chunkString"),y(w)):(e.consume(w),g||(g=!Ct(w)),w===92?C:A)}function C(w){return w===91||w===92||w===93?(e.consume(w),f++,A):A(w)}}function ZC(e,t,n,r,l,s){let u;return f;function f(C){return C===34||C===39||C===40?(e.enter(r),e.enter(l),e.consume(C),e.exit(l),u=C===40?41:C,g):n(C)}function g(C){return C===u?(e.enter(l),e.consume(C),e.exit(l),e.exit(r),t):(e.enter(s),v(C))}function v(C){return C===u?(e.exit(s),g(u)):C===null?n(C):$e(C)?(e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),It(e,v,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(C))}function y(C){return C===u||C===null||$e(C)?(e.exit("chunkString"),v(C)):(e.consume(C),C===92?A:y)}function A(C){return C===u||C===92?(e.consume(C),y):y(C)}}function bh(e,t){let n;return r;function r(l){return $e(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,r):Ct(l)?It(e,r,n?"linePrefix":"lineSuffix")(l):t(l)}}const d8={name:"definition",tokenize:g8},h8={partial:!0,tokenize:p8};function g8(e,t,n){const r=this;let l;return s;function s(w){return e.enter("definition"),u(w)}function u(w){return GC.call(r,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function f(w){return l=bl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),g):n(w)}function g(w){return hn(w)?bh(e,v)(w):v(w)}function v(w){return UC(e,y,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function y(w){return e.attempt(h8,A,A)(w)}function A(w){return Ct(w)?It(e,C,"whitespace")(w):C(w)}function C(w){return w===null||$e(w)?(e.exit("definition"),r.parser.defined.push(l),t(w)):n(w)}}function p8(e,t,n){return r;function r(f){return hn(f)?bh(e,l)(f):n(f)}function l(f){return ZC(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Ct(f)?It(e,u,"whitespace")(f):u(f)}function u(f){return f===null||$e(f)?t(f):n(f)}}const m8={name:"hardBreakEscape",tokenize:v8};function v8(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return $e(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const b8={name:"headingAtx",resolve:y8,tokenize:x8};function y8(e,t){let n=e.length-2,r=3,l,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(l={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},sa(e,r,n-r+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function x8(e,t,n){let r=0;return l;function l(y){return e.enter("atxHeading"),s(y)}function s(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&r++<6?(e.consume(y),u):y===null||hn(y)?(e.exit("atxHeadingSequence"),f(y)):n(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),g(y)):y===null||$e(y)?(e.exit("atxHeading"),t(y)):Ct(y)?It(e,f,"whitespace")(y):(e.enter("atxHeadingText"),v(y))}function g(y){return y===35?(e.consume(y),g):(e.exit("atxHeadingSequence"),f(y))}function v(y){return y===null||y===35||hn(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),v)}}const A8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],QC=["pre","script","style","textarea"],S8={concrete:!0,name:"htmlFlow",resolveTo:w8,tokenize:k8},E8={partial:!0,tokenize:_8},C8={partial:!0,tokenize:T8};function w8(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function k8(e,t,n){const r=this;let l,s,u,f,g;return v;function v(D){return y(D)}function y(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),A}function A(D){return D===33?(e.consume(D),C):D===47?(e.consume(D),s=!0,N):D===63?(e.consume(D),l=3,r.interrupt?t:k):bi(D)?(e.consume(D),u=String.fromCharCode(D),Y):n(D)}function C(D){return D===45?(e.consume(D),l=2,w):D===91?(e.consume(D),l=5,f=0,R):bi(D)?(e.consume(D),l=4,r.interrupt?t:k):n(D)}function w(D){return D===45?(e.consume(D),r.interrupt?t:k):n(D)}function R(D){const xe="CDATA[";return D===xe.charCodeAt(f++)?(e.consume(D),f===xe.length?r.interrupt?t:ce:R):n(D)}function N(D){return bi(D)?(e.consume(D),u=String.fromCharCode(D),Y):n(D)}function Y(D){if(D===null||D===47||D===62||hn(D)){const xe=D===47,Ve=u.toLowerCase();return!xe&&!s&&QC.includes(Ve)?(l=1,r.interrupt?t(D):ce(D)):A8.includes(u.toLowerCase())?(l=6,xe?(e.consume(D),L):r.interrupt?t(D):ce(D)):(l=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(D):s?X(D):V(D))}return D===45||ai(D)?(e.consume(D),u+=String.fromCharCode(D),Y):n(D)}function L(D){return D===62?(e.consume(D),r.interrupt?t:ce):n(D)}function X(D){return Ct(D)?(e.consume(D),X):H(D)}function V(D){return D===47?(e.consume(D),H):D===58||D===95||bi(D)?(e.consume(D),re):Ct(D)?(e.consume(D),V):H(D)}function re(D){return D===45||D===46||D===58||D===95||ai(D)?(e.consume(D),re):U(D)}function U(D){return D===61?(e.consume(D),J):Ct(D)?(e.consume(D),U):V(D)}function J(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),g=D,de):Ct(D)?(e.consume(D),J):ae(D)}function de(D){return D===g?(e.consume(D),g=null,ie):D===null||$e(D)?n(D):(e.consume(D),de)}function ae(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||hn(D)?U(D):(e.consume(D),ae)}function ie(D){return D===47||D===62||Ct(D)?V(D):n(D)}function H(D){return D===62?(e.consume(D),Ae):n(D)}function Ae(D){return D===null||$e(D)?ce(D):Ct(D)?(e.consume(D),Ae):n(D)}function ce(D){return D===45&&l===2?(e.consume(D),z):D===60&&l===1?(e.consume(D),Q):D===62&&l===4?(e.consume(D),B):D===63&&l===3?(e.consume(D),k):D===93&&l===5?(e.consume(D),Ee):$e(D)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(E8,ve,_e)(D)):D===null||$e(D)?(e.exit("htmlFlowData"),_e(D)):(e.consume(D),ce)}function _e(D){return e.check(C8,$,ve)(D)}function $(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),ue}function ue(D){return D===null||$e(D)?_e(D):(e.enter("htmlFlowData"),ce(D))}function z(D){return D===45?(e.consume(D),k):ce(D)}function Q(D){return D===47?(e.consume(D),u="",Ce):ce(D)}function Ce(D){if(D===62){const xe=u.toLowerCase();return QC.includes(xe)?(e.consume(D),B):ce(D)}return bi(D)&&u.length<8?(e.consume(D),u+=String.fromCharCode(D),Ce):ce(D)}function Ee(D){return D===93?(e.consume(D),k):ce(D)}function k(D){return D===62?(e.consume(D),B):D===45&&l===2?(e.consume(D),k):ce(D)}function B(D){return D===null||$e(D)?(e.exit("htmlFlowData"),ve(D)):(e.consume(D),B)}function ve(D){return e.exit("htmlFlow"),t(D)}}function T8(e,t,n){const r=this;return l;function l(u){return $e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):n(u)}function s(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function _8(e,t,n){return r;function r(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(mh,t,n)}}const O8={name:"htmlText",tokenize:R8};function R8(e,t,n){const r=this;let l,s,u;return f;function f(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),g}function g(k){return k===33?(e.consume(k),v):k===47?(e.consume(k),U):k===63?(e.consume(k),V):bi(k)?(e.consume(k),ae):n(k)}function v(k){return k===45?(e.consume(k),y):k===91?(e.consume(k),s=0,R):bi(k)?(e.consume(k),X):n(k)}function y(k){return k===45?(e.consume(k),w):n(k)}function A(k){return k===null?n(k):k===45?(e.consume(k),C):$e(k)?(u=A,Q(k)):(e.consume(k),A)}function C(k){return k===45?(e.consume(k),w):A(k)}function w(k){return k===62?z(k):k===45?C(k):A(k)}function R(k){const B="CDATA[";return k===B.charCodeAt(s++)?(e.consume(k),s===B.length?N:R):n(k)}function N(k){return k===null?n(k):k===93?(e.consume(k),Y):$e(k)?(u=N,Q(k)):(e.consume(k),N)}function Y(k){return k===93?(e.consume(k),L):N(k)}function L(k){return k===62?z(k):k===93?(e.consume(k),L):N(k)}function X(k){return k===null||k===62?z(k):$e(k)?(u=X,Q(k)):(e.consume(k),X)}function V(k){return k===null?n(k):k===63?(e.consume(k),re):$e(k)?(u=V,Q(k)):(e.consume(k),V)}function re(k){return k===62?z(k):V(k)}function U(k){return bi(k)?(e.consume(k),J):n(k)}function J(k){return k===45||ai(k)?(e.consume(k),J):de(k)}function de(k){return $e(k)?(u=de,Q(k)):Ct(k)?(e.consume(k),de):z(k)}function ae(k){return k===45||ai(k)?(e.consume(k),ae):k===47||k===62||hn(k)?ie(k):n(k)}function ie(k){return k===47?(e.consume(k),z):k===58||k===95||bi(k)?(e.consume(k),H):$e(k)?(u=ie,Q(k)):Ct(k)?(e.consume(k),ie):z(k)}function H(k){return k===45||k===46||k===58||k===95||ai(k)?(e.consume(k),H):Ae(k)}function Ae(k){return k===61?(e.consume(k),ce):$e(k)?(u=Ae,Q(k)):Ct(k)?(e.consume(k),Ae):ie(k)}function ce(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,_e):$e(k)?(u=ce,Q(k)):Ct(k)?(e.consume(k),ce):(e.consume(k),$)}function _e(k){return k===l?(e.consume(k),l=void 0,ue):k===null?n(k):$e(k)?(u=_e,Q(k)):(e.consume(k),_e)}function $(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||hn(k)?ie(k):(e.consume(k),$)}function ue(k){return k===47||k===62||hn(k)?ie(k):n(k)}function z(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function Q(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Ce}function Ce(k){return Ct(k)?It(e,Ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):Ee(k)}function Ee(k){return e.enter("htmlTextData"),u(k)}}const Eb={name:"labelEnd",resolveAll:P8,resolveTo:z8,tokenize:D8},F8={tokenize:M8},I8={tokenize:W8},N8={tokenize:L8};function P8(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const l=r.type==="labelImage"?4:2;r.type="data",t+=l}}return e.length!==n.length&&sa(e,0,e.length,n),e}function z8(e,t){let n=e.length,r=0,l,s,u,f;for(;n--;)if(l=e[n][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=n,l.type!=="labelLink")){r=2;break}}else l.type==="labelEnd"&&(u=n);const g={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},v={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},y={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",g,t],["enter",v,t]],f=Ha(f,e.slice(s+1,s+r+3)),f=Ha(f,[["enter",y,t]]),f=Ha(f,Up(t.parser.constructs.insideSpan.null,e.slice(s+r+4,u-3),t)),f=Ha(f,[["exit",y,t],e[u-2],e[u-1],["exit",v,t]]),f=Ha(f,e.slice(u+1)),f=Ha(f,[["exit",g,t]]),sa(e,s,e.length,f),e}function D8(e,t,n){const r=this;let l=r.events.length,s,u;for(;l--;)if((r.events[l][1].type==="labelImage"||r.events[l][1].type==="labelLink")&&!r.events[l][1]._balanced){s=r.events[l][1];break}return f;function f(C){return s?s._inactive?A(C):(u=r.parser.defined.includes(bl(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(C),e.exit("labelMarker"),e.exit("labelEnd"),g):n(C)}function g(C){return C===40?e.attempt(F8,y,u?y:A)(C):C===91?e.attempt(I8,y,u?v:A)(C):u?y(C):A(C)}function v(C){return e.attempt(N8,y,A)(C)}function y(C){return t(C)}function A(C){return s._balanced=!0,n(C)}}function M8(e,t,n){return r;function r(A){return e.enter("resource"),e.enter("resourceMarker"),e.consume(A),e.exit("resourceMarker"),l}function l(A){return hn(A)?bh(e,s)(A):s(A)}function s(A){return A===41?y(A):UC(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(A)}function u(A){return hn(A)?bh(e,g)(A):y(A)}function f(A){return n(A)}function g(A){return A===34||A===39||A===40?ZC(e,v,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(A):y(A)}function v(A){return hn(A)?bh(e,y)(A):y(A)}function y(A){return A===41?(e.enter("resourceMarker"),e.consume(A),e.exit("resourceMarker"),e.exit("resource"),t):n(A)}}function W8(e,t,n){const r=this;return l;function l(f){return GC.call(r,e,s,u,"reference","referenceMarker","referenceString")(f)}function s(f){return r.parser.defined.includes(bl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function L8(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const Y8={name:"labelStartImage",resolveAll:Eb.resolveAll,tokenize:V8};function V8(e,t,n){const r=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(f):t(f)}}const X8={name:"labelStartLink",resolveAll:Eb.resolveAll,tokenize:B8};function B8(e,t,n){const r=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Cb={name:"lineEnding",tokenize:H8};function H8(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),It(e,t,"linePrefix")}}const Gp={name:"thematicBreak",tokenize:U8};function U8(e,t,n){let r=0,l;return s;function s(v){return e.enter("thematicBreak"),u(v)}function u(v){return l=v,f(v)}function f(v){return v===l?(e.enter("thematicBreakSequence"),g(v)):r>=3&&(v===null||$e(v))?(e.exit("thematicBreak"),t(v)):n(v)}function g(v){return v===l?(e.consume(v),r++,g):(e.exit("thematicBreakSequence"),Ct(v)?It(e,f,"whitespace")(v):f(v))}}const Li={continuation:{tokenize:K8},exit:J8,name:"list",tokenize:Q8},G8={partial:!0,tokenize:q8},Z8={partial:!0,tokenize:j8};function Q8(e,t,n){const r=this,l=r.events[r.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return f;function f(w){const R=r.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!r.containerState.marker||w===r.containerState.marker:xb(w)){if(r.containerState.type||(r.containerState.type=R,e.enter(R,{_container:!0})),R==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Gp,n,v)(w):v(w);if(!r.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),g(w)}return n(w)}function g(w){return xb(w)&&++u<10?(e.consume(w),g):(!r.interrupt||u<2)&&(r.containerState.marker?w===r.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),v(w)):n(w)}function v(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||w,e.check(mh,r.interrupt?n:y,e.attempt(G8,C,A))}function y(w){return r.containerState.initialBlankLine=!0,s++,C(w)}function A(w){return Ct(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),C):n(w)}function C(w){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function K8(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(mh,l,s);function l(f){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,It(e,t,"listItemIndent",r.containerState.size+1)(f)}function s(f){return r.containerState.furtherBlankLines||!Ct(f)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(f)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Z8,t,u)(f))}function u(f){return r.containerState._closeFlow=!0,r.interrupt=void 0,It(e,e.attempt(Li,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function j8(e,t,n){const r=this;return It(e,l,"listItemIndent",r.containerState.size+1);function l(s){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(s):n(s)}}function J8(e){e.exit(this.containerState.type)}function q8(e,t,n){const r=this;return It(e,l,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const u=r.events[r.events.length-1];return!Ct(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const KC={name:"setextUnderline",resolveTo:$8,tokenize:eY};function $8(e,t){let n=e.length,r,l,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const u={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",u,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=u,e.push(["exit",u,t]),e}function eY(e,t,n){const r=this;let l;return s;function s(v){let y=r.events.length,A;for(;y--;)if(r.events[y][1].type!=="lineEnding"&&r.events[y][1].type!=="linePrefix"&&r.events[y][1].type!=="content"){A=r.events[y][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||A)?(e.enter("setextHeadingLine"),l=v,u(v)):n(v)}function u(v){return e.enter("setextHeadingLineSequence"),f(v)}function f(v){return v===l?(e.consume(v),f):(e.exit("setextHeadingLineSequence"),Ct(v)?It(e,g,"lineSuffix")(v):g(v))}function g(v){return v===null||$e(v)?(e.exit("setextHeadingLine"),t(v)):n(v)}}const tY={tokenize:nY};function nY(e){const t=this,n=e.attempt(mh,r,e.attempt(this.parser.constructs.flowInitial,l,It(e,e.attempt(this.parser.constructs.flow,l,e.attempt(o8,l)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const rY={resolveAll:JC()},iY=jC("string"),aY=jC("text");function jC(e){return{resolveAll:JC(e==="text"?lY:void 0),tokenize:t};function t(n){const r=this,l=this.parser.constructs[e],s=n.attempt(l,u,f);return u;function u(y){return v(y)?s(y):f(y)}function f(y){if(y===null){n.consume(y);return}return n.enter("data"),n.consume(y),g}function g(y){return v(y)?(n.exit("data"),s(y)):(n.consume(y),g)}function v(y){if(y===null)return!0;const A=l[y];let C=-1;if(A)for(;++C<A.length;){const w=A[C];if(!w.previous||w.previous.call(r,r.previous))return!0}return!1}}}function JC(e){return t;function t(n,r){let l=-1,s;for(;++l<=n.length;)s===void 0?n[l]&&n[l][1].type==="data"&&(s=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==s+2&&(n[s][1].end=n[l-1][1].end,n.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(n,r):n}}function lY(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],l=t.sliceStream(r);let s=l.length,u=-1,f=0,g;for(;s--;){const v=l[s];if(typeof v=="string"){for(u=v.length;v.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(v===-2)g=!0,f++;else if(v!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const v={type:n===e.length||g||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:r.start._bufferIndex+u,_index:r.start._index+s,line:r.end.line,column:r.end.column-f,offset:r.end.offset-f},end:{...r.end}};r.end={...v.start},r.start.offset===r.end.offset?Object.assign(r,v):(e.splice(n,0,["enter",v,t],["exit",v,t]),n+=2)}n++}return e}const oY=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:d8},disable:{null:[]},document:{42:Li,43:Li,45:Li,48:Li,49:Li,50:Li,51:Li,52:Li,53:Li,54:Li,55:Li,56:Li,57:Li,62:LC},flow:{35:b8,42:Gp,45:[KC,Gp],60:S8,61:KC,95:Gp,96:BC,126:BC},flowInitial:{[-2]:Sb,[-1]:Sb,32:Sb},insideSpan:{null:[Ab,rY]},string:{38:VC,92:YC},text:{[-5]:Cb,[-4]:Cb,[-3]:Cb,33:Y8,38:VC,42:Ab,60:[XL,O8],91:X8,92:[m8,YC],93:Eb,95:Ab,96:t8}},Symbol.toStringTag,{value:"Module"}));function sY(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},s=[];let u=[],f=[];const g={attempt:de(U),check:de(J),consume:X,enter:V,exit:re,interrupt:de(J,{interrupt:!0})},v={code:null,containerState:{},defineSkip:N,events:[],now:R,parser:e,previous:null,sliceSerialize:C,sliceStream:w,write:A};let y=t.tokenize.call(v,g);return t.resolveAll&&s.push(t),v;function A(Ae){return u=Ha(u,Ae),Y(),u[u.length-1]!==null?[]:(ae(t,0),v.events=Up(s,v.events,v),v.events)}function C(Ae,ce){return cY(w(Ae),ce)}function w(Ae){return uY(u,Ae)}function R(){const{_bufferIndex:Ae,_index:ce,line:_e,column:$,offset:ue}=r;return{_bufferIndex:Ae,_index:ce,line:_e,column:$,offset:ue}}function N(Ae){l[Ae.line]=Ae.column,H()}function Y(){let Ae;for(;r._index<u.length;){const ce=u[r._index];if(typeof ce=="string")for(Ae=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===Ae&&r._bufferIndex<ce.length;)L(ce.charCodeAt(r._bufferIndex));else L(ce)}}function L(Ae){y=y(Ae)}function X(Ae){$e(Ae)?(r.line++,r.column=1,r.offset+=Ae===-3?2:1,H()):Ae!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),v.previous=Ae}function V(Ae,ce){const _e=ce||{};return _e.type=Ae,_e.start=R(),v.events.push(["enter",_e,v]),f.push(_e),_e}function re(Ae){const ce=f.pop();return ce.end=R(),v.events.push(["exit",ce,v]),ce}function U(Ae,ce){ae(Ae,ce.from)}function J(Ae,ce){ce.restore()}function de(Ae,ce){return _e;function _e($,ue,z){let Q,Ce,Ee,k;return Array.isArray($)?ve($):"tokenize"in $?ve([$]):B($);function B(De){return ht;function ht(ye){const Re=ye!==null&&De[ye],Fe=ye!==null&&De.null,We=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return ve(We)(ye)}}function ve(De){return Q=De,Ce=0,De.length===0?z:D(De[Ce])}function D(De){return ht;function ht(ye){return k=ie(),Ee=De,De.partial||(v.currentConstruct=De),De.name&&v.parser.constructs.disable.null.includes(De.name)?Ve():De.tokenize.call(ce?Object.assign(Object.create(v),ce):v,g,xe,Ve)(ye)}}function xe(De){return Ae(Ee,k),ue}function Ve(De){return k.restore(),++Ce<Q.length?D(Q[Ce]):z}}}function ae(Ae,ce){Ae.resolveAll&&!s.includes(Ae)&&s.push(Ae),Ae.resolve&&sa(v.events,ce,v.events.length-ce,Ae.resolve(v.events.slice(ce),v)),Ae.resolveTo&&(v.events=Ae.resolveTo(v.events,v))}function ie(){const Ae=R(),ce=v.previous,_e=v.currentConstruct,$=v.events.length,ue=Array.from(f);return{from:$,restore:z};function z(){r=Ae,v.previous=ce,v.currentConstruct=_e,v.events.length=$,f=ue,H()}}function H(){r.line in l&&r.column<2&&(r.column=l[r.line],r.offset+=l[r.line]-1)}}function uY(e,t){const n=t.start._index,r=t.start._bufferIndex,l=t.end._index,s=t.end._bufferIndex;let u;if(n===l)u=[e[n].slice(r,s)];else{if(u=e.slice(n,l),r>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(r):u.shift()}s>0&&u.push(e[l].slice(0,s))}return u}function cY(e,t){let n=-1;const r=[];let l;for(;++n<e.length;){const s=e[n];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
|
80
80
|
`;break}case-3:{u=`\r
|
81
|
-
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(s)}l=s===-2,r.push(u)}return r.join("")}function fY(e){const r={constructs:zC([oY,...(e||{}).extensions||[]]),content:l(z8),defined:[],document:l(M8),flow:l(tY),lazy:{},string:l(iY),text:l(aY)};return r;function l(s){return u;function u(f){return sY(r,s,f)}}}function dY(e){for(;!HC(e););return e}const qC=/[\0\t\n\r]/g;function hY(){let e=1,t="",n=!0,r;return l;function l(s,u,f){const g=[];let v,y,A,C,w;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),A=0,t="",n&&(s.charCodeAt(0)===65279&&A++,n=void 0);A<s.length;){if(qC.lastIndex=A,v=qC.exec(s),C=v&&v.index!==void 0?v.index:s.length,w=s.charCodeAt(C),!v){t=s.slice(A);break}if(w===10&&A===C&&r)g.push(-3),r=void 0;else switch(r&&(g.push(-5),r=void 0),A<C&&(g.push(s.slice(A,C)),e+=C-A),w){case 0:{g.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,g.push(-2);e++<y;)g.push(-1);break}case 10:{g.push(-4),e=1;break}default:r=!0,e=1}A=C+1}return f&&(r&&g.push(-5),t&&g.push(t),g.push(null)),g}}const gY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pY(e){return e.replace(gY,mY)}function mY(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),s=l===120||l===88;return DC(n.slice(s?2:1),s?16:10)}return yb(n)||e}const $C={}.hasOwnProperty;function vY(e,t,n){return typeof t!="string"&&(n=t,t=void 0),bY(n)(dY(fY(n).document().write(hY()(e,t,!0))))}function bY(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Mr),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:s(Xn),blockQuote:s(Fe),characterEscape:ie,characterReference:ie,codeFenced:s(We),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(We,u),codeText:s(Le,u),codeTextData:ie,data:ie,codeFlowValue:ie,definition:s(ct),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Ut),hardBreakEscape:s(wt),hardBreakTrailing:s(wt),htmlFlow:s(nn,u),htmlFlowData:ie,htmlText:s(nn,u),htmlTextData:ie,image:s(Yi),label:u,link:s(Mr),listItem:s(rn),listItemValue:C,listOrdered:s(Dn,A),listUnordered:s(Dn),paragraph:s(xt),reference:D,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(Xn),strong:s(Cn),thematicBreak:s(Hs)},exit:{atxHeading:g(),atxHeadingSequence:U,autolink:g(),autolinkEmail:Re,autolinkProtocol:ye,blockQuote:g(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:Ve,characterReferenceMarkerNumeric:Ve,characterReferenceValue:De,characterReference:ht,codeFenced:g(Y),codeFencedFence:N,codeFencedFenceInfo:w,codeFencedFenceMeta:R,codeFlowValue:H,codeIndented:g(L),codeText:g(ue),codeTextData:H,data:H,definition:g(),definitionDestinationString:re,definitionLabelString:X,definitionTitleString:V,emphasis:g(),hardBreakEscape:g(ce),hardBreakTrailing:g(ce),htmlFlow:g(_e),htmlFlowData:H,htmlText:g($),htmlTextData:H,image:g(Q),label:Ee,labelText:Ce,lineEnding:Ae,link:g(z),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:xe,resourceDestinationString:k,resourceTitleString:B,resource:ve,setextHeading:g(ae),setextHeadingLineSequence:de,setextHeadingText:J,strong:g(),thematicBreak:g()}};ew(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(me){let Ie={type:"root",children:[]};const Qe={stack:[Ie],tokenStack:[],config:t,enter:f,exit:v,buffer:u,resume:y,data:n},Ge=[];let _t=-1;for(;++_t<me.length;)if(me[_t][1].type==="listOrdered"||me[_t][1].type==="listUnordered")if(me[_t][0]==="enter")Ge.push(_t);else{const Bn=Ge.pop();_t=l(me,Bn,_t)}for(_t=-1;++_t<me.length;){const Bn=t[me[_t][0]];$C.call(Bn,me[_t][1].type)&&Bn[me[_t][1].type].call(Object.assign({sliceSerialize:me[_t][2].sliceSerialize},Qe),me[_t][1])}if(Qe.tokenStack.length>0){const Bn=Qe.tokenStack[Qe.tokenStack.length-1];(Bn[1]||tw).call(Qe,void 0,Bn[0])}for(Ie.position={start:Bs(me.length>0?me[0][1].start:{line:1,column:1,offset:0}),end:Bs(me.length>0?me[me.length-2][1].end:{line:1,column:1,offset:0})},_t=-1;++_t<t.transforms.length;)Ie=t.transforms[_t](Ie)||Ie;return Ie}function l(me,Ie,Qe){let Ge=Ie-1,_t=-1,Bn=!1,yi,Zn,xi,mr;for(;++Ge<=Qe;){const dt=me[Ge];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?_t++:_t--,mr=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&(yi&&!mr&&!_t&&!xi&&(xi=Ge),mr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mr=void 0}if(!_t&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||_t===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if(yi){let Jt=Ge;for(Zn=void 0;Jt--;){const Wr=me[Jt];if(Wr[1].type==="lineEnding"||Wr[1].type==="lineEndingBlank"){if(Wr[0]==="exit")continue;Zn&&(me[Zn][1].type="lineEndingBlank",Bn=!0),Wr[1].type="lineEnding",Zn=Jt}else if(!(Wr[1].type==="linePrefix"||Wr[1].type==="blockQuotePrefix"||Wr[1].type==="blockQuotePrefixWhitespace"||Wr[1].type==="blockQuoteMarker"||Wr[1].type==="listItemIndent"))break}xi&&(!Zn||xi<Zn)&&(yi._spread=!0),yi.end=Object.assign({},Zn?me[Zn][1].start:dt[1].end),me.splice(Zn||Ge,0,["exit",yi,dt[2]]),Ge++,Qe++}if(dt[1].type==="listItemPrefix"){const Jt={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};yi=Jt,me.splice(Ge,0,["enter",Jt,dt[2]]),Ge++,Qe++,xi=void 0,mr=!0}}}return me[Ie][1]._spread=Bn,Qe}function s(me,Ie){return Qe;function Qe(Ge){f.call(this,me(Ge),Ge),Ie&&Ie.call(this,Ge)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(me,Ie,Qe){this.stack[this.stack.length-1].children.push(me),this.stack.push(me),this.tokenStack.push([Ie,Qe||void 0]),me.position={start:Bs(Ie.start),end:void 0}}function g(me){return Ie;function Ie(Qe){me&&me.call(this,Qe),v.call(this,Qe)}}function v(me,Ie){const Qe=this.stack.pop(),Ge=this.tokenStack.pop();if(Ge)Ge[0].type!==me.type&&(Ie?Ie.call(this,me,Ge[0]):(Ge[1]||tw).call(this,me,Ge[0]));else throw new Error("Cannot close `"+me.type+"` ("+gh({start:me.start,end:me.end})+"): it’s not open");Qe.position.end=Bs(me.end)}function y(){return bb(this.stack.pop())}function A(){this.data.expectingFirstListItemValue=!0}function C(me){if(this.data.expectingFirstListItemValue){const Ie=this.stack[this.stack.length-2];Ie.start=Number.parseInt(this.sliceSerialize(me),10),this.data.expectingFirstListItemValue=void 0}}function w(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.lang=me}function R(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.meta=me}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Y(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me.replace(/(\r?\n|\r)$/g,"")}function X(me){const Ie=this.resume(),Qe=this.stack[this.stack.length-1];Qe.label=Ie,Qe.identifier=bl(this.sliceSerialize(me)).toLowerCase()}function V(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=me}function re(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=me}function U(me){const Ie=this.stack[this.stack.length-1];if(!Ie.depth){const Qe=this.sliceSerialize(me).length;Ie.depth=Qe}}function J(){this.data.setextHeadingSlurpLineEnding=!0}function de(me){const Ie=this.stack[this.stack.length-1];Ie.depth=this.sliceSerialize(me).codePointAt(0)===61?1:2}function ae(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(me){const Qe=this.stack[this.stack.length-1].children;let Ge=Qe[Qe.length-1];(!Ge||Ge.type!=="text")&&(Ge=cc(),Ge.position={start:Bs(me.start),end:void 0},Qe.push(Ge)),this.stack.push(Ge)}function H(me){const Ie=this.stack.pop();Ie.value+=this.sliceSerialize(me),Ie.position.end=Bs(me.end)}function Ae(me){const Ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Qe=Ie.children[Ie.children.length-1];Qe.position.end=Bs(me.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ie.type)&&(ie.call(this,me),H.call(this,me))}function ce(){this.data.atHardBreak=!0}function _e(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me}function $(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me}function ue(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me}function z(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Ie=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Ie,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function Q(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Ie=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Ie,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function Ce(me){const Ie=this.sliceSerialize(me),Qe=this.stack[this.stack.length-2];Qe.label=pY(Ie),Qe.identifier=bl(Ie).toLowerCase()}function Ee(){const me=this.stack[this.stack.length-1],Ie=this.resume(),Qe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Qe.type==="link"){const Ge=me.children;Qe.children=Ge}else Qe.alt=Ie}function k(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=me}function B(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=me}function ve(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function xe(me){const Ie=this.resume(),Qe=this.stack[this.stack.length-1];Qe.label=Ie,Qe.identifier=bl(this.sliceSerialize(me)).toLowerCase(),this.data.referenceType="full"}function Ve(me){this.data.characterReferenceType=me.type}function De(me){const Ie=this.sliceSerialize(me),Qe=this.data.characterReferenceType;let Ge;Qe?(Ge=DC(Ie,Qe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ge=yb(Ie);const _t=this.stack[this.stack.length-1];_t.value+=Ge}function ht(me){const Ie=this.stack.pop();Ie.position.end=Bs(me.end)}function ye(me){H.call(this,me);const Ie=this.stack[this.stack.length-1];Ie.url=this.sliceSerialize(me)}function Re(me){H.call(this,me);const Ie=this.stack[this.stack.length-1];Ie.url="mailto:"+this.sliceSerialize(me)}function Fe(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function Le(){return{type:"inlineCode",value:""}}function ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ut(){return{type:"emphasis",children:[]}}function Xn(){return{type:"heading",depth:0,children:[]}}function wt(){return{type:"break"}}function nn(){return{type:"html",value:""}}function Yi(){return{type:"image",title:null,url:"",alt:null}}function Mr(){return{type:"link",title:null,url:"",children:[]}}function Dn(me){return{type:"list",ordered:me.type==="listOrdered",start:null,spread:me._spread,children:[]}}function rn(me){return{type:"listItem",spread:me._spread,checked:null,children:[]}}function xt(){return{type:"paragraph",children:[]}}function Cn(){return{type:"strong",children:[]}}function cc(){return{type:"text",value:""}}function Hs(){return{type:"thematicBreak"}}}function Bs(e){return{line:e.line,column:e.column,offset:e.offset}}function ew(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ew(e,r):yY(e,r)}}function yY(e,t){let n;for(n in t)if($C.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function tw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+gh({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gh({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+gh({start:t.start,end:t.end})+") is still open")}function xY(e){const t=this;t.parser=n;function n(r){return vY(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function AY(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function SY(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
81
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(s)}l=s===-2,r.push(u)}return r.join("")}function fY(e){const r={constructs:zC([oY,...(e||{}).extensions||[]]),content:l(zL),defined:[],document:l(ML),flow:l(tY),lazy:{},string:l(iY),text:l(aY)};return r;function l(s){return u;function u(f){return sY(r,s,f)}}}function dY(e){for(;!HC(e););return e}const qC=/[\0\t\n\r]/g;function hY(){let e=1,t="",n=!0,r;return l;function l(s,u,f){const g=[];let v,y,A,C,w;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),A=0,t="",n&&(s.charCodeAt(0)===65279&&A++,n=void 0);A<s.length;){if(qC.lastIndex=A,v=qC.exec(s),C=v&&v.index!==void 0?v.index:s.length,w=s.charCodeAt(C),!v){t=s.slice(A);break}if(w===10&&A===C&&r)g.push(-3),r=void 0;else switch(r&&(g.push(-5),r=void 0),A<C&&(g.push(s.slice(A,C)),e+=C-A),w){case 0:{g.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,g.push(-2);e++<y;)g.push(-1);break}case 10:{g.push(-4),e=1;break}default:r=!0,e=1}A=C+1}return f&&(r&&g.push(-5),t&&g.push(t),g.push(null)),g}}const gY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function pY(e){return e.replace(gY,mY)}function mY(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),s=l===120||l===88;return DC(n.slice(s?2:1),s?16:10)}return yb(n)||e}const $C={}.hasOwnProperty;function vY(e,t,n){return typeof t!="string"&&(n=t,t=void 0),bY(n)(dY(fY(n).document().write(hY()(e,t,!0))))}function bY(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Mr),autolinkProtocol:ie,autolinkEmail:ie,atxHeading:s(Xn),blockQuote:s(Fe),characterEscape:ie,characterReference:ie,codeFenced:s(We),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(We,u),codeText:s(Le,u),codeTextData:ie,data:ie,codeFlowValue:ie,definition:s(ct),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Ut),hardBreakEscape:s(wt),hardBreakTrailing:s(wt),htmlFlow:s(nn,u),htmlFlowData:ie,htmlText:s(nn,u),htmlTextData:ie,image:s(Yi),label:u,link:s(Mr),listItem:s(rn),listItemValue:C,listOrdered:s(Dn,A),listUnordered:s(Dn),paragraph:s(xt),reference:D,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(Xn),strong:s(Cn),thematicBreak:s(Hs)},exit:{atxHeading:g(),atxHeadingSequence:U,autolink:g(),autolinkEmail:Re,autolinkProtocol:ye,blockQuote:g(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:Ve,characterReferenceMarkerNumeric:Ve,characterReferenceValue:De,characterReference:ht,codeFenced:g(Y),codeFencedFence:N,codeFencedFenceInfo:w,codeFencedFenceMeta:R,codeFlowValue:H,codeIndented:g(L),codeText:g(ue),codeTextData:H,data:H,definition:g(),definitionDestinationString:re,definitionLabelString:X,definitionTitleString:V,emphasis:g(),hardBreakEscape:g(ce),hardBreakTrailing:g(ce),htmlFlow:g(_e),htmlFlowData:H,htmlText:g($),htmlTextData:H,image:g(Q),label:Ee,labelText:Ce,lineEnding:Ae,link:g(z),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:xe,resourceDestinationString:k,resourceTitleString:B,resource:ve,setextHeading:g(ae),setextHeadingLineSequence:de,setextHeadingText:J,strong:g(),thematicBreak:g()}};ew(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(me){let Ie={type:"root",children:[]};const Qe={stack:[Ie],tokenStack:[],config:t,enter:f,exit:v,buffer:u,resume:y,data:n},Ge=[];let _t=-1;for(;++_t<me.length;)if(me[_t][1].type==="listOrdered"||me[_t][1].type==="listUnordered")if(me[_t][0]==="enter")Ge.push(_t);else{const Bn=Ge.pop();_t=l(me,Bn,_t)}for(_t=-1;++_t<me.length;){const Bn=t[me[_t][0]];$C.call(Bn,me[_t][1].type)&&Bn[me[_t][1].type].call(Object.assign({sliceSerialize:me[_t][2].sliceSerialize},Qe),me[_t][1])}if(Qe.tokenStack.length>0){const Bn=Qe.tokenStack[Qe.tokenStack.length-1];(Bn[1]||tw).call(Qe,void 0,Bn[0])}for(Ie.position={start:Bs(me.length>0?me[0][1].start:{line:1,column:1,offset:0}),end:Bs(me.length>0?me[me.length-2][1].end:{line:1,column:1,offset:0})},_t=-1;++_t<t.transforms.length;)Ie=t.transforms[_t](Ie)||Ie;return Ie}function l(me,Ie,Qe){let Ge=Ie-1,_t=-1,Bn=!1,yi,Zn,xi,mr;for(;++Ge<=Qe;){const dt=me[Ge];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?_t++:_t--,mr=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&(yi&&!mr&&!_t&&!xi&&(xi=Ge),mr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mr=void 0}if(!_t&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||_t===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if(yi){let Jt=Ge;for(Zn=void 0;Jt--;){const Wr=me[Jt];if(Wr[1].type==="lineEnding"||Wr[1].type==="lineEndingBlank"){if(Wr[0]==="exit")continue;Zn&&(me[Zn][1].type="lineEndingBlank",Bn=!0),Wr[1].type="lineEnding",Zn=Jt}else if(!(Wr[1].type==="linePrefix"||Wr[1].type==="blockQuotePrefix"||Wr[1].type==="blockQuotePrefixWhitespace"||Wr[1].type==="blockQuoteMarker"||Wr[1].type==="listItemIndent"))break}xi&&(!Zn||xi<Zn)&&(yi._spread=!0),yi.end=Object.assign({},Zn?me[Zn][1].start:dt[1].end),me.splice(Zn||Ge,0,["exit",yi,dt[2]]),Ge++,Qe++}if(dt[1].type==="listItemPrefix"){const Jt={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};yi=Jt,me.splice(Ge,0,["enter",Jt,dt[2]]),Ge++,Qe++,xi=void 0,mr=!0}}}return me[Ie][1]._spread=Bn,Qe}function s(me,Ie){return Qe;function Qe(Ge){f.call(this,me(Ge),Ge),Ie&&Ie.call(this,Ge)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(me,Ie,Qe){this.stack[this.stack.length-1].children.push(me),this.stack.push(me),this.tokenStack.push([Ie,Qe||void 0]),me.position={start:Bs(Ie.start),end:void 0}}function g(me){return Ie;function Ie(Qe){me&&me.call(this,Qe),v.call(this,Qe)}}function v(me,Ie){const Qe=this.stack.pop(),Ge=this.tokenStack.pop();if(Ge)Ge[0].type!==me.type&&(Ie?Ie.call(this,me,Ge[0]):(Ge[1]||tw).call(this,me,Ge[0]));else throw new Error("Cannot close `"+me.type+"` ("+gh({start:me.start,end:me.end})+"): it’s not open");Qe.position.end=Bs(me.end)}function y(){return bb(this.stack.pop())}function A(){this.data.expectingFirstListItemValue=!0}function C(me){if(this.data.expectingFirstListItemValue){const Ie=this.stack[this.stack.length-2];Ie.start=Number.parseInt(this.sliceSerialize(me),10),this.data.expectingFirstListItemValue=void 0}}function w(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.lang=me}function R(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.meta=me}function N(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function Y(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me.replace(/(\r?\n|\r)$/g,"")}function X(me){const Ie=this.resume(),Qe=this.stack[this.stack.length-1];Qe.label=Ie,Qe.identifier=bl(this.sliceSerialize(me)).toLowerCase()}function V(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=me}function re(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=me}function U(me){const Ie=this.stack[this.stack.length-1];if(!Ie.depth){const Qe=this.sliceSerialize(me).length;Ie.depth=Qe}}function J(){this.data.setextHeadingSlurpLineEnding=!0}function de(me){const Ie=this.stack[this.stack.length-1];Ie.depth=this.sliceSerialize(me).codePointAt(0)===61?1:2}function ae(){this.data.setextHeadingSlurpLineEnding=void 0}function ie(me){const Qe=this.stack[this.stack.length-1].children;let Ge=Qe[Qe.length-1];(!Ge||Ge.type!=="text")&&(Ge=cc(),Ge.position={start:Bs(me.start),end:void 0},Qe.push(Ge)),this.stack.push(Ge)}function H(me){const Ie=this.stack.pop();Ie.value+=this.sliceSerialize(me),Ie.position.end=Bs(me.end)}function Ae(me){const Ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Qe=Ie.children[Ie.children.length-1];Qe.position.end=Bs(me.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ie.type)&&(ie.call(this,me),H.call(this,me))}function ce(){this.data.atHardBreak=!0}function _e(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me}function $(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me}function ue(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.value=me}function z(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Ie=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Ie,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function Q(){const me=this.stack[this.stack.length-1];if(this.data.inReference){const Ie=this.data.referenceType||"shortcut";me.type+="Reference",me.referenceType=Ie,delete me.url,delete me.title}else delete me.identifier,delete me.label;this.data.referenceType=void 0}function Ce(me){const Ie=this.sliceSerialize(me),Qe=this.stack[this.stack.length-2];Qe.label=pY(Ie),Qe.identifier=bl(Ie).toLowerCase()}function Ee(){const me=this.stack[this.stack.length-1],Ie=this.resume(),Qe=this.stack[this.stack.length-1];if(this.data.inReference=!0,Qe.type==="link"){const Ge=me.children;Qe.children=Ge}else Qe.alt=Ie}function k(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.url=me}function B(){const me=this.resume(),Ie=this.stack[this.stack.length-1];Ie.title=me}function ve(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function xe(me){const Ie=this.resume(),Qe=this.stack[this.stack.length-1];Qe.label=Ie,Qe.identifier=bl(this.sliceSerialize(me)).toLowerCase(),this.data.referenceType="full"}function Ve(me){this.data.characterReferenceType=me.type}function De(me){const Ie=this.sliceSerialize(me),Qe=this.data.characterReferenceType;let Ge;Qe?(Ge=DC(Ie,Qe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ge=yb(Ie);const _t=this.stack[this.stack.length-1];_t.value+=Ge}function ht(me){const Ie=this.stack.pop();Ie.position.end=Bs(me.end)}function ye(me){H.call(this,me);const Ie=this.stack[this.stack.length-1];Ie.url=this.sliceSerialize(me)}function Re(me){H.call(this,me);const Ie=this.stack[this.stack.length-1];Ie.url="mailto:"+this.sliceSerialize(me)}function Fe(){return{type:"blockquote",children:[]}}function We(){return{type:"code",lang:null,meta:null,value:""}}function Le(){return{type:"inlineCode",value:""}}function ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ut(){return{type:"emphasis",children:[]}}function Xn(){return{type:"heading",depth:0,children:[]}}function wt(){return{type:"break"}}function nn(){return{type:"html",value:""}}function Yi(){return{type:"image",title:null,url:"",alt:null}}function Mr(){return{type:"link",title:null,url:"",children:[]}}function Dn(me){return{type:"list",ordered:me.type==="listOrdered",start:null,spread:me._spread,children:[]}}function rn(me){return{type:"listItem",spread:me._spread,checked:null,children:[]}}function xt(){return{type:"paragraph",children:[]}}function Cn(){return{type:"strong",children:[]}}function cc(){return{type:"text",value:""}}function Hs(){return{type:"thematicBreak"}}}function Bs(e){return{line:e.line,column:e.column,offset:e.offset}}function ew(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?ew(e,r):yY(e,r)}}function yY(e,t){let n;for(n in t)if($C.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function tw(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+gh({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gh({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+gh({start:t.start,end:t.end})+") is still open")}function xY(e){const t=this;t.parser=n;function n(r){return vY(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function AY(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function SY(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
82
82
|
`}]}function EY(e,t){const n=t.value?t.value+`
|
83
83
|
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function CY(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wY(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kY(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),l=Of(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let u,f=e.footnoteCounts.get(r);f===void 0?(f=0,e.footnoteOrder.push(r),u=e.footnoteOrder.length):u=s+1,f+=1,e.footnoteCounts.set(r,f);const g={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,g);const v={type:"element",tagName:"sup",properties:{},children:[g]};return e.patch(t,v),e.applyData(t,v)}function TY(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _Y(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function nw(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const l=e.all(t),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=r:l.push({type:"text",value:r}),l}function OY(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nw(e,t);const l={src:Of(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(l.title=r.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,s),e.applyData(t,s)}function RY(e,t){const n={src:Of(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function FY(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function IY(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nw(e,t);const l={href:Of(r.url||"")};r.title!==null&&r.title!==void 0&&(l.title=r.title);const s={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function NY(e,t){const n={href:Of(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function PY(e,t,n){const r=e.all(t),l=n?zY(n):rw(t),s={},u=[];if(typeof t.checked=="boolean"){const y=r[0];let A;y&&y.type==="element"&&y.tagName==="p"?A=y:(A={type:"element",tagName:"p",properties:{},children:[]},r.unshift(A)),A.children.length>0&&A.children.unshift({type:"text",value:" "}),A.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<r.length;){const y=r[f];(l||f!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:`
|
84
84
|
`}),y.type==="element"&&y.tagName==="p"&&!l?u.push(...y.children):u.push(y)}const g=r[r.length-1];g&&(l||g.type!=="element"||g.tagName!=="p")&&u.push({type:"text",value:`
|
85
85
|
`});const v={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,v),e.applyData(t,v)}function zY(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=rw(n[r])}return t}function rw(e){const t=e.spread;return t??e.children.length>1}function DY(e,t){const n={},r=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<r.length;){const u=r[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function MY(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WY(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function LY(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YY(e,t){const n=e.all(t),r=n.shift(),l=[];if(r){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],u),l.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=db(t.children[1]),g=EC(t.children[t.children.length-1]);f&&g&&(u.position={start:f,end:g}),l.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,s),e.applyData(t,s)}function VY(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let g=-1;const v=[];for(;++g<f;){const A=t.children[g],C={},w=u?u[g]:void 0;w&&(C.align=w);let R={type:"element",tagName:s,properties:C,children:[]};A&&(R.children=e.all(A),e.patch(A,R),R=e.applyData(A,R)),v.push(R)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(v,!0)};return e.patch(t,y),e.applyData(t,y)}function XY(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const iw=9,aw=32;function BY(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),l=0;const s=[];for(;r;)s.push(lw(t.slice(l,r.index),l>0,!0),r[0]),l=r.index+r[0].length,r=n.exec(t);return s.push(lw(t.slice(l),l>0,!1)),s.join("")}function lw(e,t,n){let r=0,l=e.length;if(t){let s=e.codePointAt(r);for(;s===iw||s===aw;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(l-1);for(;s===iw||s===aw;)l--,s=e.codePointAt(l-1)}return l>r?e.slice(r,l):""}function HY(e,t){const n={type:"text",value:BY(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function UY(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const GY={blockquote:AY,break:SY,code:EY,delete:CY,emphasis:wY,footnoteReference:kY,heading:TY,html:_Y,imageReference:OY,image:RY,inlineCode:FY,linkReference:IY,link:NY,listItem:PY,list:DY,paragraph:MY,root:WY,strong:LY,table:YY,tableCell:XY,tableRow:VY,text:HY,thematicBreak:UY,toml:Zp,yaml:Zp,definition:Zp,footnoteDefinition:Zp};function Zp(){}const ow=-1,Qp=0,yh=1,Kp=2,wb=3,kb=4,Tb=5,_b=6,sw=7,uw=8,cw=typeof self=="object"?self:globalThis,ZY=(e,t)=>{const n=(l,s)=>(e.set(s,l),l),r=l=>{if(e.has(l))return e.get(l);const[s,u]=t[l];switch(s){case Qp:case ow:return n(u,l);case yh:{const f=n([],l);for(const g of u)f.push(r(g));return f}case Kp:{const f=n({},l);for(const[g,v]of u)f[r(g)]=r(v);return f}case wb:return n(new Date(u),l);case kb:{const{source:f,flags:g}=u;return n(new RegExp(f,g),l)}case Tb:{const f=n(new Map,l);for(const[g,v]of u)f.set(r(g),r(v));return f}case _b:{const f=n(new Set,l);for(const g of u)f.add(r(g));return f}case sw:{const{name:f,message:g}=u;return n(new cw[f](g),l)}case uw:return n(BigInt(u),l);case"BigInt":return n(Object(BigInt(u)),l);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new cw[s](u),l)};return r},fw=e=>ZY(new Map,e)(0),Ff="",{toString:QY}={},{keys:KY}=Object,xh=e=>{const t=typeof e;if(t!=="object"||!e)return[Qp,t];const n=QY.call(e).slice(8,-1);switch(n){case"Array":return[yh,Ff];case"Object":return[Kp,Ff];case"Date":return[wb,Ff];case"RegExp":return[kb,Ff];case"Map":return[Tb,Ff];case"Set":return[_b,Ff];case"DataView":return[yh,n]}return n.includes("Array")?[yh,n]:n.includes("Error")?[sw,n]:[Kp,n]},jp=([e,t])=>e===Qp&&(t==="function"||t==="symbol"),jY=(e,t,n,r)=>{const l=(u,f)=>{const g=r.push(u)-1;return n.set(f,g),g},s=u=>{if(n.has(u))return n.get(u);let[f,g]=xh(u);switch(f){case Qp:{let y=u;switch(g){case"bigint":f=uw,y=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+g);y=null;break;case"undefined":return l([ow],u)}return l([f,y],u)}case yh:{if(g){let C=u;return g==="DataView"?C=new Uint8Array(u.buffer):g==="ArrayBuffer"&&(C=new Uint8Array(u)),l([g,[...C]],u)}const y=[],A=l([f,y],u);for(const C of u)y.push(s(C));return A}case Kp:{if(g)switch(g){case"BigInt":return l([g,u.toString()],u);case"Boolean":case"Number":case"String":return l([g,u.valueOf()],u)}if(t&&"toJSON"in u)return s(u.toJSON());const y=[],A=l([f,y],u);for(const C of KY(u))(e||!jp(xh(u[C])))&&y.push([s(C),s(u[C])]);return A}case wb:return l([f,u.toISOString()],u);case kb:{const{source:y,flags:A}=u;return l([f,{source:y,flags:A}],u)}case Tb:{const y=[],A=l([f,y],u);for(const[C,w]of u)(e||!(jp(xh(C))||jp(xh(w))))&&y.push([s(C),s(w)]);return A}case _b:{const y=[],A=l([f,y],u);for(const C of u)(e||!jp(xh(C)))&&y.push(s(C));return A}}const{message:v}=u;return l([f,{name:g,message:v}],u)};return s},dw=(e,{json:t,lossy:n}={})=>{const r=[];return jY(!(t||n),!!t,new Map,r)(e),r},Jp=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?fw(dw(e,t)):structuredClone(e):(e,t)=>fw(dw(e,t));function JY(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function qY(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function $Y(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||JY,r=e.options.footnoteBackLabel||qY,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let g=-1;for(;++g<e.footnoteOrder.length;){const v=e.footnoteById.get(e.footnoteOrder[g]);if(!v)continue;const y=e.all(v),A=String(v.identifier).toUpperCase(),C=Of(A.toLowerCase());let w=0;const R=[],N=e.footnoteCounts.get(A);for(;N!==void 0&&++w<=N;){R.length>0&&R.push({type:"text",value:" "});let X=typeof n=="string"?n:n(g,w);typeof X=="string"&&(X={type:"text",value:X}),R.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+C+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(g,w),className:["data-footnote-backref"]},children:Array.isArray(X)?X:[X]})}const Y=y[y.length-1];if(Y&&Y.type==="element"&&Y.tagName==="p"){const X=Y.children[Y.children.length-1];X&&X.type==="text"?X.value+=" ":Y.children.push({type:"text",value:" "}),Y.children.push(...R)}else y.push(...R);const L={type:"element",tagName:"li",properties:{id:t+"fn-"+C},children:e.wrap(y,!0)};e.patch(v,L),f.push(L)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Jp(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
86
86
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
87
|
-
`}]}}const qp=(function(e){if(e==null)return rV;if(typeof e=="function")return $p(e);if(typeof e=="object")return Array.isArray(e)?eV(e):tV(e);if(typeof e=="string")return nV(e);throw new Error("Expected function, string, or object as test")});function eV(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=qp(e[n]);return $p(r);function r(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function tV(e){const t=e;return $p(n);function n(r){const l=r;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function nV(e){return $p(t);function t(n){return n&&n.type===e}}function $p(e){return t;function t(n,r,l){return!!(iV(n)&&e.call(this,n,typeof r=="number"?r:void 0,l||void 0))}}function rV(){return!0}function iV(e){return e!==null&&typeof e=="object"&&"type"in e}function wG(e){return e}const hw=[],aV=!0,Ob=!1,lV="skip";function gw(e,t,n,r){let l;typeof t=="function"&&typeof n!="function"?(r=n,n=t):l=t;const s=qp(l),u=r?-1:1;f(e,void 0,[])();function f(g,v,y){const A=g&&typeof g=="object"?g:{};if(typeof A.type=="string"){const w=typeof A.tagName=="string"?A.tagName:typeof A.name=="string"?A.name:void 0;Object.defineProperty(C,"name",{value:"node ("+(g.type+(w?"<"+w+">":""))+")"})}return C;function C(){let w=hw,R,N,Y;if((!t||s(g,v,y[y.length-1]||void 0))&&(w=oV(n(g,y)),w[0]===Ob))return w;if("children"in g&&g.children){const L=g;if(L.children&&w[0]!==lV)for(N=(r?L.children.length:-1)+u,Y=y.concat(L);N>-1&&N<L.children.length;){const X=L.children[N];if(R=f(X,N,Y)(),R[0]===Ob)return R;N=typeof R[1]=="number"?R[1]:N+u}}return w}}}function oV(e){return Array.isArray(e)?e:typeof e=="number"?[aV,e]:e==null?hw:[e]}function Rb(e,t,n,r){let l,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,l=n):(s=t,u=n,l=r),gw(e,s,f,l);function f(g,v){const y=v[v.length-1],A=y?y.children.indexOf(g):void 0;return u(g,A,y)}}const Fb={}.hasOwnProperty,sV={};function uV(e,t){const n=t||sV,r=new Map,l=new Map,s=new Map,u={...GY,...n.handlers},f={all:v,applyData:fV,definitionById:r,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:u,one:g,options:n,patch:cV,wrap:hV};return Rb(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const A=y.type==="definition"?r:l,C=String(y.identifier).toUpperCase();A.has(C)||A.set(C,y)}}),f;function g(y,A){const C=y.type,w=f.handlers[C];if(Fb.call(f.handlers,C)&&w)return w(f,y,A);if(f.options.passThrough&&f.options.passThrough.includes(C)){if("children"in y){const{children:N,...Y}=y,L=Jp(Y);return L.children=f.all(y),L}return Jp(y)}return(f.options.unknownHandler||dV)(f,y,A)}function v(y){const A=[];if("children"in y){const C=y.children;let w=-1;for(;++w<C.length;){const R=f.one(C[w],y);if(R){if(w&&C[w-1].type==="break"&&(!Array.isArray(R)&&R.type==="text"&&(R.value=pw(R.value)),!Array.isArray(R)&&R.type==="element")){const N=R.children[0];N&&N.type==="text"&&(N.value=pw(N.value))}Array.isArray(R)?A.push(...R):A.push(R)}}}return A}}function cV(e,t){e.position&&(t.position=
|
87
|
+
`}]}}const qp=(function(e){if(e==null)return rV;if(typeof e=="function")return $p(e);if(typeof e=="object")return Array.isArray(e)?eV(e):tV(e);if(typeof e=="string")return nV(e);throw new Error("Expected function, string, or object as test")});function eV(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=qp(e[n]);return $p(r);function r(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function tV(e){const t=e;return $p(n);function n(r){const l=r;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function nV(e){return $p(t);function t(n){return n&&n.type===e}}function $p(e){return t;function t(n,r,l){return!!(iV(n)&&e.call(this,n,typeof r=="number"?r:void 0,l||void 0))}}function rV(){return!0}function iV(e){return e!==null&&typeof e=="object"&&"type"in e}function wG(e){return e}const hw=[],aV=!0,Ob=!1,lV="skip";function gw(e,t,n,r){let l;typeof t=="function"&&typeof n!="function"?(r=n,n=t):l=t;const s=qp(l),u=r?-1:1;f(e,void 0,[])();function f(g,v,y){const A=g&&typeof g=="object"?g:{};if(typeof A.type=="string"){const w=typeof A.tagName=="string"?A.tagName:typeof A.name=="string"?A.name:void 0;Object.defineProperty(C,"name",{value:"node ("+(g.type+(w?"<"+w+">":""))+")"})}return C;function C(){let w=hw,R,N,Y;if((!t||s(g,v,y[y.length-1]||void 0))&&(w=oV(n(g,y)),w[0]===Ob))return w;if("children"in g&&g.children){const L=g;if(L.children&&w[0]!==lV)for(N=(r?L.children.length:-1)+u,Y=y.concat(L);N>-1&&N<L.children.length;){const X=L.children[N];if(R=f(X,N,Y)(),R[0]===Ob)return R;N=typeof R[1]=="number"?R[1]:N+u}}return w}}}function oV(e){return Array.isArray(e)?e:typeof e=="number"?[aV,e]:e==null?hw:[e]}function Rb(e,t,n,r){let l,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,l=n):(s=t,u=n,l=r),gw(e,s,f,l);function f(g,v){const y=v[v.length-1],A=y?y.children.indexOf(g):void 0;return u(g,A,y)}}const Fb={}.hasOwnProperty,sV={};function uV(e,t){const n=t||sV,r=new Map,l=new Map,s=new Map,u={...GY,...n.handlers},f={all:v,applyData:fV,definitionById:r,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:u,one:g,options:n,patch:cV,wrap:hV};return Rb(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const A=y.type==="definition"?r:l,C=String(y.identifier).toUpperCase();A.has(C)||A.set(C,y)}}),f;function g(y,A){const C=y.type,w=f.handlers[C];if(Fb.call(f.handlers,C)&&w)return w(f,y,A);if(f.options.passThrough&&f.options.passThrough.includes(C)){if("children"in y){const{children:N,...Y}=y,L=Jp(Y);return L.children=f.all(y),L}return Jp(y)}return(f.options.unknownHandler||dV)(f,y,A)}function v(y){const A=[];if("children"in y){const C=y.children;let w=-1;for(;++w<C.length;){const R=f.one(C[w],y);if(R){if(w&&C[w-1].type==="break"&&(!Array.isArray(R)&&R.type==="text"&&(R.value=pw(R.value)),!Array.isArray(R)&&R.type==="element")){const N=R.children[0];N&&N.type==="text"&&(N.value=pw(N.value))}Array.isArray(R)?A.push(...R):A.push(R)}}}return A}}function cV(e,t){e.position&&(t.position=oL(e))}function fV(e,t){let n=t;if(e&&e.data){const r=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const u="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:u}}n.type==="element"&&s&&Object.assign(n.properties,Jp(s)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function dV(e,t){const n=t.data||{},r="value"in t&&!(Fb.call(n,"hProperties")||Fb.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function hV(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
88
88
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
89
89
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
90
90
|
`}),n}function pw(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function mw(e,t){const n=uV(e,t),r=n.one(e,void 0),l=$Y(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
|
91
|
-
`},l),s}function gV(e,t){return e&&"run"in e?async function(n,r){const l=mw(n,{file:r,...t});await e.run(l,r)}:function(n,r){return mw(n,{file:r,...e||t})}}function vw(e){if(e)throw e}var Ib,bw;function pV(){if(bw)return Ib;bw=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,l=function(v){return typeof Array.isArray=="function"?Array.isArray(v):t.call(v)==="[object Array]"},s=function(v){if(!v||t.call(v)!=="[object Object]")return!1;var y=e.call(v,"constructor"),A=v.constructor&&v.constructor.prototype&&e.call(v.constructor.prototype,"isPrototypeOf");if(v.constructor&&!y&&!A)return!1;var C;for(C in v);return typeof C>"u"||e.call(v,C)},u=function(v,y){n&&y.name==="__proto__"?n(v,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):v[y.name]=y.newValue},f=function(v,y){if(y==="__proto__")if(e.call(v,y)){if(r)return r(v,y).value}else return;return v[y]};return Ib=function g(){var v,y,A,C,w,R,N=arguments[0],Y=1,L=arguments.length,X=!1;for(typeof N=="boolean"&&(X=N,N=arguments[1]||{},Y=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});Y<L;++Y)if(v=arguments[Y],v!=null)for(y in v)A=f(N,y),C=f(v,y),N!==C&&(X&&C&&(s(C)||(w=l(C)))?(w?(w=!1,R=A&&l(A)?A:[]):R=A&&s(A)?A:{},u(N,{name:y,newValue:g(X,R,C)})):typeof C<"u"&&u(N,{name:y,newValue:C}));return N},Ib}var mV=pV();const Nb=zu(mV);function Pb(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vV(){const e=[],t={run:n,use:r};return t;function n(...l){let s=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...l);function f(g,...v){const y=e[++s];let A=-1;if(g){u(g);return}for(;++A<l.length;)(v[A]===null||v[A]===void 0)&&(v[A]=l[A]);l=v,y?bV(y,f)(...v):u(null,...v)}}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function bV(e,t){let n;return r;function r(...u){const f=e.length>u.length;let g;f&&u.push(l);try{g=e.apply(this,u)}catch(v){const y=v;if(f&&n)throw y;return l(y)}f||(g&&g.then&&typeof g.then=="function"?g.then(s,l):g instanceof Error?l(g):s(g))}function l(u,...f){n||(n=!0,t(u,...f))}function s(u){l(null,u)}}const yo={basename:yV,dirname:xV,extname:AV,join:SV,sep:"/"};function yV(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ah(e);let n=0,r=-1,l=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else r<0&&(s=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,f=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else u<0&&(s=!0,u=l+1),f>-1&&(e.codePointAt(l)===t.codePointAt(f--)?f<0&&(r=l):(f=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function xV(e){if(Ah(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function AV(e){Ah(e);let t=e.length,n=-1,r=0,l=-1,s=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?l<0?l=t:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||n<0||s===0||s===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function SV(...e){let t=-1,n;for(;++t<e.length;)Ah(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":EV(n)}function EV(e){Ah(e);const t=e.codePointAt(0)===47;let n=CV(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function CV(e,t){let n="",r=0,l=-1,s=0,u=-1,f,g;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(l===u-1||s===1))if(l!==u-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(g=n.lastIndexOf("/"),g!==n.length-1){g<0?(n="",r=0):(n=n.slice(0,g),r=n.length-1-n.lastIndexOf("/")),l=u,s=0;continue}}else if(n.length>0){n="",r=0,l=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,u):n=e.slice(l+1,u),r=u-l-1;l=u,s=0}else f===46&&s>-1?s++:s=-1}return n}function Ah(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wV={cwd:kV};function kV(){return"/"}function zb(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function TV(e){if(typeof e=="string")e=new URL(e);else if(!zb(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return _V(e)}function _V(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Db=["history","path","basename","stem","extname","dirname"];class yw{constructor(t){let n;t?zb(t)?n={path:t}:typeof t=="string"||OV(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":wV.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Db.length;){const s=Db[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let l;for(l in n)Db.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?yo.basename(this.path):void 0}set basename(t){Wb(t,"basename"),Mb(t,"basename"),this.path=yo.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?yo.dirname(this.path):void 0}set dirname(t){xw(this.basename,"dirname"),this.path=yo.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?yo.extname(this.path):void 0}set extname(t){if(Mb(t,"extname"),xw(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yo.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){zb(t)&&(t=TV(t)),Wb(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?yo.basename(this.path,this.extname):void 0}set stem(t){Wb(t,"stem"),Mb(t,"stem"),this.path=yo.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const l=this.message(t,n,r);throw l.fatal=!0,l}info(t,n,r){const l=this.message(t,n,r);return l.fatal=void 0,l}message(t,n,r){const l=new ii(t,n,r);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Mb(e,t){if(e&&e.includes(yo.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yo.sep+"`")}function Wb(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xw(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function OV(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const RV=(function(e){const r=this.constructor.prototype,l=r[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),FV={}.hasOwnProperty;class Lb extends RV{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vV()}copy(){const t=new Lb;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Nb(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Xb("data",this.frozen),this.namespace[t]=n,this):FV.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Xb("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=em(t),r=this.parser||this.Parser;return Yb("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Yb("process",this.parser||this.Parser),Vb("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(s,u){const f=em(t),g=r.parse(f);r.run(g,f,function(y,A,C){if(y||!A||!C)return v(y);const w=A,R=r.stringify(w,C);PV(R)?C.value=R:C.result=R,v(y,C)});function v(y,A){y||!A?u(y):s?s(A):n(void 0,A)}}}processSync(t){let n=!1,r;return this.freeze(),Yb("processSync",this.parser||this.Parser),Vb("processSync",this.compiler||this.Compiler),this.process(t,l),Sw("processSync","process",n),r;function l(s,u){n=!0,vw(s),r=u}}run(t,n,r){Aw(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(u,f){const g=em(n);l.run(t,g,v);function v(y,A,C){const w=A||t;y?f(y):u?u(w):r(void 0,w,C)}}}runSync(t,n){let r=!1,l;return this.run(t,n,s),Sw("runSync","run",r),l;function s(u,f){vw(u),l=f,r=!0}}stringify(t,n){this.freeze();const r=em(n),l=this.compiler||this.Compiler;return Vb("stringify",l),Aw(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(Xb("use",this.frozen),t!=null)if(typeof t=="function")g(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(v){if(typeof v=="function")g(v,[]);else if(typeof v=="object")if(Array.isArray(v)){const[y,...A]=v;g(y,A)}else u(v);else throw new TypeError("Expected usable value, not `"+v+"`")}function u(v){if(!("plugins"in v)&&!("settings"in v))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(v.plugins),v.settings&&(l.settings=Nb(!0,l.settings,v.settings))}function f(v){let y=-1;if(v!=null)if(Array.isArray(v))for(;++y<v.length;){const A=v[y];s(A)}else throw new TypeError("Expected a list of plugins, not `"+v+"`")}function g(v,y){let A=-1,C=-1;for(;++A<r.length;)if(r[A][0]===v){C=A;break}if(C===-1)r.push([v,...y]);else if(y.length>0){let[w,...R]=y;const N=r[C][1];Pb(N)&&Pb(w)&&(w=Nb(!0,N,w)),r[C]=[v,w,...R]}}}}const IV=new Lb().freeze();function Yb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Vb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Xb(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Aw(e){if(!Pb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sw(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function em(e){return NV(e)?e:new yw(e)}function NV(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function PV(e){return typeof e=="string"||zV(e)}function zV(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const DV="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ew=[],Cw={allowDangerousHtml:!0},MV=/^(https?|ircs?|mailto|xmpp)$/i,WV=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ww(e){const t=LV(e),n=YV(e);return VV(t.runSync(t.parse(n),n),e)}function LV(e){const t=e.rehypePlugins||Ew,n=e.remarkPlugins||Ew,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Cw}:Cw;return IV().use(xY).use(n).use(gV,r).use(t)}function YV(e){const t=e.children||"",n=new yw;return typeof t=="string"&&(n.value=t),n}function VV(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,s=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,g=t.urlTransform||XV;for(const y of WV)Object.hasOwn(t,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+DV+y.id,void 0);return Rb(e,v),d8(e,{Fragment:ne.Fragment,components:l,ignoreInvalidStyle:!0,jsx:ne.jsx,jsxs:ne.jsxs,passKeys:!0,passNode:!0});function v(y,A,C){if(y.type==="raw"&&C&&typeof A=="number")return u?C.children.splice(A,1):C.children[A]={type:"text",value:y.value},A;if(y.type==="element"){let w;for(w in vb)if(Object.hasOwn(vb,w)&&Object.hasOwn(y.properties,w)){const R=y.properties[w],N=vb[w];(N===null||N.includes(y.tagName))&&(y.properties[w]=g(String(R||""),w,y))}}if(y.type==="element"){let w=n?!n.includes(y.tagName):s?s.includes(y.tagName):!1;if(!w&&r&&typeof A=="number"&&(w=!r(y,A,C)),w&&C&&typeof A=="number")return f&&y.children?C.children.splice(A,1,...y.children):C.children.splice(A,1),A}}}function XV(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||MV.test(e.slice(0,t))?e:""}const BV="data:image/x-icon;base64,AAABAAMAEBAAAAEAIABoBAAANgAAACAgAAABACAAKBEAAJ4EAAAwMAAAAQAgAGgmAADGFQAAKAAAABAAAAAgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVW/ktV135tVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+fdXXfm1VVv5LQAAAABVW/ktWF768Vhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+vFVW/ktV135tVhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/V135tVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1lf+f9ZX/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+fdYXvn/WF75/1he+f9YXvn/WF75/2No+f/q6/7/+/v+/+vs/v/Lzf3/nJ/7/2Jo+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f94ffr//Pz+//7+///////////////////09f7/nJ/7/1he+f9YXvn/WF75/1he+f9YXvn/Zmz5/15k+f9YXvn/WF75/1lf+f9gZfn/b3X6/42R+/+6vfz/9PT+//////+lqfz/WF75/1he+f9YXvn/Zmz5//Lz/v+dofv/WF75/1he+f+Mkfr/2dr9/9nb/f+ZnPv/WF75/2Jo+f/Cxf3/+fn//2Vq+f9YXvn/WF75/4eL+v//////3d/+/1lf+f9YXvn/7O3+/9/g/v+Ul/v/9fb//5WZ+/9YXvn/WmD5/+Lj/v+Givr/WF75/1he+f9iaPn/8PH+//////+vsvz/WF75/62w/P/+/v//rK/8/7i7/P/Q0v3/WF75/2Jo+f/o6f7/en76/1he+f9YXvn/WF75/3uA+v/t7v7//////83O/f+DiPr/oKP7/+rr/v/9/f//6+z+/8fJ/f/m5/7/paj8/1he+f9YXvn/WF75/1he+f9YXvn/YWf5/6ap/P/d3/7/+fn+//v7/v/n6P7/q678/3R5+f9xdvn/W2H5/1he+f9YXvn/WF75/1he+fdYXvn/WF75/1he+f9YXvn/WF75/1lf+f9ZX/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+fdXXfm1WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9XXfm1VVv5LVhe+vFYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvrxVVv5LQAAAABVW/ktV135tVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+fdXXfm1VVv5LQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAACAAAABAAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wFYXPs6WFz5oFhe+eBYXvn9WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXvngWFz5oFhc+zoAAP8BAAAAAAAAAAAAAAAAAAAAAAAAAABVVf8PWF76o1he+f1YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/Vhe+qNVVf8PAAAAAAAAAAAAAAAAVVX/D1he+clYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+clVVf8PAAAAAAAA/wFYXvqjWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+qMAAP8BWFz7Olhe+f1YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/Vhc+zpYXPmgWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WFz5oFde+OFYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvngWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1th+f9bYfn/WmD5/1lf+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1lf+f+0tvz/+fn+//v7/v/y8v7/4+T+/8vN/f+rr/z/hYn6/19l+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/g4f6//7+////////////////////////////////////////9fX+/8PF/P+Bhvr/WV/5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f+prPv///////////////////////////////////////////////////////7+///W2P3/eX76/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/4mN+//29/7/+/v+//z8/v/9/f/////////////////////////////////////////////6+v//paj8/1lf+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1th+f9bYfn/Ymf5/21y+v98gPr/kpf7/7Cz/P/V1v3/9/j////////////////////////+/v//sLP8/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/11i+f+Mkfr/cXb6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9iaPn/kpb7/9TV/f/+/v/////////////+/v//j5T7/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9bYPn/zc/9///////Oz/3/WF75/1he+f9YXvn/WF75/1he+f9YXvn/aG75/6Sn+//CxPz/wsT8/6aq/P9uc/n/WF75/1he+f9YXvn/WV75/4GG+v/h4v7////////////o6f7/XWL5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/4+T+/////////////Ly/v9eZPn/WF75/1he+f9YXvn/WF75/4CF+v/y8/7///////////////////////n5//+lqPz/WV/5/1he+f9YXvn/WF75/19l+f/Lzf3///////////+IjPr/WF75/1he+f9YXvn/WF75/1he+f9YXvn/ubv8/////////////////5SY+/9YXvn/WF75/1he+f9YXvn/19n9////////////zM39/62w/P/o6P7///////7+//+go/v/WF75/1he+f9YXvn/WF75/19l+f/k5f7//////62w/P9YXvn/WF75/1he+f9YXvn/WF75/1he+f+0tvz/////////////////5OX+/15k+f9YXvn/WF75/1he+f/b3f3///////////+xtPz/WF75/2Jn+f/a2/7///////b2//9nbfn/WF75/1he+f9YXvn/WF75/6ap/P//////vL78/1he+f9YXvn/WF75/1he+f9YXvn/WF75/4GG+v/+/v//////////////////ubz8/1lf+f9YXvn/WF75/5yf+/////////////z8//+Ym/v/WF75/3yB+v/+/v///////5md+/9YXvn/WF75/1he+f9YXvn/r7L8//////+1t/z/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WV/5/8bI/f/////////////////+/v//ra/8/1lf+f9YXvn/WmD5/8HD/P////////////7+///CxP3/b3X5//j4/v//////qq37/1he+f9YXvn/WF75/4KG+v/19f///v7//4KG+v9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/YWf5/9XX/f/////////////////+/v//zM79/290+f9YXvn/WmD5/5+j+//y8/7////////////6+v///v7///////+vsvz/g4j6/5qd+//Lzf3//Pz///7+//+xtPz/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/XmT5/7m8/P/9/f//////////////////+fn//8fJ/f+Vmfv/d3v6/3d7+v+0t/z/+Pj///////////////////////////////////v7///W2P3/i4/7/1le+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/36D+v/R0/3//f3////////////////////////+/v///f3+//39/////////v7//9HS/f+Okvr/kpb6/5GV+v+Chvr/Zmz5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9yd/r/p6v8/9HS/f/s7f7/+vr+//v7/v/39/7/4+P+/77B/P+EiPr/WV/5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1pg+f9bYfn/W2H5/1th+f9ZX/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn9WF754Vhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+eBYXPmgWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WFz5oFhc+zpYXvn9WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXPs6AAD/AVhe+qNYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF76owAA/wEAAAAAVVX/D1he+clYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+clVVf8PAAAAAAAAAAAAAAAAVVX/D1he+qNYXvn9WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXvqjVVX/DwAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AVhc+zpYXPmgV1744Vhe+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/Vhe+eFYXPmgWFz7OgAA/wEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAADAAAABgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWJi/w1YXfU0V135eFdf+L9YXvntWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvntV1/4v1dd+XhYXfU0YmL/DQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJSf8HWVz4RVhe+aNYXvjnWF35/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1hd+f5YXvjnWF75o1lc+EVJSf8HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVV/wlXXvh1WF755Vhe+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/lhe+eVXXvh1VVX/CQAAAAAAAAAAAAAAAAAAAAAAAAAAVVX/CVhe94BYXvn3WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn3WF73gFVV/wkAAAAAAAAAAAAAAABJSf8HV174dVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF7591de+HVJSf8HAAAAAAAAAAFZXPhFWF755Vhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+eVZXPhFAAAAAWJi/w1YXvmjWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvmjYmL/DVhd9TRYXvjnWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvjnWF31NFdd+XhYXfn+WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXfn+V135eFdf+L9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/V1/4v1he+e5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF757Vhe+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9bYfn/XmT5/15k+f9dY/n/XGL5/1pg+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WV75/36C+v/X2P3/9/f+//j4/v/z9P7/5uf+/9bX/f++wPz/oaT7/4WK+/9wdvr/ZWr5/1xi+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/cHT5/+Tl/v////////////////////////////////////////////n6///q6/7/0dL9/7G0/P+Okvr/aW/6/1lf+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/sbT8//////////////////////////////////////////////////////////////////39///19f7/4uP9/6+y/P9uc/n/WV/5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9fZPn/1db9//////////////////////////////////////////////////////////////////////////////////7////t7v7/pqn8/2lv+f9aYPn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9eZPn/0tP9/////////////////////////////////////////////////////////////////////////////////////////////f3//9na/f+Rlfv/XmP5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9ZX/n/j5P7/+zt/v/4+P7/+Pj+//n5/v/7+/7//Pz///7+//////////////////////////////////////////////////////////////7+///y8///q678/1th+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1xi+f9eZPn/XmT5/2Zs+f9wdfr/foL7/46S+/+lqPv/wMP8/9fZ/f/p6f7/8/P+//v8/////////////////////////////////////////f7//7W4/P9hZ/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/2Bm+f9vdPr/iI36/6ap/P/Iy/3/7O3+//7+//////////////////////////////f3//+lqPz/XWP5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1tg+f+DiPr/ur38/5md+/9bYfn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1pg+f9iaPn/c3j6/6ap/P/n6P7//v7////////////////////////t7f7/e4D6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/Wl/5/5eb+//09f///////+zs/v91evr/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/YGb5/3N4+v+Mkfv/nJ/7/5yf+/+Nkvv/dXr6/2No+f9ZX/n/WF75/1he+f9YXvn/WF75/1he+f9qb/n/srX8/+7v/v/+/v//////////////////yMr9/1th+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/fID6//Dx//////////////T1//+Nkfv/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1pg+f99gfr/wML9/+zt/v/8/P/////////////8/P//7/D+/8nL/f+Nkfv/XmP5/1he+f9YXvn/WF75/1he+f9YXvn/WmD5/4KG+v/R0/3//Pz/////////////+fn//32B+v9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9bYfn/w8X9//////////////////39//+usfz/W2H5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/3J4+v/f4P3//f3///////////////////////////////////7+///y8v//rbD8/1tg+f9YXvn/WF75/1he+f9YXvn/WF75/1lf+f9wdPr/1Nb+/////////////////7W3/P9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9ma/n/4+T+///////////////////////Z2v7/aW/6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/7G1/P/////////////////7+///39/9/9XW/f/o6f7/+/v//////////////f7//6ir+/9cYvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/a3H6/+jp/v///////////9XX/f9fZfn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9obfn/6On+///////////////////////5+f//l5z7/1he+f9YXvn/WF75/1he+f9YXvn/WV/5/9DS/f/////////////////r6/7/d3z6/19l+f90efr/sLP8//f3/////////////+/v/v+Gi/r/WV/5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/5uf+//8/P///////+Tl/v9mbPn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9iaPn/3N39////////////////////////////6On+/2pw+v9YXvn/WF75/1he+f9YXvn/WF75/7q9/P/////////////////6+///naD7/1he+f9YXvn/XWP5/6er/P/8/P////////7+//+/wvz/YGb5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/3R5+v/x8f7//////+jp/v9obfn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/r7L8//7+/////////////////////////////8fJ/f9jafn/WF75/1he+f9YXvn/WF75/4KH+v/09P7/////////////////9vb+/4yR+v9dY/n/WF75/2hu+f/Z2/3////////////m5v7/bXL6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/3p/+v/z9P///////+Xm/v9nbPn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/bnL5/+bn/v////////////////////////////j4//+tsPz/YGb5/1he+f9YXvn/WF75/2Fm+f+4uvz/+/v///////////////////Dw/v+oq/z/Z2z5/1xi+f+0t/z//v7////////09f7/eoD6/1he+f9YXvn/WF75/1he+f9YXvn/XWP5/7m8/P/9/v///////8vN/f9dY/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/4+T+v/19f/////////////////////////////29v//srT8/1xi+f9YXvn/WF75/1he+f9qb/n/xsj9//7+///////////////////5+f//2Nn9/4qO+v+rrvv//Pz////////29v7/fYH6/1he+f9YXvn/WF75/1he+f9lavn/tbf8//n5/////////Pz//4mN+v9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/11j+f+prPz/9vb//////////////////////////////v7//8rM/f92e/r/XGL5/1he+f9YXvn/XWP5/6yv/P/t7f7//f3///////////////////v7///29//////////////s7f7/e4D6/2Zs+f9pbvr/dXr6/5qd+//d3v7//f3////////4+P//srX8/1lf+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9iZ/n/oqb8/+7v/v////////////////////////////7+///l5f7/rrH8/36D+v9hZ/n/WF75/1xh+f+Ahfr/ubv8/+bn/v/8/P/////////////////////////////39/7/2dv+/9bX/f/e3/7/8PD+//39/////////////+nq/v+nqvz/Y2n5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/XGH5/4GG+v/a2/7//v7//////////////////////////////Pz//+/w/v/X2P7/srX8/5CU+/9+gvr/fYL6/4+U+//Jy/3/+/v///////////////////////////////////////////////////v7///l5v7/rK/8/3R5+v9dY/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9mbPn/rbH8/+nq/v/6+v/////////////////////////////////////////////8/P///Pz+//z8/v/+/v/////////////7+///4+T+/7Cy+/+3uvv/ubz7/7i7+/+tr/v/mJv7/3h9+v9fZPn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WmD5/3R5+v+ipvv/zs/9/+/w/v/9/f//////////////////////////////////////////////////+vv//+Lj/v+vsfz/cnf6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9aYPn/ZGn5/3V6+v+Vmfv/vL78/9vc/f/v8P7/+Pj+//j4/v/4+P7/7u7+/9fY/f+2ufz/jJD7/2xx+v9dY/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1pg+f9dY/n/XmT5/15k+f9eZPn/XGL5/1pg+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/lhe+e5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF757Vhe+MBYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/V1/4v1dd+XhYXfn+WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXfn+V135eFhd9TRYXvjnWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvjnWF31NGJi/w1YXvmjWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvmjYmL/DQAAAAFZXPhFWF755Vhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+eVZXPhFAAAAAQAAAABJSf8HV174dVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF7591de+HVJSf8HAAAAAAAAAAAAAAAAVVX/CVhe94BYXvn3WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn3WF73gFVV/wkAAAAAAAAAAAAAAAAAAAAAAAAAAFVV/wlXXvh1WF755Vhe+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/lhe+eVXXvh1VVX/CQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJSf8HWVz4RVhe+aNYXvjnWF35/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1hd+f5YXvjnWF75o1lc+EVJSf8HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWJi/w1YXfU0V135eFdf+L9YXvnuWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvnuWF74wFdd+XhYXfU0YmL/DQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",kw=({message:e,type:t="default"})=>{const n=t==="loading",{botData:r}=bo();return ne.jsxs(Ft,{position:"relative",width:"full",children:[ne.jsx(Ft,{opacity:"0",bg:"#EDEDED",borderRadius:"24px",padding:"16px",children:ne.jsx(gr,{fontWeight:400,fontSize:"14px",lineHeight:"21px",textAlign:"right",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})}),ne.jsx(Ft,{h:"50px"}),ne.jsx(Ft,{position:"absolute",left:0,bottom:0,children:ne.jsx(mo,{src:r?.agent_image||BV,alt:"Mori",w:"24px",h:"24px",borderRadius:"50%"})}),ne.jsx(Ft,{position:"absolute",left:"21px",bottom:"21px",width:"7.68px",height:"7.68px",bg:"#EDEDED",borderRadius:"100%"}),ne.jsx(Ft,{position:"absolute",left:"27px",bottom:"27px",width:"15.8px",height:"15.8px",bg:"#EDEDED",borderRadius:"100%"}),ne.jsx(Ft,{position:"absolute",left:"35px",bottom:"35px",bg:"#EDEDED",borderRadius:"24px",padding:"16px",children:n?ne.jsx(gr,{fontWeight:400,fontSize:"14px",lineHeight:"21px",textAlign:"right",color:"gray.500",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e}):ne.jsx(gr,{fontWeight:400,fontSize:"14px",lineHeight:"21px",textAlign:"right",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})})]})},HV="data:image/svg+xml,%3csvg%20width='15'%20height='12'%20viewBox='0%200%2015%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.16536%201.81467C7.16536%200.791333%205.9427%200.263999%205.1987%200.965999L1.30003%204.64C1.15132%204.78022%201.03284%204.94936%200.951856%205.13703C0.870874%205.3247%200.829102%205.52694%200.829102%205.73133C0.829102%205.93573%200.870874%206.13797%200.951856%206.32563C1.03284%206.5133%201.15132%206.68244%201.30003%206.82267L5.19736%2010.5C5.94136%2011.202%207.1647%2010.674%207.1647%209.65133V8.33467C7.93731%208.19507%208.73376%208.28024%209.45939%208.58006C10.185%208.87989%2010.8093%209.38175%2011.258%2010.026L11.7927%2010.794C12.5207%2011.84%2014.162%2011.3247%2014.162%2010.0507V9.738C14.162%205.89267%2010.9394%202.87667%207.1647%203.05733L7.16536%201.81467ZM5.8847%201.69333C5.90839%201.67111%205.93807%201.6563%205.97007%201.65072C6.00208%201.64514%206.03501%201.64904%206.06483%201.66193C6.09465%201.67482%206.12005%201.69614%206.13791%201.72328C6.15577%201.75042%206.16531%201.78218%206.16536%201.81467V3.54C6.16536%203.87333%206.45736%204.132%206.78803%204.092C10.1767%203.68%2013.1627%206.32467%2013.1627%209.73867V10.0507C13.1627%2010.3453%2012.7827%2010.4647%2012.614%2010.2227L12.0787%209.45467C11.4785%208.5928%2010.6268%207.93727%209.63996%207.57763C8.65317%207.21799%207.5794%207.17179%206.56536%207.44533C6.45052%207.47639%206.34911%207.54442%206.27681%207.6389C6.2045%207.73337%206.16534%207.84903%206.16536%207.968V9.65067C6.16531%209.68315%206.15577%209.71492%206.13791%209.74205C6.12005%209.76919%206.09465%209.79051%206.06483%209.8034C6.03501%209.81629%206.00208%209.82019%205.97007%209.81461C5.93807%209.80903%205.90839%209.79422%205.8847%209.772L1.9867%206.09533C1.93716%206.04859%201.8977%205.99223%201.87072%205.92969C1.84375%205.86716%201.82984%205.79977%201.82984%205.73167C1.82984%205.66356%201.84375%205.59618%201.87072%205.53364C1.8977%205.4711%201.93716%205.41474%201.9867%205.368L5.8847%201.69333Z'%20fill='%236155F5'%20/%3e%3c/svg%3e",UV="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.56503%203.915C5.11896%202.73832%206.04737%201.77849%207.20497%201.18572C8.36257%200.592947%209.68402%200.400681%2010.9625%200.63901C12.2411%200.877339%2013.4045%201.53281%2014.2708%202.50286C15.137%203.4729%2015.6573%204.70277%2015.75%206C15.8332%207.19515%2015.548%208.38706%2014.9329%209.41516C14.3178%2010.4433%2013.4024%2011.2581%2012.31%2011.75C11.9379%2012.672%2011.3425%2013.4871%2010.5774%2014.122C9.81221%2014.7569%208.90126%2015.1917%207.92642%2015.3873C6.95158%2015.5829%205.94341%2015.5332%204.99255%2015.2426C4.04169%2014.952%203.17794%2014.4297%202.47896%2013.7226C1.77998%2013.0155%201.26768%2012.1458%200.988107%2011.1916C0.708538%2010.2375%200.670468%209.2288%200.877321%208.25629C1.08417%207.28377%201.52946%206.37791%202.17316%205.62013C2.81685%204.86235%203.63877%204.27641%204.56503%203.915ZM9.90503%201.5H9.60503C8.52019%201.56681%207.48862%201.99351%206.67357%202.71256C5.85852%203.43161%205.30656%204.40195%205.10503%205.47L10.675%201.565C10.4205%201.52309%2010.163%201.50136%209.90503%201.5ZM11.905%201.93L5.33003%206.555L5.06003%206.745C5.11592%207.4665%205.33108%208.16663%205.69003%208.79499L13.565%203.155C13.1023%202.63199%2012.5329%202.21427%2011.895%201.93H11.905ZM14.145%203.97L6.25003%209.60999C6.70986%2010.1331%207.27572%2010.5524%207.91003%2010.84L14.75%205.82C14.6759%205.16869%2014.47%204.53927%2014.145%203.97ZM14.75%207.065L9.10503%2011.2C9.4681%2011.2629%209.83728%2011.283%2010.205%2011.26C11.33%2011.1916%2012.3968%2010.7368%2013.225%209.97234C14.0532%209.20793%2014.5919%208.1809%2014.75%207.065ZM6.75003%2014.5C7.59348%2014.4958%208.42238%2014.2798%209.16061%2013.8718C9.89883%2013.4638%2010.5227%2012.8769%2010.975%2012.165C10.7406%2012.2117%2010.5035%2012.2434%2010.265%2012.26H9.90003C8.40699%2012.257%206.97069%2011.6876%205.88117%2010.6668C4.79165%209.64592%204.13007%208.24969%204.03003%206.76C4.00121%206.25734%204.03819%205.75307%204.14003%205.26C3.22219%205.83357%202.51524%206.68948%202.12538%207.69915C1.73553%208.70883%201.68382%209.81774%201.97803%2010.8593C2.27224%2011.9009%202.89648%2012.8189%203.75697%2013.4754C4.61746%2014.1318%205.66774%2014.4914%206.75003%2014.5Z'%20fill='%236155F5'%20/%3e%3c/svg%3e",GV=e=>{const t="dori",n="dori_pdp_widget",r="dori_product_recommendation",l=e.includes("?")?"&":"?";return`${e}${l}utm_source=${t}&utm_medium=${n}&utm_campaign=${r}`},ZV=(e,t)=>{const n="customer_referral",r="widget",l="powered_by",s=e.includes("?")?"&":"?";return`${e}${s}utm_source=${n}&utm_medium=${r}&utm_campaign=${l}&utm_term=${t}`},QV=({product:e,isDesktop:t=!1})=>{const{sendMessage:r,setRepliedProduct:l,botData:s,chatState:u}=bo(),{name:f,price:g,originalPrice:v,discount:y,image:A,id:C,url:w}=e,[R,N]=Te.useState(!1),Y=e.description?.length&&e.description?.length>130,L=()=>{const U=`Do you have similar to ${f}`,J=`Do you have similar to ${C}`;r({message:U,apiMessage:J})},X=()=>{l({product:e,suggestions:["Does this product have a discount?","What features make this product special?","Does it come in other colors?"]})},V=()=>{N(!0)},re=async()=>{if(!w||!s)return;const U=GV(w);window.open(U,"_blank","noopener,noreferrer"),zW(e,s,u.threadId)};return ne.jsxs(ri,{dir:"rtl",gap:1,children:[ne.jsx(Ft,{bg:"white",borderRadius:"16px",border:"1px solid #F0EEFE",p:2,w:t?"full":"159.5px",children:ne.jsxs(ri,{gap:2,align:"stretch",children:[ne.jsx(Ft,{position:"relative",cursor:"pointer",onClick:re,_hover:{opacity:.9},transition:"opacity 0.2s",children:ne.jsx(mo,{src:A,alt:f,w:"full",h:"124px",objectFit:"contain",borderRadius:"md"})}),ne.jsx(gr,{fontWeight:600,fontSize:"12px",lineHeight:"24px",textAlign:"start",color:"#1A1A1A",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxW:"100%",title:f,fontFamily:"Estedad-FD, system-ui, sans-serif",cursor:"pointer",onClick:re,_hover:{color:"#6155F5"},transition:"color 0.2s",children:f}),ne.jsx(Ft,{borderRadius:"8px",padding:"4px 8px",w:"full",bg:"#F2F2F7",cursor:R?"default":"pointer",onClick:R?void 0:V,_hover:R?{}:{bg:"#E8E8E8"},transition:"background-color 0.2s",children:ne.jsxs(gr,{fontSize:"12px",fontWeight:400,color:"#333333",lineHeight:"24px",textAlign:"start",overflow:"hidden",title:e.description,fontFamily:"Estedad-FD, system-ui, sans-serif",children:[Y&&!R?e.description?.substring(0,130)+"... ":e.description,Y&&!R&&ne.jsx(gr,{as:"span",fontSize:"12px",lineHeight:"4px",textAlign:"right",color:"#6155F5",borderRadius:"4px",flex:1,cursor:"pointer",fontWeight:400,fontFamily:"Estedad-FD, system-ui, sans-serif",children:"More"})]})}),ne.jsx(Xa,{justify:"space-between",align:"end",children:ne.jsxs(ri,{gap:1,align:"start",children:[y&&ne.jsxs(Xa,{gap:1,children:[ne.jsx(gr,{fontSize:"xs",color:"gray.400",textDecoration:"line-through",fontFamily:"Estedad-FD, system-ui, sans-serif",children:v?.toLocaleString()}),ne.jsxs(nP,{bg:"rgba(255, 56, 60, 0.14)",color:"#FF383C",fontSize:"xs",borderRadius:"24px",children:[y,"٪"]})]}),ne.jsxs(gr,{fontSize:"12px",fontWeight:"700",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:[g.toLocaleString()," USD"]})]})})]})}),ne.jsxs(Xa,{gap:.5,w:t?"full":"159.5px",children:[ne.jsxs(ju,{variant:"outline",size:"xs",fontSize:"12px",lineHeight:"4px",textAlign:"right",color:"#6155F5",borderRadius:"4px",flex:1,fontWeight:400,onClick:L,bgColor:"#F0EEFE",fontFamily:"Estedad-FD, system-ui, sans-serif",children:[ne.jsx(mo,{src:UV,alt:"suggestion"}),"Similar Suggestion"]}),ne.jsx(eh,{variant:"outline",size:"xs",fontSize:"12px",lineHeight:"0px",textAlign:"right",color:"#6155F5",borderColor:"#F0EEFE",borderRadius:"4px",borderWidth:"2px",onClick:X,children:ne.jsx(mo,{src:HV,alt:"reply"})})]})]})},Tw=({products:e})=>ne.jsx(ri,{align:"stretch",gap:2,w:"full",children:ne.jsx(Ft,{px:1,w:"full",children:ne.jsx(fP,{dir:"ltr",columns:{base:1,md:2},gapX:{base:1,md:2},gapY:{base:2,md:4},w:"full",children:e.map(t=>ne.jsx(QV,{product:t,isDesktop:!0},t.id))})})}),KV=({suggestions:e})=>{const{sendMessage:t}=bo(),n=r=>{t({message:r})};return ne.jsx(ri,{maxW:{base:"230px",md:"70%"},gap:2,align:"stretch",alignSelf:"flex-start",children:e.slice(0,3).map((r,l)=>ne.jsx(ju,{bg:l%2===0?"white":"#F5F5F5",border:"1px solid #EDEDED",borderRadius:"24px",px:4,py:2,h:"auto",onClick:()=>n(r),_hover:{bg:"#F5F5F5",borderColor:"#6155F5"},_active:{bg:"#F0F0F0"},textAlign:"center",justifyContent:"center",w:"full",children:ne.jsx(gr,{fontSize:"12px",fontWeight:"400",color:"#1A1A1A",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",children:r})},l))})};function _w(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,l=n.indexOf(t);for(;l!==-1;)r++,l=n.indexOf(t,l+t.length);return r}function jV(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function JV(e,t,n){const l=qp((n||{}).ignore||[]),s=qV(t);let u=-1;for(;++u<s.length;)gw(e,"text",f);function f(v,y){let A=-1,C;for(;++A<y.length;){const w=y[A],R=C?C.children:void 0;if(l(w,R?R.indexOf(w):void 0,C))return;C=w}if(C)return g(v,y)}function g(v,y){const A=y[y.length-1],C=s[u][0],w=s[u][1];let R=0;const Y=A.children.indexOf(v);let L=!1,X=[];C.lastIndex=0;let V=C.exec(v.value);for(;V;){const re=V.index,U={index:V.index,input:V.input,stack:[...y,v]};let J=w(...V,U);if(typeof J=="string"&&(J=J.length>0?{type:"text",value:J}:void 0),J===!1?C.lastIndex=re+1:(R!==re&&X.push({type:"text",value:v.value.slice(R,re)}),Array.isArray(J)?X.push(...J):J&&X.push(J),R=re+V[0].length,L=!0),!C.global)break;V=C.exec(v.value)}return L?(R<v.value.length&&X.push({type:"text",value:v.value.slice(R)}),A.children.splice(Y,1,...X)):X=[v],Y+X.length}}function qV(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const l=n[r];t.push([$V(l[0]),eX(l[1])])}return t}function $V(e){return typeof e=="string"?new RegExp(jV(e),"g"):e}function eX(e){return typeof e=="function"?e:function(){return e}}const Bb="phrasing",Hb=["autolink","link","image","label"];function tX(){return{transforms:[sX],enter:{literalAutolink:rX,literalAutolinkEmail:Ub,literalAutolinkHttp:Ub,literalAutolinkWww:Ub},exit:{literalAutolink:oX,literalAutolinkEmail:lX,literalAutolinkHttp:iX,literalAutolinkWww:aX}}}function nX(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bb,notInConstruct:Hb},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bb,notInConstruct:Hb},{character:":",before:"[ps]",after:"\\/",inConstruct:Bb,notInConstruct:Hb}]}}function rX(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ub(e){this.config.enter.autolinkProtocol.call(this,e)}function iX(e){this.config.exit.autolinkProtocol.call(this,e)}function aX(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function lX(e){this.config.exit.autolinkEmail.call(this,e)}function oX(e){this.exit(e)}function sX(e){JV(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,uX],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),cX]],{ignore:["link","linkReference"]})}function uX(e,t,n,r,l){let s="";if(!Ow(l)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!fX(n)))return!1;const u=dX(n+r);if(!u[0])return!1;const f={type:"link",title:null,url:s+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function cX(e,t,n,r){return!Ow(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function fX(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function dX(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const l=_w(e,"(");let s=_w(e,")");for(;r!==-1&&l>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function Ow(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||oc(n)||Hp(n))&&(!t||n!==47)}Rw.peek=AX;function hX(){this.buffer()}function gX(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pX(){this.buffer()}function mX(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function vX(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bl(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bX(e){this.exit(e)}function yX(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bl(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xX(e){this.exit(e)}function AX(){return"["}function Rw(e,t,n,r){const l=n.createTracker(r);let s=l.move("[^");const u=n.enter("footnoteReference"),f=n.enter("reference");return s+=l.move(n.safe(n.associationId(e),{after:"]",before:s})),f(),u(),s+=l.move("]"),s}function SX(){return{enter:{gfmFootnoteCallString:hX,gfmFootnoteCall:gX,gfmFootnoteDefinitionLabelString:pX,gfmFootnoteDefinition:mX},exit:{gfmFootnoteCallString:vX,gfmFootnoteCall:bX,gfmFootnoteDefinitionLabelString:yX,gfmFootnoteDefinition:xX}}}function EX(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Rw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,l,s,u){const f=s.createTracker(u);let g=f.move("[^");const v=s.enter("footnoteDefinition"),y=s.enter("label");return g+=f.move(s.safe(s.associationId(r),{before:g,after:"]"})),y(),g+=f.move("]:"),r.children&&r.children.length>0&&(f.shift(4),g+=f.move((t?`
|
91
|
+
`},l),s}function gV(e,t){return e&&"run"in e?async function(n,r){const l=mw(n,{file:r,...t});await e.run(l,r)}:function(n,r){return mw(n,{file:r,...e||t})}}function vw(e){if(e)throw e}var Ib,bw;function pV(){if(bw)return Ib;bw=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,l=function(v){return typeof Array.isArray=="function"?Array.isArray(v):t.call(v)==="[object Array]"},s=function(v){if(!v||t.call(v)!=="[object Object]")return!1;var y=e.call(v,"constructor"),A=v.constructor&&v.constructor.prototype&&e.call(v.constructor.prototype,"isPrototypeOf");if(v.constructor&&!y&&!A)return!1;var C;for(C in v);return typeof C>"u"||e.call(v,C)},u=function(v,y){n&&y.name==="__proto__"?n(v,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):v[y.name]=y.newValue},f=function(v,y){if(y==="__proto__")if(e.call(v,y)){if(r)return r(v,y).value}else return;return v[y]};return Ib=function g(){var v,y,A,C,w,R,N=arguments[0],Y=1,L=arguments.length,X=!1;for(typeof N=="boolean"&&(X=N,N=arguments[1]||{},Y=2),(N==null||typeof N!="object"&&typeof N!="function")&&(N={});Y<L;++Y)if(v=arguments[Y],v!=null)for(y in v)A=f(N,y),C=f(v,y),N!==C&&(X&&C&&(s(C)||(w=l(C)))?(w?(w=!1,R=A&&l(A)?A:[]):R=A&&s(A)?A:{},u(N,{name:y,newValue:g(X,R,C)})):typeof C<"u"&&u(N,{name:y,newValue:C}));return N},Ib}var mV=pV();const Nb=zu(mV);function Pb(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vV(){const e=[],t={run:n,use:r};return t;function n(...l){let s=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...l);function f(g,...v){const y=e[++s];let A=-1;if(g){u(g);return}for(;++A<l.length;)(v[A]===null||v[A]===void 0)&&(v[A]=l[A]);l=v,y?bV(y,f)(...v):u(null,...v)}}function r(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function bV(e,t){let n;return r;function r(...u){const f=e.length>u.length;let g;f&&u.push(l);try{g=e.apply(this,u)}catch(v){const y=v;if(f&&n)throw y;return l(y)}f||(g&&g.then&&typeof g.then=="function"?g.then(s,l):g instanceof Error?l(g):s(g))}function l(u,...f){n||(n=!0,t(u,...f))}function s(u){l(null,u)}}const yo={basename:yV,dirname:xV,extname:AV,join:SV,sep:"/"};function yV(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ah(e);let n=0,r=-1,l=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else r<0&&(s=!0,r=l+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,f=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else u<0&&(s=!0,u=l+1),f>-1&&(e.codePointAt(l)===t.codePointAt(f--)?f<0&&(r=l):(f=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function xV(e){if(Ah(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function AV(e){Ah(e);let t=e.length,n=-1,r=0,l=-1,s=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?l<0?l=t:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||n<0||s===0||s===1&&l===n-1&&l===r+1?"":e.slice(l,n)}function SV(...e){let t=-1,n;for(;++t<e.length;)Ah(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":EV(n)}function EV(e){Ah(e);const t=e.codePointAt(0)===47;let n=CV(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function CV(e,t){let n="",r=0,l=-1,s=0,u=-1,f,g;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(l===u-1||s===1))if(l!==u-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(g=n.lastIndexOf("/"),g!==n.length-1){g<0?(n="",r=0):(n=n.slice(0,g),r=n.length-1-n.lastIndexOf("/")),l=u,s=0;continue}}else if(n.length>0){n="",r=0,l=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(l+1,u):n=e.slice(l+1,u),r=u-l-1;l=u,s=0}else f===46&&s>-1?s++:s=-1}return n}function Ah(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wV={cwd:kV};function kV(){return"/"}function zb(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function TV(e){if(typeof e=="string")e=new URL(e);else if(!zb(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return _V(e)}function _V(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Db=["history","path","basename","stem","extname","dirname"];class yw{constructor(t){let n;t?zb(t)?n={path:t}:typeof t=="string"||OV(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":wV.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Db.length;){const s=Db[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let l;for(l in n)Db.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?yo.basename(this.path):void 0}set basename(t){Wb(t,"basename"),Mb(t,"basename"),this.path=yo.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?yo.dirname(this.path):void 0}set dirname(t){xw(this.basename,"dirname"),this.path=yo.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?yo.extname(this.path):void 0}set extname(t){if(Mb(t,"extname"),xw(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=yo.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){zb(t)&&(t=TV(t)),Wb(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?yo.basename(this.path,this.extname):void 0}set stem(t){Wb(t,"stem"),Mb(t,"stem"),this.path=yo.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const l=this.message(t,n,r);throw l.fatal=!0,l}info(t,n,r){const l=this.message(t,n,r);return l.fatal=void 0,l}message(t,n,r){const l=new ii(t,n,r);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Mb(e,t){if(e&&e.includes(yo.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+yo.sep+"`")}function Wb(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xw(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function OV(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const RV=(function(e){const r=this.constructor.prototype,l=r[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),FV={}.hasOwnProperty;class Lb extends RV{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vV()}copy(){const t=new Lb;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Nb(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Xb("data",this.frozen),this.namespace[t]=n,this):FV.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Xb("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const l=n.call(t,...r);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=em(t),r=this.parser||this.Parser;return Yb("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Yb("process",this.parser||this.Parser),Vb("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(s,u){const f=em(t),g=r.parse(f);r.run(g,f,function(y,A,C){if(y||!A||!C)return v(y);const w=A,R=r.stringify(w,C);PV(R)?C.value=R:C.result=R,v(y,C)});function v(y,A){y||!A?u(y):s?s(A):n(void 0,A)}}}processSync(t){let n=!1,r;return this.freeze(),Yb("processSync",this.parser||this.Parser),Vb("processSync",this.compiler||this.Compiler),this.process(t,l),Sw("processSync","process",n),r;function l(s,u){n=!0,vw(s),r=u}}run(t,n,r){Aw(t),this.freeze();const l=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(u,f){const g=em(n);l.run(t,g,v);function v(y,A,C){const w=A||t;y?f(y):u?u(w):r(void 0,w,C)}}}runSync(t,n){let r=!1,l;return this.run(t,n,s),Sw("runSync","run",r),l;function s(u,f){vw(u),l=f,r=!0}}stringify(t,n){this.freeze();const r=em(n),l=this.compiler||this.Compiler;return Vb("stringify",l),Aw(t),l(t,r)}use(t,...n){const r=this.attachers,l=this.namespace;if(Xb("use",this.frozen),t!=null)if(typeof t=="function")g(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(v){if(typeof v=="function")g(v,[]);else if(typeof v=="object")if(Array.isArray(v)){const[y,...A]=v;g(y,A)}else u(v);else throw new TypeError("Expected usable value, not `"+v+"`")}function u(v){if(!("plugins"in v)&&!("settings"in v))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(v.plugins),v.settings&&(l.settings=Nb(!0,l.settings,v.settings))}function f(v){let y=-1;if(v!=null)if(Array.isArray(v))for(;++y<v.length;){const A=v[y];s(A)}else throw new TypeError("Expected a list of plugins, not `"+v+"`")}function g(v,y){let A=-1,C=-1;for(;++A<r.length;)if(r[A][0]===v){C=A;break}if(C===-1)r.push([v,...y]);else if(y.length>0){let[w,...R]=y;const N=r[C][1];Pb(N)&&Pb(w)&&(w=Nb(!0,N,w)),r[C]=[v,w,...R]}}}}const IV=new Lb().freeze();function Yb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Vb(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Xb(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Aw(e){if(!Pb(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Sw(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function em(e){return NV(e)?e:new yw(e)}function NV(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function PV(e){return typeof e=="string"||zV(e)}function zV(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const DV="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ew=[],Cw={allowDangerousHtml:!0},MV=/^(https?|ircs?|mailto|xmpp)$/i,WV=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ww(e){const t=LV(e),n=YV(e);return VV(t.runSync(t.parse(n),n),e)}function LV(e){const t=e.rehypePlugins||Ew,n=e.remarkPlugins||Ew,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Cw}:Cw;return IV().use(xY).use(n).use(gV,r).use(t)}function YV(e){const t=e.children||"",n=new yw;return typeof t=="string"&&(n.value=t),n}function VV(e,t){const n=t.allowedElements,r=t.allowElement,l=t.components,s=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,g=t.urlTransform||XV;for(const y of WV)Object.hasOwn(t,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+DV+y.id,void 0);return Rb(e,v),dL(e,{Fragment:ne.Fragment,components:l,ignoreInvalidStyle:!0,jsx:ne.jsx,jsxs:ne.jsxs,passKeys:!0,passNode:!0});function v(y,A,C){if(y.type==="raw"&&C&&typeof A=="number")return u?C.children.splice(A,1):C.children[A]={type:"text",value:y.value},A;if(y.type==="element"){let w;for(w in vb)if(Object.hasOwn(vb,w)&&Object.hasOwn(y.properties,w)){const R=y.properties[w],N=vb[w];(N===null||N.includes(y.tagName))&&(y.properties[w]=g(String(R||""),w,y))}}if(y.type==="element"){let w=n?!n.includes(y.tagName):s?s.includes(y.tagName):!1;if(!w&&r&&typeof A=="number"&&(w=!r(y,A,C)),w&&C&&typeof A=="number")return f&&y.children?C.children.splice(A,1,...y.children):C.children.splice(A,1),A}}}function XV(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||r!==-1&&t>r||MV.test(e.slice(0,t))?e:""}const BV="data:image/x-icon;base64,AAABAAMAEBAAAAEAIABoBAAANgAAACAgAAABACAAKBEAAJ4EAAAwMAAAAQAgAGgmAADGFQAAKAAAABAAAAAgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVW/ktV135tVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+fdXXfm1VVv5LQAAAABVW/ktWF768Vhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+vFVW/ktV135tVhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/V135tVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1lf+f9ZX/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+fdYXvn/WF75/1he+f9YXvn/WF75/2No+f/q6/7/+/v+/+vs/v/Lzf3/nJ/7/2Jo+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f94ffr//Pz+//7+///////////////////09f7/nJ/7/1he+f9YXvn/WF75/1he+f9YXvn/Zmz5/15k+f9YXvn/WF75/1lf+f9gZfn/b3X6/42R+/+6vfz/9PT+//////+lqfz/WF75/1he+f9YXvn/Zmz5//Lz/v+dofv/WF75/1he+f+Mkfr/2dr9/9nb/f+ZnPv/WF75/2Jo+f/Cxf3/+fn//2Vq+f9YXvn/WF75/4eL+v//////3d/+/1lf+f9YXvn/7O3+/9/g/v+Ul/v/9fb//5WZ+/9YXvn/WmD5/+Lj/v+Givr/WF75/1he+f9iaPn/8PH+//////+vsvz/WF75/62w/P/+/v//rK/8/7i7/P/Q0v3/WF75/2Jo+f/o6f7/en76/1he+f9YXvn/WF75/3uA+v/t7v7//////83O/f+DiPr/oKP7/+rr/v/9/f//6+z+/8fJ/f/m5/7/paj8/1he+f9YXvn/WF75/1he+f9YXvn/YWf5/6ap/P/d3/7/+fn+//v7/v/n6P7/q678/3R5+f9xdvn/W2H5/1he+f9YXvn/WF75/1he+fdYXvn/WF75/1he+f9YXvn/WF75/1lf+f9ZX/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+fdXXfm1WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9XXfm1VVv5LVhe+vFYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvrxVVv5LQAAAABVW/ktV135tVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+fdXXfm1VVv5LQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAACAAAABAAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wFYXPs6WFz5oFhe+eBYXvn9WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXvngWFz5oFhc+zoAAP8BAAAAAAAAAAAAAAAAAAAAAAAAAABVVf8PWF76o1he+f1YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/Vhe+qNVVf8PAAAAAAAAAAAAAAAAVVX/D1he+clYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+clVVf8PAAAAAAAA/wFYXvqjWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+qMAAP8BWFz7Olhe+f1YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/Vhc+zpYXPmgWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WFz5oFde+OFYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvngWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1th+f9bYfn/WmD5/1lf+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1lf+f+0tvz/+fn+//v7/v/y8v7/4+T+/8vN/f+rr/z/hYn6/19l+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/g4f6//7+////////////////////////////////////////9fX+/8PF/P+Bhvr/WV/5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f+prPv///////////////////////////////////////////////////////7+///W2P3/eX76/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/4mN+//29/7/+/v+//z8/v/9/f/////////////////////////////////////////////6+v//paj8/1lf+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1th+f9bYfn/Ymf5/21y+v98gPr/kpf7/7Cz/P/V1v3/9/j////////////////////////+/v//sLP8/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/11i+f+Mkfr/cXb6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9iaPn/kpb7/9TV/f/+/v/////////////+/v//j5T7/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9bYPn/zc/9///////Oz/3/WF75/1he+f9YXvn/WF75/1he+f9YXvn/aG75/6Sn+//CxPz/wsT8/6aq/P9uc/n/WF75/1he+f9YXvn/WV75/4GG+v/h4v7////////////o6f7/XWL5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/4+T+/////////////Ly/v9eZPn/WF75/1he+f9YXvn/WF75/4CF+v/y8/7///////////////////////n5//+lqPz/WV/5/1he+f9YXvn/WF75/19l+f/Lzf3///////////+IjPr/WF75/1he+f9YXvn/WF75/1he+f9YXvn/ubv8/////////////////5SY+/9YXvn/WF75/1he+f9YXvn/19n9////////////zM39/62w/P/o6P7///////7+//+go/v/WF75/1he+f9YXvn/WF75/19l+f/k5f7//////62w/P9YXvn/WF75/1he+f9YXvn/WF75/1he+f+0tvz/////////////////5OX+/15k+f9YXvn/WF75/1he+f/b3f3///////////+xtPz/WF75/2Jn+f/a2/7///////b2//9nbfn/WF75/1he+f9YXvn/WF75/6ap/P//////vL78/1he+f9YXvn/WF75/1he+f9YXvn/WF75/4GG+v/+/v//////////////////ubz8/1lf+f9YXvn/WF75/5yf+/////////////z8//+Ym/v/WF75/3yB+v/+/v///////5md+/9YXvn/WF75/1he+f9YXvn/r7L8//////+1t/z/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WV/5/8bI/f/////////////////+/v//ra/8/1lf+f9YXvn/WmD5/8HD/P////////////7+///CxP3/b3X5//j4/v//////qq37/1he+f9YXvn/WF75/4KG+v/19f///v7//4KG+v9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/YWf5/9XX/f/////////////////+/v//zM79/290+f9YXvn/WmD5/5+j+//y8/7////////////6+v///v7///////+vsvz/g4j6/5qd+//Lzf3//Pz///7+//+xtPz/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/XmT5/7m8/P/9/f//////////////////+fn//8fJ/f+Vmfv/d3v6/3d7+v+0t/z/+Pj///////////////////////////////////v7///W2P3/i4/7/1le+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/36D+v/R0/3//f3////////////////////////+/v///f3+//39/////////v7//9HS/f+Okvr/kpb6/5GV+v+Chvr/Zmz5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9yd/r/p6v8/9HS/f/s7f7/+vr+//v7/v/39/7/4+P+/77B/P+EiPr/WV/5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1pg+f9bYfn/W2H5/1th+f9ZX/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn9WF754Vhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+eBYXPmgWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WFz5oFhc+zpYXvn9WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXPs6AAD/AVhe+qNYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF76owAA/wEAAAAAVVX/D1he+clYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+clVVf8PAAAAAAAAAAAAAAAAVVX/D1he+qNYXvn9WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f1YXvqjVVX/DwAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AVhc+zpYXPmgV1744Vhe+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/Vhe+eFYXPmgWFz7OgAA/wEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAADAAAABgAAAAAQAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWJi/w1YXfU0V135eFdf+L9YXvntWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvntV1/4v1dd+XhYXfU0YmL/DQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJSf8HWVz4RVhe+aNYXvjnWF35/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1hd+f5YXvjnWF75o1lc+EVJSf8HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFVV/wlXXvh1WF755Vhe+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/lhe+eVXXvh1VVX/CQAAAAAAAAAAAAAAAAAAAAAAAAAAVVX/CVhe94BYXvn3WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn3WF73gFVV/wkAAAAAAAAAAAAAAABJSf8HV174dVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF7591de+HVJSf8HAAAAAAAAAAFZXPhFWF755Vhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+eVZXPhFAAAAAWJi/w1YXvmjWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvmjYmL/DVhd9TRYXvjnWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvjnWF31NFdd+XhYXfn+WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXfn+V135eFdf+L9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/V1/4v1he+e5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF757Vhe+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9bYfn/XmT5/15k+f9dY/n/XGL5/1pg+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WV75/36C+v/X2P3/9/f+//j4/v/z9P7/5uf+/9bX/f++wPz/oaT7/4WK+/9wdvr/ZWr5/1xi+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/cHT5/+Tl/v////////////////////////////////////////////n6///q6/7/0dL9/7G0/P+Okvr/aW/6/1lf+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/sbT8//////////////////////////////////////////////////////////////////39///19f7/4uP9/6+y/P9uc/n/WV/5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9fZPn/1db9//////////////////////////////////////////////////////////////////////////////////7////t7v7/pqn8/2lv+f9aYPn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9eZPn/0tP9/////////////////////////////////////////////////////////////////////////////////////////////f3//9na/f+Rlfv/XmP5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9ZX/n/j5P7/+zt/v/4+P7/+Pj+//n5/v/7+/7//Pz///7+//////////////////////////////////////////////////////////////7+///y8///q678/1th+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1xi+f9eZPn/XmT5/2Zs+f9wdfr/foL7/46S+/+lqPv/wMP8/9fZ/f/p6f7/8/P+//v8/////////////////////////////////////////f7//7W4/P9hZ/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/2Bm+f9vdPr/iI36/6ap/P/Iy/3/7O3+//7+//////////////////////////////f3//+lqPz/XWP5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1tg+f+DiPr/ur38/5md+/9bYfn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1pg+f9iaPn/c3j6/6ap/P/n6P7//v7////////////////////////t7f7/e4D6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/Wl/5/5eb+//09f///////+zs/v91evr/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/YGb5/3N4+v+Mkfv/nJ/7/5yf+/+Nkvv/dXr6/2No+f9ZX/n/WF75/1he+f9YXvn/WF75/1he+f9qb/n/srX8/+7v/v/+/v//////////////////yMr9/1th+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/fID6//Dx//////////////T1//+Nkfv/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1pg+f99gfr/wML9/+zt/v/8/P/////////////8/P//7/D+/8nL/f+Nkfv/XmP5/1he+f9YXvn/WF75/1he+f9YXvn/WmD5/4KG+v/R0/3//Pz/////////////+fn//32B+v9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9bYfn/w8X9//////////////////39//+usfz/W2H5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/3J4+v/f4P3//f3///////////////////////////////////7+///y8v//rbD8/1tg+f9YXvn/WF75/1he+f9YXvn/WF75/1lf+f9wdPr/1Nb+/////////////////7W3/P9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9ma/n/4+T+///////////////////////Z2v7/aW/6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/7G1/P/////////////////7+///39/9/9XW/f/o6f7/+/v//////////////f7//6ir+/9cYvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/a3H6/+jp/v///////////9XX/f9fZfn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9obfn/6On+///////////////////////5+f//l5z7/1he+f9YXvn/WF75/1he+f9YXvn/WV/5/9DS/f/////////////////r6/7/d3z6/19l+f90efr/sLP8//f3/////////////+/v/v+Gi/r/WV/5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/5uf+//8/P///////+Tl/v9mbPn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9iaPn/3N39////////////////////////////6On+/2pw+v9YXvn/WF75/1he+f9YXvn/WF75/7q9/P/////////////////6+///naD7/1he+f9YXvn/XWP5/6er/P/8/P////////7+//+/wvz/YGb5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/3R5+v/x8f7//////+jp/v9obfn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/r7L8//7+/////////////////////////////8fJ/f9jafn/WF75/1he+f9YXvn/WF75/4KH+v/09P7/////////////////9vb+/4yR+v9dY/n/WF75/2hu+f/Z2/3////////////m5v7/bXL6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/3p/+v/z9P///////+Xm/v9nbPn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/bnL5/+bn/v////////////////////////////j4//+tsPz/YGb5/1he+f9YXvn/WF75/2Fm+f+4uvz/+/v///////////////////Dw/v+oq/z/Z2z5/1xi+f+0t/z//v7////////09f7/eoD6/1he+f9YXvn/WF75/1he+f9YXvn/XWP5/7m8/P/9/v///////8vN/f9dY/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/4+T+v/19f/////////////////////////////29v//srT8/1xi+f9YXvn/WF75/1he+f9qb/n/xsj9//7+///////////////////5+f//2Nn9/4qO+v+rrvv//Pz////////29v7/fYH6/1he+f9YXvn/WF75/1he+f9lavn/tbf8//n5/////////Pz//4mN+v9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/11j+f+prPz/9vb//////////////////////////////v7//8rM/f92e/r/XGL5/1he+f9YXvn/XWP5/6yv/P/t7f7//f3///////////////////v7///29//////////////s7f7/e4D6/2Zs+f9pbvr/dXr6/5qd+//d3v7//f3////////4+P//srX8/1lf+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9iZ/n/oqb8/+7v/v////////////////////////////7+///l5f7/rrH8/36D+v9hZ/n/WF75/1xh+f+Ahfr/ubv8/+bn/v/8/P/////////////////////////////39/7/2dv+/9bX/f/e3/7/8PD+//39/////////////+nq/v+nqvz/Y2n5/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/XGH5/4GG+v/a2/7//v7//////////////////////////////Pz//+/w/v/X2P7/srX8/5CU+/9+gvr/fYL6/4+U+//Jy/3/+/v///////////////////////////////////////////////////v7///l5v7/rK/8/3R5+v9dY/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9mbPn/rbH8/+nq/v/6+v/////////////////////////////////////////////8/P///Pz+//z8/v/+/v/////////////7+///4+T+/7Cy+/+3uvv/ubz7/7i7+/+tr/v/mJv7/3h9+v9fZPn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WmD5/3R5+v+ipvv/zs/9/+/w/v/9/f//////////////////////////////////////////////////+vv//+Lj/v+vsfz/cnf6/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9aYPn/ZGn5/3V6+v+Vmfv/vL78/9vc/f/v8P7/+Pj+//j4/v/4+P7/7u7+/9fY/f+2ufz/jJD7/2xx+v9dY/n/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1pg+f9dY/n/XmT5/15k+f9eZPn/XGL5/1pg+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/lhe+e5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF757Vhe+MBYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/V1/4v1dd+XhYXfn+WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXfn+V135eFhd9TRYXvjnWF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvjnWF31NGJi/w1YXvmjWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvmjYmL/DQAAAAFZXPhFWF755Vhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+eVZXPhFAAAAAQAAAABJSf8HV174dVhe+fdYXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF7591de+HVJSf8HAAAAAAAAAAAAAAAAVVX/CVhe94BYXvn3WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn3WF73gFVV/wkAAAAAAAAAAAAAAAAAAAAAAAAAAFVV/wlXXvh1WF755Vhe+f5YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/lhe+eVXXvh1VVX/CQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABJSf8HWVz4RVhe+aNYXvjnWF35/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1hd+f5YXvjnWF75o1lc+EVJSf8HAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWJi/w1YXfU0V135eFdf+L9YXvnuWF75/lhe+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f9YXvn/WF75/1he+f5YXvnuWF74wFdd+XhYXfU0YmL/DQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",kw=({message:e,type:t="default"})=>{const n=t==="loading",{botData:r}=bo();return ne.jsxs(Ft,{position:"relative",width:"full",children:[ne.jsx(Ft,{opacity:"0",bg:"#EDEDED",borderRadius:"24px",padding:"16px",children:ne.jsx(gr,{fontWeight:400,fontSize:"14px",lineHeight:"21px",textAlign:"right",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})}),ne.jsx(Ft,{h:"50px"}),ne.jsx(Ft,{position:"absolute",left:0,bottom:0,children:ne.jsx(mo,{src:r?.agent_image||BV,alt:"Mori",w:"24px",h:"24px",borderRadius:"50%"})}),ne.jsx(Ft,{position:"absolute",left:"21px",bottom:"21px",width:"7.68px",height:"7.68px",bg:"#EDEDED",borderRadius:"100%"}),ne.jsx(Ft,{position:"absolute",left:"27px",bottom:"27px",width:"15.8px",height:"15.8px",bg:"#EDEDED",borderRadius:"100%"}),ne.jsx(Ft,{position:"absolute",left:"35px",bottom:"35px",bg:"#EDEDED",borderRadius:"24px",padding:"16px",children:n?ne.jsx(gr,{fontWeight:400,fontSize:"14px",lineHeight:"21px",textAlign:"right",color:"gray.500",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e}):ne.jsx(gr,{fontWeight:400,fontSize:"14px",lineHeight:"21px",textAlign:"right",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:e})})]})},HV="data:image/svg+xml,%3csvg%20width='15'%20height='12'%20viewBox='0%200%2015%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.16536%201.81467C7.16536%200.791333%205.9427%200.263999%205.1987%200.965999L1.30003%204.64C1.15132%204.78022%201.03284%204.94936%200.951856%205.13703C0.870874%205.3247%200.829102%205.52694%200.829102%205.73133C0.829102%205.93573%200.870874%206.13797%200.951856%206.32563C1.03284%206.5133%201.15132%206.68244%201.30003%206.82267L5.19736%2010.5C5.94136%2011.202%207.1647%2010.674%207.1647%209.65133V8.33467C7.93731%208.19507%208.73376%208.28024%209.45939%208.58006C10.185%208.87989%2010.8093%209.38175%2011.258%2010.026L11.7927%2010.794C12.5207%2011.84%2014.162%2011.3247%2014.162%2010.0507V9.738C14.162%205.89267%2010.9394%202.87667%207.1647%203.05733L7.16536%201.81467ZM5.8847%201.69333C5.90839%201.67111%205.93807%201.6563%205.97007%201.65072C6.00208%201.64514%206.03501%201.64904%206.06483%201.66193C6.09465%201.67482%206.12005%201.69614%206.13791%201.72328C6.15577%201.75042%206.16531%201.78218%206.16536%201.81467V3.54C6.16536%203.87333%206.45736%204.132%206.78803%204.092C10.1767%203.68%2013.1627%206.32467%2013.1627%209.73867V10.0507C13.1627%2010.3453%2012.7827%2010.4647%2012.614%2010.2227L12.0787%209.45467C11.4785%208.5928%2010.6268%207.93727%209.63996%207.57763C8.65317%207.21799%207.5794%207.17179%206.56536%207.44533C6.45052%207.47639%206.34911%207.54442%206.27681%207.6389C6.2045%207.73337%206.16534%207.84903%206.16536%207.968V9.65067C6.16531%209.68315%206.15577%209.71492%206.13791%209.74205C6.12005%209.76919%206.09465%209.79051%206.06483%209.8034C6.03501%209.81629%206.00208%209.82019%205.97007%209.81461C5.93807%209.80903%205.90839%209.79422%205.8847%209.772L1.9867%206.09533C1.93716%206.04859%201.8977%205.99223%201.87072%205.92969C1.84375%205.86716%201.82984%205.79977%201.82984%205.73167C1.82984%205.66356%201.84375%205.59618%201.87072%205.53364C1.8977%205.4711%201.93716%205.41474%201.9867%205.368L5.8847%201.69333Z'%20fill='%236155F5'%20/%3e%3c/svg%3e",UV="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.56503%203.915C5.11896%202.73832%206.04737%201.77849%207.20497%201.18572C8.36257%200.592947%209.68402%200.400681%2010.9625%200.63901C12.2411%200.877339%2013.4045%201.53281%2014.2708%202.50286C15.137%203.4729%2015.6573%204.70277%2015.75%206C15.8332%207.19515%2015.548%208.38706%2014.9329%209.41516C14.3178%2010.4433%2013.4024%2011.2581%2012.31%2011.75C11.9379%2012.672%2011.3425%2013.4871%2010.5774%2014.122C9.81221%2014.7569%208.90126%2015.1917%207.92642%2015.3873C6.95158%2015.5829%205.94341%2015.5332%204.99255%2015.2426C4.04169%2014.952%203.17794%2014.4297%202.47896%2013.7226C1.77998%2013.0155%201.26768%2012.1458%200.988107%2011.1916C0.708538%2010.2375%200.670468%209.2288%200.877321%208.25629C1.08417%207.28377%201.52946%206.37791%202.17316%205.62013C2.81685%204.86235%203.63877%204.27641%204.56503%203.915ZM9.90503%201.5H9.60503C8.52019%201.56681%207.48862%201.99351%206.67357%202.71256C5.85852%203.43161%205.30656%204.40195%205.10503%205.47L10.675%201.565C10.4205%201.52309%2010.163%201.50136%209.90503%201.5ZM11.905%201.93L5.33003%206.555L5.06003%206.745C5.11592%207.4665%205.33108%208.16663%205.69003%208.79499L13.565%203.155C13.1023%202.63199%2012.5329%202.21427%2011.895%201.93H11.905ZM14.145%203.97L6.25003%209.60999C6.70986%2010.1331%207.27572%2010.5524%207.91003%2010.84L14.75%205.82C14.6759%205.16869%2014.47%204.53927%2014.145%203.97ZM14.75%207.065L9.10503%2011.2C9.4681%2011.2629%209.83728%2011.283%2010.205%2011.26C11.33%2011.1916%2012.3968%2010.7368%2013.225%209.97234C14.0532%209.20793%2014.5919%208.1809%2014.75%207.065ZM6.75003%2014.5C7.59348%2014.4958%208.42238%2014.2798%209.16061%2013.8718C9.89883%2013.4638%2010.5227%2012.8769%2010.975%2012.165C10.7406%2012.2117%2010.5035%2012.2434%2010.265%2012.26H9.90003C8.40699%2012.257%206.97069%2011.6876%205.88117%2010.6668C4.79165%209.64592%204.13007%208.24969%204.03003%206.76C4.00121%206.25734%204.03819%205.75307%204.14003%205.26C3.22219%205.83357%202.51524%206.68948%202.12538%207.69915C1.73553%208.70883%201.68382%209.81774%201.97803%2010.8593C2.27224%2011.9009%202.89648%2012.8189%203.75697%2013.4754C4.61746%2014.1318%205.66774%2014.4914%206.75003%2014.5Z'%20fill='%236155F5'%20/%3e%3c/svg%3e",GV=e=>{const t="dori",n="dori_pdp_widget",r="dori_product_recommendation",l=e.includes("?")?"&":"?";return`${e}${l}utm_source=${t}&utm_medium=${n}&utm_campaign=${r}`},ZV=(e,t)=>{const n="customer_referral",r="widget",l="powered_by",s=e.includes("?")?"&":"?";return`${e}${s}utm_source=${n}&utm_medium=${r}&utm_campaign=${l}&utm_term=${t}`},QV=({product:e,isDesktop:t=!1})=>{const{sendMessage:r,setRepliedProduct:l,botData:s,chatState:u}=bo(),{name:f,price:g,originalPrice:v,discount:y,image:A,id:C,url:w}=e,[R,N]=Te.useState(!1),Y=e.description?.length&&e.description?.length>130,L=()=>{const U=`Do you have similar to ${f}`,J=`Do you have similar to ${C}`;r({message:U,apiMessage:J})},X=()=>{l({product:e,suggestions:["Does this product have a discount?","What features make this product special?","Does it come in other colors?"]})},V=()=>{N(!0)},re=async()=>{if(!w||!s)return;const U=GV(w);window.open(U,"_blank","noopener,noreferrer"),zW(e,s,u.threadId)};return ne.jsxs(ri,{dir:"rtl",gap:1,children:[ne.jsx(Ft,{bg:"white",borderRadius:"16px",border:"1px solid #F0EEFE",p:2,w:t?"full":"159.5px",children:ne.jsxs(ri,{gap:2,align:"stretch",children:[ne.jsx(Ft,{position:"relative",cursor:"pointer",onClick:re,_hover:{opacity:.9},transition:"opacity 0.2s",children:ne.jsx(mo,{src:A,alt:f,w:"full",h:"124px",objectFit:"contain",borderRadius:"md"})}),ne.jsx(gr,{fontWeight:600,fontSize:"12px",lineHeight:"24px",textAlign:"start",color:"#1A1A1A",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxW:"100%",title:f,fontFamily:"Estedad-FD, system-ui, sans-serif",cursor:"pointer",onClick:re,_hover:{color:"#6155F5"},transition:"color 0.2s",children:f}),ne.jsx(Ft,{borderRadius:"8px",padding:"4px 8px",w:"full",bg:"#F2F2F7",cursor:R?"default":"pointer",onClick:R?void 0:V,_hover:R?{}:{bg:"#E8E8E8"},transition:"background-color 0.2s",children:ne.jsxs(gr,{fontSize:"12px",fontWeight:400,color:"#333333",lineHeight:"24px",textAlign:"start",overflow:"hidden",title:e.description,fontFamily:"Estedad-FD, system-ui, sans-serif",children:[Y&&!R?e.description?.substring(0,130)+"... ":e.description,Y&&!R&&ne.jsx(gr,{as:"span",fontSize:"12px",lineHeight:"4px",textAlign:"right",color:"#6155F5",borderRadius:"4px",flex:1,cursor:"pointer",fontWeight:400,fontFamily:"Estedad-FD, system-ui, sans-serif",children:"More"})]})}),ne.jsx(Xa,{justify:"space-between",align:"end",children:ne.jsxs(ri,{gap:1,align:"start",children:[y&&ne.jsxs(Xa,{gap:1,children:[ne.jsx(gr,{fontSize:"xs",color:"gray.400",textDecoration:"line-through",fontFamily:"Estedad-FD, system-ui, sans-serif",children:v?.toLocaleString()}),ne.jsxs(nP,{bg:"rgba(255, 56, 60, 0.14)",color:"#FF383C",fontSize:"xs",borderRadius:"24px",children:[y,"٪"]})]}),ne.jsxs(gr,{fontSize:"12px",fontWeight:"700",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:[g.toLocaleString()," USD"]})]})})]})}),ne.jsxs(Xa,{gap:.5,w:t?"full":"159.5px",children:[ne.jsxs(ju,{variant:"outline",size:"xs",fontSize:"12px",lineHeight:"4px",textAlign:"right",color:"#6155F5",borderRadius:"4px",flex:1,fontWeight:400,onClick:L,bgColor:"#F0EEFE",fontFamily:"Estedad-FD, system-ui, sans-serif",children:[ne.jsx(mo,{src:UV,alt:"suggestion"}),"Similar Suggestion"]}),ne.jsx(eh,{variant:"outline",size:"xs",fontSize:"12px",lineHeight:"0px",textAlign:"right",color:"#6155F5",borderColor:"#F0EEFE",borderRadius:"4px",borderWidth:"2px",onClick:X,children:ne.jsx(mo,{src:HV,alt:"reply"})})]})]})},Tw=({products:e})=>ne.jsx(ri,{align:"stretch",gap:2,w:"full",children:ne.jsx(Ft,{px:1,w:"full",children:ne.jsx(fP,{dir:"ltr",columns:{base:1,md:2},gapX:{base:1,md:2},gapY:{base:2,md:4},w:"full",children:e.map(t=>ne.jsx(QV,{product:t,isDesktop:!0},t.id))})})}),KV=({suggestions:e})=>{const{sendMessage:t}=bo(),n=r=>{t({message:r})};return ne.jsx(ri,{maxW:{base:"230px",md:"70%"},gap:2,align:"stretch",alignSelf:"flex-start",children:e.slice(0,3).map((r,l)=>ne.jsx(ju,{bg:l%2===0?"white":"#F5F5F5",border:"1px solid #EDEDED",borderRadius:"24px",px:4,py:2,h:"auto",onClick:()=>n(r),_hover:{bg:"#F5F5F5",borderColor:"#6155F5"},_active:{bg:"#F0F0F0"},textAlign:"center",justifyContent:"center",w:"full",children:ne.jsx(gr,{fontSize:"12px",fontWeight:"400",color:"#1A1A1A",textAlign:"center",wordBreak:"break-word",whiteSpace:"normal",children:r})},l))})};function _w(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,l=n.indexOf(t);for(;l!==-1;)r++,l=n.indexOf(t,l+t.length);return r}function jV(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function JV(e,t,n){const l=qp((n||{}).ignore||[]),s=qV(t);let u=-1;for(;++u<s.length;)gw(e,"text",f);function f(v,y){let A=-1,C;for(;++A<y.length;){const w=y[A],R=C?C.children:void 0;if(l(w,R?R.indexOf(w):void 0,C))return;C=w}if(C)return g(v,y)}function g(v,y){const A=y[y.length-1],C=s[u][0],w=s[u][1];let R=0;const Y=A.children.indexOf(v);let L=!1,X=[];C.lastIndex=0;let V=C.exec(v.value);for(;V;){const re=V.index,U={index:V.index,input:V.input,stack:[...y,v]};let J=w(...V,U);if(typeof J=="string"&&(J=J.length>0?{type:"text",value:J}:void 0),J===!1?C.lastIndex=re+1:(R!==re&&X.push({type:"text",value:v.value.slice(R,re)}),Array.isArray(J)?X.push(...J):J&&X.push(J),R=re+V[0].length,L=!0),!C.global)break;V=C.exec(v.value)}return L?(R<v.value.length&&X.push({type:"text",value:v.value.slice(R)}),A.children.splice(Y,1,...X)):X=[v],Y+X.length}}function qV(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const l=n[r];t.push([$V(l[0]),eX(l[1])])}return t}function $V(e){return typeof e=="string"?new RegExp(jV(e),"g"):e}function eX(e){return typeof e=="function"?e:function(){return e}}const Bb="phrasing",Hb=["autolink","link","image","label"];function tX(){return{transforms:[sX],enter:{literalAutolink:rX,literalAutolinkEmail:Ub,literalAutolinkHttp:Ub,literalAutolinkWww:Ub},exit:{literalAutolink:oX,literalAutolinkEmail:lX,literalAutolinkHttp:iX,literalAutolinkWww:aX}}}function nX(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bb,notInConstruct:Hb},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bb,notInConstruct:Hb},{character:":",before:"[ps]",after:"\\/",inConstruct:Bb,notInConstruct:Hb}]}}function rX(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ub(e){this.config.enter.autolinkProtocol.call(this,e)}function iX(e){this.config.exit.autolinkProtocol.call(this,e)}function aX(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function lX(e){this.config.exit.autolinkEmail.call(this,e)}function oX(e){this.exit(e)}function sX(e){JV(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,uX],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),cX]],{ignore:["link","linkReference"]})}function uX(e,t,n,r,l){let s="";if(!Ow(l)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!fX(n)))return!1;const u=dX(n+r);if(!u[0])return!1;const f={type:"link",title:null,url:s+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function cX(e,t,n,r){return!Ow(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function fX(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function dX(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const l=_w(e,"(");let s=_w(e,")");for(;r!==-1&&l>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function Ow(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||oc(n)||Hp(n))&&(!t||n!==47)}Rw.peek=AX;function hX(){this.buffer()}function gX(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pX(){this.buffer()}function mX(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function vX(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bl(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bX(e){this.exit(e)}function yX(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bl(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xX(e){this.exit(e)}function AX(){return"["}function Rw(e,t,n,r){const l=n.createTracker(r);let s=l.move("[^");const u=n.enter("footnoteReference"),f=n.enter("reference");return s+=l.move(n.safe(n.associationId(e),{after:"]",before:s})),f(),u(),s+=l.move("]"),s}function SX(){return{enter:{gfmFootnoteCallString:hX,gfmFootnoteCall:gX,gfmFootnoteDefinitionLabelString:pX,gfmFootnoteDefinition:mX},exit:{gfmFootnoteCallString:vX,gfmFootnoteCall:bX,gfmFootnoteDefinitionLabelString:yX,gfmFootnoteDefinition:xX}}}function EX(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Rw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,l,s,u){const f=s.createTracker(u);let g=f.move("[^");const v=s.enter("footnoteDefinition"),y=s.enter("label");return g+=f.move(s.safe(s.associationId(r),{before:g,after:"]"})),y(),g+=f.move("]:"),r.children&&r.children.length>0&&(f.shift(4),g+=f.move((t?`
|
92
92
|
`:" ")+s.indentLines(s.containerFlow(r,f.current()),t?Fw:CX))),v(),g}}function CX(e,t,n){return t===0?e:Fw(e,t,n)}function Fw(e,t,n){return(n?"":" ")+e}const wX=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Iw.peek=RX;function kX(){return{canContainEols:["delete"],enter:{strikethrough:_X},exit:{strikethrough:OX}}}function TX(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:wX}],handlers:{delete:Iw}}}function _X(e){this.enter({type:"delete",children:[]},e)}function OX(e){this.exit(e)}function Iw(e,t,n,r){const l=n.createTracker(r),s=n.enter("strikethrough");let u=l.move("~~");return u+=n.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),s(),u}function RX(){return"~"}function FX(e){return e.length}function IX(e,t){const n=t||{},r=(n.align||[]).concat(),l=n.stringLength||FX,s=[],u=[],f=[],g=[];let v=0,y=-1;for(;++y<e.length;){const N=[],Y=[];let L=-1;for(e[y].length>v&&(v=e[y].length);++L<e[y].length;){const X=NX(e[y][L]);if(n.alignDelimiters!==!1){const V=l(X);Y[L]=V,(g[L]===void 0||V>g[L])&&(g[L]=V)}N.push(X)}u[y]=N,f[y]=Y}let A=-1;if(typeof r=="object"&&"length"in r)for(;++A<v;)s[A]=Nw(r[A]);else{const N=Nw(r);for(;++A<v;)s[A]=N}A=-1;const C=[],w=[];for(;++A<v;){const N=s[A];let Y="",L="";N===99?(Y=":",L=":"):N===108?Y=":":N===114&&(L=":");let X=n.alignDelimiters===!1?1:Math.max(1,g[A]-Y.length-L.length);const V=Y+"-".repeat(X)+L;n.alignDelimiters!==!1&&(X=Y.length+X+L.length,X>g[A]&&(g[A]=X),w[A]=X),C[A]=V}u.splice(1,0,C),f.splice(1,0,w),y=-1;const R=[];for(;++y<u.length;){const N=u[y],Y=f[y];A=-1;const L=[];for(;++A<v;){const X=N[A]||"";let V="",re="";if(n.alignDelimiters!==!1){const U=g[A]-(Y[A]||0),J=s[A];J===114?V=" ".repeat(U):J===99?U%2?(V=" ".repeat(U/2+.5),re=" ".repeat(U/2-.5)):(V=" ".repeat(U/2),re=V):re=" ".repeat(U)}n.delimiterStart!==!1&&!A&&L.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&X==="")&&(n.delimiterStart!==!1||A)&&L.push(" "),n.alignDelimiters!==!1&&L.push(V),L.push(X),n.alignDelimiters!==!1&&L.push(re),n.padding!==!1&&L.push(" "),(n.delimiterEnd!==!1||A!==v-1)&&L.push("|")}R.push(n.delimiterEnd===!1?L.join("").replace(/ +$/,""):L.join(""))}return R.join(`
|
93
93
|
`)}function NX(e){return e==null?"":String(e)}function Nw(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function PX(e,t,n,r){const l=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const u=n.indentLines(n.containerFlow(e,s.current()),zX);return l(),u}function zX(e,t,n){return">"+(n?"":" ")+e}function DX(e,t){return Pw(e,t.inConstruct,!0)&&!Pw(e,t.notInConstruct,!1)}function Pw(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function zw(e,t,n,r){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
|
94
94
|
`&&DX(n.stack,n.unsafe[l]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
@@ -103,7 +103,7 @@ Url: ${Wp(e)}`),!0}return!1}function BD(e,t){return t?.length?OE(e).some(n=>Fp(n
|
|
103
103
|
`))+1))}const u="#".repeat(l),f=n.enter("headingAtx"),g=n.enter("phrasing");s.move(u+" ");let v=n.containerPhrasing(e,{before:"# ",after:`
|
104
104
|
`,...s.current()});return/^[\t ]/.test(v)&&(v=Sh(v.charCodeAt(0))+v.slice(1)),v=v?u+" "+v:u,n.options.closeAtx&&(v+=" "+u),g(),f(),v}Mw.peek=ZX;function Mw(e){return e.value||""}function ZX(){return"<"}Ww.peek=QX;function Ww(e,t,n,r){const l=Gb(n),s=l==='"'?"Quote":"Apostrophe",u=n.enter("image");let f=n.enter("label");const g=n.createTracker(r);let v=g.move("![");return v+=g.move(n.safe(e.alt,{before:v,after:"]",...g.current()})),v+=g.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),v+=g.move("<"),v+=g.move(n.safe(e.url,{before:v,after:">",...g.current()})),v+=g.move(">")):(f=n.enter("destinationRaw"),v+=g.move(n.safe(e.url,{before:v,after:e.title?" ":")",...g.current()}))),f(),e.title&&(f=n.enter(`title${s}`),v+=g.move(" "+l),v+=g.move(n.safe(e.title,{before:v,after:l,...g.current()})),v+=g.move(l),f()),v+=g.move(")"),u(),v}function QX(){return"!"}Lw.peek=KX;function Lw(e,t,n,r){const l=e.referenceType,s=n.enter("imageReference");let u=n.enter("label");const f=n.createTracker(r);let g=f.move("![");const v=n.safe(e.alt,{before:g,after:"]",...f.current()});g+=f.move(v+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const A=n.safe(n.associationId(e),{before:g,after:"]",...f.current()});return u(),n.stack=y,s(),l==="full"||!v||v!==A?g+=f.move(A+"]"):l==="shortcut"?g=g.slice(0,-1):g+=f.move("]"),g}function KX(){return"!"}Yw.peek=jX;function Yw(e,t,n){let r=e.value||"",l="`",s=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(r);)l+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const u=n.unsafe[s],f=n.compilePattern(u);let g;if(u.atBreak)for(;g=f.exec(r);){let v=g.index;r.charCodeAt(v)===10&&r.charCodeAt(v-1)===13&&v--,r=r.slice(0,v)+" "+r.slice(g.index+1)}}return l+r+l}function jX(){return"`"}function Vw(e,t){const n=bb(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Xw.peek=JX;function Xw(e,t,n,r){const l=Gb(n),s=l==='"'?"Quote":"Apostrophe",u=n.createTracker(r);let f,g;if(Vw(e,n)){const y=n.stack;n.stack=[],f=n.enter("autolink");let A=u.move("<");return A+=u.move(n.containerPhrasing(e,{before:A,after:">",...u.current()})),A+=u.move(">"),f(),n.stack=y,A}f=n.enter("link"),g=n.enter("label");let v=u.move("[");return v+=u.move(n.containerPhrasing(e,{before:v,after:"](",...u.current()})),v+=u.move("]("),g(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(g=n.enter("destinationLiteral"),v+=u.move("<"),v+=u.move(n.safe(e.url,{before:v,after:">",...u.current()})),v+=u.move(">")):(g=n.enter("destinationRaw"),v+=u.move(n.safe(e.url,{before:v,after:e.title?" ":")",...u.current()}))),g(),e.title&&(g=n.enter(`title${s}`),v+=u.move(" "+l),v+=u.move(n.safe(e.title,{before:v,after:l,...u.current()})),v+=u.move(l),g()),v+=u.move(")"),f(),v}function JX(e,t,n){return Vw(e,n)?"<":"["}Bw.peek=qX;function Bw(e,t,n,r){const l=e.referenceType,s=n.enter("linkReference");let u=n.enter("label");const f=n.createTracker(r);let g=f.move("[");const v=n.containerPhrasing(e,{before:g,after:"]",...f.current()});g+=f.move(v+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const A=n.safe(n.associationId(e),{before:g,after:"]",...f.current()});return u(),n.stack=y,s(),l==="full"||!v||v!==A?g+=f.move(A+"]"):l==="shortcut"?g=g.slice(0,-1):g+=f.move("]"),g}function qX(){return"["}function Zb(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function $X(e){const t=Zb(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function eB(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Hw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function tB(e,t,n,r){const l=n.enter("list"),s=n.bulletCurrent;let u=e.ordered?eB(n):Zb(n);const f=e.ordered?u==="."?")":".":$X(n);let g=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&y&&(!y.children||!y.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(g=!0),Hw(n)===u&&y){let A=-1;for(;++A<e.children.length;){const C=e.children[A];if(C&&C.type==="listItem"&&C.children&&C.children[0]&&C.children[0].type==="thematicBreak"){g=!0;break}}}}g&&(u=f),n.bulletCurrent=u;const v=n.containerFlow(e,r);return n.bulletLastUsed=u,n.bulletCurrent=s,l(),v}function nB(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function rB(e,t,n,r){const l=nB(n);let s=n.bulletCurrent||Zb(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let u=s.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=n.createTracker(r);f.move(s+" ".repeat(u-s.length)),f.shift(u);const g=n.enter("listItem"),v=n.indentLines(n.containerFlow(e,f.current()),y);return g(),v;function y(A,C,w){return C?(w?"":" ".repeat(u))+A:(w?s:s+" ".repeat(u-s.length))+A}}function iB(e,t,n,r){const l=n.enter("paragraph"),s=n.enter("phrasing"),u=n.containerPhrasing(e,r);return s(),l(),u}const aB=qp(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lB(e,t,n,r){return(e.children.some(function(u){return aB(u)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function oB(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Uw.peek=sB;function Uw(e,t,n,r){const l=oB(n),s=n.enter("strong"),u=n.createTracker(r),f=u.move(l+l);let g=u.move(n.containerPhrasing(e,{after:l,before:f,...u.current()}));const v=g.charCodeAt(0),y=tm(r.before.charCodeAt(r.before.length-1),v,l);y.inside&&(g=Sh(v)+g.slice(1));const A=g.charCodeAt(g.length-1),C=tm(r.after.charCodeAt(0),A,l);C.inside&&(g=g.slice(0,-1)+Sh(A));const w=u.move(l+l);return s(),n.attentionEncodeSurroundingInfo={after:C.outside,before:y.outside},f+g+w}function sB(e,t,n){return n.options.strong||"*"}function uB(e,t,n,r){return n.safe(e.value,r)}function cB(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function fB(e,t,n){const r=(Hw(n)+(n.options.ruleSpaces?" ":"")).repeat(cB(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Gw={blockquote:PX,break:zw,code:YX,definition:XX,emphasis:Dw,hardBreak:zw,heading:GX,html:Mw,image:Ww,imageReference:Lw,inlineCode:Yw,link:Xw,linkReference:Bw,list:tB,listItem:rB,paragraph:iB,root:lB,strong:Uw,text:uB,thematicBreak:fB};function dB(){return{enter:{table:hB,tableData:Zw,tableHeader:Zw,tableRow:pB},exit:{codeText:mB,table:gB,tableData:Qb,tableHeader:Qb,tableRow:Qb}}}function hB(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function gB(e){this.exit(e),this.data.inTable=void 0}function pB(e){this.enter({type:"tableRow",children:[]},e)}function Qb(e){this.exit(e)}function Zw(e){this.enter({type:"tableCell",children:[]},e)}function mB(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,vB));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function vB(e,t){return t==="|"?t:e}function bB(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,l=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
105
105
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:C,table:u,tableCell:g,tableRow:f}};function u(w,R,N,Y){return v(y(w,N,Y),w.align)}function f(w,R,N,Y){const L=A(w,N,Y),X=v([L]);return X.slice(0,X.indexOf(`
|
106
|
-
`))}function g(w,R,N,Y){const L=N.enter("tableCell"),X=N.enter("phrasing"),V=N.containerPhrasing(w,{...Y,before:s,after:s});return X(),L(),V}function v(w,R){return IX(w,{align:R,alignDelimiters:r,padding:n,stringLength:l})}function y(w,R,N){const Y=w.children;let L=-1;const X=[],V=R.enter("table");for(;++L<Y.length;)X[L]=A(Y[L],R,N);return V(),X}function A(w,R,N){const Y=w.children;let L=-1;const X=[],V=R.enter("tableRow");for(;++L<Y.length;)X[L]=g(Y[L],w,R,N);return V(),X}function C(w,R,N){let Y=Gw.inlineCode(w,R,N);return N.stack.includes("tableCell")&&(Y=Y.replace(/\|/g,"\\$&")),Y}}function yB(){return{exit:{taskListCheckValueChecked:Qw,taskListCheckValueUnchecked:Qw,paragraph:AB}}}function xB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:SB}}}function Qw(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function AB(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const l=t.children;let s=-1,u;for(;++s<l.length;){const f=l[s];if(f.type==="paragraph"){u=f;break}}u===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function SB(e,t,n,r){const l=e.children[0],s=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=n.createTracker(r);s&&f.move(u);let g=Gw.listItem(e,t,n,{...r,...f.current()});return s&&(g=g.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,v)),g;function v(y){return y+u}}function EB(){return[tX(),SX(),kX(),dB(),yB()]}function CB(e){return{extensions:[nX(),EX(e),TX(),bB(e),xB()]}}const wB={tokenize:FB,partial:!0},Kw={tokenize:IB,partial:!0},jw={tokenize:NB,partial:!0},Jw={tokenize:PB,partial:!0},kB={tokenize:zB,partial:!0},qw={name:"wwwAutolink",tokenize:OB,previous:ek},$w={name:"protocolAutolink",tokenize:RB,previous:tk},qo={name:"emailAutolink",tokenize:_B,previous:nk},xo={};function TB(){return{text:xo}}let sc=48;for(;sc<123;)xo[sc]=qo,sc++,sc===58?sc=65:sc===91&&(sc=97);xo[43]=qo,xo[45]=qo,xo[46]=qo,xo[95]=qo,xo[72]=[qo,$w],xo[104]=[qo,$w],xo[87]=[qo,qw],xo[119]=[qo,qw];function _B(e,t,n){const r=this;let l,s;return u;function u(A){return!Kb(A)||!nk.call(r,r.previous)||jb(r.events)?n(A):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(A))}function f(A){return Kb(A)?(e.consume(A),f):A===64?(e.consume(A),g):n(A)}function g(A){return A===46?e.check(kB,y,v)(A):A===45||A===95||ai(A)?(s=!0,e.consume(A),g):y(A)}function v(A){return e.consume(A),l=!0,g}function y(A){return s&&l&&bi(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(A)):n(A)}}function OB(e,t,n){const r=this;return l;function l(u){return u!==87&&u!==119||!ek.call(r,r.previous)||jb(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wB,e.attempt(Kw,e.attempt(jw,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function RB(e,t,n){const r=this;let l="",s=!1;return u;function u(A){return(A===72||A===104)&&tk.call(r,r.previous)&&!jb(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(A),e.consume(A),f):n(A)}function f(A){if(bi(A)&&l.length<5)return l+=String.fromCodePoint(A),e.consume(A),f;if(A===58){const C=l.toLowerCase();if(C==="http"||C==="https")return e.consume(A),g}return n(A)}function g(A){return A===47?(e.consume(A),s?v:(s=!0,g)):n(A)}function v(A){return A===null||Bp(A)||hn(A)||oc(A)||Hp(A)?n(A):e.attempt(Kw,e.attempt(jw,y),n)(A)}function y(A){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(A)}}function FB(e,t,n){let r=0;return l;function l(u){return(u===87||u===119)&&r<3?(r++,e.consume(u),l):u===46&&r===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function IB(e,t,n){let r,l,s;return u;function u(v){return v===46||v===95?e.check(Jw,g,f)(v):v===null||hn(v)||oc(v)||v!==45&&Hp(v)?g(v):(s=!0,e.consume(v),u)}function f(v){return v===95?r=!0:(l=r,r=void 0),e.consume(v),u}function g(v){return l||r||!s?n(v):t(v)}}function NB(e,t){let n=0,r=0;return l;function l(u){return u===40?(n++,e.consume(u),l):u===41&&r<n?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(Jw,t,s)(u):u===null||hn(u)||oc(u)?t(u):(e.consume(u),l)}function s(u){return u===41&&r++,e.consume(u),l}}function PB(e,t,n){return r;function r(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),r):f===38?(e.consume(f),s):f===93?(e.consume(f),l):f===60||f===null||hn(f)||oc(f)?t(f):n(f)}function l(f){return f===null||f===40||f===91||hn(f)||oc(f)?t(f):r(f)}function s(f){return bi(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),r):bi(f)?(e.consume(f),u):n(f)}}function zB(e,t,n){return r;function r(s){return e.consume(s),l}function l(s){return ai(s)?n(s):t(s)}}function ek(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||hn(e)}function tk(e){return!bi(e)}function nk(e){return!(e===47||Kb(e))}function Kb(e){return e===43||e===45||e===46||e===95||ai(e)}function jb(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const DB={tokenize:HB,partial:!0};function MB(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VB,continuation:{tokenize:XB},exit:BB}},text:{91:{name:"gfmFootnoteCall",tokenize:YB},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:WB,resolveTo:LB}}}}function WB(e,t,n){const r=this;let l=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u;for(;l--;){const g=r.events[l][1];if(g.type==="labelImage"){u=g;break}if(g.type==="gfmFootnoteCall"||g.type==="labelLink"||g.type==="label"||g.type==="image"||g.type==="link")break}return f;function f(g){if(!u||!u._balanced)return n(g);const v=bl(r.sliceSerialize({start:u.end,end:r.now()}));return v.codePointAt(0)!==94||!s.includes(v.slice(1))?n(g):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),t(g))}}function LB(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...f),e}function YB(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,u;return f;function f(A){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(A),e.exit("gfmFootnoteCallLabelMarker"),g}function g(A){return A!==94?n(A):(e.enter("gfmFootnoteCallMarker"),e.consume(A),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",v)}function v(A){if(s>999||A===93&&!u||A===null||A===91||hn(A))return n(A);if(A===93){e.exit("chunkString");const C=e.exit("gfmFootnoteCallString");return l.includes(bl(r.sliceSerialize(C)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(A),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(A)}return hn(A)||(u=!0),s++,e.consume(A),A===92?y:v}function y(A){return A===91||A===92||A===93?(e.consume(A),s++,v):v(A)}}function VB(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,u=0,f;return g;function g(R){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(R),e.exit("gfmFootnoteDefinitionLabelMarker"),v}function v(R){return R===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(R),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):n(R)}function y(R){if(u>999||R===93&&!f||R===null||R===91||hn(R))return n(R);if(R===93){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return s=bl(r.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(R),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),C}return hn(R)||(f=!0),u++,e.consume(R),R===92?A:y}function A(R){return R===91||R===92||R===93?(e.consume(R),u++,y):y(R)}function C(R){return R===58?(e.enter("definitionMarker"),e.consume(R),e.exit("definitionMarker"),l.includes(s)||l.push(s),It(e,w,"gfmFootnoteDefinitionWhitespace")):n(R)}function w(R){return t(R)}}function XB(e,t,n){return e.check(mh,t,e.attempt(DB,t,n))}function BB(e){e.exit("gfmFootnoteDefinition")}function HB(e,t,n){const r=this;return It(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const u=r.events[r.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(s):n(s)}}function UB(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:l};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function l(u,f){let g=-1;for(;++g<u.length;)if(u[g][0]==="enter"&&u[g][1].type==="strikethroughSequenceTemporary"&&u[g][1]._close){let v=g;for(;v--;)if(u[v][0]==="exit"&&u[v][1].type==="strikethroughSequenceTemporary"&&u[v][1]._open&&u[g][1].end.offset-u[g][1].start.offset===u[v][1].end.offset-u[v][1].start.offset){u[g][1].type="strikethroughSequence",u[v][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[v][1].start),end:Object.assign({},u[g][1].end)},A={type:"strikethroughText",start:Object.assign({},u[v][1].end),end:Object.assign({},u[g][1].start)},C=[["enter",y,f],["enter",u[v][1],f],["exit",u[v][1],f],["enter",A,f]],w=f.parser.constructs.insideSpan.null;w&&sa(C,C.length,0,Up(w,u.slice(v+1,g),f)),sa(C,C.length,0,[["exit",A,f],["enter",u[g][1],f],["exit",u[g][1],f],["exit",y,f]]),sa(u,v-1,g-v+3,C),g=v+C.length-2;break}}for(g=-1;++g<u.length;)u[g][1].type==="strikethroughSequenceTemporary"&&(u[g][1].type="data");return u}function s(u,f,g){const v=this.previous,y=this.events;let A=0;return C;function C(R){return v===126&&y[y.length-1][1].type!=="characterEscape"?g(R):(u.enter("strikethroughSequenceTemporary"),w(R))}function w(R){const N=Rf(v);if(R===126)return A>1?g(R):(u.consume(R),A++,w);if(A<2&&!n)return g(R);const Y=u.exit("strikethroughSequenceTemporary"),L=Rf(R);return Y._open=!L||L===2&&!!N,Y._close=!N||N===2&&!!L,f(R)}}}class GB{constructor(){this.map=[]}add(t,n,r){ZB(this,t,n,r)}consume(t){if(this.map.sort(function(s,u){return s[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let l=r.pop();for(;l;){for(const s of l)t.push(s);l=r.pop()}this.map.length=0}}function ZB(e,t,n,r){let l=0;if(!(n===0&&r.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=n,e.map[l][2].push(...r);return}l+=1}e.map.push([t,n,r])}}function QB(e,t){let n=!1;const r=[];for(;t<e.length;){const l=e[t];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function KB(){return{flow:{null:{name:"table",tokenize:jB,resolveAll:JB}}}}function jB(e,t,n){const r=this;let l=0,s=0,u;return f;function f(H){let Ae=r.events.length-1;for(;Ae>-1;){const $=r.events[Ae][1].type;if($==="lineEnding"||$==="linePrefix")Ae--;else break}const ce=Ae>-1?r.events[Ae][1].type:null,_e=ce==="tableHead"||ce==="tableRow"?J:g;return _e===J&&r.parser.lazy[r.now().line]?n(H):_e(H)}function g(H){return e.enter("tableHead"),e.enter("tableRow"),v(H)}function v(H){return H===124||(u=!0,s+=1),y(H)}function y(H){return H===null?n(H):$e(H)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),w):n(H):Ct(H)?It(e,y,"whitespace")(H):(s+=1,u&&(u=!1,l+=1),H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),u=!0,y):(e.enter("data"),A(H)))}function A(H){return H===null||H===124||hn(H)?(e.exit("data"),y(H)):(e.consume(H),H===92?C:A)}function C(H){return H===92||H===124?(e.consume(H),A):A(H)}function w(H){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(H):(e.enter("tableDelimiterRow"),u=!1,Ct(H)?It(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):R(H))}function R(H){return H===45||H===58?Y(H):H===124?(u=!0,e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),N):U(H)}function N(H){return Ct(H)?It(e,Y,"whitespace")(H):Y(H)}function Y(H){return H===58?(s+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),L):H===45?(s+=1,L(H)):H===null||$e(H)?re(H):U(H)}function L(H){return H===45?(e.enter("tableDelimiterFiller"),X(H)):U(H)}function X(H){return H===45?(e.consume(H),X):H===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),V):(e.exit("tableDelimiterFiller"),V(H))}function V(H){return Ct(H)?It(e,re,"whitespace")(H):re(H)}function re(H){return H===124?R(H):H===null||$e(H)?!u||l!==s?U(H):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(H)):U(H)}function U(H){return n(H)}function J(H){return e.enter("tableRow"),de(H)}function de(H){return H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),de):H===null||$e(H)?(e.exit("tableRow"),t(H)):Ct(H)?It(e,de,"whitespace")(H):(e.enter("data"),ae(H))}function ae(H){return H===null||H===124||hn(H)?(e.exit("data"),de(H)):(e.consume(H),H===92?ie:ae)}function ie(H){return H===92||H===124?(e.consume(H),ae):ae(H)}}function JB(e,t){let n=-1,r=!0,l=0,s=[0,0,0,0],u=[0,0,0,0],f=!1,g=0,v,y,A;const C=new GB;for(;++n<e.length;){const w=e[n],R=w[1];w[0]==="enter"?R.type==="tableHead"?(f=!1,g!==0&&(rk(C,t,g,v,y),y=void 0,g=0),v={type:"table",start:Object.assign({},R.start),end:Object.assign({},R.end)},C.add(n,0,[["enter",v,t]])):R.type==="tableRow"||R.type==="tableDelimiterRow"?(r=!0,A=void 0,s=[0,0,0,0],u=[0,n+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},R.start),end:Object.assign({},R.end)},C.add(n,0,[["enter",y,t]])),l=R.type==="tableDelimiterRow"?2:y?3:1):l&&(R.type==="data"||R.type==="tableDelimiterMarker"||R.type==="tableDelimiterFiller")?(r=!1,u[2]===0&&(s[1]!==0&&(u[0]=u[1],A=nm(C,t,s,l,void 0,A),s=[0,0,0,0]),u[2]=n)):R.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(u[0]=u[1],A=nm(C,t,s,l,void 0,A)),s=u,u=[s[1],n,0,0])):R.type==="tableHead"?(f=!0,g=n):R.type==="tableRow"||R.type==="tableDelimiterRow"?(g=n,s[1]!==0?(u[0]=u[1],A=nm(C,t,s,l,n,A)):u[1]!==0&&(A=nm(C,t,u,l,n,A)),l=0):l&&(R.type==="data"||R.type==="tableDelimiterMarker"||R.type==="tableDelimiterFiller")&&(u[3]=n)}for(g!==0&&rk(C,t,g,v,y),C.consume(t.events),n=-1;++n<t.events.length;){const w=t.events[n];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=QB(t.events,n))}return e}function nm(e,t,n,r,l,s){const u=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(s.end=Object.assign({},If(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const g=If(t.events,n[1]);if(s={type:u,start:Object.assign({},g),end:Object.assign({},g)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const v=If(t.events,n[2]),y=If(t.events,n[3]),A={type:f,start:Object.assign({},v),end:Object.assign({},y)};if(e.add(n[2],0,[["enter",A,t]]),r!==2){const C=t.events[n[2]],w=t.events[n[3]];if(C[1].end=Object.assign({},w[1].end),C[1].type="chunkText",C[1].contentType="text",n[3]>n[2]+1){const R=n[2]+1,N=n[3]-n[2]-1;e.add(R,N,[])}}e.add(n[3]+1,0,[["exit",A,t]])}return l!==void 0&&(s.end=Object.assign({},If(t.events,l)),e.add(l,0,[["exit",s,t]]),s=void 0),s}function rk(e,t,n,r,l){const s=[],u=If(t.events,n);l&&(l.end=Object.assign({},u),s.push(["exit",l,t])),r.end=Object.assign({},u),s.push(["exit",r,t]),e.add(n+1,0,s)}function If(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const qB={name:"tasklistCheck",tokenize:eH};function $B(){return{text:{91:qB}}}function eH(e,t,n){const r=this;return l;function l(g){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(g):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(g),e.exit("taskListCheckMarker"),s)}function s(g){return hn(g)?(e.enter("taskListCheckValueUnchecked"),e.consume(g),e.exit("taskListCheckValueUnchecked"),u):g===88||g===120?(e.enter("taskListCheckValueChecked"),e.consume(g),e.exit("taskListCheckValueChecked"),u):n(g)}function u(g){return g===93?(e.enter("taskListCheckMarker"),e.consume(g),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(g)}function f(g){return $e(g)?t(g):Ct(g)?e.check({tokenize:tH},t,n)(g):n(g)}}function tH(e,t,n){return It(e,r,"whitespace");function r(l){return l===null?n(l):t(l)}}function nH(e){return zC([TB(),MB(),UB(e),KB(),$B()])}const rH={};function iH(e){const t=this,n=e||rH,r=t.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),u=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(nH(n)),s.push(EB()),u.push(CB(n))}const aH=({message:e})=>e.type==="welcome"?ne.jsx(kw,{message:e.content}):e.type==="loading"?e.content&&ne.jsx(kw,{message:e.content,type:"loading"}):e.type==="user"?ne.jsx(Ft,{maxW:"220px",alignSelf:"flex-end",mb:2,children:(e.content.length>0||e.repliedProduct)&&ne.jsxs(ri,{bg:"#EBF8FF",borderRadius:"24px",px:4,py:2,gap:2,alignItems:"start",w:"full",children:[e.repliedProduct&&ne.jsxs(Xa,{bg:"white",borderRadius:"12px",p:2,gap:2,w:"full",children:[ne.jsx(mo,{src:e.repliedProduct.image,alt:"product",w:"40px",h:"40px"}),ne.jsx(gr,{fontSize:"12px",fontWeight:"400",color:"#1A1A1A",children:e.repliedProduct.name})]}),ne.jsx(ww,{components:{p:({children:t})=>ne.jsx(gr,{wordBreak:"break-word",fontSize:"14px",fontWeight:"500",color:"#4299E1",children:t})},children:e.content})]})}):e.type==="products"?ne.jsx(Ft,{maxW:"100%",alignSelf:"flex-start",mb:4,w:"full",children:ne.jsx(Tw,{products:e.products||[]})}):e.type==="suggestions"?ne.jsx(KV,{suggestions:e.suggestions||[]}):ne.jsxs(ri,{align:"stretch",gap:2,children:[ne.jsx(Ft,{w:{base:"230px",md:"70%"},alignSelf:"flex-start",children:ne.jsx(Xa,{align:"start",justifyContent:"flex-start",gap:2,children:ne.jsx(Ft,{bg:"#EDEDED",w:"full",borderRadius:"24px",px:4,py:3,children:ne.jsx(ww,{remarkPlugins:[iH],components:{p:({children:t})=>ne.jsx(gr,{fontSize:"14px",fontWeight:"400",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:t}),li:({children:t})=>ne.jsx(gr,{fontSize:"14px",fontWeight:"400",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:t}),a:({children:t,href:n})=>ne.jsx(kS,{href:n,target:"_blank",display:"block",wordBreak:"break-word",overflowWrap:"anywhere",children:ne.jsx(gr,{fontSize:"14px",fontWeight:"400",color:"#6155F5",fontFamily:"Estedad-FD, system-ui, sans-serif",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal",children:t})})},children:e.content})})})}),e.products&&e.products.length>0&&ne.jsx(Tw,{products:e.products}),e.actions&&ne.jsx(ri,{gap:2,align:"stretch",alignSelf:"flex-start",children:e.actions.map((t,n)=>ne.jsx(ju,{bg:n===1?"#F2F2F7":"white",border:"1px solid #EDEDED",borderRadius:"24px",px:3,py:2,h:"auto",onClick:t.onClick,_hover:{bg:n===1?"#E0E0E0":"#F5F5F5"},children:ne.jsx(gr,{fontSize:"12px",fontWeight:"400",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:t.text})},n))})]}),lH="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%23040404'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.5858%2011.0002C15.3669%2010.2191%2016.6332%2010.2191%2017.4143%2011.0002L20.3738%2013.9597C20.7643%2014.3502%2020.7643%2014.9834%2020.3738%2015.3739C19.9833%2015.7644%2019.3501%2015.7644%2018.9596%2015.3739L17%2013.4144V21.0002C17%2021.5524%2016.5523%2022.0002%2016%2022.0002C15.4478%2022.0002%2015%2021.5524%2015%2021.0002V13.4144L13.0405%2015.3739C12.65%2015.7644%2012.0168%2015.7645%2011.6263%2015.3739C11.2358%2014.9834%2011.2358%2014.3502%2011.6263%2013.9597L14.5858%2011.0002Z'%20fill='white'%20/%3e%3c/svg%3e",oH="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.26915%205.7309C5.98798%205.44973%205.53209%205.44973%205.25092%205.7309C4.96975%206.01207%204.96975%206.46796%205.25092%206.74913L10.5018%2012L5.25092%2017.2509C4.96975%2017.5321%204.96975%2017.9879%205.25092%2018.2691C5.53209%2018.5503%205.98798%2018.5503%206.26915%2018.2691L11.52%2013.0183L16.7709%2018.2691C17.0521%2018.5503%2017.5079%2018.5503%2017.7891%2018.2691C18.0703%2017.9879%2018.0703%2017.5321%2017.7891%2017.2509L12.5383%2012L17.7891%206.74913C18.0703%206.46796%2018.0703%206.01207%2017.7891%205.7309C17.5079%205.44973%2017.0521%205.44973%2016.7709%205.7309L11.52%2010.9817L6.26915%205.7309Z'%20fill='black'%20/%3e%3c/svg%3e",sH=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:n,onSend:r,isMobileView:l})=>{const{chatState:{repliedProduct:s},setRepliedProduct:u}=bo(),[f,g]=Te.useState(t);Te.useEffect(()=>{g(C(t))},[t]);const v=w=>{const R=C(w);g(R),n?.(R)},y=w=>{(f.trim()||w)&&(r?.({message:w??f.trim()},s?.product),u?.(null),g(""))},A=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),y())},C=w=>w.trimStart();return ne.jsx(ri,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:ne.jsx(Ft,{bg:"#EDEDED",borderRadius:"24px",position:"relative",p:2,w:"full",h:s?l?"300px":"190px":"90px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:ne.jsxs(Ft,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:[s&&ne.jsxs(ri,{opacity:1,p:"8px",gap:"8px",borderRadius:"12px",borderWidth:"1px",bgColor:"white",children:[ne.jsxs(Xa,{justify:"space-between",align:"center",w:"full",children:[ne.jsx(mo,{src:s?.product?.image,alt:"product",w:"40px",h:"40px"}),ne.jsx(gr,{fontSize:"12px",fontWeight:400,color:"#1A1A1A",children:s?.product?.name}),ne.jsx(eh,{bg:"transparent","aria-label":"Remove product",onClick:()=>u?.(null),children:ne.jsx(mo,{src:oH,alt:"arrow-left",w:"24px",h:"24px"})})]}),s?.suggestions&&s.suggestions.length>0&&ne.jsxs(ne.Fragment,{children:[ne.jsx(Ft,{display:{base:"none",md:"block"},w:"full",children:ne.jsx(Xa,{w:"full",justify:"flex-start",align:"center",gap:2,children:s.suggestions.map(w=>ne.jsx(ju,{variant:"outline",bg:"transparent",color:"#1A1A1A",fontSize:"12px",borderColor:"#EDEDED",borderRadius:"24px",fontWeight:400,onClick:()=>y(w),h:"32px",px:3,minW:"unset",flex:1,overflow:"hidden",children:ne.jsx(Ft,{as:"span",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",w:"100%",children:w})},w))})}),ne.jsx(Ft,{display:{base:"block",md:"none"},w:"full",children:ne.jsx(ri,{w:"full",align:"stretch",gap:"8px",children:s.suggestions.map(w=>ne.jsx(ju,{variant:"outline",bg:"transparent",w:"full",color:"#1A1A1A",fontSize:"12px",borderColor:"#EDEDED",borderRadius:"24px",fontWeight:400,onClick:()=>y(w),children:w},w))})})]})]}),ne.jsx(TS,{value:f,onChange:w=>v(w.target.value),onKeyPress:A,placeholder:e,fontSize:"16px",color:"black",fontWeight:300,resize:"none",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"black"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}),ne.jsx(eh,{position:"absolute",bottom:"12px",right:"12px",size:"xs",borderRadius:"full",bg:"#040404",color:"white","aria-label":"Send",onClick:()=>y(),_hover:{bg:"gray.800"},disabled:!f.trim(),transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"#CCCCCC",cursor:"not-allowed"},transform:"scale(1)",zIndex:2,children:ne.jsx("img",{src:lH,alt:"Send"})})]})})})},uH="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%23040404'%20/%3e%3cpath%20d='M22%2010H10V22H22V10Z'%20fill='white'%20/%3e%3c/svg%3e",cH=({placeholder:e="Write a prompt or paste a contract address",onStop:t})=>{const{stopCurrentRequest:n}=bo(),r=()=>{n?.(),t?.()};return ne.jsx(ri,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:ne.jsx(Ft,{bg:"#EDEDED",borderRadius:"32px",position:"relative",p:3,w:"full",h:"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:ne.jsx(Ft,{position:"absolute",top:0,left:0,right:0,bottom:0,p:3,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:ne.jsxs(Xa,{justify:"space-between",align:"center",h:"full",children:[ne.jsx(gr,{color:"#999999",fontSize:"16px",flex:1,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e}),ne.jsx(eh,{size:"xs",borderRadius:"full",bg:"#040404",color:"white","aria-label":"Stop",onClick:r,_hover:{bg:"gray.800"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,children:ne.jsx("img",{src:uH,alt:"Stop"})})]})})})})},fH="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='black'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.0002%2017.4139C10.2191%2016.6329%2010.2191%2015.3665%2011.0002%2014.5855L13.9597%2011.6259C14.3502%2011.2354%2014.9834%2011.2354%2015.3739%2011.6259C15.7644%2012.0165%2015.7644%2012.6496%2015.3739%2013.0401L13.4144%2014.9997H21.0002C21.5524%2014.9997%2022.0002%2015.4474%2022.0002%2015.9997C22.0002%2016.552%2021.5524%2016.9997%2021.0002%2016.9997H13.4144L15.3739%2018.9592C15.7644%2019.3498%2015.7645%2019.9829%2015.3739%2020.3735C14.9834%2020.764%2014.3502%2020.764%2013.9597%2020.3735L11.0002%2017.4139Z'%20fill='white'%20/%3e%3c/svg%3e",dH="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_497_8063)'%3e%3cpath%20d='M18.2468%2014.5235L16.5735%2013.9236C15.656%2013.5949%2014.6772%2013.4727%2013.7071%2013.5656C12.7369%2013.6585%2011.7991%2013.9643%2010.9607%2014.4612L9.43171%2015.3679C9.40135%2015.3857%209.36627%2015.3937%209.3312%2015.3909C9.29614%2015.3881%209.26279%2015.3746%209.23566%2015.3522C9.20853%2015.3298%209.18892%2015.2996%209.1795%2015.2657C9.17007%2015.2318%209.17128%2015.1959%209.18296%2015.1627L9.78291%2013.4893C10.1116%2012.5718%2010.2338%2011.5931%2010.1409%2010.6229C10.0479%209.65274%209.74213%208.71502%209.24525%207.87657L8.33853%206.34758C8.32077%206.31722%208.31275%206.28213%208.31557%206.24707C8.31839%206.21201%208.33191%206.17866%208.3543%206.15152C8.37668%206.12439%208.40686%206.10479%208.44075%206.09537C8.47464%206.08594%208.51061%206.08715%208.54379%206.09883L10.2171%206.69878C11.1346%207.02745%2012.1134%207.14967%2013.0835%207.05674C14.0537%206.9638%2014.9914%206.65799%2015.8299%206.16111L17.3589%205.2544C17.3893%205.23664%2017.4243%205.22862%2017.4594%205.23144C17.4945%205.23426%2017.5278%205.24778%2017.5549%205.27016C17.5821%205.29255%2017.6017%205.32273%2017.6111%205.35662C17.6205%205.39051%2017.6193%205.42648%2017.6076%205.45966L17.0077%207.13298C16.679%208.05051%2016.5568%209.02924%2016.6497%209.99941C16.7427%2010.9696%2017.0485%2011.9073%2017.5454%2012.7458L18.4521%2014.2748C18.4703%2014.3051%2018.4787%2014.3403%2018.4761%2014.3756C18.4734%2014.4109%2018.4599%2014.4445%2018.4374%2014.4717C18.4149%2014.499%2018.3845%2014.5187%2018.3503%2014.5279C18.3162%2014.5372%2018.28%2014.5357%2018.2468%2014.5235ZM16.5553%2022.8884L15.7079%2022.5849C15.2433%2022.4186%2014.7477%2022.3568%2014.2564%2022.4039C13.7652%2022.451%2013.2903%2022.6057%2012.8657%2022.8572L12.0913%2023.316C12.0759%2023.3251%2012.0581%2023.3292%2012.0403%2023.3278C12.0225%2023.3264%2012.0056%2023.3195%2011.9918%2023.3081C11.978%2023.2968%2011.9681%2023.2815%2011.9633%2023.2643C11.9586%2023.2471%2011.9592%2023.2288%2011.9652%2023.212L12.2687%2022.3646C12.4349%2021.8999%2012.4968%2021.4043%2012.4497%2020.9131C12.4026%2020.4218%2012.2479%2019.9469%2011.9964%2019.5223L11.5376%2018.7479C11.5285%2018.7325%2011.5244%2018.7147%2011.5258%2018.697C11.5272%2018.6792%2011.5341%2018.6622%2011.5454%2018.6485C11.5568%2018.6347%2011.5721%2018.6247%2011.5893%2018.62C11.6065%2018.6152%2011.6248%2018.6159%2011.6416%2018.6218L12.489%2018.9253C12.9537%2019.0916%2013.4493%2019.1534%2013.9405%2019.1063C14.4318%2019.0593%2014.9067%2018.9045%2015.3313%2018.653L16.1057%2018.1942C16.1211%2018.1851%2016.1388%2018.1811%2016.1566%2018.1825C16.1744%2018.1839%2016.1914%2018.1907%2016.2051%2018.2021C16.2189%2018.2134%2016.2289%2018.2288%2016.2336%2018.246C16.2384%2018.2632%2016.2377%2018.2814%2016.2318%2018.2983L15.9283%2019.1456C15.762%2019.6103%2015.7002%2020.1059%2015.7473%2020.5972C15.7943%2021.0884%2015.9491%2021.5633%2016.2006%2021.9879L16.6594%2022.7623C16.6684%2022.7777%2016.6725%2022.7955%2016.6711%2022.8133C16.6697%2022.8311%2016.6629%2022.848%2016.6515%2022.8618C16.6402%2022.8756%2016.6248%2022.8855%2016.6076%2022.8903C16.5904%2022.895%2016.5722%2022.8944%2016.5553%2022.8884ZM5.46406%2013.7363L4.61667%2013.4328C4.15202%2013.2666%203.65642%2013.2047%203.16515%2013.2518C2.67388%2013.2989%202.19903%2013.4536%201.77439%2013.7051L1.00002%2014.1639C0.984637%2014.173%200.966838%2014.1771%200.949042%2014.1757C0.931245%2014.1743%200.914312%2014.1674%200.900542%2014.1561C0.886772%2014.1447%200.876831%2014.1294%200.872069%2014.1122C0.867305%2014.095%200.86795%2014.0767%200.873916%2014.0599L1.17739%2013.2125C1.34367%2012.7478%201.40549%2012.2522%201.35843%2011.761C1.31137%2011.2697%201.15659%2010.7948%200.90512%2010.3702L0.44629%209.59584C0.437238%209.58045%200.43314%209.56265%200.43455%209.54486C0.435961%209.52706%200.442813%209.51013%200.454176%209.49636C0.465538%209.48259%200.48086%209.47265%200.498065%209.46789C0.51527%209.46312%200.533525%209.46377%200.55035%209.46973L1.39774%209.77321C1.8624%209.93949%202.358%2010.0013%202.84926%209.95424C3.34053%209.90718%203.81538%209.75241%204.24002%209.50094L5.01439%209.04211C5.02978%209.03306%205.04757%209.02896%205.06537%209.03037C5.08317%209.03178%205.1001%209.03863%205.11387%209.04999C5.12764%209.06135%205.13758%209.07668%205.14234%209.09388C5.14711%209.11109%205.14646%209.12934%205.1405%209.14617L4.83702%209.99356C4.67074%2010.4582%204.60893%2010.9538%204.65599%2011.4451C4.70305%2011.9363%204.85782%2012.4112%205.10929%2012.8358L5.56812%2013.6102C5.60947%2013.6803%205.54025%2013.7642%205.46406%2013.7363Z'%20fill='url(%23paint0_linear_497_8063)'%20/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_497_8063'%20x1='19.4467'%20y1='10.3723'%20x2='4.37004'%20y2='16.438'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF7E90'%20/%3e%3cstop%20offset='0.463542'%20stop-color='%23A939FF'%20/%3e%3cstop%20offset='1'%20stop-color='%230020FF'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_497_8063'%3e%3crect%20width='24'%20height='24'%20fill='white'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ik=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:n,onSend:r})=>{const[l,s]=Te.useState(t),[u,f]=Te.useState(!1),g=Te.useRef(null),v=()=>{f(!0),setTimeout(()=>{if(g.current){g.current.focus();const N=g.current.value.length;g.current.setSelectionRange(N,N)}},100)};Te.useEffect(()=>{s(R(t))},[t]);const y=N=>{const Y=R(N);s(Y),n?.(Y)},A=()=>{l.trim()&&(r?.({message:l.trim()}),s(""))},C=N=>{N.key==="Enter"&&!N.shiftKey&&(N.preventDefault(),A())},w=N=>` ${N}`,R=N=>N.trimStart();return ne.jsx(ri,{gap:2,align:"stretch",children:ne.jsxs(Ft,{bg:"white",borderRadius:"24px",position:"relative",p:2,w:"full",h:u?"80px":"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",cursor:"pointer",onClick:v,children:[ne.jsx(Ft,{position:"absolute",top:"8px",right:"8px",zIndex:2,children:ne.jsx(mo,{src:dH,alt:"AI",w:"24px",h:"24px"})}),ne.jsx(Ft,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:u?0:1,transform:u?"translateY(-20px) scale(0.95)":"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:u?"none":"auto",children:ne.jsx(Xa,{justify:"space-between",align:"center",h:"full",children:ne.jsx(gr,{color:"#999999",fontSize:"16px",flex:1,paddingStart:"32px",textAlign:"right",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e})})}),ne.jsx(eh,{position:"absolute",bottom:"8px",left:"12px",size:"xs",borderRadius:"full",bg:"#040404",color:"white","aria-label":"Send",onClick:N=>{N.stopPropagation(),A()},_hover:{bg:"gray.800"},disabled:!l.trim(),transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"#CCCCCC",cursor:"not-allowed"},transform:"scale(1)",zIndex:2,children:ne.jsx("img",{src:fH,alt:"Send"})}),ne.jsx(Ft,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:u?1:0,transform:u?"translateY(0) scale(1)":"translateY(20px) scale(0.95)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:u?"auto":"none",children:ne.jsx(TS,{ref:g,value:w(l),onChange:N=>y(N.target.value),onKeyPress:C,placeholder:w(e),fontSize:"16px",color:"black",fontWeight:300,textAlign:"right",resize:"none",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"#999999"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",rows:2})})]})})},hH=({state:e="starting",placeholder:t="Write a prompt or paste a contract address",value:n="",onChange:r,onSend:l,onStop:s})=>{const[u,f]=Te.useState(!1);return Te.useEffect(()=>{const g=()=>{f(window.innerWidth<=768)};return g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]),console.log(e),e==="starting"?ne.jsx(sH,{placeholder:t,value:n,onChange:r,onSend:l,isMobileView:u}):e==="generating"?ne.jsx(cH,{placeholder:t,onStop:s,isMobileView:u}):e==="minimized"?ne.jsx(ik,{placeholder:t,value:n,onChange:r,onSend:l}):ne.jsx(ik,{placeholder:t,value:n,onChange:r,onSend:l})},gH="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%202.66683C5.42267%202.66683%203.33333%204.75617%203.33333%207.3335H2C2%204.01979%204.68629%201.3335%208%201.3335C11.3137%201.3335%2014%204.01979%2014%207.3335C14%208.75016%2013.509%2010.0522%2012.6879%2011.0786L14.8047%2013.1954L13.8619%2014.1382L11.7451%2012.0214C10.7187%2012.8425%209.41667%2013.3335%208%2013.3335V12.0002C10.5773%2012.0002%2012.6667%209.91083%2012.6667%207.3335C12.6667%204.75617%2010.5773%202.66683%208%202.66683Z'%20fill='%23595959'%20/%3e%3cpath%20d='M5.85714%206.6665L2%2011.2498H4.57143L4.14286%2013.9998L8%209.4165H5.42857L5.85714%206.6665Z'%20fill='%23595959'%20/%3e%3c/svg%3e",pH=()=>{const e=bo(),{botData:t}=bo(),n=Te.useRef(null),r=u=>{e.sendMessage({message:u})},l=e.messages.length>0,s=()=>{n.current&&setTimeout(()=>{n.current?.scrollTo({top:n.current.scrollHeight,behavior:"smooth"})},100)};return Te.useEffect(()=>{l&&s()},[e.messages,l]),ne.jsxs(ri,{flex:1,justify:"space-between",align:"stretch",gap:4,h:"full",minH:"200px",maxH:"300px",overflow:"hidden",children:[!l&&t?.suggestedReply&&ne.jsx(Ft,{w:"full",flex:1,overflowY:"auto",overflowX:"hidden",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:ne.jsx(Xa,{wrap:"wrap",children:t.suggestedReply.map((u,f)=>ne.jsxs(ju,{variant:"outline",h:"auto",borderRadius:"24px",border:"1px solid #EDEDED",bg:"white",color:"#1A1A1A",fontSize:"14px",fontWeight:400,padding:"8px 12px 8px 12px",_hover:{bg:"#F8F8F8",borderColor:"#D0D0D0"},_active:{bg:"#F0F0F0",transform:"scale(0.98)"},onClick:()=>r(u),justifyContent:"start",children:[ne.jsx(mo,{src:gH,alt:"AI Search",w:4,h:4}),ne.jsx(Ft,{as:"span",flex:"1",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",fontFamily:"Estedad-FD, system-ui, sans-serif",children:u})]},f))})}),l&&ne.jsx(Ft,{ref:n,flex:1,overflowY:"auto",overflowX:"hidden",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:ne.jsx(ri,{gap:2,align:"stretch",pb:2,children:e.messages.map(u=>ne.jsx(aH,{message:u},u.id))})}),ne.jsx(Ft,{flexShrink:0,bg:"transparent",borderRadius:"12px",transition:"all 0.2s ease",children:ne.jsx(hH,{state:e.inputState,placeholder:e.inputState==="generating"?"Processing...":"What's your question?",onSend:e.isInputDisabled?void 0:e.sendMessage,onStop:e.stopCurrentRequest})})]})},mH=()=>{const{botData:e}=bo();return ne.jsx(Xa,{gap:0,justifyContent:"center",align:"center",w:"full",children:ne.jsx(kS,{href:ZV("https://dori.tech/",e?.sharing_id||""),target:"_blank",children:ne.jsxs(Xa,{alignItems:"center",justifyContent:"center",alignContent:"center",children:[ne.jsxs(gr,{fontSize:"12px",fontWeight:"400",color:"#666666",textAlign:"center",fontFamily:"Estedad-FD, system-ui, sans-serif",lineHeight:"1.4",children:["Powered by"," "]}),ne.jsx(mo,{src:"https://dori.fra1.cdn.digitaloceanspaces.com/dori.png",alt:"Bot Image",h:"16px"})]})})})},vH=()=>{const{botData:e}=bo();if(!e)return null;const t=e?.white_label?.is_white_labeled??!1;return ne.jsx(Ft,{style:{background:"linear-gradient(137deg, rgba(255, 255, 255, 1) 0%, rgba(252, 253, 255, 1) 25%, rgba(248, 250, 255, 1) 50%, rgba(245, 248, 255, 1) 76%, rgba(250, 252, 255, 1) 100%)",zIndex:9999,overflow:"hidden",willChange:"transform",pointerEvents:"auto",transform:"translateY(0)",transition:"all 0.5s ease",visibility:"visible",opacity:1},children:ne.jsxs(ri,{p:4,h:"full",justify:"flex-start",align:"stretch",children:[ne.jsx(pH,{})," ",!t&&ne.jsx(Ft,{transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:ne.jsx(mH,{variant:"default"})})]})})};function bH({sharingId:e,productId:t}){const{initializeBot:n,resetBot:r}=bo(),l=Te.useRef(void 0),s=Te.useRef(void 0);Te.useEffect(()=>{(l.current&&e&&l.current!==e||s.current!==t)&&r?.(),l.current=e,s.current=t,e&&n(e,t)},[e,t,n,r])}console.log("isDevelopment",!1);function yH(){const[e,t]=Te.useState(""),[n,r]=Te.useState(null);return bH({sharingId:e,productId:n}),Te.useEffect(()=>{window.chatbotData?t(window.chatbotData.sharingID):ac("useEffect sharing ID",()=>{const l=()=>{const v=document.querySelector("script#dori-react-widget");return{sharingId:v?.getAttribute("data-sharing-id")||"",productId:v?.getAttribute("data-product-id")||null}},{sharingId:s,productId:u}=l();t(s),r(u);const f=document.querySelector("script#dori-react-widget");if(!f)return;const g=new MutationObserver(v=>{for(const y of v)if(y.type==="attributes"&&(y.attributeName==="data-sharing-id"||y.attributeName==="data-product-id")){const{sharingId:A,productId:C}=l();t(A),r(C),console.log("script data changed:",{sharingId:A,productId:C})}});return g.observe(f,{attributes:!0,attributeFilter:["data-sharing-id","data-product-id"]}),()=>{g.disconnect()}})()},[]),ne.jsx(Ft,{fontFamily:"Estedad-FD, system-ui, Avenir, Helvetica, Arial, sans-serif",lineHeight:"1.5",fontWeight:"400",colorScheme:"light",children:ne.jsx(vH,{})})}function xH(){return ne.jsx(yH,{})}var rm={};const AH=Jy(c_),SH=Jy(zT);var uc={},Eh={};/**
|
106
|
+
`))}function g(w,R,N,Y){const L=N.enter("tableCell"),X=N.enter("phrasing"),V=N.containerPhrasing(w,{...Y,before:s,after:s});return X(),L(),V}function v(w,R){return IX(w,{align:R,alignDelimiters:r,padding:n,stringLength:l})}function y(w,R,N){const Y=w.children;let L=-1;const X=[],V=R.enter("table");for(;++L<Y.length;)X[L]=A(Y[L],R,N);return V(),X}function A(w,R,N){const Y=w.children;let L=-1;const X=[],V=R.enter("tableRow");for(;++L<Y.length;)X[L]=g(Y[L],w,R,N);return V(),X}function C(w,R,N){let Y=Gw.inlineCode(w,R,N);return N.stack.includes("tableCell")&&(Y=Y.replace(/\|/g,"\\$&")),Y}}function yB(){return{exit:{taskListCheckValueChecked:Qw,taskListCheckValueUnchecked:Qw,paragraph:AB}}}function xB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:SB}}}function Qw(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function AB(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const l=t.children;let s=-1,u;for(;++s<l.length;){const f=l[s];if(f.type==="paragraph"){u=f;break}}u===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function SB(e,t,n,r){const l=e.children[0],s=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=n.createTracker(r);s&&f.move(u);let g=Gw.listItem(e,t,n,{...r,...f.current()});return s&&(g=g.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,v)),g;function v(y){return y+u}}function EB(){return[tX(),SX(),kX(),dB(),yB()]}function CB(e){return{extensions:[nX(),EX(e),TX(),bB(e),xB()]}}const wB={tokenize:FB,partial:!0},Kw={tokenize:IB,partial:!0},jw={tokenize:NB,partial:!0},Jw={tokenize:PB,partial:!0},kB={tokenize:zB,partial:!0},qw={name:"wwwAutolink",tokenize:OB,previous:ek},$w={name:"protocolAutolink",tokenize:RB,previous:tk},qo={name:"emailAutolink",tokenize:_B,previous:nk},xo={};function TB(){return{text:xo}}let sc=48;for(;sc<123;)xo[sc]=qo,sc++,sc===58?sc=65:sc===91&&(sc=97);xo[43]=qo,xo[45]=qo,xo[46]=qo,xo[95]=qo,xo[72]=[qo,$w],xo[104]=[qo,$w],xo[87]=[qo,qw],xo[119]=[qo,qw];function _B(e,t,n){const r=this;let l,s;return u;function u(A){return!Kb(A)||!nk.call(r,r.previous)||jb(r.events)?n(A):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(A))}function f(A){return Kb(A)?(e.consume(A),f):A===64?(e.consume(A),g):n(A)}function g(A){return A===46?e.check(kB,y,v)(A):A===45||A===95||ai(A)?(s=!0,e.consume(A),g):y(A)}function v(A){return e.consume(A),l=!0,g}function y(A){return s&&l&&bi(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(A)):n(A)}}function OB(e,t,n){const r=this;return l;function l(u){return u!==87&&u!==119||!ek.call(r,r.previous)||jb(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(wB,e.attempt(Kw,e.attempt(jw,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function RB(e,t,n){const r=this;let l="",s=!1;return u;function u(A){return(A===72||A===104)&&tk.call(r,r.previous)&&!jb(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(A),e.consume(A),f):n(A)}function f(A){if(bi(A)&&l.length<5)return l+=String.fromCodePoint(A),e.consume(A),f;if(A===58){const C=l.toLowerCase();if(C==="http"||C==="https")return e.consume(A),g}return n(A)}function g(A){return A===47?(e.consume(A),s?v:(s=!0,g)):n(A)}function v(A){return A===null||Bp(A)||hn(A)||oc(A)||Hp(A)?n(A):e.attempt(Kw,e.attempt(jw,y),n)(A)}function y(A){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(A)}}function FB(e,t,n){let r=0;return l;function l(u){return(u===87||u===119)&&r<3?(r++,e.consume(u),l):u===46&&r===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function IB(e,t,n){let r,l,s;return u;function u(v){return v===46||v===95?e.check(Jw,g,f)(v):v===null||hn(v)||oc(v)||v!==45&&Hp(v)?g(v):(s=!0,e.consume(v),u)}function f(v){return v===95?r=!0:(l=r,r=void 0),e.consume(v),u}function g(v){return l||r||!s?n(v):t(v)}}function NB(e,t){let n=0,r=0;return l;function l(u){return u===40?(n++,e.consume(u),l):u===41&&r<n?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(Jw,t,s)(u):u===null||hn(u)||oc(u)?t(u):(e.consume(u),l)}function s(u){return u===41&&r++,e.consume(u),l}}function PB(e,t,n){return r;function r(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),r):f===38?(e.consume(f),s):f===93?(e.consume(f),l):f===60||f===null||hn(f)||oc(f)?t(f):n(f)}function l(f){return f===null||f===40||f===91||hn(f)||oc(f)?t(f):r(f)}function s(f){return bi(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),r):bi(f)?(e.consume(f),u):n(f)}}function zB(e,t,n){return r;function r(s){return e.consume(s),l}function l(s){return ai(s)?n(s):t(s)}}function ek(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||hn(e)}function tk(e){return!bi(e)}function nk(e){return!(e===47||Kb(e))}function Kb(e){return e===43||e===45||e===46||e===95||ai(e)}function jb(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const DB={tokenize:HB,partial:!0};function MB(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VB,continuation:{tokenize:XB},exit:BB}},text:{91:{name:"gfmFootnoteCall",tokenize:YB},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:WB,resolveTo:LB}}}}function WB(e,t,n){const r=this;let l=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u;for(;l--;){const g=r.events[l][1];if(g.type==="labelImage"){u=g;break}if(g.type==="gfmFootnoteCall"||g.type==="labelLink"||g.type==="label"||g.type==="image"||g.type==="link")break}return f;function f(g){if(!u||!u._balanced)return n(g);const v=bl(r.sliceSerialize({start:u.end,end:r.now()}));return v.codePointAt(0)!==94||!s.includes(v.slice(1))?n(g):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),t(g))}}function LB(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...f),e}function YB(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,u;return f;function f(A){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(A),e.exit("gfmFootnoteCallLabelMarker"),g}function g(A){return A!==94?n(A):(e.enter("gfmFootnoteCallMarker"),e.consume(A),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",v)}function v(A){if(s>999||A===93&&!u||A===null||A===91||hn(A))return n(A);if(A===93){e.exit("chunkString");const C=e.exit("gfmFootnoteCallString");return l.includes(bl(r.sliceSerialize(C)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(A),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(A)}return hn(A)||(u=!0),s++,e.consume(A),A===92?y:v}function y(A){return A===91||A===92||A===93?(e.consume(A),s++,v):v(A)}}function VB(e,t,n){const r=this,l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,u=0,f;return g;function g(R){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(R),e.exit("gfmFootnoteDefinitionLabelMarker"),v}function v(R){return R===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(R),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):n(R)}function y(R){if(u>999||R===93&&!f||R===null||R===91||hn(R))return n(R);if(R===93){e.exit("chunkString");const N=e.exit("gfmFootnoteDefinitionLabelString");return s=bl(r.sliceSerialize(N)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(R),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),C}return hn(R)||(f=!0),u++,e.consume(R),R===92?A:y}function A(R){return R===91||R===92||R===93?(e.consume(R),u++,y):y(R)}function C(R){return R===58?(e.enter("definitionMarker"),e.consume(R),e.exit("definitionMarker"),l.includes(s)||l.push(s),It(e,w,"gfmFootnoteDefinitionWhitespace")):n(R)}function w(R){return t(R)}}function XB(e,t,n){return e.check(mh,t,e.attempt(DB,t,n))}function BB(e){e.exit("gfmFootnoteDefinition")}function HB(e,t,n){const r=this;return It(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const u=r.events[r.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(s):n(s)}}function UB(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:l};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function l(u,f){let g=-1;for(;++g<u.length;)if(u[g][0]==="enter"&&u[g][1].type==="strikethroughSequenceTemporary"&&u[g][1]._close){let v=g;for(;v--;)if(u[v][0]==="exit"&&u[v][1].type==="strikethroughSequenceTemporary"&&u[v][1]._open&&u[g][1].end.offset-u[g][1].start.offset===u[v][1].end.offset-u[v][1].start.offset){u[g][1].type="strikethroughSequence",u[v][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[v][1].start),end:Object.assign({},u[g][1].end)},A={type:"strikethroughText",start:Object.assign({},u[v][1].end),end:Object.assign({},u[g][1].start)},C=[["enter",y,f],["enter",u[v][1],f],["exit",u[v][1],f],["enter",A,f]],w=f.parser.constructs.insideSpan.null;w&&sa(C,C.length,0,Up(w,u.slice(v+1,g),f)),sa(C,C.length,0,[["exit",A,f],["enter",u[g][1],f],["exit",u[g][1],f],["exit",y,f]]),sa(u,v-1,g-v+3,C),g=v+C.length-2;break}}for(g=-1;++g<u.length;)u[g][1].type==="strikethroughSequenceTemporary"&&(u[g][1].type="data");return u}function s(u,f,g){const v=this.previous,y=this.events;let A=0;return C;function C(R){return v===126&&y[y.length-1][1].type!=="characterEscape"?g(R):(u.enter("strikethroughSequenceTemporary"),w(R))}function w(R){const N=Rf(v);if(R===126)return A>1?g(R):(u.consume(R),A++,w);if(A<2&&!n)return g(R);const Y=u.exit("strikethroughSequenceTemporary"),L=Rf(R);return Y._open=!L||L===2&&!!N,Y._close=!N||N===2&&!!L,f(R)}}}class GB{constructor(){this.map=[]}add(t,n,r){ZB(this,t,n,r)}consume(t){if(this.map.sort(function(s,u){return s[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let l=r.pop();for(;l;){for(const s of l)t.push(s);l=r.pop()}this.map.length=0}}function ZB(e,t,n,r){let l=0;if(!(n===0&&r.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=n,e.map[l][2].push(...r);return}l+=1}e.map.push([t,n,r])}}function QB(e,t){let n=!1;const r=[];for(;t<e.length;){const l=e[t];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function KB(){return{flow:{null:{name:"table",tokenize:jB,resolveAll:JB}}}}function jB(e,t,n){const r=this;let l=0,s=0,u;return f;function f(H){let Ae=r.events.length-1;for(;Ae>-1;){const $=r.events[Ae][1].type;if($==="lineEnding"||$==="linePrefix")Ae--;else break}const ce=Ae>-1?r.events[Ae][1].type:null,_e=ce==="tableHead"||ce==="tableRow"?J:g;return _e===J&&r.parser.lazy[r.now().line]?n(H):_e(H)}function g(H){return e.enter("tableHead"),e.enter("tableRow"),v(H)}function v(H){return H===124||(u=!0,s+=1),y(H)}function y(H){return H===null?n(H):$e(H)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),w):n(H):Ct(H)?It(e,y,"whitespace")(H):(s+=1,u&&(u=!1,l+=1),H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),u=!0,y):(e.enter("data"),A(H)))}function A(H){return H===null||H===124||hn(H)?(e.exit("data"),y(H)):(e.consume(H),H===92?C:A)}function C(H){return H===92||H===124?(e.consume(H),A):A(H)}function w(H){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(H):(e.enter("tableDelimiterRow"),u=!1,Ct(H)?It(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):R(H))}function R(H){return H===45||H===58?Y(H):H===124?(u=!0,e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),N):U(H)}function N(H){return Ct(H)?It(e,Y,"whitespace")(H):Y(H)}function Y(H){return H===58?(s+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),L):H===45?(s+=1,L(H)):H===null||$e(H)?re(H):U(H)}function L(H){return H===45?(e.enter("tableDelimiterFiller"),X(H)):U(H)}function X(H){return H===45?(e.consume(H),X):H===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(H),e.exit("tableDelimiterMarker"),V):(e.exit("tableDelimiterFiller"),V(H))}function V(H){return Ct(H)?It(e,re,"whitespace")(H):re(H)}function re(H){return H===124?R(H):H===null||$e(H)?!u||l!==s?U(H):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(H)):U(H)}function U(H){return n(H)}function J(H){return e.enter("tableRow"),de(H)}function de(H){return H===124?(e.enter("tableCellDivider"),e.consume(H),e.exit("tableCellDivider"),de):H===null||$e(H)?(e.exit("tableRow"),t(H)):Ct(H)?It(e,de,"whitespace")(H):(e.enter("data"),ae(H))}function ae(H){return H===null||H===124||hn(H)?(e.exit("data"),de(H)):(e.consume(H),H===92?ie:ae)}function ie(H){return H===92||H===124?(e.consume(H),ae):ae(H)}}function JB(e,t){let n=-1,r=!0,l=0,s=[0,0,0,0],u=[0,0,0,0],f=!1,g=0,v,y,A;const C=new GB;for(;++n<e.length;){const w=e[n],R=w[1];w[0]==="enter"?R.type==="tableHead"?(f=!1,g!==0&&(rk(C,t,g,v,y),y=void 0,g=0),v={type:"table",start:Object.assign({},R.start),end:Object.assign({},R.end)},C.add(n,0,[["enter",v,t]])):R.type==="tableRow"||R.type==="tableDelimiterRow"?(r=!0,A=void 0,s=[0,0,0,0],u=[0,n+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},R.start),end:Object.assign({},R.end)},C.add(n,0,[["enter",y,t]])),l=R.type==="tableDelimiterRow"?2:y?3:1):l&&(R.type==="data"||R.type==="tableDelimiterMarker"||R.type==="tableDelimiterFiller")?(r=!1,u[2]===0&&(s[1]!==0&&(u[0]=u[1],A=nm(C,t,s,l,void 0,A),s=[0,0,0,0]),u[2]=n)):R.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(u[0]=u[1],A=nm(C,t,s,l,void 0,A)),s=u,u=[s[1],n,0,0])):R.type==="tableHead"?(f=!0,g=n):R.type==="tableRow"||R.type==="tableDelimiterRow"?(g=n,s[1]!==0?(u[0]=u[1],A=nm(C,t,s,l,n,A)):u[1]!==0&&(A=nm(C,t,u,l,n,A)),l=0):l&&(R.type==="data"||R.type==="tableDelimiterMarker"||R.type==="tableDelimiterFiller")&&(u[3]=n)}for(g!==0&&rk(C,t,g,v,y),C.consume(t.events),n=-1;++n<t.events.length;){const w=t.events[n];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=QB(t.events,n))}return e}function nm(e,t,n,r,l,s){const u=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(s.end=Object.assign({},If(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const g=If(t.events,n[1]);if(s={type:u,start:Object.assign({},g),end:Object.assign({},g)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const v=If(t.events,n[2]),y=If(t.events,n[3]),A={type:f,start:Object.assign({},v),end:Object.assign({},y)};if(e.add(n[2],0,[["enter",A,t]]),r!==2){const C=t.events[n[2]],w=t.events[n[3]];if(C[1].end=Object.assign({},w[1].end),C[1].type="chunkText",C[1].contentType="text",n[3]>n[2]+1){const R=n[2]+1,N=n[3]-n[2]-1;e.add(R,N,[])}}e.add(n[3]+1,0,[["exit",A,t]])}return l!==void 0&&(s.end=Object.assign({},If(t.events,l)),e.add(l,0,[["exit",s,t]]),s=void 0),s}function rk(e,t,n,r,l){const s=[],u=If(t.events,n);l&&(l.end=Object.assign({},u),s.push(["exit",l,t])),r.end=Object.assign({},u),s.push(["exit",r,t]),e.add(n+1,0,s)}function If(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const qB={name:"tasklistCheck",tokenize:eH};function $B(){return{text:{91:qB}}}function eH(e,t,n){const r=this;return l;function l(g){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(g):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(g),e.exit("taskListCheckMarker"),s)}function s(g){return hn(g)?(e.enter("taskListCheckValueUnchecked"),e.consume(g),e.exit("taskListCheckValueUnchecked"),u):g===88||g===120?(e.enter("taskListCheckValueChecked"),e.consume(g),e.exit("taskListCheckValueChecked"),u):n(g)}function u(g){return g===93?(e.enter("taskListCheckMarker"),e.consume(g),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(g)}function f(g){return $e(g)?t(g):Ct(g)?e.check({tokenize:tH},t,n)(g):n(g)}}function tH(e,t,n){return It(e,r,"whitespace");function r(l){return l===null?n(l):t(l)}}function nH(e){return zC([TB(),MB(),UB(e),KB(),$B()])}const rH={};function iH(e){const t=this,n=e||rH,r=t.data(),l=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),u=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);l.push(nH(n)),s.push(EB()),u.push(CB(n))}const aH=({message:e})=>e.type==="welcome"?ne.jsx(kw,{message:e.content}):e.type==="loading"?e.content&&ne.jsx(kw,{message:e.content,type:"loading"}):e.type==="user"?ne.jsx(Ft,{maxW:"220px",alignSelf:"flex-end",mb:2,children:(e.content.length>0||e.repliedProduct)&&ne.jsxs(ri,{bg:"#EBF8FF",borderRadius:"24px",px:4,py:2,gap:2,alignItems:"start",w:"full",children:[e.repliedProduct&&ne.jsxs(Xa,{bg:"white",borderRadius:"12px",p:2,gap:2,w:"full",children:[ne.jsx(mo,{src:e.repliedProduct.image,alt:"product",w:"40px",h:"40px"}),ne.jsx(gr,{fontSize:"12px",fontWeight:"400",color:"#1A1A1A",children:e.repliedProduct.name})]}),ne.jsx(ww,{components:{p:({children:t})=>ne.jsx(gr,{wordBreak:"break-word",fontSize:"14px",fontWeight:"500",color:"#4299E1",children:t})},children:e.content})]})}):e.type==="products"?ne.jsx(Ft,{maxW:"100%",alignSelf:"flex-start",mb:4,w:"full",children:ne.jsx(Tw,{products:e.products||[]})}):e.type==="suggestions"?ne.jsx(KV,{suggestions:e.suggestions||[]}):ne.jsxs(ri,{align:"stretch",gap:2,children:[ne.jsx(Ft,{w:{base:"230px",md:"70%"},alignSelf:"flex-start",children:ne.jsx(Xa,{align:"start",justifyContent:"flex-start",gap:2,children:ne.jsx(Ft,{bg:"#EDEDED",w:"full",borderRadius:"24px",px:4,py:3,children:ne.jsx(ww,{remarkPlugins:[iH],components:{p:({children:t})=>ne.jsx(gr,{fontSize:"14px",fontWeight:"400",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:t}),li:({children:t})=>ne.jsx(gr,{fontSize:"14px",fontWeight:"400",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:t}),a:({children:t,href:n})=>ne.jsx(kS,{href:n,target:"_blank",display:"block",wordBreak:"break-word",overflowWrap:"anywhere",children:ne.jsx(gr,{fontSize:"14px",fontWeight:"400",color:"#6155F5",fontFamily:"Estedad-FD, system-ui, sans-serif",wordBreak:"break-word",overflowWrap:"anywhere",whiteSpace:"normal",children:t})})},children:e.content})})})}),e.products&&e.products.length>0&&ne.jsx(Tw,{products:e.products}),e.actions&&ne.jsx(ri,{gap:2,align:"stretch",alignSelf:"flex-start",children:e.actions.map((t,n)=>ne.jsx(ju,{bg:n===1?"#F2F2F7":"white",border:"1px solid #EDEDED",borderRadius:"24px",px:3,py:2,h:"auto",onClick:t.onClick,_hover:{bg:n===1?"#E0E0E0":"#F5F5F5"},children:ne.jsx(gr,{fontSize:"12px",fontWeight:"400",color:"black",fontFamily:"Estedad-FD, system-ui, sans-serif",children:t.text})},n))})]}),lH="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%23040404'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M14.5858%2011.0002C15.3669%2010.2191%2016.6332%2010.2191%2017.4143%2011.0002L20.3738%2013.9597C20.7643%2014.3502%2020.7643%2014.9834%2020.3738%2015.3739C19.9833%2015.7644%2019.3501%2015.7644%2018.9596%2015.3739L17%2013.4144V21.0002C17%2021.5524%2016.5523%2022.0002%2016%2022.0002C15.4478%2022.0002%2015%2021.5524%2015%2021.0002V13.4144L13.0405%2015.3739C12.65%2015.7644%2012.0168%2015.7645%2011.6263%2015.3739C11.2358%2014.9834%2011.2358%2014.3502%2011.6263%2013.9597L14.5858%2011.0002Z'%20fill='white'%20/%3e%3c/svg%3e",oH="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6.26915%205.7309C5.98798%205.44973%205.53209%205.44973%205.25092%205.7309C4.96975%206.01207%204.96975%206.46796%205.25092%206.74913L10.5018%2012L5.25092%2017.2509C4.96975%2017.5321%204.96975%2017.9879%205.25092%2018.2691C5.53209%2018.5503%205.98798%2018.5503%206.26915%2018.2691L11.52%2013.0183L16.7709%2018.2691C17.0521%2018.5503%2017.5079%2018.5503%2017.7891%2018.2691C18.0703%2017.9879%2018.0703%2017.5321%2017.7891%2017.2509L12.5383%2012L17.7891%206.74913C18.0703%206.46796%2018.0703%206.01207%2017.7891%205.7309C17.5079%205.44973%2017.0521%205.44973%2016.7709%205.7309L11.52%2010.9817L6.26915%205.7309Z'%20fill='black'%20/%3e%3c/svg%3e",sH=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:n,onSend:r,isMobileView:l})=>{const{chatState:{repliedProduct:s},setRepliedProduct:u}=bo(),[f,g]=Te.useState(t);Te.useEffect(()=>{g(C(t))},[t]);const v=w=>{const R=C(w);g(R),n?.(R)},y=w=>{(f.trim()||w)&&(r?.({message:w??f.trim()},s?.product),u?.(null),g(""))},A=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),y())},C=w=>w.trimStart();return ne.jsx(ri,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:ne.jsx(Ft,{bg:"#EDEDED",borderRadius:"24px",position:"relative",p:2,w:"full",h:s?l?"300px":"190px":"90px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:ne.jsxs(Ft,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:[s&&ne.jsxs(ri,{opacity:1,p:"8px",gap:"8px",borderRadius:"12px",borderWidth:"1px",bgColor:"white",children:[ne.jsxs(Xa,{justify:"space-between",align:"center",w:"full",children:[ne.jsx(mo,{src:s?.product?.image,alt:"product",w:"40px",h:"40px"}),ne.jsx(gr,{fontSize:"12px",fontWeight:400,color:"#1A1A1A",children:s?.product?.name}),ne.jsx(eh,{bg:"transparent","aria-label":"Remove product",onClick:()=>u?.(null),children:ne.jsx(mo,{src:oH,alt:"arrow-left",w:"24px",h:"24px"})})]}),s?.suggestions&&s.suggestions.length>0&&ne.jsxs(ne.Fragment,{children:[ne.jsx(Ft,{display:{base:"none",md:"block"},w:"full",children:ne.jsx(Xa,{w:"full",justify:"flex-start",align:"center",gap:2,children:s.suggestions.map(w=>ne.jsx(ju,{variant:"outline",bg:"transparent",color:"#1A1A1A",fontSize:"12px",borderColor:"#EDEDED",borderRadius:"24px",fontWeight:400,onClick:()=>y(w),h:"32px",px:3,minW:"unset",flex:1,overflow:"hidden",children:ne.jsx(Ft,{as:"span",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",w:"100%",children:w})},w))})}),ne.jsx(Ft,{display:{base:"block",md:"none"},w:"full",children:ne.jsx(ri,{w:"full",align:"stretch",gap:"8px",children:s.suggestions.map(w=>ne.jsx(ju,{variant:"outline",bg:"transparent",w:"full",color:"#1A1A1A",fontSize:"12px",borderColor:"#EDEDED",borderRadius:"24px",fontWeight:400,onClick:()=>y(w),children:w},w))})})]})]}),ne.jsx(TS,{value:f,onChange:w=>v(w.target.value),onKeyPress:A,placeholder:e,fontSize:"16px",color:"black",fontWeight:300,resize:"none",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"black"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)"}),ne.jsx(eh,{position:"absolute",bottom:"12px",right:"12px",size:"xs",borderRadius:"full",bg:"#040404",color:"white","aria-label":"Send",onClick:()=>y(),_hover:{bg:"gray.800"},disabled:!f.trim(),transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"#CCCCCC",cursor:"not-allowed"},transform:"scale(1)",zIndex:2,children:ne.jsx("img",{src:lH,alt:"Send"})})]})})})},uH="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%23040404'%20/%3e%3cpath%20d='M22%2010H10V22H22V10Z'%20fill='white'%20/%3e%3c/svg%3e",cH=({placeholder:e="Write a prompt or paste a contract address",onStop:t})=>{const{stopCurrentRequest:n}=bo(),r=()=>{n?.(),t?.()};return ne.jsx(ri,{gap:2,align:"stretch",bg:"transparent",position:"relative",children:ne.jsx(Ft,{bg:"#EDEDED",borderRadius:"32px",position:"relative",p:3,w:"full",h:"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",transform:"scale(1)",opacity:1,children:ne.jsx(Ft,{position:"absolute",top:0,left:0,right:0,bottom:0,p:3,opacity:1,transform:"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:"auto",children:ne.jsxs(Xa,{justify:"space-between",align:"center",h:"full",children:[ne.jsx(gr,{color:"#999999",fontSize:"16px",flex:1,transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e}),ne.jsx(eh,{size:"xs",borderRadius:"full",bg:"#040404",color:"white","aria-label":"Stop",onClick:r,_hover:{bg:"gray.800"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:"scale(1)",zIndex:2,children:ne.jsx("img",{src:uH,alt:"Stop"})})]})})})})},fH="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='black'%20/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.0002%2017.4139C10.2191%2016.6329%2010.2191%2015.3665%2011.0002%2014.5855L13.9597%2011.6259C14.3502%2011.2354%2014.9834%2011.2354%2015.3739%2011.6259C15.7644%2012.0165%2015.7644%2012.6496%2015.3739%2013.0401L13.4144%2014.9997H21.0002C21.5524%2014.9997%2022.0002%2015.4474%2022.0002%2015.9997C22.0002%2016.552%2021.5524%2016.9997%2021.0002%2016.9997H13.4144L15.3739%2018.9592C15.7644%2019.3498%2015.7645%2019.9829%2015.3739%2020.3735C14.9834%2020.764%2014.3502%2020.764%2013.9597%2020.3735L11.0002%2017.4139Z'%20fill='white'%20/%3e%3c/svg%3e",dH="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_497_8063)'%3e%3cpath%20d='M18.2468%2014.5235L16.5735%2013.9236C15.656%2013.5949%2014.6772%2013.4727%2013.7071%2013.5656C12.7369%2013.6585%2011.7991%2013.9643%2010.9607%2014.4612L9.43171%2015.3679C9.40135%2015.3857%209.36627%2015.3937%209.3312%2015.3909C9.29614%2015.3881%209.26279%2015.3746%209.23566%2015.3522C9.20853%2015.3298%209.18892%2015.2996%209.1795%2015.2657C9.17007%2015.2318%209.17128%2015.1959%209.18296%2015.1627L9.78291%2013.4893C10.1116%2012.5718%2010.2338%2011.5931%2010.1409%2010.6229C10.0479%209.65274%209.74213%208.71502%209.24525%207.87657L8.33853%206.34758C8.32077%206.31722%208.31275%206.28213%208.31557%206.24707C8.31839%206.21201%208.33191%206.17866%208.3543%206.15152C8.37668%206.12439%208.40686%206.10479%208.44075%206.09537C8.47464%206.08594%208.51061%206.08715%208.54379%206.09883L10.2171%206.69878C11.1346%207.02745%2012.1134%207.14967%2013.0835%207.05674C14.0537%206.9638%2014.9914%206.65799%2015.8299%206.16111L17.3589%205.2544C17.3893%205.23664%2017.4243%205.22862%2017.4594%205.23144C17.4945%205.23426%2017.5278%205.24778%2017.5549%205.27016C17.5821%205.29255%2017.6017%205.32273%2017.6111%205.35662C17.6205%205.39051%2017.6193%205.42648%2017.6076%205.45966L17.0077%207.13298C16.679%208.05051%2016.5568%209.02924%2016.6497%209.99941C16.7427%2010.9696%2017.0485%2011.9073%2017.5454%2012.7458L18.4521%2014.2748C18.4703%2014.3051%2018.4787%2014.3403%2018.4761%2014.3756C18.4734%2014.4109%2018.4599%2014.4445%2018.4374%2014.4717C18.4149%2014.499%2018.3845%2014.5187%2018.3503%2014.5279C18.3162%2014.5372%2018.28%2014.5357%2018.2468%2014.5235ZM16.5553%2022.8884L15.7079%2022.5849C15.2433%2022.4186%2014.7477%2022.3568%2014.2564%2022.4039C13.7652%2022.451%2013.2903%2022.6057%2012.8657%2022.8572L12.0913%2023.316C12.0759%2023.3251%2012.0581%2023.3292%2012.0403%2023.3278C12.0225%2023.3264%2012.0056%2023.3195%2011.9918%2023.3081C11.978%2023.2968%2011.9681%2023.2815%2011.9633%2023.2643C11.9586%2023.2471%2011.9592%2023.2288%2011.9652%2023.212L12.2687%2022.3646C12.4349%2021.8999%2012.4968%2021.4043%2012.4497%2020.9131C12.4026%2020.4218%2012.2479%2019.9469%2011.9964%2019.5223L11.5376%2018.7479C11.5285%2018.7325%2011.5244%2018.7147%2011.5258%2018.697C11.5272%2018.6792%2011.5341%2018.6622%2011.5454%2018.6485C11.5568%2018.6347%2011.5721%2018.6247%2011.5893%2018.62C11.6065%2018.6152%2011.6248%2018.6159%2011.6416%2018.6218L12.489%2018.9253C12.9537%2019.0916%2013.4493%2019.1534%2013.9405%2019.1063C14.4318%2019.0593%2014.9067%2018.9045%2015.3313%2018.653L16.1057%2018.1942C16.1211%2018.1851%2016.1388%2018.1811%2016.1566%2018.1825C16.1744%2018.1839%2016.1914%2018.1907%2016.2051%2018.2021C16.2189%2018.2134%2016.2289%2018.2288%2016.2336%2018.246C16.2384%2018.2632%2016.2377%2018.2814%2016.2318%2018.2983L15.9283%2019.1456C15.762%2019.6103%2015.7002%2020.1059%2015.7473%2020.5972C15.7943%2021.0884%2015.9491%2021.5633%2016.2006%2021.9879L16.6594%2022.7623C16.6684%2022.7777%2016.6725%2022.7955%2016.6711%2022.8133C16.6697%2022.8311%2016.6629%2022.848%2016.6515%2022.8618C16.6402%2022.8756%2016.6248%2022.8855%2016.6076%2022.8903C16.5904%2022.895%2016.5722%2022.8944%2016.5553%2022.8884ZM5.46406%2013.7363L4.61667%2013.4328C4.15202%2013.2666%203.65642%2013.2047%203.16515%2013.2518C2.67388%2013.2989%202.19903%2013.4536%201.77439%2013.7051L1.00002%2014.1639C0.984637%2014.173%200.966838%2014.1771%200.949042%2014.1757C0.931245%2014.1743%200.914312%2014.1674%200.900542%2014.1561C0.886772%2014.1447%200.876831%2014.1294%200.872069%2014.1122C0.867305%2014.095%200.86795%2014.0767%200.873916%2014.0599L1.17739%2013.2125C1.34367%2012.7478%201.40549%2012.2522%201.35843%2011.761C1.31137%2011.2697%201.15659%2010.7948%200.90512%2010.3702L0.44629%209.59584C0.437238%209.58045%200.43314%209.56265%200.43455%209.54486C0.435961%209.52706%200.442813%209.51013%200.454176%209.49636C0.465538%209.48259%200.48086%209.47265%200.498065%209.46789C0.51527%209.46312%200.533525%209.46377%200.55035%209.46973L1.39774%209.77321C1.8624%209.93949%202.358%2010.0013%202.84926%209.95424C3.34053%209.90718%203.81538%209.75241%204.24002%209.50094L5.01439%209.04211C5.02978%209.03306%205.04757%209.02896%205.06537%209.03037C5.08317%209.03178%205.1001%209.03863%205.11387%209.04999C5.12764%209.06135%205.13758%209.07668%205.14234%209.09388C5.14711%209.11109%205.14646%209.12934%205.1405%209.14617L4.83702%209.99356C4.67074%2010.4582%204.60893%2010.9538%204.65599%2011.4451C4.70305%2011.9363%204.85782%2012.4112%205.10929%2012.8358L5.56812%2013.6102C5.60947%2013.6803%205.54025%2013.7642%205.46406%2013.7363Z'%20fill='url(%23paint0_linear_497_8063)'%20/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_497_8063'%20x1='19.4467'%20y1='10.3723'%20x2='4.37004'%20y2='16.438'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF7E90'%20/%3e%3cstop%20offset='0.463542'%20stop-color='%23A939FF'%20/%3e%3cstop%20offset='1'%20stop-color='%230020FF'%20/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_497_8063'%3e%3crect%20width='24'%20height='24'%20fill='white'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",ik=({placeholder:e="Write a prompt or paste a contract address",value:t="",onChange:n,onSend:r})=>{const[l,s]=Te.useState(t),[u,f]=Te.useState(!1),g=Te.useRef(null),v=()=>{f(!0),setTimeout(()=>{if(g.current){g.current.focus();const N=g.current.value.length;g.current.setSelectionRange(N,N)}},100)};Te.useEffect(()=>{s(R(t))},[t]);const y=N=>{const Y=R(N);s(Y),n?.(Y)},A=()=>{l.trim()&&(r?.({message:l.trim()}),s(""))},C=N=>{N.key==="Enter"&&!N.shiftKey&&(N.preventDefault(),A())},w=N=>` ${N}`,R=N=>N.trimStart();return ne.jsx(ri,{gap:2,align:"stretch",children:ne.jsxs(Ft,{bg:"white",borderRadius:"24px",position:"relative",p:2,w:"full",h:u?"80px":"48px",transition:"all 0.6s cubic-bezier(0.4, 0, 0.2, 1)",overflow:"hidden",cursor:"pointer",onClick:v,children:[ne.jsx(Ft,{position:"absolute",top:"8px",right:"8px",zIndex:2,children:ne.jsx(mo,{src:dH,alt:"AI",w:"24px",h:"24px"})}),ne.jsx(Ft,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:u?0:1,transform:u?"translateY(-20px) scale(0.95)":"translateY(0) scale(1)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:u?"none":"auto",children:ne.jsx(Xa,{justify:"space-between",align:"center",h:"full",children:ne.jsx(gr,{color:"#999999",fontSize:"16px",flex:1,paddingStart:"32px",textAlign:"right",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",children:e})})}),ne.jsx(eh,{position:"absolute",bottom:"8px",left:"12px",size:"xs",borderRadius:"full",bg:"#040404",color:"white","aria-label":"Send",onClick:N=>{N.stopPropagation(),A()},_hover:{bg:"gray.800"},disabled:!l.trim(),transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",_disabled:{bg:"#CCCCCC",cursor:"not-allowed"},transform:"scale(1)",zIndex:2,children:ne.jsx("img",{src:fH,alt:"Send"})}),ne.jsx(Ft,{position:"absolute",top:0,left:0,right:0,bottom:0,p:2,opacity:u?1:0,transform:u?"translateY(0) scale(1)":"translateY(20px) scale(0.95)",transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",pointerEvents:u?"auto":"none",children:ne.jsx(TS,{ref:g,value:w(l),onChange:N=>y(N.target.value),onKeyPress:C,placeholder:w(e),fontSize:"16px",color:"black",fontWeight:300,textAlign:"right",resize:"none",h:"100%",border:"none",bg:"transparent",_focus:{boxShadow:"none",border:"none",outline:"none"},_placeholder:{color:"#999999"},transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",rows:2})})]})})},hH=({state:e="starting",placeholder:t="Write a prompt or paste a contract address",value:n="",onChange:r,onSend:l,onStop:s})=>{const[u,f]=Te.useState(!1);return Te.useEffect(()=>{const g=()=>{f(window.innerWidth<=768)};return g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]),console.log(e),e==="starting"?ne.jsx(sH,{placeholder:t,value:n,onChange:r,onSend:l,isMobileView:u}):e==="generating"?ne.jsx(cH,{placeholder:t,onStop:s,isMobileView:u}):e==="minimized"?ne.jsx(ik,{placeholder:t,value:n,onChange:r,onSend:l}):ne.jsx(ik,{placeholder:t,value:n,onChange:r,onSend:l})},gH="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%202.66683C5.42267%202.66683%203.33333%204.75617%203.33333%207.3335H2C2%204.01979%204.68629%201.3335%208%201.3335C11.3137%201.3335%2014%204.01979%2014%207.3335C14%208.75016%2013.509%2010.0522%2012.6879%2011.0786L14.8047%2013.1954L13.8619%2014.1382L11.7451%2012.0214C10.7187%2012.8425%209.41667%2013.3335%208%2013.3335V12.0002C10.5773%2012.0002%2012.6667%209.91083%2012.6667%207.3335C12.6667%204.75617%2010.5773%202.66683%208%202.66683Z'%20fill='%23595959'%20/%3e%3cpath%20d='M5.85714%206.6665L2%2011.2498H4.57143L4.14286%2013.9998L8%209.4165H5.42857L5.85714%206.6665Z'%20fill='%23595959'%20/%3e%3c/svg%3e",pH=()=>{const e=bo(),{botData:t}=bo(),n=Te.useRef(null),r=u=>{e.sendMessage({message:u})},l=e.messages.length>0,s=()=>{n.current&&setTimeout(()=>{n.current?.scrollTo({top:n.current.scrollHeight,behavior:"smooth"})},100)};return Te.useEffect(()=>{l&&s()},[e.messages,l]),ne.jsxs(ri,{flex:1,justify:"space-between",align:"stretch",gap:4,h:"full",minH:"200px",maxH:"300px",overflow:"hidden",children:[!l&&t?.suggestedReply&&ne.jsx(Ft,{w:"full",flex:1,overflowY:"auto",overflowX:"hidden",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:ne.jsx(Xa,{wrap:"wrap",children:t.suggestedReply.map((u,f)=>ne.jsxs(ju,{variant:"outline",h:"auto",borderRadius:"24px",border:"1px solid #EDEDED",bg:"white",color:"#1A1A1A",fontSize:"14px",fontWeight:400,padding:"8px 12px 8px 12px",_hover:{bg:"#F8F8F8",borderColor:"#D0D0D0"},_active:{bg:"#F0F0F0",transform:"scale(0.98)"},onClick:()=>r(u),justifyContent:"start",maxW:"100%",children:[ne.jsx(mo,{src:gH,alt:"AI Search",w:4,h:4}),ne.jsx(Ft,{as:"span",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"break-word",fontFamily:"Estedad-FD, system-ui, sans-serif",children:u})]},f))})}),l&&ne.jsx(Ft,{ref:n,flex:1,overflowY:"auto",overflowX:"hidden",css:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},children:ne.jsx(ri,{gap:2,align:"stretch",pb:2,children:e.messages.map(u=>ne.jsx(aH,{message:u},u.id))})}),ne.jsx(Ft,{flexShrink:0,bg:"transparent",borderRadius:"12px",transition:"all 0.2s ease",children:ne.jsx(hH,{state:e.inputState,placeholder:e.inputState==="generating"?"Processing...":"What's your question?",onSend:e.isInputDisabled?void 0:e.sendMessage,onStop:e.stopCurrentRequest})})]})},mH=()=>{const{botData:e}=bo();return ne.jsx(Xa,{gap:0,justifyContent:"center",align:"center",w:"full",children:ne.jsx(kS,{href:ZV("https://dori.tech/",e?.sharing_id||""),target:"_blank",children:ne.jsxs(Xa,{alignItems:"center",justifyContent:"center",alignContent:"center",children:[ne.jsxs(gr,{fontSize:"12px",fontWeight:"400",color:"#666666",textAlign:"center",fontFamily:"Estedad-FD, system-ui, sans-serif",lineHeight:"1.4",children:["Powered by"," "]}),ne.jsx(mo,{src:"https://dori.fra1.cdn.digitaloceanspaces.com/dori.png",alt:"Bot Image",h:"16px"})]})})})},vH=()=>{const{botData:e}=bo();if(!e)return null;const t=e?.white_label?.is_white_labeled??!1;return ne.jsx(Ft,{style:{background:"linear-gradient(137deg, rgba(255, 255, 255, 1) 0%, rgba(252, 253, 255, 1) 25%, rgba(248, 250, 255, 1) 50%, rgba(245, 248, 255, 1) 76%, rgba(250, 252, 255, 1) 100%)",zIndex:9999,overflow:"hidden",willChange:"transform",pointerEvents:"auto",transform:"translateY(0)",transition:"all 0.5s ease",visibility:"visible",opacity:1},children:ne.jsxs(ri,{p:4,h:"full",justify:"flex-start",align:"stretch",children:[ne.jsx(pH,{})," ",!t&&ne.jsx(Ft,{transition:"all 0.5s cubic-bezier(0.4, 0, 0.2, 1)",children:ne.jsx(mH,{variant:"default"})})]})})};function bH({sharingId:e,productId:t}){const{initializeBot:n,resetBot:r}=bo(),l=Te.useRef(void 0),s=Te.useRef(void 0);Te.useEffect(()=>{(l.current&&e&&l.current!==e||s.current!==t)&&r?.(),l.current=e,s.current=t,e&&n(e,t)},[e,t,n,r])}console.log("isDevelopment",!1);function yH(){const[e,t]=Te.useState(""),[n,r]=Te.useState(null);return bH({sharingId:e,productId:n}),Te.useEffect(()=>{window.chatbotData?t(window.chatbotData.sharingID):ac("useEffect sharing ID",()=>{const l=()=>{const v=document.querySelector("script#dori-react-widget");return{sharingId:v?.getAttribute("data-sharing-id")||"",productId:v?.getAttribute("data-product-id")||null}},{sharingId:s,productId:u}=l();t(s),r(u);const f=document.querySelector("script#dori-react-widget");if(!f)return;const g=new MutationObserver(v=>{for(const y of v)if(y.type==="attributes"&&(y.attributeName==="data-sharing-id"||y.attributeName==="data-product-id")){const{sharingId:A,productId:C}=l();t(A),r(C),console.log("script data changed:",{sharingId:A,productId:C})}});return g.observe(f,{attributes:!0,attributeFilter:["data-sharing-id","data-product-id"]}),()=>{g.disconnect()}})()},[]),ne.jsx(Ft,{fontFamily:"Estedad-FD, system-ui, Avenir, Helvetica, Arial, sans-serif",lineHeight:"1.5",fontWeight:"400",colorScheme:"light",children:ne.jsx(vH,{})})}function xH(){return ne.jsx(yH,{})}var rm={};const AH=Jy(c_),SH=Jy(zT);var uc={},Eh={};/**
|
107
107
|
* @license React
|
108
108
|
* react-dom-server-legacy.browser.production.js
|
109
109
|
*
|
@@ -164,5 +164,5 @@ t,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("`),Xf=B('$RR("'),Bf=B(
|
|
164
164
|
`+j[_].replace(" at new "," at ");return d.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",d.displayName)),Ne}while(1<=_&&0<=F);break}}}finally{tl=!1,Error.prepareStackTrace=S}return(S=d?d.displayName||d.name:"")?Kr(S):""}function Ui(d){if(typeof d=="string")return Kr(d);if(typeof d=="function")return d.prototype&&d.prototype.isReactComponent?Vl(d,!0):Vl(d,!1);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case A:return Vl(d.render,!1);case R:return Vl(d.type,!1);case N:var p=d,S=p._payload;p=p._init;try{d=p(S)}catch{return Kr("Lazy")}return Ui(d)}if(typeof d.name=="string")return S=d.env,Kr(d.name+(S?" ["+S+"]":""))}switch(d){case w:return Kr("SuspenseList");case C:return Kr("Suspense")}return""}function Ln(d){if(typeof d=="object"&&d!==null&&typeof d.environmentName=="string"){var p=d.environmentName;d=[d].slice(0),typeof d[0]=="string"?d.splice(0,1,"%c%s%c "+d[0],"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+p+" ",""):d.splice(0,0,"%c%s%c ","background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px"," "+p+" ",""),d.unshift(console),p=Ll.apply(console.error,d),p()}else console.error(d);return null}function Rt(){}function At(d,p,S,_,F,M,Z,se,j,te,Ne){var Se=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=d,this.renderState=p,this.rootFormatContext=S,this.progressiveChunkSize=_===void 0?12800:_,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.abortableTasks=Se,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=F===void 0?Ln:F,this.onPostpone=te===void 0?Rt:te,this.onAllReady=M===void 0?Rt:M,this.onShellReady=Z===void 0?Rt:Z,this.onShellError=se===void 0?Rt:se,this.onFatalError=j===void 0?Rt:j,this.formState=Ne===void 0?null:Ne}function si(d,p,S,_,F,M,Z,se,j,te,Ne,Se){return p=new At(p,S,_,F,M,Z,se,j,te,Ne,Se),S=Oi(p,0,null,_,!1,!1),S.parentFlushed=!0,d=Xl(p,null,d,-1,null,S,null,null,p.abortableTasks,null,_,null,be,null,!1),Ri(d),p.pingedTasks.push(d),p}function er(d,p,S,_,F,M,Z,se,j,te,Ne){return d=si(d,p,S,_,F,M,Z,se,j,te,Ne,void 0),d.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},d}var Tn=null;function Gi(d,p){d.pingedTasks.push(p),d.pingedTasks.length===1&&(d.flushScheduled=d.destination!==null,d.trackedPostpones!==null||d.status===10?_e(function(){return ka(d)}):H(function(){return ka(d)}))}function ui(d,p,S,_){return{status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,completedSegments:[],byteSize:0,fallbackAbortableTasks:p,errorDigest:null,contentState:au(),fallbackState:au(),contentPreamble:S,fallbackPreamble:_,trackedContentKeyPath:null,trackedFallbackNode:null}}function Xl(d,p,S,_,F,M,Z,se,j,te,Ne,Se,Xe,Be,je){d.allPendingTasks++,F===null?d.pendingRootTasks++:F.pendingTasks++;var ot={replay:null,node:S,childIndex:_,ping:function(){return Gi(d,ot)},blockedBoundary:F,blockedSegment:M,blockedPreamble:Z,hoistableState:se,abortSet:j,keyPath:te,formatContext:Ne,context:Se,treeContext:Xe,componentStack:Be,thenableState:p,isFallback:je};return j.add(ot),ot}function Ca(d,p,S,_,F,M,Z,se,j,te,Ne,Se,Xe,Be){d.allPendingTasks++,M===null?d.pendingRootTasks++:M.pendingTasks++,S.pendingTasks++;var je={replay:S,node:_,childIndex:F,ping:function(){return Gi(d,je)},blockedBoundary:M,blockedSegment:null,blockedPreamble:null,hoistableState:Z,abortSet:se,keyPath:j,formatContext:te,context:Ne,treeContext:Se,componentStack:Xe,thenableState:p,isFallback:Be};return se.add(je),je}function Oi(d,p,S,_,F,M){return{status:0,parentFlushed:!1,id:-1,index:p,chunks:[],children:[],preambleChildren:[],parentFormatContext:_,boundary:S,lastPushedText:F,textEmbedded:M}}function Ri(d){var p=d.node;if(typeof p=="object"&&p!==null)switch(p.$$typeof){case r:d.componentStack={parent:d.componentStack,type:p.type}}}function ci(d){var p={};return d&&Object.defineProperty(p,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var S="",_=d;do S+=Ui(_.type),_=_.parent;while(_);var F=S}catch(M){F=`
|
165
165
|
Error generating stack: `+M.message+`
|
166
166
|
`+M.stack}return Object.defineProperty(p,"componentStack",{value:F}),F}}),p}function Yn(d,p,S){if(d=d.onError,p=d(p,S),p==null||typeof p=="string")return p}function yr(d,p){var S=d.onShellError,_=d.onFatalError;S(p),_(p),d.destination!==null?(d.status=14,ve(d.destination,p)):(d.status=13,d.fatalError=p)}function Fi(d,p,S,_,F,M){var Z=p.thenableState;for(p.thenableState=null,Ze={},yn=p,bt=d,Fn=S,wi=xn=0,br=-1,In=0,qn=Z,d=_(F,M);Mn;)Mn=!1,wi=xn=0,br=-1,In=0,Hi+=1,lt=null,d=_(F,M);return Aa(),d}function Zi(d,p,S,_,F,M,Z){var se=!1;if(M!==0&&d.formState!==null){var j=p.blockedSegment;if(j!==null){se=!0,j=j.chunks;for(var te=0;te<M;te++)te===Z?j.push(Sl):j.push(So)}}M=p.keyPath,p.keyPath=S,F?(S=p.treeContext,p.treeContext=le(S,1,0),_r(d,p,_,-1),p.treeContext=S):se?_r(d,p,_,-1):_n(d,p,_,-1),p.keyPath=M}function kr(d,p,S,_,F,M){if(typeof _=="function")if(_.prototype&&_.prototype.isReactComponent){var Z=F;if("ref"in F){Z={};for(var se in F)se!=="ref"&&(Z[se]=F[se])}var j=_.defaultProps;if(j){Z===F&&(Z=D({},Z,F));for(var te in j)Z[te]===void 0&&(Z[te]=j[te])}F=Z,Z=Oo,j=_.contextType,typeof j=="object"&&j!==null&&(Z=j._currentValue),Z=new _(F,Z);var Ne=Z.state!==void 0?Z.state:null;if(Z.updater=K,Z.props=F,Z.state=Ne,j={queue:[],replace:!1},Z._reactInternals=j,M=_.contextType,Z.context=typeof M=="object"&&M!==null?M._currentValue:Oo,M=_.getDerivedStateFromProps,typeof M=="function"&&(M=M(F,Ne),Ne=M==null?Ne:D({},Ne,M),Z.state=Ne),typeof _.getDerivedStateFromProps!="function"&&typeof Z.getSnapshotBeforeUpdate!="function"&&(typeof Z.UNSAFE_componentWillMount=="function"||typeof Z.componentWillMount=="function"))if(_=Z.state,typeof Z.componentWillMount=="function"&&Z.componentWillMount(),typeof Z.UNSAFE_componentWillMount=="function"&&Z.UNSAFE_componentWillMount(),_!==Z.state&&K.enqueueReplaceState(Z,Z.state,null),j.queue!==null&&0<j.queue.length)if(_=j.queue,M=j.replace,j.queue=null,j.replace=!1,M&&_.length===1)Z.state=_[0];else{for(j=M?_[0]:Z.state,Ne=!0,M=M?1:0;M<_.length;M++)te=_[M],te=typeof te=="function"?te.call(Z,j,F,void 0):te,te!=null&&(Ne?(Ne=!1,j=D({},j,te)):D(j,te));Z.state=j}else j.queue=null;if(_=Z.render(),d.status===12)throw null;F=p.keyPath,p.keyPath=S,_n(d,p,_,-1),p.keyPath=F}else{if(_=Fi(d,p,S,_,F,void 0),d.status===12)throw null;Zi(d,p,S,_,xn!==0,wi,br)}else if(typeof _=="string")if(Z=p.blockedSegment,Z===null)Z=F.children,j=p.formatContext,Ne=p.keyPath,p.formatContext=ua(j,_,F),p.keyPath=S,_r(d,p,Z,-1),p.formatContext=j,p.keyPath=Ne;else{M=Df(Z.chunks,_,F,d.resumableState,d.renderState,p.blockedPreamble,p.hoistableState,p.formatContext,Z.lastPushedText,p.isFallback),Z.lastPushedText=!1,j=p.formatContext,Ne=p.keyPath,p.keyPath=S,(p.formatContext=ua(j,_,F)).insertionMode===3?(S=Oi(d,0,null,p.formatContext,!1,!1),Z.preambleChildren.push(S),S=Xl(d,null,M,-1,p.blockedBoundary,S,p.blockedPreamble,p.hoistableState,d.abortableTasks,p.keyPath,p.formatContext,p.context,p.treeContext,p.componentStack,p.isFallback),Ri(S),d.pingedTasks.push(S)):_r(d,p,M,-1),p.formatContext=j,p.keyPath=Ne;e:{switch(p=Z.chunks,d=d.resumableState,_){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break e;case"body":if(1>=j.insertionMode){d.hasBody=!0;break e}break;case"html":if(j.insertionMode===0){d.hasHtml=!0;break e}break;case"head":if(1>=j.insertionMode)break e}p.push(Si(_))}Z.lastPushedText=!1}else{switch(_){case X:case u:case f:case s:_=p.keyPath,p.keyPath=S,_n(d,p,F.children,-1),p.keyPath=_;return;case L:F.mode!=="hidden"&&(_=p.keyPath,p.keyPath=S,_n(d,p,F.children,-1),p.keyPath=_);return;case w:_=p.keyPath,p.keyPath=S,_n(d,p,F.children,-1),p.keyPath=_;return;case re:case Y:throw Error(n(343));case C:e:if(p.replay!==null){_=p.keyPath,p.keyPath=S,S=F.children;try{_r(d,p,S,-1)}finally{p.keyPath=_}}else{_=p.keyPath;var Se=p.blockedBoundary;M=p.blockedPreamble;var Xe=p.hoistableState;te=p.blockedSegment,se=F.fallback,F=F.children;var Be=new Set,je=2>p.formatContext.insertionMode?ui(d,Be,dt(),dt()):ui(d,Be,null,null);d.trackedPostpones!==null&&(je.trackedContentKeyPath=S);var ot=Oi(d,te.chunks.length,je,p.formatContext,!1,!1);te.children.push(ot),te.lastPushedText=!1;var Gt=Oi(d,0,null,p.formatContext,!1,!1);if(Gt.parentFlushed=!0,d.trackedPostpones!==null){Z=[S[0],"Suspense Fallback",S[2]],j=[Z[1],Z[2],[],null],d.trackedPostpones.workingMap.set(Z,j),je.trackedFallbackNode=j,p.blockedSegment=ot,p.blockedPreamble=je.fallbackPreamble,p.keyPath=Z,ot.status=6;try{_r(d,p,se,-1),ot.lastPushedText&&ot.textEmbedded&&ot.chunks.push(Ai),ot.status=1}catch(qt){throw ot.status=d.status===12?3:4,qt}finally{p.blockedSegment=te,p.blockedPreamble=M,p.keyPath=_}p=Xl(d,null,F,-1,je,Gt,je.contentPreamble,je.contentState,p.abortSet,S,p.formatContext,p.context,p.treeContext,p.componentStack,p.isFallback),Ri(p),d.pingedTasks.push(p)}else{p.blockedBoundary=je,p.blockedPreamble=je.contentPreamble,p.hoistableState=je.contentState,p.blockedSegment=Gt,p.keyPath=S,Gt.status=6;try{if(_r(d,p,F,-1),Gt.lastPushedText&&Gt.textEmbedded&&Gt.chunks.push(Ai),Gt.status=1,fi(je,Gt),je.pendingTasks===0&&je.status===0){je.status=1,d.pendingRootTasks===0&&p.blockedPreamble&&di(d);break e}}catch(qt){je.status=4,d.status===12?(Gt.status=3,Z=d.fatalError):(Gt.status=4,Z=qt),j=ci(p.componentStack),Ne=Yn(d,Z,j),je.errorDigest=Ne,Tr(d,je)}finally{p.blockedBoundary=Se,p.blockedPreamble=M,p.hoistableState=Xe,p.blockedSegment=te,p.keyPath=_}p=Xl(d,null,se,-1,Se,ot,je.fallbackPreamble,je.fallbackState,Be,[S[0],"Suspense Fallback",S[2]],p.formatContext,p.context,p.treeContext,p.componentStack,!0),Ri(p),d.pingedTasks.push(p)}}return}if(typeof _=="object"&&_!==null)switch(_.$$typeof){case A:if("ref"in F)for(je in Z={},F)je!=="ref"&&(Z[je]=F[je]);else Z=F;_=Fi(d,p,S,_.render,Z,M),Zi(d,p,S,_,xn!==0,wi,br);return;case R:kr(d,p,S,_.type,F,M);return;case g:case y:if(j=F.children,Z=p.keyPath,F=F.value,Ne=_._currentValue,_._currentValue=F,M=ya,ya=_={parent:M,depth:M===null?0:M.depth+1,context:_,parentValue:Ne,value:F},p.context=_,p.keyPath=S,_n(d,p,j,-1),d=ya,d===null)throw Error(n(403));d.context._currentValue=d.parentValue,d=ya=d.parent,p.context=d,p.keyPath=Z;return;case v:F=F.children,_=F(_._context._currentValue),F=p.keyPath,p.keyPath=S,_n(d,p,_,-1),p.keyPath=F;return;case N:if(Z=_._init,_=Z(_._payload),d.status===12)throw null;kr(d,p,S,_,F,M);return}throw Error(n(130,_==null?_:typeof _,""))}}function bs(d,p,S,_,F){var M=p.replay,Z=p.blockedBoundary,se=Oi(d,0,null,p.formatContext,!1,!1);se.id=S,se.parentFlushed=!0;try{p.replay=null,p.blockedSegment=se,_r(d,p,_,F),se.status=1,Z===null?d.completedRootSegment=se:(fi(Z,se),Z.parentFlushed&&d.partialBoundaries.push(Z))}finally{p.replay=M,p.blockedSegment=null}}function _n(d,p,S,_){p.replay!==null&&typeof p.replay.slots=="number"?bs(d,p,p.replay.slots,S,_):(p.node=S,p.childIndex=_,S=p.componentStack,Ri(p),Qi(d,p),p.componentStack=S)}function Qi(d,p){var S=p.node,_=p.childIndex;if(S!==null){if(typeof S=="object"){switch(S.$$typeof){case r:var F=S.type,M=S.key,Z=S.props;S=Z.ref;var se=S!==void 0?S:null,j=ur(F),te=M??(_===-1?0:_);if(M=[p.keyPath,j,te],p.replay!==null)e:{var Ne=p.replay;for(_=Ne.nodes,S=0;S<_.length;S++){var Se=_[S];if(te===Se[1]){if(Se.length===4){if(j!==null&&j!==Se[0])throw Error(n(490,Se[0],j));var Xe=Se[2];j=Se[3],te=p.node,p.replay={nodes:Xe,slots:j,pendingTasks:1};try{if(kr(d,p,M,F,Z,se),p.replay.pendingTasks===1&&0<p.replay.nodes.length)throw Error(n(488));p.replay.pendingTasks--}catch(gn){if(typeof gn=="object"&&gn!==null&&(gn===Je||typeof gn.then=="function"))throw p.node===te&&(p.replay=Ne),gn;p.replay.pendingTasks--,Z=ci(p.componentStack),M=p.blockedBoundary,F=gn,Z=Yn(d,F,Z),Bl(d,M,Xe,j,F,Z)}p.replay=Ne}else{if(F!==C)throw Error(n(490,"Suspense",ur(F)||"Unknown"));t:{Ne=void 0,F=Se[5],se=Se[2],j=Se[3],te=Se[4]===null?[]:Se[4][2],Se=Se[4]===null?null:Se[4][3];var Be=p.keyPath,je=p.replay,ot=p.blockedBoundary,Gt=p.hoistableState,qt=Z.children,yt=Z.fallback,tr=new Set;Z=2>p.formatContext.insertionMode?ui(d,tr,dt(),dt()):ui(d,tr,null,null),Z.parentFlushed=!0,Z.rootSegmentID=F,p.blockedBoundary=Z,p.hoistableState=Z.contentState,p.keyPath=M,p.replay={nodes:se,slots:j,pendingTasks:1};try{if(_r(d,p,qt,-1),p.replay.pendingTasks===1&&0<p.replay.nodes.length)throw Error(n(488));if(p.replay.pendingTasks--,Z.pendingTasks===0&&Z.status===0){Z.status=1,d.completedBoundaries.push(Z);break t}}catch(gn){Z.status=4,Xe=ci(p.componentStack),Ne=Yn(d,gn,Xe),Z.errorDigest=Ne,p.replay.pendingTasks--,d.clientRenderedBoundaries.push(Z)}finally{p.blockedBoundary=ot,p.hoistableState=Gt,p.replay=je,p.keyPath=Be}p=Ca(d,null,{nodes:te,slots:Se,pendingTasks:0},yt,-1,ot,Z.fallbackState,tr,[M[0],"Suspense Fallback",M[2]],p.formatContext,p.context,p.treeContext,p.componentStack,!0),Ri(p),d.pingedTasks.push(p)}}_.splice(S,1);break e}}}else kr(d,p,M,F,Z,se);return;case l:throw Error(n(257));case N:if(Xe=S._init,S=Xe(S._payload),d.status===12)throw null;_n(d,p,S,_);return}if(J(S)){Ki(d,p,S,_);return}if(S===null||typeof S!="object"?Xe=null:(Xe=U&&S[U]||S["@@iterator"],Xe=typeof Xe=="function"?Xe:null),Xe&&(Xe=Xe.call(S))){if(S=Xe.next(),!S.done){Z=[];do Z.push(S.value),S=Xe.next();while(!S.done);Ki(d,p,Z,_)}return}if(typeof S.then=="function")return p.thenableState=null,_n(d,p,el(S),_);if(S.$$typeof===y)return _n(d,p,S._currentValue,_);throw _=Object.prototype.toString.call(S),Error(n(31,_==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":_))}typeof S=="string"?(_=p.blockedSegment,_!==null&&(_.lastPushedText=$o(_.chunks,S,d.renderState,_.lastPushedText))):(typeof S=="number"||typeof S=="bigint")&&(_=p.blockedSegment,_!==null&&(_.lastPushedText=$o(_.chunks,""+S,d.renderState,_.lastPushedText)))}}function Ki(d,p,S,_){var F=p.keyPath;if(_!==-1&&(p.keyPath=[p.keyPath,"Fragment",_],p.replay!==null)){for(var M=p.replay,Z=M.nodes,se=0;se<Z.length;se++){var j=Z[se];if(j[1]===_){_=j[2],j=j[3],p.replay={nodes:_,slots:j,pendingTasks:1};try{if(Ki(d,p,S,-1),p.replay.pendingTasks===1&&0<p.replay.nodes.length)throw Error(n(488));p.replay.pendingTasks--}catch(Se){if(typeof Se=="object"&&Se!==null&&(Se===Je||typeof Se.then=="function"))throw Se;p.replay.pendingTasks--,S=ci(p.componentStack);var te=p.blockedBoundary,Ne=Se;S=Yn(d,Ne,S),Bl(d,te,_,j,Ne,S)}p.replay=M,Z.splice(se,1);break}}p.keyPath=F;return}if(M=p.treeContext,Z=S.length,p.replay!==null&&(se=p.replay.slots,se!==null&&typeof se=="object")){for(_=0;_<Z;_++)j=S[_],p.treeContext=le(M,Z,_),te=se[_],typeof te=="number"?(bs(d,p,te,j,_),delete se[_]):_r(d,p,j,_);p.treeContext=M,p.keyPath=F;return}for(se=0;se<Z;se++)_=S[se],p.treeContext=le(M,Z,se),_r(d,p,_,se);p.treeContext=M,p.keyPath=F}function Tr(d,p){d=d.trackedPostpones,d!==null&&(p=p.trackedContentKeyPath,p!==null&&(p=d.workingMap.get(p),p!==void 0&&(p.length=4,p[2]=[],p[3]=null)))}function Pn(d,p,S){return Ca(d,S,p.replay,p.node,p.childIndex,p.blockedBoundary,p.hoistableState,p.abortSet,p.keyPath,p.formatContext,p.context,p.treeContext,p.componentStack,p.isFallback)}function nl(d,p,S){var _=p.blockedSegment,F=Oi(d,_.chunks.length,null,p.formatContext,_.lastPushedText,!0);return _.children.push(F),_.lastPushedText=!1,Xl(d,S,p.node,p.childIndex,p.blockedBoundary,F,p.blockedPreamble,p.hoistableState,p.abortSet,p.keyPath,p.formatContext,p.context,p.treeContext,p.componentStack,p.isFallback)}function _r(d,p,S,_){var F=p.formatContext,M=p.context,Z=p.keyPath,se=p.treeContext,j=p.componentStack,te=p.blockedSegment;if(te===null)try{return _n(d,p,S,_)}catch(Xe){if(Aa(),S=Xe===Je?Lt():Xe,typeof S=="object"&&S!==null){if(typeof S.then=="function"){_=Nn(),d=Pn(d,p,_).ping,S.then(d,d),p.formatContext=F,p.context=M,p.keyPath=Z,p.treeContext=se,p.componentStack=j,W(M);return}if(S.message==="Maximum call stack size exceeded"){S=Nn(),S=Pn(d,p,S),d.pingedTasks.push(S),p.formatContext=F,p.context=M,p.keyPath=Z,p.treeContext=se,p.componentStack=j,W(M);return}}}else{var Ne=te.children.length,Se=te.chunks.length;try{return _n(d,p,S,_)}catch(Xe){if(Aa(),te.children.length=Ne,te.chunks.length=Se,S=Xe===Je?Lt():Xe,typeof S=="object"&&S!==null){if(typeof S.then=="function"){_=Nn(),d=nl(d,p,_).ping,S.then(d,d),p.formatContext=F,p.context=M,p.keyPath=Z,p.treeContext=se,p.componentStack=j,W(M);return}if(S.message==="Maximum call stack size exceeded"){S=Nn(),S=nl(d,p,S),d.pingedTasks.push(S),p.formatContext=F,p.context=M,p.keyPath=Z,p.treeContext=se,p.componentStack=j,W(M);return}}}}throw p.formatContext=F,p.context=M,p.keyPath=Z,p.treeContext=se,W(M),S}function Kf(d){var p=d.blockedBoundary;d=d.blockedSegment,d!==null&&(d.status=3,Hl(this,p,d))}function Bl(d,p,S,_,F,M){for(var Z=0;Z<S.length;Z++){var se=S[Z];if(se.length===4)Bl(d,p,se[2],se[3],F,M);else{se=se[5];var j=d,te=M,Ne=ui(j,new Set,null,null);Ne.parentFlushed=!0,Ne.rootSegmentID=se,Ne.status=4,Ne.errorDigest=te,Ne.parentFlushed&&j.clientRenderedBoundaries.push(Ne)}}if(S.length=0,_!==null){if(p===null)throw Error(n(487));if(p.status!==4&&(p.status=4,p.errorDigest=M,p.parentFlushed&&d.clientRenderedBoundaries.push(p)),typeof _=="object")for(var Se in _)delete _[Se]}}function Cc(d,p,S){var _=d.blockedBoundary,F=d.blockedSegment;if(F!==null){if(F.status===6)return;F.status=3}if(F=ci(d.componentStack),_===null){if(p.status!==13&&p.status!==14){if(_=d.replay,_===null){Yn(p,S,F),yr(p,S);return}_.pendingTasks--,_.pendingTasks===0&&0<_.nodes.length&&(d=Yn(p,S,F),Bl(p,null,_.nodes,_.slots,S,d)),p.pendingRootTasks--,p.pendingRootTasks===0&&rl(p)}}else _.pendingTasks--,_.status!==4&&(_.status=4,d=Yn(p,S,F),_.status=4,_.errorDigest=d,Tr(p,_),_.parentFlushed&&p.clientRenderedBoundaries.push(_)),_.fallbackAbortableTasks.forEach(function(M){return Cc(M,p,S)}),_.fallbackAbortableTasks.clear();p.allPendingTasks--,p.allPendingTasks===0&&wa(p)}function ln(d,p){try{var S=d.renderState,_=S.onHeaders;if(_){var F=S.headers;if(F){S.headers=null;var M=F.preconnects;if(F.fontPreloads&&(M&&(M+=", "),M+=F.fontPreloads),F.highImagePreloads&&(M&&(M+=", "),M+=F.highImagePreloads),!p){var Z=S.styles.values(),se=Z.next();e:for(;0<F.remainingCapacity&&!se.done;se=Z.next())for(var j=se.value.sheets.values(),te=j.next();0<F.remainingCapacity&&!te.done;te=j.next()){var Ne=te.value,Se=Ne.props,Xe=Se.href,Be=Ne.props,je=Bi(Be.href,"style",{crossOrigin:Be.crossOrigin,integrity:Be.integrity,nonce:Be.nonce,type:Be.type,fetchPriority:Be.fetchPriority,referrerPolicy:Be.referrerPolicy,media:Be.media});if(0<=(F.remainingCapacity-=je.length+2))S.resets.style[Xe]=rn,M&&(M+=", "),M+=je,S.resets.style[Xe]=typeof Se.crossOrigin=="string"||typeof Se.integrity=="string"?[Se.crossOrigin,Se.integrity]:rn;else break e}}_(M?{Link:M}:{})}}}catch(ot){Yn(d,ot,{})}}function rl(d){d.trackedPostpones===null&&ln(d,!0),d.trackedPostpones===null&&di(d),d.onShellError=Rt,d=d.onShellReady,d()}function wa(d){ln(d,d.trackedPostpones===null?!0:d.completedRootSegment===null||d.completedRootSegment.status!==5),di(d),d=d.onAllReady,d()}function fi(d,p){if(p.chunks.length===0&&p.children.length===1&&p.children[0].boundary===null&&p.children[0].id===-1){var S=p.children[0];S.id=p.id,S.parentFlushed=!0,S.status===1&&fi(d,S)}else d.completedSegments.push(p)}function Hl(d,p,S){if(p===null){if(S!==null&&S.parentFlushed){if(d.completedRootSegment!==null)throw Error(n(389));d.completedRootSegment=S}d.pendingRootTasks--,d.pendingRootTasks===0&&rl(d)}else p.pendingTasks--,p.status!==4&&(p.pendingTasks===0?(p.status===0&&(p.status=1),S!==null&&S.parentFlushed&&S.status===1&&fi(p,S),p.parentFlushed&&d.completedBoundaries.push(p),p.status===1&&(p.fallbackAbortableTasks.forEach(Kf,d),p.fallbackAbortableTasks.clear(),d.pendingRootTasks===0&&d.trackedPostpones===null&&p.contentPreamble!==null&&di(d))):S!==null&&S.parentFlushed&&S.status===1&&(fi(p,S),p.completedSegments.length===1&&p.parentFlushed&&d.partialBoundaries.push(p)));d.allPendingTasks--,d.allPendingTasks===0&&wa(d)}function ka(d){if(d.status!==14&&d.status!==13){var p=ya,S=nn.H;nn.H=wr;var _=nn.A;nn.A=Ti;var F=Tn;Tn=d;var M=cr;cr=d.resumableState;try{var Z=d.pingedTasks,se;for(se=0;se<Z.length;se++){var j=Z[se],te=d,Ne=j.blockedSegment;if(Ne===null){var Se=te;if(j.replay.pendingTasks!==0){W(j.context);try{if(typeof j.replay.slots=="number"?bs(Se,j,j.replay.slots,j.node,j.childIndex):Qi(Se,j),j.replay.pendingTasks===1&&0<j.replay.nodes.length)throw Error(n(488));j.replay.pendingTasks--,j.abortSet.delete(j),Hl(Se,j.blockedBoundary,null)}catch(An){Aa();var Xe=An===Je?Lt():An;if(typeof Xe=="object"&&Xe!==null&&typeof Xe.then=="function"){var Be=j.ping;Xe.then(Be,Be),j.thenableState=Nn()}else{j.replay.pendingTasks--,j.abortSet.delete(j);var je=ci(j.componentStack);te=void 0;var ot=Se,Gt=j.blockedBoundary,qt=Se.status===12?Se.fatalError:Xe,yt=j.replay.nodes,tr=j.replay.slots;te=Yn(ot,qt,je),Bl(ot,Gt,yt,tr,qt,te),Se.pendingRootTasks--,Se.pendingRootTasks===0&&rl(Se),Se.allPendingTasks--,Se.allPendingTasks===0&&wa(Se)}}finally{}}}else if(Se=void 0,ot=Ne,ot.status===0){ot.status=6,W(j.context);var gn=ot.children.length,fr=ot.chunks.length;try{Qi(te,j),ot.lastPushedText&&ot.textEmbedded&&ot.chunks.push(Ai),j.abortSet.delete(j),ot.status=1,Hl(te,j.blockedBoundary,ot)}catch(An){Aa(),ot.children.length=gn,ot.chunks.length=fr;var on=An===Je?Lt():te.status===12?te.fatalError:An;if(typeof on=="object"&&on!==null&&typeof on.then=="function"){ot.status=0,j.thenableState=Nn();var et=j.ping;on.then(et,et)}else{var gt=ci(j.componentStack);j.abortSet.delete(j),ot.status=4;var pt=j.blockedBoundary;Se=Yn(te,on,gt),pt===null?yr(te,on):(pt.pendingTasks--,pt.status!==4&&(pt.status=4,pt.errorDigest=Se,Tr(te,pt),pt.parentFlushed&&te.clientRenderedBoundaries.push(pt),te.pendingRootTasks===0&&te.trackedPostpones===null&&pt.contentPreamble!==null&&di(te))),te.allPendingTasks--,te.allPendingTasks===0&&wa(te)}}finally{}}}Z.splice(0,se),d.destination!==null&&Ro(d,d.destination)}catch(An){Yn(d,An,{}),yr(d,An)}finally{cr=M,nn.H=S,nn.A=_,S===wr&&W(p),Tn=F}}}function Ta(d,p,S){p.preambleChildren.length&&S.push(p.preambleChildren);for(var _=!1,F=0;F<p.children.length;F++)_=ys(d,p.children[F],S)||_;return _}function ys(d,p,S){var _=p.boundary;if(_===null)return Ta(d,p,S);var F=_.contentPreamble,M=_.fallbackPreamble;if(F===null||M===null)return!1;switch(_.status){case 1:if(mc(d.renderState,F),p=_.completedSegments[0],!p)throw Error(n(391));return Ta(d,p,S);case 5:if(d.trackedPostpones!==null)return!0;case 4:if(p.status===1)return mc(d.renderState,M),Ta(d,p,S);default:return!0}}function di(d){if(d.completedRootSegment&&d.completedPreambleSegments===null){var p=[],S=ys(d,d.completedRootSegment,p),_=d.renderState.preamble;(S===!1||_.headChunks&&_.bodyChunks)&&(d.completedPreambleSegments=p)}}function _a(d,p,S,_){switch(S.parentFlushed=!0,S.status){case 0:S.id=d.nextSegmentId++;case 5:return _=S.id,S.lastPushedText=!1,S.textEmbedded=!1,d=d.renderState,z(p,ns),z(p,d.placeholderPrefix),d=k(_.toString(16)),z(p,d),Q(p,rs);case 1:S.status=2;var F=!0,M=S.chunks,Z=0;S=S.children;for(var se=0;se<S.length;se++){for(F=S[se];Z<F.index;Z++)z(p,M[Z]);F=Ul(d,p,F,_)}for(;Z<M.length-1;Z++)z(p,M[Z]);return Z<M.length&&(F=Q(p,M[Z])),F;default:throw Error(n(390))}}function Ul(d,p,S,_){var F=S.boundary;if(F===null)return _a(d,p,S,_);if(F.parentFlushed=!0,F.status===4){var M=F.errorDigest;return Q(p,ha),z(p,Eo),M&&(z(p,is),z(p,k(Le(M))),z(p,Qs)),Q(p,Co),_a(d,p,S,_),(d=F.fallbackPreamble)&&Tl(p,d),Q(p,kl)}if(F.status!==1)return F.status===0&&(F.rootSegmentID=d.nextSegmentId++),0<F.completedSegments.length&&d.partialBoundaries.push(F),Wf(p,d.renderState,F.rootSegmentID),_&&(F=F.fallbackState,F.styles.forEach(Ec,_),F.stylesheets.forEach(ps,_)),_a(d,p,S,_),Q(p,kl);if(F.byteSize>d.progressiveChunkSize)return F.rootSegmentID=d.nextSegmentId++,d.completedBoundaries.push(F),Wf(p,d.renderState,F.rootSegmentID),_a(d,p,S,_),Q(p,kl);if(_&&(S=F.contentState,S.styles.forEach(Ec,_),S.stylesheets.forEach(ps,_)),Q(p,Mf),S=F.completedSegments,S.length!==1)throw Error(n(391));return Ul(d,p,S[0],_),(d=F.contentPreamble)&&Tl(p,d),Q(p,kl)}function jr(d,p,S,_){return vr(p,d.renderState,S.parentFormatContext,S.id),Ul(d,p,S,_),pa(p,S.parentFormatContext)}function Gl(d,p,S){for(var _=S.completedSegments,F=0;F<_.length;F++)Oa(d,p,S,_[F]);_.length=0,Dl(p,S.contentState,d.renderState),_=d.resumableState,d=d.renderState,F=S.rootSegmentID,S=S.contentState;var M=d.stylesToHoist;return d.stylesToHoist=!1,z(p,d.startInlineScript),M?(_.instructions&2)===0?(_.instructions|=10,z(p,$s)):(_.instructions&8)===0?(_.instructions|=8,z(p,Vf)):z(p,Xf):(_.instructions&2)===0?(_.instructions|=2,z(p,qs)):z(p,os),_=k(F.toString(16)),z(p,d.boundaryPrefix),z(p,_),z(p,Bf),z(p,d.segmentPrefix),z(p,_),M?(z(p,kh),Rh(p,S)):z(p,Nl),S=Q(p,Hf),Ei(p,d)&&S}function Oa(d,p,S,_){if(_.status===2)return!0;var F=S.contentState,M=_.id;if(M===-1){if((_.id=S.rootSegmentID)===-1)throw Error(n(392));return jr(d,p,_,F)}return M===S.rootSegmentID?jr(d,p,_,F):(jr(d,p,_,F),S=d.resumableState,d=d.renderState,z(p,d.startInlineScript),(S.instructions&1)===0?(S.instructions|=1,z(p,ma)):z(p,va),z(p,d.segmentPrefix),M=k(M.toString(16)),z(p,M),z(p,Yf),z(p,d.placeholderPrefix),z(p,M),p=Q(p,Js),p)}function Ro(d,p){$=new Uint8Array(2048),ue=0;try{if(!(0<d.pendingRootTasks)){var S,_=d.completedRootSegment;if(_!==null){if(_.status===5)return;var F=d.completedPreambleSegments;if(F===null)return;var M=d.renderState,Z=M.preamble,se=Z.htmlChunks,j=Z.headChunks,te;if(se){for(te=0;te<se.length;te++)z(p,se[te]);if(j)for(te=0;te<j.length;te++)z(p,j[te]);else z(p,bn("head")),z(p,wn)}else if(j)for(te=0;te<j.length;te++)z(p,j[te]);var Ne=M.charsetChunks;for(te=0;te<Ne.length;te++)z(p,Ne[te]);Ne.length=0,M.preconnects.forEach(sr,p),M.preconnects.clear();var Se=M.viewportChunks;for(te=0;te<Se.length;te++)z(p,Se[te]);Se.length=0,M.fontPreloads.forEach(sr,p),M.fontPreloads.clear(),M.highImagePreloads.forEach(sr,p),M.highImagePreloads.clear(),M.styles.forEach(Zr,p);var Xe=M.importMapChunks;for(te=0;te<Xe.length;te++)z(p,Xe[te]);Xe.length=0,M.bootstrapScripts.forEach(sr,p),M.scripts.forEach(sr,p),M.scripts.clear(),M.bulkPreloads.forEach(sr,p),M.bulkPreloads.clear();var Be=M.hoistableChunks;for(te=0;te<Be.length;te++)z(p,Be[te]);for(M=Be.length=0;M<F.length;M++){var je=F[M];for(Z=0;Z<je.length;Z++)Ul(d,p,je[Z],null)}var ot=d.renderState.preamble,Gt=ot.headChunks;(ot.htmlChunks||Gt)&&z(p,Si("head"));var qt=ot.bodyChunks;if(qt)for(F=0;F<qt.length;F++)z(p,qt[F]);Ul(d,p,_,null),d.completedRootSegment=null,Ei(p,d.renderState)}var yt=d.renderState;_=0;var tr=yt.viewportChunks;for(_=0;_<tr.length;_++)z(p,tr[_]);tr.length=0,yt.preconnects.forEach(sr,p),yt.preconnects.clear(),yt.fontPreloads.forEach(sr,p),yt.fontPreloads.clear(),yt.highImagePreloads.forEach(sr,p),yt.highImagePreloads.clear(),yt.styles.forEach(ru,p),yt.scripts.forEach(sr,p),yt.scripts.clear(),yt.bulkPreloads.forEach(sr,p),yt.bulkPreloads.clear();var gn=yt.hoistableChunks;for(_=0;_<gn.length;_++)z(p,gn[_]);gn.length=0;var fr=d.clientRenderedBoundaries;for(S=0;S<fr.length;S++){var on=fr[S];yt=p;var et=d.resumableState,gt=d.renderState,pt=on.rootSegmentID,An=on.errorDigest;z(yt,gt.startInlineScript),(et.instructions&4)===0?(et.instructions|=4,z(yt,eu)):z(yt,Th),z(yt,gt.boundaryPrefix),z(yt,k(pt.toString(16))),z(yt,yc),An&&(z(yt,Uf),z(yt,k(tu(An||""))));var Zt=Q(yt,Pl);if(!Zt){d.destination=null,S++,fr.splice(0,S);return}}fr.splice(0,S);var Sn=d.completedBoundaries;for(S=0;S<Sn.length;S++)if(!Gl(d,p,Sn[S])){d.destination=null,S++,Sn.splice(0,S);return}Sn.splice(0,S),Ce(p),$=new Uint8Array(2048),ue=0;var Ia=d.partialBoundaries;for(S=0;S<Ia.length;S++){var gi=Ia[S];e:{fr=d,on=p;var Jr=gi.completedSegments;for(Zt=0;Zt<Jr.length;Zt++)if(!Oa(fr,on,gi,Jr[Zt])){Zt++,Jr.splice(0,Zt);var Io=!1;break e}Jr.splice(0,Zt),Io=Dl(on,gi.contentState,fr.renderState)}if(!Io){d.destination=null,S++,Ia.splice(0,S);return}}Ia.splice(0,S);var $t=d.completedBoundaries;for(S=0;S<$t.length;S++)if(!Gl(d,p,$t[S])){d.destination=null,S++,$t.splice(0,S);return}$t.splice(0,S)}}finally{d.allPendingTasks===0&&d.pingedTasks.length===0&&d.clientRenderedBoundaries.length===0&&d.completedBoundaries.length===0?(d.flushScheduled=!1,S=d.resumableState,S.hasBody&&z(p,Si("body")),S.hasHtml&&z(p,Si("html")),Ce(p),d.status=14,p.close(),d.destination=null):Ce(p)}}function hi(d){d.flushScheduled=d.destination!==null,_e(function(){return ka(d)}),H(function(){d.status===10&&(d.status=11),d.trackedPostpones===null&&ln(d,d.pendingRootTasks===0)})}function Ra(d){d.flushScheduled===!1&&d.pingedTasks.length===0&&d.destination!==null&&(d.flushScheduled=!0,H(function(){var p=d.destination;p?Ro(d,p):d.flushScheduled=!1}))}function ji(d,p){if(d.status===13)d.status=14,ve(p,d.fatalError);else if(d.status!==14&&d.destination===null){d.destination=p;try{Ro(d,p)}catch(S){Yn(d,S,{}),yr(d,S)}}}function Fa(d,p){(d.status===11||d.status===10)&&(d.status=12);try{var S=d.abortableTasks;if(0<S.size){var _=p===void 0?Error(n(432)):typeof p=="object"&&p!==null&&typeof p.then=="function"?Error(n(530)):p;d.fatalError=_,S.forEach(function(F){return Cc(F,d,_)}),S.clear()}d.destination!==null&&Ro(d,d.destination)}catch(F){Yn(d,F,{}),yr(d,F)}}function Fo(){var d=e.version;if(d!=="19.1.1")throw Error(n(527,d,"19.1.1"))}return Fo(),Fo(),Ch.prerender=function(d,p){return new Promise(function(S,_){var F=p?p.onHeaders:void 0,M;F&&(M=function(Ne){F(new Headers(Ne))});var Z=mr(p?p.identifierPrefix:void 0,p?p.unstable_externalRuntimeSrc:void 0,p?p.bootstrapScriptContent:void 0,p?p.bootstrapScripts:void 0,p?p.bootstrapModules:void 0),se=er(d,Z,xi(Z,void 0,p?p.unstable_externalRuntimeSrc:void 0,p?p.importMap:void 0,M,p?p.maxHeadersLength:void 0),Wr(p?p.namespaceURI:void 0),p?p.progressiveChunkSize:void 0,p?p.onError:void 0,function(){var Ne={prelude:new ReadableStream({type:"bytes",pull:function(Se){ji(se,Se)},cancel:function(Se){se.destination=null,Fa(se,Se)}},{highWaterMark:0})};S(Ne)},void 0,void 0,_,p?p.onPostpone:void 0);if(p&&p.signal){var j=p.signal;if(j.aborted)Fa(se,j.reason);else{var te=function(){Fa(se,j.reason),j.removeEventListener("abort",te)};j.addEventListener("abort",te)}}hi(se)})},Ch.renderToReadableStream=function(d,p){return new Promise(function(S,_){var F,M,Z=new Promise(function(Be,je){M=Be,F=je}),se=p?p.onHeaders:void 0,j;se&&(j=function(Be){se(new Headers(Be))});var te=mr(p?p.identifierPrefix:void 0,p?p.unstable_externalRuntimeSrc:void 0,p?p.bootstrapScriptContent:void 0,p?p.bootstrapScripts:void 0,p?p.bootstrapModules:void 0),Ne=si(d,te,xi(te,p?p.nonce:void 0,p?p.unstable_externalRuntimeSrc:void 0,p?p.importMap:void 0,j,p?p.maxHeadersLength:void 0),Wr(p?p.namespaceURI:void 0),p?p.progressiveChunkSize:void 0,p?p.onError:void 0,M,function(){var Be=new ReadableStream({type:"bytes",pull:function(je){ji(Ne,je)},cancel:function(je){Ne.destination=null,Fa(Ne,je)}},{highWaterMark:0});Be.allReady=Z,S(Be)},function(Be){Z.catch(function(){}),_(Be)},F,p?p.onPostpone:void 0,p?p.formState:void 0);if(p&&p.signal){var Se=p.signal;if(Se.aborted)Fa(Ne,Se.reason);else{var Xe=function(){Fa(Ne,Se.reason),Se.removeEventListener("abort",Xe)};Se.addEventListener("abort",Xe)}}hi(Ne)})},Ch.version="19.1.1",Ch}var ok;function wH(){if(ok)return uc;ok=1;var e,t;return e=EH(),t=CH(),uc.version=e.version,uc.renderToString=e.renderToString,uc.renderToStaticMarkup=e.renderToStaticMarkup,uc.renderToReadableStream=t.renderToReadableStream,t.resume&&(uc.resume=t.resume),uc}var Jb={exports:{}},qb,sk;function kH(){if(sk)return qb;sk=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qb=e,qb}var $b,uk;function TH(){if(uk)return $b;uk=1;var e=kH();function t(){}function n(){}return n.resetWarningCache=t,$b=function(){function r(u,f,g,v,y,A){if(A!==e){var C=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw C.name="Invariant Violation",C}}r.isRequired=r;function l(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:l,element:r,elementType:r,instanceOf:l,node:r,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},$b}var ck;function _H(){return ck||(ck=1,Jb.exports=TH()()),Jb.exports}var fk;function OH(){if(fk)return rm;fk=1,Object.defineProperty(rm,"__esModule",{value:!0});var e=jc(),t=AH,n=SH,r=vg(),l=wH(),s=_H();function u($){return $&&typeof $=="object"&&"default"in $?$:{default:$}}var f=u(e),g=u(n),v=u(s),y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Kc<"u"?Kc:typeof self<"u"?self:{};function A($,ue){return $(ue={exports:{}},ue.exports),ue.exports}var C=A((function($){(function(ue){var z=function(Fe,We,Le){if(!ve(We)||xe(We)||Ve(We)||De(We)||B(We))return We;var ct,Ut=0,Xn=0;if(D(We))for(ct=[],Xn=We.length;Ut<Xn;Ut++)ct.push(z(Fe,We[Ut],Le));else for(var wt in ct={},We)Object.prototype.hasOwnProperty.call(We,wt)&&(ct[Fe(wt,Le)]=z(Fe,We[wt],Le));return ct},Q=function(Fe){return ht(Fe)?Fe:(Fe=Fe.replace(/[\-_\s]+(.)?/g,(function(We,Le){return Le?Le.toUpperCase():""}))).substr(0,1).toLowerCase()+Fe.substr(1)},Ce=function(Fe){var We=Q(Fe);return We.substr(0,1).toUpperCase()+We.substr(1)},Ee=function(Fe,We){return(function(Le,ct){var Ut=(ct=ct||{}).separator||"_",Xn=ct.split||/(?=[A-Z])/;return Le.split(Xn).join(Ut)})(Fe,We).toLowerCase()},k=Object.prototype.toString,B=function(Fe){return typeof Fe=="function"},ve=function(Fe){return Fe===Object(Fe)},D=function(Fe){return k.call(Fe)=="[object Array]"},xe=function(Fe){return k.call(Fe)=="[object Date]"},Ve=function(Fe){return k.call(Fe)=="[object RegExp]"},De=function(Fe){return k.call(Fe)=="[object Boolean]"},ht=function(Fe){return(Fe-=0)==Fe},ye=function(Fe,We){var Le=We&&"process"in We?We.process:We;return typeof Le!="function"?Fe:function(ct,Ut){return Le(ct,Fe,Ut)}},Re={camelize:Q,decamelize:Ee,pascalize:Ce,depascalize:Ee,camelizeKeys:function(Fe,We){return z(ye(Q,We),Fe)},decamelizeKeys:function(Fe,We){return z(ye(Ee,We),Fe,We)},pascalizeKeys:function(Fe,We){return z(ye(Ce,We),Fe)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};$.exports?$.exports=Re:ue.humps=Re})(y)})).decamelize,w=function($){if(Array.isArray($))return $},R=function($,ue){if(typeof Symbol<"u"&&Symbol.iterator in Object($)){var z=[],Q=!0,Ce=!1,Ee=void 0;try{for(var k,B=$[Symbol.iterator]();!(Q=(k=B.next()).done)&&(z.push(k.value),!ue||z.length!==ue);Q=!0);}catch(ve){Ce=!0,Ee=ve}finally{try{Q||B.return==null||B.return()}finally{if(Ce)throw Ee}}return z}},N=function($,ue){(ue==null||ue>$.length)&&(ue=$.length);for(var z=0,Q=new Array(ue);z<ue;z++)Q[z]=$[z];return Q},Y=function($,ue){if($){if(typeof $=="string")return N($,ue);var z=Object.prototype.toString.call($).slice(8,-1);return z==="Object"&&$.constructor&&(z=$.constructor.name),z==="Map"||z==="Set"?Array.from($):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?N($,ue):void 0}},L=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
167
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},X=function($,ue){return w($)||R($,ue)||Y($,ue)||L()},V=A((function($){function ue(){return $.exports=ue=Object.assign||function(z){for(var Q=1;Q<arguments.length;Q++){var Ce=arguments[Q];for(var Ee in Ce)Object.prototype.hasOwnProperty.call(Ce,Ee)&&(z[Ee]=Ce[Ee])}return z},ue.apply(this,arguments)}$.exports=ue})),re=function($,ue){if($==null)return{};var z,Q,Ce={},Ee=Object.keys($);for(Q=0;Q<Ee.length;Q++)z=Ee[Q],ue.indexOf(z)>=0||(Ce[z]=$[z]);return Ce},U=function($,ue){if($==null)return{};var z,Q,Ce=re($,ue);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols($);for(Q=0;Q<Ee.length;Q++)z=Ee[Q],ue.indexOf(z)>=0||Object.prototype.propertyIsEnumerable.call($,z)&&(Ce[z]=$[z])}return Ce},J=e.createContext(null);function de($){var ue=$.children,z=ue===void 0?"":ue,Q=U($,["children"]);return typeof z!="string"&&(z=l.renderToString(z)),f.default.createElement("template",V({},Q,{dangerouslySetInnerHTML:{__html:z}}))}function ae($){var ue=$.root,z=$.children,Q=z===void 0?null:z;return r.createPortal(Q,ue)}function ie($){var ue=e.forwardRef((function(z,Q){var Ce,Ee,k=z.mode,B=k===void 0?"open":k,ve=z.delegatesFocus,D=ve!==void 0&&ve,xe=z.styleSheets,Ve=xe===void 0?[]:xe,De=z.ssr,ht=De!==void 0&&De,ye=z.children,Re=U(z,["mode","delegatesFocus","styleSheets","ssr","children"]),Fe=(Ce=Q,Ee=e.useRef(Ce&&Ce.current),e.useEffect((function(){Ce&&(Ce.current=Ee.current)}),[Ce]),Ee),We=e.useState(null),Le=X(We,2),ct=Le[0],Ut=Le[1],Xn="node_".concat(B).concat(D);return e.useLayoutEffect((function(){if(Fe.current)try{if(typeof Q=="function"&&Q(Fe.current),ht){var wt=Fe.current.shadowRoot;return void Ut(wt)}var nn=Fe.current.attachShadow({mode:B,delegatesFocus:D});Ve.length>0&&(nn.adoptedStyleSheets=Ve),Ut(nn)}catch(Yi){(function(Mr){var Dn=Mr.error,rn=Mr.styleSheets,xt=Mr.root;switch(Dn.name){case"NotSupportedError":rn.length>0&&(xt.adoptedStyleSheets=rn);break;default:throw Dn}})({error:Yi,styleSheets:Ve,root:ct})}}),[Q,Fe,Ve]),f.default.createElement(f.default.Fragment,null,f.default.createElement($.tag,V({key:Xn,ref:Fe},Re),(ct||ht)&&f.default.createElement(J.Provider,{value:ct},ht?f.default.createElement(de,{shadowroot:B,shadowrootmode:B},$.render({root:ct,ssr:ht,children:ye})):f.default.createElement(ae,{root:ct},$.render({root:ct,ssr:ht,children:ye})))))}));return ue.propTypes={mode:v.default.oneOf(["open","closed"]),delegatesFocus:v.default.bool,styleSheets:v.default.arrayOf(v.default.instanceOf(globalThis.CSSStyleSheet)),ssr:v.default.bool,children:v.default.node},ue}de.propTypes={children:v.default.oneOfType([v.default.string,v.default.node])},ae.propTypes={root:v.default.object.isRequired,children:v.default.node};var H=new Map;function Ae(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(Q){return Q.children};return new Proxy($,{get:function(Q,Ce){var Ee=C(Ce,{separator:"-"}),k="".concat(ue,"-").concat(Ee);return H.has(k)||H.set(k,ie({tag:Ee,render:z})),H.get(k)}})}Ae();var ce=new WeakMap,_e=Ae({},"emotion",(function($){var ue=$.root,z=$.children,Q=ce.get(ue)||(function(){var Ce=g.default({container:ue,key:"react-shadow"});return ce.set(ue,Ce),Ce})();return f.default.createElement(t.CacheProvider,{value:Q},f.default.createElement(f.default.Fragment,null,z))}));return rm.default=_e,rm}var RH=OH();const FH=zu(RH),im=":host",IH=f0({cssVarsRoot:im,conditions:{light:`${im} &, .light &`},preflight:{scope:im},globalCss:{[im]:A0.globalCss?.html??{}},theme:{tokens:{fonts:{heading:{value:"'Estedad-FD', system-ui, sans-serif"},body:{value:"'Estedad-FD', system-ui, sans-serif"}},fontWeights:{100:{value:"100"},200:{value:"200"},300:{value:"300"},400:{value:"400"},500:{value:"500"},600:{value:"600"},700:{value:"700"},800:{value:"800"},900:{value:"900"},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"}}}}}),NH=uS(A0,IH);function PH({children:e}){const[t,n]=Te.useState(null),[r,l]=Te.useState(null);return Te.useEffect(()=>{if(!t?.shadowRoot||r)return;const s=Qm({key:"root",container:t.shadowRoot});l(s)},[t,r]),ne.jsx(FH.div,{ref:n,children:t&&r&&ne.jsx(
|
167
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},X=function($,ue){return w($)||R($,ue)||Y($,ue)||L()},V=A((function($){function ue(){return $.exports=ue=Object.assign||function(z){for(var Q=1;Q<arguments.length;Q++){var Ce=arguments[Q];for(var Ee in Ce)Object.prototype.hasOwnProperty.call(Ce,Ee)&&(z[Ee]=Ce[Ee])}return z},ue.apply(this,arguments)}$.exports=ue})),re=function($,ue){if($==null)return{};var z,Q,Ce={},Ee=Object.keys($);for(Q=0;Q<Ee.length;Q++)z=Ee[Q],ue.indexOf(z)>=0||(Ce[z]=$[z]);return Ce},U=function($,ue){if($==null)return{};var z,Q,Ce=re($,ue);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols($);for(Q=0;Q<Ee.length;Q++)z=Ee[Q],ue.indexOf(z)>=0||Object.prototype.propertyIsEnumerable.call($,z)&&(Ce[z]=$[z])}return Ce},J=e.createContext(null);function de($){var ue=$.children,z=ue===void 0?"":ue,Q=U($,["children"]);return typeof z!="string"&&(z=l.renderToString(z)),f.default.createElement("template",V({},Q,{dangerouslySetInnerHTML:{__html:z}}))}function ae($){var ue=$.root,z=$.children,Q=z===void 0?null:z;return r.createPortal(Q,ue)}function ie($){var ue=e.forwardRef((function(z,Q){var Ce,Ee,k=z.mode,B=k===void 0?"open":k,ve=z.delegatesFocus,D=ve!==void 0&&ve,xe=z.styleSheets,Ve=xe===void 0?[]:xe,De=z.ssr,ht=De!==void 0&&De,ye=z.children,Re=U(z,["mode","delegatesFocus","styleSheets","ssr","children"]),Fe=(Ce=Q,Ee=e.useRef(Ce&&Ce.current),e.useEffect((function(){Ce&&(Ce.current=Ee.current)}),[Ce]),Ee),We=e.useState(null),Le=X(We,2),ct=Le[0],Ut=Le[1],Xn="node_".concat(B).concat(D);return e.useLayoutEffect((function(){if(Fe.current)try{if(typeof Q=="function"&&Q(Fe.current),ht){var wt=Fe.current.shadowRoot;return void Ut(wt)}var nn=Fe.current.attachShadow({mode:B,delegatesFocus:D});Ve.length>0&&(nn.adoptedStyleSheets=Ve),Ut(nn)}catch(Yi){(function(Mr){var Dn=Mr.error,rn=Mr.styleSheets,xt=Mr.root;switch(Dn.name){case"NotSupportedError":rn.length>0&&(xt.adoptedStyleSheets=rn);break;default:throw Dn}})({error:Yi,styleSheets:Ve,root:ct})}}),[Q,Fe,Ve]),f.default.createElement(f.default.Fragment,null,f.default.createElement($.tag,V({key:Xn,ref:Fe},Re),(ct||ht)&&f.default.createElement(J.Provider,{value:ct},ht?f.default.createElement(de,{shadowroot:B,shadowrootmode:B},$.render({root:ct,ssr:ht,children:ye})):f.default.createElement(ae,{root:ct},$.render({root:ct,ssr:ht,children:ye})))))}));return ue.propTypes={mode:v.default.oneOf(["open","closed"]),delegatesFocus:v.default.bool,styleSheets:v.default.arrayOf(v.default.instanceOf(globalThis.CSSStyleSheet)),ssr:v.default.bool,children:v.default.node},ue}de.propTypes={children:v.default.oneOfType([v.default.string,v.default.node])},ae.propTypes={root:v.default.object.isRequired,children:v.default.node};var H=new Map;function Ae(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(Q){return Q.children};return new Proxy($,{get:function(Q,Ce){var Ee=C(Ce,{separator:"-"}),k="".concat(ue,"-").concat(Ee);return H.has(k)||H.set(k,ie({tag:Ee,render:z})),H.get(k)}})}Ae();var ce=new WeakMap,_e=Ae({},"emotion",(function($){var ue=$.root,z=$.children,Q=ce.get(ue)||(function(){var Ce=g.default({container:ue,key:"react-shadow"});return ce.set(ue,Ce),Ce})();return f.default.createElement(t.CacheProvider,{value:Q},f.default.createElement(f.default.Fragment,null,z))}));return rm.default=_e,rm}var RH=OH();const FH=zu(RH),im=":host",IH=f0({cssVarsRoot:im,conditions:{light:`${im} &, .light &`},preflight:{scope:im},globalCss:{[im]:A0.globalCss?.html??{}},theme:{tokens:{fonts:{heading:{value:"'Estedad-FD', system-ui, sans-serif"},body:{value:"'Estedad-FD', system-ui, sans-serif"}},fontWeights:{100:{value:"100"},200:{value:"200"},300:{value:"300"},400:{value:"400"},500:{value:"500"},600:{value:"600"},700:{value:"700"},800:{value:"800"},900:{value:"900"},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"}}}}}),NH=uS(A0,IH);function PH({children:e}){const[t,n]=Te.useState(null),[r,l]=Te.useState(null);return Te.useEffect(()=>{if(!t?.shadowRoot||r)return;const s=Qm({key:"root",container:t.shadowRoot});l(s)},[t,r]),ne.jsx(FH.div,{ref:n,children:t&&r&&ne.jsx(aF,{value:()=>t.shadowRoot??document,children:ne.jsx(F1,{value:r,children:ne.jsx(x_,{value:NH,children:ne.jsx(MW,{children:e})})})})})}class zH extends Te.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error("ErrorBoundary caught an error:",t,n),uh.captureException(t)}render(){return this.state.hasError?null:this.props.children}}function DH(){console.log("[DoriWidget] Initializing Dori widget...");const e=document.createElement("div");e.id="mori-react-widget-host",document.querySelector("#dori-widget-container")?.appendChild(e);const r=iT.createRoot(e);return console.log("[DoriWidget] Rendering React app into widget container..."),r.render(ne.jsx(n1.StrictMode,{children:ne.jsx(zH,{children:ne.jsx(PH,{children:ne.jsx(xH,{})})})})),console.log("[DoriWidget] Dori widget initialized successfully."),()=>{console.log("[DoriWidget] Unmounting Dori widget..."),r.unmount()}}ac("initializeDoriWidget",DH)()})();
|
168
168
|
//# sourceMappingURL=widget.js.map
|