Anvil/sb-addons/essentials-controls-1/manager-bundle.js

64 lines
365 KiB
JavaScript
Raw Normal View History

2024-02-08 10:52:22 +01:00
try{
2024-03-14 18:43:30 +01:00
(()=>{var s2=Object.create;var ma=Object.defineProperty;var l2=Object.getOwnPropertyDescriptor;var c2=Object.getOwnPropertyNames;var d2=Object.getPrototypeOf,p2=Object.prototype.hasOwnProperty;var ir=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ye=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zi=(e,t)=>{for(var r in t)ma(e,r,{get:t[r],enumerable:!0})},f2=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of c2(t))!p2.call(e,a)&&a!==r&&ma(e,a,{get:()=>t[a],enumerable:!(n=l2(t,a))||n.enumerable});return e};var pe=(e,t,r)=>(r=e!=null?s2(d2(e)):{},f2(t||!e||!e.__esModule?ma(r,"default",{value:e,enumerable:!0}):r,e));var l=Ye(()=>{});var c=Ye(()=>{});var d=Ye(()=>{});var g,eu,Ze,tu,_I,OI,RI,ru,PI,fe,ur,ga,II,kI,NI,LI,nu,qI,ge,Wr,jI,he,MI,au,et,$I,we,te,UI,Ft=Ye(()=>{l();c();d();g=__REACT__,{Children:eu,Component:Ze,Fragment:tu,Profiler:_I,PureComponent:OI,StrictMode:RI,Suspense:ru,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:PI,cloneElement:fe,createContext:ur,createElement:ga,createFactory:II,createRef:kI,forwardRef:NI,isValidElement:LI,lazy:nu,memo:qI,useCallback:ge,useContext:Wr,useDebugValue:jI,useEffect:he,useImperativeHandle:MI,useLayoutEffect:au,useMemo:et,useReducer:$I,useRef:we,useState:te,version:UI}=__REACT__});var mu={};Zi(mu,{A:()=>g2,ActionBar:()=>Ea,AddonPanel:()=>Aa,Badge:()=>va,Bar:()=>y2,Blockquote:()=>b2,Button:()=>E2,ClipboardCode:()=>A2,Code:()=>cu,DL:()=>v2,Div:()=>D2,DocumentWrapper:()=>C2,ErrorFormatter:()=>du,FlexBar:()=>Da,Form:()=>Te,H1:()=>x2,H2:()=>Ca,H3:()=>pu,H4:()=>S2,H5:()=>F2,H6:()=>w2,HR:()=>B2,IconButton:()=>pt,IconButtonSkeleton:()=>xa,Icons:()=>Be,Img:()=>T2,LI:()=>_2,Link:()=>ft,ListItem:()=>O2,Loader:()=>fu,OL:()=>R2,P:()=>P2,Placeholder:()=>I2,Pre:()=>k2,ResetWrapper:()=>Sa,ScrollArea:()=>N2,Separator:()=>L2,Spaced:()=>Fa,Span:()=>q2,StorybookIcon:()=>j2,StorybookLogo:()=>M2,Symbols:()=>$2,SyntaxHighlighter:()=>Vr,TT:()=>U2,TabBar:()=>z2,TabButton:()=>H2,TabWrapper:()=>G2,Table:()=>W2,Tabs:()=>V2,TabsState:()=>wa,TooltipLinkList:()=>K2,TooltipMessage:()=>Y2,TooltipNote:()=>Ba,UL:()=>J2,WithTooltip:()=>Kr,WithTooltipPure:()=>Ta,Zoom:()=>_a,codeCommon:()=>wt,components:()=>Oa,createCopyToClipboardFunction:()=>X2,default:()=>m2,getStoryHref:()=>hu,icons:()=>Q2,interleaveSeparators:()=>Z2,nameSpaceClassNames:()=>Ra,resetComponents:()=>e1,withReset:()=>Bt});var m2,g2,Ea,Aa,va,y2,b2,E2,A2,cu,v2,D2,C2,du,Da,Te,x2,Ca,pu,S2,F2,w2,B2,pt,xa,Be,T2,_2,ft,O2,fu,R2,P2,I2,k2,Sa,N2,L2,Fa,q2,j2,M2,$2,Vr,U2,z2,H2,G2,W2,V2,wa,K2,Y2,Ba,J2,Kr,Ta,_a,wt,Oa,X2,hu,Q2,Z2,Ra,e1,Bt,sr=Ye(()=>{l();c();d();m2=__STORYBOOK_COMPONENTS__,{A:g2,ActionBar:Ea,AddonPanel:Aa,Badge:va,Bar:y2,Blockquote:b2,Button:E2,ClipboardCode:A2,Code:cu,DL:v2,Div:D2,DocumentWrapper:C2,ErrorFormatter:du,FlexBar:Da,Form:Te,H1:x2,H2:Ca,H3:pu,H4:S2,H5:F2,H6:w2,HR:B2,IconButton:pt,IconButtonSkeleton:xa,Icons:Be,Img:T2,LI:_2,Link:ft,ListItem:O2,Loader:fu,OL:R2,P:P2,Placeholder:I2,Pre:k2,ResetWrapper:Sa,ScrollArea:N2,Separator:L2,Spaced:Fa,Span:q2,StorybookIcon:j2,StorybookLogo:M2,Symbols:$2,SyntaxHighlighter:Vr,TT:U2,TabBar:z2,TabButton:H2,TabWrapper:G2,Table:W2,Tabs:V2,TabsState:wa,TooltipLinkList:K2,TooltipMessage:Y2,TooltipNote:Ba,UL:J2,WithTooltip:Kr,WithTooltipPure:Ta,Zoom:_a,codeCommon:wt,components:Oa,createCopyToClipboardFunction:X2,getStoryHref:hu,icons:Q2,interleaveSeparators:Z2,nameSpaceClassNames:Ra,resetComponents:e1,withReset:Bt}=__STORYBOOK_COMPONENTS__});var _e,lr,Pa=Ye(()=>{l();c();d();_e=e=>`control-${e.replace(/\s+/g,"-")}`,lr=e=>`set-${e.replace(/\s+/g,"-")}`});var wk,Bk,Tk,_k,gu,Ok,Rk,yu,Pk,Ik,kk,Nk,Lk,qk,t1,bu,jk,Mk,$k,Uk,j,Ia,zk,Eu,Hk,ka=Ye(()=>{l();c();d();wk=__STORYBOOK_THEMING__,{CacheProvider:Bk,ClassNames:Tk,Global:_k,ThemeProvider:gu,background:Ok,color:Rk,convert:yu,create:Pk,createCache:Ik,createGlobal:kk,createReset:Nk,css:Lk,darken:qk,ensure:t1,i
`)>=0)return!1;return!0}function L8(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Ge.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Ge.call(Array(t+1),r)}}function li(e,t){if(e.length===0)return"";var r=`
2024-02-08 10:52:22 +01:00
`+t.prev+t.base;return r+Ge.call(e,","+r)+`
2024-03-14 18:43:30 +01:00
`+t.prev}function Wn(e,t){var r=si(e),n=[];if(r){n.length=e.length;for(var a=0;a<e.length;a++)n[a]=ut(e,a)?t(e[a],e):""}var o=typeof ni=="function"?ni(e):[],i;if(Yt){i={};for(var u=0;u<o.length;u++)i["$"+o[u]]=o[u]}for(var s in e)ut(e,s)&&(r&&String(Number(s))===s&&s<e.length||Yt&&i["$"+s]instanceof Symbol||(im.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof ni=="function")for(var p=0;p<o.length;p++)um.call(e,o[p])&&n.push("["+t(o[p])+"]: "+t(e[o[p]],e));return n}});var gm=S((zQ,mm)=>{"use strict";l();c();d();var hm=Dt(),Jt=Wh(),q8=fm(),j8=zt(),Yn=hm("%WeakMap%",!0),Jn=hm("%Map%",!0),M8=Jt("WeakMap.prototype.get",!0),$8=Jt("WeakMap.prototype.set",!0),U8=Jt("WeakMap.prototype.has",!0),z8=Jt("Map.prototype.get",!0),H8=Jt("Map.prototype.set",!0),G8=Jt("Map.prototype.has",!0),fi=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},W8=function(e,t){var r=fi(e,t);return r&&r.value},V8=function(e,t,r){var n=fi(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},K8=function(e,t){return!!fi(e,t)};mm.exports=function(){var t,r,n,a={assert:function(o){if(!a.has(o))throw new j8("Side channel does not contain "+q8(o))},get:function(o){if(Yn&&o&&(typeof o=="object"||typeof o=="function")){if(t)return M8(t,o)}else if(Jn){if(r)return z8(r,o)}else if(n)return W8(n,o)},has:function(o){if(Yn&&o&&(typeof o=="object"||typeof o=="function")){if(t)return U8(t,o)}else if(Jn){if(r)return G8(r,o)}else if(n)return K8(n,o);return!1},set:function(o,i){Yn&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new Yn),$8(t,o,i)):Jn?(r||(r=new Jn),H8(r,o,i)):(n||(n={key:{},next:null}),V8(n,o,i))}};return a}});var Xn=S((VQ,ym)=>{"use strict";l();c();d();var Y8=String.prototype.replace,J8=/%20/g,hi={RFC1738:"RFC1738",RFC3986:"RFC3986"};ym.exports={default:hi.RFC3986,formatters:{RFC1738:function(e){return Y8.call(e,J8,"+")},RFC3986:function(e){return String(e)}},RFC1738:hi.RFC1738,RFC3986:hi.RFC3986}});var gi=S((XQ,Em)=>{"use strict";l();c();d();var X8=Xn(),mi=Object.prototype.hasOwnProperty,Ct=Array.isArray,We=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Q8=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Ct(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);r.obj[r.prop]=a}}},bm=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},a=0;a<t.length;++a)typeof t[a]<"u"&&(n[a]=t[a]);return n},Z8=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Ct(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!mi.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var a=t;return Ct(t)&&!Ct(r)&&(a=bm(t,n)),Ct(t)&&Ct(r)?(r.forEach(function(o,i){if(mi.call(t,i)){var u=t[i];u&&typeof u=="object"&&o&&typeof o=="object"?t[i]=e(u,o,n):t.push(o)}else t[i]=o}),t):Object.keys(r).reduce(function(o,i){var u=r[i];return mi.call(o,i)?o[i]=e(o[i],u,n):o[i]=u,o},a)},e_=function(t,r){return Object.keys(r).reduce(function(n,a){return n[a]=r[a],n},t)},t_=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},r_=function(t,r,n,a,o){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var u="",s=0;s<i.length;++s){var p=i.charCodeAt(s);if(p===45||p===46||p===95||p===126||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===X8.RFC1738&&(p===40||p===41)){u+=i.charAt(s);continue}if(p<128){u=u+We[p];continue}if(p<2048){u=u+(We[192|p>>6]+We[128|p&63]);continue}if(p<55296||p>=57344){u=u+(We[224|p>>12]+We[128|p>>6&63]+We[128|p&63]);continue}s+=1,p=65536+((p&1023)<<10|i.charCodeAt(s)&1023),u+=We[240|p>>18]+We[128|p>>12&63]+We[128|p>>6&63]+We[128|p&63]}return u},n_=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],a=0;a<r.le
`;break;case"r":_+="\r";break;case"t":_+=" ";break;case"u":case"x":H=a,$=x(q),$?_+=$:(a=H,_+=q);break;case"b":_+="\b";break;case"f":_+="\f";break;case"v":_+="\v";break;default:s.code.isOctalDigit(q.charCodeAt(0))?(R="01234567".indexOf(q),a<n&&s.code.isOctalDigit(r.charCodeAt(a))&&(R=R*8+"01234567".indexOf(b()),"0123".indexOf(q)>=0&&a<n&&s.code.isOctalDigit(r.charCodeAt(a))&&(R=R*8+"01234567".indexOf(b()))),_+=String.fromCharCode(R)):_+=q;break}else{if(s.code.isLineTerminator(q.charCodeAt(0)))break;_+=q}return I!==""&&p.throwError("unexpected quote"),u=_,t.STRING}function w(){var _,I;if(_="",I=r.charCodeAt(a),I!==46){if(_=b(),I=r.charCodeAt(a),_==="0"){if(I===120||I===88){for(_+=b();a<n&&(I=r.charCodeAt(a),!!s.code.isHexDigit(I));)_+=b();return _.length<=2&&p.throwError("unexpected token"),a<n&&(I=r.charCodeAt(a),s.code.isIdentifierStartES5(I)&&p.throwError("unexpected token")),u=parseInt(_,16),t.NUMBER}if(s.code.isOctalDigit(I)){for(_+=b();a<n&&(I=r.charCodeAt(a),!!s.code.isOctalDigit(I));)_+=b();return a<n&&(I=r.charCodeAt(a),(s.code.isIdentifierStartES5(I)||s.code.isDecimalDigit(I))&&p.throwError("unexpected token")),u=parseInt(_,8),t.NUMBER}s.code.isDecimalDigit(I)&&p.throwError("unexpected token")}for(;a<n&&(I=r.charCodeAt(a),!!s.code.isDecimalDigit(I));)_+=b()}if(I===46)for(_+=b();a<n&&(I=r.charCodeAt(a),!!s.code.isDecimalDigit(I));)_+=b();if(I===101||I===69)if(_+=b(),I=r.charCodeAt(a),(I===43||I===45)&&(_+=b()),I=r.charCodeAt(a),s.code.isDecimalDigit(I))for(_+=b();a<n&&(I=r.charCodeAt(a),!!s.code.isDecimalDigit(I));)_+=b();else p.throwError("unexpected token");return a<n&&(I=r.charCodeAt(a),s.code.isIdentifierStartES5(I)&&p.throwError("unexpected token")),u=parseFloat(_),t.NUMBER}function T(){var _,I;for(u=b();a<n&&m(r.charCodeAt(a));){if(_=r.charCodeAt(a),_===46){if(a+1>=n)return t.ILLEGAL;if(I=r.charCodeAt(a+1),I===60)break}u+=b()}return t.NAME}function L(){var _;for(o=a;a<n&&s.code.isWhiteSpace(r.charCodeAt(a));)b();if(a>=n)return i=t.EOF,i;switch(_=r.charCodeAt(a),_){case 39:case 34:return i=B(),i;case 58:return b(),i=t.COLON,i;case 44:return b(),i=t.COMMA,i;case 40:return b(),i=t.LPAREN,i;case 41:return b(),i=t.RPAREN,i;case 91:return b(),i=t.LBRACK,i;case 93:return b(),i=t.RBRACK,i;case 123:return b(),i=t.LBRACE,i;case 125:return b(),i=t.RBRACE,i;case 46:if(a+1<n){if(_=r.charCodeAt(a+1),_===60)return b(),b(),i=t.DOT_LT,i;if(_===46&&a+2<n&&r.charCodeAt(a+2)===46)return b(),b(),b(),i=t.REST,i;if(s.code.isDecimalDigit(_))return i=w(),i}return i=t.ILLEGAL,i;case 60:return b(),i=t.LT,i;case 62:return b(),i=t.GT,i;case 42:return b(),i=t.STAR,i;case 124:return b(),i=t.PIPE,i;case 63:return b(),i=t.QUESTION,i;case 33:return b(),i=t.BANG,i;case 61:return b(),i=t.EQUAL,i;case 45:return i=w(),i;default:return s.code.isDecimalDigit(_)?(i=w(),i):(p.assert(m(_)),i=T(),i)}}function F(_,I){p.assert(i===_,I||"consumed token not matched"),L()}function N(_,I){i!==_&&p.throwError(I||"unexpected token"),L()}function k(){var _,I=a-1;if(F(t.LPAREN,"UnionType should start with ("),_=[],i!==t.RPAREN)for(;_.push(K()),i!==t.RPAREN;)N(t.PIPE);return F(t.RPAREN,"UnionType should end with )"),E({type:e.UnionType,elements:_},[I,o])}function z(){var _,I=a-1,q;for(F(t.LBRACK,"ArrayType should start with ["),_=[];i!==t.RBRACK;){if(i===t.REST){q=a-3,F(t.REST),_.push(E({type:e.RestType,expression:K()},[q,o]));break}else _.push(K());i!==t.RBRACK&&N(t.COMMA)}return N(t.RBRACK),E({type:e.ArrayType,elements:_},[I,o])}function V(){var _=u;if(i===t.NAME||i===t.STRING)return L(),_;if(i===t.NUMBER)return F(t.NUMBER),String(_);p.throwError("unexpected token")}function U(){var _,I=o;return _=V(),i===t.COLON?(F(t.COLON),E({type:e.FieldType,key:_,value:K()},[I,o])):E({type:e.FieldType,key:_,value:null},[I,o])}function oe(){var _,I=a-1,q;if(F(t.LBRACE,"RecordType should start with {"),_=[],i===t.COMMA)F(t.COMMA);else for(;i!==t.RBRACE;)_.push(U()),i!==t.RBRACE&&N(t.COMMA);return q=a,N(t.RBRACE),E({type:e.RecordType,fields:_},[I,q])}function Q(){var _=u,I=a-_.length;return N(t.NAME),i===t.COLON&&(_==="module"||_==="external"||_==="event")&&(F(t.COLON),_+=":
\u2028\u2029])`;function T(F){return F.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(w,"g"),"$2").replace(/\s*$/,"")}function L(F,N){for(var k=F.replace(/^\/\*\*?/,""),z=0,V=new RegExp(w,"g"),U;U=V.exec(k);)if(z+=U[1].length,U.index+U[0].length>N+z)return N+z+F.length-k.length;return F.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(F){var N,k,z,V,U,oe,Q,Y,P;function O(){var q=U.charCodeAt(k);return k+=1,n.code.isLineTerminator(q)&&!(q===13&&U.charCodeAt(k)===10)&&(z+=1),String.fromCharCode(q)}function M(){var q="";for(O();k<V&&u(U.charCodeAt(k));)q+=O();return q}function G(){var q,R,$=k;for(R=!1;$<V;){if(q=U.charCodeAt($),n.code.isLineTerminator(q)&&!(q===13&&U.charCodeAt($+1)===10))R=!0;else if(R){if(q===64)break;n.code.isWhiteSpace(q)||(R=!1)}$+=1}return $}function J(q,R,$){for(var H,de,ne,ae,Ae=!1;k<R;)if(H=U.charCodeAt(k),n.code.isWhiteSpace(H))O();else if(H===123){O();break}else{Ae=!0;break}if(Ae)return null;for(de=1,ne="";k<R;)if(H=U.charCodeAt(k),n.code.isLineTerminator(H))O();else{if(H===125){if(de-=1,de===0){O();break}}else H===123&&(de+=1);ne===""&&(ae=k),ne+=O()}return de!==0?t.throwError("Braces are not balanced"):E(q)?e.parseParamType(ne,{startIndex:Pe(ae),range:$}):e.parseType(ne,{startIndex:Pe(ae),range:$})}function K(q){var R;if(!n.code.isIdentifierStartES5(U.charCodeAt(k))&&!U[k].match(/[0-9]/))return null;for(R=O();k<q&&n.code.isIdentifierPartES5(U.charCodeAt(k));)R+=O();return R}function Z(q){for(;k<q&&(n.code.isWhiteSpace(U.charCodeAt(k))||n.code.isLineTerminator(U.charCodeAt(k)));)O()}function ue(q,R,$){var H="",de,ne;if(Z(q),k>=q)return null;if(U.charCodeAt(k)===91)if(R)de=!0,H=O();else return null;if(H+=K(q),$)for(U.charCodeAt(k)===58&&(H==="module"||H==="external"||H==="event")&&(H+=O(),H+=K(q)),U.charCodeAt(k)===91&&U.charCodeAt(k+1)===93&&(H+=O(),H+=O());U.charCodeAt(k)===46||U.charCodeAt(k)===47||U.charCodeAt(k)===35||U.charCodeAt(k)===45||U.charCodeAt(k)===126;)H+=O(),H+=K(q);if(de){if(Z(q),U.charCodeAt(k)===61){H+=O(),Z(q);for(var ae,Ae=1;k<q;){if(ae=U.charCodeAt(k),n.code.isWhiteSpace(ae)&&(ne||(Z(q),ae=U.charCodeAt(k))),ae===39&&(ne?ne==="'"&&(ne=""):ne="'"),ae===34&&(ne?ne==='"'&&(ne=""):ne='"'),ae===91)Ae++;else if(ae===93&&--Ae===0)break;H+=O()}}if(Z(q),k>=q||U.charCodeAt(k)!==93)return null;H+=O()}return H}function Re(){for(;k<V&&U.charCodeAt(k)!==64;)O();return k>=V?!1:(t.assert(U.charCodeAt(k)===64),!0)}function Pe(q){return U===oe?q:L(oe,q)}function X(q,R){this._options=q,this._title=R.toLowerCase(),this._tag={title:R,description:null},this._options.lineNumbers&&(this._tag.lineNumber=z),this._first=k-R.length-1,this._last=0,this._extra={}}X.prototype.addError=function(R){var $=Array.prototype.slice.call(arguments,1),H=R.replace(/%(\d)/g,function(de,ne){return t.assert(ne<$.length,"Message reference must be in range"),$[ne]});return this._tag.errors||(this._tag.errors=[]),P&&t.throwError(H),this._tag.errors.push(H),Q},X.prototype.parseType=function(){if(b(this._title))try{if(this._tag.type=J(this._title,this._last,this._options.range),!this._tag.type&&!s(this._title)&&!p(this._title)&&!this.addError("Missing or invalid tag type"))return!1}catch(q){if(this._tag.type=null,!this.addError(q.message))return!1}else if(x(this._title))try{this._tag.type=J(this._title,this._last,this._options.range)}catch{}return!0},X.prototype._parseNamePath=function(q){var R;return R=ue(this._last,Y&&E(this._title),!0),!R&&!q&&!this.addError("Missing or invalid tag name")?!1:(this._tag.name=R,!0)},X.prototype.parseNamePath=function(){return this._parseNamePath(!1)},X.prototype.parseNamePathOptional=function(){return this._parseNamePath(!0)},X.prototype.parseName=function(){var q,R;if(m(this._title))if(this._tag.name=ue(this._last,Y&&E(this._title),h(this._title)),this._tag.name)R=this._tag.name,R.charAt(0)==="["&&R.charAt(R.length-1)==="]"&&(q=R.substring(1,R.length-1).split("="),q.length>1&&(this._tag.default=q.slice(1).join("=")),this._tag.name=q[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!A(th
`).match(a),A=!1;return{items:y.map(function(m,h){let E=o.exec(m)[0].length,b=new RegExp("^ {1,"+E+"}","gm"),x=m.replace(b,"").replace(o,""),B=h===y.length-1,w=x.indexOf(`
2024-02-08 10:52:22 +01:00
2024-03-14 18:43:30 +01:00
`)!==-1||B&&A;A=w;let T=s.inline,L=s.list,F;s.list=!0,w?(s.inline=!1,F=x.replace(Gd,`
2024-02-08 10:52:22 +01:00
2024-03-14 18:43:30 +01:00
`)):(s.inline=!0,F=x.replace(Gd,""));let N=u(F,s);return s.inline=T,s.list=L,N}),ordered:r,start:p}},render:(i,u,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type==="20"?i.start:void 0},i.items.map(function(p,y){return e("li",{key:y},u(p,s))}))}}var PF=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,IF=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,hp=[Jd,Xd,Qd,Zd,tp,ep,rp,np,lp,pp,cp,fp],kF=[...hp,/^[^\n]+(?: \n|\n{2,})/,Io,ko];function NF(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function LF(e){return AF.test(e)?"right":bF.test(e)?"center":EF.test(e)?"left":null}function Vd(e,t,r){let n=r.inTable;r.inTable=!0;let a=t(e.trim(),r);r.inTable=n;let o=[[]];return a.forEach(function(i,u){i.type==="26"?u!==0&&u!==a.length-1&&o.push([]):(i.type!=="27"||a[u+1]!=null&&a[u+1].type!=="26"||(i.text=i.text.replace(yF,"")),o[o.length-1].push(i))}),o}function qF(e,t,r){r.inline=!0;let n=Vd(e[1],t,r),a=e[2].replace(gF,"").split("|").map(LF),o=function(i,u,s){return i.trim().split(`
`).map(function(p){return Vd(p,u,s)})}(e[3],t,r);return r.inline=!1,{align:a,cells:o,header:n,type:"25"}}function Kd(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function ot(e){return function(t,r){return r.inline?e.exec(t):null}}function it(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function Qe(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Sr(e){return function(t){return e.exec(t)}}function jF(e,t,r){if(t.inline||t.simple||r&&!r.endsWith(`
2024-02-08 10:52:22 +01:00
`))return null;let n="";e.split(`
2024-03-14 18:43:30 +01:00
`).every(o=>!hp.some(i=>i.test(o))&&(n+=o+`
`,o.trim()));let a=n.trimEnd();return a==""?null:[n,a]}function Mt(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function Yd(e){return e.replace(TF,"$1")}function Dn(e,t,r){let n=r.inline||!1,a=r.simple||!1;r.inline=!0,r.simple=!0;let o=e(t,r);return r.inline=n,r.simple=a,o}function MF(e,t,r){let n=r.inline||!1,a=r.simple||!1;r.inline=!1,r.simple=!0;let o=e(t,r);return r.inline=n,r.simple=a,o}function $F(e,t,r){return r.inline=!1,e(t,r)}var _o=(e,t,r)=>({children:Dn(t,e[1],r)});function Oo(){return{}}function Ro(){return null}function UF(...e){return e.filter(Boolean).join(" ")}function Po(e,t,r){let n=e,a=t.split(".");for(;a.length&&(n=n[a[0]],n!==void 0);)a.shift();return n||r}function zF(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||NF,t.namedCodesToUnicode=t.namedCodesToUnicode?bt({},Hd,t.namedCodesToUnicode):Hd;let r=t.createElement||ga;function n(h,E,...b){let x=Po(t.overrides,`${h}.props`,{});return r(function(B,w){let T=Po(w,B);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:Po(w,`${B}.component`,B):B}(h,t.overrides),bt({},E,x,{className:UF(E?.className,x.className)||void 0}),...b)}function a(h){h=h.replace(eF,"");let E=!1;t.forceInline?E=!0:t.forceBlock||(E=fF.test(h)===!1);let b=y(p(E?h:`${h.trimEnd().replace(wF,"")}
2024-02-08 10:52:22 +01:00
2024-03-14 18:43:30 +01:00
`,{inline:E}));for(;typeof b[b.length-1]=="string"&&!b[b.length-1].trim();)b.pop();if(t.wrapper===null)return b;let x=t.wrapper||(E?"span":"div"),B;if(b.length>1||t.forceWrapper)B=b;else{if(b.length===1)return B=b[0],typeof B=="string"?n("span",{key:"outer"},B):B;B=null}return ga(x,{key:"outer"},B)}function o(h){let E=h.match(US);return E?E.reduce(function(b,x,B){let w=x.indexOf("=");if(w!==-1){let T=function(k){return k.indexOf("-")!==-1&&k.match(nF)===null&&(k=k.replace(sF,function(z,V){return V.toUpperCase()})),k}(x.slice(0,w)).trim(),L=function(k){let z=k[0];return(z==='"'||z==="'")&&k.length>=2&&k[k.length-1]===z?k.slice(1,-1):k}(x.slice(w+1).trim()),F=zd[T]||T,N=b[F]=function(k,z){return k==="style"?z.split(/;\s?/).reduce(function(V,U){let oe=U.slice(0,U.indexOf(":"));return V[oe.replace(/(-[a-z])/g,Q=>Q[1].toUpperCase())]=U.slice(oe.length+1).trim(),V},{}):k==="href"||k==="src"?Mt(z):(z.match(aF)&&(z=z.slice(1,z.length-1)),z==="true"||z!=="false"&&z)}(T,L);typeof N=="string"&&(Io.test(N)||ko.test(N))&&(b[F]=fe(a(N.trim()),{key:B}))}else x!=="style"&&(b[zd[x]||x]=!0);return b},{}):null}let i=[],u={},s={0:{match:Qe(Jd),order:1,parse:(h,E,b)=>({children:E(h[0].replace(GS,""),b)}),render:(h,E,b)=>n("blockquote",{key:b.key},E(h.children,b))},1:{match:Sr(WS),order:1,parse:Oo,render:(h,E,b)=>n("br",{key:b.key})},2:{match:Qe(VS),order:1,parse:Oo,render:(h,E,b)=>n("hr",{key:b.key})},3:{match:Qe(Qd),order:0,parse:h=>({lang:void 0,text:h[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(h,E,b)=>n("pre",{key:b.key},n("code",bt({},h.attrs,{className:h.lang?`lang-${h.lang}`:""}),h.text))},4:{match:Qe(Xd),order:0,parse:h=>({attrs:o(h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{match:it(KS),order:3,parse:h=>({text:h[2]}),render:(h,E,b)=>n("code",{key:b.key},h.text)},6:{match:Qe(XS),order:0,parse:h=>(i.push({footnote:h[2],identifier:h[1]}),{}),render:Ro},7:{match:ot(QS),order:1,parse:h=>({target:`#${t.slugify(h[1])}`,text:h[1]}),render:(h,E,b)=>n("a",{key:b.key,href:Mt(h.target)},n("sup",{key:b.key},h.text))},8:{match:ot(tF),order:1,parse:h=>({completed:h[1].toLowerCase()==="x"}),render:(h,E,b)=>n("input",{checked:h.completed,key:b.key,readOnly:!0,type:"checkbox"})},9:{match:Qe(t.enforceAtxHeadings?ep:Zd),order:1,parse:(h,E,b)=>({children:Dn(E,h[2],b),id:t.slugify(h[2]),level:h[1].length}),render:(h,E,b)=>n(`h${h.level}`,{id:h.id,key:b.key},E(h.children,b))},10:{match:Qe(tp),order:0,parse:(h,E,b)=>({children:Dn(E,h[1],b),level:h[2]==="="?1:2,type:"9"})},11:{match:Sr(Io),order:1,parse(h,E,b){let[,x]=h[3].match(BF),B=new RegExp(`^${x}`,"gm"),w=h[3].replace(B,""),T=(L=w,kF.some(z=>z.test(L))?$F:Dn);var L;let F=h[1].toLowerCase(),N=$S.indexOf(F)!==-1,k={attrs:o(h[2]),noInnerParse:N,tag:N?F:h[1]};return b.inAnchor=b.inAnchor||F==="a",N?k.text=h[3]:k.children=T(E,w,b),b.inAnchor=!1,k},render:(h,E,b)=>n(h.tag,bt({key:b.key},h.attrs),h.text||E(h.children,b))},13:{match:Sr(ko),order:1,parse:h=>({attrs:o(h[2]||""),tag:h[1]}),render:(h,E,b)=>n(h.tag,bt({},h.attrs,{key:b.key}))},12:{match:Sr(rp),order:1,parse:()=>({}),render:Ro},14:{match:it(IF),order:1,parse:h=>({alt:h[1],target:Yd(h[2]),title:h[3]}),render:(h,E,b)=>n("img",{key:b.key,alt:h.alt||void 0,title:h.title||void 0,src:Mt(h.target)})},15:{match:ot(PF),order:3,parse:(h,E,b)=>({children:MF(E,h[1],b),target:Yd(h[2]),title:h[3]}),render:(h,E,b)=>n("a",{key:b.key,href:Mt(h.target),title:h.title},E(h.children,b))},16:{match:ot(uF),order:0,parse:h=>({children:[{text:h[1],type:"27"}],target:h[1],type:"15"})},17:{match:(h,E)=>E.inAnchor?null:ot(oF)(h,E),order:0,parse:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},18:{match:ot(iF),order:0,parse(h){let E=h[1],b=h[1];return zS.test(b)||(b="mailto:"+b),{children:[{text:E.replace("mailto:",""),type:"27"}],target:b,type:"15"}}},20:Wd(n,1),33:Wd(n,2),19:{match:Qe(YS),order:3,parse:Oo,render:()=>`
`},21:{match:jF,order:3,parse:_o,render:(h,E,b)=>n("p",{key:b.key},E(h.children,b))},22:{match:ot(lF),order:0,parse:h=>(u[h[1]]={target:h[2],title:h[4]},{}),render:Ro},23:{match:it(cF),order:0,parse:h=>({alt:h[1]||void 0,ref:h[2]}),render:(h,E,b)=>n("img",{key:b.key,alt:h.alt,src:Mt(u[h.ref].target),title:u[h.ref].title})},24:{match:ot(dF),order:0,parse:(h,E,b)=>({children:E(h[1],b),fallbackChildren:E(h[0].replace(pF,"\\$1"),b),ref:h[2]}),render:(h,E,b)=>u[h.ref]?n("a",{key:b.key,href:Mt(u[h.ref].target),title:u[h.ref].title},E(h.children,b)):n("span",{key:b.key},E(h.fallbackChildren,b))},25:{match:Qe(np),order:1,parse:qF,render:(h,E,b)=>n("table",{key:b.key},n("thead",null,n("tr",null,h.header.map(function(x,B){return n("th",{key:B,style:Kd(h,B)},E(x,b))}))),n("tbody",null,h.cells.map(function(x,B){return n("tr",{key:B},x.map(function(w,T){return n("td",{key:T,style:Kd(h,T)},E(w,b))}))})))},26:{match:function(h,E){return E.inTable?(E.inline=!0,mF.exec(h)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:Sr(FF),order:4,parse:h=>({text:h[0].replace(rF,(E,b)=>t.namedCodesToUnicode[b]?t.namedCodesToUnicode[b]:E)}),render:h=>h.text},28:{match:it(vF),order:2,parse:(h,E,b)=>({children:E(h[2],b)}),render:(h,E,b)=>n("strong",{key:b.key},E(h.children,b))},29:{match:it(DF),order:3,parse:(h,E,b)=>({children:E(h[2],b)}),render:(h,E,b)=>n("em",{key:b.key},E(h.children,b))},30:{match:it(SF),order:1,parse:h=>({text:h[1],type:"27"})},31:{match:it(CF),order:3,parse:_o,render:(h,E,b)=>n("mark",{key:b.key},E(h.children,b))},32:{match:it(xF),order:3,parse:_o,render:(h,E,b)=>n("del",{key:b.key},E(h.children,b))}};t.disableParsingRawHTML===!0&&(delete s[11],delete s[13]);let p=function(h){let E=Object.keys(h);function b(x,B){let w=[],T="";for(;x;){let L=0;for(;L<E.length;){let F=E[L],N=h[F],k=N.match(x,B,T);if(k){let z=k[0];x=x.substring(z.length);let V=N.parse(k,b,B);V.type==null&&(V.type=F),w.push(V),T=z;break}L++}}return w}return E.sort(function(x,B){let w=h[x].order,T=h[B].order;return w!==T?w-T:1}),function(x,B){return b(function(w){return w.replace(JS,`
`).replace(ZS,"").replace(hF," ")}(x),B)}}(s),y=(A=function(h,E){return function(b,x,B){let w=h[b.type].render;return E?E(()=>w(b,x,B),b,x,B):w(b,x,B)}}(s,t.renderRule),function h(E,b={}){if(Array.isArray(E)){let x=b.key,B=[],w=!1;for(let T=0;T<E.length;T++){b.key=T;let L=h(E[T],b),F=typeof L=="string";F&&w?B[B.length-1]+=L:L!==null&&B.push(L),w=F}return b.key=x,B}return A(E,h,b)});var A;let m=a(e);return i.length?n("div",null,m,n("footer",{key:"footer"},i.map(function(h){return n("div",{id:t.slugify(h.identifier),key:h.identifier},h.identifier,y(p(h.footnote,{inline:!0})))}))):m}var mp=e=>{let{children:t,options:r}=e,n=function(a,o){if(a==null)return{};var i,u,s={},p=Object.keys(a);for(u=0;u<p.length;u++)o.indexOf(i=p[u])>=0||(s[i]=a[i]);return s}(e,MS);return fe(zF(t,r),n)};var Py=pe(Cn(),1),Iy=pe(Np(),1),ky=pe(Uf(),1);l();c();d();l();c();d();l();c();d();l();c();d();l();c();d();l();c();d();var mK=__STORYBOOK_CHANNELS__,{Channel:Mo,PostMessageTransport:gK,WebsocketTransport:yK,createBrowserChannel:k3,createPostMessageChannel:bK,createWebSocketChannel:EK}=__STORYBOOK_CHANNELS__;l();c();d();var xK=__STORYBOOK_CORE_EVENTS__,{CHANNEL_CREATED:SK,CONFIG_ERROR:N3,CURRENT_STORY_WAS_SET:L3,DOCS_PREPARED:q3,DOCS_RENDERED:j3,FORCE_REMOUNT:M3,FORCE_RE_RENDER:$o,GLOBALS_UPDATED:Fn,IGNORED_EXCEPTION:FK,NAVIGATE_URL:zf,PLAY_FUNCTION_THREW_EXCEPTION:$3,PRELOAD_ENTRIES:U3,PREVIEW_BUILDER_PROGRESS:wK,PREVIEW_KEYDOWN:z3,REGISTER_SUBSCRIPTION:BK,REQUEST_WHATS_NEW_DATA:TK,RESET_STORY_ARGS:wn,RESULT_WHATS_NEW_DATA:_K,SELECT_STORY:OK,SET_CONFIG:RK,SET_CURRENT_STORY:H3,SET_GLOBALS:G3,SET_INDEX:W3,SET_STORIES:PK,SET_WHATS_NEW_CACHE:IK,SHARED_STATE_CHANGED:V3,SHARED_STATE_SET:K3,STORIES_COLLAPSE_ALL:kK,STORIES_EXPAND_ALL:NK,STORY_ARGS_UPDATED:Bn,STORY_CHANGED:Y3,STORY_ERRORED:J3,STORY_INDEX_INVALIDATED:X3,STORY_MISSING:Q3,STORY_PREPARED:Z3,STORY_RENDERED:Hf,STORY_RENDER_PHASE_CHANGED:eB,STORY_SPECIFIED:tB,STORY_THREW_EXCEPTION:rB,STORY_UNCHANGED:nB,TELEMETRY_ERROR:LK,TOGGLE_WHATS_NEW_NOTIFICATIONS:qK,UPDATE_GLOBALS:Gf,UPDATE_QUERY_PARAMS:aB,UPDATE_STORY_ARGS:Tn}=__STORYBOOK_CORE_EVENTS__;var oB=Object.create,Wf=Object.defineProperty,iB=Object.getOwnPropertyDescriptor,Vf=Object.getOwnPropertyNames,uB=Object.getPrototypeOf,sB=Object.prototype.hasOwnProperty,He=(e,t)=>function(){return t||(0,e[Vf(e)[0]])((t={exports:{}}).exports,t),t.exports},lB=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Vf(t))!sB.call(e,a)&&a!==r&&Wf(e,a,{get:()=>t[a],enumerable:!(n=iB(t,a))||n.enumerable});return e},Kf=(e,t,r)=>(r=e!=null?oB(uB(e)):{},lB(t||!e||!e.__esModule?Wf(r,"default",{value:e,enumerable:!0}):r,e));function Yf(){let e={setHandler:()=>{},send:()=>{}};return new Mo({transport:e})}var cB=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=Yf();return this.setChannel(e),e}return this.channel},this.getServerChannel=()=>{if(!this.serverChannel)throw new Error("Accessing non-existent serverChannel");return this.serverChannel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.hasServerChannel=()=>!!this.serverChannel,this.setChannel=e=>{this.channel=e,this.resolve()},this.setServerChannel=e=>{this.serverChannel=e},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},Uo="__STORYBOOK_ADDONS_PREVIEW";function dB(){return ie[Uo]||(ie[Uo]=new cB),ie[Uo]}var _n=dB();var z0=pe(Cn(),1),_r=pe(On(),1),DT=pe(O0(),1),CT=pe(Pn(),1);l();c();d();l();c();d();l();c();d();function Ut(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(u,s){var p=s.match(/\n([\t ]+|(?!\s).)/g);return p?u.concat(p.map(function(y){var A,m;return(m=(A=y.match(/[\t ]/g))===null||A===void 0?void 0:A.length)!==null&&m!==void 0?m:0})):u},[]);if(a.length){var o=new RegExp(`
2024-02-08 10:52:22 +01:00
[ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(u){return u.replace(o,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(u,s){var p=i.match(/(?:^|\n)( *)$/),y=p?p[1]:"",A=u;typeof u=="string"&&u.includes(`
`)&&(A=String(u).split(`
`).map(function(m,h){return h===0?m:""+y+m}).join(`
2024-03-14 18:43:30 +01:00
`)),i+=A+n[s+1]}),i}var Tr=Ut;var tT=(e=>(e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e))(tT||{});l();c();d();var Ln=pe(zo(),1);var H0=pe($0(),1);var G0=pe(Bo(),1);var YJ=(0,z0.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{}));var JJ=Symbol("incompatible");var XJ=Symbol("Deeply equal");var xT=Ut`
2024-02-08 10:52:22 +01:00
CSF .story annotations deprecated; annotate story functions directly:
- StoryFn.story.name => StoryFn.storyName
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
2024-03-14 18:43:30 +01:00
`,QJ=(0,H0.default)(()=>{},xT);var Et=(...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((a,o)=>(Object.entries(o).forEach(([i,u])=>{let s=a[i];Array.isArray(u)||typeof s>"u"?a[i]=u:(0,Ln.default)(u)&&(0,Ln.default)(s)?t[i]=!0:typeof u<"u"&&(a[i]=u)}),a),{});return Object.keys(t).forEach(a=>{let o=r.filter(Boolean).map(i=>i[a]).filter(i=>typeof i<"u");o.every(i=>(0,Ln.default)(i))?n[a]=Et(...o):n[a]=o[o.length-1]}),n};var Go=(e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(ze.warn(Ut`
2024-02-08 10:52:22 +01:00
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
Consider using the mapping feature or fully custom args:
- Mapping: https://storybook.js.org/docs/react/writing-stories/args#mapping-to-complex-arg-values
- Custom args: https://storybook.js.org/docs/react/essentials/controls#fully-custom-args
2024-03-14 18:43:30 +01:00
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Go(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:(0,_r.default)(e,a=>Go(a,t,new Set(r)))}):{name:"object",value:{}}},ST=e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,a=(0,_r.default)(n,(i,u)=>({name:u,type:Go(i,`${t}.${u}`,new Set)})),o=(0,_r.default)(r,(i,u)=>({name:u}));return Et(a,o,r)};ST.secondPass=!0;var U0=(e,t)=>Array.isArray(t)?t.includes(e):e.match(t),Rr=(e,t,r)=>!t&&!r?e:e&&(0,G0.default)(e,(n,a)=>{let o=n.name||a;return(!t||U0(o,t))&&(!r||!U0(o,r))}),FT=(e,t,r)=>{let{type:n,options:a}=e;if(n){if(r.color&&r.color.test(t)){let o=n.name;if(o==="string")return{control:{type:"color"}};o!=="enum"&&ze.warn(`Addon controls: Control of type color only supports string, received "${o}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:o}=n;return{control:{type:o?.length<=5?"radio":"select"},options:o}}case"function":case"symbol":return null;default:return{control:{type:a?"select":"object"}}}}},W0=e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:a=null,matchers:o={}}={}}}=e;if(!r)return t;let i=Rr(t,n,a),u=(0,_r.default)(i,(s,p)=>s?.type&&FT(s,p,o));return Et(u,i)};W0.secondPass=!0;function Wo(e){return async(t,r,n)=>{await e.reduceRight((a,o)=>async()=>o(t,a,n),async()=>r(n))()}}function Or(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}function In(e,t,r={}){return Or(e,t).reduce((n,a)=>r.reverseFileOrder?[...a,...n]:[...n,...a],[])}function kn(e,t){return Object.assign({},...Or(e,t))}function Nn(e,t){return Or(e,t).pop()}function Vo(e){let t=In(e,"argTypesEnhancers"),r=Or(e,"runStep");return{parameters:Et(...Or(e,"parameters")),decorators:In(e,"decorators",{reverseFileOrder:!(ie.FEATURES?.legacyDecoratorFileOrder??!1)}),args:kn(e,"args"),argsEnhancers:In(e,"argsEnhancers"),argTypes:kn(e,"argTypes"),argTypesEnhancers:[...t.filter(n=>!n.secondPass),...t.filter(n=>n.secondPass)],globals:kn(e,"globals"),globalTypes:kn(e,"globalTypes"),loaders:In(e,"loaders"),render:Nn(e,"render"),renderToCanvas:Nn(e,"renderToCanvas"),renderToDOM:Nn(e,"renderToDOM"),applyDecorators:Nn(e,"applyDecorators"),runStep:Wo(r)}}var ZJ=Vo([]);var F_=pe(Pn(),1),w_=pe(Ei(),1);l();c();d();var T_=pe(Pn(),1);var __=pe(Ei(),1),O_=pe(zo(),1),Rm=He({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",b
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u01
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G,J=!0,K=!1,Z;return{s:function(){G=P[Symbol.iterator]()},n:function(){var ue=G.next();return J=ue.done,ue},e:function(ue){K=!0,Z=ue},f:function(){try{!J&&G.return!=null&&G.return()}finally{if(K)throw Z}}}}function i(P,O){if(P){if(typeof P=="string")return u(P,O);var M=Object.prototype.toString.call(P).slice(8,-1);if(M==="Object"&&P.constructor&&(M=P.constructor.name),M==="Map"||M==="Set")return Array.from(M);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return u(P,O)}}function u(P,O){(O==null||O>P.length)&&(O=P.length);for(var M=0,G=new Array(O);M<O;M++)G[M]=P[M];return G}var s=k_(),p={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:y()};function y(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return w(0,5).forEach(function(O){w(0,5).forEach(function(M){w(0,5).forEach(function(G){return A(O,M,G,P)})})}),w(0,23).forEach(function(O){var M=O+232,G=m(O*10+8);P[M]="#"+G+G+G}),P}function A(P,O,M,G){var J=16+P*36+O*6+M,K=P>0?P*40+55:0,Z=O>0?O*40+55:0,ue=M>0?M*40+55:0;G[J]=h([K,Z,ue])}function m(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function h(P){var O=[],M=o(P),G;try{for(M.s();!(G=M.n()).done;){var J=G.value;O.push(m(J))}}catch(K){M.e(K)}finally{M.f()}return"#"+O.join("")}function E(P,O,M,G){var J;return O==="text"?J=F(M,G):O==="display"?J=x(P,M,G):O==="xterm256"?J=z(P,G.colors[M]):O==="rgb"&&(J=b(P,M)),J}function b(P,O){O=O.substring(2).slice(0,-1);var M=+O.substr(0,2),G=O.substring(5).split(";"),J=G.map(function(K){return("0"+Number(K).toString(16)).substr(-2)}).join("");return k(P,(M===38?"color:#":"background-color:#")+J)}function x(P,O,M){O=parseInt(O,10);var G={"-1":function(){return"<br/>"},0:function(){return P.length&&B(P)},1:function(){return N(P,"b")},3:function(){return N(P,"i")},4:function(){return N(P,"u")},8:function(){return k(P,"display:none")},9:function(){return N(P,"strike")},22:function(){return k(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return U(P,"i")},24:function(){return U(P,"u")},39:function(){return z(P,M.fg)},49:function(){return V(P,M.bg)},53:function(){return k(P,"text-decoration:overline")}},J;return G[O]?J=G[O]():4<O&&O<7?J=N(P,"blink"):29<O&&O<38?J=z(P,M.colors[O-30]):39<O&&O<48?J=V(P,M.colors[O-40]):89<O&&O<98?J=z(P,M.colors[8+(O-90)]):99<O&&O<108&&(J=V(P,M.colors[8+(O-100)])),J}function B(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(M){return"</"+M+">"}).join("")}function w(P,O){for(var M=[],G=P;G<=O;G++)M.push(G);return M}function T(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function L(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function F(P,O){return O.escapeXML?s.encodeXML(P):P}function N(P,O,M){return M||(M=""),P.push(O),"<".concat(O).concat(M?' style="'.concat(M,'"'):"",">")}function k(P,O){return N(P,"span",O)}function z(P,O){return N(P,"span","color:"+O)}function V(P,O){return N(P,"span","background-color:"+O)}function U(P,O){var M;if(P.slice(-1)[0]===O&&(M=P.pop()),M)return"</"+O+">"}function oe(P,O,M){var G=!1,J=3;function K(){return""}function Z(ae,Ae){return M("xterm256",Ae),""}function ue(ae){return O.newline?M("display",-1):M("text",ae),""}function Re(ae,Ae){G=!0,Ae.trim().length===0&&(Ae="0"),Ae=Ae.trimRight(";").split(";");var Gr=o(Ae),Qi;try{for(Gr.s();!(Qi=Gr.n()).done;){var i2=Qi.value;M("display",i2)}}catch(u2){Gr.e(u2)}finally{Gr.f()}return""}function Pe(ae){return M("text",ae),""}function X(ae){return M("rgb",ae),""}var qe=[{pattern:/^\x08+/,sub:K},{pattern:/^\x1b\[[012]?K/,sub:K},{pattern:/^\x1b\[\(B/,sub:K},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:X},{pattern:/^\x1b\[38;5;(\d+)m/,sub:Z},{pattern:/^\n/,sub:ue},{pattern:/^\r+\n/,su
2024-02-08 10:52:22 +01:00
`&&t!=="`")&&(t=null),a&&(e[i]==="/"&&e[i-1]!=="\\"||e[i]===`
`)&&(a=!1),r&&e[i-1]==="/"&&e[i-2]==="*"&&(r=!1),n&&e[i]===`
2024-03-14 18:43:30 +01:00
`&&(n=!1)),!r&&!n&&(o+=e[i]);else o=e;return o},_R=(0,lg.default)(1e4)(e=>TR(e).replace(/\n\s*/g,"").trim()),OR=function(t,r){let n=r.slice(0,r.indexOf("{")),a=r.slice(r.indexOf("{"));if(n.includes("=>")||n.includes("function"))return r;let o=n;return o=o.replace(t,"function"),o+a},RR=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,PR=e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/);function cg(e){if(!ta(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=Km(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var IR=function(t){let r,n,a,o;return function(u,s){try{if(u==="")return o=[],r=new Map([[s,"[]"]]),n=new Map,a=[],s;let p=n.get(this)||this;for(;a.length&&p!==a[0];)a.shift(),o.pop();if(typeof s=="boolean")return s;if(s===void 0)return t.allowUndefined?"_undefined_":void 0;if(s===null)return null;if(typeof s=="number")return s===-1/0?"_-Infinity_":s===1/0?"_Infinity_":Number.isNaN(s)?"_NaN_":s;if(typeof s=="bigint")return`_bigint_${s.toString()}`;if(typeof s=="string")return RR.test(s)?t.allowDate?`_date_${s}`:void 0:s;if((0,cO.default)(s))return t.allowRegExp?`_regexp_${s.flags}|${s.source}`:void 0;if((0,dO.default)(s)){if(!t.allowFunction)return;let{name:A}=s,m=s.toString();return m.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${A}|${(()=>{}).toString()}`:`_function_${A}|${_R(OR(u,m))}`}if((0,pO.default)(s)){if(!t.allowSymbol)return;let A=Symbol.keyFor(s);return A!==void 0?`_gsymbol_${A}`:`_symbol_${s.toString().slice(7,-1)}`}if(a.length>=t.maxDepth)return Array.isArray(s)?`[Array(${s.length})]`:"[Object]";if(s===this)return`_duplicate_${JSON.stringify(o)}`;if(s instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...s.cause?{cause:s.cause}:{},...s,name:s.name,message:s.message,stack:s.stack,"_constructor-name_":s.constructor.name}};if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&!t.allowClass)return;let y=r.get(s);if(!y){let A=Array.isArray(s)?s:cg(s);if(s.constructor&&s.constructor.name&&s.constructor.name!=="Object"&&!Array.isArray(s)&&t.allowClass)try{Object.assign(A,{"_constructor-name_":s.constructor.name})}catch{}return o.push(u),a.unshift(A),r.set(s,JSON.stringify(o)),s!==A&&n.set(s,A),A}return`_duplicate_${y}`}catch{return}}},kR=function reviver(options){let refs=[],root;return function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:t,replacement:r})=>{let n=PR(r)?JSON.parse(r):r.split(".");n.length===0?t[e]=root:t[e]=BR(root,n)})),key==="_constructor-name_")return value;if(ta(value)&&value.__isConvertedError__){let{message:e,...t}=value.errorProperties,r=new Error(e);return Object.assign(r,t),r}if(ta(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let t=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new t)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=(...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)};return Object.defineProperty(result,"toString",{value:()=>sourceSanitized}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,t]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(t,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymb
2024-02-08 10:52:22 +01:00
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Me(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Me(.02,e.input.background)} 100%)`:`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${je(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${je(e.appBorderColor,.2)}`,cursor:"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Me(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:je(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Me(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Me(.02,e.input.background)} 100%)`:`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${je(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${je(e.appBorderColor,.2)}`,cursor:"grab",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Me(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Me(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Me(.02,e.input.background)} 100%)`:`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
2024-03-14 18:43:30 +01:00
${nt(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${je(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Qy=j.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),EP=j(Qy)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),AP=j.div({display:"flex",alignItems:"center",width:"100%"});function vP(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var DP=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:o=1,onBlur:i,onFocus:u})=>{let s=A=>{r(k9(A.target.value))},p=t!==void 0,y=et(()=>vP(o),[o]);return g.createElement(AP,null,g.createElement(Qy,null,n),g.createElement(bP,{id:_e(e),type:"range",onChange:s,name:e,value:t,min:n,max:a,step:o,onFocus:u,onBlur:i}),g.createElement(EP,{numberOFDecimalsPlaces:y,max:a},p?t.toFixed(y):"--"," / ",a))},CP=j.label({display:"flex"}),xP=j.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),SP=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:o})=>{let i=A=>{r(A.target.value)},[u,s]=te(!1),p=ge(()=>{r(""),s(!0)},[s]);if(t===void 0)return g.createElement(Te.Button,{id:lr(e),onClick:p},"Set string");let y=typeof t=="string";return g.createElement(CP,null,g.createElement(Te.Textarea,{id:_e(e),maxLength:o,onChange:i,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:y?null:"error",name:e,value:y?t:"",onFocus:n,onBlur:a}),o&&g.createElement(xP,{isMaxed:t?.length===o},t?.length??0," / ",o))},FP=j(Te.Input)({padding:10});function wP(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var BP=({onChange:e,name:t,accept:r="image/*",value:n})=>{let a=we(null);function o(i){if(!i.target.files)return;let u=Array.from(i.target.files).map(s=>URL.createObjectURL(s));e(u),wP(n)}return he(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),g.createElement(FP,{ref:a,id:_e(t),type:"file",name:t,multiple:!0,onChange:o,accept:r,size:"flex"})},TP=nu(()=>Promise.resolve().then(()=>(yy(),gy))),_P=e=>g.createElement(ru,{fallback:g.createElement("div",null)},g.createElement(TP,{...e})),OP={array:wy,object:wy,boolean:w9,color:_P,date:P9,number:N9,check:or,"inline-check":or,radio:or,"inline-radio":or,select:or,"multi-select":or,range:DP,text:SP,file:BP},By=()=>g.createElement(g.Fragment,null,"-"),RP=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:a,control:o}=e,[i,u]=te(!1),[s,p]=te({value:t});he(()=>{i||p({value:t})},[i,t]);let y=ge(b=>(p({value:b}),r({[a]:b}),b),[r,a]),A=ge(()=>u(!1),[]),m=ge(()=>u(!0),[]);if(!o||o.disable)return n?g.createElement(ft,{href:"https://storybook.js.org/docs/react/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):g.createElement(By,null);let h={name:a,argType:e,value:s.value,onChange:y,onBlur:A,onFocus:m},E=OP[o.type]||By;return g.createElement(E,{...h,...o,controlType:o.type})},PP=j.span({fontWeight:"bold"}),IP=j.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),kP=j.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...wt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),NP=j.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ce(.1,e.color.defaultText):ce(.2,e.color.defaultText),marginTop:t?4:0})),LP=j.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ce(.1,e.color.defaultText):ce(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),qP=j.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),da=e=>{let[t,r]=te(!1),{row:n
2024-02-08 10:52:22 +01:00
Please refer to the migration guide: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#argstable-block
2024-03-14 18:43:30 +01:00
`);let t=Wr(Ji),r,n,a;try{({parameters:r,component:n,subcomponents:a}=t.storyById())}catch{let{of:h}=e;if("of"in e&&h===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");({projectAnnotations:{parameters:r}}=t.resolveOf(h,["component"]))}let{include:o,exclude:i,components:u,sort:s}=e,{story:p}=e,y=s||r.controls?.sort,A=cI(e,n);if(p)return g.createElement(dI,{...e,component:A,subcomponents:a,sort:y});if(!u&&!a){let h;try{h={rows:t2(A,r,o,i)}}catch(E){h={error:E.message}}return g.createElement(St,{...h,sort:y})}if(u)return g.createElement(Oy,{...e,components:u,sort:y,parameters:r});let m=e2(A);return g.createElement(Oy,{...e,components:{[m]:A,...a},sort:y,parameters:r})};pI.defaultProps={of:Xi};var rae=ur({sources:{}});var fI=(e=>(e.OPEN="open",e.CLOSED="closed",e.NONE="none",e))(fI||{});var{document:hI}=ie;function mI(e,t){e.channel.emit(zf,t)}var nae=Oa.a;var r2=["h1","h2","h3","h4","h5","h6"],gI=r2.reduce((e,t)=>({...e,[t]:j(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),yI=j.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),bI=({as:e,id:t,children:r,...n})=>{let a=Wr(Ji),o=gI[e],i=`#${t}`;return g.createElement(o,{id:t,...n},g.createElement(yI,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:u=>{hI.getElementById(t)&&mI(a,i)}},g.createElement(Be,{icon:"link"})),r)},n2=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return g.createElement(bI,{as:t,id:r,...a},n);let o=t,{as:i,...u}=e;return g.createElement(o,{...Ra(u,t)})},aae=r2.reduce((e,t)=>({...e,[t]:r=>g.createElement(n2,{as:t,...r})}),{});var EI=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(EI||{});var oae=j.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),iae=j.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),uae=j.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));var{document:sae,window:lae}=ie;var AI=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return g.createElement(Ca,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return g.createElement(n2,{as:"h2",id:n,...r},e)},cae=j(AI)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));var a2="addon-controls",o2="controls",vI=()=>{let[e,t]=te(!0),[r,n,a]=iu(),[o]=uu(),i=ba(),{expanded:u,sort:s,presetColors:p}=su(o2,{}),{path:y,previewInitialized:A}=lu();he(()=>{A&&t(!1)},[A]);let m=Object.values(i).some(E=>E?.control),h=Object.entries(i).reduce((E,[b,x])=>(x?.control?.type!=="color"||x?.control?.presetColors?E[b]=x:E[b]={...x,control:{...x.control,presetColors:p}},E),{});return g.createElement(St,{key:y,compact:!u&&m,rows:h,args:r,globals:o,upd
2024-02-08 10:52:22 +01:00
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }