const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-W7WJGI2T-Q-bjWDrT.js","./iframe-CLehcUMy.js","./preload-helper-C1FmrZbK.js","./iframe-DvUCq3K3.css","./formatter-EIJCOSYU-CJ64dAyo.js","./WithTooltip-65CFNBJE-Bq6W9d0c.js","./Color-23OOGO2C-DH46zxA2.js"])))=>i.map(i=>d[i]); var mD=Object.defineProperty;var yD=(e,t,r)=>t in e?mD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Wr=(e,t,r)=>yD(e,typeof t!="symbol"?t+"":t,r);import{_ as On}from"./preload-helper-C1FmrZbK.js";import{D as dn,E as bD,F as vD,z as X1,w as ED,L as SD,P as wD,r as xD,o as $D,J as CD,O as _D,K as Df,y as J1,t as TD,q as OD,k as AD,v as RD,u as DD,m as PD,B as kD,A as FD,C as ID,n as LD,T as ND,Q as MD,V as BD,U as jD,l as HD,N as UD,I as zD,j as Q1,e as Tt,g as Bs,i as Lt,f as bt,H as KD,R as WD,b as GD,S as VD,M as Z1,a as zn,x as Zm,c as eb,s as YD,d as Pf}from"./iframe-CLehcUMy.js";function qD(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function XD(e,t){let r={},n=Object.keys(e);for(let o=0;osl(d,p,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case HD:case jD:case BD:case MD:case ND:case LD:case ID:case FD:case kD:case PD:case DD:case RD:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;st?e.type!=="docs":e.type==="docs",_play:(e,t)=>{var r,n;return t?e.type!=="story"||!((r=e.tags)!=null&&r.includes(zi.PLAY_FN)):e.type==="story"&&!!((n=e.tags)!=null&&n.includes(zi.PLAY_FN))},_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},iP=e=>(t,r)=>{var n,o;return r?!((n=t.tags)!=null&&n.includes(e)):!!((o=t.tags)!=null&&o.includes(e))},Zx=Tt({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let i=o.length;if(i===0)return"";let a="",l=0,s=0;e:for(;s>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=s+1,a+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=i)throw new Error("URI malformed");let c=o.charCodeAt(s)&1023;l=s+1,u=65536+((u&1023)<<10|c),a+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""};e.defaultValueSerializer=r;var n=i=>i instanceof Date;e.defaultShouldSerializeObject=n;var o=i=>i;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),e$=Tt({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=c;var t=e0(),r=Zx();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function o(d,f,p,y,b){if(n(f))return d;let S=d[f];return typeof S=="object"&&S!==null?S:!y&&(b||typeof p=="number"||typeof p=="string"&&p*0===0&&p.indexOf(".")===-1)?d[f]=[]:d[f]={}}var i=20,a="[]",l="[",s="]",u=".";function c(d,f,p=0,y,b){let{nestingSyntax:S=t.defaultOptions.nestingSyntax,arrayRepeat:g=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:E=t.defaultOptions.nesting,delimiter:w=t.defaultOptions.delimiter,valueSerializer:$=t.defaultOptions.valueSerializer,shouldSerializeObject:x=t.defaultOptions.shouldSerializeObject}=f,C=typeof w=="number"?String.fromCharCode(w):w,T=b===!0&&g,A=S==="dot"||S==="js"&&!b;if(p>i)return"";let O="",_=!0,I=!1;for(let L in d){let M=d[L];if(M===void 0)continue;let U;y?(U=y,T?v==="bracket"&&(U+=a):A?(U+=u,U+=L):(U+=l,U+=L,U+=s)):U=L,_||(O+=C),typeof M=="object"&&M!==null&&!x(M)?(I=M.pop!==void 0,(E||g&&I)&&(O+=c(M,f,p+1,U,I))):(O+=(0,r.encodeString)(U),O+="=",O+=$(M,L)),_&&(_=!1)}return O}}}),aP=Tt({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;var t=12,r=0,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(l){let s=l.indexOf("%");if(s===-1)return l;let u=l.length,c="",d=0,f=0,p=s,y=t;for(;s>-1&&s>10),56320+(f&1023)),f=0,d=s+3,s=p=l.indexOf("%",d);else{if(y===r)return null;if(s+=3,s{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=o;var i=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=i;var a=/\+/g,l=function(){};l.prototype=Object.create(null);function s(c,d,f,p,y){let b=c.substring(d,f);return p&&(b=b.replace(a," ")),y&&(b=(0,n.decodeURIComponent)(b)||b),b}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:p=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=r.defaultOptions.arrayRepeatSyntax,nesting:b=r.defaultOptions.nesting,arrayRepeat:S=r.defaultOptions.arrayRepeat,nestingSyntax:g=r.defaultOptions.nestingSyntax,delimiter:v=r.defaultOptions.delimiter}=d??{},E=typeof v=="string"?v.charCodeAt(0):v,w=g==="js",$=new l;if(typeof c!="string")return $;let x=c.length,C="",T=-1,A=-1,O=-1,_=$,I,L="",M="",U=!1,k=!1,F=!1,P=!1,B=!1,D=!1,z=0,V=-1,Z=-1,q=-1;for(let K=0;KT,D||(A=K),O!==A-1&&(M=s(c,O+1,V>-1?V:A,F,U),L=p(M),I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,w&&B,void 0))),D||L!==""){D&&(C=c.slice(A+1,K),P&&(C=C.replace(a," ")),k&&(C=(0,n.decodeURIComponent)(C)||C));let X=f(C,L);if(S){let ee=_[L];ee===void 0?V>-1?_[L]=[X]:_[L]=X:ee.pop?ee.push(X):_[L]=[ee,X]}else _[L]=X}C="",T=K,A=K,U=!1,k=!1,F=!1,P=!1,B=!1,V=-1,O=K,_=$,I=void 0,L=""}else z===93?(S&&y==="bracket"&&q===91&&(V=Z),b&&(g==="index"||w)&&A<=T&&(O!==Z&&(M=s(c,O+1,K,F,U),L=p(M),I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,void 0,void 0)),I=L,F=!1,U=!1),O=K,B=!1)):z===46?b&&(g==="dot"||w)&&A<=T&&(O!==Z&&(M=s(c,O+1,K,F,U),L=p(M),I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,w)),I=L,F=!1,U=!1),B=!0,O=K):z===91?b&&(g==="index"||w)&&A<=T&&(O!==Z&&(M=s(c,O+1,K,F,U),L=p(M),w&&I!==void 0&&(_=(0,t.getDeepObject)(_,I,L,w)),I=L,F=!1,U=!1,B=!1),O=K):z===61?A<=T?A=K:k=!0:z===43?A>T?P=!0:F=!0:z===37&&(A>T?k=!0:U=!0);Z=K,q=z}return $}}}),sP=Tt({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=e$();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}}}),t$=Tt({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(i,a,l,s){s===void 0&&(s=l);var u=Object.getOwnPropertyDescriptor(a,l);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(i,s,u)}:function(i,a,l,s){s===void 0&&(s=l),i[s]=a[l]}),r=e&&e.__exportStar||function(i,a){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&t(a,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=lP();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var o=sP();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return o.stringify}}),r(e0(),e)}}),uP="Invariant failed";function Bh(e,t){if(!e)throw new Error(uP)}var ai=Tt({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,o,i){function a(u,c){if(!o[u]){if(!n[u]){var d=typeof Bs=="function"&&Bs;if(!c&&d)return d(u,!0);if(l)return l(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=o[u]={exports:{}};n[u][0].call(p.exports,function(y){var b=n[u][1][y];return a(b||y)},p,p.exports,r,n,o,i)}return o[u].exports}for(var l=typeof Bs=="function"&&Bs,s=0;s=0)return this.lastItem=this.list[l],this.list[l].val},i.prototype.set=function(a,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,a)?(this.lastItem.val=l,this):(s=this.indexOf(a),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:a,val:l},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(a){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,a)&&(this.lastItem=void 0),l=this.indexOf(a),l>=0)return this.size--,this.list.splice(l,1)[0]},i.prototype.has=function(a){var l;return this.lastItem&&this.isEqual(this.lastItem.key,a)?!0:(l=this.indexOf(a),l>=0?(this.lastItem=this.list[l],!0):!1)},i.prototype.forEach=function(a,l){var s;for(s=0;s0&&(v[g]={cacheItem:y,arg:arguments[g]},E?a(d,v):d.push(v),d.length>u&&l(d.shift())),p.wasMemoized=E,p.numArgs=g+1,S};return p.limit=u,p.wasMemoized=!1,p.cache=c,p.lru=d,p}};function a(u,c){var d=u.length,f=c.length,p,y,b;for(y=0;y=0&&(d=u[p],f=d.cacheItem.get(d.arg),!f||!f.size);p--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function gr(e){for(var t=[],r=1;r{let r=Object.getPrototypeOf(e);return!r||t(r)?r:r$(r,t)},gP=e=>!!(typeof e=="object"&&e&&r$(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),mP=e=>{if(gP(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e};function t0(e,t={}){let r={...fP,...t},n=function(...o){var d,f;if(t.implicit){let p=(d="__STORYBOOK_PREVIEW__"in rb?rb.__STORYBOOK_PREVIEW__:void 0)==null?void 0:d.storyRenders.find(y=>y.phase==="playing"||y.phase==="rendering");if(p){let y=!((f=globalThis==null?void 0:globalThis.FEATURES)!=null&&f.disallowImplicitActionsInRenderV8),b=new pP({phase:p.phase,name:e,deprecated:y});if(y)console.warn(b);else throw b}}let i=hP.getChannel(),a=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(mP),u=o.length>1?s:s[0],c={id:a,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};i.emit(dP,c)};return n.isAction=!0,n.implicit=t.implicit,n}var hn={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},yP={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},n$=Object.entries(yP);function vd(e){return String(e)}vd.open="";vd.close="";n$.reduce((e,[t])=>(e[t]=vd,e),{isColorSupported:!1});function bP(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function vP(e=!1){let t=bP(e),r=(a,l,s,u)=>{let c="",d=0;do c+=a.substring(d,u)+s,d=u+l.length,u=a.indexOf(l,d);while(~u);return c+a.substring(d)},n=(a,l,s=a)=>{let u=c=>{let d=String(c),f=d.indexOf(l,a.length);return~f?a+r(d,l,s,f)+l:a+d+l};return u.open=a,u.close=l,u},o={isColorSupported:t},i=a=>`\x1B[${a}m`;for(let[a,l]of n$)o[a]=t?n(i(l[0]),i(l[1]),l[2]):vd;return o}var wn=vP();function o$(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}function EP(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function hs(e,t,r,n,o,i,a=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(l+=c,s++===t.maxWidth){l+="…";break}let d=i(u.value[0],t,c,n,o),f=i(u.value[1],t,c,n,o);l+=d+a+f,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}function r0(e,t,r,n,o,i){let a="",l=0,s=e.next();if(!s.done){a+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(a+=u,l++===t.maxWidth){a+="…";break}a+=i(s.value,t,u,n,o),s=e.next(),s.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+r}return a}function yc(e,t,r,n,o,i){let a="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=u=>u instanceof DataView,s=l(e)?e.byteLength:e.length;if(s>0){a+=t.spacingOuter;let u=r+t.indent;for(let c=0;c0){a+=t.spacingOuter;let s=r+t.indent;for(let u=0;u{let a=e.toString();if(a==="ArrayContaining"||a==="ArrayNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+If}[${yc(e.sample,t,r,n,o,i)}]`;if(a==="ObjectContaining"||a==="ObjectNotContaining")return++n>t.maxDepth?`[${a}]`:`${a+If}{${n0(e.sample,t,r,n,o,i)}}`;if(a==="StringMatching"||a==="StringNotMatching"||a==="StringContaining"||a==="StringNotContaining")return a+If+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},xP=e=>e&&e.$$typeof===SP,$P={serialize:wP,test:xP},CP=" ",i$=new Set(["DOMStringMap","NamedNodeMap"]),_P=/^(?:HTML\w*Collection|NodeList)$/;function TP(e){return i$.has(e)||_P.test(e)}var OP=e=>e&&e.constructor&&!!e.constructor.name&&TP(e.constructor.name);function AP(e){return e.constructor.name==="NamedNodeMap"}var RP=(e,t,r,n,o,i)=>{let a=e.constructor.name;return++n>t.maxDepth?`[${a}]`:(t.min?"":a+CP)+(i$.has(a)?`{${n0(AP(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,i)}}`:`[${yc([...e],t,r,n,o,i)}]`)},DP={serialize:RP,test:OP};function a$(e){return e.replaceAll("<","<").replaceAll(">",">")}function o0(e,t,r,n,o,i,a){let l=n+r.indent,s=r.colors;return e.map(u=>{let c=t[u],d=a(c,r,l,o,i);return typeof c!="string"&&(d.includes(` `)&&(d=r.spacingOuter+l+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${d}${s.value.close}`}).join("")}function i0(e,t,r,n,o,i){return e.map(a=>t.spacingOuter+r+(typeof a=="string"?l$(a,t):i(a,t,r,n,o))).join("")}function l$(e,t){let r=t.colors.content;return r.open+a$(e)+r.close}function PP(e,t){let r=t.colors.comment;return`${r.open}${r.close}`}function a0(e,t,r,n,o){let i=n.colors.tag;return`${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}${i.close}`}function l0(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}var kP=1,s$=3,u$=8,c$=11,FP=/^(?:(?:HTML|SVG)\w*)?Element$/;function IP(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}function LP(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||IP(e);return r===kP&&(FP.test(t)||o)||r===s$&&t==="Text"||r===u$&&t==="Comment"||r===c$&&t==="DocumentFragment"}var NP=e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&LP(e)};function MP(e){return e.nodeType===s$}function BP(e){return e.nodeType===u$}function Lf(e){return e.nodeType===c$}var jP=(e,t,r,n,o,i)=>{if(MP(e))return l$(e.data,t);if(BP(e))return PP(e.data,t);let a=Lf(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?l0(a,t):a0(a,o0(Lf(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Lf(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,i),i0(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},HP={serialize:jP,test:NP},UP="@@__IMMUTABLE_ITERABLE__@@",zP="@@__IMMUTABLE_LIST__@@",KP="@@__IMMUTABLE_KEYED__@@",WP="@@__IMMUTABLE_MAP__@@",nb="@@__IMMUTABLE_ORDERED__@@",GP="@@__IMMUTABLE_RECORD__@@",VP="@@__IMMUTABLE_SEQ__@@",YP="@@__IMMUTABLE_SET__@@",qP="@@__IMMUTABLE_STACK__@@",ea=e=>`Immutable.${e}`,Ed=e=>`[${e}]`,kl=" ",ob="…";function XP(e,t,r,n,o,i,a){return++n>t.maxDepth?Ed(ea(a)):`${ea(a)+kl}{${hs(e.entries(),t,r,n,o,i)}}`}function JP(e){let t=0;return{next(){if(tt.maxDepth?Ed(a):`${a+kl}{${hs(JP(e),t,r,n,o,i)}}`}function ZP(e,t,r,n,o,i){let a=ea("Seq");return++n>t.maxDepth?Ed(a):e[KP]?`${a+kl}{${e._iter||e._object?hs(e.entries(),t,r,n,o,i):ob}}`:`${a+kl}[${e._iter||e._array||e._collection||e._iterable?r0(e.values(),t,r,n,o,i):ob}]`}function Nf(e,t,r,n,o,i,a){return++n>t.maxDepth?Ed(ea(a)):`${ea(a)+kl}[${r0(e.values(),t,r,n,o,i)}]`}var e4=(e,t,r,n,o,i)=>e[WP]?XP(e,t,r,n,o,i,e[nb]?"OrderedMap":"Map"):e[zP]?Nf(e,t,r,n,o,i,"List"):e[YP]?Nf(e,t,r,n,o,i,e[nb]?"OrderedSet":"Set"):e[qP]?Nf(e,t,r,n,o,i,"Stack"):e[VP]?ZP(e,t,r,n,o,i):QP(e,t,r,n,o,i),t4=e=>e&&(e[UP]===!0||e[GP]===!0),r4={serialize:e4,test:t4};function d$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ib={exports:{}},Oe={},ab;function n4(){if(ab)return Oe;ab=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var S=b.$$typeof;switch(S){case e:switch(b=b.type,b){case r:case o:case n:case s:case u:case f:return b;default:switch(b=b&&b.$$typeof,b){case a:case l:case d:case c:return b;case i:return b;default:return S}}case t:return S}}}return Oe.ContextConsumer=i,Oe.ContextProvider=a,Oe.Element=e,Oe.ForwardRef=l,Oe.Fragment=r,Oe.Lazy=d,Oe.Memo=c,Oe.Portal=t,Oe.Profiler=o,Oe.StrictMode=n,Oe.Suspense=s,Oe.SuspenseList=u,Oe.isContextConsumer=function(b){return y(b)===i},Oe.isContextProvider=function(b){return y(b)===a},Oe.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Oe.isForwardRef=function(b){return y(b)===l},Oe.isFragment=function(b){return y(b)===r},Oe.isLazy=function(b){return y(b)===d},Oe.isMemo=function(b){return y(b)===c},Oe.isPortal=function(b){return y(b)===t},Oe.isProfiler=function(b){return y(b)===o},Oe.isStrictMode=function(b){return y(b)===n},Oe.isSuspense=function(b){return y(b)===s},Oe.isSuspenseList=function(b){return y(b)===u},Oe.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===o||b===n||b===s||b===u||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===c||b.$$typeof===a||b.$$typeof===i||b.$$typeof===l||b.$$typeof===p||b.getModuleId!==void 0)},Oe.typeOf=y,Oe}var lb;function o4(){return lb||(lb=1,ib.exports=n4()),ib.exports}var f$=o4(),i4=d$(f$),a4=o$({__proto__:null,default:i4},[f$]),sb={exports:{}},$e={},ub;function l4(){if(ub)return $e;ub=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function b(S){if(typeof S=="object"&&S!==null){var g=S.$$typeof;switch(g){case e:switch(S=S.type,S){case r:case o:case n:case u:case c:return S;default:switch(S=S&&S.$$typeof,S){case l:case a:case s:case f:case d:case i:return S;default:return g}}case t:return g}}}return $e.ContextConsumer=a,$e.ContextProvider=i,$e.Element=e,$e.ForwardRef=s,$e.Fragment=r,$e.Lazy=f,$e.Memo=d,$e.Portal=t,$e.Profiler=o,$e.StrictMode=n,$e.Suspense=u,$e.SuspenseList=c,$e.isAsyncMode=function(){return!1},$e.isConcurrentMode=function(){return!1},$e.isContextConsumer=function(S){return b(S)===a},$e.isContextProvider=function(S){return b(S)===i},$e.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},$e.isForwardRef=function(S){return b(S)===s},$e.isFragment=function(S){return b(S)===r},$e.isLazy=function(S){return b(S)===f},$e.isMemo=function(S){return b(S)===d},$e.isPortal=function(S){return b(S)===t},$e.isProfiler=function(S){return b(S)===o},$e.isStrictMode=function(S){return b(S)===n},$e.isSuspense=function(S){return b(S)===u},$e.isSuspenseList=function(S){return b(S)===c},$e.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===o||S===n||S===u||S===c||S===p||typeof S=="object"&&S!==null&&(S.$$typeof===f||S.$$typeof===d||S.$$typeof===i||S.$$typeof===a||S.$$typeof===s||S.$$typeof===y||S.getModuleId!==void 0)},$e.typeOf=b,$e}var cb;function s4(){return cb||(cb=1,sb.exports=l4()),sb.exports}var p$=s4(),u4=d$(p$),c4=o$({__proto__:null,default:u4},[p$]),d4=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Ao=Object.fromEntries(d4.map(e=>[e,t=>c4[e](t)||a4[e](t)]));function h$(e,t=[]){if(Array.isArray(e))for(let r of e)h$(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function db(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Ao.isFragment(e))return"React.Fragment";if(Ao.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Ao.isContextProvider(e))return"Context.Provider";if(Ao.isContextConsumer(e))return"Context.Consumer";if(Ao.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Ao.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}function f4(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var p4=(e,t,r,n,o,i)=>++n>t.maxDepth?l0(db(e),t):a0(db(e),o0(f4(e),e.props,t,r+t.indent,n,o,i),i0(h$(e.props.children),t,r+t.indent,n,o,i),t,r),h4=e=>e!=null&&Ao.isElement(e),g4={serialize:p4,test:h4},m4=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function y4(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var b4=(e,t,r,n,o,i)=>++n>t.maxDepth?l0(e.type,t):a0(e.type,e.props?o0(y4(e),e.props,t,r+t.indent,n,o,i):"",e.children?i0(e.children,t,r+t.indent,n,o,i):"",t,r),v4=e=>e&&e.$$typeof===m4,E4={serialize:b4,test:v4},g$=Object.prototype.toString,S4=Date.prototype.toISOString,w4=Error.prototype.toString,fb=RegExp.prototype.toString;function Nu(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function x4(e){return typeof window<"u"&&e===window}var $4=/^Symbol\((.*)\)(.*)$/,C4=/\n/g,m$=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}};function _4(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function T4(e){return Object.is(e,-0)?"-0":String(e)}function O4(e){return`${e}n`}function pb(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function hb(e){return String(e).replace($4,"Symbol($1)")}function gb(e){return`[${w4.call(e)}]`}function y$(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return T4(e);if(o==="bigint")return O4(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return pb(e,t);if(o==="symbol")return hb(e);let i=g$.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?pb(e,t):i==="[object Symbol]"?hb(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":S4.call(e):i==="[object Error]"?gb(e):i==="[object RegExp]"?r?fb.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):fb.call(e):e instanceof Error?gb(e):null}function b$(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let a=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!a&&e.toJSON&&typeof e.toJSON=="function"&&!i)return Kn(e.toJSON(),t,r,n,o,!0);let s=g$.call(e);return s==="[object Arguments]"?a?"[Arguments]":`${l?"":"Arguments "}[${yc(e,t,r,n,o,Kn)}]`:_4(s)?a?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${yc(e,t,r,n,o,Kn)}]`:s==="[object Map]"?a?"[Map]":`Map {${hs(e.entries(),t,r,n,o,Kn," => ")}}`:s==="[object Set]"?a?"[Set]":`Set {${r0(e.values(),t,r,n,o,Kn)}}`:a||x4(e)?`[${Nu(e)}]`:`${l||!t.printBasicPrototype&&Nu(e)==="Object"?"":`${Nu(e)} `}{${n0(e,t,r,n,o,Kn)}}`}var A4={test:e=>e&&e instanceof Error,serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let a=++n>t.maxDepth,{message:l,cause:s,...u}=e,c={message:l,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},d=e.name!=="Error"?e.name:Nu(e);return a?`[${d}]`:`${d} {${hs(Object.entries(c).values(),t,r,n,o,i)}}`}};function R4(e){return e.serialize!=null}function v$(e,t,r,n,o,i){let a;try{a=R4(e)?e.serialize(t,r,n,o,i,Kn):e.print(t,l=>Kn(l,r,n,o,i),l=>{let s=n+r.indent;return s+l.replaceAll(C4,` ${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new m$(l.message,l.stack)}if(typeof a!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof a}".`);return a}function E$(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new m$(n.message,n.stack)}return null}function Kn(e,t,r,n,o,i){let a=E$(t.plugins,e);if(a!==null)return v$(a,e,t,r,n,o);let l=y$(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:b$(e,t,r,n,o,i)}var s0={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},S$=Object.keys(s0),Rr={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:s0};function D4(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Rr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function P4(){return S$.reduce((e,t)=>{let r=s0[t],n=r&&wn[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function k4(){return S$.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function w$(e){return(e==null?void 0:e.printFunctionName)??Rr.printFunctionName}function x$(e){return(e==null?void 0:e.escapeRegex)??Rr.escapeRegex}function $$(e){return(e==null?void 0:e.escapeString)??Rr.escapeString}function mb(e){return{callToJSON:(e==null?void 0:e.callToJSON)??Rr.callToJSON,colors:e!=null&&e.highlight?P4():k4(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:Rr.compareKeys,escapeRegex:x$(e),escapeString:$$(e),indent:e!=null&&e.min?"":F4((e==null?void 0:e.indent)??Rr.indent),maxDepth:(e==null?void 0:e.maxDepth)??Rr.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??Rr.maxWidth,min:(e==null?void 0:e.min)??Rr.min,plugins:(e==null?void 0:e.plugins)??Rr.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:w$(e),spacingInner:e!=null&&e.min?" ":` `,spacingOuter:e!=null&&e.min?"":` `}}function F4(e){return Array.from({length:e+1}).join(" ")}function rn(e,t){if(t&&(D4(t),t.plugins)){let n=E$(t.plugins,e);if(n!==null)return v$(n,e,mb(t),"",0,[])}let r=y$(e,w$(t),x$(t),$$(t));return r!==null?r:b$(e,mb(t),"",0,[])}var u0={AsymmetricMatcher:$P,DOMCollection:DP,DOMElement:HP,Immutable:r4,ReactElement:g4,ReactTestComponent:E4,Error:A4},yb={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},I4={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ta="…";function L4(e,t){let r=yb[I4[t]]||yb[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function N4({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:a=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},c){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(a),truncate:Number(s),seen:l,inspect:c,stylize:u};return d.colors&&(d.stylize=L4),d}function M4(e){return e>="\uD800"&&e<="\uDBFF"}function ho(e,t,r=ta){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&M4(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function Br(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,a="",l="",s="";for(let u=0;ui&&a.length+s.length<=i||!c&&!d&&b>i||(l=c?"":r(e[u+1],t)+(d?"":n),!c&&d&&b>i&&y+l.length>i))break;if(a+=p,!c&&!d&&y+l.length>=i){s=`${ta}(${e.length-u-1})`;break}s=""}return`${a}${s}`}function B4(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Fl([e,t],r){return r.truncate-=2,typeof e=="string"?e=B4(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function j4(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Br(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Br(r.map(i=>[i,e[i]]),t,Fl)),`[ ${n}${o?`, ${o}`:""} ]`}var H4=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function gn(e,t){let r=H4(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let a=0;a[a,e[a]]),t,Fl)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function U4(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${ho(n[1],t.truncate-o.length-1)}`,"date")}function bb(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${ho(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function z4([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function K4(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}function W4(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Br(K4(e),t,z4)} }`)}var G4=Number.isNaN||(e=>e!==e);function vb(e,t){return G4(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(ho(String(e),t.truncate),"number")}function Eb(e,t){let r=ho(e.toString(),t.truncate-1);return r!==ta&&(r+="n"),t.stylize(r,"bigint")}function V4(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${ho(o,n)}/${r}`,"regexp")}function Y4(e){let t=[];return e.forEach(r=>{t.push(r)}),t}function q4(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Br(Y4(e),t)} }`)}var Sb=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),X4={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},J4=16;function Q4(e){return X4[e]||`\\u${`0000${e.charCodeAt(0).toString(J4)}`.slice(-4)}`}function wb(e,t){return Sb.test(e)&&(e=e.replace(Sb,Q4)),t.stylize(`'${ho(e,t.truncate-2)}'`,"string")}function xb(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var C$=()=>"Promise{…}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(C$=(n,o)=>{let[i,a]=e(n);return i===t?"Promise{}":`Promise${i===r?"!":""}{${o.inspect(a,o)}}`})}catch{}var Z4=C$;function Mu(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Br(r.map(l=>[l,e[l]]),t,Fl),i=Br(n.map(l=>[l,e[l]]),t,Fl);t.seen.pop();let a="";return o&&i&&(a=", "),`{ ${o}${a}${i} }`}var Mf=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function ek(e,t){let r="";return Mf&&Mf in e&&(r=e[Mf]),r=r||e.constructor.name,(!r||r==="_class")&&(r=""),t.truncate-=r.length,`${r}${Mu(e,t)}`}function tk(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Br(e,t)} ]`)}var rk=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function nk(e,t){let r=Object.getOwnPropertyNames(e).filter(a=>rk.indexOf(a)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=ho(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Br(r.map(a=>[a,e[a]]),t,Fl);return`${n}${o}${i?` { ${i} }`:""}`}function ok([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function jh(e,t){return Br(e,t,ik,` `)}function ik(e,t){switch(e.nodeType){case 1:return _$(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function _$(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),a=t.stylize(``,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=Br(r.map(c=>[c,e.getAttribute(c)]),t,ok," ")),t.truncate-=l.length;let s=t.truncate,u=jh(e.children,t);return u&&u.length>s&&(u=`${ta}(${e.children.length})`),`${o}${l}${i}${u}${a}`}var ak=typeof Symbol=="function"&&typeof Symbol.for=="function",Bf=ak?Symbol.for("chai/inspect"):"@@chai/inspect",jf=Symbol.for("nodejs.util.inspect.custom"),$b=new WeakMap,Cb={},_b={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:vb,Number:vb,bigint:Eb,BigInt:Eb,string:wb,String:wb,function:bb,Function:bb,symbol:xb,Symbol:xb,Array:j4,Date:U4,Map:W4,Set:q4,RegExp:V4,Promise:Z4,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:tk,Int8Array:gn,Uint8Array:gn,Uint8ClampedArray:gn,Int16Array:gn,Uint16Array:gn,Int32Array:gn,Uint32Array:gn,Float32Array:gn,Float64Array:gn,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:nk,HTMLCollection:jh,NodeList:jh},lk=(e,t,r)=>Bf in e&&typeof e[Bf]=="function"?e[Bf](t):jf in e&&typeof e[jf]=="function"?e[jf](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&$b.has(e.constructor)?$b.get(e.constructor)(e,t):Cb[r]?Cb[r](e,t):"",sk=Object.prototype.toString;function Hh(e,t={}){let r=N4(t,Hh),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=sk.call(e).slice(8,-1)),o in _b)return _b[o](e,r);if(n&&e){let a=lk(e,r,o);if(a)return typeof a=="string"?a:Hh(a,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Mu(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?_$(e,r):"constructor"in e?e.constructor!==Object?ek(e,r):Mu(e,r):e===Object(e)?Mu(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:uk,DOMCollection:ck,DOMElement:dk,Immutable:fk,ReactElement:pk,ReactTestComponent:hk}=u0,Tb=[hk,pk,dk,ck,fk,uk];function Il(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=rn(e,{maxDepth:t,escapeString:!1,plugins:Tb,...n})}catch{i=rn(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Tb,...n})}return i.length>=o&&t>1?Il(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}var gk=/%[sdjifoOc%]/g;function mk(...e){if(typeof e[0]!="string"){let i=[];for(let a=0;a{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:typeof a=="number"&&a===0&&1/a<0?"-0":typeof a=="object"&&a!==null?typeof a.toString=="function"&&a.toString!==Object.prototype.toString?a.toString():Ua(a,{depth:0,colors:!1}):String(a)}case"%d":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number(a).toString()}case"%i":{let a=e[r++];return typeof a=="bigint"?`${a.toString()}n`:Number.parseInt(String(a)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Ua(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Ua(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(a){let l=a.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw a}default:return i}});for(let i=e[r];rt.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function T$(e){let t=new Set;return bk(e)?[]:(vk(e,t),Array.from(t))}var O$={forceWritable:!1};function Ob(e,t=O$){return zh(e,new WeakMap,t)}function zh(e,t,r=O$){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=zh(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=T$(e);for(let a of i){let l=Object.getOwnPropertyDescriptor(e,a);if(!l)continue;let s=zh(e[a],t,r);r.forceWritable?Object.defineProperty(o,a,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,a,{...l,get(){return s}}):Object.defineProperty(o,a,{...l,value:s})}return o}return e}var Ct=-1,pt=1,We=0,Be=class{constructor(e,t){Wr(this,0);Wr(this,1);this[0]=e,this[1]=t}};function Ek(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;rn?e=e.substring(r-n):r0?r[n-1]:-1,a=0,l=0,s=0,u=0,o=null,t=!0)),i++;for(t&&R$(e),$k(e),i=1;i=p?(f>=c.length/2||f>=d.length/2)&&(e.splice(i,0,new Be(We,d.substring(0,f))),e[i-1][1]=c.substring(0,c.length-f),e[i+1][1]=d.substring(f),i++):(p>=c.length/2||p>=d.length/2)&&(e.splice(i,0,new Be(We,c.substring(0,p))),e[i-1][0]=pt,e[i-1][1]=d.substring(0,d.length-p),e[i+1][0]=Ct,e[i+1][1]=c.substring(p),i++),i++}i++}}var Rb=/[^a-z0-9]/i,Db=/\s/,Pb=/[\r\n]/,wk=/\n\r?\n$/,xk=/^\r?\n\r?\n/;function $k(e){let t=1;for(;t=u&&(u=c,a=r,l=n,s=o)}e[t-1][1]!==a&&(a?e[t-1][1]=a:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}function R$(e){e.push(new Be(We,""));let t=0,r=0,n=0,o="",i="",a;for(;t1?(r!==0&&n!==0&&(a=Ek(i,o),a!==0&&(t-r-n>0&&e[t-r-n-1][0]===We?e[t-r-n-1][1]+=i.substring(0,a):(e.splice(0,0,new Be(We,i.substring(0,a))),t++),i=i.substring(a),o=o.substring(a)),a=A$(i,o),a!==0&&(e[t][1]=i.substring(i.length-a)+e[t][1],i=i.substring(0,i.length-a),o=o.substring(0,o.length-a))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Be(Ct,o)),t++),i.length&&(e.splice(t,0,new Be(pt,i)),t++),t++):t!==0&&e[t-1][0]===We?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t{let v=0;for(;p{let v=0;for(;p<=y&&b<=S&&g(y,S);)y-=1,S-=1,v+=1;return v},o=(p,y,b,S,g,v,E)=>{let w=0,$=-p,x=v[w],C=x;v[w]+=r(x+1,y,S+x-$+1,b,g);let T=p{let w=0,$=p,x=v[w],C=x;v[w]-=n(y,x-1,b,S+x-$-1,g);let T=p{let T=S-y,A=b-y,O=g-S-A,_=-O-(p-1),I=-O+(p-1),L=t,M=p{let T=g-b,A=b-y,O=g-S-A,_=O-p,I=O+p,L=t,M=p{let x=S-y,C=g-b,T=b-y,A=g-S,O=A-T,_=T,I=T;if(E[0]=y-1,w[0]=b,O%2===0){let L=(p||O)/2,M=(T+A)/2;for(let U=1;U<=M;U+=1)if(_=o(U,b,g,x,v,E,_),U{if(g-S{Z(K,ee,X)},isCommon:(K,X)=>q(X,K)}}let z=y,V=b;y=S,b=g,S=z,g=V}let{foundSubsequence:C,isCommon:T}=E[v?1:0];s(p,y,b,S,g,T,w,$,x);let{nChangePreceding:A,aEndPreceding:O,bEndPreceding:_,nCommonPreceding:I,aCommonPreceding:L,bCommonPreceding:M,nCommonFollowing:U,aCommonFollowing:k,bCommonFollowing:F,nChangeFollowing:P,aStartFollowing:B,bStartFollowing:D}=x;y{if(typeof y!="number")throw new TypeError(`${e}: ${p} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${e}: ${p} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${e}: ${p} value ${y} is a negative integer`)},d=(p,y)=>{let b=typeof y;if(b!=="function")throw new TypeError(`${e}: ${p} typeof ${b} is not a function`)};function f(p,y,b,S){c("aLength",p),c("bLength",y),d("isCommon",b),d("foundSubsequence",S);let g=r(0,p,0,y,b);if(g!==0&&S(g,0,0),p!==g||y!==g){let v=g,E=g,w=n(v,p-1,E,y-1,b),$=p-w,x=y-w,C=g+w;p!==C&&y!==C&&u(0,v,$,E,x,!1,[{foundSubsequence:S,isCommon:b}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),w!==0&&S(w,$,x)}}return Hs}var Tk=_k(),P$=yk(Tk);function Ok(e,t){return e.replace(/\s+$/,r=>t(r))}function c0(e,t,r,n,o,i){return e.length!==0?r(`${n} ${Ok(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function k$(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return c0(e,t,r,n,o,i)}function F$(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return c0(e,t,r,n,o,i)}function I$(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return c0(e,t,r,n,o,i)}function Fb(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function Ak(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,a=!1,l=0,s=0;for(;s!==r;){let w=s;for(;s!==r&&e[s][0]===We;)s+=1;if(w!==s)if(w===0)s>n&&(i-=s-n,a=!0);else if(s===r){let $=s-w;$>n&&(i-=$-n,a=!0)}else{let $=s-w;$>o&&(i-=$-o,l+=1)}for(;s!==r&&e[s][0]!==We;)s+=1}let u=l!==0||a;l!==0?i+=l+1:a&&(i+=1);let c=i-1,d=[],f=0;u&&d.push("");let p=0,y=0,b=0,S=0,g=w=>{let $=d.length;d.push(I$(w,$===0||$===c,t)),b+=1,S+=1},v=w=>{let $=d.length;d.push(k$(w,$===0||$===c,t)),b+=1},E=w=>{let $=d.length;d.push(F$(w,$===0||$===c,t)),S+=1};for(s=0;s!==r;){let w=s;for(;s!==r&&e[s][0]===We;)s+=1;if(w!==s)if(w===0){s>n&&(w=s-n,p=w,y=w,b=p,S=y);for(let $=w;$!==s;$+=1)g(e[$][1])}else if(s===r){let $=s-w>n?w+n:s;for(let x=w;x!==$;x+=1)g(e[x][1])}else{let $=s-w;if($>o){let x=w+n;for(let T=w;T!==x;T+=1)g(e[T][1]);d[f]=Fb(p,b,y,S,t),f=d.length,d.push("");let C=$-o;p=b+C,y=S+C,b=p,S=y;for(let T=s-n;T!==s;T+=1)g(e[T][1])}else for(let x=w;x!==s;x+=1)g(e[x][1])}for(;s!==r&&e[s][0]===Ct;)v(e[s][1]),s+=1;for(;s!==r&&e[s][0]===pt;)E(e[s][1]),s+=1}return u&&(d[f]=Fb(p,b,y,S,t)),d.join(` `)}function Rk(e,t){return e.map((r,n,o)=>{let i=r[1],a=n===0||n===o.length-1;switch(r[0]){case Ct:return k$(i,a,t);case pt:return F$(i,a,t);default:return I$(i,a,t)}}).join(` `)}var Hf=e=>e,L$=5,Dk=0;function Pk(){return{aAnnotation:"Expected",aColor:wn.green,aIndicator:"-",bAnnotation:"Received",bColor:wn.red,bIndicator:"+",changeColor:wn.inverse,changeLineTrailingSpaceColor:Hf,commonColor:wn.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Hf,compareKeys:void 0,contextLines:L$,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:wn.yellow,printBasicPrototype:!1,truncateThreshold:Dk,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Hf}}function kk(e){return e&&typeof e=="function"?e:void 0}function Fk(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:L$}function li(e={}){return{...Pk(),...e,compareKeys:kk(e.compareKeys),contextLines:Fk(e.contextLines)}}function Ti(e){return e.length===1&&e[0].length===0}function Ik(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ct:t+=1;break;case pt:r+=1;break}}),{a:t,b:r}}function Lk({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:a,omitAnnotationLines:l},s){if(l)return"";let u="",c="";if(a){let p=String(s.a),y=String(s.b),b=n.length-e.length,S=" ".repeat(Math.max(0,b)),g=" ".repeat(Math.max(0,-b)),v=y.length-p.length,E=" ".repeat(Math.max(0,v)),w=" ".repeat(Math.max(0,-v));u=`${S} ${r} ${E}${p}`,c=`${g} ${i} ${w}${y}`}let d=`${r} ${e}${u}`,f=`${i} ${n}${c}`;return`${t(d)} ${o(f)} `}function d0(e,t,r){return Lk(r,Ik(e))+(r.expand?Rk(e,r):Ak(e,r))+(t?r.truncateAnnotationColor(` ${r.truncateAnnotation}`):"")}function Sd(e,t,r){let n=li(r),[o,i]=N$(Ti(e)?[]:e,Ti(t)?[]:t,n);return d0(o,i,n)}function Nk(e,t,r,n,o){if(Ti(e)&&Ti(r)&&(e=[],r=[]),Ti(t)&&Ti(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Sd(e,t,o);let[i,a]=N$(r,n,o),l=0,s=0;return i.forEach(u=>{switch(u[0]){case Ct:u[1]=e[l],l+=1;break;case pt:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),d0(i,a,li(o))}function N$(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),i=n?Math.min(e.length,o):e.length,a=n?Math.min(t.length,o):t.length,l=i!==e.length||a!==t.length,s=(f,p)=>e[f]===t[p],u=[],c=0,d=0;for(P$(i,a,s,(f,p,y)=>{for(;c!==p;c+=1)u.push(new Be(Ct,e[c]));for(;d!==y;d+=1)u.push(new Be(pt,t[d]));for(;f!==0;f-=1,c+=1,d+=1)u.push(new Be(We,t[d]))});c!==i;c+=1)u.push(new Be(Ct,e[c]));for(;d!==a;d+=1)u.push(new Be(pt,t[d]));return[u,l]}function Ib(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}function Lb(e){return e.includes(`\r `)?`\r `:` `}function Mk(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),i=e.length,a=t.length;if(n){let f=e.includes(` `),p=t.includes(` `),y=Lb(e),b=Lb(t),S=f?`${e.split(y,o).join(y)} `:e,g=p?`${t.split(b,o).join(b)} `:t;i=S.length,a=g.length}let l=i!==e.length||a!==t.length,s=(f,p)=>e[f]===t[p],u=0,c=0,d=[];return P$(i,a,s,(f,p,y)=>{u!==p&&d.push(new Be(Ct,e.slice(u,p))),c!==y&&d.push(new Be(pt,t.slice(c,y))),u=p+f,c=y+f,d.push(new Be(We,t.slice(y,c)))}),u!==i&&d.push(new Be(Ct,e.slice(u))),c!==a&&d.push(new Be(pt,t.slice(c))),[d,l]}function Bk(e,t,r){return t.reduce((n,o)=>n+(o[0]===We?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Nb=class{constructor(e,t){Wr(this,"op");Wr(this,"line");Wr(this,"lines");Wr(this,"changeColor");this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new Be(this.op,e))}pushLine(){this.lines.push(this.line.length!==1?new Be(this.op,Bk(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Be(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes(` `)){let r=t.split(` `),n=r.length-1;r.forEach((o,i)=>{i{if(a===0){let l=new Be(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else a{switch(i[0]){case Ct:r.align(i);break;case pt:n.align(i);break;default:o.align(i)}}),o.getLines()}function Uk(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===We&&(o!==r||n[1]!==` `))}return e.some(r=>r[0]===We)}function zk(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(` `)||t.includes(` `),[o,i]=M$(n?`${e} `:e,n?`${t} `:t,!0,r);if(Uk(o,n)){let a=li(r),l=Hk(o,a.changeColor);return d0(l,i,a)}}return Sd(e.split(` `),t.split(` `),r)}function M$(e,t,r,n){let[o,i]=Mk(e,t,n);return Sk(o),[o,i]}function Kh(e,t){let{commonColor:r}=li(t);return r(e)}var{AsymmetricMatcher:Kk,DOMCollection:Wk,DOMElement:Gk,Immutable:Vk,ReactElement:Yk,ReactTestComponent:qk}=u0,B$=[qk,Yk,Gk,Wk,Vk,Kk,u0.Error],Wh={maxDepth:20,plugins:B$},j$={callToJSON:!1,maxDepth:8,plugins:B$};function Xk(e,t,r){if(Object.is(e,t))return"";let n=Ib(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string"}if(o!==Ib(t)){let a=function(E){return E.length<=S?E:`${E.slice(0,S)}...`},{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:c,bColor:d,bIndicator:f}=li(r),p=Gh(j$,r),y=rn(e,p),b=rn(t,p),S=1e5;y=a(y),b=a(b);let g=`${s(`${u} ${l}:`)} ${y}`,v=`${d(`${f} ${c}:`)} ${b}`;return`${g} ${v}`}if(!i)switch(n){case"string":return Sd(e.split(` `),t.split(` `),r);case"boolean":case"number":return Jk(e,t,r);case"map":return Uf(Mb(e),Mb(t),r);case"set":return Uf(Bb(e),Bb(t),r);default:return Uf(e,t,r)}}function Jk(e,t,r){let n=rn(e,Wh),o=rn(t,Wh);return n===o?"":Sd(n.split(` `),o.split(` `),r)}function Mb(e){return new Map(Array.from(e.entries()).sort())}function Bb(e){return new Set(Array.from(e.values()).sort())}function Uf(e,t,r){let n,o=!1;try{let a=Gh(Wh,r);n=jb(e,t,a,r)}catch{o=!0}let i=Kh(D$,r);if(n===void 0||n===i){let a=Gh(j$,r);n=jb(e,t,a,r),n!==i&&!o&&(n=`${Kh(Ck,r)} ${n}`)}return n}function Gh(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=li(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}function jb(e,t,r,n){let o={...r,indent:0},i=rn(e,o),a=rn(t,o);if(i===a)return Kh(D$,n);{let l=rn(e,r),s=rn(t,r);return Nk(l.split(` `),s.split(` `),i.split(` `),a.split(` `),n)}}var Hb=2e4;function Ub(e){return Uh(e)==="Object"&&typeof e.asymmetricMatch=="function"}function zb(e,t){let r=Uh(e),n=Uh(t);return r===n&&(r==="Object"||r==="Array")}function Qk(e,t,r){let{aAnnotation:n,bAnnotation:o}=li(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Hb&&e.length<=Hb&&t!==e){if(t.includes(` `)||e.includes(` `))return zk(t,e,r);let[u]=M$(t,e),c=u.some(y=>y[0]===We),d=Zk(n,o),f=d(n)+rF(Kb(u,Ct,c)),p=d(o)+tF(Kb(u,pt,c));return`${f} ${p}`}let i=Ob(t,{forceWritable:!0}),a=Ob(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=H$(a,i);return Xk(l,s,r)}function H$(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):zb(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),T$(t).forEach(o=>{let i=t[o],a=e[o];if(Ub(i))i.asymmetricMatch(a)&&(e[o]=i);else if(Ub(a))a.asymmetricMatch(i)&&(t[o]=a);else if(zb(a,i)){let l=H$(a,i,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Zk(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var eF="·";function U$(e){return e.replace(/\s+$/gm,t=>eF.repeat(t.length))}function tF(e){return wn.red(U$(Il(e)))}function rF(e){return wn.green(U$(Il(e)))}function Kb(e,t,r){return e.reduce((n,o)=>n+(o[0]===We?o[1]:o[0]===t?r?wn.inverse(o[1]):o[1]:""),"")}var nF="@@__IMMUTABLE_RECORD__@@",oF="@@__IMMUTABLE_ITERABLE__@@";function iF(e){return e&&(e[oF]||e[nF])}var aF=Object.getPrototypeOf({});function Wb(e){return e instanceof Error?`: ${e.message}`:typeof e=="string"?`: ${e}`:""}function Wn(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&Us(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Us(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Us(()=>r.name??(r.name=e.name)),e.cause!=null&&Us(()=>r.cause??(r.cause=Wn(e.cause,t)))),Wn(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return``;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return``;if(iF(e))return Wn(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${mk(e.sample)}`;if(typeof e.toJSON=="function")return Wn(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=Wn(n,t)}catch(i){r[o]=Wb(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==aF;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Wn(e[o],t)}catch(i){delete r[o],r[o]=Wb(i)}}),n=Object.getPrototypeOf(n);return r}}function Us(e){try{return e()}catch{}}function lF(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function z$(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=Qk(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Il(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Il(n.actual,10));try{typeof n.message=="string"&&(n.message=lF(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=z$(n.cause,t,r))}catch{}try{return Wn(n)}catch(o){return Wn(new Error(`Failed to fully serialize error: ${o==null?void 0:o.message} Inner error message: ${n==null?void 0:n.message}`))}}const{once:sF}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:Gb,SET_CURRENT_STORY:uF,STORY_RENDER_PHASE_CHANGED:cF}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:hr}=__STORYBOOK_MODULE_GLOBAL__;var zf=globalThis.__STORYBOOK_ADDONS_PREVIEW,dF=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Vb=e=>Object.prototype.toString.call(e)==="[object Object]",fF=e=>Object.prototype.toString.call(e)==="[object Module]",pF=e=>{if(!Vb(e)&&!fF(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Vb(t)},hF=e=>{try{return new e.constructor}catch{return{}}},Kf=()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),Yb=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},gF=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=()=>{var l,s;try{this.state=((s=(l=hr.window)==null?void 0:l.parent)==null?void 0:s.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{}}catch{this.detached=!0}},this.updateParentWindowState=()=>{try{hr.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},this.loadParentWindowState();let e=({storyId:l,renderPhase:s,isPlaying:u=!0,isDebugging:c=!1})=>{let d=this.getState(l);this.setState(l,{...Kf(),...Yb(d,c),renderPhase:s||d.renderPhase,shadowCalls:c?d.shadowCalls:[],chainedCallIds:c?d.chainedCallIds:new Set,playUntil:c?d.playUntil:void 0,isPlaying:u,isDebugging:c}),this.sync(l)},t=l=>({storyId:s,playUntil:u})=>{this.getState(s).isDebugging||this.setState(s,({calls:d})=>({calls:[],shadowCalls:d.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let c=this.getLog(s);this.setState(s,({shadowCalls:d})=>{var p;if(u||!c.length)return{playUntil:u};let f=d.findIndex(y=>y.id===c[0].callId);return{playUntil:(p=d.slice(0,f).filter(y=>{var b;return y.interceptable&&!((b=y.ancestors)!=null&&b.length)}).slice(-1)[0])==null?void 0:p.id}}),l.emit(Gb,{storyId:s,isDebugging:!0})},r=l=>({storyId:s})=>{var d;let u=this.getLog(s).filter(f=>{var p;return!((p=f.ancestors)!=null&&p.length)}),c=u.reduceRight((f,p,y)=>f>=0||p.status==="waiting"?f:y,-1);t(l)({storyId:s,playUntil:(d=u[c-1])==null?void 0:d.callId})},n=l=>({storyId:s,callId:u})=>{var b;let{calls:c,shadowCalls:d,resolvers:f}=this.getState(s),p=c.find(({id:S})=>S===u),y=d.find(({id:S})=>S===u);if(!p&&y&&Object.values(f).length>0){let S=(b=this.getLog(s).find(g=>g.status==="waiting"))==null?void 0:b.callId;y.id!==S&&this.setState(s,{playUntil:y.id}),Object.values(f).forEach(g=>g())}else t(l)({storyId:s,playUntil:u})},o=l=>({storyId:s})=>{var c;let{resolvers:u}=this.getState(s);if(Object.values(u).length>0)Object.values(u).forEach(d=>d());else{let d=(c=this.getLog(s).find(f=>f.status==="waiting"))==null?void 0:c.callId;d?t(l)({storyId:s,playUntil:d}):i({storyId:s})}},i=({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(s=>s())},a=({storyId:l,newPhase:s})=>{let{isDebugging:u}=this.getState(l);if(s==="preparing"&&u)return e({storyId:l,renderPhase:s,isDebugging:u});if(s==="playing")return e({storyId:l,renderPhase:s,isDebugging:u});s==="played"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1,isDebugging:!1}):s==="errored"?this.setState(l,{renderPhase:s,isLocked:!1,isPlaying:!1}):s==="aborted"?this.setState(l,{renderPhase:s,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:s}),this.sync(l)};zf&&zf.ready().then(()=>{this.channel=zf.getChannel(),this.channel.on(Gb,e),this.channel.on(cF,a),this.channel.on(uF,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(hn.START,t(this.channel)),this.channel.on(hn.BACK,r(this.channel)),this.channel.on(hn.GOTO,n(this.channel)),this.channel.on(hn.NEXT,o(this.channel)),this.channel.on(hn.END,i)})}getState(e){return this.state[e]||Kf()}setState(e,t){if(e){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},this.updateParentWindowState()}}cleanup(){var t;this.state=Object.entries(this.state).reduce((r,[n,o])=>{let i=Yb(o);return i&&(r[n]=Object.assign(Kf(),i)),r},{});let e={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};(t=this.channel)==null||t.emit(hn.SYNC,e),this.updateParentWindowState()}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((i,a)=>{n[a]=i});let o=new Set;return n.reduceRight((i,a)=>(a.args.forEach(l=>{l!=null&&l.__callId__&&o.add(l.__callId__)}),a.path.forEach(l=>{l.__callId__&&o.add(l.__callId__)}),(a.interceptable||a.exception)&&!o.has(a.id)&&(i.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),o.add(a.id)),i),[])}instrument(e,t,r=0){if(!pF(e))return e;let{mutate:n=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((a,l)=>{let s=yF(e,l);if(typeof(s==null?void 0:s.get)=="function"){if(s.configurable){let c=()=>{var d,f;return(f=(d=s==null?void 0:s.get)==null?void 0:d.bind(e))==null?void 0:f()};Object.defineProperty(a,l,{get:()=>this.instrument(c(),{...t,path:o.concat(l)},r)})}return a}let u=e[l];return typeof u!="function"?(a[l]=this.instrument(u,{...t,path:o.concat(l)},r),a):"__originalFn__"in u&&typeof u.__originalFn__=="function"?(a[l]=u,a):(a[l]=(...c)=>this.track(l,u,e,c,t),a[l].__originalFn__=u,Object.defineProperty(a[l],"name",{value:l,writable:!1}),Object.keys(u).length>0&&Object.assign(a[l],this.instrument({...u},{...t,path:o.concat(l)},r)),a)},n?e:hF(e))}track(e,t,r,n,o){var b,S,g,v;let i=((b=n==null?void 0:n[0])==null?void 0:b.__storyId__)||((v=(g=(S=hr.__STORYBOOK_PREVIEW__)==null?void 0:S.selectionStore)==null?void 0:g.selection)==null?void 0:v.storyId),{cursor:a,ancestors:l}=this.getState(i);this.setState(i,{cursor:a+1});let s=`${l.slice(-1)[0]||i} [${a}] ${e}`,{path:u=[],intercept:c=!1,retain:d=!1}=o,f=typeof c=="function"?c(e,u):c,p={id:s,cursor:a,storyId:i,ancestors:l,path:u,method:e,args:n,interceptable:f,retain:d},y=(f&&!l.length?this.intercept:this.invoke).call(this,t,r,p,o);return this.instrument(y,{...o,mutate:!0,path:[{__callId__:p.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:a}=this.getState(r.storyId),l=o.has(r.id);return!i||l||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(s=>{this.setState(r.storyId,({resolvers:u})=>({isLocked:!1,resolvers:{...u,[r.id]:s}}))}).then(()=>(this.setState(r.storyId,s=>{let{[r.id]:u,...c}=s.resolvers;return{isLocked:!0,resolvers:c}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),a=25,l=(c,d,f)=>{var p,y,b;if(f.includes(c))return"[Circular]";if(f=[...f,c],d>a)return"...";if(o.has(c))return o.get(c);if(c instanceof Array)return c.map(S=>l(S,++d,f));if(c instanceof Date)return{__date__:{value:c.toISOString()}};if(c instanceof Error){let{name:S,message:g,stack:v}=c;return{__error__:{name:S,message:g,stack:v}}}if(c instanceof RegExp){let{flags:S,source:g}=c;return{__regexp__:{flags:S,source:g}}}if(c instanceof((p=hr.window)==null?void 0:p.HTMLElement)){let{prefix:S,localName:g,id:v,classList:E,innerText:w}=c,$=Array.from(E);return{__element__:{prefix:S,localName:g,id:v,classNames:$,innerText:w}}}return typeof c=="function"?{__function__:{name:"getMockName"in c?c.getMockName():c.name}}:typeof c=="symbol"?{__symbol__:{description:c.description}}:typeof c=="object"&&((y=c==null?void 0:c.constructor)!=null&&y.name)&&((b=c==null?void 0:c.constructor)==null?void 0:b.name)!=="Object"?{__class__:{name:c.constructor.name}}:Object.prototype.toString.call(c)==="[object Object]"?Object.fromEntries(Object.entries(c).map(([S,g])=>[S,l(g,++d,f)])):c},s={...r,args:r.args.map(c=>l(c,0,[]))};r.path.forEach(c=>{c!=null&&c.__callId__&&this.setState(r.storyId,({chainedCallIds:d})=>({chainedCallIds:new Set(Array.from(d).concat(c.__callId__))}))});let u=c=>{var d;if(c instanceof Error){let{name:f,message:p,stack:y,callId:b=r.id}=c,{showDiff:S=void 0,diff:g=void 0,actual:v=void 0,expected:E=void 0}=c.name==="AssertionError"?z$(c):c,w={name:f,message:p,stack:y,callId:b,showDiff:S,diff:g,actual:v,expected:E};if(this.update({...s,status:"error",exception:w}),this.setState(r.storyId,$=>({callRefsByResult:new Map([...Array.from($.callRefsByResult.entries()),[c,{__callId__:r.id,retain:r.retain}]])})),(d=r.ancestors)==null?void 0:d.length)throw Object.prototype.hasOwnProperty.call(c,"callId")||Object.defineProperty(c,"callId",{value:r.id}),c}throw c};try{if(i==="played"&&!r.retain)throw dF;let c=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(f=>typeof f!="function"||bF(f)||Object.keys(f).length?f:(...p)=>{let{cursor:y,ancestors:b}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...b,r.id]});let S=()=>this.setState(r.storyId,{cursor:y,ancestors:b}),g=!1;try{let v=f(...p);return v instanceof Promise?(g=!0,v.finally(S)):v}finally{g||S()}}),d=e.apply(t,c);return d&&["object","function","symbol"].includes(typeof d)&&this.setState(r.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[d,{__callId__:r.id,retain:r.retain}]])})),this.update({...s,status:d instanceof Promise?"active":"done"}),d instanceof Promise?d.then(f=>(this.update({...s,status:"done"}),f),u):d}catch(c){return u(c)}}update(e){var t;(t=this.channel)==null||t.emit(hn.CALL,e),this.setState(e.storyId,({calls:r})=>{let n=r.concat(e).reduce((o,i)=>Object.assign(o,{[i.id]:i}),{});return{calls:Object.values(n).sort((o,i)=>o.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(e.storyId)}sync(e){let t=()=>{var u,c,d;let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),i=(u=o.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting"))==null?void 0:u.callId,a=o.some(f=>f.status==="active");if(this.detached||r||a||o.length===0){let f={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};(c=this.channel)==null||c.emit(hn.SYNC,f);return}let l=o.some(f=>f.status==="done"||f.status==="error"),s={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:n,end:n},logItems:o,pausedAt:i};(d=this.channel)==null||d.emit(hn.SYNC,s)};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}))}};function mF(e,t={}){var r,n,o,i,a,l,s,u;try{let c=!1,d=!1;return(o=(n=(r=hr.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&o.includes("instrument=true")?c=!0:(l=(a=(i=hr.window)==null?void 0:i.location)==null?void 0:a.search)!=null&&l.includes("instrument=false")&&(d=!0),((s=hr.window)==null?void 0:s.parent)===hr.window&&!c||d?e:(hr.window&&!hr.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(hr.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new gF),((u=hr.window)==null?void 0:u.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(c){return sF.warn(c),e}}function yF(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function bF(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}var vF=Tt({"../../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return function a(l,s,u){var c,d,f,p=t.call(l),y=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),p!=y||(c=n(l),d=n(s),c.length!=d.length||c.some(function(b){return!a(l[b],s[b],u)})))return!1;switch(p.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":c=l.entries(),d=s.entries();do if(!a((f=c.next()).value,d.next().value,u))return!1;while(!f.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(f=0;fe.map(t=>typeof t<"u").filter(Boolean).length,EF=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(K$([r,n,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,qb.isEqual)(t,n);if(typeof o<"u")return!(0,qb.isEqual)(t,o);if(typeof r<"u"){let a=typeof t<"u";return r?a:!a}return typeof i>"u"||i?!!t:!t},SF=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(K$([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return EF(e.if,i)},wF={};bt(wF,{argsEnhancers:()=>CF});var W$=(e,t)=>typeof t[e]>"u"&&!(e in t),xF=e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([a])=>!!i.test(a)).reduce((a,[l,s])=>(W$(l,t)&&(a[l]=t0(l,{implicit:!0,id:n})),a),{})},$F=e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([o,i])=>!!i.action).reduce((o,[i,a])=>(W$(i,t)&&(o[i]=t0(typeof a.action=="string"?a.action:i)),o),{})},CF=[$F,xF],_F={};bt(_F,{loaders:()=>AF});const{onMockCall:TF}=__STORYBOOK_MODULE_TEST__;var Xb=!1,OF=e=>{var r;let{parameters:t}=e;(r=t==null?void 0:t.actions)!=null&&r.disable||Xb||(TF((n,o)=>{let i=n.getMockName();i!=="spy"&&i!=="vi.fn()"&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(a=>i.startsWith(a)))&&t0(i)(o)}),Xb=!0)},AF=[OF];const{useEffect:Jb}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:Ir}=globalThis,RF=()=>{var e;return globalThis!=null&&globalThis.matchMedia?!!((e=globalThis.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&e.matches):!1},Qb=e=>{(Array.isArray(e)?e:[e]).forEach(DF)},DF=e=>{if(!Ir)return;let t=Ir.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},PF=(e,t)=>{if(!Ir)return;let r=Ir.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Ir.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Ir.head.appendChild(n)}},kF=(e,t,r)=>{var o;if(!Ir)return;let n=Ir.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let i=Ir.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,l=Ir.getElementById(a);l?(o=l.parentElement)==null||o.insertBefore(i,l):Ir.head.appendChild(i)}},FF={cellSize:100,cellAmount:10,opacity:.8},Zb="addon-backgrounds",ev="addon-backgrounds-grid",IF=RF()?"":"transition: background-color 0.3s;",LF=(e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:a=nP,disable:l,grid:s=FF}=n[tb]||{},u=r[tb]||{},c=typeof u=="string"?u:u==null?void 0:u.value,d=c?a[c]:void 0,f=typeof d=="string"?d:(d==null?void 0:d.value)||"transparent",p=typeof u=="string"?!1:u.grid||!1,y=!!d&&!l,b=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",S=o==="docs"?`#anchor--${i} .docs-story, #anchor--primary--${i} .docs-story`:".sb-show-main",g=n.layout===void 0||n.layout==="padded",v=o==="docs"?20:g?16:0,{cellAmount:E,cellSize:w,opacity:$,offsetX:x=v,offsetY:C=v}=s,T=o==="docs"?`${Zb}-docs-${i}`:`${Zb}-color`,A=o==="docs"?i:null;Jb(()=>{let _=` ${b} { background: ${f} !important; ${IF} }`;if(!y){Qb(T);return}kF(T,_,A)},[b,T,A,y,f]);let O=o==="docs"?`${ev}-docs-${i}`:`${ev}`;return Jb(()=>{if(!p){Qb(O);return}let _=[`${w*E}px ${w*E}px`,`${w*E}px ${w*E}px`,`${w}px ${w}px`,`${w}px ${w}px`].join(", "),I=` ${S} { background-size: ${_} !important; background-position: ${x}px ${C}px, ${x}px ${C}px, ${x}px ${C}px, ${x}px ${C}px !important; background-blend-mode: difference !important; background-image: linear-gradient(rgba(130, 130, 130, ${$}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${$}) 1px, transparent 1px), linear-gradient(rgba(130, 130, 130, ${$/2}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${$/2}) 1px, transparent 1px) !important; } `;PF(O,I)},[E,w,S,O,p,x,C,$]),e()},qx;(qx=globalThis.FEATURES)!=null&&qx.backgrounds;var{step:bce}=mF({step:async(e,t,r)=>t(r)},{intercept:!0});const{addons:zs}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:NF}=__STORYBOOK_MODULE_CORE_EVENTS__;var tv={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},MF="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),tt=(e,t={},r)=>{let n=MF.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,i])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",i),n.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),i())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",i),o==="onMouseLeave"&&n.addEventListener("mouseleave",i)):n.setAttribute(o,i)}),r==null||r.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},Ks=e=>tv[e]&&tt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},tv[e].map(t=>tt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),BF=e=>{if("elements"in e){let{elements:n,color:o,style:i}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${i} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},jF=e=>e instanceof Function,za=new Map,wo=new Map,Ws=new Map,mn=e=>{let t=Symbol();return wo.set(t,[]),za.set(t,e),{get:()=>za.get(t),set:r=>{var i;let n=za.get(t),o=jF(r)?r(n):r;o!==n&&(za.set(t,o),(i=wo.get(t))==null||i.forEach(a=>{var l;(l=Ws.get(a))==null||l(),Ws.set(a,a(o))}))},subscribe:r=>{var n;return(n=wo.get(t))==null||n.push(r),()=>{let o=wo.get(t);o&&wo.set(t,o.filter(i=>i!==r))}},teardown:()=>{var r;(r=wo.get(t))==null||r.forEach(n=>{var o;(o=Ws.get(n))==null||o(),Ws.delete(n)}),wo.delete(t),za.delete(t)}}},rv=e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let i of n.selectors){let a=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...(t==null?void 0:t.querySelectorAll(i))||[]];for(let l of a){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set(((s==null?void 0:s.selectors)||[]).concat(i)))})}}}return r},HF=e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a}])=>{let{top:l,left:s,width:u,height:c}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:a,top:d==="fixed"?l:l+window.scrollY,left:d==="fixed"?s:s+window.scrollX,width:u,height:c}}).sort((t,r)=>r.width*r.height-t.width*t.height),nv=(e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return(r==null?void 0:r.top)&&(r==null?void 0:r.left)&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},ov=(e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:a}=e;a=n&&l<=n+i&&s>=o&&s<=o+a},UF=(e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:a=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:c,innerWidth:d}=window,f=Math.min(e.style.position==="fixed"?o-u:o,c-e.clientHeight-i-a+u),p=l?e.clientWidth/2:0,y=e.style.position==="fixed"?Math.max(Math.min(n-s,d-p-i),p+i):Math.max(Math.min(n,d-p-i+s),p+i+s);Object.assign(e.style,{...y!==n&&{left:`${y}px`},...f!==o&&{top:`${f}px`}})},iv=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},zF=e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},KF=e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),De="storybook-highlights-menu",av="storybook-highlights-root",WF="storybook-root",GF=e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=mn([]),n=mn(new Map),o=mn([]),i=mn(),a=mn(),l=mn([]),s=mn([]),u=mn(),c=mn(),d=t.getElementById(av);r.subscribe(()=>{d||(d=tt("div",{id:av}),t.body.appendChild(d))}),r.subscribe(C=>{let T=t.getElementById(WF);if(!T)return;n.set(rv(C));let A=new MutationObserver(()=>n.set(rv(C)));return A.observe(T,{subtree:!0,childList:!0}),()=>{A.disconnect()}}),n.subscribe(C=>{let T=()=>requestAnimationFrame(()=>o.set(HF(C))),A=new ResizeObserver(T);A.observe(t.body),Array.from(C.keys()).forEach(_=>A.observe(_));let O=Array.from(t.body.querySelectorAll("*")).filter(_=>{let{overflow:I,overflowX:L,overflowY:M}=window.getComputedStyle(_);return["auto","scroll"].some(U=>[I,L,M].includes(U))});return O.forEach(_=>_.addEventListener("scroll",T)),()=>{A.disconnect(),O.forEach(_=>_.removeEventListener("scroll",T))}}),n.subscribe(C=>{let T=Array.from(C.keys()).filter(({style:O})=>O.position==="sticky"),A=()=>requestAnimationFrame(()=>{o.set(O=>O.map(_=>{if(T.includes(_.element)){let{top:I,left:L}=_.element.getBoundingClientRect();return{..._,top:I+window.scrollY,left:L+window.scrollX}}return _}))});return t.addEventListener("scroll",A),()=>t.removeEventListener("scroll",A)}),n.subscribe(C=>{l.set(T=>T.filter(({element:A})=>C.has(A)))}),l.subscribe(C=>{C.length?(c.set(T=>C.some(A=>A.element===(T==null?void 0:T.element))?T:void 0),u.set(T=>C.some(A=>A.element===(T==null?void 0:T.element))?T:void 0)):(c.set(void 0),u.set(void 0),i.set(void 0))});let f=new Map(new Map);r.subscribe(C=>{C.forEach(({keyframes:T})=>{if(T){let A=f.get(T);A||(A=t.createElement("style"),A.setAttribute("data-highlight","keyframes"),f.set(T,A),t.head.appendChild(A)),A.innerHTML=T}}),f.forEach((T,A)=>{C.some(O=>O.keyframes===A)||(T.remove(),f.delete(A))})});let p=new Map(new Map);o.subscribe(C=>{C.forEach(T=>{let A=p.get(T.element);if(d&&!A){let O={popover:"manual","data-highlight-dimensions":`w${T.width.toFixed(0)}h${T.height.toFixed(0)}`,"data-highlight-coordinates":`x${T.left.toFixed(0)}y${T.top.toFixed(0)}`};A=d.appendChild(tt("div",O,[tt("div")])),p.set(T.element,A)}}),p.forEach((T,A)=>{C.some(({element:O})=>O===A)||(T.remove(),p.delete(A))})}),o.subscribe(C=>{let T=C.filter(O=>O.menu);if(!T.length)return;let A=O=>{requestAnimationFrame(()=>{let _=t.getElementById(De),I={x:O.pageX,y:O.pageY};if(_&&!nv(_,I)){let L=T.filter(M=>{let U=p.get(M.element);return ov(M,U,I)});i.set(L.length?I:void 0),l.set(L)}})};return t.addEventListener("click",A),()=>t.removeEventListener("click",A)});let y=()=>{let C=t.getElementById(De),T=a.get();!T||C&&nv(C,T)||s.set(A=>{let O=o.get().filter(M=>{let U=p.get(M.element);return ov(M,U,T)}),_=A.filter(M=>O.includes(M)),I=O.filter(M=>!A.includes(M)),L=A.length-_.length;return I.length||L?[..._,...I]:A})};a.subscribe(y),o.subscribe(y);let b=()=>{let C=c.get(),T=C?[C]:l.get(),A=T.length===1?T[0]:u.get(),O=i.get()!==void 0;o.get().forEach(_=>{var L;let I=p.get(_.element);if(I){let M=A===_,U=O?A?M:T.includes(_):(L=s.get())==null?void 0:L.includes(_);Object.assign(I.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",..._.styles,...U?_.hoverStyles:{},...M?_.focusStyles:{},position:getComputedStyle(_.element).position==="fixed"?"fixed":"absolute",zIndex:Z1-10,top:`${_.top}px`,left:`${_.left}px`,width:`${_.width}px`,height:`${_.height}px`,margin:0,padding:0,cursor:_.menu&&U?"pointer":"default",pointerEvents:_.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(I.children[0].style,{width:"100%",height:"100%",minHeight:`${zn}px`,minWidth:`${zn}px`,boxSizing:"content-box",padding:I.style.outlineWidth||"0px"}),iv(I)}})};o.subscribe(b),l.subscribe(b),s.subscribe(b),u.subscribe(b),c.subscribe(b);let S=()=>{var _;if(!d)return;let C=t.getElementById(De);if(C)C.innerHTML="";else{let I={id:De,popover:"manual"};C=d.appendChild(tt("div",I)),d.appendChild(tt("style",{},[` #${De} { position: absolute; z-index: ${Z1}; width: 300px; padding: 0px; margin: 15px 0 0 0; transform: translateX(-50%); font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; background: white; border: none; border-radius: 6px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1); color: #2E3438; } #${De} ul { list-style: none; margin: 0; padding: 0; } #${De} > ul { max-height: 300px; overflow-y: auto; padding: 4px 0; } #${De} li { padding: 0 4px; margin: 0; } #${De} li > :not(ul) { display: flex; padding: 8px; margin: 0; align-items: center; gap: 8px; border-radius: 4px; } #${De} button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; font-family: inherit; font-size: inherit; } #${De} button:focus-visible { outline-color: #029CFD; } #${De} button:hover { background: rgba(2, 156, 253, 0.07); color: #029CFD; cursor: pointer; } #${De} li code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 16px; font-size: 11px; } #${De} li svg { flex-shrink: 0; margin: 1px; color: #73828C; } #${De} li > button:hover svg, #${De} li > button:focus-visible svg { color: #029CFD; } #${De} .element-list li svg { display: none; } #${De} li.selectable svg, #${De} li.selected svg { display: block; } #${De} .menu-list { border-top: 1px solid rgba(38, 85, 115, 0.15); } #${De} .menu-list > li:not(:last-child) { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid rgba(38, 85, 115, 0.15); } #${De} .menu-items, #${De} .menu-items li { padding: 0; } #${De} .menu-item { display: flex; } #${De} .menu-item-content { display: flex; flex-direction: column; flex-grow: 1; } `]))}let T=c.get(),A=T?[T]:l.get();if(A.length&&(C.style.position=getComputedStyle(A[0].element).position==="fixed"?"fixed":"absolute",C.appendChild(tt("ul",{class:"element-list"},A.map(I=>{var k;let L=A.length>1&&!!((k=I.menu)!=null&&k.some(F=>F.some(P=>!P.selectors||P.selectors.some(B=>I.selectors.includes(B))))),M=L?{class:"selectable",onClick:()=>c.set(I),onMouseEnter:()=>u.set(I),onMouseLeave:()=>u.set(void 0)}:T?{class:"selected",onClick:()=>c.set(void 0)}:{},U=L||T;return tt("li",M,[tt(U?"button":"div",U?{type:"button"}:{},[T?Ks("chevronLeft"):null,tt("code",{},[I.element.outerHTML]),L?Ks("chevronRight"):null])])})))),c.get()||l.get().length===1){let I=c.get()||l.get()[0],L=(_=I.menu)==null?void 0:_.filter(M=>M.some(U=>!U.selectors||U.selectors.some(k=>I.selectors.includes(k))));L!=null&&L.length&&C.appendChild(tt("ul",{class:"menu-list"},L.map(M=>tt("li",{},[tt("ul",{class:"menu-items"},M.map(({id:U,title:k,description:F,iconLeft:P,iconRight:B,clickEvent:D})=>{let z=D&&(()=>e.emit(D,U,KF(I)));return tt("li",{},[tt(z?"button":"div",z?{class:"menu-item",type:"button",onClick:z}:{class:"menu-item"},[P?Ks(P):null,tt("div",{class:"menu-item-content"},[tt(F?"strong":"span",{},[k]),F&&tt("span",{},[F])]),B?Ks(B):null])])}))]))))}let O=i.get();O?(Object.assign(C.style,{display:"block",left:`${C.style.position==="fixed"?O.x-window.scrollX:O.x}px`,top:`${C.style.position==="fixed"?O.y-window.scrollY:O.y}px`}),iv(C),requestAnimationFrame(()=>UF(C,O,{topOffset:15,centered:!0}))):(zF(C),Object.assign(C.style,{display:"none"}))};l.subscribe(S),c.subscribe(S);let g=C=>{let T=BF(C);r.set(A=>{var _;let O=T.id?A.filter(I=>I.id!==T.id):A;return(_=T.selectors)!=null&&_.length?[...O,T]:O})},v=C=>{C&&r.set(T=>T.filter(A=>A.id!==C))},E=()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),a.set(void 0),l.set([]),s.set([]),u.set(void 0),c.set(void 0)},w,$=(C,T)=>{let A="scrollIntoView-highlight";clearTimeout(w),v(A);let O=t.querySelector(C);if(!O){console.warn(`Cannot scroll into view: ${C} not found`);return}O.scrollIntoView({behavior:"smooth",block:"center",...T});let _=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(I=>[...I,{id:A,priority:1e3,selectors:[C],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${_} 3s linear forwards`},keyframes:`@keyframes ${_} { 0% { outline: 2px solid #1EA7FD; } 20% { outline: 2px solid #1EA7FD00; } 40% { outline: 2px solid #1EA7FD; } 60% { outline: 2px solid #1EA7FD00; } 80% { outline: 2px solid #1EA7FD; } 100% { outline: 2px solid #1EA7FD00; } }`}]),w=setTimeout(()=>v(A),3500)},x=C=>{requestAnimationFrame(()=>a.set({x:C.pageX,y:C.pageY}))};t.body.addEventListener("mousemove",x),e.on(KD,g),e.on(WD,v),e.on(GD,E),e.on(VD,$),e.on(NF,({newPhase:C})=>{C==="loading"&&E()})},Xx;(Xx=globalThis==null?void 0:globalThis.FEATURES)!=null&&Xx.highlight&&(zs!=null&&zs.ready)&&zs.ready().then(GF);const{useEffect:lv}=__STORYBOOK_MODULE_PREVIEW_API__,{global:bc}=__STORYBOOK_MODULE_GLOBAL__;function G$(){let e=bc.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function VF(){let e=bc.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Bh(t!=null);let{width:r,height:n}=G$();return Vh(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",bc.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}function Vh(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=bc.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}var rt={};function YF(){rt.canvas||(rt=VF())}function V$(){rt.context&&rt.context.clearRect(0,0,rt.width??0,rt.height??0)}function qF(e){V$(),e(rt.context)}function XF(){Bh(rt.canvas),Bh(rt.context),Vh(rt.canvas,rt.context,{width:0,height:0});let{width:e,height:t}=G$();Vh(rt.canvas,rt.context,{width:e,height:t}),rt.width=e,rt.height=t}function JF(){var e;rt.canvas&&(V$(),(e=rt.canvas.parentNode)==null||e.removeChild(rt.canvas),rt={})}const{global:kr}=__STORYBOOK_MODULE_GLOBAL__;var bi={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},$n=6;function sv(e,{x:t,y:r,w:n,h:o,r:i}){t=t-n/2,r=r-o/2,n<2*i&&(i=n/2),o<2*i&&(i=o/2),e.beginPath(),e.moveTo(t+i,r),e.arcTo(t+n,r,t+n,r+o,i),e.arcTo(t+n,r+o,t,r+o,i),e.arcTo(t,r+o,t,r,i),e.arcTo(t,r,t+n,r,i),e.closePath()}function QF(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=a+r.left+t.left,c=i+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,c+=s/2):e==="bottom"?(u+=l/2,c+=s):e==="left"?c+=s/2:e==="center"&&(u+=l/2,c+=s/2),{x:u,y:c}}function ZF(e,t,{margin:r,border:n,padding:o},i,a){let l=f=>0,s=0,u=0,c=a?1:.5,d=a?i*2:0;return e==="padding"?l=f=>o[f]*c+d:e==="border"?l=f=>o[f]+n[f]*c+d:e==="margin"&&(l=f=>o[f]+n[f]+r[f]*c+d),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}function eI(e,t){return Math.abs(e.x-t.x){let l=n&&i.position==="center"?oI(e,t,i):rI(e,t,i,o[a-1],n);o[a]=l})}function iI(e,t,r,n){let o=r.reduce((i,a)=>{var l;return Object.prototype.hasOwnProperty.call(i,a.position)||(i[a.position]=[]),(l=i[a.position])==null||l.push(a),i},{});o.top&&Ka(e,t,o.top,n),o.right&&Ka(e,t,o.right,n),o.bottom&&Ka(e,t,o.bottom,n),o.left&&Ka(e,t,o.left,n),o.center&&Ka(e,t,o.center,n)}var wd={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},uv=30;function cr(e){return parseInt(e.replace("px",""),10)}function Oi(e){return Number.isInteger(e)?e:e.toFixed(2)}function f0(e){return e.filter(t=>t.text!==0&&t.text!=="0")}function aI(e){let t={top:kr.window.scrollY,bottom:kr.window.scrollY+kr.window.innerHeight,left:kr.window.scrollX,right:kr.window.scrollX+kr.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}function lI(e){let t=kr.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:a,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:c,marginRight:d,paddingTop:f,paddingBottom:p,paddingLeft:y,paddingRight:b,borderBottomWidth:S,borderTopWidth:g,borderLeftWidth:v,borderRightWidth:E}=t;r=r+kr.window.scrollY,n=n+kr.window.scrollX,i=i+kr.window.scrollY,o=o+kr.window.scrollX;let w={top:cr(s),bottom:cr(u),left:cr(c),right:cr(d)},$={top:cr(f),bottom:cr(p),left:cr(y),right:cr(b)},x={top:cr(g),bottom:cr(S),left:cr(v),right:cr(E)},C={top:r-w.top,bottom:i+w.bottom,left:n-w.left,right:o+w.right};return{margin:w,padding:$,border:x,top:r,left:n,bottom:i,right:o,width:a,height:l,extremities:C,floatingAlignment:aI(C)}}function sI(e,{margin:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n+t.bottom+t.top;e.fillStyle=wd.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(i,a,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:Oi(t.top),position:"top"},{type:"margin",text:Oi(t.right),position:"right"},{type:"margin",text:Oi(t.bottom),position:"bottom"},{type:"margin",text:Oi(t.left),position:"left"}];return f0(u)}function uI(e,{padding:t,border:r,width:n,height:o,top:i,left:a,bottom:l,right:s}){let u=n-r.left-r.right,c=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=wd.padding,e.fillRect(a+r.left,i+r.top,u,t.top),e.fillRect(s-t.right-r.right,i+t.top+r.top,t.right,c),e.fillRect(a+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(a+r.left,i+t.top+r.top,t.left,c);let d=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return f0(d)}function cI(e,{border:t,width:r,height:n,top:o,left:i,bottom:a,right:l}){let s=n-t.top-t.bottom;e.fillStyle=wd.border,e.fillRect(i,o,r,t.top),e.fillRect(i,a-t.bottom,r,t.bottom),e.fillRect(i,o+t.top,t.left,s),e.fillRect(l-t.right,o+t.top,t.right,s);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return f0(u)}function dI(e,{padding:t,border:r,width:n,height:o,top:i,left:a}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=wd.content,e.fillRect(a+r.left+t.left,i+r.top+t.top,l,s),[{type:"content",position:"center",text:`${Oi(l)} x ${Oi(s)}`}]}function fI(e){return t=>{if(e&&t){let r=lI(e),n=sI(t,r),o=uI(t,r),i=cI(t,r),a=dI(t,r),l=r.width<=uv*3||r.height<=uv;iI(t,r,[...a,...o,...i,...n],l)}}}function pI(e){qF(fI(e))}const{global:hI}=__STORYBOOK_MODULE_GLOBAL__;var gI=(e,t)=>{let r=hI.document.elementFromPoint(e,t),n=o=>{if(o&&o.shadowRoot){let i=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(i)?o:i.shadowRoot?n(i):i}return o};return n(r)||r},cv,Gs={x:0,y:0};function dv(e,t){cv=gI(e,t),pI(cv)}var mI=(e,t)=>{let{measureEnabled:r}=t.globals||{};return lv(()=>{if(typeof globalThis.document>"u")return;let n=o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),Gs.x=o.clientX,Gs.y=o.clientY})};return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),lv(()=>{let n=i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),dv(i.clientX,i.clientY)})},o=()=>{window.requestAnimationFrame(()=>{XF()})};return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),YF(),globalThis.window.addEventListener("resize",o),dv(Gs.x,Gs.y)),()=>{globalThis.window.removeEventListener("resize",o),JF()}},[r,t.viewMode]),e()},Jx;(Jx=globalThis.FEATURES)!=null&&Jx.measure;const{useEffect:yI,useMemo:bI}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Bu}=__STORYBOOK_MODULE_GLOBAL__;var fv=e=>{(Array.isArray(e)?e:[e]).forEach(vI)},vI=e=>{let t=typeof e=="string"?e:e.join(""),r=Bu.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},EI=(e,t)=>{let r=Bu.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Bu.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Bu.document.head.appendChild(n)}};function SI(e){return gr` ${e} body { outline: 1px solid #2980b9 !important; } ${e} article { outline: 1px solid #3498db !important; } ${e} nav { outline: 1px solid #0088c3 !important; } ${e} aside { outline: 1px solid #33a0ce !important; } ${e} section { outline: 1px solid #66b8da !important; } ${e} header { outline: 1px solid #99cfe7 !important; } ${e} footer { outline: 1px solid #cce7f3 !important; } ${e} h1 { outline: 1px solid #162544 !important; } ${e} h2 { outline: 1px solid #314e6e !important; } ${e} h3 { outline: 1px solid #3e5e85 !important; } ${e} h4 { outline: 1px solid #449baf !important; } ${e} h5 { outline: 1px solid #c7d1cb !important; } ${e} h6 { outline: 1px solid #4371d0 !important; } ${e} main { outline: 1px solid #2f4f90 !important; } ${e} address { outline: 1px solid #1a2c51 !important; } ${e} div { outline: 1px solid #036cdb !important; } ${e} p { outline: 1px solid #ac050b !important; } ${e} hr { outline: 1px solid #ff063f !important; } ${e} pre { outline: 1px solid #850440 !important; } ${e} blockquote { outline: 1px solid #f1b8e7 !important; } ${e} ol { outline: 1px solid #ff050c !important; } ${e} ul { outline: 1px solid #d90416 !important; } ${e} li { outline: 1px solid #d90416 !important; } ${e} dl { outline: 1px solid #fd3427 !important; } ${e} dt { outline: 1px solid #ff0043 !important; } ${e} dd { outline: 1px solid #e80174 !important; } ${e} figure { outline: 1px solid #ff00bb !important; } ${e} figcaption { outline: 1px solid #bf0032 !important; } ${e} table { outline: 1px solid #00cc99 !important; } ${e} caption { outline: 1px solid #37ffc4 !important; } ${e} thead { outline: 1px solid #98daca !important; } ${e} tbody { outline: 1px solid #64a7a0 !important; } ${e} tfoot { outline: 1px solid #22746b !important; } ${e} tr { outline: 1px solid #86c0b2 !important; } ${e} th { outline: 1px solid #a1e7d6 !important; } ${e} td { outline: 1px solid #3f5a54 !important; } ${e} col { outline: 1px solid #6c9a8f !important; } ${e} colgroup { outline: 1px solid #6c9a9d !important; } ${e} button { outline: 1px solid #da8301 !important; } ${e} datalist { outline: 1px solid #c06000 !important; } ${e} fieldset { outline: 1px solid #d95100 !important; } ${e} form { outline: 1px solid #d23600 !important; } ${e} input { outline: 1px solid #fca600 !important; } ${e} keygen { outline: 1px solid #b31e00 !important; } ${e} label { outline: 1px solid #ee8900 !important; } ${e} legend { outline: 1px solid #de6d00 !important; } ${e} meter { outline: 1px solid #e8630c !important; } ${e} optgroup { outline: 1px solid #b33600 !important; } ${e} option { outline: 1px solid #ff8a00 !important; } ${e} output { outline: 1px solid #ff9619 !important; } ${e} progress { outline: 1px solid #e57c00 !important; } ${e} select { outline: 1px solid #e26e0f !important; } ${e} textarea { outline: 1px solid #cc5400 !important; } ${e} details { outline: 1px solid #33848f !important; } ${e} summary { outline: 1px solid #60a1a6 !important; } ${e} command { outline: 1px solid #438da1 !important; } ${e} menu { outline: 1px solid #449da6 !important; } ${e} del { outline: 1px solid #bf0000 !important; } ${e} ins { outline: 1px solid #400000 !important; } ${e} img { outline: 1px solid #22746b !important; } ${e} iframe { outline: 1px solid #64a7a0 !important; } ${e} embed { outline: 1px solid #98daca !important; } ${e} object { outline: 1px solid #00cc99 !important; } ${e} param { outline: 1px solid #37ffc4 !important; } ${e} video { outline: 1px solid #6ee866 !important; } ${e} audio { outline: 1px solid #027353 !important; } ${e} source { outline: 1px solid #012426 !important; } ${e} canvas { outline: 1px solid #a2f570 !important; } ${e} track { outline: 1px solid #59a600 !important; } ${e} map { outline: 1px solid #7be500 !important; } ${e} area { outline: 1px solid #305900 !important; } ${e} a { outline: 1px solid #ff62ab !important; } ${e} em { outline: 1px solid #800b41 !important; } ${e} strong { outline: 1px solid #ff1583 !important; } ${e} i { outline: 1px solid #803156 !important; } ${e} b { outline: 1px solid #cc1169 !important; } ${e} u { outline: 1px solid #ff0430 !important; } ${e} s { outline: 1px solid #f805e3 !important; } ${e} small { outline: 1px solid #d107b2 !important; } ${e} abbr { outline: 1px solid #4a0263 !important; } ${e} q { outline: 1px solid #240018 !important; } ${e} cite { outline: 1px solid #64003c !important; } ${e} dfn { outline: 1px solid #b4005a !important; } ${e} sub { outline: 1px solid #dba0c8 !important; } ${e} sup { outline: 1px solid #cc0256 !important; } ${e} time { outline: 1px solid #d6606d !important; } ${e} code { outline: 1px solid #e04251 !important; } ${e} kbd { outline: 1px solid #5e001f !important; } ${e} samp { outline: 1px solid #9c0033 !important; } ${e} var { outline: 1px solid #d90047 !important; } ${e} mark { outline: 1px solid #ff0053 !important; } ${e} bdi { outline: 1px solid #bf3668 !important; } ${e} bdo { outline: 1px solid #6f1400 !important; } ${e} ruby { outline: 1px solid #ff7b93 !important; } ${e} rt { outline: 1px solid #ff2f54 !important; } ${e} rp { outline: 1px solid #803e49 !important; } ${e} span { outline: 1px solid #cc2643 !important; } ${e} br { outline: 1px solid #db687d !important; } ${e} wbr { outline: 1px solid #db175b !important; }`}var wI=(e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[rP]),o=t.viewMode==="docs",i=bI(()=>SI(o?'[data-story-block="true"]':".sb-show-main"),[t]);return yI(()=>{let a=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?EI(a,i):fv(a),()=>{fv(a)}},[n,i,t]),e()},Qx;(Qx=globalThis.FEATURES)!=null&&Qx.outline;const{clearAllMocks:vce,fn:Ece,isMockFunction:Sce,resetAllMocks:wce,restoreAllMocks:xce,uninstrumentedUserEvent:$ce,within:Cce}=__STORYBOOK_MODULE_TEST__;var ra=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),pv=(e,t)=>{let r=ra(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Vs=(e,t)=>`${pv(e,"kind")}${t?`--${pv(t,"name")}`:""}`,X$={exports:{}},fe={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var gs=Symbol.for("react.element"),xI=Symbol.for("react.portal"),$I=Symbol.for("react.fragment"),CI=Symbol.for("react.strict_mode"),_I=Symbol.for("react.profiler"),TI=Symbol.for("react.provider"),OI=Symbol.for("react.context"),AI=Symbol.for("react.forward_ref"),RI=Symbol.for("react.suspense"),DI=Symbol.for("react.memo"),PI=Symbol.for("react.lazy"),hv=Symbol.iterator;function kI(e){return e===null||typeof e!="object"?null:(e=hv&&e[hv]||e["@@iterator"],typeof e=="function"?e:null)}var J$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q$=Object.assign,Z$={};function Ca(e,t,r){this.props=e,this.context=t,this.refs=Z$,this.updater=r||J$}Ca.prototype.isReactComponent={};Ca.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ca.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eC(){}eC.prototype=Ca.prototype;function p0(e,t,r){this.props=e,this.context=t,this.refs=Z$,this.updater=r||J$}var h0=p0.prototype=new eC;h0.constructor=p0;Q$(h0,Ca.prototype);h0.isPureReactComponent=!0;var gv=Array.isArray,tC=Object.prototype.hasOwnProperty,g0={current:null},rC={key:!0,ref:!0,__self:!0,__source:!0};function nC(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)tC.call(t,n)&&!rC.hasOwnProperty(n)&&(o[n]=t[n]);var l=arguments.length-2;if(l===1)o.children=r;else if(1>>1,V=P[z];if(0>>1;zo(K,D))Xo(ee,K)?(P[z]=ee,P[X]=D,z=X):(P[z]=K,P[q]=D,z=q);else if(Xo(ee,D))P[z]=ee,P[X]=D,z=X;else break e}}return B}function o(P,B){var D=P.sortIndex-B.sortIndex;return D!==0?D:P.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,d=null,f=3,p=!1,y=!1,b=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(P){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=P)n(u),B.sortIndex=B.expirationTime,t(s,B);else break;B=r(u)}}function w(P){if(b=!1,E(P),!y)if(r(s)!==null)y=!0,k($);else{var B=r(u);B!==null&&F(w,B.startTime-P)}}function $(P,B){y=!1,b&&(b=!1,g(T),T=-1),p=!0;var D=f;try{for(E(B),d=r(s);d!==null&&(!(d.expirationTime>B)||P&&!_());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var V=z(d.expirationTime<=B);B=e.unstable_now(),typeof V=="function"?d.callback=V:d===r(s)&&n(s),E(B)}else n(s);d=r(s)}if(d!==null)var Z=!0;else{var q=r(u);q!==null&&F(w,q.startTime-B),Z=!1}return Z}finally{d=null,f=D,p=!1}}var x=!1,C=null,T=-1,A=5,O=-1;function _(){return!(e.unstable_now()-OP||125z?(P.sortIndex=D,t(u,P),r(s)===null&&P===r(u)&&(b?(g(T),T=-1):b=!0,F(w,D-z))):(P.sortIndex=V,t(s,P),y||p||(y=!0,k($))),P},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(P){var B=f;return function(){var D=f;f=B;try{return P.apply(this,arguments)}finally{f=D}}}})(lC);aC.exports=lC;var BI=aC.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var jI=h,nr=BI;function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yh=Object.prototype.hasOwnProperty,HI=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,yv={},bv={};function UI(e){return Yh.call(bv,e)?!0:Yh.call(yv,e)?!1:HI.test(e)?bv[e]=!0:(yv[e]=!0,!1)}function zI(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function KI(e,t,r,n){if(t===null||typeof t>"u"||zI(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Mt(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gt[e]=new Mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gt[t]=new Mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gt[e]=new Mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gt[e]=new Mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){gt[e]=new Mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gt[e]=new Mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gt[e]=new Mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gt[e]=new Mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gt[e]=new Mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var y0=/[\-:]([a-z])/g;function b0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(y0,b0);gt[t]=new Mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y0,b0);gt[t]=new Mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y0,b0);gt[t]=new Mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!1,!1)});gt.xlinkHref=new Mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gt[e]=new Mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function v0(e,t,r,n){var o=gt.hasOwnProperty(t)?gt[t]:null;(o!==null?o.type!==0:n||!(2l||o[a]!==i[l]){var s=` `+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Vf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ul(e):""}function WI(e){switch(e.tag){case 5:return ul(e.type);case 16:return ul("Lazy");case 13:return ul("Suspense");case 19:return ul("SuspenseList");case 0:case 2:case 15:return e=Yf(e.type,!1),e;case 11:return e=Yf(e.type.render,!1),e;case 1:return e=Yf(e.type,!0),e;default:return""}}function Qh(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ri:return"Fragment";case Ai:return"Portal";case qh:return"Profiler";case E0:return"StrictMode";case Xh:return"Suspense";case Jh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cC:return(e.displayName||"Context")+".Consumer";case uC:return(e._context.displayName||"Context")+".Provider";case S0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case w0:return t=e.displayName||null,t!==null?t:Qh(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return Qh(e(t))}catch{}}return null}function GI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qh(t);case 8:return t===E0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function uo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function VI(e){var t=fC(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xs(e){e._valueTracker||(e._valueTracker=VI(e))}function pC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=fC(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function vc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zh(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ev(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=uo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hC(e,t){t=t.checked,t!=null&&v0(e,"checked",t,!1)}function eg(e,t){hC(e,t);var r=uo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tg(e,t.type,r):t.hasOwnProperty("defaultValue")&&tg(e,t.type,uo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sv(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function tg(e,t,r){(t!=="number"||vc(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var cl=Array.isArray;function Ki(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Js.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Nl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},YI=["Webkit","ms","Moz","O"];Object.keys(vl).forEach(function(e){YI.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vl[t]=vl[e]})});function bC(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vl.hasOwnProperty(e)&&vl[e]?(""+t).trim():t+"px"}function vC(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=bC(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var qI=He({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function og(e,t){if(t){if(qI[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function ig(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ag=null;function x0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lg=null,Wi=null,Gi=null;function $v(e){if(e=bs(e)){if(typeof lg!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=Td(t),lg(e.stateNode,e.type,t))}}function EC(e){Wi?Gi?Gi.push(e):Gi=[e]:Wi=e}function SC(){if(Wi){var e=Wi,t=Gi;if(Gi=Wi=null,$v(e),t)for(e=0;e>>=0,e===0?32:31-(a8(e)/l8|0)|0}var Qs=64,Zs=4194304;function dl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~o;l!==0?n=dl(l):(i&=a,i!==0&&(n=dl(i)))}else a=r&~o,a!==0?n=dl(a):i!==0&&(n=dl(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function ms(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nr(t),e[t]=r}function d8(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=Sl),kv=" ",Fv=!1;function HC(e,t){switch(e){case"keyup":return B8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function UC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Di=!1;function H8(e,t){switch(e){case"compositionend":return UC(t);case"keypress":return t.which!==32?null:(Fv=!0,kv);case"textInput":return e=t.data,e===kv&&Fv?null:e;default:return null}}function U8(e,t){if(Di)return e==="compositionend"||!D0&&HC(e,t)?(e=BC(),zu=O0=Qn=null,Di=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Mv(r)}}function GC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?GC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function VC(){for(var e=window,t=vc();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=vc(e.document)}return t}function P0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function J8(e){var t=VC(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&GC(r.ownerDocument.documentElement,r)){if(n!==null&&P0(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=Bv(r,i);var a=Bv(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Pi=null,pg=null,xl=null,hg=!1;function jv(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;hg||Pi==null||Pi!==vc(n)||(n=Pi,"selectionStart"in n&&P0(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),xl&&zl(xl,n)||(xl=n,n=_c(pg,"onSelect"),0Ii||(e.current=Eg[Ii],Eg[Ii]=null,Ii--)}function Re(e,t){Ii++,Eg[Ii]=e.current,e.current=t}var co={},_t=mo(co),Wt=mo(!1),qo=co;function oa(e,t){var r=e.type.contextTypes;if(!r)return co;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Gt(e){return e=e.childContextTypes,e!=null}function Oc(){Fe(Wt),Fe(_t)}function Vv(e,t,r){if(_t.current!==co)throw Error(Q(168));Re(_t,t),Re(Wt,r)}function r_(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(Q(108,GI(e)||"Unknown",o));return He({},r,n)}function Ac(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,qo=_t.current,Re(_t,e),Re(Wt,Wt.current),!0}function Yv(e,t,r){var n=e.stateNode;if(!n)throw Error(Q(169));r?(e=r_(e,t,qo),n.__reactInternalMemoizedMergedChildContext=e,Fe(Wt),Fe(_t),Re(_t,e)):Fe(Wt),Re(Wt,r)}var Sn=null,Od=!1,sp=!1;function n_(e){Sn===null?Sn=[e]:Sn.push(e)}function u6(e){Od=!0,n_(e)}function yo(){if(!sp&&Sn!==null){sp=!0;var e=0,t=_e;try{var r=Sn;for(_e=1;e>=a,o-=a,Cn=1<<32-Nr(t)+o|r<T?(A=C,C=null):A=C.sibling;var O=f(g,C,E[T],w);if(O===null){C===null&&(C=A);break}e&&C&&O.alternate===null&&t(g,C),v=i(O,v,T),x===null?$=O:x.sibling=O,x=O,C=A}if(T===E.length)return r(g,C),Ne&&Ro(g,T),$;if(C===null){for(;TT?(A=C,C=null):A=C.sibling;var _=f(g,C,O.value,w);if(_===null){C===null&&(C=A);break}e&&C&&_.alternate===null&&t(g,C),v=i(_,v,T),x===null?$=_:x.sibling=_,x=_,C=A}if(O.done)return r(g,C),Ne&&Ro(g,T),$;if(C===null){for(;!O.done;T++,O=E.next())O=d(g,O.value,w),O!==null&&(v=i(O,v,T),x===null?$=O:x.sibling=O,x=O);return Ne&&Ro(g,T),$}for(C=n(g,C);!O.done;T++,O=E.next())O=p(C,g,T,O.value,w),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?T:O.key),v=i(O,v,T),x===null?$=O:x.sibling=O,x=O);return e&&C.forEach(function(I){return t(g,I)}),Ne&&Ro(g,T),$}function S(g,v,E,w){if(typeof E=="object"&&E!==null&&E.type===Ri&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case qs:e:{for(var $=E.key,x=v;x!==null;){if(x.key===$){if($=E.type,$===Ri){if(x.tag===7){r(g,x.sibling),v=o(x,E.props.children),v.return=g,g=v;break e}}else if(x.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===Gn&&Jv($)===x.type){r(g,x.sibling),v=o(x,E.props),v.ref=Xa(g,x,E),v.return=g,g=v;break e}r(g,x);break}else t(g,x);x=x.sibling}E.type===Ri?(v=Ko(E.props.children,g.mode,w,E.key),v.return=g,g=v):(w=Ju(E.type,E.key,E.props,null,g.mode,w),w.ref=Xa(g,v,E),w.return=g,g=w)}return a(g);case Ai:e:{for(x=E.key;v!==null;){if(v.key===x)if(v.tag===4&&v.stateNode.containerInfo===E.containerInfo&&v.stateNode.implementation===E.implementation){r(g,v.sibling),v=o(v,E.children||[]),v.return=g,g=v;break e}else{r(g,v);break}else t(g,v);v=v.sibling}v=mp(E,g.mode,w),v.return=g,g=v}return a(g);case Gn:return x=E._init,S(g,v,x(E._payload),w)}if(cl(E))return y(g,v,E,w);if(Wa(E))return b(g,v,E,w);au(g,E)}return typeof E=="string"&&E!==""||typeof E=="number"?(E=""+E,v!==null&&v.tag===6?(r(g,v.sibling),v=o(v,E),v.return=g,g=v):(r(g,v),v=gp(E,g.mode,w),v.return=g,g=v),a(g)):r(g,v)}return S}var aa=l_(!0),s_=l_(!1),Pc=mo(null),kc=null,Mi=null,L0=null;function N0(){L0=Mi=kc=null}function M0(e){var t=Pc.current;Fe(Pc),e._currentValue=t}function xg(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Yi(e,t){kc=e,L0=Mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(zt=!0),e.firstContext=null)}function wr(e){var t=e._currentValue;if(L0!==e)if(e={context:e,memoizedValue:t,next:null},Mi===null){if(kc===null)throw Error(Q(308));Mi=e,kc.dependencies={lanes:0,firstContext:e}}else Mi=Mi.next=e;return t}var Bo=null;function B0(e){Bo===null?Bo=[e]:Bo.push(e)}function u_(e,t,r,n){var o=t.interleaved;return o===null?(r.next=r,B0(t)):(r.next=o.next,o.next=r),t.interleaved=r,Dn(e,n)}function Dn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Vn=!1;function j0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c_(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function io(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ye&2){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Dn(e,r)}return o=n.interleaved,o===null?(t.next=t,B0(n)):(t.next=o.next,o.next=t),n.interleaved=t,Dn(e,r)}function Wu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,C0(e,r)}}function Qv(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=t:i=i.next=t}else o=i=t;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Fc(e,t,r,n){var o=e.updateQueue;Vn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?i=u:a.next=u,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==a&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(i!==null){var d=o.baseState;a=0,c=u=s=null,l=i;do{var f=l.lane,p=l.eventTime;if((n&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,b=l;switch(f=t,p=r,b.tag){case 1:if(y=b.payload,typeof y=="function"){d=y.call(p,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,f=typeof y=="function"?y.call(p,d,f):y,f==null)break e;d=He({},d,f);break e;case 2:Vn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,s=d):c=c.next=p,a|=f;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;f=l,l=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Qo|=a,e.lanes=a,e.memoizedState=d}}function Zv(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=cp.transition;cp.transition={};try{e(!1),t()}finally{_e=r,cp.transition=n}}function T_(){return xr().memoizedState}function p6(e,t,r){var n=lo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},O_(e))A_(t,r);else if(r=u_(e,t,r,n),r!==null){var o=It();Mr(r,e,n,o),R_(r,t,n)}}function h6(e,t,r){var n=lo(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(O_(e))A_(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,jr(l,a)){var s=t.interleaved;s===null?(o.next=o,B0(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}r=u_(e,t,o,n),r!==null&&(o=It(),Mr(r,e,n,o),R_(r,t,n))}}function O_(e){var t=e.alternate;return e===je||t!==null&&t===je}function A_(e,t){$l=Lc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function R_(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,C0(e,r)}}var Nc={readContext:wr,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useInsertionEffect:vt,useLayoutEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useMutableSource:vt,useSyncExternalStore:vt,useId:vt,unstable_isNewReconciler:!1},g6={readContext:wr,useCallback:function(e,t){return Jr().memoizedState=[e,t===void 0?null:t],e},useContext:wr,useEffect:tE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Vu(4194308,4,w_.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Vu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vu(4,2,e,t)},useMemo:function(e,t){var r=Jr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Jr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=p6.bind(null,je,e),[n.memoizedState,e]},useRef:function(e){var t=Jr();return e={current:e},t.memoizedState=e},useState:eE,useDebugValue:Y0,useDeferredValue:function(e){return Jr().memoizedState=e},useTransition:function(){var e=eE(!1),t=e[0];return e=f6.bind(null,e[1]),Jr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=je,o=Jr();if(Ne){if(r===void 0)throw Error(Q(407));r=r()}else{if(r=t(),lt===null)throw Error(Q(349));Jo&30||h_(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,tE(m_.bind(null,n,i,e),[e]),n.flags|=2048,Jl(9,g_.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Jr(),t=lt.identifierPrefix;if(Ne){var r=_n,n=Cn;r=(n&~(1<<32-Nr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ql++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[en]=t,e[Gl]=n,j_(e,t,!1,!1),t.stateNode=e;e:{switch(a=ig(r,n),r){case"dialog":Pe("cancel",e),Pe("close",e),o=n;break;case"iframe":case"object":case"embed":Pe("load",e),o=n;break;case"video":case"audio":for(o=0;oua&&(t.flags|=128,n=!0,Ja(i,!1),t.lanes=4194304)}else{if(!n)if(e=Ic(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ja(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ne)return Et(t),null}else 2*Ye()-i.renderingStartTime>ua&&r!==1073741824&&(t.flags|=128,n=!0,Ja(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ye(),t.sibling=null,r=Me.current,Re(Me,n?r&1|2:r&1),t):(Et(t),null);case 22:case 23:return ey(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Qt&1073741824&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function x6(e,t){switch(F0(t),t.tag){case 1:return Gt(t.type)&&Oc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return la(),Fe(Wt),Fe(_t),z0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return U0(t),null;case 13:if(Fe(Me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));ia()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(Me),null;case 4:return la(),null;case 10:return M0(t.type._context),null;case 22:case 23:return ey(),null;case 24:return null;default:return null}}var su=!1,xt=!1,$6=typeof WeakSet=="function"?WeakSet:Set,re=null;function Bi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ke(e,t,n)}else r.current=null}function Pg(e,t,r){try{r()}catch(n){Ke(e,t,n)}}var fE=!1;function C6(e,t){if(gg=$c,e=VC(),P0(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(l=a+o),d!==i||n!==0&&d.nodeType!==3||(s=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===r&&++u===o&&(l=a),f===i&&++c===n&&(s=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(mg={focusedElem:e,selectionRange:r},$c=!1,re=t;re!==null;)if(t=re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,re=e;else for(;re!==null;){t=re;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var b=y.memoizedProps,S=y.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:Ar(t.type,b),S);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var E=t.stateNode.containerInfo;E.nodeType===1?E.textContent="":E.nodeType===9&&E.documentElement&&E.removeChild(E.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(w){Ke(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,re=e;break}re=t.return}return y=fE,fE=!1,y}function Cl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Pg(t,r,i)}o=o.next}while(o!==n)}}function Dd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function kg(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function z_(e){var t=e.alternate;t!==null&&(e.alternate=null,z_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[Gl],delete t[vg],delete t[l6],delete t[s6])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function K_(e){return e.tag===5||e.tag===3||e.tag===4}function pE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fg(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Tc));else if(n!==4&&(e=e.child,e!==null))for(Fg(e,t,r),e=e.sibling;e!==null;)Fg(e,t,r),e=e.sibling}function Ig(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Ig(e,t,r),e=e.sibling;e!==null;)Ig(e,t,r),e=e.sibling}var ct=null,Dr=!1;function Bn(e,t,r){for(r=r.child;r!==null;)W_(e,t,r),r=r.sibling}function W_(e,t,r){if(sn&&typeof sn.onCommitFiberUnmount=="function")try{sn.onCommitFiberUnmount(xd,r)}catch{}switch(r.tag){case 5:xt||Bi(r,t);case 6:var n=ct,o=Dr;ct=null,Bn(e,t,r),ct=n,Dr=o,ct!==null&&(Dr?(e=ct,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ct.removeChild(r.stateNode));break;case 18:ct!==null&&(Dr?(e=ct,r=r.stateNode,e.nodeType===8?lp(e.parentNode,r):e.nodeType===1&&lp(e,r),Hl(e)):lp(ct,r.stateNode));break;case 4:n=ct,o=Dr,ct=r.stateNode.containerInfo,Dr=!0,Bn(e,t,r),ct=n,Dr=o;break;case 0:case 11:case 14:case 15:if(!xt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Pg(r,t,a),o=o.next}while(o!==n)}Bn(e,t,r);break;case 1:if(!xt&&(Bi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Ke(r,t,l)}Bn(e,t,r);break;case 21:Bn(e,t,r);break;case 22:r.mode&1?(xt=(n=xt)||r.memoizedState!==null,Bn(e,t,r),xt=n):Bn(e,t,r);break;default:Bn(e,t,r)}}function hE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new $6),t.forEach(function(n){var o=F6.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Tr(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=Ye()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*T6(n/1960))-n,10e?16:e,Zn===null)var n=!1;else{if(e=Zn,Zn=null,jc=0,ye&6)throw Error(Q(331));var o=ye;for(ye|=4,re=e.current;re!==null;){var i=re,a=i.child;if(re.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sYe()-Q0?zo(e,0):J0|=r),Vt(e,t)}function Z_(e,t){t===0&&(e.mode&1?(t=Zs,Zs<<=1,!(Zs&130023424)&&(Zs=4194304)):t=1);var r=It();e=Dn(e,t),e!==null&&(ms(e,t,r),Vt(e,r))}function k6(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Z_(e,r)}function F6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(Q(314))}n!==null&&n.delete(t),Z_(e,r)}var eT;eT=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Wt.current)zt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return zt=!1,S6(e,t,r);zt=!!(e.flags&131072)}else zt=!1,Ne&&t.flags&1048576&&o_(t,Dc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Yu(e,t),e=t.pendingProps;var o=oa(t,_t.current);Yi(t,r),o=W0(null,t,n,e,o,r);var i=G0();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Gt(n)?(i=!0,Ac(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,j0(t),o.updater=Rd,t.stateNode=o,o._reactInternals=t,Cg(t,n,e,r),t=Og(null,t,n,!0,i,r)):(t.tag=0,Ne&&i&&k0(t),Ft(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Yu(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=L6(n),e=Ar(n,e),o){case 0:t=Tg(null,t,n,e,r);break e;case 1:t=uE(null,t,n,e,r);break e;case 11:t=lE(null,t,n,e,r);break e;case 14:t=sE(null,t,n,Ar(n.type,e),r);break e}throw Error(Q(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),Tg(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),uE(e,t,n,o,r);case 3:e:{if(N_(t),e===null)throw Error(Q(387));n=t.pendingProps,i=t.memoizedState,o=i.element,c_(e,t),Fc(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=sa(Error(Q(423)),t),t=cE(e,t,n,r,o);break e}else if(n!==o){o=sa(Error(Q(424)),t),t=cE(e,t,n,r,o);break e}else for(er=oo(t.stateNode.containerInfo.firstChild),tr=t,Ne=!0,Fr=null,r=s_(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ia(),n===o){t=Pn(e,t,r);break e}Ft(e,t,n,r)}t=t.child}return t;case 5:return d_(t),e===null&&wg(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,yg(n,o)?a=null:i!==null&&yg(n,i)&&(t.flags|=32),L_(e,t),Ft(e,t,a,r),t.child;case 6:return e===null&&wg(t),null;case 13:return M_(e,t,r);case 4:return H0(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=aa(t,null,n,r):Ft(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),lE(e,t,n,o,r);case 7:return Ft(e,t,t.pendingProps,r),t.child;case 8:return Ft(e,t,t.pendingProps.children,r),t.child;case 12:return Ft(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Re(Pc,n._currentValue),n._currentValue=a,i!==null)if(jr(i.value,a)){if(i.children===o.children&&!Wt.current){t=Pn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===n){if(i.tag===1){s=Tn(-1,r&-r),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),xg(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(Q(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),xg(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ft(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Yi(t,r),o=wr(o),n=n(o),t.flags|=1,Ft(e,t,n,r),t.child;case 14:return n=t.type,o=Ar(n,t.pendingProps),o=Ar(n.type,o),sE(e,t,n,o,r);case 15:return F_(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Ar(n,o),Yu(e,t),t.tag=1,Gt(n)?(e=!0,Ac(t)):e=!1,Yi(t,r),D_(t,n,o),Cg(t,n,o,r),Og(null,t,n,!0,e,r);case 19:return B_(e,t,r);case 22:return I_(e,t,r)}throw Error(Q(156,t.tag))};function tT(e,t){return OC(e,t)}function I6(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function br(e,t,r,n){return new I6(e,t,r,n)}function ry(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L6(e){if(typeof e=="function")return ry(e)?1:0;if(e!=null){if(e=e.$$typeof,e===S0)return 11;if(e===w0)return 14}return 2}function so(e,t){var r=e.alternate;return r===null?(r=br(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ju(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")ry(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Ri:return Ko(r.children,o,i,t);case E0:a=8,o|=8;break;case qh:return e=br(12,r,t,o|2),e.elementType=qh,e.lanes=i,e;case Xh:return e=br(13,r,t,o),e.elementType=Xh,e.lanes=i,e;case Jh:return e=br(19,r,t,o),e.elementType=Jh,e.lanes=i,e;case dC:return kd(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uC:a=10;break e;case cC:a=9;break e;case S0:a=11;break e;case w0:a=14;break e;case Gn:a=16,n=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=br(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Ko(e,t,r,n){return e=br(7,e,n,t),e.lanes=r,e}function kd(e,t,r,n){return e=br(22,e,n,t),e.elementType=dC,e.lanes=r,e.stateNode={isHidden:!1},e}function gp(e,t,r){return e=br(6,e,null,t),e.lanes=r,e}function mp(e,t,r){return t=br(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function N6(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xf(0),this.expirationTimes=Xf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xf(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function ny(e,t,r,n,o,i,a,l,s){return e=new N6(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=br(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},j0(i),e}function M6(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iT)}catch(e){console.error(e)}}iT(),iC.exports=or;var Oa=iC.exports;const aT=Zm(Oa);var lT,wE=Oa;lT=wE.createRoot,wE.hydrateRoot;var zc=new Map;function z6(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var K6=({callback:e,children:t})=>{let r=h.useRef();return h.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}});var W6=async(e,t,r)=>{let n=await V6(t,r);if(z6()){n.render(e);return}let{promise:o,resolve:i}=Promise.withResolvers();return n.render(h.createElement(K6,{callback:i},e)),o},G6=(e,t)=>{let r=zc.get(e);r&&(r.unmount(),zc.delete(e))},V6=async(e,t)=>{let r=zc.get(e);return r||(r=lT(e,t),zc.set(e,r)),r},Hr=(e,t)=>{let r=e.replace(/\s+/g,"-");return t?`control-${t}-${r}`:`control-${r}`},Md=(e,t)=>{let r=e.replace(/\s+/g,"-");return t?`set-${t}-${r}`:`set-${r}`};function mt(){return mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);var c=r-i/2,d=l+c,f=s+c,p=u+c;return n(d,f,p)}var xE={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",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",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"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",grey:"808080",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",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",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:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Z6(e){if(typeof e!="string")return e;var t=e.toLowerCase();return xE[t]?"#"+xE[t]:e}var eL=/^#[a-fA-F0-9]{6}$/,tL=/^#[a-fA-F0-9]{8}$/,rL=/^#[a-fA-F0-9]{3}$/,nL=/^#[a-fA-F0-9]{4}$/,bp=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,oL=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,iL=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,aL=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function ca(e){if(typeof e!="string")throw new nn(3);var t=Z6(e);if(t.match(eL))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(tL)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(rL))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(nL)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=bp.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=oL.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var a=iL.exec(t);if(a){var l=parseInt(""+a[1],10),s=parseInt(""+a[2],10)/100,u=parseInt(""+a[3],10)/100,c="rgb("+Kc(l,s,u)+")",d=bp.exec(c);if(!d)throw new nn(4,t,c);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var f=aL.exec(t.substring(0,50));if(f){var p=parseInt(""+f[1],10),y=parseInt(""+f[2],10)/100,b=parseInt(""+f[3],10)/100,S="rgb("+Kc(p,y,b)+")",g=bp.exec(S);if(!g)throw new nn(4,t,S);return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new nn(5)}function lL(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var l,s=o-i,u=a>.5?s/(2-o-i):s/(o+i);switch(o){case t:l=(r-n)/s+(r=1?uT(e.hue,e.saturation,e.lightness):"rgba("+Kc(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new nn(2)}function zg(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Ug("#"+Po(e)+Po(t)+Po(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Ug("#"+Po(e.red)+Po(e.green)+Po(e.blue));throw new nn(6)}function ei(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=ca(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?zg(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?zg(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new nn(7)}var fL=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},pL=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},hL=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},gL=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function vo(e){if(typeof e!="object")throw new nn(8);if(pL(e))return ei(e);if(fL(e))return zg(e);if(gL(e))return dL(e);if(hL(e))return cL(e);throw new nn(8)}function cT(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):cT(e,t,n)}}function ar(e){return cT(e,e.length,[])}function mL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{hue:r.hue+parseFloat(e)}))}ar(mL);function Aa(e,t,r){return Math.max(e,Math.min(t,r))}function yL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{lightness:Aa(0,1,r.lightness-parseFloat(e))}))}var bL=ar(yL),$t=bL;function vL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{saturation:Aa(0,1,r.saturation-parseFloat(e))}))}ar(vL);function EL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{lightness:Aa(0,1,r.lightness+parseFloat(e))}))}var SL=ar(EL),Qu=SL;function wL(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=ca(t),o=mt({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=ca(r),a=mt({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=o.alpha-a.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,d=(u/c+1)/2,f=1-d,p={red:Math.floor(o.red*d+a.red*f),green:Math.floor(o.green*d+a.green*f),blue:Math.floor(o.blue*d+a.blue*f),alpha:o.alpha*parseFloat(e)+a.alpha*(1-parseFloat(e))};return ei(p)}var xL=ar(wL),dT=xL;function $L(e,t){if(t==="transparent")return t;var r=ca(t),n=typeof r.alpha=="number"?r.alpha:1,o=mt({},r,{alpha:Aa(0,1,(n*100+parseFloat(e)*100)/100)});return ei(o)}var CL=ar($L),_L=CL;function TL(e,t){if(t==="transparent")return t;var r=bo(t);return vo(mt({},r,{saturation:Aa(0,1,r.saturation+parseFloat(e))}))}ar(TL);function OL(e,t){return t==="transparent"?t:vo(mt({},bo(t),{hue:parseFloat(e)}))}ar(OL);function AL(e,t){return t==="transparent"?t:vo(mt({},bo(t),{lightness:parseFloat(e)}))}ar(AL);function RL(e,t){return t==="transparent"?t:vo(mt({},bo(t),{saturation:parseFloat(e)}))}ar(RL);function DL(e,t){return t==="transparent"?t:dT(parseFloat(e),"rgb(0, 0, 0)",t)}ar(DL);function PL(e,t){return t==="transparent"?t:dT(parseFloat(e),"rgb(255, 255, 255)",t)}ar(PL);function kL(e,t){if(t==="transparent")return t;var r=ca(t),n=typeof r.alpha=="number"?r.alpha:1,o=mt({},r,{alpha:Aa(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return ei(o)}var FL=ar(kL),kn=FL,oe={primary:"#FF4785",secondary:"#006DEB",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F6F9FC",light:"#EEF2F6",mediumlight:"#ECF2F9",medium:"#D9E5F2",mediumdark:"#737F8C",dark:"#5C6570",darker:"#454C54",darkest:"#2E3338",border:"hsl(212 50% 30% / 0.15)",positive:"#66BF3C",warning:"#E69D00",negative:"#FF4400",critical:"#FFFFFF",defaultText:"#2E3338",inverseText:"#FFFFFF",positiveText:"#427C27",warningText:"#955B1E",negativeText:"#C23400"},xn={app:"#F6F9FC",bar:oe.lightest,content:oe.lightest,preview:oe.lightest,gridCellSize:10,positive:"#F1FFEB",warning:"#FFF9EB",negative:"#FFF0EB",critical:"#D13800"},Lr={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Kg={light:{fgColor:{default:oe.darkest,muted:oe.dark,accent:oe.secondary,inverse:oe.lightest,positive:"#427C27",warning:"#7A4100",negative:"#C23400",critical:"#FFFFFF"},bgColor:{default:oe.lightest,muted:xn.app,positive:"#F1FFEB",warning:"#FFF7EB",negative:"#FFF0EB",critical:"#D13800"},borderColor:{default:oe.border,muted:"hsl(0 0% 0% / 0.1)",inverse:"hsl(0 0% 100% / 0.1)",positive:"#BFE7AC",warning:"#FFCE85",negative:"#FFC3AD",critical:"hsl(16 100% 100% / 0)"}},dark:{fgColor:{default:"#C9CCCF",muted:"#95999D",accent:"#479DFF",inverse:"#1B1C1D",positive:"#86CE64",warning:"#FFAD33",negative:"#FF6933",critical:"#FF6933"},bgColor:{default:"#222325",muted:"#1B1C1D",positive:"hsl(101 100% 100% / 0)",warning:"hsl(101 100% 100% / 0)",negative:"hsl(101 100% 100% / 0)",critical:"hsl(101 100% 100% / 0)"},borderColor:{default:"hsl(0 0% 100% / 0.1)",muted:"hsl(0 0% 100% / 0.5)",inverse:"hsl(0 0% 0% / 0.1)",positive:"hsl(101 52% 64% / 0.15)",warning:"hsl(36 100% 64% / 0.15)",negative:"hsl(16 100% 64% / 0.15)",critical:"#FF6933"}}},IL={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#479DFF",appBg:"#1B1C1D",appContentBg:"#222325",appHoverBg:"#233952",appPreviewBg:oe.lightest,appBorderColor:"hsl(0 0% 100% / 0.1)",appBorderRadius:4,fontBase:Lr.fonts.base,fontCode:Lr.fonts.mono,textColor:"#C9CCCF",textInverseColor:"#1B1C1D",textMutedColor:"#95999D",barTextColor:"#95999D",barHoverColor:"#70B3FF",barSelectedColor:"#479DFF",barBg:"#222325",buttonBg:"#1B1C1D",buttonBorder:"hsl(0 0% 100% / 0.1)",booleanBg:"#1B1C1D",booleanSelectedBg:"#292B2E",inputBg:"#1B1C1D",inputBorder:"hsl(0 0% 100% / 0.1)",inputTextColor:"#C9CCCF",inputBorderRadius:4},LL=IL,NL={base:"light",colorPrimary:oe.primary,colorSecondary:oe.secondary,appBg:xn.app,appContentBg:oe.lightest,appHoverBg:"#DBECFF",appPreviewBg:oe.lightest,appBorderColor:oe.border,appBorderRadius:4,fontBase:Lr.fonts.base,fontCode:Lr.fonts.mono,textColor:oe.darkest,textInverseColor:oe.lightest,textMutedColor:oe.dark,barTextColor:oe.dark,barHoverColor:"#005CC7",barSelectedColor:"#0063D6",barBg:oe.lightest,buttonBg:xn.app,buttonBorder:oe.medium,booleanBg:oe.mediumlight,booleanSelectedBg:oe.lightest,inputBg:oe.lightest,inputBorder:oe.border,inputTextColor:oe.darkest,inputBorderRadius:4},Wg=NL;const{logger:ML}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:BL}=__STORYBOOK_MODULE_GLOBAL__;var{window:Ep}=BL,jL=e=>({color:e}),HL=e=>typeof e!="string"?(ML.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,UL=e=>!/(gradient|var|calc)/.test(e),zL=(e,t)=>e==="darken"?ei(`${$t(1,t)}`,.95):e==="lighten"?ei(`${Qu(1,t)}`,.95):t,KL=e=>t=>{if(!HL(t)||!UL(t))return t;try{return zL(e,t)}catch{return t}},ly=KL("lighten"),sy=()=>!Ep||!Ep.matchMedia?"light":Ep.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",$E={light:Wg,dark:LL},Zu=sy(),Wo={...$E,normal:$E[Zu]},fT=(e={base:Zu},t)=>{let r={...Wo[Zu],...Wo[e.base]||{},...e,base:Wo[e.base]?e.base:Zu};return{...t,...r,barSelectedColor:e.barSelectedColor||r.colorSecondary}},WL=Tt({"../../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,E=t?Symbol.for("react.scope"):60119;function w(x){if(typeof x=="object"&&x!==null){var C=x.$$typeof;switch(C){case r:switch(x=x.type,x){case u:case c:case o:case a:case i:case f:return x;default:switch(x=x&&x.$$typeof,x){case s:case d:case b:case y:case l:return x;default:return C}}case n:return C}}}function $(x){return w(x)===c}e.AsyncMode=u,e.ConcurrentMode=c,e.ContextConsumer=s,e.ContextProvider=l,e.Element=r,e.ForwardRef=d,e.Fragment=o,e.Lazy=b,e.Memo=y,e.Portal=n,e.Profiler=a,e.StrictMode=i,e.Suspense=f,e.isAsyncMode=function(x){return $(x)||w(x)===u},e.isConcurrentMode=$,e.isContextConsumer=function(x){return w(x)===s},e.isContextProvider=function(x){return w(x)===l},e.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===r},e.isForwardRef=function(x){return w(x)===d},e.isFragment=function(x){return w(x)===o},e.isLazy=function(x){return w(x)===b},e.isMemo=function(x){return w(x)===y},e.isPortal=function(x){return w(x)===n},e.isProfiler=function(x){return w(x)===a},e.isStrictMode=function(x){return w(x)===i},e.isSuspense=function(x){return w(x)===f},e.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===o||x===c||x===a||x===i||x===f||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===y||x.$$typeof===l||x.$$typeof===s||x.$$typeof===d||x.$$typeof===g||x.$$typeof===v||x.$$typeof===E||x.$$typeof===S)},e.typeOf=w}}),GL=Tt({"../../node_modules/react-is/index.js"(e,t){t.exports=WL()}}),pT=Tt({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var r=GL(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=i,l[r.Memo]=a;function s(S){return r.isMemo(S)?a:l[S.$$typeof]||n}var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;function b(S,g,v){if(typeof g!="string"){if(y){var E=p(g);E&&E!==y&&b(S,E,v)}var w=c(g);d&&(w=w.concat(d(g)));for(var $=s(S),x=s(g),C=0;C0?dt(Ra,--Yt):0,da--,Xe===10&&(da=1,jd--),Xe}function rr(){return Xe=Yt2||ts(Xe)>3?"":" "}function aN(e,t){for(;--t&&rr()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return Es(e,ec()+(t<6&&cn()==32&&rr()==32))}function Vg(e){for(;rr();)switch(Xe){case e:return Yt;case 34:case 39:e!==34&&e!==39&&Vg(Xe);break;case 40:e===41&&Vg(e);break;case 92:rr();break}return Yt}function lN(e,t){for(;rr()&&e+Xe!==57&&!(e+Xe===84&&cn()===47););return"/*"+Es(t,Yt-1)+"*"+Bd(e===47?e:rr())}function sN(e){for(;!ts(cn());)rr();return Es(e,Yt)}function uN(e){return vT(rc("",null,null,null,[""],e=bT(e),0,[0],e))}function rc(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,f=0,p=0,y=0,b=1,S=1,g=1,v=0,E="",w=o,$=i,x=n,C=E;S;)switch(y=v,v=rr()){case 40:if(y!=108&&dt(C,d-1)==58){Gg(C+=we(tc(v),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:C+=tc(v);break;case 9:case 10:case 13:case 32:C+=iN(y);break;case 92:C+=aN(ec()-1,7);continue;case 47:switch(cn()){case 42:case 47:du(cN(lN(rr(),ec()),t,r),s);break;default:C+="/"}break;case 123*b:l[u++]=Qr(C)*g;case 125*b:case 59:case 0:switch(v){case 0:case 125:S=0;case 59+c:g==-1&&(C=we(C,/\f/g,"")),p>0&&Qr(C)-d&&du(p>32?_E(C+";",n,r,d-1):_E(we(C," ","")+";",n,r,d-2),s);break;case 59:C+=";";default:if(du(x=CE(C,t,r,u,c,o,l,E,w=[],$=[],d),i),v===123)if(c===0)rc(C,t,x,x,w,i,d,l,$);else switch(f===99&&dt(C,3)===110?100:f){case 100:case 108:case 109:case 115:rc(e,x,x,n&&du(CE(e,x,x,0,0,o,l,E,o,w=[],d),$),o,$,d,l,n?w:$);break;default:rc(C,x,x,x,[""],$,0,l,$)}}u=c=p=0,b=g=1,E=C="",d=a;break;case 58:d=1+Qr(C),p=y;default:if(b<1){if(v==123)--b;else if(v==125&&b++==0&&oN()==125)continue}switch(C+=Bd(v),v*b){case 38:g=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Qr(C)-1)*g,g=1;break;case 64:cn()===45&&(C+=tc(rr())),f=cn(),c=d=Qr(E=C+=sN(ec())),v++;break;case 45:y===45&&Qr(C)==2&&(b=0)}}return i}function CE(e,t,r,n,o,i,a,l,s,u,c){for(var d=o-1,f=o===0?i:[""],p=dy(f),y=0,b=0,S=0;y0?f[g]+" "+v:we(v,/&\f/g,f[g])))&&(s[S++]=E);return Hd(e,t,r,o===0?uy:l,s,u,c)}function cN(e,t,r){return Hd(e,t,r,hT,Bd(nN()),es(e,2,-2),0)}function _E(e,t,r,n){return Hd(e,t,r,cy,es(e,0,n),es(e,n+1,-1),n)}function Xi(e,t){for(var r="",n=dy(e),o=0;o6)switch(dt(e,t+1)){case 109:if(dt(e,t+4)!==45)break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+Se+"$2-$3$1"+Wc+(dt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gg(e,"stretch")?ST(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dt(e,t+1)!==115)break;case 6444:switch(dt(e,Qr(e)-3-(~Gg(e,"!important")&&10))){case 107:return we(e,":",":"+Se)+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Se+(dt(e,14)===45?"inline-":"")+"box$3$1"+Se+"$2$3$1"+wt+"$2box$3")+e}break;case 5936:switch(dt(e,t+11)){case 114:return Se+e+wt+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Se+e+wt+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Se+e+wt+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Se+e+wt+e+e}return e}var vN=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case cy:e.return=ST(e.value,e.length);break;case gT:return Xi([Za(e,{value:we(e.value,"@","@"+Se)})],n);case uy:if(e.length)return rN(e.props,function(o){switch(tN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xi([Za(e,{props:[we(o,/:(read-\w+)/,":"+Wc+"$1")]})],n);case"::placeholder":return Xi([Za(e,{props:[we(o,/:(plac\w+)/,":"+Se+"input-$1")]}),Za(e,{props:[we(o,/:(plac\w+)/,":"+Wc+"$1")]}),Za(e,{props:[we(o,/:(plac\w+)/,wt+"input-$1")]})],n)}return""})}},EN=[vN],wT=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var b=y.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var n=e.stylisPlugins||EN,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(y){for(var b=y.getAttribute("data-emotion").split(" "),S=1;S=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 xN={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},$N=/[A-Z]|^ms/g,CN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xT=function(e){return e.charCodeAt(1)===45},AE=function(e){return e!=null&&typeof e!="boolean"},Sp=ET(function(e){return xT(e)?e:e.replace($N,"-$&").toLowerCase()}),RE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(CN,function(r,n,o){return Zr={name:n,styles:o,next:Zr},n})}return xN[e]!==1&&!xT(e)&&typeof t=="number"&&t!==0?t+"px":t};function rs(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Zr={name:o.name,styles:o.styles,next:Zr},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Zr={name:a.name,styles:a.styles,next:Zr},a=a.next;var l=i.styles+";";return l}return _N(e,t,r)}case"function":{if(e!==void 0){var s=Zr,u=r(e);return Zr=s,rs(e,t,u)}break}}var c=r;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function _N(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?MN:BN},FE=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(i){return e.__emotion_forwardProp(i)&&o(i)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},jN=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ud(t,r,n),py(function(){return zd(t,r,n)}),null},HN=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var l=FE(t,r,n),s=l||kE(o),u=!s("as");return function(){var c=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var f=c[0];d.push(f[0]);for(var p=c.length,y=1;y({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,_T.default)(1)(({color:e,background:t,typography:r})=>{let n=TT({typography:r});return{...n,body:{...n.body,position:"fixed",width:"100vw",height:"100vh",overflow:"hidden",color:e.defaultText,background:t.app},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":my,".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1},"[data-sb-landmark]":{position:"relative"},"[data-sb-landmark]:focus-visible":{outline:"none"},"[data-sb-landmark]:focus-visible::after":{outline:`2px solid ${e.primary}`,outlineOffset:"-2px"},"[data-sb-landmark]::after":{content:"''",position:"absolute",inset:0,pointerEvents:"none"},".react-aria-Popover:focus-visible":{outline:"none"}}});var zN={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},KN=ut` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,OT=ut` 0%, 100% { opacity: 1; } 50% { opacity: .4; } `,WN=ut` 0% { transform: translateY(1px); } 25% { transform: translateY(0px); } 50% { transform: translateY(-3px); } 100% { transform: translateY(1px); } `,GN=ut` 0%, 100% { transform:translate3d(0,0,0); } 12.5%, 62.5% { transform:translate3d(-4px,0,0); } 37.5%, 87.5% { transform: translate3d(4px,0,0); } `,VN=Gd` animation: ${OT} 1.5s ease-in-out infinite; color: transparent; cursor: progress; `,YN=Gd` transition: all 150ms ease-out; transform: translate3d(0, 0, 0); &:hover { transform: translate3d(0, -2px, 0); } &:active { transform: translate3d(0, 0, 0); } `,qN={rotate360:KN,glow:OT,float:WN,jiggle:GN,inlineGlow:VN,hoverable:YN},XN={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},JN={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},QN=e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:jL(n)}),{}),ZN=({colors:e,mono:t})=>{let r=QN(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},e7={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#eb0000",gray1:"#393A34",cyan1:"#008380",cyan2:"#007ca0",blue1:"#0000ff",blue2:"#00009f"},t7={green1:"#95999D",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},r7=e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:oe.tertiary,ancillary:oe.ancillary,orange:oe.orange,gold:oe.gold,green:oe.green,seafoam:oe.seafoam,purple:oe.purple,ultraviolet:oe.ultraviolet,lightest:oe.lightest,lighter:oe.lighter,light:oe.light,mediumlight:oe.mediumlight,medium:oe.medium,mediumdark:oe.mediumdark,dark:oe.dark,darker:oe.darker,darkest:oe.darkest,border:oe.border,positive:oe.positive,negative:oe.negative,warning:oe.warning,critical:oe.critical,defaultText:e.textColor||oe.darkest,inverseText:e.textInverseColor||oe.lightest,positiveText:oe.positiveText,negativeText:oe.negativeText,warningText:oe.warningText}),Gc=(e=Wo[sy()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:i,appHoverBg:a,appPreviewBg:l,appBorderColor:s,appBorderRadius:u,fontBase:c,fontCode:d,textColor:f,textInverseColor:p,barTextColor:y,barHoverColor:b,barSelectedColor:S,barBg:g,buttonBg:v,buttonBorder:E,booleanBg:w,booleanSelectedBg:$,inputBg:x,inputBorder:C,inputTextColor:T,inputBorderRadius:A,brandTitle:O,brandUrl:_,brandImage:I,brandTarget:L,gridCellSize:M,...U}=e;return{...U,base:t,...t==="dark"?Kg.dark:Kg.light,color:r7(e),background:{app:o,bar:g,content:i,preview:l,gridCellSize:M||xn.gridCellSize,hoverable:a,positive:xn.positive,negative:xn.negative,warning:xn.warning,critical:xn.critical},typography:{fonts:{base:c,mono:d},weight:Lr.weight,size:Lr.size},animation:qN,easing:zN,input:{background:x,border:C,borderRadius:A,color:T},button:{background:v||x,border:E||C},boolean:{background:w||C,selectedBackground:$||x},layoutMargin:10,appBorderColor:s,appBorderRadius:u,barTextColor:y,barHoverColor:b||n,barSelectedColor:S||n,barBg:g,brand:{title:O,url:_,image:I||(O?null:void 0),target:L},code:ZN({colors:t==="dark"?t7:e7,mono:d}),addonActionsTheme:{...t==="dark"?XN:JN,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Lr.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:f,ARROW_COLOR:_L(.2,s),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Lr.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}};const{logger:n7}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var o7=e=>Object.keys(e).length===0,wp=e=>e!=null&&typeof e=="object",i7=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),a7=()=>Object.create(null),AT=(e,t)=>e===t||!wp(e)||!wp(t)?{}:Object.keys(e).reduce((r,n)=>{if(i7(t,n)){let o=AT(e[n],t[n]);return wp(o)&&o7(o)||(r[n]=o),r}return r[n]=void 0,r},a7()),l7=AT,RT=e=>{if(!e)return Gc(Wg);let t=l7(Wg,e);return Object.keys(t).length&&n7.warn(gr` Your theme is missing properties, you should update your theme! theme-data missing: `,t),Gc(e)},Vc="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */";const s7=Object.freeze(Object.defineProperty({__proto__:null,ThemeProvider:hy,background:xn,color:oe,convert:Gc,create:fT,createCache:wT,createReset:TT,css:Gd,ensure:RT,getPreferredColorScheme:sy,ignoreSsrWarning:Vc,isPropValid:Vd,get jsx(){return qg},keyframes:ut,lighten:ly,srOnlyStyles:my,styled:R,themes:Wo,tokens:Kg,typography:Lr,useTheme:Wd},Symbol.toStringTag,{value:"Module"}));var DT={exports:{}},Yd={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var u7=h,c7=Symbol.for("react.element"),d7=Symbol.for("react.fragment"),f7=Object.prototype.hasOwnProperty,p7=u7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h7={key:!0,ref:!0,__self:!0,__source:!0};function PT(e,t,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)f7.call(t,n)&&!h7.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:c7,type:e,key:i,ref:a,props:o,_owner:p7.current}}Yd.Fragment=d7;Yd.jsx=PT;Yd.jsxs=PT;DT.exports=Yd;var pe=DT.exports,g7=R.div(({theme:e,$flexLayout:t=!1})=>[{background:e.background.content},t?{display:"inline-flex",marginInlineStart:"auto",alignSelf:"flex-end"}:{position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",zIndex:1}]),kT=R.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});kT.displayName="ActionButton";var m7=({actionItems:e,flexLayout:t=!1,...r})=>m.createElement(g7,{...r,$flexLayout:t},e.map(({title:n,className:o,onClick:i,disabled:a},l)=>m.createElement(kT,{key:l,className:o,onClick:i,disabled:!!a},n)));function y7(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function FT(...e){return t=>e.forEach(r=>y7(r,t))}function ci(...e){return h.useCallback(FT(...e),e)}var IT=h.forwardRef((e,t)=>{let{children:r,...n}=e,o=h.Children.toArray(r),i=o.find(v7);if(i){let a=i.props.children,l=o.map(s=>s===i?h.Children.count(a)>1?h.Children.only(null):h.isValidElement(a)?a.props.children:null:s);return pe.jsx(Xg,{...n,ref:t,children:h.isValidElement(a)?h.cloneElement(a,void 0,l):null})}return pe.jsx(Xg,{...n,ref:t,children:r})});IT.displayName="Slot";var Xg=h.forwardRef((e,t)=>{let{children:r,...n}=e;if(h.isValidElement(r)){let o=S7(r);return h.cloneElement(r,{...E7(n,r.props),ref:t?FT(t,o):o})}return h.Children.count(r)>1?h.Children.only(null):null});Xg.displayName="SlotClone";var b7=({children:e})=>pe.jsx(pe.Fragment,{children:e});function v7(e){return h.isValidElement(e)&&e.type===b7}function E7(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...a)=>{i(...a),o(...a)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function S7(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var w7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ws=w7.reduce((e,t)=>{let r=h.forwardRef((n,o)=>{let{asChild:i,...a}=n,l=i?IT:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),pe.jsx(l,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Jg=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{};function x7(e,t){return h.useReducer((r,n)=>t[r][n]??r,e)}var xs=e=>{let{present:t,children:r}=e,n=$7(t),o=typeof r=="function"?r({present:n.isPresent}):h.Children.only(r),i=ci(n.ref,C7(o));return typeof r=="function"||n.isPresent?h.cloneElement(o,{ref:i}):null};xs.displayName="Presence";function $7(e){let[t,r]=h.useState(),n=h.useRef({}),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[l,s]=x7(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{let u=fu(n.current);i.current=l==="mounted"?u:"none"},[l]),Jg(()=>{let u=n.current,c=o.current;if(c!==e){let d=i.current,f=fu(u);e?s("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Jg(()=>{if(t){let u=d=>{let f=fu(n.current).includes(d.animationName);d.target===t&&f&&Oa.flushSync(()=>s("ANIMATION_END"))},c=d=>{d.target===t&&(i.current=fu(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:h.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function fu(e){return(e==null?void 0:e.animationName)||"none"}function C7(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function _7(e,t=[]){let r=[];function n(i,a){let l=h.createContext(a),s=r.length;r=[...r,a];function u(d){let{scope:f,children:p,...y}=d,b=(f==null?void 0:f[e][s])||l,S=h.useMemo(()=>y,Object.values(y));return pe.jsx(b.Provider,{value:S,children:p})}function c(d,f){let p=(f==null?void 0:f[e][s])||l,y=h.useContext(p);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,c]}let o=()=>{let i=r.map(a=>h.createContext(a));return function(a){let l=(a==null?void 0:a[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[n,T7(o,...t)]}function T7(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){let i=n.reduce((a,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...a,...u}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function Lo(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var O7=h.createContext(void 0);function A7(e){let t=h.useContext(O7);return e||t||"ltr"}function R7(e,[t,r]){return Math.min(r,Math.max(t,e))}function Go(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}function D7(e,t){return h.useReducer((r,n)=>t[r][n]??r,e)}var yy="ScrollArea",[LT]=_7(yy),[P7,Cr]=LT(yy),NT=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...a}=e,[l,s]=h.useState(null),[u,c]=h.useState(null),[d,f]=h.useState(null),[p,y]=h.useState(null),[b,S]=h.useState(null),[g,v]=h.useState(0),[E,w]=h.useState(0),[$,x]=h.useState(!1),[C,T]=h.useState(!1),A=ci(t,_=>s(_)),O=A7(o);return pe.jsx(P7,{scope:r,type:n,dir:O,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:y,scrollbarXEnabled:$,onScrollbarXEnabledChange:x,scrollbarY:b,onScrollbarYChange:S,scrollbarYEnabled:C,onScrollbarYEnabledChange:T,onCornerWidthChange:v,onCornerHeightChange:w,children:pe.jsx(ws.div,{dir:O,...a,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});NT.displayName=yy;var MT="ScrollAreaViewport",BT=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...a}=e,l=Cr(MT,r),s=h.useRef(null),u=ci(t,s,l.onViewportChange);return pe.jsxs(pe.Fragment,{children:[pe.jsx("style",{dangerouslySetInnerHTML:{__html:` [data-radix-scroll-area-viewport] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } [data-radix-scroll-area-viewport]::-webkit-scrollbar { display: none; } :where([data-radix-scroll-area-viewport]) { display: flex; flex-direction: column; align-items: stretch; } :where([data-radix-scroll-area-content]) { flex-grow: 1; } `},nonce:i}),pe.jsx(ws.div,{"data-radix-scroll-area-viewport":"",...a,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:U7({asChild:o,children:n},c=>pe.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:c}))})]})});BT.displayName=MT;var fn="ScrollAreaScrollbar",jT=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Cr(fn,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,l=e.orientation==="horizontal";return h.useEffect(()=>(l?i(!0):a(!0),()=>{l?i(!1):a(!1)}),[l,i,a]),o.type==="hover"?pe.jsx(k7,{...n,ref:t,forceMount:r}):o.type==="scroll"?pe.jsx(F7,{...n,ref:t,forceMount:r}):o.type==="auto"?pe.jsx(HT,{...n,ref:t,forceMount:r}):o.type==="always"?pe.jsx(by,{...n,ref:t}):null});jT.displayName=fn;var k7=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Cr(fn,e.__scopeScrollArea),[i,a]=h.useState(!1);return h.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=()=>{window.clearTimeout(s),a(!0)},c=()=>{s=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",c),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),pe.jsx(xs,{present:r||i,children:pe.jsx(HT,{"data-state":i?"visible":"hidden",...n,ref:t})})}),F7=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=Cr(fn,e.__scopeScrollArea),i=e.orientation==="horizontal",a=Xd(()=>s("SCROLL_END"),100),[l,s]=D7("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return h.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),h.useEffect(()=>{let u=o.viewport,c=i?"scrollLeft":"scrollTop";if(u){let d=u[c],f=()=>{let p=u[c];d!==p&&(s("SCROLL"),a()),d=p};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,i,s,a]),pe.jsx(xs,{present:r||l!=="hidden",children:pe.jsx(by,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:Go(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:Go(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),HT=h.forwardRef((e,t)=>{let r=Cr(fn,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,a]=h.useState(!1),l=e.orientation==="horizontal",s=Xd(()=>{if(r.viewport){let u=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,o=Cr(fn,e.__scopeScrollArea),i=h.useRef(null),a=h.useRef(0),[l,s]=h.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=GT(l.viewport,l.content),c={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function d(f,p){return j7(f,a.current,l,p)}return r==="horizontal"?pe.jsx(I7,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let f=o.viewport.scrollLeft,p=IE(f,l,o.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):r==="vertical"?pe.jsx(L7,{...c,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){let f=o.viewport.scrollTop,p=IE(f,l);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),I7=h.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Cr(fn,e.__scopeScrollArea),[a,l]=h.useState(),s=h.useRef(null),u=ci(t,s,i.onScrollbarXChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),pe.jsx(zT,{"data-orientation":"horizontal",...o,ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":qd(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.x),onDragScroll:c=>e.onDragScroll(c.x),onWheelScroll:(c,d)=>{if(i.viewport){let f=i.viewport.scrollLeft+c.deltaX;e.onWheelScroll(f),YT(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:qc(a.paddingLeft),paddingEnd:qc(a.paddingRight)}})}})}),L7=h.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Cr(fn,e.__scopeScrollArea),[a,l]=h.useState(),s=h.useRef(null),u=ci(t,s,i.onScrollbarYChange);return h.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),pe.jsx(zT,{"data-orientation":"vertical",...o,ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":qd(r)+"px",...e.style},onThumbPointerDown:c=>e.onThumbPointerDown(c.y),onDragScroll:c=>e.onDragScroll(c.y),onWheelScroll:(c,d)=>{if(i.viewport){let f=i.viewport.scrollTop+c.deltaY;e.onWheelScroll(f),YT(f,d)&&c.preventDefault()}},onResize:()=>{s.current&&i.viewport&&a&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:qc(a.paddingTop),paddingEnd:qc(a.paddingBottom)}})}})}),[N7,UT]=LT(fn),zT=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:c,onResize:d,...f}=e,p=Cr(fn,r),[y,b]=h.useState(null),S=ci(t,A=>b(A)),g=h.useRef(null),v=h.useRef(""),E=p.viewport,w=n.content-n.viewport,$=Lo(c),x=Lo(s),C=Xd(d,10);function T(A){if(g.current){let O=A.clientX-g.current.left,_=A.clientY-g.current.top;u({x:O,y:_})}}return h.useEffect(()=>{let A=O=>{let _=O.target;y!=null&&y.contains(_)&&$(O,w)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[E,y,w,$]),h.useEffect(x,[n,x]),fa(y,C),fa(p.content,C),pe.jsx(N7,{scope:r,scrollbar:y,hasThumb:o,onThumbChange:Lo(i),onThumbPointerUp:Lo(a),onThumbPositionChange:x,onThumbPointerDown:Lo(l),children:pe.jsx(ws.div,{...f,ref:S,style:{position:"absolute",...f.style},onPointerDown:Go(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),g.current=y.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),T(A))}),onPointerMove:Go(e.onPointerMove,T),onPointerUp:Go(e.onPointerUp,A=>{let O=A.target;O.hasPointerCapture(A.pointerId)&&O.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=v.current,p.viewport&&(p.viewport.style.scrollBehavior=""),g.current=null})})})}),Yc="ScrollAreaThumb",KT=h.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=UT(Yc,e.__scopeScrollArea);return pe.jsx(xs,{present:r||o.hasThumb,children:pe.jsx(M7,{ref:t,...n})})}),M7=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,i=Cr(Yc,r),a=UT(Yc,r),{onThumbPositionChange:l}=a,s=ci(t,d=>a.onThumbChange(d)),u=h.useRef(),c=Xd(()=>{u.current&&(u.current(),u.current=void 0)},100);return h.useEffect(()=>{let d=i.viewport;if(d){let f=()=>{if(c(),!u.current){let p=H7(d,l);u.current=p,l()}};return l(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[i.viewport,c,l]),pe.jsx(ws.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Go(e.onPointerDownCapture,d=>{let f=d.target.getBoundingClientRect(),p=d.clientX-f.left,y=d.clientY-f.top;a.onThumbPointerDown({x:p,y})}),onPointerUp:Go(e.onPointerUp,a.onThumbPointerUp)})});KT.displayName=Yc;var vy="ScrollAreaCorner",WT=h.forwardRef((e,t)=>{let r=Cr(vy,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?pe.jsx(B7,{...e,ref:t}):null});WT.displayName=vy;var B7=h.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=Cr(vy,r),[i,a]=h.useState(0),[l,s]=h.useState(0),u=!!(i&&l);return fa(o.scrollbarX,()=>{var d;let c=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(c),s(c)}),fa(o.scrollbarY,()=>{var d;let c=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(c),a(c)}),u?pe.jsx(ws.div,{...n,ref:t,style:{width:i,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function qc(e){return e?parseInt(e,10):0}function GT(e,t){let r=e/t;return isNaN(r)?0:r}function qd(e){let t=GT(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function j7(e,t,r,n="ltr"){let o=qd(r),i=o/2,a=t||i,l=o-a,s=r.scrollbar.paddingStart+a,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,c=r.content-r.viewport,d=n==="ltr"?[0,c]:[c*-1,0];return VT([s,u],d)(e)}function IE(e,t,r="ltr"){let n=qd(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,l=i-n,s=r==="ltr"?[0,a]:[a*-1,0],u=R7(e,s);return VT([0,a],[0,l])(u)}function VT(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function YT(e,t){return e>0&&e{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,l=r.top!==i.top;(a||l)&&t(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Xd(e,t){let r=Lo(e),n=h.useRef(0);return h.useEffect(()=>()=>window.clearTimeout(n.current),[]),h.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function fa(e,t){let r=Lo(t);Jg(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function U7(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=h.Children.only(n);return h.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var z7=NT,K7=BT,W7=jT,G7=KT,V7=WT,Y7=R(z7)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),q7=R(K7)(({focusable:e,theme:t})=>({width:"100%",height:"100%","&:focus":e?{outline:`2px solid ${t.color.secondary}`,outlineOffset:-2}:{}})),LE=R(W7)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),NE=R(G7)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out",zIndex:1,"&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),Ey=h.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,scrollPadding:i=0,className:a,focusable:l=!1},s)=>m.createElement(Y7,{scrollbarsize:o,offset:n,className:a},m.createElement(q7,{ref:s,style:{scrollPadding:i},tabIndex:l?0:void 0,focusable:l},e),t&&m.createElement(LE,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},m.createElement(NE,null)),r&&m.createElement(LE,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},m.createElement(NE,null)),t&&r&&m.createElement(V7,null)));Ey.displayName="ScrollArea";var fr=null;function ME(e,t="assertive",r=7e3){fr?fr.announce(e,t,r):(fr=new X7,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?fr.announce(e,t,r):setTimeout(()=>{fr!=null&&fr.isAttached()&&(fr==null||fr.announce(e,t,r))},100))}function _ce(e){fr&&fr.clear(e)}var X7=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,o;if(!this.node)return;let i=document.createElement("div");typeof e=="object"?(i.setAttribute("role","img"),i.setAttribute("aria-labelledby",e["aria-labelledby"])):i.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(i):(o=this.politeLog)===null||o===void 0||o.appendChild(i),e!==""&&setTimeout(()=>{i.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function J7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Q7=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),Z7=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),e9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),t9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),Qg=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),r9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.746.07A.5.5 0 0011.5.003h-6a.5.5 0 00-.5.5v2.5H.5a.5.5 0 00-.5.5v10a.5.5 0 00.5.5h8a.5.5 0 00.5-.5v-2.5h4.5a.5.5 0 00.5-.5v-8a.498.498 0 00-.15-.357L11.857.154a.506.506 0 00-.11-.085zM9 10.003h4v-7h-1.5a.5.5 0 01-.5-.5v-1.5H6v2h.5a.5.5 0 01.357.15L8.85 5.147c.093.09.15.217.15.357v4.5zm-8-6v9h7v-7H6.5a.5.5 0 01-.5-.5v-1.5H1z",fill:e}))),BE=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),n9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.854 2.146l-2-2a.5.5 0 00-.708 0l-1.5 1.5-8.995 8.995a.499.499 0 00-.143.268L.012 13.39a.495.495 0 00.135.463.5.5 0 00.462.134l2.482-.496a.495.495 0 00.267-.143l8.995-8.995 1.5-1.5a.5.5 0 000-.708zM12 3.293l.793-.793L11.5 1.207 10.707 2 12 3.293zm-2-.586L1.707 11 3 12.293 11.293 4 10 2.707zM1.137 12.863l.17-.849.679.679-.849.17z",fill:e}))),qT=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.146 2.146a.5.5 0 11.707.707L7.708 7l4.147 4.146a.5.5 0 11-.707.707L7 7.708l-4.146 4.147a.5.5 0 01-.707-.708L6.293 7 2.147 2.853a.5.5 0 11.707-.707L7 6.293l4.146-4.147z",fill:e}))),o9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),i9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),a9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M9.854 4.146a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),l9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm2.854-9.854a.5.5 0 010 .708L7.707 7l2.147 2.146a.5.5 0 01-.708.708L7 7.707 4.854 9.854a.5.5 0 01-.708-.708L6.293 7 4.146 4.854a.5.5 0 11.708-.708L7 6.293l2.146-2.147a.5.5 0 01.708 0z",fill:e}))),s9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),h.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),u9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),h.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),c9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),XT=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),d9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),JT=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),f9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.104 10.146a.5.5 0 01-.708.708l-3.5-3.5a.5.5 0 010-.708l3.5-3.5a.5.5 0 11.708.708L5.957 7l3.147 3.146z",fill:e}))),p9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.896 10.146a.5.5 0 00.708.708l3.5-3.5a.5.5 0 000-.708l-3.5-3.5a.5.5 0 10-.708.708L8.043 7l-3.147 3.146z",fill:e}))),h9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),g9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M5.5 1A.5.5 0 005 .5H2a.5.5 0 000 1h1.535a6.502 6.502 0 002.383 11.91.5.5 0 10.165-.986A5.502 5.502 0 014.5 2.1V4a.5.5 0 001 0V1.353a.5.5 0 000-.023V1zM7.507 1a.5.5 0 01.576-.41 6.502 6.502 0 012.383 11.91H12a.5.5 0 010 1H9a.5.5 0 01-.5-.5v-3a.5.5 0 011 0v1.9A5.5 5.5 0 007.917 1.576.5.5 0 017.507 1z",fill:e}))),m9=h.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>h.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},h.createElement("path",{d:"M7.092.5H7a6.5 6.5 0 106.41 7.583.5.5 0 10-.986-.166A5.495 5.495 0 017 12.5a5.5 5.5 0 010-11h.006a5.5 5.5 0 014.894 3H10a.5.5 0 000 1h3a.5.5 0 00.5-.5V2a.5.5 0 00-1 0v1.535A6.495 6.495 0 007.092.5z",fill:e}))),jE=new Map,y9="UNIVERSAL_STORE:",dr={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},ko=class ae{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=()=>(this.debug("getState",{state:this.state}),this.state),this.subscribe=(n,o)=>{let i=typeof n=="function",a=i?"*":n,l=i?n:o;if(this.debug("subscribe",{eventType:a,listener:l}),!l)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(a)||this.listeners.set(a,new Set),this.listeners.get(a).add(l),()=>{var s;this.debug("unsubscribe",{eventType:a,listener:l}),this.listeners.has(a)&&(this.listeners.get(a).delete(l),((s=this.listeners.get(a))==null?void 0:s.size)===0&&this.listeners.delete(a))}},this.send=n=>{if(this.debug("send",{event:n}),this.status!==ae.Status.READY)throw new TypeError(gr`Cannot send event before store is ready. You can get the current status with store.status, or await store.readyPromise to wait for the store to be ready before sending events. ${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},this.debugging=t.debug??!1,!ae.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(ae.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?ae.ActorType.LEADER:ae.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${y9}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===ae.ActorType.LEADER)this.syncing={state:dr.RESOLVED,promise:Promise.resolve()};else{let n,o,i=new Promise((a,l)=>{n=()=>{this.syncing.state===dr.PENDING&&(this.syncing.state=dr.RESOLVED,a())},o=s=>{this.syncing.state===dr.PENDING&&(this.syncing.state=dr.REJECTED,l(s))}});this.syncing={state:dr.PENDING,promise:i,resolve:n,reject:o}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=(r==null?void 0:r.channel)??ae.preparation.channel,this.environment=(r==null?void 0:r.environment)??ae.preparation.environment,this.channel&&this.environment?(ae.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):ae.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((o,i)=>{t=a=>{o(a)},r=(...a)=>{i(a)}});ae.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??ae.Environment.UNKNOWN})}get status(){var t;if(!this.channel||!this.environment)return ae.Status.UNPREPARED;switch((t=this.syncing)==null?void 0:t.state){case dr.PENDING:case void 0:return ae.Status.SYNCING;case dr.REJECTED:return ae.Status.ERROR;case dr.RESOLVED:default:return ae.Status.READY}}untilReady(){var t;return Promise.all([ae.preparation.promise,(t=this.syncing)==null?void 0:t.promise])}static create(t){if(!t||typeof(t==null?void 0:t.id)!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(gr`[UniversalStore] create`,{options:t});let r=jE.get(t.id);if(r)return console.warn(gr`UniversalStore with id "${t.id}" already exists in this environment, re-using existing. You should reuse the existing instance instead of trying to create a new one.`),r;ae.isInternalConstructing=!0;let n=new ae(t);return jE.set(t.id,n),n}static __prepare(t,r){ae.preparation.channel=t,ae.preparation.environment=r,ae.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==ae.Status.READY)throw new TypeError(gr`Cannot set state before store is ready. You can get the current status with store.status, or await store.readyPromise to wait for the store to be ready before sending events. ${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let o={type:ae.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(ae.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){var n;this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),(n=this.channel)==null||n.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===ae.ActorType.LEADER?this.emitToChannel({type:ae.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:ae.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:ae.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),o=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:o}),[...n??[],...o??[]].forEach(i=>i(t,r))}handleChannelEvents(t){var o,i,a,l,s;let{event:r,eventInfo:n}=t;if([n.actor.id,(o=n.forwardingActor)==null?void 0:o.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(((i=this.syncing)==null?void 0:i.state)===dr.PENDING&&r.type!==ae.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===ae.ActorType.LEADER){let u=!0;switch(r.type){case ae.InternalEventType.EXISTING_STATE_REQUEST:u=!1;let c={type:ae.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:c}),this.emitToChannel(c,{actor:this.actor}),this.emitToListeners(c,{actor:this.actor});break;case ae.InternalEventType.LEADER_CREATED:u=!1,this.syncing.state=dr.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(gr`Detected multiple UniversalStore leaders created with the same id "${this.id}". Only one leader can exists at a time, your stores are now in an invalid state. Leaders detected: this: ${JSON.stringify(this.actor,null,2)} other: ${JSON.stringify(n.actor,null,2)}`);break}u&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===ae.ActorType.FOLLOWER)switch(r.type){case ae.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),((a=this.syncing)==null?void 0:a.state)!==dr.PENDING)break;(s=(l=this.syncing).resolve)==null||s.call(l);let u={type:ae.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(u,n);break}switch(r.type){case ae.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(gr`[UniversalStore::${this.id}::${this.environment??ae.Environment.UNKNOWN}] ${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){ae.preparation.reject(new Error("reset")),ae.setupPreparationPromise(),ae.isInternalConstructing=!1}};ko.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},ko.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},ko.InternalEventType={EXISTING_STATE_REQUEST:"__EXISTING_STATE_REQUEST",EXISTING_STATE_RESPONSE:"__EXISTING_STATE_RESPONSE",SET_STATE:"__SET_STATE",LEADER_CREATED:"__LEADER_CREATED",FOLLOWER_CREATED:"__FOLLOWER_CREATED"},ko.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},ko.isInternalConstructing=!1,ko.setupPreparationPromise();var Sy=ko,b9=Object.create,QT=Object.defineProperty,v9=Object.getOwnPropertyDescriptor,ZT=Object.getOwnPropertyNames,E9=Object.getPrototypeOf,S9=Object.prototype.hasOwnProperty,ue=(e,t)=>function(){return t||(0,e[ZT(e)[0]])((t={exports:{}}).exports,t),t.exports},w9=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ZT(t))!S9.call(e,o)&&o!==r&&QT(e,o,{get:()=>t[o],enumerable:!(n=v9(t,o))||n.enumerable});return e},wy=(e,t,r)=>(r=e!=null?b9(E9(e)):{},w9(!e||!e.__esModule?QT(r,"default",{value:e,enumerable:!0}):r,e)),x9=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],$9=["detail"];function C9(e){let t=x9.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of $9.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var eO=ue({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),_9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),T9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),O9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),A9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),R9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),xy=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),D9=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),P9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),k9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),F9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),I9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),L9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),N9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),M9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),B9=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=M9();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),j9=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),$y=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=j9();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),H9=ue({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),tO=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var i=42;r[n]=i;for(var a in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==i||s.enumerable!==!0)return!1}return!0}}}),rO=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=tO();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),nO=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),oO=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=eO();t.exports=r.getPrototypeOf||null}}),U9=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(u,c){for(var d=[],f=0;f"u"||!A?r:A(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":M,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&A?A(A([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!A?r:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!A?r:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&A?A(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":U,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":O,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":S,"%Math.sign%":g,"%Reflect.getPrototypeOf%":_};if(A)try{null.error}catch(W){F=A(A(W)),k["%Error.prototype%"]=F}var F,P=function W(j){var G;if(j==="%AsyncFunction%")G=E("async function () {}");else if(j==="%GeneratorFunction%")G=E("function* () {}");else if(j==="%AsyncGeneratorFunction%")G=E("async function* () {}");else if(j==="%AsyncGenerator%"){var J=W("%AsyncGeneratorFunction%");J&&(G=J.prototype)}else if(j==="%AsyncIteratorPrototype%"){var ne=W("%AsyncGenerator%");ne&&A&&(G=A(ne.prototype))}return k[j]=G,G},B={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=Jd(),z=lO(),V=D.call(L,Array.prototype.concat),Z=D.call(I,Array.prototype.splice),q=D.call(L,String.prototype.replace),K=D.call(L,String.prototype.slice),X=D.call(L,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,H=function(W){var j=K(W,0,1),G=K(W,-1);if(j==="%"&&G!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(G==="%"&&j!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var J=[];return q(W,ee,function(ne,de,te,Ce){J[J.length]=te?q(Ce,N,"$1"):de||ne}),J},Y=function(W,j){var G=W,J;if(z(B,G)&&(J=B[G],G="%"+J[0]+"%"),z(k,G)){var ne=k[G];if(ne===M&&(ne=P(G)),typeof ne>"u"&&!j)throw new u("intrinsic "+W+" exists, but is not available. Please file an issue!");return{alias:J,name:G,value:ne}}throw new s("intrinsic "+W+" does not exist!")};t.exports=function(W,j){if(typeof W!="string"||W.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof j!="boolean")throw new u('"allowMissing" argument must be a boolean');if(X(/^%?[^%]*%?$/,W)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var G=H(W),J=G.length>0?G[0]:"",ne=Y("%"+J+"%",j),de=ne.name,te=ne.value,Ce=!1,xe=ne.alias;xe&&(J=xe[0],Z(G,V([0,1],xe)));for(var he=1,ie=!0;he=G.length){var pn=w(te,Te);ie=!!pn,ie&&"get"in pn&&!("originalValue"in pn.get)?te=pn.get:te=te[Te]}else ie=z(te,Te),te=te[Te];ie&&!Ce&&(k[de]=te)}}return te}}}),_y=ue({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=V9(),n=aO(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(i,a){var l=r(i,!!a);return typeof l=="function"&&o(i,".prototype.")>-1?n([l]):l}}}),Y9=ue({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=tO();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),sO=ue({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=_y(),n=Y9()(),o=lO(),i=$y(),a;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),a=function(p){if(!p||typeof p!="object")return!1;var y=i(p,"lastIndex"),b=y&&o(y,"value");if(!b)return!1;try{l(p,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",a=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var l,s,u,c,d,f;t.exports=a}}),q9=ue({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var i=r.call(o);return i==="[object Function]"||typeof o=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),X9=ue({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=_y(),n=sO(),o=r("RegExp.prototype.exec"),i=xy();t.exports=function(a){if(!n(a))throw new i("`regex` must be a RegExp");return function(l){return o(a,l)!==null}}}}),J9=ue({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=_y(),n=r("Object.prototype.toString"),o=rO()(),i=X9();o?(a=r("Symbol.prototype.toString"),l=i(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(a(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var a,l,s}}),Q9=wy(sO()),Z9=wy(q9()),eM=wy(J9());function tM(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var rM=typeof global=="object"&&global&&global.Object===Object&&global,nM=rM,oM=typeof self=="object"&&self&&self.Object===Object&&self,iM=nM||oM||Function("return this")(),Ty=iM,aM=Ty.Symbol,pa=aM,uO=Object.prototype,lM=uO.hasOwnProperty,sM=uO.toString,el=pa?pa.toStringTag:void 0;function uM(e){var t=lM.call(e,el),r=e[el];try{e[el]=void 0;var n=!0}catch{}var o=sM.call(e);return n&&(t?e[el]=r:delete e[el]),o}var cM=uM,dM=Object.prototype,fM=dM.toString;function pM(e){return fM.call(e)}var hM=pM,gM="[object Null]",mM="[object Undefined]",HE=pa?pa.toStringTag:void 0;function yM(e){return e==null?e===void 0?mM:gM:HE&&HE in Object(e)?cM(e):hM(e)}var cO=yM;function bM(e){return e!=null&&typeof e=="object"}var vM=bM,EM="[object Symbol]";function SM(e){return typeof e=="symbol"||vM(e)&&cO(e)==EM}var Oy=SM;function wM(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r-1}var DB=RB;function PB(e,t){var r=this.__data__,n=Qd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var kB=PB;function Pa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++te.match(/^[\[\{\"\}].*[\]\}\"]$/);function gO(e){if(!Dy(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=C9(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var yj=function(e){let t,r,n,o;return function(i,a){var l;try{if(i==="")return o=[],t=new Map([[a,"[]"]]),r=new Map,n=[],a;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof a=="boolean")return a;if(a===void 0)return e.allowUndefined?"_undefined_":void 0;if(a===null)return null;if(typeof a=="number")return a===Number.NEGATIVE_INFINITY?"_-Infinity_":a===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(a)?"_NaN_":a;if(typeof a=="bigint")return`_bigint_${a.toString()}`;if(typeof a=="string")return gj.test(a)?e.allowDate?`_date_${a}`:void 0:a;if((0,Q9.default)(a))return e.allowRegExp?`_regexp_${a.flags}|${a.source}`:void 0;if((0,Z9.default)(a))return;if((0,eM.default)(a)){if(!e.allowSymbol)return;let c=Symbol.keyFor(a);return c!==void 0?`_gsymbol_${c}`:`_symbol_${a.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(a)?`[Array(${a.length})]`:"[Object]";if(a===this)return`_duplicate_${JSON.stringify(o)}`;if(a instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...a.cause?{cause:a.cause}:{},...a,name:a.name,message:a.message,stack:a.stack,"_constructor-name_":a.constructor.name}};if((l=a==null?void 0:a.constructor)!=null&&l.name&&a.constructor.name!=="Object"&&!Array.isArray(a)){let c=t.get(a);if(!c){let d={__isClassInstance__:!0,__className__:a.constructor.name,...Object.getOwnPropertyNames(a).reduce((f,p)=>{try{f[p]=a[p]}catch{}return f},{})};return o.push(i),n.unshift(d),t.set(a,JSON.stringify(o)),a!==d&&r.set(a,d),d}return`_duplicate_${c}`}let u=t.get(a);if(!u){let c=Array.isArray(a)?a:gO(a);return o.push(i),n.unshift(c),t.set(a,JSON.stringify(o)),a!==c&&r.set(a,c),c}return`_duplicate_${u}`}catch{return}}},bj=function(e){let t=[],r;return function(n,o){if(n===""&&(r=o,t.forEach(({target:i,container:a,replacement:l})=>{let s=mj(l)?JSON.parse(l):l.split(".");s.length===0?a[i]=r:a[i]=hj(r,s)})),n==="_constructor-name_")return o;if(Dy(o)&&o.__isConvertedError__){let{message:i,...a}=o.errorProperties,l=new Error(i);return Object.assign(l,a),l}if(typeof o=="string"&&o.startsWith("_regexp_")&&e.allowRegExp){let[,i,a]=o.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(a,i)}return typeof o=="string"&&o.startsWith("_date_")&&e.allowDate?new Date(o.replace("_date_","")):typeof o=="string"&&o.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:o.replace(/^_duplicate_/,"")}),null):typeof o=="string"&&o.startsWith("_symbol_")&&e.allowSymbol?Symbol(o.replace("_symbol_","")):typeof o=="string"&&o.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(o.replace("_gsymbol_","")):typeof o=="string"&&o==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof o=="string"&&o==="_Infinity_"?Number.POSITIVE_INFINITY:typeof o=="string"&&o==="_NaN_"?Number.NaN:typeof o=="string"&&o.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(o.replace("_bigint_","")):o}},mO={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},vj=(e,t={})=>{let r={...mO,...t};return JSON.stringify(gO(e),yj(r),t.space)},Ej=()=>{let e=new Map;return function t(r){Dy(r)&&Object.entries(r).forEach(([n,o])=>{o==="_undefined_"?r[n]=void 0:e.get(o)||(e.set(o,!0),t(o))}),Array.isArray(r)&&r.forEach((n,o)=>{n==="_undefined_"?(e.set(n,!0),r[o]=void 0):e.get(n)||(e.set(n,!0),t(n))})}},Sj=(e,t={})=>{let r={...mO,...t},n=JSON.parse(e,bj(r));return Ej()(n),n};function GE({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}function VE(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}var Py=class yO extends Error{constructor(t){super(yO.getFullMessage(t),t.cause===void 0?void 0:{cause:t.cause}),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code,this.isHandledError=t.isHandledError??!1,this.name=t.name,this.subErrors=t.subErrors??[]}get fullErrorCode(){return GE({code:this.code,category:this.category})}get name(){let t=this._name||this.constructor.name;return`${this.fullErrorCode} (${t})`}set name(t){this._name=t}static getFullMessage({documentation:t,code:r,category:n,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${GE({code:r,category:n})}?ref=error`:typeof t=="string"?i=VE(t):Array.isArray(t)&&(i=` ${t.map(a=>` - ${VE(a)}`).join(` `)}`),`${o}${i!=null?` More info: ${i} `:""}`}},wj=class extends Py{constructor(t){super({name:"StatusTypeIdMismatchError",category:"MANAGER_API",code:1,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}},xj=class extends Py{constructor(e){super({name:"StatusTypeIdMismatchError",category:"PREVIEW_API",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},$j=Tt({"../../node_modules/picocolors/picocolors.browser.js"(e,t){var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}});Lt($j(),1);var Cj=class extends Py{constructor(e){super({name:"StatusTypeIdMismatchError",category:"CORE-SERVER",code:16,message:`Status has typeId "${e.status.typeId}" but was added to store with typeId "${e.typeId}". Full status: ${JSON.stringify(e.status,null,2)}`}),this.data=e}},bO="status-value:",_j=["status-value:pending","status-value:success","status-value:new","status-value:modified","status-value:affected","status-value:warning","status-value:error","status-value:unknown"],Tj=e=>{if(e==="related")return"status-value:affected";let t=`${bO}${e}`;return _j.includes(t)?t:void 0},YE=e=>e==="status-value:affected"?"related":e.slice(bO.length),Oj={id:"storybook/status",leader:!0,initialState:{}},$p={SELECT:"select"};function Aj(e){let t={};for(let r of Object.values(e))for(let n of Object.values(r))t[n.value]=(t[n.value]??0)+1;return t}function Rj({universalStatusStore:e,useUniversalStore:t,environment:r}){let n={getAll(){return e.getState()},set(i){e.setState(a=>{let l={...a};for(let s of i){let{storyId:u,typeId:c}=s;l[u]={...l[u]??{},[c]:s}}return l})},onAllStatusChange(i){return e.onStateChange((a,l)=>{i(a,l)})},onSelect(i){return e.subscribe($p.SELECT,a=>{i(a.payload)})},selectStatuses:i=>{e.send({type:$p.SELECT,payload:i})},unset(i){if(!i){e.setState({});return}e.setState(a=>{let l={...a};for(let s of i)delete l[s];return l})},typeId:void 0},o=i=>({getAll:n.getAll,set(a){e.setState(l=>{let s={...l};for(let u of a){let{storyId:c}=u;if(u.typeId!==i)switch(r){case"server":throw new Cj({status:u,typeId:i});case"manager":throw new wj({status:u,typeId:i});case"preview":default:throw new xj({status:u,typeId:i})}s[c]={...s[c]??{},[i]:u}}return s})},onAllStatusChange:n.onAllStatusChange,onSelect(a){return e.subscribe($p.SELECT,l=>{l.payload.some(s=>s.typeId===i)&&a(l.payload)})},unset(a){e.setState(l=>{var u;let s={...l};for(let c in s)if((u=s[c])!=null&&u[i]&&(!a||a!=null&&a.includes(c))){let{[i]:d,...f}=s[c];s[c]=f}return s})},typeId:i});return t?{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e,useStatusStore:i=>t(e,i)[0]}:{getStatusStoreByTypeId:o,fullStatusStore:n,universalStatusStore:e}}var qE=Object.prototype.hasOwnProperty;function XE(e,t,r){for(r of e.keys())if(on(r,t))return r}function on(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&on(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=XE(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=XE(t,o),!o)||!on(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(qE.call(e,r)&&++n&&!qE.call(t,r)||!(r in t)||!on(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function JE(e,t){let r=[],n=[];for(let o=0;o{let t={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,r,n,o]=e.toLowerCase().match(kj)||[];r&&Object.assign(t,{viewMode:r,storyId:o,refId:n})}return t});var nc=Symbol("Deeply equal"),Zg=(e,t)=>{if(typeof e!=typeof t)return t;if(tn(e,t))return nc;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let a=Zg(e[i],o);return a!==nc&&(n[i]=a),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return dn(e)&&dn(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Zg(e==null?void 0:e[n],t==null?void 0:t[n]);return o===nc?r:Object.assign(r,{[n]:o})},{}):t},QE=/^[a-zA-Z0-9 _-]*$/,Fj=/^-?[0-9]+(\.[0-9]+)?$/,EO=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,SO=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,em=(e="",t)=>e===null||e===""||!QE.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?QE.test(t)||Fj.test(t)||EO.test(t)||SO.test(t):Array.isArray(t)?t.every(r=>em(e,r)):dn(t)?Object.entries(t).every(([r,n])=>em(r,n)):!1,tm=e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?EO.test(e)?`!hex(${e.slice(1)})`:SO.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(tm):dn(e)?Object.entries(e).reduce((t,[r,n])=>Object.assign(t,{[r]:tm(n)}),{}):e,Ij=e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},Lj=/%[0-9A-F]{2}/g,ZE=(e,t)=>{let r=Zg(e,t);if(!r||r===nc)return"";let n=Object.entries(r).reduce((o,[i,a])=>em(i,a)?Object.assign(o,{[i]:a}):(Pj.warn(gr` Omitted potentially unsafe URL args. More info: https://storybook.js.org/docs/writing-stories/args?ref=error#setting-args-through-the-url `),o),{});return(0,vO.stringify)(tm(n),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(Lj,Ij).split(";").map(o=>o.replace("=",":")).join(";")},Nj=(0,ky.default)(1e3)(e=>e!==void 0?(0,vO.parse)(e):{}),wO=e=>Nj(e!=null&&e.search?e.search.slice(1):"");(0,ky.default)(1e3)((e,t,r=!0)=>{if(r){if(typeof t!="string")throw new Error("startsWith only works with string targets");return e&&e.startsWith(t)?{path:e}:null}let n=typeof t=="string"&&e===t,o=e&&t&&e.match(t);return n||o?{path:e}:null});const{global:Mj}=__STORYBOOK_MODULE_GLOBAL__;function rm(){return rm=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function nm(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function xO(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var tS;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(tS||(tS={}));function om(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Bj(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?xO(e):e;return{pathname:r?r.startsWith("/")?r:jj(r,t):t,search:Hj(n),hash:Uj(o)}}function jj(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function Cp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $O(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function CO(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=xO(e):(o=rm({},e),Sr(!o.pathname||!o.pathname.includes("?"),Cp("?","pathname","search",o)),Sr(!o.pathname||!o.pathname.includes("#"),Cp("#","pathname","hash",o)),Sr(!o.search||!o.search.includes("#"),Cp("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(n||a==null)l=r;else{let d=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}l=d>=0?t[d]:"/"}let s=Bj(o,l),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var Fy=e=>e.join("/").replace(/\/\/+/g,"/"),Hj=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Uj=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function zj(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var _O=["post","put","patch","delete"];new Set(_O);var Kj=["get",..._O];new Set(Kj);function im(){return im=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=h.useRef(!1);return AO(()=>{a.current=!0}),h.useCallback(function(l,s){if(s===void 0&&(s={}),!a.current)return;if(typeof l=="number"){r.go(l);return}let u=CO(l,JSON.parse(i),o,s.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Fy([t,u.pathname])),(s.replace?r.replace:r.push)(u,s.state,s)},[t,r,i,o,e])}h.createContext(null);function ef(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=h.useContext($s),{pathname:o}=Cs(),i=JSON.stringify($O(n).map(a=>a.pathnameBase));return h.useMemo(()=>CO(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function qj(){let e=eH(),t=zj(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),r?h.createElement("pre",{style:o},r):null,null)}h.createElement(qj,null);var RO=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(RO||{}),os=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(os||{});function Xj(e){let t=h.useContext(Iy);return t||Sr(!1),t}function Jj(e){let t=h.useContext(TO);return t||Sr(!1),t}function Qj(e){let t=h.useContext($s);return t||Sr(!1),t}function Ny(e){let t=Qj(),r=t.matches[t.matches.length-1];return r.route.id||Sr(!1),r.route.id}function Zj(){return Ny(os.UseRouteId)}function eH(){var e;let t=h.useContext(Wj),r=Jj(os.UseRouteError),n=Ny(os.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function tH(){let{router:e}=Xj(RO.UseNavigateStable),t=Ny(os.UseNavigateStable),r=h.useRef(!1);return AO(()=>{r.current=!0}),h.useCallback(function(n,o){o===void 0&&(o={}),r.current&&(typeof n=="number"?e.navigate(n):e.navigate(n,im({fromRouteId:t},o)))},[e,t])}var rH=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(rH||{});new Promise(()=>{});function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}var oc="get",_p="application/x-www-form-urlencoded";function tf(e){return e!=null&&typeof e.tagName=="string"}function nH(e){return tf(e)&&e.tagName.toLowerCase()==="button"}function oH(e){return tf(e)&&e.tagName.toLowerCase()==="form"}function iH(e){return tf(e)&&e.tagName.toLowerCase()==="input"}function aH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lH(e,t){return e.button===0&&(!t||t==="_self")&&!aH(e)}var pu=null;function sH(){if(pu===null)try{new FormData(document.createElement("form"),0),pu=!1}catch{pu=!0}return pu}var uH=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tp(e){return e!=null&&!uH.has(e)?null:e}function cH(e,t){let r,n,o,i,a;if(oH(e)){let l=e.getAttribute("action");n=l?om(l,t):null,r=e.getAttribute("method")||oc,o=Tp(e.getAttribute("enctype"))||_p,i=new FormData(e)}else if(nH(e)||iH(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a