@techdocs/cli 0.8.17-next.0 → 0.8.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -28,7 +28,7 @@ function lazy(getActionFunc) {
28
28
  };
29
29
  }
30
30
 
31
- var version = "0.8.17-next.0";
31
+ var version = "0.8.17";
32
32
 
33
33
  const main = (argv) => {
34
34
  program__default["default"].name("techdocs-cli").version(version);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@techdocs/cli",
3
3
  "description": "Utility CLI for managing TechDocs sites in Backstage.",
4
- "version": "0.8.17-next.0",
4
+ "version": "0.8.17",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -37,7 +37,7 @@
37
37
  "techdocs-cli": "bin/techdocs-cli"
38
38
  },
39
39
  "devDependencies": {
40
- "@backstage/cli": "^0.15.2-next.0",
40
+ "@backstage/cli": "^0.15.2",
41
41
  "@types/commander": "^2.12.2",
42
42
  "@types/fs-extra": "^9.0.6",
43
43
  "@types/http-proxy": "^1.17.4",
@@ -49,7 +49,7 @@
49
49
  "cypress-plugin-snapshots": "^1.4.4",
50
50
  "find-process": "^1.4.5",
51
51
  "nodemon": "^2.0.2",
52
- "techdocs-cli-embedded-app": "^0.2.67-next.0",
52
+ "techdocs-cli-embedded-app": "^0.2.67",
53
53
  "ts-node": "^10.0.0"
54
54
  },
55
55
  "files": [
@@ -62,11 +62,11 @@
62
62
  "ext": "ts"
63
63
  },
64
64
  "dependencies": {
65
- "@backstage/backend-common": "^0.13.0-next.0",
66
- "@backstage/catalog-model": "^0.13.0-next.0",
65
+ "@backstage/backend-common": "^0.13.0",
66
+ "@backstage/catalog-model": "^0.13.0",
67
67
  "@backstage/cli-common": "^0.1.8",
68
68
  "@backstage/config": "^0.1.15",
69
- "@backstage/plugin-techdocs-node": "^0.11.12-next.0",
69
+ "@backstage/plugin-techdocs-node": "^0.11.12",
70
70
  "@types/dockerode": "^3.3.0",
71
71
  "commander": "^6.1.0",
72
72
  "dockerode": "^3.3.1",
@@ -76,5 +76,5 @@
76
76
  "serve-handler": "^6.1.3",
77
77
  "winston": "^3.2.1"
78
78
  },
79
- "gitHead": "e90d3ed129ebfce978f1adfa40c1dc2cef3f7e65"
79
+ "gitHead": "60c4e39d1fcaeb10d6488ada1d907f34dc2a105a"
80
80
  }
