1"use strict";(self.webpackChunkreq_test_ui=self.webpackChunkreq_test_ui||[]).push([[5287],{45287:(le,j,S)=>{function b(r,o,e,t){return new(e||(e=Promise))(function(a,i){function s(u){try{l(t.next(u))}catch(f){i(f)}}function c(u){try{l(t.throw(u))}catch(f){i(f)}}function l(u){u.done?a(u.value):function n(a){return a instanceof e?a:new e(function(i){i(a)})}(u.value).then(s,c)}l((t=t.apply(r,o||[])).next())})}S.d(j,{P4:()=>ie,Ye:()=>se}),"function"==typeof SuppressedError&&SuppressedError;var h=S(94650);let ne=(()=>{class r{constructor(e){this.opt=e,this.dataTableChanged=new h.EventEmitter,e&&this._setDataTable(e.dataTable,e.firstRowIsData)}send(){void 0!==this.query&&this.query.send(e=>{this.setDataTable(e.getDataTable()),this.opt.queryCallback&&this.opt.queryCallback(e)})}init(e){e&&(this.opt=e),void 0!==this.tid&&(window.clearInterval(this.tid),this.tid=void 0),this.opt.dataSourceUrl?(this.query=new google.visualization.Query(this.opt.dataSourceUrl),this.opt.query&&this.query.setQuery(this.opt.query),void 0!==this.opt.timeout&&this.query.setTimeout(this.opt.timeout),this.opt.refreshInterval&&(this.tid=window.setInterval(()=>{this.send()},1e3*this.opt.refreshInterval)),this.send()):this.setDataTable(this.opt.dataTable)}getDataTable(){return this.dataTable}setDataTable(e,t){void 0===t&&(t=this.opt.firstRowIsData),this._setDataTable(e,t),this.dataTableChanged.emit(this.dataTable)}_setDataTable(e,t){Array.isArray(e)&&(e=google.visualization.arrayToDataTable(e,t)),this.dataTable=e,this.reformat()}reformat(){const e=this.dataTable;if(void 0!==e&&void 0!==this.opt.formatters)for(const t of this.opt.formatters){let n;if("PatternFormat"===t.type){const s=t.options;n=new google.visualization.PatternFormat(s.pattern),n.format(e,t.columns,s.dstColumnIndex);continue}const a=google.visualization[t.type],i=t.options;if(n=new a(i),"ColorFormat"===t.type&&i){const s=i;if(s.ranges)for(const c of s.ranges)typeof c.fromBgColor<"u"&&typeof c.toBgColor<"u"?n.addGradientRange(c.from,c.to,c.color,c.fromBgColor,c.toBgColor):n.addRange(c.from,c.to,c.color,c.bgcolor)}for(const s of t.columns)n.format(e,s)}}}return r.\u0275fac=function(e){h.\u0275\u0275invalidFactory()},r.\u0275dir=h.\u0275\u0275defineDirective({type:r,outputs:{dataTableChanged:"dataTableChanged"}}),r})(),ae=(()=>{class r{constructor(e){this.el=e}setPosition(e,t){this.el.nativeElement.style.left=e+r.PIXELS,this.el.nativeElement.style.top=t+r.PIXELS}getDOMElement(){return this.el}}return r.PIXELS="px",r})(),L=(()=>{class r{constructor(e,t){this.googleChartsSettings=t,this.loadedPackages=[],this.loaded=!1,this.googleChartsSettings=Object.assign(Object.assign({},{googleChartsVersion:"50",language:e}),this.googleChartsSettings),this.googleScriptLoadingNotifier=new h.EventEmitter,this.googleChartLoadingNotifier=new h.EventEmitter,this.googleScriptIsLoading=!1,this.googleChartIsLoading=!1,this.loadGoogleChartsScriptPromise=new Promise((a,i)=>{if(typeof google<"u"&&google.charts)a();else if(this.googleScriptIsLoading)this.googleScriptLoadingNotifier.subscribe(s=>{s?a():i()});else{this.googleScriptIsLoading=!0;const s=document.createElement("script");s.type="text/javascript",s.src="https://www.gstatic.com/charts/loader.js",s.async=!0,s.defer=!0,s.onload=()=>{this.googleScriptIsLoading=!1,this.googleScriptLoadingNotifier.emit(!0),a()},s.onerror=()=>{this.googleScriptIsLoading=!1,this.googleScriptLoadingNotifier.emit(!1),i()},document.getElementsByTagName("head")[0].appendChild(s)}})}load(e){return b(this,void 0,void 0,function*(){yield this.loadGoogleChartsScriptPromise,yield new Promise(t=>{this.googleChartIsLoading?this.googleChartLoadingNotifier.subscribe(()=>{this.doLoad(t,e)}):this.doLoad(t,e)})})}doLoad(e,t){if(!(t=Object.assign(Object.assign({},this.googleChartsSettings),t)).packages&&this.loaded)return void e();if(t.packages){let a=t.packages.filter(i=>this.loadedPackages.indexOf(i)<0);if(0==a.length&&this.loaded)return void e();t.packages=a}const n=t;n.callback=()=>{this.googleChartIsLoading=!1,void 0!==n.packages&&(this.loadedPackages=this.loadedPackages.concat(n.packages)),this.loaded=!0,this.googleChartLoadingNotifier.emit(),e()},this.googleChartIsLoading=!0,google.charts.load(t.googleChartsVersion,n)}}return r.\u0275fac=function(e){return new(e||r)(h.\u0275\u0275inject(h.LOCALE_ID),h.\u0275\u0275inject("googleChartsSettings",8))},r.\u0275prov=h.\u0275\u0275defineInjectable({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),ie=(()=>
1{class r{constructor(e,t){this.el=e,this.loaderService=t,this.selectListener=()=>{const n={message:"select",row:null,column:null,selectedRowValues:[],selectedRowFormattedValues:[],columnLabel:""},a=this.wrapper.visualization.getSelection(),i=a[a.length-1];if(!i)return n.message="deselect",n;const s=i;if(null!=i.row){n.row=s.row;const c=[],l=[],u=this.wrapper.getDataTable(),f=u.getNumberOfColumns();for(let m=0;m<f;m++)c.push(u.getValue(s.row,m)),l.push(u.getFormattedValue(s.row,m));n.selectedRowValues=c,n.selectedRowFormattedValues=l}return null!=s.column&&(n.column=s.column,n.columnLabel=this.getColumnLabelAtPosition(s)),i.name&&(n.columnLabel=i.name),n},this.chartSelect=new h.EventEmitter,this.chartSelectOneTime=new h.EventEmitter,this.chartReady=new h.EventEmitter,this.chartReadyOneTime=new h.EventEmitter,this.chartError=new h.EventEmitter,this.chartErrorOneTime=new h.EventEmitter,this.mouseOver=new h.EventEmitter,this.mouseOverOneTime=new h.EventEmitter,this.mouseOut=new h.EventEmitter,this.mouseOutOneTime=new h.EventEmitter,this.regionClick=new h.EventEmitter,this.regionClickOneTime=new h.EventEmitter}ngOnInit(){this.HTMLel=this.el.nativeElement.querySelector("div"),Object.isExtensible(this.data)&&(this.data.component=this),this.options=this.data.options,this.init().then(()=>{this.draw()})}init(){return b(this,void 0,void 0,function*(){yield this.loaderService.load(),this.recreateWrapper()})}recreateWrapper(){if(void 0===this.wrapper||this.wrapper.getChartType()!==this.data.chartType){this.dataTable=new ne(this.data),this.dataTable.dataTableChanged.subscribe(t=>{this._draw()});let e=this.data;if(this.data.firstRowIsData&&(e=Object.assign(e,this.data),e.dataTable=this.dataTable.getDataTable()),this.wrapper=new google.visualization.ChartWrapper(e),this.registerChartWrapperEvents(),void 0===e.dataTable&&void 0===e.dataSourceUrl)try{this.wrapper.draw(this.HTMLel)}catch{}}}_draw(){return b(this,void 0,void 0,function*(){const e=this.dataTable.getDataTable();void 0!==e&&(this.convertOptions(),this.recreateWrapper(),this.wrapper.setOptions(this.options),this.wrapper.setDataTable(e),this.wrapper.draw(this.HTMLel))})}getDataTable(){return this.dataTable}draw(e){void 0===e&&(e=this.data),this.options=e.options,this.dataTable.init(e)}getSelectorBySeriesType(e){return{bars:"bar#%s#%r",haxis:"hAxis#0#label",line:"point#%s#%r",legend:"legendentry#%s",area:"point#%s#%r"}[e]}getSeriesByColumn(e){let t=0;const n=this.wrapper.getDataTable();for(let a=e-1;a>=0;a--){const i=n.getColumnRole(a),s=n.getColumnType(a);("data"===i||"number"===s)&&t++}return t}getBoundingBoxForItem(e){let t={top:0,left:0,width:0,height:0};if(this.cli){const n=e.column,a=this.getSeriesByColumn(n),i=e.row;let s=this.options.seriesType;if(this.options.series&&this.options.series[a]&&this.options.series[a].type&&(s=this.options.series[a].type),s){let c=this.getSelectorBySeriesType(s);if(c){c=c.replace("%s",a+"").replace("%c",n+"").replace("%r",i+"");const l=this.cli.getBoundingBox(c);l&&(t=l)}}}return t}getValueAtPosition(e){return null==e.row?null:this.wrapper.getDataTable().getValue(e.row,e.column)}getColumnTypeAtPosition(e){return this.wrapper.getDataTable().getColumnType(e.column)||""}getColumnLabelAtPosition(e){return this.wrapper.getDataTable().getColumnLabel(e.column)||""}getHTMLTooltip(){const e=new h.ElementRef(this.el.nativeElement.querySelector(".google-visualization-tooltip"));return new ae(e)}parseMouseEvent(e){const t=this.wrapper.getChartType();let n=e.column;null==n&&(n="Timeline"===t?3===this.wrapper.getDataTable().getNumberOfColumns()?0:1:0);const i={row:e.row,column:n};return{position:e,boundingBox:this.getBoundingBoxForItem(i),value:this.getValueAtPosition(i),columnType:this.getColumnTypeAtPosition(i),columnLabel:this.getColumnLabelAtPosition(i)}}registerChartEvents(){const e=this.wrapper.getChart();this.cli=e.getChartLayoutInterface?e.getChartLayoutInterface():null,this.mouseOver.observers.length>0&&google.visualization.events.addListener(e,"onmouseover",t=>{const n=this.parseMouseEvent(t);n.tooltip=this.getHTMLTooltip(),this.mouseOver.emit(n)}),this.mouseOverOneTime.observers.length>0&&google.visualization.events.addOneTimeListener(e,"onmouseover",t=>{const n=this.parseMouseEvent(t);n.tooltip=this.getHTMLTooltip(),this.mouseOverOneTime.emit(n)}),this.mouseOut.observers.length>0&&google.visualization.events.addListener(e,"onmouseout",t=>{const n=this.parseMouseEvent(t);this.mouseOut.emit(n)}),this.mouseOutOneTime.observers.length>0&&google.visualization.events.addOneTimeListener(e,"onmouseout",t=>{const n=this.parseMouseEvent(t);this.mouseOutOneTime.emit(n)}),"GeoChart"===this.data.chartType&&(this.regionClick.observers.length>
10&&google.visualization.events.addListener(e,"regionClick",t=>{this.regionClick.emit(t)}),this.regionClickOneTime.observers.length>0&&google.visualization.events.addOneTimeListener(e,"regionClick",t=>{this.regionClick.emit(t)}))}registerChartWrapperEvents(){google.visualization.events.addListener(this.wrapper,"ready",()=>{this.chartReady.emit({message:"Chart ready"})}),google.visualization.events.addOneTimeListener(this.wrapper,"ready",()=>{this.chartReadyOneTime.emit({message:"Chart ready (one time)"}),this.registerChartEvents()}),google.visualization.events.addListener(this.wrapper,"error",e=>{this.chartError.emit(e)}),google.visualization.events.addOneTimeListener(this.wrapper,"error",e=>{this.chartErrorOneTime.emit(e)}),this.addListener(this.wrapper,"select",this.selectListener,this.chartSelect),this.addOneTimeListener(this.wrapper,"select",this.selectListener,this.chartSelectOneTime)}addListener(e,t,n,a){google.visualization.events.addListener(e,t,()=>{a.emit(n())})}addOneTimeListener(e,t,n,a){google.visualization.events.addOneTimeListener(e,t,()=>{a.emit(n())})}convertOptions(){try{this.options=google.charts[this.data.chartType].convertOptions(this.options)}catch{return}}}return r.\u0275fac=function(e){return new(e||r)(h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(L))},r.\u0275cmp=h.\u0275\u0275defineComponent({type:r,selectors:[["google-chart"]],inputs:{data:"data"},outputs:{chartReady:"chartReady",chartReadyOneTime:"chartReadyOneTime",chartError:"chartError",chartErrorOneTime:"chartErrorOneTime",chartSelect:"chartSelect",chartSelectOneTime:"chartSelectOneTime",mouseOver:"mouseOver",mouseOverOneTime:"mouseOverOneTime",mouseOut:"mouseOut",mouseOutOneTime:"mouseOutOneTime",regionClick:"regionClick",regionClickOneTime:"regionClickOneTime"},decls:1,vars:0,template:function(e,t){1&e&&h.\u0275\u0275element(0,"div")},encapsulation:2}),r})(),se=(()=>{class r{}return r.\u0275fac=function(e){return new(e||r)},r.\u0275mod=h.\u0275\u0275defineNgModule({type:r}),r.\u0275inj=h.\u0275\u0275defineInjector({providers:[L]}),r})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.