ato-water-lib 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/ato-water-lib.module.mjs +15 -7
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +56 -0
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +5 -5
- package/esm2020/lib/constants/components-group-const.mjs +1289 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +225 -223
- package/esm2020/lib/models/gojs-editor.model.mjs +302 -295
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ato-water-lib.mjs +1748 -526
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +1879 -526
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/ato-water-lib.module.d.ts +3 -1
- package/lib/components/asset-flow/asset-flow.component.d.ts +21 -0
- package/lib/constants/components-group-const.d.ts +1132 -0
- package/lib/models/default-gojs-editor.model.d.ts +3 -3
- package/lib/models/gojs-editor.model.d.ts +10 -7
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
@@ -1,26 +1,34 @@
|
|
1
1
|
import { NgModule } from '@angular/core';
|
2
2
|
import { AtoWaterLibComponent } from './ato-water-lib.component';
|
3
3
|
import { AtoFlowDiagramLibComponent } from './components/flow-diagram-lib/flow-diagram-lib.component';
|
4
|
+
import { AssetFlowComponent } from './components/asset-flow/asset-flow.component';
|
5
|
+
import { CommonModule } from '@angular/common';
|
4
6
|
import * as i0 from "@angular/core";
|
5
7
|
export class AtoWaterLibModule {
|
6
8
|
}
|
7
9
|
AtoWaterLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
8
10
|
AtoWaterLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, declarations: [AtoWaterLibComponent,
|
9
|
-
AtoFlowDiagramLibComponent
|
10
|
-
|
11
|
-
|
11
|
+
AtoFlowDiagramLibComponent,
|
12
|
+
AssetFlowComponent], imports: [CommonModule], exports: [AtoWaterLibComponent,
|
13
|
+
AtoFlowDiagramLibComponent,
|
14
|
+
AssetFlowComponent] });
|
15
|
+
AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, imports: [CommonModule] });
|
12
16
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, decorators: [{
|
13
17
|
type: NgModule,
|
14
18
|
args: [{
|
15
19
|
declarations: [
|
16
20
|
AtoWaterLibComponent,
|
17
|
-
AtoFlowDiagramLibComponent
|
21
|
+
AtoFlowDiagramLibComponent,
|
22
|
+
AssetFlowComponent,
|
23
|
+
],
|
24
|
+
imports: [
|
25
|
+
CommonModule
|
18
26
|
],
|
19
|
-
imports: [],
|
20
27
|
exports: [
|
21
28
|
AtoWaterLibComponent,
|
22
|
-
AtoFlowDiagramLibComponent
|
29
|
+
AtoFlowDiagramLibComponent,
|
30
|
+
AssetFlowComponent
|
23
31
|
]
|
24
32
|
}]
|
25
33
|
}] });
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvLXdhdGVyLWxpYi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvYXRvLXdhdGVyLWxpYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwyQkFBMkIsQ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vdy9hc3NldC1mbG93LmNvbXBvbmVudCc7XG5pbXBvcnQgeyBDb21tb25Nb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb21tb24nO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtcbiAgICBBdG9XYXRlckxpYkNvbXBvbmVudCxcbiAgICBBdG9GbG93RGlhZ3JhbUxpYkNvbXBvbmVudCxcbiAgICBBc3NldEZsb3dDb21wb25lbnQsXG4gIF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW1xuICAgIEF0b1dhdGVyTGliQ29tcG9uZW50LFxuICAgIEF0b0Zsb3dEaWFncmFtTGliQ29tcG9uZW50LFxuICAgIEFzc2V0Rmxvd0NvbXBvbmVudFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIEF0b1dhdGVyTGliTW9kdWxlIHsgfVxuIl19
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
2
|
+
import * as go from 'gojs';
|
3
|
+
import { ATO_COMPONENTS_GROUP_DATA } from '../../constants/components-group-const';
|
4
|
+
import { AtoFlowDiagramLibComponent } from '../flow-diagram-lib/flow-diagram-lib.component';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
import * as i1 from "@angular/common";
|
7
|
+
import * as i2 from "../flow-diagram-lib/flow-diagram-lib.component";
|
8
|
+
export class AssetFlowComponent {
|
9
|
+
constructor() {
|
10
|
+
this.onClickParamOfTableEvent = new EventEmitter();
|
11
|
+
this.$ = go.GraphObject.make;
|
12
|
+
this.options = {
|
13
|
+
layout: this.$(go.LayeredDigraphLayout, {
|
14
|
+
// direction: 0,
|
15
|
+
}),
|
16
|
+
// isReadOnly: true,
|
17
|
+
};
|
18
|
+
this.flowData = {};
|
19
|
+
}
|
20
|
+
ngOnInit() {
|
21
|
+
// this.flowData = {
|
22
|
+
// ...ATO_COMPONENTS_GROUP_DATA[this.systemType],
|
23
|
+
// linkFromPortIdProperty: 'fromPort',
|
24
|
+
// linkToPortIdProperty: 'toPort',
|
25
|
+
// };
|
26
|
+
this.getDefaultFlowData();
|
27
|
+
}
|
28
|
+
onClickParamOfTable($event) {
|
29
|
+
this.onClickParamOfTableEvent.emit($event);
|
30
|
+
}
|
31
|
+
getDefaultFlowData() {
|
32
|
+
return {
|
33
|
+
...ATO_COMPONENTS_GROUP_DATA[this.systemType],
|
34
|
+
linkFromPortIdProperty: 'fromPort',
|
35
|
+
linkToPortIdProperty: 'toPort',
|
36
|
+
};
|
37
|
+
}
|
38
|
+
}
|
39
|
+
AssetFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
40
|
+
AssetFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AssetFlowComponent, selector: "ato-asset-flow", inputs: { selectedComponent: "selectedComponent", systemType: "systemType", flowData: "flowData" }, outputs: { onClickParamOfTableEvent: "onClickParamOfTableEvent" }, viewQueries: [{ propertyName: "gjFlowDiagramTemp", first: true, predicate: AtoFlowDiagramLibComponent, descendants: true }], ngImport: i0, template: "<div class=\"h-100\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"flowData === null\" [delay]=\"1000\" -->\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n ></ato-flow-diagram-lib>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: ["showNotificationIcon", "data", "isLoading"] }] });
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, decorators: [{
|
42
|
+
type: Component,
|
43
|
+
args: [{ selector: 'ato-asset-flow', template: "<div class=\"h-100\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"flowData === null\" [delay]=\"1000\" -->\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n ></ato-flow-diagram-lib>\n</div>\n" }]
|
44
|
+
}], propDecorators: { gjFlowDiagramTemp: [{
|
45
|
+
type: ViewChild,
|
46
|
+
args: [AtoFlowDiagramLibComponent]
|
47
|
+
}], selectedComponent: [{
|
48
|
+
type: Input
|
49
|
+
}], systemType: [{
|
50
|
+
type: Input
|
51
|
+
}], onClickParamOfTableEvent: [{
|
52
|
+
type: Output
|
53
|
+
}], flowData: [{
|
54
|
+
type: Input
|
55
|
+
}] } });
|
56
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtZmxvdy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvY29tcG9uZW50cy9hc3NldC1mbG93L2Fzc2V0LWZsb3cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXNzZXQtZmxvdy9hc3NldC1mbG93LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0F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uLkFUT19DT01QT05FTlRTX0dST1VQX0RBVEFbdGhpcy5zeXN0ZW1UeXBlXSxcbiAgICAgIGxpbmtGcm9tUG9ydElkUHJvcGVydHk6ICdmcm9tUG9ydCcsXG4gICAgICBsaW5rVG9Qb3J0SWRQcm9wZXJ0eTogJ3RvUG9ydCcsXG4gIH07XG4gIH1cbn1cbiIsIjxkaXYgY2xhc3M9XCJoLTEwMFwiIHN0eWxlPVwiaGVpZ2h0OiAxMDAlXCI+XG4gICAgPCEtLSB0cWxTcGluIFtzcGlubmluZ109XCJmbG93RGF0YSA9PT0gbnVsbFwiIFtkZWxheV09XCIxMDAwXCIgLS0+XG4gICAgPGF0by1mbG93LWRpYWdyYW0tbGliXG4gICAgKm5nSWY9XCJmbG93RGF0YSAhPT0gbnVsbFwiXG4gICAgI2dqRmxvd0RpYWdyYW1UZW1wXG4gICAgW2RhdGFdPVwiZmxvd0RhdGFcIlxuICAgIFtpbml0aWFsT3B0aW9uc109XCJvcHRpb25zXCJcbiAgICAob25DbGlrUGFyYW1PZlRhYmxlKT1cIm9uQ2xpY2tQYXJhbU9mVGFibGUoJGV2ZW50KVwiXG4gID48L2F0by1mbG93LWRpYWdyYW0tbGliPlxuPC9kaXY+XG4iXX0=
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Component, Input, ViewChild } from '@angular/core';
|
2
2
|
import _ from 'lodash';
|
3
3
|
import { AtoDefaultGojsEditor } from '../../models/default-gojs-editor.model';
|
4
|
-
import {
|
4
|
+
import { AtoGojsEditorModel } from '../../models/gojs-editor.model';
|
5
5
|
import * as i0 from "@angular/core";
|
6
6
|
export class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
7
7
|
set data(v) {
|
@@ -43,7 +43,7 @@ export class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
43
43
|
});
|
44
44
|
}
|
45
45
|
// setTimeout(() => {
|
46
|
-
this.editor = new
|
46
|
+
this.editor = new AtoGojsEditorModel({
|
47
47
|
class: 'go.GraphLinksModel',
|
48
48
|
nodeCategoryProperty: 'type',
|
49
49
|
...this.data,
|
@@ -54,10 +54,10 @@ export class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
|
|
54
54
|
}
|
55
55
|
}
|
56
56
|
AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
57
|
-
AtoFlowDiagramLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: { showNotificationIcon: "showNotificationIcon", data: "data", isLoading: "isLoading" }, viewQueries: [{ propertyName: "myDiagramDivTemp", first: true, predicate: ["myDiagramDivTemp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "
|
57
|
+
AtoFlowDiagramLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: { showNotificationIcon: "showNotificationIcon", data: "data", isLoading: "isLoading" }, viewQueries: [{ propertyName: "myDiagramDivTemp", first: true, predicate: ["myDiagramDivTemp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"data === null || !!isLoading\" -->\n <div class=\"w-100 h-100 d-flex\" style=\"height: 100%\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\" style=\"height: 100%\"></div>\n <!-- <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <nz-empty nzNotFoundImage=\"simple\"></nz-empty>\n </div> -->\n </div>\n</div>\n", styles: [""] });
|
58
58
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
|
59
59
|
type: Component,
|
60
|
-
args: [{ selector: 'ato-flow-diagram-lib', template: "
|
60
|
+
args: [{ selector: 'ato-flow-diagram-lib', template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" style=\"height: 100%\">\n <!-- tqlSpin [spinning]=\"data === null || !!isLoading\" -->\n <div class=\"w-100 h-100 d-flex\" style=\"height: 100%\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\" style=\"height: 100%\"></div>\n <!-- <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <nz-empty nzNotFoundImage=\"simple\"></nz-empty>\n </div> -->\n </div>\n</div>\n" }]
|
61
61
|
}], ctorParameters: function () { return []; }, propDecorators: { myDiagramDivTemp: [{
|
62
62
|
type: ViewChild,
|
63
63
|
args: ['myDiagramDivTemp']
|
@@ -68,4 +68,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
68
68
|
}], isLoading: [{
|
69
69
|
type: Input
|
70
70
|
}] } });
|
71
|
-
//# sourceMappingURL=data:application/json;base64,
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmxvdy1kaWFncmFtLWxpYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvY29tcG9uZW50cy9mbG93LWRpYWdyYW0tbGliL2Zsb3ctZGlhZ3JhbS1saWIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvZmxvdy1kaWFncmFtLWxpYi9mbG93LWRpYWdyYW0tbGliLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNwRSxPQUFPLENBQUMsTUFBTSxRQUFRLENBQUM7QUFFdkIsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFDOUUsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7O0FBT3BFLE1BQU0sT0FBTywwQkFBMkIsU0FBUSxvQkFBb0I7SUFJbEUsSUFBYSxJQUFJLENBQUMsQ0FBQztRQUNmLElBQUksQ0FBQyxLQUFLLEdBQUcsQ0FBQyxDQUFDO1FBQ2YsSUFBSSxDQUFDLFdBQVcsRUFBRSxDQUFDO0lBQ3ZCLENBQUM7SUFJRCxJQUFJLElBQUk7UUFDSixPQUFPLElBQUksQ0FBQyxLQUFLLENBQUM7SUFDdEIsQ0FBQztJQUVEO1FBQ0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N1YnNjcmliZXMoXG4gICAgICAgICAgdGhpcy5jb21taXR0ZWRUcmFuc2FjdGlvblN1YmplY3Q/LnN1YnNjcmliZSgoZSkgPT4ge1xuICAgICAgICAgICAgICB0aGlzLm9uTW9kZWxDaGFuZ2VMaXN0ZW5lckV2ZW50LmVtaXQoZSk7XG4gICAgICAgICAgfSksXG4gICAgICAgICAgLy8gdGhpcy5fR2pVdGlsc1NlcnZpY2U/LnVwZGF0ZU5hbWVEYXRhQm94JD8uc3Vic2NyaWJlKChycykgPT4ge1xuICAgICAgICAgIC8vICAgICBpZiAocnMgJiYgcnM/LmtleSkge1xuICAgICAgICAgIC8vICAgICAgICAgY29uc3Qgbm9kZSA9IHRoaXMubXlEaWFncmFtLmZpbmROb2RlRm9yS2V5KHJzPy5rZXkpO1xuICAgICAgICAgIC8vICAgICAgICAgdGhpcy5teURpYWdyYW0ubW9kZWwuc2V0RGF0YVByb3BlcnR5KG5vZGU/LmRhdGEsICduYW1lJywgcnM/Lm5hbWUpO1xuICAgICAgICAgIC8vICAgICB9XG4gICAgICAgICAgLy8gfSksXG4gICAgICApO1xuICB9XG5cblxuXG5cbiAgbG9hZERpYWdyYW0oKSB7XG4gICAgICBpZiAodGhpcy5kYXRhPy5ub2RlRGF0YUFycmF5Py5sZW5ndGggJiYgISF0aGlzLnNob3dOb3RpZmljYXRpb25JY29uKSB7XG4gICAgICAgICAgXy5tYXAodGhpcy5kYXRhPy5ub2RlRGF0YUFycmF5LCAobm9kZSkgPT4ge1xuICAgICAgICAgICAgICAvLyBpZiAobm9kZT8udHlwZSA9PT0gR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlRFWFRfTk9ERSkge1xuICAgICAgICAgICAgICAvLyAgICAgbm9kZS5yZWNvbW1lbmRhdGlvbiA9IF8uc29tZShcbiAgICAgICAgICAgICAgLy8gICAgICAgICB0aGlzLl9SZWNvbW1lbmRhdGlvbnNTZXJ2aWNlLmFjdGl2ZVJlY29tbWVuZGF0aW9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