@teambit/ui 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- /*! For license information please see 591.8b16b0e1.js.LICENSE.txt */
2
- (self.webpackChunk_teambit_legacy=self.webpackChunk_teambit_legacy||[]).push([[591],{7430:function(e,t,n){!function(e,t,n,r){"use strict";const i=0,o=1,s=2,a=3,l=4,c=-1;let u;e.addSegment=void 0,e.addMapping=void 0,e.maybeAddSegment=void 0,e.maybeAddMapping=void 0,e.setSourceContent=void 0,e.toDecodedMap=void 0,e.toEncodedMap=void 0,e.fromMap=void 0,e.allMappings=void 0;class d{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n}}function p(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function f(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][i]);n=r--);return n}function h(e,t,n){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=n}function m(e){const{length:t}=e;let n=t;for(let r=n-1;r>=0&&!(e[r].length>0);n=r,r--);n<t&&(e.length=n)}function g(e,n){for(let r=0;r<n.length;r++)t.put(e,n[r])}function _(e,t){return 0===t||1===e[t-1].length}function b(e,t,n,r,i,u){if(0===t)return!1;const d=e[t-1];return 1!==d.length&&n===d[o]&&r===d[s]&&i===d[a]&&u===(5===d.length?d[l]:c)}function v(e,t,n){const{generated:r,source:i,original:o,name:s,content:a}=n;if(!i)return u(e,t,r.line-1,r.column,null,null,null,null,null);const l=i;return u(e,t,r.line-1,r.column,l,o.line-1,o.column,s,a)}e.addSegment=(e,t,n,r,i,o,s,a)=>u(!1,e,t,n,r,i,o,s,a),e.maybeAddSegment=(e,t,n,r,i,o,s,a)=>u(!0,e,t,n,r,i,o,s,a),e.addMapping=(e,t)=>v(!1,e,t),e.maybeAddMapping=(e,t)=>v(!0,e,t),e.setSourceContent=(e,n,r)=>{const{_sources:i,_sourcesContent:o}=e;o[t.put(i,n)]=r},e.toDecodedMap=e=>{const{file:t,sourceRoot:n,_mappings:r,_sources:i,_sourcesContent:o,_names:s}=e;return m(r),{version:3,file:t||void 0,names:s.array,sourceRoot:n||void 0,sources:i.array,sourcesContent:o,mappings:r}},e.toEncodedMap=t=>{const r=e.toDecodedMap(t);return Object.assign(Object.assign({},r),{mappings:n.encode(r.mappings)})},e.allMappings=e=>{const t=[],{_mappings:n,_sources:r,_names:c}=e;for(let u=0;u<n.length;u++){const e=n[u];for(let n=0;n<e.length;n++){const d=e[n],p={line:u+1,column:d[i]};let f,h,m;1!==d.length&&(f=r.array[d[o]],h={line:d[s]+1,column:d[a]},5===d.length&&(m=c.array[d[l]])),t.push({generated:p,source:f,original:h,name:m})}}return t},e.fromMap=e=>{const t=new r.TraceMap(e),n=new d({file:t.file,sourceRoot:t.sourceRoot});return g(n._names,t.names),g(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),n._mappings=r.decodedMappings(t),n},u=(e,n,r,i,o,s,a,l,u)=>{const{_mappings:d,_sources:m,_sourcesContent:g,_names:v}=n,y=p(d,r),S=f(y,i);if(!o){if(e&&_(y,S))return;return h(y,S,[i])}const E=t.put(m,o),w=l?t.put(v,l):c;if(E===g.length&&(g[E]=null!==u&&void 0!==u?u:null),!e||!b(y,S,E,s,a,w))return h(y,S,l?[i,E,s,a,w]:[i,E,s,a])},e.GenMapping=d,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(25522),n(82958),n(79041))},82958:function(e,t){!function(e){"use strict";const t=",".charCodeAt(0),n=";".charCodeAt(0),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),o=new Uint8Array(128);for(let m=0;m<r.length;m++){const e=r.charCodeAt(m);i[m]=e,o[e]=m}const s="undefined"!==typeof TextDecoder?new TextDecoder:"undefined"!==typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};function a(e){const t=new Int32Array(5),n=[];let r=0;do{const i=l(e,r),o=[];let s=!0,a=0;t[0]=0;for(let n=r;n<i;n++){let r;n=c(e,n,t,0);const l=t[0];l<a&&(s=!1),a=l,u(e,n,i)?(n=c(e,n,t,1),n=c(e,n,t,2),n=c(e,n,t,3),u(e,n,i)?(n=c(e,n,t,4),r=[l,t[1],t[2],t[3],t[4]]):r=[l,t[1],t[2],t[3]]):r=[l],o.push(r)}s||d(o),n.push(o),r=i+1}while(r<=e.length);return n}function l(e,t){const n=e.indexOf(";",t);return-1===n?e.length:n}function c(e,t,n,r){let i=0,s=0,a=0;do{const n=e.charCodeAt(t++);a=o[n],i|=(31&a)<<s,s+=5}while(32&a);const l=1&i;return i>>>=1,l&&(i=-2147483648|-i),n[r]+=i,t}function u(e,n,r){return!(n>=r)&&e.charCodeAt(n)!==t}function d(e){e.sort(p)}function p(e,t){return e[0]-t[0]}function f(e){const r=new Int32Array(5),i=16384,o=i-36,a=new Uint8Array(i),l=a.subarray(0,o);let c=0,u="";for(let d=0;d<e.length;d++){const p=e[d];if(d>0&&(c===i&&(u+=s.decode(a),c=0),a[c++]=n),0!==p.length){r[0]=0;for(let e=0;e<p.length;e++){const n=p[e];c>o&&(u+=s.decode(l),a.copyWithin(0,o,c),c-=o),e>0&&(a[c++]=t),c=h(a,c,r,n,0),1!==n.length&&(c=h(a,c,r,n,1),c=h(a,c,r,n,2),c=h(a,c,r,n,3),4!==n.length&&(c=h(a,c,r,n,4)))}}}return u+s.decode(a.subarray(0,c))}function h(e,t,n,r,o){const s=r[o];let a=s-n[o];n[o]=s,a=a<0?-a<<1|1:a<<1;do{let n=31&a;a>>>=5,a>0&&(n|=32),e[t++]=i[n]}while(a>0);return t}e.decode=a,e.encode=f,Object.defineProperty(e,"__esModule",{value:!0})}(t)},27524:function(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var r;function i(t){return e.test(t)}function o(e){return e.startsWith("//")}function s(e){return e.startsWith("/")}function a(e){return e.startsWith("file:")}function l(e){return/^[.?#]/.test(e)}function c(e){const n=t.exec(e);return d(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function u(e){const t=n.exec(e),r=t[2];return d("file:","",t[1]||"","",s(r)?r:"/"+r,t[3]||"",t[4]||"")}function d(e,t,n,i,o,s,a){return{scheme:e,user:t,host:n,port:i,path:o,query:s,hash:a,type:r.Absolute}}function p(e){if(o(e)){const t=c("http:"+e);return t.scheme="",t.type=r.SchemeRelative,t}if(s(e)){const t=c("http://foo.com"+e);return t.scheme="",t.host="",t.type=r.AbsolutePath,t}if(a(e))return u(e);if(i(e))return c(e);const t=c("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?r.Query:e.startsWith("#")?r.Hash:r.RelativePath:r.Empty,t}function f(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function h(e,t){m(t,t.type),"/"===e.path?e.path=t.path:e.path=f(t.path)+e.path}function m(e,t){const n=t<=r.RelativePath,i=e.path.split("/");let o=1,s=0,a=!1;for(let r=1;r<i.length;r++){const e=i[r];e?(a=!1,"."!==e&&(".."!==e?(i[o++]=e,s++):s?(a=!0,s--,o--):n&&(i[o++]=e))):a=!0}let l="";for(let r=1;r<o;r++)l+="/"+i[r];(!l||a&&!l.endsWith("/.."))&&(l+="/"),e.path=l}function g(e,t){if(!e&&!t)return"";const n=p(e);let i=n.type;if(t&&i!==r.Absolute){const e=p(t),o=e.type;switch(i){case r.Empty:n.hash=e.hash;case r.Hash:n.query=e.query;case r.Query:case r.RelativePath:h(n,e);case r.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case r.SchemeRelative:n.scheme=e.scheme}o>i&&(i=o)}m(n,i);const o=n.query+n.hash;switch(i){case r.Hash:case r.Query:return o;case r.RelativePath:{const r=n.path.slice(1);return r?l(t||e)&&!l(r)?"./"+r+o:r+o:o||"."}case r.AbsolutePath:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}return function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"}(r||(r={})),g}()},25522:function(e,t){!function(e){"use strict";e.get=void 0,e.put=void 0,e.pop=void 0;class t{constructor(){this._indexes={__proto__:null},this.array=[]}}e.get=(e,t)=>e._indexes[t],e.put=(t,n)=>{const r=e.get(t,n);if(void 0!==r)return r;const{array:i,_indexes:o}=t;return o[n]=i.push(n)-1},e.pop=e=>{const{array:t,_indexes:n}=e;0!==t.length&&(n[t.pop()]=void 0)},e.SetArray=t,Object.defineProperty(e,"__esModule",{value:!0})}(t)},24151:function(e,t){!function(e){"use strict";const t=",".charCodeAt(0),n=";".charCodeAt(0),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),o=new Uint8Array(128);for(let m=0;m<r.length;m++){const e=r.charCodeAt(m);i[m]=e,o[e]=m}const s="undefined"!==typeof TextDecoder?new TextDecoder:"undefined"!==typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};function a(e){const t=new Int32Array(5),n=[];let r=0;do{const i=l(e,r),o=[];let s=!0,a=0;t[0]=0;for(let n=r;n<i;n++){let r;n=c(e,n,t,0);const l=t[0];l<a&&(s=!1),a=l,u(e,n,i)?(n=c(e,n,t,1),n=c(e,n,t,2),n=c(e,n,t,3),u(e,n,i)?(n=c(e,n,t,4),r=[l,t[1],t[2],t[3],t[4]]):r=[l,t[1],t[2],t[3]]):r=[l],o.push(r)}s||d(o),n.push(o),r=i+1}while(r<=e.length);return n}function l(e,t){const n=e.indexOf(";",t);return-1===n?e.length:n}function c(e,t,n,r){let i=0,s=0,a=0;do{const n=e.charCodeAt(t++);a=o[n],i|=(31&a)<<s,s+=5}while(32&a);const l=1&i;return i>>>=1,l&&(i=-2147483648|-i),n[r]+=i,t}function u(e,n,r){return!(n>=r)&&e.charCodeAt(n)!==t}function d(e){e.sort(p)}function p(e,t){return e[0]-t[0]}function f(e){const r=new Int32Array(5),i=16384,o=i-36,a=new Uint8Array(i),l=a.subarray(0,o);let c=0,u="";for(let d=0;d<e.length;d++){const p=e[d];if(d>0&&(c===i&&(u+=s.decode(a),c=0),a[c++]=n),0!==p.length){r[0]=0;for(let e=0;e<p.length;e++){const n=p[e];c>o&&(u+=s.decode(l),a.copyWithin(0,o,c),c-=o),e>0&&(a[c++]=t),c=h(a,c,r,n,0),1!==n.length&&(c=h(a,c,r,n,1),c=h(a,c,r,n,2),c=h(a,c,r,n,3),4!==n.length&&(c=h(a,c,r,n,4)))}}}return u+s.decode(a.subarray(0,c))}function h(e,t,n,r,o){const s=r[o];let a=s-n[o];n[o]=s,a=a<0?-a<<1|1:a<<1;do{let n=31&a;a>>>=5,a>0&&(n|=32),e[t++]=i[n]}while(a>0);return t}e.decode=a,e.encode=f,Object.defineProperty(e,"__esModule",{value:!0})}(t)},79041:function(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var i=r(n);function o(e,t){return t&&!t.endsWith("/")&&(t+="/"),i.default(e,t)}function s(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const a=0,l=1,c=2,u=3,d=4,p=1,f=2;function h(e,t){const n=m(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=m(e,r+1))e[r]=_(e[r],t);return e}function m(e,t){for(let n=t;n<e.length;n++)if(!g(e[n]))return n;return e.length}function g(e){for(let t=1;t<e.length;t++)if(e[t][a]<e[t-1][a])return!1;return!0}function _(e,t){return t||(e=e.slice()),e.sort(b)}function b(e,t){return e[a]-t[a]}let v=!1;function y(e,t,n,r){for(;n<=r;){const i=n+(r-n>>1),o=e[i][a]-t;if(0===o)return v=!0,i;o<0?n=i+1:r=i-1}return v=!1,n-1}function S(e,t,n){for(let r=n+1;r<e.length&&e[r][a]===t;n=r++);return n}function E(e,t,n){for(let r=n-1;r>=0&&e[r][a]===t;n=r--);return n}function w(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function C(e,t,n,r){const{lastKey:i,lastNeedle:o,lastIndex:s}=n;let l=0,c=e.length-1;if(r===i){if(t===o)return v=-1!==s&&e[s][a]===t,s;t>=o?l=-1===s?0:s:c=s}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=y(e,t,l,c)}function O(e,t){const n=t.map(N);for(let r=0;r<e.length;r++){const i=e[r];for(let e=0;e<i.length;e++){const o=i[e];if(1===o.length)continue;const s=o[l],d=o[c],p=o[u],f=n[s],h=f[d]||(f[d]=[]),m=t[s],g=S(h,p,C(h,p,m,d));T(h,m.lastIndex=g+1,[p,r,o[a]])}}return n}function T(e,t,n){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=n}function N(){return{__proto__:null}}const I=function(t,n){const r="string"===typeof t?JSON.parse(t):t;if(!("sections"in r))return new j(r,n);const i=[],o=[],s=[],a=[];x(r,n,i,o,s,a,0,0,1/0,1/0);const l={version:3,file:r.file,names:a,sources:o,sourcesContent:s,mappings:i};return e.presortedDecodedMap(l)};function x(e,t,n,r,i,o,s,a,l,c){const{sections:u}=e;for(let d=0;d<u.length;d++){const{map:e,offset:p}=u[d];let f=l,h=c;if(d+1<u.length){const e=u[d+1].offset;f=Math.min(l,s+e.line),f===l?h=Math.min(c,a+e.column):f<l&&(h=a+e.column)}k(e,t,n,r,i,o,s+p.line,a+p.column,f,h)}}function k(t,n,r,i,o,s,p,f,h,m){if("sections"in t)return x(...arguments);const g=new j(t,n),_=i.length,b=s.length,v=e.decodedMappings(g),{resolvedSources:y,sourcesContent:S}=g;if(R(i,y),R(s,g.names),S)R(o,S);else for(let e=0;e<y.length;e++)o.push(null);for(let e=0;e<v.length;e++){const t=p+e;if(t>h)return;const n=P(r,t),i=0===e?f:0,o=v[e];for(let e=0;e<o.length;e++){const r=o[e],s=i+r[a];if(t===h&&s>=m)return;if(1===r.length){n.push([s]);continue}const p=_+r[l],f=r[c],g=r[u];n.push(4===r.length?[s,p,f,g]:[s,p,f,g,b+r[d]])}}}function R(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function P(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}const A="`line` must be greater than 0 (lines start at line 1)",L="`column` must be greater than or equal to 0 (columns start at column 0)",D=-1,M=1;e.encodedMappings=void 0,e.decodedMappings=void 0,e.traceSegment=void 0,e.originalPositionFor=void 0,e.generatedPositionFor=void 0,e.allGeneratedPositionsFor=void 0,e.eachMapping=void 0,e.sourceContentFor=void 0,e.presortedDecodedMap=void 0,e.decodedMap=void 0,e.encodedMap=void 0;class j{constructor(e,t){const n="string"===typeof e;if(!n&&e._decodedMemo)return e;const r=n?JSON.parse(e):e,{version:i,file:a,names:l,sourceRoot:c,sources:u,sourcesContent:d}=r;this.version=i,this.file=a,this.names=l,this.sourceRoot=c,this.sources=u,this.sourcesContent=d;const p=o(c||"",s(t));this.resolvedSources=u.map((e=>o(e||"",p)));const{mappings:f}=r;"string"===typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=h(f,n)),this._decodedMemo=w(),this._bySources=void 0,this._bySourceMemos=void 0}}function F(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t}}function B(e,t,n,r){return{source:e,line:t,column:n,name:r}}function U(e,t){return{line:e,column:t}}function V(e,t,n,r,i){let o=C(e,r,t,n);return v?o=(i===D?S:E)(e,r,o):i===D&&o++,-1===o||o===e.length?-1:o}function H(e,t,n,r,i){let o=V(e,t,n,r,M);if(v||i!==D||o++,-1===o||o===e.length)return[];const s=v?r:e[o][a];v||(o=E(e,s,o));const l=S(e,s,o),c=[];for(;o<=l;o++){const t=e[o];c.push(U(t[p]+1,t[f]))}return c}(()=>{function n(t,n,r,i,o,s){if(--r<0)throw new Error(A);if(i<0)throw new Error(L);const{sources:a,resolvedSources:l}=t;let c=a.indexOf(n);if(-1===c&&(c=l.indexOf(n)),-1===c)return s?[]:U(null,null);const u=(t._bySources||(t._bySources=O(e.decodedMappings(t),t._bySourceMemos=a.map(w))))[c][r];if(null==u)return s?[]:U(null,null);const d=t._bySourceMemos[c];if(s)return H(u,d,r,i,o);const h=V(u,d,r,i,o);if(-1===h)return U(null,null);const m=u[h];return U(m[p]+1,m[f])}e.encodedMappings=e=>{var n;return null!==(n=e._encoded)&&void 0!==n?n:e._encoded=t.encode(e._decoded)},e.decodedMappings=e=>e._decoded||(e._decoded=t.decode(e._encoded)),e.traceSegment=(t,n,r)=>{const i=e.decodedMappings(t);if(n>=i.length)return null;const o=i[n],s=V(o,t._decodedMemo,n,r,M);return-1===s?null:o[s]},e.originalPositionFor=(t,{line:n,column:r,bias:i})=>{if(--n<0)throw new Error(A);if(r<0)throw new Error(L);const o=e.decodedMappings(t);if(n>=o.length)return B(null,null,null,null);const s=o[n],a=V(s,t._decodedMemo,n,r,i||M);if(-1===a)return B(null,null,null,null);const p=s[a];if(1===p.length)return B(null,null,null,null);const{names:f,resolvedSources:h}=t;return B(h[p[l]],p[c]+1,p[u],5===p.length?f[p[d]]:null)},e.allGeneratedPositionsFor=(e,{source:t,line:r,column:i,bias:o})=>n(e,t,r,i,o||D,!0),e.generatedPositionFor=(e,{source:t,line:r,column:i,bias:o})=>n(e,t,r,i,o||M,!1),e.eachMapping=(t,n)=>{const r=e.decodedMappings(t),{names:i,resolvedSources:o}=t;for(let e=0;e<r.length;e++){const t=r[e];for(let r=0;r<t.length;r++){const s=t[r],a=e+1,l=s[0];let c=null,u=null,d=null,p=null;1!==s.length&&(c=o[s[1]],u=s[2]+1,d=s[3]),5===s.length&&(p=i[s[4]]),n({generatedLine:a,generatedColumn:l,source:c,originalLine:u,originalColumn:d,name:p})}}},e.sourceContentFor=(e,t)=>{const{sources:n,resolvedSources:r,sourcesContent:i}=e;if(null==i)return null;let o=n.indexOf(t);return-1===o&&(o=r.indexOf(t)),-1===o?null:i[o]},e.presortedDecodedMap=(e,t)=>{const n=new j(F(e,[]),t);return n._decoded=e.mappings,n},e.decodedMap=t=>F(t,e.decodedMappings(t)),e.encodedMap=t=>F(t,e.encodedMappings(t))})(),e.AnyMap=I,e.GREATEST_LOWER_BOUND=M,e.LEAST_UPPER_BOUND=D,e.TraceMap=j,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(24151),n(27524))},18618:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDXContext:()=>c,MDXProvider:()=>p,mdx:()=>g,useMDXComponents:()=>d,withMDXComponents:()=>u});var r=n(72243);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c=r.createContext({}),u=function(e){return function(t){var n=d(t.components);return r.createElement(e,o({},t,{components:n}))}},d=function(e){var t=r.useContext(c),n=t;return e&&(n="function"===typeof e?e(t):a(a({},t),e)),n},p=function(e){var t=d(e.components);return r.createElement(c.Provider,{value:t},e.children)},f="mdxType",h={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,o=e.originalType,s=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),u=d(n),p=i,f=u["".concat(s,".").concat(p)]||u[p]||h[p]||o;return n?r.createElement(f,a(a({ref:t},c),{},{components:n})):r.createElement(f,a({ref:t},c))}));function g(e,t){var n=arguments,i=t&&t.mdxType;if("string"===typeof e||i){var o=n.length,s=new Array(o);s[0]=m;var a={};for(var l in t)hasOwnProperty.call(t,l)&&(a[l]=t[l]);a.originalType=e,a[f]="string"===typeof e?e:i,s[1]=a;for(var c=2;c<o;c++)s[c]=n[c];return r.createElement.apply(null,s)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},96080:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}function p(e){return{}.toString.call(e).includes("Object")}function f(e){return"function"===typeof e}n.r(t),n.d(t,{DiffEditor:()=>se,default:()=>pe,loader:()=>H,useMonaco:()=>ae});var h=d((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),m={changes:function(e,t){return p(t)||h("changeType"),Object.keys(t).some((function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r}))&&h("changeField"),t},selector:function(e){f(e)||h("selectorType")},handler:function(e){f(e)||p(e)||h("handlerType"),p(e)&&Object.values(e).some((function(e){return!f(e)}))&&h("handlersType")},initial:function(e){var t;e||h("initialIsRequired"),p(e)||h("initialType"),t=e,Object.keys(t).length||h("initialContent")}};function g(e,t){return f(t)?t(e.current):t}function _(e,t){return e.current=u(u({},e.current),t),t}function b(e,t,n){return f(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}const v={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m.initial(e),m.handler(t);var n={current:e},r=d(b)(n,t),i=d(_)(n),o=d(m.changes)(e),s=d(g)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return m.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(r,i,o,s)(e)}]}};const y={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};const S=function(e){return{}.toString.call(e).includes("Object")};var E={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},w=function(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}((function(e,t){throw new Error(e[t]||e.default)}))(E),C={config:function(e){return e||w("configIsRequired"),S(e)||w("configType"),e.urls?(console.warn(E.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};const O=C;const T=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}};const N=function e(t,n){return Object.keys(n).forEach((function(r){n[r]instanceof Object&&t[r]&&Object.assign(n[r],e(t[r],n[r]))})),o(o({},t),n)};var I={type:"cancelation",msg:"operation is manually canceled"};const x=function(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(I):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n};var k,R,P=v.create({config:y,isInitialized:!1,resolve:null,reject:null,monaco:null}),A=(R=2,function(e){if(Array.isArray(e))return e}(k=P)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(k,R)||function(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(k,R)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),L=A[0],D=A[1];function M(e){return document.body.appendChild(e)}function j(e){var t=L((function(e){return{config:e.config,reject:e.reject}})),n=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function F(){var e=L((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){B(t),e.resolve(t)}),(function(t){e.reject(t)}))}function B(e){L().monaco||D({monaco:e})}var U=new Promise((function(e,t){return D({resolve:e,reject:t})})),V={config:function(e){var t=O.config(e),n=t.monaco,r=s(t,["monaco"]);D((function(e){return{config:N(e.config,r),monaco:n}}))},init:function(){var e=L((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(D({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),x(U);if(window.monaco&&window.monaco.editor)return B(window.monaco),e.resolve(window.monaco),x(U);T(M,j)(F)}return x(U)},__getMonacoInstance:function(){return L((function(e){return e.monaco}))}};const H=V;var z=n(72243),$=n(56369),W=n.n($);function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}const q={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};const Y=function({content:e}){return z.createElement("div",{style:q},e)},K={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function Q({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:o,wrapperProps:s}){return z.createElement("section",G({style:{...K.wrapper,width:e,height:t}},s),!n&&z.createElement(Y,{content:r}),z.createElement("div",{ref:i,style:{...K.fullWidth,...!n&&K.hide},className:o}))}Q.propTypes={width:W().oneOfType([W().number,W().string]).isRequired,height:W().oneOfType([W().number,W().string]).isRequired,loading:W().oneOfType([W().element,W().string]).isRequired,isEditorReady:W().bool.isRequired,className:W().string,wrapperProps:W().object};const X=Q;const Z=(0,z.memo)(X);const J=function(e){(0,z.useEffect)(e,[])};const ee=function(e,t,n=!0){const r=(0,z.useRef)(!0);(0,z.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)};function te(){}function ne(e,t,n,r){return function(e,t){return e.editor.getModel(re(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r&&re(e,r))}(e,t,n,r)}function re(e,t){return e.Uri.parse(t)}function ie({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:a,keepCurrentModifiedModel:l,theme:c,loading:u,options:d,height:p,width:f,className:h,wrapperProps:m,beforeMount:g,onMount:_}){const[b,v]=(0,z.useState)(!1),[y,S]=(0,z.useState)(!0),E=(0,z.useRef)(null),w=(0,z.useRef)(null),C=(0,z.useRef)(null),O=(0,z.useRef)(_),T=(0,z.useRef)(g);J((()=>{const e=H.init();return e.then((e=>(w.current=e)&&S(!1))).catch((e=>"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>E.current?function(){const e=E.current.getModel();var t,n;a||null===(t=e.original)||void 0===t||t.dispose();l||null===(n=e.modified)||void 0===n||n.dispose();E.current.dispose()}():e.cancel()})),ee((()=>{const e=E.current.getModifiedEditor();e.getOption(w.current.editor.EditorOption.readOnly)?e.setValue(t):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t,forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],b),ee((()=>{E.current.getModel().original.setValue(e)}),[e],b),ee((()=>{const{original:e,modified:t}=E.current.getModel();w.current.editor.setModelLanguage(e,r||n),w.current.editor.setModelLanguage(t,i||n)}),[n,r,i],b),ee((()=>{w.current.editor.setTheme(c)}),[c],b),ee((()=>{E.current.updateOptions(d)}),[d],b);const N=(0,z.useCallback)((()=>{T.current(w.current);const a=ne(w.current,e,r||n,o),l=ne(w.current,t,i||n,s);E.current.setModel({original:a,modified:l})}),[n,t,i,e,r,o,s]),I=(0,z.useCallback)((()=>{E.current=w.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...d}),N(),w.current.editor.setTheme(c),v(!0)}),[d,c,N]);return(0,z.useEffect)((()=>{b&&O.current(E.current,w.current)}),[b]),(0,z.useEffect)((()=>{!y&&!b&&I()}),[y,b,I]),z.createElement(Z,{width:f,height:p,isEditorReady:b,loading:u,_ref:C,className:h,wrapperProps:m})}ie.propTypes={original:W().string,modified:W().string,language:W().string,originalLanguage:W().string,modifiedLanguage:W().string,originalModelPath:W().string,modifiedModelPath:W().string,keepCurrentOriginalModel:W().bool,keepCurrentModifiedModel:W().bool,theme:W().string,loading:W().oneOfType([W().element,W().string]),options:W().object,width:W().oneOfType([W().number,W().string]),height:W().oneOfType([W().number,W().string]),className:W().string,wrapperProps:W().object,beforeMount:W().func,onMount:W().func},ie.defaultProps={theme:"light",loading:"Loading...",options:{},keepCurrentOriginalModel:!1,keepCurrentModifiedModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:te,onMount:te};const oe=ie;const se=(0,z.memo)(oe);const ae=function(){const[e,t]=(0,z.useState)(H.__getMonacoInstance());return J((()=>{let n;return e||(n=H.init(),n.then((e=>{t(e)}))),()=>{var e;return null===(e=n)||void 0===e?void 0:e.cancel()}})),e};const le=function(e){const t=(0,z.useRef)();return(0,z.useEffect)((()=>{t.current=e}),[e]),t.current},ce=new Map;function ue({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:s,line:a,loading:l,options:c,overrideServices:u,saveViewState:d,keepCurrentModel:p,width:f,height:h,className:m,wrapperProps:g,beforeMount:_,onMount:b,onChange:v,onValidate:y}){const[S,E]=(0,z.useState)(!1),[w,C]=(0,z.useState)(!0),O=(0,z.useRef)(null),T=(0,z.useRef)(null),N=(0,z.useRef)(null),I=(0,z.useRef)(b),x=(0,z.useRef)(_),k=(0,z.useRef)(null),R=(0,z.useRef)(r),P=le(o),A=(0,z.useRef)(!1);J((()=>{const e=H.init();return e.then((e=>(O.current=e)&&C(!1))).catch((e=>"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>T.current?function(){var e,t;null===(e=k.current)||void 0===e||e.dispose(),p?d&&ce.set(o,T.current.saveViewState()):null===(t=T.current.getModel())||void 0===t||t.dispose();T.current.dispose()}():e.cancel()})),ee((()=>{const n=ne(O.current,e||r,t||i,o);n!==T.current.getModel()&&(d&&ce.set(P,T.current.saveViewState()),T.current.setModel(n),d&&T.current.restoreViewState(ce.get(o)))}),[o],S),ee((()=>{T.current.updateOptions(c)}),[c],S),ee((()=>{T.current.getOption(O.current.editor.EditorOption.readOnly)?T.current.setValue(r):r!==T.current.getValue()&&(T.current.executeEdits("",[{range:T.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),T.current.pushUndoStop())}),[r],S),ee((()=>{O.current.editor.setModelLanguage(T.current.getModel(),i)}),[i],S),ee((()=>{void 0!==a&&T.current.revealLine(a)}),[a],S),ee((()=>{O.current.editor.setTheme(s)}),[s],S);const L=(0,z.useCallback)((()=>{if(!A.current){x.current(O.current);const a=o||n,l=ne(O.current,r||e,t||i,a);T.current=O.current.editor.create(N.current,{model:l,automaticLayout:!0,...c},u),d&&T.current.restoreViewState(ce.get(a)),O.current.editor.setTheme(s),E(!0),A.current=!0}}),[e,t,n,r,i,o,c,u,d,s]);return(0,z.useEffect)((()=>{S&&I.current(T.current,O.current)}),[S]),(0,z.useEffect)((()=>{!w&&!S&&L()}),[w,S,L]),R.current=r,(0,z.useEffect)((()=>{var e,t;S&&v&&(null===(e=k.current)||void 0===e||e.dispose(),k.current=null===(t=T.current)||void 0===t?void 0:t.onDidChangeModelContent((e=>{v(T.current.getValue(),e)})))}),[S,v]),(0,z.useEffect)((()=>{if(S){const e=O.current.editor.onDidChangeMarkers((e=>{var t;const n=null===(t=T.current.getModel())||void 0===t?void 0:t.uri;if(n){if(e.find((e=>e.path===n.path))){const e=O.current.editor.getModelMarkers({resource:n});null===y||void 0===y||y(e)}}}));return()=>{null===e||void 0===e||e.dispose()}}}),[S,y]),z.createElement(Z,{width:f,height:h,isEditorReady:S,loading:l,_ref:N,className:m,wrapperProps:g})}ue.propTypes={defaultValue:W().string,defaultPath:W().string,defaultLanguage:W().string,value:W().string,language:W().string,path:W().string,theme:W().string,line:W().number,loading:W().oneOfType([W().element,W().string]),options:W().object,overrideServices:W().object,saveViewState:W().bool,keepCurrentModel:W().bool,width:W().oneOfType([W().number,W().string]),height:W().oneOfType([W().number,W().string]),className:W().string,wrapperProps:W().object,beforeMount:W().func,onMount:W().func,onChange:W().func,onValidate:W().func},ue.defaultProps={theme:"light",loading:"Loading...",options:{},overrideServices:{},saveViewState:!0,keepCurrentModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:te,onMount:te,onValidate:te};const de=ue;const pe=(0,z.memo)(de)},24115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(72243);const i=e=>{const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),t}},15017:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(72243);const i=function(e,t){const n=r.useRef(t);return r.useEffect((()=>{n.current=e}),[e]),n.current}},69934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(96450))},19076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(35356);t.NodeFS=r.NodeFS,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(75269))},35356:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(14527),o=r(n(591)),s=r(n(75269));t.NodeFS=class{constructor(e){this.workingDir=e,this.promises=new s.default}getPath(e){return i.join(this.workingDir,e)}access(e,t,n){o.default.access(this.getPath(e),t,n)}accessSync(e,t){o.default.accessSync(this.getPath(e),t)}appendFile(e,t,n,r){o.default.appendFile(this.getPath(e),t,n)}appendFileSync(e,t,n){o.default.appendFileSync(this.getPath(e),t,n)}chmod(e,t,n){o.default.chmod(this.getPath(e),t,n)}chmodSync(e,t){o.default.chmodSync(this.getPath(e),t)}chown(e,t,n,r){o.default.chown(this.getPath(e),t,n,r)}chownSync(e,t,n){o.default.chownSync(this.getPath(e),t,n)}close(e,t){o.default.close(e,t)}closeSync(e){o.default.closeSync(e)}copyFile(e,t,n){o.default.copyFile(e,t,n)}copyFileSync(e,t,n){o.default.copyFileSync(e,t,n)}createReadStream(e,t){return o.default.createReadStream(this.getPath(e),t)}createWriteStream(e,t){return o.default.createWriteStream(this.getPath(e),t)}exists(e,t){o.default.exists(this.getPath(e),t)}existsSync(e){return o.default.existsSync(this.getPath(e))}fchmod(e,t,n){o.default.fchmod(e,t,n)}fchmodSync(e,t){o.default.fchmodSync(e,t)}fchown(e,t,n,r){o.default.fchown(e,t,n,r)}fchownSync(e,t,n){o.default.fchownSync(e,t,n)}fdatasync(e,t){o.default.fdatasync(e,t)}fdatasyncSync(e){o.default.fdatasyncSync(e)}fstat(e,t){o.default.fstat(e,t)}fstatSync(e){return o.default.fstatSync(e)}fsync(e,t){o.default.fsync(e,t)}fsyncSync(e){o.default.fsyncSync(e)}ftruncate(e,t,n){o.default.ftruncate(e,t,n)}ftruncateSync(e,t){o.default.ftruncateSync(e,t)}futimes(e,t,n,r){o.default.futimes(e,t,n,r)}futimesSync(e,t,n){o.default.futimesSync(e,t,n)}lchmod(e,t,n){o.default.lchmod(this.getPath(e),t,n)}lchmodSync(e,t){o.default.lchmodSync(this.getPath(e),t)}lchown(e,t,n,r){o.default.lchown(this.getPath(e),t,n,r)}lchownSync(e,t,n){o.default.lchownSync(this.getPath(e),t,n)}link(e,t,n){o.default.link(e,t,n)}linkSync(e,t){o.default.linkSync(e,t)}lstat(e,t){o.default.lstat(this.getPath(e),t)}lstatSync(e){return o.default.lstatSync(e)}mkdir(e,t,n){o.default.mkdir(this.getPath(e),t,n)}mkdirSync(e,t){o.default.mkdirSync(this.getPath(e),t)}mkdtemp(e,t,n){o.default.mkdtemp(e,t,n)}mkdtempSync(e,t){return o.default.mkdtempSync(e,t)}open(e,t,n,r){o.default.open(this.getPath(e),t,n,r)}openSync(e,t,n){return o.default.openSync(this.getPath(e),t,n)}read(e,t,n,r,i,s){o.default.read(e,t,n,r,i,s)}readFile(e,t,n){}readFileSync(e,t){return o.default.readFileSync(this.getPath(e))}readSync(e,t,n,r,i){return o.default.readSync(e,t,n,r,i)}readdir(e,t,n){o.default.readdir(this.getPath(e),t,n)}readdirSync(e,t){return o.default.readdirSync(this.getPath(e),t)}readlink(e,t,n){o.default.readlink(this.getPath(e),t,n)}readlinkSync(e,t){return o.default.readlinkSync(this.getPath(e),t)}realpath(e,t,n){o.default.realpath(this.getPath(e),t,n)}realpathSync(e,t){return o.default.realpathSync(this.getPath(e),t)}rename(e,t,n){o.default.rename(e,t,n)}renameSync(e,t){o.default.renameSync(e,t)}rmdir(e,t){o.default.rmdir(this.getPath(e),t)}rmdirSync(e){o.default.rmdirSync(this.getPath(e))}stat(e,t){o.default.stat(this.getPath(e),t)}statSync(e){return o.default.statSync(e)}symlink(e,t,n,r){o.default.symlink(e,this.getPath(t),n,r)}symlinkSync(e,t,n){o.default.symlinkSync(e,this.getPath(t),n)}truncate(e,t,n){o.default.truncate(this.getPath(e),t,n)}truncateSync(e,t){o.default.truncateSync(this.getPath(e),t)}unlink(e,t){o.default.unlink(this.getPath(e),t)}unlinkSync(e){o.default.unlinkSync(this.getPath(e))}unwatchFile(e,t){o.default.unwatchFile(e,t)}utimes(e,t,n,r){o.default.utimes(this.getPath(e),t,n,r)}utimesSync(e,t,n){o.default.utimesSync(this.getPath(e),t,n)}watch(e,t,n){return o.default.watch(e,t,n)}watchFile(e,t,n){o.default.watchFile(e,t,n)}writeFile(e,t,n,r){o.default.writeFile(this.getPath(e),t,n)}writeFileSync(e,t,n){o.default.writeFileSync(this.getPath(e),t,n)}writeSync(e,t,n,r,i){return o.default.writeSync(e,t,n,r,i)}write(e,t,n,r,i,o){this.write(e,t,n,r,i,o)}}},75269:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(591));t.default=class{access(e,t){return i.default.promises.access(e,t)}appendFile(e,t,n){return i.default.promises.appendFile(e,t)}chmod(e,t){return i.default.promises.chmod(e,t)}chown(e,t,n){return i.default.promises.chown(e,t,n)}copyFile(e,t,n){return i.default.promises.copyFile(e,t,n)}fchmod(e,t){return i.default.promises.fchmod(e,t)}fchown(e,t,n){return i.default.promises.fchown(e,t,n)}fdatasync(e){return i.default.promises.fdatasync(e)}fstat(e){return i.default.promises.fstat(e)}fsync(e){return i.default.promises.fsync(e)}ftruncate(e,t){return i.default.promises.ftruncate(e,t)}futimes(e,t,n){return i.default.promises.futimes(e,t,n)}lchmod(e,t){return i.default.promises.lchmod(e,t)}lchown(e,t,n){return i.default.promises.lchown(e,t,n)}link(e,t){return i.default.promises.link(e,t)}lstat(e){return i.default.promises.lstat(e)}mkdir(e,t){return i.default.promises.mkdir(e,t)}mkdtemp(e,t){return i.default.promises.mkdtemp(e,t)}open(e,t,n){return i.default.promises.open(e,t,n)}read(e,t,n,r,o){return i.default.promises.read(e,t,n,r,o)}readFile(e,t){return i.default.promises.readFile(e,t)}readdir(e,t){return i.default.promises.readdir(e,t)}readlink(e,t){return i.default.promises.readlink(e,t)}realpath(e,t){return i.default.promises.realpath(e,t)}rename(e,t){return i.default.promises.rename(e,t)}rmdir(e){return i.default.promises.rmdir(e)}stat(e){return i.default.promises.stat(e)}symlink(e,t,n){return i.default.promises.symlink(e,t,n)}truncate(e,t){return i.default.promises.truncate(e,t)}unlink(e){return i.default.promises.unlink(e)}utimes(e,t,n){return i.default.promises.utimes(e,t,n)}write(e,t,n,r,o){i.default.promises.write(e,t,n,r)}writeFile(e,t,n){return i.default.promises.writeFile(e,t,n)}}},96450:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(19076)),r(n(47514))},47514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(18252))},18252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(53740);t.MemoryFS=class{constructor(){this.volume=new r.Volume,this.promises=this.volume.promises}access(e,t,n){this.volume.access(e,t,n)}accessSync(e,t){this.volume.accessSync(e,t)}appendFile(e,t,n,r){this.volume.appendFile(e,t,n)}mkdirpSync(e){this.volume.mkdirpSync(e)}appendFileSync(e,t,n){this.volume.appendFileSync(e,t,n)}chmod(e,t,n){this.volume.chmod(e,t,n)}chmodSync(e,t){this.volume.chmodSync(e,t)}chown(e,t,n,r){this.volume.chown(e,t,n,r)}chownSync(e,t,n){this.volume.chownSync(e,t,n)}close(e,t){this.volume.close(e,t)}closeSync(e){this.volume.closeSync(e)}copyFile(e,t,n){this.volume.copyFile(e,t,n)}copyFileSync(e,t,n){this.volume.copyFileSync(e,t,n)}createReadStream(e,t){return this.volume.createReadStream(e,t)}createWriteStream(e,t){return this.volume.createWriteStream(e,t)}exists(e,t){this.volume.exists(e,t)}existsSync(e){return!1}fchmod(e,t,n){this.volume.fchmod(e,t,n)}fchmodSync(e,t){this.volume.fchmodSync(e,t)}fchown(e,t,n,r){this.volume.fchown(e,t,n,r)}fchownSync(e,t,n){this.volume.fchownSync(e,t,n)}fdatasync(e,t){this.volume.fdatasync(e,t)}fdatasyncSync(e){this.volume.fdatasyncSync(e)}fstat(e,t){this.volume.fstat(e,t)}fstatSync(e){return this.volume.fstatSync(e)}fsync(e,t){this.volume.fsync(e,t)}fsyncSync(e){this.volume.fsyncSync(e)}ftruncate(e,t,n){this.volume.ftruncate(e,t,n)}ftruncateSync(e,t){this.volume.ftruncateSync(e,t)}futimes(e,t,n,r){this.volume.futimes(e,t,n,r)}futimesSync(e,t,n){this.volume.futimesSync(e,t,n)}lchmod(e,t,n){this.volume.lchmod(e,t,n)}lchmodSync(e,t){this.volume.lchmodSync(e,t)}lchown(e,t,n,r){this.volume.lchown(e,t,n,r)}lchownSync(e,t,n){this.volume.lchownSync(e,t,n)}link(e,t,n){this.volume.link(e,t,n)}linkSync(e,t){this.volume.linkSync(e,t)}lstat(e,t){this.volume.lstat(e,t)}lstatSync(e){return this.volume.lstatSync(e)}mkdir(e,t,n){this.volume.mkdir(e,t,n)}mkdirSync(e,t){this.volume.mkdirSync(e,t)}mkdtemp(e,t,n){this.volume.mkdtemp(e,t,n)}mkdtempSync(e,t){return this.volume.mkdtempSync(e,t)}open(e,t,n,r){this.volume.open(e,t,n,r)}openSync(e,t,n){return this.volume.openSync(e,t,n)}read(e,t,n,r,i,o){this.volume.read(e,t,n,r,i,o)}readFile(e,t,n){}readFileSync(e,t){return this.volume.readFileSync(e)}readSync(e,t,n,r,i){return this.volume.readSync(e,t,n,r,i)}readdir(e,t,n){this.volume.readdir(e,t,n)}readdirSync(e,t){return this.volume.readdirSync(e,t)}readlink(e,t,n){this.volume.readlink(e,t,n)}readlinkSync(e,t){return this.volume.readlinkSync(e,t)}realpath(e,t,n){this.volume.realpath(e,t,n)}realpathSync(e,t){return this.volume.realpathSync(e,t)}rename(e,t,n){this.volume.rename(e,t,n)}renameSync(e,t){this.volume.renameSync(e,t)}rmdir(e,t){this.volume.rmdir(e,t)}rmdirSync(e){this.volume.rmdirSync(e)}stat(e,t){this.volume.stat(e,t)}statSync(e){return this.volume.statSync(e)}symlink(e,t,n,r){this.volume.symlink(e,t,n,r)}symlinkSync(e,t,n){this.volume.symlinkSync(e,t,n)}truncate(e,t,n){this.volume.truncate(e,t,n)}truncateSync(e,t){this.volume.truncateSync(e,t)}unlink(e,t){this.volume.unlink(e,t)}unlinkSync(e){this.volume.unlinkSync(e)}unwatchFile(e,t){this.volume.unwatchFile(e,t)}utimes(e,t,n,r){this.volume.utimes(e,t,n,r)}utimesSync(e,t,n){this.volume.utimesSync(e,t,n)}watch(e,t,n){return this.volume.watch(e,t,n)}watchFile(e,t,n){this.volume.watchFile(e,t,n)}writeFile(e,t,n,r){this.volume.writeFile(e,t,n)}writeFileSync(e,t,n){this.volume.writeFileSync(e,t,n)}writeSync(e,t,n,r,i){return this.volume.writeSync(e,t,n,r,i)}write(e,t,n,r,i,o){this.write(e,t,n,r,i,o)}}},58836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49923),i=n(46506),o=r.constants.S_IFMT,s=r.constants.S_IFDIR,a=r.constants.S_IFREG,l=r.constants.S_IFBLK,c=r.constants.S_IFCHR,u=r.constants.S_IFLNK,d=r.constants.S_IFIFO,p=r.constants.S_IFSOCK,f=function(){function e(){this.name="",this.mode=0}return e.build=function(t,n){var r=new e,o=t.getNode().mode;return r.name=i.strToEncoding(t.getName(),n),r.mode=o,r},e.prototype._checkModeProperty=function(e){return(this.mode&o)===e},e.prototype.isDirectory=function(){return this._checkModeProperty(s)},e.prototype.isFile=function(){return this._checkModeProperty(a)},e.prototype.isBlockDevice=function(){return this._checkModeProperty(l)},e.prototype.isCharacterDevice=function(){return this._checkModeProperty(c)},e.prototype.isSymbolicLink=function(){return this._checkModeProperty(u)},e.prototype.isFIFO=function(){return this._checkModeProperty(d)},e.prototype.isSocket=function(){return this._checkModeProperty(p)},e}();t.Dirent=f,t.default=f},99270:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49923),i=n(94101),o=r.constants.S_IFMT,s=r.constants.S_IFDIR,a=r.constants.S_IFREG,l=r.constants.S_IFBLK,c=r.constants.S_IFCHR,u=r.constants.S_IFLNK,d=r.constants.S_IFIFO,p=r.constants.S_IFSOCK,f=function(){function e(){}return e.build=function(t,n){void 0===n&&(n=!1);var r=new e,o=t.uid,s=t.gid,a=t.atime,l=t.mtime,c=t.ctime,u=n?i.default:function(e){return e};r.uid=u(o),r.gid=u(s),r.rdev=u(0),r.blksize=u(4096),r.ino=u(t.ino),r.size=u(t.getSize()),r.blocks=u(1),r.atime=a,r.mtime=l,r.ctime=c,r.birthtime=c,r.atimeMs=u(a.getTime()),r.mtimeMs=u(l.getTime());var d=u(c.getTime());return r.ctimeMs=d,r.birthtimeMs=d,r.dev=u(0),r.mode=u(t.mode),r.nlink=u(t.nlink),r},e.prototype._checkModeProperty=function(e){return(Number(this.mode)&o)===e},e.prototype.isDirectory=function(){return this._checkModeProperty(s)},e.prototype.isFile=function(){return this._checkModeProperty(a)},e.prototype.isBlockDevice=function(){return this._checkModeProperty(l)},e.prototype.isCharacterDevice=function(){return this._checkModeProperty(c)},e.prototype.isSymbolicLink=function(){return this._checkModeProperty(u)},e.prototype.isFIFO=function(){return this._checkModeProperty(d)},e.prototype.isSocket=function(){return this._checkModeProperty(p)},e}();t.Stats=f,t.default=f},49923:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}},46506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(60710),i=n(42200);t.ENCODING_UTF8="utf8",t.assertEncoding=function(e){if(e&&!r.Buffer.isEncoding(e))throw new i.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",e)},t.strToEncoding=function(e,n){return n&&n!==t.ENCODING_UTF8?"buffer"===n?new r.Buffer(e):new r.Buffer(e).toString(n):e}},94101:(e,t)=>{"function"===typeof BigInt?t.default=BigInt:t.default=function(){throw new Error("BigInt is not supported in this environment.")}},53740:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(99270),o=n(58836),s=n(66783),a=n(66046),l=a.fsSyncMethods,c=a.fsAsyncMethods,u=n(49923),d=u.constants.F_OK,p=u.constants.R_OK,f=u.constants.W_OK,h=u.constants.X_OK;function m(e){for(var t={F_OK:d,R_OK:p,W_OK:f,X_OK:h,constants:u.constants,Stats:i.default,Dirent:o.default},n=0,r=l;n<r.length;n++){"function"===typeof e[g=r[n]]&&(t[g]=e[g].bind(e))}for(var a=0,m=c;a<m.length;a++){var g;"function"===typeof e[g=m[a]]&&(t[g]=e[g].bind(e))}return t.StatWatcher=e.StatWatcher,t.FSWatcher=e.FSWatcher,t.WriteStream=e.WriteStream,t.ReadStream=e.ReadStream,t.promises=e.promises,t._toUnixTimestamp=s.toUnixTimestamp,t}t.Volume=s.Volume,t.vol=new s.Volume,t.createFsFromVolume=m,t.fs=m(t.vol),e.exports=r(r({},e.exports),t.fs),e.exports.semantic=!0},60710:function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0});var i=n(59883);function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new(i.Buffer.bind.apply(i.Buffer,r([void 0,e],t)))}t.Buffer=i.Buffer;var s=i.Buffer.allocUnsafe||o;t.bufferAllocUnsafe=s;var a=i.Buffer.from||o;t.bufferFrom=a},42200:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(42077),o=n(81913),s="undefined"===typeof Symbol?"_kCode":Symbol("code"),a={};function l(e){return function(e){function t(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e.call(this,u(t,n))||this;return i.code=t,i[s]=t,i.name=e.prototype.name+" ["+i[s]+"]",i}return r(t,e),t}(e)}var c=function(e){function n(n){var r=this;if("object"!==typeof n||null===n)throw new t.TypeError("ERR_INVALID_ARG_TYPE","options","object");return(r=n.message?e.call(this,n.message)||this:e.call(this,o.inspect(n.actual).slice(0,128)+" "+n.operator+" "+o.inspect(n.expected).slice(0,128))||this).generatedMessage=!n.message,r.name="AssertionError [ERR_ASSERTION]",r.code="ERR_ASSERTION",r.actual=n.actual,r.expected=n.expected,r.operator=n.operator,t.Error.captureStackTrace(r,n.stackStartFunction),r}return r(n,e),n}(n.g.Error);function u(e,t){i.strictEqual(typeof e,"string");var n,r=a[e];if(i(r,"An invalid error message key was used: "+e+"."),"function"===typeof r)n=r;else{if(n=o.format,void 0===t||0===t.length)return r;t.unshift(r)}return String(n.apply(null,t))}function d(e,t){a[e]="function"===typeof t?t:String(t)}function p(e,t){if(i(e,"expected is required"),i("string"===typeof t,"thing is required"),Array.isArray(e)){var n=e.length;return i(n>0,"At least one expected value needs to be specified"),e=e.map((function(e){return String(e)})),n>2?"one of "+t+" "+e.slice(0,n-1).join(", ")+", or "+e[n-1]:2===n?"one of "+t+" "+e[0]+" or "+e[1]:"of "+t+" "+e[0]}return"of "+t+" "+String(e)}t.AssertionError=c,t.message=u,t.E=d,t.Error=l(n.g.Error),t.TypeError=l(n.g.TypeError),t.RangeError=l(n.g.RangeError),d("ERR_ARG_NOT_ITERABLE","%s must be iterable"),d("ERR_ASSERTION","%s"),d("ERR_BUFFER_OUT_OF_BOUNDS",(function(e,t){return t?"Attempt to write outside buffer bounds":'"'+e+'" is outside of buffer bounds'})),d("ERR_CHILD_CLOSED_BEFORE_REPLY","Child closed before reply received"),d("ERR_CONSOLE_WRITABLE_STREAM","Console expects a writable stream instance for %s"),d("ERR_CPU_USAGE","Unable to obtain cpu usage %s"),d("ERR_DNS_SET_SERVERS_FAILED",(function(e,t){return'c-ares failed to set servers: "'+e+'" ['+t+"]"})),d("ERR_FALSY_VALUE_REJECTION","Promise was rejected with falsy value"),d("ERR_ENCODING_NOT_SUPPORTED",(function(e){return'The "'+e+'" encoding is not supported'})),d("ERR_ENCODING_INVALID_ENCODED_DATA",(function(e){return"The encoded data was not valid for encoding "+e})),d("ERR_HTTP_HEADERS_SENT","Cannot render headers after they are sent to the client"),d("ERR_HTTP_INVALID_STATUS_CODE","Invalid status code: %s"),d("ERR_HTTP_TRAILER_INVALID","Trailers are invalid with this transfer encoding"),d("ERR_INDEX_OUT_OF_RANGE","Index out of range"),d("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,o;i(e,"name is required"),t.includes("not ")?(r="must not be",t=t.split("not ")[1]):r="must be";if(Array.isArray(e)){o="The "+e.map((function(e){return'"'+e+'"'})).join(", ")+" arguments "+r+" "+p(t,"type")}else if(e.includes(" argument"))o="The "+e+" "+r+" "+p(t,"type");else{var s=e.includes(".")?"property":"argument";o='The "'+e+'" '+s+" "+r+" "+p(t,"type")}arguments.length>=3&&(o+=". Received type "+(null!==n?typeof n:"null"));return o})),d("ERR_INVALID_ARRAY_LENGTH",(function(e,t,n){return i.strictEqual(typeof n,"number"),'The array "'+e+'" (length '+n+") must be of length "+t+"."})),d("ERR_INVALID_BUFFER_SIZE","Buffer size must be a multiple of %s"),d("ERR_INVALID_CALLBACK","Callback must be a function"),d("ERR_INVALID_CHAR","Invalid character in %s"),d("ERR_INVALID_CURSOR_POS","Cannot set cursor row without setting its column"),d("ERR_INVALID_FD",'"fd" must be a positive integer: %s'),d("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),d("ERR_INVALID_FILE_URL_PATH","File URL path %s"),d("ERR_INVALID_HANDLE_TYPE","This handle type cannot be sent"),d("ERR_INVALID_IP_ADDRESS","Invalid IP address: %s"),d("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+String(t)+'" is invalid for option "'+e+'"'})),d("ERR_INVALID_OPT_VALUE_ENCODING",(function(e){return'The value "'+String(e)+'" is invalid for option "encoding"'})),d("ERR_INVALID_REPL_EVAL_CONFIG",'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'),d("ERR_INVALID_SYNC_FORK_INPUT","Asynchronous forks do not support Buffer, Uint8Array or string input: %s"),d("ERR_INVALID_THIS",'Value of "this" must be of type %s'),d("ERR_INVALID_TUPLE","%s must be an iterable %s tuple"),d("ERR_INVALID_URL","Invalid URL: %s"),d("ERR_INVALID_URL_SCHEME",(function(e){return"The URL must be "+p(e,"scheme")})),d("ERR_IPC_CHANNEL_CLOSED","Channel closed"),d("ERR_IPC_DISCONNECTED","IPC channel is already disconnected"),d("ERR_IPC_ONE_PIPE","Child process can have only one IPC pipe"),d("ERR_IPC_SYNC_FORK","IPC cannot be used with synchronous forks"),d("ERR_MISSING_ARGS",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i(e.length>0,"At least one arg needs to be specified");var n="The ",r=e.length;switch(e=e.map((function(e){return'"'+e+'"'})),r){case 1:n+=e[0]+" argument";break;case 2:n+=e[0]+" and "+e[1]+" arguments";break;default:n+=e.slice(0,r-1).join(", "),n+=", and "+e[r-1]+" arguments"}return n+" must be specified"})),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),d("ERR_NAPI_CONS_FUNCTION","Constructor must be a function"),d("ERR_NAPI_CONS_PROTOTYPE_OBJECT","Constructor.prototype must be an object"),d("ERR_NO_CRYPTO","Node.js is not compiled with OpenSSL crypto support"),d("ERR_NO_LONGER_SUPPORTED","%s is no longer supported"),d("ERR_PARSE_HISTORY_DATA","Could not parse history data in %s"),d("ERR_SOCKET_ALREADY_BOUND","Socket is already bound"),d("ERR_SOCKET_BAD_PORT","Port should be > 0 and < 65536"),d("ERR_SOCKET_BAD_TYPE","Bad socket type specified. Valid types are: udp4, udp6"),d("ERR_SOCKET_CANNOT_SEND","Unable to send data"),d("ERR_SOCKET_CLOSED","Socket is closed"),d("ERR_SOCKET_DGRAM_NOT_RUNNING","Not running"),d("ERR_STDERR_CLOSE","process.stderr cannot be closed"),d("ERR_STDOUT_CLOSE","process.stdout cannot be closed"),d("ERR_STREAM_WRAP","Stream has StringDecoder set or is in objectMode"),d("ERR_TLS_CERT_ALTNAME_INVALID","Hostname/IP does not match certificate's altnames: %s"),d("ERR_TLS_DH_PARAM_SIZE",(function(e){return"DH parameter size "+e+" is less than 2048"})),d("ERR_TLS_HANDSHAKE_TIMEOUT","TLS handshake timeout"),d("ERR_TLS_RENEGOTIATION_FAILED","Failed to renegotiate"),d("ERR_TLS_REQUIRED_SERVER_NAME",'"servername" is required parameter for Server.addContext'),d("ERR_TLS_SESSION_ATTACK","TSL session renegotiation attack detected"),d("ERR_TRANSFORM_ALREADY_TRANSFORMING","Calling transform done when still transforming"),d("ERR_TRANSFORM_WITH_LENGTH_0","Calling transform done when writableState.length != 0"),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s"),d("ERR_UNKNOWN_SIGNAL","Unknown signal: %s"),d("ERR_UNKNOWN_STDIN_TYPE","Unknown stdin file type"),d("ERR_UNKNOWN_STREAM_TYPE","Unknown stream file type"),d("ERR_V8BREAKITERATOR","Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl")},84680:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(41276),o=n(60710),s=n(49923),a=n(88863),l=n(99270),c=s.constants.S_IFMT,u=s.constants.S_IFDIR,d=s.constants.S_IFREG,p=(s.constants.S_IFBLK,s.constants.S_IFCHR,s.constants.S_IFLNK),f=(s.constants.S_IFIFO,s.constants.S_IFSOCK,s.constants.O_APPEND);t.SEP="/";var h=function(e){function t(t,n){void 0===n&&(n=438);var r=e.call(this)||this;return r.uid=i.default.getuid(),r.gid=i.default.getgid(),r.atime=new Date,r.mtime=new Date,r.ctime=new Date,r.perm=438,r.mode=d,r.nlink=1,r.perm=n,r.mode|=n,r.ino=t,r}return r(t,e),t.prototype.getString=function(e){return void 0===e&&(e="utf8"),this.getBuffer().toString(e)},t.prototype.setString=function(e){this.buf=o.bufferFrom(e,"utf8"),this.touch()},t.prototype.getBuffer=function(){return this.buf||this.setBuffer(o.bufferAllocUnsafe(0)),o.bufferFrom(this.buf)},t.prototype.setBuffer=function(e){this.buf=o.bufferFrom(e),this.touch()},t.prototype.getSize=function(){return this.buf?this.buf.length:0},t.prototype.setModeProperty=function(e){this.mode=this.mode&~c|e},t.prototype.setIsFile=function(){this.setModeProperty(d)},t.prototype.setIsDirectory=function(){this.setModeProperty(u)},t.prototype.setIsSymlink=function(){this.setModeProperty(p)},t.prototype.isFile=function(){return(this.mode&c)===d},t.prototype.isDirectory=function(){return(this.mode&c)===u},t.prototype.isSymlink=function(){return(this.mode&c)===p},t.prototype.makeSymlink=function(e){this.symlink=e,this.setIsSymlink()},t.prototype.write=function(e,t,n,r){if(void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===r&&(r=0),this.buf||(this.buf=o.bufferAllocUnsafe(0)),r+n>this.buf.length){var i=o.bufferAllocUnsafe(r+n);this.buf.copy(i,0,0,this.buf.length),this.buf=i}return e.copy(this.buf,r,t,t+n),this.touch(),n},t.prototype.read=function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.byteLength),void 0===r&&(r=0),this.buf||(this.buf=o.bufferAllocUnsafe(0));var i=n;return i>e.byteLength&&(i=e.byteLength),i+r>this.buf.length&&(i=this.buf.length-r),this.buf.copy(e,t,r,r+i),i},t.prototype.truncate=function(e){if(void 0===e&&(e=0),e)if(this.buf||(this.buf=o.bufferAllocUnsafe(0)),e<=this.buf.length)this.buf=this.buf.slice(0,e);else{var t=o.bufferAllocUnsafe(0);this.buf.copy(t),t.fill(0,e)}else this.buf=o.bufferAllocUnsafe(0);this.touch()},t.prototype.chmod=function(e){this.perm=e,this.mode=-512&this.mode|e,this.touch()},t.prototype.chown=function(e,t){this.uid=e,this.gid=t,this.touch()},t.prototype.touch=function(){this.mtime=new Date,this.emit("change",this)},t.prototype.canRead=function(e,t){return void 0===e&&(e=i.default.getuid()),void 0===t&&(t=i.default.getgid()),!!(4&this.perm)||(!!(t===this.gid&&32&this.perm)||!!(e===this.uid&&256&this.perm))},t.prototype.canWrite=function(e,t){return void 0===e&&(e=i.default.getuid()),void 0===t&&(t=i.default.getgid()),!!(2&this.perm)||(!!(t===this.gid&&16&this.perm)||!!(e===this.uid&&128&this.perm))},t.prototype.del=function(){this.emit("delete",this)},t.prototype.toJSON=function(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}},t}(a.EventEmitter);t.Node=h;var m=function(e){function n(t,n,r){var i=e.call(this)||this;return i.children={},i.steps=[],i.ino=0,i.length=0,i.vol=t,i.parent=n,i.steps=n?n.steps.concat([r]):[r],i}return r(n,e),n.prototype.setNode=function(e){this.node=e,this.ino=e.ino},n.prototype.getNode=function(){return this.node},n.prototype.createChild=function(e,t){void 0===t&&(t=this.vol.createNode());var r=new n(this.vol,this,e);return r.setNode(t),t.isDirectory(),this.setChild(e,r),r},n.prototype.setChild=function(e,t){return void 0===t&&(t=new n(this.vol,this,e)),this.children[e]=t,t.parent=this,this.length++,this.emit("child:add",t,this),t},n.prototype.deleteChild=function(e){delete this.children[e.getName()],this.length--,this.emit("child:delete",e,this)},n.prototype.getChild=function(e){if(Object.hasOwnProperty.call(this.children,e))return this.children[e]},n.prototype.getPath=function(){return this.steps.join(t.SEP)},n.prototype.getName=function(){return this.steps[this.steps.length-1]},n.prototype.walk=function(e,t,n){if(void 0===t&&(t=e.length),void 0===n&&(n=0),n>=e.length)return this;if(n>=t)return this;var r=e[n],i=this.getChild(r);return i?i.walk(e,t,n+1):null},n.prototype.toJSON=function(){return{steps:this.steps,ino:this.ino,children:Object.keys(this.children)}},n}(a.EventEmitter);t.Link=m;var g=function(){function e(e,t,n,r){this.position=0,this.link=e,this.node=t,this.flags=n,this.fd=r}return e.prototype.getString=function(e){return void 0===e&&(e="utf8"),this.node.getString()},e.prototype.setString=function(e){this.node.setString(e)},e.prototype.getBuffer=function(){return this.node.getBuffer()},e.prototype.setBuffer=function(e){this.node.setBuffer(e)},e.prototype.getSize=function(){return this.node.getSize()},e.prototype.truncate=function(e){this.node.truncate(e)},e.prototype.seekTo=function(e){this.position=e},e.prototype.stats=function(){return l.default.build(this.node)},e.prototype.write=function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.length),"number"!==typeof r&&(r=this.position),this.flags&f&&(r=this.getSize());var i=this.node.write(e,t,n,r);return this.position=r+i,i},e.prototype.read=function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.byteLength),"number"!==typeof r&&(r=this.position);var i=this.node.read(e,t,n,r);return this.position=r+i,i},e.prototype.chmod=function(e){this.node.chmod(e)},e.prototype.chown=function(e,t){this.node.chown(e,t)},e}();t.File=g},41276:(e,t,n)=>{"use strict";var r=n(18308);Object.defineProperty(t,"__esModule",{value:!0});function i(){var e=function(){if("undefined"!==typeof r)return r;try{return n(18308)}catch(e){return}}()||{};return e.getuid||(e.getuid=function(){return 0}),e.getgid||(e.getgid=function(){return 0}),e.cwd||(e.cwd=function(){return"/"}),e.nextTick||(e.nextTick=n(80299).default),e.emitWarning||(e.emitWarning=function(e,t){console.warn(t+(t?": ":"")+e)}),e.env||(e.env={}),e}t.createProcess=i,t.default=i()},1950:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};function r(e,t,r){return void 0===r&&(r=function(e){return e}),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new Promise((function(o,s){e[t].bind(e).apply(void 0,n(i,[function(e,t){return e?s(e):o(r(t))}]))}))}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.vol=e,this.fd=t}return e.prototype.appendFile=function(e,t){return r(this.vol,"appendFile")(this.fd,e,t)},e.prototype.chmod=function(e){return r(this.vol,"fchmod")(this.fd,e)},e.prototype.chown=function(e,t){return r(this.vol,"fchown")(this.fd,e,t)},e.prototype.close=function(){return r(this.vol,"close")(this.fd)},e.prototype.datasync=function(){return r(this.vol,"fdatasync")(this.fd)},e.prototype.read=function(e,t,n,i){return r(this.vol,"read",(function(t){return{bytesRead:t,buffer:e}}))(this.fd,e,t,n,i)},e.prototype.readFile=function(e){return r(this.vol,"readFile")(this.fd,e)},e.prototype.stat=function(e){return r(this.vol,"fstat")(this.fd,e)},e.prototype.sync=function(){return r(this.vol,"fsync")(this.fd)},e.prototype.truncate=function(e){return r(this.vol,"ftruncate")(this.fd,e)},e.prototype.utimes=function(e,t){return r(this.vol,"futimes")(this.fd,e,t)},e.prototype.write=function(e,t,n,i){return r(this.vol,"write",(function(t){return{bytesWritten:t,buffer:e}}))(this.fd,e,t,n,i)},e.prototype.writeFile=function(e,t){return r(this.vol,"writeFile")(this.fd,e,t)},e}();t.FileHandle=i,t.default=function(e){return"undefined"===typeof Promise?null:{FileHandle:i,access:function(t,n){return r(e,"access")(t,n)},appendFile:function(t,n,o){return r(e,"appendFile")(t instanceof i?t.fd:t,n,o)},chmod:function(t,n){return r(e,"chmod")(t,n)},chown:function(t,n,i){return r(e,"chown")(t,n,i)},copyFile:function(t,n,i){return r(e,"copyFile")(t,n,i)},lchmod:function(t,n){return r(e,"lchmod")(t,n)},lchown:function(t,n,i){return r(e,"lchown")(t,n,i)},link:function(t,n){return r(e,"link")(t,n)},lstat:function(t,n){return r(e,"lstat")(t,n)},mkdir:function(t,n){return r(e,"mkdir")(t,n)},mkdtemp:function(t,n){return r(e,"mkdtemp")(t,n)},open:function(t,n,o){return r(e,"open",(function(t){return new i(e,t)}))(t,n,o)},readdir:function(t,n){return r(e,"readdir")(t,n)},readFile:function(t,n){return r(e,"readFile")(t instanceof i?t.fd:t,n)},readlink:function(t,n){return r(e,"readlink")(t,n)},realpath:function(t,n){return r(e,"realpath")(t,n)},rename:function(t,n){return r(e,"rename")(t,n)},rmdir:function(t){return r(e,"rmdir")(t)},stat:function(t,n){return r(e,"stat")(t,n)},symlink:function(t,n,i){return r(e,"symlink")(t,n,i)},truncate:function(t,n){return r(e,"truncate")(t,n)},unlink:function(t){return r(e,"unlink")(t)},utimes:function(t,n,i){return r(e,"utimes")(t,n,i)},writeFile:function(t,n,o){return r(e,"writeFile")(t instanceof i?t.fd:t,n,o)}}}},80299:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r="function"===typeof setImmediate?setImmediate.bind(n.g):setTimeout.bind(n.g),t.default=r},12679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=setTimeout.apply(null,arguments);return r&&"object"===typeof r&&"function"===typeof r.unref&&r.unref(),r}},66783:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0});var o,s,a=n(14527),l=n(84680),c=n(99270),u=n(58836),d=n(60710),p=n(80299),f=n(41276),h=n(12679),m=n(52009),g=n(49923),_=n(88863),b=n(46506),v=n(42200),y=n(49723).l,S=n(81913),E=n(1950),w=a.resolve,C=g.constants.O_RDONLY,O=g.constants.O_WRONLY,T=g.constants.O_RDWR,N=g.constants.O_CREAT,I=g.constants.O_EXCL,x=g.constants.O_TRUNC,k=g.constants.O_APPEND,R=g.constants.O_SYNC,P=g.constants.F_OK,A=g.constants.COPYFILE_EXCL,L=g.constants.COPYFILE_FICLONE_FORCE;if(a.posix){var D=a.posix;o=D.sep,s=D.relative}else o=a.sep,s=a.relative;var M,j="win32"===f.default.platform,F={PATH_STR:"path must be a string or Buffer",FD:"fd must be a file descriptor",MODE_INT:"mode must be an int",CB:"callback must be a function",UID:"uid must be an unsigned int",GID:"gid must be an unsigned int",LEN:"len must be an integer",ATIME:"atime must be an integer",MTIME:"mtime must be an integer",PREFIX:"filename prefix is required",BUFFER:"buffer must be an instance of Buffer or StaticBuffer",OFFSET:"offset must be an integer",LENGTH:"length must be an integer",POSITION:"position must be an integer"},B=function(e){return"Expected options to be either an object or a string, but got "+e+" instead"},U="ENOENT",V="EBADF",H="EINVAL",z="EPERM",$="EPROTO",W="EEXIST",G="ENOTDIR",q="EMFILE",Y="EACCES",K="EISDIR",Q="ENOTEMPTY",X="ENOSYS";function Z(e,t,n,r,i){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=Error);var o=new i(function(e,t,n,r){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r="");var i="";switch(n&&(i=" '"+n+"'"),r&&(i+=" -> '"+r+"'"),e){case U:return"ENOENT: no such file or directory, "+t+i;case V:return"EBADF: bad file descriptor, "+t+i;case H:return"EINVAL: invalid argument, "+t+i;case z:return"EPERM: operation not permitted, "+t+i;case $:return"EPROTO: protocol error, "+t+i;case W:return"EEXIST: file already exists, "+t+i;case G:return"ENOTDIR: not a directory, "+t+i;case K:return"EISDIR: illegal operation on a directory, "+t+i;case Y:return"EACCES: permission denied, "+t+i;case Q:return"ENOTEMPTY: directory not empty, "+t+i;case q:return"EMFILE: too many open files, "+t+i;case X:return"ENOSYS: function not implemented, "+t+i;default:return e+": error occurred, "+t+i}}(e,t,n,r));return o.code=e,o}function J(e){if("number"===typeof e)return e;if("string"===typeof e){var t=M[e];if("undefined"!==typeof t)return t}throw new v.TypeError("ERR_INVALID_OPT_VALUE","flags",e)}function ee(e,t){var n;if(!t)return e;var r=typeof t;switch(r){case"string":n=y({},e,{encoding:t});break;case"object":n=y({},e,t);break;default:throw TypeError(B(r))}return"buffer"!==n.encoding&&b.assertEncoding(n.encoding),n}function te(e){return function(t){return ee(e,t)}}function ne(e){if("function"!==typeof e)throw TypeError(F.CB);return e}function re(e){return function(t,n){return"function"===typeof t?[e(),t]:[e(t),ne(n)]}}!function(e){e[e.r=C]="r",e[e["r+"]=T]="r+",e[e.rs=C|R]="rs",e[e.sr=e.rs]="sr",e[e["rs+"]=T|R]="rs+",e[e["sr+"]=e["rs+"]]="sr+",e[e.w=O|N|x]="w",e[e.wx=O|N|x|I]="wx",e[e.xw=e.wx]="xw",e[e["w+"]=T|N|x]="w+",e[e["wx+"]=T|N|x|I]="wx+",e[e["xw+"]=e["wx+"]]="xw+",e[e.a=O|k|N]="a",e[e.ax=O|k|N|I]="ax",e[e.xa=e.ax]="xa",e[e["a+"]=T|k|N]="a+",e[e["ax+"]=T|k|N|I]="ax+",e[e["xa+"]=e["ax+"]]="xa+"}(M=t.FLAGS||(t.FLAGS={})),t.flagsToNumber=J;var ie={encoding:"utf8"},oe=te(ie),se=re(oe),ae=te({flag:"r"}),le={encoding:"utf8",mode:438,flag:M[M.w]},ce=te(le),ue={encoding:"utf8",mode:438,flag:M[M.a]},de=te(ue),pe=re(de),fe=te(ie),he=re(fe),me={mode:511,recursive:!1},ge=function(e){return y({},me,"number"===typeof e?{mode:e}:e)},_e={recursive:!1},be=function(e){return y({},_e,e)},ve=te({encoding:"utf8",withFileTypes:!1}),ye=re(ve),Se={bigint:!1},Ee=function(e){return void 0===e&&(e={}),y({},Se,e)},we=function(e,t){return"function"===typeof e?[Ee(),e]:[Ee(e),ne(t)]};function Ce(e){if("string"!==typeof e&&!d.Buffer.isBuffer(e)){try{if(!(e instanceof n(51534).URL))throw new TypeError(F.PATH_STR)}catch(r){throw new TypeError(F.PATH_STR)}e=function(e){if(""!==e.hostname)throw new v.TypeError("ERR_INVALID_FILE_URL_HOST",f.default.platform);for(var t=e.pathname,n=0;n<t.length;n++)if("%"===t[n]){var r=32|t.codePointAt(n+2);if("2"===t[n+1]&&102===r)throw new v.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(t)}(e)}var t=String(e);return Pe(t),t}t.pathToFilename=Ce;var Oe=function(e,t){return void 0===t&&(t=f.default.cwd()),w(t,e)};if(j){var Te=Oe,Ne=n(26774).Z4;Oe=function(e,t){return Ne(Te(e,t))}}function Ie(e,t){var n=Oe(e,t).substr(1);return n?n.split(o):[]}function xe(e){return Ie(Ce(e))}function ke(e,t){return void 0===t&&(t=b.ENCODING_UTF8),d.Buffer.isBuffer(e)?e:e instanceof Uint8Array?d.bufferFrom(e):d.bufferFrom(String(e),t)}function Re(e,t){return t&&"buffer"!==t?e.toString(t):e}function Pe(e,t){if(-1!==(""+e).indexOf("\0")){var n=new Error("Path must be a string without null bytes");if(n.code=U,"function"!==typeof t)throw n;return f.default.nextTick(t,n),!1}return!0}function Ae(e,t){var n=function(e,t){return"number"===typeof e?e:"string"===typeof e?parseInt(e,8):t?Ae(t):void 0}(e,t);if("number"!==typeof n||isNaN(n))throw new TypeError(F.MODE_INT);return n}function Le(e){return e>>>0===e}function De(e){if(!Le(e))throw TypeError(F.FD)}function Me(e){if("string"===typeof e&&+e==e)return+e;if(e instanceof Date)return e.getTime()/1e3;if(isFinite(e))return e<0?Date.now()/1e3:e;throw new Error("Cannot parse time: "+e)}function je(e){if("number"!==typeof e)throw TypeError(F.UID)}function Fe(e){if("number"!==typeof e)throw TypeError(F.GID)}t.filenameToSteps=Ie,t.pathToSteps=xe,t.dataToStr=function(e,t){return void 0===t&&(t=b.ENCODING_UTF8),d.Buffer.isBuffer(e)?e.toString(t):e instanceof Uint8Array?d.bufferFrom(e).toString(t):String(e)},t.dataToBuffer=ke,t.bufferToEncoding=Re,t.toUnixTimestamp=Me;var Be=function(){function e(e){void 0===e&&(e={}),this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.promisesApi=E.default(this),this.statWatchers={},this.props=y({Node:l.Node,Link:l.Link,File:l.File},e);var t=this.createLink();t.setNode(this.createNode(!0));var n=this;this.StatWatcher=function(e){function t(){return e.call(this,n)||this}return r(t,e),t}(He);var o=ze;this.ReadStream=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,i([n],t))||this}return r(t,e),t}(o);var s=We;this.WriteStream=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,i([n],t))||this}return r(t,e),t}(s),this.FSWatcher=function(e){function t(){return e.call(this,n)||this}return r(t,e),t}(Ge),this.root=t}return e.fromJSON=function(t,n){var r=new e;return r.fromJSON(t,n),r},Object.defineProperty(e.prototype,"promises",{get:function(){if(null===this.promisesApi)throw new Error("Promise is not supported in this environment.");return this.promisesApi},enumerable:!0,configurable:!0}),e.prototype.createLink=function(e,t,n,r){if(void 0===n&&(n=!1),!e)return new this.props.Link(this,null,"");if(!t)throw new Error("createLink: name cannot be empty");return e.createChild(t,this.createNode(n,r))},e.prototype.deleteLink=function(e){var t=e.parent;return!!t&&(t.deleteChild(e),!0)},e.prototype.newInoNumber=function(){var e=this.releasedInos.pop();return e||(this.ino=(this.ino+1)%4294967295,this.ino)},e.prototype.newFdNumber=function(){var t=this.releasedFds.pop();return"number"===typeof t?t:e.fd--},e.prototype.createNode=function(e,t){void 0===e&&(e=!1);var n=new this.props.Node(this.newInoNumber(),t);return e&&n.setIsDirectory(),this.inodes[n.ino]=n,n},e.prototype.getNode=function(e){return this.inodes[e]},e.prototype.deleteNode=function(e){e.del(),delete this.inodes[e.ino],this.releasedInos.push(e.ino)},e.prototype.genRndStr=function(){var e=(Math.random()+1).toString(36).substr(2,6);return 6===e.length?e:this.genRndStr()},e.prototype.getLink=function(e){return this.root.walk(e)},e.prototype.getLinkOrThrow=function(e,t){var n=Ie(e),r=this.getLink(n);if(!r)throw Z(U,t,e);return r},e.prototype.getResolvedLink=function(e){for(var t="string"===typeof e?Ie(e):e,n=this.root,r=0;r<t.length;){var i=t[r];if(!(n=n.getChild(i)))return null;var o=n.getNode();o.isSymlink()?(t=o.symlink.concat(t.slice(r+1)),n=this.root,r=0):r++}return n},e.prototype.getResolvedLinkOrThrow=function(e,t){var n=this.getResolvedLink(e);if(!n)throw Z(U,t,e);return n},e.prototype.resolveSymlinks=function(e){return this.getResolvedLink(e.steps.slice(1))},e.prototype.getLinkAsDirOrThrow=function(e,t){var n=this.getLinkOrThrow(e,t);if(!n.getNode().isDirectory())throw Z(G,t,e);return n},e.prototype.getLinkParent=function(e){return this.root.walk(e,e.length-1)},e.prototype.getLinkParentAsDirOrThrow=function(e,t){var n=e instanceof Array?e:Ie(e),r=this.getLinkParent(n);if(!r)throw Z(U,t,o+n.join(o));if(!r.getNode().isDirectory())throw Z(G,t,o+n.join(o));return r},e.prototype.getFileByFd=function(e){return this.fds[String(e)]},e.prototype.getFileByFdOrThrow=function(e,t){if(!Le(e))throw TypeError(F.FD);var n=this.getFileByFd(e);if(!n)throw Z(V,t);return n},e.prototype.getNodeByIdOrCreate=function(e,t,n){if("number"===typeof e){var r=this.getFileByFd(e);if(!r)throw Error("File nto found");return r.node}var i=xe(e),o=this.getLink(i);if(o)return o.getNode();if(t&N){var s=this.getLinkParent(i);if(s){var a=i[i.length-1];return(o=this.createLink(s,a,!1,n)).getNode()}}throw Z(U,"getNodeByIdOrCreate",Ce(e))},e.prototype.wrapAsync=function(e,t,n){var r=this;ne(n),p.default((function(){try{n(null,e.apply(r,t))}catch(i){n(i)}}))},e.prototype._toJSON=function(e,t,n){var r;void 0===e&&(e=this.root),void 0===t&&(t={});var i=!0,o=e.children;for(var a in e.getNode().isFile()&&((r={})[e.getName()]=e.parent.getChild(e.getName()),o=r,e=e.parent),o){i=!1;var l=e.getChild(a);if(!l)throw new Error("_toJSON: unexpected undefined");var c=l.getNode();if(c.isFile()){var u=l.getPath();n&&(u=s(n,u)),t[u]=c.getString()}else c.isDirectory()&&this._toJSON(l,t,n)}var d=e.getPath();return n&&(d=s(n,d)),d&&i&&(t[d]=null),t},e.prototype.toJSON=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var r=[];if(e){e instanceof Array||(e=[e]);for(var i=0,o=e;i<o.length;i++){var s=Ce(o[i]);(c=this.getResolvedLink(s))&&r.push(c)}}else r.push(this.root);if(!r.length)return t;for(var a=0,l=r;a<l.length;a++){var c=l[a];this._toJSON(c,t,n?c.getPath():"")}return t},e.prototype.fromJSON=function(e,t){for(var n in void 0===t&&(t=f.default.cwd()),e){var r=e[n];if("string"===typeof r){var i=Ie(n=Oe(n,t));if(i.length>1){var s=o+i.slice(0,i.length-1).join(o);this.mkdirpBase(s,511)}this.writeFileSync(n,r)}else this.mkdirpBase(n,511)}},e.prototype.reset=function(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(!0))},e.prototype.mountSync=function(e,t){this.fromJSON(t,e)},e.prototype.openLink=function(e,t,n){if(void 0===n&&(n=!0),this.openFiles>=this.maxFiles)throw Z(q,"open",e.getPath());var r=e;if(n&&(r=this.resolveSymlinks(e)),!r)throw Z(U,"open",e.getPath());var i=r.getNode();if(i.isDirectory()&&t!==M.r)throw Z(K,"open",e.getPath());if(!(t&O)&&!i.canRead())throw Z(Y,"open",e.getPath());var o=new this.props.File(e,i,t,this.newFdNumber());return this.fds[o.fd]=o,this.openFiles++,t&x&&o.truncate(),o},e.prototype.openFile=function(e,t,n,r){void 0===r&&(r=!0);var i=Ie(e),s=r?this.getResolvedLink(i):this.getLink(i);if(!s&&t&N){var a=this.getResolvedLink(i.slice(0,i.length-1));if(!a)throw Z(U,"open",o+i.join(o));t&N&&"number"===typeof n&&(s=this.createLink(a,i[i.length-1],!1,n))}if(s)return this.openLink(s,t,r);throw Z(U,"open",e)},e.prototype.openBase=function(e,t,n,r){void 0===r&&(r=!0);var i=this.openFile(e,t,n,r);if(!i)throw Z(U,"open",e);return i.fd},e.prototype.openSync=function(e,t,n){void 0===n&&(n=438);var r=Ae(n),i=Ce(e),o=J(t);return this.openBase(i,o,r)},e.prototype.open=function(e,t,n,r){var i=n,o=r;"function"===typeof n&&(i=438,o=n);var s=Ae(i=i||438),a=Ce(e),l=J(t);this.wrapAsync(this.openBase,[a,l,s],o)},e.prototype.closeFile=function(e){this.fds[e.fd]&&(this.openFiles--,delete this.fds[e.fd],this.releasedFds.push(e.fd))},e.prototype.closeSync=function(e){De(e);var t=this.getFileByFdOrThrow(e,"close");this.closeFile(t)},e.prototype.close=function(e,t){De(e),this.wrapAsync(this.closeSync,[e],t)},e.prototype.openFileOrGetById=function(e,t,n){if("number"===typeof e){var r=this.fds[e];if(!r)throw Z(U);return r}return this.openFile(Ce(e),t,n)},e.prototype.readBase=function(e,t,n,r,i){return this.getFileByFdOrThrow(e).read(t,Number(n),Number(r),i)},e.prototype.readSync=function(e,t,n,r,i){return De(e),this.readBase(e,t,n,r,i)},e.prototype.read=function(e,t,n,r,i,o){var s=this;if(ne(o),0===r)return f.default.nextTick((function(){o&&o(null,0,t)}));p.default((function(){try{var a=s.readBase(e,t,n,r,i);o(null,a,t)}catch(l){o(l)}}))},e.prototype.readFileBase=function(e,t,n){var r,i,o="number"===typeof e&&Le(e);if(o)i=e;else{var s=Ie(Ce(e)),a=this.getResolvedLink(s);if(a)if(a.getNode().isDirectory())throw Z(K,"open",a.getPath());i=this.openSync(e,t)}try{r=Re(this.getFileByFdOrThrow(i).getBuffer(),n)}finally{o||this.closeSync(i)}return r},e.prototype.readFileSync=function(e,t){var n=ae(t),r=J(n.flag);return this.readFileBase(e,r,n.encoding)},e.prototype.readFile=function(e,t,n){var r=re(ae)(t,n),i=r[0],o=r[1],s=J(i.flag);this.wrapAsync(this.readFileBase,[e,s,i.encoding],o)},e.prototype.writeBase=function(e,t,n,r,i){return this.getFileByFdOrThrow(e,"write").write(t,n,r,i)},e.prototype.writeSync=function(e,t,n,r,i){var o,s,a,l;De(e);var c="string"!==typeof t;c?(s=0|(n||0),a=r,l=i):(l=n,o=r);var u=ke(t,o);return c?"undefined"===typeof a&&(a=u.length):(s=0,a=u.length),this.writeBase(e,u,s,a,l)},e.prototype.write=function(e,t,n,r,i,o){var s,a,l,c,u,d=this;De(e);var f=typeof t,h=typeof n,m=typeof r,g=typeof i;"string"!==f?"function"===h?u=n:"function"===m?(s=0|n,u=r):"function"===g?(s=0|n,a=r,u=i):(s=0|n,a=r,l=i,u=o):"function"===h?u=n:"function"===m?(l=n,u=r):"function"===g&&(l=n,c=r,u=i);var _=ke(t,c);"string"!==f?"undefined"===typeof a&&(a=_.length):(s=0,a=_.length);var b=ne(u);p.default((function(){try{var n=d.writeBase(e,_,s,a,l);b(null,n,"string"!==f?_:t)}catch(r){b(r)}}))},e.prototype.writeFileBase=function(e,t,n,r){var i,o="number"===typeof e;i=o?e:this.openBase(Ce(e),n,r);var s=0,a=t.length,l=n&k?void 0:0;try{for(;a>0;){var c=this.writeSync(i,t,s,a,l);s+=c,a-=c,void 0!==l&&(l+=c)}}finally{o||this.closeSync(i)}},e.prototype.writeFileSync=function(e,t,n){var r=ce(n),i=J(r.flag),o=Ae(r.mode),s=ke(t,r.encoding);this.writeFileBase(e,s,i,o)},e.prototype.writeFile=function(e,t,n,r){var i=n,o=r;"function"===typeof n&&(i=le,o=n);var s=ne(o),a=ce(i),l=J(a.flag),c=Ae(a.mode),u=ke(t,a.encoding);this.wrapAsync(this.writeFileBase,[e,u,l,c],s)},e.prototype.linkBase=function(e,t){var n=Ie(e),r=this.getLink(n);if(!r)throw Z(U,"link",e,t);var i=Ie(t),o=this.getLinkParent(i);if(!o)throw Z(U,"link",e,t);var s=i[i.length-1];if(o.getChild(s))throw Z(W,"link",e,t);var a=r.getNode();a.nlink++,o.createChild(s,a)},e.prototype.copyFileBase=function(e,t,n){var r=this.readFileSync(e);if(n&A&&this.existsSync(t))throw Z(W,"copyFile",e,t);if(n&L)throw Z(X,"copyFile",e,t);this.writeFileBase(t,r,M.w,438)},e.prototype.copyFileSync=function(e,t,n){var r=Ce(e),i=Ce(t);return this.copyFileBase(r,i,0|(n||0))},e.prototype.copyFile=function(e,t,n,r){var i,o,s=Ce(e),a=Ce(t);"function"===typeof n?(i=0,o=n):(i=n,o=r),ne(o),this.wrapAsync(this.copyFileBase,[s,a,i],o)},e.prototype.linkSync=function(e,t){var n=Ce(e),r=Ce(t);this.linkBase(n,r)},e.prototype.link=function(e,t,n){var r=Ce(e),i=Ce(t);this.wrapAsync(this.linkBase,[r,i],n)},e.prototype.unlinkBase=function(e){var t=Ie(e),n=this.getLink(t);if(!n)throw Z(U,"unlink",e);if(n.length)throw Error("Dir not empty...");this.deleteLink(n);var r=n.getNode();r.nlink--,r.nlink<=0&&this.deleteNode(r)},e.prototype.unlinkSync=function(e){var t=Ce(e);this.unlinkBase(t)},e.prototype.unlink=function(e,t){var n=Ce(e);this.wrapAsync(this.unlinkBase,[n],t)},e.prototype.symlinkBase=function(e,t){var n=Ie(t),r=this.getLinkParent(n);if(!r)throw Z(U,"symlink",e,t);var i=n[n.length-1];if(r.getChild(i))throw Z(W,"symlink",e,t);var o=r.createChild(i);return o.getNode().makeSymlink(Ie(e)),o},e.prototype.symlinkSync=function(e,t,n){var r=Ce(e),i=Ce(t);this.symlinkBase(r,i)},e.prototype.symlink=function(e,t,n,r){var i=ne("function"===typeof n?n:r),o=Ce(e),s=Ce(t);this.wrapAsync(this.symlinkBase,[o,s],i)},e.prototype.realpathBase=function(e,t){var n=Ie(e),r=this.getResolvedLink(n);if(!r)throw Z(U,"realpath",e);return b.strToEncoding(r.getPath(),t)},e.prototype.realpathSync=function(e,t){return this.realpathBase(Ce(e),fe(t).encoding)},e.prototype.realpath=function(e,t,n){var r=he(t,n),i=r[0],o=r[1],s=Ce(e);this.wrapAsync(this.realpathBase,[s,i.encoding],o)},e.prototype.lstatBase=function(e,t){void 0===t&&(t=!1);var n=this.getLink(Ie(e));if(!n)throw Z(U,"lstat",e);return c.default.build(n.getNode(),t)},e.prototype.lstatSync=function(e,t){return this.lstatBase(Ce(e),Ee(t).bigint)},e.prototype.lstat=function(e,t,n){var r=we(t,n),i=r[0],o=r[1];this.wrapAsync(this.lstatBase,[Ce(e),i.bigint],o)},e.prototype.statBase=function(e,t){void 0===t&&(t=!1);var n=this.getResolvedLink(Ie(e));if(!n)throw Z(U,"stat",e);return c.default.build(n.getNode(),t)},e.prototype.statSync=function(e,t){return this.statBase(Ce(e),Ee(t).bigint)},e.prototype.stat=function(e,t,n){var r=we(t,n),i=r[0],o=r[1];this.wrapAsync(this.statBase,[Ce(e),i.bigint],o)},e.prototype.fstatBase=function(e,t){void 0===t&&(t=!1);var n=this.getFileByFd(e);if(!n)throw Z(V,"fstat");return c.default.build(n.node,t)},e.prototype.fstatSync=function(e,t){return this.fstatBase(e,Ee(t).bigint)},e.prototype.fstat=function(e,t,n){var r=we(t,n),i=r[0],o=r[1];this.wrapAsync(this.fstatBase,[e,i.bigint],o)},e.prototype.renameBase=function(e,t){var n=this.getLink(Ie(e));if(!n)throw Z(U,"rename",e,t);var r=Ie(t),o=this.getLinkParent(r);if(!o)throw Z(U,"rename",e,t);var s=n.parent;s&&s.deleteChild(n);var a=r[r.length-1];n.steps=i(o.steps,[a]),o.setChild(n.getName(),n)},e.prototype.renameSync=function(e,t){var n=Ce(e),r=Ce(t);this.renameBase(n,r)},e.prototype.rename=function(e,t,n){var r=Ce(e),i=Ce(t);this.wrapAsync(this.renameBase,[r,i],n)},e.prototype.existsBase=function(e){return!!this.statBase(e)},e.prototype.existsSync=function(e){try{return this.existsBase(Ce(e))}catch(t){return!1}},e.prototype.exists=function(e,t){var n=this,r=Ce(e);if("function"!==typeof t)throw Error(F.CB);p.default((function(){try{t(n.existsBase(r))}catch(e){t(!1)}}))},e.prototype.accessBase=function(e,t){this.getLinkOrThrow(e,"access")},e.prototype.accessSync=function(e,t){void 0===t&&(t=P);var n=Ce(e);t|=0,this.accessBase(n,t)},e.prototype.access=function(e,t,n){var r,i=P;"function"!==typeof t?(i=0|t,r=ne(n)):r=t;var o=Ce(e);this.wrapAsync(this.accessBase,[o,i],r)},e.prototype.appendFileSync=function(e,t,n){void 0===n&&(n=ue);var r=de(n);r.flag&&!Le(e)||(r.flag="a"),this.writeFileSync(e,t,r)},e.prototype.appendFile=function(e,t,n,r){var i=pe(n,r),o=i[0],s=i[1];o.flag&&!Le(e)||(o.flag="a"),this.writeFile(e,t,o,s)},e.prototype.readdirBase=function(e,t){var n=Ie(e),r=this.getResolvedLink(n);if(!r)throw Z(U,"readdir",e);if(!r.getNode().isDirectory())throw Z(G,"scandir",e);if(t.withFileTypes){var i=[];for(var o in r.children){var s=r.getChild(o);s&&i.push(u.default.build(s,t.encoding))}return j||"buffer"===t.encoding||i.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),i}var a=[];for(var l in r.children)a.push(b.strToEncoding(l,t.encoding));return j||"buffer"===t.encoding||a.sort(),a},e.prototype.readdirSync=function(e,t){var n=ve(t),r=Ce(e);return this.readdirBase(r,n)},e.prototype.readdir=function(e,t,n){var r=ye(t,n),i=r[0],o=r[1],s=Ce(e);this.wrapAsync(this.readdirBase,[s,i],o)},e.prototype.readlinkBase=function(e,t){var n=this.getLinkOrThrow(e,"readlink").getNode();if(!n.isSymlink())throw Z(H,"readlink",e);var r=o+n.symlink.join(o);return b.strToEncoding(r,t)},e.prototype.readlinkSync=function(e,t){var n=oe(t),r=Ce(e);return this.readlinkBase(r,n.encoding)},e.prototype.readlink=function(e,t,n){var r=se(t,n),i=r[0],o=r[1],s=Ce(e);this.wrapAsync(this.readlinkBase,[s,i.encoding],o)},e.prototype.fsyncBase=function(e){this.getFileByFdOrThrow(e,"fsync")},e.prototype.fsyncSync=function(e){this.fsyncBase(e)},e.prototype.fsync=function(e,t){this.wrapAsync(this.fsyncBase,[e],t)},e.prototype.fdatasyncBase=function(e){this.getFileByFdOrThrow(e,"fdatasync")},e.prototype.fdatasyncSync=function(e){this.fdatasyncBase(e)},e.prototype.fdatasync=function(e,t){this.wrapAsync(this.fdatasyncBase,[e],t)},e.prototype.ftruncateBase=function(e,t){this.getFileByFdOrThrow(e,"ftruncate").truncate(t)},e.prototype.ftruncateSync=function(e,t){this.ftruncateBase(e,t)},e.prototype.ftruncate=function(e,t,n){var r="number"===typeof t?t:0,i=ne("number"===typeof t?n:t);this.wrapAsync(this.ftruncateBase,[e,r],i)},e.prototype.truncateBase=function(e,t){var n=this.openSync(e,"r+");try{this.ftruncateSync(n,t)}finally{this.closeSync(n)}},e.prototype.truncateSync=function(e,t){if(Le(e))return this.ftruncateSync(e,t);this.truncateBase(e,t)},e.prototype.truncate=function(e,t,n){var r="number"===typeof t?t:0,i=ne("number"===typeof t?n:t);if(Le(e))return this.ftruncate(e,r,i);this.wrapAsync(this.truncateBase,[e,r],i)},e.prototype.futimesBase=function(e,t,n){var r=this.getFileByFdOrThrow(e,"futimes").node;r.atime=new Date(1e3*t),r.mtime=new Date(1e3*n)},e.prototype.futimesSync=function(e,t,n){this.futimesBase(e,Me(t),Me(n))},e.prototype.futimes=function(e,t,n,r){this.wrapAsync(this.futimesBase,[e,Me(t),Me(n)],r)},e.prototype.utimesBase=function(e,t,n){var r=this.openSync(e,"r+");try{this.futimesBase(r,t,n)}finally{this.closeSync(r)}},e.prototype.utimesSync=function(e,t,n){this.utimesBase(Ce(e),Me(t),Me(n))},e.prototype.utimes=function(e,t,n,r){this.wrapAsync(this.utimesBase,[Ce(e),Me(t),Me(n)],r)},e.prototype.mkdirBase=function(e,t){var n=Ie(e);if(!n.length)throw Z(K,"mkdir",e);var r=this.getLinkParentAsDirOrThrow(e,"mkdir"),i=n[n.length-1];if(r.getChild(i))throw Z(W,"mkdir",e);r.createChild(i,this.createNode(!0,t))},e.prototype.mkdirpBase=function(e,t){for(var n=Ie(e),r=this.root,i=0;i<n.length;i++){var o=n[i];if(!r.getNode().isDirectory())throw Z(G,"mkdir",r.getPath());var s=r.getChild(o);if(s){if(!s.getNode().isDirectory())throw Z(G,"mkdir",s.getPath());r=s}else r=r.createChild(o,this.createNode(!0,t))}},e.prototype.mkdirSync=function(e,t){var n=ge(t),r=Ae(n.mode,511),i=Ce(e);n.recursive?this.mkdirpBase(i,r):this.mkdirBase(i,r)},e.prototype.mkdir=function(e,t,n){var r=ge(t),i=ne("function"===typeof t?t:n),o=Ae(r.mode,511),s=Ce(e);r.recursive?this.wrapAsync(this.mkdirpBase,[s,o],i):this.wrapAsync(this.mkdirBase,[s,o],i)},e.prototype.mkdirpSync=function(e,t){this.mkdirSync(e,{mode:t,recursive:!0})},e.prototype.mkdirp=function(e,t,n){var r="function"===typeof t?void 0:t,i=ne("function"===typeof t?t:n);this.mkdir(e,{mode:r,recursive:!0},i)},e.prototype.mkdtempBase=function(e,t,n){void 0===n&&(n=5);var r=e+this.genRndStr();try{return this.mkdirBase(r,511),b.strToEncoding(r,t)}catch(i){if(i.code===W){if(n>1)return this.mkdtempBase(e,t,n-1);throw Error("Could not create temp dir.")}throw i}},e.prototype.mkdtempSync=function(e,t){var n=oe(t).encoding;if(!e||"string"!==typeof e)throw new TypeError("filename prefix is required");return Pe(e),this.mkdtempBase(e,n)},e.prototype.mkdtemp=function(e,t,n){var r=se(t,n),i=r[0].encoding,o=r[1];if(!e||"string"!==typeof e)throw new TypeError("filename prefix is required");Pe(e)&&this.wrapAsync(this.mkdtempBase,[e,i],o)},e.prototype.rmdirBase=function(e,t){var n=be(t),r=this.getLinkAsDirOrThrow(e,"rmdir");if(r.length&&!n.recursive)throw Z(Q,"rmdir",e);this.deleteLink(r)},e.prototype.rmdirSync=function(e,t){this.rmdirBase(Ce(e),t)},e.prototype.rmdir=function(e,t,n){var r=be(t),i=ne("function"===typeof t?t:n);this.wrapAsync(this.rmdirBase,[Ce(e),r],i)},e.prototype.fchmodBase=function(e,t){this.getFileByFdOrThrow(e,"fchmod").chmod(t)},e.prototype.fchmodSync=function(e,t){this.fchmodBase(e,Ae(t))},e.prototype.fchmod=function(e,t,n){this.wrapAsync(this.fchmodBase,[e,Ae(t)],n)},e.prototype.chmodBase=function(e,t){var n=this.openSync(e,"r+");try{this.fchmodBase(n,t)}finally{this.closeSync(n)}},e.prototype.chmodSync=function(e,t){var n=Ae(t),r=Ce(e);this.chmodBase(r,n)},e.prototype.chmod=function(e,t,n){var r=Ae(t),i=Ce(e);this.wrapAsync(this.chmodBase,[i,r],n)},e.prototype.lchmodBase=function(e,t){var n=this.openBase(e,T,0,!1);try{this.fchmodBase(n,t)}finally{this.closeSync(n)}},e.prototype.lchmodSync=function(e,t){var n=Ae(t),r=Ce(e);this.lchmodBase(r,n)},e.prototype.lchmod=function(e,t,n){var r=Ae(t),i=Ce(e);this.wrapAsync(this.lchmodBase,[i,r],n)},e.prototype.fchownBase=function(e,t,n){this.getFileByFdOrThrow(e,"fchown").chown(t,n)},e.prototype.fchownSync=function(e,t,n){je(t),Fe(n),this.fchownBase(e,t,n)},e.prototype.fchown=function(e,t,n,r){je(t),Fe(n),this.wrapAsync(this.fchownBase,[e,t,n],r)},e.prototype.chownBase=function(e,t,n){this.getResolvedLinkOrThrow(e,"chown").getNode().chown(t,n)},e.prototype.chownSync=function(e,t,n){je(t),Fe(n),this.chownBase(Ce(e),t,n)},e.prototype.chown=function(e,t,n,r){je(t),Fe(n),this.wrapAsync(this.chownBase,[Ce(e),t,n],r)},e.prototype.lchownBase=function(e,t,n){this.getLinkOrThrow(e,"lchown").getNode().chown(t,n)},e.prototype.lchownSync=function(e,t,n){je(t),Fe(n),this.lchownBase(Ce(e),t,n)},e.prototype.lchown=function(e,t,n,r){je(t),Fe(n),this.wrapAsync(this.lchownBase,[Ce(e),t,n],r)},e.prototype.watchFile=function(e,t,n){var r=Ce(e),i=t,o=n;if("function"===typeof i&&(o=t,i=null),"function"!==typeof o)throw Error('"watchFile()" requires a listener function');var s=5007,a=!0;i&&"object"===typeof i&&("number"===typeof i.interval&&(s=i.interval),"boolean"===typeof i.persistent&&(a=i.persistent));var l=this.statWatchers[r];return l||((l=new this.StatWatcher).start(r,a,s),this.statWatchers[r]=l),l.addListener("change",o),l},e.prototype.unwatchFile=function(e,t){var n=Ce(e),r=this.statWatchers[n];r&&("function"===typeof t?r.removeListener("change",t):r.removeAllListeners("change"),0===r.listenerCount("change")&&(r.stop(),delete this.statWatchers[n]))},e.prototype.createReadStream=function(e,t){return new this.ReadStream(e,t)},e.prototype.createWriteStream=function(e,t){return new this.WriteStream(e,t)},e.prototype.watch=function(e,t,n){var r=Ce(e),i=t;"function"===typeof t&&(n=t,i=null);var o=oe(i),s=o.persistent,a=o.recursive,l=o.encoding;void 0===s&&(s=!0),void 0===a&&(a=!1);var c=new this.FSWatcher;return c.start(r,s,a,l),n&&c.addListener("change",n),c},e.fd=2147483647,e}();function Ue(e){e.emit("stop")}t.Volume=Be;var Ve,He=function(e){function t(t){var n=e.call(this)||this;return n.onInterval=function(){try{var e=n.vol.statSync(n.filename);n.hasChanged(e)&&(n.emit("change",e,n.prev),n.prev=e)}finally{n.loop()}},n.vol=t,n}return r(t,e),t.prototype.loop=function(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)},t.prototype.hasChanged=function(e){return e.mtimeMs>this.prev.mtimeMs||e.nlink!==this.prev.nlink},t.prototype.start=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=5007),this.filename=Ce(e),this.setTimeout=t?setTimeout:h.default,this.interval=n,this.prev=this.vol.statSync(this.filename),this.loop()},t.prototype.stop=function(){clearTimeout(this.timeoutRef),f.default.nextTick(Ue,this)},t}(_.EventEmitter);function ze(e,t,n){if(!(this instanceof ze))return new ze(e,t,n);if(this._vol=e,void 0===(n=y({},ee(n,{}))).highWaterMark&&(n.highWaterMark=65536),m.Readable.call(this,n),this.path=Ce(t),this.fd=void 0===n.fd?null:n.fd,this.flags=void 0===n.flags?"r":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=n.start,this.end=n.end,this.autoClose=void 0===n.autoClose||n.autoClose,this.pos=void 0,this.bytesRead=0,void 0!==this.start){if("number"!==typeof this.start)throw new TypeError('"start" option must be a Number');if(void 0===this.end)this.end=1/0;else if("number"!==typeof this.end)throw new TypeError('"end" option must be a Number');if(this.start>this.end)throw new Error('"start" option must be <= "end" option');this.pos=this.start}"number"!==typeof this.fd&&this.open(),this.on("end",(function(){this.autoClose&&this.destroy&&this.destroy()}))}function $e(e){this.close()}function We(e,t,n){if(!(this instanceof We))return new We(e,t,n);if(this._vol=e,n=y({},ee(n,{})),m.Writable.call(this,n),this.path=Ce(t),this.fd=void 0===n.fd?null:n.fd,this.flags=void 0===n.flags?"w":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=n.start,this.autoClose=void 0===n.autoClose||!!n.autoClose,this.pos=void 0,this.bytesWritten=0,void 0!==this.start){if("number"!==typeof this.start)throw new TypeError('"start" option must be a Number');if(this.start<0)throw new Error('"start" must be >= zero');this.pos=this.start}n.encoding&&this.setDefaultEncoding(n.encoding),"number"!==typeof this.fd&&this.open(),this.once("finish",(function(){this.autoClose&&this.close()}))}t.StatWatcher=He,S.inherits(ze,m.Readable),t.ReadStream=ze,ze.prototype.open=function(){var e=this;this._vol.open(this.path,this.flags,this.mode,(function(t,n){if(t)return e.autoClose&&e.destroy&&e.destroy(),void e.emit("error",t);e.fd=n,e.emit("open",n),e.read()}))},ze.prototype._read=function(e){if("number"!==typeof this.fd)return this.once("open",(function(){this._read(e)}));if(!this.destroyed){var t;(!Ve||Ve.length-Ve.used<128)&&(t=this._readableState.highWaterMark,(Ve=d.bufferAllocUnsafe(t)).used=0);var n=Ve,r=Math.min(Ve.length-Ve.used,e),i=Ve.used;if(void 0!==this.pos&&(r=Math.min(this.end-this.pos+1,r)),r<=0)return this.push(null);var o=this;this._vol.read(this.fd,Ve,Ve.used,r,this.pos,(function(e,t){if(e)o.autoClose&&o.destroy&&o.destroy(),o.emit("error",e);else{var r=null;t>0&&(o.bytesRead+=t,r=n.slice(i,i+t)),o.push(r)}})),void 0!==this.pos&&(this.pos+=r),Ve.used+=r}},ze.prototype._destroy=function(e,t){this.close((function(n){t(e||n)}))},ze.prototype.close=function(e){var t=this;if(e&&this.once("close",e),this.closed||"number"!==typeof this.fd)return"number"!==typeof this.fd?void this.once("open",$e):f.default.nextTick((function(){return t.emit("close")}));this.closed=!0,this._vol.close(this.fd,(function(e){e?t.emit("error",e):t.emit("close")})),this.fd=null},S.inherits(We,m.Writable),t.WriteStream=We,We.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(e,t){if(e)return this.autoClose&&this.destroy&&this.destroy(),void this.emit("error",e);this.fd=t,this.emit("open",t)}.bind(this))},We.prototype._write=function(e,t,n){if(!(e instanceof d.Buffer))return this.emit("error",new Error("Invalid data"));if("number"!==typeof this.fd)return this.once("open",(function(){this._write(e,t,n)}));var r=this;this._vol.write(this.fd,e,0,e.length,this.pos,(function(e,t){if(e)return r.autoClose&&r.destroy&&r.destroy(),n(e);r.bytesWritten+=t,n()})),void 0!==this.pos&&(this.pos+=e.length)},We.prototype._writev=function(e,t){if("number"!==typeof this.fd)return this.once("open",(function(){this._writev(e,t)}));for(var n=this,r=e.length,i=new Array(r),o=0,s=0;s<r;s++){var a=e[s].chunk;i[s]=a,o+=a.length}var l=d.Buffer.concat(i);this._vol.write(this.fd,l,0,l.length,this.pos,(function(e,r){if(e)return n.destroy&&n.destroy(),t(e);n.bytesWritten+=r,t()})),void 0!==this.pos&&(this.pos+=o)},We.prototype._destroy=ze.prototype._destroy,We.prototype.close=ze.prototype.close,We.prototype.destroySoon=We.prototype.end;var Ge=function(e){function t(t){var n=e.call(this)||this;return n._filename="",n._filenameEncoded="",n._recursive=!1,n._encoding=b.ENCODING_UTF8,n._onNodeChange=function(){n._emit("change")},n._onParentChild=function(e){e.getName()===n._getName()&&n._emit("rename")},n._emit=function(e){n.emit("change",e,n._filenameEncoded)},n._persist=function(){n._timer=setTimeout(n._persist,1e6)},n._vol=t,n}return r(t,e),t.prototype._getName=function(){return this._steps[this._steps.length-1]},t.prototype.start=function(e,t,n,r){void 0===t&&(t=!0),void 0===n&&(n=!1),void 0===r&&(r=b.ENCODING_UTF8),this._filename=Ce(e),this._steps=Ie(this._filename),this._filenameEncoded=b.strToEncoding(this._filename),this._recursive=n,this._encoding=r;try{this._link=this._vol.getLinkOrThrow(this._filename,"FSWatcher")}catch(s){var i=new Error("watch "+this._filename+" "+s.code);throw i.code=s.code,i.errno=s.code,i}this._link.getNode().on("change",this._onNodeChange),this._link.on("child:add",this._onNodeChange),this._link.on("child:delete",this._onNodeChange);var o=this._link.parent;o&&(o.setMaxListeners(o.getMaxListeners()+1),o.on("child:delete",this._onParentChild)),t&&this._persist()},t.prototype.close=function(){clearTimeout(this._timer),this._link.getNode().removeListener("change",this._onNodeChange);var e=this._link.parent;e&&e.removeListener("child:delete",this._onParentChild)},t}(_.EventEmitter);t.FSWatcher=Ge},17084:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.APIReferenceExplorer=void 0;const i=r(n(72243)),o=r(n(80852)),s=n(80271),a=n(87065),l=r(n(82023));t.APIReferenceExplorer=function({apiTree:e,selectedAPIName:t,className:n,getIcon:r}){return i.default.createElement("div",{className:(0,o.default)(l.default.apiReferenceExplorer,n)},i.default.createElement(s.FileTree,{getHref:e=>{const t=e.id,n=t.includes("_Internals"),r=n?t.replace("_Internals/",""):t,i=n?r:r.split("/")[1];return(0,a.useUpdatedUrlFromQuery)({selectedAPI:i})},files:e,selected:t,getIcon:r}))}},89238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APIReferenceExplorerProps=t.APIReferenceExplorer=void 0;var r=n(17084);Object.defineProperty(t,"APIReferenceExplorer",{enumerable:!0,get:function(){return r.APIReferenceExplorer}}),Object.defineProperty(t,"APIReferenceExplorerProps",{enumerable:!0,get:function(){return r.APIReferenceExplorerProps}})},87065:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdatedUrlFromQuery=t.APIRefQueryParams=t.useAPIRefParam=void 0;var r=n(83821);Object.defineProperty(t,"useAPIRefParam",{enumerable:!0,get:function(){return r.useAPIRefParam}}),Object.defineProperty(t,"APIRefQueryParams",{enumerable:!0,get:function(){return r.APIRefQueryParams}}),Object.defineProperty(t,"useUpdatedUrlFromQuery",{enumerable:!0,get:function(){return r.useUpdatedUrlFromQuery}})},83821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdatedUrlFromQuery=t.useAPIRefParam=void 0;const r=n(31192),i=n(31333);t.useAPIRefParam=function(e){const t=(0,r.useQuery)().get(e);return null!==t&&void 0!==t?t:void 0},t.useUpdatedUrlFromQuery=function(e){const t=(0,r.useQuery)(),n=(0,i.useLocation)()||{pathname:"/"},o=Object.fromEntries(t.entries()),s=Object.assign(Object.assign({},o),e),a=new URLSearchParams(s).toString();return`${n.pathname}?${a}`}},50374:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAPI=void 0;var r=n(49317);Object.defineProperty(t,"useAPI",{enumerable:!0,get:function(){return r.useAPI}})},49317:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.useAPI=void 0;const i=n(41815),o=n(17642),s=n(69819),a=o.gql`
1
+ /*! For license information please see 1.e6290601.js.LICENSE.txt */
2
+ (self.webpackChunk_teambit_legacy=self.webpackChunk_teambit_legacy||[]).push([[1],{7430:function(e,t,n){!function(e,t,n,r){"use strict";const i=0,o=1,s=2,a=3,l=4,c=-1;let u;e.addSegment=void 0,e.addMapping=void 0,e.maybeAddSegment=void 0,e.maybeAddMapping=void 0,e.setSourceContent=void 0,e.toDecodedMap=void 0,e.toEncodedMap=void 0,e.fromMap=void 0,e.allMappings=void 0;class d{constructor({file:e,sourceRoot:n}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n}}function p(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}function f(e,t){let n=e.length;for(let r=n-1;r>=0&&!(t>=e[r][i]);n=r--);return n}function h(e,t,n){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=n}function m(e){const{length:t}=e;let n=t;for(let r=n-1;r>=0&&!(e[r].length>0);n=r,r--);n<t&&(e.length=n)}function g(e,n){for(let r=0;r<n.length;r++)t.put(e,n[r])}function _(e,t){return 0===t||1===e[t-1].length}function b(e,t,n,r,i,u){if(0===t)return!1;const d=e[t-1];return 1!==d.length&&n===d[o]&&r===d[s]&&i===d[a]&&u===(5===d.length?d[l]:c)}function v(e,t,n){const{generated:r,source:i,original:o,name:s,content:a}=n;if(!i)return u(e,t,r.line-1,r.column,null,null,null,null,null);const l=i;return u(e,t,r.line-1,r.column,l,o.line-1,o.column,s,a)}e.addSegment=(e,t,n,r,i,o,s,a)=>u(!1,e,t,n,r,i,o,s,a),e.maybeAddSegment=(e,t,n,r,i,o,s,a)=>u(!0,e,t,n,r,i,o,s,a),e.addMapping=(e,t)=>v(!1,e,t),e.maybeAddMapping=(e,t)=>v(!0,e,t),e.setSourceContent=(e,n,r)=>{const{_sources:i,_sourcesContent:o}=e;o[t.put(i,n)]=r},e.toDecodedMap=e=>{const{file:t,sourceRoot:n,_mappings:r,_sources:i,_sourcesContent:o,_names:s}=e;return m(r),{version:3,file:t||void 0,names:s.array,sourceRoot:n||void 0,sources:i.array,sourcesContent:o,mappings:r}},e.toEncodedMap=t=>{const r=e.toDecodedMap(t);return Object.assign(Object.assign({},r),{mappings:n.encode(r.mappings)})},e.allMappings=e=>{const t=[],{_mappings:n,_sources:r,_names:c}=e;for(let u=0;u<n.length;u++){const e=n[u];for(let n=0;n<e.length;n++){const d=e[n],p={line:u+1,column:d[i]};let f,h,m;1!==d.length&&(f=r.array[d[o]],h={line:d[s]+1,column:d[a]},5===d.length&&(m=c.array[d[l]])),t.push({generated:p,source:f,original:h,name:m})}}return t},e.fromMap=e=>{const t=new r.TraceMap(e),n=new d({file:t.file,sourceRoot:t.sourceRoot});return g(n._names,t.names),g(n._sources,t.sources),n._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),n._mappings=r.decodedMappings(t),n},u=(e,n,r,i,o,s,a,l,u)=>{const{_mappings:d,_sources:m,_sourcesContent:g,_names:v}=n,y=p(d,r),S=f(y,i);if(!o){if(e&&_(y,S))return;return h(y,S,[i])}const E=t.put(m,o),w=l?t.put(v,l):c;if(E===g.length&&(g[E]=null!==u&&void 0!==u?u:null),!e||!b(y,S,E,s,a,w))return h(y,S,l?[i,E,s,a,w]:[i,E,s,a])},e.GenMapping=d,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(25522),n(82958),n(79041))},82958:function(e,t){!function(e){"use strict";const t=",".charCodeAt(0),n=";".charCodeAt(0),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),o=new Uint8Array(128);for(let m=0;m<r.length;m++){const e=r.charCodeAt(m);i[m]=e,o[e]=m}const s="undefined"!==typeof TextDecoder?new TextDecoder:"undefined"!==typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};function a(e){const t=new Int32Array(5),n=[];let r=0;do{const i=l(e,r),o=[];let s=!0,a=0;t[0]=0;for(let n=r;n<i;n++){let r;n=c(e,n,t,0);const l=t[0];l<a&&(s=!1),a=l,u(e,n,i)?(n=c(e,n,t,1),n=c(e,n,t,2),n=c(e,n,t,3),u(e,n,i)?(n=c(e,n,t,4),r=[l,t[1],t[2],t[3],t[4]]):r=[l,t[1],t[2],t[3]]):r=[l],o.push(r)}s||d(o),n.push(o),r=i+1}while(r<=e.length);return n}function l(e,t){const n=e.indexOf(";",t);return-1===n?e.length:n}function c(e,t,n,r){let i=0,s=0,a=0;do{const n=e.charCodeAt(t++);a=o[n],i|=(31&a)<<s,s+=5}while(32&a);const l=1&i;return i>>>=1,l&&(i=-2147483648|-i),n[r]+=i,t}function u(e,n,r){return!(n>=r)&&e.charCodeAt(n)!==t}function d(e){e.sort(p)}function p(e,t){return e[0]-t[0]}function f(e){const r=new Int32Array(5),i=16384,o=i-36,a=new Uint8Array(i),l=a.subarray(0,o);let c=0,u="";for(let d=0;d<e.length;d++){const p=e[d];if(d>0&&(c===i&&(u+=s.decode(a),c=0),a[c++]=n),0!==p.length){r[0]=0;for(let e=0;e<p.length;e++){const n=p[e];c>o&&(u+=s.decode(l),a.copyWithin(0,o,c),c-=o),e>0&&(a[c++]=t),c=h(a,c,r,n,0),1!==n.length&&(c=h(a,c,r,n,1),c=h(a,c,r,n,2),c=h(a,c,r,n,3),4!==n.length&&(c=h(a,c,r,n,4)))}}}return u+s.decode(a.subarray(0,c))}function h(e,t,n,r,o){const s=r[o];let a=s-n[o];n[o]=s,a=a<0?-a<<1|1:a<<1;do{let n=31&a;a>>>=5,a>0&&(n|=32),e[t++]=i[n]}while(a>0);return t}e.decode=a,e.encode=f,Object.defineProperty(e,"__esModule",{value:!0})}(t)},27524:function(e){e.exports=function(){"use strict";const e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var r;function i(t){return e.test(t)}function o(e){return e.startsWith("//")}function s(e){return e.startsWith("/")}function a(e){return e.startsWith("file:")}function l(e){return/^[.?#]/.test(e)}function c(e){const n=t.exec(e);return d(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function u(e){const t=n.exec(e),r=t[2];return d("file:","",t[1]||"","",s(r)?r:"/"+r,t[3]||"",t[4]||"")}function d(e,t,n,i,o,s,a){return{scheme:e,user:t,host:n,port:i,path:o,query:s,hash:a,type:r.Absolute}}function p(e){if(o(e)){const t=c("http:"+e);return t.scheme="",t.type=r.SchemeRelative,t}if(s(e)){const t=c("http://foo.com"+e);return t.scheme="",t.host="",t.type=r.AbsolutePath,t}if(a(e))return u(e);if(i(e))return c(e);const t=c("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?r.Query:e.startsWith("#")?r.Hash:r.RelativePath:r.Empty,t}function f(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function h(e,t){m(t,t.type),"/"===e.path?e.path=t.path:e.path=f(t.path)+e.path}function m(e,t){const n=t<=r.RelativePath,i=e.path.split("/");let o=1,s=0,a=!1;for(let r=1;r<i.length;r++){const e=i[r];e?(a=!1,"."!==e&&(".."!==e?(i[o++]=e,s++):s?(a=!0,s--,o--):n&&(i[o++]=e))):a=!0}let l="";for(let r=1;r<o;r++)l+="/"+i[r];(!l||a&&!l.endsWith("/.."))&&(l+="/"),e.path=l}function g(e,t){if(!e&&!t)return"";const n=p(e);let i=n.type;if(t&&i!==r.Absolute){const e=p(t),o=e.type;switch(i){case r.Empty:n.hash=e.hash;case r.Hash:n.query=e.query;case r.Query:case r.RelativePath:h(n,e);case r.AbsolutePath:n.user=e.user,n.host=e.host,n.port=e.port;case r.SchemeRelative:n.scheme=e.scheme}o>i&&(i=o)}m(n,i);const o=n.query+n.hash;switch(i){case r.Hash:case r.Query:return o;case r.RelativePath:{const r=n.path.slice(1);return r?l(t||e)&&!l(r)?"./"+r+o:r+o:o||"."}case r.AbsolutePath:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}return function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"}(r||(r={})),g}()},25522:function(e,t){!function(e){"use strict";e.get=void 0,e.put=void 0,e.pop=void 0;class t{constructor(){this._indexes={__proto__:null},this.array=[]}}e.get=(e,t)=>e._indexes[t],e.put=(t,n)=>{const r=e.get(t,n);if(void 0!==r)return r;const{array:i,_indexes:o}=t;return o[n]=i.push(n)-1},e.pop=e=>{const{array:t,_indexes:n}=e;0!==t.length&&(n[t.pop()]=void 0)},e.SetArray=t,Object.defineProperty(e,"__esModule",{value:!0})}(t)},24151:function(e,t){!function(e){"use strict";const t=",".charCodeAt(0),n=";".charCodeAt(0),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(64),o=new Uint8Array(128);for(let m=0;m<r.length;m++){const e=r.charCodeAt(m);i[m]=e,o[e]=m}const s="undefined"!==typeof TextDecoder?new TextDecoder:"undefined"!==typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}};function a(e){const t=new Int32Array(5),n=[];let r=0;do{const i=l(e,r),o=[];let s=!0,a=0;t[0]=0;for(let n=r;n<i;n++){let r;n=c(e,n,t,0);const l=t[0];l<a&&(s=!1),a=l,u(e,n,i)?(n=c(e,n,t,1),n=c(e,n,t,2),n=c(e,n,t,3),u(e,n,i)?(n=c(e,n,t,4),r=[l,t[1],t[2],t[3],t[4]]):r=[l,t[1],t[2],t[3]]):r=[l],o.push(r)}s||d(o),n.push(o),r=i+1}while(r<=e.length);return n}function l(e,t){const n=e.indexOf(";",t);return-1===n?e.length:n}function c(e,t,n,r){let i=0,s=0,a=0;do{const n=e.charCodeAt(t++);a=o[n],i|=(31&a)<<s,s+=5}while(32&a);const l=1&i;return i>>>=1,l&&(i=-2147483648|-i),n[r]+=i,t}function u(e,n,r){return!(n>=r)&&e.charCodeAt(n)!==t}function d(e){e.sort(p)}function p(e,t){return e[0]-t[0]}function f(e){const r=new Int32Array(5),i=16384,o=i-36,a=new Uint8Array(i),l=a.subarray(0,o);let c=0,u="";for(let d=0;d<e.length;d++){const p=e[d];if(d>0&&(c===i&&(u+=s.decode(a),c=0),a[c++]=n),0!==p.length){r[0]=0;for(let e=0;e<p.length;e++){const n=p[e];c>o&&(u+=s.decode(l),a.copyWithin(0,o,c),c-=o),e>0&&(a[c++]=t),c=h(a,c,r,n,0),1!==n.length&&(c=h(a,c,r,n,1),c=h(a,c,r,n,2),c=h(a,c,r,n,3),4!==n.length&&(c=h(a,c,r,n,4)))}}}return u+s.decode(a.subarray(0,c))}function h(e,t,n,r,o){const s=r[o];let a=s-n[o];n[o]=s,a=a<0?-a<<1|1:a<<1;do{let n=31&a;a>>>=5,a>0&&(n|=32),e[t++]=i[n]}while(a>0);return t}e.decode=a,e.encode=f,Object.defineProperty(e,"__esModule",{value:!0})}(t)},79041:function(e,t,n){!function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var i=r(n);function o(e,t){return t&&!t.endsWith("/")&&(t+="/"),i.default(e,t)}function s(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const a=0,l=1,c=2,u=3,d=4,p=1,f=2;function h(e,t){const n=m(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=m(e,r+1))e[r]=_(e[r],t);return e}function m(e,t){for(let n=t;n<e.length;n++)if(!g(e[n]))return n;return e.length}function g(e){for(let t=1;t<e.length;t++)if(e[t][a]<e[t-1][a])return!1;return!0}function _(e,t){return t||(e=e.slice()),e.sort(b)}function b(e,t){return e[a]-t[a]}let v=!1;function y(e,t,n,r){for(;n<=r;){const i=n+(r-n>>1),o=e[i][a]-t;if(0===o)return v=!0,i;o<0?n=i+1:r=i-1}return v=!1,n-1}function S(e,t,n){for(let r=n+1;r<e.length&&e[r][a]===t;n=r++);return n}function E(e,t,n){for(let r=n-1;r>=0&&e[r][a]===t;n=r--);return n}function w(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function C(e,t,n,r){const{lastKey:i,lastNeedle:o,lastIndex:s}=n;let l=0,c=e.length-1;if(r===i){if(t===o)return v=-1!==s&&e[s][a]===t,s;t>=o?l=-1===s?0:s:c=s}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=y(e,t,l,c)}function O(e,t){const n=t.map(N);for(let r=0;r<e.length;r++){const i=e[r];for(let e=0;e<i.length;e++){const o=i[e];if(1===o.length)continue;const s=o[l],d=o[c],p=o[u],f=n[s],h=f[d]||(f[d]=[]),m=t[s],g=S(h,p,C(h,p,m,d));T(h,m.lastIndex=g+1,[p,r,o[a]])}}return n}function T(e,t,n){for(let r=e.length;r>t;r--)e[r]=e[r-1];e[t]=n}function N(){return{__proto__:null}}const I=function(t,n){const r="string"===typeof t?JSON.parse(t):t;if(!("sections"in r))return new j(r,n);const i=[],o=[],s=[],a=[];x(r,n,i,o,s,a,0,0,1/0,1/0);const l={version:3,file:r.file,names:a,sources:o,sourcesContent:s,mappings:i};return e.presortedDecodedMap(l)};function x(e,t,n,r,i,o,s,a,l,c){const{sections:u}=e;for(let d=0;d<u.length;d++){const{map:e,offset:p}=u[d];let f=l,h=c;if(d+1<u.length){const e=u[d+1].offset;f=Math.min(l,s+e.line),f===l?h=Math.min(c,a+e.column):f<l&&(h=a+e.column)}k(e,t,n,r,i,o,s+p.line,a+p.column,f,h)}}function k(t,n,r,i,o,s,p,f,h,m){if("sections"in t)return x(...arguments);const g=new j(t,n),_=i.length,b=s.length,v=e.decodedMappings(g),{resolvedSources:y,sourcesContent:S}=g;if(R(i,y),R(s,g.names),S)R(o,S);else for(let e=0;e<y.length;e++)o.push(null);for(let e=0;e<v.length;e++){const t=p+e;if(t>h)return;const n=P(r,t),i=0===e?f:0,o=v[e];for(let e=0;e<o.length;e++){const r=o[e],s=i+r[a];if(t===h&&s>=m)return;if(1===r.length){n.push([s]);continue}const p=_+r[l],f=r[c],g=r[u];n.push(4===r.length?[s,p,f,g]:[s,p,f,g,b+r[d]])}}}function R(e,t){for(let n=0;n<t.length;n++)e.push(t[n])}function P(e,t){for(let n=e.length;n<=t;n++)e[n]=[];return e[t]}const A="`line` must be greater than 0 (lines start at line 1)",L="`column` must be greater than or equal to 0 (columns start at column 0)",D=-1,M=1;e.encodedMappings=void 0,e.decodedMappings=void 0,e.traceSegment=void 0,e.originalPositionFor=void 0,e.generatedPositionFor=void 0,e.allGeneratedPositionsFor=void 0,e.eachMapping=void 0,e.sourceContentFor=void 0,e.presortedDecodedMap=void 0,e.decodedMap=void 0,e.encodedMap=void 0;class j{constructor(e,t){const n="string"===typeof e;if(!n&&e._decodedMemo)return e;const r=n?JSON.parse(e):e,{version:i,file:a,names:l,sourceRoot:c,sources:u,sourcesContent:d}=r;this.version=i,this.file=a,this.names=l,this.sourceRoot=c,this.sources=u,this.sourcesContent=d;const p=o(c||"",s(t));this.resolvedSources=u.map((e=>o(e||"",p)));const{mappings:f}=r;"string"===typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=h(f,n)),this._decodedMemo=w(),this._bySources=void 0,this._bySourceMemos=void 0}}function F(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t}}function B(e,t,n,r){return{source:e,line:t,column:n,name:r}}function U(e,t){return{line:e,column:t}}function V(e,t,n,r,i){let o=C(e,r,t,n);return v?o=(i===D?S:E)(e,r,o):i===D&&o++,-1===o||o===e.length?-1:o}function H(e,t,n,r,i){let o=V(e,t,n,r,M);if(v||i!==D||o++,-1===o||o===e.length)return[];const s=v?r:e[o][a];v||(o=E(e,s,o));const l=S(e,s,o),c=[];for(;o<=l;o++){const t=e[o];c.push(U(t[p]+1,t[f]))}return c}(()=>{function n(t,n,r,i,o,s){if(--r<0)throw new Error(A);if(i<0)throw new Error(L);const{sources:a,resolvedSources:l}=t;let c=a.indexOf(n);if(-1===c&&(c=l.indexOf(n)),-1===c)return s?[]:U(null,null);const u=(t._bySources||(t._bySources=O(e.decodedMappings(t),t._bySourceMemos=a.map(w))))[c][r];if(null==u)return s?[]:U(null,null);const d=t._bySourceMemos[c];if(s)return H(u,d,r,i,o);const h=V(u,d,r,i,o);if(-1===h)return U(null,null);const m=u[h];return U(m[p]+1,m[f])}e.encodedMappings=e=>{var n;return null!==(n=e._encoded)&&void 0!==n?n:e._encoded=t.encode(e._decoded)},e.decodedMappings=e=>e._decoded||(e._decoded=t.decode(e._encoded)),e.traceSegment=(t,n,r)=>{const i=e.decodedMappings(t);if(n>=i.length)return null;const o=i[n],s=V(o,t._decodedMemo,n,r,M);return-1===s?null:o[s]},e.originalPositionFor=(t,{line:n,column:r,bias:i})=>{if(--n<0)throw new Error(A);if(r<0)throw new Error(L);const o=e.decodedMappings(t);if(n>=o.length)return B(null,null,null,null);const s=o[n],a=V(s,t._decodedMemo,n,r,i||M);if(-1===a)return B(null,null,null,null);const p=s[a];if(1===p.length)return B(null,null,null,null);const{names:f,resolvedSources:h}=t;return B(h[p[l]],p[c]+1,p[u],5===p.length?f[p[d]]:null)},e.allGeneratedPositionsFor=(e,{source:t,line:r,column:i,bias:o})=>n(e,t,r,i,o||D,!0),e.generatedPositionFor=(e,{source:t,line:r,column:i,bias:o})=>n(e,t,r,i,o||M,!1),e.eachMapping=(t,n)=>{const r=e.decodedMappings(t),{names:i,resolvedSources:o}=t;for(let e=0;e<r.length;e++){const t=r[e];for(let r=0;r<t.length;r++){const s=t[r],a=e+1,l=s[0];let c=null,u=null,d=null,p=null;1!==s.length&&(c=o[s[1]],u=s[2]+1,d=s[3]),5===s.length&&(p=i[s[4]]),n({generatedLine:a,generatedColumn:l,source:c,originalLine:u,originalColumn:d,name:p})}}},e.sourceContentFor=(e,t)=>{const{sources:n,resolvedSources:r,sourcesContent:i}=e;if(null==i)return null;let o=n.indexOf(t);return-1===o&&(o=r.indexOf(t)),-1===o?null:i[o]},e.presortedDecodedMap=(e,t)=>{const n=new j(F(e,[]),t);return n._decoded=e.mappings,n},e.decodedMap=t=>F(t,e.decodedMappings(t)),e.encodedMap=t=>F(t,e.encodedMappings(t))})(),e.AnyMap=I,e.GREATEST_LOWER_BOUND=M,e.LEAST_UPPER_BOUND=D,e.TraceMap=j,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(24151),n(27524))},18618:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDXContext:()=>c,MDXProvider:()=>p,mdx:()=>g,useMDXComponents:()=>d,withMDXComponents:()=>u});var r=n(72243);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c=r.createContext({}),u=function(e){return function(t){var n=d(t.components);return r.createElement(e,o({},t,{components:n}))}},d=function(e){var t=r.useContext(c),n=t;return e&&(n="function"===typeof e?e(t):a(a({},t),e)),n},p=function(e){var t=d(e.components);return r.createElement(c.Provider,{value:t},e.children)},f="mdxType",h={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,o=e.originalType,s=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),u=d(n),p=i,f=u["".concat(s,".").concat(p)]||u[p]||h[p]||o;return n?r.createElement(f,a(a({ref:t},c),{},{components:n})):r.createElement(f,a({ref:t},c))}));function g(e,t){var n=arguments,i=t&&t.mdxType;if("string"===typeof e||i){var o=n.length,s=new Array(o);s[0]=m;var a={};for(var l in t)hasOwnProperty.call(t,l)&&(a[l]=t[l]);a.originalType=e,a[f]="string"===typeof e?e:i,s[1]=a;for(var c=2;c<o;c++)s[c]=n[c];return r.createElement.apply(null,s)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},96080:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}function p(e){return{}.toString.call(e).includes("Object")}function f(e){return"function"===typeof e}n.r(t),n.d(t,{DiffEditor:()=>se,default:()=>pe,loader:()=>H,useMonaco:()=>ae});var h=d((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),m={changes:function(e,t){return p(t)||h("changeType"),Object.keys(t).some((function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r}))&&h("changeField"),t},selector:function(e){f(e)||h("selectorType")},handler:function(e){f(e)||p(e)||h("handlerType"),p(e)&&Object.values(e).some((function(e){return!f(e)}))&&h("handlersType")},initial:function(e){var t;e||h("initialIsRequired"),p(e)||h("initialType"),t=e,Object.keys(t).length||h("initialContent")}};function g(e,t){return f(t)?t(e.current):t}function _(e,t){return e.current=u(u({},e.current),t),t}function b(e,t,n){return f(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}const v={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m.initial(e),m.handler(t);var n={current:e},r=d(b)(n,t),i=d(_)(n),o=d(m.changes)(e),s=d(g)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return m.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(r,i,o,s)(e)}]}};const y={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};const S=function(e){return{}.toString.call(e).includes("Object")};var E={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},w=function(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}((function(e,t){throw new Error(e[t]||e.default)}))(E),C={config:function(e){return e||w("configIsRequired"),S(e)||w("configType"),e.urls?(console.warn(E.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};const O=C;const T=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}};const N=function e(t,n){return Object.keys(n).forEach((function(r){n[r]instanceof Object&&t[r]&&Object.assign(n[r],e(t[r],n[r]))})),o(o({},t),n)};var I={type:"cancelation",msg:"operation is manually canceled"};const x=function(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(I):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n};var k,R,P=v.create({config:y,isInitialized:!1,resolve:null,reject:null,monaco:null}),A=(R=2,function(e){if(Array.isArray(e))return e}(k=P)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(k,R)||function(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(k,R)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),L=A[0],D=A[1];function M(e){return document.body.appendChild(e)}function j(e){var t=L((function(e){return{config:e.config,reject:e.reject}})),n=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function F(){var e=L((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){B(t),e.resolve(t)}),(function(t){e.reject(t)}))}function B(e){L().monaco||D({monaco:e})}var U=new Promise((function(e,t){return D({resolve:e,reject:t})})),V={config:function(e){var t=O.config(e),n=t.monaco,r=s(t,["monaco"]);D((function(e){return{config:N(e.config,r),monaco:n}}))},init:function(){var e=L((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(D({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),x(U);if(window.monaco&&window.monaco.editor)return B(window.monaco),e.resolve(window.monaco),x(U);T(M,j)(F)}return x(U)},__getMonacoInstance:function(){return L((function(e){return e.monaco}))}};const H=V;var z=n(72243),$=n(56369),W=n.n($);function G(){return G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}const q={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"};const Y=function({content:e}){return z.createElement("div",{style:q},e)},K={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}};function Q({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:o,wrapperProps:s}){return z.createElement("section",G({style:{...K.wrapper,width:e,height:t}},s),!n&&z.createElement(Y,{content:r}),z.createElement("div",{ref:i,style:{...K.fullWidth,...!n&&K.hide},className:o}))}Q.propTypes={width:W().oneOfType([W().number,W().string]).isRequired,height:W().oneOfType([W().number,W().string]).isRequired,loading:W().oneOfType([W().element,W().string]).isRequired,isEditorReady:W().bool.isRequired,className:W().string,wrapperProps:W().object};const X=Q;const Z=(0,z.memo)(X);const J=function(e){(0,z.useEffect)(e,[])};const ee=function(e,t,n=!0){const r=(0,z.useRef)(!0);(0,z.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)};function te(){}function ne(e,t,n,r){return function(e,t){return e.editor.getModel(re(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r&&re(e,r))}(e,t,n,r)}function re(e,t){return e.Uri.parse(t)}function ie({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:a,keepCurrentModifiedModel:l,theme:c,loading:u,options:d,height:p,width:f,className:h,wrapperProps:m,beforeMount:g,onMount:_}){const[b,v]=(0,z.useState)(!1),[y,S]=(0,z.useState)(!0),E=(0,z.useRef)(null),w=(0,z.useRef)(null),C=(0,z.useRef)(null),O=(0,z.useRef)(_),T=(0,z.useRef)(g);J((()=>{const e=H.init();return e.then((e=>(w.current=e)&&S(!1))).catch((e=>"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>E.current?function(){const e=E.current.getModel();var t,n;a||null===(t=e.original)||void 0===t||t.dispose();l||null===(n=e.modified)||void 0===n||n.dispose();E.current.dispose()}():e.cancel()})),ee((()=>{const e=E.current.getModifiedEditor();e.getOption(w.current.editor.EditorOption.readOnly)?e.setValue(t):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t,forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],b),ee((()=>{E.current.getModel().original.setValue(e)}),[e],b),ee((()=>{const{original:e,modified:t}=E.current.getModel();w.current.editor.setModelLanguage(e,r||n),w.current.editor.setModelLanguage(t,i||n)}),[n,r,i],b),ee((()=>{w.current.editor.setTheme(c)}),[c],b),ee((()=>{E.current.updateOptions(d)}),[d],b);const N=(0,z.useCallback)((()=>{T.current(w.current);const a=ne(w.current,e,r||n,o),l=ne(w.current,t,i||n,s);E.current.setModel({original:a,modified:l})}),[n,t,i,e,r,o,s]),I=(0,z.useCallback)((()=>{E.current=w.current.editor.createDiffEditor(C.current,{automaticLayout:!0,...d}),N(),w.current.editor.setTheme(c),v(!0)}),[d,c,N]);return(0,z.useEffect)((()=>{b&&O.current(E.current,w.current)}),[b]),(0,z.useEffect)((()=>{!y&&!b&&I()}),[y,b,I]),z.createElement(Z,{width:f,height:p,isEditorReady:b,loading:u,_ref:C,className:h,wrapperProps:m})}ie.propTypes={original:W().string,modified:W().string,language:W().string,originalLanguage:W().string,modifiedLanguage:W().string,originalModelPath:W().string,modifiedModelPath:W().string,keepCurrentOriginalModel:W().bool,keepCurrentModifiedModel:W().bool,theme:W().string,loading:W().oneOfType([W().element,W().string]),options:W().object,width:W().oneOfType([W().number,W().string]),height:W().oneOfType([W().number,W().string]),className:W().string,wrapperProps:W().object,beforeMount:W().func,onMount:W().func},ie.defaultProps={theme:"light",loading:"Loading...",options:{},keepCurrentOriginalModel:!1,keepCurrentModifiedModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:te,onMount:te};const oe=ie;const se=(0,z.memo)(oe);const ae=function(){const[e,t]=(0,z.useState)(H.__getMonacoInstance());return J((()=>{let n;return e||(n=H.init(),n.then((e=>{t(e)}))),()=>{var e;return null===(e=n)||void 0===e?void 0:e.cancel()}})),e};const le=function(e){const t=(0,z.useRef)();return(0,z.useEffect)((()=>{t.current=e}),[e]),t.current},ce=new Map;function ue({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:s,line:a,loading:l,options:c,overrideServices:u,saveViewState:d,keepCurrentModel:p,width:f,height:h,className:m,wrapperProps:g,beforeMount:_,onMount:b,onChange:v,onValidate:y}){const[S,E]=(0,z.useState)(!1),[w,C]=(0,z.useState)(!0),O=(0,z.useRef)(null),T=(0,z.useRef)(null),N=(0,z.useRef)(null),I=(0,z.useRef)(b),x=(0,z.useRef)(_),k=(0,z.useRef)(null),R=(0,z.useRef)(r),P=le(o),A=(0,z.useRef)(!1);J((()=>{const e=H.init();return e.then((e=>(O.current=e)&&C(!1))).catch((e=>"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>T.current?function(){var e,t;null===(e=k.current)||void 0===e||e.dispose(),p?d&&ce.set(o,T.current.saveViewState()):null===(t=T.current.getModel())||void 0===t||t.dispose();T.current.dispose()}():e.cancel()})),ee((()=>{const n=ne(O.current,e||r,t||i,o);n!==T.current.getModel()&&(d&&ce.set(P,T.current.saveViewState()),T.current.setModel(n),d&&T.current.restoreViewState(ce.get(o)))}),[o],S),ee((()=>{T.current.updateOptions(c)}),[c],S),ee((()=>{T.current.getOption(O.current.editor.EditorOption.readOnly)?T.current.setValue(r):r!==T.current.getValue()&&(T.current.executeEdits("",[{range:T.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),T.current.pushUndoStop())}),[r],S),ee((()=>{O.current.editor.setModelLanguage(T.current.getModel(),i)}),[i],S),ee((()=>{void 0!==a&&T.current.revealLine(a)}),[a],S),ee((()=>{O.current.editor.setTheme(s)}),[s],S);const L=(0,z.useCallback)((()=>{if(!A.current){x.current(O.current);const a=o||n,l=ne(O.current,r||e,t||i,a);T.current=O.current.editor.create(N.current,{model:l,automaticLayout:!0,...c},u),d&&T.current.restoreViewState(ce.get(a)),O.current.editor.setTheme(s),E(!0),A.current=!0}}),[e,t,n,r,i,o,c,u,d,s]);return(0,z.useEffect)((()=>{S&&I.current(T.current,O.current)}),[S]),(0,z.useEffect)((()=>{!w&&!S&&L()}),[w,S,L]),R.current=r,(0,z.useEffect)((()=>{var e,t;S&&v&&(null===(e=k.current)||void 0===e||e.dispose(),k.current=null===(t=T.current)||void 0===t?void 0:t.onDidChangeModelContent((e=>{v(T.current.getValue(),e)})))}),[S,v]),(0,z.useEffect)((()=>{if(S){const e=O.current.editor.onDidChangeMarkers((e=>{var t;const n=null===(t=T.current.getModel())||void 0===t?void 0:t.uri;if(n){if(e.find((e=>e.path===n.path))){const e=O.current.editor.getModelMarkers({resource:n});null===y||void 0===y||y(e)}}}));return()=>{null===e||void 0===e||e.dispose()}}}),[S,y]),z.createElement(Z,{width:f,height:h,isEditorReady:S,loading:l,_ref:N,className:m,wrapperProps:g})}ue.propTypes={defaultValue:W().string,defaultPath:W().string,defaultLanguage:W().string,value:W().string,language:W().string,path:W().string,theme:W().string,line:W().number,loading:W().oneOfType([W().element,W().string]),options:W().object,overrideServices:W().object,saveViewState:W().bool,keepCurrentModel:W().bool,width:W().oneOfType([W().number,W().string]),height:W().oneOfType([W().number,W().string]),className:W().string,wrapperProps:W().object,beforeMount:W().func,onMount:W().func,onChange:W().func,onValidate:W().func},ue.defaultProps={theme:"light",loading:"Loading...",options:{},overrideServices:{},saveViewState:!0,keepCurrentModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:te,onMount:te,onValidate:te};const de=ue;const pe=(0,z.memo)(de)},24115:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(72243);const i=e=>{const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),t}},15017:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(72243);const i=function(e,t){const n=r.useRef(t);return r.useEffect((()=>{n.current=e}),[e]),n.current}},69934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(96450))},19076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(35356);t.NodeFS=r.NodeFS,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(75269))},35356:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(14527),o=r(n(591)),s=r(n(75269));t.NodeFS=class{constructor(e){this.workingDir=e,this.promises=new s.default}getPath(e){return i.join(this.workingDir,e)}access(e,t,n){o.default.access(this.getPath(e),t,n)}accessSync(e,t){o.default.accessSync(this.getPath(e),t)}appendFile(e,t,n,r){o.default.appendFile(this.getPath(e),t,n)}appendFileSync(e,t,n){o.default.appendFileSync(this.getPath(e),t,n)}chmod(e,t,n){o.default.chmod(this.getPath(e),t,n)}chmodSync(e,t){o.default.chmodSync(this.getPath(e),t)}chown(e,t,n,r){o.default.chown(this.getPath(e),t,n,r)}chownSync(e,t,n){o.default.chownSync(this.getPath(e),t,n)}close(e,t){o.default.close(e,t)}closeSync(e){o.default.closeSync(e)}copyFile(e,t,n){o.default.copyFile(e,t,n)}copyFileSync(e,t,n){o.default.copyFileSync(e,t,n)}createReadStream(e,t){return o.default.createReadStream(this.getPath(e),t)}createWriteStream(e,t){return o.default.createWriteStream(this.getPath(e),t)}exists(e,t){o.default.exists(this.getPath(e),t)}existsSync(e){return o.default.existsSync(this.getPath(e))}fchmod(e,t,n){o.default.fchmod(e,t,n)}fchmodSync(e,t){o.default.fchmodSync(e,t)}fchown(e,t,n,r){o.default.fchown(e,t,n,r)}fchownSync(e,t,n){o.default.fchownSync(e,t,n)}fdatasync(e,t){o.default.fdatasync(e,t)}fdatasyncSync(e){o.default.fdatasyncSync(e)}fstat(e,t){o.default.fstat(e,t)}fstatSync(e){return o.default.fstatSync(e)}fsync(e,t){o.default.fsync(e,t)}fsyncSync(e){o.default.fsyncSync(e)}ftruncate(e,t,n){o.default.ftruncate(e,t,n)}ftruncateSync(e,t){o.default.ftruncateSync(e,t)}futimes(e,t,n,r){o.default.futimes(e,t,n,r)}futimesSync(e,t,n){o.default.futimesSync(e,t,n)}lchmod(e,t,n){o.default.lchmod(this.getPath(e),t,n)}lchmodSync(e,t){o.default.lchmodSync(this.getPath(e),t)}lchown(e,t,n,r){o.default.lchown(this.getPath(e),t,n,r)}lchownSync(e,t,n){o.default.lchownSync(this.getPath(e),t,n)}link(e,t,n){o.default.link(e,t,n)}linkSync(e,t){o.default.linkSync(e,t)}lstat(e,t){o.default.lstat(this.getPath(e),t)}lstatSync(e){return o.default.lstatSync(e)}mkdir(e,t,n){o.default.mkdir(this.getPath(e),t,n)}mkdirSync(e,t){o.default.mkdirSync(this.getPath(e),t)}mkdtemp(e,t,n){o.default.mkdtemp(e,t,n)}mkdtempSync(e,t){return o.default.mkdtempSync(e,t)}open(e,t,n,r){o.default.open(this.getPath(e),t,n,r)}openSync(e,t,n){return o.default.openSync(this.getPath(e),t,n)}read(e,t,n,r,i,s){o.default.read(e,t,n,r,i,s)}readFile(e,t,n){}readFileSync(e,t){return o.default.readFileSync(this.getPath(e))}readSync(e,t,n,r,i){return o.default.readSync(e,t,n,r,i)}readdir(e,t,n){o.default.readdir(this.getPath(e),t,n)}readdirSync(e,t){return o.default.readdirSync(this.getPath(e),t)}readlink(e,t,n){o.default.readlink(this.getPath(e),t,n)}readlinkSync(e,t){return o.default.readlinkSync(this.getPath(e),t)}realpath(e,t,n){o.default.realpath(this.getPath(e),t,n)}realpathSync(e,t){return o.default.realpathSync(this.getPath(e),t)}rename(e,t,n){o.default.rename(e,t,n)}renameSync(e,t){o.default.renameSync(e,t)}rmdir(e,t){o.default.rmdir(this.getPath(e),t)}rmdirSync(e){o.default.rmdirSync(this.getPath(e))}stat(e,t){o.default.stat(this.getPath(e),t)}statSync(e){return o.default.statSync(e)}symlink(e,t,n,r){o.default.symlink(e,this.getPath(t),n,r)}symlinkSync(e,t,n){o.default.symlinkSync(e,this.getPath(t),n)}truncate(e,t,n){o.default.truncate(this.getPath(e),t,n)}truncateSync(e,t){o.default.truncateSync(this.getPath(e),t)}unlink(e,t){o.default.unlink(this.getPath(e),t)}unlinkSync(e){o.default.unlinkSync(this.getPath(e))}unwatchFile(e,t){o.default.unwatchFile(e,t)}utimes(e,t,n,r){o.default.utimes(this.getPath(e),t,n,r)}utimesSync(e,t,n){o.default.utimesSync(this.getPath(e),t,n)}watch(e,t,n){return o.default.watch(e,t,n)}watchFile(e,t,n){o.default.watchFile(e,t,n)}writeFile(e,t,n,r){o.default.writeFile(this.getPath(e),t,n)}writeFileSync(e,t,n){o.default.writeFileSync(this.getPath(e),t,n)}writeSync(e,t,n,r,i){return o.default.writeSync(e,t,n,r,i)}write(e,t,n,r,i,o){this.write(e,t,n,r,i,o)}}},75269:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(591));t.default=class{access(e,t){return i.default.promises.access(e,t)}appendFile(e,t,n){return i.default.promises.appendFile(e,t)}chmod(e,t){return i.default.promises.chmod(e,t)}chown(e,t,n){return i.default.promises.chown(e,t,n)}copyFile(e,t,n){return i.default.promises.copyFile(e,t,n)}fchmod(e,t){return i.default.promises.fchmod(e,t)}fchown(e,t,n){return i.default.promises.fchown(e,t,n)}fdatasync(e){return i.default.promises.fdatasync(e)}fstat(e){return i.default.promises.fstat(e)}fsync(e){return i.default.promises.fsync(e)}ftruncate(e,t){return i.default.promises.ftruncate(e,t)}futimes(e,t,n){return i.default.promises.futimes(e,t,n)}lchmod(e,t){return i.default.promises.lchmod(e,t)}lchown(e,t,n){return i.default.promises.lchown(e,t,n)}link(e,t){return i.default.promises.link(e,t)}lstat(e){return i.default.promises.lstat(e)}mkdir(e,t){return i.default.promises.mkdir(e,t)}mkdtemp(e,t){return i.default.promises.mkdtemp(e,t)}open(e,t,n){return i.default.promises.open(e,t,n)}read(e,t,n,r,o){return i.default.promises.read(e,t,n,r,o)}readFile(e,t){return i.default.promises.readFile(e,t)}readdir(e,t){return i.default.promises.readdir(e,t)}readlink(e,t){return i.default.promises.readlink(e,t)}realpath(e,t){return i.default.promises.realpath(e,t)}rename(e,t){return i.default.promises.rename(e,t)}rmdir(e){return i.default.promises.rmdir(e)}stat(e){return i.default.promises.stat(e)}symlink(e,t,n){return i.default.promises.symlink(e,t,n)}truncate(e,t){return i.default.promises.truncate(e,t)}unlink(e){return i.default.promises.unlink(e)}utimes(e,t,n){return i.default.promises.utimes(e,t,n)}write(e,t,n,r,o){i.default.promises.write(e,t,n,r)}writeFile(e,t,n){return i.default.promises.writeFile(e,t,n)}}},96450:(e,t,n)=>{"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(19076)),r(n(47514))},47514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(18252))},18252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(53740);t.MemoryFS=class{constructor(){this.volume=new r.Volume,this.promises=this.volume.promises}access(e,t,n){this.volume.access(e,t,n)}accessSync(e,t){this.volume.accessSync(e,t)}appendFile(e,t,n,r){this.volume.appendFile(e,t,n)}mkdirpSync(e){this.volume.mkdirpSync(e)}appendFileSync(e,t,n){this.volume.appendFileSync(e,t,n)}chmod(e,t,n){this.volume.chmod(e,t,n)}chmodSync(e,t){this.volume.chmodSync(e,t)}chown(e,t,n,r){this.volume.chown(e,t,n,r)}chownSync(e,t,n){this.volume.chownSync(e,t,n)}close(e,t){this.volume.close(e,t)}closeSync(e){this.volume.closeSync(e)}copyFile(e,t,n){this.volume.copyFile(e,t,n)}copyFileSync(e,t,n){this.volume.copyFileSync(e,t,n)}createReadStream(e,t){return this.volume.createReadStream(e,t)}createWriteStream(e,t){return this.volume.createWriteStream(e,t)}exists(e,t){this.volume.exists(e,t)}existsSync(e){return!1}fchmod(e,t,n){this.volume.fchmod(e,t,n)}fchmodSync(e,t){this.volume.fchmodSync(e,t)}fchown(e,t,n,r){this.volume.fchown(e,t,n,r)}fchownSync(e,t,n){this.volume.fchownSync(e,t,n)}fdatasync(e,t){this.volume.fdatasync(e,t)}fdatasyncSync(e){this.volume.fdatasyncSync(e)}fstat(e,t){this.volume.fstat(e,t)}fstatSync(e){return this.volume.fstatSync(e)}fsync(e,t){this.volume.fsync(e,t)}fsyncSync(e){this.volume.fsyncSync(e)}ftruncate(e,t,n){this.volume.ftruncate(e,t,n)}ftruncateSync(e,t){this.volume.ftruncateSync(e,t)}futimes(e,t,n,r){this.volume.futimes(e,t,n,r)}futimesSync(e,t,n){this.volume.futimesSync(e,t,n)}lchmod(e,t,n){this.volume.lchmod(e,t,n)}lchmodSync(e,t){this.volume.lchmodSync(e,t)}lchown(e,t,n,r){this.volume.lchown(e,t,n,r)}lchownSync(e,t,n){this.volume.lchownSync(e,t,n)}link(e,t,n){this.volume.link(e,t,n)}linkSync(e,t){this.volume.linkSync(e,t)}lstat(e,t){this.volume.lstat(e,t)}lstatSync(e){return this.volume.lstatSync(e)}mkdir(e,t,n){this.volume.mkdir(e,t,n)}mkdirSync(e,t){this.volume.mkdirSync(e,t)}mkdtemp(e,t,n){this.volume.mkdtemp(e,t,n)}mkdtempSync(e,t){return this.volume.mkdtempSync(e,t)}open(e,t,n,r){this.volume.open(e,t,n,r)}openSync(e,t,n){return this.volume.openSync(e,t,n)}read(e,t,n,r,i,o){this.volume.read(e,t,n,r,i,o)}readFile(e,t,n){}readFileSync(e,t){return this.volume.readFileSync(e)}readSync(e,t,n,r,i){return this.volume.readSync(e,t,n,r,i)}readdir(e,t,n){this.volume.readdir(e,t,n)}readdirSync(e,t){return this.volume.readdirSync(e,t)}readlink(e,t,n){this.volume.readlink(e,t,n)}readlinkSync(e,t){return this.volume.readlinkSync(e,t)}realpath(e,t,n){this.volume.realpath(e,t,n)}realpathSync(e,t){return this.volume.realpathSync(e,t)}rename(e,t,n){this.volume.rename(e,t,n)}renameSync(e,t){this.volume.renameSync(e,t)}rmdir(e,t){this.volume.rmdir(e,t)}rmdirSync(e){this.volume.rmdirSync(e)}stat(e,t){this.volume.stat(e,t)}statSync(e){return this.volume.statSync(e)}symlink(e,t,n,r){this.volume.symlink(e,t,n,r)}symlinkSync(e,t,n){this.volume.symlinkSync(e,t,n)}truncate(e,t,n){this.volume.truncate(e,t,n)}truncateSync(e,t){this.volume.truncateSync(e,t)}unlink(e,t){this.volume.unlink(e,t)}unlinkSync(e){this.volume.unlinkSync(e)}unwatchFile(e,t){this.volume.unwatchFile(e,t)}utimes(e,t,n,r){this.volume.utimes(e,t,n,r)}utimesSync(e,t,n){this.volume.utimesSync(e,t,n)}watch(e,t,n){return this.volume.watch(e,t,n)}watchFile(e,t,n){this.volume.watchFile(e,t,n)}writeFile(e,t,n,r){this.volume.writeFile(e,t,n)}writeFileSync(e,t,n){this.volume.writeFileSync(e,t,n)}writeSync(e,t,n,r,i){return this.volume.writeSync(e,t,n,r,i)}write(e,t,n,r,i,o){this.write(e,t,n,r,i,o)}}},58836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49923),i=n(46506),o=r.constants.S_IFMT,s=r.constants.S_IFDIR,a=r.constants.S_IFREG,l=r.constants.S_IFBLK,c=r.constants.S_IFCHR,u=r.constants.S_IFLNK,d=r.constants.S_IFIFO,p=r.constants.S_IFSOCK,f=function(){function e(){this.name="",this.mode=0}return e.build=function(t,n){var r=new e,o=t.getNode().mode;return r.name=i.strToEncoding(t.getName(),n),r.mode=o,r},e.prototype._checkModeProperty=function(e){return(this.mode&o)===e},e.prototype.isDirectory=function(){return this._checkModeProperty(s)},e.prototype.isFile=function(){return this._checkModeProperty(a)},e.prototype.isBlockDevice=function(){return this._checkModeProperty(l)},e.prototype.isCharacterDevice=function(){return this._checkModeProperty(c)},e.prototype.isSymbolicLink=function(){return this._checkModeProperty(u)},e.prototype.isFIFO=function(){return this._checkModeProperty(d)},e.prototype.isSocket=function(){return this._checkModeProperty(p)},e}();t.Dirent=f,t.default=f},99270:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(49923),i=n(94101),o=r.constants.S_IFMT,s=r.constants.S_IFDIR,a=r.constants.S_IFREG,l=r.constants.S_IFBLK,c=r.constants.S_IFCHR,u=r.constants.S_IFLNK,d=r.constants.S_IFIFO,p=r.constants.S_IFSOCK,f=function(){function e(){}return e.build=function(t,n){void 0===n&&(n=!1);var r=new e,o=t.uid,s=t.gid,a=t.atime,l=t.mtime,c=t.ctime,u=n?i.default:function(e){return e};r.uid=u(o),r.gid=u(s),r.rdev=u(0),r.blksize=u(4096),r.ino=u(t.ino),r.size=u(t.getSize()),r.blocks=u(1),r.atime=a,r.mtime=l,r.ctime=c,r.birthtime=c,r.atimeMs=u(a.getTime()),r.mtimeMs=u(l.getTime());var d=u(c.getTime());return r.ctimeMs=d,r.birthtimeMs=d,r.dev=u(0),r.mode=u(t.mode),r.nlink=u(t.nlink),r},e.prototype._checkModeProperty=function(e){return(Number(this.mode)&o)===e},e.prototype.isDirectory=function(){return this._checkModeProperty(s)},e.prototype.isFile=function(){return this._checkModeProperty(a)},e.prototype.isBlockDevice=function(){return this._checkModeProperty(l)},e.prototype.isCharacterDevice=function(){return this._checkModeProperty(c)},e.prototype.isSymbolicLink=function(){return this._checkModeProperty(u)},e.prototype.isFIFO=function(){return this._checkModeProperty(d)},e.prototype.isSocket=function(){return this._checkModeProperty(p)},e}();t.Stats=f,t.default=f},49923:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}},46506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(60710),i=n(42200);t.ENCODING_UTF8="utf8",t.assertEncoding=function(e){if(e&&!r.Buffer.isEncoding(e))throw new i.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",e)},t.strToEncoding=function(e,n){return n&&n!==t.ENCODING_UTF8?"buffer"===n?new r.Buffer(e):new r.Buffer(e).toString(n):e}},94101:(e,t)=>{"function"===typeof BigInt?t.default=BigInt:t.default=function(){throw new Error("BigInt is not supported in this environment.")}},53740:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(99270),o=n(58836),s=n(66783),a=n(66046),l=a.fsSyncMethods,c=a.fsAsyncMethods,u=n(49923),d=u.constants.F_OK,p=u.constants.R_OK,f=u.constants.W_OK,h=u.constants.X_OK;function m(e){for(var t={F_OK:d,R_OK:p,W_OK:f,X_OK:h,constants:u.constants,Stats:i.default,Dirent:o.default},n=0,r=l;n<r.length;n++){"function"===typeof e[g=r[n]]&&(t[g]=e[g].bind(e))}for(var a=0,m=c;a<m.length;a++){var g;"function"===typeof e[g=m[a]]&&(t[g]=e[g].bind(e))}return t.StatWatcher=e.StatWatcher,t.FSWatcher=e.FSWatcher,t.WriteStream=e.WriteStream,t.ReadStream=e.ReadStream,t.promises=e.promises,t._toUnixTimestamp=s.toUnixTimestamp,t}t.Volume=s.Volume,t.vol=new s.Volume,t.createFsFromVolume=m,t.fs=m(t.vol),e.exports=r(r({},e.exports),t.fs),e.exports.semantic=!0},60710:function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0});var i=n(59883);function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new(i.Buffer.bind.apply(i.Buffer,r([void 0,e],t)))}t.Buffer=i.Buffer;var s=i.Buffer.allocUnsafe||o;t.bufferAllocUnsafe=s;var a=i.Buffer.from||o;t.bufferFrom=a},42200:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(42077),o=n(81913),s="undefined"===typeof Symbol?"_kCode":Symbol("code"),a={};function l(e){return function(e){function t(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=e.call(this,u(t,n))||this;return i.code=t,i[s]=t,i.name=e.prototype.name+" ["+i[s]+"]",i}return r(t,e),t}(e)}var c=function(e){function n(n){var r=this;if("object"!==typeof n||null===n)throw new t.TypeError("ERR_INVALID_ARG_TYPE","options","object");return(r=n.message?e.call(this,n.message)||this:e.call(this,o.inspect(n.actual).slice(0,128)+" "+n.operator+" "+o.inspect(n.expected).slice(0,128))||this).generatedMessage=!n.message,r.name="AssertionError [ERR_ASSERTION]",r.code="ERR_ASSERTION",r.actual=n.actual,r.expected=n.expected,r.operator=n.operator,t.Error.captureStackTrace(r,n.stackStartFunction),r}return r(n,e),n}(n.g.Error);function u(e,t){i.strictEqual(typeof e,"string");var n,r=a[e];if(i(r,"An invalid error message key was used: "+e+"."),"function"===typeof r)n=r;else{if(n=o.format,void 0===t||0===t.length)return r;t.unshift(r)}return String(n.apply(null,t))}function d(e,t){a[e]="function"===typeof t?t:String(t)}function p(e,t){if(i(e,"expected is required"),i("string"===typeof t,"thing is required"),Array.isArray(e)){var n=e.length;return i(n>0,"At least one expected value needs to be specified"),e=e.map((function(e){return String(e)})),n>2?"one of "+t+" "+e.slice(0,n-1).join(", ")+", or "+e[n-1]:2===n?"one of "+t+" "+e[0]+" or "+e[1]:"of "+t+" "+e[0]}return"of "+t+" "+String(e)}t.AssertionError=c,t.message=u,t.E=d,t.Error=l(n.g.Error),t.TypeError=l(n.g.TypeError),t.RangeError=l(n.g.RangeError),d("ERR_ARG_NOT_ITERABLE","%s must be iterable"),d("ERR_ASSERTION","%s"),d("ERR_BUFFER_OUT_OF_BOUNDS",(function(e,t){return t?"Attempt to write outside buffer bounds":'"'+e+'" is outside of buffer bounds'})),d("ERR_CHILD_CLOSED_BEFORE_REPLY","Child closed before reply received"),d("ERR_CONSOLE_WRITABLE_STREAM","Console expects a writable stream instance for %s"),d("ERR_CPU_USAGE","Unable to obtain cpu usage %s"),d("ERR_DNS_SET_SERVERS_FAILED",(function(e,t){return'c-ares failed to set servers: "'+e+'" ['+t+"]"})),d("ERR_FALSY_VALUE_REJECTION","Promise was rejected with falsy value"),d("ERR_ENCODING_NOT_SUPPORTED",(function(e){return'The "'+e+'" encoding is not supported'})),d("ERR_ENCODING_INVALID_ENCODED_DATA",(function(e){return"The encoded data was not valid for encoding "+e})),d("ERR_HTTP_HEADERS_SENT","Cannot render headers after they are sent to the client"),d("ERR_HTTP_INVALID_STATUS_CODE","Invalid status code: %s"),d("ERR_HTTP_TRAILER_INVALID","Trailers are invalid with this transfer encoding"),d("ERR_INDEX_OUT_OF_RANGE","Index out of range"),d("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,o;i(e,"name is required"),t.includes("not ")?(r="must not be",t=t.split("not ")[1]):r="must be";if(Array.isArray(e)){o="The "+e.map((function(e){return'"'+e+'"'})).join(", ")+" arguments "+r+" "+p(t,"type")}else if(e.includes(" argument"))o="The "+e+" "+r+" "+p(t,"type");else{var s=e.includes(".")?"property":"argument";o='The "'+e+'" '+s+" "+r+" "+p(t,"type")}arguments.length>=3&&(o+=". Received type "+(null!==n?typeof n:"null"));return o})),d("ERR_INVALID_ARRAY_LENGTH",(function(e,t,n){return i.strictEqual(typeof n,"number"),'The array "'+e+'" (length '+n+") must be of length "+t+"."})),d("ERR_INVALID_BUFFER_SIZE","Buffer size must be a multiple of %s"),d("ERR_INVALID_CALLBACK","Callback must be a function"),d("ERR_INVALID_CHAR","Invalid character in %s"),d("ERR_INVALID_CURSOR_POS","Cannot set cursor row without setting its column"),d("ERR_INVALID_FD",'"fd" must be a positive integer: %s'),d("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s'),d("ERR_INVALID_FILE_URL_PATH","File URL path %s"),d("ERR_INVALID_HANDLE_TYPE","This handle type cannot be sent"),d("ERR_INVALID_IP_ADDRESS","Invalid IP address: %s"),d("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+String(t)+'" is invalid for option "'+e+'"'})),d("ERR_INVALID_OPT_VALUE_ENCODING",(function(e){return'The value "'+String(e)+'" is invalid for option "encoding"'})),d("ERR_INVALID_REPL_EVAL_CONFIG",'Cannot specify both "breakEvalOnSigint" and "eval" for REPL'),d("ERR_INVALID_SYNC_FORK_INPUT","Asynchronous forks do not support Buffer, Uint8Array or string input: %s"),d("ERR_INVALID_THIS",'Value of "this" must be of type %s'),d("ERR_INVALID_TUPLE","%s must be an iterable %s tuple"),d("ERR_INVALID_URL","Invalid URL: %s"),d("ERR_INVALID_URL_SCHEME",(function(e){return"The URL must be "+p(e,"scheme")})),d("ERR_IPC_CHANNEL_CLOSED","Channel closed"),d("ERR_IPC_DISCONNECTED","IPC channel is already disconnected"),d("ERR_IPC_ONE_PIPE","Child process can have only one IPC pipe"),d("ERR_IPC_SYNC_FORK","IPC cannot be used with synchronous forks"),d("ERR_MISSING_ARGS",(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i(e.length>0,"At least one arg needs to be specified");var n="The ",r=e.length;switch(e=e.map((function(e){return'"'+e+'"'})),r){case 1:n+=e[0]+" argument";break;case 2:n+=e[0]+" and "+e[1]+" arguments";break;default:n+=e.slice(0,r-1).join(", "),n+=", and "+e[r-1]+" arguments"}return n+" must be specified"})),d("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),d("ERR_NAPI_CONS_FUNCTION","Constructor must be a function"),d("ERR_NAPI_CONS_PROTOTYPE_OBJECT","Constructor.prototype must be an object"),d("ERR_NO_CRYPTO","Node.js is not compiled with OpenSSL crypto support"),d("ERR_NO_LONGER_SUPPORTED","%s is no longer supported"),d("ERR_PARSE_HISTORY_DATA","Could not parse history data in %s"),d("ERR_SOCKET_ALREADY_BOUND","Socket is already bound"),d("ERR_SOCKET_BAD_PORT","Port should be > 0 and < 65536"),d("ERR_SOCKET_BAD_TYPE","Bad socket type specified. Valid types are: udp4, udp6"),d("ERR_SOCKET_CANNOT_SEND","Unable to send data"),d("ERR_SOCKET_CLOSED","Socket is closed"),d("ERR_SOCKET_DGRAM_NOT_RUNNING","Not running"),d("ERR_STDERR_CLOSE","process.stderr cannot be closed"),d("ERR_STDOUT_CLOSE","process.stdout cannot be closed"),d("ERR_STREAM_WRAP","Stream has StringDecoder set or is in objectMode"),d("ERR_TLS_CERT_ALTNAME_INVALID","Hostname/IP does not match certificate's altnames: %s"),d("ERR_TLS_DH_PARAM_SIZE",(function(e){return"DH parameter size "+e+" is less than 2048"})),d("ERR_TLS_HANDSHAKE_TIMEOUT","TLS handshake timeout"),d("ERR_TLS_RENEGOTIATION_FAILED","Failed to renegotiate"),d("ERR_TLS_REQUIRED_SERVER_NAME",'"servername" is required parameter for Server.addContext'),d("ERR_TLS_SESSION_ATTACK","TSL session renegotiation attack detected"),d("ERR_TRANSFORM_ALREADY_TRANSFORMING","Calling transform done when still transforming"),d("ERR_TRANSFORM_WITH_LENGTH_0","Calling transform done when writableState.length != 0"),d("ERR_UNKNOWN_ENCODING","Unknown encoding: %s"),d("ERR_UNKNOWN_SIGNAL","Unknown signal: %s"),d("ERR_UNKNOWN_STDIN_TYPE","Unknown stdin file type"),d("ERR_UNKNOWN_STREAM_TYPE","Unknown stream file type"),d("ERR_V8BREAKITERATOR","Full ICU data not installed. See https://github.com/nodejs/node/wiki/Intl")},84680:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=n(41276),o=n(60710),s=n(49923),a=n(88863),l=n(99270),c=s.constants.S_IFMT,u=s.constants.S_IFDIR,d=s.constants.S_IFREG,p=(s.constants.S_IFBLK,s.constants.S_IFCHR,s.constants.S_IFLNK),f=(s.constants.S_IFIFO,s.constants.S_IFSOCK,s.constants.O_APPEND);t.SEP="/";var h=function(e){function t(t,n){void 0===n&&(n=438);var r=e.call(this)||this;return r.uid=i.default.getuid(),r.gid=i.default.getgid(),r.atime=new Date,r.mtime=new Date,r.ctime=new Date,r.perm=438,r.mode=d,r.nlink=1,r.perm=n,r.mode|=n,r.ino=t,r}return r(t,e),t.prototype.getString=function(e){return void 0===e&&(e="utf8"),this.getBuffer().toString(e)},t.prototype.setString=function(e){this.buf=o.bufferFrom(e,"utf8"),this.touch()},t.prototype.getBuffer=function(){return this.buf||this.setBuffer(o.bufferAllocUnsafe(0)),o.bufferFrom(this.buf)},t.prototype.setBuffer=function(e){this.buf=o.bufferFrom(e),this.touch()},t.prototype.getSize=function(){return this.buf?this.buf.length:0},t.prototype.setModeProperty=function(e){this.mode=this.mode&~c|e},t.prototype.setIsFile=function(){this.setModeProperty(d)},t.prototype.setIsDirectory=function(){this.setModeProperty(u)},t.prototype.setIsSymlink=function(){this.setModeProperty(p)},t.prototype.isFile=function(){return(this.mode&c)===d},t.prototype.isDirectory=function(){return(this.mode&c)===u},t.prototype.isSymlink=function(){return(this.mode&c)===p},t.prototype.makeSymlink=function(e){this.symlink=e,this.setIsSymlink()},t.prototype.write=function(e,t,n,r){if(void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===r&&(r=0),this.buf||(this.buf=o.bufferAllocUnsafe(0)),r+n>this.buf.length){var i=o.bufferAllocUnsafe(r+n);this.buf.copy(i,0,0,this.buf.length),this.buf=i}return e.copy(this.buf,r,t,t+n),this.touch(),n},t.prototype.read=function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.byteLength),void 0===r&&(r=0),this.buf||(this.buf=o.bufferAllocUnsafe(0));var i=n;return i>e.byteLength&&(i=e.byteLength),i+r>this.buf.length&&(i=this.buf.length-r),this.buf.copy(e,t,r,r+i),i},t.prototype.truncate=function(e){if(void 0===e&&(e=0),e)if(this.buf||(this.buf=o.bufferAllocUnsafe(0)),e<=this.buf.length)this.buf=this.buf.slice(0,e);else{var t=o.bufferAllocUnsafe(0);this.buf.copy(t),t.fill(0,e)}else this.buf=o.bufferAllocUnsafe(0);this.touch()},t.prototype.chmod=function(e){this.perm=e,this.mode=-512&this.mode|e,this.touch()},t.prototype.chown=function(e,t){this.uid=e,this.gid=t,this.touch()},t.prototype.touch=function(){this.mtime=new Date,this.emit("change",this)},t.prototype.canRead=function(e,t){return void 0===e&&(e=i.default.getuid()),void 0===t&&(t=i.default.getgid()),!!(4&this.perm)||(!!(t===this.gid&&32&this.perm)||!!(e===this.uid&&256&this.perm))},t.prototype.canWrite=function(e,t){return void 0===e&&(e=i.default.getuid()),void 0===t&&(t=i.default.getgid()),!!(2&this.perm)||(!!(t===this.gid&&16&this.perm)||!!(e===this.uid&&128&this.perm))},t.prototype.del=function(){this.emit("delete",this)},t.prototype.toJSON=function(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}},t}(a.EventEmitter);t.Node=h;var m=function(e){function n(t,n,r){var i=e.call(this)||this;return i.children={},i.steps=[],i.ino=0,i.length=0,i.vol=t,i.parent=n,i.steps=n?n.steps.concat([r]):[r],i}return r(n,e),n.prototype.setNode=function(e){this.node=e,this.ino=e.ino},n.prototype.getNode=function(){return this.node},n.prototype.createChild=function(e,t){void 0===t&&(t=this.vol.createNode());var r=new n(this.vol,this,e);return r.setNode(t),t.isDirectory(),this.setChild(e,r),r},n.prototype.setChild=function(e,t){return void 0===t&&(t=new n(this.vol,this,e)),this.children[e]=t,t.parent=this,this.length++,this.emit("child:add",t,this),t},n.prototype.deleteChild=function(e){delete this.children[e.getName()],this.length--,this.emit("child:delete",e,this)},n.prototype.getChild=function(e){if(Object.hasOwnProperty.call(this.children,e))return this.children[e]},n.prototype.getPath=function(){return this.steps.join(t.SEP)},n.prototype.getName=function(){return this.steps[this.steps.length-1]},n.prototype.walk=function(e,t,n){if(void 0===t&&(t=e.length),void 0===n&&(n=0),n>=e.length)return this;if(n>=t)return this;var r=e[n],i=this.getChild(r);return i?i.walk(e,t,n+1):null},n.prototype.toJSON=function(){return{steps:this.steps,ino:this.ino,children:Object.keys(this.children)}},n}(a.EventEmitter);t.Link=m;var g=function(){function e(e,t,n,r){this.position=0,this.link=e,this.node=t,this.flags=n,this.fd=r}return e.prototype.getString=function(e){return void 0===e&&(e="utf8"),this.node.getString()},e.prototype.setString=function(e){this.node.setString(e)},e.prototype.getBuffer=function(){return this.node.getBuffer()},e.prototype.setBuffer=function(e){this.node.setBuffer(e)},e.prototype.getSize=function(){return this.node.getSize()},e.prototype.truncate=function(e){this.node.truncate(e)},e.prototype.seekTo=function(e){this.position=e},e.prototype.stats=function(){return l.default.build(this.node)},e.prototype.write=function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.length),"number"!==typeof r&&(r=this.position),this.flags&f&&(r=this.getSize());var i=this.node.write(e,t,n,r);return this.position=r+i,i},e.prototype.read=function(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.byteLength),"number"!==typeof r&&(r=this.position);var i=this.node.read(e,t,n,r);return this.position=r+i,i},e.prototype.chmod=function(e){this.node.chmod(e)},e.prototype.chown=function(e,t){this.node.chown(e,t)},e}();t.File=g},41276:(e,t,n)=>{"use strict";var r=n(18308);Object.defineProperty(t,"__esModule",{value:!0});function i(){var e=function(){if("undefined"!==typeof r)return r;try{return n(18308)}catch(e){return}}()||{};return e.getuid||(e.getuid=function(){return 0}),e.getgid||(e.getgid=function(){return 0}),e.cwd||(e.cwd=function(){return"/"}),e.nextTick||(e.nextTick=n(80299).default),e.emitWarning||(e.emitWarning=function(e,t){console.warn(t+(t?": ":"")+e)}),e.env||(e.env={}),e}t.createProcess=i,t.default=i()},1950:function(e,t){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};function r(e,t,r){return void 0===r&&(r=function(e){return e}),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new Promise((function(o,s){e[t].bind(e).apply(void 0,n(i,[function(e,t){return e?s(e):o(r(t))}]))}))}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.vol=e,this.fd=t}return e.prototype.appendFile=function(e,t){return r(this.vol,"appendFile")(this.fd,e,t)},e.prototype.chmod=function(e){return r(this.vol,"fchmod")(this.fd,e)},e.prototype.chown=function(e,t){return r(this.vol,"fchown")(this.fd,e,t)},e.prototype.close=function(){return r(this.vol,"close")(this.fd)},e.prototype.datasync=function(){return r(this.vol,"fdatasync")(this.fd)},e.prototype.read=function(e,t,n,i){return r(this.vol,"read",(function(t){return{bytesRead:t,buffer:e}}))(this.fd,e,t,n,i)},e.prototype.readFile=function(e){return r(this.vol,"readFile")(this.fd,e)},e.prototype.stat=function(e){return r(this.vol,"fstat")(this.fd,e)},e.prototype.sync=function(){return r(this.vol,"fsync")(this.fd)},e.prototype.truncate=function(e){return r(this.vol,"ftruncate")(this.fd,e)},e.prototype.utimes=function(e,t){return r(this.vol,"futimes")(this.fd,e,t)},e.prototype.write=function(e,t,n,i){return r(this.vol,"write",(function(t){return{bytesWritten:t,buffer:e}}))(this.fd,e,t,n,i)},e.prototype.writeFile=function(e,t){return r(this.vol,"writeFile")(this.fd,e,t)},e}();t.FileHandle=i,t.default=function(e){return"undefined"===typeof Promise?null:{FileHandle:i,access:function(t,n){return r(e,"access")(t,n)},appendFile:function(t,n,o){return r(e,"appendFile")(t instanceof i?t.fd:t,n,o)},chmod:function(t,n){return r(e,"chmod")(t,n)},chown:function(t,n,i){return r(e,"chown")(t,n,i)},copyFile:function(t,n,i){return r(e,"copyFile")(t,n,i)},lchmod:function(t,n){return r(e,"lchmod")(t,n)},lchown:function(t,n,i){return r(e,"lchown")(t,n,i)},link:function(t,n){return r(e,"link")(t,n)},lstat:function(t,n){return r(e,"lstat")(t,n)},mkdir:function(t,n){return r(e,"mkdir")(t,n)},mkdtemp:function(t,n){return r(e,"mkdtemp")(t,n)},open:function(t,n,o){return r(e,"open",(function(t){return new i(e,t)}))(t,n,o)},readdir:function(t,n){return r(e,"readdir")(t,n)},readFile:function(t,n){return r(e,"readFile")(t instanceof i?t.fd:t,n)},readlink:function(t,n){return r(e,"readlink")(t,n)},realpath:function(t,n){return r(e,"realpath")(t,n)},rename:function(t,n){return r(e,"rename")(t,n)},rmdir:function(t){return r(e,"rmdir")(t)},stat:function(t,n){return r(e,"stat")(t,n)},symlink:function(t,n,i){return r(e,"symlink")(t,n,i)},truncate:function(t,n){return r(e,"truncate")(t,n)},unlink:function(t){return r(e,"unlink")(t)},utimes:function(t,n,i){return r(e,"utimes")(t,n,i)},writeFile:function(t,n,o){return r(e,"writeFile")(t instanceof i?t.fd:t,n,o)}}}},80299:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r="function"===typeof setImmediate?setImmediate.bind(n.g):setTimeout.bind(n.g),t.default=r},12679:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=setTimeout.apply(null,arguments);return r&&"object"===typeof r&&"function"===typeof r.unref&&r.unref(),r}},66783:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r};Object.defineProperty(t,"__esModule",{value:!0});var o,s,a=n(14527),l=n(84680),c=n(99270),u=n(58836),d=n(60710),p=n(80299),f=n(41276),h=n(12679),m=n(52009),g=n(49923),_=n(88863),b=n(46506),v=n(42200),y=n(49723).l,S=n(81913),E=n(1950),w=a.resolve,C=g.constants.O_RDONLY,O=g.constants.O_WRONLY,T=g.constants.O_RDWR,N=g.constants.O_CREAT,I=g.constants.O_EXCL,x=g.constants.O_TRUNC,k=g.constants.O_APPEND,R=g.constants.O_SYNC,P=g.constants.F_OK,A=g.constants.COPYFILE_EXCL,L=g.constants.COPYFILE_FICLONE_FORCE;if(a.posix){var D=a.posix;o=D.sep,s=D.relative}else o=a.sep,s=a.relative;var M,j="win32"===f.default.platform,F={PATH_STR:"path must be a string or Buffer",FD:"fd must be a file descriptor",MODE_INT:"mode must be an int",CB:"callback must be a function",UID:"uid must be an unsigned int",GID:"gid must be an unsigned int",LEN:"len must be an integer",ATIME:"atime must be an integer",MTIME:"mtime must be an integer",PREFIX:"filename prefix is required",BUFFER:"buffer must be an instance of Buffer or StaticBuffer",OFFSET:"offset must be an integer",LENGTH:"length must be an integer",POSITION:"position must be an integer"},B=function(e){return"Expected options to be either an object or a string, but got "+e+" instead"},U="ENOENT",V="EBADF",H="EINVAL",z="EPERM",$="EPROTO",W="EEXIST",G="ENOTDIR",q="EMFILE",Y="EACCES",K="EISDIR",Q="ENOTEMPTY",X="ENOSYS";function Z(e,t,n,r,i){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=Error);var o=new i(function(e,t,n,r){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r="");var i="";switch(n&&(i=" '"+n+"'"),r&&(i+=" -> '"+r+"'"),e){case U:return"ENOENT: no such file or directory, "+t+i;case V:return"EBADF: bad file descriptor, "+t+i;case H:return"EINVAL: invalid argument, "+t+i;case z:return"EPERM: operation not permitted, "+t+i;case $:return"EPROTO: protocol error, "+t+i;case W:return"EEXIST: file already exists, "+t+i;case G:return"ENOTDIR: not a directory, "+t+i;case K:return"EISDIR: illegal operation on a directory, "+t+i;case Y:return"EACCES: permission denied, "+t+i;case Q:return"ENOTEMPTY: directory not empty, "+t+i;case q:return"EMFILE: too many open files, "+t+i;case X:return"ENOSYS: function not implemented, "+t+i;default:return e+": error occurred, "+t+i}}(e,t,n,r));return o.code=e,o}function J(e){if("number"===typeof e)return e;if("string"===typeof e){var t=M[e];if("undefined"!==typeof t)return t}throw new v.TypeError("ERR_INVALID_OPT_VALUE","flags",e)}function ee(e,t){var n;if(!t)return e;var r=typeof t;switch(r){case"string":n=y({},e,{encoding:t});break;case"object":n=y({},e,t);break;default:throw TypeError(B(r))}return"buffer"!==n.encoding&&b.assertEncoding(n.encoding),n}function te(e){return function(t){return ee(e,t)}}function ne(e){if("function"!==typeof e)throw TypeError(F.CB);return e}function re(e){return function(t,n){return"function"===typeof t?[e(),t]:[e(t),ne(n)]}}!function(e){e[e.r=C]="r",e[e["r+"]=T]="r+",e[e.rs=C|R]="rs",e[e.sr=e.rs]="sr",e[e["rs+"]=T|R]="rs+",e[e["sr+"]=e["rs+"]]="sr+",e[e.w=O|N|x]="w",e[e.wx=O|N|x|I]="wx",e[e.xw=e.wx]="xw",e[e["w+"]=T|N|x]="w+",e[e["wx+"]=T|N|x|I]="wx+",e[e["xw+"]=e["wx+"]]="xw+",e[e.a=O|k|N]="a",e[e.ax=O|k|N|I]="ax",e[e.xa=e.ax]="xa",e[e["a+"]=T|k|N]="a+",e[e["ax+"]=T|k|N|I]="ax+",e[e["xa+"]=e["ax+"]]="xa+"}(M=t.FLAGS||(t.FLAGS={})),t.flagsToNumber=J;var ie={encoding:"utf8"},oe=te(ie),se=re(oe),ae=te({flag:"r"}),le={encoding:"utf8",mode:438,flag:M[M.w]},ce=te(le),ue={encoding:"utf8",mode:438,flag:M[M.a]},de=te(ue),pe=re(de),fe=te(ie),he=re(fe),me={mode:511,recursive:!1},ge=function(e){return y({},me,"number"===typeof e?{mode:e}:e)},_e={recursive:!1},be=function(e){return y({},_e,e)},ve=te({encoding:"utf8",withFileTypes:!1}),ye=re(ve),Se={bigint:!1},Ee=function(e){return void 0===e&&(e={}),y({},Se,e)},we=function(e,t){return"function"===typeof e?[Ee(),e]:[Ee(e),ne(t)]};function Ce(e){if("string"!==typeof e&&!d.Buffer.isBuffer(e)){try{if(!(e instanceof n(51534).URL))throw new TypeError(F.PATH_STR)}catch(r){throw new TypeError(F.PATH_STR)}e=function(e){if(""!==e.hostname)throw new v.TypeError("ERR_INVALID_FILE_URL_HOST",f.default.platform);for(var t=e.pathname,n=0;n<t.length;n++)if("%"===t[n]){var r=32|t.codePointAt(n+2);if("2"===t[n+1]&&102===r)throw new v.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}return decodeURIComponent(t)}(e)}var t=String(e);return Pe(t),t}t.pathToFilename=Ce;var Oe=function(e,t){return void 0===t&&(t=f.default.cwd()),w(t,e)};if(j){var Te=Oe,Ne=n(26774).Z4;Oe=function(e,t){return Ne(Te(e,t))}}function Ie(e,t){var n=Oe(e,t).substr(1);return n?n.split(o):[]}function xe(e){return Ie(Ce(e))}function ke(e,t){return void 0===t&&(t=b.ENCODING_UTF8),d.Buffer.isBuffer(e)?e:e instanceof Uint8Array?d.bufferFrom(e):d.bufferFrom(String(e),t)}function Re(e,t){return t&&"buffer"!==t?e.toString(t):e}function Pe(e,t){if(-1!==(""+e).indexOf("\0")){var n=new Error("Path must be a string without null bytes");if(n.code=U,"function"!==typeof t)throw n;return f.default.nextTick(t,n),!1}return!0}function Ae(e,t){var n=function(e,t){return"number"===typeof e?e:"string"===typeof e?parseInt(e,8):t?Ae(t):void 0}(e,t);if("number"!==typeof n||isNaN(n))throw new TypeError(F.MODE_INT);return n}function Le(e){return e>>>0===e}function De(e){if(!Le(e))throw TypeError(F.FD)}function Me(e){if("string"===typeof e&&+e==e)return+e;if(e instanceof Date)return e.getTime()/1e3;if(isFinite(e))return e<0?Date.now()/1e3:e;throw new Error("Cannot parse time: "+e)}function je(e){if("number"!==typeof e)throw TypeError(F.UID)}function Fe(e){if("number"!==typeof e)throw TypeError(F.GID)}t.filenameToSteps=Ie,t.pathToSteps=xe,t.dataToStr=function(e,t){return void 0===t&&(t=b.ENCODING_UTF8),d.Buffer.isBuffer(e)?e.toString(t):e instanceof Uint8Array?d.bufferFrom(e).toString(t):String(e)},t.dataToBuffer=ke,t.bufferToEncoding=Re,t.toUnixTimestamp=Me;var Be=function(){function e(e){void 0===e&&(e={}),this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.maxFiles=1e4,this.openFiles=0,this.promisesApi=E.default(this),this.statWatchers={},this.props=y({Node:l.Node,Link:l.Link,File:l.File},e);var t=this.createLink();t.setNode(this.createNode(!0));var n=this;this.StatWatcher=function(e){function t(){return e.call(this,n)||this}return r(t,e),t}(He);var o=ze;this.ReadStream=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,i([n],t))||this}return r(t,e),t}(o);var s=We;this.WriteStream=function(e){function t(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.apply(this,i([n],t))||this}return r(t,e),t}(s),this.FSWatcher=function(e){function t(){return e.call(this,n)||this}return r(t,e),t}(Ge),this.root=t}return e.fromJSON=function(t,n){var r=new e;return r.fromJSON(t,n),r},Object.defineProperty(e.prototype,"promises",{get:function(){if(null===this.promisesApi)throw new Error("Promise is not supported in this environment.");return this.promisesApi},enumerable:!0,configurable:!0}),e.prototype.createLink=function(e,t,n,r){if(void 0===n&&(n=!1),!e)return new this.props.Link(this,null,"");if(!t)throw new Error("createLink: name cannot be empty");return e.createChild(t,this.createNode(n,r))},e.prototype.deleteLink=function(e){var t=e.parent;return!!t&&(t.deleteChild(e),!0)},e.prototype.newInoNumber=function(){var e=this.releasedInos.pop();return e||(this.ino=(this.ino+1)%4294967295,this.ino)},e.prototype.newFdNumber=function(){var t=this.releasedFds.pop();return"number"===typeof t?t:e.fd--},e.prototype.createNode=function(e,t){void 0===e&&(e=!1);var n=new this.props.Node(this.newInoNumber(),t);return e&&n.setIsDirectory(),this.inodes[n.ino]=n,n},e.prototype.getNode=function(e){return this.inodes[e]},e.prototype.deleteNode=function(e){e.del(),delete this.inodes[e.ino],this.releasedInos.push(e.ino)},e.prototype.genRndStr=function(){var e=(Math.random()+1).toString(36).substr(2,6);return 6===e.length?e:this.genRndStr()},e.prototype.getLink=function(e){return this.root.walk(e)},e.prototype.getLinkOrThrow=function(e,t){var n=Ie(e),r=this.getLink(n);if(!r)throw Z(U,t,e);return r},e.prototype.getResolvedLink=function(e){for(var t="string"===typeof e?Ie(e):e,n=this.root,r=0;r<t.length;){var i=t[r];if(!(n=n.getChild(i)))return null;var o=n.getNode();o.isSymlink()?(t=o.symlink.concat(t.slice(r+1)),n=this.root,r=0):r++}return n},e.prototype.getResolvedLinkOrThrow=function(e,t){var n=this.getResolvedLink(e);if(!n)throw Z(U,t,e);return n},e.prototype.resolveSymlinks=function(e){return this.getResolvedLink(e.steps.slice(1))},e.prototype.getLinkAsDirOrThrow=function(e,t){var n=this.getLinkOrThrow(e,t);if(!n.getNode().isDirectory())throw Z(G,t,e);return n},e.prototype.getLinkParent=function(e){return this.root.walk(e,e.length-1)},e.prototype.getLinkParentAsDirOrThrow=function(e,t){var n=e instanceof Array?e:Ie(e),r=this.getLinkParent(n);if(!r)throw Z(U,t,o+n.join(o));if(!r.getNode().isDirectory())throw Z(G,t,o+n.join(o));return r},e.prototype.getFileByFd=function(e){return this.fds[String(e)]},e.prototype.getFileByFdOrThrow=function(e,t){if(!Le(e))throw TypeError(F.FD);var n=this.getFileByFd(e);if(!n)throw Z(V,t);return n},e.prototype.getNodeByIdOrCreate=function(e,t,n){if("number"===typeof e){var r=this.getFileByFd(e);if(!r)throw Error("File nto found");return r.node}var i=xe(e),o=this.getLink(i);if(o)return o.getNode();if(t&N){var s=this.getLinkParent(i);if(s){var a=i[i.length-1];return(o=this.createLink(s,a,!1,n)).getNode()}}throw Z(U,"getNodeByIdOrCreate",Ce(e))},e.prototype.wrapAsync=function(e,t,n){var r=this;ne(n),p.default((function(){try{n(null,e.apply(r,t))}catch(i){n(i)}}))},e.prototype._toJSON=function(e,t,n){var r;void 0===e&&(e=this.root),void 0===t&&(t={});var i=!0,o=e.children;for(var a in e.getNode().isFile()&&((r={})[e.getName()]=e.parent.getChild(e.getName()),o=r,e=e.parent),o){i=!1;var l=e.getChild(a);if(!l)throw new Error("_toJSON: unexpected undefined");var c=l.getNode();if(c.isFile()){var u=l.getPath();n&&(u=s(n,u)),t[u]=c.getString()}else c.isDirectory()&&this._toJSON(l,t,n)}var d=e.getPath();return n&&(d=s(n,d)),d&&i&&(t[d]=null),t},e.prototype.toJSON=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var r=[];if(e){e instanceof Array||(e=[e]);for(var i=0,o=e;i<o.length;i++){var s=Ce(o[i]);(c=this.getResolvedLink(s))&&r.push(c)}}else r.push(this.root);if(!r.length)return t;for(var a=0,l=r;a<l.length;a++){var c=l[a];this._toJSON(c,t,n?c.getPath():"")}return t},e.prototype.fromJSON=function(e,t){for(var n in void 0===t&&(t=f.default.cwd()),e){var r=e[n];if("string"===typeof r){var i=Ie(n=Oe(n,t));if(i.length>1){var s=o+i.slice(0,i.length-1).join(o);this.mkdirpBase(s,511)}this.writeFileSync(n,r)}else this.mkdirpBase(n,511)}},e.prototype.reset=function(){this.ino=0,this.inodes={},this.releasedInos=[],this.fds={},this.releasedFds=[],this.openFiles=0,this.root=this.createLink(),this.root.setNode(this.createNode(!0))},e.prototype.mountSync=function(e,t){this.fromJSON(t,e)},e.prototype.openLink=function(e,t,n){if(void 0===n&&(n=!0),this.openFiles>=this.maxFiles)throw Z(q,"open",e.getPath());var r=e;if(n&&(r=this.resolveSymlinks(e)),!r)throw Z(U,"open",e.getPath());var i=r.getNode();if(i.isDirectory()&&t!==M.r)throw Z(K,"open",e.getPath());if(!(t&O)&&!i.canRead())throw Z(Y,"open",e.getPath());var o=new this.props.File(e,i,t,this.newFdNumber());return this.fds[o.fd]=o,this.openFiles++,t&x&&o.truncate(),o},e.prototype.openFile=function(e,t,n,r){void 0===r&&(r=!0);var i=Ie(e),s=r?this.getResolvedLink(i):this.getLink(i);if(!s&&t&N){var a=this.getResolvedLink(i.slice(0,i.length-1));if(!a)throw Z(U,"open",o+i.join(o));t&N&&"number"===typeof n&&(s=this.createLink(a,i[i.length-1],!1,n))}if(s)return this.openLink(s,t,r);throw Z(U,"open",e)},e.prototype.openBase=function(e,t,n,r){void 0===r&&(r=!0);var i=this.openFile(e,t,n,r);if(!i)throw Z(U,"open",e);return i.fd},e.prototype.openSync=function(e,t,n){void 0===n&&(n=438);var r=Ae(n),i=Ce(e),o=J(t);return this.openBase(i,o,r)},e.prototype.open=function(e,t,n,r){var i=n,o=r;"function"===typeof n&&(i=438,o=n);var s=Ae(i=i||438),a=Ce(e),l=J(t);this.wrapAsync(this.openBase,[a,l,s],o)},e.prototype.closeFile=function(e){this.fds[e.fd]&&(this.openFiles--,delete this.fds[e.fd],this.releasedFds.push(e.fd))},e.prototype.closeSync=function(e){De(e);var t=this.getFileByFdOrThrow(e,"close");this.closeFile(t)},e.prototype.close=function(e,t){De(e),this.wrapAsync(this.closeSync,[e],t)},e.prototype.openFileOrGetById=function(e,t,n){if("number"===typeof e){var r=this.fds[e];if(!r)throw Z(U);return r}return this.openFile(Ce(e),t,n)},e.prototype.readBase=function(e,t,n,r,i){return this.getFileByFdOrThrow(e).read(t,Number(n),Number(r),i)},e.prototype.readSync=function(e,t,n,r,i){return De(e),this.readBase(e,t,n,r,i)},e.prototype.read=function(e,t,n,r,i,o){var s=this;if(ne(o),0===r)return f.default.nextTick((function(){o&&o(null,0,t)}));p.default((function(){try{var a=s.readBase(e,t,n,r,i);o(null,a,t)}catch(l){o(l)}}))},e.prototype.readFileBase=function(e,t,n){var r,i,o="number"===typeof e&&Le(e);if(o)i=e;else{var s=Ie(Ce(e)),a=this.getResolvedLink(s);if(a)if(a.getNode().isDirectory())throw Z(K,"open",a.getPath());i=this.openSync(e,t)}try{r=Re(this.getFileByFdOrThrow(i).getBuffer(),n)}finally{o||this.closeSync(i)}return r},e.prototype.readFileSync=function(e,t){var n=ae(t),r=J(n.flag);return this.readFileBase(e,r,n.encoding)},e.prototype.readFile=function(e,t,n){var r=re(ae)(t,n),i=r[0],o=r[1],s=J(i.flag);this.wrapAsync(this.readFileBase,[e,s,i.encoding],o)},e.prototype.writeBase=function(e,t,n,r,i){return this.getFileByFdOrThrow(e,"write").write(t,n,r,i)},e.prototype.writeSync=function(e,t,n,r,i){var o,s,a,l;De(e);var c="string"!==typeof t;c?(s=0|(n||0),a=r,l=i):(l=n,o=r);var u=ke(t,o);return c?"undefined"===typeof a&&(a=u.length):(s=0,a=u.length),this.writeBase(e,u,s,a,l)},e.prototype.write=function(e,t,n,r,i,o){var s,a,l,c,u,d=this;De(e);var f=typeof t,h=typeof n,m=typeof r,g=typeof i;"string"!==f?"function"===h?u=n:"function"===m?(s=0|n,u=r):"function"===g?(s=0|n,a=r,u=i):(s=0|n,a=r,l=i,u=o):"function"===h?u=n:"function"===m?(l=n,u=r):"function"===g&&(l=n,c=r,u=i);var _=ke(t,c);"string"!==f?"undefined"===typeof a&&(a=_.length):(s=0,a=_.length);var b=ne(u);p.default((function(){try{var n=d.writeBase(e,_,s,a,l);b(null,n,"string"!==f?_:t)}catch(r){b(r)}}))},e.prototype.writeFileBase=function(e,t,n,r){var i,o="number"===typeof e;i=o?e:this.openBase(Ce(e),n,r);var s=0,a=t.length,l=n&k?void 0:0;try{for(;a>0;){var c=this.writeSync(i,t,s,a,l);s+=c,a-=c,void 0!==l&&(l+=c)}}finally{o||this.closeSync(i)}},e.prototype.writeFileSync=function(e,t,n){var r=ce(n),i=J(r.flag),o=Ae(r.mode),s=ke(t,r.encoding);this.writeFileBase(e,s,i,o)},e.prototype.writeFile=function(e,t,n,r){var i=n,o=r;"function"===typeof n&&(i=le,o=n);var s=ne(o),a=ce(i),l=J(a.flag),c=Ae(a.mode),u=ke(t,a.encoding);this.wrapAsync(this.writeFileBase,[e,u,l,c],s)},e.prototype.linkBase=function(e,t){var n=Ie(e),r=this.getLink(n);if(!r)throw Z(U,"link",e,t);var i=Ie(t),o=this.getLinkParent(i);if(!o)throw Z(U,"link",e,t);var s=i[i.length-1];if(o.getChild(s))throw Z(W,"link",e,t);var a=r.getNode();a.nlink++,o.createChild(s,a)},e.prototype.copyFileBase=function(e,t,n){var r=this.readFileSync(e);if(n&A&&this.existsSync(t))throw Z(W,"copyFile",e,t);if(n&L)throw Z(X,"copyFile",e,t);this.writeFileBase(t,r,M.w,438)},e.prototype.copyFileSync=function(e,t,n){var r=Ce(e),i=Ce(t);return this.copyFileBase(r,i,0|(n||0))},e.prototype.copyFile=function(e,t,n,r){var i,o,s=Ce(e),a=Ce(t);"function"===typeof n?(i=0,o=n):(i=n,o=r),ne(o),this.wrapAsync(this.copyFileBase,[s,a,i],o)},e.prototype.linkSync=function(e,t){var n=Ce(e),r=Ce(t);this.linkBase(n,r)},e.prototype.link=function(e,t,n){var r=Ce(e),i=Ce(t);this.wrapAsync(this.linkBase,[r,i],n)},e.prototype.unlinkBase=function(e){var t=Ie(e),n=this.getLink(t);if(!n)throw Z(U,"unlink",e);if(n.length)throw Error("Dir not empty...");this.deleteLink(n);var r=n.getNode();r.nlink--,r.nlink<=0&&this.deleteNode(r)},e.prototype.unlinkSync=function(e){var t=Ce(e);this.unlinkBase(t)},e.prototype.unlink=function(e,t){var n=Ce(e);this.wrapAsync(this.unlinkBase,[n],t)},e.prototype.symlinkBase=function(e,t){var n=Ie(t),r=this.getLinkParent(n);if(!r)throw Z(U,"symlink",e,t);var i=n[n.length-1];if(r.getChild(i))throw Z(W,"symlink",e,t);var o=r.createChild(i);return o.getNode().makeSymlink(Ie(e)),o},e.prototype.symlinkSync=function(e,t,n){var r=Ce(e),i=Ce(t);this.symlinkBase(r,i)},e.prototype.symlink=function(e,t,n,r){var i=ne("function"===typeof n?n:r),o=Ce(e),s=Ce(t);this.wrapAsync(this.symlinkBase,[o,s],i)},e.prototype.realpathBase=function(e,t){var n=Ie(e),r=this.getResolvedLink(n);if(!r)throw Z(U,"realpath",e);return b.strToEncoding(r.getPath(),t)},e.prototype.realpathSync=function(e,t){return this.realpathBase(Ce(e),fe(t).encoding)},e.prototype.realpath=function(e,t,n){var r=he(t,n),i=r[0],o=r[1],s=Ce(e);this.wrapAsync(this.realpathBase,[s,i.encoding],o)},e.prototype.lstatBase=function(e,t){void 0===t&&(t=!1);var n=this.getLink(Ie(e));if(!n)throw Z(U,"lstat",e);return c.default.build(n.getNode(),t)},e.prototype.lstatSync=function(e,t){return this.lstatBase(Ce(e),Ee(t).bigint)},e.prototype.lstat=function(e,t,n){var r=we(t,n),i=r[0],o=r[1];this.wrapAsync(this.lstatBase,[Ce(e),i.bigint],o)},e.prototype.statBase=function(e,t){void 0===t&&(t=!1);var n=this.getResolvedLink(Ie(e));if(!n)throw Z(U,"stat",e);return c.default.build(n.getNode(),t)},e.prototype.statSync=function(e,t){return this.statBase(Ce(e),Ee(t).bigint)},e.prototype.stat=function(e,t,n){var r=we(t,n),i=r[0],o=r[1];this.wrapAsync(this.statBase,[Ce(e),i.bigint],o)},e.prototype.fstatBase=function(e,t){void 0===t&&(t=!1);var n=this.getFileByFd(e);if(!n)throw Z(V,"fstat");return c.default.build(n.node,t)},e.prototype.fstatSync=function(e,t){return this.fstatBase(e,Ee(t).bigint)},e.prototype.fstat=function(e,t,n){var r=we(t,n),i=r[0],o=r[1];this.wrapAsync(this.fstatBase,[e,i.bigint],o)},e.prototype.renameBase=function(e,t){var n=this.getLink(Ie(e));if(!n)throw Z(U,"rename",e,t);var r=Ie(t),o=this.getLinkParent(r);if(!o)throw Z(U,"rename",e,t);var s=n.parent;s&&s.deleteChild(n);var a=r[r.length-1];n.steps=i(o.steps,[a]),o.setChild(n.getName(),n)},e.prototype.renameSync=function(e,t){var n=Ce(e),r=Ce(t);this.renameBase(n,r)},e.prototype.rename=function(e,t,n){var r=Ce(e),i=Ce(t);this.wrapAsync(this.renameBase,[r,i],n)},e.prototype.existsBase=function(e){return!!this.statBase(e)},e.prototype.existsSync=function(e){try{return this.existsBase(Ce(e))}catch(t){return!1}},e.prototype.exists=function(e,t){var n=this,r=Ce(e);if("function"!==typeof t)throw Error(F.CB);p.default((function(){try{t(n.existsBase(r))}catch(e){t(!1)}}))},e.prototype.accessBase=function(e,t){this.getLinkOrThrow(e,"access")},e.prototype.accessSync=function(e,t){void 0===t&&(t=P);var n=Ce(e);t|=0,this.accessBase(n,t)},e.prototype.access=function(e,t,n){var r,i=P;"function"!==typeof t?(i=0|t,r=ne(n)):r=t;var o=Ce(e);this.wrapAsync(this.accessBase,[o,i],r)},e.prototype.appendFileSync=function(e,t,n){void 0===n&&(n=ue);var r=de(n);r.flag&&!Le(e)||(r.flag="a"),this.writeFileSync(e,t,r)},e.prototype.appendFile=function(e,t,n,r){var i=pe(n,r),o=i[0],s=i[1];o.flag&&!Le(e)||(o.flag="a"),this.writeFile(e,t,o,s)},e.prototype.readdirBase=function(e,t){var n=Ie(e),r=this.getResolvedLink(n);if(!r)throw Z(U,"readdir",e);if(!r.getNode().isDirectory())throw Z(G,"scandir",e);if(t.withFileTypes){var i=[];for(var o in r.children){var s=r.getChild(o);s&&i.push(u.default.build(s,t.encoding))}return j||"buffer"===t.encoding||i.sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0})),i}var a=[];for(var l in r.children)a.push(b.strToEncoding(l,t.encoding));return j||"buffer"===t.encoding||a.sort(),a},e.prototype.readdirSync=function(e,t){var n=ve(t),r=Ce(e);return this.readdirBase(r,n)},e.prototype.readdir=function(e,t,n){var r=ye(t,n),i=r[0],o=r[1],s=Ce(e);this.wrapAsync(this.readdirBase,[s,i],o)},e.prototype.readlinkBase=function(e,t){var n=this.getLinkOrThrow(e,"readlink").getNode();if(!n.isSymlink())throw Z(H,"readlink",e);var r=o+n.symlink.join(o);return b.strToEncoding(r,t)},e.prototype.readlinkSync=function(e,t){var n=oe(t),r=Ce(e);return this.readlinkBase(r,n.encoding)},e.prototype.readlink=function(e,t,n){var r=se(t,n),i=r[0],o=r[1],s=Ce(e);this.wrapAsync(this.readlinkBase,[s,i.encoding],o)},e.prototype.fsyncBase=function(e){this.getFileByFdOrThrow(e,"fsync")},e.prototype.fsyncSync=function(e){this.fsyncBase(e)},e.prototype.fsync=function(e,t){this.wrapAsync(this.fsyncBase,[e],t)},e.prototype.fdatasyncBase=function(e){this.getFileByFdOrThrow(e,"fdatasync")},e.prototype.fdatasyncSync=function(e){this.fdatasyncBase(e)},e.prototype.fdatasync=function(e,t){this.wrapAsync(this.fdatasyncBase,[e],t)},e.prototype.ftruncateBase=function(e,t){this.getFileByFdOrThrow(e,"ftruncate").truncate(t)},e.prototype.ftruncateSync=function(e,t){this.ftruncateBase(e,t)},e.prototype.ftruncate=function(e,t,n){var r="number"===typeof t?t:0,i=ne("number"===typeof t?n:t);this.wrapAsync(this.ftruncateBase,[e,r],i)},e.prototype.truncateBase=function(e,t){var n=this.openSync(e,"r+");try{this.ftruncateSync(n,t)}finally{this.closeSync(n)}},e.prototype.truncateSync=function(e,t){if(Le(e))return this.ftruncateSync(e,t);this.truncateBase(e,t)},e.prototype.truncate=function(e,t,n){var r="number"===typeof t?t:0,i=ne("number"===typeof t?n:t);if(Le(e))return this.ftruncate(e,r,i);this.wrapAsync(this.truncateBase,[e,r],i)},e.prototype.futimesBase=function(e,t,n){var r=this.getFileByFdOrThrow(e,"futimes").node;r.atime=new Date(1e3*t),r.mtime=new Date(1e3*n)},e.prototype.futimesSync=function(e,t,n){this.futimesBase(e,Me(t),Me(n))},e.prototype.futimes=function(e,t,n,r){this.wrapAsync(this.futimesBase,[e,Me(t),Me(n)],r)},e.prototype.utimesBase=function(e,t,n){var r=this.openSync(e,"r+");try{this.futimesBase(r,t,n)}finally{this.closeSync(r)}},e.prototype.utimesSync=function(e,t,n){this.utimesBase(Ce(e),Me(t),Me(n))},e.prototype.utimes=function(e,t,n,r){this.wrapAsync(this.utimesBase,[Ce(e),Me(t),Me(n)],r)},e.prototype.mkdirBase=function(e,t){var n=Ie(e);if(!n.length)throw Z(K,"mkdir",e);var r=this.getLinkParentAsDirOrThrow(e,"mkdir"),i=n[n.length-1];if(r.getChild(i))throw Z(W,"mkdir",e);r.createChild(i,this.createNode(!0,t))},e.prototype.mkdirpBase=function(e,t){for(var n=Ie(e),r=this.root,i=0;i<n.length;i++){var o=n[i];if(!r.getNode().isDirectory())throw Z(G,"mkdir",r.getPath());var s=r.getChild(o);if(s){if(!s.getNode().isDirectory())throw Z(G,"mkdir",s.getPath());r=s}else r=r.createChild(o,this.createNode(!0,t))}},e.prototype.mkdirSync=function(e,t){var n=ge(t),r=Ae(n.mode,511),i=Ce(e);n.recursive?this.mkdirpBase(i,r):this.mkdirBase(i,r)},e.prototype.mkdir=function(e,t,n){var r=ge(t),i=ne("function"===typeof t?t:n),o=Ae(r.mode,511),s=Ce(e);r.recursive?this.wrapAsync(this.mkdirpBase,[s,o],i):this.wrapAsync(this.mkdirBase,[s,o],i)},e.prototype.mkdirpSync=function(e,t){this.mkdirSync(e,{mode:t,recursive:!0})},e.prototype.mkdirp=function(e,t,n){var r="function"===typeof t?void 0:t,i=ne("function"===typeof t?t:n);this.mkdir(e,{mode:r,recursive:!0},i)},e.prototype.mkdtempBase=function(e,t,n){void 0===n&&(n=5);var r=e+this.genRndStr();try{return this.mkdirBase(r,511),b.strToEncoding(r,t)}catch(i){if(i.code===W){if(n>1)return this.mkdtempBase(e,t,n-1);throw Error("Could not create temp dir.")}throw i}},e.prototype.mkdtempSync=function(e,t){var n=oe(t).encoding;if(!e||"string"!==typeof e)throw new TypeError("filename prefix is required");return Pe(e),this.mkdtempBase(e,n)},e.prototype.mkdtemp=function(e,t,n){var r=se(t,n),i=r[0].encoding,o=r[1];if(!e||"string"!==typeof e)throw new TypeError("filename prefix is required");Pe(e)&&this.wrapAsync(this.mkdtempBase,[e,i],o)},e.prototype.rmdirBase=function(e,t){var n=be(t),r=this.getLinkAsDirOrThrow(e,"rmdir");if(r.length&&!n.recursive)throw Z(Q,"rmdir",e);this.deleteLink(r)},e.prototype.rmdirSync=function(e,t){this.rmdirBase(Ce(e),t)},e.prototype.rmdir=function(e,t,n){var r=be(t),i=ne("function"===typeof t?t:n);this.wrapAsync(this.rmdirBase,[Ce(e),r],i)},e.prototype.fchmodBase=function(e,t){this.getFileByFdOrThrow(e,"fchmod").chmod(t)},e.prototype.fchmodSync=function(e,t){this.fchmodBase(e,Ae(t))},e.prototype.fchmod=function(e,t,n){this.wrapAsync(this.fchmodBase,[e,Ae(t)],n)},e.prototype.chmodBase=function(e,t){var n=this.openSync(e,"r+");try{this.fchmodBase(n,t)}finally{this.closeSync(n)}},e.prototype.chmodSync=function(e,t){var n=Ae(t),r=Ce(e);this.chmodBase(r,n)},e.prototype.chmod=function(e,t,n){var r=Ae(t),i=Ce(e);this.wrapAsync(this.chmodBase,[i,r],n)},e.prototype.lchmodBase=function(e,t){var n=this.openBase(e,T,0,!1);try{this.fchmodBase(n,t)}finally{this.closeSync(n)}},e.prototype.lchmodSync=function(e,t){var n=Ae(t),r=Ce(e);this.lchmodBase(r,n)},e.prototype.lchmod=function(e,t,n){var r=Ae(t),i=Ce(e);this.wrapAsync(this.lchmodBase,[i,r],n)},e.prototype.fchownBase=function(e,t,n){this.getFileByFdOrThrow(e,"fchown").chown(t,n)},e.prototype.fchownSync=function(e,t,n){je(t),Fe(n),this.fchownBase(e,t,n)},e.prototype.fchown=function(e,t,n,r){je(t),Fe(n),this.wrapAsync(this.fchownBase,[e,t,n],r)},e.prototype.chownBase=function(e,t,n){this.getResolvedLinkOrThrow(e,"chown").getNode().chown(t,n)},e.prototype.chownSync=function(e,t,n){je(t),Fe(n),this.chownBase(Ce(e),t,n)},e.prototype.chown=function(e,t,n,r){je(t),Fe(n),this.wrapAsync(this.chownBase,[Ce(e),t,n],r)},e.prototype.lchownBase=function(e,t,n){this.getLinkOrThrow(e,"lchown").getNode().chown(t,n)},e.prototype.lchownSync=function(e,t,n){je(t),Fe(n),this.lchownBase(Ce(e),t,n)},e.prototype.lchown=function(e,t,n,r){je(t),Fe(n),this.wrapAsync(this.lchownBase,[Ce(e),t,n],r)},e.prototype.watchFile=function(e,t,n){var r=Ce(e),i=t,o=n;if("function"===typeof i&&(o=t,i=null),"function"!==typeof o)throw Error('"watchFile()" requires a listener function');var s=5007,a=!0;i&&"object"===typeof i&&("number"===typeof i.interval&&(s=i.interval),"boolean"===typeof i.persistent&&(a=i.persistent));var l=this.statWatchers[r];return l||((l=new this.StatWatcher).start(r,a,s),this.statWatchers[r]=l),l.addListener("change",o),l},e.prototype.unwatchFile=function(e,t){var n=Ce(e),r=this.statWatchers[n];r&&("function"===typeof t?r.removeListener("change",t):r.removeAllListeners("change"),0===r.listenerCount("change")&&(r.stop(),delete this.statWatchers[n]))},e.prototype.createReadStream=function(e,t){return new this.ReadStream(e,t)},e.prototype.createWriteStream=function(e,t){return new this.WriteStream(e,t)},e.prototype.watch=function(e,t,n){var r=Ce(e),i=t;"function"===typeof t&&(n=t,i=null);var o=oe(i),s=o.persistent,a=o.recursive,l=o.encoding;void 0===s&&(s=!0),void 0===a&&(a=!1);var c=new this.FSWatcher;return c.start(r,s,a,l),n&&c.addListener("change",n),c},e.fd=2147483647,e}();function Ue(e){e.emit("stop")}t.Volume=Be;var Ve,He=function(e){function t(t){var n=e.call(this)||this;return n.onInterval=function(){try{var e=n.vol.statSync(n.filename);n.hasChanged(e)&&(n.emit("change",e,n.prev),n.prev=e)}finally{n.loop()}},n.vol=t,n}return r(t,e),t.prototype.loop=function(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)},t.prototype.hasChanged=function(e){return e.mtimeMs>this.prev.mtimeMs||e.nlink!==this.prev.nlink},t.prototype.start=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=5007),this.filename=Ce(e),this.setTimeout=t?setTimeout:h.default,this.interval=n,this.prev=this.vol.statSync(this.filename),this.loop()},t.prototype.stop=function(){clearTimeout(this.timeoutRef),f.default.nextTick(Ue,this)},t}(_.EventEmitter);function ze(e,t,n){if(!(this instanceof ze))return new ze(e,t,n);if(this._vol=e,void 0===(n=y({},ee(n,{}))).highWaterMark&&(n.highWaterMark=65536),m.Readable.call(this,n),this.path=Ce(t),this.fd=void 0===n.fd?null:n.fd,this.flags=void 0===n.flags?"r":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=n.start,this.end=n.end,this.autoClose=void 0===n.autoClose||n.autoClose,this.pos=void 0,this.bytesRead=0,void 0!==this.start){if("number"!==typeof this.start)throw new TypeError('"start" option must be a Number');if(void 0===this.end)this.end=1/0;else if("number"!==typeof this.end)throw new TypeError('"end" option must be a Number');if(this.start>this.end)throw new Error('"start" option must be <= "end" option');this.pos=this.start}"number"!==typeof this.fd&&this.open(),this.on("end",(function(){this.autoClose&&this.destroy&&this.destroy()}))}function $e(e){this.close()}function We(e,t,n){if(!(this instanceof We))return new We(e,t,n);if(this._vol=e,n=y({},ee(n,{})),m.Writable.call(this,n),this.path=Ce(t),this.fd=void 0===n.fd?null:n.fd,this.flags=void 0===n.flags?"w":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=n.start,this.autoClose=void 0===n.autoClose||!!n.autoClose,this.pos=void 0,this.bytesWritten=0,void 0!==this.start){if("number"!==typeof this.start)throw new TypeError('"start" option must be a Number');if(this.start<0)throw new Error('"start" must be >= zero');this.pos=this.start}n.encoding&&this.setDefaultEncoding(n.encoding),"number"!==typeof this.fd&&this.open(),this.once("finish",(function(){this.autoClose&&this.close()}))}t.StatWatcher=He,S.inherits(ze,m.Readable),t.ReadStream=ze,ze.prototype.open=function(){var e=this;this._vol.open(this.path,this.flags,this.mode,(function(t,n){if(t)return e.autoClose&&e.destroy&&e.destroy(),void e.emit("error",t);e.fd=n,e.emit("open",n),e.read()}))},ze.prototype._read=function(e){if("number"!==typeof this.fd)return this.once("open",(function(){this._read(e)}));if(!this.destroyed){var t;(!Ve||Ve.length-Ve.used<128)&&(t=this._readableState.highWaterMark,(Ve=d.bufferAllocUnsafe(t)).used=0);var n=Ve,r=Math.min(Ve.length-Ve.used,e),i=Ve.used;if(void 0!==this.pos&&(r=Math.min(this.end-this.pos+1,r)),r<=0)return this.push(null);var o=this;this._vol.read(this.fd,Ve,Ve.used,r,this.pos,(function(e,t){if(e)o.autoClose&&o.destroy&&o.destroy(),o.emit("error",e);else{var r=null;t>0&&(o.bytesRead+=t,r=n.slice(i,i+t)),o.push(r)}})),void 0!==this.pos&&(this.pos+=r),Ve.used+=r}},ze.prototype._destroy=function(e,t){this.close((function(n){t(e||n)}))},ze.prototype.close=function(e){var t=this;if(e&&this.once("close",e),this.closed||"number"!==typeof this.fd)return"number"!==typeof this.fd?void this.once("open",$e):f.default.nextTick((function(){return t.emit("close")}));this.closed=!0,this._vol.close(this.fd,(function(e){e?t.emit("error",e):t.emit("close")})),this.fd=null},S.inherits(We,m.Writable),t.WriteStream=We,We.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(e,t){if(e)return this.autoClose&&this.destroy&&this.destroy(),void this.emit("error",e);this.fd=t,this.emit("open",t)}.bind(this))},We.prototype._write=function(e,t,n){if(!(e instanceof d.Buffer))return this.emit("error",new Error("Invalid data"));if("number"!==typeof this.fd)return this.once("open",(function(){this._write(e,t,n)}));var r=this;this._vol.write(this.fd,e,0,e.length,this.pos,(function(e,t){if(e)return r.autoClose&&r.destroy&&r.destroy(),n(e);r.bytesWritten+=t,n()})),void 0!==this.pos&&(this.pos+=e.length)},We.prototype._writev=function(e,t){if("number"!==typeof this.fd)return this.once("open",(function(){this._writev(e,t)}));for(var n=this,r=e.length,i=new Array(r),o=0,s=0;s<r;s++){var a=e[s].chunk;i[s]=a,o+=a.length}var l=d.Buffer.concat(i);this._vol.write(this.fd,l,0,l.length,this.pos,(function(e,r){if(e)return n.destroy&&n.destroy(),t(e);n.bytesWritten+=r,t()})),void 0!==this.pos&&(this.pos+=o)},We.prototype._destroy=ze.prototype._destroy,We.prototype.close=ze.prototype.close,We.prototype.destroySoon=We.prototype.end;var Ge=function(e){function t(t){var n=e.call(this)||this;return n._filename="",n._filenameEncoded="",n._recursive=!1,n._encoding=b.ENCODING_UTF8,n._onNodeChange=function(){n._emit("change")},n._onParentChild=function(e){e.getName()===n._getName()&&n._emit("rename")},n._emit=function(e){n.emit("change",e,n._filenameEncoded)},n._persist=function(){n._timer=setTimeout(n._persist,1e6)},n._vol=t,n}return r(t,e),t.prototype._getName=function(){return this._steps[this._steps.length-1]},t.prototype.start=function(e,t,n,r){void 0===t&&(t=!0),void 0===n&&(n=!1),void 0===r&&(r=b.ENCODING_UTF8),this._filename=Ce(e),this._steps=Ie(this._filename),this._filenameEncoded=b.strToEncoding(this._filename),this._recursive=n,this._encoding=r;try{this._link=this._vol.getLinkOrThrow(this._filename,"FSWatcher")}catch(s){var i=new Error("watch "+this._filename+" "+s.code);throw i.code=s.code,i.errno=s.code,i}this._link.getNode().on("change",this._onNodeChange),this._link.on("child:add",this._onNodeChange),this._link.on("child:delete",this._onNodeChange);var o=this._link.parent;o&&(o.setMaxListeners(o.getMaxListeners()+1),o.on("child:delete",this._onParentChild)),t&&this._persist()},t.prototype.close=function(){clearTimeout(this._timer),this._link.getNode().removeListener("change",this._onNodeChange);var e=this._link.parent;e&&e.removeListener("child:delete",this._onParentChild)},t}(_.EventEmitter);t.FSWatcher=Ge},17084:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.APIReferenceExplorer=void 0;const i=r(n(72243)),o=r(n(80852)),s=n(80271),a=n(87065),l=r(n(82023));t.APIReferenceExplorer=function({apiTree:e,selectedAPIName:t,className:n,getIcon:r}){return i.default.createElement("div",{className:(0,o.default)(l.default.apiReferenceExplorer,n)},i.default.createElement(s.FileTree,{getHref:e=>{const t=e.id,n=t.includes("_Internals"),r=n?t.replace("_Internals/",""):t,i=n?r:r.split("/")[1];return(0,a.useUpdatedUrlFromQuery)({selectedAPI:i})},files:e,selected:t,getIcon:r}))}},89238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APIReferenceExplorerProps=t.APIReferenceExplorer=void 0;var r=n(17084);Object.defineProperty(t,"APIReferenceExplorer",{enumerable:!0,get:function(){return r.APIReferenceExplorer}}),Object.defineProperty(t,"APIReferenceExplorerProps",{enumerable:!0,get:function(){return r.APIReferenceExplorerProps}})},87065:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdatedUrlFromQuery=t.APIRefQueryParams=t.useAPIRefParam=void 0;var r=n(83821);Object.defineProperty(t,"useAPIRefParam",{enumerable:!0,get:function(){return r.useAPIRefParam}}),Object.defineProperty(t,"APIRefQueryParams",{enumerable:!0,get:function(){return r.APIRefQueryParams}}),Object.defineProperty(t,"useUpdatedUrlFromQuery",{enumerable:!0,get:function(){return r.useUpdatedUrlFromQuery}})},83821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdatedUrlFromQuery=t.useAPIRefParam=void 0;const r=n(31192),i=n(31333);t.useAPIRefParam=function(e){const t=(0,r.useQuery)().get(e);return null!==t&&void 0!==t?t:void 0},t.useUpdatedUrlFromQuery=function(e){const t=(0,r.useQuery)(),n=(0,i.useLocation)()||{pathname:"/"},o=Object.fromEntries(t.entries()),s=Object.assign(Object.assign({},o),e),a=new URLSearchParams(s).toString();return`${n.pathname}?${a}`}},50374:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAPI=void 0;var r=n(49317);Object.defineProperty(t,"useAPI",{enumerable:!0,get:function(){return r.useAPI}})},49317:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.useAPI=void 0;const i=n(41815),o=n(17642),s=n(69819),a=o.gql`
3
3
  query Schema($extensionId: String!, $componentId: String!) {
4
4
  getHost(id: $extensionId) {
5
5
  id # used for GQL caching
@@ -699,7 +699,7 @@
699
699
  }
700
700
  }
701
701
  }
702
- `;t.useScopeQuery=function(e){const{data:t,loading:n}=(0,r.useDataQuery)(s,{skip:e});return!t||n?{loading:n}:{scope:o.ScopeModel.from(t),loading:n}}},25520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeDetails=void 0;var r=n(26673);Object.defineProperty(t,"ScopeDetails",{enumerable:!0,get:function(){return r.ScopeDetails}})},26673:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeDetails=void 0;const l=n(92926),c=n(82190),u=n(41263),d=n(5125),p=a(n(80852)),f=o(n(72243)),h=a(n(7700));t.ScopeDetails=function(e){var{scopeName:t,icon:n,backgroundIconColor:r,badgeSlot:i,overviewSlot:o,description:a,componentCount:m,className:g}=e,_=s(e,["scopeName","icon","backgroundIconColor","badgeSlot","overviewSlot","description","componentCount","className"]);const b=(0,f.useMemo)((()=>(0,c.flatten)(o.values())),[o]);return f.default.createElement("div",Object.assign({},_,{className:(0,p.default)(h.default.scopeTitle,g)}),f.default.createElement("div",{className:h.default.titleRow},f.default.createElement(d.ScopeTitle,{scopeName:t,icon:n,backgroundIconColor:r})),f.default.createElement(l.Subtitle,null,a),f.default.createElement(u.ScopeLabels,{badgeSlot:i,componentCount:m}),b.length>0&&b.map(((e,t)=>f.default.createElement(e,{key:t}))))}},94342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIcon=void 0;var r=n(68138);Object.defineProperty(t,"ScopeIcon",{enumerable:!0,get:function(){return r.ScopeIcon}})},68138:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIcon=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(78466),l=n(34160),c=n(79057),u=i(n(2805));t.ScopeIcon=function(e){var t,{displayName:n,scopeImage:i,bgColor:d,size:p=48,imgClassName:f,className:h}=e,m=r(e,["displayName","scopeImage","bgColor","size","imgClassName","className"]);const g=i&&(0,c.addAvatarQueryParams)(i,p,""),_=null===i||void 0===i?void 0:i.includes("scope-icons-selector/");return o.default.createElement("div",Object.assign({className:(0,s.default)(u.default.scopeIcon,i&&u.default.iconBackground,_&&u.default.isIcon,h),style:{backgroundColor:d,fontSize:p}},m),g?o.default.createElement("img",{src:g,className:(0,s.default)(u.default.scopeImg,f)}):o.default.createElement("span",{className:(0,s.default)(u.default.letter,a.textSize.xs)},n?null===(t=(0,l.getInitials)(n))||void 0===t?void 0:t.toUpperCase():"?"))}},1855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=void 0,t.getInitials=function(e){if(!e)return;const t=e.split(" ");return t.length>1?t.slice(0,2).map((e=>e[0])).join(""):e.slice(0,2)}},34160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=void 0;var r=n(1855);Object.defineProperty(t,"getInitials",{enumerable:!0,get:function(){return r.getInitials}})},76082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAvatarQueryParams=void 0,t.addAvatarQueryParams=function(e,t,n){if(!e)return e;const r="string"===typeof t?parseInt(t):t,i=e.indexOf("?")>-1;return`${e}${i?"&":"?"}${[].concat([`size=${t}`],["w="+2*r,"h="+2*r,"crop=faces","fit=crop",`bg=${n}`]).join("&")}`}},79057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAvatarQueryParams=void 0;var r=n(76082);Object.defineProperty(t,"addAvatarQueryParams",{enumerable:!0,get:function(){return r.addAvatarQueryParams}})},41263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeLabels=void 0;var r=n(73069);Object.defineProperty(t,"ScopeLabels",{enumerable:!0,get:function(){return r.ScopeLabels}})},73069:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeLabels=void 0;const i=n(82190),o=r(n(80852)),s=r(n(72243)),a=n(67541),l=r(n(71331));t.ScopeLabels=function({badgeSlot:e,componentCount:t,className:n}){const r=(0,i.flatten)(e.values());return s.default.createElement("div",{className:(0,o.default)(l.default.pillsContainer,n)},r.map(((e,t)=>{const n=e;return s.default.createElement(n,{key:t})})),s.default.createElement(a.ComponentCount,{count:t}))}},5125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeTitle=void 0;var r=n(70222);Object.defineProperty(t,"ScopeTitle",{enumerable:!0,get:function(){return r.ScopeTitle}})},70222:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeTitle=void 0;const i=r(n(72243)),o=r(n(80852)),s=n(71828),a=n(17069),l=n(94342),c=r(n(41971));t.ScopeTitle=function({scopeName:e,icon:t,backgroundIconColor:n="#babec9",className:r,iconClassName:u}){return i.default.createElement(a.H1,{className:c.default.title,size:"sm"},i.default.createElement(l.ScopeIcon,{size:32,displayName:e.split(".")[1]||e,scopeImage:t,bgColor:n,className:u}),i.default.createElement("span",{className:(0,o.default)(s.mutedText,c.default.orgName,r)},e.replace(".","/")))}},5722:(e,t,n)=>{"use strict";function r(){const e=n(91576);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentNotFound=void 0;class i extends r().BitError{constructor(e){super(`component with id: ${e} was not found`)}}t.ComponentNotFound=i},42820:(e,t,n)=>{"use strict";function r(){const e=n(5722);return r=function(){return e},e}function i(){const e=n(28977);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ComponentNotFound",{enumerable:!0,get:function(){return r().ComponentNotFound}}),Object.defineProperty(t,"NoIdMatchPattern",{enumerable:!0,get:function(){return i().NoIdMatchPattern}})},28977:(e,t,n)=>{"use strict";function r(){const e=n(91576);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.NoIdMatchPattern=void 0;class i extends r().BitError{constructor(e){super(`unable to find any matching for "${e}" pattern`)}}t.NoIdMatchPattern=i},46162:(e,t,n)=>{"use strict";function r(){const e=n(39489);return r=function(){return e},e}function i(){const e=n(42820);return i=function(){return e},e}function o(){const e=n(24853);return o=function(){return e},e}function s(){const e=n(87431);return s=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ComponentNotFound",{enumerable:!0,get:function(){return i().ComponentNotFound}}),Object.defineProperty(t,"NoIdMatchPattern",{enumerable:!0,get:function(){return i().NoIdMatchPattern}}),Object.defineProperty(t,"ScopeAspect",{enumerable:!0,get:function(){return r().ScopeAspect}}),Object.defineProperty(t,"ScopeComponentCard",{enumerable:!0,get:function(){return o().ScopeComponentCard}}),Object.defineProperty(t,"ScopeContext",{enumerable:!0,get:function(){return s().ScopeContext}}),t.default=void 0;var a=r().ScopeAspect;t.default=a},39489:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ScopeAspect=void 0;const i=r().Aspect.create({id:"teambit.scope/scope"});t.ScopeAspect=i;var o=i;t.default=o},98881:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return r=function(){return e},e}function i(){const e=n(60599);return i=function(){return e},e}function o(){const e=n(31172);return o=function(){return e},e}function s(){const e=n(70976);return s=function(){return e},e}function a(){const e=n(5986);return a=function(){return e},e}function l(){const e=n(87431);return l=function(){return e},e}function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.scopeDrawer=void 0;t.scopeDrawer=({treeWidgets:e,filtersSlot:t,drawerWidgetSlot:n,assumeScopeInUrl:c=!1,overrideUseComponents:d,overrideUseLanes:p})=>{const f=p||s().useLanes;return new(i().ComponentsDrawer)({assumeScopeInUrl:c,order:0,id:"scope-components-drawer",name:"COMPONENTS",plugins:{tree:{widgets:e,customRenderer:(e,t)=>function n(i){const s=i.node.children;if(!s)return r().default.createElement(o().ComponentView,u({},i,{treeNodeSlot:e,useLanes:f}));if(i.node.payload instanceof o().ScopePayload){return i.node.id.slice(0,-1)!==(null===t||void 0===t?void 0:t.name)?r().default.createElement(o().ScopeTreeNode,i):r().default.createElement(r().default.Fragment,null,s.map((e=>r().default.createElement(n,u({key:e.id},i,{node:e})))))}return r().default.createElement(o().NamespaceTreeNode,i)}},filters:t,drawerWidgets:n},useHost:()=>(0,l().useScope)(),useLanes:f,emptyMessage:"Scope is empty",transformTree:e=>t=>{var n;const r=null===(n=t.children)||void 0===n?void 0:n.findIndex((t=>{if(!(t.payload instanceof o().ScopePayload))return;return t.id.slice(0,-1)===(null===e||void 0===e?void 0:e.name)})),i=t.children&&void 0!==r?t.children[r]:void 0;if(i&&i.children&&t.children){delete t.children[r];const e=t.children.concat(i.children);t.children=e}return t},useComponents:d||(()=>{var e;const{lanesModel:t,loading:n}=f(),i=null===t||void 0===t||null===(e=t.viewedLane)||void 0===e?void 0:e.id,{components:o=[],loading:s}=(0,a().useLaneComponents)(null!==i&&void 0!==i&&i.isDefault()?void 0:i),{components:c}=(0,r().useContext)(l().ScopeContext),u=function(e,t){const n=e.filter((e=>!t.find((t=>t.id.toStringWithoutVersion()===e.id.toStringWithoutVersion()))));return t.concat(n)}(c,o);return{loading:n||s,components:u}})})}},99634:(e,t,n)=>{"use strict";function r(){const e=n(82190);return r=function(){return e},e}function i(){const e=n(21475);return i=function(){return e},e}function o(){const e=n(71933);return o=function(){return e},e}function s(){const e=n(72398);return s=function(){return e},e}function a(){const e=n(47458);return a=function(){return e},e}function l(){const e=y(n(72243));return l=function(){return e},e}function c(){const e=n(23133);return c=function(){return e},e}function u(){const e=y(n(97498));return u=function(){return e},e}function d(){const e=n(60599);return d=function(){return e},e}function p(){const e=n(59630);return p=function(){return e},e}function f(){const e=n(96366);return f=function(){return e},e}function h(){const e=n(45887);return h=function(){return e},e}function m(){const e=n(12519);return m=function(){return e},e}function g(){const e=n(81299);return g=function(){return e},e}function _(){const e=n(39489);return _=function(){return e},e}function b(){const e=n(49624);return b=function(){return e},e}function v(){const e=n(98881);return v=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class E{constructor(e,t,n,r,i,o,s,a,l,c,u,d,p,f,h){this.routeSlot=e,this.componentUi=t,this.menuSlot=n,this.sidebar=r,this.sidebarSlot=i,this.commandBarUI=o,this.scopeBadgeSlot=s,this.menuWidgetSlot=a,this.sidebarItemSlot=l,this.menuItemSlot=c,this.cornerSlot=u,this.overviewSlot=d,this.contextSlot=p,this.drawerWidgetSlot=f,this.drawerComponentsFiltersSlot=h,S(this,"setSidebarToggle",(()=>{})),S(this,"registerMenuRoutes",(e=>(this.menuSlot.register(e),this))),S(this,"componentUrlFunc",void 0),S(this,"registerMenuItem",(e=>{this.menuItemSlot.register(e)})),S(this,"registerSidebarWidget",(e=>(e.map((e=>this.sidebarSlot.register(e))),this))),S(this,"registerSidebarLink",((...e)=>{this.sidebarItemSlot.register(e)})),S(this,"registerDrawers",((...e)=>(this.sidebar.registerDrawer(...e),this))),S(this,"registerDrawerComponentFilters",(e=>{this.drawerComponentsFiltersSlot.register(e)})),S(this,"registerDrawerWidgets",(e=>{this.drawerWidgetSlot.register(e)})),S(this,"setComponents",(e=>{this.componentUi.updateComponents(e)})),S(this,"menuItems",[{category:"general",title:"Open command bar",keyChar:"mod+k",handler:()=>{var e;return null===(e=this.commandBarUI)||void 0===e?void 0:e.run("command-bar.open")}},{category:"general",title:"Toggle component list",keyChar:"alt+s",handler:()=>{var e;return null===(e=this.commandBarUI)||void 0===e?void 0:e.run("sidebar.toggle")}}])}registerBadge(...e){return this.scopeBadgeSlot.register(e),this}getScope(e){return l().default.createElement(b().Scope,{TargetScopeOverview:e.TargetScopeOverview,scopeClassName:e.scopeClassName,TargetCorner:e.Corner,routeSlot:this.routeSlot,menuSlot:this.menuSlot,sidebar:l().default.createElement(this.sidebar.render,{items:this.listSidebarLinks(),overrideDrawerSlot:e.overrideDrawers}),scopeUi:this,userUseScopeQuery:e.useScope,badgeSlot:this.scopeBadgeSlot,overviewLineSlot:this.overviewSlot,context:this.getContext(e.getComponentUrl),onSidebarTogglerChange:e.onSidebarToggle||this.setSidebarToggle,cornerSlot:this.cornerSlot,paneClassName:e.paneClassName,PaneWrapper:e.PaneWrapper})}registerOverviewLine(...e){return this.overviewSlot.register(e),this}registerRoutes(e){return this.routeSlot.register(e),this}applyMenuRoutes(){this.registerMenuRoutes([{path:this.componentUi.routePath,element:this.componentUi.getMenu(_().ScopeAspect.id)},{path:"/",element:this.getScopeMenu()}])}getScopeMenu(){return l().default.createElement(g().ScopeMenu,{widgetSlot:this.menuWidgetSlot,menuItemSlot:this.menuItemSlot})}registerExplicitRoutes(){this.applyMenuRoutes(),this.registerRoutes([{path:this.componentUi.routePath,element:this.componentUi.getComponentUI(_().ScopeAspect.id)}])}registerMenuWidget(...e){this.menuWidgetSlot.register(e)}registerCorner(e){this.cornerSlot.register(e)}registerComponentUrl(e){this.componentUrlFunc=e}replaceOverview(){}replaceDescription(){}replaceMetadataSection(){}registerMetadataItem(){}replaceComponentGrid(){}registerMetadata(){}addContext(...e){return this.contextSlot.register(e),this}getContext(e){const t=this.contextSlot.values();return(0,r().flatten)(t).concat((({children:t})=>l().default.createElement(h().ComponentUrlProvider,{value:e||this.componentUrlFunc},t)))}registerDefaultDrawers(e=!1,t,n){this.sidebar.registerDrawer(this.getDefaultDrawer(e,t,n))}getDefaultDrawer(e=!1,t,n){return(0,v().scopeDrawer)({treeWidgets:this.sidebarSlot,filtersSlot:this.drawerComponentsFiltersSlot,drawerWidgetSlot:this.drawerWidgetSlot,assumeScopeInUrl:e,overrideUseComponents:t,overrideUseLanes:n})}uiRoot(){this.registerDefaultDrawers();const[e]=this.commandBarUI.addCommand({id:"sidebar.toggle",action:()=>{},displayName:"Toggle component list",keybinding:"alt+s"});return this.setSidebarToggle=e,{routes:[{path:"/*",element:l().default.createElement(b().Scope,{routeSlot:this.routeSlot,menuSlot:this.menuSlot,sidebar:l().default.createElement(this.sidebar.render,{items:this.listSidebarLinks()}),scopeUi:this,badgeSlot:this.scopeBadgeSlot,overviewLineSlot:this.overviewSlot,context:this.getContext(),onSidebarTogglerChange:this.setSidebarToggle,cornerSlot:this.cornerSlot})}]}}listSidebarLinks(){const e=(0,r().flatten)(this.sidebarItemSlot.values()).sort(((e,t)=>((null===e||void 0===e?void 0:e.weight)||0)-((null===t||void 0===t?void 0:t.weight)||0)));return(0,r().compact)(e.map((e=>e.component)))}static async provider([e,t,n,r],i,[o,s,a,u,h,_,b,v,y,S,w,C]){const O=new E(o,t,s,n,a,r,u,h,b,_,v,y,S,w,C);return O.registerDrawerComponentFilters([p().DeprecateFilter,f().EnvsFilter,(0,m().ShowMainFilter)(!1)]),O.registerDrawerWidgets([l().default.createElement(d().FilterWidget,{key:"workspace-filter-widget"}),l().default.createElement(d().TreeToggleWidget,{key:"workspace-tree-toggle-widget"})]),e&&e.registerRoot(O.uiRoot.bind(O)),O.registerMenuItem(O.menuItems),O.registerMenuWidget((()=>l().default.createElement(g().ScopeUseBox,{actionName:i.useBoxAction,actionIcon:i.useBoxIcon}))),i.showGallery&&O.registerSidebarLink({component:function(){return l().default.createElement(c().MenuLinkItem,{exact:!0,href:"/",icon:"comps"},"Overview")}}),e&&O.registerExplicitRoutes(),O}}S(E,"dependencies",[a().UIAspect,i().ComponentAspect,s().SidebarAspect,u().default]),S(E,"runtime",a().UIRuntime),S(E,"slots",[o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType()]),S(E,"defaultConfig",{showGallery:!0}),_().ScopeAspect.addRuntime(E)},81299:(e,t,n)=>{"use strict";function r(){const e=n(85981);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ScopeMenu",{enumerable:!0,get:function(){return r().ScopeMenu}}),Object.defineProperty(t,"ScopeUseBox",{enumerable:!0,get:function(){return r().ScopeUseBox}})},85981:(e,t,n)=>{"use strict";function r(){const e=n(31219);return r=function(){return e},e}function i(){const e=n(87431);return i=function(){return e},e}function o(){const e=p(n(80852));return o=function(){return e},e}function s(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return s=function(){return e},e}function a(){const e=n(2358);return a=function(){return e},e}function l(){const e=n(43116);return l=function(){return e},e}function c(){const e=p(n(14835));return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeMenu=function(e){let{className:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,u);return s().default.createElement(r().Menu,f({},n,{className:(0,o().default)(c().default.scopMenu,t)}))},t.ScopeUseBox=function({actionName:e,actionIcon:t}){const n=(0,s().useContext)(i().ScopeContext);return s().default.createElement(a().UseBoxDropdown,{position:"bottom-end",className:c().default.useBox,actionIcon:t,actionName:e,Menu:s().default.createElement(l().Menu,{scopeName:n.name})})};const u=["className"];function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}},74056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(24853);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},24853:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return r=function(){return e},e}function i(){const e=n(63991);return i=function(){return e},e}function o(){const e=n(2705);return o=function(){return e},e}function s(){const e=n(25520);return s=function(){return e},e}function a(){const e=n(17455);return a=function(){return e},e}function l(){const e=n(49101);return l=function(){return e},e}function c(){const e=n(87431);return c=function(){return e},e}function u(){const e=(t=n(71006))&&t.__esModule?t:{default:t};var t;return u=function(){return e},e}function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p({component:e,componentUrl:t}){var n;const o=e.compositions.length>0;return r().default.createElement(i().ComponentCard,{id:e.id.fullName,envIcon:null===(n=e.environment)||void 0===n?void 0:n.icon,description:e.description,version:e.version,href:t,preview:r().default.createElement(a().PreviewPlaceholder,{component:e,shouldShowPreview:o})})}Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeComponentCard=p,t.ScopeOverview=function({badgeSlot:e,overviewSlot:t,TargetOverview:n}){const i=(0,r().useContext)(c().ScopeContext),{components:a}=i;return n?r().default.createElement(n,null):a&&0!==a.length?r().default.createElement("div",{className:u().default.container},r().default.createElement(s().ScopeDetails,{scopeName:i.name,icon:i.icon,backgroundIconColor:i.backgroundIconColor,badgeSlot:e,overviewSlot:t,description:i.description,componentCount:i.components.length}),r().default.createElement(o().ComponentGrid,null,a.map(((e,t)=>{var n;return null!==(n=e.deprecation)&&void 0!==n&&n.isDeprecate?null:r().default.createElement("div",{key:t},r().default.createElement(p,{component:e}))})))):r().default.createElement(l().EmptyScope,{name:i.name})}},49624:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return r=function(){return e},e}function i(){const e=v(n(80852));return i=function(){return e},e}function o(){const e=n(98709);return o=function(){return e},e}function s(){const e=n(19588);return s=function(){return e},e}function a(){const e=n(31472);return a=function(){return e},e}function l(){const e=n(3299);return l=function(){return e},e}function c(){const e=n(90998);return c=function(){return e},e}function u(){const e=n(88907);return u=function(){return e},e}function d(){const e=n(44299);return d=function(){return e},e}function p(){const e=n(57581);return p=function(){return e},e}function f(){const e=n(57915);return f=function(){return e},e}function h(){const e=n(648);return h=function(){return e},e}function m(){const e=n(87431);return m=function(){return e},e}function g(){const e=n(2736);return g=function(){return e},e}function _(){const e=n(74056);return _=function(){return e},e}function b(){const e=v(n(52108));return b=function(){return e},e}function v(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function S({children:e,Wrapper:t}){return r().default.createElement(t,null,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Scope=function({routeSlot:e,menuSlot:t,sidebar:n,scopeUi:v,badgeSlot:y,overviewLineSlot:E,cornerSlot:w,PaneWrapper:C,context:O=[],paneClassName:T,TargetScopeOverview:N,TargetCorner:I,onSidebarTogglerChange:x,userUseScopeQuery:k,scopeClassName:R}){const{scope:P}=k?k():(0,g().useScopeQuery)(),A=(0,h().useIsMobile)(),[L,D]=(0,r().useReducer)((e=>!e),!A),M=L?o().Layout.row:o().Layout.right;if(!P)return r().default.createElement(p().FullLoader,null);const j=I||(null===w||void 0===w?void 0:w.values()[0]);v.setComponents(P.components);const F=O.map((e=>[e,{scope:P}]));return x(D),r().default.createElement(m().ScopeProvider,{scope:P},r().default.createElement(d().Composer,{components:F},r().default.createElement("div",{className:(0,i().default)(b().default.scope,R)},r().default.createElement(u().TopBar,{className:b().default.topbar,Corner:()=>j?r().default.createElement(j,null):r().default.createElement(a().Corner,{name:P.name,className:b().default.whiteCorner}),menu:t}),r().default.createElement(o().SplitPane,{className:b().default.main,size:264,layout:M},r().default.createElement(o().Pane,{className:(0,i().default)(b().default.sidebar,!L&&b().default.collapsed)},n),r().default.createElement(c().HoverSplitter,{className:b().default.splitter},r().default.createElement(l().Collapser,{isOpen:L,onMouseDown:e=>e.stopPropagation(),onClick:D,tooltipContent:(L?"Hide":"Show")+" side panel"})),C&&r().default.createElement(S,{Wrapper:C},r().default.createElement(o().Pane,{className:(0,i().default)(T,b().default.pane)},r().default.createElement(s().SlotRouter,{slot:e},r().default.createElement(f().Route,{index:!0,element:r().default.createElement(_().ScopeOverview,{badgeSlot:y,overviewSlot:E,TargetOverview:N})}))))||r().default.createElement(o().Pane,{className:(0,i().default)(T,b().default.pane)},r().default.createElement(s().SlotRouter,{slot:e},r().default.createElement(f().Route,{index:!0,element:r().default.createElement(_().ScopeOverview,{badgeSlot:y,overviewSlot:E,TargetOverview:N})})))))))},n(5903)},76726:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.APISchema=void 0;const i=r(n(39226)),o=n(39810),s=n(48809),a=n(73107),l=n(12906);class APISchema extends a.SchemaNode{constructor(e,t,n,r){super(),this.location=e,this.module=t,this.internals=n,this.componentId=r,this.taggedModuleExports=this.listTaggedExports(t)}listTaggedExports(e){return e?e.exports.filter((e=>{var t;return null===(t=e.doc)||void 0===t?void 0:t.hasTag(l.TagName.exports)})):[]}toString(){return JSON.stringify(this.module.exports.map((e=>e.toObject())),void 0,2)}toStringPerType(){const e=(e,t)=>{const n=this.module.exports.filter((t=>t instanceof e));return n.length?`${i.default.green.bold(t)}\n${n.map((e=>e.toString())).join("\n")}\n\n`:""};return i.default.inverse(`API Schema of ${this.componentId.toString()}\n`)+e(s.ModuleSchema,"Namespaces")+e(s.ClassSchema,"Classes")+e(s.InterfaceSchema,"Interfaces")+e(s.FunctionLikeSchema,"Functions")+e(s.VariableLikeSchema,"Variables")+e(s.TypeSchema,"Types")+e(s.EnumSchema,"Enums")+e(s.TypeRefSchema,"TypeReferences")+e(s.UnresolvedSchema,"Unresolved")}listSignatures(){return this.module.exports.map((e=>e.signature))}toObject(){return Object.assign(Object.assign({},super.toObject()),{module:this.module.toObject(),internals:this.internals.map((e=>e.toObject())),componentId:this.componentId.toObject(),taggedModuleExports:this.taggedModuleExports.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=s.ModuleSchema.fromObject(e.module),r=(e.internals||[]).map((e=>s.ModuleSchema.fromObject(e))),i=o.ComponentID.fromObject(e.componentId);return new APISchema(t,n,r,i)}static empty(e){return new APISchema({filePath:"",line:0,character:0},new s.ModuleSchema({filePath:"",line:0,character:0},[],[]),[],e)}}t.APISchema=APISchema},33039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Export=void 0;t.Export=class{constructor(e,t){this.identifier=e,this.staticProperties=t}toObject(){return{constructorName:this.constructor.name,identifier:this.identifier}}}},38006:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Schemas=t.Modifier=t.SchemaNodeConstructor=t.SchemaRegistry=t.TagName=t.StaticProperties=t.Export=t.APISchema=t.ISchemaNode=t.SchemaNode=void 0;const a=o(n(48809));t.Schemas=a;var l=n(73107);Object.defineProperty(t,"SchemaNode",{enumerable:!0,get:function(){return l.SchemaNode}}),Object.defineProperty(t,"ISchemaNode",{enumerable:!0,get:function(){return l.ISchemaNode}});var c=n(76726);Object.defineProperty(t,"APISchema",{enumerable:!0,get:function(){return c.APISchema}});var u=n(33039);Object.defineProperty(t,"Export",{enumerable:!0,get:function(){return u.Export}}),Object.defineProperty(t,"StaticProperties",{enumerable:!0,get:function(){return u.StaticProperties}});var d=n(12906);Object.defineProperty(t,"TagName",{enumerable:!0,get:function(){return d.TagName}});var p=n(25772);Object.defineProperty(t,"SchemaRegistry",{enumerable:!0,get:function(){return p.SchemaRegistry}});var f=n(56536);Object.defineProperty(t,"SchemaNodeConstructor",{enumerable:!0,get:function(){return f.SchemaNodeConstructor}});var h=n(68146);Object.defineProperty(t,"Modifier",{enumerable:!0,get:function(){return h.Modifier}}),s(n(48809),t)},56536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},73107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaNode=void 0;const r=n(82190);t.SchemaNode=class{constructor(){this.__schema=this.constructor.name}static fromObject(e){throw new Error("Method 'fromObject' not implemented in subclass.")}toObject(){return(0,r.pickBy)({__schema:this.__schema,location:this.location,doc:this.doc?this.doc.toObject():void 0,signature:this.signature,name:this.name},(e=>void 0!==e))}getNodes(){return[this]}getAllNodesRecursively(e=new Set){if(e.has(this))return[];e.add(this);return[this,...this.getNodes().flatMap((t=>t.getAllNodesRecursively(e)))]}findNode(e,t=new Set){if(e(this))return this;if(!t.has(this)){t.add(this);for(const n of this.getNodes()){const r=n.findNode(e,t);if(r)return r}}}}},25772:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaRegistry=void 0;const r=n(3336);class i{constructor(){this._schemas={}}static register(e){this.instance._schemas[e.name]||(this.instance._schemas[e.name]=e)}static schemas(){return this.instance._schemas}static fromObject(e){if(!e.__schema)throw new Error('fatal: "__schema" is missing, make sure the transformer is set on SchemaNode type');const t=this.instance._schemas[e.__schema];return t?t.fromObject(e):r.UnknownSchemaFactory.create(e.location||{path:"",line:0,character:0},e.__schema,e)}}t.SchemaRegistry=i,i.instance=new i},36756:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ClassSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(13389),l=n(25772);class ClassSchema extends o.SchemaNode{constructor(e,t,n,r,i,o,s,a){super(),this.name=e,this.location=n,this.signature=r,this.typeParams=o,this.extendsNodes=s,this.implementNodes=a,this.members=t,this.doc=i}getNodes(){return this.members}toString(){const e=this.members.map((e=>`* ${e.toString()}`)).join("\n");return`${i.default.bold.underline(this.name)}\n${e}`}toObject(){var e,t,n;return Object.assign(Object.assign({},super.toObject()),{name:this.name,members:this.members.map((e=>e.toObject())),doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),signature:this.signature,typeParams:this.typeParams,extendsNodes:null===(t=this.extendsNodes)||void 0===t?void 0:t.map((e=>e.toObject())),implementNodes:null===(n=this.implementNodes)||void 0===n?void 0:n.map((e=>e.toObject()))})}static fromObject(e){var t,n;const r=e.name,i=e.members.map((e=>l.SchemaRegistry.fromObject(e))),o=e.location,c=e.signature,u=e.doc?s.DocSchema.fromObject(e.doc):void 0,d=e.typeParams,p=null===(t=e.extendsNodes)||void 0===t?void 0:t.map((e=>a.ExpressionWithTypeArgumentsSchema.fromObject(e))),f=null===(n=e.implementNodes)||void 0===n?void 0:n.map((e=>a.ExpressionWithTypeArgumentsSchema.fromObject(e)));return new ClassSchema(r,i,o,c,u,d,p,f)}}t.ClassSchema=ClassSchema},85349:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionalTypeSchema=void 0;const r=n(73107),i=n(25772);class ConditionalTypeSchema extends r.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.checkType=t,this.extendsType=n,this.trueType=r,this.falseType=i}getNodes(){return[this.checkType,this.extendsType,this.trueType,this.falseType]}toString(){return`${this.checkType.toString()} extends ${this.extendsType.toString()} ? ${this.trueType.toString()} : ${this.falseType.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{checkType:this.checkType.toObject(),extendsType:this.extendsType.toObject(),trueType:this.trueType.toObject(),falseType:this.falseType.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.checkType),r=i.SchemaRegistry.fromObject(e.extendsType),o=i.SchemaRegistry.fromObject(e.trueType),s=i.SchemaRegistry.fromObject(e.falseType);return new ConditionalTypeSchema(t,n,r,o,s)}}t.ConditionalTypeSchema=ConditionalTypeSchema},51868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConstructorSchema=void 0;const r=n(18780),i=n(68146),o=n(39709),s=n(78127);class ConstructorSchema extends i.FunctionLikeSchema{constructor(e,t,n,r,i=[],o){super(e,"constructor",t,n,r,i,o,void 0)}static fromObject(e){const t=e.location,n=e.params.map((e=>r.ParameterSchema.fromObject(e))),i=s.ThisTypeSchema.fromObject(e.returnType),a=e.signature,l=e.modifiers,c=e.doc?o.DocSchema.fromObject(e.doc):void 0;return new ConstructorSchema(t,n,i,a,l,c)}}t.ConstructorSchema=ConstructorSchema},84210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocSchema=void 0;const r=n(73107),i=n(25772);class DocSchema extends r.SchemaNode{constructor(e,t,n,r){super(),this.location=e,this.raw=t,this.comment=n,this.tags=r}toString(){return`${this.comment?`${this.comment}\n`:""}${this.tags?this.tags.map((e=>e.toString())).join("\n"):""}`}hasTag(e){return Boolean(this.findTag(e))}findTag(e){var t;return null===(t=this.tags)||void 0===t?void 0:t.find((t=>t.tagName===e))}toObject(){return{__schema:this.__schema,name:this.name,location:this.location,signature:this.signature,raw:this.raw,comment:this.comment,tags:this.tags?this.tags.map((e=>e.toObject())):void 0}}static fromObject(e){const t=e.location,n=e.tags?e.tags.map((e=>i.SchemaRegistry.fromObject(e))):void 0;return new DocSchema(t,e.raw,e.comment,n)}}t.DocSchema=DocSchema},39709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyLikeTagSchema=t.ReturnTagSchema=t.TagSchema=t.DocSchema=void 0;var r=n(84210);Object.defineProperty(t,"DocSchema",{enumerable:!0,get:function(){return r.DocSchema}});var i=n(12906);Object.defineProperty(t,"TagSchema",{enumerable:!0,get:function(){return i.TagSchema}});var o=n(63613);Object.defineProperty(t,"ReturnTagSchema",{enumerable:!0,get:function(){return o.ReturnTagSchema}});var s=n(76997);Object.defineProperty(t,"PropertyLikeTagSchema",{enumerable:!0,get:function(){return s.PropertyLikeTagSchema}})},76997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyLikeTagSchema=void 0;const r=n(25772),i=n(12906);class PropertyLikeTagSchema extends i.TagSchema{constructor(e,t,n,r){super(e,i.TagName.parameter,n),this.location=e,this.name=t,this.comment=n,this.type=r}toString(){const e=this.comment?` ${this.comment}`:"",t=this.type?` {${this.type.toString()}} `:"";return`@${this.tagName} ${this.name}${t} ${e}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:null===(e=this.type)||void 0===e?void 0:e.toObject()})}static fromObject(e){const t=e.location,n=e.name,i=e.comment,o=e.type?r.SchemaRegistry.fromObject(e.type):void 0;return new PropertyLikeTagSchema(t,n,i,o)}}t.PropertyLikeTagSchema=PropertyLikeTagSchema},63613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReturnTagSchema=void 0;const r=n(25772),i=n(12906);class ReturnTagSchema extends i.TagSchema{constructor(e,t,n){super(e,i.TagName.return,t),this.location=e,this.comment=t,this.type=n}toString(){const e=this.comment?` ${this.comment}`:"";return`@${this.tagName}${e}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{type:null===(e=this.type)||void 0===e?void 0:e.toObject()})}static fromObject(e){const t=e.location,n=e.comment,i=e.type?r.SchemaRegistry.fromObject(e.type):void 0;return new ReturnTagSchema(t,n,i)}}t.ReturnTagSchema=ReturnTagSchema},12906:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagName=t.TagSchema=void 0;const r=n(73107);class TagSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.tagName=t,this.comment=n}toString(){const e=this.comment?` ${this.comment}`:"";return`@${this.tagName}${e}`}static fromObject(e){const t=e.location,n=e.tagName,r=e.comment;return new TagSchema(t,n,r)}toObject(){return{__schema:this.__schema,location:this.location,name:this.name,signature:this.signature,tagName:this.tagName,comment:this.comment}}}t.TagSchema=TagSchema,function(e){e.augments="augments",e.author="author",e.class="class",e.callback="callback",e.public="public",e.private="private",e.protected="protected",e.readonly="readonly",e.override="override",e.see="see",e.enum="enum",e.parameter="parameter",e.this="this",e.type="type",e.template="template",e.typedef="typedef",e.property="property",e.implements="implements",e.return="return",e.deprecated="deprecated",e.exports="exports"}(t.TagName||(t.TagName={}))},40102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnumMemberSchema=void 0;const r=n(73107),i=n(39709);class EnumMemberSchema extends r.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.name=t,this.signature=n,this.value=r,this.doc=i}toString(){return this.value?`${this.name}=${this.value}`:this.name}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,signature:this.signature,value:this.value,doc:null===(e=this.doc)||void 0===e?void 0:e.toObject()})}static fromObject(e){const t=e.location,n=e.name,r=e.signature,o=e.value,s=e.doc?i.DocSchema.fromObject(e.doc):void 0;return new EnumMemberSchema(t,n,r,o,s)}}t.EnumMemberSchema=EnumMemberSchema},55196:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EnumSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(38006);class EnumSchema extends o.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.name=t,this.signature=r,this.doc=i,this.members=n}getNodes(){return this.members}toString(){const e=this.members.map((e=>`* ${e.toString()}`)).join("\n");return`${i.default.bold.underline(this.name)}\n${e}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,members:this.members.map((e=>e.toObject())),doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=e.name,r=e.members.map((e=>a.SchemaRegistry.fromObject(e))),i=e.signature,o=e.doc?s.DocSchema.fromObject(e.doc):void 0;return new EnumSchema(t,n,r,i,o)}}t.EnumSchema=EnumSchema},13389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithTypeArgumentsSchema=void 0;const r=n(73107),i=n(25772);class ExpressionWithTypeArgumentsSchema extends r.SchemaNode{constructor(e,t,n,r){super(),this.name=n,this.location=r,this.typeArgs=e,this.expression=t}toString(){return this.name}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,location:this.location,typeArgs:this.typeArgs.map((e=>e.toObject())),expression:this.expression})}static fromObject(e){const t=e.name,n=e.location,r=e.typeArgs.map((e=>i.SchemaRegistry.fromObject(e))),o=i.SchemaRegistry.fromObject(e.expression);return new ExpressionWithTypeArgumentsSchema(r,o,t,n)}}t.ExpressionWithTypeArgumentsSchema=ExpressionWithTypeArgumentsSchema},68146:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionLikeSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(18780),a=n(39709),l=n(12906),c=n(25772);class FunctionLikeSchema extends o.SchemaNode{constructor(e,t,n,r,i,o=[],s,a){super(),this.location=e,this.name=t,this.modifiers=o,this.typeParams=a,this.params=n,this.returnType=r,this.doc=s,this.signature=i||FunctionLikeSchema.createSignature(this.name,this.params,this.returnType)}getNodes(){return[...this.params,this.returnType]}toString(){const e=this.params.map((e=>e.toString())).join(", "),t=this.typeParams?`<${this.typeParams.join(", ")}>`:"";return`${this.modifiersToString()}${t}${i.default.bold(this.name)}(${e}): ${this.returnType.toString()}`}isDeprecated(){var e;return Boolean(null===(e=this.doc)||void 0===e?void 0:e.hasTag(l.TagName.deprecated))}isPrivate(){var e;return Boolean(this.modifiers.find((e=>"private"===e))||(null===(e=this.doc)||void 0===e?void 0:e.hasTag(l.TagName.private)))}generateSignature(){return FunctionLikeSchema.createSignature(this.name,this.params,this.returnType)}static createSignature(e,t,n){return`${e}(${t.map((e=>{let t=e.type.toString();return e.isSpread&&(t=`...${t}`),`${e.name}${e.isOptional?"?":""}: ${t}`})).join(", ")}): ${n.toString()}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,params:this.params.map((e=>e.toObject())),returnType:this.returnType.toObject(),signature:this.signature,modifiers:this.modifiers,doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),typeParams:this.typeParams})}static fromObject(e){return new FunctionLikeSchema(e.location,e.name,e.params.map((e=>s.ParameterSchema.fromObject(e))),c.SchemaRegistry.fromObject(e.returnType),e.signature,e.modifiers,e.doc?a.DocSchema.fromObject(e.doc):void 0,e.typeParams)}modifiersToString(){const e=this.modifiers.filter((e=>"export"!==e));return e.length?`${e.join(" ")} `:""}}t.FunctionLikeSchema=FunctionLikeSchema},49874:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAccessorSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(25772);class GetAccessorSchema extends o.SchemaNode{constructor(e,t,n,r){super(),this.location=e,this.name=t,this.signature=r,this.type=n}getSignature(){return this.signature}getNodes(){return[this.type]}toString(){return`get ${i.default.bold(this.name)}(): ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=e.name,r=s.SchemaRegistry.fromObject(e.type),i=e.signature;return new GetAccessorSchema(t,n,r,i)}}t.GetAccessorSchema=GetAccessorSchema},98376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexSignatureSchema=void 0;const r=n(73107),i=n(25772),o=n(18780);class IndexSignatureSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.params=t,this.type=n}toString(){return`[${this.params.map((e=>e.toString())).join(", ")}]: ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{location:this.location,params:this.params.map((e=>e.toObject())),type:this.type.toObject()})}static fromObject(e){const t=e.location,n=e.params.map((e=>o.ParameterSchema.fromObject(e))),r=i.SchemaRegistry.fromObject(e.type);return new IndexSignatureSchema(t,n,r)}}t.IndexSignatureSchema=IndexSignatureSchema},48809:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.UnImplementedSchema=t.NamedTupleSchema=t.ExpressionWithTypeArgumentsSchema=t.ConditionalTypeSchema=t.UnresolvedSchema=t.UnknownSchema=t.ThisTypeSchema=t.TemplateLiteralTypeSpanSchema=t.TemplateLiteralTypeSchema=t.IndexedAccessSchema=t.TypePredicateSchema=t.ParenthesizedTypeSchema=t.EnumMemberSchema=t.EnumSchema=t.ParameterSchema=t.TupleTypeSchema=t.TypeOperatorSchema=t.TypeArraySchema=t.KeywordTypeSchema=t.LiteralTypeSchema=t.InferenceTypeSchema=t.TypeQuerySchema=t.SetAccessorSchema=t.GetAccessorSchema=t.InterfaceSchema=t.IndexSignatureSchema=t.TypeLiteralSchema=t.TypeUnionSchema=t.TypeIntersectionSchema=t.TypeSchema=t.ConstructorSchema=t.ClassSchema=t.VariableLikeSchema=t.TypeRefSchema=t.FunctionLikeSchema=t.ModuleSchema=void 0;var o=n(78513);Object.defineProperty(t,"ModuleSchema",{enumerable:!0,get:function(){return o.ModuleSchema}});var s=n(68146);Object.defineProperty(t,"FunctionLikeSchema",{enumerable:!0,get:function(){return s.FunctionLikeSchema}});var a=n(38782);Object.defineProperty(t,"TypeRefSchema",{enumerable:!0,get:function(){return a.TypeRefSchema}});var l=n(75896);Object.defineProperty(t,"VariableLikeSchema",{enumerable:!0,get:function(){return l.VariableLikeSchema}});var c=n(36756);Object.defineProperty(t,"ClassSchema",{enumerable:!0,get:function(){return c.ClassSchema}});var u=n(51868);Object.defineProperty(t,"ConstructorSchema",{enumerable:!0,get:function(){return u.ConstructorSchema}});var d=n(6989);Object.defineProperty(t,"TypeSchema",{enumerable:!0,get:function(){return d.TypeSchema}});var p=n(61385);Object.defineProperty(t,"TypeIntersectionSchema",{enumerable:!0,get:function(){return p.TypeIntersectionSchema}});var f=n(99524);Object.defineProperty(t,"TypeUnionSchema",{enumerable:!0,get:function(){return f.TypeUnionSchema}});var h=n(5206);Object.defineProperty(t,"TypeLiteralSchema",{enumerable:!0,get:function(){return h.TypeLiteralSchema}});var m=n(98376);Object.defineProperty(t,"IndexSignatureSchema",{enumerable:!0,get:function(){return m.IndexSignatureSchema}});var g=n(50581);Object.defineProperty(t,"InterfaceSchema",{enumerable:!0,get:function(){return g.InterfaceSchema}});var _=n(49874);Object.defineProperty(t,"GetAccessorSchema",{enumerable:!0,get:function(){return _.GetAccessorSchema}});var b=n(6252);Object.defineProperty(t,"SetAccessorSchema",{enumerable:!0,get:function(){return b.SetAccessorSchema}});var v=n(68143);Object.defineProperty(t,"TypeQuerySchema",{enumerable:!0,get:function(){return v.TypeQuerySchema}});var y=n(48213);Object.defineProperty(t,"InferenceTypeSchema",{enumerable:!0,get:function(){return y.InferenceTypeSchema}});var S=n(92363);Object.defineProperty(t,"LiteralTypeSchema",{enumerable:!0,get:function(){return S.LiteralTypeSchema}});var E=n(72801);Object.defineProperty(t,"KeywordTypeSchema",{enumerable:!0,get:function(){return E.KeywordTypeSchema}});var w=n(59010);Object.defineProperty(t,"TypeArraySchema",{enumerable:!0,get:function(){return w.TypeArraySchema}});var C=n(25854);Object.defineProperty(t,"TypeOperatorSchema",{enumerable:!0,get:function(){return C.TypeOperatorSchema}});var O=n(14667);Object.defineProperty(t,"TupleTypeSchema",{enumerable:!0,get:function(){return O.TupleTypeSchema}});var T=n(18780);Object.defineProperty(t,"ParameterSchema",{enumerable:!0,get:function(){return T.ParameterSchema}});var N=n(55196);Object.defineProperty(t,"EnumSchema",{enumerable:!0,get:function(){return N.EnumSchema}});var I=n(40102);Object.defineProperty(t,"EnumMemberSchema",{enumerable:!0,get:function(){return I.EnumMemberSchema}});var x=n(53415);Object.defineProperty(t,"ParenthesizedTypeSchema",{enumerable:!0,get:function(){return x.ParenthesizedTypeSchema}});var k=n(39614);Object.defineProperty(t,"TypePredicateSchema",{enumerable:!0,get:function(){return k.TypePredicateSchema}});var R=n(22211);Object.defineProperty(t,"IndexedAccessSchema",{enumerable:!0,get:function(){return R.IndexedAccessSchema}});var P=n(17059);Object.defineProperty(t,"TemplateLiteralTypeSchema",{enumerable:!0,get:function(){return P.TemplateLiteralTypeSchema}});var A=n(5050);Object.defineProperty(t,"TemplateLiteralTypeSpanSchema",{enumerable:!0,get:function(){return A.TemplateLiteralTypeSpanSchema}});var L=n(78127);Object.defineProperty(t,"ThisTypeSchema",{enumerable:!0,get:function(){return L.ThisTypeSchema}});var D=n(61576);Object.defineProperty(t,"UnknownSchema",{enumerable:!0,get:function(){return D.UnknownSchema}});var M=n(10829);Object.defineProperty(t,"UnresolvedSchema",{enumerable:!0,get:function(){return M.UnresolvedSchema}});var j=n(85349);Object.defineProperty(t,"ConditionalTypeSchema",{enumerable:!0,get:function(){return j.ConditionalTypeSchema}});var F=n(13389);Object.defineProperty(t,"ExpressionWithTypeArgumentsSchema",{enumerable:!0,get:function(){return F.ExpressionWithTypeArgumentsSchema}});var B=n(86512);Object.defineProperty(t,"NamedTupleSchema",{enumerable:!0,get:function(){return B.NamedTupleSchema}});var U=n(39667);Object.defineProperty(t,"UnImplementedSchema",{enumerable:!0,get:function(){return U.UnImplementedSchema}}),i(n(39709),t)},22211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexedAccessSchema=void 0;const r=n(73107),i=n(25772);class IndexedAccessSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.objectType=t,this.indexType=n}getNodes(){return[this.objectType,this.indexType]}toString(){return`${this.objectType.toString()}[${this.indexType.toString()}]`}toObject(){return Object.assign(Object.assign({},super.toObject()),{objectType:this.objectType.toObject(),indexType:this.indexType.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.objectType),r=i.SchemaRegistry.fromObject(e.indexType);return new IndexedAccessSchema(t,n,r)}}t.IndexedAccessSchema=IndexedAccessSchema},48213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InferenceTypeSchema=void 0;const r=n(73107);class InferenceTypeSchema extends r.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.type=t,this.name=n,this.defaultValue=r,this.isSpread=i}toString(){return this.name&&this.name!==this.type?`${this.name}: ${this.type}`:this.type}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type,defaultValue:this.defaultValue,isSpread:this.isSpread})}static fromObject(e){const t=e.location,n=e.type,r=e.name,i=e.defaultValue,o=e.isSpread;return new InferenceTypeSchema(t,n,r,i,o)}}t.InferenceTypeSchema=InferenceTypeSchema},50581:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InterfaceSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(13389),l=n(25772);class InterfaceSchema extends o.SchemaNode{constructor(e,t,n,r,i,o,s){super(),this.location=e,this.name=t,this.signature=n,this.extendsNodes=r,this.typeParams=s,this.members=i,this.doc=o}getNodes(){return this.members}toString(){const e=this.members.map((e=>`* ${e.toString()}`)).join("\n");return`${i.default.bold.underline(this.name)}\n${e}`}toObject(){var e,t;return Object.assign(Object.assign({},super.toObject()),{name:this.name,members:this.members.map((e=>e.toObject())),doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),signature:this.signature,extendsNodes:null===(t=this.extendsNodes)||void 0===t?void 0:t.map((e=>e.toObject())),typeParams:this.typeParams})}static fromObject(e){var t;const n=e.location,r=e.name,i=e.signature,o=null===(t=e.extendsNodes)||void 0===t?void 0:t.map((e=>a.ExpressionWithTypeArgumentsSchema.fromObject(e))),c=e.members.map((e=>l.SchemaRegistry.fromObject(e))),u=e.doc?s.DocSchema.fromObject(e.doc):void 0,d=e.typeParams;return new InterfaceSchema(n,r,i,o,c,u,d)}}t.InterfaceSchema=InterfaceSchema},72801:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeywordTypeSchema=void 0;const r=n(73107);class KeywordTypeSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.name=t}toString(){return this.name}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name})}static fromObject(e){const t=e.location,n=e.name;return new KeywordTypeSchema(t,n)}}t.KeywordTypeSchema=KeywordTypeSchema},92363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralTypeSchema=void 0;const r=n(73107);class LiteralTypeSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.name=t}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name})}toString(){return this.name}static fromObject(e){const t=e.location,n=e.name;return new LiteralTypeSchema(t,n)}}t.LiteralTypeSchema=LiteralTypeSchema},78513:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(25772);class ModuleSchema extends o.SchemaNode{constructor(e,t,n){super(),this.location=e,this.exports=t,this.internals=n}getNodes(){return[...this.exports,...this.internals]}flatExportsRecursively(){this.exports=this.exports.reduce(((e,t)=>t instanceof ModuleSchema?(t.flatExportsRecursively(),t.namespace?[...e,t]:[...e,...t.exports]):[...e,t]),[])}toString(){if(!this.namespace)throw new Error("toString() should not be called on a module without namespace, make sure this.flatExportsRecursively() is called");const e=this.exports.map((e=>`* ${e.toString()}`)).join("\n");return`${i.default.bold.underline(this.namespace)}\n${e}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{exports:this.exports.map((e=>e.toObject())),internals:this.internals.map((e=>e.toObject())),namespace:this.namespace})}static fromObject(e){const t=e.location,n=(e.exports||[]).map((e=>s.SchemaRegistry.fromObject(e))),r=(e.internals||[]).map((e=>s.SchemaRegistry.fromObject(e))),i=e.namespace,o=new ModuleSchema(t,n,r);return o.namespace=i,o}}t.ModuleSchema=ModuleSchema},86512:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamedTupleSchema=void 0;const r=n(73107),i=n(25772);class NamedTupleSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.type=t,this.name=n}getNodes(){return[this.type]}toString(){return`${this.name}: ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.type),r=e.name;return new NamedTupleSchema(t,n,r)}}t.NamedTupleSchema=NamedTupleSchema},18780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterSchema=void 0;const r=n(73107),i=n(25772);class ParameterSchema extends r.SchemaNode{constructor(e,t,n,r,i,o,s,a=!1){super(),this.location=e,this.name=t,this.isOptional=r,this.defaultValue=i,this.description=o,this.isSpread=a,this.type=n,this.objectBindingNodes=s,this.isSpread=a}toString(){return`${this.name}${this.isOptional?"?":""}: ${this.type.toString()}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject(),isOptional:this.isOptional,defaultValue:this.defaultValue,description:this.description,objectBindingNodes:null===(e=this.objectBindingNodes)||void 0===e?void 0:e.map((e=>e.toObject())),isSpread:this.isSpread})}static fromObject(e){var t;const n=e.location,r=e.name,o=i.SchemaRegistry.fromObject(e.type),s=e.isOptional,a=e.defaultValue,l=e.description,c=e.isSpread,u=null===(t=e.objectBindingNodes)||void 0===t?void 0:t.map((e=>i.SchemaRegistry.fromObject(e)));return new ParameterSchema(n,r,o,s,a,l,u,c)}}t.ParameterSchema=ParameterSchema},53415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParenthesizedTypeSchema=void 0;const r=n(73107),i=n(25772);class ParenthesizedTypeSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.type=t}getNodes(){return[this.type]}toString(){return`(${this.type.toString()})`}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.type);return new ParenthesizedTypeSchema(t,n)}}t.ParenthesizedTypeSchema=ParenthesizedTypeSchema},6252:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetAccessorSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(18780);class SetAccessorSchema extends o.SchemaNode{constructor(e,t,n,r){super(),this.location=e,this.name=t,this.signature=r,this.param=n}getSignature(){return this.signature}toString(){return`set ${i.default.bold(this.name)}(${this.param.toString()})`}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,param:this.param.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=e.name,r=s.ParameterSchema.fromObject(e.param),i=e.signature;return new SetAccessorSchema(t,n,r,i)}}t.SetAccessorSchema=SetAccessorSchema},5050:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateLiteralTypeSpanSchema=void 0;const r=n(73107),i=n(25772);class TemplateLiteralTypeSpanSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.literal=t,this.type=n}getNodes(){return[this.type]}toString(){return`${this.type.toString()} ${this.literal}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{literal:this.literal,type:this.type.toObject()})}static fromObject(e){const t=e.location,n=e.literal,r=i.SchemaRegistry.fromObject(e.type);return new TemplateLiteralTypeSpanSchema(t,n,r)}}t.TemplateLiteralTypeSpanSchema=TemplateLiteralTypeSpanSchema},17059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateLiteralTypeSchema=void 0;const r=n(73107),i=n(5050);class TemplateLiteralTypeSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.head=t,this.templateSpans=n}toString(){const e=this.templateSpans.map((e=>e.toString())).join("");return`${this.head}${e}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{head:this.head,templateSpans:this.templateSpans.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.head,r=e.templateSpans.map((e=>i.TemplateLiteralTypeSpanSchema.fromObject(e)));return new TemplateLiteralTypeSchema(t,n,r)}}t.TemplateLiteralTypeSchema=TemplateLiteralTypeSchema},78127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThisTypeSchema=void 0;const r=n(73107);class ThisTypeSchema extends r.SchemaNode{constructor(e){super(),this.location=e}toString(){return"this"}static fromObject(e){const t=e.location;return new ThisTypeSchema(t)}}t.ThisTypeSchema=ThisTypeSchema},14667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleTypeSchema=void 0;const r=n(73107),i=n(25772);class TupleTypeSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.elements=t}toString(){return`[${this.elements.map((e=>e.toString())).join(", ")}]`}toObject(){return Object.assign(Object.assign({},super.toObject()),{elements:this.elements.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.elements.map((e=>i.SchemaRegistry.fromObject(e)));return new TupleTypeSchema(t,n)}}t.TupleTypeSchema=TupleTypeSchema},59010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeArraySchema=void 0;const r=n(73107),i=n(25772);class TypeArraySchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.type=t}getNodes(){return[this.type]}toString(){return`${this.type.toString()}[]`}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.type);return new TypeArraySchema(t,n)}}t.TypeArraySchema=TypeArraySchema},61385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeIntersectionSchema=void 0;const r=n(73107),i=n(25772);class TypeIntersectionSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.types=t}getNodes(){return this.types}toString(){return`${this.types.map((e=>e.toString())).join(" & ")}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{types:this.types.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.types.map((e=>i.SchemaRegistry.fromObject(e)));return new TypeIntersectionSchema(t,n)}}t.TypeIntersectionSchema=TypeIntersectionSchema},5206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeLiteralSchema=void 0;const r=n(73107),i=n(25772);class TypeLiteralSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.members=t}getNodes(){return this.members}toString(){return`{ ${this.members.map((e=>e.toString())).join("; ")} }`}toObject(){return Object.assign(Object.assign({},super.toObject()),{members:this.members.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.members.map((e=>i.SchemaRegistry.fromObject(e)));return new TypeLiteralSchema(t,n)}}t.TypeLiteralSchema=TypeLiteralSchema},25854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeOperatorSchema=void 0;const r=n(73107),i=n(25772);class TypeOperatorSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.name=t,this.type=n}getNodes(){return[this.type]}toString(){return`${this.name} ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject()})}static fromObject(e){const t=e.location,n=e.name,r=i.SchemaRegistry.fromObject(e.type);return new TypeOperatorSchema(t,n,r)}}t.TypeOperatorSchema=TypeOperatorSchema},39614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypePredicateSchema=void 0;const r=n(73107),i=n(25772);class TypePredicateSchema extends r.SchemaNode{constructor(e,t,n,r=!1){super(),this.location=e,this.name=t,this.hasAssertsModifier=r,this.type=n}toString(){const e=this.hasAssertsModifier?"asserts ":"",t=this.type?` is ${this.type.toString()}`:"";return e+this.name+t}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:null===(e=this.type)||void 0===e?void 0:e.toObject(),hasAssertsModifier:this.hasAssertsModifier})}static fromObject(e){const t=e.location,n=e.name,r=e.type?i.SchemaRegistry.fromObject(e.type):void 0,o=e.hasAssertsModifier;return new TypePredicateSchema(t,n,r,o)}}t.TypePredicateSchema=TypePredicateSchema},68143:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeQuerySchema=void 0;const r=n(73107),i=n(25772);class TypeQuerySchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.signature=n,this.type=t}getNodes(){return[this.type]}getSignature(){return this.signature}toString(){return`typeof ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.type),r=e.signature;return new TypeQuerySchema(t,n,r)}}t.TypeQuerySchema=TypeQuerySchema},38782:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeRefSchema=void 0;const i=n(21475),o=r(n(39226)),s=n(73107),a=n(25772);class TypeRefSchema extends s.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.name=t,this.packageName=r,this.internalFilePath=i,this.componentId=n}withTypeArgs(e){return this.typeArgs=e,this}toString(){const e=this.nameToString();if(!this.typeArgs)return e;return`${e}<${this.typeArgs.map((e=>e.toString())).join(", ")}>`}nameToString(){if(this.componentId){return`${o.default.dim(`(component: ${this.componentId.toStringWithoutVersion()})`)} ${this.name}`}if(this.packageName){return`${o.default.dim(`(package: ${this.packageName})`)} ${this.name}`}return this.name}isFromThisComponent(){return!this.componentId&&!this.packageName}isInternalReference(){return!!this.internalFilePath&&this.isFromThisComponent()}isExported(){return this.isFromThisComponent()&&!this.isInternalReference()}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,componentId:this.componentId?this.componentId.toObject():void 0,packageName:this.packageName,internalFilePath:this.internalFilePath,typeArgs:null===(e=this.typeArgs)||void 0===e?void 0:e.map((e=>e.toObject()))})}static fromObject(e){var t;const n=e.location,r=e.name;let o;try{o=e.componentId?i.ComponentID.fromObject(e.componentId):void 0}catch(u){o=void 0}const s=e.packageName,l=e.internalFilePath,c=null===(t=e.typeArgs)||void 0===t?void 0:t.map((e=>a.SchemaRegistry.fromObject(e)));return new TypeRefSchema(n,r,o,s,l).withTypeArgs(c)}}t.TypeRefSchema=TypeRefSchema},99524:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeUnionSchema=void 0;const r=n(73107),i=n(25772);class TypeUnionSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.types=t}toString(){return`${this.types.map((e=>e.toString())).join(" | ")}`}getNodes(){return this.types}toObject(){return Object.assign(Object.assign({},super.toObject()),{types:this.types.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.types.map((e=>i.SchemaRegistry.fromObject(e)));return new TypeUnionSchema(t,n)}}t.TypeUnionSchema=TypeUnionSchema},6989:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(25772);class TypeSchema extends o.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.name=t,this.signature=r,this.type=n,this.doc=i}toString(){return`${i.default.bold(this.name)}: ${this.type.toString()}`}getNodes(){return[this.type]}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=e.name,r=a.SchemaRegistry.fromObject(e.type),i=e.signature,o=e.doc?s.DocSchema.fromObject(e.doc):void 0;return new TypeSchema(t,n,r,i,o)}}t.TypeSchema=TypeSchema},39667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnImplementedSchema=void 0;const r=n(73107);class UnImplementedSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.name=t,this.type=n}toString(){return`<<unimplemented schema ${this.name} of type ${this.type}>>`}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type})}static fromObject(e){const t=e.location,n=e.name,r=e.type;return new UnImplementedSchema(t,n,r)}}t.UnImplementedSchema=UnImplementedSchema},61576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSchema=void 0;const r=n(73107);class UnknownSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.name=t,this.schemaObj=n}toString(){return`<<unknown schema ${this.name}>>`}toObject(){return Object.assign(Object.assign({},super.toObject()),{schemaObj:this.schemaObj})}static fromObject(e){const t=e.location,n=e.name,r=e.schemaObj;return new UnknownSchema(t,n,r)}}t.UnknownSchema=UnknownSchema},10829:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnresolvedSchema=void 0;const r=n(73107);class UnresolvedSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.name=t}toString(){return this.name}toObject(){return super.toObject()}static fromObject(e){const t=e.location,n=e.name;return new UnresolvedSchema(t,n)}}t.UnresolvedSchema=UnresolvedSchema},75896:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableLikeSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(25772);class VariableLikeSchema extends o.SchemaNode{constructor(e,t,n,r,i,o,s){super(),this.location=e,this.name=t,this.signature=n,this.isOptional=i,this.defaultValue=s,this.type=r,this.doc=o}getNodes(){return[this.type]}toString(){return`${i.default.bold(this.name)}${this.isOptional?"?":""}: ${this.type.toString()}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,signature:this.signature,type:this.type.toObject(),isOptional:this.isOptional,doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),defaultValue:this.defaultValue})}static fromObject(e){const t=e.location,n=e.name,r=e.signature,i=a.SchemaRegistry.fromObject(e.type),o=e.isOptional,l=e.doc?s.DocSchema.fromObject(e.doc):void 0,c=e.defaultValue;return new VariableLikeSchema(t,n,r,i,o,l,c)}}t.VariableLikeSchema=VariableLikeSchema},3336:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSchemaFactory=void 0;t.UnknownSchemaFactory=class{static create(e,t,r){const{UnknownSchema:i}=n(61576);return new i(e,t,r)}}},72398:(e,t,n)=>{"use strict";function r(){const e=n(73445);return r=function(){return e},e}function i(){const e=n(50083);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SidebarAspect",{enumerable:!0,get:function(){return r().SidebarAspect}}),Object.defineProperty(t,"SidebarItem",{enumerable:!0,get:function(){return i().SidebarItem}}),Object.defineProperty(t,"SidebarItemSlot",{enumerable:!0,get:function(){return i().SidebarItemSlot}}),Object.defineProperty(t,"SidebarUI",{enumerable:!0,get:function(){return i().SidebarUI}}),t.default=void 0;var o=r().SidebarAspect;t.default=o},73445:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SidebarAspect=void 0;const i=r().Aspect.create({id:"teambit.ui-foundation/sidebar"});t.SidebarAspect=i;var o=i;t.default=o},50083:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}function i(){const e=n(47458);return i=function(){return e},e}function o(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return o=function(){return e},e}function s(){const e=n(73445);return s=function(){return e},e}function a(){const e=n(11678);return a=function(){return e},e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarUI=void 0;class u{constructor(e){this.drawerSlot=e,c(this,"render",(e=>o().default.createElement(a().SideBar,l({drawerSlot:this.drawerSlot},e))))}registerDrawer(...e){return this.drawerSlot.register(e),this}static async provider(e,t,[n]){return new u(n)}}t.SidebarUI=u,c(u,"runtime",i().UIRuntime),c(u,"slots",[r().Slot.withType()]),c(u,"dependencies",[]),s().SidebarAspect.addRuntime(u)},11678:(e,t,n)=>{"use strict";function r(){const e=n(25351);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SideBar",{enumerable:!0,get:function(){return r().SideBar}}),Object.defineProperty(t,"SideBarProps",{enumerable:!0,get:function(){return r().SideBarProps}})},25351:(e,t,n)=>{"use strict";function r(){const e=n(56119);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SideBar",{enumerable:!0,get:function(){return r().SideBar}}),Object.defineProperty(t,"SideBarProps",{enumerable:!0,get:function(){return r().SideBarProps}})},56119:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return r=function(){return e},e}function i(){const e=n(82190);return i=function(){return e},e}function o(){const e=u(n(80852));return o=function(){return e},e}function s(){const e=n(66171);return s=function(){return e},e}function a(){const e=n(63153);return a=function(){return e},e}function l(){const e=u(n(67735));return l=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.SideBar=function(e){let{drawerSlot:t,items:n=[],overrideDrawerSlot:u}=e,d=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,c);const h=(u||(0,i().flatten)(t.values())).filter((e=>{var t;return!(null!==e&&void 0!==e&&null!==(t=e.isHidden)&&void 0!==t&&t.call(e))})).sort(f),[m,g]=(0,r().useState)(h.map((e=>e.id)));return r().default.createElement("div",p({},d,{className:l().default.sidebar}),r().default.createElement(s().MenuSection,{items:n}),h.map((e=>{if(!e||!e.name)return null;const t=m.includes(e.id);return r().default.createElement(a().DrawerUI,{className:(0,o().default)(l().default.sidebarDrawer,t&&l().default.open),isOpen:t,onToggle:()=>{return t=e.id,void(m.includes(t)?g((e=>e.filter((e=>e!==t)))):g((e=>e.concat(t))));var t},key:e.id,name:e.name,Widgets:e.widgets,Context:e.Context},r().default.createElement(e.render,null))})))};const c=["drawerSlot","items","overrideDrawerSlot"];function u(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){return(e.order??0)-(t.order??0)}},83794:(e,t,n)=>{"use strict";function r(){const e=n(75350);return r=function(){return e},e}function i(){const e=n(19352);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TesterAspect",{enumerable:!0,get:function(){return r().TesterAspect}}),Object.defineProperty(t,"Tests",{enumerable:!0,get:function(){return i().Tests}}),t.default=void 0;var o=r().TesterAspect;t.default=o},75350:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TesterAspect=void 0;const i=r().Aspect.create({id:"teambit.defender/tester"});t.TesterAspect=i;var o=i;t.default=o},19352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tests=void 0;t.Tests=class{constructor(e){this.components=e}get errors(){return this.components.map((e=>e.errors||[])).flat()}}},31209:(e,t,n)=>{"use strict";function r(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(){const e=n(47458);return i=function(){return e},e}function o(){const e=n(71933);return o=function(){return e},e}function s(){const e=n(21475);return s=function(){return e},e}function a(){const e=n(85332);return a=function(){return e},e}function l(){const e=n(66492);return l=function(){return e},e}function c(){const e=n(69408);return c=function(){return e},e}function u(){const e=n(34020);return u=function(){return e},e}function d(){const e=n(75350);return d=function(){return e},e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(e,t){this.component=e,this.emptyStateSlot=t,p(this,"stageKey",void 0)}registerEmptyState(e){return this.emptyStateSlot.register(e),this}getTesterCompare(){return r().default.createElement(a().CompareTests,{emptyState:this.emptyStateSlot})}static async provider([e,t],n,[r]){const i=new f(e,r),o=new(u().TestsSection)(r),s=new(c().TestCompareSection)(i);return e.registerRoute(o.route),e.registerNavigation(o.navigationLink,o.order),t.registerNavigation(s),t.registerRoutes([s.route]),i}}p(f,"dependencies",[s().ComponentAspect,l().ComponentCompareAspect]),p(f,"runtime",i().UIRuntime),p(f,"slots",[o().Slot.withType()]),d().TesterAspect.addRuntime(f)},34020:(e,t,n)=>{"use strict";function r(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(){const e=n(96690);return i=function(){return e},e}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.TestsSection=void 0;t.TestsSection=class{constructor(e){this.emptyStateSlot=e,o(this,"route",{path:"~tests",element:r().default.createElement(i().TestsPage,{emptyState:this.emptyStateSlot})}),o(this,"navigationLink",{href:"~tests",children:"Tests"}),o(this,"order",40)}}},730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchPatterns=t.splitPatterns=void 0;var r=n(68376);Object.defineProperty(t,"splitPatterns",{enumerable:!0,get:function(){return r.splitPatterns}}),Object.defineProperty(t,"matchPatterns",{enumerable:!0,get:function(){return r.matchPatterns}})},68376:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.splitPatterns=t.matchPatterns=void 0;const i=r(n(75705));t.matchPatterns=function(e,t,n){const r=t.some((t=>(0,i.default)(e,t))),o=n.every((t=>(0,i.default)(e,t)));return r&&o},t.splitPatterns=function(e){return{includePatterns:e.filter((e=>!e.startsWith("!"))),excludePatterns:e.filter((e=>e.startsWith("!")))}}},25340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=void 0,t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},94237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=void 0;var r=n(25340);Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return r.capitalize}})},40808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=void 0,t.getInitials=function(e){if(!e)return;const t=e.split(" ");return t.length>1?t.slice(0,2).map((e=>e[0])).join(""):e.slice(0,2)}},22012:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=void 0;var r=n(40808);Object.defineProperty(t,"getInitials",{enumerable:!0,get:function(){return r.getInitials}})},49986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeFormat=void 0;var r=n(84545);Object.defineProperty(t,"timeFormat",{enumerable:!0,get:function(){return r.timeFormat}})},84545:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.timeFormat=void 0;const i=r(n(86126));t.timeFormat=function(e){return e<1e3?(0,i.default)(e,{units:["ms"]}):(0,i.default)(e)}},49994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAvatarQueryParams=void 0,t.addAvatarQueryParams=function(e,t,n){if(!e)return e;const r="string"===typeof t?parseInt(t):t,i=e.indexOf("?")>-1;return`${e}${i?"&":"?"}${[].concat([`size=${t}`],["w="+2*r,"h="+2*r,"crop=faces","fit=crop",`bg=${n}`]).join("&")}`}},93567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAvatarQueryParams=void 0;var r=n(49994);Object.defineProperty(t,"addAvatarQueryParams",{enumerable:!0,get:function(){return r.addAvatarQueryParams}})},53506:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Collapser=void 0;const o=n(10818),s=i(n(80852)),a=i(n(72243)),l=n(52993),c=i(n(70928));t.Collapser=function(e){var{isOpen:t,tooltipContent:n,placement:i="right",onClick:u,className:d}=e,p=r(e,["isOpen","tooltipContent","placement","onClick","className"]);const f=`${i}-rounded-corners`;return a.default.createElement(l.Tooltip,{content:n},a.default.createElement("div",Object.assign({},p,{onClick:u,className:(0,s.default)(c.default.collapser,c.default[i],t&&c.default.open,d)}),a.default.createElement("div",{className:c.default.circle},a.default.createElement("div",null,a.default.createElement(o.Icon,{of:f})))))}},3299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collapser=void 0;var r=n(53506);Object.defineProperty(t,"Collapser",{enumerable:!0,get:function(){return r.Collapser}})},30310:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Corner=void 0;const o=n(24984),s=i(n(72243)),a=i(n(80852)),l=n(57915),c=i(n(13457));t.Corner=function(e){var{name:t,icon:n,className:i}=e,u=r(e,["name","icon","className"]);return s.default.createElement("div",Object.assign({},u,{className:(0,a.default)(c.default.corner,i)}),s.default.createElement(l.NavLink,{to:"/",className:c.default.link},n?s.default.createElement("img",{src:n,width:25,height:25}):s.default.createElement(o.UserAvatar,{size:25,account:{name:t,profileImage:n},className:c.default.avatar}),s.default.createElement("span",null,t)))}},31472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CornerProps=t.Corner=void 0;var r=n(30310);Object.defineProperty(t,"Corner",{enumerable:!0,get:function(){return r.Corner}}),Object.defineProperty(t,"CornerProps",{enumerable:!0,get:function(){return r.CornerProps}})},91486:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyComponentGallery=void 0;const i=r(n(72243)),o=r(n(80852)),s=n(31333),a=n(10818),l=n(78466),c=n(11946),u=r(n(21101));function d(){return i.default.createElement("div",{className:u.default.iconLine},i.default.createElement(s.Link,{external:!0,href:c.links.slack},i.default.createElement("img",{alt:"slack-logo",className:u.default.logo,src:"https://static.bit.dev/harmony/slack-round-icon.svg"})),i.default.createElement(s.Link,{external:!0,href:c.links.github},i.default.createElement("img",{alt:"github-logo",className:u.default.logo,src:"https://static.bit.dev/harmony/github.svg"})),i.default.createElement(s.Link,{external:!0,href:"https://bit.cloud/support"},i.default.createElement("img",{alt:"support",className:u.default.logo,src:"https://static.bit.dev/harmony/support.svg"})))}t.EmptyComponentGallery=function({name:e,children:t,title:n}){return i.default.createElement("div",{className:u.default.emptyComponentGallery},i.default.createElement("div",{className:u.default.title},i.default.createElement("span",null,n),"\xa0",i.default.createElement("span",null,e)),i.default.createElement("img",{src:"https://static.bit.dev/harmony/no-components.svg"}),t,i.default.createElement("div",{className:u.default.title},i.default.createElement("span",null,"New to Bit?")," \xa0",i.default.createElement(s.Link,{external:!0,href:`${c.links.docs}/getting-started/composing/creating-components`,className:u.default.purpleLink},i.default.createElement("span",{className:u.default.text},"Start tutorial"),i.default.createElement(a.Icon,{of:"right_arrow",className:(0,o.default)(u.default.icon,l.textSize.xxs)}))),i.default.createElement("div",{className:u.default.bottomText},"We're here to help"),i.default.createElement(d,null))}},93089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyComponentGalleryProps=t.EmptyComponentGallery=void 0;var r=n(91486);Object.defineProperty(t,"EmptyComponentGallery",{enumerable:!0,get:function(){return r.EmptyComponentGallery}}),Object.defineProperty(t,"EmptyComponentGalleryProps",{enumerable:!0,get:function(){return r.EmptyComponentGalleryProps}})},99281:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FullLoader=void 0;const i=r(n(72243)),o=r(n(83213));t.FullLoader=function(){return i.default.createElement("div",{className:o.default.fullLoader})}},57581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullLoader=void 0;var r=n(99281);Object.defineProperty(t,"FullLoader",{enumerable:!0,get:function(){return r.FullLoader}})},31093:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(60766),t),i(n(4748),t),i(n(29100),t)},60766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderContext=void 0;const r=n(72243);t.LoaderContext=(0,r.createContext)({isActive:()=>!1,update:()=>!1,remove:()=>!1})},4748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoaderApi=void 0;const r=n(72243);t.useLoaderApi=function(){const{current:e}=(0,r.useRef)(new Set),[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{n(e.size>0)}),[e]);return[(0,r.useMemo)((()=>({isActive:t=>e.has(t),update:(t,n)=>{const r=n?!!e.add(t):e.delete(t);return i(),r},remove:t=>{const n=e.delete(t);return i(),n}})),[e,i]),t]}},29100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoader=void 0;const r=n(72243),i=n(63501),o=n(60766);t.useLoader=function(e){const[t]=(0,r.useState)((()=>(0,i.v1)())),n=(0,r.useContext)(o.LoaderContext);(0,r.useEffect)((()=>(n.update(t,e),()=>{n.remove(t)})),[e,n,t])}},41815:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDataQuery=t.DataQueryResult=void 0;var r=n(90670);Object.defineProperty(t,"DataQueryResult",{enumerable:!0,get:function(){return r.DataQueryResult}}),Object.defineProperty(t,"useDataQuery",{enumerable:!0,get:function(){return r.useDataQuery}})},90670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDataQuery=void 0;const r=n(72243),i=n(17642),o=n(89907),s=n(31093);t.useDataQuery=function(e,t){const n=(0,i.useQuery)(e,t),a=(0,r.useContext)(o.NotificationContext),{loading:l,error:c}=n;return(0,s.useLoader)(l),c&&a.error(function(e){return e.toString()}(c)),n}},67505:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransitionStage=t.useInOutTransition=void 0;var r=n(68151);Object.defineProperty(t,"useInOutTransition",{enumerable:!0,get:function(){return r.useInOutTransition}}),Object.defineProperty(t,"TransitionStage",{enumerable:!0,get:function(){return r.TransitionStage}})},68151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useInOutTransition=t.TransitionStage=void 0;const r=n(72243);var i;!function(e){e.entering="entering",e.entered="entered",e.exiting="exiting",e.exited="exited",e.appear="appear"}(i=t.TransitionStage||(t.TransitionStage={})),t.useInOutTransition=function(e,t){const[n,o]=(0,r.useState)(e?i.appear:i.exited),s=(0,r.useRef)(!0),a=(0,r.useRef)(t);return a.current=t,(0,r.useEffect)((()=>{if(s.current)return s.current=!1,()=>{};o(e?i.entering:i.exiting);const t=setTimeout((()=>{const t=e?i.entered:i.exited;o(t)}),a.current);return()=>clearTimeout(t)}),[e]),n}},648:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;var r=n(98656);Object.defineProperty(t,"useIsMobile",{enumerable:!0,get:function(){return r.useIsMobile}})},98656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;const r=n(49432);t.useIsMobile=function(){var e;const t=null===(e=(0,r.useUserAgent)())||void 0===e?void 0:e.getDevice().type;return"tablet"===t||"mobile"===t}},49432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUserAgent=t.UserAgentProvider=t.userAgentContext=t.ssrBrowserContext=t.SSRBrowserProvider=void 0;var r=n(54557);Object.defineProperty(t,"SSRBrowserProvider",{enumerable:!0,get:function(){return r.SSRBrowserProvider}}),Object.defineProperty(t,"ssrBrowserContext",{enumerable:!0,get:function(){return r.ssrBrowserContext}}),Object.defineProperty(t,"userAgentContext",{enumerable:!0,get:function(){return r.userAgentContext}}),Object.defineProperty(t,"UserAgentProvider",{enumerable:!0,get:function(){return r.UserAgentProvider}}),Object.defineProperty(t,"useUserAgent",{enumerable:!0,get:function(){return r.useUserAgent}})},54557:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useUserAgent=t.SSRBrowserProvider=t.ssrBrowserContext=t.UserAgentProvider=t.userAgentContext=void 0;const i=n(72243),o=r(n(39937));t.userAgentContext=(0,i.createContext)(void 0),t.UserAgentProvider=t.userAgentContext.Provider,t.ssrBrowserContext=(0,i.createContext)(void 0),t.SSRBrowserProvider=t.ssrBrowserContext.Provider,t.useUserAgent=function(){const e=(0,i.useContext)(t.ssrBrowserContext);return e?new o.default(e.headers["user-agent"]):new o.default(window.navigator.userAgent)}},59809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0;var r=n(3634);Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return r.isBrowser}})},3634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0;const n="undefined"!==typeof window;t.isBrowser=n},37259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeycapProps=t.KeyComboProps=t.KeySequenceProps=t.Keycap=t.KeyCombo=t.KeySequence=void 0;var r=n(81191);Object.defineProperty(t,"KeySequence",{enumerable:!0,get:function(){return r.KeySequence}}),Object.defineProperty(t,"KeyCombo",{enumerable:!0,get:function(){return r.KeyCombo}}),Object.defineProperty(t,"Keycap",{enumerable:!0,get:function(){return r.Keycap}}),Object.defineProperty(t,"KeySequenceProps",{enumerable:!0,get:function(){return r.KeySequenceProps}}),Object.defineProperty(t,"KeyComboProps",{enumerable:!0,get:function(){return r.KeyComboProps}}),Object.defineProperty(t,"KeycapProps",{enumerable:!0,get:function(){return r.KeycapProps}})},19043:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prettifyKey=void 0;const r=n(59809),i={shift:"\u21e7",ctrl:"\u2303",alt:"\u2325",command:"\u2318",meta:"\u2318",mod:"\u2318",backspace:"\u232b",tab:"\u21e5",enter:"\u21a9",return:"\u21a9",capslock:"\u21ea",esc:"\u238b",escape:"\u238b",space:"\u2423",pageup:"\u21de",pagedown:"\u21df",end:"end",home:"home",left:"\u2190",up:"\u2191",right:"\u2192",down:"\u2193",del:"\u2326",ins:"insert",plus:"+"},o={shift:"shift",ctrl:"ctrl",alt:"alt",meta:"win",mod:"ctrl",backspace:"backspace",tab:"tab",enter:"enter",return:"enter",capslock:"caps lock",esc:"Esc",escape:"Esc",space:"\u2423",pageup:"pgUp",pagedown:"pgDown",end:"end",home:"home",left:"\u2190",up:"\u2191",right:"\u2192",down:"\u2193",del:"del",ins:"insert",plus:"+"},s=/Mac|iPod|iPhone|iPad/;t.prettifyKey=function(e){if("string"!==typeof e)return e;const t=!r.isBrowser||s.test(window.navigator.platform)?i:o;return e in t?t[e]:e}},81191:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Keycap=t.KeyCombo=t.KeySequence=void 0;const l=o(n(72243)),c=a(n(80852)),u=a(n(19751)),d=n(19043);function p(e){var{children:t,className:n}=e,r=s(e,["children","className"]);if(!t)return null;const i=t.split("+").map((e=>e.trim()));return l.default.createElement("div",Object.assign({},r,{className:(0,c.default)(n,u.default.keyCombo)}),i.map(((e,t)=>l.default.createElement(f,{key:t},e))))}function f(e){var{className:t,children:n}=e,r=s(e,["className","children"]);const i=(0,d.prettifyKey)(n);return l.default.createElement("kbd",Object.assign({},r,{className:(0,c.default)(t,u.default.keycap)}),i)}function h(){return l.default.createElement("span",{className:u.default.thenSep},"then")}t.KeySequence=function(e){var{children:t,className:n}=e,r=s(e,["children","className"]);if(!t)return null;const i=(0,l.useMemo)((()=>function(e,t){const n=[];return e.forEach(((e,r)=>{n.push(e),n.push(t(r))})),n.pop(),n}(t.split(" ").map((e=>e.trim())).filter((e=>!!e)).map(((e,t)=>l.default.createElement(p,{key:t},e))),(e=>l.default.createElement(h,{key:`then-sep_${e}`})))),[t]);return l.default.createElement("div",Object.assign({},r,{className:(0,c.default)(u.default.keySequence,n)}),i)},t.KeyCombo=p,t.Keycap=f},21215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItemSlot=t.MenuItem=t.MainDropdown=void 0;var r=n(33887);Object.defineProperty(t,"MainDropdown",{enumerable:!0,get:function(){return r.MainDropdown}}),Object.defineProperty(t,"MenuItem",{enumerable:!0,get:function(){return r.MenuItem}}),Object.defineProperty(t,"MenuItemSlot",{enumerable:!0,get:function(){return r.MenuItemSlot}})},33887:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MainDropdown=void 0;const o=n(10818),s=n(1666),a=i(n(80852)),l=i(n(72243)),c=n(82190),u=n(37259),d=i(n(95289));function p(e){var{lineTitle:t,keyChar:n,onClick:i}=e,o=r(e,["lineTitle","keyChar","onClick"]);return l.default.createElement("div",Object.assign({},o,{className:(0,a.default)(d.default.line),onClick:i}),l.default.createElement("div",null,t),n&&l.default.createElement("pre",null,l.default.createElement(u.KeySequence,null,n)))}function f({title:e,children:t}){return l.default.createElement("div",{className:(0,a.default)(d.default.menuBlock)},l.default.createElement("div",{className:d.default.title},e),t)}t.MainDropdown=function(e){var{menuItems:t,className:n}=e,i=r(e,["menuItems","className"]);return!t||(0,c.isEmpty)(t)?null:l.default.createElement("div",Object.assign({},i,{className:(0,a.default)(d.default.mainDropdown,n)}),l.default.createElement(s.TooltipDrawer,{className:d.default.dropdown,tooltipClass:d.default.menu,placeholder:"",clickOutside:!0,PlaceholderComponent:()=>l.default.createElement("div",{className:d.default.iconAnchor},l.default.createElement("div",{className:d.default.overlay}),l.default.createElement(o.Icon,{className:(0,a.default)(d.default.icon),of:"more"}))},l.default.createElement("div",null,Object.keys(t).map(((e,n)=>l.default.createElement(f,{key:n,title:e},t[e].map((e=>e&&l.default.createElement(p,{key:e.keyChar,lineTitle:e.title,keyChar:e.keyChar,onClick:e.handler})))))))))}},87651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuWidgetIcon=void 0;var r=n(21327);Object.defineProperty(t,"MenuWidgetIcon",{enumerable:!0,get:function(){return r.MenuWidgetIcon}})},21327:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MenuWidgetIcon=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(10818),l=n(52993),c=i(n(52887));t.MenuWidgetIcon=function(e){var{tooltipContent:t,icon:n,className:i}=e,u=r(e,["tooltipContent","icon","className"]);return o.default.createElement(l.Tooltip,{placement:"bottom",offset:[0,15],content:t},o.default.createElement("div",Object.assign({},u,{className:(0,s.default)(c.default.widgetMenuIcon,i)}),o.default.createElement(a.Icon,{of:n,className:c.default.icon})))}},31219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuWidgetSlot=t.MenuWidget=t.MenuProps=t.Menu=void 0;var r=n(61290);Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return r.Menu}}),Object.defineProperty(t,"MenuProps",{enumerable:!0,get:function(){return r.MenuProps}}),Object.defineProperty(t,"MenuWidget",{enumerable:!0,get:function(){return r.MenuWidget}}),Object.defineProperty(t,"MenuWidgetSlot",{enumerable:!0,get:function(){return r.MenuWidgetSlot}})},61290:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;const a=n(21215),l=s(n(80852)),c=o(n(72243)),u=n(82190),d=s(n(58043));t.Menu=function({menuSlot:e,widgetSlot:t,menuItemSlot:n,className:r}){const i=(0,c.useMemo)((()=>(0,u.groupBy)((0,u.flatten)(null===n||void 0===n?void 0:n.values()),"category")),[n]),o=(0,u.flatten)(null===t||void 0===t?void 0:t.values()),s=(0,u.flatten)(null===e||void 0===e?void 0:e.values());return c.default.createElement("div",{className:(0,l.default)(d.default.topBar,r)},c.default.createElement("div",{className:d.default.leftSide},s&&s.map(((e,t)=>c.default.createElement(e,{key:t})))),c.default.createElement("div",{className:d.default.rightSide},o&&o.map(((e,t)=>c.default.createElement(e,{key:t}))),c.default.createElement(a.MainDropdown,{menuItems:i})))}},39569:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reactRouterAdapter=void 0;var r=n(21521);Object.defineProperty(t,"reactRouterAdapter",{enumerable:!0,get:function(){return r.reactRouterAdapter}})},86744:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReactRouterLink=void 0;const l=o(n(72243)),c=a(n(92905)),u=n(57915),d=n(70014);t.ReactRouterLink=(0,l.forwardRef)((function(e,t){var{children:n=null,href:r="",state:i,style:o,className:a,activeClassName:p,activeStyle:f,active:h,exact:m,strict:g,native:_,external:b}=e,v=s(e,["children","href","state","style","className","activeClassName","activeStyle","active","exact","strict","native","external"]);const y=(0,l.useMemo)((()=>Object.assign(Object.assign({},(0,d.parsePath)(r)),{state:i})),[r,i]);return p||f?l.default.createElement(u.NavLink,Object.assign({to:y,ref:t,end:m,style:({isActive:e})=>Object.assign(Object.assign({},o),(null!==h&&void 0!==h?h:e)&&f),className:({isActive:e})=>(0,c.default)(a,(null!==h&&void 0!==h?h:e)&&p)},v),n):l.default.createElement(u.Link,Object.assign({},v,{className:a,style:o,to:y,ref:t}),n)}))},21521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reactRouterAdapter=void 0;const r=n(57915),i=n(86744);t.reactRouterAdapter={Link:i.ReactRouterLink,useLocation:r.useLocation,useNavigate:r.useNavigate}},92905:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},29521:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DismissButton=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(50995),l=n(67505),c=i(n(45107));t.DismissButton=function(e){var{visible:t,className:n}=e,i=r(e,["visible","className"]);const u=(0,l.useInOutTransition)(t,+c.default.animationTime);return o.default.createElement(a.Button,Object.assign({},i,{className:(0,s.default)(n,c.default.dismissButton,`${c.default.dismissButton}-${u}`)}),"Dismiss all")}},95554:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(29521),t)},32967:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(20752),t)},20752:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationCenter=void 0;const l=o(n(72243)),c=a(n(80852)),u=n(52252),d=n(89907),p=n(7125),f=a(n(32704)),h=n(95554);t.NotificationCenter=function(e){var{notifications:t}=e,n=s(e,["notifications"]);const[r,i]=(0,l.useState)(!1),o=(0,l.useContext)(d.NotificationContext),a=(0,l.useCallback)((()=>{i(!0),setTimeout((()=>{o.clear(),i(!1)}),+f.default.animationTime)}),[]),m=!r&&!!t&&t.length>1;return l.default.createElement("div",Object.assign({},n,{className:(0,c.default)(f.default.notificationCenter,r&&f.default.dismissing,p.darkMode)}),l.default.createElement("div",{className:f.default.notificationsContainer},null===t||void 0===t?void 0:t.reverse().map((e=>l.default.createElement(u.Notification,{key:e.id,entry:e})))),l.default.createElement("div",{className:f.default.actions},l.default.createElement(h.DismissButton,{visible:m,importance:"normal",className:f.default.dismissAll,onClick:a})))}},89907:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(89904),t)},89904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useNotifications=t.NotificationContext=void 0;const r=n(72243);t.NotificationContext=(0,r.createContext)({add:()=>"",log:()=>"",error:()=>"",dismiss:()=>{},clear:()=>{}});t.useNotifications=()=>(0,r.useContext)(t.NotificationContext)},52252:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(5610),t)},5610:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Notification=void 0;const a=n(96900),l=n(71828),c=n(18979),u=n(34971),d=s(n(80852)),p=o(n(72243)),f=n(81349),h=n(89907),m=s(n(36198)),g=+m.default.dismissTime;t.Notification=function({entry:e}){const[t,n]=(0,p.useState)(!1),r=(0,p.useContext)(h.NotificationContext),{level:i,time:o,message:s,id:_}=e,b=(0,p.useCallback)((()=>{n(!0),setTimeout((()=>{r.dismiss(_)}),g)}),[_]);return p.default.createElement(a.Card,{className:(0,d.default)(m.default.notification,t&&m.default.dismissing),elevation:"none"},p.default.createElement(f.LevelIcon,{level:i,className:m.default.icon}),p.default.createElement("div",{className:m.default.main},p.default.createElement("div",{className:m.default.type},i.toString()),p.default.createElement("div",{className:m.default.message},s),o&&p.default.createElement("div",{className:(0,d.default)(m.default.timestamp,l.mutedText)},p.default.createElement(c.TimeAgo,{date:o}))),p.default.createElement(u.XButton,{onClick:t?void 0:b}))}},43234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationsStore=t.MessageLevel=t.MessageId=t.Message=void 0;var r=n(28477);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return r.Message}}),Object.defineProperty(t,"MessageId",{enumerable:!0,get:function(){return r.MessageId}}),Object.defineProperty(t,"MessageLevel",{enumerable:!0,get:function(){return r.MessageLevel}}),Object.defineProperty(t,"NotificationsStore",{enumerable:!0,get:function(){return r.NotificationsStore}})},28477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageLevel=void 0,function(e){e.error="error",e.warning="warning",e.success="success",e.info="info"}(t.MessageLevel||(t.MessageLevel={}))},19588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationSlot=t.RouteSlot=t.SlotRouterProps=t.SlotRouter=void 0;var r=n(79440);Object.defineProperty(t,"SlotRouter",{enumerable:!0,get:function(){return r.SlotRouter}}),Object.defineProperty(t,"SlotRouterProps",{enumerable:!0,get:function(){return r.SlotRouterProps}}),Object.defineProperty(t,"RouteSlot",{enumerable:!0,get:function(){return r.RouteSlot}}),Object.defineProperty(t,"NavigationSlot",{enumerable:!0,get:function(){return r.NavigationSlot}})},79440:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SlotRouter=void 0;const i=r(n(72243)),o=n(57915),s=n(82190);function a(e){return e.path?e.path:e.index?"/":"."}t.SlotRouter=function({routes:e,slot:t,rootRoutes:n,children:r,parentPath:l}){const c=(e||t&&(0,s.flatten)(t.values())||[]).concat(n||[]).map((e=>i.default.createElement(o.Route,Object.assign({key:a(e)},e))));return i.default.createElement(o.Routes,null,i.default.createElement(o.Route,{path:l},c,r))}},31192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useQuery=void 0;var r=n(80891);Object.defineProperty(t,"useQuery",{enumerable:!0,get:function(){return r.useQuery}})},80891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useQuery=void 0;const r=n(31333);t.useQuery=function(){const{search:e}=(0,r.useLocation)()||{search:"/"};return new URLSearchParams(e)}},87024:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentTree=void 0;const s=n(21475),a=o(n(72243)),l=n(31333),c=n(55899),u=n(56899),d=n(68708),p=n(5433),f=n(93337),h=n(86882),m=n(51481);t.ComponentTree=function({components:e,isCollapsed:t,className:n,transformTree:r,TreeNode:i=m.DefaultTreeNodeRenderer}){const{pathname:o="/"}=(0,l.useLocation)()||{},g=o.split(p.LanesModel.baseLaneComponentRoute.concat("/"))[1],_=(0,s.useIdFromLocation)(g),b=(0,a.useMemo)((()=>{const t=e.find((e=>_&&(_===e.id.fullName||_===e.id.toStringWithoutVersion())));return null===t||void 0===t?void 0:t.id.toString({ignoreVersion:!0})}),[e,o]),v=(0,a.useMemo)((()=>{const t=(0,u.inflateToTree)(e,(e=>e.id.toString({ignoreVersion:!0}))),n=function(e){const t=new Map(e.map((e=>[e.id.toString({ignoreVersion:!0}),e]))),n=new Set(e.map((e=>e.id.scope)).filter((e=>!!e)));return n.forEach((e=>e&&t.set(`${e}/`,new h.ScopePayload))),t}(e);return(0,u.attachPayload)(t,n),r?r(t):t}),[e]);return a.default.createElement(f.TreeContextProvider,null,a.default.createElement("div",{style:(0,c.indentStyle)(1),className:n},a.default.createElement(d.Tree,{TreeNode:i,activePath:b,tree:v,isCollapsed:t})))}},93937:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentView=void 0;const a=n(31333),l=n(81846),c=n(77959),u=s(n(80852)),d=n(21475),p=n(45887),f=o(n(72243)),h=n(52993),m=n(93337),g=n(55899),_=n(70976),b=n(87431),v=n(5433),y=n(32708),S=s(n(72887));t.ComponentView=function(e){var t,n,r,i;const{node:o}=e,s=o.payload,{onSelect:E}=(0,f.useContext)(m.TreeContext),{lanesModel:w}=(e.useLanes||_.useLanes)(),C=(0,f.useCallback)((e=>{E&&E(o.id,e)}),[E,o.id]),O=(0,a.useLocation)(),T=(0,b.useScope)();if(!(s instanceof d.ComponentModel))return null;const N=d.ComponentID.fromString(null===(t=s.environment)||void 0===t?void 0:t.id),I=f.default.createElement(a.Link,{className:S.default.envLink,href:p.ComponentUrl.toUrl(N,{includeVersion:!0,useLocationOrigin:!window.location.host.startsWith("localhost")}),external:!0,onClick:e=>{e.stopPropagation()}},f.default.createElement("div",{className:S.default.componentEnvTitle},"Environment"),f.default.createElement("div",null,null===(n=s.environment)||void 0===n?void 0:n.id)),x=null===w||void 0===w?void 0:w.getLaneComponentUrlByVersion(s.id,null===(r=w.viewedLane)||void 0===r?void 0:r.id),k=f.default.useMemo((()=>{var e,t;return!(null===(e=null===w||void 0===w?void 0:w.viewedLane)||void 0===e?void 0:e.id.isDefault())&&(null===w||void 0===w?void 0:w.isComponentOnMainButNotOnLane(s.id,void 0,null===(t=null===w||void 0===w?void 0:w.viewedLane)||void 0===t?void 0:t.id))}),[null===(i=null===w||void 0===w?void 0:w.viewedLane)||void 0===i?void 0:i.id.toString(),s.id.toString()]),R=k?f.default.createElement(h.Tooltip,{className:S.default.onMainTooltip,placement:"right",content:"On Main"},f.default.createElement("span",null,(0,y.getName)(o.id))):f.default.createElement("span",null,(0,y.getName)(o.id)),P=f.default.useMemo((()=>{var e,t,n,r,i,o;if(!x||!O)return!1;const a=O.pathname.substring(1).split("?")[0],l=s.id.toStringWithoutVersion(),c=s.id.fullName,u=(x.startsWith("/")?x.substring(1):x).split("?")[0],p=(null===w||void 0===w?void 0:w.currentLane)&&w.currentLane.id.toString()===(null===(e=null===w||void 0===w?void 0:w.viewedLane)||void 0===e?void 0:e.id.toString());if((null===(t=null===w||void 0===w?void 0:w.viewedLane)||void 0===t?void 0:t.id.isDefault())||k||p){const e=a.split("/~")[0],t=T.name?`${T.name.replace(".","/")}/`:"";return u===e.replace(t,"")}const f=null!==(r=(null!==(n=a.split(v.LanesModel.baseLaneComponentRoute)[1])&&void 0!==n?n:"").split("/~")[0])&&void 0!==r?r:"",h=f.startsWith("/")?f.substring(1):f,m=d.ComponentID.tryFromString(h);return!T.name&&(null===(i=null===w||void 0===w?void 0:w.viewedLane)||void 0===i?void 0:i.id)&&s.id.scope===(null===(o=null===w||void 0===w?void 0:w.viewedLane)||void 0===o?void 0:o.id.scope)?c===h:!!m&&((null===m||void 0===m?void 0:m.toString())===l||m.fullName===c)}),[x,k,null===O||void 0===O?void 0:O.pathname,s.id.toString(),T]);return f.default.createElement(a.Link,{href:x,className:(0,u.default)(g.indentClass,S.default.component,k&&S.default.mainOnly),activeClassName:S.default.active,onClick:C,active:P},f.default.createElement("div",{className:S.default.left},f.default.createElement(h.Tooltip,{className:S.default.componentEnvTooltip,placement:"right",content:I},f.default.createElement(l.EnvIcon,{component:s,className:S.default.envIcon})),R),f.default.createElement("div",{className:S.default.right},f.default.createElement(c.DeprecationIcon,{component:s}),e.treeNodeSlot&&e.treeNodeSlot.toArray().map((([e,t])=>f.default.createElement(t.widget,{key:e,component:s})))))}},51214:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(93937),t)},34391:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTreeNodeRenderer=void 0;const i=r(n(72243)),o=n(86882),s=n(51214),a=n(6999),l=n(82862);t.DefaultTreeNodeRenderer=function(e){return e.node.children?e.node.payload instanceof o.ScopePayload?i.default.createElement(a.ScopeTreeNode,Object.assign({},e)):i.default.createElement(l.NamespaceTreeNode,Object.assign({},e)):i.default.createElement(s.ComponentView,Object.assign({},e))}},51481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTreeNodeRenderer=void 0;var r=n(34391);Object.defineProperty(t,"DefaultTreeNodeRenderer",{enumerable:!0,get:function(){return r.DefaultTreeNodeRenderer}})},36391:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopePayload=t.NamespaceTreeNode=t.ScopeTreeNode=t.ComponentView=void 0,i(n(87024),t);var o=n(51214);Object.defineProperty(t,"ComponentView",{enumerable:!0,get:function(){return o.ComponentView}});var s=n(6999);Object.defineProperty(t,"ScopeTreeNode",{enumerable:!0,get:function(){return s.ScopeTreeNode}});var a=n(82862);Object.defineProperty(t,"NamespaceTreeNode",{enumerable:!0,get:function(){return a.NamespaceTreeNode}});var l=n(86882);Object.defineProperty(t,"ScopePayload",{enumerable:!0,get:function(){return l.ScopePayload}})},82862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceTreeNode=void 0;var r=n(28820);Object.defineProperty(t,"NamespaceTreeNode",{enumerable:!0,get:function(){return r.NamespaceTreeNode}})},28820:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceTreeNode=void 0;const a=n(10818),l=s(n(80852)),c=o(n(72243)),u=s(n(57196)),d=n(55899),p=n(68708),f=n(32708),h=s(n(20760));t.NamespaceTreeNode=function({node:e,depth:t}){const{isCollapsed:n,activePath:r}=(0,p.useTree)(),i=null===r||void 0===r?void 0:r.startsWith(e.id),o=i||!n,[s,m]=(0,c.useState)(o),g=(0,c.useRef)(!0);(0,c.useEffect)((()=>{g.current||!0===i&&m(!0)}),[i]),(0,c.useEffect)((()=>{g.current||m(!n)}),[n]),(0,c.useEffect)((()=>{g.current=!1}),[]);const _=(0,f.getName)(e.id.replace(/\/$/,"")),b=!s&&i;return c.default.createElement("div",null,e.id&&c.default.createElement("div",{className:(0,l.default)(d.indentClass,h.default.namespace,b&&h.default.highlighted),onClick:()=>m(!s)},c.default.createElement("div",{className:h.default.left},c.default.createElement(a.Icon,{className:(0,l.default)(h.default.arrow,!s&&h.default.collapsed),of:"fat-arrow-down"}),c.default.createElement("span",{className:h.default.name},_))),c.default.createElement(u.default,{height:s?"auto":0},c.default.createElement("div",{style:(0,d.indentStyle)(t+1),className:(0,l.default)(h.default.componentTree)},e.children&&c.default.createElement(p.TreeLayer,{childNodes:e.children,depth:t}))))}},86882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopePayload=void 0;t.ScopePayload=class{get isScope(){return!0}}},6999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeTreeNode=void 0;var r=n(1998);Object.defineProperty(t,"ScopeTreeNode",{enumerable:!0,get:function(){return r.ScopeTreeNode}})},1998:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeTreeNode=void 0;const a=n(10818),l=s(n(80852)),c=o(n(72243)),u=s(n(57196)),d=n(68708),p=n(32708),f=s(n(46105));t.ScopeTreeNode=function({node:e,depth:t}){const{isCollapsed:n,activePath:r}=(0,d.useTree)(),i=null===r||void 0===r?void 0:r.startsWith(e.id),o=i||!n,[s,h]=(0,c.useState)(o),m=(0,p.getName)(e.id.replace(/\/$/,"")),g=(0,c.useRef)(!0);(0,c.useEffect)((()=>{g.current||!0===i&&h(!0)}),[i]),(0,c.useEffect)((()=>{g.current||h(!n)}),[n]),(0,c.useEffect)((()=>{g.current=!1}),[]);const _=!s&&i;return c.default.createElement("div",null,e.id&&c.default.createElement("div",{className:(0,l.default)(d.indentClass,f.default.scope,_&&f.default.highlighted),onClick:()=>h(!s)},c.default.createElement("div",{className:f.default.left},c.default.createElement(a.Icon,{className:(0,l.default)(f.default.arrow,!s&&f.default.collapsed),of:"fat-arrow-down"}),c.default.createElement(a.Icon,{className:f.default.arrow,of:"collection-full"}),c.default.createElement("span",{className:f.default.name},m))),c.default.createElement(u.default,{height:s?"auto":0},c.default.createElement("div",{style:(0,d.indentStyle)(t+1),className:(0,l.default)(f.default.componentTree)},e.children&&c.default.createElement(d.TreeLayer,{childNodes:e.children,depth:t+1}))))}},32708:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getName=void 0,t.getName=function(e){return e.split("/").pop()}},31172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopePayload=t.PayloadType=t.NamespaceTreeNode=t.ScopeTreeNode=t.ComponentView=t.ComponentTree=void 0;var r=n(36391);Object.defineProperty(t,"ComponentTree",{enumerable:!0,get:function(){return r.ComponentTree}}),Object.defineProperty(t,"ComponentView",{enumerable:!0,get:function(){return r.ComponentView}}),Object.defineProperty(t,"ScopeTreeNode",{enumerable:!0,get:function(){return r.ScopeTreeNode}}),Object.defineProperty(t,"NamespaceTreeNode",{enumerable:!0,get:function(){return r.NamespaceTreeNode}}),Object.defineProperty(t,"PayloadType",{enumerable:!0,get:function(){return r.PayloadType}}),Object.defineProperty(t,"ScopePayload",{enumerable:!0,get:function(){return r.ScopePayload}})},88907:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopBarProps=t.TopBar=void 0;var r=n(82391);Object.defineProperty(t,"TopBar",{enumerable:!0,get:function(){return r.TopBar}}),Object.defineProperty(t,"TopBarProps",{enumerable:!0,get:function(){return r.TopBarProps}})},82391:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TopBar=void 0;const o=n(19588),s=i(n(80852)),a=i(n(72243)),l=i(n(59787));t.TopBar=function(e){var{Corner:t,menu:n,className:i}=e,c=r(e,["Corner","menu","className"]);return a.default.createElement("div",Object.assign({},c,{className:(0,s.default)(l.default.topbar,i)}),a.default.createElement(t,null),a.default.createElement(o.SlotRouter,{slot:n}))}},87906:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerUI=void 0;const o=n(10818),s=i(n(80852)),a=i(n(72243)),l=i(n(64650));function c({children:e}){return a.default.createElement(a.default.Fragment,null,e)}t.DrawerUI=function(e){var{name:t,children:n,className:i,isOpen:u,onToggle:d,Widgets:p,Context:f=c,contentClass:h,drawerNameClass:m}=e,g=r(e,["name","children","className","isOpen","onToggle","Widgets","Context","contentClass","drawerNameClass"]);return t?a.default.createElement("div",Object.assign({},g,{className:(0,s.default)(l.default.drawer,i)}),a.default.createElement(f,null,a.default.createElement("div",{className:(0,s.default)(l.default.drawerName,u&&l.default.open,m)},a.default.createElement("div",{onClick:d},a.default.createElement(o.Icon,{className:(0,s.default)(l.default.arrow,!u&&l.default.collapsed),of:"fat-arrow-down"}),a.default.createElement("span",null,t)),null===p||void 0===p?void 0:p.map(((e,t)=>a.default.createElement(a.default.Fragment,{key:t},e)))),a.default.createElement("div",{className:(0,s.default)(l.default.drawerContent,h,u&&l.default.open)},n))):null}},63153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerUI=void 0;var r=n(87906);Object.defineProperty(t,"DrawerUI",{enumerable:!0,get:function(){return r.DrawerUI}})},60500:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFileTreeContext=t.FileTreeContext=void 0;const r=n(72243);t.FileTreeContext=(0,r.createContext)(void 0);t.useFileTreeContext=()=>(0,r.useContext)(t.FileTreeContext)},63675:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FileTree=void 0;const a=o(n(72243)),l=n(56899),c=n(93337),u=n(55899),d=n(9425),p=n(39090),f=n(58997),h=n(60500);t.FileTree=function(e){var{files:t,onTreeNodeSelected:n,selected:r,getIcon:i,getHref:o,widgets:m,payloadMap:g,TreeNode:_=f.FileTreeNode}=e,b=s(e,["files","onTreeNodeSelected","selected","getIcon","getHref","widgets","payloadMap","TreeNode"]);const v=(0,a.useMemo)((()=>{const e=t.map((e=>e.replace(/\\/g,"/"))),n=(0,l.inflateToTree)(e,(e=>e));return g&&(0,l.attachPayload)(n,g),n}),[t,g]);return a.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},(0,u.indentStyle)(1)),b.style)},b),a.default.createElement(h.FileTreeContext.Provider,{value:{getIcon:i,getHref:o,widgets:m}},a.default.createElement(p.TreeNodeContext.Provider,{value:_},a.default.createElement(c.TreeContextProvider,{onSelect:n,selected:r},a.default.createElement(d.RootNode,{node:v,depth:1})))))}},58997:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FileTreeNode=void 0;const s=o(n(72243)),a=n(93337),l=n(58776),c=n(21042),u=n(60500);t.FileTreeNode=function(e){var t,n;const{node:r}=e,i=(0,u.useFileTreeContext)(),{selected:o,onSelect:d}=(0,s.useContext)(a.TreeContext),p=null===(t=null===i||void 0===i?void 0:i.getHref)||void 0===t?void 0:t.call(i,r),f=null===i||void 0===i?void 0:i.widgets,h=null===(n=null===i||void 0===i?void 0:i.getIcon)||void 0===n?void 0:n.call(i,r);return(null===r||void 0===r?void 0:r.children)?s.default.createElement(c.FolderTreeNode,Object.assign({},e)):s.default.createElement(l.TreeNode,Object.assign({},e,{onClick:d&&(e=>d(r.id,e)),href:p,isActive:(null===r||void 0===r?void 0:r.id)===o,icon:h,widgets:f}))}},80271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileTree=t.useFileTreeContext=void 0;var r=n(60500);Object.defineProperty(t,"useFileTreeContext",{enumerable:!0,get:function(){return r.useFileTreeContext}});var i=n(63675);Object.defineProperty(t,"FileTree",{enumerable:!0,get:function(){return i.FileTree}})},83293:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderTreeNode=void 0;const a=n(67118),l=s(n(80852)),c=o(n(72243)),u=n(55899),d=n(79032),p=s(n(39793));t.FolderTreeNode=function({node:e,depth:t,className:n}){var r,i,o,s;const[f,h]=(0,c.useState)(null===(i=null===(r=e.payload)||void 0===r?void 0:r.open)||void 0===i||i);(0,c.useEffect)((()=>{var t,n;void 0!==(null===(t=null===e||void 0===e?void 0:e.payload)||void 0===t?void 0:t.open)&&h(null===(n=null===e||void 0===e?void 0:e.payload)||void 0===n?void 0:n.open)}),[null===(o=null===e||void 0===e?void 0:e.payload)||void 0===o?void 0:o.open]);const m=e.id.replace(/\/$/,"").split("/").pop(),g=(_=null===(s=e.payload)||void 0===s?void 0:s.icon)?"string"===typeof _?_.startsWith("http")?c.default.createElement("img",{src:_,className:p.default.img}):c.default.createElement(a.Icon,{className:p.default.icon,of:_}):_:null;var _;const b=e.id&&c.default.createElement("div",{className:(0,l.default)(u.indentClass,p.default.folder,n),onClick:()=>h(!f)},c.default.createElement("div",{className:p.default.left},c.default.createElement(a.Icon,{className:(0,l.default)(p.default.icon,!f&&p.default.collapsed),of:"fat-arrow-down"}),g,c.default.createElement("span",{className:p.default.name},m)));return c.default.createElement(d.CollapsableTreeNode,{title:b,isOpen:f,node:e,depth:t})}},21042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FolderTreeNode=void 0;var r=n(83293);Object.defineProperty(t,"FolderTreeNode",{enumerable:!0,get:function(){return r.FolderTreeNode}})},58776:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(23830),t)},23830:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNode=void 0;const i=n(31333),o=r(n(80852)),s=r(n(72243)),a=n(55899),l=r(n(84125));t.TreeNode=function(e){const{node:t,isActive:n,icon:r,onClick:c,widgets:u,href:d,className:p,activeClassName:f}=e;return s.default.createElement(i.Link,{href:d||t.id,active:n,exact:!0,strict:!0,className:(0,o.default)(a.indentClass,l.default.fileNode,p),activeClassName:(0,o.default)(f||l.default.active)},s.default.createElement("div",{className:l.default.left,onClick:c},r&&s.default.createElement("img",{className:l.default.icon,src:r}),s.default.createElement("span",null,t.id.split("/").pop())),s.default.createElement("div",{className:l.default.right},null===u||void 0===u?void 0:u.map(((e,n)=>s.default.createElement(e,{key:n,node:t})))))}},2195:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BitInfo=void 0;const o=i(n(72243)),s=n(10818),a=n(689),l=n(32066),c=n(20359),u=n(31333),d=n(40881),p=i(n(94988));t.BitInfo=function(e){var t=r(e,[]);return o.default.createElement("div",Object.assign({},t),o.default.createElement(c.TabContent,{className:p.default.moreInfo,bottom:o.default.createElement(u.Link,{external:!0,href:a.links.installBit,className:d.linkStyles},o.default.createElement(s.Icon,{of:"information-sign"}),o.default.createElement("span",null,"Learn more"))},o.default.createElement("div",null,"Install bit version manager"),o.default.createElement(l.CopyBox,null,"npm i -g @teambit/bvm"),o.default.createElement("div",null,"Install bit"),o.default.createElement(l.CopyBox,null,"bvm install")))}},74492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitInfo=void 0;var r=n(2195);Object.defineProperty(t,"BitInfo",{enumerable:!0,get:function(){return r.BitInfo}})},40881:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.linkStyles=void 0;const i=r(n(76121));t.linkStyles=i.default.link},53435:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UseBoxDropdown=void 0;const l=o(n(72243)),c=a(n(80852)),u=n(20889),d=n(10818),p=a(n(38031));function f(e){var{actionName:t="Use",actionIcon:n="package"}=e,r=s(e,["actionName","actionIcon"]);return l.default.createElement("div",Object.assign({className:(0,c.default)(p.default.placeholder)},r),l.default.createElement(d.Icon,{of:n}),l.default.createElement("div",{className:p.default.content},t),l.default.createElement(d.Icon,{className:p.default.content,of:"fat-arrow-down"}))}t.UseBoxDropdown=function(e){var{className:t,Menu:n,actionName:r,actionIcon:i}=e,o=s(e,["className","Menu","actionName","actionIcon"]);const[a,d]=(0,l.useState)(0),h=l.default.cloneElement(n,{key:a});return l.default.createElement(u.Dropdown,Object.assign({className:(0,c.default)(t)},o,{onChange:(e,t)=>t&&d((e=>e+1)),dropClass:p.default.menu,placeholder:l.default.createElement(f,{actionName:r,actionIcon:i}),clickToggles:!1,clickPlaceholderToggles:!0}),h)}},2358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UseBoxDropdown=void 0;var r=n(53435);Object.defineProperty(t,"UseBoxDropdown",{enumerable:!0,get:function(){return r.UseBoxDropdown}})},57262:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Import=void 0;const o=i(n(72243)),s=n(10818),a=i(n(80852)),l=n(20359),c=n(74492),u=n(21344),d=i(n(56657));t.Import=function(e){var{componentId:t,packageName:n,componentName:i,showInstallMethod:p=!0}=e,f=r(e,["componentId","packageName","componentName","showInstallMethod"]);return o.default.createElement(l.ExpandableTabContent,Object.assign({},f,{content:o.default.createElement("div",{className:d.default.importContent},o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:(0,a.default)(!p&&d.default.disabled)},!p&&o.default.createElement(s.Icon,{className:d.default.warnIcon,of:"warn-circle"}),p&&`Add ${i} as a dependency`,!p&&"Installation unavailable: This component has not been built yet"),p&&o.default.createElement(u.TooltipCopybox,{content:`bit install ${null!==n&&void 0!==n?n:""}`,disabled:!p})),o.default.createElement("div",null,`Import ${i} to your workspace`),o.default.createElement(u.TooltipCopybox,{content:`bit import ${t}`}),o.default.createElement("div",null,`Fork ${i} to your workspace`),o.default.createElement(u.TooltipCopybox,{content:`bit fork ${t}`})),drawerTitle:o.default.createElement("div",{className:d.default.bottom},o.default.createElement(s.Icon,{color:"yellow",of:"download"}),o.default.createElement("span",null,"Install Bit on your computer")),drawerContent:o.default.createElement(c.BitInfo,null)}))}},30595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Registry=t.Install=t.Import=t.Menu=void 0;var r=n(32940);Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return r.Menu}});var i=n(57262);Object.defineProperty(t,"Import",{enumerable:!0,get:function(){return i.Import}});var o=n(86027);Object.defineProperty(t,"Install",{enumerable:!0,get:function(){return o.Install}});var s=n(41429);Object.defineProperty(t,"Registry",{enumerable:!0,get:function(){return s.Registry}})},86027:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Install=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(10818),l=n(51186),c=n(20359),u=n(21344),d=n(41429),p=i(n(56657));t.Install=function(e){var{componentName:t,copyString:n,registryName:i,packageManager:f,config:h,isInstallable:m}=e,g=r(e,["componentName","copyString","registryName","packageManager","config","isInstallable"]);return o.default.createElement(c.ExpandableTabContent,Object.assign({},g,{content:o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:(0,s.default)(!m&&p.default.disabled)},!m&&o.default.createElement(a.Icon,{className:p.default.warnIcon,of:"warn-circle"}),m&&`Install ${t} with ${f}`,!m&&"Installation unavailable: This component has not been built yet"),m&&o.default.createElement(u.TooltipCopybox,{content:n,disabled:!m})),drawerTitle:i&&o.default.createElement("div",{className:p.default.bottom},o.default.createElement(a.Icon,{of:"settings"}),o.default.createElement("span",null,"Configure ",o.default.createElement(l.HighlightedText,null,i)," as a Scoped Registry")),drawerContent:i&&o.default.createElement(d.Registry,{copyString:h})}))}},32940:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;const l=o(n(72243)),c=a(n(80852)),u=n(10818),d=a(n(31662)),p=a(n(92)),f=n(13529),h=a(n(56657));t.Menu=function(e){var{methods:t,componentName:n}=e,r=s(e,["methods","componentName"]);const[i,o]=(0,l.useState)(0),a=(0,l.useMemo)((()=>(0,d.default)((0,p.default)(t),["order"])),[t]),{Component:m}=a[i]||{};return l.default.createElement("div",Object.assign({},r,{className:(0,c.default)(r.className,h.default.container)}),l.default.createElement("div",{className:h.default.top},l.default.createElement("div",{className:h.default.title},l.default.createElement(u.Icon,{of:"terminal"}),l.default.createElement("span",null,`Use ${n}`))),l.default.createElement("div",{className:h.default.tabs},a.map((({Title:e},t)=>l.default.createElement(f.Tab,{key:t,isActive:i===t,onClick:()=>o(t)},e)))),m)}},41429:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Registry=void 0;const o=i(n(72243)),s=n(10818),a=n(689),l=n(32066),c=n(20359),u=n(40881),d=n(31333),p=i(n(56657));t.Registry=function(e){var{copyString:t}=e,n=r(e,["copyString"]);return o.default.createElement(c.TabContent,Object.assign({},n,{className:p.default.registry,bottom:o.default.createElement(d.Link,{external:!0,href:a.links.scopedRegistry,className:u.linkStyles},o.default.createElement(s.Icon,{of:"information-sign"}),o.default.createElement("span",null,"Learn more"))}),o.default.createElement(l.CopyBox,null,t))}},21344:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipCopybox=void 0;const o=i(n(72243)),s=n(32066),a=n(52993);t.TooltipCopybox=function(e){var{content:t}=e,n=r(e,["content"]);return o.default.createElement(a.Tooltip,Object.assign({},n,{content:t,placement:"bottom",maxWidth:"",breakline:!0}),o.default.createElement("div",null,o.default.createElement(s.CopyBox,null,t)))}},43116:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;var r=n(85987);Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return r.Menu}})},85987:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;const o=i(n(72243)),s=n(10818),a=n(32066),l=n(20359),c=n(64528),u=n(74492),d=i(n(56297));t.Menu=function(e){var{scopeName:t}=e,n=r(e,["scopeName"]);return o.default.createElement("div",Object.assign({},n),o.default.createElement("div",{className:d.default.top},o.default.createElement("div",{className:d.default.title},o.default.createElement(s.Icon,{of:"terminal"}),o.default.createElement(c.Ellipsis,null,`Bulk import from ${t}`))),o.default.createElement(l.ExpandableTabContent,{content:o.default.createElement("div",{className:d.default.importContent},o.default.createElement("div",null,"Use a glob-pattern to import multiple components"),o.default.createElement(a.CopyBox,null,`bit import "${t}/*"`)),drawerTitle:o.default.createElement("div",{className:d.default.drawerTitle},o.default.createElement(s.Icon,{of:"download"}),o.default.createElement("span",null,"Install Bit on your computer")),drawerContent:o.default.createElement(u.BitInfo,null)}))}},31999:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandableTabContent=void 0;const l=o(n(72243)),c=a(n(80852)),u=a(n(57196)),d=n(10818),p=n(20359),f=n(40881),h=a(n(40260));t.ExpandableTabContent=function(e){var{content:t,drawerContent:n,drawerTitle:r}=e,i=s(e,["content","drawerContent","drawerTitle"]);const[o,a]=(0,l.useState)(!1),m=o?h.default.open:"";return l.default.createElement(p.TabContent,Object.assign({},i,{bottom:r&&n&&l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:(0,c.default)(f.linkStyles,h.default.drawer),onClick:()=>a(!o)},l.default.createElement("div",null,r),l.default.createElement(d.Icon,{of:"down-rounded-corners",className:m})),l.default.createElement(u.default,{height:o?"auto":0},n))}),t)}},20359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandableTabContent=t.TabContent=void 0;var r=n(76709);Object.defineProperty(t,"TabContent",{enumerable:!0,get:function(){return r.TabContent}});var i=n(31999);Object.defineProperty(t,"ExpandableTabContent",{enumerable:!0,get:function(){return i.ExpandableTabContent}})},76709:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TabContent=void 0;const o=i(n(72243)),s=i(n(40260));t.TabContent=function(e){var{children:t,bottom:n}=e,i=r(e,["children","bottom"]);return o.default.createElement("div",Object.assign({},i),o.default.createElement("div",{className:s.default.middle},t),n&&o.default.createElement("div",{className:s.default.bottom},n))}},13529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;var r=n(20709);Object.defineProperty(t,"Tab",{enumerable:!0,get:function(){return r.Tab}})},20709:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;const o=i(n(72243)),s=i(n(80852)),a=i(n(36591));t.Tab=function(e){var{onClick:t,isActive:n,className:i,children:l}=e,c=r(e,["onClick","isActive","className","children"]);return o.default.createElement("div",Object.assign({},c,{className:(0,s.default)(a.default.tab,n&&a.default.active,i),onClick:t}),l)}},85415:(e,t,n)=>{"use strict";function r(){const e=n(14527);return r=function(){return e},e}function i(){const e=n(13731);return i=function(){return e},e}function o(){const e=n(47458);return o=function(){return e},e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.BundleUiTask=t.BUNDLE_UI_TASK_NAME=t.BUNDLE_UI_HASH_FILENAME=t.BUNDLE_UI_DIR=void 0;const a="BundleUI";t.BUNDLE_UI_TASK_NAME=a;const l="ui-bundle";t.BUNDLE_UI_DIR=l;const c=".hash";t.BUNDLE_UI_HASH_FILENAME=c;class u{constructor(e,t){this.ui=e,this.logger=t,s(this,"aspectId","teambit.ui-foundation/ui"),s(this,"name",a),s(this,"location","end")}async execute(e){const t=e.capsuleNetwork.seedersCapsules.find((e=>e.component.id.toStringWithoutVersion()===o().UIAspect.id));if(!t)return{componentsResults:[]};const n=(0,r().join)(t.path,u.getArtifactDirectory());this.logger.info(`Generating UI bundle at ${n}...`);try{await this.ui.build(void 0,n),await this.generateHash(n)}catch(i){throw this.logger.error("Generating UI bundle failed"),new Error("Generating UI bundle failed")}return{componentsResults:[],artifacts:u.getArtifactDef()}}async generateHash(e){const t=this.ui.getUi();if(!t)throw new Error("no uiRoot found");const[,n]=t,o=await this.ui.createBundleUiHash(n);(0,i().existsSync)(e)||(0,i().mkdirSync)(e),(0,i().writeFileSync)((0,r().join)(e,c),o)}static getArtifactDirectory(){return(0,r().join)("artifacts",l)}static getArtifactDef(){return[{name:l,globPatterns:["**"],rootDir:u.getArtifactDirectory()}]}}t.BundleUiTask=u},70852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83267);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},83267:(e,t,n)=>{"use strict";function r(){const e=n(91555);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.UiServerStartedEvent=void 0;class i{constructor(e,t,n){this.targetHost=e,this.targetPort=t,this.uiRoot=n}}class o extends r().BitBaseEvent{constructor(e,t,n,r){super(o.TYPE,"0.0.1",e,new i(t,n,r)),this.timestamp=e,this.targetHost=t,this.targetPort=n,this.uiRoot=r}}t.UiServerStartedEvent=o,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o,"TYPE","ui-server-started")},47458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={UIAspect:!0,UIRuntime:!0,UIRoot:!0,PostStartOptions:!0,ProxyEntry:!0,BUNDLE_UI_DIR:!0,BundleUiTask:!0,DataQueryResult:!0,useDataQuery:!0,useMutation:!0};function i(){const e=n(11869);return i=function(){return e},e}Object.defineProperty(t,"BUNDLE_UI_DIR",{enumerable:!0,get:function(){return a().BUNDLE_UI_DIR}}),Object.defineProperty(t,"BundleUiTask",{enumerable:!0,get:function(){return a().BundleUiTask}}),Object.defineProperty(t,"DataQueryResult",{enumerable:!0,get:function(){return l().DataQueryResult}}),Object.defineProperty(t,"PostStartOptions",{enumerable:!0,get:function(){return s().PostStartOptions}}),Object.defineProperty(t,"ProxyEntry",{enumerable:!0,get:function(){return s().ProxyEntry}}),Object.defineProperty(t,"UIAspect",{enumerable:!0,get:function(){return i().UIAspect}}),Object.defineProperty(t,"UIRoot",{enumerable:!0,get:function(){return s().UIRoot}}),Object.defineProperty(t,"UIRuntime",{enumerable:!0,get:function(){return i().UIRuntime}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i().UIAspect}}),Object.defineProperty(t,"useDataQuery",{enumerable:!0,get:function(){return l().useDataQuery}}),Object.defineProperty(t,"useMutation",{enumerable:!0,get:function(){return c().useMutation}});var o=n(70852);function s(){const e=n(78172);return s=function(){return e},e}function a(){const e=n(85415);return a=function(){return e},e}function l(){const e=n(41815);return l=function(){return e},e}function c(){const e=n(17642);return c=function(){return e},e}Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},78172:()=>{},11869:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UIRuntime=t.UIAspect=void 0;const i=new(r().RuntimeDefinition)("ui");t.UIRuntime=i;const o=r().Aspect.create({id:"teambit.ui-foundation/ui",declareRuntime:i});t.UIAspect=o;var s=o;t.default=s},55586:(e,t,n)=>{"use strict";var r=n(71933),i=n(3488),o=n(68584),s=n(6072),a=n(38296),l=n(80654),c=n(54393),u=n(71450),d=n(41305),p=n(55445),f=n(11869),h=n(47157),m=n(57154),g=n(95356),_=n(73797),b=n(88732),v=n(39489),y=n(75350),S=n(25319),E=n(46431),w=n(36578),C=n(31747),O=n(31364),T=n(70297),N=n(3682),I=n(53204),x=n(73445),k=n(68111),R=n(65647),P=n(73439),A=n(83732),L=n(19198);n(84507),n(94440),n(61009),n(92818),n(5168),n(21786),n(89114),n(98643),n(37481),n(23484),n(61229),n(83947),n(6055),n(83245),n(11038),n(99634),n(31209),n(57455),n(94818),n(75661),n(13218),n(31814),n(53299),n(4493),n(1135),n(50083),n(72241),n(79276),n(29942),n(58889),n(50453);const D="undefined"!==typeof window,M=D?window.harmonyAppConfig:void 0,j={...JSON.parse('{"teambit.workspace/workspace":{"name":"bit","icon":"https://static.bit.dev/bit-logo.svg","defaultScope":"teambit.bit","defaultDirectory":"components"},"teambit.dependencies/dependency-resolver":{"packageManager":"teambit.dependencies/pnpm","policy":{"dependencies":{"@babel/core":"7.19.6","@babel/preset-react":"7.22.15","@babel/preset-typescript":"7.22.15","@babel/types":"7.22.3","@graphql-modules/core":"0.7.17","@graphql-tools/schema":"^10.0.0","@jest/test-result":"26.6.2","@mdx-js/mdx":"1.6.21","@mdx-js/react":"1.6.22","@monaco-editor/react":"4.4.6","@pmmmwh/react-refresh-webpack-plugin":"0.5.4","@pnpm/client":"10.0.24","@pnpm/colorize-semver-diff":"1.0.1","@pnpm/config":"19.0.3","@pnpm/core":"12.1.1","@pnpm/default-reporter":"12.3.5","@pnpm/dependency-path":"2.1.3","@pnpm/error":"5.0.2","@pnpm/fetch":"7.0.3","@pnpm/lockfile-file":"8.1.2","@pnpm/logger":"5.0.0","@pnpm/modules-yaml":"12.1.2","@pnpm/network.agent":"0.1.0","@pnpm/network.ca-file":"1.0.2","@pnpm/package-store":"19.0.0","@pnpm/parse-overrides":"4.0.2","@pnpm/pick-registry-for-package":"5.0.2","@pnpm/plugin-commands-publishing":"7.3.12","@pnpm/plugin-commands-rebuild":"9.1.15","@pnpm/registry-mock":"3.4.0","@pnpm/semver-diff":"1.1.0","@pnpm/sort-packages":"5.0.4","@pnpm/store-connection-manager":"7.0.1","@pnpm/types":"9.2.0","@pnpm/worker":"0.3.0","@pnpm/workspace.pkgs-graph":"2.0.6","@prerenderer/prerenderer":"^1.2.0","@prerenderer/renderer-jsdom":"^1.1.2","@prerenderer/webpack-plugin":"^5.2.0","@react-hook/latest":"1.0.3","@stencil/core":"1.17.4","@stencil/webpack":"0.0.6","@teambit/any-fs":"0.0.5","@teambit/base-react.layout.row":"0.0.3","@teambit/base-react.navigation.link":"2.0.27","@teambit/base-ui.constants.storage":"1.0.0","@teambit/base-ui.graph.tree.collapsable-tree-node":"0.0.4","@teambit/base-ui.graph.tree.indent":"1.0.0","@teambit/base-ui.graph.tree.inflate-paths":"1.0.0","@teambit/base-ui.graph.tree.recursive-tree":"1.0.0","@teambit/base-ui.graph.tree.root-node":"1.0.0","@teambit/base-ui.graph.tree.tree-context":"1.0.0","@teambit/base-ui.layout.breakpoints":"1.0.0","@teambit/base-ui.layout.page-frame":"1.0.0","@teambit/base-ui.loaders.loader-ribbon":"1.0.0","@teambit/base-ui.loaders.skeleton":"1.0.1","@teambit/base-ui.styles.flex-center":"1.0.0","@teambit/base-ui.surfaces.background":"1.0.1","@teambit/base-ui.surfaces.card":"1.0.1","@teambit/base-ui.surfaces.split-pane.hover-splitter":"1.0.0","@teambit/base-ui.surfaces.split-pane.split-pane":"1.0.0","@teambit/base-ui.text.muted-text":"1.0.1","@teambit/base-ui.text.paragraph":"1.0.1","@teambit/base-ui.text.text-sizes":"1.0.0","@teambit/base-ui.text.themed-text":"1.0.1","@teambit/base-ui.theme.accent-color":"1.1.0","@teambit/base-ui.theme.colors":"1.0.0","@teambit/base-ui.theme.dark-theme":"1.0.2","@teambit/base-ui.theme.fonts.book":"1.0.2","@teambit/base-ui.theme.fonts.roboto":"1.0.0","@teambit/base-ui.theme.theme-provider":"1.0.1","@teambit/base-ui.utils.composer":"1.0.0","@teambit/base-ui.utils.string.affix":"1.0.0","@teambit/base-ui.utils.time-ago":"1.0.1","@teambit/bit.content.what-is-bit":"1.96.2","@teambit/bvm.config":"0.2.2","@teambit/capsule":"0.0.12","@teambit/code.ui.code-compare-section":"0.0.5","@teambit/code.ui.dependency-tree":"0.0.546","@teambit/code.ui.hooks.use-code-params":"0.0.496","@teambit/code.ui.object-formatter":"0.0.1","@teambit/code.ui.queries.get-component-code":"0.0.502","@teambit/code.ui.queries.get-file-content":"0.0.504","@teambit/code.ui.utils.get-file-icon":"0.0.495","@teambit/community.constants.links":"0.0.2","@teambit/community.starters.hello-world":"^0.0.16","@teambit/compilation.content.compiler-overview":"1.95.0","@teambit/component-id":"^0.0.427","@teambit/component.content.component-overview":"1.95.0","@teambit/component.content.dev-files":"1.95.9","@teambit/component.instructions.exporting-components":"0.0.7","@teambit/defender.content.formatter-overview":"1.96.1","@teambit/defender.content.linter-overview":"1.95.0","@teambit/defender.content.tester-overview":"1.95.0","@teambit/defender.eslint-linter":"1.0.1","@teambit/defender.prettier-formatter":"1.0.0","@teambit/design.elements.icon":"1.0.5","@teambit/design.inputs.dropdown":"1.2.16","@teambit/design.inputs.input-text":"1.0.21","@teambit/design.inputs.selectors.multi-select":"0.0.20","@teambit/design.inputs.toggle-button":"0.0.9","@teambit/design.inputs.toggle-switch":"0.0.6","@teambit/design.navigation.content-tabs":"0.0.5","@teambit/design.navigation.responsive-navbar":"0.0.5","@teambit/design.theme.icons-font":"2.0.26","@teambit/design.themes.dark-theme":"1.91.4","@teambit/design.themes.theme-toggler":"0.1.3","@teambit/design.ui.alert-card":"0.0.26","@teambit/design.ui.brand.logo":"1.96.2","@teambit/design.ui.cli-snippet":"0.0.359","@teambit/design.ui.contributors":"0.0.514","@teambit/design.ui.elements.level-icon":"0.0.20","@teambit/design.ui.empty-box":"0.0.363","@teambit/design.ui.error-page":"0.0.364","@teambit/design.ui.icon-button":"1.0.16","@teambit/design.ui.input.icon-text":"1.0.13","@teambit/design.ui.input.option-button":"1.0.0","@teambit/design.ui.input.radio":"1.1.13","@teambit/design.ui.input.toggle":"1.0.12","@teambit/design.ui.label":"0.0.357","@teambit/design.ui.pages.not-found":"0.0.366","@teambit/design.ui.pages.server-error":"0.0.366","@teambit/design.ui.pages.standalone-not-found-page":"0.0.369","@teambit/design.ui.pill-label":"0.0.356","@teambit/design.ui.round-loader":"0.0.355","@teambit/design.ui.separator":"0.0.354","@teambit/design.ui.skeletons.sidebar-loader":"0.0.4","@teambit/design.ui.styles.colors-by-letter":"0.0.41","@teambit/design.ui.styles.ellipsis":"0.0.357","@teambit/design.ui.styles.muted-italic":"0.0.44","@teambit/design.ui.surfaces.menu.link-item":"1.0.0","@teambit/design.ui.surfaces.message-card":"0.0.17","@teambit/design.ui.surfaces.status-message-card":"0.0.17","@teambit/design.ui.time-ago":"0.0.366","@teambit/design.ui.tooltip":"0.0.361","@teambit/design.ui.tree":"0.0.15","@teambit/docs.content.docs-overview":"1.95.9","@teambit/docs.entities.doc":"0.0.12","@teambit/docs.ui.hooks.use-element-on-fold":"1.96.5","@teambit/documenter.code.react-playground":"4.1.9","@teambit/documenter.content.documentation-links":"4.1.3","@teambit/documenter.markdown.hybrid-live-code-snippet":"0.1.12","@teambit/documenter.markdown.mdx":"0.1.13","@teambit/documenter.theme.theme-compositions":"4.1.1","@teambit/documenter.theme.theme-context":"4.0.3","@teambit/documenter.ui.code-snippet":"4.2.2","@teambit/documenter.ui.consumable-link":"4.0.11","@teambit/documenter.ui.copy-box":"4.1.16","@teambit/documenter.ui.heading":"4.1.1","@teambit/documenter.ui.highlighted-text":"4.1.1","@teambit/documenter.ui.label":"4.0.3","@teambit/documenter.ui.label-list":"4.0.3","@teambit/documenter.ui.linked-heading":"4.1.6","@teambit/documenter.ui.paragraph":"4.1.1","@teambit/documenter.ui.property-table":"4.1.10","@teambit/documenter.ui.section":"4.1.1","@teambit/documenter.ui.separator":"4.1.1","@teambit/documenter.ui.sub-title":"4.1.1","@teambit/documenter.ui.table-heading-row":"4.0.11","@teambit/documenter.ui.table-row":"4.1.13","@teambit/evangelist.elements.button":"1.0.6","@teambit/evangelist.elements.icon":"1.0.2","@teambit/evangelist.elements.x-button":"1.0.7","@teambit/evangelist.input.checkbox.label":"1.0.3","@teambit/evangelist.surfaces.dropdown":"1.0.2","@teambit/evangelist.surfaces.tooltip":"1.0.1","@teambit/explorer.ui.gallery.base-component-card":"0.0.503","@teambit/explorer.ui.gallery.component-grid":"0.0.496","@teambit/explorer.ui.search.search-input":"1.95.7","@teambit/graph.cleargraph":"0.0.1","@teambit/graphql.hooks.use-query-light":"1.0.0","@teambit/harmony":"0.4.6","@teambit/html.modules.inject-html-element":"0.0.4","@teambit/html.modules.render-template":"0.0.104","@teambit/lanes.ui.drawer":"0.0.37","@teambit/lanes.ui.lane-readme":"0.0.116","@teambit/lanes.ui.viewed-lane":"0.0.37","@teambit/mdx.ui.docs.link":"0.0.500","@teambit/pkg.content.packages-overview":"1.95.9","@teambit/react.content.react-overview":"1.95.0","@teambit/react.instructions.react-native.adding-tests":"0.0.1","@teambit/react.instructions.react.adding-compositions":"0.0.6","@teambit/react.instructions.react.adding-tests":"0.0.6","@teambit/react.rendering.ssr":"0.0.3","@teambit/react.ui.component-highlighter":"0.2.1","@teambit/scope.content.scope-overview":"1.95.0","@teambit/scope.ui.scope-icon":"0.0.91","@teambit/typescript.typescript-compiler":"2.0.1","@teambit/workspace.content.variants":"1.95.9","@teambit/workspace.content.workspace-overview":"1.95.0","@testing-library/jest-dom":"5.16.2","@testing-library/jest-native":"4.0.4","@testing-library/react":"12.1.5","@tippyjs/react":"4.2.0","@types/archiver":"5.3.1","@types/classnames":"2.2.11","@types/cors":"2.8.10","@types/dagre":"0.7.44","@types/didyoumean":"1.2.0","@types/eslint":"7.28.0","@types/express":"4.17.13","@types/find-root":"1.1.2","@types/http-proxy-agent":"2.0.2","@types/lodash":"4.14.165","@types/lodash.compact":"3.0.6","@types/lodash.flatten":"4.4.6","@types/lodash.head":"4.0.6","@types/lodash.orderby":"4.6.6","@types/lodash.pick":"4.4.6","@types/mdx-js__react":"1.5.5","@types/memoizee":"0.4.5","@types/mime":"2.0.3","@types/mini-css-extract-plugin":"2.2.0","@types/mousetrap":"1.6.5","@types/node":"14.14.13","@types/pluralize":"0.0.29","@types/react":"17.0.8","@types/react-dev-utils":"9.0.10","@types/react-dom":"17.0.5","@types/react-tabs":"2.3.2","@types/socket.io-client":"1.4.35","@types/testing-library__jest-dom":"5.9.5","@types/ua-parser-js":"0.7.35","@types/url-join":"4.0.0","@types/url-parse":"1.4.3","@types/webpack":"5.28.1","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/fslib":"2.10.3","@yarnpkg/parsers":"2.5.1","@yarnpkg/plugin-npm":"2.7.4","@yarnpkg/plugin-pack":"3.2.0","agentkeepalive":"4.1.4","ansi-to-html":"0.6.14","apollo-link-context":"1.0.20","apollo-link-http":"1.5.17","apollo-link-ws":"1.0.20","apollo-server":"2.19.2","apollo-utilities":"1.3.4","archiver":"5.3.1","aws-sdk":"2.756.0","babel-jest":"27.5.1","babel-plugin-named-asset-import":"0.3.7","babel-preset-jest":"27.5.1","body-parser":"1.19.0","buffer":"6.0.3","camelcase":"6.2.0","chai-subset":"1.6.0","classnames":"2.2.6","cli-highlight":"2.1.9","comlink":"4.3.0","command-exists":"1.2.9","compression-webpack-plugin":"9.2.0","copy-to-clipboard":"3.3.1","cors":"2.8.5","credentials-by-uri":"2.0.0","cross-env":"7.0.3","css-minimizer-webpack-plugin":"3.0.2","dagre":"0.8.5","didyoumean":"1.2.1","enquirer":"2.3.6","eslint-config-airbnb-typescript":"12.0.0","eslint-import-resolver-node":"0.3.4","eventemitter2":"6.4.4","expose-loader":"3.1.0","express":"4.17.1","express-graphql":"0.12.0","express-history-api-fallback":"2.2.1","filenamify":"4.2.0","find-root":"1.1.0","flatted":"3.1.0","fuse.js":"6.6.2","get-tsconfig":"4.2.0","graceful-fs":"4.2.10","graphql-subscriptions":"1.2.0","graphql-tag":"2.12.1","graphql-type-json":"0.3.2","history":"5.3.0","html-escaper":"3.0.0","html-webpack-plugin":"5.3.2","http-proxy":"1.18.1","http-proxy-agent":"4.0.1","https-proxy-agent":"5.0.0","humanize-duration":"3.23.1","humanize-string":"2.1.0","ini":"2.0.0","inject-body-webpack-plugin":"1.3.0","insert-string-after":"1.0.0","insert-string-before":"1.0.0","is-binary-path":"2.1.0","is-builtin-module":"3.1.0","is-primitive":"3.0.1","is-relative-path":"2.0.0","jest":"27.5.1","jest-message-util":"27.5.1","jest-watcher":"27.5.1","json-formatter-js":"2.3.4","jsx-to-string":"1.4.0","junit-report-builder":"3.0.1","less":"^4.1.1","loader-utils":"2.0.4","lodash":"4.17.20","lodash.compact":"3.0.1","lodash.head":"4.0.1","lodash.orderby":"4.6.0","lodash.pick":"4.4.0","map-obj":"4.2.1","memoizee":"0.4.15","memory-fs":"0.5.0","mime":"2.5.2","mini-css-extract-plugin":"2.2.2","minimatch":"3.0.4","mousetrap":"1.6.5","multimatch":"5.0.0","nanoid":"3.1.20","nerf-dart":"1.0.0","npm":"6.14.17","p-limit":"3.1.0","p-locate":"5.0.0","parse-package-name":"0.1.0","path-to-regexp":"6.2.0","penpal":"6.2.2","pino-pretty":"9.1.1","pluralize":"8.0.0","postcss":"8.4.18","postcss-flexbugs-fixes":"5.0.2","postcss-loader":"7.0.1","postcss-preset-env":"7.8.2","pretty-bytes":"5.6.0","process":"0.11.10","puppeteer":"13.7.0","query-string":"7.0.0","react-animate-height":"2.0.23","react-dev-utils":"11.0.4","react-error-boundary":"^3.0.0","react-error-overlay":"6.0.9","react-flow-renderer":"8.3.7","react-syntax-highlighter":"15.4.3","react-tabs":"3.2.0","react-test-renderer":"17.0.2","remark-admonitions":"1.2.1","remark-frontmatter":"2.0.0","reset-css":"5.0.1","resolve-from":"5.0.0","resolve-link-target":"^1.0.1","resolve-url-loader":"5.0.0","semver":"7.3.4","semver-intersect":"1.4.0","semver-range-intersect":"0.3.1","socket.io-client":"2.4.0","socks-proxy-agent":"5.0.0","ssri":"10.0.1","strip-ansi":"6.0.0","subscriptions-transport-ws":"0.9.18","symlink-dir":"^5.1.1","table":"6.7.3","tempy":"1.0.1","terser-webpack-plugin":"5.2.0","tippy.js":"6.2.7","ua-parser-js":"0.7.24","unist-util-remove":"2.0.1","unist-util-visit":"2.0.3","url-join":"4.0.1","url-parse":"1.4.7","version-selector-type":"3.0.0","vfile":"4.2.0","vscode-icons-js":"11.0.0","vscode-jsonrpc":"6.0.0","vscode-languageserver-types":"3.16.0","webpack":"5.84.1","webpack-assets-manifest":"5.1.0","webpack-dev-server":"4.15.0","webpack-manifest-plugin":"4.0.2","webpack-merge":"5.8.0","workbox-webpack-plugin":"6.2.4","ws":"7.4.2","yaml":"1.10.2","yesno":"0.4.0"},"peerDependencies":{"@apollo/client":"^3.6.0","@teambit/base-react.navigation.link":"2.0.27","@teambit/legacy":"1.0.569","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.1","@testing-library/react":"^12.1.5","core-js":"^3.10.0","graphql":"15.8.0","mz":"2.7.0","react":"17.0.2","react-dom":"17.0.2","react-router-dom":"^6.0.0"}},"linkCoreAspects":false,"overrides":{"@types/fs-capacitor":"2.0.0","signal-exit@4":"^4.0.2"},"nodeLinker":"hoisted","rootComponents":true,"nodeVersion":"18.17.1","engineStrict":true,"packageImportMethod":"copy","packageManagerArgs":[],"devFilePatterns":["**/*.spec.ts"],"strictPeerDependencies":true,"savePrefix":"","extraArgs":[],"peerDependencyRules":{"allowAny":[],"ignoreMissing":[]}},"teambit.preview/preview":{"bundlingStrategy":"component"},"teambit.generator/generator":{"aspects":["teambit.harmony/aspect"]},"teambit.component/issues":{"ignoreIssues":["CircularDependencies","DuplicateComponentAndPackage"]},"teambit.workspace/variants":{"*,!{*/**}":{"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}","private":false,"license":"Apache-2.0","engines":{"node":">=12.22.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"},"keywords":["bit","bit-aspect","components","collaboration","web","react","react-components","angular","angular-components"]}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{"@teambit/legacy":"1.0.569"}}},"teambit.envs/envs":{"env":"teambit.harmony/aspect"},"teambit.harmony/aspect":{}},"{*/**}":{"teambit.harmony/aspect":"-","teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{scope}.{name}","private":false,"license":"Apache-2.0","engines":{"node":">=12.22.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"},"keywords":["bit","components","collaboration","web","react","react-components","angular","angular-components"]}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{}}},"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.harmony/node":{}},"scopes/react/react, scopes/react/react-native, scopes/harmony/node, scopes/html/html, scopes/mdx/mdx, scopes/mdx/readme":{"teambit.harmony/aspect":"-","teambit.envs/env":{},"teambit.envs/envs":{"env":"teambit.envs/env"}},"{modules/**}":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.harmony/node":{}},"{cli/**}":{"teambit.react/react":"-","teambit.envs/envs":{"env":"teambit.harmony/node"}},"{babel/**}":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.harmony/node":{}},"{ui/**}":{"teambit.envs/envs":{"env":"teambit.react/react"},"teambit.react/react":{}},"scopes/toolbox":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.harmony/aspect":"-","defaultScope":"teambit.toolbox"},"scopes/web-components":{"defaultScope":"teambit.web-components"},"scopes/workspace":{"defaultScope":"teambit.workspace"},"scopes/git":{"defaultScope":"teambit.git"},"scopes/webpack":{"defaultScope":"teambit.webpack"},"scopes/scope":{"defaultScope":"teambit.scope"},"scopes/compositions":{"defaultScope":"teambit.compositions"},"scopes/docs":{"defaultScope":"teambit.docs"},"scopes/generator":{"defaultScope":"teambit.generator"},"scopes/lanes":{"defaultScope":"teambit.lanes"},"scopes/explorer":{"defaultScope":"teambit.explorer"},"scopes/envs":{"defaultScope":"teambit.envs"},"scopes/pkg":{"defaultScope":"teambit.pkg"},"scopes/dependencies":{"defaultScope":"teambit.dependencies"},"scopes/react":{"defaultScope":"teambit.react"},"scopes/preview":{"defaultScope":"teambit.preview"},"scopes/pipelines":{"defaultScope":"teambit.pipelines"},"scopes/harmony":{"defaultScope":"teambit.harmony"},"scopes/html":{"defaultScope":"teambit.html"},"scopes/compilation":{"defaultScope":"teambit.compilation"},"scopes/defender":{"defaultScope":"teambit.defender"},"scopes/component":{"defaultScope":"teambit.component"},"scopes/code":{"defaultScope":"teambit.code"},"scopes/component/component-id":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/component/component-version":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/component/legacy-bit-id":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/harmony/bit-error, scopes/defender/tests-results, scopes/typescript/ts-server, scopes/component/component-issues, scopes/component/component-package-version, scopes/react/eslint-config-bit-react, scopes/toolbox/tables/cli-table":{"teambit.harmony/aspect":"-","teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/component/legacy-component-log":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/ui-foundation":{"defaultScope":"teambit.ui-foundation","teambit.community/envs/community-react":"-"},"scopes/mdx":{"defaultScope":"teambit.mdx"},"scopes/community":{"defaultScope":"teambit.community"},"scopes/cloud":{"defaultScope":"teambit.cloud"},"scopes/base-react":{"defaultScope":"teambit.base-react","teambit.envs/envs":{"env":"teambit.react/react"}},"scopes/design":{"defaultScope":"teambit.design","teambit.envs/envs":{"env":"teambit.react/react"},"teambit.dependencies/dependency-resolver":{"policy":{"devDependencies":{"@teambit/legacy":"-"}}}},"scopes/react/react-elements":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"react":"-","react-dom":"-","css-loader":"6.2.0","postcss":"8.4.18","postcss-loader":"7.0.1","babel-loader":"9.1.2","@babel/preset-react":"7.22.15","@babel/preset-env":"7.22.15","resolve-url-loader":"5.0.0","sass-loader":"13.3.2","@svgr/webpack":"5.5.0","new-url-loader":"0.1.1","less":"^4.1.1","@mdx-js/react":"1.6.22","less-loader":"10.0.0","babel-preset-react-app":"^10.0.0","postcss-normalize":"10.0.0","postcss-preset-env":"7.8.2","postcss-flexbugs-fixes":"5.0.2"},"devDependencies":{"react":"-","react-dom":"-","@types/mocha":"9.1.0","@types/postcss-normalize":"9.0.1"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0","react-dom":"^16.8.0 || ^17.0.0","@teambit/legacy":"1.0.569"}}}},"scopes/mdx/modules/loader":{"teambit.dependencies/dependency-resolver":{"policy":{"devDependencies":{"@babel/preset-react":"7.22.15","@babel/preset-env":"7.22.15","babel-loader":"9.1.2"}}}},"scopes/typescript":{"defaultScope":"teambit.typescript"},"{aspect-docs/**}":{"teambit.envs/envs":{"env":"teambit.mdx/mdx"},"teambit.mdx/mdx":{}},"scopes/semantics":{"defaultScope":"teambit.semantics"},"scopes/api-reference":{"defaultScope":"teambit.api-reference"},"scopes/harmony/testing/load-aspect":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]}},"scopes/harmony/bit":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.pkg/pkg":{"packageJson":{"packageManagerPublishArgs":["--access public"],"license":"Apache-2.0","name":"@teambit/{name}","private":false,"bvm":{"node":"18.17.1"},"bin":{"bbit":"bin/bit"},"engines":{"node":">=12.22.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"},"keywords":["bit","bit-aspect","components","collaboration","web","react","react-components","angular","angular-components"]}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/base-react.navigation.link":"2.0.27","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.1","@apollo/client":"3.6.9","@teambit/legacy":"1.0.569","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/plugin-pack":"3.2.0","graphql":"15.8.0","browserslist":"4.16.3","reflect-metadata":"0.1.13","monaco-editor":"0.33.0","mz":"2.7.0","react-native-web":"0.14.13","react":"17.0.2","react-dom":"17.0.2","core-js":"3.13.0","postcss":"8.4.18","buffer":"6.0.3","process":"0.11.10","react-router-dom":"6.3.0"},"devDependencies":{},"peerDependencies":{"@teambit/base-react.navigation.link":"-","@teambit/legacy":"-","@teambit/ui-foundation.ui.navigation.react-router-adapter":"-","browserslist":"-","graphql":"-","react":"-","react-dom":"-","react-native-web":"-","react-router-dom":"-","core-js":"-"}}}},"scopes/defender/jest":{"teambit.dependencies/dependency-resolver":{"policy":{"peerDependencies":{"jest":"27.5.1"}}}},"scopes/webpack/webpack":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"assert":"2.0.0","browserify-zlib":"0.2.0","buffer":"6.0.3","constants-browserify":"1.0.0","crypto-browserify":"3.12.0","domain-browser":"4.19.0","https-browserify":"1.0.0","os-browserify":"0.3.0","path-browserify":"1.0.1","process":"0.11.10","punycode":"2.1.1","querystring-es3":"0.2.1","stream-browserify":"3.0.0","stream-http":"3.2.0","string_decoder":"1.3.0","timers-browserify":"2.0.12","tty-browserify":"0.0.1","url":"0.11.2","util":"0.12.3","vm-browserify":"1.1.2"},"devDependencies":{"@types/webpack-dev-server":"-"}}}},"scopes/harmony/node":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"jest-environment-node":"27.5.1"}}}},"scopes/mdx/mdx":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@babel/helper-plugin-test-runner":"7.16.7"}}}},"scopes/harmony/aspect":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@babel/plugin-transform-class-properties":"7.22.5","@babel/plugin-proposal-decorators":"7.12.13","@babel/plugin-transform-object-rest-spread":"7.22.15","@babel/plugin-transform-modules-commonjs":"7.12.13","@babel/plugin-transform-runtime":"7.12.17","@babel/preset-env":"7.22.15","babel-plugin-transform-typescript-metadata":"0.3.1","@babel/preset-react":"7.22.15","@babel/preset-typescript":"7.22.15","jest-environment-node":"27.5.1"}}}},"scopes/harmony/graphql":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-","bufferutil":"4.0.3","utf-8-validate":"5.0.5"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{"@teambit/legacy":"1.0.569"}}}},"scopes/webpack/plugins/inject-head-webpack-plugin":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"html-webpack-plugin":"-"},"peerDependencies":{"html-webpack-plugin":"^5.3.1"}}}},"components/ui/component-compare/version-picker":{"teambit.harmony/node":"-","teambit.react/react":"-"},"scopes/component/ui/version-dropdown":{"teambit.harmony/node":"-","teambit.react/react":"-"}},"teambit.harmony/bit":"teambit.workspace/workspace"}'),...M};i.default.id="teambit.workspace/workspace",o.default.id="teambit.component/component",s.default.id="teambit.mdx/mdx",a.default.id="teambit.component/component-sizer",l.default.id="teambit.docs/docs",c.default.id="teambit.dependencies/yarn",u.default.id="teambit.compositions/compositions",d.default.id="teambit.harmony/graphql",p.default.id="teambit.dependencies/pnpm",f.default.id="teambit.ui-foundation/ui",h.default.id="teambit.component/graph",m.default.id="teambit.harmony/pubsub",g.default.id="teambit.pkg/pkg",_.default.id="teambit.react/react",b.default.id="teambit.react/react-native",v.default.id="teambit.scope/scope",y.default.id="teambit.defender/tester",S.default.id="teambit.component/deprecation",E.default.id="teambit.harmony/aspect",w.default.id="teambit.ui-foundation/react-router",C.default.id="teambit.harmony/node",O.default.id="teambit.ui-foundation/notifications",T.default.id="teambit.component/changelog",N.default.id="teambit.component/code",I.default.id="teambit.explorer/command-bar",x.default.id="teambit.ui-foundation/sidebar",k.default.id="teambit.component/component-tree",R.default.id="teambit.ui-foundation/user-agent",P.default.id="teambit.lanes/lanes",A.default.id="teambit.component/component-compare",L.default.id="teambit.api-reference/api-reference",D&&function(...e){r.Harmony.load([i.default,o.default,s.default,a.default,l.default,c.default,u.default,d.default,p.default,f.default,h.default,m.default,g.default,_.default,b.default,v.default,y.default,S.default,E.default,w.default,C.default,O.default,T.default,N.default,I.default,x.default,k.default,R.default,P.default,A.default,L.default],"ui",j).then((t=>t.run().then((()=>t.get("teambit.ui-foundation/ui"))).then((e=>{const t=!D&&e.setupSsr,n=e.setup,r=(t||n||function(){}).bind(e);return Promise.resolve(r()).then((()=>e))})).then((t=>D?t.render("teambit.workspace/workspace",...e):t.renderSsr("teambit.workspace/workspace",...e))).catch((e=>{throw e}))))}()},23484:(e,t,n)=>{"use strict";function r(){const e=n(99850);return r=function(){return e},e}function i(){const e=n(71933);return i=function(){return e},e}function o(){const e=n(37785);return o=function(){return e},e}function s(){const e=n(4405);return s=function(){return e},e}function a(){const e=n(49432);return a=function(){return e},e}function l(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return l=function(){return e},e}function c(){const e=n(11869);return c=function(){return e},e}function u(){const e=n(57489);return u=function(){return e},e}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class h{constructor(e,t,n,r){this.router=e,this.uiRootSlot=t,this.hudSlot=n,this.renderPluginsSlot=r,f(this,"registerHudItem",(e=>{this.hudSlot.register(e)}))}async render(e){const t=this.getRoot(e);if(!t)throw new Error(`root: ${e} was not found`);const n=t(),r=this.router.renderRoutes(n.routes),i=this.hudSlot.values(),o=this.getLifecyclePlugins(),a=new(s().BrowserRenderer)(o);await a.render(l().default.createElement(u().ClientContext,null,i,r))}async renderSsr(e,t){const n=this.getRoot(e);if(!n)throw new Error(`root: ${e} was not found`);const r=n(),i=this.router.renderRoutes(r.routes),o=this.hudSlot.values(),c=this.getLifecyclePlugins(),d=new(s().ServerRenderer)(c);return await d.render(l().default.createElement(u().ClientContext,null,l().default.createElement(a().SSRBrowserProvider,{value:t.browser},o,i)),t)}registerContext(e){this.renderPluginsSlot.register({reactContext:e})}registerRoot(e){return this.uiRootSlot.register(e)}registerRenderHooks(e){return this.renderPluginsSlot.register(e)}getLifecyclePlugins(){const e=this.renderPluginsSlot.toArray().map((([e,t])=>t.key?t:p(p({},t),{},{key:e})));return e.unshift(this.router.renderPlugin),e}getRoot(e){return this.uiRootSlot.get(e)}static async provider([e,t],n,[r,i,o]){const s=new h(t,r,i,o);return e&&s.registerRenderHooks(e.renderPlugins),s}}f(h,"slots",[i().Slot.withType(),i().Slot.withType(),i().Slot.withType()]),f(h,"dependencies",[r().GraphqlAspect,o().ReactRouterAspect]),f(h,"runtime",c().UIRuntime),c().UIAspect.addRuntime(h)},57489:(e,t,n)=>{"use strict";function r(){const e=d(n(72243));return r=function(){return e},e}function i(){const e=n(40474);return i=function(){return e},e}function o(){const e=n(13193);return o=function(){return e},e}function s(){const e=n(99481);return s=function(){return e},e}function a(){const e=n(80068);return a=function(){return e},e}function l(){const e=n(52993);return l=function(){return e},e}function c(){const e=n(31093);return c=function(){return e},e}function u(){const e=d(n(19587));return u=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ClientContext=function({children:e}){const[t,n]=(0,c().useLoaderApi)();return r().default.createElement(r().default.StrictMode,null,r().default.createElement(c().LoaderContext.Provider,{value:t},r().default.createElement(o().IconFont,{query:"q76y7n"}),r().default.createElement(i().ThemeSwitcher,null,r().default.createElement(a().Roboto,null),r().default.createElement(s().LoaderRibbon,{active:n,className:u().default.loader}),e,r().default.createElement(l().TooltipMountPoint,null))))}},65647:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UserAgentAspect=void 0;const i=r().Aspect.create({id:"teambit.ui-foundation/user-agent"});t.UserAgentAspect=i;var o=i;t.default=o},79276:(e,t,n)=>{"use strict";function r(){const e=n(47458);return r=function(){return e},e}function i(){const e=l(n(72243));return i=function(){return e},e}function o(){const e=l(n(39937));return o=function(){return e},e}function s(){const e=n(49432);return s=function(){return e},e}function a(){const e=n(65647);return a=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{static async provider([e]){const t=new u;return e.registerRenderHooks({serverInit:({browser:e})=>({userAgent:new(o().default)(e.headers["user-agent"])}),browserInit:()=>({userAgent:new(o().default)(window.navigator.userAgent)}),reactContext:d}),t}}function d({children:e,renderCtx:t}){return i().default.createElement(s().UserAgentProvider,{value:null===t||void 0===t?void 0:t.userAgent},e)}c(u,"slots",[]),c(u,"dependencies",[r().UIAspect]),c(u,"runtime",r().UIRuntime),a().UserAgentAspect.addRuntime(u)},57668:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyWorkspace=void 0;const i=r(n(72243)),o=n(93089),s=r(n(28444));t.EmptyWorkspace=function({name:e}){return i.default.createElement(o.EmptyComponentGallery,{name:e,title:"Add components to"},i.default.createElement("div",{className:s.default.text},"Start by adding new components to this workspace."))}},95425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyWorkspace=void 0;var r=n(57668);Object.defineProperty(t,"EmptyWorkspace",{enumerable:!0,get:function(){return r.EmptyWorkspace}})},54726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadPreview=void 0;var r=n(87542);Object.defineProperty(t,"LoadPreview",{enumerable:!0,get:function(){return r.LoadPreview}})},87542:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadPreview=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(10818),l=i(n(29543));t.LoadPreview=function(e){var{onClick:t,className:n}=e,i=r(e,["onClick","className"]);return o.default.createElement("div",Object.assign({className:(0,s.default)(l.default.loadPreview,n),onClick:t},i),o.default.createElement(a.Icon,{of:"fat-arrow-down",className:l.default.icon}),o.default.createElement("span",null,"Live preview"))}},26688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceComponentCard=void 0;var r=n(68905);Object.defineProperty(t,"WorkspaceComponentCard",{enumerable:!0,get:function(){return r.WorkspaceComponentCard}})},68905:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceComponentCard=void 0;const l=o(n(72243)),c=n(63991),u=n(17455),d=n(54726),p=a(n(43553));t.WorkspaceComponentCard=function(e){var t,{component:n,componentUrl:r}=e,i=s(e,["component","componentUrl"]);const[o,a]=(0,l.useState)(!1),f=!o&&n.compositions.length>0,h="new"===n.version?void 0:n.version;return l.default.createElement("div",Object.assign({},i,{className:p.default.wrapper}),l.default.createElement(c.ComponentCard,{id:n.id.fullName,href:r,envIcon:null===(t=n.environment)||void 0===t?void 0:t.icon,description:n.description,version:h,preview:l.default.createElement(u.PreviewPlaceholder,{component:n,shouldShowPreview:o})}),f&&l.default.createElement(d.LoadPreview,{onClick:()=>{o||a(!0)}}))}},33710:(e,t,n)=>{"use strict";function r(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(){const e=n(87982);return i=function(){return e},e}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentTreeWidget=void 0;t.ComponentTreeWidget=class{constructor(){o(this,"widget",(({component:e})=>r().default.createElement(i().ComponentStatusResolver,{status:e.status,issuesCount:e.issuesCount})))}}},14170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17693);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(55733);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=n(9157);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},55733:(e,t,n)=>{"use strict";function r(){const e=n(91555);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.OnComponentAddEvent=void 0;class i{constructor(e,t){this.idStr=e,this.hook=t}}class o extends r().BitBaseEvent{constructor(e,t,n){super(o.TYPE,"0.0.1",e,new i(t,n)),this.timestamp=e,this.idStr=t,this.hook=n}}t.OnComponentAddEvent=o,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o,"TYPE","on-component-add")},17693:(e,t,n)=>{"use strict";function r(){const e=n(91555);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.OnComponentChangeEvent=void 0;class i{constructor(e,t){this.idStr=e,this.hook=t}}class o extends r().BitBaseEvent{constructor(e,t,n){super(o.TYPE,"0.0.1",e,new i(t,n)),this.timestamp=e,this.idStr=t,this.hook=n}}t.OnComponentChangeEvent=o,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o,"TYPE","on-component-change")},9157:(e,t,n)=>{"use strict";function r(){const e=n(91555);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.OnComponentRemovedEvent=void 0;class i{constructor(e){this.idStr=e}}class o extends r().BitBaseEvent{constructor(e,t){super(o.TYPE,"0.0.1",e,new i(t)),this.timestamp=e,this.idStr=t}}t.OnComponentRemovedEvent=o,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o,"TYPE","on-component-removed")},93806:(e,t,n)=>{"use strict";function r(){const e=n(91576);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.OutsideWorkspaceError=void 0;class i extends r().BitError{constructor(){super("This command can only be run inside a bit workspace. Please check that you are inside a bit workspace and then re-run (to initialize a new workspace please use bit init)")}}t.OutsideWorkspaceError=i},6585:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={WorkspaceAspect:!0,ComponentStatus:!0,WorkspaceModelComponent:!0,WorkspaceModel:!0,WorkspaceContext:!0,OutsideWorkspaceError:!0};function i(){const e=n(3488);return i=function(){return e},e}Object.defineProperty(t,"ComponentStatus",{enumerable:!0,get:function(){return s().ComponentStatus}}),Object.defineProperty(t,"OutsideWorkspaceError",{enumerable:!0,get:function(){return c().OutsideWorkspaceError}}),Object.defineProperty(t,"WorkspaceAspect",{enumerable:!0,get:function(){return i().WorkspaceAspect}}),Object.defineProperty(t,"WorkspaceContext",{enumerable:!0,get:function(){return l().WorkspaceContext}}),Object.defineProperty(t,"WorkspaceModel",{enumerable:!0,get:function(){return a().Workspace}}),Object.defineProperty(t,"WorkspaceModelComponent",{enumerable:!0,get:function(){return a().WorkspaceModelComponent}}),t.default=void 0;var o=n(14170);function s(){const e=n(8386);return s=function(){return e},e}function a(){const e=n(29884);return a=function(){return e},e}function l(){const e=n(93163);return l=function(){return e},e}function c(){const e=n(93806);return c=function(){return e},e}Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var u=i().WorkspaceAspect;t.default=u},94849:(e,t,n)=>{"use strict";function r(){const e=n(33740);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Workspace",{enumerable:!0,get:function(){return r().Workspace}})},33740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28184);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},64951:(e,t,n)=>{"use strict";function r(){const e=n(72243);return r=function(){return e},e}function i(){const e=n(21475);return i=function(){return e},e}function o(){const e=(t=n(24115))&&t.__esModule?t:{default:t};var t;return o=function(){return e},e}function s(){const e=n(41815);return s=function(){return e},e}function a(){const e=n(17642);return a=function(){return e},e}function l(){const e=n(39810);return l=function(){return e},e}function c(){const e=n(29884);return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.useWorkspace=function(e={}){const t=(0,s().useDataQuery)(m),{data:n,subscribeToMore:a}=t,d=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,u),f=(0,o().default)(e);(0,r().useEffect)((()=>{const e=a({document:g,updateQuery:(e,{subscriptionData:t})=>{var n;const r=t.data,o=null===r||void 0===r||null===(n=r.componentAdded)||void 0===n?void 0:n.component;if(!o)return e;return e.workspace.components.find((e=>l().ComponentID.isEqualObj(e.id,o.id,{ignoreVersion:!0})))?e:(setTimeout((()=>{var e,t;return null===(e=(t=f.current).onComponentAdded)||void 0===e?void 0:e.call(t,[i().ComponentModel.from(o)])})),p(p({},e),{},{workspace:p(p({},e.workspace),{},{components:[...e.workspace.components,o]})}))}}),t=a({document:_,updateQuery:(e,{subscriptionData:t})=>{const n=t.data;if(!n)return e;const r=n.componentChanged.component;return setTimeout((()=>{var e,t;return null===(e=(t=f.current).onComponentUpdated)||void 0===e?void 0:e.call(t,[i().ComponentModel.from(r)])})),p(p({},e),{},{workspace:p(p({},e.workspace),{},{components:e.workspace.components.map((e=>e.id.name===r.id.name?r:e))})})}}),n=a({document:b,updateQuery:(e,{subscriptionData:t})=>{var n;const r=null===(n=t.data)||void 0===n||null===(n=n.componentRemoved)||void 0===n?void 0:n.componentIds;return r&&0!==r.length?(setTimeout((()=>{var e,t;return null===(e=(t=f.current).onComponentRemoved)||void 0===e?void 0:e.call(t,r.map((e=>l().ComponentID.fromObject(e))))})),p(p({},e),{},{workspace:p(p({},e.workspace),{},{components:e.workspace.components.filter((e=>r.every((t=>!l().ComponentID.isEqualObj(t,e.id)))))})})):e}});return()=>{e(),t(),n()}}),[f]);return p({workspace:(0,r().useMemo)((()=>null!==n&&void 0!==n&&n.workspace?c().Workspace.from(null===n||void 0===n?void 0:n.workspace):void 0),[null===n||void 0===n?void 0:n.workspace]),subscribeToMore:a},d)};const u=["data","subscribeToMore"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=a().gql`
702
+ `;t.useScopeQuery=function(e){const{data:t,loading:n}=(0,r.useDataQuery)(s,{skip:e});return!t||n?{loading:n}:{scope:o.ScopeModel.from(t),loading:n}}},25520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeDetails=void 0;var r=n(26673);Object.defineProperty(t,"ScopeDetails",{enumerable:!0,get:function(){return r.ScopeDetails}})},26673:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeDetails=void 0;const l=n(92926),c=n(82190),u=n(41263),d=n(5125),p=a(n(80852)),f=o(n(72243)),h=a(n(7700));t.ScopeDetails=function(e){var{scopeName:t,icon:n,backgroundIconColor:r,badgeSlot:i,overviewSlot:o,description:a,componentCount:m,className:g}=e,_=s(e,["scopeName","icon","backgroundIconColor","badgeSlot","overviewSlot","description","componentCount","className"]);const b=(0,f.useMemo)((()=>(0,c.flatten)(o.values())),[o]);return f.default.createElement("div",Object.assign({},_,{className:(0,p.default)(h.default.scopeTitle,g)}),f.default.createElement("div",{className:h.default.titleRow},f.default.createElement(d.ScopeTitle,{scopeName:t,icon:n,backgroundIconColor:r})),f.default.createElement(l.Subtitle,null,a),f.default.createElement(u.ScopeLabels,{badgeSlot:i,componentCount:m}),b.length>0&&b.map(((e,t)=>f.default.createElement(e,{key:t}))))}},94342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIcon=void 0;var r=n(68138);Object.defineProperty(t,"ScopeIcon",{enumerable:!0,get:function(){return r.ScopeIcon}})},68138:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIcon=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(78466),l=n(34160),c=n(79057),u=i(n(2805));t.ScopeIcon=function(e){var t,{displayName:n,scopeImage:i,bgColor:d,size:p=48,imgClassName:f,className:h}=e,m=r(e,["displayName","scopeImage","bgColor","size","imgClassName","className"]);const g=i&&(0,c.addAvatarQueryParams)(i,p,""),_=null===i||void 0===i?void 0:i.includes("scope-icons-selector/");return o.default.createElement("div",Object.assign({className:(0,s.default)(u.default.scopeIcon,i&&u.default.iconBackground,_&&u.default.isIcon,h),style:{backgroundColor:d,fontSize:p}},m),g?o.default.createElement("img",{src:g,className:(0,s.default)(u.default.scopeImg,f)}):o.default.createElement("span",{className:(0,s.default)(u.default.letter,a.textSize.xs)},n?null===(t=(0,l.getInitials)(n))||void 0===t?void 0:t.toUpperCase():"?"))}},1855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=void 0,t.getInitials=function(e){if(!e)return;const t=e.split(" ");return t.length>1?t.slice(0,2).map((e=>e[0])).join(""):e.slice(0,2)}},34160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=void 0;var r=n(1855);Object.defineProperty(t,"getInitials",{enumerable:!0,get:function(){return r.getInitials}})},76082:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAvatarQueryParams=void 0,t.addAvatarQueryParams=function(e,t,n){if(!e)return e;const r="string"===typeof t?parseInt(t):t,i=e.indexOf("?")>-1;return`${e}${i?"&":"?"}${[].concat([`size=${t}`],["w="+2*r,"h="+2*r,"crop=faces","fit=crop",`bg=${n}`]).join("&")}`}},79057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAvatarQueryParams=void 0;var r=n(76082);Object.defineProperty(t,"addAvatarQueryParams",{enumerable:!0,get:function(){return r.addAvatarQueryParams}})},41263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeLabels=void 0;var r=n(73069);Object.defineProperty(t,"ScopeLabels",{enumerable:!0,get:function(){return r.ScopeLabels}})},73069:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeLabels=void 0;const i=n(82190),o=r(n(80852)),s=r(n(72243)),a=n(67541),l=r(n(71331));t.ScopeLabels=function({badgeSlot:e,componentCount:t,className:n}){const r=(0,i.flatten)(e.values());return s.default.createElement("div",{className:(0,o.default)(l.default.pillsContainer,n)},r.map(((e,t)=>{const n=e;return s.default.createElement(n,{key:t})})),s.default.createElement(a.ComponentCount,{count:t}))}},5125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeTitle=void 0;var r=n(70222);Object.defineProperty(t,"ScopeTitle",{enumerable:!0,get:function(){return r.ScopeTitle}})},70222:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeTitle=void 0;const i=r(n(72243)),o=r(n(80852)),s=n(71828),a=n(17069),l=n(94342),c=r(n(41971));t.ScopeTitle=function({scopeName:e,icon:t,backgroundIconColor:n="#babec9",className:r,iconClassName:u}){return i.default.createElement(a.H1,{className:c.default.title,size:"sm"},i.default.createElement(l.ScopeIcon,{size:32,displayName:e.split(".")[1]||e,scopeImage:t,bgColor:n,className:u}),i.default.createElement("span",{className:(0,o.default)(s.mutedText,c.default.orgName,r)},e.replace(".","/")))}},5722:(e,t,n)=>{"use strict";function r(){const e=n(91576);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentNotFound=void 0;class i extends r().BitError{constructor(e){super(`component with id: ${e} was not found`)}}t.ComponentNotFound=i},42820:(e,t,n)=>{"use strict";function r(){const e=n(5722);return r=function(){return e},e}function i(){const e=n(28977);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ComponentNotFound",{enumerable:!0,get:function(){return r().ComponentNotFound}}),Object.defineProperty(t,"NoIdMatchPattern",{enumerable:!0,get:function(){return i().NoIdMatchPattern}})},28977:(e,t,n)=>{"use strict";function r(){const e=n(91576);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.NoIdMatchPattern=void 0;class i extends r().BitError{constructor(e){super(`unable to find any matching for "${e}" pattern`)}}t.NoIdMatchPattern=i},46162:(e,t,n)=>{"use strict";function r(){const e=n(39489);return r=function(){return e},e}function i(){const e=n(42820);return i=function(){return e},e}function o(){const e=n(24853);return o=function(){return e},e}function s(){const e=n(87431);return s=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ComponentNotFound",{enumerable:!0,get:function(){return i().ComponentNotFound}}),Object.defineProperty(t,"NoIdMatchPattern",{enumerable:!0,get:function(){return i().NoIdMatchPattern}}),Object.defineProperty(t,"ScopeAspect",{enumerable:!0,get:function(){return r().ScopeAspect}}),Object.defineProperty(t,"ScopeComponentCard",{enumerable:!0,get:function(){return o().ScopeComponentCard}}),Object.defineProperty(t,"ScopeContext",{enumerable:!0,get:function(){return s().ScopeContext}}),t.default=void 0;var a=r().ScopeAspect;t.default=a},39489:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ScopeAspect=void 0;const i=r().Aspect.create({id:"teambit.scope/scope"});t.ScopeAspect=i;var o=i;t.default=o},98881:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return r=function(){return e},e}function i(){const e=n(60599);return i=function(){return e},e}function o(){const e=n(31172);return o=function(){return e},e}function s(){const e=n(70976);return s=function(){return e},e}function a(){const e=n(5986);return a=function(){return e},e}function l(){const e=n(87431);return l=function(){return e},e}function c(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.scopeDrawer=void 0;t.scopeDrawer=({treeWidgets:e,filtersSlot:t,drawerWidgetSlot:n,assumeScopeInUrl:c=!1,overrideUseComponents:d,overrideUseLanes:p})=>{const f=p||s().useLanes;return new(i().ComponentsDrawer)({assumeScopeInUrl:c,order:0,id:"scope-components-drawer",name:"COMPONENTS",plugins:{tree:{widgets:e,customRenderer:(e,t)=>function n(i){const s=i.node.children;if(!s)return r().default.createElement(o().ComponentView,u({},i,{treeNodeSlot:e,useLanes:f}));if(i.node.payload instanceof o().ScopePayload){return i.node.id.slice(0,-1)!==(null===t||void 0===t?void 0:t.name)?r().default.createElement(o().ScopeTreeNode,i):r().default.createElement(r().default.Fragment,null,s.map((e=>r().default.createElement(n,u({key:e.id},i,{node:e})))))}return r().default.createElement(o().NamespaceTreeNode,i)}},filters:t,drawerWidgets:n},useHost:()=>(0,l().useScope)(),useLanes:f,emptyMessage:"Scope is empty",transformTree:e=>t=>{var n;const r=null===(n=t.children)||void 0===n?void 0:n.findIndex((t=>{if(!(t.payload instanceof o().ScopePayload))return;return t.id.slice(0,-1)===(null===e||void 0===e?void 0:e.name)})),i=t.children&&void 0!==r?t.children[r]:void 0;if(i&&i.children&&t.children){delete t.children[r];const e=t.children.concat(i.children);t.children=e}return t},useComponents:d||(()=>{var e;const{lanesModel:t,loading:n}=f(),i=null===t||void 0===t||null===(e=t.viewedLane)||void 0===e?void 0:e.id,{components:o=[],loading:s}=(0,a().useLaneComponents)(null!==i&&void 0!==i&&i.isDefault()?void 0:i),{components:c}=(0,r().useContext)(l().ScopeContext),u=function(e,t){const n=e.filter((e=>!t.find((t=>t.id.toStringWithoutVersion()===e.id.toStringWithoutVersion()))));return t.concat(n)}(c,o);return{loading:n||s,components:u}})})}},99634:(e,t,n)=>{"use strict";function r(){const e=n(82190);return r=function(){return e},e}function i(){const e=n(21475);return i=function(){return e},e}function o(){const e=n(71933);return o=function(){return e},e}function s(){const e=n(72398);return s=function(){return e},e}function a(){const e=n(47458);return a=function(){return e},e}function l(){const e=y(n(72243));return l=function(){return e},e}function c(){const e=n(23133);return c=function(){return e},e}function u(){const e=y(n(97498));return u=function(){return e},e}function d(){const e=n(60599);return d=function(){return e},e}function p(){const e=n(59630);return p=function(){return e},e}function f(){const e=n(96366);return f=function(){return e},e}function h(){const e=n(45887);return h=function(){return e},e}function m(){const e=n(12519);return m=function(){return e},e}function g(){const e=n(81299);return g=function(){return e},e}function _(){const e=n(39489);return _=function(){return e},e}function b(){const e=n(49624);return b=function(){return e},e}function v(){const e=n(98881);return v=function(){return e},e}function y(e){return e&&e.__esModule?e:{default:e}}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class E{constructor(e,t,n,r,i,o,s,a,l,c,u,d,p,f,h){this.routeSlot=e,this.componentUi=t,this.menuSlot=n,this.sidebar=r,this.sidebarSlot=i,this.commandBarUI=o,this.scopeBadgeSlot=s,this.menuWidgetSlot=a,this.sidebarItemSlot=l,this.menuItemSlot=c,this.cornerSlot=u,this.overviewSlot=d,this.contextSlot=p,this.drawerWidgetSlot=f,this.drawerComponentsFiltersSlot=h,S(this,"setSidebarToggle",(()=>{})),S(this,"registerMenuRoutes",(e=>(this.menuSlot.register(e),this))),S(this,"componentUrlFunc",void 0),S(this,"registerMenuItem",(e=>{this.menuItemSlot.register(e)})),S(this,"registerSidebarWidget",(e=>(e.map((e=>this.sidebarSlot.register(e))),this))),S(this,"registerSidebarLink",((...e)=>{this.sidebarItemSlot.register(e)})),S(this,"registerDrawers",((...e)=>(this.sidebar.registerDrawer(...e),this))),S(this,"registerDrawerComponentFilters",(e=>{this.drawerComponentsFiltersSlot.register(e)})),S(this,"registerDrawerWidgets",(e=>{this.drawerWidgetSlot.register(e)})),S(this,"setComponents",(e=>{this.componentUi.updateComponents(e)})),S(this,"menuItems",[{category:"general",title:"Open command bar",keyChar:"mod+k",handler:()=>{var e;return null===(e=this.commandBarUI)||void 0===e?void 0:e.run("command-bar.open")}},{category:"general",title:"Toggle component list",keyChar:"alt+s",handler:()=>{var e;return null===(e=this.commandBarUI)||void 0===e?void 0:e.run("sidebar.toggle")}}])}registerBadge(...e){return this.scopeBadgeSlot.register(e),this}getScope(e){return l().default.createElement(b().Scope,{TargetScopeOverview:e.TargetScopeOverview,scopeClassName:e.scopeClassName,TargetCorner:e.Corner,routeSlot:this.routeSlot,menuSlot:this.menuSlot,sidebar:l().default.createElement(this.sidebar.render,{items:this.listSidebarLinks(),overrideDrawerSlot:e.overrideDrawers}),scopeUi:this,userUseScopeQuery:e.useScope,badgeSlot:this.scopeBadgeSlot,overviewLineSlot:this.overviewSlot,context:this.getContext(e.getComponentUrl),onSidebarTogglerChange:e.onSidebarToggle||this.setSidebarToggle,cornerSlot:this.cornerSlot,paneClassName:e.paneClassName,PaneWrapper:e.PaneWrapper})}registerOverviewLine(...e){return this.overviewSlot.register(e),this}registerRoutes(e){return this.routeSlot.register(e),this}applyMenuRoutes(){this.registerMenuRoutes([{path:this.componentUi.routePath,element:this.componentUi.getMenu(_().ScopeAspect.id)},{path:"/",element:this.getScopeMenu()}])}getScopeMenu(){return l().default.createElement(g().ScopeMenu,{widgetSlot:this.menuWidgetSlot,menuItemSlot:this.menuItemSlot})}registerExplicitRoutes(){this.applyMenuRoutes(),this.registerRoutes([{path:this.componentUi.routePath,element:this.componentUi.getComponentUI(_().ScopeAspect.id)}])}registerMenuWidget(...e){this.menuWidgetSlot.register(e)}registerCorner(e){this.cornerSlot.register(e)}registerComponentUrl(e){this.componentUrlFunc=e}replaceOverview(){}replaceDescription(){}replaceMetadataSection(){}registerMetadataItem(){}replaceComponentGrid(){}registerMetadata(){}addContext(...e){return this.contextSlot.register(e),this}getContext(e){const t=this.contextSlot.values();return(0,r().flatten)(t).concat((({children:t})=>l().default.createElement(h().ComponentUrlProvider,{value:e||this.componentUrlFunc},t)))}registerDefaultDrawers(e=!1,t,n){this.sidebar.registerDrawer(this.getDefaultDrawer(e,t,n))}getDefaultDrawer(e=!1,t,n){return(0,v().scopeDrawer)({treeWidgets:this.sidebarSlot,filtersSlot:this.drawerComponentsFiltersSlot,drawerWidgetSlot:this.drawerWidgetSlot,assumeScopeInUrl:e,overrideUseComponents:t,overrideUseLanes:n})}uiRoot(){this.registerDefaultDrawers();const[e]=this.commandBarUI.addCommand({id:"sidebar.toggle",action:()=>{},displayName:"Toggle component list",keybinding:"alt+s"});return this.setSidebarToggle=e,{routes:[{path:"/*",element:l().default.createElement(b().Scope,{routeSlot:this.routeSlot,menuSlot:this.menuSlot,sidebar:l().default.createElement(this.sidebar.render,{items:this.listSidebarLinks()}),scopeUi:this,badgeSlot:this.scopeBadgeSlot,overviewLineSlot:this.overviewSlot,context:this.getContext(),onSidebarTogglerChange:this.setSidebarToggle,cornerSlot:this.cornerSlot})}]}}listSidebarLinks(){const e=(0,r().flatten)(this.sidebarItemSlot.values()).sort(((e,t)=>((null===e||void 0===e?void 0:e.weight)||0)-((null===t||void 0===t?void 0:t.weight)||0)));return(0,r().compact)(e.map((e=>e.component)))}static async provider([e,t,n,r],i,[o,s,a,u,h,_,b,v,y,S,w,C]){const O=new E(o,t,s,n,a,r,u,h,b,_,v,y,S,w,C);return O.registerDrawerComponentFilters([p().DeprecateFilter,f().EnvsFilter,(0,m().ShowMainFilter)(!1)]),O.registerDrawerWidgets([l().default.createElement(d().FilterWidget,{key:"workspace-filter-widget"}),l().default.createElement(d().TreeToggleWidget,{key:"workspace-tree-toggle-widget"})]),e&&e.registerRoot(O.uiRoot.bind(O)),O.registerMenuItem(O.menuItems),O.registerMenuWidget((()=>l().default.createElement(g().ScopeUseBox,{actionName:i.useBoxAction,actionIcon:i.useBoxIcon}))),i.showGallery&&O.registerSidebarLink({component:function(){return l().default.createElement(c().MenuLinkItem,{exact:!0,href:"/",icon:"comps"},"Overview")}}),e&&O.registerExplicitRoutes(),O}}S(E,"dependencies",[a().UIAspect,i().ComponentAspect,s().SidebarAspect,u().default]),S(E,"runtime",a().UIRuntime),S(E,"slots",[o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType(),o().Slot.withType()]),S(E,"defaultConfig",{showGallery:!0}),_().ScopeAspect.addRuntime(E)},81299:(e,t,n)=>{"use strict";function r(){const e=n(85981);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ScopeMenu",{enumerable:!0,get:function(){return r().ScopeMenu}}),Object.defineProperty(t,"ScopeUseBox",{enumerable:!0,get:function(){return r().ScopeUseBox}})},85981:(e,t,n)=>{"use strict";function r(){const e=n(31219);return r=function(){return e},e}function i(){const e=n(87431);return i=function(){return e},e}function o(){const e=p(n(80852));return o=function(){return e},e}function s(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return s=function(){return e},e}function a(){const e=n(2358);return a=function(){return e},e}function l(){const e=n(43116);return l=function(){return e},e}function c(){const e=p(n(14835));return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeMenu=function(e){let{className:t}=e,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,u);return s().default.createElement(r().Menu,f({},n,{className:(0,o().default)(c().default.scopMenu,t)}))},t.ScopeUseBox=function({actionName:e,actionIcon:t}){const n=(0,s().useContext)(i().ScopeContext);return s().default.createElement(a().UseBoxDropdown,{position:"bottom-end",className:c().default.useBox,actionIcon:t,actionName:e,Menu:s().default.createElement(l().Menu,{scopeName:n.name})})};const u=["className"];function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(e){return e&&e.__esModule?e:{default:e}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}},74056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(24853);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},24853:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return r=function(){return e},e}function i(){const e=n(63991);return i=function(){return e},e}function o(){const e=n(2705);return o=function(){return e},e}function s(){const e=n(25520);return s=function(){return e},e}function a(){const e=n(17455);return a=function(){return e},e}function l(){const e=n(49101);return l=function(){return e},e}function c(){const e=n(87431);return c=function(){return e},e}function u(){const e=(t=n(71006))&&t.__esModule?t:{default:t};var t;return u=function(){return e},e}function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p({component:e,componentUrl:t}){var n;const o=e.compositions.length>0;return r().default.createElement(i().ComponentCard,{id:e.id.fullName,envIcon:null===(n=e.environment)||void 0===n?void 0:n.icon,description:e.description,version:e.version,href:t,preview:r().default.createElement(a().PreviewPlaceholder,{component:e,shouldShowPreview:o})})}Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeComponentCard=p,t.ScopeOverview=function({badgeSlot:e,overviewSlot:t,TargetOverview:n}){const i=(0,r().useContext)(c().ScopeContext),{components:a}=i;return n?r().default.createElement(n,null):a&&0!==a.length?r().default.createElement("div",{className:u().default.container},r().default.createElement(s().ScopeDetails,{scopeName:i.name,icon:i.icon,backgroundIconColor:i.backgroundIconColor,badgeSlot:e,overviewSlot:t,description:i.description,componentCount:i.components.length}),r().default.createElement(o().ComponentGrid,null,a.map(((e,t)=>{var n;return null!==(n=e.deprecation)&&void 0!==n&&n.isDeprecate?null:r().default.createElement("div",{key:t},r().default.createElement(p,{component:e}))})))):r().default.createElement(l().EmptyScope,{name:i.name})}},49624:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return r=function(){return e},e}function i(){const e=v(n(80852));return i=function(){return e},e}function o(){const e=n(98709);return o=function(){return e},e}function s(){const e=n(19588);return s=function(){return e},e}function a(){const e=n(31472);return a=function(){return e},e}function l(){const e=n(3299);return l=function(){return e},e}function c(){const e=n(90998);return c=function(){return e},e}function u(){const e=n(88907);return u=function(){return e},e}function d(){const e=n(44299);return d=function(){return e},e}function p(){const e=n(57581);return p=function(){return e},e}function f(){const e=n(57915);return f=function(){return e},e}function h(){const e=n(648);return h=function(){return e},e}function m(){const e=n(87431);return m=function(){return e},e}function g(){const e=n(2736);return g=function(){return e},e}function _(){const e=n(74056);return _=function(){return e},e}function b(){const e=v(n(52108));return b=function(){return e},e}function v(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function S({children:e,Wrapper:t}){return r().default.createElement(t,null,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Scope=function({routeSlot:e,menuSlot:t,sidebar:n,scopeUi:v,badgeSlot:y,overviewLineSlot:E,cornerSlot:w,PaneWrapper:C,context:O=[],paneClassName:T,TargetScopeOverview:N,TargetCorner:I,onSidebarTogglerChange:x,userUseScopeQuery:k,scopeClassName:R}){const{scope:P}=k?k():(0,g().useScopeQuery)(),A=(0,h().useIsMobile)(),[L,D]=(0,r().useReducer)((e=>!e),!A),M=L?o().Layout.row:o().Layout.right;if(!P)return r().default.createElement(p().FullLoader,null);const j=I||(null===w||void 0===w?void 0:w.values()[0]);v.setComponents(P.components);const F=O.map((e=>[e,{scope:P}]));return x(D),r().default.createElement(m().ScopeProvider,{scope:P},r().default.createElement(d().Composer,{components:F},r().default.createElement("div",{className:(0,i().default)(b().default.scope,R)},r().default.createElement(u().TopBar,{className:b().default.topbar,Corner:()=>j?r().default.createElement(j,null):r().default.createElement(a().Corner,{name:P.name,className:b().default.whiteCorner}),menu:t}),r().default.createElement(o().SplitPane,{className:b().default.main,size:264,layout:M},r().default.createElement(o().Pane,{className:(0,i().default)(b().default.sidebar,!L&&b().default.collapsed)},n),r().default.createElement(c().HoverSplitter,{className:b().default.splitter},r().default.createElement(l().Collapser,{isOpen:L,onMouseDown:e=>e.stopPropagation(),onClick:D,tooltipContent:(L?"Hide":"Show")+" side panel"})),C&&r().default.createElement(S,{Wrapper:C},r().default.createElement(o().Pane,{className:(0,i().default)(T,b().default.pane)},r().default.createElement(s().SlotRouter,{slot:e},r().default.createElement(f().Route,{index:!0,element:r().default.createElement(_().ScopeOverview,{badgeSlot:y,overviewSlot:E,TargetOverview:N})}))))||r().default.createElement(o().Pane,{className:(0,i().default)(T,b().default.pane)},r().default.createElement(s().SlotRouter,{slot:e},r().default.createElement(f().Route,{index:!0,element:r().default.createElement(_().ScopeOverview,{badgeSlot:y,overviewSlot:E,TargetOverview:N})})))))))},n(5903)},76726:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.APISchema=void 0;const i=r(n(39226)),o=n(39810),s=n(48809),a=n(73107),l=n(12906);class APISchema extends a.SchemaNode{constructor(e,t,n,r){super(),this.location=e,this.module=t,this.internals=n,this.componentId=r,this.taggedModuleExports=this.listTaggedExports(t)}listTaggedExports(e){return e?e.exports.filter((e=>{var t;return null===(t=e.doc)||void 0===t?void 0:t.hasTag(l.TagName.exports)})):[]}toString(){return JSON.stringify(this.module.exports.map((e=>e.toObject())),void 0,2)}toStringPerType(){const e=(e,t)=>{const n=this.module.exports.filter((t=>t instanceof e));return n.length?`${i.default.green.bold(t)}\n${n.map((e=>e.toString())).join("\n")}\n\n`:""};return i.default.inverse(`API Schema of ${this.componentId.toString()}\n`)+e(s.ModuleSchema,"Namespaces")+e(s.ClassSchema,"Classes")+e(s.InterfaceSchema,"Interfaces")+e(s.FunctionLikeSchema,"Functions")+e(s.VariableLikeSchema,"Variables")+e(s.TypeSchema,"Types")+e(s.EnumSchema,"Enums")+e(s.TypeRefSchema,"TypeReferences")+e(s.UnresolvedSchema,"Unresolved")}listSignatures(){return this.module.exports.map((e=>e.signature))}toObject(){return Object.assign(Object.assign({},super.toObject()),{module:this.module.toObject(),internals:this.internals.map((e=>e.toObject())),componentId:this.componentId.toObject(),taggedModuleExports:this.taggedModuleExports.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=s.ModuleSchema.fromObject(e.module),r=(e.internals||[]).map((e=>s.ModuleSchema.fromObject(e))),i=o.ComponentID.fromObject(e.componentId);return new APISchema(t,n,r,i)}static empty(e){return new APISchema({filePath:"",line:0,character:0},new s.ModuleSchema({filePath:"",line:0,character:0},[],[]),[],e)}}t.APISchema=APISchema},33039:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Export=void 0;t.Export=class{constructor(e,t){this.identifier=e,this.staticProperties=t}toObject(){return{constructorName:this.constructor.name,identifier:this.identifier}}}},38006:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Schemas=t.Modifier=t.SchemaNodeConstructor=t.SchemaRegistry=t.TagName=t.StaticProperties=t.Export=t.APISchema=t.ISchemaNode=t.SchemaNode=void 0;const a=o(n(48809));t.Schemas=a;var l=n(73107);Object.defineProperty(t,"SchemaNode",{enumerable:!0,get:function(){return l.SchemaNode}}),Object.defineProperty(t,"ISchemaNode",{enumerable:!0,get:function(){return l.ISchemaNode}});var c=n(76726);Object.defineProperty(t,"APISchema",{enumerable:!0,get:function(){return c.APISchema}});var u=n(33039);Object.defineProperty(t,"Export",{enumerable:!0,get:function(){return u.Export}}),Object.defineProperty(t,"StaticProperties",{enumerable:!0,get:function(){return u.StaticProperties}});var d=n(12906);Object.defineProperty(t,"TagName",{enumerable:!0,get:function(){return d.TagName}});var p=n(25772);Object.defineProperty(t,"SchemaRegistry",{enumerable:!0,get:function(){return p.SchemaRegistry}});var f=n(56536);Object.defineProperty(t,"SchemaNodeConstructor",{enumerable:!0,get:function(){return f.SchemaNodeConstructor}});var h=n(68146);Object.defineProperty(t,"Modifier",{enumerable:!0,get:function(){return h.Modifier}}),s(n(48809),t)},56536:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},73107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaNode=void 0;const r=n(82190);t.SchemaNode=class{constructor(){this.__schema=this.constructor.name}static fromObject(e){throw new Error("Method 'fromObject' not implemented in subclass.")}toObject(){return(0,r.pickBy)({__schema:this.__schema,location:this.location,doc:this.doc?this.doc.toObject():void 0,signature:this.signature,name:this.name},(e=>void 0!==e))}getNodes(){return[this]}getAllNodesRecursively(e=new Set){if(e.has(this))return[];e.add(this);return[this,...this.getNodes().flatMap((t=>t.getAllNodesRecursively(e)))]}findNode(e,t=new Set){if(e(this))return this;if(!t.has(this)){t.add(this);for(const n of this.getNodes()){const r=n.findNode(e,t);if(r)return r}}}}},25772:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaRegistry=void 0;const r=n(3336);class i{constructor(){this._schemas={}}static register(e){this.instance._schemas[e.name]||(this.instance._schemas[e.name]=e)}static schemas(){return this.instance._schemas}static fromObject(e){if(!e.__schema)throw new Error('fatal: "__schema" is missing, make sure the transformer is set on SchemaNode type');const t=this.instance._schemas[e.__schema];return t?t.fromObject(e):r.UnknownSchemaFactory.create(e.location||{path:"",line:0,character:0},e.__schema,e)}}t.SchemaRegistry=i,i.instance=new i},36756:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ClassSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(13389),l=n(25772);class ClassSchema extends o.SchemaNode{constructor(e,t,n,r,i,o,s,a){super(),this.name=e,this.location=n,this.signature=r,this.typeParams=o,this.extendsNodes=s,this.implementNodes=a,this.members=t,this.doc=i}getNodes(){return this.members}toString(){const e=this.members.map((e=>`* ${e.toString()}`)).join("\n");return`${i.default.bold.underline(this.name)}\n${e}`}toObject(){var e,t,n;return Object.assign(Object.assign({},super.toObject()),{name:this.name,members:this.members.map((e=>e.toObject())),doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),signature:this.signature,typeParams:this.typeParams,extendsNodes:null===(t=this.extendsNodes)||void 0===t?void 0:t.map((e=>e.toObject())),implementNodes:null===(n=this.implementNodes)||void 0===n?void 0:n.map((e=>e.toObject()))})}static fromObject(e){var t,n;const r=e.name,i=e.members.map((e=>l.SchemaRegistry.fromObject(e))),o=e.location,c=e.signature,u=e.doc?s.DocSchema.fromObject(e.doc):void 0,d=e.typeParams,p=null===(t=e.extendsNodes)||void 0===t?void 0:t.map((e=>a.ExpressionWithTypeArgumentsSchema.fromObject(e))),f=null===(n=e.implementNodes)||void 0===n?void 0:n.map((e=>a.ExpressionWithTypeArgumentsSchema.fromObject(e)));return new ClassSchema(r,i,o,c,u,d,p,f)}}t.ClassSchema=ClassSchema},85349:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionalTypeSchema=void 0;const r=n(73107),i=n(25772);class ConditionalTypeSchema extends r.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.checkType=t,this.extendsType=n,this.trueType=r,this.falseType=i}getNodes(){return[this.checkType,this.extendsType,this.trueType,this.falseType]}toString(){return`${this.checkType.toString()} extends ${this.extendsType.toString()} ? ${this.trueType.toString()} : ${this.falseType.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{checkType:this.checkType.toObject(),extendsType:this.extendsType.toObject(),trueType:this.trueType.toObject(),falseType:this.falseType.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.checkType),r=i.SchemaRegistry.fromObject(e.extendsType),o=i.SchemaRegistry.fromObject(e.trueType),s=i.SchemaRegistry.fromObject(e.falseType);return new ConditionalTypeSchema(t,n,r,o,s)}}t.ConditionalTypeSchema=ConditionalTypeSchema},51868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConstructorSchema=void 0;const r=n(18780),i=n(68146),o=n(39709),s=n(78127);class ConstructorSchema extends i.FunctionLikeSchema{constructor(e,t,n,r,i=[],o){super(e,"constructor",t,n,r,i,o,void 0)}static fromObject(e){const t=e.location,n=e.params.map((e=>r.ParameterSchema.fromObject(e))),i=s.ThisTypeSchema.fromObject(e.returnType),a=e.signature,l=e.modifiers,c=e.doc?o.DocSchema.fromObject(e.doc):void 0;return new ConstructorSchema(t,n,i,a,l,c)}}t.ConstructorSchema=ConstructorSchema},84210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocSchema=void 0;const r=n(73107),i=n(25772);class DocSchema extends r.SchemaNode{constructor(e,t,n,r){super(),this.location=e,this.raw=t,this.comment=n,this.tags=r}toString(){return`${this.comment?`${this.comment}\n`:""}${this.tags?this.tags.map((e=>e.toString())).join("\n"):""}`}hasTag(e){return Boolean(this.findTag(e))}findTag(e){var t;return null===(t=this.tags)||void 0===t?void 0:t.find((t=>t.tagName===e))}toObject(){return{__schema:this.__schema,name:this.name,location:this.location,signature:this.signature,raw:this.raw,comment:this.comment,tags:this.tags?this.tags.map((e=>e.toObject())):void 0}}static fromObject(e){const t=e.location,n=e.tags?e.tags.map((e=>i.SchemaRegistry.fromObject(e))):void 0;return new DocSchema(t,e.raw,e.comment,n)}}t.DocSchema=DocSchema},39709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyLikeTagSchema=t.ReturnTagSchema=t.TagSchema=t.DocSchema=void 0;var r=n(84210);Object.defineProperty(t,"DocSchema",{enumerable:!0,get:function(){return r.DocSchema}});var i=n(12906);Object.defineProperty(t,"TagSchema",{enumerable:!0,get:function(){return i.TagSchema}});var o=n(63613);Object.defineProperty(t,"ReturnTagSchema",{enumerable:!0,get:function(){return o.ReturnTagSchema}});var s=n(76997);Object.defineProperty(t,"PropertyLikeTagSchema",{enumerable:!0,get:function(){return s.PropertyLikeTagSchema}})},76997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PropertyLikeTagSchema=void 0;const r=n(25772),i=n(12906);class PropertyLikeTagSchema extends i.TagSchema{constructor(e,t,n,r){super(e,i.TagName.parameter,n),this.location=e,this.name=t,this.comment=n,this.type=r}toString(){const e=this.comment?` ${this.comment}`:"",t=this.type?` {${this.type.toString()}} `:"";return`@${this.tagName} ${this.name}${t} ${e}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:null===(e=this.type)||void 0===e?void 0:e.toObject()})}static fromObject(e){const t=e.location,n=e.name,i=e.comment,o=e.type?r.SchemaRegistry.fromObject(e.type):void 0;return new PropertyLikeTagSchema(t,n,i,o)}}t.PropertyLikeTagSchema=PropertyLikeTagSchema},63613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReturnTagSchema=void 0;const r=n(25772),i=n(12906);class ReturnTagSchema extends i.TagSchema{constructor(e,t,n){super(e,i.TagName.return,t),this.location=e,this.comment=t,this.type=n}toString(){const e=this.comment?` ${this.comment}`:"";return`@${this.tagName}${e}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{type:null===(e=this.type)||void 0===e?void 0:e.toObject()})}static fromObject(e){const t=e.location,n=e.comment,i=e.type?r.SchemaRegistry.fromObject(e.type):void 0;return new ReturnTagSchema(t,n,i)}}t.ReturnTagSchema=ReturnTagSchema},12906:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagName=t.TagSchema=void 0;const r=n(73107);class TagSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.tagName=t,this.comment=n}toString(){const e=this.comment?` ${this.comment}`:"";return`@${this.tagName}${e}`}static fromObject(e){const t=e.location,n=e.tagName,r=e.comment;return new TagSchema(t,n,r)}toObject(){return{__schema:this.__schema,location:this.location,name:this.name,signature:this.signature,tagName:this.tagName,comment:this.comment}}}t.TagSchema=TagSchema,function(e){e.augments="augments",e.author="author",e.class="class",e.callback="callback",e.public="public",e.private="private",e.protected="protected",e.readonly="readonly",e.override="override",e.see="see",e.enum="enum",e.parameter="parameter",e.this="this",e.type="type",e.template="template",e.typedef="typedef",e.property="property",e.implements="implements",e.return="return",e.deprecated="deprecated",e.exports="exports"}(t.TagName||(t.TagName={}))},40102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnumMemberSchema=void 0;const r=n(73107),i=n(39709);class EnumMemberSchema extends r.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.name=t,this.signature=n,this.value=r,this.doc=i}toString(){return this.value?`${this.name}=${this.value}`:this.name}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,signature:this.signature,value:this.value,doc:null===(e=this.doc)||void 0===e?void 0:e.toObject()})}static fromObject(e){const t=e.location,n=e.name,r=e.signature,o=e.value,s=e.doc?i.DocSchema.fromObject(e.doc):void 0;return new EnumMemberSchema(t,n,r,o,s)}}t.EnumMemberSchema=EnumMemberSchema},55196:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EnumSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(38006);class EnumSchema extends o.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.name=t,this.signature=r,this.doc=i,this.members=n}getNodes(){return this.members}toString(){const e=this.members.map((e=>`* ${e.toString()}`)).join("\n");return`${i.default.bold.underline(this.name)}\n${e}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,members:this.members.map((e=>e.toObject())),doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=e.name,r=e.members.map((e=>a.SchemaRegistry.fromObject(e))),i=e.signature,o=e.doc?s.DocSchema.fromObject(e.doc):void 0;return new EnumSchema(t,n,r,i,o)}}t.EnumSchema=EnumSchema},13389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithTypeArgumentsSchema=void 0;const r=n(73107),i=n(25772);class ExpressionWithTypeArgumentsSchema extends r.SchemaNode{constructor(e,t,n,r){super(),this.name=n,this.location=r,this.typeArgs=e,this.expression=t}toString(){return this.name}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,location:this.location,typeArgs:this.typeArgs.map((e=>e.toObject())),expression:this.expression})}static fromObject(e){const t=e.name,n=e.location,r=e.typeArgs.map((e=>i.SchemaRegistry.fromObject(e))),o=i.SchemaRegistry.fromObject(e.expression);return new ExpressionWithTypeArgumentsSchema(r,o,t,n)}}t.ExpressionWithTypeArgumentsSchema=ExpressionWithTypeArgumentsSchema},68146:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionLikeSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(18780),a=n(39709),l=n(12906),c=n(25772);class FunctionLikeSchema extends o.SchemaNode{constructor(e,t,n,r,i,o=[],s,a){super(),this.location=e,this.name=t,this.modifiers=o,this.typeParams=a,this.params=n,this.returnType=r,this.doc=s,this.signature=i||FunctionLikeSchema.createSignature(this.name,this.params,this.returnType)}getNodes(){return[...this.params,this.returnType]}toString(){const e=this.params.map((e=>e.toString())).join(", "),t=this.typeParams?`<${this.typeParams.join(", ")}>`:"";return`${this.modifiersToString()}${t}${i.default.bold(this.name)}(${e}): ${this.returnType.toString()}`}isDeprecated(){var e;return Boolean(null===(e=this.doc)||void 0===e?void 0:e.hasTag(l.TagName.deprecated))}isPrivate(){var e;return Boolean(this.modifiers.find((e=>"private"===e))||(null===(e=this.doc)||void 0===e?void 0:e.hasTag(l.TagName.private)))}generateSignature(){return FunctionLikeSchema.createSignature(this.name,this.params,this.returnType)}static createSignature(e,t,n){return`${e}(${t.map((e=>{let t=e.type.toString();return e.isSpread&&(t=`...${t}`),`${e.name}${e.isOptional?"?":""}: ${t}`})).join(", ")}): ${n.toString()}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,params:this.params.map((e=>e.toObject())),returnType:this.returnType.toObject(),signature:this.signature,modifiers:this.modifiers,doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),typeParams:this.typeParams})}static fromObject(e){return new FunctionLikeSchema(e.location,e.name,e.params.map((e=>s.ParameterSchema.fromObject(e))),c.SchemaRegistry.fromObject(e.returnType),e.signature,e.modifiers,e.doc?a.DocSchema.fromObject(e.doc):void 0,e.typeParams)}modifiersToString(){const e=this.modifiers.filter((e=>"export"!==e));return e.length?`${e.join(" ")} `:""}}t.FunctionLikeSchema=FunctionLikeSchema},49874:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAccessorSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(25772);class GetAccessorSchema extends o.SchemaNode{constructor(e,t,n,r){super(),this.location=e,this.name=t,this.signature=r,this.type=n}getSignature(){return this.signature}getNodes(){return[this.type]}toString(){return`get ${i.default.bold(this.name)}(): ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=e.name,r=s.SchemaRegistry.fromObject(e.type),i=e.signature;return new GetAccessorSchema(t,n,r,i)}}t.GetAccessorSchema=GetAccessorSchema},98376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexSignatureSchema=void 0;const r=n(73107),i=n(25772),o=n(18780);class IndexSignatureSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.params=t,this.type=n}toString(){return`[${this.params.map((e=>e.toString())).join(", ")}]: ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{location:this.location,params:this.params.map((e=>e.toObject())),type:this.type.toObject()})}static fromObject(e){const t=e.location,n=e.params.map((e=>o.ParameterSchema.fromObject(e))),r=i.SchemaRegistry.fromObject(e.type);return new IndexSignatureSchema(t,n,r)}}t.IndexSignatureSchema=IndexSignatureSchema},48809:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.UnImplementedSchema=t.NamedTupleSchema=t.ExpressionWithTypeArgumentsSchema=t.ConditionalTypeSchema=t.UnresolvedSchema=t.UnknownSchema=t.ThisTypeSchema=t.TemplateLiteralTypeSpanSchema=t.TemplateLiteralTypeSchema=t.IndexedAccessSchema=t.TypePredicateSchema=t.ParenthesizedTypeSchema=t.EnumMemberSchema=t.EnumSchema=t.ParameterSchema=t.TupleTypeSchema=t.TypeOperatorSchema=t.TypeArraySchema=t.KeywordTypeSchema=t.LiteralTypeSchema=t.InferenceTypeSchema=t.TypeQuerySchema=t.SetAccessorSchema=t.GetAccessorSchema=t.InterfaceSchema=t.IndexSignatureSchema=t.TypeLiteralSchema=t.TypeUnionSchema=t.TypeIntersectionSchema=t.TypeSchema=t.ConstructorSchema=t.ClassSchema=t.VariableLikeSchema=t.TypeRefSchema=t.FunctionLikeSchema=t.ModuleSchema=void 0;var o=n(78513);Object.defineProperty(t,"ModuleSchema",{enumerable:!0,get:function(){return o.ModuleSchema}});var s=n(68146);Object.defineProperty(t,"FunctionLikeSchema",{enumerable:!0,get:function(){return s.FunctionLikeSchema}});var a=n(38782);Object.defineProperty(t,"TypeRefSchema",{enumerable:!0,get:function(){return a.TypeRefSchema}});var l=n(75896);Object.defineProperty(t,"VariableLikeSchema",{enumerable:!0,get:function(){return l.VariableLikeSchema}});var c=n(36756);Object.defineProperty(t,"ClassSchema",{enumerable:!0,get:function(){return c.ClassSchema}});var u=n(51868);Object.defineProperty(t,"ConstructorSchema",{enumerable:!0,get:function(){return u.ConstructorSchema}});var d=n(6989);Object.defineProperty(t,"TypeSchema",{enumerable:!0,get:function(){return d.TypeSchema}});var p=n(61385);Object.defineProperty(t,"TypeIntersectionSchema",{enumerable:!0,get:function(){return p.TypeIntersectionSchema}});var f=n(99524);Object.defineProperty(t,"TypeUnionSchema",{enumerable:!0,get:function(){return f.TypeUnionSchema}});var h=n(5206);Object.defineProperty(t,"TypeLiteralSchema",{enumerable:!0,get:function(){return h.TypeLiteralSchema}});var m=n(98376);Object.defineProperty(t,"IndexSignatureSchema",{enumerable:!0,get:function(){return m.IndexSignatureSchema}});var g=n(50581);Object.defineProperty(t,"InterfaceSchema",{enumerable:!0,get:function(){return g.InterfaceSchema}});var _=n(49874);Object.defineProperty(t,"GetAccessorSchema",{enumerable:!0,get:function(){return _.GetAccessorSchema}});var b=n(6252);Object.defineProperty(t,"SetAccessorSchema",{enumerable:!0,get:function(){return b.SetAccessorSchema}});var v=n(68143);Object.defineProperty(t,"TypeQuerySchema",{enumerable:!0,get:function(){return v.TypeQuerySchema}});var y=n(48213);Object.defineProperty(t,"InferenceTypeSchema",{enumerable:!0,get:function(){return y.InferenceTypeSchema}});var S=n(92363);Object.defineProperty(t,"LiteralTypeSchema",{enumerable:!0,get:function(){return S.LiteralTypeSchema}});var E=n(72801);Object.defineProperty(t,"KeywordTypeSchema",{enumerable:!0,get:function(){return E.KeywordTypeSchema}});var w=n(59010);Object.defineProperty(t,"TypeArraySchema",{enumerable:!0,get:function(){return w.TypeArraySchema}});var C=n(25854);Object.defineProperty(t,"TypeOperatorSchema",{enumerable:!0,get:function(){return C.TypeOperatorSchema}});var O=n(14667);Object.defineProperty(t,"TupleTypeSchema",{enumerable:!0,get:function(){return O.TupleTypeSchema}});var T=n(18780);Object.defineProperty(t,"ParameterSchema",{enumerable:!0,get:function(){return T.ParameterSchema}});var N=n(55196);Object.defineProperty(t,"EnumSchema",{enumerable:!0,get:function(){return N.EnumSchema}});var I=n(40102);Object.defineProperty(t,"EnumMemberSchema",{enumerable:!0,get:function(){return I.EnumMemberSchema}});var x=n(53415);Object.defineProperty(t,"ParenthesizedTypeSchema",{enumerable:!0,get:function(){return x.ParenthesizedTypeSchema}});var k=n(39614);Object.defineProperty(t,"TypePredicateSchema",{enumerable:!0,get:function(){return k.TypePredicateSchema}});var R=n(22211);Object.defineProperty(t,"IndexedAccessSchema",{enumerable:!0,get:function(){return R.IndexedAccessSchema}});var P=n(17059);Object.defineProperty(t,"TemplateLiteralTypeSchema",{enumerable:!0,get:function(){return P.TemplateLiteralTypeSchema}});var A=n(5050);Object.defineProperty(t,"TemplateLiteralTypeSpanSchema",{enumerable:!0,get:function(){return A.TemplateLiteralTypeSpanSchema}});var L=n(78127);Object.defineProperty(t,"ThisTypeSchema",{enumerable:!0,get:function(){return L.ThisTypeSchema}});var D=n(61576);Object.defineProperty(t,"UnknownSchema",{enumerable:!0,get:function(){return D.UnknownSchema}});var M=n(10829);Object.defineProperty(t,"UnresolvedSchema",{enumerable:!0,get:function(){return M.UnresolvedSchema}});var j=n(85349);Object.defineProperty(t,"ConditionalTypeSchema",{enumerable:!0,get:function(){return j.ConditionalTypeSchema}});var F=n(13389);Object.defineProperty(t,"ExpressionWithTypeArgumentsSchema",{enumerable:!0,get:function(){return F.ExpressionWithTypeArgumentsSchema}});var B=n(86512);Object.defineProperty(t,"NamedTupleSchema",{enumerable:!0,get:function(){return B.NamedTupleSchema}});var U=n(39667);Object.defineProperty(t,"UnImplementedSchema",{enumerable:!0,get:function(){return U.UnImplementedSchema}}),i(n(39709),t)},22211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexedAccessSchema=void 0;const r=n(73107),i=n(25772);class IndexedAccessSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.objectType=t,this.indexType=n}getNodes(){return[this.objectType,this.indexType]}toString(){return`${this.objectType.toString()}[${this.indexType.toString()}]`}toObject(){return Object.assign(Object.assign({},super.toObject()),{objectType:this.objectType.toObject(),indexType:this.indexType.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.objectType),r=i.SchemaRegistry.fromObject(e.indexType);return new IndexedAccessSchema(t,n,r)}}t.IndexedAccessSchema=IndexedAccessSchema},48213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InferenceTypeSchema=void 0;const r=n(73107);class InferenceTypeSchema extends r.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.type=t,this.name=n,this.defaultValue=r,this.isSpread=i}toString(){return this.name&&this.name!==this.type?`${this.name}: ${this.type}`:this.type}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type,defaultValue:this.defaultValue,isSpread:this.isSpread})}static fromObject(e){const t=e.location,n=e.type,r=e.name,i=e.defaultValue,o=e.isSpread;return new InferenceTypeSchema(t,n,r,i,o)}}t.InferenceTypeSchema=InferenceTypeSchema},50581:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InterfaceSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(13389),l=n(25772);class InterfaceSchema extends o.SchemaNode{constructor(e,t,n,r,i,o,s){super(),this.location=e,this.name=t,this.signature=n,this.extendsNodes=r,this.typeParams=s,this.members=i,this.doc=o}getNodes(){return this.members}toString(){const e=this.members.map((e=>`* ${e.toString()}`)).join("\n");return`${i.default.bold.underline(this.name)}\n${e}`}toObject(){var e,t;return Object.assign(Object.assign({},super.toObject()),{name:this.name,members:this.members.map((e=>e.toObject())),doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),signature:this.signature,extendsNodes:null===(t=this.extendsNodes)||void 0===t?void 0:t.map((e=>e.toObject())),typeParams:this.typeParams})}static fromObject(e){var t;const n=e.location,r=e.name,i=e.signature,o=null===(t=e.extendsNodes)||void 0===t?void 0:t.map((e=>a.ExpressionWithTypeArgumentsSchema.fromObject(e))),c=e.members.map((e=>l.SchemaRegistry.fromObject(e))),u=e.doc?s.DocSchema.fromObject(e.doc):void 0,d=e.typeParams;return new InterfaceSchema(n,r,i,o,c,u,d)}}t.InterfaceSchema=InterfaceSchema},72801:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeywordTypeSchema=void 0;const r=n(73107);class KeywordTypeSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.name=t}toString(){return this.name}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name})}static fromObject(e){const t=e.location,n=e.name;return new KeywordTypeSchema(t,n)}}t.KeywordTypeSchema=KeywordTypeSchema},92363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralTypeSchema=void 0;const r=n(73107);class LiteralTypeSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.name=t}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name})}toString(){return this.name}static fromObject(e){const t=e.location,n=e.name;return new LiteralTypeSchema(t,n)}}t.LiteralTypeSchema=LiteralTypeSchema},78513:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(25772);class ModuleSchema extends o.SchemaNode{constructor(e,t,n){super(),this.location=e,this.exports=t,this.internals=n}getNodes(){return[...this.exports,...this.internals]}flatExportsRecursively(){this.exports=this.exports.reduce(((e,t)=>t instanceof ModuleSchema?(t.flatExportsRecursively(),t.namespace?[...e,t]:[...e,...t.exports]):[...e,t]),[])}toString(){if(!this.namespace)throw new Error("toString() should not be called on a module without namespace, make sure this.flatExportsRecursively() is called");const e=this.exports.map((e=>`* ${e.toString()}`)).join("\n");return`${i.default.bold.underline(this.namespace)}\n${e}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{exports:this.exports.map((e=>e.toObject())),internals:this.internals.map((e=>e.toObject())),namespace:this.namespace})}static fromObject(e){const t=e.location,n=(e.exports||[]).map((e=>s.SchemaRegistry.fromObject(e))),r=(e.internals||[]).map((e=>s.SchemaRegistry.fromObject(e))),i=e.namespace,o=new ModuleSchema(t,n,r);return o.namespace=i,o}}t.ModuleSchema=ModuleSchema},86512:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamedTupleSchema=void 0;const r=n(73107),i=n(25772);class NamedTupleSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.type=t,this.name=n}getNodes(){return[this.type]}toString(){return`${this.name}: ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.type),r=e.name;return new NamedTupleSchema(t,n,r)}}t.NamedTupleSchema=NamedTupleSchema},18780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterSchema=void 0;const r=n(73107),i=n(25772);class ParameterSchema extends r.SchemaNode{constructor(e,t,n,r,i,o,s,a=!1){super(),this.location=e,this.name=t,this.isOptional=r,this.defaultValue=i,this.description=o,this.isSpread=a,this.type=n,this.objectBindingNodes=s,this.isSpread=a}toString(){return`${this.name}${this.isOptional?"?":""}: ${this.type.toString()}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject(),isOptional:this.isOptional,defaultValue:this.defaultValue,description:this.description,objectBindingNodes:null===(e=this.objectBindingNodes)||void 0===e?void 0:e.map((e=>e.toObject())),isSpread:this.isSpread})}static fromObject(e){var t;const n=e.location,r=e.name,o=i.SchemaRegistry.fromObject(e.type),s=e.isOptional,a=e.defaultValue,l=e.description,c=e.isSpread,u=null===(t=e.objectBindingNodes)||void 0===t?void 0:t.map((e=>i.SchemaRegistry.fromObject(e)));return new ParameterSchema(n,r,o,s,a,l,u,c)}}t.ParameterSchema=ParameterSchema},53415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParenthesizedTypeSchema=void 0;const r=n(73107),i=n(25772);class ParenthesizedTypeSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.type=t}getNodes(){return[this.type]}toString(){return`(${this.type.toString()})`}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.type);return new ParenthesizedTypeSchema(t,n)}}t.ParenthesizedTypeSchema=ParenthesizedTypeSchema},6252:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetAccessorSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(18780);class SetAccessorSchema extends o.SchemaNode{constructor(e,t,n,r){super(),this.location=e,this.name=t,this.signature=r,this.param=n}getSignature(){return this.signature}toString(){return`set ${i.default.bold(this.name)}(${this.param.toString()})`}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,param:this.param.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=e.name,r=s.ParameterSchema.fromObject(e.param),i=e.signature;return new SetAccessorSchema(t,n,r,i)}}t.SetAccessorSchema=SetAccessorSchema},5050:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateLiteralTypeSpanSchema=void 0;const r=n(73107),i=n(25772);class TemplateLiteralTypeSpanSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.literal=t,this.type=n}getNodes(){return[this.type]}toString(){return`${this.type.toString()} ${this.literal}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{literal:this.literal,type:this.type.toObject()})}static fromObject(e){const t=e.location,n=e.literal,r=i.SchemaRegistry.fromObject(e.type);return new TemplateLiteralTypeSpanSchema(t,n,r)}}t.TemplateLiteralTypeSpanSchema=TemplateLiteralTypeSpanSchema},17059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateLiteralTypeSchema=void 0;const r=n(73107),i=n(5050);class TemplateLiteralTypeSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.head=t,this.templateSpans=n}toString(){const e=this.templateSpans.map((e=>e.toString())).join("");return`${this.head}${e}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{head:this.head,templateSpans:this.templateSpans.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.head,r=e.templateSpans.map((e=>i.TemplateLiteralTypeSpanSchema.fromObject(e)));return new TemplateLiteralTypeSchema(t,n,r)}}t.TemplateLiteralTypeSchema=TemplateLiteralTypeSchema},78127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThisTypeSchema=void 0;const r=n(73107);class ThisTypeSchema extends r.SchemaNode{constructor(e){super(),this.location=e}toString(){return"this"}static fromObject(e){const t=e.location;return new ThisTypeSchema(t)}}t.ThisTypeSchema=ThisTypeSchema},14667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleTypeSchema=void 0;const r=n(73107),i=n(25772);class TupleTypeSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.elements=t}toString(){return`[${this.elements.map((e=>e.toString())).join(", ")}]`}toObject(){return Object.assign(Object.assign({},super.toObject()),{elements:this.elements.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.elements.map((e=>i.SchemaRegistry.fromObject(e)));return new TupleTypeSchema(t,n)}}t.TupleTypeSchema=TupleTypeSchema},59010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeArraySchema=void 0;const r=n(73107),i=n(25772);class TypeArraySchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.type=t}getNodes(){return[this.type]}toString(){return`${this.type.toString()}[]`}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type.toObject()})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.type);return new TypeArraySchema(t,n)}}t.TypeArraySchema=TypeArraySchema},61385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeIntersectionSchema=void 0;const r=n(73107),i=n(25772);class TypeIntersectionSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.types=t}getNodes(){return this.types}toString(){return`${this.types.map((e=>e.toString())).join(" & ")}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{types:this.types.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.types.map((e=>i.SchemaRegistry.fromObject(e)));return new TypeIntersectionSchema(t,n)}}t.TypeIntersectionSchema=TypeIntersectionSchema},5206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeLiteralSchema=void 0;const r=n(73107),i=n(25772);class TypeLiteralSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.members=t}getNodes(){return this.members}toString(){return`{ ${this.members.map((e=>e.toString())).join("; ")} }`}toObject(){return Object.assign(Object.assign({},super.toObject()),{members:this.members.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.members.map((e=>i.SchemaRegistry.fromObject(e)));return new TypeLiteralSchema(t,n)}}t.TypeLiteralSchema=TypeLiteralSchema},25854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeOperatorSchema=void 0;const r=n(73107),i=n(25772);class TypeOperatorSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.name=t,this.type=n}getNodes(){return[this.type]}toString(){return`${this.name} ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject()})}static fromObject(e){const t=e.location,n=e.name,r=i.SchemaRegistry.fromObject(e.type);return new TypeOperatorSchema(t,n,r)}}t.TypeOperatorSchema=TypeOperatorSchema},39614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypePredicateSchema=void 0;const r=n(73107),i=n(25772);class TypePredicateSchema extends r.SchemaNode{constructor(e,t,n,r=!1){super(),this.location=e,this.name=t,this.hasAssertsModifier=r,this.type=n}toString(){const e=this.hasAssertsModifier?"asserts ":"",t=this.type?` is ${this.type.toString()}`:"";return e+this.name+t}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:null===(e=this.type)||void 0===e?void 0:e.toObject(),hasAssertsModifier:this.hasAssertsModifier})}static fromObject(e){const t=e.location,n=e.name,r=e.type?i.SchemaRegistry.fromObject(e.type):void 0,o=e.hasAssertsModifier;return new TypePredicateSchema(t,n,r,o)}}t.TypePredicateSchema=TypePredicateSchema},68143:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeQuerySchema=void 0;const r=n(73107),i=n(25772);class TypeQuerySchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.signature=n,this.type=t}getNodes(){return[this.type]}getSignature(){return this.signature}toString(){return`typeof ${this.type.toString()}`}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=i.SchemaRegistry.fromObject(e.type),r=e.signature;return new TypeQuerySchema(t,n,r)}}t.TypeQuerySchema=TypeQuerySchema},38782:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeRefSchema=void 0;const i=n(21475),o=r(n(39226)),s=n(73107),a=n(25772);class TypeRefSchema extends s.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.name=t,this.packageName=r,this.internalFilePath=i,this.componentId=n}withTypeArgs(e){return this.typeArgs=e,this}toString(){const e=this.nameToString();if(!this.typeArgs)return e;return`${e}<${this.typeArgs.map((e=>e.toString())).join(", ")}>`}nameToString(){if(this.componentId){return`${o.default.dim(`(component: ${this.componentId.toStringWithoutVersion()})`)} ${this.name}`}if(this.packageName){return`${o.default.dim(`(package: ${this.packageName})`)} ${this.name}`}return this.name}isFromThisComponent(){return!this.componentId&&!this.packageName}isInternalReference(){return!!this.internalFilePath&&this.isFromThisComponent()}isExported(){return this.isFromThisComponent()&&!this.isInternalReference()}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,componentId:this.componentId?this.componentId.toObject():void 0,packageName:this.packageName,internalFilePath:this.internalFilePath,typeArgs:null===(e=this.typeArgs)||void 0===e?void 0:e.map((e=>e.toObject()))})}static fromObject(e){var t;const n=e.location,r=e.name;let o;try{o=e.componentId?i.ComponentID.fromObject(e.componentId):void 0}catch(u){o=void 0}const s=e.packageName,l=e.internalFilePath,c=null===(t=e.typeArgs)||void 0===t?void 0:t.map((e=>a.SchemaRegistry.fromObject(e)));return new TypeRefSchema(n,r,o,s,l).withTypeArgs(c)}}t.TypeRefSchema=TypeRefSchema},99524:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeUnionSchema=void 0;const r=n(73107),i=n(25772);class TypeUnionSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.types=t}toString(){return`${this.types.map((e=>e.toString())).join(" | ")}`}getNodes(){return this.types}toObject(){return Object.assign(Object.assign({},super.toObject()),{types:this.types.map((e=>e.toObject()))})}static fromObject(e){const t=e.location,n=e.types.map((e=>i.SchemaRegistry.fromObject(e)));return new TypeUnionSchema(t,n)}}t.TypeUnionSchema=TypeUnionSchema},6989:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(25772);class TypeSchema extends o.SchemaNode{constructor(e,t,n,r,i){super(),this.location=e,this.name=t,this.signature=r,this.type=n,this.doc=i}toString(){return`${i.default.bold(this.name)}: ${this.type.toString()}`}getNodes(){return[this.type]}toObject(){return Object.assign(Object.assign({},super.toObject()),{name:this.name,type:this.type.toObject(),signature:this.signature})}static fromObject(e){const t=e.location,n=e.name,r=a.SchemaRegistry.fromObject(e.type),i=e.signature,o=e.doc?s.DocSchema.fromObject(e.doc):void 0;return new TypeSchema(t,n,r,i,o)}}t.TypeSchema=TypeSchema},39667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnImplementedSchema=void 0;const r=n(73107);class UnImplementedSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.name=t,this.type=n}toString(){return`<<unimplemented schema ${this.name} of type ${this.type}>>`}toObject(){return Object.assign(Object.assign({},super.toObject()),{type:this.type})}static fromObject(e){const t=e.location,n=e.name,r=e.type;return new UnImplementedSchema(t,n,r)}}t.UnImplementedSchema=UnImplementedSchema},61576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSchema=void 0;const r=n(73107);class UnknownSchema extends r.SchemaNode{constructor(e,t,n){super(),this.location=e,this.name=t,this.schemaObj=n}toString(){return`<<unknown schema ${this.name}>>`}toObject(){return Object.assign(Object.assign({},super.toObject()),{schemaObj:this.schemaObj})}static fromObject(e){const t=e.location,n=e.name,r=e.schemaObj;return new UnknownSchema(t,n,r)}}t.UnknownSchema=UnknownSchema},10829:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnresolvedSchema=void 0;const r=n(73107);class UnresolvedSchema extends r.SchemaNode{constructor(e,t){super(),this.location=e,this.name=t}toString(){return this.name}toObject(){return super.toObject()}static fromObject(e){const t=e.location,n=e.name;return new UnresolvedSchema(t,n)}}t.UnresolvedSchema=UnresolvedSchema},75896:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableLikeSchema=void 0;const i=r(n(39226)),o=n(73107),s=n(39709),a=n(25772);class VariableLikeSchema extends o.SchemaNode{constructor(e,t,n,r,i,o,s){super(),this.location=e,this.name=t,this.signature=n,this.isOptional=i,this.defaultValue=s,this.type=r,this.doc=o}getNodes(){return[this.type]}toString(){return`${i.default.bold(this.name)}${this.isOptional?"?":""}: ${this.type.toString()}`}toObject(){var e;return Object.assign(Object.assign({},super.toObject()),{name:this.name,signature:this.signature,type:this.type.toObject(),isOptional:this.isOptional,doc:null===(e=this.doc)||void 0===e?void 0:e.toObject(),defaultValue:this.defaultValue})}static fromObject(e){const t=e.location,n=e.name,r=e.signature,i=a.SchemaRegistry.fromObject(e.type),o=e.isOptional,l=e.doc?s.DocSchema.fromObject(e.doc):void 0,c=e.defaultValue;return new VariableLikeSchema(t,n,r,i,o,l,c)}}t.VariableLikeSchema=VariableLikeSchema},3336:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownSchemaFactory=void 0;t.UnknownSchemaFactory=class{static create(e,t,r){const{UnknownSchema:i}=n(61576);return new i(e,t,r)}}},72398:(e,t,n)=>{"use strict";function r(){const e=n(73445);return r=function(){return e},e}function i(){const e=n(50083);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SidebarAspect",{enumerable:!0,get:function(){return r().SidebarAspect}}),Object.defineProperty(t,"SidebarItem",{enumerable:!0,get:function(){return i().SidebarItem}}),Object.defineProperty(t,"SidebarItemSlot",{enumerable:!0,get:function(){return i().SidebarItemSlot}}),Object.defineProperty(t,"SidebarUI",{enumerable:!0,get:function(){return i().SidebarUI}}),t.default=void 0;var o=r().SidebarAspect;t.default=o},73445:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SidebarAspect=void 0;const i=r().Aspect.create({id:"teambit.ui-foundation/sidebar"});t.SidebarAspect=i;var o=i;t.default=o},50083:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}function i(){const e=n(47458);return i=function(){return e},e}function o(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return o=function(){return e},e}function s(){const e=n(73445);return s=function(){return e},e}function a(){const e=n(11678);return a=function(){return e},e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarUI=void 0;class u{constructor(e){this.drawerSlot=e,c(this,"render",(e=>o().default.createElement(a().SideBar,l({drawerSlot:this.drawerSlot},e))))}registerDrawer(...e){return this.drawerSlot.register(e),this}static async provider(e,t,[n]){return new u(n)}}t.SidebarUI=u,c(u,"runtime",i().UIRuntime),c(u,"slots",[r().Slot.withType()]),c(u,"dependencies",[]),s().SidebarAspect.addRuntime(u)},11678:(e,t,n)=>{"use strict";function r(){const e=n(25351);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SideBar",{enumerable:!0,get:function(){return r().SideBar}}),Object.defineProperty(t,"SideBarProps",{enumerable:!0,get:function(){return r().SideBarProps}})},25351:(e,t,n)=>{"use strict";function r(){const e=n(56119);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"SideBar",{enumerable:!0,get:function(){return r().SideBar}}),Object.defineProperty(t,"SideBarProps",{enumerable:!0,get:function(){return r().SideBarProps}})},56119:(e,t,n)=>{"use strict";function r(){const e=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(72243));return r=function(){return e},e}function i(){const e=n(82190);return i=function(){return e},e}function o(){const e=u(n(80852));return o=function(){return e},e}function s(){const e=n(66171);return s=function(){return e},e}function a(){const e=n(63153);return a=function(){return e},e}function l(){const e=u(n(67735));return l=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.SideBar=function(e){let{drawerSlot:t,items:n=[],overrideDrawerSlot:u}=e,d=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,c);const h=(u||(0,i().flatten)(t.values())).filter((e=>{var t;return!(null!==e&&void 0!==e&&null!==(t=e.isHidden)&&void 0!==t&&t.call(e))})).sort(f),[m,g]=(0,r().useState)(h.map((e=>e.id)));return r().default.createElement("div",p({},d,{className:l().default.sidebar}),r().default.createElement(s().MenuSection,{items:n}),h.map((e=>{if(!e||!e.name)return null;const t=m.includes(e.id);return r().default.createElement(a().DrawerUI,{className:(0,o().default)(l().default.sidebarDrawer,t&&l().default.open),isOpen:t,onToggle:()=>{return t=e.id,void(m.includes(t)?g((e=>e.filter((e=>e!==t)))):g((e=>e.concat(t))));var t},key:e.id,name:e.name,Widgets:e.widgets,Context:e.Context},r().default.createElement(e.render,null))})))};const c=["drawerSlot","items","overrideDrawerSlot"];function u(e){return e&&e.__esModule?e:{default:e}}function d(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function f(e,t){return(e.order??0)-(t.order??0)}},83794:(e,t,n)=>{"use strict";function r(){const e=n(75350);return r=function(){return e},e}function i(){const e=n(19352);return i=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"TesterAspect",{enumerable:!0,get:function(){return r().TesterAspect}}),Object.defineProperty(t,"Tests",{enumerable:!0,get:function(){return i().Tests}}),t.default=void 0;var o=r().TesterAspect;t.default=o},75350:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TesterAspect=void 0;const i=r().Aspect.create({id:"teambit.defender/tester"});t.TesterAspect=i;var o=i;t.default=o},19352:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tests=void 0;t.Tests=class{constructor(e){this.components=e}get errors(){return this.components.map((e=>e.errors||[])).flat()}}},31209:(e,t,n)=>{"use strict";function r(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(){const e=n(47458);return i=function(){return e},e}function o(){const e=n(71933);return o=function(){return e},e}function s(){const e=n(21475);return s=function(){return e},e}function a(){const e=n(85332);return a=function(){return e},e}function l(){const e=n(66492);return l=function(){return e},e}function c(){const e=n(69408);return c=function(){return e},e}function u(){const e=n(34020);return u=function(){return e},e}function d(){const e=n(75350);return d=function(){return e},e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(e,t){this.component=e,this.emptyStateSlot=t,p(this,"stageKey",void 0)}registerEmptyState(e){return this.emptyStateSlot.register(e),this}getTesterCompare(){return r().default.createElement(a().CompareTests,{emptyState:this.emptyStateSlot})}static async provider([e,t],n,[r]){const i=new f(e,r),o=new(u().TestsSection)(r),s=new(c().TestCompareSection)(i);return e.registerRoute(o.route),e.registerNavigation(o.navigationLink,o.order),t.registerNavigation(s),t.registerRoutes([s.route]),i}}p(f,"dependencies",[s().ComponentAspect,l().ComponentCompareAspect]),p(f,"runtime",i().UIRuntime),p(f,"slots",[o().Slot.withType()]),d().TesterAspect.addRuntime(f)},34020:(e,t,n)=>{"use strict";function r(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(){const e=n(96690);return i=function(){return e},e}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.TestsSection=void 0;t.TestsSection=class{constructor(e){this.emptyStateSlot=e,o(this,"route",{path:"~tests",element:r().default.createElement(i().TestsPage,{emptyState:this.emptyStateSlot})}),o(this,"navigationLink",{href:"~tests",children:"Tests"}),o(this,"order",40)}}},730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchPatterns=t.splitPatterns=void 0;var r=n(68376);Object.defineProperty(t,"splitPatterns",{enumerable:!0,get:function(){return r.splitPatterns}}),Object.defineProperty(t,"matchPatterns",{enumerable:!0,get:function(){return r.matchPatterns}})},68376:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.splitPatterns=t.matchPatterns=void 0;const i=r(n(75705));t.matchPatterns=function(e,t,n){const r=t.some((t=>(0,i.default)(e,t))),o=n.every((t=>(0,i.default)(e,t)));return r&&o},t.splitPatterns=function(e){return{includePatterns:e.filter((e=>!e.startsWith("!"))),excludePatterns:e.filter((e=>e.startsWith("!")))}}},25340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=void 0,t.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},94237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=void 0;var r=n(25340);Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return r.capitalize}})},40808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=void 0,t.getInitials=function(e){if(!e)return;const t=e.split(" ");return t.length>1?t.slice(0,2).map((e=>e[0])).join(""):e.slice(0,2)}},22012:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitials=void 0;var r=n(40808);Object.defineProperty(t,"getInitials",{enumerable:!0,get:function(){return r.getInitials}})},49986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeFormat=void 0;var r=n(84545);Object.defineProperty(t,"timeFormat",{enumerable:!0,get:function(){return r.timeFormat}})},84545:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.timeFormat=void 0;const i=r(n(86126));t.timeFormat=function(e){return e<1e3?(0,i.default)(e,{units:["ms"]}):(0,i.default)(e)}},49994:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAvatarQueryParams=void 0,t.addAvatarQueryParams=function(e,t,n){if(!e)return e;const r="string"===typeof t?parseInt(t):t,i=e.indexOf("?")>-1;return`${e}${i?"&":"?"}${[].concat([`size=${t}`],["w="+2*r,"h="+2*r,"crop=faces","fit=crop",`bg=${n}`]).join("&")}`}},93567:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addAvatarQueryParams=void 0;var r=n(49994);Object.defineProperty(t,"addAvatarQueryParams",{enumerable:!0,get:function(){return r.addAvatarQueryParams}})},53506:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Collapser=void 0;const o=n(10818),s=i(n(80852)),a=i(n(72243)),l=n(52993),c=i(n(70928));t.Collapser=function(e){var{isOpen:t,tooltipContent:n,placement:i="right",onClick:u,className:d}=e,p=r(e,["isOpen","tooltipContent","placement","onClick","className"]);const f=`${i}-rounded-corners`;return a.default.createElement(l.Tooltip,{content:n},a.default.createElement("div",Object.assign({},p,{onClick:u,className:(0,s.default)(c.default.collapser,c.default[i],t&&c.default.open,d)}),a.default.createElement("div",{className:c.default.circle},a.default.createElement("div",null,a.default.createElement(o.Icon,{of:f})))))}},3299:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collapser=void 0;var r=n(53506);Object.defineProperty(t,"Collapser",{enumerable:!0,get:function(){return r.Collapser}})},30310:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Corner=void 0;const o=n(24984),s=i(n(72243)),a=i(n(80852)),l=n(57915),c=i(n(13457));t.Corner=function(e){var{name:t,icon:n,className:i}=e,u=r(e,["name","icon","className"]);return s.default.createElement("div",Object.assign({},u,{className:(0,a.default)(c.default.corner,i)}),s.default.createElement(l.NavLink,{to:"/",className:c.default.link},n?s.default.createElement("img",{src:n,width:25,height:25}):s.default.createElement(o.UserAvatar,{size:25,account:{name:t,profileImage:n},className:c.default.avatar}),s.default.createElement("span",null,t)))}},31472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CornerProps=t.Corner=void 0;var r=n(30310);Object.defineProperty(t,"Corner",{enumerable:!0,get:function(){return r.Corner}}),Object.defineProperty(t,"CornerProps",{enumerable:!0,get:function(){return r.CornerProps}})},91486:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyComponentGallery=void 0;const i=r(n(72243)),o=r(n(80852)),s=n(31333),a=n(10818),l=n(78466),c=n(11946),u=r(n(21101));function d(){return i.default.createElement("div",{className:u.default.iconLine},i.default.createElement(s.Link,{external:!0,href:c.links.slack},i.default.createElement("img",{alt:"slack-logo",className:u.default.logo,src:"https://static.bit.dev/harmony/slack-round-icon.svg"})),i.default.createElement(s.Link,{external:!0,href:c.links.github},i.default.createElement("img",{alt:"github-logo",className:u.default.logo,src:"https://static.bit.dev/harmony/github.svg"})),i.default.createElement(s.Link,{external:!0,href:"https://bit.cloud/support"},i.default.createElement("img",{alt:"support",className:u.default.logo,src:"https://static.bit.dev/harmony/support.svg"})))}t.EmptyComponentGallery=function({name:e,children:t,title:n}){return i.default.createElement("div",{className:u.default.emptyComponentGallery},i.default.createElement("div",{className:u.default.title},i.default.createElement("span",null,n),"\xa0",i.default.createElement("span",null,e)),i.default.createElement("img",{src:"https://static.bit.dev/harmony/no-components.svg"}),t,i.default.createElement("div",{className:u.default.title},i.default.createElement("span",null,"New to Bit?")," \xa0",i.default.createElement(s.Link,{external:!0,href:`${c.links.docs}/getting-started/composing/creating-components`,className:u.default.purpleLink},i.default.createElement("span",{className:u.default.text},"Start tutorial"),i.default.createElement(a.Icon,{of:"right_arrow",className:(0,o.default)(u.default.icon,l.textSize.xxs)}))),i.default.createElement("div",{className:u.default.bottomText},"We're here to help"),i.default.createElement(d,null))}},93089:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyComponentGalleryProps=t.EmptyComponentGallery=void 0;var r=n(91486);Object.defineProperty(t,"EmptyComponentGallery",{enumerable:!0,get:function(){return r.EmptyComponentGallery}}),Object.defineProperty(t,"EmptyComponentGalleryProps",{enumerable:!0,get:function(){return r.EmptyComponentGalleryProps}})},99281:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FullLoader=void 0;const i=r(n(72243)),o=r(n(83213));t.FullLoader=function(){return i.default.createElement("div",{className:o.default.fullLoader})}},57581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FullLoader=void 0;var r=n(99281);Object.defineProperty(t,"FullLoader",{enumerable:!0,get:function(){return r.FullLoader}})},31093:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(60766),t),i(n(4748),t),i(n(29100),t)},60766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderContext=void 0;const r=n(72243);t.LoaderContext=(0,r.createContext)({isActive:()=>!1,update:()=>!1,remove:()=>!1})},4748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoaderApi=void 0;const r=n(72243);t.useLoaderApi=function(){const{current:e}=(0,r.useRef)(new Set),[t,n]=(0,r.useState)(!1),i=(0,r.useCallback)((()=>{n(e.size>0)}),[e]);return[(0,r.useMemo)((()=>({isActive:t=>e.has(t),update:(t,n)=>{const r=n?!!e.add(t):e.delete(t);return i(),r},remove:t=>{const n=e.delete(t);return i(),n}})),[e,i]),t]}},29100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoader=void 0;const r=n(72243),i=n(63501),o=n(60766);t.useLoader=function(e){const[t]=(0,r.useState)((()=>(0,i.v1)())),n=(0,r.useContext)(o.LoaderContext);(0,r.useEffect)((()=>(n.update(t,e),()=>{n.remove(t)})),[e,n,t])}},41815:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDataQuery=t.DataQueryResult=void 0;var r=n(90670);Object.defineProperty(t,"DataQueryResult",{enumerable:!0,get:function(){return r.DataQueryResult}}),Object.defineProperty(t,"useDataQuery",{enumerable:!0,get:function(){return r.useDataQuery}})},90670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDataQuery=void 0;const r=n(72243),i=n(17642),o=n(89907),s=n(31093);t.useDataQuery=function(e,t){const n=(0,i.useQuery)(e,t),a=(0,r.useContext)(o.NotificationContext),{loading:l,error:c}=n;return(0,s.useLoader)(l),c&&a.error(function(e){return e.toString()}(c)),n}},67505:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransitionStage=t.useInOutTransition=void 0;var r=n(68151);Object.defineProperty(t,"useInOutTransition",{enumerable:!0,get:function(){return r.useInOutTransition}}),Object.defineProperty(t,"TransitionStage",{enumerable:!0,get:function(){return r.TransitionStage}})},68151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useInOutTransition=t.TransitionStage=void 0;const r=n(72243);var i;!function(e){e.entering="entering",e.entered="entered",e.exiting="exiting",e.exited="exited",e.appear="appear"}(i=t.TransitionStage||(t.TransitionStage={})),t.useInOutTransition=function(e,t){const[n,o]=(0,r.useState)(e?i.appear:i.exited),s=(0,r.useRef)(!0),a=(0,r.useRef)(t);return a.current=t,(0,r.useEffect)((()=>{if(s.current)return s.current=!1,()=>{};o(e?i.entering:i.exiting);const t=setTimeout((()=>{const t=e?i.entered:i.exited;o(t)}),a.current);return()=>clearTimeout(t)}),[e]),n}},648:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;var r=n(98656);Object.defineProperty(t,"useIsMobile",{enumerable:!0,get:function(){return r.useIsMobile}})},98656:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMobile=void 0;const r=n(49432);t.useIsMobile=function(){var e;const t=null===(e=(0,r.useUserAgent)())||void 0===e?void 0:e.getDevice().type;return"tablet"===t||"mobile"===t}},49432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUserAgent=t.UserAgentProvider=t.userAgentContext=t.ssrBrowserContext=t.SSRBrowserProvider=void 0;var r=n(54557);Object.defineProperty(t,"SSRBrowserProvider",{enumerable:!0,get:function(){return r.SSRBrowserProvider}}),Object.defineProperty(t,"ssrBrowserContext",{enumerable:!0,get:function(){return r.ssrBrowserContext}}),Object.defineProperty(t,"userAgentContext",{enumerable:!0,get:function(){return r.userAgentContext}}),Object.defineProperty(t,"UserAgentProvider",{enumerable:!0,get:function(){return r.UserAgentProvider}}),Object.defineProperty(t,"useUserAgent",{enumerable:!0,get:function(){return r.useUserAgent}})},54557:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useUserAgent=t.SSRBrowserProvider=t.ssrBrowserContext=t.UserAgentProvider=t.userAgentContext=void 0;const i=n(72243),o=r(n(39937));t.userAgentContext=(0,i.createContext)(void 0),t.UserAgentProvider=t.userAgentContext.Provider,t.ssrBrowserContext=(0,i.createContext)(void 0),t.SSRBrowserProvider=t.ssrBrowserContext.Provider,t.useUserAgent=function(){const e=(0,i.useContext)(t.ssrBrowserContext);return e?new o.default(e.headers["user-agent"]):new o.default(window.navigator.userAgent)}},59809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0;var r=n(3634);Object.defineProperty(t,"isBrowser",{enumerable:!0,get:function(){return r.isBrowser}})},3634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=void 0;const n="undefined"!==typeof window;t.isBrowser=n},37259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeycapProps=t.KeyComboProps=t.KeySequenceProps=t.Keycap=t.KeyCombo=t.KeySequence=void 0;var r=n(81191);Object.defineProperty(t,"KeySequence",{enumerable:!0,get:function(){return r.KeySequence}}),Object.defineProperty(t,"KeyCombo",{enumerable:!0,get:function(){return r.KeyCombo}}),Object.defineProperty(t,"Keycap",{enumerable:!0,get:function(){return r.Keycap}}),Object.defineProperty(t,"KeySequenceProps",{enumerable:!0,get:function(){return r.KeySequenceProps}}),Object.defineProperty(t,"KeyComboProps",{enumerable:!0,get:function(){return r.KeyComboProps}}),Object.defineProperty(t,"KeycapProps",{enumerable:!0,get:function(){return r.KeycapProps}})},19043:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prettifyKey=void 0;const r=n(59809),i={shift:"\u21e7",ctrl:"\u2303",alt:"\u2325",command:"\u2318",meta:"\u2318",mod:"\u2318",backspace:"\u232b",tab:"\u21e5",enter:"\u21a9",return:"\u21a9",capslock:"\u21ea",esc:"\u238b",escape:"\u238b",space:"\u2423",pageup:"\u21de",pagedown:"\u21df",end:"end",home:"home",left:"\u2190",up:"\u2191",right:"\u2192",down:"\u2193",del:"\u2326",ins:"insert",plus:"+"},o={shift:"shift",ctrl:"ctrl",alt:"alt",meta:"win",mod:"ctrl",backspace:"backspace",tab:"tab",enter:"enter",return:"enter",capslock:"caps lock",esc:"Esc",escape:"Esc",space:"\u2423",pageup:"pgUp",pagedown:"pgDown",end:"end",home:"home",left:"\u2190",up:"\u2191",right:"\u2192",down:"\u2193",del:"del",ins:"insert",plus:"+"},s=/Mac|iPod|iPhone|iPad/;t.prettifyKey=function(e){if("string"!==typeof e)return e;const t=!r.isBrowser||s.test(window.navigator.platform)?i:o;return e in t?t[e]:e}},81191:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Keycap=t.KeyCombo=t.KeySequence=void 0;const l=o(n(72243)),c=a(n(80852)),u=a(n(19751)),d=n(19043);function p(e){var{children:t,className:n}=e,r=s(e,["children","className"]);if(!t)return null;const i=t.split("+").map((e=>e.trim()));return l.default.createElement("div",Object.assign({},r,{className:(0,c.default)(n,u.default.keyCombo)}),i.map(((e,t)=>l.default.createElement(f,{key:t},e))))}function f(e){var{className:t,children:n}=e,r=s(e,["className","children"]);const i=(0,d.prettifyKey)(n);return l.default.createElement("kbd",Object.assign({},r,{className:(0,c.default)(t,u.default.keycap)}),i)}function h(){return l.default.createElement("span",{className:u.default.thenSep},"then")}t.KeySequence=function(e){var{children:t,className:n}=e,r=s(e,["children","className"]);if(!t)return null;const i=(0,l.useMemo)((()=>function(e,t){const n=[];return e.forEach(((e,r)=>{n.push(e),n.push(t(r))})),n.pop(),n}(t.split(" ").map((e=>e.trim())).filter((e=>!!e)).map(((e,t)=>l.default.createElement(p,{key:t},e))),(e=>l.default.createElement(h,{key:`then-sep_${e}`})))),[t]);return l.default.createElement("div",Object.assign({},r,{className:(0,c.default)(u.default.keySequence,n)}),i)},t.KeyCombo=p,t.Keycap=f},21215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuItemSlot=t.MenuItem=t.MainDropdown=void 0;var r=n(33887);Object.defineProperty(t,"MainDropdown",{enumerable:!0,get:function(){return r.MainDropdown}}),Object.defineProperty(t,"MenuItem",{enumerable:!0,get:function(){return r.MenuItem}}),Object.defineProperty(t,"MenuItemSlot",{enumerable:!0,get:function(){return r.MenuItemSlot}})},33887:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MainDropdown=void 0;const o=n(10818),s=n(1666),a=i(n(80852)),l=i(n(72243)),c=n(82190),u=n(37259),d=i(n(95289));function p(e){var{lineTitle:t,keyChar:n,onClick:i}=e,o=r(e,["lineTitle","keyChar","onClick"]);return l.default.createElement("div",Object.assign({},o,{className:(0,a.default)(d.default.line),onClick:i}),l.default.createElement("div",null,t),n&&l.default.createElement("pre",null,l.default.createElement(u.KeySequence,null,n)))}function f({title:e,children:t}){return l.default.createElement("div",{className:(0,a.default)(d.default.menuBlock)},l.default.createElement("div",{className:d.default.title},e),t)}t.MainDropdown=function(e){var{menuItems:t,className:n}=e,i=r(e,["menuItems","className"]);return!t||(0,c.isEmpty)(t)?null:l.default.createElement("div",Object.assign({},i,{className:(0,a.default)(d.default.mainDropdown,n)}),l.default.createElement(s.TooltipDrawer,{className:d.default.dropdown,tooltipClass:d.default.menu,placeholder:"",clickOutside:!0,PlaceholderComponent:()=>l.default.createElement("div",{className:d.default.iconAnchor},l.default.createElement("div",{className:d.default.overlay}),l.default.createElement(o.Icon,{className:(0,a.default)(d.default.icon),of:"more"}))},l.default.createElement("div",null,Object.keys(t).map(((e,n)=>l.default.createElement(f,{key:n,title:e},t[e].map((e=>e&&l.default.createElement(p,{key:e.keyChar,lineTitle:e.title,keyChar:e.keyChar,onClick:e.handler})))))))))}},87651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuWidgetIcon=void 0;var r=n(21327);Object.defineProperty(t,"MenuWidgetIcon",{enumerable:!0,get:function(){return r.MenuWidgetIcon}})},21327:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MenuWidgetIcon=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(10818),l=n(52993),c=i(n(52887));t.MenuWidgetIcon=function(e){var{tooltipContent:t,icon:n,className:i}=e,u=r(e,["tooltipContent","icon","className"]);return o.default.createElement(l.Tooltip,{placement:"bottom",offset:[0,15],content:t},o.default.createElement("div",Object.assign({},u,{className:(0,s.default)(c.default.widgetMenuIcon,i)}),o.default.createElement(a.Icon,{of:n,className:c.default.icon})))}},31219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuWidgetSlot=t.MenuWidget=t.MenuProps=t.Menu=void 0;var r=n(61290);Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return r.Menu}}),Object.defineProperty(t,"MenuProps",{enumerable:!0,get:function(){return r.MenuProps}}),Object.defineProperty(t,"MenuWidget",{enumerable:!0,get:function(){return r.MenuWidget}}),Object.defineProperty(t,"MenuWidgetSlot",{enumerable:!0,get:function(){return r.MenuWidgetSlot}})},61290:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;const a=n(21215),l=s(n(80852)),c=o(n(72243)),u=n(82190),d=s(n(58043));t.Menu=function({menuSlot:e,widgetSlot:t,menuItemSlot:n,className:r}){const i=(0,c.useMemo)((()=>(0,u.groupBy)((0,u.flatten)(null===n||void 0===n?void 0:n.values()),"category")),[n]),o=(0,u.flatten)(null===t||void 0===t?void 0:t.values()),s=(0,u.flatten)(null===e||void 0===e?void 0:e.values());return c.default.createElement("div",{className:(0,l.default)(d.default.topBar,r)},c.default.createElement("div",{className:d.default.leftSide},s&&s.map(((e,t)=>c.default.createElement(e,{key:t})))),c.default.createElement("div",{className:d.default.rightSide},o&&o.map(((e,t)=>c.default.createElement(e,{key:t}))),c.default.createElement(a.MainDropdown,{menuItems:i})))}},39569:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reactRouterAdapter=void 0;var r=n(21521);Object.defineProperty(t,"reactRouterAdapter",{enumerable:!0,get:function(){return r.reactRouterAdapter}})},86744:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReactRouterLink=void 0;const l=o(n(72243)),c=a(n(92905)),u=n(57915),d=n(70014);t.ReactRouterLink=(0,l.forwardRef)((function(e,t){var{children:n=null,href:r="",state:i,style:o,className:a,activeClassName:p,activeStyle:f,active:h,exact:m,strict:g,native:_,external:b}=e,v=s(e,["children","href","state","style","className","activeClassName","activeStyle","active","exact","strict","native","external"]);const y=(0,l.useMemo)((()=>Object.assign(Object.assign({},(0,d.parsePath)(r)),{state:i})),[r,i]);return p||f?l.default.createElement(u.NavLink,Object.assign({to:y,ref:t,end:m,style:({isActive:e})=>Object.assign(Object.assign({},o),(null!==h&&void 0!==h?h:e)&&f),className:({isActive:e})=>(0,c.default)(a,(null!==h&&void 0!==h?h:e)&&p)},v),n):l.default.createElement(u.Link,Object.assign({},v,{className:a,style:o,to:y,ref:t}),n)}))},21521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reactRouterAdapter=void 0;const r=n(57915),i=n(86744);t.reactRouterAdapter={Link:i.ReactRouterLink,useLocation:r.useLocation,useNavigate:r.useNavigate}},92905:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&e.push(s)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},29521:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DismissButton=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(50995),l=n(67505),c=i(n(45107));t.DismissButton=function(e){var{visible:t,className:n}=e,i=r(e,["visible","className"]);const u=(0,l.useInOutTransition)(t,+c.default.animationTime);return o.default.createElement(a.Button,Object.assign({},i,{className:(0,s.default)(n,c.default.dismissButton,`${c.default.dismissButton}-${u}`)}),"Dismiss all")}},95554:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(29521),t)},32967:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(20752),t)},20752:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationCenter=void 0;const l=o(n(72243)),c=a(n(80852)),u=n(52252),d=n(89907),p=n(7125),f=a(n(32704)),h=n(95554);t.NotificationCenter=function(e){var{notifications:t}=e,n=s(e,["notifications"]);const[r,i]=(0,l.useState)(!1),o=(0,l.useContext)(d.NotificationContext),a=(0,l.useCallback)((()=>{i(!0),setTimeout((()=>{o.clear(),i(!1)}),+f.default.animationTime)}),[]),m=!r&&!!t&&t.length>1;return l.default.createElement("div",Object.assign({},n,{className:(0,c.default)(f.default.notificationCenter,r&&f.default.dismissing,p.darkMode)}),l.default.createElement("div",{className:f.default.notificationsContainer},null===t||void 0===t?void 0:t.reverse().map((e=>l.default.createElement(u.Notification,{key:e.id,entry:e})))),l.default.createElement("div",{className:f.default.actions},l.default.createElement(h.DismissButton,{visible:m,importance:"normal",className:f.default.dismissAll,onClick:a})))}},89907:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(89904),t)},89904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useNotifications=t.NotificationContext=void 0;const r=n(72243);t.NotificationContext=(0,r.createContext)({add:()=>"",log:()=>"",error:()=>"",dismiss:()=>{},clear:()=>{}});t.useNotifications=()=>(0,r.useContext)(t.NotificationContext)},52252:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(5610),t)},5610:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Notification=void 0;const a=n(96900),l=n(71828),c=n(18979),u=n(34971),d=s(n(80852)),p=o(n(72243)),f=n(81349),h=n(89907),m=s(n(36198)),g=+m.default.dismissTime;t.Notification=function({entry:e}){const[t,n]=(0,p.useState)(!1),r=(0,p.useContext)(h.NotificationContext),{level:i,time:o,message:s,id:_}=e,b=(0,p.useCallback)((()=>{n(!0),setTimeout((()=>{r.dismiss(_)}),g)}),[_]);return p.default.createElement(a.Card,{className:(0,d.default)(m.default.notification,t&&m.default.dismissing),elevation:"none"},p.default.createElement(f.LevelIcon,{level:i,className:m.default.icon}),p.default.createElement("div",{className:m.default.main},p.default.createElement("div",{className:m.default.type},i.toString()),p.default.createElement("div",{className:m.default.message},s),o&&p.default.createElement("div",{className:(0,d.default)(m.default.timestamp,l.mutedText)},p.default.createElement(c.TimeAgo,{date:o}))),p.default.createElement(u.XButton,{onClick:t?void 0:b}))}},43234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotificationsStore=t.MessageLevel=t.MessageId=t.Message=void 0;var r=n(28477);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return r.Message}}),Object.defineProperty(t,"MessageId",{enumerable:!0,get:function(){return r.MessageId}}),Object.defineProperty(t,"MessageLevel",{enumerable:!0,get:function(){return r.MessageLevel}}),Object.defineProperty(t,"NotificationsStore",{enumerable:!0,get:function(){return r.NotificationsStore}})},28477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageLevel=void 0,function(e){e.error="error",e.warning="warning",e.success="success",e.info="info"}(t.MessageLevel||(t.MessageLevel={}))},19588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavigationSlot=t.RouteSlot=t.SlotRouterProps=t.SlotRouter=void 0;var r=n(79440);Object.defineProperty(t,"SlotRouter",{enumerable:!0,get:function(){return r.SlotRouter}}),Object.defineProperty(t,"SlotRouterProps",{enumerable:!0,get:function(){return r.SlotRouterProps}}),Object.defineProperty(t,"RouteSlot",{enumerable:!0,get:function(){return r.RouteSlot}}),Object.defineProperty(t,"NavigationSlot",{enumerable:!0,get:function(){return r.NavigationSlot}})},79440:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SlotRouter=void 0;const i=r(n(72243)),o=n(57915),s=n(82190);function a(e){return e.path?e.path:e.index?"/":"."}t.SlotRouter=function({routes:e,slot:t,rootRoutes:n,children:r,parentPath:l}){const c=(e||t&&(0,s.flatten)(t.values())||[]).concat(n||[]).map((e=>i.default.createElement(o.Route,Object.assign({key:a(e)},e))));return i.default.createElement(o.Routes,null,i.default.createElement(o.Route,{path:l},c,r))}},31192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useQuery=void 0;var r=n(80891);Object.defineProperty(t,"useQuery",{enumerable:!0,get:function(){return r.useQuery}})},80891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useQuery=void 0;const r=n(31333);t.useQuery=function(){const{search:e}=(0,r.useLocation)()||{search:"/"};return new URLSearchParams(e)}},87024:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentTree=void 0;const s=n(21475),a=o(n(72243)),l=n(31333),c=n(55899),u=n(56899),d=n(68708),p=n(5433),f=n(93337),h=n(86882),m=n(51481);t.ComponentTree=function({components:e,isCollapsed:t,className:n,transformTree:r,TreeNode:i=m.DefaultTreeNodeRenderer}){const{pathname:o="/"}=(0,l.useLocation)()||{},g=o.split(p.LanesModel.baseLaneComponentRoute.concat("/"))[1],_=(0,s.useIdFromLocation)(g),b=(0,a.useMemo)((()=>{const t=e.find((e=>_&&(_===e.id.fullName||_===e.id.toStringWithoutVersion())));return null===t||void 0===t?void 0:t.id.toString({ignoreVersion:!0})}),[e,o]),v=(0,a.useMemo)((()=>{const t=(0,u.inflateToTree)(e,(e=>e.id.toString({ignoreVersion:!0}))),n=function(e){const t=new Map(e.map((e=>[e.id.toString({ignoreVersion:!0}),e]))),n=new Set(e.map((e=>e.id.scope)).filter((e=>!!e)));return n.forEach((e=>e&&t.set(`${e}/`,new h.ScopePayload))),t}(e);return(0,u.attachPayload)(t,n),r?r(t):t}),[e]);return a.default.createElement(f.TreeContextProvider,null,a.default.createElement("div",{style:(0,c.indentStyle)(1),className:n},a.default.createElement(d.Tree,{TreeNode:i,activePath:b,tree:v,isCollapsed:t})))}},93937:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentView=void 0;const a=n(31333),l=n(81846),c=n(77959),u=s(n(80852)),d=n(21475),p=n(45887),f=o(n(72243)),h=n(52993),m=n(93337),g=n(55899),_=n(70976),b=n(87431),v=n(5433),y=n(32708),S=s(n(72887));t.ComponentView=function(e){var t,n,r,i;const{node:o}=e,s=o.payload,{onSelect:E}=(0,f.useContext)(m.TreeContext),{lanesModel:w}=(e.useLanes||_.useLanes)(),C=(0,f.useCallback)((e=>{E&&E(o.id,e)}),[E,o.id]),O=(0,a.useLocation)(),T=(0,b.useScope)();if(!(s instanceof d.ComponentModel))return null;const N=d.ComponentID.fromString(null===(t=s.environment)||void 0===t?void 0:t.id),I=f.default.createElement(a.Link,{className:S.default.envLink,href:p.ComponentUrl.toUrl(N,{includeVersion:!0,useLocationOrigin:!window.location.host.startsWith("localhost")}),external:!0,onClick:e=>{e.stopPropagation()}},f.default.createElement("div",{className:S.default.componentEnvTitle},"Environment"),f.default.createElement("div",null,null===(n=s.environment)||void 0===n?void 0:n.id)),x=null===w||void 0===w?void 0:w.getLaneComponentUrlByVersion(s.id,null===(r=w.viewedLane)||void 0===r?void 0:r.id),k=f.default.useMemo((()=>{var e,t;return!(null===(e=null===w||void 0===w?void 0:w.viewedLane)||void 0===e?void 0:e.id.isDefault())&&(null===w||void 0===w?void 0:w.isComponentOnMainButNotOnLane(s.id,void 0,null===(t=null===w||void 0===w?void 0:w.viewedLane)||void 0===t?void 0:t.id))}),[null===(i=null===w||void 0===w?void 0:w.viewedLane)||void 0===i?void 0:i.id.toString(),s.id.toString()]),R=k?f.default.createElement(h.Tooltip,{className:S.default.onMainTooltip,placement:"right",content:"On Main"},f.default.createElement("span",null,(0,y.getName)(o.id))):f.default.createElement("span",null,(0,y.getName)(o.id)),P=f.default.useMemo((()=>{var e,t,n,r,i,o;if(!x||!O)return!1;const a=O.pathname.substring(1).split("?")[0],l=s.id.toStringWithoutVersion(),c=s.id.fullName,u=(x.startsWith("/")?x.substring(1):x).split("?")[0],p=(null===w||void 0===w?void 0:w.currentLane)&&w.currentLane.id.toString()===(null===(e=null===w||void 0===w?void 0:w.viewedLane)||void 0===e?void 0:e.id.toString());if((null===(t=null===w||void 0===w?void 0:w.viewedLane)||void 0===t?void 0:t.id.isDefault())||k||p){const e=a.split("/~")[0],t=T.name?`${T.name.replace(".","/")}/`:"";return u===e.replace(t,"")}const f=null!==(r=(null!==(n=a.split(v.LanesModel.baseLaneComponentRoute)[1])&&void 0!==n?n:"").split("/~")[0])&&void 0!==r?r:"",h=f.startsWith("/")?f.substring(1):f,m=d.ComponentID.tryFromString(h);return!T.name&&(null===(i=null===w||void 0===w?void 0:w.viewedLane)||void 0===i?void 0:i.id)&&s.id.scope===(null===(o=null===w||void 0===w?void 0:w.viewedLane)||void 0===o?void 0:o.id.scope)?c===h:!!m&&((null===m||void 0===m?void 0:m.toString())===l||m.fullName===c)}),[x,k,null===O||void 0===O?void 0:O.pathname,s.id.toString(),T]);return f.default.createElement(a.Link,{href:x,className:(0,u.default)(g.indentClass,S.default.component,k&&S.default.mainOnly),activeClassName:S.default.active,onClick:C,active:P},f.default.createElement("div",{className:S.default.left},f.default.createElement(h.Tooltip,{className:S.default.componentEnvTooltip,placement:"right",content:I},f.default.createElement(l.EnvIcon,{component:s,className:S.default.envIcon})),R),f.default.createElement("div",{className:S.default.right},f.default.createElement(c.DeprecationIcon,{component:s}),e.treeNodeSlot&&e.treeNodeSlot.toArray().map((([e,t])=>f.default.createElement(t.widget,{key:e,component:s})))))}},51214:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(93937),t)},34391:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTreeNodeRenderer=void 0;const i=r(n(72243)),o=n(86882),s=n(51214),a=n(6999),l=n(82862);t.DefaultTreeNodeRenderer=function(e){return e.node.children?e.node.payload instanceof o.ScopePayload?i.default.createElement(a.ScopeTreeNode,Object.assign({},e)):i.default.createElement(l.NamespaceTreeNode,Object.assign({},e)):i.default.createElement(s.ComponentView,Object.assign({},e))}},51481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTreeNodeRenderer=void 0;var r=n(34391);Object.defineProperty(t,"DefaultTreeNodeRenderer",{enumerable:!0,get:function(){return r.DefaultTreeNodeRenderer}})},36391:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopePayload=t.NamespaceTreeNode=t.ScopeTreeNode=t.ComponentView=void 0,i(n(87024),t);var o=n(51214);Object.defineProperty(t,"ComponentView",{enumerable:!0,get:function(){return o.ComponentView}});var s=n(6999);Object.defineProperty(t,"ScopeTreeNode",{enumerable:!0,get:function(){return s.ScopeTreeNode}});var a=n(82862);Object.defineProperty(t,"NamespaceTreeNode",{enumerable:!0,get:function(){return a.NamespaceTreeNode}});var l=n(86882);Object.defineProperty(t,"ScopePayload",{enumerable:!0,get:function(){return l.ScopePayload}})},82862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceTreeNode=void 0;var r=n(28820);Object.defineProperty(t,"NamespaceTreeNode",{enumerable:!0,get:function(){return r.NamespaceTreeNode}})},28820:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceTreeNode=void 0;const a=n(10818),l=s(n(80852)),c=o(n(72243)),u=s(n(57196)),d=n(55899),p=n(68708),f=n(32708),h=s(n(20760));t.NamespaceTreeNode=function({node:e,depth:t}){const{isCollapsed:n,activePath:r}=(0,p.useTree)(),i=null===r||void 0===r?void 0:r.startsWith(e.id),o=i||!n,[s,m]=(0,c.useState)(o),g=(0,c.useRef)(!0);(0,c.useEffect)((()=>{g.current||!0===i&&m(!0)}),[i]),(0,c.useEffect)((()=>{g.current||m(!n)}),[n]),(0,c.useEffect)((()=>{g.current=!1}),[]);const _=(0,f.getName)(e.id.replace(/\/$/,"")),b=!s&&i;return c.default.createElement("div",null,e.id&&c.default.createElement("div",{className:(0,l.default)(d.indentClass,h.default.namespace,b&&h.default.highlighted),onClick:()=>m(!s)},c.default.createElement("div",{className:h.default.left},c.default.createElement(a.Icon,{className:(0,l.default)(h.default.arrow,!s&&h.default.collapsed),of:"fat-arrow-down"}),c.default.createElement("span",{className:h.default.name},_))),c.default.createElement(u.default,{height:s?"auto":0},c.default.createElement("div",{style:(0,d.indentStyle)(t+1),className:(0,l.default)(h.default.componentTree)},e.children&&c.default.createElement(p.TreeLayer,{childNodes:e.children,depth:t}))))}},86882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopePayload=void 0;t.ScopePayload=class{get isScope(){return!0}}},6999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeTreeNode=void 0;var r=n(1998);Object.defineProperty(t,"ScopeTreeNode",{enumerable:!0,get:function(){return r.ScopeTreeNode}})},1998:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeTreeNode=void 0;const a=n(10818),l=s(n(80852)),c=o(n(72243)),u=s(n(57196)),d=n(68708),p=n(32708),f=s(n(46105));t.ScopeTreeNode=function({node:e,depth:t}){const{isCollapsed:n,activePath:r}=(0,d.useTree)(),i=null===r||void 0===r?void 0:r.startsWith(e.id),o=i||!n,[s,h]=(0,c.useState)(o),m=(0,p.getName)(e.id.replace(/\/$/,"")),g=(0,c.useRef)(!0);(0,c.useEffect)((()=>{g.current||!0===i&&h(!0)}),[i]),(0,c.useEffect)((()=>{g.current||h(!n)}),[n]),(0,c.useEffect)((()=>{g.current=!1}),[]);const _=!s&&i;return c.default.createElement("div",null,e.id&&c.default.createElement("div",{className:(0,l.default)(d.indentClass,f.default.scope,_&&f.default.highlighted),onClick:()=>h(!s)},c.default.createElement("div",{className:f.default.left},c.default.createElement(a.Icon,{className:(0,l.default)(f.default.arrow,!s&&f.default.collapsed),of:"fat-arrow-down"}),c.default.createElement(a.Icon,{className:f.default.arrow,of:"collection-full"}),c.default.createElement("span",{className:f.default.name},m))),c.default.createElement(u.default,{height:s?"auto":0},c.default.createElement("div",{style:(0,d.indentStyle)(t+1),className:(0,l.default)(f.default.componentTree)},e.children&&c.default.createElement(d.TreeLayer,{childNodes:e.children,depth:t+1}))))}},32708:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getName=void 0,t.getName=function(e){return e.split("/").pop()}},31172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopePayload=t.PayloadType=t.NamespaceTreeNode=t.ScopeTreeNode=t.ComponentView=t.ComponentTree=void 0;var r=n(36391);Object.defineProperty(t,"ComponentTree",{enumerable:!0,get:function(){return r.ComponentTree}}),Object.defineProperty(t,"ComponentView",{enumerable:!0,get:function(){return r.ComponentView}}),Object.defineProperty(t,"ScopeTreeNode",{enumerable:!0,get:function(){return r.ScopeTreeNode}}),Object.defineProperty(t,"NamespaceTreeNode",{enumerable:!0,get:function(){return r.NamespaceTreeNode}}),Object.defineProperty(t,"PayloadType",{enumerable:!0,get:function(){return r.PayloadType}}),Object.defineProperty(t,"ScopePayload",{enumerable:!0,get:function(){return r.ScopePayload}})},88907:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopBarProps=t.TopBar=void 0;var r=n(82391);Object.defineProperty(t,"TopBar",{enumerable:!0,get:function(){return r.TopBar}}),Object.defineProperty(t,"TopBarProps",{enumerable:!0,get:function(){return r.TopBarProps}})},82391:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TopBar=void 0;const o=n(19588),s=i(n(80852)),a=i(n(72243)),l=i(n(59787));t.TopBar=function(e){var{Corner:t,menu:n,className:i}=e,c=r(e,["Corner","menu","className"]);return a.default.createElement("div",Object.assign({},c,{className:(0,s.default)(l.default.topbar,i)}),a.default.createElement(t,null),a.default.createElement(o.SlotRouter,{slot:n}))}},87906:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerUI=void 0;const o=n(10818),s=i(n(80852)),a=i(n(72243)),l=i(n(64650));function c({children:e}){return a.default.createElement(a.default.Fragment,null,e)}t.DrawerUI=function(e){var{name:t,children:n,className:i,isOpen:u,onToggle:d,Widgets:p,Context:f=c,contentClass:h,drawerNameClass:m}=e,g=r(e,["name","children","className","isOpen","onToggle","Widgets","Context","contentClass","drawerNameClass"]);return t?a.default.createElement("div",Object.assign({},g,{className:(0,s.default)(l.default.drawer,i)}),a.default.createElement(f,null,a.default.createElement("div",{className:(0,s.default)(l.default.drawerName,u&&l.default.open,m)},a.default.createElement("div",{onClick:d},a.default.createElement(o.Icon,{className:(0,s.default)(l.default.arrow,!u&&l.default.collapsed),of:"fat-arrow-down"}),a.default.createElement("span",null,t)),null===p||void 0===p?void 0:p.map(((e,t)=>a.default.createElement(a.default.Fragment,{key:t},e)))),a.default.createElement("div",{className:(0,s.default)(l.default.drawerContent,h,u&&l.default.open)},n))):null}},63153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerUI=void 0;var r=n(87906);Object.defineProperty(t,"DrawerUI",{enumerable:!0,get:function(){return r.DrawerUI}})},60500:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useFileTreeContext=t.FileTreeContext=void 0;const r=n(72243);t.FileTreeContext=(0,r.createContext)(void 0);t.useFileTreeContext=()=>(0,r.useContext)(t.FileTreeContext)},63675:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FileTree=void 0;const a=o(n(72243)),l=n(56899),c=n(93337),u=n(55899),d=n(9425),p=n(39090),f=n(58997),h=n(60500);t.FileTree=function(e){var{files:t,onTreeNodeSelected:n,selected:r,getIcon:i,getHref:o,widgets:m,payloadMap:g,TreeNode:_=f.FileTreeNode}=e,b=s(e,["files","onTreeNodeSelected","selected","getIcon","getHref","widgets","payloadMap","TreeNode"]);const v=(0,a.useMemo)((()=>{const e=t.map((e=>e.replace(/\\/g,"/"))),n=(0,l.inflateToTree)(e,(e=>e));return g&&(0,l.attachPayload)(n,g),n}),[t,g]);return a.default.createElement("div",Object.assign({style:Object.assign(Object.assign({},(0,u.indentStyle)(1)),b.style)},b),a.default.createElement(h.FileTreeContext.Provider,{value:{getIcon:i,getHref:o,widgets:m}},a.default.createElement(p.TreeNodeContext.Provider,{value:_},a.default.createElement(c.TreeContextProvider,{onSelect:n,selected:r},a.default.createElement(d.RootNode,{node:v,depth:1})))))}},58997:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FileTreeNode=void 0;const s=o(n(72243)),a=n(93337),l=n(58776),c=n(21042),u=n(60500);t.FileTreeNode=function(e){var t,n;const{node:r}=e,i=(0,u.useFileTreeContext)(),{selected:o,onSelect:d}=(0,s.useContext)(a.TreeContext),p=null===(t=null===i||void 0===i?void 0:i.getHref)||void 0===t?void 0:t.call(i,r),f=null===i||void 0===i?void 0:i.widgets,h=null===(n=null===i||void 0===i?void 0:i.getIcon)||void 0===n?void 0:n.call(i,r);return(null===r||void 0===r?void 0:r.children)?s.default.createElement(c.FolderTreeNode,Object.assign({},e)):s.default.createElement(l.TreeNode,Object.assign({},e,{onClick:d&&(e=>d(r.id,e)),href:p,isActive:(null===r||void 0===r?void 0:r.id)===o,icon:h,widgets:f}))}},80271:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileTree=t.useFileTreeContext=void 0;var r=n(60500);Object.defineProperty(t,"useFileTreeContext",{enumerable:!0,get:function(){return r.useFileTreeContext}});var i=n(63675);Object.defineProperty(t,"FileTree",{enumerable:!0,get:function(){return i.FileTree}})},83293:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FolderTreeNode=void 0;const a=n(67118),l=s(n(80852)),c=o(n(72243)),u=n(55899),d=n(79032),p=s(n(39793));t.FolderTreeNode=function({node:e,depth:t,className:n}){var r,i,o,s;const[f,h]=(0,c.useState)(null===(i=null===(r=e.payload)||void 0===r?void 0:r.open)||void 0===i||i);(0,c.useEffect)((()=>{var t,n;void 0!==(null===(t=null===e||void 0===e?void 0:e.payload)||void 0===t?void 0:t.open)&&h(null===(n=null===e||void 0===e?void 0:e.payload)||void 0===n?void 0:n.open)}),[null===(o=null===e||void 0===e?void 0:e.payload)||void 0===o?void 0:o.open]);const m=e.id.replace(/\/$/,"").split("/").pop(),g=(_=null===(s=e.payload)||void 0===s?void 0:s.icon)?"string"===typeof _?_.startsWith("http")?c.default.createElement("img",{src:_,className:p.default.img}):c.default.createElement(a.Icon,{className:p.default.icon,of:_}):_:null;var _;const b=e.id&&c.default.createElement("div",{className:(0,l.default)(u.indentClass,p.default.folder,n),onClick:()=>h(!f)},c.default.createElement("div",{className:p.default.left},c.default.createElement(a.Icon,{className:(0,l.default)(p.default.icon,!f&&p.default.collapsed),of:"fat-arrow-down"}),g,c.default.createElement("span",{className:p.default.name},m)));return c.default.createElement(d.CollapsableTreeNode,{title:b,isOpen:f,node:e,depth:t})}},21042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FolderTreeNode=void 0;var r=n(83293);Object.defineProperty(t,"FolderTreeNode",{enumerable:!0,get:function(){return r.FolderTreeNode}})},58776:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(23830),t)},23830:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TreeNode=void 0;const i=n(31333),o=r(n(80852)),s=r(n(72243)),a=n(55899),l=r(n(84125));t.TreeNode=function(e){const{node:t,isActive:n,icon:r,onClick:c,widgets:u,href:d,className:p,activeClassName:f}=e;return s.default.createElement(i.Link,{href:d||t.id,active:n,exact:!0,strict:!0,className:(0,o.default)(a.indentClass,l.default.fileNode,p),activeClassName:(0,o.default)(f||l.default.active)},s.default.createElement("div",{className:l.default.left,onClick:c},r&&s.default.createElement("img",{className:l.default.icon,src:r}),s.default.createElement("span",null,t.id.split("/").pop())),s.default.createElement("div",{className:l.default.right},null===u||void 0===u?void 0:u.map(((e,n)=>s.default.createElement(e,{key:n,node:t})))))}},2195:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BitInfo=void 0;const o=i(n(72243)),s=n(10818),a=n(689),l=n(32066),c=n(20359),u=n(31333),d=n(40881),p=i(n(94988));t.BitInfo=function(e){var t=r(e,[]);return o.default.createElement("div",Object.assign({},t),o.default.createElement(c.TabContent,{className:p.default.moreInfo,bottom:o.default.createElement(u.Link,{external:!0,href:a.links.installBit,className:d.linkStyles},o.default.createElement(s.Icon,{of:"information-sign"}),o.default.createElement("span",null,"Learn more"))},o.default.createElement("div",null,"Install bit version manager"),o.default.createElement(l.CopyBox,null,"npm i -g @teambit/bvm"),o.default.createElement("div",null,"Install bit"),o.default.createElement(l.CopyBox,null,"bvm install")))}},74492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BitInfo=void 0;var r=n(2195);Object.defineProperty(t,"BitInfo",{enumerable:!0,get:function(){return r.BitInfo}})},40881:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.linkStyles=void 0;const i=r(n(76121));t.linkStyles=i.default.link},53435:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UseBoxDropdown=void 0;const l=o(n(72243)),c=a(n(80852)),u=n(20889),d=n(10818),p=a(n(38031));function f(e){var{actionName:t="Use",actionIcon:n="package"}=e,r=s(e,["actionName","actionIcon"]);return l.default.createElement("div",Object.assign({className:(0,c.default)(p.default.placeholder)},r),l.default.createElement(d.Icon,{of:n}),l.default.createElement("div",{className:p.default.content},t),l.default.createElement(d.Icon,{className:p.default.content,of:"fat-arrow-down"}))}t.UseBoxDropdown=function(e){var{className:t,Menu:n,actionName:r,actionIcon:i}=e,o=s(e,["className","Menu","actionName","actionIcon"]);const[a,d]=(0,l.useState)(0),h=l.default.cloneElement(n,{key:a});return l.default.createElement(u.Dropdown,Object.assign({className:(0,c.default)(t)},o,{onChange:(e,t)=>t&&d((e=>e+1)),dropClass:p.default.menu,placeholder:l.default.createElement(f,{actionName:r,actionIcon:i}),clickToggles:!1,clickPlaceholderToggles:!0}),h)}},2358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UseBoxDropdown=void 0;var r=n(53435);Object.defineProperty(t,"UseBoxDropdown",{enumerable:!0,get:function(){return r.UseBoxDropdown}})},57262:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Import=void 0;const o=i(n(72243)),s=n(10818),a=i(n(80852)),l=n(20359),c=n(74492),u=n(21344),d=i(n(56657));t.Import=function(e){var{componentId:t,packageName:n,componentName:i,showInstallMethod:p=!0}=e,f=r(e,["componentId","packageName","componentName","showInstallMethod"]);return o.default.createElement(l.ExpandableTabContent,Object.assign({},f,{content:o.default.createElement("div",{className:d.default.importContent},o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:(0,a.default)(!p&&d.default.disabled)},!p&&o.default.createElement(s.Icon,{className:d.default.warnIcon,of:"warn-circle"}),p&&`Add ${i} as a dependency`,!p&&"Installation unavailable: This component has not been built yet"),p&&o.default.createElement(u.TooltipCopybox,{content:`bit install ${null!==n&&void 0!==n?n:""}`,disabled:!p})),o.default.createElement("div",null,`Import ${i} to your workspace`),o.default.createElement(u.TooltipCopybox,{content:`bit import ${t}`}),o.default.createElement("div",null,`Fork ${i} to your workspace`),o.default.createElement(u.TooltipCopybox,{content:`bit fork ${t}`})),drawerTitle:o.default.createElement("div",{className:d.default.bottom},o.default.createElement(s.Icon,{color:"yellow",of:"download"}),o.default.createElement("span",null,"Install Bit on your computer")),drawerContent:o.default.createElement(c.BitInfo,null)}))}},30595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Registry=t.Install=t.Import=t.Menu=void 0;var r=n(32940);Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return r.Menu}});var i=n(57262);Object.defineProperty(t,"Import",{enumerable:!0,get:function(){return i.Import}});var o=n(86027);Object.defineProperty(t,"Install",{enumerable:!0,get:function(){return o.Install}});var s=n(41429);Object.defineProperty(t,"Registry",{enumerable:!0,get:function(){return s.Registry}})},86027:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Install=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(10818),l=n(51186),c=n(20359),u=n(21344),d=n(41429),p=i(n(56657));t.Install=function(e){var{componentName:t,copyString:n,registryName:i,packageManager:f,config:h,isInstallable:m}=e,g=r(e,["componentName","copyString","registryName","packageManager","config","isInstallable"]);return o.default.createElement(c.ExpandableTabContent,Object.assign({},g,{content:o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:(0,s.default)(!m&&p.default.disabled)},!m&&o.default.createElement(a.Icon,{className:p.default.warnIcon,of:"warn-circle"}),m&&`Install ${t} with ${f}`,!m&&"Installation unavailable: This component has not been built yet"),m&&o.default.createElement(u.TooltipCopybox,{content:n,disabled:!m})),drawerTitle:i&&o.default.createElement("div",{className:p.default.bottom},o.default.createElement(a.Icon,{of:"settings"}),o.default.createElement("span",null,"Configure ",o.default.createElement(l.HighlightedText,null,i)," as a Scoped Registry")),drawerContent:i&&o.default.createElement(d.Registry,{copyString:h})}))}},32940:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;const l=o(n(72243)),c=a(n(80852)),u=n(10818),d=a(n(31662)),p=a(n(92)),f=n(13529),h=a(n(56657));t.Menu=function(e){var{methods:t,componentName:n}=e,r=s(e,["methods","componentName"]);const[i,o]=(0,l.useState)(0),a=(0,l.useMemo)((()=>(0,d.default)((0,p.default)(t),["order"])),[t]),{Component:m}=a[i]||{};return l.default.createElement("div",Object.assign({},r,{className:(0,c.default)(r.className,h.default.container)}),l.default.createElement("div",{className:h.default.top},l.default.createElement("div",{className:h.default.title},l.default.createElement(u.Icon,{of:"terminal"}),l.default.createElement("span",null,`Use ${n}`))),l.default.createElement("div",{className:h.default.tabs},a.map((({Title:e},t)=>l.default.createElement(f.Tab,{key:t,isActive:i===t,onClick:()=>o(t)},e)))),m)}},41429:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Registry=void 0;const o=i(n(72243)),s=n(10818),a=n(689),l=n(32066),c=n(20359),u=n(40881),d=n(31333),p=i(n(56657));t.Registry=function(e){var{copyString:t}=e,n=r(e,["copyString"]);return o.default.createElement(c.TabContent,Object.assign({},n,{className:p.default.registry,bottom:o.default.createElement(d.Link,{external:!0,href:a.links.scopedRegistry,className:u.linkStyles},o.default.createElement(s.Icon,{of:"information-sign"}),o.default.createElement("span",null,"Learn more"))}),o.default.createElement(l.CopyBox,null,t))}},21344:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipCopybox=void 0;const o=i(n(72243)),s=n(32066),a=n(52993);t.TooltipCopybox=function(e){var{content:t}=e,n=r(e,["content"]);return o.default.createElement(a.Tooltip,Object.assign({},n,{content:t,placement:"bottom",maxWidth:"",breakline:!0}),o.default.createElement("div",null,o.default.createElement(s.CopyBox,null,t)))}},43116:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;var r=n(85987);Object.defineProperty(t,"Menu",{enumerable:!0,get:function(){return r.Menu}})},85987:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Menu=void 0;const o=i(n(72243)),s=n(10818),a=n(32066),l=n(20359),c=n(64528),u=n(74492),d=i(n(56297));t.Menu=function(e){var{scopeName:t}=e,n=r(e,["scopeName"]);return o.default.createElement("div",Object.assign({},n),o.default.createElement("div",{className:d.default.top},o.default.createElement("div",{className:d.default.title},o.default.createElement(s.Icon,{of:"terminal"}),o.default.createElement(c.Ellipsis,null,`Bulk import from ${t}`))),o.default.createElement(l.ExpandableTabContent,{content:o.default.createElement("div",{className:d.default.importContent},o.default.createElement("div",null,"Use a glob-pattern to import multiple components"),o.default.createElement(a.CopyBox,null,`bit import "${t}/*"`)),drawerTitle:o.default.createElement("div",{className:d.default.drawerTitle},o.default.createElement(s.Icon,{of:"download"}),o.default.createElement("span",null,"Install Bit on your computer")),drawerContent:o.default.createElement(u.BitInfo,null)}))}},31999:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandableTabContent=void 0;const l=o(n(72243)),c=a(n(80852)),u=a(n(57196)),d=n(10818),p=n(20359),f=n(40881),h=a(n(40260));t.ExpandableTabContent=function(e){var{content:t,drawerContent:n,drawerTitle:r}=e,i=s(e,["content","drawerContent","drawerTitle"]);const[o,a]=(0,l.useState)(!1),m=o?h.default.open:"";return l.default.createElement(p.TabContent,Object.assign({},i,{bottom:r&&n&&l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:(0,c.default)(f.linkStyles,h.default.drawer),onClick:()=>a(!o)},l.default.createElement("div",null,r),l.default.createElement(d.Icon,{of:"down-rounded-corners",className:m})),l.default.createElement(u.default,{height:o?"auto":0},n))}),t)}},20359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandableTabContent=t.TabContent=void 0;var r=n(76709);Object.defineProperty(t,"TabContent",{enumerable:!0,get:function(){return r.TabContent}});var i=n(31999);Object.defineProperty(t,"ExpandableTabContent",{enumerable:!0,get:function(){return i.ExpandableTabContent}})},76709:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TabContent=void 0;const o=i(n(72243)),s=i(n(40260));t.TabContent=function(e){var{children:t,bottom:n}=e,i=r(e,["children","bottom"]);return o.default.createElement("div",Object.assign({},i),o.default.createElement("div",{className:s.default.middle},t),n&&o.default.createElement("div",{className:s.default.bottom},n))}},13529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;var r=n(20709);Object.defineProperty(t,"Tab",{enumerable:!0,get:function(){return r.Tab}})},20709:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tab=void 0;const o=i(n(72243)),s=i(n(80852)),a=i(n(36591));t.Tab=function(e){var{onClick:t,isActive:n,className:i,children:l}=e,c=r(e,["onClick","isActive","className","children"]);return o.default.createElement("div",Object.assign({},c,{className:(0,s.default)(a.default.tab,n&&a.default.active,i),onClick:t}),l)}},85415:(e,t,n)=>{"use strict";function r(){const e=n(14527);return r=function(){return e},e}function i(){const e=n(13731);return i=function(){return e},e}function o(){const e=n(47458);return o=function(){return e},e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.BundleUiTask=t.BUNDLE_UI_TASK_NAME=t.BUNDLE_UI_HASH_FILENAME=t.BUNDLE_UI_DIR=void 0;const a="BundleUI";t.BUNDLE_UI_TASK_NAME=a;const l="ui-bundle";t.BUNDLE_UI_DIR=l;const c=".hash";t.BUNDLE_UI_HASH_FILENAME=c;class u{constructor(e,t){this.ui=e,this.logger=t,s(this,"aspectId","teambit.ui-foundation/ui"),s(this,"name",a),s(this,"location","end")}async execute(e){const t=e.capsuleNetwork.seedersCapsules.find((e=>e.component.id.toStringWithoutVersion()===o().UIAspect.id));if(!t)return{componentsResults:[]};const n=(0,r().join)(t.path,u.getArtifactDirectory());this.logger.info(`Generating UI bundle at ${n}...`);try{await this.ui.build(void 0,n),await this.generateHash(n)}catch(i){throw this.logger.error("Generating UI bundle failed"),new Error("Generating UI bundle failed")}return{componentsResults:[],artifacts:u.getArtifactDef()}}async generateHash(e){const t=this.ui.getUi();if(!t)throw new Error("no uiRoot found");const[,n]=t,o=await this.ui.createBundleUiHash(n);(0,i().existsSync)(e)||(0,i().mkdirSync)(e),(0,i().writeFileSync)((0,r().join)(e,c),o)}static getArtifactDirectory(){return(0,r().join)("artifacts",l)}static getArtifactDef(){return[{name:l,globPatterns:["**"],rootDir:u.getArtifactDirectory()}]}}t.BundleUiTask=u},70852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(83267);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},83267:(e,t,n)=>{"use strict";function r(){const e=n(91555);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.UiServerStartedEvent=void 0;class i{constructor(e,t,n){this.targetHost=e,this.targetPort=t,this.uiRoot=n}}class o extends r().BitBaseEvent{constructor(e,t,n,r){super(o.TYPE,"0.0.1",e,new i(t,n,r)),this.timestamp=e,this.targetHost=t,this.targetPort=n,this.uiRoot=r}}t.UiServerStartedEvent=o,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o,"TYPE","ui-server-started")},47458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={UIAspect:!0,UIRuntime:!0,UIRoot:!0,PostStartOptions:!0,ProxyEntry:!0,BUNDLE_UI_DIR:!0,BundleUiTask:!0,DataQueryResult:!0,useDataQuery:!0,useMutation:!0};function i(){const e=n(11869);return i=function(){return e},e}Object.defineProperty(t,"BUNDLE_UI_DIR",{enumerable:!0,get:function(){return a().BUNDLE_UI_DIR}}),Object.defineProperty(t,"BundleUiTask",{enumerable:!0,get:function(){return a().BundleUiTask}}),Object.defineProperty(t,"DataQueryResult",{enumerable:!0,get:function(){return l().DataQueryResult}}),Object.defineProperty(t,"PostStartOptions",{enumerable:!0,get:function(){return s().PostStartOptions}}),Object.defineProperty(t,"ProxyEntry",{enumerable:!0,get:function(){return s().ProxyEntry}}),Object.defineProperty(t,"UIAspect",{enumerable:!0,get:function(){return i().UIAspect}}),Object.defineProperty(t,"UIRoot",{enumerable:!0,get:function(){return s().UIRoot}}),Object.defineProperty(t,"UIRuntime",{enumerable:!0,get:function(){return i().UIRuntime}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i().UIAspect}}),Object.defineProperty(t,"useDataQuery",{enumerable:!0,get:function(){return l().useDataQuery}}),Object.defineProperty(t,"useMutation",{enumerable:!0,get:function(){return c().useMutation}});var o=n(70852);function s(){const e=n(78172);return s=function(){return e},e}function a(){const e=n(85415);return a=function(){return e},e}function l(){const e=n(41815);return l=function(){return e},e}function c(){const e=n(17642);return c=function(){return e},e}Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},78172:()=>{},11869:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UIRuntime=t.UIAspect=void 0;const i=new(r().RuntimeDefinition)("ui");t.UIRuntime=i;const o=r().Aspect.create({id:"teambit.ui-foundation/ui",declareRuntime:i});t.UIAspect=o;var s=o;t.default=s},43803:(e,t,n)=>{"use strict";var r=n(71933),i=n(3488),o=n(68584),s=n(6072),a=n(38296),l=n(80654),c=n(54393),u=n(71450),d=n(41305),p=n(55445),f=n(11869),h=n(47157),m=n(57154),g=n(95356),_=n(73797),b=n(88732),v=n(39489),y=n(75350),S=n(25319),E=n(46431),w=n(36578),C=n(31747),O=n(31364),T=n(70297),N=n(3682),I=n(53204),x=n(73445),k=n(68111),R=n(65647),P=n(73439),A=n(83732),L=n(19198);n(84507),n(94440),n(61009),n(92818),n(5168),n(21786),n(89114),n(98643),n(37481),n(23484),n(61229),n(83947),n(6055),n(83245),n(11038),n(99634),n(31209),n(57455),n(94818),n(75661),n(13218),n(31814),n(53299),n(4493),n(1135),n(50083),n(72241),n(79276),n(29942),n(58889),n(50453);const D="undefined"!==typeof window,M=D?window.harmonyAppConfig:void 0,j={...JSON.parse('{"teambit.workspace/workspace":{"name":"bit","icon":"https://static.bit.dev/bit-logo.svg","defaultScope":"teambit.bit","defaultDirectory":"components"},"teambit.dependencies/dependency-resolver":{"packageManager":"teambit.dependencies/pnpm","policy":{"dependencies":{"@babel/core":"7.19.6","@babel/preset-react":"7.22.15","@babel/preset-typescript":"7.22.15","@babel/types":"7.22.3","@graphql-modules/core":"0.7.17","@graphql-tools/schema":"^10.0.0","@jest/test-result":"26.6.2","@mdx-js/mdx":"1.6.21","@mdx-js/react":"1.6.22","@monaco-editor/react":"4.4.6","@pmmmwh/react-refresh-webpack-plugin":"0.5.4","@pnpm/client":"10.0.24","@pnpm/colorize-semver-diff":"1.0.1","@pnpm/config":"19.0.3","@pnpm/core":"12.1.1","@pnpm/default-reporter":"12.3.5","@pnpm/dependency-path":"2.1.3","@pnpm/error":"5.0.2","@pnpm/fetch":"7.0.3","@pnpm/lockfile-file":"8.1.2","@pnpm/logger":"5.0.0","@pnpm/modules-yaml":"12.1.2","@pnpm/network.agent":"0.1.0","@pnpm/network.ca-file":"1.0.2","@pnpm/package-store":"19.0.0","@pnpm/parse-overrides":"4.0.2","@pnpm/pick-registry-for-package":"5.0.2","@pnpm/plugin-commands-publishing":"7.3.12","@pnpm/plugin-commands-rebuild":"9.1.15","@pnpm/registry-mock":"3.4.0","@pnpm/semver-diff":"1.1.0","@pnpm/sort-packages":"5.0.4","@pnpm/store-connection-manager":"7.0.1","@pnpm/types":"9.2.0","@pnpm/worker":"0.3.0","@pnpm/workspace.pkgs-graph":"2.0.6","@prerenderer/prerenderer":"^1.2.0","@prerenderer/renderer-jsdom":"^1.1.2","@prerenderer/webpack-plugin":"^5.2.0","@react-hook/latest":"1.0.3","@stencil/core":"1.17.4","@stencil/webpack":"0.0.6","@teambit/any-fs":"0.0.5","@teambit/base-react.layout.row":"0.0.3","@teambit/base-react.navigation.link":"2.0.27","@teambit/base-ui.constants.storage":"1.0.0","@teambit/base-ui.graph.tree.collapsable-tree-node":"0.0.4","@teambit/base-ui.graph.tree.indent":"1.0.0","@teambit/base-ui.graph.tree.inflate-paths":"1.0.0","@teambit/base-ui.graph.tree.recursive-tree":"1.0.0","@teambit/base-ui.graph.tree.root-node":"1.0.0","@teambit/base-ui.graph.tree.tree-context":"1.0.0","@teambit/base-ui.layout.breakpoints":"1.0.0","@teambit/base-ui.layout.page-frame":"1.0.0","@teambit/base-ui.loaders.loader-ribbon":"1.0.0","@teambit/base-ui.loaders.skeleton":"1.0.1","@teambit/base-ui.styles.flex-center":"1.0.0","@teambit/base-ui.surfaces.background":"1.0.1","@teambit/base-ui.surfaces.card":"1.0.1","@teambit/base-ui.surfaces.split-pane.hover-splitter":"1.0.0","@teambit/base-ui.surfaces.split-pane.split-pane":"1.0.0","@teambit/base-ui.text.muted-text":"1.0.1","@teambit/base-ui.text.paragraph":"1.0.1","@teambit/base-ui.text.text-sizes":"1.0.0","@teambit/base-ui.text.themed-text":"1.0.1","@teambit/base-ui.theme.accent-color":"1.1.0","@teambit/base-ui.theme.colors":"1.0.0","@teambit/base-ui.theme.dark-theme":"1.0.2","@teambit/base-ui.theme.fonts.book":"1.0.2","@teambit/base-ui.theme.fonts.roboto":"1.0.0","@teambit/base-ui.theme.theme-provider":"1.0.1","@teambit/base-ui.utils.composer":"1.0.0","@teambit/base-ui.utils.string.affix":"1.0.0","@teambit/base-ui.utils.time-ago":"1.0.1","@teambit/bit.content.what-is-bit":"1.96.2","@teambit/bvm.config":"0.2.2","@teambit/capsule":"0.0.12","@teambit/code.ui.code-compare-section":"0.0.5","@teambit/code.ui.dependency-tree":"0.0.546","@teambit/code.ui.hooks.use-code-params":"0.0.496","@teambit/code.ui.object-formatter":"0.0.1","@teambit/code.ui.queries.get-component-code":"0.0.502","@teambit/code.ui.queries.get-file-content":"0.0.504","@teambit/code.ui.utils.get-file-icon":"0.0.495","@teambit/community.constants.links":"0.0.2","@teambit/community.starters.hello-world":"^0.0.16","@teambit/compilation.content.compiler-overview":"1.95.0","@teambit/component-id":"^0.0.427","@teambit/component.content.component-overview":"1.95.0","@teambit/component.content.dev-files":"1.95.9","@teambit/component.instructions.exporting-components":"0.0.7","@teambit/defender.content.formatter-overview":"1.96.1","@teambit/defender.content.linter-overview":"1.95.0","@teambit/defender.content.tester-overview":"1.95.0","@teambit/defender.eslint-linter":"1.0.1","@teambit/defender.prettier-formatter":"1.0.0","@teambit/design.elements.icon":"1.0.5","@teambit/design.inputs.dropdown":"1.2.16","@teambit/design.inputs.input-text":"1.0.21","@teambit/design.inputs.selectors.multi-select":"0.0.20","@teambit/design.inputs.toggle-button":"0.0.9","@teambit/design.inputs.toggle-switch":"0.0.6","@teambit/design.navigation.content-tabs":"0.0.5","@teambit/design.navigation.responsive-navbar":"0.0.5","@teambit/design.theme.icons-font":"2.0.26","@teambit/design.themes.dark-theme":"1.91.4","@teambit/design.themes.theme-toggler":"0.1.3","@teambit/design.ui.alert-card":"0.0.26","@teambit/design.ui.brand.logo":"1.96.2","@teambit/design.ui.cli-snippet":"0.0.359","@teambit/design.ui.contributors":"0.0.514","@teambit/design.ui.elements.level-icon":"0.0.20","@teambit/design.ui.empty-box":"0.0.363","@teambit/design.ui.error-page":"0.0.364","@teambit/design.ui.icon-button":"1.0.16","@teambit/design.ui.input.icon-text":"1.0.13","@teambit/design.ui.input.option-button":"1.0.0","@teambit/design.ui.input.radio":"1.1.13","@teambit/design.ui.input.toggle":"1.0.12","@teambit/design.ui.label":"0.0.357","@teambit/design.ui.pages.not-found":"0.0.366","@teambit/design.ui.pages.server-error":"0.0.366","@teambit/design.ui.pages.standalone-not-found-page":"0.0.369","@teambit/design.ui.pill-label":"0.0.356","@teambit/design.ui.round-loader":"0.0.355","@teambit/design.ui.separator":"0.0.354","@teambit/design.ui.skeletons.sidebar-loader":"0.0.4","@teambit/design.ui.styles.colors-by-letter":"0.0.41","@teambit/design.ui.styles.ellipsis":"0.0.357","@teambit/design.ui.styles.muted-italic":"0.0.44","@teambit/design.ui.surfaces.menu.link-item":"1.0.0","@teambit/design.ui.surfaces.message-card":"0.0.17","@teambit/design.ui.surfaces.status-message-card":"0.0.17","@teambit/design.ui.time-ago":"0.0.366","@teambit/design.ui.tooltip":"0.0.361","@teambit/design.ui.tree":"0.0.15","@teambit/docs.content.docs-overview":"1.95.9","@teambit/docs.entities.doc":"0.0.12","@teambit/docs.ui.hooks.use-element-on-fold":"1.96.5","@teambit/documenter.code.react-playground":"4.1.9","@teambit/documenter.content.documentation-links":"4.1.3","@teambit/documenter.markdown.hybrid-live-code-snippet":"0.1.12","@teambit/documenter.markdown.mdx":"0.1.13","@teambit/documenter.theme.theme-compositions":"4.1.1","@teambit/documenter.theme.theme-context":"4.0.3","@teambit/documenter.ui.code-snippet":"4.2.2","@teambit/documenter.ui.consumable-link":"4.0.11","@teambit/documenter.ui.copy-box":"4.1.16","@teambit/documenter.ui.heading":"4.1.1","@teambit/documenter.ui.highlighted-text":"4.1.1","@teambit/documenter.ui.label":"4.0.3","@teambit/documenter.ui.label-list":"4.0.3","@teambit/documenter.ui.linked-heading":"4.1.6","@teambit/documenter.ui.paragraph":"4.1.1","@teambit/documenter.ui.property-table":"4.1.10","@teambit/documenter.ui.section":"4.1.1","@teambit/documenter.ui.separator":"4.1.1","@teambit/documenter.ui.sub-title":"4.1.1","@teambit/documenter.ui.table-heading-row":"4.0.11","@teambit/documenter.ui.table-row":"4.1.13","@teambit/evangelist.elements.button":"1.0.6","@teambit/evangelist.elements.icon":"1.0.2","@teambit/evangelist.elements.x-button":"1.0.7","@teambit/evangelist.input.checkbox.label":"1.0.3","@teambit/evangelist.surfaces.dropdown":"1.0.2","@teambit/evangelist.surfaces.tooltip":"1.0.1","@teambit/explorer.ui.gallery.base-component-card":"0.0.503","@teambit/explorer.ui.gallery.component-grid":"0.0.496","@teambit/explorer.ui.search.search-input":"1.95.7","@teambit/graph.cleargraph":"0.0.1","@teambit/graphql.hooks.use-query-light":"1.0.0","@teambit/harmony":"0.4.6","@teambit/html.modules.inject-html-element":"0.0.4","@teambit/html.modules.render-template":"0.0.104","@teambit/lanes.ui.drawer":"0.0.37","@teambit/lanes.ui.lane-readme":"0.0.116","@teambit/lanes.ui.viewed-lane":"0.0.37","@teambit/mdx.ui.docs.link":"0.0.500","@teambit/pkg.content.packages-overview":"1.95.9","@teambit/react.content.react-overview":"1.95.0","@teambit/react.instructions.react-native.adding-tests":"0.0.1","@teambit/react.instructions.react.adding-compositions":"0.0.6","@teambit/react.instructions.react.adding-tests":"0.0.6","@teambit/react.rendering.ssr":"0.0.3","@teambit/react.ui.component-highlighter":"0.2.1","@teambit/scope.content.scope-overview":"1.95.0","@teambit/scope.ui.scope-icon":"0.0.91","@teambit/typescript.typescript-compiler":"2.0.1","@teambit/workspace.content.variants":"1.95.9","@teambit/workspace.content.workspace-overview":"1.95.0","@testing-library/jest-dom":"5.16.2","@testing-library/jest-native":"4.0.4","@testing-library/react":"12.1.5","@tippyjs/react":"4.2.0","@types/archiver":"5.3.1","@types/classnames":"2.2.11","@types/cors":"2.8.10","@types/dagre":"0.7.44","@types/didyoumean":"1.2.0","@types/eslint":"7.28.0","@types/express":"4.17.13","@types/find-root":"1.1.2","@types/http-proxy-agent":"2.0.2","@types/lodash":"4.14.165","@types/lodash.compact":"3.0.6","@types/lodash.flatten":"4.4.6","@types/lodash.head":"4.0.6","@types/lodash.orderby":"4.6.6","@types/lodash.pick":"4.4.6","@types/mdx-js__react":"1.5.5","@types/memoizee":"0.4.5","@types/mime":"2.0.3","@types/mini-css-extract-plugin":"2.2.0","@types/mousetrap":"1.6.5","@types/node":"14.14.13","@types/pluralize":"0.0.29","@types/react":"17.0.8","@types/react-dev-utils":"9.0.10","@types/react-dom":"17.0.5","@types/react-tabs":"2.3.2","@types/socket.io-client":"1.4.35","@types/testing-library__jest-dom":"5.9.5","@types/ua-parser-js":"0.7.35","@types/url-join":"4.0.0","@types/url-parse":"1.4.3","@types/webpack":"5.28.1","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/fslib":"2.10.3","@yarnpkg/parsers":"2.5.1","@yarnpkg/plugin-npm":"2.7.4","@yarnpkg/plugin-pack":"3.2.0","agentkeepalive":"4.1.4","ansi-to-html":"0.6.14","apollo-link-context":"1.0.20","apollo-link-http":"1.5.17","apollo-link-ws":"1.0.20","apollo-server":"2.19.2","apollo-utilities":"1.3.4","archiver":"5.3.1","aws-sdk":"2.756.0","babel-jest":"27.5.1","babel-plugin-named-asset-import":"0.3.7","babel-preset-jest":"27.5.1","body-parser":"1.19.0","buffer":"6.0.3","camelcase":"6.2.0","chai-subset":"1.6.0","classnames":"2.2.6","cli-highlight":"2.1.9","comlink":"4.3.0","command-exists":"1.2.9","compression-webpack-plugin":"9.2.0","copy-to-clipboard":"3.3.1","cors":"2.8.5","credentials-by-uri":"2.0.0","cross-env":"7.0.3","css-minimizer-webpack-plugin":"3.0.2","dagre":"0.8.5","didyoumean":"1.2.1","enquirer":"2.3.6","eslint-config-airbnb-typescript":"12.0.0","eslint-import-resolver-node":"0.3.4","eventemitter2":"6.4.4","expose-loader":"3.1.0","express":"4.17.1","express-graphql":"0.12.0","express-history-api-fallback":"2.2.1","filenamify":"4.2.0","find-root":"1.1.0","flatted":"3.1.0","fuse.js":"6.6.2","get-tsconfig":"4.2.0","graceful-fs":"4.2.10","graphql-subscriptions":"1.2.0","graphql-tag":"2.12.1","graphql-type-json":"0.3.2","history":"5.3.0","html-escaper":"3.0.0","html-webpack-plugin":"5.3.2","http-proxy":"1.18.1","http-proxy-agent":"4.0.1","https-proxy-agent":"5.0.0","humanize-duration":"3.23.1","humanize-string":"2.1.0","ini":"2.0.0","inject-body-webpack-plugin":"1.3.0","insert-string-after":"1.0.0","insert-string-before":"1.0.0","is-binary-path":"2.1.0","is-builtin-module":"3.1.0","is-primitive":"3.0.1","is-relative-path":"2.0.0","jest":"27.5.1","jest-message-util":"27.5.1","jest-watcher":"27.5.1","json-formatter-js":"2.3.4","jsx-to-string":"1.4.0","junit-report-builder":"3.0.1","less":"^4.1.1","loader-utils":"2.0.4","lodash":"4.17.20","lodash.compact":"3.0.1","lodash.head":"4.0.1","lodash.orderby":"4.6.0","lodash.pick":"4.4.0","map-obj":"4.2.1","memoizee":"0.4.15","memory-fs":"0.5.0","mime":"2.5.2","mini-css-extract-plugin":"2.2.2","minimatch":"3.0.4","mousetrap":"1.6.5","multimatch":"5.0.0","nanoid":"3.1.20","nerf-dart":"1.0.0","npm":"6.14.17","p-limit":"3.1.0","p-locate":"5.0.0","parse-package-name":"0.1.0","path-to-regexp":"6.2.0","penpal":"6.2.2","pino-pretty":"9.1.1","pluralize":"8.0.0","postcss":"8.4.18","postcss-flexbugs-fixes":"5.0.2","postcss-loader":"7.0.1","postcss-preset-env":"7.8.2","pretty-bytes":"5.6.0","process":"0.11.10","puppeteer":"13.7.0","query-string":"7.0.0","react-animate-height":"2.0.23","react-dev-utils":"11.0.4","react-error-boundary":"^3.0.0","react-error-overlay":"6.0.9","react-flow-renderer":"8.3.7","react-syntax-highlighter":"15.4.3","react-tabs":"3.2.0","react-test-renderer":"17.0.2","remark-admonitions":"1.2.1","remark-frontmatter":"2.0.0","reset-css":"5.0.1","resolve-from":"5.0.0","resolve-link-target":"^1.0.1","resolve-url-loader":"5.0.0","semver":"7.3.4","semver-intersect":"1.4.0","semver-range-intersect":"0.3.1","socket.io-client":"2.4.0","socks-proxy-agent":"5.0.0","ssri":"10.0.1","strip-ansi":"6.0.0","subscriptions-transport-ws":"0.9.18","symlink-dir":"^5.1.1","table":"6.7.3","tempy":"1.0.1","terser-webpack-plugin":"5.2.0","tippy.js":"6.2.7","ua-parser-js":"0.7.24","unist-util-remove":"2.0.1","unist-util-visit":"2.0.3","url-join":"4.0.1","url-parse":"1.4.7","version-selector-type":"3.0.0","vfile":"4.2.0","vscode-icons-js":"11.0.0","vscode-jsonrpc":"6.0.0","vscode-languageserver-types":"3.16.0","webpack":"5.84.1","webpack-assets-manifest":"5.1.0","webpack-dev-server":"4.15.0","webpack-manifest-plugin":"4.0.2","webpack-merge":"5.8.0","workbox-webpack-plugin":"6.2.4","ws":"7.4.2","yaml":"1.10.2","yesno":"0.4.0"},"peerDependencies":{"@apollo/client":"^3.6.0","@teambit/base-react.navigation.link":"2.0.27","@teambit/legacy":"1.0.570","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.1","@testing-library/react":"^12.1.5","core-js":"^3.10.0","graphql":"15.8.0","mz":"2.7.0","react":"17.0.2","react-dom":"17.0.2","react-router-dom":"^6.0.0"}},"linkCoreAspects":false,"overrides":{"@types/fs-capacitor":"2.0.0","signal-exit@4":"^4.0.2"},"nodeLinker":"hoisted","rootComponents":true,"nodeVersion":"18.17.1","engineStrict":true,"packageImportMethod":"copy","packageManagerArgs":[],"devFilePatterns":["**/*.spec.ts"],"strictPeerDependencies":true,"savePrefix":"","extraArgs":[],"peerDependencyRules":{"allowAny":[],"ignoreMissing":[]}},"teambit.preview/preview":{"bundlingStrategy":"component"},"teambit.generator/generator":{"aspects":["teambit.harmony/aspect"]},"teambit.component/issues":{"ignoreIssues":["CircularDependencies","DuplicateComponentAndPackage"]},"teambit.workspace/variants":{"*,!{*/**}":{"teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{name}","private":false,"license":"Apache-2.0","engines":{"node":">=12.22.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"},"keywords":["bit","bit-aspect","components","collaboration","web","react","react-components","angular","angular-components"]}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{"@teambit/legacy":"1.0.570"}}},"teambit.envs/envs":{"env":"teambit.harmony/aspect"},"teambit.harmony/aspect":{}},"{*/**}":{"teambit.harmony/aspect":"-","teambit.pkg/pkg":{"packageManagerPublishArgs":["--access public"],"packageJson":{"name":"@teambit/{scope}.{name}","private":false,"license":"Apache-2.0","engines":{"node":">=12.22.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"},"keywords":["bit","components","collaboration","web","react","react-components","angular","angular-components"]}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{}}},"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.harmony/node":{}},"scopes/react/react, scopes/react/react-native, scopes/harmony/node, scopes/html/html, scopes/mdx/mdx, scopes/mdx/readme":{"teambit.harmony/aspect":"-","teambit.envs/env":{},"teambit.envs/envs":{"env":"teambit.envs/env"}},"{modules/**}":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.harmony/node":{}},"{cli/**}":{"teambit.react/react":"-","teambit.envs/envs":{"env":"teambit.harmony/node"}},"{babel/**}":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.harmony/node":{}},"{ui/**}":{"teambit.envs/envs":{"env":"teambit.react/react"},"teambit.react/react":{}},"scopes/toolbox":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.harmony/aspect":"-","defaultScope":"teambit.toolbox"},"scopes/web-components":{"defaultScope":"teambit.web-components"},"scopes/workspace":{"defaultScope":"teambit.workspace"},"scopes/git":{"defaultScope":"teambit.git"},"scopes/webpack":{"defaultScope":"teambit.webpack"},"scopes/scope":{"defaultScope":"teambit.scope"},"scopes/compositions":{"defaultScope":"teambit.compositions"},"scopes/docs":{"defaultScope":"teambit.docs"},"scopes/generator":{"defaultScope":"teambit.generator"},"scopes/lanes":{"defaultScope":"teambit.lanes"},"scopes/explorer":{"defaultScope":"teambit.explorer"},"scopes/envs":{"defaultScope":"teambit.envs"},"scopes/pkg":{"defaultScope":"teambit.pkg"},"scopes/dependencies":{"defaultScope":"teambit.dependencies"},"scopes/react":{"defaultScope":"teambit.react"},"scopes/preview":{"defaultScope":"teambit.preview"},"scopes/pipelines":{"defaultScope":"teambit.pipelines"},"scopes/harmony":{"defaultScope":"teambit.harmony"},"scopes/html":{"defaultScope":"teambit.html"},"scopes/compilation":{"defaultScope":"teambit.compilation"},"scopes/defender":{"defaultScope":"teambit.defender"},"scopes/component":{"defaultScope":"teambit.component"},"scopes/code":{"defaultScope":"teambit.code"},"scopes/component/component-id":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/component/component-version":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/component/legacy-bit-id":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/harmony/bit-error, scopes/defender/tests-results, scopes/typescript/ts-server, scopes/component/component-issues, scopes/component/component-package-version, scopes/react/eslint-config-bit-react, scopes/toolbox/tables/cli-table":{"teambit.harmony/aspect":"-","teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/component/legacy-component-log":{"teambit.envs/envs":{"env":"teambit.harmony/node"},"teambit.dependencies/dependency-resolver":{}},"scopes/ui-foundation":{"defaultScope":"teambit.ui-foundation","teambit.community/envs/community-react":"-"},"scopes/mdx":{"defaultScope":"teambit.mdx"},"scopes/community":{"defaultScope":"teambit.community"},"scopes/cloud":{"defaultScope":"teambit.cloud"},"scopes/base-react":{"defaultScope":"teambit.base-react","teambit.envs/envs":{"env":"teambit.react/react"}},"scopes/design":{"defaultScope":"teambit.design","teambit.envs/envs":{"env":"teambit.react/react"},"teambit.dependencies/dependency-resolver":{"policy":{"devDependencies":{"@teambit/legacy":"-"}}}},"scopes/react/react-elements":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"react":"-","react-dom":"-","css-loader":"6.2.0","postcss":"8.4.18","postcss-loader":"7.0.1","babel-loader":"9.1.2","@babel/preset-react":"7.22.15","@babel/preset-env":"7.22.15","resolve-url-loader":"5.0.0","sass-loader":"13.3.2","@svgr/webpack":"5.5.0","new-url-loader":"0.1.1","less":"^4.1.1","@mdx-js/react":"1.6.22","less-loader":"10.0.0","babel-preset-react-app":"^10.0.0","postcss-normalize":"10.0.0","postcss-preset-env":"7.8.2","postcss-flexbugs-fixes":"5.0.2"},"devDependencies":{"react":"-","react-dom":"-","@types/mocha":"9.1.0","@types/postcss-normalize":"9.0.1"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0","react-dom":"^16.8.0 || ^17.0.0","@teambit/legacy":"1.0.570"}}}},"scopes/mdx/modules/loader":{"teambit.dependencies/dependency-resolver":{"policy":{"devDependencies":{"@babel/preset-react":"7.22.15","@babel/preset-env":"7.22.15","babel-loader":"9.1.2"}}}},"scopes/typescript":{"defaultScope":"teambit.typescript"},"{aspect-docs/**}":{"teambit.envs/envs":{"env":"teambit.mdx/mdx"},"teambit.mdx/mdx":{}},"scopes/semantics":{"defaultScope":"teambit.semantics"},"scopes/api-reference":{"defaultScope":"teambit.api-reference"},"scopes/harmony/testing/load-aspect":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]}},"scopes/harmony/bit":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.pkg/pkg":{"packageJson":{"packageManagerPublishArgs":["--access public"],"license":"Apache-2.0","name":"@teambit/{name}","private":false,"bvm":{"node":"18.17.1"},"bin":{"bbit":"bin/bit"},"engines":{"node":">=12.22.0"},"repository":{"type":"git","url":"https://github.com/teambit/bit"},"keywords":["bit","bit-aspect","components","collaboration","web","react","react-components","angular","angular-components"]}},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/base-react.navigation.link":"2.0.27","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.1","@apollo/client":"3.6.9","@teambit/legacy":"1.0.570","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/plugin-pack":"3.2.0","graphql":"15.8.0","browserslist":"4.16.3","reflect-metadata":"0.1.13","monaco-editor":"0.33.0","mz":"2.7.0","react-native-web":"0.14.13","react":"17.0.2","react-dom":"17.0.2","core-js":"3.13.0","postcss":"8.4.18","buffer":"6.0.3","process":"0.11.10","react-router-dom":"6.3.0"},"devDependencies":{},"peerDependencies":{"@teambit/base-react.navigation.link":"-","@teambit/legacy":"-","@teambit/ui-foundation.ui.navigation.react-router-adapter":"-","browserslist":"-","graphql":"-","react":"-","react-dom":"-","react-native-web":"-","react-router-dom":"-","core-js":"-"}}}},"scopes/defender/jest":{"teambit.dependencies/dependency-resolver":{"policy":{"peerDependencies":{"jest":"27.5.1"}}}},"scopes/webpack/webpack":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"assert":"2.0.0","browserify-zlib":"0.2.0","buffer":"6.0.3","constants-browserify":"1.0.0","crypto-browserify":"3.12.0","domain-browser":"4.19.0","https-browserify":"1.0.0","os-browserify":"0.3.0","path-browserify":"1.0.1","process":"0.11.10","punycode":"2.1.1","querystring-es3":"0.2.1","stream-browserify":"3.0.0","stream-http":"3.2.0","string_decoder":"1.3.0","timers-browserify":"2.0.12","tty-browserify":"0.0.1","url":"0.11.2","util":"0.12.3","vm-browserify":"1.1.2"},"devDependencies":{"@types/webpack-dev-server":"-"}}}},"scopes/harmony/node":{"teambit.component/issues":{"ignoreIssues":["ImportNonMainFiles"]},"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"jest-environment-node":"27.5.1"}}}},"scopes/mdx/mdx":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@babel/helper-plugin-test-runner":"7.16.7"}}}},"scopes/harmony/aspect":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@babel/plugin-transform-class-properties":"7.22.5","@babel/plugin-proposal-decorators":"7.12.13","@babel/plugin-transform-object-rest-spread":"7.22.15","@babel/plugin-transform-modules-commonjs":"7.12.13","@babel/plugin-transform-runtime":"7.12.17","@babel/preset-env":"7.22.15","babel-plugin-transform-typescript-metadata":"0.3.1","@babel/preset-react":"7.22.15","@babel/preset-typescript":"7.22.15","jest-environment-node":"27.5.1"}}}},"scopes/harmony/graphql":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"@teambit/legacy":"-","bufferutil":"4.0.3","utf-8-validate":"5.0.5"},"devDependencies":{"@types/mocha":"9.1.0","@teambit/legacy":"-"},"peerDependencies":{"@teambit/legacy":"1.0.570"}}}},"scopes/webpack/plugins/inject-head-webpack-plugin":{"teambit.dependencies/dependency-resolver":{"policy":{"dependencies":{"html-webpack-plugin":"-"},"peerDependencies":{"html-webpack-plugin":"^5.3.1"}}}},"components/ui/component-compare/version-picker":{"teambit.harmony/node":"-","teambit.react/react":"-"},"scopes/component/ui/version-dropdown":{"teambit.harmony/node":"-","teambit.react/react":"-"}},"teambit.harmony/bit":"teambit.workspace/workspace"}'),...M};i.default.id="teambit.workspace/workspace",o.default.id="teambit.component/component",s.default.id="teambit.mdx/mdx",a.default.id="teambit.component/component-sizer",l.default.id="teambit.docs/docs",c.default.id="teambit.dependencies/yarn",u.default.id="teambit.compositions/compositions",d.default.id="teambit.harmony/graphql",p.default.id="teambit.dependencies/pnpm",f.default.id="teambit.ui-foundation/ui",h.default.id="teambit.component/graph",m.default.id="teambit.harmony/pubsub",g.default.id="teambit.pkg/pkg",_.default.id="teambit.react/react",b.default.id="teambit.react/react-native",v.default.id="teambit.scope/scope",y.default.id="teambit.defender/tester",S.default.id="teambit.component/deprecation",E.default.id="teambit.harmony/aspect",w.default.id="teambit.ui-foundation/react-router",C.default.id="teambit.harmony/node",O.default.id="teambit.ui-foundation/notifications",T.default.id="teambit.component/changelog",N.default.id="teambit.component/code",I.default.id="teambit.explorer/command-bar",x.default.id="teambit.ui-foundation/sidebar",k.default.id="teambit.component/component-tree",R.default.id="teambit.ui-foundation/user-agent",P.default.id="teambit.lanes/lanes",A.default.id="teambit.component/component-compare",L.default.id="teambit.api-reference/api-reference",D&&function(...e){r.Harmony.load([i.default,o.default,s.default,a.default,l.default,c.default,u.default,d.default,p.default,f.default,h.default,m.default,g.default,_.default,b.default,v.default,y.default,S.default,E.default,w.default,C.default,O.default,T.default,N.default,I.default,x.default,k.default,R.default,P.default,A.default,L.default],"ui",j).then((t=>t.run().then((()=>t.get("teambit.ui-foundation/ui"))).then((e=>{const t=!D&&e.setupSsr,n=e.setup,r=(t||n||function(){}).bind(e);return Promise.resolve(r()).then((()=>e))})).then((t=>D?t.render("teambit.workspace/workspace",...e):t.renderSsr("teambit.workspace/workspace",...e))).catch((e=>{throw e}))))}()},23484:(e,t,n)=>{"use strict";function r(){const e=n(99850);return r=function(){return e},e}function i(){const e=n(71933);return i=function(){return e},e}function o(){const e=n(37785);return o=function(){return e},e}function s(){const e=n(4405);return s=function(){return e},e}function a(){const e=n(49432);return a=function(){return e},e}function l(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return l=function(){return e},e}function c(){const e=n(11869);return c=function(){return e},e}function u(){const e=n(57489);return u=function(){return e},e}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class h{constructor(e,t,n,r){this.router=e,this.uiRootSlot=t,this.hudSlot=n,this.renderPluginsSlot=r,f(this,"registerHudItem",(e=>{this.hudSlot.register(e)}))}async render(e){const t=this.getRoot(e);if(!t)throw new Error(`root: ${e} was not found`);const n=t(),r=this.router.renderRoutes(n.routes),i=this.hudSlot.values(),o=this.getLifecyclePlugins(),a=new(s().BrowserRenderer)(o);await a.render(l().default.createElement(u().ClientContext,null,i,r))}async renderSsr(e,t){const n=this.getRoot(e);if(!n)throw new Error(`root: ${e} was not found`);const r=n(),i=this.router.renderRoutes(r.routes),o=this.hudSlot.values(),c=this.getLifecyclePlugins(),d=new(s().ServerRenderer)(c);return await d.render(l().default.createElement(u().ClientContext,null,l().default.createElement(a().SSRBrowserProvider,{value:t.browser},o,i)),t)}registerContext(e){this.renderPluginsSlot.register({reactContext:e})}registerRoot(e){return this.uiRootSlot.register(e)}registerRenderHooks(e){return this.renderPluginsSlot.register(e)}getLifecyclePlugins(){const e=this.renderPluginsSlot.toArray().map((([e,t])=>t.key?t:p(p({},t),{},{key:e})));return e.unshift(this.router.renderPlugin),e}getRoot(e){return this.uiRootSlot.get(e)}static async provider([e,t],n,[r,i,o]){const s=new h(t,r,i,o);return e&&s.registerRenderHooks(e.renderPlugins),s}}f(h,"slots",[i().Slot.withType(),i().Slot.withType(),i().Slot.withType()]),f(h,"dependencies",[r().GraphqlAspect,o().ReactRouterAspect]),f(h,"runtime",c().UIRuntime),c().UIAspect.addRuntime(h)},57489:(e,t,n)=>{"use strict";function r(){const e=d(n(72243));return r=function(){return e},e}function i(){const e=n(40474);return i=function(){return e},e}function o(){const e=n(13193);return o=function(){return e},e}function s(){const e=n(99481);return s=function(){return e},e}function a(){const e=n(80068);return a=function(){return e},e}function l(){const e=n(52993);return l=function(){return e},e}function c(){const e=n(31093);return c=function(){return e},e}function u(){const e=d(n(19587));return u=function(){return e},e}function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ClientContext=function({children:e}){const[t,n]=(0,c().useLoaderApi)();return r().default.createElement(r().default.StrictMode,null,r().default.createElement(c().LoaderContext.Provider,{value:t},r().default.createElement(o().IconFont,{query:"q76y7n"}),r().default.createElement(i().ThemeSwitcher,null,r().default.createElement(a().Roboto,null),r().default.createElement(s().LoaderRibbon,{active:n,className:u().default.loader}),e,r().default.createElement(l().TooltipMountPoint,null))))}},65647:(e,t,n)=>{"use strict";function r(){const e=n(71933);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UserAgentAspect=void 0;const i=r().Aspect.create({id:"teambit.ui-foundation/user-agent"});t.UserAgentAspect=i;var o=i;t.default=o},79276:(e,t,n)=>{"use strict";function r(){const e=n(47458);return r=function(){return e},e}function i(){const e=l(n(72243));return i=function(){return e},e}function o(){const e=l(n(39937));return o=function(){return e},e}function s(){const e=n(49432);return s=function(){return e},e}function a(){const e=n(65647);return a=function(){return e},e}function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{static async provider([e]){const t=new u;return e.registerRenderHooks({serverInit:({browser:e})=>({userAgent:new(o().default)(e.headers["user-agent"])}),browserInit:()=>({userAgent:new(o().default)(window.navigator.userAgent)}),reactContext:d}),t}}function d({children:e,renderCtx:t}){return i().default.createElement(s().UserAgentProvider,{value:null===t||void 0===t?void 0:t.userAgent},e)}c(u,"slots",[]),c(u,"dependencies",[r().UIAspect]),c(u,"runtime",r().UIRuntime),a().UserAgentAspect.addRuntime(u)},57668:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyWorkspace=void 0;const i=r(n(72243)),o=n(93089),s=r(n(28444));t.EmptyWorkspace=function({name:e}){return i.default.createElement(o.EmptyComponentGallery,{name:e,title:"Add components to"},i.default.createElement("div",{className:s.default.text},"Start by adding new components to this workspace."))}},95425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyWorkspace=void 0;var r=n(57668);Object.defineProperty(t,"EmptyWorkspace",{enumerable:!0,get:function(){return r.EmptyWorkspace}})},54726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadPreview=void 0;var r=n(87542);Object.defineProperty(t,"LoadPreview",{enumerable:!0,get:function(){return r.LoadPreview}})},87542:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LoadPreview=void 0;const o=i(n(72243)),s=i(n(80852)),a=n(10818),l=i(n(29543));t.LoadPreview=function(e){var{onClick:t,className:n}=e,i=r(e,["onClick","className"]);return o.default.createElement("div",Object.assign({className:(0,s.default)(l.default.loadPreview,n),onClick:t},i),o.default.createElement(a.Icon,{of:"fat-arrow-down",className:l.default.icon}),o.default.createElement("span",null,"Live preview"))}},26688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceComponentCard=void 0;var r=n(68905);Object.defineProperty(t,"WorkspaceComponentCard",{enumerable:!0,get:function(){return r.WorkspaceComponentCard}})},68905:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceComponentCard=void 0;const l=o(n(72243)),c=n(63991),u=n(17455),d=n(54726),p=a(n(43553));t.WorkspaceComponentCard=function(e){var t,{component:n,componentUrl:r}=e,i=s(e,["component","componentUrl"]);const[o,a]=(0,l.useState)(!1),f=!o&&n.compositions.length>0,h="new"===n.version?void 0:n.version;return l.default.createElement("div",Object.assign({},i,{className:p.default.wrapper}),l.default.createElement(c.ComponentCard,{id:n.id.fullName,href:r,envIcon:null===(t=n.environment)||void 0===t?void 0:t.icon,description:n.description,version:h,preview:l.default.createElement(u.PreviewPlaceholder,{component:n,shouldShowPreview:o})}),f&&l.default.createElement(d.LoadPreview,{onClick:()=>{o||a(!0)}}))}},33710:(e,t,n)=>{"use strict";function r(){const e=(t=n(72243))&&t.__esModule?t:{default:t};var t;return r=function(){return e},e}function i(){const e=n(87982);return i=function(){return e},e}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.ComponentTreeWidget=void 0;t.ComponentTreeWidget=class{constructor(){o(this,"widget",(({component:e})=>r().default.createElement(i().ComponentStatusResolver,{status:e.status,issuesCount:e.issuesCount})))}}},14170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17693);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var i=n(55733);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=n(9157);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}))},55733:(e,t,n)=>{"use strict";function r(){const e=n(91555);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.OnComponentAddEvent=void 0;class i{constructor(e,t){this.idStr=e,this.hook=t}}class o extends r().BitBaseEvent{constructor(e,t,n){super(o.TYPE,"0.0.1",e,new i(t,n)),this.timestamp=e,this.idStr=t,this.hook=n}}t.OnComponentAddEvent=o,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o,"TYPE","on-component-add")},17693:(e,t,n)=>{"use strict";function r(){const e=n(91555);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.OnComponentChangeEvent=void 0;class i{constructor(e,t){this.idStr=e,this.hook=t}}class o extends r().BitBaseEvent{constructor(e,t,n){super(o.TYPE,"0.0.1",e,new i(t,n)),this.timestamp=e,this.idStr=t,this.hook=n}}t.OnComponentChangeEvent=o,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o,"TYPE","on-component-change")},9157:(e,t,n)=>{"use strict";function r(){const e=n(91555);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.OnComponentRemovedEvent=void 0;class i{constructor(e){this.idStr=e}}class o extends r().BitBaseEvent{constructor(e,t){super(o.TYPE,"0.0.1",e,new i(t)),this.timestamp=e,this.idStr=t}}t.OnComponentRemovedEvent=o,function(e,t,n){(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(o,"TYPE","on-component-removed")},93806:(e,t,n)=>{"use strict";function r(){const e=n(91576);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.OutsideWorkspaceError=void 0;class i extends r().BitError{constructor(){super("This command can only be run inside a bit workspace. Please check that you are inside a bit workspace and then re-run (to initialize a new workspace please use bit init)")}}t.OutsideWorkspaceError=i},6585:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={WorkspaceAspect:!0,ComponentStatus:!0,WorkspaceModelComponent:!0,WorkspaceModel:!0,WorkspaceContext:!0,OutsideWorkspaceError:!0};function i(){const e=n(3488);return i=function(){return e},e}Object.defineProperty(t,"ComponentStatus",{enumerable:!0,get:function(){return s().ComponentStatus}}),Object.defineProperty(t,"OutsideWorkspaceError",{enumerable:!0,get:function(){return c().OutsideWorkspaceError}}),Object.defineProperty(t,"WorkspaceAspect",{enumerable:!0,get:function(){return i().WorkspaceAspect}}),Object.defineProperty(t,"WorkspaceContext",{enumerable:!0,get:function(){return l().WorkspaceContext}}),Object.defineProperty(t,"WorkspaceModel",{enumerable:!0,get:function(){return a().Workspace}}),Object.defineProperty(t,"WorkspaceModelComponent",{enumerable:!0,get:function(){return a().WorkspaceModelComponent}}),t.default=void 0;var o=n(14170);function s(){const e=n(8386);return s=function(){return e},e}function a(){const e=n(29884);return a=function(){return e},e}function l(){const e=n(93163);return l=function(){return e},e}function c(){const e=n(93806);return c=function(){return e},e}Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var u=i().WorkspaceAspect;t.default=u},94849:(e,t,n)=>{"use strict";function r(){const e=n(33740);return r=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Workspace",{enumerable:!0,get:function(){return r().Workspace}})},33740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(28184);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}))},64951:(e,t,n)=>{"use strict";function r(){const e=n(72243);return r=function(){return e},e}function i(){const e=n(21475);return i=function(){return e},e}function o(){const e=(t=n(24115))&&t.__esModule?t:{default:t};var t;return o=function(){return e},e}function s(){const e=n(41815);return s=function(){return e},e}function a(){const e=n(17642);return a=function(){return e},e}function l(){const e=n(39810);return l=function(){return e},e}function c(){const e=n(29884);return c=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.useWorkspace=function(e={}){const t=(0,s().useDataQuery)(m),{data:n,subscribeToMore:a}=t,d=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,u),f=(0,o().default)(e);(0,r().useEffect)((()=>{const e=a({document:g,updateQuery:(e,{subscriptionData:t})=>{var n;const r=t.data,o=null===r||void 0===r||null===(n=r.componentAdded)||void 0===n?void 0:n.component;if(!o)return e;return e.workspace.components.find((e=>l().ComponentID.isEqualObj(e.id,o.id,{ignoreVersion:!0})))?e:(setTimeout((()=>{var e,t;return null===(e=(t=f.current).onComponentAdded)||void 0===e?void 0:e.call(t,[i().ComponentModel.from(o)])})),p(p({},e),{},{workspace:p(p({},e.workspace),{},{components:[...e.workspace.components,o]})}))}}),t=a({document:_,updateQuery:(e,{subscriptionData:t})=>{const n=t.data;if(!n)return e;const r=n.componentChanged.component;return setTimeout((()=>{var e,t;return null===(e=(t=f.current).onComponentUpdated)||void 0===e?void 0:e.call(t,[i().ComponentModel.from(r)])})),p(p({},e),{},{workspace:p(p({},e.workspace),{},{components:e.workspace.components.map((e=>e.id.name===r.id.name?r:e))})})}}),n=a({document:b,updateQuery:(e,{subscriptionData:t})=>{var n;const r=null===(n=t.data)||void 0===n||null===(n=n.componentRemoved)||void 0===n?void 0:n.componentIds;return r&&0!==r.length?(setTimeout((()=>{var e,t;return null===(e=(t=f.current).onComponentRemoved)||void 0===e?void 0:e.call(t,r.map((e=>l().ComponentID.fromObject(e))))})),p(p({},e),{},{workspace:p(p({},e.workspace),{},{components:e.workspace.components.filter((e=>r.every((t=>!l().ComponentID.isEqualObj(t,e.id)))))})})):e}});return()=>{e(),t(),n()}}),[f]);return p({workspace:(0,r().useMemo)((()=>null!==n&&void 0!==n&&n.workspace?c().Workspace.from(null===n||void 0===n?void 0:n.workspace):void 0),[null===n||void 0===n?void 0:n.workspace]),subscribeToMore:a},d)};const u=["data","subscribeToMore"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=a().gql`
703
703
  fragment wcComponentFields on Component {
704
704
  id {
705
705
  name