import{c as fu,g as xe}from"./_commonjsHelpers-725317a4.js";function sr(u,e){for(var r=-1,t=u==null?0:u.length,a=Array(t);++r-1}var mr=gr,_r=gu;function xr(u,e){var r=this.__data__,t=_r(r,u);return t<0?(++this.size,r.push([u,e])):r[t][1]=e,this}var Tr=xr,br=or,Sr=Br,$r=dr,wr=mr,Or=Tr;function uu(u){var e=-1,r=u==null?0:u.length;for(this.clear();++el))return!1;var E=s.get(u),T=s.get(e);if(E&&T)return E==e&&T==u;var x=-1,F=!0,m=r&fa?new la:void 0;for(s.set(u,e),s.set(e,u);++x-1&&u%1==0&&u-1&&u%1==0&&u<=xn}var Ku=Tn,bn=Cu,Sn=Ku,$n=lu,wn="[object Arguments]",On="[object Array]",Nn="[object Boolean]",Pn="[object Date]",In="[object Error]",Rn="[object Function]",Ln="[object Map]",Mn="[object Number]",kn="[object Object]",Un="[object RegExp]",jn="[object Set]",Gn="[object String]",Kn="[object WeakMap]",Hn="[object ArrayBuffer]",qn="[object DataView]",Wn="[object Float32Array]",zn="[object Float64Array]",Vn="[object Int8Array]",Jn="[object Int16Array]",Qn="[object Int32Array]",Yn="[object Uint8Array]",Xn="[object Uint8ClampedArray]",Zn="[object Uint16Array]",ui="[object Uint32Array]",S={};S[Wn]=S[zn]=S[Vn]=S[Jn]=S[Qn]=S[Yn]=S[Xn]=S[Zn]=S[ui]=!0;S[wn]=S[On]=S[Hn]=S[Nn]=S[qn]=S[Pn]=S[In]=S[Rn]=S[Ln]=S[Mn]=S[kn]=S[Un]=S[jn]=S[Gn]=S[Kn]=!1;function ei(u){return $n(u)&&Sn(u.length)&&!!S[bn(u)]}var ri=ei;function ti(u){return function(e){return u(e)}}var ai=ti,du={exports:{}};du.exports;(function(u,e){var r=be,t=e&&!e.nodeType&&e,a=t&&!0&&u&&!u.nodeType&&u,s=a&&a.exports===t,n=s&&r.process,l=function(){try{var p=a&&a.require&&a.require("util").types;return p||n&&n.binding&&n.binding("util")}catch{}}();u.exports=l})(du,du.exports);var ni=du.exports,ii=ri,si=ai,se=ni,De=se&&se.isTypedArray,Di=De?si(De):ii,Me=Di,Ai=on,oi=Ie,Fi=W,Ci=Re,li=Le,ci=Me,Ei=Object.prototype,pi=Ei.hasOwnProperty;function fi(u,e){var r=Fi(u),t=!r&&oi(u),a=!r&&!t&&Ci(u),s=!r&&!t&&!a&&ci(u),n=r||t||a||s,l=n?Ai(u.length,String):[],p=l.length;for(var E in u)(e||pi.call(u,E))&&!(n&&(E=="length"||a&&(E=="offset"||E=="parent")||s&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||li(E,p)))&&l.push(E);return l}var Bi=fi,hi=Object.prototype;function yi(u){var e=u&&u.constructor,r=typeof e=="function"&&e.prototype||hi;return u===r}var di=yi;function vi(u,e){return function(r){return u(e(r))}}var gi=vi,mi=gi,_i=mi(Object.keys,Object),xi=_i,Ti=di,bi=xi,Si=Object.prototype,$i=Si.hasOwnProperty;function wi(u){if(!Ti(u))return bi(u);var e=[];for(var r in Object(u))$i.call(u,r)&&r!="constructor"&&e.push(r);return e}var Oi=wi,Ni=$e,Pi=Ku;function Ii(u){return u!=null&&Pi(u.length)&&!Ni(u)}var Ri=Ii,Li=Bi,Mi=Oi,ki=Ri;function Ui(u){return ki(u)?Li(u):Mi(u)}var Hu=Ui,ji=Ya,Gi=Dn,Ki=Hu;function Hi(u){return ji(u,Ki,Gi)}var qi=Hi,Ae=qi,Wi=1,zi=Object.prototype,Vi=zi.hasOwnProperty;function Ji(u,e,r,t,a,s){var n=r&Wi,l=Ae(u),p=l.length,E=Ae(e),T=E.length;if(p!=T&&!n)return!1;for(var x=p;x--;){var F=l[x];if(!(n?F in e:Vi.call(e,F)))return!1}var m=s.get(u),d=s.get(e);if(m&&d)return m==e&&d==u;var c=!0;s.set(u,e),s.set(e,u);for(var f=n;++x=48&&f<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function E(f){return f===32||f===9||f===11||f===12||f===160||f>=5760&&r.indexOf(f)>=0}function T(f){return f===10||f===13||f===8232||f===8233}function x(f){if(f<=65535)return String.fromCharCode(f);var I=String.fromCharCode(Math.floor((f-65536)/1024)+55296),L=String.fromCharCode((f-65536)%1024+56320);return I+L}for(t=new Array(128),s=0;s<128;++s)t[s]=s>=97&&s<=122||s>=65&&s<=90||s===36||s===95;for(a=new Array(128),s=0;s<128;++s)a[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===36||s===95;function F(f){return f<128?t[f]:e.NonAsciiIdentifierStart.test(x(f))}function m(f){return f<128?a[f]:e.NonAsciiIdentifierPart.test(x(f))}function d(f){return f<128?t[f]:u.NonAsciiIdentifierStart.test(x(f))}function c(f){return f<128?a[f]:u.NonAsciiIdentifierPart.test(x(f))}Qe.exports={isDecimalDigit:n,isHexDigit:l,isOctalDigit:p,isWhiteSpace:E,isLineTerminator:T,isIdentifierStartES5:F,isIdentifierPartES5:m,isIdentifierStartES6:d,isIdentifierPartES6:c}})();var Ye=Qe.exports,Xe={exports:{}};(function(){var u=Ye;function e(F){switch(F){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(F,m){return!m&&F==="yield"?!1:t(F,m)}function t(F,m){if(m&&e(F))return!0;switch(F.length){case 2:return F==="if"||F==="in"||F==="do";case 3:return F==="var"||F==="for"||F==="new"||F==="try";case 4:return F==="this"||F==="else"||F==="case"||F==="void"||F==="with"||F==="enum";case 5:return F==="while"||F==="break"||F==="catch"||F==="throw"||F==="const"||F==="yield"||F==="class"||F==="super";case 6:return F==="return"||F==="typeof"||F==="delete"||F==="switch"||F==="export"||F==="import";case 7:return F==="default"||F==="finally"||F==="extends";case 8:return F==="function"||F==="continue"||F==="debugger";case 10:return F==="instanceof";default:return!1}}function a(F,m){return F==="null"||F==="true"||F==="false"||r(F,m)}function s(F,m){return F==="null"||F==="true"||F==="false"||t(F,m)}function n(F){return F==="eval"||F==="arguments"}function l(F){var m,d,c;if(F.length===0||(c=F.charCodeAt(0),!u.isIdentifierStartES5(c)))return!1;for(m=1,d=F.length;m=d||(f=F.charCodeAt(m),!(56320<=f&&f<=57343)))return!1;c=p(c,f)}if(!I(c))return!1;I=u.isIdentifierPartES6}return!0}function T(F,m){return l(F)&&!a(F,m)}function x(F,m){return E(F)&&!s(F,m)}Xe.exports={isKeywordES5:r,isKeywordES6:t,isReservedWordES5:a,isReservedWordES6:s,isRestrictedWord:n,isIdentifierNameES5:l,isIdentifierNameES6:E,isIdentifierES5:T,isIdentifierES6:x}})();var z1=Xe.exports;(function(){ou.ast=W1,ou.code=Ye,ou.keyword=z1})();var Du={},X={};const V1="doctrine",J1="JSDoc parser",Q1="https://github.com/eslint/doctrine",Y1="lib/doctrine.js",X1="3.0.0",Z1={node:">=6.0.0"},uA={lib:"./lib"},eA=["lib"],rA=[{name:"Nicholas C. Zakas",email:"nicholas+npm@nczconsulting.com",web:"https://www.nczonline.net"},{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],tA="eslint/doctrine",aA={coveralls:"^3.0.1",dateformat:"^1.0.11",eslint:"^1.10.3","eslint-release":"^1.0.0",linefix:"^0.1.1",mocha:"^3.4.2","npm-license":"^0.3.1",nyc:"^10.3.2",semver:"^5.0.3",shelljs:"^0.5.3","shelljs-nodecli":"^0.1.1",should:"^5.0.1"},nA="Apache-2.0",iA={pretest:"npm run lint",test:"nyc mocha",coveralls:"nyc report --reporter=text-lcov | coveralls",lint:"eslint lib/","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"},sA={esutils:"^2.0.2"},DA={name:V1,description:J1,homepage:Q1,main:Y1,version:X1,engines:Z1,directories:uA,files:eA,maintainers:rA,repository:tA,devDependencies:aA,license:nA,scripts:iA,dependencies:sA};function AA(u,e){if(!u)throw new Error(e||"unknown assertion error")}var oA=AA;(function(){var u;u=DA.version,X.VERSION=u;function e(t){this.name="DoctrineError",this.message=t}e.prototype=function(){var t=function(){};return t.prototype=Error.prototype,new t}(),e.prototype.constructor=e,X.DoctrineError=e;function r(t){throw new e(t)}X.throwError=r,X.assert=oA})();(function(){var u,e,r,t,a,s,n,l,p,E,T,x;p=ou,E=X,u={NullableLiteral:"NullableLiteral",AllLiteral:"AllLiteral",NullLiteral:"NullLiteral",UndefinedLiteral:"UndefinedLiteral",VoidLiteral:"VoidLiteral",UnionType:"UnionType",ArrayType:"ArrayType",RecordType:"RecordType",FieldType:"FieldType",FunctionType:"FunctionType",ParameterType:"ParameterType",RestType:"RestType",NonNullableType:"NonNullableType",OptionalType:"OptionalType",NullableType:"NullableType",NameExpression:"NameExpression",TypeApplication:"TypeApplication",StringLiteralType:"StringLiteralType",NumericLiteralType:"NumericLiteralType",BooleanLiteralType:"BooleanLiteralType"},e={ILLEGAL:0,DOT_LT:1,REST:2,LT:3,GT:4,LPAREN:5,RPAREN:6,LBRACE:7,RBRACE:8,LBRACK:9,RBRACK:10,COMMA:11,COLON:12,STAR:13,PIPE:14,QUESTION:15,BANG:16,EQUAL:17,NAME:18,STRING:19,NUMBER:20,EOF:21};function F(i){return"><(){}[],:*|?!=".indexOf(String.fromCharCode(i))===-1&&!p.code.isWhiteSpace(i)&&!p.code.isLineTerminator(i)}function m(i,D,y,o){this._previous=i,this._index=D,this._token=y,this._value=o}m.prototype.restore=function(){s=this._previous,a=this._index,n=this._token,l=this._value},m.save=function(){return new m(s,a,n,l)};function d(i,D){return x&&(i.range=[D[0]+T,D[1]+T]),i}function c(){var i=r.charAt(a);return a+=1,i}function f(i){var D,y,o,A=0;for(y=i==="u"?4:2,D=0;D=0&&a=t)return e.ILLEGAL;if(D=r.charCodeAt(a+1),D===60)break}l+=c()}return e.NAME}function M(){var i;for(s=a;a=t)return n=e.EOF,n;switch(i=r.charCodeAt(a),i){case 39:case 34:return n=I(),n;case 58:return c(),n=e.COLON,n;case 44:return c(),n=e.COMMA,n;case 40:return c(),n=e.LPAREN,n;case 41:return c(),n=e.RPAREN,n;case 91:return c(),n=e.LBRACK,n;case 93:return c(),n=e.RBRACK,n;case 123:return c(),n=e.LBRACE,n;case 125:return c(),n=e.RBRACE,n;case 46:if(a+1=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57}function E(C){return C==="param"||C==="argument"||C==="arg"}function T(C){return C==="return"||C==="returns"}function x(C){return C==="property"||C==="prop"}function F(C){return E(C)||x(C)||C==="alias"||C==="this"||C==="mixes"||C==="requires"}function m(C){return F(C)||C==="const"||C==="constant"}function d(C){return x(C)||E(C)}function c(C){return x(C)||E(C)}function f(C){return E(C)||T(C)||C==="define"||C==="enum"||C==="implements"||C==="this"||C==="type"||C==="typedef"||x(C)}function I(C){return f(C)||C==="throws"||C==="const"||C==="constant"||C==="namespace"||C==="member"||C==="var"||C==="module"||C==="constructor"||C==="class"||C==="extends"||C==="augments"||C==="public"||C==="private"||C==="protected"}var L="[ \\f\\t\\v\\u00a0\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]",z="("+L+"*(?:\\*"+L+`?)?)(.+|[\r \u2028\u2029])`;function M(C){return C.replace(/^\/\*\*?/,"").replace(/\*\/$/,"").replace(new RegExp(z,"g"),"$2").replace(/\s*$/,"")}function _(C,k){for(var B=C.replace(/^\/\*\*?/,""),j=0,G=new RegExp(z,"g"),g;g=G.exec(B);)if(j+=g[1].length,g.index+g[0].length>k+j)return k+j+C.length-B.length;return C.replace(/\*\/$/,"").replace(/\s*$/,"").length}(function(C){var k,B,j,G,g,nu,cu,V,Eu;function $(){var o=g.charCodeAt(B);return B+=1,a.code.isLineTerminator(o)&&!(o===13&&g.charCodeAt(B)===10)&&(j+=1),String.fromCharCode(o)}function $u(){var o="";for($();B=o)return null;if(g.charCodeAt(B)===91)if(A)P=!0,v=$();else return null;if(v+=K(o),h)for(g.charCodeAt(B)===58&&(v==="module"||v==="external"||v==="event")&&(v+=$(),v+=K(o)),g.charCodeAt(B)===91&&g.charCodeAt(B+1)===93&&(v+=$(),v+=$());g.charCodeAt(B)===46||g.charCodeAt(B)===47||g.charCodeAt(B)===35||g.charCodeAt(B)===45||g.charCodeAt(B)===126;)v+=$(),v+=K(o);if(P){if(J(o),g.charCodeAt(B)===61){v+=$(),J(o);for(var R,q=1;B=o||g.charCodeAt(B)!==93)return null;v+=$()}return v}function wu(){for(;B=G?!1:(r.assert(g.charCodeAt(B)===64),!0)}function w(o){return g===nu?o:_(nu,o)}function N(o,A){this._options=o,this._title=A.toLowerCase(),this._tag={title:A,description:null},this._options.lineNumbers&&(this._tag.lineNumber=j),this._first=B-A.length-1,this._last=0,this._extra={}}N.prototype.addError=function(A){var h=Array.prototype.slice.call(arguments,1),v=A.replace(/%(\d)/g,function(P,b){return r.assert(b1&&(this._tag.default=o.slice(1).join("=")),this._tag.name=o[0],this._tag.type&&this._tag.type.type!=="OptionalType"&&(this._tag.type={type:"OptionalType",expression:this._tag.type}));else{if(!F(this._title))return!0;if(E(this._title)&&this._tag.type&&this._tag.type.name)this._extra.name=this._tag.type,this._tag.name=this._tag.type.name,this._tag.type=null;else if(!this.addError("Missing or invalid tag name"))return!1}return!0},N.prototype.parseDescription=function(){var A=n(g,B,this._last).trim();return A&&(/^-\s+/.test(A)&&(A=A.substring(2)),this._tag.description=A),!0},N.prototype.parseCaption=function(){var A=n(g,B,this._last).trim(),h="",v="",P=A.indexOf(h),b=A.indexOf(v);return P>=0&&b>=0?(this._tag.caption=A.substring(P+h.length,b).trim(),this._tag.description=A.substring(b+v.length).trim()):this._tag.description=A,!0},N.prototype.parseKind=function(){var A,h;return h={class:!0,constant:!0,event:!0,external:!0,file:!0,function:!0,member:!0,mixin:!0,module:!0,namespace:!0,typedef:!0},A=n(g,B,this._last).trim(),this._tag.kind=A,!(!s(h,A)&&!this.addError("Invalid kind name '%0'",A))},N.prototype.parseAccess=function(){var A;return A=n(g,B,this._last).trim(),this._tag.access=A,!(A!=="private"&&A!=="protected"&&A!=="public"&&!this.addError("Invalid access name '%0'",A))},N.prototype.parseThis=function(){var A=n(g,B,this._last).trim();if(A&&A.charAt(0)==="{"){var h=this.parseType();return h&&this._tag.type.type==="NameExpression"||this._tag.type.type==="UnionType"?(this._tag.name=this._tag.type.name,!0):this.addError("Invalid name for this")}else return this.parseNamePath()},N.prototype.parseVariation=function(){var A,h;return h=n(g,B,this._last).trim(),A=parseFloat(h,10),this._tag.variation=A,!(isNaN(A)&&!this.addError("Invalid variation '%0'",h))},N.prototype.ensureEnd=function(){var o=n(g,B,this._last).trim();return!(o&&!this.addError("Unknown content '%0'",o))},N.prototype.epilogue=function(){var A;return A=this._tag.description,!(c(this._title)&&!this._tag.type&&A&&A.charAt(0)==="["&&(this._tag.type=this._extra.name,this._tag.name||(this._tag.name=void 0),!V&&!this.addError("Missing or invalid tag name")))},k={access:["parseAccess"],alias:["parseNamePath","ensureEnd"],augments:["parseType","parseNamePathOptional","ensureEnd"],constructor:["parseType","parseNamePathOptional","ensureEnd"],class:["parseType","parseNamePathOptional","ensureEnd"],extends:["parseType","parseNamePathOptional","ensureEnd"],example:["parseCaption"],deprecated:["parseDescription"],global:["ensureEnd"],inner:["ensureEnd"],instance:["ensureEnd"],kind:["parseKind"],mixes:["parseNamePath","ensureEnd"],mixin:["parseNamePathOptional","ensureEnd"],member:["parseType","parseNamePathOptional","ensureEnd"],method:["parseNamePathOptional","ensureEnd"],module:["parseType","parseNamePathOptional","ensureEnd"],func:["parseNamePathOptional","ensureEnd"],function:["parseNamePathOptional","ensureEnd"],var:["parseType","parseNamePathOptional","ensureEnd"],name:["parseNamePath","ensureEnd"],namespace:["parseType","parseNamePathOptional","ensureEnd"],private:["parseType","parseDescription"],protected:["parseType","parseDescription"],public:["parseType","parseDescription"],readonly:["ensureEnd"],requires:["parseNamePath","ensureEnd"],since:["parseDescription"],static:["ensureEnd"],summary:["parseDescription"],this:["parseThis","ensureEnd"],todo:["parseDescription"],typedef:["parseType","parseNamePathOptional"],variation:["parseVariation"],version:["parseDescription"]},N.prototype.parse=function(){var A,h,v,P;if(!this._title&&!this.addError("Missing or invalid title"))return null;for(this._last=iu(this._title),this._options.range&&(this._tag.range=[this._first,g.slice(0,this._last).replace(/\s*$/,"").length].map(w)),s(k,this._title)?v=k[this._title]:v=["parseType","parseName","parseDescription","epilogue"],A=0,h=v.length;A{switch(u.type){case"function":return{name:"function"};case"object":let e={};return u.signature.properties.forEach(r=>{e[r.key]=vu(r.value)}),{name:"object",value:e};default:throw new Error(`Unknown: ${u}`)}},vu=u=>{let{name:e,raw:r}=u,t={};switch(typeof r<"u"&&(t.raw=r),u.name){case"string":case"number":case"symbol":case"boolean":return{...t,name:e};case"Array":return{...t,name:"array",value:u.elements.map(vu)};case"signature":return{...t,...lA(u)};case"union":case"intersection":return{...t,name:e,value:u.elements.map(vu)};default:return{...t,name:"other",value:e}}},cA=u=>u.name==="literal",EA=u=>u.value.replace(/['|"]/g,""),pA=u=>{switch(u.type){case"function":return{name:"function"};case"object":let e={};return u.signature.properties.forEach(r=>{e[r.key]=Fu(r.value)}),{name:"object",value:e};default:throw new Error(`Unknown: ${u}`)}},Fu=u=>{let{name:e,raw:r}=u,t={};switch(typeof r<"u"&&(t.raw=r),u.name){case"literal":return{...t,name:"other",value:u.value};case"string":case"number":case"symbol":case"boolean":return{...t,name:e};case"Array":return{...t,name:"array",value:u.elements.map(Fu)};case"signature":return{...t,...pA(u)};case"union":return u.elements.every(cA)?{...t,name:"enum",value:u.elements.map(EA)}:{...t,name:e,value:u.elements.map(Fu)};case"intersection":return{...t,name:e,value:u.elements.map(Fu)};default:return{...t,name:"other",value:e}}},Ze=/^['"]|['"]$/g,fA=u=>u.replace(Ze,""),BA=u=>Ze.test(u),hA=/^\(.*\) => /,Au=u=>{let{name:e,raw:r,computed:t,value:a}=u,s={};switch(typeof r<"u"&&(s.raw=r),e){case"enum":{let l=t?a:a.map(p=>{let E=fA(p.value);return BA(p.value)||Number.isNaN(Number(E))?E:Number(E)});return{...s,name:e,value:l}}case"string":case"number":case"symbol":return{...s,name:e};case"func":return{...s,name:"function"};case"bool":case"boolean":return{...s,name:"boolean"};case"arrayOf":case"array":return{...s,name:"array",value:a&&Au(a)};case"object":return{...s,name:e};case"objectOf":return{...s,name:e,value:Au(a)};case"shape":case"exact":let n=q1(a,l=>Au(l));return{...s,name:"object",value:n};case"union":return{...s,name:"union",value:a.map(l=>Au(l))};case"instanceOf":case"element":case"elementType":default:{if((e==null?void 0:e.indexOf("|"))>0)try{let E=e.split("|").map(T=>JSON.parse(T));return{...s,name:"enum",value:E}}catch{}let l=a?`${e}(${a})`:e,p=hA.test(e)?"function":"other";return{...s,name:p,value:l}}}},Vu=u=>{let{type:e,tsType:r,flowType:t}=u;return e!=null?Au(e):r!=null?vu(r):t!=null?Fu(t):null},yA=(u=>(u.JAVASCRIPT="JavaScript",u.FLOW="Flow",u.TYPESCRIPT="TypeScript",u.UNKNOWN="Unknown",u))(yA||{}),dA=["null","undefined"];function Ju(u){return dA.some(e=>e===u)}var vA=u=>{if(!u)return"";if(typeof u=="string")return u;throw new Error(`Description: expected string, got: ${JSON.stringify(u)}`)};function ur(u){return!!u.__docgenInfo}function gA(u){return u!=null&&Object.keys(u).length>0}function mA(u,e){return ur(u)?u.__docgenInfo[e]:null}function _A(u){return ur(u)&&vA(u.__docgenInfo.description)}function xA(u){return u!=null&&u.includes("@")}function TA(u,e){let r;try{r=FA.parse(u,{tags:e,sloppy:!0})}catch(t){throw console.error(t),new Error("Cannot parse JSDoc tags.")}return r}var bA={tags:["param","arg","argument","returns","ignore","deprecated"]},SA=(u,e=bA)=>{if(!xA(u))return{includesJsDoc:!1,ignore:!1};let r=TA(u,e.tags),t=$A(r);return t.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description,extractedTags:t}};function $A(u){let e={params:null,deprecated:null,returns:null,ignore:!1};for(let r=0;re.includes("null")?e.replace("-null","").replace(".null",""):u.name,getTypeName:()=>u.type!=null?Z(u.type):null}:null}function OA(u){return u.title!=null?u.description:null}function NA(u){return u.type!=null?{type:u.type,description:u.description,getTypeName:()=>Z(u.type)}:null}function Z(u){return u.type==="NameExpression"?u.name:u.type==="RecordType"?`({${u.fields.map(e=>{if(e.value!=null){let r=Z(e.value);return`${e.key}: ${r}`}return e.key}).join(", ")}})`:u.type==="UnionType"?`(${u.elements.map(Z).join("|")})`:u.type==="ArrayType"?"[]":u.type==="TypeApplication"&&u.expression!=null&&u.expression.name==="Array"?`${Z(u.applications[0])}[]`:u.type==="NullableType"||u.type==="NonNullableType"||u.type==="OptionalType"?Z(u.expression):u.type==="AllLiteral"?"any":null}function er(u){return u.length>90}function PA(u){return u.length>50}function O(u,e){return u===e?{summary:u}:{summary:u,detail:e}}function rr({name:u,value:e,elements:r,raw:t}){return e??(r!=null?r.map(rr).join(" | "):t??u)}function IA({name:u,raw:e,elements:r}){return r!=null?O(r.map(rr).join(" | ")):e!=null?O(e.replace(/^\|\s*/,"")):O(u)}function RA({type:u,raw:e}){return e!=null?O(e):O(u)}function LA({type:u,raw:e}){return e!=null?er(e)?O(u,e):O(e):O(u)}function MA(u){let{type:e}=u;return e==="object"?LA(u):RA(u)}function kA({name:u,raw:e}){return e!=null?er(e)?O(u,e):O(e):O(u)}function UA(u){if(u==null)return null;switch(u.name){case"union":return IA(u);case"signature":return MA(u);default:return kA(u)}}function jA(u,e){if(u!=null){let{value:r}=u;if(!Ju(r))return PA(r)?O(e.name,r):O(r)}return null}var GA=(u,e)=>{let{flowType:r,description:t,required:a,defaultValue:s}=e;return{name:u,type:UA(r),required:a,description:t,defaultValue:jA(s,r)}};function KA({tsType:u,required:e}){return u==null?null:O(e?u.name:u.name.replace(" | undefined",""))}function HA({defaultValue:u}){if(u!=null){let{value:e}=u;if(!Ju(e))return O(e)}return null}var qA=(u,e)=>{let{description:r,required:t}=e;return{name:u,type:KA(e),required:t,description:r,defaultValue:HA(e)}};function WA(u){return u!=null?O(u.name):null}function zA(u){let{computed:e,func:r}=u;return typeof e>"u"&&typeof r>"u"}function VA(u){return u?u.name==="string"?!0:u.name==="enum"?Array.isArray(u.value)&&u.value.every(({value:e})=>typeof e=="string"&&e[0]==='"'&&e[e.length-1]==='"'):!1:!1}function JA(u,e){if(u!=null){let{value:r}=u;if(!Ju(r))return zA(u)&&VA(e)?O(JSON.stringify(r)):O(r)}return null}function tr(u,e,r){let{description:t,required:a,defaultValue:s}=r;return{name:u,type:WA(e),required:a,description:t,defaultValue:JA(s,e)}}function Su(u,e){var r;if(e.includesJsDoc){let{description:t,extractedTags:a}=e;t!=null&&(u.description=e.description);let s={...a,params:(r=a==null?void 0:a.params)==null?void 0:r.map(n=>({name:n.getPrettyName(),description:n.description}))};Object.values(s).filter(Boolean).length>0&&(u.jsDocTags=s)}return u}var QA=(u,e,r)=>{let t=tr(u,e.type,e);return t.sbType=Vu(e),Su(t,r)},YA=(u,e,r)=>{let t=qA(u,e);return t.sbType=Vu(e),Su(t,r)},XA=(u,e,r)=>{let t=GA(u,e);return t.sbType=Vu(e),Su(t,r)},ZA=(u,e,r)=>{let t=tr(u,{name:"unknown"},e);return Su(t,r)},ar=u=>{switch(u){case"JavaScript":return QA;case"TypeScript":return YA;case"Flow":return XA;default:return ZA}},nr=u=>u.type!=null?"JavaScript":u.flowType!=null?"Flow":u.tsType!=null?"TypeScript":"Unknown",uo=u=>{let e=nr(u[0]),r=ar(e);return u.map(t=>{var s;let a=t;return(s=t.type)!=null&&s.elements&&(a={...t,type:{...t.type,value:t.type.elements}}),ir(a.name,a,e,r)})},eo=u=>{let e=Object.keys(u),r=nr(u[e[0]]),t=ar(r);return e.map(a=>{let s=u[a];return s!=null?ir(a,s,r,t):null}).filter(Boolean)},no=(u,e)=>{let r=mA(u,e);return gA(r)?Array.isArray(r)?uo(r):eo(r):[]};function ir(u,e,r,t){let a=SA(e.description);return a.includesJsDoc&&a.ignore?null:{propDef:t(u,e,a),jsDocTags:a.extractedTags,docgenInfo:e,typeSystem:r}}function io(u){return u!=null&&_A(u)}var so=u=>{let{component:e,argTypes:r,parameters:{docs:t={}}}=u,{extractArgTypes:a}=t,s=a&&e?a(e):{};return s?CA(s,r):r},ro="storybook/docs",Do=`${ro}/snippet-rendered`,to=(u=>(u.AUTO="auto",u.CODE="code",u.DYNAMIC="dynamic",u))(to||{});export{Da as A,Ca as B,Hu as C,da as D,_u as E,hs as F,lu as G,ni as H,ai as I,Oe as J,Re as K,qi as L,W as M,vA as N,to as S,H as _,io as a,no as b,Vu as c,Do as d,so as e,qu as f,$1 as g,ur as h,Uu as i,Te as j,We as k,Le as l,bu as m,ze as n,gi as o,Wa as p,Dn as q,di as r,en as s,Bi as t,Ri as u,Ya as v,Dr as w,_1 as x,Ds as y,_a as z}; //# sourceMappingURL=index-f073aaf1.js.map