@@ -1,3 +0,0 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[3696],{7688:function(He,Ie,J){var oe=J(2784),ge=function(E,v){if(!(E instanceof v))throw new TypeError("Cannot call a class as a function")},Q=function(){function E(v,O){for(var M=0;M<O.length;M++){var z=O[M];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(v,z.key,z)}}return function(v,O,M){return O&&E(v.prototype,O),M&&E(v,M),v}}(),Te=Object.assign||function(E){for(var v=1;v<arguments.length;v++){var O=arguments[v];for(var M in O)Object.prototype.hasOwnProperty.call(O,M)&&(E[M]=O[M])}return E},Oe=function(E,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);E.prototype=Object.create(v&&v.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(E,v):E.__proto__=v)},X=function(E,v){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:E},ae=function(){function E(v,O){var M=[],z=!0,te=!1,Y=void 0;try{for(var G=v[Symbol.iterator](),K;!(z=(K=G.next()).done)&&(M.push(K.value),!(O&&M.length===O));z=!0);}catch(j){te=!0,Y=j}finally{try{!z&&G.return&&G.return()}finally{if(te)throw Y}}return M}return function(v,O){if(Array.isArray(v))return v;if(Symbol.iterator in Object(v))return E(v,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),N=void 0;typeof window!="undefined"?N=window:typeof self!="undefined"?N=self:N=J.g;var V=null,ce=null,de=20,pe=N.clearTimeout,be=N.setTimeout,we=N.cancelAnimationFrame||N.mozCancelAnimationFrame||N.webkitCancelAnimationFrame,Ae=N.requestAnimationFrame||N.mozRequestAnimationFrame||N.webkitRequestAnimationFrame;we==null||Ae==null?(V=pe,ce=function(v){return be(v,de)}):(V=function(v){var O=ae(v,2),M=O[0],z=O[1];we(M),pe(z)},ce=function(v){var O=Ae(function(){pe(M),v()}),M=be(function(){we(O),v()},de);return[O,M]});function Se(E){var v=void 0,O=void 0,M=void 0,z=void 0,te=void 0,Y=void 0,G=void 0,K=typeof document!="undefined"&&document.attachEvent;if(!K){Y=function(h){var H=h.__resizeTriggers__,q=H.firstElementChild,D=H.lastElementChild,he=q.firstElementChild;D.scrollLeft=D.scrollWidth,D.scrollTop=D.scrollHeight,he.style.width=q.offsetWidth+1+"px",he.style.height=q.offsetHeight+1+"px",q.scrollLeft=q.scrollWidth,q.scrollTop=q.scrollHeight},te=function(h){return h.offsetWidth!==h.__resizeLast__.width||h.offsetHeight!==h.__resizeLast__.height},G=function(h){if(!(h.target.className&&typeof h.target.className.indexOf=="function"&&h.target.className.indexOf("contract-trigger")<0&&h.target.className.indexOf("expand-trigger")<0)){var H=this;Y(this),this.__resizeRAF__&&V(this.__resizeRAF__),this.__resizeRAF__=ce(function(){te(H)&&(H.__resizeLast__.width=H.offsetWidth,H.__resizeLast__.height=H.offsetHeight,H.__resizeListeners__.forEach(function(he){he.call(H,h)}))})}};var j=!1,Z="";M="animationstart";var se="Webkit Moz O ms".split(" "),fe="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),ne="";{var re=document.createElement("fakeelement");if(re.style.animationName!==void 0&&(j=!0),j===!1){for(var le=0;le<se.length;le++)if(re.style[se[le]+"AnimationName"]!==void 0){ne=se[le],Z="-"+ne.toLowerCase()+"-",M=fe[le],j=!0;break}}}O="resizeanim",v="@"+Z+"keyframes "+O+" { from { opacity: 0; } to { opacity: 0; } } ",z=Z+"animation: 1ms "+O+"; "}var Re=function(h){if(!h.getElementById("detectElementResize")){var H=(v||"")+".resize-triggers { "+(z||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',q=h.head||h.getElementsByTagName("head")[0],D=h.createElement("style");D.id="detectElementResize",D.type="text/css",E!=null&&D.setAttribute("nonce",E),D.styleSheet?D.styleSheet.cssText=H:D.appendChild(h.createTextNode(H)),q.appendChild(D)}},xe=function(h,H){if(K)h.attachEvent("onresize",H);else{if(!h.__resizeTriggers__){var q=h.ownerDocument,D=N.getComputedStyle(h);D&&D.position==="static"&&(h.style.position="relative"),Re(q),h.__resizeLast__={},h.__resizeListeners__=[],(h.__resizeTriggers__=q.createElement("div")).className="resize-triggers";var he=q.createElement("div");he.className="expand-trigger",he.appendChild(q.createElement("div"));var We=q.createElement("div");We.className="contract-trigger",h.__resizeTriggers__.appendChild(he),h.__resizeTriggers__.appendChild(We),h.appendChild(h.__resizeTriggers__),Y(h),h.addEventListener("scroll",G,!0),M&&(h.__resizeTriggers__.__animationListener__=function(Ne){Ne.animationName===O&&Y(h)},h.__resizeTriggers__.addEventListener(M,h.__resizeTriggers__.__animationListener__))}h.__resizeListeners__.push(H)}},Ee=function(h,H){if(K)h.detachEvent("onresize",H);else if(h.__resizeListeners__.splice(h.__resizeListeners__.indexOf(H),1),!h.__resizeListeners__.length){h.removeEventListener("scroll",G,!0),h.__resizeTriggers__.__animationListener__&&(h.__resizeTriggers__.removeEventListener(M,h.__resizeTriggers__.__animationListener__),h.__resizeTriggers__.__animationListener__=null);try{h.__resizeTriggers__=!h.removeChild(h.__resizeTriggers__)}catch{}}};return{addResizeListener:xe,removeResizeListener:Ee}}var _e=function(E){Oe(v,E);function v(){var O,M,z,te;ge(this,v);for(var Y=arguments.length,G=Array(Y),K=0;K<Y;K++)G[K]=arguments[K];return te=(M=(z=X(this,(O=v.__proto__||Object.getPrototypeOf(v)).call.apply(O,[this].concat(G))),z),z.state={height:z.props.defaultHeight||0,width:z.props.defaultWidth||0},z._onResize=function(){var j=z.props,Z=j.disableHeight,se=j.disableWidth,fe=j.onResize;if(z._parentNode){var ne=z._parentNode.offsetHeight||0,re=z._parentNode.offsetWidth||0,le=window.getComputedStyle(z._parentNode)||{},Re=parseInt(le.paddingLeft,10)||0,xe=parseInt(le.paddingRight,10)||0,Ee=parseInt(le.paddingTop,10)||0,ve=parseInt(le.paddingBottom,10)||0,h=ne-Ee-ve,H=re-Re-xe;(!Z&&z.state.height!==h||!se&&z.state.width!==H)&&(z.setState({height:ne-Ee-ve,width:re-Re-xe}),fe({height:ne,width:re}))}},z._setRef=function(j){z._autoSizer=j},M),X(z,te)}return Q(v,[{key:"componentDidMount",value:function(){var M=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=Se(M),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var M=this.props,z=M.children,te=M.className,Y=M.disableHeight,G=M.disableWidth,K=M.style,j=this.state,Z=j.height,se=j.width,fe={overflow:"visible"},ne={},re=!1;return Y||(Z===0&&(re=!0),fe.height=0,ne.height=Z),G||(se===0&&(re=!0),fe.width=0,ne.width=se),(0,oe.createElement)("div",{className:te,ref:this._setRef,style:Te({},fe,K)},!re&&z(ne))}}]),v}(oe.PureComponent);_e.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}},Ie.Z=_e},8301:function(He,Ie,J){J.d(Ie,{t7:function(){return $e}});var oe=J(7896),ge=J(81665),Q=J(80753),Te=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Oe(o,e){return!!(o===e||Te(o)&&Te(e))}function X(o,e){if(o.length!==e.length)return!1;for(var t=0;t<o.length;t++)if(!Oe(o[t],e[t]))return!1;return!0}function ae(o,e){e===void 0&&(e=X);var t,r=[],i,l=!1;function s(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return l&&t===this&&e(u,r)||(i=o.apply(this,u),l=!0,t=this,r=u),i}return s}var N=ae,V=J(2784),ce=typeof performance=="object"&&typeof performance.now=="function",de=ce?function(){return performance.now()}:function(){return Date.now()};function pe(o){cancelAnimationFrame(o.id)}function be(o,e){var t=de();function r(){de()-t>=e?o.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var we=-1;function Ae(o){if(o===void 0&&(o=!1),we===-1||o){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),we=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return we}var Se=null;function _e(o){if(o===void 0&&(o=!1),Se===null||o){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Se="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Se="negative":Se="positive-ascending"),document.body.removeChild(e),Se}return Se}var E=150,v=function(e){var t=e.columnIndex,r=e.data,i=e.rowIndex;return i+":"+t},O=null,M=null,z=null;function te(o){var e,t,r=o.getColumnOffset,i=o.getColumnStartIndexForOffset,l=o.getColumnStopIndexForStartIndex,s=o.getColumnWidth,u=o.getEstimatedTotalHeight,c=o.getEstimatedTotalWidth,p=o.getOffsetForColumnAndAlignment,m=o.getOffsetForRowAndAlignment,I=o.getRowHeight,g=o.getRowOffset,A=o.getRowStartIndexForOffset,F=o.getRowStopIndexForStartIndex,y=o.initInstanceProps,a=o.shouldResetStyleCacheOnItemSizeChange,w=o.validateProps;return t=e=function(C){(0,ge.Z)(R,C);function R(b){var n;return n=C.call(this,b)||this,n._instanceProps=y(n.props,(0,Q.Z)((0,Q.Z)(n))),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:(0,Q.Z)((0,Q.Z)(n)),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof n.props.initialScrollLeft=="number"?n.props.initialScrollLeft:0,scrollTop:typeof n.props.initialScrollTop=="number"?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=N(function(f,d,S,x,_,W,P,$){return n.props.onItemsRendered({overscanColumnStartIndex:f,overscanColumnStopIndex:d,overscanRowStartIndex:S,overscanRowStopIndex:x,visibleColumnStartIndex:_,visibleColumnStopIndex:W,visibleRowStartIndex:P,visibleRowStopIndex:$})}),n._callOnScroll=void 0,n._callOnScroll=N(function(f,d,S,x,_){return n.props.onScroll({horizontalScrollDirection:S,scrollLeft:f,scrollTop:d,verticalScrollDirection:x,scrollUpdateWasRequested:_})}),n._getItemStyle=void 0,n._getItemStyle=function(f,d){var S=n.props,x=S.columnWidth,_=S.direction,W=S.rowHeight,P=n._getItemStyleCache(a&&x,a&&_,a&&W),$=f+":"+d,k;if(P.hasOwnProperty($))k=P[$];else{var U=r(n.props,d,n._instanceProps),L=_==="rtl";P[$]=k={position:"absolute",left:L?void 0:U,right:L?U:void 0,top:g(n.props,f,n._instanceProps),height:I(n.props,f,n._instanceProps),width:s(n.props,d,n._instanceProps)}}return k},n._getItemStyleCache=void 0,n._getItemStyleCache=N(function(f,d,S){return{}}),n._onScroll=function(f){var d=f.currentTarget,S=d.clientHeight,x=d.clientWidth,_=d.scrollLeft,W=d.scrollTop,P=d.scrollHeight,$=d.scrollWidth;n.setState(function(k){if(k.scrollLeft===_&&k.scrollTop===W)return null;var U=n.props.direction,L=_;if(U==="rtl")switch(_e()){case"negative":L=-_;break;case"positive-descending":L=$-x-_;break}L=Math.max(0,Math.min(L,$-x));var B=Math.max(0,Math.min(W,P-S));return{isScrolling:!0,horizontalScrollDirection:k.scrollLeft<_?"forward":"backward",scrollLeft:L,scrollTop:B,verticalScrollDirection:k.scrollTop<W?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(f){var d=n.props.outerRef;n._outerRef=f,typeof d=="function"?d(f):d!=null&&typeof d=="object"&&d.hasOwnProperty("current")&&(d.current=f)},n._resetIsScrollingDebounced=function(){n._resetIsScrollingTimeoutId!==null&&pe(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=be(n._resetIsScrolling,E)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}R.getDerivedStateFromProps=function(n,f){return Y(n,f),w(n),null};var T=R.prototype;return T.scrollTo=function(n){var f=n.scrollLeft,d=n.scrollTop;f!==void 0&&(f=Math.max(0,f)),d!==void 0&&(d=Math.max(0,d)),this.setState(function(S){return f===void 0&&(f=S.scrollLeft),d===void 0&&(d=S.scrollTop),S.scrollLeft===f&&S.scrollTop===d?null:{horizontalScrollDirection:S.scrollLeft<f?"forward":"backward",scrollLeft:f,scrollTop:d,scrollUpdateWasRequested:!0,verticalScrollDirection:S.scrollTop<d?"forward":"backward"}},this._resetIsScrollingDebounced)},T.scrollToItem=function(n){var f=n.align,d=f===void 0?"auto":f,S=n.columnIndex,x=n.rowIndex,_=this.props,W=_.columnCount,P=_.height,$=_.rowCount,k=_.width,U=this.state,L=U.scrollLeft,B=U.scrollTop,ee=Ae();S!==void 0&&(S=Math.max(0,Math.min(S,W-1))),x!==void 0&&(x=Math.max(0,Math.min(x,$-1)));var ue=u(this.props,this._instanceProps),ie=c(this.props,this._instanceProps),Ce=ie>k?ee:0,ze=ue>P?ee:0;this.scrollTo({scrollLeft:S!==void 0?p(this.props,S,d,L,this._instanceProps,ze):L,scrollTop:x!==void 0?m(this.props,x,d,B,this._instanceProps,Ce):B})},T.componentDidMount=function(){var n=this.props,f=n.initialScrollLeft,d=n.initialScrollTop;if(this._outerRef!=null){var S=this._outerRef;typeof f=="number"&&(S.scrollLeft=f),typeof d=="number"&&(S.scrollTop=d)}this._callPropsCallbacks()},T.componentDidUpdate=function(){var n=this.props.direction,f=this.state,d=f.scrollLeft,S=f.scrollTop,x=f.scrollUpdateWasRequested;if(x&&this._outerRef!=null){var _=this._outerRef;if(n==="rtl")switch(_e()){case"negative":_.scrollLeft=-d;break;case"positive-ascending":_.scrollLeft=d;break;default:var W=_.clientWidth,P=_.scrollWidth;_.scrollLeft=P-W-d;break}else _.scrollLeft=Math.max(0,d);_.scrollTop=Math.max(0,S)}this._callPropsCallbacks()},T.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&pe(this._resetIsScrollingTimeoutId)},T.render=function(){var n=this.props,f=n.children,d=n.className,S=n.columnCount,x=n.direction,_=n.height,W=n.innerRef,P=n.innerElementType,$=n.innerTagName,k=n.itemData,U=n.itemKey,L=U===void 0?v:U,B=n.outerElementType,ee=n.outerTagName,ue=n.rowCount,ie=n.style,Ce=n.useIsScrolling,ze=n.width,Me=this.state.isScrolling,me=this._getHorizontalRangeToRender(),ye=me[0],Ze=me[1],ke=this._getVerticalRangeToRender(),je=ke[0],Be=ke[1],Ue=[];if(S>0&&ue)for(var Fe=je;Fe<=Be;Fe++)for(var Le=ye;Le<=Ze;Le++)Ue.push((0,V.createElement)(f,{columnIndex:Le,data:k,isScrolling:Ce?Me:void 0,key:L({columnIndex:Le,data:k,rowIndex:Fe}),rowIndex:Fe,style:this._getItemStyle(Fe,Le)}));var Ve=u(this.props,this._instanceProps),Ke=c(this.props,this._instanceProps);return(0,V.createElement)(B||ee||"div",{className:d,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,oe.Z)({position:"relative",height:_,width:ze,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},ie)},(0,V.createElement)(P||$||"div",{children:Ue,ref:W,style:{height:Ve,pointerEvents:Me?"none":void 0,width:Ke}}))},T._callPropsCallbacks=function(){var n=this.props,f=n.columnCount,d=n.onItemsRendered,S=n.onScroll,x=n.rowCount;if(typeof d=="function"&&f>0&&x>0){var _=this._getHorizontalRangeToRender(),W=_[0],P=_[1],$=_[2],k=_[3],U=this._getVerticalRangeToRender(),L=U[0],B=U[1],ee=U[2],ue=U[3];this._callOnItemsRendered(W,P,L,B,$,k,ee,ue)}if(typeof S=="function"){var ie=this.state,Ce=ie.horizontalScrollDirection,ze=ie.scrollLeft,Me=ie.scrollTop,me=ie.scrollUpdateWasRequested,ye=ie.verticalScrollDirection;this._callOnScroll(ze,Me,Ce,ye,me)}},T._getHorizontalRangeToRender=function(){var n=this.props,f=n.columnCount,d=n.overscanColumnCount,S=n.overscanColumnsCount,x=n.overscanCount,_=n.rowCount,W=this.state,P=W.horizontalScrollDirection,$=W.isScrolling,k=W.scrollLeft,U=d||S||x||1;if(f===0||_===0)return[0,0,0,0];var L=i(this.props,k,this._instanceProps),B=l(this.props,L,k,this._instanceProps),ee=!$||P==="backward"?Math.max(1,U):1,ue=!$||P==="forward"?Math.max(1,U):1;return[Math.max(0,L-ee),Math.max(0,Math.min(f-1,B+ue)),L,B]},T._getVerticalRangeToRender=function(){var n=this.props,f=n.columnCount,d=n.overscanCount,S=n.overscanRowCount,x=n.overscanRowsCount,_=n.rowCount,W=this.state,P=W.isScrolling,$=W.verticalScrollDirection,k=W.scrollTop,U=S||x||d||1;if(f===0||_===0)return[0,0,0,0];var L=A(this.props,k,this._instanceProps),B=F(this.props,L,k,this._instanceProps),ee=!P||$==="backward"?Math.max(1,U):1,ue=!P||$==="forward"?Math.max(1,U):1;return[Math.max(0,L-ee),Math.max(0,Math.min(_-1,B+ue)),L,B]},R}(V.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Y=function(e,t){var r=e.children,i=e.direction,l=e.height,s=e.innerTagName,u=e.outerTagName,c=e.overscanColumnsCount,p=e.overscanCount,m=e.overscanRowsCount,I=e.width,g=t.instance},G=50,K=function(e,t){var r=e.rowCount,i=t.rowMetadataMap,l=t.estimatedRowHeight,s=t.lastMeasuredRowIndex,u=0;if(s>=r&&(s=r-1),s>=0){var c=i[s];u=c.offset+c.size}var p=r-s-1,m=p*l;return u+m},j=function(e,t){var r=e.columnCount,i=t.columnMetadataMap,l=t.estimatedColumnWidth,s=t.lastMeasuredColumnIndex,u=0;if(s>=r&&(s=r-1),s>=0){var c=i[s];u=c.offset+c.size}var p=r-s-1,m=p*l;return u+m},Z=function(e,t,r,i){var l,s,u;if(e==="column"?(l=i.columnMetadataMap,s=t.columnWidth,u=i.lastMeasuredColumnIndex):(l=i.rowMetadataMap,s=t.rowHeight,u=i.lastMeasuredRowIndex),r>u){var c=0;if(u>=0){var p=l[u];c=p.offset+p.size}for(var m=u+1;m<=r;m++){var I=s(m);l[m]={offset:c,size:I},c+=I}e==="column"?i.lastMeasuredColumnIndex=r:i.lastMeasuredRowIndex=r}return l[r]},se=function(e,t,r,i){var l,s;e==="column"?(l=r.columnMetadataMap,s=r.lastMeasuredColumnIndex):(l=r.rowMetadataMap,s=r.lastMeasuredRowIndex);var u=s>0?l[s].offset:0;return u>=i?fe(e,t,r,s,0,i):ne(e,t,r,Math.max(0,s),i)},fe=function(e,t,r,i,l,s){for(;l<=i;){var u=l+Math.floor((i-l)/2),c=Z(e,t,u,r).offset;if(c===s)return u;c<s?l=u+1:c>s&&(i=u-1)}return l>0?l-1:0},ne=function(e,t,r,i,l){for(var s=e==="column"?t.columnCount:t.rowCount,u=1;i<s&&Z(e,t,i,r).offset<l;)i+=u,u*=2;return fe(e,t,r,Math.min(i,s-1),Math.floor(i/2),l)},re=function(e,t,r,i,l,s,u){var c=e==="column"?t.width:t.height,p=Z(e,t,r,s),m=e==="column"?j(t,s):K(t,s),I=Math.max(0,Math.min(m-c,p.offset)),g=Math.max(0,p.offset-c+u+p.size);switch(i==="smart"&&(l>=g-c&&l<=I+c?i="auto":i="center"),i){case"start":return I;case"end":return g;case"center":return Math.round(g+(I-g)/2);case"auto":default:return l>=g&&l<=I?l:g>I||l<g?g:I}},le=te({getColumnOffset:function(e,t,r){return Z("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return se("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,i){for(var l=e.columnCount,s=e.width,u=Z("column",e,t,i),c=r+s,p=u.offset+u.size,m=t;m<l-1&&p<c;)m++,p+=Z("column",e,m,i).size;return m},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:K,getEstimatedTotalWidth:j,getOffsetForColumnAndAlignment:function(e,t,r,i,l,s){return re("column",e,t,r,i,l,s)},getOffsetForRowAndAlignment:function(e,t,r,i,l,s){return re("row",e,t,r,i,l,s)},getRowOffset:function(e,t,r){return Z("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return se("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,i){for(var l=e.rowCount,s=e.height,u=Z("row",e,t,i),c=r+s,p=u.offset+u.size,m=t;m<l-1&&p<c;)m++,p+=Z("row",e,m,i).size;return m},initInstanceProps:function(e,t){var r=e,i=r.estimatedColumnWidth,l=r.estimatedRowHeight,s={columnMetadataMap:{},estimatedColumnWidth:i||G,estimatedRowHeight:l||G,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(u,c){c===void 0&&(c=!0),t.resetAfterIndices({columnIndex:u,shouldForceUpdate:c})},t.resetAfterRowIndex=function(u,c){c===void 0&&(c=!0),t.resetAfterIndices({rowIndex:u,shouldForceUpdate:c})},t.resetAfterIndices=function(u){var c=u.columnIndex,p=u.rowIndex,m=u.shouldForceUpdate,I=m===void 0?!0:m;typeof c=="number"&&(s.lastMeasuredColumnIndex=Math.min(s.lastMeasuredColumnIndex,c-1)),typeof p=="number"&&(s.lastMeasuredRowIndex=Math.min(s.lastMeasuredRowIndex,p-1)),t._getItemStyleCache(-1),I&&t.forceUpdate()},s},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var t=e.columnWidth,r=e.rowHeight}}),Re=150,xe=function(e,t){return e},Ee=null,ve=null;function h(o){var e,t,r=o.getItemOffset,i=o.getEstimatedTotalSize,l=o.getItemSize,s=o.getOffsetForIndexAndAlignment,u=o.getStartIndexForOffset,c=o.getStopIndexForStartIndex,p=o.initInstanceProps,m=o.shouldResetStyleCacheOnItemSizeChange,I=o.validateProps;return t=e=function(g){(0,ge.Z)(A,g);function A(y){var a;return a=g.call(this,y)||this,a._instanceProps=p(a.props,(0,Q.Z)((0,Q.Z)(a))),a._outerRef=void 0,a._resetIsScrollingTimeoutId=null,a.state={instance:(0,Q.Z)((0,Q.Z)(a)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof a.props.initialScrollOffset=="number"?a.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},a._callOnItemsRendered=void 0,a._callOnItemsRendered=N(function(w,C,R,T){return a.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:C,visibleStartIndex:R,visibleStopIndex:T})}),a._callOnScroll=void 0,a._callOnScroll=N(function(w,C,R){return a.props.onScroll({scrollDirection:w,scrollOffset:C,scrollUpdateWasRequested:R})}),a._getItemStyle=void 0,a._getItemStyle=function(w){var C=a.props,R=C.direction,T=C.itemSize,b=C.layout,n=a._getItemStyleCache(m&&T,m&&b,m&&R),f;if(n.hasOwnProperty(w))f=n[w];else{var d=r(a.props,w,a._instanceProps),S=l(a.props,w,a._instanceProps),x=R==="horizontal"||b==="horizontal",_=R==="rtl",W=x?d:0;n[w]=f={position:"absolute",left:_?void 0:W,right:_?W:void 0,top:x?0:d,height:x?"100%":S,width:x?S:"100%"}}return f},a._getItemStyleCache=void 0,a._getItemStyleCache=N(function(w,C,R){return{}}),a._onScrollHorizontal=function(w){var C=w.currentTarget,R=C.clientWidth,T=C.scrollLeft,b=C.scrollWidth;a.setState(function(n){if(n.scrollOffset===T)return null;var f=a.props.direction,d=T;if(f==="rtl")switch(_e()){case"negative":d=-T;break;case"positive-descending":d=b-R-T;break}return d=Math.max(0,Math.min(d,b-R)),{isScrolling:!0,scrollDirection:n.scrollOffset<T?"forward":"backward",scrollOffset:d,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._onScrollVertical=function(w){var C=w.currentTarget,R=C.clientHeight,T=C.scrollHeight,b=C.scrollTop;a.setState(function(n){if(n.scrollOffset===b)return null;var f=Math.max(0,Math.min(b,T-R));return{isScrolling:!0,scrollDirection:n.scrollOffset<f?"forward":"backward",scrollOffset:f,scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(w){var C=a.props.outerRef;a._outerRef=w,typeof C=="function"?C(w):C!=null&&typeof C=="object"&&C.hasOwnProperty("current")&&(C.current=w)},a._resetIsScrollingDebounced=function(){a._resetIsScrollingTimeoutId!==null&&pe(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=be(a._resetIsScrolling,Re)},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},function(){a._getItemStyleCache(-1,null)})},a}A.getDerivedStateFromProps=function(a,w){return H(a,w),I(a),null};var F=A.prototype;return F.scrollTo=function(a){a=Math.max(0,a),this.setState(function(w){return w.scrollOffset===a?null:{scrollDirection:w.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},F.scrollToItem=function(a,w){w===void 0&&(w="auto");var C=this.props.itemCount,R=this.state.scrollOffset;a=Math.max(0,Math.min(a,C-1)),this.scrollTo(s(this.props,a,w,R,this._instanceProps))},F.componentDidMount=function(){var a=this.props,w=a.direction,C=a.initialScrollOffset,R=a.layout;if(typeof C=="number"&&this._outerRef!=null){var T=this._outerRef;w==="horizontal"||R==="horizontal"?T.scrollLeft=C:T.scrollTop=C}this._callPropsCallbacks()},F.componentDidUpdate=function(){var a=this.props,w=a.direction,C=a.layout,R=this.state,T=R.scrollOffset,b=R.scrollUpdateWasRequested;if(b&&this._outerRef!=null){var n=this._outerRef;if(w==="horizontal"||C==="horizontal")if(w==="rtl")switch(_e()){case"negative":n.scrollLeft=-T;break;case"positive-ascending":n.scrollLeft=T;break;default:var f=n.clientWidth,d=n.scrollWidth;n.scrollLeft=d-f-T;break}else n.scrollLeft=T;else n.scrollTop=T}this._callPropsCallbacks()},F.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&pe(this._resetIsScrollingTimeoutId)},F.render=function(){var a=this.props,w=a.children,C=a.className,R=a.direction,T=a.height,b=a.innerRef,n=a.innerElementType,f=a.innerTagName,d=a.itemCount,S=a.itemData,x=a.itemKey,_=x===void 0?xe:x,W=a.layout,P=a.outerElementType,$=a.outerTagName,k=a.style,U=a.useIsScrolling,L=a.width,B=this.state.isScrolling,ee=R==="horizontal"||W==="horizontal",ue=ee?this._onScrollHorizontal:this._onScrollVertical,ie=this._getRangeToRender(),Ce=ie[0],ze=ie[1],Me=[];if(d>0)for(var me=Ce;me<=ze;me++)Me.push((0,V.createElement)(w,{data:S,key:_(me,S),index:me,isScrolling:U?B:void 0,style:this._getItemStyle(me)}));var ye=i(this.props,this._instanceProps);return(0,V.createElement)(P||$||"div",{className:C,onScroll:ue,ref:this._outerRefSetter,style:(0,oe.Z)({position:"relative",height:T,width:L,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:R},k)},(0,V.createElement)(n||f||"div",{children:Me,ref:b,style:{height:ee?"100%":ye,pointerEvents:B?"none":void 0,width:ee?ye:"100%"}}))},F._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var a=this.props.itemCount;if(a>0){var w=this._getRangeToRender(),C=w[0],R=w[1],T=w[2],b=w[3];this._callOnItemsRendered(C,R,T,b)}}if(typeof this.props.onScroll=="function"){var n=this.state,f=n.scrollDirection,d=n.scrollOffset,S=n.scrollUpdateWasRequested;this._callOnScroll(f,d,S)}},F._getRangeToRender=function(){var a=this.props,w=a.itemCount,C=a.overscanCount,R=this.state,T=R.isScrolling,b=R.scrollDirection,n=R.scrollOffset;if(w===0)return[0,0,0,0];var f=u(this.props,n,this._instanceProps),d=c(this.props,f,n,this._instanceProps),S=!T||b==="backward"?Math.max(1,C):1,x=!T||b==="forward"?Math.max(1,C):1;return[Math.max(0,f-S),Math.max(0,Math.min(w-1,d+x)),f,d]},A}(V.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var H=function(e,t){var r=e.children,i=e.direction,l=e.height,s=e.layout,u=e.innerTagName,c=e.outerTagName,p=e.width,m=t.instance;if(!1)var I},q=50,D=function(e,t,r){var i=e,l=i.itemSize,s=r.itemMetadataMap,u=r.lastMeasuredIndex;if(t>u){var c=0;if(u>=0){var p=s[u];c=p.offset+p.size}for(var m=u+1;m<=t;m++){var I=l(m);s[m]={offset:c,size:I},c+=I}r.lastMeasuredIndex=t}return s[t]},he=function(e,t,r){var i=t.itemMetadataMap,l=t.lastMeasuredIndex,s=l>0?i[l].offset:0;return s>=r?We(e,t,l,0,r):Pe(e,t,Math.max(0,l),r)},We=function(e,t,r,i,l){for(;i<=r;){var s=i+Math.floor((r-i)/2),u=D(e,s,t).offset;if(u===l)return s;u<l?i=s+1:u>l&&(r=s-1)}return i>0?i-1:0},Pe=function(e,t,r,i){for(var l=e.itemCount,s=1;r<l&&D(e,r,t).offset<i;)r+=s,s*=2;return We(e,t,Math.min(r,l-1),Math.floor(r/2),i)},Ne=function(e,t){var r=e.itemCount,i=t.itemMetadataMap,l=t.estimatedItemSize,s=t.lastMeasuredIndex,u=0;if(s>=r&&(s=r-1),s>=0){var c=i[s];u=c.offset+c.size}var p=r-s-1,m=p*l;return u+m},Ge=h({getItemOffset:function(e,t,r){return D(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Ne,getOffsetForIndexAndAlignment:function(e,t,r,i,l){var s=e.direction,u=e.height,c=e.layout,p=e.width,m=s==="horizontal"||c==="horizontal",I=m?p:u,g=D(e,t,l),A=Ne(e,l),F=Math.max(0,Math.min(A-I,g.offset)),y=Math.max(0,g.offset-I+g.size);switch(r==="smart"&&(i>=y-I&&i<=F+I?r="auto":r="center"),r){case"start":return F;case"end":return y;case"center":return Math.round(y+(F-y)/2);case"auto":default:return i>=y&&i<=F?i:i<y?y:F}},getStartIndexForOffset:function(e,t,r){return he(e,r,t)},getStopIndexForStartIndex:function(e,t,r,i){for(var l=e.direction,s=e.height,u=e.itemCount,c=e.layout,p=e.width,m=l==="horizontal"||c==="horizontal",I=m?p:s,g=D(e,t,i),A=r+I,F=g.offset+g.size,y=t;y<u-1&&F<A;)y++,F+=D(e,y,i).size;return y},initInstanceProps:function(e,t){var r=e,i=r.estimatedItemSize,l={itemMetadataMap:{},estimatedItemSize:i||q,lastMeasuredIndex:-1};return t.resetAfterIndex=function(s,u){u===void 0&&(u=!0),l.lastMeasuredIndex=Math.min(l.lastMeasuredIndex,s-1),t._getItemStyleCache(-1),u&&t.forceUpdate()},l},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){var t=e.itemSize}}),Je=te({getColumnOffset:function(e,t){var r=e.columnWidth;return t*r},getColumnWidth:function(e,t){var r=e.columnWidth;return r},getRowOffset:function(e,t){var r=e.rowHeight;return t*r},getRowHeight:function(e,t){var r=e.rowHeight;return r},getEstimatedTotalHeight:function(e){var t=e.rowCount,r=e.rowHeight;return r*t},getEstimatedTotalWidth:function(e){var t=e.columnCount,r=e.columnWidth;return r*t},getOffsetForColumnAndAlignment:function(e,t,r,i,l,s){var u=e.columnCount,c=e.columnWidth,p=e.width,m=Math.max(0,u*c-p),I=Math.min(m,t*c),g=Math.max(0,t*c-p+s+c);switch(r==="smart"&&(i>=g-p&&i<=I+p?r="auto":r="center"),r){case"start":return I;case"end":return g;case"center":var A=Math.round(g+(I-g)/2);return A<Math.ceil(p/2)?0:A>m+Math.floor(p/2)?m:A;case"auto":default:return i>=g&&i<=I?i:g>I||i<g?g:I}},getOffsetForRowAndAlignment:function(e,t,r,i,l,s){var u=e.rowHeight,c=e.height,p=e.rowCount,m=Math.max(0,p*u-c),I=Math.min(m,t*u),g=Math.max(0,t*u-c+s+u);switch(r==="smart"&&(i>=g-c&&i<=I+c?r="auto":r="center"),r){case"start":return I;case"end":return g;case"center":var A=Math.round(g+(I-g)/2);return A<Math.ceil(c/2)?0:A>m+Math.floor(c/2)?m:A;case"auto":default:return i>=g&&i<=I?i:g>I||i<g?g:I}},getColumnStartIndexForOffset:function(e,t){var r=e.columnWidth,i=e.columnCount;return Math.max(0,Math.min(i-1,Math.floor(t/r)))},getColumnStopIndexForStartIndex:function(e,t,r){var i=e.columnWidth,l=e.columnCount,s=e.width,u=t*i,c=Math.ceil((s+r-u)/i);return Math.max(0,Math.min(l-1,t+c-1))},getRowStartIndexForOffset:function(e,t){var r=e.rowHeight,i=e.rowCount;return Math.max(0,Math.min(i-1,Math.floor(t/r)))},getRowStopIndexForStartIndex:function(e,t,r){var i=e.rowHeight,l=e.rowCount,s=e.height,u=t*i,c=Math.ceil((s+r-u)/i);return Math.max(0,Math.min(l-1,t+c-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var t=e.columnWidth,r=e.rowHeight}}),$e=h({getItemOffset:function(e,t){var r=e.itemSize;return t*r},getItemSize:function(e,t){var r=e.itemSize;return r},getEstimatedTotalSize:function(e){var t=e.itemCount,r=e.itemSize;return r*t},getOffsetForIndexAndAlignment:function(e,t,r,i){var l=e.direction,s=e.height,u=e.itemCount,c=e.itemSize,p=e.layout,m=e.width,I=l==="horizontal"||p==="horizontal",g=I?m:s,A=Math.max(0,u*c-g),F=Math.min(A,t*c),y=Math.max(0,t*c-g+c);switch(r==="smart"&&(i>=y-g&&i<=F+g?r="auto":r="center"),r){case"start":return F;case"end":return y;case"center":{var a=Math.round(y+(F-y)/2);return a<Math.ceil(g/2)?0:a>A+Math.floor(g/2)?A:a}case"auto":default:return i>=y&&i<=F?i:i<y?y:F}},getStartIndexForOffset:function(e,t){var r=e.itemCount,i=e.itemSize;return Math.max(0,Math.min(r-1,Math.floor(t/i)))},getStopIndexForStartIndex:function(e,t,r){var i=e.direction,l=e.height,s=e.itemCount,u=e.itemSize,c=e.layout,p=e.width,m=i==="horizontal"||c==="horizontal",I=t*u,g=m?p:l,A=Math.ceil((g+r-I)/u);return Math.max(0,Math.min(s-1,t+A-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var t=e.itemSize}});function De(o,e){for(var t in o)if(!(t in e))return!0;for(var r in e)if(o[r]!==e[r])return!0;return!1}function qe(o,e){var t=o.style,r=_objectWithoutPropertiesLoose(o,["style"]),i=e.style,l=_objectWithoutPropertiesLoose(e,["style"]);return!De(t,i)&&!De(r,l)}function Qe(o,e){return!qe(this.props,o)||De(this.state,e)}},1211:function(He,Ie,J){J.d(Ie,{O:function(){return Oe}});var oe=J(2784);function ge(X,ae){return typeof X=="function"?X(ae):X}var Q=J(14165);function Te(X){var ae=(0,oe.useState)(X),N=ae[0],V=ae[1],ce=(0,Q.t)();return[N,(0,oe.useCallback)(function(de){ce()&&V(de)},[])]}function Oe(X){X===void 0&&(X=!1);var ae=Te(X),N=ae[0],V=ae[1];return[N,(0,oe.useCallback)(function(ce){V(function(de){return typeof ce=="undefined"?!de:Boolean(ge(ce,de))})},[])]}},46212:function(He,Ie,J){J.d(Ie,{Z:function(){return oe}});function oe({onlyFirst:ge=!1}={}){const Q=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(Q,ge?void 0:"g")}}}]);})();
2
-
3
- //# sourceMappingURL=3696.77a82030.chunk.js.map
@@ -1,4 +0,0 @@
1
- "use strict";(()=>{var he=Object.defineProperty;var fe=(S,g,c)=>g in S?he(S,g,{enumerable:!0,configurable:!0,writable:!0,value:c}):S[g]=c;var k=(S,g,c)=>(fe(S,typeof g!="symbol"?g+"":g,c),c);(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8718],{98718:function(S,g,c){c.r(g),c.d(g,{RealLogViewer:function(){return de}});var a=c(2784),U=c(10289),v=c(61837),W=c(19353),w=c(7688),D=c(8301),G=c(46212);const E=(0,G.Z)(),I=/\n\r?/g,b=Object.fromEntries(Object.entries({1:e=>({...e,bold:!0}),3:e=>({...e,italic:!0}),4:e=>({...e,underline:!0}),22:({bold:e,...t})=>t,23:({italic:e,...t})=>t,24:({underline:e,...t})=>t,30:e=>({...e,foreground:"black"}),31:e=>({...e,foreground:"red"}),32:e=>({...e,foreground:"green"}),33:e=>({...e,foreground:"yellow"}),34:e=>({...e,foreground:"blue"}),35:e=>({...e,foreground:"magenta"}),36:e=>({...e,foreground:"cyan"}),37:e=>({...e,foreground:"white"}),39:({foreground:e,...t})=>t,90:e=>({...e,foreground:"grey"}),40:e=>({...e,background:"black"}),41:e=>({...e,background:"red"}),42:e=>({...e,background:"green"}),43:e=>({...e,background:"yellow"}),44:e=>({...e,background:"blue"}),45:e=>({...e,background:"magenta"}),46:e=>({...e,background:"cyan"}),47:e=>({...e,background:"white"}),49:({background:e,...t})=>t}).map(([e,t])=>[`\x1B[${e}m`,t]));class L{constructor(t=1,n=[]){k(this,"text");this.lineNumber=t,this.chunks=n,this.text=n.map(s=>s.text).join("").toLocaleLowerCase("en-US")}lastChunk(){return this.chunks[this.chunks.length-1]}replaceLastChunk(t){t&&(this.chunks.splice(this.chunks.length-1,1,...t),this.text=this.chunks.map(n=>n.text).join("").toLocaleLowerCase("en-US"))}}class P{constructor(){k(this,"text","");k(this,"lines",[]);k(this,"processLines",(t,n={},s=1)=>{var l;const o=[];let i=n,r=s,u=0;for(I.lastIndex=0;;){const h=I.exec(t);if(!h){const f=this.processText(t.slice(u),i);return o.push(new L(r,f)),o}const d=t.slice(u,h.index);u=h.index+h[0].length;const p=this.processText(d,i);o.push(new L(r,p)),i=(l=p[p.length-1].modifiers)!=null?l:i,r+=1}});k(this,"processText",(t,n)=>{const s=[];let o=n,i=0;for(E.lastIndex=0;;){const r=E.exec(t);if(!r)return s.push({text:t.slice(i),modifiers:o}),s;const u=t.slice(i,r.index);s.push({text:u,modifiers:o}),i=r.index+r[0].length,o=this.processCode(r[0],o)}});k(this,"processCode",(t,n)=>{var s,o;return(o=(s=b[t])==null?void 0:s.call(b,n))!=null?o:n})}process(t){var n,s,o;if(this.text===t)return this.lines;if(t.startsWith(this.text)){const i=this.lines.length>0?this.lines.length-1:0,r=(n=this.lines[i])!=null?n:new L,u=r.lastChunk(),l=this.processLines(((s=u==null?void 0:u.text)!=null?s:"")+t.slice(this.text.length),u==null?void 0:u.modifiers,r==null?void 0:r.lineNumber);r.replaceLastChunk((o=l[0])==null?void 0:o.chunks),this.lines[i]=r,this.lines.push(...l.slice(1))}else this.lines=this.processLines(t);return this.text=t,this.lines}}var $=c(79692),B=c(41128),C=c(31754),F=c(66054),R=c(81463),M=c(34505),N=c(57186),T=c(32720),A=c(92901),j=c(45410);const z=40,Y=(0,$.Z)(e=>({root:{background:e.palette.background.paper},header:{height:z,display:"flex",alignItems:"center",justifyContent:"flex-end"},log:{fontFamily:'"Monaco", monospace',fontSize:e.typography.pxToRem(12)},line:{position:"relative",whiteSpace:"pre","&:hover":{background:e.palette.action.hover}},lineSelected:{background:e.palette.action.selected,"&:hover":{background:e.palette.action.selected}},lineCopyButton:{position:"absolute",paddingTop:0,paddingBottom:0},lineNumber:{display:"inline-block",textAlign:"end",width:60,marginRight:e.spacing(1),cursor:"pointer"},textHighlight:{background:(0,B.Fq)(e.palette.info.main,.15)},textSelectedHighlight:{background:(0,B.Fq)(e.palette.info.main,.4)},modifierBold:{fontWeight:e.typography.fontWeightBold},modifierItalic:{fontStyle:"italic"},modifierUnderline:{textDecoration:"underline"},modifierForegroundBlack:{color:C.Z.black},modifierForegroundRed:{color:F.Z[500]},modifierForegroundGreen:{color:R.Z[500]},modifierForegroundYellow:{color:M.Z[500]},modifierForegroundBlue:{color:N.Z[500]},modifierForegroundMagenta:{color:T.Z[500]},modifierForegroundCyan:{color:A.Z[500]},modifierForegroundWhite:{color:C.Z.white},modifierForegroundGrey:{color:j.Z[500]},modifierBackgroundBlack:{background:C.Z.black},modifierBackgroundRed:{background:F.Z[500]},modifierBackgroundGreen:{background:R.Z[500]},modifierBackgroundYellow:{background:M.Z[500]},modifierBackgroundBlue:{background:N.Z[500]},modifierBackgroundMagenta:{background:T.Z[500]},modifierBackgroundCyan:{background:A.Z[500]},modifierBackgroundWhite:{background:C.Z.white},modifierBackgroundGrey:{background:j.Z[500]}}),{name:"BackstageLogViewer"});var J=c(72779),K=c.n(J),Q=c(74600),H=c.n(Q);function X(e,t){const n=new Array;if(t.bold&&n.push(e.modifierBold),t.italic&&n.push(e.modifierItalic),t.underline&&n.push(e.modifierUnderline),t.foreground){const s=`modifierForeground${H()(t.foreground)}`;n.push(e[s])}if(t.background){const s=`modifierBackground${H()(t.background)}`;n.push(e[s])}return n.length>0?n.join(" "):void 0}function q(e,t){if(!t||!e.includes(t))return;const n=new Array;let s=0;for(;;){const o=e.indexOf(t,s);if(o===-1)break;const i=o+t.length;n.push({start:o,end:i}),s=i}return n}function _(e,t){const n=q(e.text,t);if(!n)return e.chunks;const s=new Array;let o=0,i=0,r=n[i];for(const u of e.chunks){const{text:l,modifiers:h}=u;if(!r||o+l.length<r.start){s.push(u),o+=l.length;continue}let d=0;for(;r;){const f=Math.max(r.start-o,0);if(f>l.length)break;const x=Math.min(r.end-o,l.length);if(f>d&&s.push({text:l.slice(d,f),modifiers:h}),x>f&&s.push({modifiers:h,highlight:i,text:l.slice(f,x)}),d=x,r.end-o===x)i+=1,r=n[i];else break}d<l.length&&s.push({text:l.slice(d),modifiers:h}),o+=l.length}return s}function ee({line:e,classes:t,searchText:n,highlightResultIndex:s}){const o=(0,a.useMemo)(()=>_(e,n),[e,n]),i=(0,a.useMemo)(()=>o.map(({text:r,modifiers:u,highlight:l},h)=>a.createElement("span",{key:h,className:K()(X(t,u),l!==void 0&&(l===s?t.textSelectedHighlight:t.textHighlight))},r)),[o,s,t]);return a.createElement(a.Fragment,null,i)}var te=c(86619),ne=c(90436),oe=c(48049),se=c(51209),O=c(36444);function re(e){var r;const{resultCount:t,resultIndexStep:n,toggleShouldFilter:s}=e,o=(r=e.resultIndex)!=null?r:0,i=u=>{u.key==="Enter"&&(u.metaKey||u.ctrlKey||u.altKey?s():n(u.shiftKey))};return a.createElement(a.Fragment,null,t!==void 0&&a.createElement(a.Fragment,null,a.createElement(v.Z,{size:"small",onClick:()=>n(!0)},a.createElement(oe.Z,null)),a.createElement(ne.Z,null,Math.min(o+1,t),"/",t),a.createElement(v.Z,{size:"small",onClick:()=>n()},a.createElement(se.Z,null))),a.createElement(te.Z,{size:"small",variant:"standard",placeholder:"Search",value:e.searchInput,onKeyPress:i,onChange:u=>e.setSearchInput(u.target.value)}),a.createElement(v.Z,{size:"small",onClick:s},e.shouldFilter?a.createElement(O.Z,{color:"primary"}):a.createElement(O.Z,{color:"disabled"})))}var le=c(1211);function ie(e,t){if(!t)return{lines:e};const n=[],s=[];for(const o of e)if(o.text.includes(t)){n.push(o);let i=0,r=0;for(;;){const u=o.text.indexOf(t,i);if(u===-1)break;s.push({lineNumber:o.lineNumber,lineIndex:r++}),i=u+t.length}}return{lines:n,results:s}}function ce(e){var f;const[t,n]=(0,a.useState)(""),s=t.toLocaleLowerCase("en-US"),[o,i]=(0,a.useState)(0),[r,u]=(0,le.O)(!1),l=(0,a.useMemo)(()=>ie(e,s),[e,s]),h=l.results?l.results[Math.min(o,l.results.length-1)]:void 0,d=(f=l.results)==null?void 0:f.length,p=x=>{if(x){if(d!==void 0){const m=Math.min(o-1,d-2);i(m<0?d-1:m)}}else if(d!==void 0){const m=o+1;i(m>=d?0:m)}};return{lines:r?l.lines:e,searchText:s,searchInput:t,setSearchInput:n,shouldFilter:r,toggleShouldFilter:u,resultCount:d,resultIndex:o,resultIndexStep:p,resultLine:h==null?void 0:h.lineNumber,resultLineIndex:h==null?void 0:h.lineIndex}}var V=c(36964),ae=c(55295);function ue(e){const t=(0,V.useApi)(V.errorApiRef),[n,s]=(0,a.useState)(),o=n?Math.min(n.start,n.end):void 0,i=n?Math.max(n.start,n.end):void 0,[{error:r},u]=(0,ae.Z)();return(0,a.useEffect)(()=>{r&&t.post(r)},[r,t]),{shouldShowButton(l){return o===l||i===l},isSelected(l){return n?o<=l&&l<=i:!1},setSelection(l,h){s(h?d=>d?{start:d.start,end:l}:{start:l,end:l}:d=>(d==null?void 0:d.start)===l&&(d==null?void 0:d.end)===l?void 0:{start:l,end:l})},copySelection(){if(n){const l=e.slice(Math.min(n.start,n.end)-1,Math.max(n.start,n.end)).map(h=>h.chunks.map(d=>d.text).join("")).join(`
2
- `);u(l),s(void 0)}}}}function de(e){const t=Y({classes:e.classes}),n=(0,a.useRef)(null),o=(0,a.useMemo)(()=>new P,[]).process(e.text),i=ce(o),r=ue(o),u=(0,U.TH)();(0,a.useEffect)(()=>{i.resultLine!==void 0&&n.current&&n.current.scrollToItem(i.resultLine-1,"center")},[i.resultLine]),(0,a.useEffect)(()=>{if(u.hash){const h=parseInt(u.hash.replace(/\D/g,""),10);r.setSelection(h,!1)}},[]);const l=(h,d)=>{r.setSelection(h,d.shiftKey)};return a.createElement(w.Z,null,({height:h,width:d})=>a.createElement("div",{style:{width:d,height:h},className:t.root},a.createElement("div",{className:t.header},a.createElement(re,{...i})),a.createElement(D.t7,{ref:n,className:t.log,height:h-z,width:d,itemData:i.lines,itemSize:20,itemCount:i.lines.length},({index:p,style:f,data:x})=>{const m=x[p],{lineNumber:y}=m;return a.createElement("div",{style:{...f},className:K()(t.line,{[t.lineSelected]:r.isSelected(y)})},r.shouldShowButton(y)&&a.createElement(v.Z,{"data-testid":"copy-button",size:"small",className:t.lineCopyButton,onClick:()=>r.copySelection()},a.createElement(W.Z,{fontSize:"inherit"})),a.createElement("a",{role:"row",target:"_self",href:`#line-${y}`,className:t.lineNumber,onClick:Z=>l(y,Z),onKeyPress:Z=>l(y,Z)},y),a.createElement(ee,{line:m,classes:t,searchText:i.searchText,highlightResultIndex:i.resultLine===y?i.resultLineIndex:void 0}))})))}}}]);})();
3
-
4
- //# sourceMappingURL=8718.71563d4c.chunk.js.map