ato-water-lib 0.0.90 → 0.0.91

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/{esm2022 → esm2020}/lib/ato-water-lib.component.mjs +5 -5
  2. package/{esm2022 → esm2020}/lib/ato-water-lib.module.mjs +15 -15
  3. package/{esm2022 → esm2020}/lib/ato-water-lib.service.mjs +5 -5
  4. package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +165 -0
  5. package/{esm2022 → esm2020}/lib/components/asset-params-view/asset-params-view.component.mjs +9 -7
  6. package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +54 -0
  7. package/esm2020/lib/constants/components-group-const.mjs +3236 -0
  8. package/esm2020/lib/directive/ato-loading.directive.mjs +55 -0
  9. package/esm2020/lib/directive/ng-var.directive.mjs +31 -0
  10. package/esm2020/lib/models/default-gojs-editor.model.mjs +3578 -0
  11. package/esm2020/lib/models/gojs-data.model.mjs +6 -0
  12. package/esm2020/lib/models/gojs-editor.model.mjs +1811 -0
  13. package/esm2020/lib/services/utils/utils.service.mjs +133 -0
  14. package/fesm2015/ato-water-lib.mjs +9674 -0
  15. package/fesm2015/ato-water-lib.mjs.map +1 -0
  16. package/{fesm2022 → fesm2020}/ato-water-lib.mjs +1324 -385
  17. package/fesm2020/ato-water-lib.mjs.map +1 -0
  18. package/lib/components/asset-flow/asset-flow.component.d.ts +1 -1
  19. package/lib/components/asset-params-view/asset-params-view.component.d.ts +1 -1
  20. package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +1 -1
  21. package/lib/constants/components-group-const.d.ts +454 -3
  22. package/lib/directive/ato-loading.directive.d.ts +1 -1
  23. package/lib/directive/ng-var.directive.d.ts +1 -1
  24. package/lib/models/default-gojs-editor.model.d.ts +2 -2
  25. package/lib/models/gojs-editor.model.d.ts +8 -4
  26. package/package.json +13 -7
  27. package/esm2022/lib/components/asset-flow/asset-flow.component.mjs +0 -174
  28. package/esm2022/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +0 -55
  29. package/esm2022/lib/constants/components-group-const.mjs +0 -2291
  30. package/esm2022/lib/directive/ato-loading.directive.mjs +0 -59
  31. package/esm2022/lib/directive/ng-var.directive.mjs +0 -33
  32. package/esm2022/lib/models/default-gojs-editor.model.mjs +0 -3582
  33. package/esm2022/lib/models/gojs-data.model.mjs +0 -10
  34. package/esm2022/lib/models/gojs-editor.model.mjs +0 -1799
  35. package/esm2022/lib/services/utils/utils.service.mjs +0 -133
  36. package/fesm2022/ato-water-lib.mjs.map +0 -1
  37. /package/{esm2022 → esm2020}/ato-water-lib.mjs +0 -0
  38. /package/{esm2022 → esm2020}/lib/constants/applicable-prefixes-const.mjs +0 -0
  39. /package/{esm2022 → esm2020}/lib/constants/base64.const.mjs +0 -0
  40. /package/{esm2022 → esm2020}/lib/constants/icon-base64.const.mjs +0 -0
  41. /package/{esm2022 → esm2020}/lib/constants/key.const.mjs +0 -0
  42. /package/{esm2022 → esm2020}/lib/constants/plant.constant.mjs +0 -0
  43. /package/{esm2022 → esm2020}/lib/constants/value.const.mjs +0 -0
  44. /package/{esm2022 → esm2020}/lib/models/ato-asset-flow.model.mjs +0 -0
  45. /package/{esm2022 → esm2020}/public-api.mjs +0 -0
@@ -0,0 +1,3578 @@
1
+ import { Directive, EventEmitter, Input, Output, ViewChild, } from '@angular/core';
2
+ import { AtoGojsEditorModel } from './gojs-editor.model';
3
+ import * as go from 'gojs';
4
+ import _ from 'lodash';
5
+ import moment from 'moment';
6
+ import { GO_LICENSE_KEY } from '../constants/key.const';
7
+ import { Subject } from 'rxjs';
8
+ import { UtilsService } from '../services/utils/utils.service';
9
+ import { ATO_ENUM_FLOW_DIRECTION, ATO_ECOMPONENT_PLANT_TYPE, NO_DATA, TEXT_UNKNOWN, VALUE_NA, } from '../constants/value.const';
10
+ import { ATO_EPlantType } from '../constants/plant.constant';
11
+ import { Subscription } from 'rxjs';
12
+ import { ICONS_BASE64 } from '../constants/icon-base64.const';
13
+ import * as i0 from "@angular/core";
14
+ const ICON_ALERT = '/assets/images/icons/Station.svg';
15
+ const ARROW = '/assets/images/icons/arrow.svg';
16
+ const ARROW_GRAY = '/assets/images/icons/arrow-gray.svg';
17
+ const RO_LINE_DIRTY = '/assets/images/icons/ro_line_dirty.svg';
18
+ const OUTFLOW_LINE_DIRTY = '/assets/images/icons/outflow_line_dirty.png';
19
+ export class AtoDefaultGojsEditor {
20
+ checkLinkCondition(fromNode, fromPort, toNode, toPort, link) {
21
+ if (this.linkValidation) {
22
+ return this.linkValidation(fromNode, fromPort, toNode, toPort, link);
23
+ }
24
+ return true; // Mặc định cho trường hợp không có hàm linkValidation được truyền vào
25
+ }
26
+ set initialOptions(v) {
27
+ this._initialOptions = _.merge(this._initialOptions, v);
28
+ // _.extend(v, this._initialOptions);
29
+ }
30
+ get initialOptions() {
31
+ return this._initialOptions;
32
+ }
33
+ set editor(v) {
34
+ this._editor = v;
35
+ if (v) {
36
+ setTimeout(() => {
37
+ this.initDiagram();
38
+ }, 100);
39
+ }
40
+ }
41
+ get editor() {
42
+ return this._editor;
43
+ }
44
+ constructor(_elRef) {
45
+ this._elRef = _elRef;
46
+ this.actions = [];
47
+ this.actionMenuId = 'actionMenuId';
48
+ this.myDiagramDiv = this.constructor.name + '-' + moment().valueOf();
49
+ this.$ = go.GraphObject.make;
50
+ this._initialOptions = {
51
+ 'toolManager.hoverDelay': 200,
52
+ // 'draggingTool.isEnabled': false,
53
+ // initialAutoScale: go.Diagram.UniformToFill,
54
+ // autoScrollRegion: AtoGojsEditorModel.GRID_SIZE * 5,
55
+ layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
56
+ initialContentAlignment: go.Spot.Center,
57
+ initialAutoScale: go.Diagram.Uniform,
58
+ // contentAlignment: go.Spot.Center,
59
+ // this.$(go.ForceDirectedLayout),
60
+ 'undoManager.isEnabled': true,
61
+ // "animationManager.isInitial": false,
62
+ // "animationManager.isEnabled": false,
63
+ // "draggingTool.isGridSnapEnabled": true
64
+ dragSelectingTool: this.$(go.DragSelectingTool, { isPartialInclusion: true, delay: 50 }, {
65
+ box: this.$(go.Part, // replace the magenta box with a red one
66
+ { layerName: 'Tool', selectable: false }, this.$(go.Shape, {
67
+ name: 'SHAPE',
68
+ fill: 'rgba(255,0,0,0)',
69
+ stroke: '#E95F47',
70
+ strokeWidth: 2,
71
+ })),
72
+ }),
73
+ 'linkingTool.linkValidation': this.checkLinkCondition.bind(this),
74
+ 'draggingTool.doMouseMove': function () {
75
+ // do the standard behavior by calling the super method
76
+ go.DraggingTool.prototype.doMouseMove.call(this);
77
+ // if dragging-out from the diagram is not allowed, and
78
+ // if mouse is outside of viewport
79
+ if (!this.diagram.allowDragOut &&
80
+ !this.diagram.viewportBounds.containsPoint(this.diagram.lastInput.documentPoint)) {
81
+ this.diagram.ensureBounds();
82
+ const vp = this.diagram.lastInput.viewPoint;
83
+ const dp = this.diagram.position.copy();
84
+ if (vp.x < 0)
85
+ dp.x -= 10;
86
+ else if (vp.x > 0)
87
+ dp.x += 10;
88
+ if (vp.y < 0)
89
+ dp.y -= 10;
90
+ else if (vp.y > 0)
91
+ dp.y += 10;
92
+ this.diagram.position = dp; // scroll in the direction of the mouse
93
+ }
94
+ },
95
+ // LayoutCompleted: () => {
96
+ // this.myDiagram.zoomToFit();
97
+ // this.defaultScaleZoomToFit = this.myDiagram.scale;
98
+ // if (!this.initialOptions.isReadOnly) {
99
+ // const sizeMargin = AtoGojsEditorModel.GRID_SIZE * 15;
100
+ // this.myDiagram.padding = new go.Margin(sizeMargin);
101
+ // }
102
+ // },
103
+ };
104
+ this.isShowNodeInfo = false;
105
+ this.onModelChangeListenerEvent = new EventEmitter();
106
+ this.onClickInfoButton = new EventEmitter();
107
+ this.onOpenWizard = new EventEmitter();
108
+ this.onOpenDetail = new EventEmitter();
109
+ this.onOpenAssetParameter = new EventEmitter();
110
+ this.onOpenInsightMapping = new EventEmitter();
111
+ this.onHoverInfoButton = new EventEmitter();
112
+ this.onHoverAlert = new EventEmitter();
113
+ this.onDoubleClickNode = new EventEmitter();
114
+ this.onOpenChangeIcon = new EventEmitter();
115
+ // Click component
116
+ this.onClickCompoent = new EventEmitter();
117
+ this.callbackImageTopology = new EventEmitter();
118
+ // Click param on ParamTable
119
+ this.onClikParamOfTable = new EventEmitter();
120
+ // Delete Node
121
+ this.onDeleteNode = new EventEmitter();
122
+ this.onUndo = new EventEmitter();
123
+ // Rename
124
+ this.onRename = new EventEmitter();
125
+ this.committedTransactionSubject = new Subject();
126
+ // AddSub and UnSub
127
+ this._subscriptionList = new Subscription();
128
+ go.Diagram.licenseKey = GO_LICENSE_KEY;
129
+ }
130
+ ngOnDestroy() {
131
+ this.unsubscribeAll();
132
+ this.stopAnimation();
133
+ // this.myDiagram?.clear();
134
+ if (!!this.myDiagram?.div) {
135
+ this.myDiagram.div = null;
136
+ }
137
+ if (this.myDiagram) {
138
+ this.myDiagram.clear();
139
+ }
140
+ if (this.myDiagram != null && this.myDiagram.nodeTemplateMap != null) {
141
+ this.myDiagram.nodeTemplateMap.clear();
142
+ }
143
+ if (this.myDiagram != null && this.myDiagram.groupTemplateMap != null) {
144
+ this.myDiagram.groupTemplateMap.clear();
145
+ }
146
+ if (this.myDiagram != null && this.myDiagram.linkTemplate != null) {
147
+ for (var key in this.myDiagram.linkTemplateMap.toArray()) {
148
+ this.myDiagram.linkTemplateMap.remove(key);
149
+ }
150
+ }
151
+ this.myDiagram = null;
152
+ }
153
+ addOrRemoveCompoentTemplate() {
154
+ // Add Node and Node Group
155
+ _.forEach(this.editor.data?.nodeDataArray, (node) => {
156
+ this.addTemplate(node);
157
+ });
158
+ // Remove Node and Node Group
159
+ _.forEach(this.myDiagram.nodeTemplateMap?.Hb, (temp) => {
160
+ if (temp?.key &&
161
+ !this.editor.data?.nodeDataArray?.some((node) => node?.type === temp?.key)) {
162
+ this.myDiagram.nodeTemplateMap.remove(temp?.key);
163
+ }
164
+ });
165
+ _.forEach(this.myDiagram.groupTemplateMap?.Hb, (temp) => {
166
+ if (temp?.key &&
167
+ !this.editor.data?.nodeDataArray?.some((node) => node?.type === temp?.key)) {
168
+ this.myDiagram.groupTemplateMap.remove(temp?.key);
169
+ }
170
+ });
171
+ }
172
+ addTemplate(node) {
173
+ this.addNodeTemplate(node);
174
+ this.addGroupTemplate(node);
175
+ }
176
+ addGroupTemplate(node) {
177
+ if (this.myDiagram.groupTemplateMap?.Hb?.[node?.type] || !node?.isGroup) {
178
+ return;
179
+ }
180
+ // Group
181
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT) {
182
+ this.makeGroupROPlantTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
183
+ return;
184
+ }
185
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.BOILER) {
186
+ this.makeGroupBoilerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
187
+ return;
188
+ }
189
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER) {
190
+ this.makeGroupCoolingTowerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
191
+ return;
192
+ }
193
+ if (node?.type ===
194
+ AtoGojsEditorModel.ENUM_TEMPLATES.PRESSURIZED_UF_WATER_TREATMENTS) {
195
+ this.makeGroupCoolingTowerTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
196
+ return;
197
+ }
198
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE) {
199
+ this.makeGroupZoneTemplate();
200
+ return;
201
+ }
202
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL &&
203
+ node?.isGroup) {
204
+ this.groupPlantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
205
+ return;
206
+ }
207
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_INPUT_GROUP) {
208
+ this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name, new go.Margin(0, 50, 0, 0));
209
+ return;
210
+ }
211
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL_OUTPUT_GROUP) {
212
+ this.groupPCInputOrOutTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name, new go.Margin(0, 0, 0, 50));
213
+ return;
214
+ }
215
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.GROUP_BASIC_COMPONENT) {
216
+ this.makeGroupBasicComponent(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
217
+ return;
218
+ }
219
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
220
+ }
221
+ addNodeTemplate(node) {
222
+ if (this.myDiagram.nodeTemplateMap?.Hb[node?.type] || node?.isGroup) {
223
+ return;
224
+ }
225
+ // Not Group
226
+ // Component Water Normal
227
+ if (AtoGojsEditorModel.TYPE_TEMPLATE_WATER_NORMAL?.includes(node?.type) &&
228
+ !node?.isGroup) {
229
+ this.makeEntityTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
230
+ }
231
+ // Component Water Withdraw Or Discharge
232
+ if (AtoGojsEditorModel.TYPE_TEMPLATE_WATER_WITHDRAW_OR_DISCHARGE?.includes(node?.type) &&
233
+ !node?.isGroup) {
234
+ this.makeEntityWithdrawOrDischarge(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
235
+ }
236
+ // Component Energy Normal
237
+ if ((AtoGojsEditorModel.TYPE_TEMPLATE_ELECTRICITY?.includes(node?.type) ||
238
+ AtoGojsEditorModel.TYPE_TEMPLATE_NATURAL_GAS?.includes(node?.type) ||
239
+ AtoGojsEditorModel.TYPE_TEMPLATE_FUEL?.includes(node?.type) ||
240
+ AtoGojsEditorModel.TYPE_TEMPLATE_STEAM?.includes(node?.type)) &&
241
+ !node?.isGroup) {
242
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon ?? '', AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name ?? '');
243
+ }
244
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE) {
245
+ this.makeImageTemplate();
246
+ }
247
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE) {
248
+ this.makeParamTable();
249
+ }
250
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE) {
251
+ this.makeMassBalance();
252
+ }
253
+ // Text Node
254
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
255
+ this.makeTextTemplate();
256
+ }
257
+ // Value Node
258
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE) {
259
+ this.makeValueNodeTemplate();
260
+ }
261
+ // Value Node
262
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY) {
263
+ this.makeEmptyNodeTemplate();
264
+ }
265
+ // Value Label
266
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL) {
267
+ this.makeValueLabelTemplate();
268
+ }
269
+ // Label
270
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL) {
271
+ this.makeTextLabelTemplate();
272
+ }
273
+ // Zone item
274
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM) {
275
+ this.makeZoneItemTemplate();
276
+ }
277
+ // data box
278
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX) {
279
+ this.makeDataBoxTemplate();
280
+ }
281
+ // Special template
282
+ if (AtoGojsEditorModel.TYPE_TEMPLATE_SPECIAL?.includes(node?.type)) {
283
+ this.makeSpecialTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
284
+ }
285
+ // Plant Cell
286
+ if (node?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL &&
287
+ !node?.isGroup) {
288
+ this.plantCellTemplate(AtoGojsEditorModel.NODE_TEMPLATES[node?.type].icon, AtoGojsEditorModel.NODE_TEMPLATES[node?.type].name);
289
+ }
290
+ }
291
+ initDiagram() {
292
+ if (!!this.myDiagram?.div) {
293
+ // this.myDiagram.div = null;
294
+ if (this.initialOptions?.grid) {
295
+ this.myDiagram['grid'] = this.initialOptions?.grid;
296
+ }
297
+ else {
298
+ this.myDiagram['grid'] = this.$(go.Panel, 'Grid');
299
+ }
300
+ if (this.initialOptions?.LayoutCompleted) {
301
+ this.myDiagram.addDiagramListener('LayoutCompleted', this.initialOptions?.LayoutCompleted);
302
+ }
303
+ if (this.initialOptions?.LinkReshaped) {
304
+ this.myDiagram.addDiagramListener('LinkReshaped', this.initialOptions?.LinkReshaped);
305
+ }
306
+ if (this.initialOptions?.SelectionMoved) {
307
+ this.myDiagram.addDiagramListener('SelectionMoved', this.initialOptions?.SelectionMoved);
308
+ }
309
+ if (this.initialOptions?.ChangedSelection) {
310
+ this.myDiagram.addDiagramListener('ChangedSelection', this.initialOptions?.ChangedSelection);
311
+ }
312
+ this.myDiagram.dragSelectingTool = this.initialOptions?.dragSelectingTool;
313
+ this.myDiagram.toolManager.draggingTool.isGridSnapEnabled =
314
+ this.initialOptions?.['draggingTool.isGridSnapEnabled'] ?? false;
315
+ if (this.myDiagram.toolManager &&
316
+ this.myDiagram.toolManager.draggingTool) {
317
+ if (this.initialOptions?.['draggingTool.gridSnapCellSize']) {
318
+ this.myDiagram.toolManager.draggingTool.gridSnapCellSize =
319
+ this.initialOptions?.['draggingTool.gridSnapCellSize'];
320
+ }
321
+ // if (this.initialOptions?.['draggingTool.isGridSnapEnabled']) {
322
+ // this.myDiagram.toolManager.draggingTool.isGridSnapEnabled =
323
+ // this.initialOptions?.['draggingTool.isGridSnapEnabled'];
324
+ // }
325
+ if (this.initialOptions?.['draggingTool.doMouseMove']) {
326
+ this.myDiagram.toolManager.draggingTool.doMouseMove =
327
+ this.initialOptions?.['draggingTool.doMouseMove'];
328
+ }
329
+ if (this.initialOptions?.['linkingTool.linkValidation']) {
330
+ this.myDiagram.toolManager.linkingTool.linkValidation =
331
+ this.initialOptions?.['linkingTool.linkValidation'];
332
+ }
333
+ }
334
+ this.myDiagram.contentAlignment =
335
+ this.initialOptions?.contentAlignment ?? go.Spot.Center;
336
+ this.myDiagram.layout = this.initialOptions?.layout;
337
+ // this.myDiagram.minViewportBounds = new go.Rect(0, 0, 1200, 1200);
338
+ if (!!this.editor?.data) {
339
+ this.addOrRemoveCompoentTemplate();
340
+ this.myDiagram.model = go.Model.fromJson(this.editor.data);
341
+ }
342
+ return;
343
+ }
344
+ if (this.animationInterval) {
345
+ clearInterval(this.animationInterval);
346
+ }
347
+ const diagramDiv = this._elRef.nativeElement?.getElementsByClassName(this.myDiagramDiv)?.[0];
348
+ this.myDiagram = this.$(go.Diagram, diagramDiv, this.initialOptions);
349
+ // this.myDiagram.initialPosition = new go.Point(0, 0);
350
+ this.addOrRemoveCompoentTemplate();
351
+ this.makeLinkTemplate();
352
+ // animation
353
+ this.startAnimation();
354
+ setTimeout(() => {
355
+ const self = this;
356
+ // if (!this.isAddedModelChangedListeners) {
357
+ this.isAddedModelChangedListeners = true;
358
+ this.myDiagram.addModelChangedListener(function (e) {
359
+ if (e.change === go.ChangedEvent.Remove &&
360
+ e.propertyName === 'nodeDataArray') {
361
+ const data = e.oldValue;
362
+ self.onDeleteNode.emit(data);
363
+ }
364
+ if (e.isTransactionFinished) {
365
+ self.committedTransactionSubject?.next(e);
366
+ }
367
+ });
368
+ this.myDiagram.commandHandler.undo = function () {
369
+ self.onUndo.emit();
370
+ };
371
+ });
372
+ if (!!this.editor) {
373
+ this.myDiagram.model = go.Model.fromJson(this.editor.data);
374
+ }
375
+ }
376
+ initGroupTemplateEnergy() {
377
+ // for water
378
+ const { STORAGE, WATER_TREATMENT, DEMIN_WATER_TREATMENT,
379
+ // RO_WATER_TREATMENT,
380
+ PROCESS, WASTEWATER_TREATMENT, DAF_WASTEWATER_TREATMENT, ETP_WASTEWATER_TREATMENT, MBR_WASTEWATER_TREATMENT, ZLD_WASTEWATER_TREATMENT, COOLING_TOWER, BOILER, OTHER, LANDSCAPING_IRRIGATION, } = AtoGojsEditorModel.ENUM_TEMPLATES;
381
+ const waterGroups = [
382
+ STORAGE,
383
+ WATER_TREATMENT,
384
+ DEMIN_WATER_TREATMENT,
385
+ // RO_WATER_TREATMENT,
386
+ PROCESS,
387
+ WASTEWATER_TREATMENT,
388
+ DAF_WASTEWATER_TREATMENT,
389
+ ETP_WASTEWATER_TREATMENT,
390
+ MBR_WASTEWATER_TREATMENT,
391
+ ZLD_WASTEWATER_TREATMENT,
392
+ COOLING_TOWER,
393
+ BOILER,
394
+ OTHER,
395
+ LANDSCAPING_IRRIGATION,
396
+ ];
397
+ waterGroups.map((e) => {
398
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
399
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
400
+ }
401
+ });
402
+ // electrical
403
+ this.initElectricGroupTemplate();
404
+ // Fuel
405
+ this.initFuelGroupTemplate();
406
+ // Gas
407
+ this.initGasGroupTemplate();
408
+ }
409
+ initElectricDiagram() {
410
+ const { GRID, DIESEL_GENERATORS, BATTERY_ENERGY_STORAGE, LIGHTING_SYSTEMS, LIGHTINGS, ELECTRIC_METERS, TRANSFORMERS, ELECTRIC_FLYWHEEL_ENERGY_STORAGE, PUMPED_HYDRO_STORAGE, THERMAL_ENERGY_STORAGE, SUPER_CAPACITOR_ENERGY_STORAGE, SWITCH_GEARS, PROCESS_CONTROL_AUTOMATION_SYSTEMS, PROCESS_EQUIPMENT_MACHINES, OFFICE_EQUIPMENT, POWER_DISTRIBUTION_CONTROL_SYSTEMS, POWER_DISTRIBUTION_SYSTEMS, NATURAL_GAS_GENERATORS, MOTOR_CONTROLS, VARIABLE_FREQUENCY_DRIVERS, ELECTRIC_HVAC, COMPRESSED_AIR_SYSTEMS, REFRIGERATION_COOLING_SYSTEMS, MATERIAL_HANDLING_EQUIPMENT, WIND_POWER, ELECTRIC_INDUSTRIAL_MOTORS, GROUNDING, } = AtoGojsEditorModel.ENUM_TEMPLATES;
411
+ const ListItemsCreateEntityTemplate = [
412
+ GRID,
413
+ DIESEL_GENERATORS,
414
+ BATTERY_ENERGY_STORAGE,
415
+ LIGHTING_SYSTEMS,
416
+ LIGHTINGS,
417
+ ELECTRIC_METERS,
418
+ TRANSFORMERS,
419
+ ELECTRIC_FLYWHEEL_ENERGY_STORAGE,
420
+ PUMPED_HYDRO_STORAGE,
421
+ THERMAL_ENERGY_STORAGE,
422
+ SUPER_CAPACITOR_ENERGY_STORAGE,
423
+ SWITCH_GEARS,
424
+ PROCESS_CONTROL_AUTOMATION_SYSTEMS,
425
+ PROCESS_EQUIPMENT_MACHINES,
426
+ OFFICE_EQUIPMENT,
427
+ POWER_DISTRIBUTION_CONTROL_SYSTEMS,
428
+ POWER_DISTRIBUTION_SYSTEMS,
429
+ NATURAL_GAS_GENERATORS,
430
+ MOTOR_CONTROLS,
431
+ VARIABLE_FREQUENCY_DRIVERS,
432
+ ELECTRIC_HVAC,
433
+ COMPRESSED_AIR_SYSTEMS,
434
+ REFRIGERATION_COOLING_SYSTEMS,
435
+ MATERIAL_HANDLING_EQUIPMENT,
436
+ WIND_POWER,
437
+ ELECTRIC_INDUSTRIAL_MOTORS,
438
+ GROUNDING,
439
+ ];
440
+ ListItemsCreateEntityTemplate.map((e) => {
441
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
442
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
443
+ }
444
+ });
445
+ }
446
+ initElectricGroupTemplate() {
447
+ const listItems = [
448
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERY_ENERGY_STORAGE],
449
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TRANSFORMERS],
450
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_METERS],
451
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTINGS],
452
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_SYSTEMS],
453
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SWITCH_GEARS],
454
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_INDUSTRIAL_MOTORS],
455
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GROUNDING],
456
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MOTOR_CONTROLS],
457
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.LIGHTING_SYSTEMS],
458
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
459
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.REFRIGERATION_COOLING_SYSTEMS],
460
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_CONTROL_AUTOMATION_SYSTEMS],
461
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.OFFICE_EQUIPMENT],
462
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_AIR_SYSTEMS],
463
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS_EQUIPMENT_MACHINES],
464
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.MATERIAL_HANDLING_EQUIPMENT],
465
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_DISTRIBUTION_CONTROL_SYSTEMS],
466
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BATTERIES],
467
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.VARIABLE_FREQUENCY_DRIVERS],
468
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_FLYWHEEL_ENERGY_STORAGE],
469
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PUMPED_HYDRO_STORAGE],
470
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.THERMAL_ENERGY_STORAGE],
471
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.SUPER_CAPACITOR_ENERGY_STORAGE],
472
+ ];
473
+ listItems.forEach((e) => {
474
+ this.makeGroupTemplate(e?.icon, e.name);
475
+ });
476
+ }
477
+ initFuelGroupTemplate() {
478
+ const listItems = [
479
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.DIESEL_FUELS],
480
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GASON_LINES],
481
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BIODIESELS],
482
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.KEROSENSE],
483
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PROPANES],
484
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.TANKER_TRUCKS],
485
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PIPELINE],
486
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_BOILERS],
487
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GENERATORS],
488
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_FURNACES],
489
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_OVENS],
490
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.INDUSTRIAL_VEHICLES_AND_EQUIPMENT],
491
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_METERS],
492
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS],
493
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS],
494
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.ELECTRIC_HVAC],
495
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS],
496
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS],
497
+ ];
498
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
499
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
500
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
501
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
502
+ listItems.forEach((e) => {
503
+ this.makeGroupTemplate(e?.icon, e.name);
504
+ });
505
+ }
506
+ initGasGroupTemplate() {
507
+ const listItems = [
508
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMPRESSED_NATURAL_GAS_PIPELINE],
509
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BOILERS_AND_HEATERS],
510
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FURNACES],
511
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.POWER_GENERATION],
512
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COGENERATION],
513
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBINED_CYCLE_POWER_PLANTS],
514
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FOR_VEHICLES_AND_EQUIPMENT],
515
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_METERS],
516
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BURNERS],
517
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FLUE_GAS_ANALYZERS],
518
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COMBUSTION_CONTROL_SYSTEMS],
519
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_STORAGE_TANKS],
520
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.GAS_PRESSURE_REGULATORS],
521
+ ];
522
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_DISPENSERS].name);
523
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_STRORAGE_TANKS].name);
524
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_FILTRATIONS].name);
525
+ this.makeGroupTemplate(AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].icon, AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.FUEL_MANAGEMENTS].name);
526
+ listItems.forEach((e) => {
527
+ this.makeGroupTemplate(e?.icon, e.name);
528
+ });
529
+ }
530
+ initGasDiagram() {
531
+ const { NATURAL_GAS_PIPELINES, LIQUEFIED_NATURAL_GAS, COMPRESSED_NATURAL_GAS_PIPELINE, COMPRESSED_NATURAL_GAS_PRODUCTION, BOILERS_AND_HEATERS, FURNACES, POWER_GENERATION, COGENERATION, COMBINED_CYCLE_POWER_PLANTS, FUEL_FOR_VEHICLES_AND_EQUIPMENT, GAS_METERS, BURNERS, FLUE_GAS_ANALYZERS, COMBUSTION_CONTROL_SYSTEMS, GAS_STORAGE_TANKS, GAS_PRESSURE_REGULATORS, NATURAL_GAS, } = AtoGojsEditorModel.ENUM_TEMPLATES;
532
+ const ListItemsCreateEntityTemplate = [
533
+ NATURAL_GAS_PIPELINES,
534
+ LIQUEFIED_NATURAL_GAS,
535
+ COMPRESSED_NATURAL_GAS_PIPELINE,
536
+ COMPRESSED_NATURAL_GAS_PRODUCTION,
537
+ BOILERS_AND_HEATERS,
538
+ FURNACES,
539
+ POWER_GENERATION,
540
+ COGENERATION,
541
+ COMBINED_CYCLE_POWER_PLANTS,
542
+ FUEL_FOR_VEHICLES_AND_EQUIPMENT,
543
+ GAS_METERS,
544
+ BURNERS,
545
+ FLUE_GAS_ANALYZERS,
546
+ COMBUSTION_CONTROL_SYSTEMS,
547
+ GAS_STORAGE_TANKS,
548
+ GAS_PRESSURE_REGULATORS,
549
+ NATURAL_GAS,
550
+ ];
551
+ ListItemsCreateEntityTemplate.map((e) => {
552
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
553
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
554
+ }
555
+ });
556
+ }
557
+ initFuelDiagram() {
558
+ const { DIESEL_FUELS, GASON_LINES, BIODIESELS, KEROSENSE, PROPANES, TANKER_TRUCKS, PIPELINE, INDUSTRIAL_BOILERS, GENERATORS, INDUSTRIAL_FURNACES, INDUSTRIAL_OVENS, INDUSTRIAL_VEHICLES_AND_EQUIPMENT, FUEL_METERS, FUEL_DISPENSERS, FUEL_STRORAGE_TANKS, FUEL_FILTRATIONS, FUEL_MANAGEMENTS, FUELS, } = AtoGojsEditorModel.ENUM_TEMPLATES;
559
+ const ListItemsCreateEntityTemplate = [
560
+ DIESEL_FUELS,
561
+ GASON_LINES,
562
+ BIODIESELS,
563
+ KEROSENSE,
564
+ PROPANES,
565
+ TANKER_TRUCKS,
566
+ PIPELINE,
567
+ INDUSTRIAL_BOILERS,
568
+ GENERATORS,
569
+ INDUSTRIAL_FURNACES,
570
+ INDUSTRIAL_OVENS,
571
+ INDUSTRIAL_VEHICLES_AND_EQUIPMENT,
572
+ FUEL_METERS,
573
+ FUEL_DISPENSERS,
574
+ FUEL_STRORAGE_TANKS,
575
+ FUEL_FILTRATIONS,
576
+ FUEL_MANAGEMENTS,
577
+ FUELS,
578
+ ];
579
+ ListItemsCreateEntityTemplate.map((e) => {
580
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
581
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
582
+ }
583
+ });
584
+ }
585
+ initSolarDiagram() {
586
+ const { SOLAR_POWER, POWER_CONDITIONING_UNIT, BATTERIES: BATTERY, INVERTERS: INVERTER, } = AtoGojsEditorModel.ENUM_TEMPLATES;
587
+ const ListItemsCreateEntityTemplate = [
588
+ SOLAR_POWER,
589
+ POWER_CONDITIONING_UNIT,
590
+ BATTERY,
591
+ INVERTER,
592
+ ];
593
+ ListItemsCreateEntityTemplate.map((e) => {
594
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
595
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
596
+ }
597
+ });
598
+ }
599
+ initSteamDiagram() {
600
+ const { VALUES, STEAM_TRAPS, PRESSURE_REGULATORS, SAFETY_VALUES_AND_EQUIPMENT, CONDENSATE_RETURN_SYSTEM, DEAERATORS, FEEDWATER_PUMPS, BLOWDOWN_TANKS, EXPANSION_TANKS, HEAT_EXCHANGERS, TURBINES, } = AtoGojsEditorModel.ENUM_TEMPLATES;
601
+ const ListItemsCreateEntityTemplate = [
602
+ VALUES,
603
+ STEAM_TRAPS,
604
+ PRESSURE_REGULATORS,
605
+ SAFETY_VALUES_AND_EQUIPMENT,
606
+ CONDENSATE_RETURN_SYSTEM,
607
+ DEAERATORS,
608
+ FEEDWATER_PUMPS,
609
+ BLOWDOWN_TANKS,
610
+ EXPANSION_TANKS,
611
+ HEAT_EXCHANGERS,
612
+ TURBINES,
613
+ ];
614
+ ListItemsCreateEntityTemplate.map((e) => {
615
+ if (!!AtoGojsEditorModel.NODE_TEMPLATES[e]) {
616
+ this.makeEntityTemplateEnergy(AtoGojsEditorModel.NODE_TEMPLATES[e].icon, AtoGojsEditorModel.NODE_TEMPLATES[e].name);
617
+ }
618
+ });
619
+ }
620
+ onModelChangeListener(e) {
621
+ // this.onModelChangeListenerEvent.emit(e);
622
+ }
623
+ makeLinkTemplate() {
624
+ const elements = [];
625
+ // line
626
+ elements.push(this.$(go.Shape, {
627
+ isPanelMain: true,
628
+ stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
629
+ strokeWidth: AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]?.strokeWidth,
630
+ // strokeWidth: 0,
631
+ }, new go.Binding('stroke', 'color'), new go.Binding('selectable', 'selectable'), new go.Binding('strokeWidth', 'type', (x) => AtoGojsEditorModel.LINK_TEMPLATES[x]?.strokeWidth)));
632
+ // animation
633
+ elements.push(this.$(go.Shape, {
634
+ ...AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION]?.animation,
635
+ visible: true,
636
+ fill: 'transparent',
637
+ }));
638
+ elements.push(this.$(go.Panel, 'Top', {
639
+ height: 38,
640
+ // maxSize: new go.Size(NaN, 36),
641
+ // width: 100,
642
+ // minSize: new go.Size(100, 5), // Đặt kích thước tối thiểu là 100x50
643
+ background: 'transparent',
644
+ // layerName: 'BackgroundLayer',
645
+ // alignment: go.Spot.Top,
646
+ // alignmentFocus: go.Spot.Left,
647
+ // margin: new go.Margin(0, 0, 50, 0),
648
+ // selectable: false,
649
+ }, new go.Binding('visible', 'textComponent', (x) => {
650
+ return x ? true : false;
651
+ }),
652
+ // this.$(go.Shape, {
653
+ // height: 30,
654
+ // background: 'transparent',
655
+ // fill: 'transparent',
656
+ // // visible: false,
657
+ // }),
658
+ this.$(go.TextBlock, {
659
+ // margin: new go.Margin(0, 0, 50, 0),
660
+ stroke: '#444444',
661
+ font: 'normal 10pt Arial',
662
+ textAlign: 'left',
663
+ background: 'transparent',
664
+ // editable: false,
665
+ // alignment: go.Spot.Center, // Đảm bảo văn bản nằm ở trung tâm của nút
666
+ // alignmentFocus: go.Spot.Center, // Đảm bảo văn bản không bị dịch chuyển ra khỏi trung tâm
667
+ wrap: go.TextBlock.WrapFit,
668
+ // selectable: true,
669
+ overflow: go.TextBlock.OverflowEllipsis,
670
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
671
+ margin: 4,
672
+ }, new go.Binding('text', 'textComponent'))),
673
+ }, new go.Binding('text', 'textComponent'), new go.Binding('background', 'textComponent', (x) => x ? 'white' : 'transparent')
674
+ // new go.Binding('margin', 'isFormat', (x) =>
675
+ // x ? new go.Margin(5, 0, 5, 5) : new go.Margin(5, 5, 5, 5),
676
+ // ),
677
+ )));
678
+ // arrow
679
+ elements.push(this.$(go.Shape, // the "from" arrowhead
680
+ {
681
+ ...AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE]?.arrow,
682
+ }, new go.Binding('visible', 'type', (x) => ![
683
+ AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION,
684
+ AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE,
685
+ AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_HIDDEN,
686
+ ].includes(x)), new go.Binding('fill', 'color'), new go.Binding('stroke', 'color')));
687
+ // TODO fix link cannot selected inside group template
688
+ this.myDiagram.linkTemplate = this.$(go.Link, go.Link.Orthogonal, {
689
+ // layerName: 'Background', // link cannot select inside group template
690
+ // curviness: 20,
691
+ // corner: 5,
692
+ routing: go.Link.AvoidsNodes,
693
+ reshapable: true,
694
+ resegmentable: true,
695
+ relinkableFrom: true,
696
+ relinkableTo: true,
697
+ selectable: true,
698
+ toShortLength: AtoGojsEditorModel.LINK_TEMPLATES[AtoGojsEditorModel.ENUM_LINK_TYPES.SIMPLE].toShortLength, // assume arrowhead at "to" end, need to avoid bad appearance when path is thick
699
+ }, new go.Binding('layerName', '', (data) => {
700
+ return data?.textComponent ? 'Background' : '';
701
+ }), new go.Binding('zOrder', 'type', (x) => x === AtoGojsEditorModel.ENUM_LINK_TYPES.PIPE_ANIMATION ? 11 : 10), new go.Binding('toShortLength', 'type', (x) => AtoGojsEditorModel.LINK_TEMPLATES[x].toShortLength || 0), new go.Binding('selectable', 'selectable'), new go.Binding('visible', 'visible'),
702
+ // make sure links come in from the proper direction and go out appropriately
703
+ ...elements);
704
+ }
705
+ makeValueNodeTemplate(size = { w: 82, h: 36 }) {
706
+ const self = this;
707
+ const node = this.$(go.Node, 'Spot', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { minSize: new go.Size(size.w, size.h) }, this.$(go.Shape, 'Rectangle', {
708
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
709
+ stroke: 'transparent',
710
+ }), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
711
+ row: 2,
712
+ font: 'bold 14px Arial',
713
+ textAlign: 'center',
714
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
715
+ }, new go.Binding('editable', 'isEditable'), new go.Binding('text', 'shortenedNumber').makeTwoWay(), new go.Binding('stroke', 'color'), new go.Binding('margin', 'isFormat', (x) => x ? new go.Margin(5, 0, 5, 5) : new go.Margin(5, 5, 5, 5)), new go.Binding('visible', '', function (data) {
716
+ return data.value !== VALUE_NA;
717
+ })),
718
+ // Icon Err when lack of value
719
+ this.$(go.TextBlock, {
720
+ margin: new go.Margin(10, 10, 10, 10),
721
+ text: VALUE_NA,
722
+ textAlign: 'center',
723
+ font: 'bold 10pt sans-serif',
724
+ stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
725
+ wrap: go.TextBlock.WrapFit,
726
+ editable: false,
727
+ isMultiline: false,
728
+ }, new go.Binding('visible', '', function (data) {
729
+ return data.value === VALUE_NA;
730
+ })))));
731
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_NODE, node);
732
+ }
733
+ makeEmptyNodeTemplate(size = { w: 0, h: 0 }) {
734
+ const node = this.$(go.Node, 'Spot', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify));
735
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.EMPTY, node);
736
+ }
737
+ makeValueLabelTemplate(size = { w: 82, h: 36 }) {
738
+ const node = this.$(go.Node, 'Auto', {
739
+ movable: false,
740
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { minSize: new go.Size(size.w, size.h) }, this.$(go.Panel, 'Horizontal', {
741
+ margin: new go.Margin(0, 10, 0, 10),
742
+ }, this.$(go.TextBlock, {
743
+ margin: new go.Margin(0, 5, 10, 0),
744
+ textAlign: 'center',
745
+ font: 'bold 15px sans-serif',
746
+ wrap: go.TextBlock.WrapFit,
747
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
748
+ minSize: new go.Size(150, 30), // Set the width of the text block
749
+ }, new go.Binding('stroke', 'color'), new go.Binding('text', 'data', (x) => {
750
+ if (typeof x?.quantity !== 'number') {
751
+ return '';
752
+ }
753
+ const formatted = UtilsService.convertPrefixesData({
754
+ value: x?.quantity,
755
+ unit: UtilsService.convertSpecialUnit(x?.unit),
756
+ });
757
+ let retValue = formatted.shortenedNumber +
758
+ ' ' +
759
+ formatted.unitPrefixes +
760
+ UtilsService.convertSpecialUnit(x?.unit) ?? '';
761
+ if (x?.percent) {
762
+ retValue += ` (${x?.percent}%)`;
763
+ }
764
+ return retValue;
765
+ }), new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')))));
766
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.VALUE_LABEL, node);
767
+ }
768
+ makeTextLabelTemplate(size = { w: NaN, h: 20 }) {
769
+ const node = this.$(go.Node, 'Auto', {
770
+ movable: false,
771
+ isSelected: false,
772
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
773
+ margin: new go.Margin(0, 5, 10, 0),
774
+ textAlign: 'center',
775
+ font: 'bold 16px Arial',
776
+ wrap: go.TextBlock.WrapFit,
777
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
778
+ }, new go.Binding('stroke', 'color'), new go.Binding('text', 'name'), new go.Binding('visible', 'visible')))));
779
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL, node);
780
+ }
781
+ makeTextTemplate(size = {
782
+ w: AtoGojsEditorModel.GRID_SIZE * 5,
783
+ h: AtoGojsEditorModel.GRID_SIZE * 2,
784
+ }) {
785
+ const self = this;
786
+ const contextMenu = this.$(go.Adornment, 'Vertical', this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 1'), {
787
+ click: function (e, obj) {
788
+ alert('Option 1 clicked!');
789
+ },
790
+ }), this.$('ContextMenuButton', this.$(go.TextBlock, 'Option 2'), {
791
+ click: function (e, obj) {
792
+ alert('Option 2 clicked!');
793
+ },
794
+ })
795
+ // ... add more options as needed ...
796
+ );
797
+ const node = this.$(go.Node, 'Spot', {
798
+ // fromSpot: go.Spot.RightSide,
799
+ // toSpot: go.Spot.LeftSide,
800
+ locationSpot: go.Spot.Center,
801
+ // selectionChanged: (e) => {
802
+ // if (e?.data.onSelected) {
803
+ // e?.data.onSelected(e?.data);
804
+ // }
805
+ // },
806
+ // mouseHover: (e, obj) => {
807
+ // const node = obj.part;
808
+ // if ((obj as any).part?.ob?.value === VALUE_NA) {
809
+ // self.onHoverInfoButton.emit({
810
+ // left: e?.['Wr']?.x + 8,
811
+ // top: e?.['Wr']?.y,
812
+ // node: node,
813
+ // });
814
+ // }
815
+ // },
816
+ // mouseLeave: (e, obj) => {
817
+ // if ((obj as any).part?.ob?.value === VALUE_NA) {
818
+ // self.onHoverInfoButton.emit(null);
819
+ // }
820
+ // },
821
+ click: (e, obj) => {
822
+ const node = obj.part;
823
+ if (node?.ob?.isTypeInflowOfPlantCell) {
824
+ // obj?.data?.onSelected(node?.ob?.nodePlantCellParent);
825
+ // self.onClickCompoent.emit({
826
+ // left: e?.['Wr']?.x,
827
+ // top: e?.['Wr']?.y,
828
+ // node: {
829
+ // ob: node?.ob?.nodePlantCellParent,
830
+ // },
831
+ // component: node?.ob?.nodePlantCellParent,
832
+ // });
833
+ return;
834
+ }
835
+ if (this._initialOptions?.isReadOnly) {
836
+ this.isShowNodeInfo
837
+ ? self.onClickInfoButton.emit({
838
+ left: e?.['Wr']?.x,
839
+ top: e?.['Wr']?.y,
840
+ node: node,
841
+ })
842
+ : null;
843
+ }
844
+ },
845
+ doubleClick: (e, obj) => {
846
+ const node = obj.part;
847
+ if (node?.ob?.isTypeInflowOfPlantCell &&
848
+ !this._initialOptions?.isReadOnly) {
849
+ // obj?.data?.onSelected(node?.ob?.nodePlantCellParent);
850
+ // this.isShowNodeInfo
851
+ // ? self.onDoubleClickNode.emit({
852
+ // left: e?.['Wr']?.x,
853
+ // top: e?.['Wr']?.y,
854
+ // node: {
855
+ // ob: node?.ob?.nodePlantCellParent,
856
+ // },
857
+ // })
858
+ // : null;
859
+ return;
860
+ }
861
+ if (!this._initialOptions?.isReadOnly) {
862
+ this.isShowNodeInfo
863
+ ? self.onClickInfoButton.emit({
864
+ left: e?.['Wr']?.x,
865
+ top: e?.['Wr']?.y,
866
+ node: node,
867
+ })
868
+ : null;
869
+ }
870
+ },
871
+ selectionAdornmentTemplate: this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto',
872
+ // { height: 62 },
873
+ this.$(go.Shape, {
874
+ fill: null,
875
+ stroke: 'dodgerblue',
876
+ strokeWidth: 4,
877
+ }), this.$(go.Placeholder,
878
+ // { padding: new go.Margin(8, 3, 0, 3) },
879
+ new go.Binding('padding', '', (x) => {
880
+ return x?.isTypeInflowOfPlantCell
881
+ ? x?.flowOfPlantCell === ATO_ENUM_FLOW_DIRECTION.INFLOW
882
+ ? new go.Margin(0, 0, 0, 20)
883
+ : new go.Margin(0, 20, 0, 0)
884
+ : null;
885
+ })),
886
+ // this.$(go.Placeholder, { padding: 3 }),
887
+ new go.Binding('height', '', (x) => {
888
+ return x?.isTypeInflowOfPlantCell ? x?.height + 10 : null;
889
+ }), new go.Binding('width', '', (x) => {
890
+ return x?.isTypeInflowOfPlantCell ? x?.width + 12 : null;
891
+ })), this.$(go.Panel, 'Horizontal', { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom },
892
+ // more
893
+ !this._initialOptions.isReadOnly
894
+ ? this.generateActionGroup([
895
+ AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
896
+ AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT,
897
+ AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
898
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
899
+ ])
900
+ : {})),
901
+ }, new go.Binding('visible', 'visible'), new go.Binding('fromSpot', 'fromSpot'), new go.Binding('toSpot', 'toSpot'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
902
+ // new go.Binding('alignment', 'alignment', function(loc) {
903
+ // return new go.Spot(0, 0, loc.x, 0);
904
+ // }).ofObject(),
905
+ this.$(go.Panel, 'Auto', {
906
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
907
+ margin: 2,
908
+ }, new go.Binding('text', '', function (data) {
909
+ if (!self._initialOptions.isReadOnly) {
910
+ return data?.name ?? VALUE_NA;
911
+ }
912
+ if (data?.value === VALUE_NA || _.isNil(data?.value)) {
913
+ return NO_DATA;
914
+ // return TEXT_UNKNOWN;
915
+ }
916
+ return _.round(data?.value, 2).toFixed(2);
917
+ }).makeTwoWay())),
918
+ }, this.$(go.Panel, 'Table', this.arrowForPlantCell(size, ATO_ENUM_FLOW_DIRECTION.OUTFLOW), this.$(go.Panel, 'Auto',
919
+ // { width: size.w, height: size.h },
920
+ {
921
+ // minSize: new go.Size(size.w, size.h),
922
+ // maxSize: new go.Size(size.w, size.h),
923
+ desiredSize: new go.Size(size.w, size.h),
924
+ column: 1,
925
+ row: 2,
926
+ }, new go.Binding('width', 'width'), new go.Binding('height', 'height'), this.$(go.Shape, 'RoundedRectangle', {
927
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
928
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
929
+ name: 'textNodeShape',
930
+ }, new go.Binding('fill', 'fill'), new go.Binding('stroke', 'stroke')), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', { alignment: go.Spot.Center },
931
+ // Alert
932
+ this.$(go.Panel, 'Auto', {
933
+ margin: new go.Margin(0, 0, 0, 5),
934
+ visible: false,
935
+ }, new go.Binding('visible', 'recommendation'), this.$(go.Shape, 'Circle', {
936
+ fill: '#E95F47',
937
+ stroke: '#E95F47',
938
+ width: 15,
939
+ height: 15,
940
+ }), this.$(go.TextBlock, {
941
+ text: '\uf649',
942
+ margin: new go.Margin(1.5, 0, 0, 0),
943
+ font: '8px "Font Awesome 6 Pro"',
944
+ stroke: '#fff',
945
+ })), this._initialOptions.isReadOnly
946
+ ? this.$(go.Panel, 'Position', {
947
+ width: 18,
948
+ height: 15,
949
+ visible: false,
950
+ alignment: go.Spot.Center,
951
+ margin: new go.Margin(0, 0, 0, 5),
952
+ mouseEnter: (e, obj) => {
953
+ self.onHoverAlert.emit({
954
+ left: e?.['Wr']?.x + 8,
955
+ top: e?.['Wr']?.y,
956
+ messageAlert: obj.part?.ob?.messageAlert,
957
+ });
958
+ },
959
+ mouseLeave: (e, obj) => {
960
+ self.onHoverAlert.emit(null);
961
+ },
962
+ }, new go.Binding('visible', 'alert'), this.$(go.Picture, ICON_ALERT, {
963
+ alignment: go.Spot.Center,
964
+ maxSize: new go.Size(30, 30),
965
+ imageStretch: go.GraphObject.Uniform,
966
+ }))
967
+ : ''), this.$(go.Panel, 'Auto', this.$(go.TextBlock, {
968
+ name: 'textBlockValue',
969
+ row: 2,
970
+ editable: false,
971
+ desiredSize: new go.Size(size.w - 8, 18),
972
+ font: 'bold 22px Arial',
973
+ textAlign: 'center',
974
+ stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
975
+ overflow: go.TextBlock.OverflowEllipsis,
976
+ },
977
+ // new go.Binding('editable', 'isEditable'),
978
+ new go.Binding('angle', 'angle'), new go.Binding('margin', '', (data) => {
979
+ if (data?.alert) {
980
+ return new go.Margin(0, 0, 0, 0);
981
+ }
982
+ return new go.Margin(0, 0, 0, 0);
983
+ }), new go.Binding('stroke', 'color'), new go.Binding('text', '', function (data) {
984
+ return self.getTextDataBox(data);
985
+ }).makeTwoWay(), new go.Binding('visible', '', (data) => !data?.isHiddenValue)))), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), this.arrowForPlantCell(size, ATO_ENUM_FLOW_DIRECTION.INFLOW))));
986
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
987
+ }
988
+ arrowForPlantCell(size, flowDirection) {
989
+ return this.$(go.Panel, 'Table', {
990
+ height: size.h,
991
+ }, new go.Binding('height', 'height'), new go.Binding('visible', '', (data) => data?.flowOfPlantCell === flowDirection), {
992
+ column: flowDirection === ATO_ENUM_FLOW_DIRECTION.OUTFLOW ? 0 : 2,
993
+ row: 2,
994
+ }, new go.Binding('itemArray', 'dataLinkArray'), {
995
+ itemTemplate: this.$(go.Panel, new go.Binding('row', 'indexRow'),
996
+ // new go.Binding('height', 'height'),
997
+ this.$(go.Picture, ARROW, {
998
+ alignment: go.Spot.Center,
999
+ maxSize: new go.Size(20, 40),
1000
+ // imageStretch: go.GraphObject.Uniform,
1001
+ }, new go.Binding('source', '', (data, panel) => {
1002
+ // panel.part?.data?.id
1003
+ return data?.isCreated ? panel?.$p : ARROW_GRAY;
1004
+ }))),
1005
+ });
1006
+ }
1007
+ getTextDataBox(data) {
1008
+ if (data?.value === VALUE_NA) {
1009
+ return TEXT_UNKNOWN;
1010
+ }
1011
+ return `${data?.shortenedNumber}${data?.unitPrefixes ? ' ' + data?.unitPrefixes : ''}`;
1012
+ }
1013
+ makeDataBoxTemplate(size = {
1014
+ w: AtoGojsEditorModel.GRID_SIZE * 5,
1015
+ h: AtoGojsEditorModel.GRID_SIZE * 5,
1016
+ }) {
1017
+ const self = this;
1018
+ let node = this.$(go.Node, 'Spot', {
1019
+ locationSpot: go.Spot.Center,
1020
+ mouseOver: function (e, obj) { },
1021
+ click: (e, obj) => {
1022
+ if (obj?.data?.onSelected) {
1023
+ obj?.data?.onSelected(obj?.data);
1024
+ }
1025
+ },
1026
+ selectionChanged: (e) => {
1027
+ if (!e.isSelected && e?.data?.onSelected) {
1028
+ e?.data?.onSelected(null);
1029
+ }
1030
+ },
1031
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Panel, 'Table', {
1032
+ mouseHover: (e, obj) => {
1033
+ if (obj.part?.ob?.value === VALUE_NA) {
1034
+ self.onHoverInfoButton.emit({
1035
+ left: e?.['Wr']?.x + 8,
1036
+ top: e?.['Wr']?.y,
1037
+ node: node,
1038
+ });
1039
+ }
1040
+ },
1041
+ mouseLeave: (e, obj) => {
1042
+ if (obj.part?.ob?.value === VALUE_NA) {
1043
+ self.onHoverInfoButton.emit(null);
1044
+ }
1045
+ },
1046
+ }, this.$(go.Panel, 'Auto', { row: 0, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
1047
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
1048
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
1049
+ }, new go.Binding('fill', 'color')), this.$(go.TextBlock, {
1050
+ row: 0,
1051
+ margin: new go.Margin(10, 10, 5, 10),
1052
+ maxSize: new go.Size(size.w, NaN),
1053
+ stroke: 'white',
1054
+ font: 'normal 10pt Arial',
1055
+ textAlign: 'center',
1056
+ spacingBelow: 5,
1057
+ }, new go.Binding('text', 'name').makeTwoWay())), this.$(go.Panel, 'Auto', { row: 1, stretch: go.GraphObject.Horizontal }, this.$(go.Shape, 'Rectangle', {
1058
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
1059
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
1060
+ }), this.$(go.Panel, 'Horizontal', this.$(go.TextBlock, {
1061
+ row: 2,
1062
+ // editable: true,
1063
+ // maxSize: new go.Size(size.w - 10, 40),
1064
+ // minSize: new go.Size(size.w - 10, size.h),
1065
+ margin: new go.Margin(5, 0, 5, 5),
1066
+ font: 'bold 12pt Arial',
1067
+ textAlign: 'center',
1068
+ stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
1069
+ }, new go.Binding('editable', 'isEditable'), new go.Binding('text', 'shortenedNumber').makeTwoWay(), new go.Binding('stroke', 'color'), new go.Binding('visible', '', function (data) {
1070
+ return data.value !== VALUE_NA;
1071
+ })), this.$(go.TextBlock, {
1072
+ row: 2,
1073
+ // editable: true,
1074
+ // maxSize: new go.Size(size.w - 10, 40),
1075
+ // minSize: new go.Size(size.w - 10, size.h),
1076
+ margin: new go.Margin(5, 5, 5, 0),
1077
+ font: 'bold 12pt Arial',
1078
+ textAlign: 'center',
1079
+ stroke: AtoGojsEditorModel.ENUM_COLORS.GRAY,
1080
+ }, new go.Binding('visible', '', function (data) {
1081
+ return data.value !== VALUE_NA;
1082
+ }), new go.Binding('text', 'unitPrefixes'), new go.Binding('stroke', 'color')),
1083
+ // Icon Err when lack of value
1084
+ this.$(go.TextBlock, {
1085
+ margin: new go.Margin(10, 10, 10, 10),
1086
+ text: VALUE_NA,
1087
+ textAlign: 'center',
1088
+ font: 'bold 10pt sans-serif',
1089
+ stroke: AtoGojsEditorModel.ENUM_COLORS.SALMON,
1090
+ wrap: go.TextBlock.WrapFit,
1091
+ editable: false,
1092
+ isMultiline: false,
1093
+ }, new go.Binding('visible', '', function (data) {
1094
+ return data.value === VALUE_NA;
1095
+ })))))), this.$(go.Panel, 'Vertical', {
1096
+ alignment: go.Spot.Left,
1097
+ alignmentFocus: new go.Spot(0, 0.5, 8, 0),
1098
+ }), this.$(go.Panel, 'Vertical', {
1099
+ alignment: go.Spot.Right,
1100
+ alignmentFocus: new go.Spot(1, 0.5, -8, 0),
1101
+ }),
1102
+ // four named ports, one on each side:
1103
+ this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
1104
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.DATA_BOX, node);
1105
+ }
1106
+ showPoint(loc) {
1107
+ const docLoc = this.myDiagram.transformDocToView(loc);
1108
+ }
1109
+ makeEntityTemplate(icon, title, size = {
1110
+ w: AtoGojsEditorModel.GRID_SIZE * 5,
1111
+ h: AtoGojsEditorModel.GRID_SIZE * 5,
1112
+ }) {
1113
+ const self = this;
1114
+ let node = this.$(go.Node, 'Spot', {
1115
+ locationSpot: go.Spot.Center,
1116
+ mouseOver: function (e, obj) {
1117
+ // self.showPoint(obj?.part?.location);
1118
+ },
1119
+ click: (e, obj) => {
1120
+ if (obj?.data?.onSelected) {
1121
+ obj?.data?.onSelected(obj?.data);
1122
+ self.onClickCompoent.emit({
1123
+ left: e?.['Wr']?.x,
1124
+ top: e?.['Wr']?.y,
1125
+ node: node,
1126
+ component: obj?.data,
1127
+ });
1128
+ }
1129
+ },
1130
+ selectionChanged: (e) => {
1131
+ if (!e.isSelected && e?.data?.onSelected) {
1132
+ e?.data?.onSelected(null);
1133
+ }
1134
+ },
1135
+ selectionAdornmentTemplate: this._initialOptions.isReadOnly
1136
+ ? null
1137
+ : this.$(go.Adornment, 'Spot', {
1138
+ shadowVisible: true,
1139
+ shadowBlur: 6,
1140
+ shadowOffset: new go.Point(0, 2),
1141
+ shadowColor: '#00000029',
1142
+ }, this.$(go.Panel, 'Auto', this.$(go.Shape, {
1143
+ fill: null,
1144
+ stroke: 'dodgerblue',
1145
+ strokeWidth: 4,
1146
+ }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
1147
+ alignment: go.Spot.TopRight,
1148
+ alignmentFocus: go.Spot.Bottom,
1149
+ background: 'white',
1150
+ },
1151
+ // more
1152
+ !this._initialOptions.isReadOnly
1153
+ ? this.generateActionGroup([
1154
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.RO_WATER_TREATMENT].name,
1155
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER].name,
1156
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.BOILER].name,
1157
+ ].includes(title)
1158
+ ? [
1159
+ AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
1160
+ AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS,
1161
+ AtoDefaultGojsEditor.ENUM_ACTIONS.ASSET_PARAMETERS,
1162
+ AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
1163
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
1164
+ ]
1165
+ : [
1166
+ AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
1167
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
1168
+ AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
1169
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
1170
+ ])
1171
+ : {})),
1172
+ },
1173
+ // new go.Binding('location', 'loc', go.Point.parse),
1174
+ new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('visible', 'visible'), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
1175
+ fill: 'white',
1176
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
1177
+ strokeWidth: 1,
1178
+ // strokeDashArray: [5, 5],
1179
+ }), this.$(go.Panel, 'Table', this.$(go.Picture, icon, {
1180
+ row: 1,
1181
+ alignment: go.Spot.Center,
1182
+ desiredSize: new go.Size(size.w - 20, size.h - 50),
1183
+ // maxSize: new go.Size(60, 60),
1184
+ imageStretch: go.GraphObject.Uniform,
1185
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
1186
+ margin: 4,
1187
+ text: title,
1188
+ })),
1189
+ }), this.$(go.TextBlock, {
1190
+ row: 2,
1191
+ margin: new go.Margin(10, 0, 3, 0),
1192
+ editable: true,
1193
+ desiredSize: new go.Size(size.w - 20, 15),
1194
+ stroke: '#000D42',
1195
+ font: 'bold 10pt Arial',
1196
+ textAlign: 'center',
1197
+ // wrap: go.TextBlock.None,
1198
+ overflow: go.TextBlock.OverflowEllipsis,
1199
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))),
1200
+ }, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('editable', '', (data) => {
1201
+ return !(AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(data?.systemType) &&
1202
+ data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
1203
+ data?.topologyType !==
1204
+ ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL);
1205
+ })))), this.$(go.Panel, 'Vertical', {
1206
+ alignment: go.Spot.Left,
1207
+ alignmentFocus: new go.Spot(0, 0.5, 8, 0),
1208
+ }), this.$(go.Panel, 'Vertical', {
1209
+ alignment: go.Spot.Right,
1210
+ alignmentFocus: new go.Spot(1, 0.5, -8, 0),
1211
+ }), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
1212
+ this.myDiagram.nodeTemplateMap.set(title, node);
1213
+ }
1214
+ makeEntityTemplateEnergy(icon, title, size = {
1215
+ w: AtoGojsEditorModel.GRID_SIZE * 5,
1216
+ h: AtoGojsEditorModel.GRID_SIZE * 5,
1217
+ }) {
1218
+ const self = this;
1219
+ let node = this.$(go.Node, 'Spot', {
1220
+ locationSpot: go.Spot.Center,
1221
+ mouseOver: function (e, obj) {
1222
+ // self.showPoint(obj?.part?.location);
1223
+ },
1224
+ click: (e, obj) => {
1225
+ if (obj?.data?.onSelected) {
1226
+ obj?.data?.onSelected(obj?.data);
1227
+ }
1228
+ },
1229
+ selectionChanged: (e) => {
1230
+ if (!e.isSelected && e?.data?.onSelected) {
1231
+ e?.data?.onSelected(null);
1232
+ }
1233
+ },
1234
+ selectionAdornmentTemplate: this._initialOptions.isReadOnly
1235
+ ? null
1236
+ : this.$(go.Adornment, 'Spot', {
1237
+ shadowVisible: true,
1238
+ shadowBlur: 6,
1239
+ shadowOffset: new go.Point(0, 2),
1240
+ shadowColor: '#00000029',
1241
+ }, this.$(go.Panel, 'Auto', this.$(go.Shape, {
1242
+ fill: null,
1243
+ stroke: 'dodgerblue',
1244
+ strokeWidth: 4,
1245
+ }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
1246
+ alignment: go.Spot.TopRight,
1247
+ alignmentFocus: go.Spot.Bottom,
1248
+ background: 'white',
1249
+ },
1250
+ // more
1251
+ this.generateActionGroup([
1252
+ AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
1253
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
1254
+ AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
1255
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
1256
+ ]))),
1257
+ }, new go.Binding('visible', 'visible'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
1258
+ fill: 'white',
1259
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
1260
+ // strokeDashArray: [5, 5],
1261
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.TEMPLATE_DUPLICATE[title] ?? title, {
1262
+ row: 0,
1263
+ margin: new go.Margin(3, 3, 10, 3),
1264
+ maxSize: new go.Size(size.w - 20, 15),
1265
+ stroke: '#444444',
1266
+ font: 'normal 10pt Arial',
1267
+ textAlign: 'center',
1268
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
1269
+ margin: 4,
1270
+ text: title,
1271
+ })),
1272
+ }), this.$(go.Picture, icon, {
1273
+ row: 1,
1274
+ alignment: go.Spot.Center,
1275
+ desiredSize: new go.Size(size.w - 20, size.h - 65),
1276
+ imageStretch: go.GraphObject.Uniform,
1277
+ }), this.$(go.TextBlock, {
1278
+ row: 2,
1279
+ margin: new go.Margin(10, 3, 3, 3),
1280
+ editable: true,
1281
+ maxSize: new go.Size(size.w - 20, 15),
1282
+ stroke: '#2C2C2C',
1283
+ font: 'bold 10pt Arial',
1284
+ textAlign: 'center',
1285
+ // wrap: go.TextBlock.None,
1286
+ overflow: go.TextBlock.OverflowEllipsis,
1287
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
1288
+ margin: 4,
1289
+ }, new go.Binding('text', 'name').makeTwoWay())),
1290
+ }, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.Panel, 'Vertical', {
1291
+ alignment: go.Spot.Left,
1292
+ alignmentFocus: new go.Spot(0, 0.5, 8, 0),
1293
+ }), this.$(go.Panel, 'Vertical', {
1294
+ alignment: go.Spot.Right,
1295
+ alignmentFocus: new go.Spot(1, 0.5, -8, 0),
1296
+ }),
1297
+ // four named ports, one on each side:
1298
+ this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
1299
+ this.myDiagram.nodeTemplateMap.set(title, node);
1300
+ }
1301
+ // Plant Cell
1302
+ plantCellTemplate(icon, title, size = {
1303
+ w: 260,
1304
+ h: AtoGojsEditorModel.PLANT_CELL_HEIGHT,
1305
+ }) {
1306
+ const self = this;
1307
+ let node = this.$(go.Group, 'Spot', {
1308
+ locationSpot: go.Spot.Center,
1309
+ mouseOver: function (e, obj) {
1310
+ // self.showPoint(obj?.part?.location);
1311
+ },
1312
+ mouseEnter: (e, obj) => {
1313
+ // self.onHoverAlert.emit({
1314
+ // left: e?.['Wr']?.x + 8,
1315
+ // top: e?.['Wr']?.y,
1316
+ // messageAlert: (obj as any).part?.ob?.messageAlert,
1317
+ // });
1318
+ const node = obj.part;
1319
+ self.onHoverInfoButton.emit({
1320
+ left: e?.['Wr']?.x + 8,
1321
+ top: e?.['Wr']?.y,
1322
+ node: node,
1323
+ });
1324
+ let shape = node?.findObject('SHAPE_KEY'); // Thay 'SHAPE_KEY' bằng khóa bạn đặt cho hình Shape
1325
+ // debugger;
1326
+ if (shape) {
1327
+ shape.stroke = 'blue'; // Thay đổi màu stroke thành blue
1328
+ }
1329
+ },
1330
+ mouseLeave: (e, obj) => {
1331
+ self.onHoverInfoButton.emit(null);
1332
+ // self.onHoverAlert.emit(null);
1333
+ },
1334
+ click: (e, obj) => {
1335
+ if (obj?.data?.onSelected) {
1336
+ obj?.data?.onSelected(obj?.data);
1337
+ self.onClickCompoent.emit({
1338
+ left: e?.['Wr']?.x,
1339
+ top: e?.['Wr']?.y,
1340
+ node: node,
1341
+ component: obj?.data,
1342
+ });
1343
+ }
1344
+ },
1345
+ doubleClick: (e, obj) => {
1346
+ if (!this._initialOptions?.isReadOnly) {
1347
+ const node = obj.part;
1348
+ this.isShowNodeInfo
1349
+ ? self.onDoubleClickNode.emit({
1350
+ left: e?.['Wr']?.x,
1351
+ top: e?.['Wr']?.y,
1352
+ node: node,
1353
+ })
1354
+ : null;
1355
+ }
1356
+ },
1357
+ // Todo
1358
+ selectionChanged: (e) => {
1359
+ if (!e.isSelected && e?.data?.onSelected) {
1360
+ e?.data?.onSelected(null);
1361
+ }
1362
+ },
1363
+ selectionAdornmentTemplate: this._initialOptions.isReadOnly
1364
+ ? null
1365
+ : this.$(go.Adornment, 'Spot', {
1366
+ shadowVisible: true,
1367
+ shadowBlur: 6,
1368
+ shadowOffset: new go.Point(0, 2),
1369
+ shadowColor: '#00000029',
1370
+ }, this.$(go.Panel, 'Auto', { width: 170 }, this.$(go.Shape, {
1371
+ fill: null,
1372
+ stroke: 'dodgerblue',
1373
+ strokeWidth: 4,
1374
+ }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom },
1375
+ // more
1376
+ this.generateActionGroup([
1377
+ AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
1378
+ AtoDefaultGojsEditor.ENUM_ACTIONS.CHANGE_ICON,
1379
+ AtoDefaultGojsEditor.ENUM_ACTIONS.ONLY_DETAILS,
1380
+ // DefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
1381
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
1382
+ ])
1383
+ // new go.Binding('visible', 'isNotAction', (x) => !x),
1384
+ )
1385
+ // this.$(
1386
+ // go.Panel,
1387
+ // 'Horizontal',
1388
+ // { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom },
1389
+ // this.generateActionGroup([DefaultGojsEditor.ENUM_ACTIONS.ONLY_DETAILS]),
1390
+ // new go.Binding('visible', '', (x) => {
1391
+ // return x?.isOnlyDetails && !x?.isNotAction ? true : false;
1392
+ // }),
1393
+ // ),
1394
+ ),
1395
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
1396
+ // this.$(go.Shape, 'RoundedRectangle', {
1397
+ // fill: 'white',
1398
+ // stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
1399
+ // // strokeDashArray: [5, 5],
1400
+ // }),
1401
+ // this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0), visible: false }),
1402
+ this.$(go.Panel, 'Auto', {
1403
+ alignmentFocus: go.Spot.Center,
1404
+ margin: new go.Margin(0, 50, 0, 50),
1405
+ }, this.$(go.Shape, 'RoundedRectangle', {
1406
+ fill: 'white',
1407
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
1408
+ strokeDashArray: [5, 5],
1409
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
1410
+ row: 0,
1411
+ margin: new go.Margin(3, 0, 10, 0),
1412
+ desiredSize: new go.Size(size.w - 20, 15),
1413
+ stroke: '#444444',
1414
+ font: 'normal 10pt Arial',
1415
+ textAlign: 'center',
1416
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
1417
+ margin: 4,
1418
+ text: title,
1419
+ })),
1420
+ }), this.$(go.Picture, icon, {
1421
+ row: 1,
1422
+ alignment: go.Spot.Center,
1423
+ desiredSize: new go.Size(size.w - 20, size.h - 65),
1424
+ imageStretch: go.GraphObject.Uniform,
1425
+ }, new go.Binding('source', 'pathImage', (x) => x ??
1426
+ AtoGojsEditorModel.NODE_TEMPLATES[AtoGojsEditorModel.ENUM_TEMPLATES.PLANT_CELL].icon)), this.$(go.TextBlock, {
1427
+ row: 2,
1428
+ margin: new go.Margin(10, 0, 3, 0),
1429
+ editable: true,
1430
+ desiredSize: new go.Size(size.w - 20, 15),
1431
+ stroke: '#2C2C2C',
1432
+ font: 'bold 10pt Arial',
1433
+ textAlign: 'center',
1434
+ // wrap: go.TextBlock.None,
1435
+ overflow: go.TextBlock.OverflowEllipsis,
1436
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
1437
+ margin: 4,
1438
+ }, new go.Binding('text', 'name').makeTwoWay())),
1439
+ }, new go.Binding('text', 'name').makeTwoWay())))), this.$(go.Panel, 'Vertical', {
1440
+ alignment: go.Spot.Left,
1441
+ alignmentFocus: new go.Spot(0, 0.5, 8, 0),
1442
+ }), this.$(go.Panel, 'Vertical', {
1443
+ alignment: go.Spot.Right,
1444
+ alignmentFocus: new go.Spot(1, 0.5, -8, 0),
1445
+ })
1446
+ // this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true),
1447
+ // this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true),
1448
+ // this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false),
1449
+ // this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false),
1450
+ );
1451
+ this.myDiagram.nodeTemplateMap.set(title, node);
1452
+ }
1453
+ makeEntityWithdrawOrDischarge(icon, title, size = {
1454
+ w: AtoGojsEditorModel.GRID_SIZE * 5,
1455
+ h: AtoGojsEditorModel.GRID_SIZE * 5,
1456
+ }) {
1457
+ const self = this;
1458
+ let node = this.$(go.Node, 'Spot', {
1459
+ locationSpot: go.Spot.Center,
1460
+ mouseOver: function (e, obj) {
1461
+ // self.showPoint(obj?.part?.location);
1462
+ },
1463
+ click: (e, obj) => {
1464
+ if (obj?.data?.onSelected) {
1465
+ obj?.data?.onSelected(obj?.data);
1466
+ self.onClickCompoent.emit({
1467
+ left: e?.['Wr']?.x,
1468
+ top: e?.['Wr']?.y,
1469
+ node: node,
1470
+ component: obj?.data,
1471
+ });
1472
+ }
1473
+ },
1474
+ selectionChanged: (e) => {
1475
+ if (!e.isSelected && e?.data?.onSelected) {
1476
+ e?.data?.onSelected(null);
1477
+ }
1478
+ },
1479
+ selectionAdornmentTemplate: this._initialOptions.isReadOnly
1480
+ ? null
1481
+ : this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto', this.$(go.Shape, {
1482
+ fill: null,
1483
+ stroke: 'dodgerblue',
1484
+ strokeWidth: 4,
1485
+ }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', { alignment: go.Spot.TopRight, alignmentFocus: go.Spot.Bottom }, this.generateActionGroup([
1486
+ AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
1487
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
1488
+ AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
1489
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
1490
+ ]))),
1491
+ }, new go.Binding('visible', 'visible'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'RoundedRectangle', {
1492
+ fill: 'white',
1493
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
1494
+ // strokeDashArray: [5, 5],
1495
+ }), this.$(go.Panel, 'Table',
1496
+ // this.$(go.TextBlock, title, {
1497
+ // row: 0,
1498
+ // margin: new go.Margin(3, 3, 10, 3),
1499
+ // maxSize: new go.Size(size.w - 20, NaN),
1500
+ // stroke: '#444444',
1501
+ // font: 'normal 10pt Arial',
1502
+ // textAlign: 'center',
1503
+ // }),
1504
+ this.$(go.Picture, icon, {
1505
+ row: 1,
1506
+ alignment: go.Spot.Center,
1507
+ desiredSize: new go.Size(size.w - 20, size.h - 50),
1508
+ imageStretch: go.GraphObject.Uniform,
1509
+ }), this.$(go.TextBlock, {
1510
+ row: 2,
1511
+ margin: new go.Margin(10, 0, 3, 0),
1512
+ editable: true,
1513
+ desiredSize: new go.Size(size.w - 20, 15),
1514
+ stroke: '#000D42',
1515
+ font: 'bold 10pt Arial',
1516
+ textAlign: 'center',
1517
+ // wrap: go.TextBlock.None,
1518
+ overflow: go.TextBlock.OverflowEllipsis,
1519
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
1520
+ margin: 4,
1521
+ }, new go.Binding('text', 'name').makeTwoWay())),
1522
+ }, new go.Binding('text', 'name').makeTwoWay()
1523
+ // {
1524
+ // // define a tooltip for each node that displays the color as text
1525
+ // toolTip: this.$(
1526
+ // 'ToolTip',
1527
+ // this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name')),
1528
+ // ), // end of Adornment
1529
+ // },
1530
+ ))), this.$(go.Panel, 'Vertical', {
1531
+ alignment: go.Spot.Left,
1532
+ alignmentFocus: new go.Spot(0, 0.5, 8, 0),
1533
+ }), this.$(go.Panel, 'Vertical', {
1534
+ alignment: go.Spot.Right,
1535
+ alignmentFocus: new go.Spot(1, 0.5, -8, 0),
1536
+ }),
1537
+ // four named ports, one on each side:
1538
+ this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
1539
+ this.myDiagram.nodeTemplateMap.set(title, node);
1540
+ }
1541
+ editTextGroupZone(e, button) {
1542
+ const nodeGroup = button.part.adornedPart;
1543
+ const diagram = nodeGroup.diagram;
1544
+ e.diagram.commandHandler.editTextBlock(nodeGroup.findObject('TEXTBLOCK'));
1545
+ }
1546
+ editText(e, button) {
1547
+ const node = button.part.adornedPart;
1548
+ e.diagram.commandHandler.editTextBlock(node.findObject('TEXTBLOCK'));
1549
+ }
1550
+ async dragNewNode(e, button) {
1551
+ const tool = e.diagram.toolManager.draggingTool;
1552
+ if (tool.isBeyondDragSize()) {
1553
+ const data = button._dragData;
1554
+ if (!data)
1555
+ return;
1556
+ e.diagram.startTransaction('button drag'); // see doDeactivate, below
1557
+ const fromnode = button.part.adornedPart;
1558
+ const diagram = fromnode.diagram;
1559
+ const model = diagram.model;
1560
+ const nodedata = {
1561
+ ...model.copyNodeData(data),
1562
+ key: UtilsService.generateUUID(),
1563
+ };
1564
+ model.addNodeData(nodedata);
1565
+ const newnode = diagram.findNodeForData(nodedata);
1566
+ const linkdata = model.copyLinkData({});
1567
+ model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
1568
+ model.setToKeyForLinkData(linkdata, model.getKeyForNodeData(newnode.data));
1569
+ model.addLinkData(linkdata);
1570
+ diagram.select(newnode);
1571
+ // this.createNodeAndLink(data, button.part.adornedPart);
1572
+ newnode.location = e.diagram.lastInput.documentPoint;
1573
+ // don't commitTransaction here, but in tool.doDeactivate, after drag operation finished
1574
+ // set tool.currentPart to a selected movable Part and then activate the DraggingTool
1575
+ tool.currentPart = newnode;
1576
+ e.diagram.currentTool = tool;
1577
+ tool.doActivate();
1578
+ }
1579
+ }
1580
+ addItemOnGroupZone(e, button) {
1581
+ const data = button._dragData;
1582
+ if (!data)
1583
+ return;
1584
+ e.diagram.startTransaction('Add Item On Group Zone');
1585
+ const fromnode = button.part.adornedPart;
1586
+ const dragData = button._dragData;
1587
+ const diagram = fromnode.diagram;
1588
+ const model = diagram.model;
1589
+ const nodedata = model.copyNodeData(dragData);
1590
+ model.addNodeData({
1591
+ ...nodedata,
1592
+ type: 'SubSystem',
1593
+ name: '[Title...]',
1594
+ nameItem: '[Name...]',
1595
+ group: fromnode?.ob?.key,
1596
+ });
1597
+ e.diagram.commitTransaction('Add Item On Group Zone');
1598
+ // const newnode = diagram.findNodeForData(nodedata);
1599
+ // const linkdata = model.copyLinkData({});
1600
+ // model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
1601
+ // model.setToKeyForLinkData(linkdata, model.getKeyForNodeData(newnode.data));
1602
+ // model.addLinkData(linkdata);
1603
+ // diagram.select(newnode);
1604
+ // newnode.location = new go.Point(fromnode.location.x + 200, fromnode.location.y);
1605
+ // e.diagram.commitTransaction('Create Node and Link');
1606
+ }
1607
+ generateActionGroup(actions) {
1608
+ const self = this;
1609
+ return this.$('Button', {
1610
+ click: function (e, obj) {
1611
+ self.openActionMenu();
1612
+ const filteredActions = _.filter(obj.part?.['ob']?.actions ?? actions, (action) => {
1613
+ // Filter Insight button
1614
+ if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT) {
1615
+ return !!obj.part?.['ob']?.id;
1616
+ }
1617
+ if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME &&
1618
+ obj.part?.['ob']?.type !==
1619
+ AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE &&
1620
+ AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(obj.part?.['ob']?.systemType) &&
1621
+ obj.part?.['ob']?.topologyType !==
1622
+ ATO_ECOMPONENT_PLANT_TYPE.WATER &&
1623
+ obj.part?.['ob']?.topologyType !==
1624
+ ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL) {
1625
+ return false;
1626
+ }
1627
+ if (action === AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW &&
1628
+ self.plantSatus === ATO_EPlantType.BASIC_PLANT &&
1629
+ obj.part?.data?.type ===
1630
+ AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
1631
+ return false;
1632
+ }
1633
+ return true;
1634
+ }).map((e) => {
1635
+ if (ATO_ECOMPONENT_PLANT_TYPE.STEAM ===
1636
+ obj.part?.['ob']?.topologyType &&
1637
+ e === AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT) {
1638
+ return AtoDefaultGojsEditor.ENUM_ACTIONS.DATA_MAPPING;
1639
+ }
1640
+ if (e === AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS &&
1641
+ obj?.part?.['ob']?.systemType ===
1642
+ AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER) {
1643
+ return AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD;
1644
+ }
1645
+ return e;
1646
+ });
1647
+ self.actions = filteredActions.map((action) => {
1648
+ let onClickFn = () => { };
1649
+ switch (action) {
1650
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.INSIGHT:
1651
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.DATA_MAPPING:
1652
+ onClickFn = () => {
1653
+ self.onOpenInsightMapping.emit({
1654
+ node: obj.part,
1655
+ });
1656
+ };
1657
+ break;
1658
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS:
1659
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS:
1660
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD:
1661
+ onClickFn = () => {
1662
+ self.onOpenDetail.emit({
1663
+ node: obj.part,
1664
+ });
1665
+ };
1666
+ break;
1667
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.ONLY_DETAILS:
1668
+ onClickFn = () => {
1669
+ self.onOpenDetail.emit({
1670
+ node: obj.part,
1671
+ });
1672
+ };
1673
+ break;
1674
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.ASSET_PARAMETERS:
1675
+ onClickFn = () => {
1676
+ self.onOpenAssetParameter.emit({
1677
+ node: obj.part,
1678
+ });
1679
+ };
1680
+ break;
1681
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME:
1682
+ onClickFn = () => {
1683
+ if (obj.part?.data?.type ===
1684
+ AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE) {
1685
+ self.onRename.emit({
1686
+ left: e?.['Wr']?.x - 50,
1687
+ top: e?.['Wr']?.y,
1688
+ ...obj.part?.data,
1689
+ });
1690
+ // LayoutService.setToolTipComponentDataStatic({
1691
+ // component: RenameBoxComponent,
1692
+ // data: {
1693
+ // left: e?.['Wr']?.x - 50,
1694
+ // top: e?.['Wr']?.y,
1695
+ // ...obj.part?.data,
1696
+ // },
1697
+ // });
1698
+ }
1699
+ else {
1700
+ self.editText(e, obj);
1701
+ }
1702
+ };
1703
+ break;
1704
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW:
1705
+ onClickFn = () => {
1706
+ self.clickNewNode(e, _.merge(obj, {
1707
+ actionMove: self.dragNewNode,
1708
+ _dragData: {
1709
+ ...{
1710
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
1711
+ name: `${AtoGojsEditorModel.ACTION_RIGHT_MENU_GROUP.DATA_BOX}_${moment().valueOf()}`,
1712
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
1713
+ },
1714
+ ...self.setProFOrNewNode(self),
1715
+ },
1716
+ }));
1717
+ };
1718
+ break;
1719
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE:
1720
+ onClickFn = () => {
1721
+ self.deleteNode(e);
1722
+ };
1723
+ break;
1724
+ case AtoDefaultGojsEditor.ENUM_ACTIONS.CHANGE_ICON:
1725
+ onClickFn = () => {
1726
+ self.onOpenChangeIcon.emit({
1727
+ node: obj.part,
1728
+ });
1729
+ };
1730
+ break;
1731
+ }
1732
+ return {
1733
+ ...AtoDefaultGojsEditor.ACTIONS[action],
1734
+ onClick: () => {
1735
+ onClickFn();
1736
+ },
1737
+ };
1738
+ });
1739
+ },
1740
+ 'ButtonBorder.strokeWidth': 0,
1741
+ 'ButtonBorder.fill': 'white',
1742
+ },
1743
+ // new go.Binding('visible', 'isNotDragNewNode', (x) => !x),
1744
+ // new go.Binding('visible', 'isNotDelete', (x) => !x),
1745
+ new go.Binding('visible', 'isNotAction', (x) => !x), this.$(go.TextBlock, {
1746
+ margin: 4,
1747
+ text: '\ue489',
1748
+ font: '20px "Font Awesome 6 Pro"',
1749
+ cursor: 'pointer',
1750
+ }));
1751
+ }
1752
+ async setProFOrNewNode(self) {
1753
+ if (self.plantSatus === ATO_EPlantType.BASIC_PLANT) {
1754
+ return {
1755
+ movable: false,
1756
+ isNotAllowConnect: true,
1757
+ };
1758
+ }
1759
+ return {};
1760
+ }
1761
+ async clickNewNode(e, button) {
1762
+ const data = button._dragData;
1763
+ if (!data)
1764
+ return;
1765
+ e.diagram.startTransaction('Create Node and Link');
1766
+ const fromnode = button.part.adornedPart;
1767
+ // this.createNodeAndLink(button._dragData, fromnode);
1768
+ const dragData = button._dragData;
1769
+ const diagram = fromnode.diagram;
1770
+ const model = diagram.model;
1771
+ const nodedata = {
1772
+ ...model.copyNodeData(dragData),
1773
+ key: UtilsService.generateUUID(),
1774
+ };
1775
+ model.addNodeData({
1776
+ ...nodedata,
1777
+ isEditable: true,
1778
+ shortenedNumber: 0,
1779
+ isFormat: false,
1780
+ dataCollectionMethod: AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL,
1781
+ color: AtoGojsEditorModel.COLOR_COLLECTION_METHOD[AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color,
1782
+ group: fromnode?.ob?.group,
1783
+ value: 0,
1784
+ });
1785
+ const newnode = diagram.findNodeForData(nodedata);
1786
+ const linkdata = model.copyLinkData({});
1787
+ model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
1788
+ model.setToKeyForLinkData(linkdata, model.getKeyForNodeData(newnode.data));
1789
+ model.addLinkData(linkdata);
1790
+ diagram.select(newnode);
1791
+ if (nodedata?.movable !== undefined && nodedata?.movable !== null) {
1792
+ newnode.movable = nodedata?.movable;
1793
+ }
1794
+ newnode.location = new go.Point(fromnode.location.x + 160, fromnode.location.y +
1795
+ this.findLocYFromnode(fromnode) * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT);
1796
+ e.diagram.commitTransaction('Create Node and Link');
1797
+ }
1798
+ findLocYFromnode(fromnode) {
1799
+ // Find location auto right
1800
+ const locYFromnode = fromnode.data?.loc?.split(' ')?.[1];
1801
+ const locYAlreadyExist = [];
1802
+ fromnode.findLinksOutOf().each(function (link) {
1803
+ const targetNode = link.toNode;
1804
+ if (targetNode) {
1805
+ locYAlreadyExist.push(targetNode.data?.loc?.split(' ')?.[1] - locYFromnode);
1806
+ }
1807
+ });
1808
+ let i = 0;
1809
+ while (this.isEmptyYLoc(locYAlreadyExist, i) === null && i < 100) {
1810
+ i++;
1811
+ }
1812
+ return this.isEmptyYLoc(locYAlreadyExist, i);
1813
+ }
1814
+ isEmptyYLoc(locYAlreadyExist, i) {
1815
+ if (!_.some(locYAlreadyExist, (x) => x <
1816
+ i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT +
1817
+ AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2 &&
1818
+ x >
1819
+ i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT -
1820
+ AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2)) {
1821
+ return i;
1822
+ }
1823
+ if (!_.some(locYAlreadyExist, (x) => x <
1824
+ -i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT +
1825
+ AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2 &&
1826
+ x >
1827
+ -i * AtoDefaultGojsEditor.DISTANCE_2_OUTPUT -
1828
+ AtoDefaultGojsEditor.DISTANCE_2_OUTPUT / 2)) {
1829
+ return -i;
1830
+ }
1831
+ return null;
1832
+ }
1833
+ createNewNode(newnode) {
1834
+ this.addTemplate(newnode);
1835
+ this.myDiagram.startTransaction('add group node');
1836
+ this.myDiagram.model.addNodeData(newnode);
1837
+ this.myDiagram.commitTransaction('add group node');
1838
+ }
1839
+ deleteNode(e) {
1840
+ e.diagram.startTransaction('Delete group node');
1841
+ e.diagram.removeParts(e.diagram.selection);
1842
+ e.diagram.commitTransaction('Delete group node');
1843
+ }
1844
+ deleteNodeOnDiagram(e) {
1845
+ e.startTransaction('Delete group node');
1846
+ e.removeParts(e.selection);
1847
+ e.commitTransaction('Delete group node');
1848
+ }
1849
+ insightNode(e) { }
1850
+ drawLink(e, button) {
1851
+ const node = button.part.adornedPart;
1852
+ const tool = e.diagram.toolManager.linkingTool;
1853
+ tool.startObject = node.port;
1854
+ e.diagram.currentTool = tool;
1855
+ tool.doActivate();
1856
+ }
1857
+ makePortGroup(name, align, spot, output, input) {
1858
+ const horizontal = align.equals(go.Spot.Top) || align.equals(go.Spot.Bottom);
1859
+ return this.$(go.Panel, 'Table', {
1860
+ background: '#919CA5',
1861
+ width: 40,
1862
+ height: 40,
1863
+ alignment: align,
1864
+ stretch: horizontal
1865
+ ? go.GraphObject.Horizontal
1866
+ : go.GraphObject.Vertical,
1867
+ portId: name,
1868
+ fromSpot: spot,
1869
+ fromLinkable: output,
1870
+ toSpot: spot,
1871
+ toLinkable: input,
1872
+ cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
1873
+ alignmentFocus: go.Spot.Center, // tập trung vào trung tâm của Panel
1874
+ // mouseEnter: this._initialOptions.isReadOnly
1875
+ // ? null
1876
+ // : (e, panel) => {
1877
+ // const textBlock = (panel as any)?.findObject('textBlock') as go.TextBlock | null;
1878
+ // if (textBlock) {
1879
+ // // && output
1880
+ // textBlock.visible = true;
1881
+ // switch (name) {
1882
+ // case 'B':
1883
+ // case 'R': {
1884
+ // panel.background = 'rgb(243 144 171)';
1885
+ // break;
1886
+ // }
1887
+ // case 'T':
1888
+ // case 'L': {
1889
+ // panel.background = 'rgb(103,151,207)';
1890
+ // break;
1891
+ // }
1892
+ // default: {
1893
+ // panel.background = 'rgb(243 144 171)';
1894
+ // }
1895
+ // }
1896
+ // }
1897
+ // },
1898
+ // mouseLeave: this._initialOptions.isReadOnly
1899
+ // ? null
1900
+ // : (e, panel) => {
1901
+ // const textBlock = (panel as any).findObject('textBlock') as go.TextBlock | null;
1902
+ // if (textBlock) {
1903
+ // textBlock.visible = false; // Ẩn TextBlock khi rời khỏi Panel
1904
+ // }
1905
+ // panel.background = 'transparent';
1906
+ // },
1907
+ }, this.$(go.Shape, 'Ellipse', {
1908
+ fill: 'white',
1909
+ strokeWidth: 2,
1910
+ stroke: '#919CA5',
1911
+ width: 40,
1912
+ height: 40, // Match the panel's height
1913
+ })
1914
+ // this.$(
1915
+ // go.TextBlock,
1916
+ // {
1917
+ // name: 'textBlock',
1918
+ // margin: 4,
1919
+ // text: '\uf0da', // Mã Unicode tương ứng với fa-caret-left
1920
+ // font: '900 12px "Font Awesome 6 Pro"',
1921
+ // stroke: 'white', // Đặt màu chữ thành màu trắng
1922
+ // cursor: 'pointer',
1923
+ // visible: false,
1924
+ // },
1925
+ // new go.Binding('text', 'name', (_) => {
1926
+ // switch (name) {
1927
+ // case 'T':
1928
+ // case 'B': {
1929
+ // return '\uf0d7';
1930
+ // }
1931
+ // case 'L':
1932
+ // case 'R': {
1933
+ // return '\uf0da';
1934
+ // }
1935
+ // default: {
1936
+ // return '\uf0d7';
1937
+ // }
1938
+ // }
1939
+ // }),
1940
+ // ),
1941
+ );
1942
+ }
1943
+ makePort(name, align, spot, output, input) {
1944
+ // if (this._initialOptions.isReadOnly) {
1945
+ // return {};
1946
+ // }
1947
+ const horizontal = align.equals(go.Spot.Top) || align.equals(go.Spot.Bottom);
1948
+ // const vertical = align.equals(go.Spot.Left) || align.equals(go.Spot.Right);
1949
+ // the port is basically just a transparent rectangle that stretches along the side of the node,
1950
+ // and becomes colored when the mouse passes over it
1951
+ return this.$(go.Panel, 'Table', {
1952
+ background: 'transparent',
1953
+ width: horizontal ? NaN : 8,
1954
+ height: !horizontal ? NaN : 8,
1955
+ alignment: align,
1956
+ stretch: horizontal
1957
+ ? go.GraphObject.Horizontal
1958
+ : go.GraphObject.Vertical,
1959
+ portId: name,
1960
+ fromSpot: spot,
1961
+ fromLinkable: output,
1962
+ toSpot: spot,
1963
+ toLinkable: input,
1964
+ cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
1965
+ alignmentFocus: go.Spot.Center,
1966
+ mouseEnter: this._initialOptions.isReadOnly
1967
+ ? null
1968
+ : (e, panel) => {
1969
+ const textBlock = panel?.findObject('textBlock');
1970
+ if (textBlock) {
1971
+ // && output
1972
+ textBlock.visible = true;
1973
+ switch (name) {
1974
+ case 'B':
1975
+ case 'R': {
1976
+ panel.background = 'rgb(243 144 171)';
1977
+ break;
1978
+ }
1979
+ case 'T':
1980
+ case 'L': {
1981
+ panel.background = 'rgb(103,151,207)';
1982
+ break;
1983
+ }
1984
+ default: {
1985
+ panel.background = 'rgb(243 144 171)';
1986
+ }
1987
+ }
1988
+ }
1989
+ },
1990
+ mouseLeave: this._initialOptions.isReadOnly
1991
+ ? null
1992
+ : (e, panel) => {
1993
+ const textBlock = panel.findObject('textBlock');
1994
+ if (textBlock) {
1995
+ textBlock.visible = false; // Ẩn TextBlock khi rời khỏi Panel
1996
+ }
1997
+ panel.background = 'transparent';
1998
+ },
1999
+ }, new go.Binding('visible', '', function (data) {
2000
+ if (data?.isNotAllowConnect) {
2001
+ return false;
2002
+ }
2003
+ if (data?.selectable === false && !data?.isAllowConnect) {
2004
+ return false;
2005
+ }
2006
+ if (data?.flowOfPlantCell) {
2007
+ if (data?.flowOfPlantCell === ATO_ENUM_FLOW_DIRECTION.INFLOW &&
2008
+ name === 'L') {
2009
+ return true;
2010
+ }
2011
+ if (data?.flowOfPlantCell === ATO_ENUM_FLOW_DIRECTION.OUTFLOW &&
2012
+ name === 'R') {
2013
+ return true;
2014
+ }
2015
+ return false;
2016
+ }
2017
+ switch (name) {
2018
+ case 'B':
2019
+ case 'R': {
2020
+ return !data?.isNotSelectOutput;
2021
+ }
2022
+ case 'T':
2023
+ case 'L': {
2024
+ return !data?.isNotSelectInput;
2025
+ }
2026
+ default: {
2027
+ return true;
2028
+ }
2029
+ }
2030
+ }), this.$(go.TextBlock, {
2031
+ name: 'textBlock',
2032
+ margin: 4,
2033
+ text: '\uf0da',
2034
+ font: '900 12px "Font Awesome 6 Pro"',
2035
+ stroke: 'white',
2036
+ cursor: 'pointer',
2037
+ visible: false,
2038
+ }, new go.Binding('text', 'name', (_) => {
2039
+ switch (name) {
2040
+ case 'T':
2041
+ case 'B': {
2042
+ return '\uf0d7';
2043
+ }
2044
+ case 'L':
2045
+ case 'R': {
2046
+ return '\uf0da';
2047
+ }
2048
+ default: {
2049
+ return '\uf0d7';
2050
+ }
2051
+ }
2052
+ })));
2053
+ // return this.$(go.Shape, {
2054
+ // fill: 'transparent', // changed to a color in the mouseEnter event handler
2055
+ // strokeWidth: 0, // no stroke
2056
+ // width: horizontal ? NaN : 8, // if not stretching horizontally, just 8 wide
2057
+ // height: !horizontal ? NaN : 8, // if not stretching vertically, just 8 tall
2058
+ // alignment: align, // align the port on the main Shape
2059
+ // stretch: horizontal ? go.GraphObject.Horizontal : go.GraphObject.Vertical,
2060
+ // portId: name, // declare this object to be a "port"
2061
+ // fromSpot: spot, // declare where links may connect at this port
2062
+ // fromLinkable: output, // declare whether the user may draw links from here
2063
+ // toSpot: spot, // declare where links may connect at this port
2064
+ // toLinkable: input, // declare whether the user may draw links to here
2065
+ // cursor: 'pointer', // show a different cursor to indicate potential link point
2066
+ // mouseEnter: (e, port) => {
2067
+ // // the PORT argument will be this Shape
2068
+ // if (!e.diagram.isReadOnly && output) {
2069
+ // port.fill = 'rgba(255,0,255,0.5)'
2070
+ // };
2071
+ // },
2072
+ // mouseLeave: (e, port) => {
2073
+ // return (port.fill = 'transparent');
2074
+ // },
2075
+ // });
2076
+ }
2077
+ makeGroupBasicComponent(icon, title, size = { w: 80, h: 80 }) {
2078
+ let node = this.$(go.Group, 'Spot', {
2079
+ // layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
2080
+ alignment: go.Spot.Center,
2081
+ layout: this.$(go.Layout),
2082
+ movable: false,
2083
+ selectable: false,
2084
+ // movable: true,
2085
+ // selectable: true,
2086
+ dragComputation: (node, pt, gridpt) => {
2087
+ pt.x =
2088
+ Math.round(pt.x / AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH) *
2089
+ AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH;
2090
+ pt.y =
2091
+ Math.round(pt.y / AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT) *
2092
+ AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT;
2093
+ return pt;
2094
+ },
2095
+ }, {
2096
+ // minSize: new go.Size(AtoGojsEditorModel.BASIC_GRID_SIZE_WIDTH, AtoGojsEditorModel.BASIC_GRID_SIZE_HEIGHT),
2097
+ minSize: new go.Size(1, 1),
2098
+ maxSize: new go.Size(1, 1),
2099
+ // minSize: new go.Size(100, 100),
2100
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
2101
+ fill: 'transparent',
2102
+ stroke: 'transparent',
2103
+ // stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
2104
+ strokeWidth: 2,
2105
+ // strokeDashArray: [5, 5],
2106
+ })
2107
+ // this.$(go.Placeholder),
2108
+ // this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) }),
2109
+ )
2110
+ // this.$(go.TextBlock, title, {
2111
+ // row: 0,
2112
+ // margin: new go.Margin(0, 0, 0, 0),
2113
+ // stroke: '#444444',
2114
+ // font: 'normal 10pt Arial',
2115
+ // textAlign: 'center',
2116
+ // alignment: go.Spot.Left,
2117
+ // },
2118
+ // new go.Binding('text', 'key').makeTwoWay(),),
2119
+ // this.$(
2120
+ // go.Panel,
2121
+ // 'Table',
2122
+ // {
2123
+ // alignment: go.Spot.TopLeft,
2124
+ // alignmentFocus: new go.Spot(0, 0, -10, -10),
2125
+ // // padding: new go.Margin(0, 0, 50, 0),
2126
+ // },
2127
+ // this.$(
2128
+ // go.Panel,
2129
+ // 'Horizontal',
2130
+ // {
2131
+ // row: 0,
2132
+ // alignment: go.Spot.Left,
2133
+ // },
2134
+ // this.$(go.Picture, icon, {
2135
+ // row: 0,
2136
+ // // alignment: go.Spot.Center,
2137
+ // alignment: go.Spot.Left,
2138
+ // maxSize: new go.Size(40, 40),
2139
+ // imageStretch: go.GraphObject.Uniform,
2140
+ // }),
2141
+ // this.$(
2142
+ // go.Panel,
2143
+ // 'Table',
2144
+ // {
2145
+ // column: 1,
2146
+ // defaultAlignment: go.Spot.Left,
2147
+ // alignmentFocus: new go.Spot(0, 0, 0, 20),
2148
+ // },
2149
+ // this.$(go.TextBlock, title, {
2150
+ // row: 0,
2151
+ // margin: new go.Margin(3, 3, 5, 10),
2152
+ // // maxSize: new go.Size(size.w - 20, NaN),
2153
+ // stroke: '#444444',
2154
+ // font: 'normal 10pt Arial',
2155
+ // textAlign: 'center',
2156
+ // alignment: go.Spot.Left,
2157
+ // }),
2158
+ // this.$(
2159
+ // go.TextBlock,
2160
+ // {
2161
+ // row: 1,
2162
+ // margin: new go.Margin(0, 3, 3, 10),
2163
+ // editable: true,
2164
+ // // maxSize: new go.Size(size.w - 20, 40),
2165
+ // stroke: '#000D42',
2166
+ // font: 'bold 10pt Arial',
2167
+ // textAlign: 'center',
2168
+ // wrap: go.TextBlock.None,
2169
+ // overflow: go.TextBlock.OverflowEllipsis,
2170
+ // },
2171
+ // new go.Binding('text', 'name').makeTwoWay(),
2172
+ // {
2173
+ // // define a tooltip for each node that displays the color as text
2174
+ // toolTip: this.$(
2175
+ // 'ToolTip',
2176
+ // this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name')),
2177
+ // ), // end of Adornment
2178
+ // },
2179
+ // ),
2180
+ // ),
2181
+ // ),
2182
+ // ),
2183
+ );
2184
+ this.myDiagram.groupTemplateMap.set(title, node);
2185
+ }
2186
+ makeGroupTemplate(icon, title, size = { w: 80, h: 80 }) {
2187
+ let node = this.$(go.Group, 'Spot', {
2188
+ // // layout: this.$(go.ForceDirectedLayout , {
2189
+ // // direction: 0,
2190
+ // // setsPortSpots: false,
2191
+ // // }),
2192
+ // layout: this.$(go.LayeredDigraphLayout, {
2193
+ // direction: 0,
2194
+ // setsPortSpots: false,
2195
+ // }),
2196
+ layout: this.$(go.Layout),
2197
+ // // // adornment when a group is selected
2198
+ // // // selectionAdornmentTemplate: this.$(
2199
+ // // // go.Adornment,
2200
+ // // // 'Auto',
2201
+ // // // this.$(go.Shape, 'Rectangle', { fill: null, stroke: 'dodgerblue', strokeWidth: 8 }),
2202
+ // // // this.$(go.Placeholder),
2203
+ // // // ),
2204
+ },
2205
+ // new go.Binding('layout', 'layout', (x) =>
2206
+ // {
2207
+ // return this.$(go.ForceDirectedLayout , {
2208
+ // direction: 0,
2209
+ // setsPortSpots: false,
2210
+ // });
2211
+ // }
2212
+ // ),
2213
+ {
2214
+ minSize: new go.Size(400, 400),
2215
+ },
2216
+ // new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
2217
+ this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
2218
+ fill: 'transparent',
2219
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
2220
+ strokeWidth: 2,
2221
+ // strokeDashArray: [5, 5],
2222
+ }), this.$(go.Placeholder, { padding: new go.Margin(60, 20, 20, 20) })),
2223
+ // this.$(
2224
+ // go.Panel,
2225
+ // 'Table',
2226
+ // {
2227
+ // alignment: go.Spot.TopLeft,
2228
+ // alignmentFocus: new go.Spot(0, 0, -10, -10),
2229
+ // },
2230
+ // this.$(go.TextBlock, title, {
2231
+ // row: 0,
2232
+ // margin: new go.Margin(3, 3, 5, 3),
2233
+ // maxSize: new go.Size(size.w - 20, NaN),
2234
+ // stroke: '#444444',
2235
+ // font: 'normal 8pt Arial',
2236
+ // textAlign: 'center',
2237
+ // }),
2238
+ // this.$(go.Picture, icon, {
2239
+ // row: 1,
2240
+ // alignment: go.Spot.Center,
2241
+ // maxSize: new go.Size(40, 40),
2242
+ // imageStretch: go.GraphObject.Uniform,
2243
+ // }),
2244
+ // this.$(
2245
+ // go.TextBlock,
2246
+ // {
2247
+ // row: 2,
2248
+ // margin: new go.Margin(10, 3, 3, 3),
2249
+ // editable: true,
2250
+ // maxSize: new go.Size(size.w - 20, 40),
2251
+ // stroke: '#000D42',
2252
+ // font: 'bold 8pt Arial',
2253
+ // textAlign: 'center',
2254
+ // wrap: go.TextBlock.None,
2255
+ // overflow: go.TextBlock.OverflowEllipsis,
2256
+ // },
2257
+ // new go.Binding('text', 'name').makeTwoWay(),
2258
+ // {
2259
+ // // define a tooltip for each node that displays the color as text
2260
+ // toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))), // end of Adornment
2261
+ // },
2262
+ // ),
2263
+ // // new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
2264
+ // ),
2265
+ this.$(go.Panel, 'Table', {
2266
+ alignment: go.Spot.TopLeft,
2267
+ alignmentFocus: new go.Spot(0, 0, -10, -10),
2268
+ // padding: new go.Margin(0, 0, 50, 0),
2269
+ }, this.$(go.Panel, 'Horizontal', {
2270
+ row: 0,
2271
+ alignment: go.Spot.Left,
2272
+ }, this.$(go.Picture, icon, {
2273
+ row: 0,
2274
+ // alignment: go.Spot.Center,
2275
+ alignment: go.Spot.Left,
2276
+ maxSize: new go.Size(40, 40),
2277
+ imageStretch: go.GraphObject.Uniform,
2278
+ }), this.$(go.Panel, 'Table', {
2279
+ column: 1,
2280
+ defaultAlignment: go.Spot.Left,
2281
+ alignmentFocus: new go.Spot(0, 0, 0, 20),
2282
+ }, this.$(go.TextBlock, AtoGojsEditorModel.TEMPLATE_DUPLICATE[title] ?? title, {
2283
+ row: 0,
2284
+ margin: new go.Margin(3, 3, 5, 10),
2285
+ // maxSize: new go.Size(size.w - 20, NaN),
2286
+ stroke: '#444444',
2287
+ font: 'normal 10pt Arial',
2288
+ textAlign: 'center',
2289
+ alignment: go.Spot.Left,
2290
+ }), this.$(go.TextBlock, {
2291
+ row: 1,
2292
+ margin: new go.Margin(0, 3, 3, 10),
2293
+ editable: true,
2294
+ // maxSize: new go.Size(size.w - 20, 40),
2295
+ stroke: '#000D42',
2296
+ font: 'bold 10pt Arial',
2297
+ textAlign: 'center',
2298
+ wrap: go.TextBlock.None,
2299
+ overflow: go.TextBlock.OverflowEllipsis,
2300
+ }, new go.Binding('text', 'name').makeTwoWay(), {
2301
+ // define a tooltip for each node that displays the color as text
2302
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))), // end of Adornment
2303
+ })))));
2304
+ this.myDiagram.groupTemplateMap.set(title, node);
2305
+ }
2306
+ makeImageTemplate() {
2307
+ const node = this.$(go.Node, 'Spot', {
2308
+ zOrder: 1,
2309
+ }, new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Horizontal', {
2310
+ row: 0,
2311
+ alignment: go.Spot.Left,
2312
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Picture, AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH, {
2313
+ alignment: go.Spot.Center,
2314
+ // maxSize: new go.Size(500, 500),
2315
+ // imageStretch: go.GraphObject.Uniform,
2316
+ // margin: new go.Margin(130, 0, 0, 0),
2317
+ }, new go.Binding('margin', 'margin'), new go.Binding('width', 'width'), new go.Binding('height', 'height'), new go.Binding('source', '', (data) => {
2318
+ return data?.source
2319
+ ? data?.source
2320
+ : AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH;
2321
+ }))));
2322
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.IMAGE_TEMPLATE, node);
2323
+ }
2324
+ makeParamTable() {
2325
+ const self = this;
2326
+ const node = this.$(go.Part, 'Vertical',
2327
+ // this.$(go.Shape, { fill: '#E6F0F7', stroke: '#0063A9', strokeWidth: 3, geometryString: 'M 5 0 L 95 0 Q 100 0 100 5 L 100 95 Q 100 100 95 100 L 5 100 Q 0 100 0 95 L 0 5 Q 0 0 5 0' }),
2328
+ {
2329
+ zOrder: 2,
2330
+ // padding: new go.Margin(0, 0, 0, 200),
2331
+ }, new go.Binding('padding', 'padding'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('visible', '', (data) => {
2332
+ return typeof data?.visible === 'boolean' ? data?.visible : true;
2333
+ }),
2334
+ // Header
2335
+ this.$(go.Panel, 'Auto', {
2336
+ stretch: go.GraphObject.Fill,
2337
+ minSize: new go.Size(150, 27),
2338
+ margin: new go.Margin(0, 0, -6, 0),
2339
+ }, new go.Binding('visible', '', (data) => !!data?.title), this.$(go.Shape, 'RoundedRectangle', {
2340
+ parameter1: 5,
2341
+ }, new go.Binding('fill', '', (data) => {
2342
+ return data?.color;
2343
+ }), new go.Binding('stroke', '', (data) => {
2344
+ return data?.color;
2345
+ })), this.$(go.TextBlock, {
2346
+ stroke: 'white',
2347
+ margin: new go.Margin(0, 0, 0, 5),
2348
+ stretch: go.GraphObject.Fill,
2349
+ alignment: go.Spot.Left,
2350
+ verticalAlignment: go.Spot.Center,
2351
+ font: '14px sans-serif',
2352
+ }, new go.Binding('text', 'title'))), this.$(go.Shape, 'Rectangle', {
2353
+ height: 6,
2354
+ margin: new go.Margin(0, 0, -6, 0),
2355
+ stretch: go.GraphObject.Fill,
2356
+ }, new go.Binding('fill', '', (data) => {
2357
+ return data?.color;
2358
+ }), new go.Binding('stroke', '', (data) => {
2359
+ return data?.color;
2360
+ }), new go.Binding('visible', '', (data) => !!data?.title)), this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', { fill: '#E6F0F7', stroke: '#0063A9', strokeWidth: 4, parameter1: 5 }, new go.Binding('fill', 'bgColor'), new go.Binding('stroke', 'borderTable')), this.$(go.Panel, 'Table',
2361
+ // Set defaults for all rows and columns:
2362
+ {
2363
+ padding: 1.5,
2364
+ defaultRowSeparatorStroke: '#0062A9',
2365
+ defaultColumnSeparatorStroke: '#0062A9',
2366
+ defaultSeparatorPadding: new go.Margin(5, 2, 5, 2),
2367
+ }, new go.Binding('defaultRowSeparatorStroke', 'borderTable'), new go.Binding('defaultColumnSeparatorStroke', 'borderTable'),
2368
+ // this.$(
2369
+ // go.Panel,
2370
+ // 'TableRow',
2371
+ // { row: 0 },
2372
+ // this.$(go.TextBlock, 'row 1 col 1', { column: 0, margin: 2 }),
2373
+ // this.$(go.TextBlock, 'row 1 col 2', { column: 1, margin: 2 }),
2374
+ // ),
2375
+ // this.$(
2376
+ // go.Panel,
2377
+ // 'TableRow',
2378
+ // { row: 1 },
2379
+ // this.$(go.TextBlock, 'row 2 col 1', { column: 0, margin: 2 }),
2380
+ // this.$(go.TextBlock, 'row 2 col 2', { column: 1, margin: 2 }),
2381
+ // ),
2382
+ // new go.Binding('itemArray', 'dataTable'),
2383
+ new go.Binding('itemArray', '', function (data) {
2384
+ return data.dataTable.filter((x) => x?.visible !== false);
2385
+ }), {
2386
+ // itemTemplate: this.$(
2387
+ // go.Panel,
2388
+ // new go.Binding('row', 'indexRow'),
2389
+ // // new go.Binding('height', 'height'),
2390
+ // this.$(
2391
+ // go.Picture,
2392
+ // ARROW,
2393
+ // {
2394
+ // alignment: go.Spot.Center,
2395
+ // maxSize: new go.Size(20, 40),
2396
+ // // imageStretch: go.GraphObject.Uniform,
2397
+ // },
2398
+ // new go.Binding('source', '', (data, panel) => {
2399
+ // // panel.part?.data?.id
2400
+ // return data?.isCreated ? panel?.$p : ARROW_GRAY;
2401
+ // }),
2402
+ // ),
2403
+ // ),
2404
+ itemTemplate: this.$(go.Panel, 'TableRow', {
2405
+ cursor: 'pointer',
2406
+ click: (e, obj) => {
2407
+ if (obj.panel.part.data?.dataTable[obj.row]?.isEditable ===
2408
+ false) {
2409
+ return;
2410
+ }
2411
+ self.onClikParamOfTable.emit({
2412
+ ...obj.panel.part.data?.dataTable[obj.row],
2413
+ });
2414
+ },
2415
+ background: 'transparent',
2416
+ }, this.$(go.TextBlock, '', {
2417
+ column: 0,
2418
+ margin: 2,
2419
+ textAlign: 'left',
2420
+ alignment: go.Spot.Left,
2421
+ overflow: go.TextBlock.OverflowEllipsis,
2422
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
2423
+ margin: 4,
2424
+ }, new go.Binding('text', '', (data, panel) => {
2425
+ return data?.name;
2426
+ }))),
2427
+ }, new go.Binding('text', '', (data, panel) => {
2428
+ return data?.name;
2429
+ }), new go.Binding('maxSize', '', (data, panel) => {
2430
+ return data?.maxSizeNameParam;
2431
+ })), this.$(go.Panel, 'Table', {
2432
+ column: 1,
2433
+ margin: 2,
2434
+ padding: 0,
2435
+ defaultSeparatorPadding: new go.Margin(0, 0, 0, 0),
2436
+ stretch: go.GraphObject.Fill,
2437
+ }, new go.Binding('minSize', '', (data, panel) => {
2438
+ // return panel.part?.data?.minSizeValue;
2439
+ return new go.Size(panel.part?.data?.minSizeValue?.width, NaN);
2440
+ }), this.$(go.TextBlock, '', {
2441
+ column: 0,
2442
+ margin: 0,
2443
+ alignment: go.Spot.Left,
2444
+ overflow: go.TextBlock.OverflowEllipsis,
2445
+ cursor: 'pointer',
2446
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
2447
+ margin: 4,
2448
+ }, new go.Binding('text', '', (data, panel) => {
2449
+ return `${!!this._initialOptions.isReadOnly
2450
+ ? `${data?.tagName || ''} `
2451
+ : ''}${data?.value}`;
2452
+ }), new go.Binding('visible', '', (data) => {
2453
+ if (!!this._initialOptions.isReadOnly &&
2454
+ data?.tagName) {
2455
+ return true;
2456
+ }
2457
+ return !!data?.value;
2458
+ }))),
2459
+ }, new go.Binding('text', '', (data, panel) => {
2460
+ return data?.value;
2461
+ }), new go.Binding('stroke', '', (data) => {
2462
+ if (!this._initialOptions.isReadOnly) {
2463
+ return;
2464
+ }
2465
+ return data.color;
2466
+ }), new go.Binding('maxSize', '', (data) => {
2467
+ return new go.Size(data?.maxSizeValue || 190, 14);
2468
+ }), new go.Binding('font', '', (data) => {
2469
+ return data?.font;
2470
+ })), this.$(go.Picture, {
2471
+ alignment: go.Spot.Right,
2472
+ column: 1,
2473
+ margin: new go.Margin(0, 0, 0, 5),
2474
+ source: ICONS_BASE64['uf044'],
2475
+ cursor: 'pointer',
2476
+ visible: false,
2477
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
2478
+ margin: 4,
2479
+ }, new go.Binding('text', '', (data, panel) => {
2480
+ return data?.toolTipAction;
2481
+ })), new go.Binding('visible', '', (data) => !!data?.toolTipAction)),
2482
+ height: 14,
2483
+ width: 14,
2484
+ }, new go.Binding('visible', '', (data, panel) => {
2485
+ return (!data?.isReadOnly && !this._initialOptions.isReadOnly);
2486
+ }), new go.Binding('opacity', '', (data, panel) => {
2487
+ return data?.isEditable === false ? 0.6 : 1;
2488
+ })))),
2489
+ }
2490
+ // new go.Binding('text', 'name')
2491
+ )));
2492
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, node);
2493
+ }
2494
+ makeMassBalance() {
2495
+ const self = this;
2496
+ const node = this.$(go.Part, 'Auto', {}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Horizontal',
2497
+ // Set defaults for all rows and columns:
2498
+ {
2499
+ padding: 4,
2500
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
2501
+ margin: 4,
2502
+ maxSize: new go.Size(450, 30),
2503
+ }, new go.Binding('text', 'tooltip'))),
2504
+ visible: this._initialOptions.isReadOnly,
2505
+ }, this.$(go.TextBlock, '', {
2506
+ margin: new go.Margin(0, 5, 0, 0),
2507
+ text: 'Mass Balance:',
2508
+ }, new go.Binding('font', 'font')), this.$(go.TextBlock, '', {
2509
+ stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
2510
+ }, new go.Binding('font', 'font'), new go.Binding('stroke', 'colorValue'), new go.Binding('text', '', (data, panel) => {
2511
+ return data?.value;
2512
+ }))));
2513
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.MASS_BALANCE, node);
2514
+ }
2515
+ makeGroupROPlantTemplate(icon, title, size = { w: 80, h: 80 }) {
2516
+ let node = this.$(go.Group, 'Spot', {
2517
+ layout: this.$(go.Layout),
2518
+ }, {
2519
+ // minSize: new go.Size(NaN, 600),
2520
+ }, new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Table', this.$(go.Panel, 'Auto', {
2521
+ row: 0,
2522
+ padding: new go.Margin(0, 0, 0, 0),
2523
+ }, this.$(go.Shape, 'RoundedRectangle', {
2524
+ name: 'SHAPE_KEY',
2525
+ fill: '#FCFCFD',
2526
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
2527
+ strokeWidth: 2,
2528
+ // strokeDashArray: [5, 5],
2529
+ }), this.$(go.Placeholder, { padding: new go.Margin(15, 0, 0, 0) })), this.$(go.Picture, RO_LINE_DIRTY, {
2530
+ row: 1,
2531
+ }, new go.Binding('visible', '', (x) => {
2532
+ return x?.isViewGeneral && x?.hasOutFlow ? true : false;
2533
+ }))), this.$(go.Panel, 'Table', {
2534
+ width: 0,
2535
+ height: 0,
2536
+ alignment: new go.Spot(0, 0, 0, 183),
2537
+ alignmentFocus: go.Spot.Left,
2538
+ // stretch: go.GraphObject.Vertical,
2539
+ portId: 'Inflow',
2540
+ cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
2541
+ // alignmentFocus: new go.Spot(0, 0, 0, 150),
2542
+ fromSpot: go.Spot.Left,
2543
+ toSpot: go.Spot.Left,
2544
+ fromLinkable: true,
2545
+ toLinkable: true,
2546
+ }), this.$(go.Panel, 'Table', {
2547
+ width: 0,
2548
+ height: 0,
2549
+ alignment: new go.Spot(0, 0, 970, 315),
2550
+ alignmentFocus: go.Spot.Bottom,
2551
+ portId: 'OutFlow_Clean',
2552
+ cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
2553
+ fromSpot: go.Spot.Bottom,
2554
+ toSpot: go.Spot.Bottom,
2555
+ fromLinkable: true,
2556
+ toLinkable: true,
2557
+ }), this.$(go.Panel, 'Table', {
2558
+ width: 0,
2559
+ height: 0,
2560
+ // alignment: new go.Spot(0, 0, 480, 525),
2561
+ // alignment: new go.Spot(0, 0, 475, 552),
2562
+ alignmentFocus: go.Spot.Bottom,
2563
+ portId: 'OutFlow_Dirty',
2564
+ cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
2565
+ fromSpot: go.Spot.Bottom,
2566
+ toSpot: go.Spot.Bottom,
2567
+ fromLinkable: true,
2568
+ toLinkable: true,
2569
+ }, new go.Binding('alignment', '', (x) => {
2570
+ return x?.isViewGeneral && x?.hasOutFlow
2571
+ ? new go.Spot(0, 0, 475, 552)
2572
+ : new go.Spot(0, 0, 480, 525);
2573
+ })));
2574
+ this.myDiagram.groupTemplateMap.set(title, node);
2575
+ }
2576
+ makeGroupBoilerTemplate(icon, title, size = { w: 80, h: 80 }) {
2577
+ let node = this.$(go.Group, 'Spot', {
2578
+ selectable: false,
2579
+ }, {
2580
+ // minSize: new go.Size(NaN, 600),
2581
+ }, new go.Binding('selectable', 'selectable'), this.$(go.Panel, 'Auto', {
2582
+ padding: new go.Margin(0, 0, 0, 0),
2583
+ }, this.$(go.Shape, 'RoundedRectangle', {
2584
+ name: 'SHAPE_KEY',
2585
+ fill: '#FCFCFD',
2586
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
2587
+ strokeWidth: 2,
2588
+ }), this.$(go.Placeholder, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Spot', {
2589
+ width: 0,
2590
+ height: 0,
2591
+ alignment: new go.Spot(0, 0.5, 0, 112),
2592
+ alignmentFocus: go.Spot.Left,
2593
+ portId: 'Inflow',
2594
+ cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
2595
+ fromSpot: go.Spot.Left,
2596
+ toSpot: go.Spot.Left,
2597
+ fromLinkable: true,
2598
+ toLinkable: true,
2599
+ }), this.$(go.Panel, 'Spot', {
2600
+ alignmentFocus: go.Spot.Top,
2601
+ alignment: new go.Spot(1, 1, -215, 0),
2602
+ }, this.$(go.Picture, OUTFLOW_LINE_DIRTY, {
2603
+ width: 10,
2604
+ height: 20,
2605
+ }, new go.Binding('visible', '', (x) => {
2606
+ return x?.isViewGeneral && x?.hasOutFlow ? true : false;
2607
+ })), this.$(go.Panel, {
2608
+ alignment: go.Spot.BottomLeft,
2609
+ alignmentFocus: go.Spot.Top,
2610
+ portId: 'OutFlow',
2611
+ cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
2612
+ fromSpot: go.Spot.Bottom,
2613
+ fromLinkable: true,
2614
+ toLinkable: true,
2615
+ })));
2616
+ this.myDiagram.groupTemplateMap.set(title, node);
2617
+ }
2618
+ makeGroupCoolingTowerTemplate(icon, title, size = { w: 80, h: 80 }) {
2619
+ let node = this.$(go.Group, 'Spot', {
2620
+ selectable: false,
2621
+ layout: this.$(go.Layout),
2622
+ padding: new go.Margin(0, 30, 0, 0),
2623
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
2624
+ row: 0,
2625
+ padding: new go.Margin(0, 0, 0, 0),
2626
+ }, this.$(go.Shape, 'RoundedRectangle', {
2627
+ name: 'SHAPE_KEY',
2628
+ fill: '#FCFCFD',
2629
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
2630
+ strokeWidth: 2,
2631
+ strokeDashArray: [5, 5],
2632
+ }), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Table', {
2633
+ width: 0,
2634
+ height: 0,
2635
+ alignment: new go.Spot(0, 0, 0, 533),
2636
+ alignmentFocus: go.Spot.Bottom,
2637
+ portId: 'Inflow',
2638
+ cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
2639
+ fromSpot: go.Spot.Left,
2640
+ toSpot: go.Spot.Left,
2641
+ fromLinkable: true,
2642
+ toLinkable: true,
2643
+ }), this.$(go.Panel, 'Spot', {
2644
+ alignmentFocus: go.Spot.Top,
2645
+ alignment: new go.Spot(0.5, 1, 23, 0),
2646
+ }, this.$(go.Picture, OUTFLOW_LINE_DIRTY, {
2647
+ width: 10,
2648
+ height: 20,
2649
+ }, new go.Binding('visible', '', (x) => {
2650
+ return x?.isViewGeneral && x?.hasOutFlow ? true : false;
2651
+ })), this.$(go.Panel, {
2652
+ alignment: new go.Spot(0, 0, 0, 18),
2653
+ alignmentFocus: go.Spot.Top,
2654
+ portId: 'OutFlow',
2655
+ cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
2656
+ fromSpot: go.Spot.Center,
2657
+ toSpot: go.Spot.Right,
2658
+ fromLinkable: true,
2659
+ toLinkable: true,
2660
+ })));
2661
+ this.myDiagram.groupTemplateMap.set(title, node);
2662
+ }
2663
+ groupPlantCellTemplate(icon, title, size = { w: 80, h: 80 }) {
2664
+ const self = this;
2665
+ let node = this.$(go.Group, 'Spot', {
2666
+ // layout: this.$(go.Layout),
2667
+ // layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
2668
+ // isSubGraphExpanded: false,
2669
+ // background: 'transparent',
2670
+ // layerName: 'Foreground',
2671
+ // wasSubGraphExpanded: false,
2672
+ movable: false,
2673
+ selectable: false,
2674
+ avoidable: false,
2675
+ // resizable: true,
2676
+ // resizable: false,
2677
+ // width: data?.ob?.minWith ?? 50,
2678
+ // height: 500,
2679
+ // isSubGraphExpanded: true, // ensure the group is always expanded
2680
+ // computesBoundsAfterDrag: true,
2681
+ // handlesDragDropForMembers: true, // handle drag-and-drop events for its member nodes
2682
+ // maxSize: new go.Size(500, 500),
2683
+ // minSize: new go.Size(500, 500),
2684
+ // isSubGraphExpanded: true,
2685
+ // layerName: DIAGRAM.LAYERS.BACKGROUND,
2686
+ // mouseDrop: function (e, grp) {
2687
+ // // disallow dropping anything onto an Adornment
2688
+ // if (grp instanceof go.Adornment) return;
2689
+ // },
2690
+ // dragComputation: function (node, pt, gridPt) {
2691
+ // let grp = node.containingGroup;
2692
+ // if (grp !== null) {
2693
+ // let rect = grp.actualBounds;
2694
+ // pt.x = Math.max(rect.left, Math.min(pt.x, rect.right));
2695
+ // pt.y = Math.max(rect.top, Math.min(pt.y, rect.bottom));
2696
+ // }
2697
+ // return pt;
2698
+ // },
2699
+ // dropComputation: function (node, pt, gridPt) {
2700
+ // let grp = node.containingGroup;
2701
+ // if (grp !== null) {
2702
+ // let rect = grp.actualBounds;
2703
+ // pt.x = Math.max(rect.left, Math.min(pt.x, rect.right));
2704
+ // pt.y = Math.max(rect.top, Math.min(pt.y, rect.bottom));
2705
+ // }
2706
+ // return pt;
2707
+ // },
2708
+ // dragComputation: function (part, pt, gridpt) {
2709
+ // // Get the current group's actual bounds
2710
+ // const grp = part.containingGroup;
2711
+ // if (grp) {
2712
+ // const bnds = grp.actualBounds;
2713
+ // const loc = part.location;
2714
+ // // See if the part's new location would be out of bounds
2715
+ // const newx = Math.max(bnds.x, Math.min(pt.x, bnds.right - part.actualBounds.width / 2));
2716
+ // const newy = Math.max(bnds.y, Math.min(pt.y, bnds.bottom - part.actualBounds.height / 2));
2717
+ // // Modify the result point to keep the Part inside the Group
2718
+ // return new go.Point(newx, newy);
2719
+ // }
2720
+ // return pt;
2721
+ // },
2722
+ click: (e, obj) => {
2723
+ self.myDiagram?.clearSelection();
2724
+ },
2725
+ }, {
2726
+ // mouseDragEnter: (e, obj) => {
2727
+ // },
2728
+ // mouseDrop: (e, obj) => {
2729
+ // },
2730
+ // mouseEnter: (e, obj) => {
2731
+ // const node = obj.part;
2732
+ // self.onHoverInfoButton.emit({
2733
+ // left: e?.['Wr']?.x + 8,
2734
+ // top: e?.['Wr']?.y,
2735
+ // node: node,
2736
+ // });
2737
+ // // let shape = (node as any)?.findObject('SHAPE_KEY');
2738
+ // // if (shape) {
2739
+ // // shape.stroke = 'blue';
2740
+ // // }
2741
+ // },
2742
+ // mouseLeave: (e, obj) => {
2743
+ // self.onHoverInfoButton.emit(null);
2744
+ // // let shape = (node as any)?.findObject('SHAPE_KEY');
2745
+ // // if (shape) {
2746
+ // // shape.stroke = AtoGojsEditorModel.ENUM_COLORS.WHITE;
2747
+ // // }
2748
+ // },
2749
+ }, new go.Binding('layout', '', function (data, node) {
2750
+ // return data?.layoutValue === AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
2751
+ // ? self.$(go.LayeredDigraphLayout, { direction: 0 })
2752
+ // : node?.layout;
2753
+ if (data?.layoutValue !== data?.layoutValueClone) {
2754
+ data.layoutValueClone = data?.layoutValue;
2755
+ return data?.layoutValue ===
2756
+ AtoGojsEditorModel.ENUM_LAYOUT_EDITOR.AUTO
2757
+ ? self.$(go.LayeredDigraphLayout, { direction: 0 })
2758
+ : self.$(go.Layout);
2759
+ }
2760
+ else {
2761
+ return node?.layout;
2762
+ }
2763
+ // : self.$(go.Layout);
2764
+ // return data?.layout;
2765
+ // return data?.previousLayout || self.$(go.LayeredDigraphLayout, { direction: 0 });
2766
+ // return self.$(go.LayeredDigraphLayout, { direction: 0 });
2767
+ }),
2768
+ // new go.Binding('grid', 'grid'),
2769
+ new go.Binding('selectable', 'selectable'),
2770
+ // new go.Binding('width', '', function (data) {
2771
+ // return data?.ob?.minWith ?? 50;
2772
+ // }),
2773
+ new go.Binding('minSize', '', function (data) {
2774
+ return new go.Size(data?.ob?.minWith ?? 50, data?.ob?.minHeight ?? 50); // Customize minSize based on data
2775
+ }).ofObject(),
2776
+ // new go.Binding('width', '', function (data) {
2777
+ // return data?.ob?.minWith ?? 50; // Customize minSize based on data
2778
+ // }).ofObject(),
2779
+ // new go.Binding('height', '', function (data) {
2780
+ // return data?.ob?.minHeight ?? 50; // Customize minSize based on data
2781
+ // }).ofObject(),
2782
+ new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
2783
+ // new go.Binding('isSubGraphExpanded', 'expanded').makeTwoWay(),
2784
+ this.$(go.Panel, 'Auto', {
2785
+ padding: new go.Margin(0, 0, 0, 0),
2786
+ // margin:new go.Margin(0, 50, 0, 50),
2787
+ }, this.$(go.Shape, 'RoundedRectangle', {
2788
+ name: 'SHAPE_KEY',
2789
+ fill: 'transparent',
2790
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
2791
+ strokeWidth: 2,
2792
+ strokeDashArray: [5, 5],
2793
+ }), this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })));
2794
+ // node.memberValidation = function (node, group) {
2795
+ // if (!group) return true; // allow ungrouping
2796
+ // const groupBounds = group.actualBounds;
2797
+ // const nodeBounds = node.actualBounds;
2798
+ // return groupBounds.containsRect(nodeBounds);
2799
+ // };
2800
+ this.myDiagram.groupTemplateMap.set(title, node);
2801
+ }
2802
+ groupPCInputOrOutTemplate(icon, title, padding) {
2803
+ // let node = this.$(
2804
+ // go.Group,
2805
+ // 'Spot',
2806
+ // {
2807
+ // layout: this.$(go.Layout),
2808
+ // movable: false,
2809
+ // selectable: false,
2810
+ // },
2811
+ // // {
2812
+ // // // minSize: new go.Size(500, 500),
2813
+ // // movable: false,
2814
+ // // ariaReadOnly: true,
2815
+ // // },
2816
+ // this.$(
2817
+ // go.Panel,
2818
+ // 'Auto',
2819
+ // {
2820
+ // padding: new go.Margin(0, 0, 0, 0),
2821
+ // },
2822
+ // this.$(go.Shape, 'RoundedRectangle', {
2823
+ // fill: 'transparent',
2824
+ // // stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
2825
+ // stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
2826
+ // strokeWidth: 2,
2827
+ // strokeDashArray: [5, 5],
2828
+ // }),
2829
+ // this.$(go.Placeholder, {
2830
+ // padding: new go.Margin(0, 0, 0, 0),
2831
+ // }),
2832
+ // ),
2833
+ // );
2834
+ let node = this.$(go.Group, 'Spot', {
2835
+ layout: this.$(go.LayeredDigraphLayout, { direction: 0 }),
2836
+ movable: false,
2837
+ selectable: false,
2838
+ avoidable: false,
2839
+ // isSubGraphExpanded: false,
2840
+ // isSubGraphExpanded: false,
2841
+ // layerName: 'Foreground',
2842
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
2843
+ padding: padding ?? new go.Margin(0, 0, 0, 0),
2844
+ }, this.$(go.Shape, 'RoundedRectangle', {
2845
+ fill: 'transparent',
2846
+ stroke: AtoGojsEditorModel.ENUM_COLORS.WHITE,
2847
+ // stroke: AtoGojsEditorModel.ENUM_COLORS.ALIZARIN,
2848
+ strokeWidth: 2,
2849
+ // strokeDashArray: [5, 5],
2850
+ }), this.$(go.Placeholder, {
2851
+ padding: new go.Margin(0, 0, 0, 0),
2852
+ })));
2853
+ this.myDiagram.groupTemplateMap.set(title, node);
2854
+ }
2855
+ makeGroupZoneTemplate(size = {
2856
+ w: AtoGojsEditorModel.GRID_SIZE * 14,
2857
+ h: AtoGojsEditorModel.GRID_SIZE * 5,
2858
+ }) {
2859
+ const self = this;
2860
+ let node = this.$(go.Group, 'Vertical', {
2861
+ layout: this.$(go.GridLayout, {
2862
+ wrappingColumn: 1,
2863
+ spacing: new go.Size(0, 0),
2864
+ }),
2865
+ }, {
2866
+ locationSpot: go.Spot.Center,
2867
+ mouseOver: function (e, obj) {
2868
+ // self.showPoint(obj?.part?.location);
2869
+ },
2870
+ click: (e, obj) => {
2871
+ if (obj?.data?.onSelected) {
2872
+ obj?.data?.onSelected(obj?.data);
2873
+ }
2874
+ },
2875
+ selectionChanged: (e) => {
2876
+ if (!e.isSelected && e?.data?.onSelected) {
2877
+ e?.data?.onSelected(null);
2878
+ }
2879
+ },
2880
+ selectionAdornmentTemplate: this._initialOptions.isReadOnly
2881
+ ? null
2882
+ : this.$(go.Adornment, 'Spot', {
2883
+ shadowVisible: true,
2884
+ shadowBlur: 6,
2885
+ shadowOffset: new go.Point(0, 2),
2886
+ shadowColor: '#00000029',
2887
+ }, this.$(go.Panel, 'Auto', this.$(go.Shape, {
2888
+ fill: null,
2889
+ stroke: 'dodgerblue',
2890
+ strokeWidth: 4,
2891
+ }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
2892
+ alignment: go.Spot.TopRight,
2893
+ alignmentFocus: go.Spot.Bottom,
2894
+ background: 'white',
2895
+ }, this.$('Button', {
2896
+ _dragData: {
2897
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
2898
+ name: 0,
2899
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
2900
+ },
2901
+ click: self.addItemOnGroupZone,
2902
+ 'ButtonBorder.strokeWidth': 0,
2903
+ 'ButtonBorder.fill': 'white',
2904
+ }, this.$(go.TextBlock, {
2905
+ margin: 4,
2906
+ text: '\uf055',
2907
+ font: '20px "Font Awesome 6 Pro"',
2908
+ cursor: 'pointer',
2909
+ stroke: '#2c2c2c',
2910
+ })),
2911
+ // more
2912
+ this.generateActionGroup([
2913
+ AtoDefaultGojsEditor.ENUM_ACTIONS.RENAME,
2914
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS,
2915
+ AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
2916
+ AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
2917
+ ])
2918
+ // this.$(
2919
+ // // Edit Text
2920
+ // 'Button',
2921
+ // {
2922
+ // click: self.editTextGroupZone,
2923
+ // 'ButtonBorder.strokeWidth': 0,
2924
+ // 'ButtonBorder.fill': 'white',
2925
+ // },
2926
+ // this.$(go.TextBlock, {
2927
+ // margin: 4,
2928
+ // text: '\ue1bf',
2929
+ // font: '20px "Font Awesome 6 Pro"',
2930
+ // cursor: 'pointer',
2931
+ // stroke: '#2c2c2c',
2932
+ // }),
2933
+ // ),
2934
+ // this.$(
2935
+ // // Open Detail
2936
+ // 'Button',
2937
+ // {
2938
+ // click: (e, obj: any) => {
2939
+ // const node = obj.part;
2940
+ // self.onOpenDetail.emit({
2941
+ // node,
2942
+ // });
2943
+ // },
2944
+ // 'ButtonBorder.strokeWidth': 0,
2945
+ // 'ButtonBorder.fill': 'white',
2946
+ // },
2947
+ //
2948
+ // this.$(go.TextBlock, {
2949
+ // margin: 4,
2950
+ // text: '\ue49a',
2951
+ // font: '20px "Font Awesome 6 Pro"',
2952
+ // cursor: 'pointer',
2953
+ // }),
2954
+ // ),
2955
+ // !this._initialOptions.isReadOnly
2956
+ // ? this.$(
2957
+ // 'Button',
2958
+ // {
2959
+ // actionMove: self.dragNewNode, // defined below, to support dragging from the button
2960
+ // _dragData: {
2961
+ // type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE,
2962
+ // name: 0,
2963
+ // color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
2964
+ // },
2965
+ // click: self.clickNewNode, // defined below, to support a click on the button
2966
+ // 'ButtonBorder.strokeWidth': 0,
2967
+ // 'ButtonBorder.fill': 'white',
2968
+ // },
2969
+ // this.$(go.TextBlock, {
2970
+ // margin: 4,
2971
+ // text: '\ue157',
2972
+ // font: '20px "Font Awesome 6 Pro"',
2973
+ // cursor: 'pointer',
2974
+ // stroke: '#2c2c2c',
2975
+ // }),
2976
+ // )
2977
+ // : {},
2978
+ // this.$(
2979
+ // 'Button',
2980
+ // {
2981
+ // click: self.deleteNode,
2982
+ // 'ButtonBorder.strokeWidth': 0,
2983
+ // 'ButtonBorder.fill': 'white',
2984
+ // },
2985
+ // this.$(go.TextBlock, {
2986
+ // margin: 4,
2987
+ // text: '\uf2ed',
2988
+ // font: '20px "Font Awesome 6 Pro"',
2989
+ // cursor: 'pointer',
2990
+ // }),
2991
+ // ),
2992
+ )),
2993
+ }, this.$(go.Panel, 'Auto', this.$(go.Shape, 'RoundedRectangle', {
2994
+ fill: 'transparent',
2995
+ stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
2996
+ strokeWidth: 2,
2997
+ strokeDashArray: [5, 5],
2998
+ maxSize: new go.Size(size.w, NaN),
2999
+ }), this.$(go.Panel, 'Table', {
3000
+ alignment: go.Spot.Top,
3001
+ padding: new go.Margin(17, 10, 16, 10),
3002
+ }, this.$(go.TextBlock, {
3003
+ row: 0,
3004
+ margin: new go.Margin(5, 0, 10, 0),
3005
+ editable: true,
3006
+ desiredSize: new go.Size(size.w - 20, 25),
3007
+ stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
3008
+ font: 'bold 16px Arial',
3009
+ textAlign: 'center',
3010
+ wrap: go.TextBlock.None,
3011
+ overflow: go.TextBlock.OverflowEllipsis,
3012
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
3013
+ margin: 4,
3014
+ }, new go.Binding('text', 'name').makeTwoWay())),
3015
+ }, new go.Binding('text', 'name').makeTwoWay()), this.$(go.Placeholder, 'Vertical', {
3016
+ row: 1,
3017
+ })), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify));
3018
+ this.myDiagram.groupTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE, node);
3019
+ }
3020
+ makeZoneItemTemplate(size = {
3021
+ w: AtoGojsEditorModel.GRID_SIZE * 12,
3022
+ h: AtoGojsEditorModel.GRID_SIZE * 2,
3023
+ }) {
3024
+ const self = this;
3025
+ const node = this.$(go.Node, 'Auto',
3026
+ // {
3027
+ // mouseHover: (e, obj) => {
3028
+ // const node = obj.part;
3029
+ // if ((obj as any).part?.ob?.value === VALUE_NA) {
3030
+ // self.onHoverInfoButton.emit({
3031
+ // left: e?.['Wr']?.x + 8,
3032
+ // top: e?.['Wr']?.y,
3033
+ // node: node
3034
+ // });
3035
+ // }
3036
+ // },
3037
+ // mouseLeave: (e, obj) => {
3038
+ // if ((obj as any).part?.ob?.value === VALUE_NA) {
3039
+ // self.onHoverInfoButton.emit(null);
3040
+ // }
3041
+ // },
3042
+ // click: (e, obj: any) => {
3043
+ // const node = obj.part;
3044
+ // this.isShowNodeInfo ? self.onClickInfoButton.emit({
3045
+ // left: e?.['Wr']?.x,
3046
+ // top: e?.['Wr']?.y,
3047
+ // node: node
3048
+ // }) : null;
3049
+ // },
3050
+ // },
3051
+ // new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify),
3052
+ {
3053
+ movable: false,
3054
+ }, this.$(go.Panel, 'Auto', {
3055
+ width: size.w,
3056
+ height: size.h,
3057
+ }, this.$(go.Shape, 'Rectangle', {
3058
+ fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
3059
+ stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
3060
+ }), this.$(go.Panel, 'Vertical', this.$(go.TextBlock, {
3061
+ editable: true,
3062
+ row: 2,
3063
+ margin: new go.Margin(10, 0, 5, 0),
3064
+ font: 'bold 12px Arial',
3065
+ textAlign: 'center',
3066
+ stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
3067
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
3068
+ margin: 4,
3069
+ }, new go.Binding('text', 'name').makeTwoWay())),
3070
+ }, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('visible', 'name', (x) => !!x)), this.$(go.Panel, 'Horizontal', {
3071
+ margin: new go.Margin(0, 10, 0, 10),
3072
+ }, this.$(go.TextBlock, {
3073
+ margin: new go.Margin(0, 5, 10, 0),
3074
+ textAlign: 'center',
3075
+ font: '12px sans-serif',
3076
+ stroke: AtoGojsEditorModel.ENUM_COLORS.NIGHT_RIDER,
3077
+ wrap: go.TextBlock.WrapFit,
3078
+ editable: true,
3079
+ isMultiline: false,
3080
+ maxSize: new go.Size(size.w - 100, 15),
3081
+ overflow: go.TextBlock.OverflowEllipsis,
3082
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
3083
+ margin: 4,
3084
+ }, new go.Binding('text', 'nameItem').makeTwoWay())),
3085
+ }, new go.Binding('text', 'nameItem').makeTwoWay(), new go.Binding('visible', 'nameItem', (x) => !!x)), this.$(go.TextBlock, {
3086
+ margin: new go.Margin(0, 5, 10, 0),
3087
+ textAlign: 'center',
3088
+ font: '12px sans-serif',
3089
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
3090
+ wrap: go.TextBlock.WrapFit,
3091
+ text: '< ',
3092
+ }, new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')), this.$(go.TextBlock, {
3093
+ margin: new go.Margin(0, 5, 10, 0),
3094
+ textAlign: 'center',
3095
+ font: '12px sans-serif',
3096
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
3097
+ wrap: go.TextBlock.WrapFit,
3098
+ }, new go.Binding('text', 'data', (x) => {
3099
+ if (typeof x?.quantity !== 'number') {
3100
+ return '';
3101
+ }
3102
+ const formatted = UtilsService.convertPrefixesData({
3103
+ value: x?.quantity,
3104
+ unit: x?.unit,
3105
+ });
3106
+ return (formatted.shortenedNumber +
3107
+ ' ' +
3108
+ formatted.unitPrefixes +
3109
+ x?.unit ?? '');
3110
+ }), new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number')), this.$(go.TextBlock, {
3111
+ margin: new go.Margin(0, 5, 10, 0),
3112
+ textAlign: 'center',
3113
+ font: '12px sans-serif',
3114
+ stroke: AtoGojsEditorModel.ENUM_COLORS.CERULEAN,
3115
+ wrap: go.TextBlock.WrapFit,
3116
+ text: ' >',
3117
+ }, new go.Binding('visible', 'data', (x) => typeof x?.quantity === 'number'))))));
3118
+ this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.ZONE_ENERGY_ITEM, node);
3119
+ }
3120
+ makeSpecialTemplate(icon, title, size = {
3121
+ w: AtoGojsEditorModel.GRID_SIZE * 5,
3122
+ h: AtoGojsEditorModel.GRID_SIZE * 5,
3123
+ }) {
3124
+ let node = null;
3125
+ switch (title) {
3126
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_PROCESS:
3127
+ node = this.$(go.Node, 'Spot',
3128
+ // {
3129
+ // fromSpot: go.Spot.Right, // coming out from middle-right
3130
+ // toSpot: go.Spot.Left
3131
+ // },
3132
+ {
3133
+ click: (e, obj) => {
3134
+ if (obj?.data?.onSelected) {
3135
+ obj?.data?.onSelected(obj?.data);
3136
+ }
3137
+ },
3138
+ selectionChanged: (e) => {
3139
+ if (!e.isSelected && e?.data?.onSelected) {
3140
+ e?.data?.onSelected(null);
3141
+ }
3142
+ },
3143
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
3144
+ fill: 'white',
3145
+ stroke: '#2D3B77',
3146
+ strokeWidth: 2,
3147
+ // strokeDashArray: [5, 5],
3148
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS, {
3149
+ row: 0,
3150
+ margin: new go.Margin(3, 3, 10, 3),
3151
+ maxSize: new go.Size(size.w - 20, NaN),
3152
+ stroke: '#444444',
3153
+ font: 'normal 10pt Arial',
3154
+ textAlign: 'center',
3155
+ }), this.$(go.Picture, icon, {
3156
+ row: 1,
3157
+ margin: new go.Margin(0, 0, 10, 0),
3158
+ alignment: go.Spot.Center,
3159
+ maxSize: new go.Size(60, 60),
3160
+ imageStretch: go.GraphObject.Uniform,
3161
+ }))), this.$(go.Panel, 'Vertical', {
3162
+ alignment: go.Spot.Left,
3163
+ alignmentFocus: new go.Spot(0, 0.5, 8, 0),
3164
+ }), this.$(go.Panel, 'Vertical', {
3165
+ alignment: go.Spot.Right,
3166
+ alignmentFocus: new go.Spot(1, 0.5, -8, 0),
3167
+ }),
3168
+ // four named ports, one on each side:
3169
+ this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
3170
+ break;
3171
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORAGE:
3172
+ node = this.$(go.Node, 'Spot', {
3173
+ click: (e, obj) => {
3174
+ if (obj?.data?.onSelected) {
3175
+ obj?.data?.onSelected(obj?.data);
3176
+ }
3177
+ },
3178
+ selectionChanged: (e) => {
3179
+ if (!e.isSelected && e?.data?.onSelected) {
3180
+ e?.data?.onSelected(null);
3181
+ }
3182
+ },
3183
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
3184
+ fill: 'white',
3185
+ stroke: '#2D3B77',
3186
+ strokeWidth: 2,
3187
+ // strokeDashArray: [5, 5],
3188
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE, {
3189
+ row: 0,
3190
+ margin: new go.Margin(3, 3, 10, 3),
3191
+ maxSize: new go.Size(size.w - 20, NaN),
3192
+ stroke: '#444444',
3193
+ font: 'normal 10pt Arial',
3194
+ textAlign: 'center',
3195
+ }), this.$(go.Picture, icon, {
3196
+ row: 1,
3197
+ margin: new go.Margin(0, 0, 10, 0),
3198
+ alignment: go.Spot.Center,
3199
+ minSize: new go.Size(40, 40),
3200
+ maxSize: new go.Size(50, 50),
3201
+ imageStretch: go.GraphObject.Uniform,
3202
+ }, new go.Binding('source', 'icon').makeTwoWay()))), this.$(go.Panel, 'Vertical', {
3203
+ alignment: go.Spot.Left,
3204
+ alignmentFocus: new go.Spot(0, 0.5, 8, 0),
3205
+ }), this.$(go.Panel, 'Vertical', {
3206
+ alignment: go.Spot.Right,
3207
+ alignmentFocus: new go.Spot(1, 0.5, -8, 0),
3208
+ }),
3209
+ // four named ports, one on each side:
3210
+ this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, true, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, true), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
3211
+ break;
3212
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_STORE:
3213
+ node = this.$(go.Node, 'Spot', {
3214
+ click: (e, obj) => {
3215
+ if (obj?.data?.onSelected) {
3216
+ obj?.data?.onSelected(obj?.data);
3217
+ }
3218
+ },
3219
+ selectionChanged: (e) => {
3220
+ if (!e.isSelected && e?.data?.onSelected) {
3221
+ e?.data?.onSelected(null);
3222
+ }
3223
+ },
3224
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
3225
+ fill: 'white',
3226
+ stroke: '#2D3B77',
3227
+ strokeWidth: 2,
3228
+ // strokeDashArray: [5, 5],
3229
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, 'Store', {
3230
+ row: 0,
3231
+ margin: new go.Margin(3, 3, 10, 3),
3232
+ maxSize: new go.Size(size.w - 20, NaN),
3233
+ stroke: '#444444',
3234
+ font: 'normal 10pt Arial',
3235
+ textAlign: 'center',
3236
+ }), this.$(go.Picture, icon, {
3237
+ row: 1,
3238
+ margin: new go.Margin(0, 0, 10, 0),
3239
+ alignment: go.Spot.Center,
3240
+ maxSize: new go.Size(60, 60),
3241
+ imageStretch: go.GraphObject.Uniform,
3242
+ }))));
3243
+ break;
3244
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_DISCHARGE:
3245
+ node = this.$(go.Node, 'Spot', {
3246
+ click: (e, obj) => {
3247
+ if (obj?.data?.onSelected) {
3248
+ obj?.data?.onSelected(obj?.data);
3249
+ }
3250
+ },
3251
+ selectionChanged: (e) => {
3252
+ if (!e.isSelected && e?.data?.onSelected) {
3253
+ e?.data?.onSelected(null);
3254
+ }
3255
+ },
3256
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
3257
+ fill: 'white',
3258
+ stroke: '#2D3B77',
3259
+ strokeWidth: 2,
3260
+ // strokeDashArray: [5, 5],
3261
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, 'Discharge', {
3262
+ row: 0,
3263
+ margin: new go.Margin(3, 3, 10, 3),
3264
+ maxSize: new go.Size(size.w - 20, NaN),
3265
+ stroke: '#444444',
3266
+ font: 'normal 10pt Arial',
3267
+ textAlign: 'center',
3268
+ }), this.$(go.Picture, icon, {
3269
+ row: 1,
3270
+ margin: new go.Margin(0, 0, 10, 0),
3271
+ alignment: go.Spot.Center,
3272
+ maxSize: new go.Size(60, 60),
3273
+ imageStretch: go.GraphObject.Uniform,
3274
+ }))));
3275
+ break;
3276
+ case AtoGojsEditorModel.ENUM_TEMPLATES.SPECIAL_OTHER:
3277
+ node = this.$(go.Node, 'Spot', {
3278
+ click: (e, obj) => {
3279
+ if (obj?.data?.onSelected) {
3280
+ obj?.data?.onSelected(obj?.data);
3281
+ }
3282
+ },
3283
+ selectionChanged: (e) => {
3284
+ if (!e.isSelected && e?.data?.onSelected) {
3285
+ e?.data?.onSelected(null);
3286
+ }
3287
+ },
3288
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h }, this.$(go.Shape, 'Circle', {
3289
+ fill: 'white',
3290
+ stroke: '#2D3B77',
3291
+ strokeWidth: 2,
3292
+ // strokeDashArray: [5, 5],
3293
+ }), this.$(go.Panel, 'Table', this.$(go.TextBlock, 'Other', {
3294
+ row: 0,
3295
+ margin: new go.Margin(3, 3, 10, 3),
3296
+ maxSize: new go.Size(size.w - 20, NaN),
3297
+ stroke: '#444444',
3298
+ font: 'normal 10pt Arial',
3299
+ textAlign: 'center',
3300
+ }), this.$(go.Picture, icon, {
3301
+ row: 1,
3302
+ margin: new go.Margin(0, 0, 10, 0),
3303
+ alignment: go.Spot.Center,
3304
+ maxSize: new go.Size(60, 60),
3305
+ imageStretch: go.GraphObject.Uniform,
3306
+ }))));
3307
+ break;
3308
+ }
3309
+ if (node) {
3310
+ this.myDiagram.nodeTemplateMap.set(title, node);
3311
+ }
3312
+ }
3313
+ startAnimation() {
3314
+ const diagram = this.myDiagram;
3315
+ // setTimeout(() => {
3316
+ // diagram.links.each((link) => {
3317
+ // });
3318
+ // });
3319
+ try {
3320
+ this.animationInterval = setInterval(() => {
3321
+ const oldskips = diagram.skipsUndoManager;
3322
+ diagram.skipsUndoManager = true;
3323
+ diagram.links.each((link) => {
3324
+ const shape = link.findObject('PIPE');
3325
+ if (!!shape) {
3326
+ // const off = shape?.strokeDashOffset - 3;
3327
+ const off = shape?.strokeDashOffset - 9;
3328
+ // animate (move) the stroke dash
3329
+ shape.strokeDashOffset = off <= 0 ? 60 : off;
3330
+ }
3331
+ });
3332
+ diagram.skipsUndoManager = oldskips;
3333
+ }, 600);
3334
+ // 60
3335
+ }
3336
+ catch (e) { }
3337
+ }
3338
+ stopAnimation() {
3339
+ if (this.animationInterval) {
3340
+ clearInterval(this.animationInterval);
3341
+ }
3342
+ }
3343
+ toDataURL(url, callback) {
3344
+ const xhr = new XMLHttpRequest();
3345
+ xhr.onload = function () {
3346
+ const reader = new FileReader();
3347
+ reader.onloadend = function () {
3348
+ callback(reader.result);
3349
+ };
3350
+ reader.readAsDataURL(xhr.response);
3351
+ };
3352
+ xhr.open('GET', url);
3353
+ xhr.responseType = 'blob';
3354
+ xhr.send();
3355
+ }
3356
+ getBase64DiagramWithEmptyData() {
3357
+ const self = this;
3358
+ // Test
3359
+ // const newWindow = window.open('', 'newWindow');
3360
+ // if (!newWindow) {
3361
+ // return;
3362
+ // }
3363
+ // const newDocument = newWindow?.document;
3364
+ if (!this.myDiagram?.model?.nodeDataArray?.length &&
3365
+ !this.myDiagram?.model?.linkDataArray?.length) {
3366
+ return;
3367
+ }
3368
+ const svg = this.myDiagram.makeSvg({
3369
+ scale: this.defaultScaleZoomToFit,
3370
+ maxSize: new go.Size(1200, NaN),
3371
+ background: 'white',
3372
+ padding: 20,
3373
+ elementFinished: function (graphObject, svgElement) {
3374
+ svgElement.removeAttribute('clip-path');
3375
+ // Replace Image URL to base64 -> For showing Picture element
3376
+ if (graphObject instanceof go.Picture) {
3377
+ self.toDataURL(svgElement.href.baseVal, function (dataUrl) {
3378
+ svgElement.setAttribute('href', dataUrl);
3379
+ });
3380
+ }
3381
+ // Make Text Node Shape Border
3382
+ if (graphObject?.name === 'textNodeShape') {
3383
+ svgElement.setAttribute('stroke', 'rgba(64, 181, 206, 0.6)');
3384
+ }
3385
+ // Empty Value
3386
+ if (graphObject?.name === 'textBlockValue' ||
3387
+ graphObject?.name === 'textBlockUnitPrefixes') {
3388
+ svgElement.textContent = '';
3389
+ }
3390
+ if (svgElement.clipPath) {
3391
+ svgElement.clipPath = null;
3392
+ }
3393
+ },
3394
+ callback: (svg) => {
3395
+ setTimeout(() => {
3396
+ const svgStr = new XMLSerializer().serializeToString(svg);
3397
+ // For Test
3398
+ // newDocument?.body?.appendChild(svg);
3399
+ const base64Svg = `data:image/svg+xml;base64,${window.btoa(unescape(encodeURIComponent(svgStr)))}`;
3400
+ const img = new Image();
3401
+ img.src = base64Svg;
3402
+ const canvas = document.createElement('canvas');
3403
+ // get canvas context for drawing on canvas
3404
+ const context = canvas.getContext('2d');
3405
+ img.onload = function () {
3406
+ const svgWidth = img.width;
3407
+ const svgHeight = img.height;
3408
+ canvas.width = svgWidth;
3409
+ canvas.height = svgHeight;
3410
+ if (context) {
3411
+ context.drawImage(img, 0, 0);
3412
+ const base64PNG = canvas.toDataURL('image/jpeg');
3413
+ self.emitImageTopology(base64PNG.replace('data:image/jpeg;base64,', ''));
3414
+ }
3415
+ };
3416
+ }, 1000);
3417
+ },
3418
+ });
3419
+ }
3420
+ emitImageTopology(base64) {
3421
+ this.callbackImageTopology.emit(base64);
3422
+ }
3423
+ openActionMenu() {
3424
+ // When this node is clicked, adjust the menu position
3425
+ const mousePt = this.myDiagram.lastInput.viewPoint;
3426
+ // // When this node is clicked, display the dropdown menu
3427
+ const menu = document.getElementById(this.actionMenuId);
3428
+ if (menu) {
3429
+ menu.style.display = '';
3430
+ menu.style.position = 'absolute';
3431
+ menu.style.left = mousePt.x + 'px';
3432
+ menu.style.top = mousePt.y + 'px';
3433
+ this.menuTrigger.openMenu();
3434
+ }
3435
+ }
3436
+ unsubscribeAll() {
3437
+ if (this._subscriptionList) {
3438
+ this._subscriptionList.unsubscribe();
3439
+ }
3440
+ this._subscriptionList = new Subscription();
3441
+ }
3442
+ addSubscribes(...subscriptions) {
3443
+ subscriptions.forEach((el) => {
3444
+ this._subscriptionList.add(el);
3445
+ });
3446
+ }
3447
+ }
3448
+ AtoDefaultGojsEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
3449
+ AtoDefaultGojsEditor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoDefaultGojsEditor, inputs: { linkValidation: "linkValidation", initialOptions: "initialOptions", editor: "editor", isShowNodeInfo: "isShowNodeInfo", plantSatus: "plantSatus" }, outputs: { onModelChangeListenerEvent: "onModelChangeListenerEvent", onClickInfoButton: "onClickInfoButton", onOpenWizard: "onOpenWizard", onOpenDetail: "onOpenDetail", onOpenAssetParameter: "onOpenAssetParameter", onOpenInsightMapping: "onOpenInsightMapping", onHoverInfoButton: "onHoverInfoButton", onHoverAlert: "onHoverAlert", onDoubleClickNode: "onDoubleClickNode", onOpenChangeIcon: "onOpenChangeIcon", onClickCompoent: "onClickCompoent", callbackImageTopology: "callbackImageTopology", onClikParamOfTable: "onClikParamOfTable", onDeleteNode: "onDeleteNode", onUndo: "onUndo", onRename: "onRename" }, viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: ["menuTrigger"], descendants: true }], ngImport: i0 });
3450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
3451
+ type: Directive
3452
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
3453
+ type: ViewChild,
3454
+ args: ['menuTrigger']
3455
+ }], linkValidation: [{
3456
+ type: Input
3457
+ }], initialOptions: [{
3458
+ type: Input
3459
+ }], editor: [{
3460
+ type: Input
3461
+ }], isShowNodeInfo: [{
3462
+ type: Input
3463
+ }], plantSatus: [{
3464
+ type: Input
3465
+ }], onModelChangeListenerEvent: [{
3466
+ type: Output
3467
+ }], onClickInfoButton: [{
3468
+ type: Output
3469
+ }], onOpenWizard: [{
3470
+ type: Output
3471
+ }], onOpenDetail: [{
3472
+ type: Output
3473
+ }], onOpenAssetParameter: [{
3474
+ type: Output
3475
+ }], onOpenInsightMapping: [{
3476
+ type: Output
3477
+ }], onHoverInfoButton: [{
3478
+ type: Output
3479
+ }], onHoverAlert: [{
3480
+ type: Output
3481
+ }], onDoubleClickNode: [{
3482
+ type: Output
3483
+ }], onOpenChangeIcon: [{
3484
+ type: Output
3485
+ }], onClickCompoent: [{
3486
+ type: Output
3487
+ }], callbackImageTopology: [{
3488
+ type: Output
3489
+ }], onClikParamOfTable: [{
3490
+ type: Output
3491
+ }], onDeleteNode: [{
3492
+ type: Output
3493
+ }], onUndo: [{
3494
+ type: Output
3495
+ }], onRename: [{
3496
+ type: Output
3497
+ }] } });
3498
+ (function (AtoDefaultGojsEditor) {
3499
+ let ENUM_ACTIONS;
3500
+ (function (ENUM_ACTIONS) {
3501
+ ENUM_ACTIONS["DETAILS"] = "Open details & wizard";
3502
+ ENUM_ACTIONS["ONLY_DETAILS"] = "Open details";
3503
+ ENUM_ACTIONS["RENAME"] = "Rename this box";
3504
+ ENUM_ACTIONS["OUTFLOW"] = "Create an outflow";
3505
+ ENUM_ACTIONS["DELETE"] = "Delete";
3506
+ ENUM_ACTIONS["INSIGHT"] = "InSight tag mapping";
3507
+ ENUM_ACTIONS["DATA_MAPPING"] = "Data Mapping";
3508
+ ENUM_ACTIONS["MORE"] = "More";
3509
+ ENUM_ACTIONS["FLOW_DETAILS"] = "Flow details";
3510
+ ENUM_ACTIONS["FLOW_DETAILS_AND_WIZARD"] = "Flow details & wizard";
3511
+ ENUM_ACTIONS["ASSET_PARAMETERS"] = "Asset parameters";
3512
+ ENUM_ACTIONS["CHANGE_ICON"] = "Change icon";
3513
+ })(ENUM_ACTIONS = AtoDefaultGojsEditor.ENUM_ACTIONS || (AtoDefaultGojsEditor.ENUM_ACTIONS = {}));
3514
+ AtoDefaultGojsEditor.ACTIONS = {
3515
+ [ENUM_ACTIONS.DETAILS]: {
3516
+ name: ENUM_ACTIONS.DETAILS,
3517
+ iconClassName: 'far fa-memo-circle-info',
3518
+ onClick: () => { },
3519
+ },
3520
+ [ENUM_ACTIONS.FLOW_DETAILS]: {
3521
+ name: ENUM_ACTIONS.FLOW_DETAILS,
3522
+ iconClassName: 'far fa-arrow-progress',
3523
+ onClick: () => { },
3524
+ },
3525
+ [ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD]: {
3526
+ name: ENUM_ACTIONS.FLOW_DETAILS_AND_WIZARD,
3527
+ iconClassName: 'far fa-arrow-progress',
3528
+ onClick: () => { },
3529
+ },
3530
+ [ENUM_ACTIONS.ASSET_PARAMETERS]: {
3531
+ name: ENUM_ACTIONS.ASSET_PARAMETERS,
3532
+ iconClassName: 'far fa-box-archive',
3533
+ onClick: () => { },
3534
+ },
3535
+ [ENUM_ACTIONS.ONLY_DETAILS]: {
3536
+ name: ENUM_ACTIONS.ONLY_DETAILS,
3537
+ iconClassName: 'far fa-memo-circle-info',
3538
+ onClick: () => { },
3539
+ },
3540
+ [ENUM_ACTIONS.RENAME]: {
3541
+ name: ENUM_ACTIONS.RENAME,
3542
+ iconClassName: 'far fa-input-text',
3543
+ onClick: () => { },
3544
+ },
3545
+ [ENUM_ACTIONS.OUTFLOW]: {
3546
+ name: ENUM_ACTIONS.OUTFLOW,
3547
+ iconClassName: 'far fa-diagram-nested',
3548
+ onClick: () => { },
3549
+ },
3550
+ [ENUM_ACTIONS.DELETE]: {
3551
+ name: ENUM_ACTIONS.DELETE,
3552
+ iconClassName: 'fal fa-trash-can',
3553
+ onClick: () => { },
3554
+ },
3555
+ [ENUM_ACTIONS.INSIGHT]: {
3556
+ name: ENUM_ACTIONS.INSIGHT,
3557
+ iconClassName: 'far fa-tag',
3558
+ onClick: () => { },
3559
+ },
3560
+ [ENUM_ACTIONS.DATA_MAPPING]: {
3561
+ name: ENUM_ACTIONS.DATA_MAPPING,
3562
+ iconClassName: 'far fa-tag',
3563
+ onClick: () => { },
3564
+ },
3565
+ [ENUM_ACTIONS.MORE]: {
3566
+ name: ENUM_ACTIONS.MORE,
3567
+ iconClassName: 'fal fa-memo-circle-info',
3568
+ onClick: () => { },
3569
+ },
3570
+ [ENUM_ACTIONS.CHANGE_ICON]: {
3571
+ name: ENUM_ACTIONS.CHANGE_ICON,
3572
+ iconClassName: 'far fa-image',
3573
+ onClick: () => { },
3574
+ },
3575
+ };
3576
+ AtoDefaultGojsEditor.DISTANCE_2_OUTPUT = 60;
3577
+ })(AtoDefaultGojsEditor || (AtoDefaultGojsEditor = {}));
3578
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdC1nb2pzLWVkaXRvci5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL2xpYi9tb2RlbHMvZGVmYXVsdC1nb2pzLWVkaXRvci5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUVULFlBQVksRUFDWixLQUFLLEVBRUwsTUFBTSxFQUNOLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN6RCxPQUFPLEtBQUssRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMzQixPQUFPLENBQUMsTUFBTSxRQUFRLENBQUM7QUFD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WR0aFxuICAgICAgICApXG4gICAgICApXG4gICAgKTtcblxuICAgIC8vIGFuaW1hdGlvblxuICAgIGVsZW1lbnRzLnB1c2goXG4gICAgICB0aGlzLiQoZ28uU2hhcGUsIHtcbiAgICAgICAgLi4uQXRvR29qc0VkaXRvck1vZGVsLkxJTktfVEVNUExBVEVTW1xuICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0xJTktfVFlQRVMuUElQRV9BTklNQVRJT05cbiAgICAgICAgXT8uYW5pbWF0aW9uLFxuICAgICAgICB2aXNpYmxlOiB0cnVlLFxuICAgICAgICBmaWxsOiAndHJhbnNwYXJlbnQnLFxuICAgICAgfSlcbiAgICApO1xuXG4gICAgZWxlbWVudHMucHVzaChcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdUb3AnLFxuICAgICAgICB7XG4gICAgICAgICAgaGVpZ2h0OiAzOCxcbiAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZShOYU4sIDM2KSxcbiAgICAgICAgICAvLyB3aWR0aDogMTAwLFxuICAgICAgICAgIC8vIG1pblNpemU6IG5ldyBnby5TaXplKDEwMCwgNSksIC8vIMSQ4bq3dCBrw61jaCB0aMaw4bubYyB04buRaSB0aGnhu4N1IGzDoCAxMDB4NTBcbiAgICAgICAgICBiYWNrZ3JvdW5kOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgIC8vIGxheWVyTmFtZTogJ0JhY2tncm91bmRMYXllcicsXG4gICAgICAgICAgLy8gYWxpZ25tZW50OiBnby5TcG90LlRvcCxcbiAgICAgICAgICAvLyBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgIC8vIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCA1MCwgMCksXG4gICAgICAgICAgLy8gc2VsZWN0YWJsZTogZmFsc2UsXG4gICAgICAgIH0sXG4gICAgICAgIG5ldyBnby5CaW5kaW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g24gZMOybmcgxJHhu4MgdsSDbiBi4bqjbiBraMO0bmcgdsaw4bujdCByYSBuZ2/DoGlcbiAgICAgICAgICAgIC8vIHNlbGVjdGFibGU6IHRydWUsXG4gICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICd0ZXh0Q29tcG9uZW50JylcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ3RleHRDb21wb25lbnQnKSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnYmFja2dyb3VuZCcsICd0ZXh0Q29tcG9uZW50JywgKHgpID0+XG4gICAgICAgICAgICB4ID8gJ3doaXRlJyA6ICd0cmFuc3BhcmVudCdcbiAgICAgICAgICApXG4gICAgICAgICAgLy8gICAgIG5ldyBnby5CaW5kaW5nKCdtYXJnaW4nLCAnaXNGb3JtYXQnLCAoeCkgPT5cbiAgICAgICAgICAvLyAgICAgeCA/IG5ldyBnby5NYXJnaW4oNSwgMCwgNSwgNSkgOiBuZXcgZ28uTWFyZ2luKDUsIDUsIDUsIDUpLFxuICAgICAgICAgIC8vICksXG4gICAgICAgIClcbiAgICAgIClcbiAgICApO1xuXG4gICAgLy8gYXJyb3dcbiAgICBlbGVtZW50cy5wdXNoKFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5TaGFwZSwgLy8gdGhlIFwiZnJvbVwiIGFycm93aGVhZFxuICAgICAgICB7XG4gICAgICAgICAgLi4uQXRvR29qc0VkaXRvck1vZGVsLkxJTktfVEVNUExBVEVTW1xuICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fTElOS19UWVBFUy5TSU1QTEVcbiAgICAgICAgICBdPy5hcnJvdyxcbiAgICAgICAgfSxcbiAgICAgICAgbmV3IGdvLkJpbmRpbmcoXG4gICAgICAgICAgJ3Zpc2libGUnLFxuICAgICAgICAgICd0eXBlJyxcbiAgICAgICAgICAoeCkgPT5cbiAgICAgICAgICAgICFbXG4gICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0xJTktfVFlQRVMuUElQRV9BTklNQVRJT04sXG4gICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0xJTktfVFlQRVMuUElQRSxcbiAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fTElOS19UWVBFUy5QSVBFX0hJRERFTixcbiAgICAgICAgICAgIF0uaW5jbHVkZXMoeClcbiAgICAgICAgKSxcbiAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2ZpbGwnLCAnY29sb3InKSxcbiAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICdjb2xvcicpXG4gICAgICApXG4gICAgKTtcblxuICAgIC8vIFRPRE8gZml4IGxpbmsgY2Fubm90IHNlbGVjdGVkIGluc2lkZSBncm91cCB0ZW1wbGF0ZVxuICAgIHRoaXMubXlEaWFncmFtLmxpbmtUZW1wbGF0ZSA9IHRoaXMuJChcbiAgICAgIGdvLkxpbmssXG4gICAgICBnby5MaW5rLk9ydGhvZ29uYWwsXG4gICAgICB7XG4gICAgICAgIC8vIGxheWVyTmFtZTogJ0JhY2tncm91bmQnLCAvLyBsaW5rIGNhbm5vdCBzZWxlY3QgaW5zaWRlIGdyb3VwIHRlbXBsYXRlXG4gICAgICAgIC8vIGN1cnZpbmVzczogMjAsXG4gICAg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AgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICBmb250OiAnYm9sZCAxNHB4IEFyaWFsJyxcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQ0VSVUxFQU4sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2VkaXRhYmxlJywgJ2lzRWRpdGFibGUnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ3Nob3J0ZW5lZE51bWJlcicpLm1ha2VUd29XYXkoKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzdHJva2UnLCAnY29sb3InKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdtYXJnaW4nLCAnaXNGb3JtYXQnLCAoeCkgPT5cbiAgICAgICAgICAgICAgeCA/IG5ldyBnby5NYXJnaW4oNSwgMCwgNSwgNSkgOiBuZXcgZ28uTWFyZ2luKDUsIDUsIDUsIDUpXG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgICAgICAgcmV0dXJuIGRhdGEudmFsdWUgIT09IFZBTFVFX05BO1xuICAgICAgICAgICAgfSlcbiAgICAgICAgICApLFxuICAgICAgICAgIC8vIEljb24gRXJyIHdoZW4gbGFjayBvZiB2YWx1ZVxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDEwLCAxMCwgMTAsIDEwKSxcbiAgICAgICAgICAgICAgdGV4dDogVkFMVUVfTkEsIC8vIE9sZCB2ZXJzaW9uOiBURVhUX0VSUk9SXG4gICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEwcHQgc2Fucy1zZXJpZicsXG4gICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlNBTE1PTixcbiAgICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLldyYXBGaXQsXG4gICAgICAgICAgICAgIGVkaXRhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgaXNNdWx0aWxpbmU6IGZhbHNlLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsIGZ1bmN0aW9uIChkYXRhKSB7XG4gICAgICAgICAgICAgIHJldHVybiBkYXRhLnZhbHVlID09PSBWQUxVRV9OQTtcbiAgICAgICAgICAgIH0pXG4gICAgICAgICAgKVxuICAgICAgICApXG4gICAgICApXG4gICAgKTtcbiAgICB0aGlzLm15RGlhZ3JhbS5ub2RlVGVtcGxhdGVNYXAuc2V0KFxuICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlZBTFVFX05PREUsXG4gICAgICBub2RlXG4gICAgKTtcbiAgfVxuXG4gIG1ha2VFbXB0eU5vZGVUZW1wbGF0ZShzaXplOiB7IHc6IG51bWJlcjsgaDogbnVtYmVyIH0gPSB7IHc6IDAsIGg6IDAgfSkge1xuICAgIGNvbnN0IG5vZGUgPSB0aGlzLiQoXG4gICAgICBnby5Ob2RlLFxuICAgICAgJ1Nwb3QnLFxuICAgICAge30sXG4gICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgKVxuICAgICk7XG4gICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChcbiAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5FTVBUWSxcbiAgICAgIG5vZGVcbiAgICApO1xuICB9XG5cbiAgbWFrZVZhbHVlTGFiZWxUZW1wbGF0ZShzaXplOiB7IHc6IG51bWJlcjsgaDogbnVtYmVyIH0gPSB7IHc6IDgyLCBoOiAzNiB9KSB7XG4gICAgY29uc3Qgbm9kZSA9IHRoaXMuJChcbiAgICAgIGdvLk5vZGUsXG4gICAgICAnQXV0bycsXG4gICAgICB7XG4gICAgICAgIG1vdmFibGU6IGZhbHNlLFxuICAgICAgfSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICApLFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0F1dG8nLFxuICAgICAgICB7IG1pblNpemU6IG5ldyBnby5TaXplKHNpemUudywgc2l6ZS5oKSB9LFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAxMCwgMCwgMTApLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgNSwgMTAsIDApLFxuICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICBmb250OiAnYm9sZCAxNXB4IHNhbnMtc2VyaWYnLFxuICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQ0VSVUxFQU4sXG4gICAgICAgICAgICAgIG1pblNpemU6IG5ldyBnby5TaXplKDE1MCwgMzApLCAvLyBTZXQgdGhlIHdpZHRoIG9mIHRoZSB0ZXh0IGJsb2NrXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICdjb2xvcicpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnZGF0YScsICh4KSA9PiB7XG4gICAgICAgICAgICAgIGlmICh0eXBlb2YgeD8ucXVhbnRpdHkgIT09ICdudW1iZXInKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuICcnO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIGNvbnN0IGZvcm1hdHRlZDogYW55ID0gVXRpbHNTZXJ2aWNlLmNvbnZlcnRQcmVmaXhlc0RhdGEoe1xuICAgICAgICAgICAgICAgIHZhbHVlOiB4Py5xdWFudGl0eSxcbiAgICAgICAgICAgICAgICB1bml0OiBVdGlsc1NlcnZpY2UuY29udmVydFNwZWNpYWxVbml0KHg/LnVuaXQpLFxuICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICBsZXQgcmV0VmFsdWUgPVxuICAgICAgICAgICAgICAgIGZvcm1hdHRlZC5zaG9ydGVuZWROdW1iZXIgK1xuICAgICAgICAgICAgICAgICAgJyAnICtcbiAgICAgICAgICAgICAgICAgIGZvcm1hdHRlZC51bml0UHJlZml4ZXMgK1xuICAgICAgICAgICAgICAgICAgVXRpbHNTZXJ2aWNlLmNvbnZlcnRTcGVjaWFsVW5pdCh4Py51bml0KSA/PyAnJztcbiAgICAgICAgICAgICAgaWYgKHg/LnBlcmNlbnQpIHtcbiAgICAgICAgICAgICAgICByZXRWYWx1ZSArPSBgICgke3g/LnBlcmNlbnR9JSlgO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHJldHVybiByZXRWYWx1ZTtcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoXG4gICAgICAgICAgICAgICd2aXNpYmxlJyxcbiAgICAgICAgICAgICAgJ2RhdGEnLFxuICAgICAgICAgICAgICAoeCkgPT4gdHlwZW9mIHg/LnF1YW50aXR5ID09PSAnbnVtYmVyJ1xuICAgICAgICAgICAgKVxuICAgICAgICAgIClcbiAgICAgICAgKVxuICAgICAgKVxuICAgICk7XG4gICAgdGhpcy5teURpYWdyYW0ubm9kZVRlbXBsYXRlTWFwLnNldChcbiAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5WQUxVRV9MQUJFTCxcbiAgICAgIG5vZGVcbiAgICApO1xuICB9XG5cbiAgbWFrZVRleHRMYWJlbFRlbXBsYXRlKHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogTmFOLCBoOiAyMCB9KSB7XG4gICAgY29uc3Qgbm9kZSA9IHRoaXMuJChcbiAgICAgIGdvLk5vZGUsXG4gICAgICAnQXV0bycsXG4gICAgICB7XG4gICAgICAgIG1vdmFibGU6IGZhbHNlLFxuICAgICAgICBpc1NlbGVjdGVkOiBmYWxzZSxcbiAgICAgIH0sXG4gICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgKSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICdIb3Jpem9udGFsJyxcblxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDUsIDEwLCAwKSxcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTZweCBBcmlhbCcsXG4gICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5XcmFwRml0LFxuICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5DRVJVTEVBTixcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJyksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJyksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICd2aXNpYmxlJylcbiAgICAgICAgICApXG4gICAgICAgIClcbiAgICAgIClcbiAgICApO1xuICAgIHRoaXMubXlEaWFncmFtLm5vZGVUZW1wbGF0ZU1hcC5zZXQoXG4gICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuVEVYVF9MQUJFTCxcbiAgICAgIG5vZGVcbiAgICApO1xuICB9XG5cbiAgbWFrZVRleHRUZW1wbGF0ZShcbiAgICBzaXplOiB7IHc6IG51bWJlcjsgaDogbnVtYmVyIH0gPSB7XG4gICAgICB3OiBBdG9Hb2pzRWRpdG9yTW9kZWwuR1JJRF9TSVpFICogNSxcbiAgICAgIGg6IEF0b0dvanNFZGl0b3JNb2RlbC5HUklEX1NJWkUgKiAyLFxuICAgIH1cbiAgKSB7XG4gICAgY29uc3Qgc2VsZiA9IHRoaXM7XG4gICAgY29uc3QgY29udGV4dE1lbnUgPSB0aGlzLiQoXG4gICAgICBnby5BZG9ybm1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AgICAgICAgLy8gICAgIGlmICgob2JqIGFzIGFueSkucGFydD8ub2I/LnZhbHVlID09PSBWQUxVRV9OQSkge1xuICAgICAgICAvLyAgICAgICAgIHNlbGYub25Ib3ZlckluZm9CdXR0b24uZW1pdCh7XG4gICAgICAgIC8vICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCArIDgsXG4gICAgICAgIC8vICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAvLyAgICAgICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAvLyAgICAgICAgIH0pO1xuICAgICAgICAvLyAgICAgfVxuICAgICAgICAvLyB9LFxuICAgICAgICAvLyBtb3VzZUxlYXZlOiAoZSwgb2JqKSA9PiB7XG4gICAgICAgIC8vICAgICBpZiAoKG9iaiBhcyBhbnkpLnBhcnQ/Lm9iPy52YWx1ZSA9PT0gVkFMVUVfTkEpIHtcbiAgICAgICAgLy8gICAgICAgICBzZWxmLm9uSG92ZXJJbmZvQnV0dG9uLmVtaXQobnVsbCk7XG4gICAgICAgIC8vICAgICB9XG4gICAgICAgIC8vIH0sXG4gICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICBjb25zdCBub2RlID0gb2JqLnBhcnQ7XG4gICAgICAgICAgaWYgKG5vZGU/Lm9iPy5pc1R5cGVJbmZsb3dPZlBsYW50Q2VsbCkge1xuICAgICAgICAgICAgLy8gb2JqPy5kYXRhPy5vblNlbGVjdGVkKG5vZGU/Lm9iPy5ub2RlUGxhbnRDZWxsUGFyZW50KTtcbiAgICAgICAgICAgIC8vIHNlbGYub25DbGlja0NvbXBvZW50LmVtaXQoe1xuICAgICAgICAgICAgLy8gICAgIGxlZnQ6IGU/LlsnV3InXT8ueCxcbiAgICAgICAgICAgIC8vICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgIC8vICAgICBub2RlOiB7XG4gICAgICAgICAgICAvLyAgICAgICAgIG9iOiBub2RlPy5vYj8ubm9kZVBsYW50Q2VsbFBhcmVudCxcbiAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgLy8gICAgIGNvbXBvbmVudDogbm9kZT8ub2I/Lm5vZGVQbGFudENlbGxQYXJlbnQsXG4gICAgICAgICAgICAvLyB9KTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICB9XG4gICAgICAgICAgaWYgKHRoaXMuX2luaXRpYWxPcHRpb25zPy5pc1JlYWRPbmx5KSB7XG4gICAgICAgICAgICB0aGlzLmlzU2hvd05vZGVJbmZvXG4gICAgICAgICAgICAgID8gc2VsZi5vbkNsaWNrSW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCxcbiAgICAgICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZSxcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICA6IG51bGw7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBkb3VibGVDbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgY29uc3Qgbm9kZSA9IG9iai5wYXJ0O1xuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIG5vZGU/Lm9iPy5pc1R5cGVJbmZsb3dPZlBsYW50Q2VsbCAmJlxuICAgICAgICAgICAgIXRoaXMuX2luaXRpYWxPcHRpb25zPy5pc1JlYWRPbmx5XG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICAvLyBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQobm9kZT8ub2I/Lm5vZGVQbGFudENlbGxQYXJlbnQpO1xuICAgICAgICAgICAgLy8gdGhpcy5pc1Nob3dOb2RlSW5mb1xuICAgICAgICAgICAgLy8gICAgID8gc2VsZi5vbkRvdWJsZUNsaWNrTm9kZS5lbWl0KHtcbiAgICAgICAgICAgIC8vICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LngsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAvLyAgICAgICAgICAgbm9kZToge1xuICAgICAgICAgICAgLy8gICAgICAgICAgICAgICBvYjogbm9kZT8ub2I/Lm5vZGVQbGFudENlbGxQYXJlbnQsXG4gICAgICAgICAgICAvLyAgICAgICAgICAgfSxcbiAgICAgICAgICAgIC8vICAgICAgIH0pXG4gICAgICAgICAgICAvLyAgICAgOiBudWxsO1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAoIXRoaXMuX2luaXRpYWxPcHRpb25zPy5pc1JlYWRPbmx5KSB7XG4gICAgICAgICAgICB0aGlzLmlzU2hvd05vZGVJbmZvXG4gICAgICAgICAgICAgID8gc2VsZi5vbkNsaWNrSW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCxcbiAgICAgICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICAgICAgbm9kZTogbm9kZSxcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICA6IG51bGw7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBzZWxlY3Rpb25BZG9ybm1lbnRUZW1wbGF0ZTogdGhpcy4kKFxuICAgICAgICAgIGdvLkFkb3JubWVudCxcbiAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAvLyB7IGhlaWdodDogNjIgfSxcbiAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwge1xuICAgICAgICAgICAgICBmaWxsOiBudWxsLFxuICAgICAgICAgICAgICBzdHJva2U6ICdkb2RnZXJibHVlJyxcbiAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDQsXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uUGxhY2Vob2xkZXIsXG4gICAgICAgICAgICAgIC8vIHsgcGFkZGluZzogbmV3IGdvLk1hcmdpbig4LCAzLCAwLCAzKSB9LFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygncGFkZGluZycsICcnLCAoeCkgPT4ge1xuICAgICAgICAgICAgICAgIHJldHVybiB4Py5pc1R5cGVJbmZsb3dPZlBsYW50Q2VsbFxuICAgICAgICAgICAgICAgICAgPyB4Py5mbG93T2ZQbGFudENlbGwgPT09IEFUT19FTlVNX0ZMT1dfRElSRUNUSU9OLklORkxPV1xuICAgICAgICAgICAgICAgICAgICA/IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgMjApXG4gICAgICAgICAgICAgICAgICAgIDogbmV3IGdvLk1hcmdpbigwLCAyMCwgMCwgMClcbiAgICAgICAgICAgICAgICAgIDogbnVsbDtcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICAvLyB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHsgcGFkZGluZzogMyB9KSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdoZWlnaHQnLCAnJywgKHgpID0+IHtcbiAgICAgICAgICAgICAgcmV0dXJuIHg/LmlzVHlwZUluZmxvd09mUGxhbnRDZWxsID8geD8uaGVpZ2h0ICsgMTAgOiBudWxsO1xuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnd2lkdGgnLCAnJywgKHgpID0+IHtcbiAgICAgICAgICAgICAgcmV0dXJuIHg/LmlzVHlwZUluZmxvd09mUGxhbnRDZWxsID8geD8ud2lkdGggKyAxMiA6IG51bGw7XG4gICAgICAgICAgICB9KVxuICAgICAgICAgICksXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAgICB7IGFsaWdubWVudDogZ28uU3BvdC5Ub3BSaWdodCwgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQm90dG9tIH0sXG4gICAgICAgICAgICAvLyBtb3JlXG4gICAgICAgICAgICAhdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICA/IHRoaXMuZ2VuZXJhdGVBY3Rpb25Hcm91cChbXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FLFxuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLklOU0lHSFQsXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT1VURkxPVyxcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEUsXG4gICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgOiB7fVxuICAgICAgICAgIClcbiAgICAgICAgKSxcbiAgICAgIH0sXG4gICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICd2aXNpYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnZnJvbVNwb3QnLCAnZnJvbVNwb3QnKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCd0b1Nwb3QnLCAndG9TcG90JyksXG4gICAgICBuZXcgZ28uQmluZGluZygnbW92YWJsZScsICdtb3ZhYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnc2VsZWN0YWJsZScsICdzZWxlY3RhYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgKSxcbiAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCdhbGlnbm1lbnQnLCAnYWxpZ25tZW50JywgZnVuY3Rpb24obG9jKSB7XG4gICAgICAvLyAgICAgcmV0dXJuIG5ldyBnby5TcG90KDAsIDAsIGxvYy54LCAwKTtcbiAgICAgIC8vIH0pLm9mT2JqZWN0KCksXG5cbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAge1xuICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbWFyZ2luOiAyLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICcnLCBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICAgICAgICAgIGlmICghc2VsZi5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSkge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/Lm5hbWUgPz8gVkFMVUVfTkE7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGlmIChkYXRhPy52YWx1ZSA9PT0gVkFMVUVfTkEgfHwgXy5pc05pbChkYXRhPy52YWx1ZSkpIHtcbiAgICAgICAgICAgICAgICAgIHJldHVybiBOT19EQVRBO1xuICAgICAgICAgICAgICAgICAgLy8gcmV0dXJuIFRFWFRfVU5LTk9XTjtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIF8ucm91bmQoZGF0YT8udmFsdWUsIDIpLnRvRml4ZWQoMik7XG4gICAgICAgICAgICAgIH0pLm1ha2VUd29XYXkoKVxuICAgICAgICAgICAgKVxuICAgICAgICAgICksXG4gICAgICAgIH0sXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgIHRoaXMuYXJyb3dGb3JQbGFudENlbGwoc2l6ZSwgQVRPX0VOVU1fRkxPV19ESVJFQ1RJT04uT1VURkxPVyksXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAvLyB7IHdpZHRoOiBzaXplLncsIGhlaWdodDogc2l6ZS5oIH0sXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIC8vIG1pblNpemU6IG5ldyBnby5TaXplKHNpemUudywgc2l6ZS5oKSxcbiAgICAgICAgICAgICAgLy8gbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53LCBzaXplLmgpLFxuICAgICAgICAgICAgICBkZXNpcmVkU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53LCBzaXplLmgpLFxuICAgICAgICAgICAgICBjb2x1bW46IDEsXG4gICAgICAgICAgICAgIHJvdzogMixcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnd2lkdGgnLCAnd2lkdGgnKSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdoZWlnaHQnLCAnaGVpZ2h0JyksXG5cbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uU2hhcGUsXG4gICAgICAgICAgICAgICdSb3VuZGVkUmVjdGFuZ2xlJyxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGZpbGw6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSUdIVF9CTFVFLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJTktfV0FURVIsXG4gICAgICAgICAgICAgICAgbmFtZTogJ3RleHROb2RlU2hhcGUnLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnZmlsbCcsICdmaWxsJyksXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdzdHJva2UnLCAnc3Ryb2tlJylcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAnVmVydGljYWwnLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgIHsgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlciB9LFxuICAgICAgICAgICAgICAgIC8vIEFsZXJ0XG5cbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDUpLFxuICAgICAgICAgICAgICAgICAgICB2aXNpYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICdyZWNvbW1lbmRhdGlvbicpLFxuICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnQ2lyY2xlJywge1xuICAgICAgICAgICAgICAgICAgICBmaWxsOiAnI0U5NUY0NycsXG4gICAgICAgICAgICAgICAgICAgIHN0cm9rZTogJyNFOTVGNDcnLFxuICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTUsXG4gICAgICAgICAgICAgICAgICAgIGhlaWdodDogMTUsXG4gICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICAgICAgdGV4dDogJ1xcdWY2NDknLFxuICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMS41LCAwLCAwLCAwKSxcbiAgICAgICAgICAgICAgICAgICAgZm9udDogJzhweCBcIkZvbnQgQXdlc29tZSA2IFByb1wiJyxcbiAgICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnI2ZmZicsXG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgICAgICAgICAgPyB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgICAgICAgJ1Bvc2l0aW9uJyxcbiAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTgsXG4gICAgICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IDE1LFxuICAgICAgICAgICAgICAgICAgICAgICAgdmlzaWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgbW91c2VFbnRlcjogKGUsIG9iaikgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBzZWxmLm9uSG92ZXJBbGVydC5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LnggKyA4LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2VBbGVydDogKG9iaiBhcyBhbnkpLnBhcnQ/Lm9iPy5tZXNzYWdlQWxlcnQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG1vdXNlTGVhdmU6IChlLCBvYmopID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgc2VsZi5vbkhvdmVyQWxlcnQuZW1pdChudWxsKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICdhbGVydCcpLFxuXG4gICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIElDT05fQUxFUlQsIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSgzMCwgMzApLFxuICAgICAgICAgICAgICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgIDogJydcbiAgICAgICAgICAgICAgKSxcblxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICAgbmFtZTogJ3RleHRCbG9ja1ZhbHVlJyxcbiAgICAgICAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICAgICAgICBlZGl0YWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIGRlc2lyZWRTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSA4LCAxOCksXG4gICAgICAgICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDIycHggQXJpYWwnLFxuICAgICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5HUkFZLFxuICAgICAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2VkaXRhYmxlJywgJ2lzRWRpdGFibGUnKSxcbiAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdhbmdsZScsICdhbmdsZScpLFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ21hcmdpbicsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoZGF0YT8uYWxlcnQpIHtcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKTtcbiAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICdjb2xvcicpLFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnJywgZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHNlbGYuZ2V0VGV4dERhdGFCb3goZGF0YSk7XG4gICAgICAgICAgICAgICAgICB9KS5tYWtlVHdvV2F5KCksXG4gICAgICAgICA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GVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgfSxcblxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KFxuICAgICAgICBnby5Qb2ludC5zdHJpbmdpZnlcbiAgICAgICksXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAnQXV0bycsXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIG1vdXNlSG92ZXI6IChlLCBvYmopID0+IHtcbiAgICAgICAgICAgICAgaWYgKChvYmogYXMgYW55KS5wYXJ0Py5vYj8udmFsdWUgPT09IFZBTFVFX05BKSB7XG4gICAgICAgICAgICAgICAgc2VsZi5vbkhvdmVySW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgICAgICAgICAgICAgIGxlZnQ6IGU/LlsnV3InXT8ueCArIDgsXG4gICAgICAgICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAgIG5vZGU6IG5vZGUsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBtb3VzZUxlYXZlOiAoZSwgb2JqKSA9PiB7XG4gICAgICAgICAgICAgIGlmICgob2JqIGFzIGFueSkucGFydD8ub2I/LnZhbHVlID09PSBWQUxVRV9OQSkge1xuICAgICAgICAgICAgICAgIHNlbGYub25Ib3ZlckluZm9CdXR0b24uZW1pdChudWxsKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICB7IHJvdzogMCwgc3RyZXRjaDogZ28uR3JhcGhPYmplY3QuSG9yaXpvbnRhbCB9LFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5TaGFwZSxcbiAgICAgICAgICAgICAgJ1JlY3RhbmdsZScsXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBmaWxsOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTElHSFRfQkxVRSxcbiAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5SRVNPTFVUSU9OX0JMVUUsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmaWxsJywgJ2NvbG9yJylcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDEwLCA1LCAxMCksXG4gICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53LCBOYU4pLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgc3BhY2luZ0JlbG93OiA1LFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgICApXG4gICAgICAgICAgKSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgIHsgcm93OiAxLCBzdHJldGNoOiBnby5HcmFwaE9iamVjdC5Ib3Jpem9udGFsIH0sXG4gICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgICAgIGZpbGw6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSUdIVF9CTFVFLFxuICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5SRVNPTFVUSU9OX0JMVUUsXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICByb3c6IDIsXG4gICAgICAgICAgICAgICAgICAvLyBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgIC8vIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDEwLCA0MCksXG4gICAgICAgICAgICAgICAgICAvLyBtaW5TaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAxMCwgc2l6ZS5oKSxcbiAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbig1LCAwLCA1LCA1KSxcbiAgICAgICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEycHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkdSQVksXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnZWRpdGFibGUnLCAnaXNFZGl0YWJsZScpLFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ3Nob3J0ZW5lZE51bWJlcicpLm1ha2VUd29XYXkoKSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJ2NvbG9yJyksXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhLnZhbHVlICE9PSBWQUxVRV9OQTtcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIHJvdzogMixcbiAgICAgICAgICAgICAgICAgIC8vIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgLy8gbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMTAsIDQwKSxcbiAgICAgICAgICAgICAgICAgIC8vIG1pblNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDEwLCBzaXplLmgpLFxuICAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDUsIDUsIDUsIDApLFxuICAgICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTJwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuR1JBWSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsIGZ1bmN0aW9uIChkYXRhKSB7XG4gICAgICAgICAgICAgICAgICByZXR1cm4gZGF0YS52YWx1ZSAhPT0gVkFMVUVfTkE7XG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAndW5pdFByZWZpeGVzJyksXG4gICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICdjb2xvcicpXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIC8vIEljb24gRXJyIHdoZW4gbGFjayBvZiB2YWx1ZVxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxMCwgMTAsIDEwLCAxMCksXG4gICAgICAgICAgICAgICAgICB0ZXh0OiBWQUxVRV9OQSwgLy8gT2xkIHZlcnNpb246IFRFWFRfRVJST1JcbiAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMHB0IHNhbnMtc2VyaWYnLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuU0FMTU9OLFxuICAgICAgICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLldyYXBGaXQsXG4gICAgICAgICAgICAgICAgICBlZGl0YWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgICBpc011bHRpbGluZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCBmdW5jdGlvbiAoZGF0YSkge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEudmFsdWUgPT09IF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ICAgfVxuICAgICAgICB9LFxuICAgICAgICBzZWxlY3Rpb25DaGFuZ2VkOiAoZSkgPT4ge1xuICAgICAgICAgIGlmICghZS5pc1NlbGVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBzZWxlY3Rpb25BZG9ybm1lbnRUZW1wbGF0ZTogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgID8gbnVsbFxuICAgICAgICAgIDogdGhpcy4kKFxuICAgICAgICAgICAgICBnby5BZG9ybm1lbnQsXG4gICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHNoYWRvd1Zpc2libGU6IHRydWUsXG4gICAgICAgICAgICAgICAgc2hhZG93Qmx1cjogNixcbiAgICAgICAgICAgICAgICBzaGFkb3dPZmZzZXQ6IG5ldyBnby5Qb2ludCgwLCAyKSxcbiAgICAgICAgICAgICAgICBzaGFkb3dDb2xvcjogJyMwMDAwMDAyOScsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCB7XG4gICAgICAgICAgICAgICAgICBmaWxsOiBudWxsLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlOiAnZG9kZ2VyYmx1ZScsXG4gICAgICAgICAgICAgICAgICBzdHJva2VXaWR0aDogNCxcbiAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHsgcGFkZGluZzogMyB9KVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5Ub3BSaWdodCxcbiAgICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSxcbiAgICAgICAgICAgICAgICAgIGJhY2tncm91bmQ6ICd3aGl0ZScsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAvLyBtb3JlXG4gICAgICAgICAgICAgICAgIXRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICAgICAgICAgID8gdGhpcy5nZW5lcmF0ZUFjdGlvbkdyb3VwKFxuICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5OT0RFX1RFTVBMQVRFU1tcbiAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlJPX1dBVEVSX1RSRUFUTUVOVFxuICAgICAgICAgICAgICAgICAgICAgICAgXS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuQ09PTElOR19UT1dFUlxuICAgICAgICAgICAgICAgICAgICAgICAgXS5uYW1lLFxuICAgICAgICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW1xuICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuQk9JTEVSXG4gICAgICAgICAgICAgICAgICAgICAgICBdLm5hbWUsXG4gICAgICAgICAgICAgICAgICAgICAgXS5pbmNsdWRlcyh0aXRsZSlcbiAgICAgICAgICAgICAgICAgICAgICAgID8gW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5SRU5BTUUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkZMT1dfREVUQUlMUyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuQVNTRVRfUEFSQU1FVEVSUyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT1VURkxPVyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVMRVRFLFxuICAgICAgICAgICAgICAgICAgICAgICAgICBdXG4gICAgICAgICAgICAgICAgICAgICAgICA6IFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERVRBSUxTLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5PVVRGTE9XLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIF1cbiAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgOiB7fVxuICAgICAgICAgICAgICApXG4gICAgICAgICAgICApLFxuICAgICAgfSxcbiAgICAgIC8vIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSksXG4gICAgICBuZXcgZ28uQmluZGluZygnbW92YWJsZScsICdtb3ZhYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnc2VsZWN0YWJsZScsICdzZWxlY3RhYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgKSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJ3Zpc2libGUnKSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAgIGZpbGw6ICd3aGl0ZScsXG4gICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTElOS19XQVRFUixcbiAgICAgICAgICBzdHJva2VXaWR0aDogMSxcbiAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgfSksXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBzaXplLmggLSA1MCksXG4gICAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZSg2MCwgNjApLFxuICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgdGV4dDogdGl0bGUsXG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICApLFxuICAgICAgICAgIH0pLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDAsIDMsIDApLFxuICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgZGVzaXJlZFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgIHN0cm9rZTogJyMwMDBENDInLFxuICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgLy8gd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICB7IG1hcmdpbjogNCB9LFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygnZWRpdGFibGUnLCAnJywgKGRhdGEpID0+IHtcbiAgICAgICAgICAgICAgcmV0dXJuICEoXG4gICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLlRZUEVfQ09NUE9ORU5UX1dBVEVSPy5pbmNsdWRlcyhcbiAgICAgICAgICAgICAgICAgIGRhdGE/LnN5c3RlbVR5cGVcbiAgICAgICAgICAgICAgICApICYmXG4gICAgICAgICAgICAgICAgZGF0YT8udG9wb2xvZ3lUeXBlICE9PSBBVE9fRUNPTVBPTkVOVF9QTEFOVF9UWVBFLldBVEVSICYmXG4gICAgICAgICAgICAgICAgZGF0YT8udG9wb2xvZ3lUeXBlICE9PVxuICAgICAgICAgICAgICAgICAgQVRPX0VDT01QT05FTlRfUExBTlRfVFlQRS5XQVRFUl9QTEFOVF9DRUxMXG4gICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9KVxuICAgICAgICAgIClcbiAgICAgICAgKVxuICAgICAgKSxcblxuICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMCwgMC41LCA4LCAwKSxcbiAgICAgIH0pLFxuICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5SaWdodCxcbiAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDEsIDAuNSw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gb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICBpZiAob2JqPy5kYXRhPy5vblNlbGVjdGVkKSB7XG4gICAgICAgICAgICBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQob2JqPy5kYXRhKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHNlbGVjdGlvbkFkb3JubWVudFRlbXBsYXRlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgPyBudWxsXG4gICAgICAgICAgOiB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLkFkb3JubWVudCxcbiAgICAgICAgICAgICAgJ1Nwb3QnLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgc2hhZG93VmlzaWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICBzaGFkb3dCbHVyOiA2LFxuICAgICAgICAgICAgICAgIHNoYWRvd09mZnNldDogbmV3IGdvLlBvaW50KDAsIDIpLFxuICAgICAgICAgICAgICAgIHNoYWRvd0NvbG9yOiAnIzAwMDAwMDI5JyxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsIHtcbiAgICAgICAgICAgICAgICAgIGZpbGw6IG51bGwsXG4gICAgICAgICAgICAgICAgICBzdHJva2U6ICdkb2RnZXJibHVlJyxcbiAgICAgICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiA0LFxuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiAzIH0pXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LlRvcFJpZ2h0LFxuICAgICAgICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQm90dG9tLFxuICAgICAgICAgICAgICAgICAgYmFja2dyb3VuZDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIC8vIG1vcmVcbiAgICAgICAgICAgICAgICB0aGlzLmdlbmVyYXRlQWN0aW9uR3JvdXAoW1xuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLlJFTkFNRSxcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERVRBSUxTLFxuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1csXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVMRVRFLFxuICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgICksXG4gICAgICB9LFxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAndmlzaWJsZScpLFxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ21vdmFibGUnLCAnbW92YWJsZScpLFxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ3NlbGVjdGFibGUnLCAnc2VsZWN0YWJsZScpLFxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KFxuICAgICAgICBnby5Qb2ludC5zdHJpbmdpZnlcbiAgICAgICksXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAnQXV0bycsXG4gICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJTktfV0FURVIsXG4gICAgICAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgIH0pLFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuVEVNUExBVEVfRFVQTElDQVRFW3RpdGxlXSA/PyB0aXRsZSxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgMTUpLFxuICAgICAgICAgICAgICBzdHJva2U6ICcjNDQ0NDQ0JyxcbiAgICAgICAgICAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7XG4gICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICB0ZXh0OiB0aXRsZSxcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfVxuICAgICAgICAgICksXG4gICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICBkZXNpcmVkU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIHNpemUuaCAtIDY1KSxcbiAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICB9KSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIHJvdzogMixcbiAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDEwLCAzLCAzLCAzKSxcbiAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCAxNSksXG4gICAgICAgICAgICAgIHN0cm9rZTogJyMyQzJDMkMnLFxuICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgLy8gd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KClcbiAgICAgICAgICApXG4gICAgICAgIClcbiAgICAgICksXG4gICAgICB0aGlzLiQoZ28uUGFuZWwsICdWZXJ0aWNhbCcsIHtcbiAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgwLCAwLjUsIDgsIDApLFxuICAgICAgfSksXG4gICAgICB0aGlzLiQoZ28uUGFuZWwsICdWZXJ0aWNhbCcsIHtcbiAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LlJpZ2h0LFxuICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMSwgMC41LCAtOCwgMCksXG4gICAgICB9KSxcbiAgICAgIC8vIGZvdXIgbmFtZWQgcG9ydHMsIG9uZSBvbiBlYWNoIHNpZGU6XG5cbiAgICAgIHRoaXMubWFrZVBvcnQoJ1QnLCBnby5TcG90LlRvcCwgZ28uU3BvdC5Ub3BTaWRlLCBmYWxzZSwgdHJ1ZSksXG4gICAgICB0aGlzLm1ha2VQb3J0KCdMJywgZ28uU3BvdC5MZWZ0LCBnby5TcG90LkxlZnRTaWRlLCBmYWxzZSwgdHJ1ZSksXG4gICAgICB0aGlzLm1ha2VQb3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lcnQsXG4gICAgICAgICAgLy8gfSk7XG4gICAgICAgICAgY29uc3Qgbm9kZSA9IG9iai5wYXJ0O1xuICAgICAgICAgIHNlbGYub25Ib3ZlckluZm9CdXR0b24uZW1pdCh7XG4gICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LnggKyA4LFxuICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgbGV0IHNoYXBlID0gKG5vZGUgYXMgYW55KT8uZmluZE9iamVjdCgnU0hBUEVfS0VZJyk7IC8vIFRoYXkgJ1NIQVBFX0tFWScgYuG6sW5nIGtow7NhIGLhuqFuIMSR4bq3dCBjaG8gaMOsbmggU2hhcGVcbiAgICAgICAgICAvLyBkZWJ1Z2dlcjtcbiAgICAgICAgICBpZiAoc2hhcGUpIHtcbiAgICAgICAgICAgIHNoYXBlLnN0cm9rZSA9ICdibHVlJzsgLy8gVGhheSDEkeG7lWkgbcOgdSBzdHJva2UgdGjDoG5oIGJsdWVcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIG1vdXNlTGVhdmU6IChlLCBvYmopID0+IHtcbiAgICAgICAgICBzZWxmLm9uSG92ZXJJbmZvQnV0dG9uLmVtaXQobnVsbCk7XG4gICAgICAgICAgLy8gc2VsZi5vbkhvdmVyQWxlcnQuZW1pdChudWxsKTtcbiAgICAgICAgfSxcblxuICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgb2JqPy5kYXRhPy5vblNlbGVjdGVkKG9iaj8uZGF0YSk7XG4gICAgICAgICAgICBzZWxmLm9uQ2xpY2tDb21wb2VudC5lbWl0KHtcbiAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgbm9kZTogbm9kZSxcbiAgICAgICAgICAgICAgY29tcG9uZW50OiBvYmo/LmRhdGEsXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG5cbiAgICAgICAgZG91YmxlQ2xpY2s6IChlLCBvYmo6IGFueSkgPT4ge1xuICAgICAgICAgIGlmICghdGhpcy5faW5pdGlhbE9wdGlvbnM/LmlzUmVhZE9ubHkpIHtcbiAgICAgICAgICAgIGNvbnN0IG5vZGUgPSBvYmoucGFydDtcbiAgICAgICAgICAgIHRoaXMuaXNTaG93Tm9kZUluZm9cbiAgICAgICAgICAgICAgPyBzZWxmLm9uRG91YmxlQ2xpY2tOb2RlLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgbGVmdDogZT8uWydXciddPy54LFxuICAgICAgICAgICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgIDogbnVsbDtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG5cbiAgICAgICAgLy8gVG9kb1xuXG4gICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG5cbiAgICAgICAgc2VsZWN0aW9uQWRvcm5tZW50VGVtcGxhdGU6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICA/IG51bGxcbiAgICAgICAgICA6IHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uQWRvcm5tZW50LFxuICAgICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBzaGFkb3dWaXNpYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIHNoYWRvd0JsdXI6IDYsXG4gICAgICAgICAgICAgICAgc2hhZG93T2Zmc2V0OiBuZXcgZ28uUG9pbnQoMCwgMiksXG4gICAgICAgICAgICAgICAgc2hhZG93Q29sb3I6ICcjMDAwMDAwMjknLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHsgd2lkdGg6IDE3MCB9LFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwge1xuICAgICAgICAgICAgICAgICAgZmlsbDogbnVsbCxcbiAgICAgICAgICAgICAgICAgIHN0cm9rZTogJ2RvZGdlcmJsdWUnLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDQsXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IDMgfSlcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgICB7IGFsaWdubWVudDogZ28uU3BvdC5Ub3BSaWdodCwgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQm90dG9tIH0sXG4gICAgICAgICAgICAgICAgLy8gbW9yZVxuICAgICAgICAgICAgICAgIHRoaXMuZ2VuZXJhdGVBY3Rpb25Hcm91cChbXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FLFxuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkNIQU5HRV9JQ09OLFxuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9OTFlfREVUQUlMUyxcbiAgICAgICAgICAgICAgICAgIC8vICAgRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLk9VVEZMT1csXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVMRVRFLFxuICAgICAgICAgICAgICAgIF0pXG4gICAgICAgICAgICAgICAgLy8gICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICdpc05vdEFjdGlvbicsICh4KSA9PiAheCksXG4gICAgICAgICAgICAgIClcblxuICAgICAgICAgICAgICAvLyAgIHRoaXMuJChcbiAgICAgICAgICAgICAgLy8gICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgIC8vICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgLy8gICAgICAgeyBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wUmlnaHQsIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSB9LFxuICAgICAgICAgICAgICAvLyAgICAgICB0aGlzLmdlbmVyYXRlQWN0aW9uR3JvdXAoW0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5PTkxZX0RFVEFJTFNdKSxcbiAgICAgICAgICAgICAgLy8gICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgKHgpID0+IHtcbiAgICAgICAgICAgICAgLy8gICAgICAgICAgIHJldHVybiB4Py5pc09ubHlEZXRhaWxzICYmICF4Py5pc05vdEFjdGlvbiA/IHRydWUgOiBmYWxzZTtcbiAgICAgICAgICAgICAgLy8gICAgICAgfSksXG4gICAgICAgICAgICAgIC8vICAgKSxcbiAgICAgICAgICAgICksXG4gICAgICB9LFxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KFxuICAgICAgICBnby5Qb2ludC5zdHJpbmdpZnlcbiAgICAgICksXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAnQXV0bycsXG4gICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgLy8gdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgLy8gICAgIGZpbGw6ICd3aGl0ZScsXG4gICAgICAgIC8vICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSU5LX1dBVEVSLFxuICAgICAgICAvLyAgICAgLy8gc3Ryb2tlRGFzaEFycmF5OiBbNSwgNV0sXG4gICAgICAgIC8vIH0pLFxuICAgICAgICAvLyB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHsgcGFkZGluZzogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKSwgdmlzaWJsZTogZmFsc2UgfSksXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAnQXV0bycsXG4gICAgICAgICAge1xuICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDUwLCAwLCA1MCksXG4gICAgICAgICAgfSxcbiAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkxJTktfV0FURVIsXG4gICAgICAgICAgICBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICB9KSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB0aXRsZSwge1xuICAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAwLCAxMCwgMCksXG4gICAgICAgICAgICAgIGRlc2lyZWRTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgMTUpLFxuICAgICAgICAgICAgICBzdHJva2U6ICcjNDQ0NDQ0JyxcbiAgICAgICAgICAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7XG4gICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICB0ZXh0OiB0aXRsZSxcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlBpY3R1cmUsXG4gICAgICAgICAgICAgIGljb24sXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICBkZXNpcmVkU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIHNpemUuaCAtIDY1KSxcbiAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKFxuICAgICAgICAgICAgICAgICdzb3VyY2UnLFxuICAgICAgICAgICAgICAgICdwYXRoSW1hZ2UnLFxuICAgICAgICAgICAgICAgICh4KSA9PlxuICAgICAgICAgICAgICAgICAgeCA/P1xuICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLk5PREVfVEVNUExBVEVTW1xuICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuUExBTlRfQ0VMTFxuICAgICAgICAgICAgICAgICAgXS5pY29uXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIHJvdzogMixcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDAsIDMsIDApLFxuICAgICAgICAgICAgICAgIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIGRlc2lyZWRTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgMTUpLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogJyMyQzJDMkMnLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgLy8gd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAgICAgICAgICAgb3ZlcmZsb3c6IGdvLlRleHRCbG9jay5PdmVyZmxvd0VsbGlwc2lzLFxuICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKVxuICAgICAgICAgICAgKVxuICAgICAgICAgIClcbiAgICAgICAgKVxuICAgICAgKSxcblxuICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICBhbGlnbm1lbnRGb2N1czogbmV3IGdvLlNwb3QoMCwgMC41LCA4LCAwKSxcbiAgICAgIH0pLFxuICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5SaWdodCxcbiAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDEsIDAuNSwgLTgsIDApLFxuICAgICAgfSlcblxuICAgICAgLy8gdGhpcy5tYWtlUG9ydCgnVCcsIGdvLlNwb3QuVG9wLCBnby5TcG90LlRvcFNpZGUsIGZhbHNlLCB0cnVlKSxcbiAgICAgIC8vIHRoaXMubWFrZVBvcnQoJ0wnLCBnby5TcG90LkxlZnQsIGdvLlNwb3QuTGVmdFNpZGUsIGZhbHNlLCB0cnVlKSxcbiAgICAgIC8vIHRoaXMubWFrZVBvcnQoJ1InLCBnby5TcG90LlJpZ2h0LCBnby5TcG90LlJpZ2h0U2lkZSwgdHJ1ZSwgZmFsc2UpLFxuICAgICAgLy8gdGhpcy5tYWtlUG9ydCgnQicsIGdvLlNwb3QuQm90dG9tLCBnby5TcG90LkJvdHRvbVNpZG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G4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBzZWxlY3Rpb25DaGFuZ2VkOiAoZSkgPT4ge1xuICAgICAgICAgIGlmICghZS5pc1NlbGVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBzZWxlY3Rpb25BZG9ybm1lbnRUZW1wbGF0ZTogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgID8gbnVsbFxuICAgICAgICAgIDogdGhpcy4kKFxuICAgICAgICAgICAgICBnby5BZG9ybm1lbnQsXG4gICAgICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgICAgICB0aGlzLiQoZ28uU2hhcGUsIHtcbiAgICAgICAgICAgICAgICAgIGZpbGw6IG51bGwsXG4gICAgICAgICAgICAgICAgICBzdHJva2U6ICdkb2RnZXJibHVlJyxcbiAgICAgICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiA0LFxuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiAzIH0pXG4gICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgICAgICAgICAgeyBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wUmlnaHQsIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkJvdHRvbSB9LFxuICAgICAgICAgICAgICAgIHRoaXMuZ2VuZXJhdGVBY3Rpb25Hcm91cChbXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuUkVOQU1FLFxuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFVEFJTFMsXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuT1VURkxPVyxcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5ERUxFVEUsXG4gICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKSxcbiAgICAgIH0sXG4gICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICd2aXNpYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnbW92YWJsZScsICdtb3ZhYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnc2VsZWN0YWJsZScsICdzZWxlY3RhYmxlJyksXG4gICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgKSxcblxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0F1dG8nLFxuICAgICAgICB7IHdpZHRoOiBzaXplLncsIGhlaWdodDogc2l6ZS5oIH0sXG4gICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSU5LX1dBVEVSLFxuICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICB9KSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgLy8gdGhpcy4kKGdvLlRleHRCbG9jaywgdGl0bGUsIHtcbiAgICAgICAgICAvLyAgICAgcm93OiAwLFxuICAgICAgICAgIC8vICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgIC8vICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgICAgICAvLyAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgLy8gICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgLy8gICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgLy8gfSksXG4gICAgICAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICBkZXNpcmVkU2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIHNpemUuaCAtIDUwKSxcbiAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICB9KSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIHJvdzogMixcbiAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDEwLCAwLCAzLCAwKSxcbiAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgIGRlc2lyZWRTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgMTUpLFxuICAgICAgICAgICAgICBzdHJva2U6ICcjMDAwRDQyJyxcbiAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgIC8vIHdyYXA6IGdvLlRleHRCbG9jay5Ob25lLFxuICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKVxuICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgICAvLyB7XG4gICAgICAgICAgICAvLyAgICAgLy8gZGVmaW5lIGEgdG9vbHRpcCBmb3IgZWFjaCBub2RlIHRoYXQgZGlzcGxheXMgdGhlIGNvbG9yIGFzIHRleHRcbiAgICAgICAgICAgIC8vICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAvLyAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgIC8vICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgeyBtYXJnaW46IDQgfSwgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpKSxcbiAgICAgICAgICAgIC8vICAgICApLCAvLyBlbmQgb2YgQWRvcm5tZW50XG4gICAgICAgICAgICAvLyB9LFxuICAgICAgICAgIClcbiAgICAgICAgKVxuIC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zRWRpdG9yLkVOVU1fQUNUSU9OUy5SRU5BTUUgJiZcbiAgICAgICAgICAgICAgICBvYmoucGFydD8uWydvYiddPy50eXBlICE9PVxuICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlRFWFRfTk9ERSAmJlxuICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5UWVBFX0NPTVBPTkVOVF9XQVRFUj8uaW5jbHVkZXMoXG4gICAgICAgICAgICAgICAgICBvYmoucGFydD8uWydvYiddPy5zeXN0ZW1UeXBlXG4gICAgICAgICAgICAgICAgKSAmJlxuICAgICAgICAgICAgICAgIG9iai5wYXJ0Py5bJ29iJ10/LnRvcG9sb2d5VHlwZSAhPT1cbiAgICAgICAgICAgICAgICAgIEFUT19FQ09NUE9ORU5UX1BMQU5UX1RZUEUuV0FURVIgJiZcbiAgICAgICAgICAgICAgICBvYmoucGFydD8uWydvYiddPy50b3BvbG9neVR5cGUgIT09XG4gICAgICAgICAgICAgICAgICBBVE9fRUNPTVBPTkVOVF9QTEFOVF9UWVBFLldBVEVSX1BMQU5UX0NFTExcbiAgICAgICAgICAgICAgKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgICBhY3Rpb24gPT09IEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5PVVRGTE9XICYmXG4gICAgICAgICAgICAgICAgc2VsZi5wbGFudFNhdHVzID09PSBBVE9fRVBsYW50VHlwZS5CQVNJQ19QTEFOVCAmJlxuICAgICAgICAgICAgICAgIG9iai5wYXJ0Py5kYXRhPy50eXBlID09PVxuICAgICAgICAgICAgICAgICAgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlRFWFRfTk9ERVxuICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgKS5tYXAoKGUpID0+IHtcbiAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgQVRPX0VDT01QT05FTlRfUExBTlRfVFlQRS5TVEVBTSA9PT1cbiAgICAgICAgICAgICAgICBvYmoucGFydD8uWydvYiddPy50b3BvbG9neVR5cGUgJiZcbiAgICAgICAgICAgICAgZSA9PT0gQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLklOU0lHSFRcbiAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICByZXR1cm4gQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRBVEFfTUFQUElORztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChcbiAgICAgICAgICAgICAgZSA9PT0gQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkZMT1dfREVUQUlMUyAmJlxuICAgICAgICAgICAgICBvYmo/LnBhcnQ/Llsnb2InXT8uc3lzdGVtVHlwZSA9PT1cbiAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9UWVBFUy5DT09MSU5HX1RPV0VSXG4gICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgcmV0dXJuIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5GTE9XX0RFVEFJTFNfQU5EX1dJWkFSRDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBlO1xuICAgICAgICAgIH0pO1xuICAgICAgICAgIHNlbGYuYWN0aW9ucyA9IGZpbHRlcmVkQWN0aW9ucy5tYXAoKGFjdGlvbikgPT4ge1xuICAgICAgICAgICAgbGV0IG9uQ2xpY2tGbiA9ICgpID0+IHt9O1xuICAgICAgICAgICAgc3dpdGNoIChhY3Rpb24pIHtcbiAgICAgICAgICAgICAgY2FzZSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuSU5TSUdIVDpcbiAgICAgICAgICAgICAgY2FzZSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREFUQV9NQVBQSU5HOlxuICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgIHNlbGYub25PcGVuSW5zaWdodE1hcHBpbmcuZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgIG5vZGU6IG9iai5wYXJ0LFxuICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgY2FzZSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVUQUlMUzpcbiAgICAgICAgICAgICAgY2FzZSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuRkxPV19ERVRBSUxTOlxuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5GTE9XX0RFVEFJTFNfQU5EX1dJWkFSRDpcbiAgICAgICAgICAgICAgICBvbkNsaWNrRm4gPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBzZWxmLm9uT3BlbkRldGFpbC5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgbm9kZTogb2JqLnBhcnQsXG4gICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5PTkxZX0RFVEFJTFM6XG4gICAgICAgICAgICAgICAgb25DbGlja0ZuID0gKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgc2VsZi5vbk9wZW5EZXRhaWwuZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgIG5vZGU6IG9iai5wYXJ0LFxuICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgY2FzZSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuQVNTRVRfUEFSQU1FVEVSUzpcbiAgICAgICAgICAgICAgICBvbkNsaWNrRm4gPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBzZWxmLm9uT3BlbkFzc2V0UGFyYW1ldGVyLmVtaXQoe1xuICAgICAgICAgICAgICAgICAgICBub2RlOiBvYmoucGFydCxcbiAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgIGNhc2UgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLlJFTkFNRTpcbiAgICAgICAgICAgICAgICBvbkNsaWNrRm4gPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgICAgIG9iai5wYXJ0Py5kYXRhPy50eXBlID09PVxuICAgICAgICAgICAgICAgICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuVEVYVF9OT0RFXG4gICAgICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICAgICAgc2VsZi5vblJlbmFtZS5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LnggLSA1MCxcbiAgICAgICAgICAgICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgICAgICAgICAgICAgICAuLi5vYmoucGFydD8uZGF0YSxcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIC8vIExheW91dFNlcnZpY2Uuc2V0VG9vbFRpcENvbXBvbmVudERhdGFTdGF0aWMoe1xuICAgICAgICAgICAgICAgICAgICAvLyAgICAgY29tcG9uZW50OiBSZW5hbWVCb3hDb21wb25lbnQsXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgbGVmdDogZT8uWydXciddPy54IC0gNTAsXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgdG9wOiBlPy5bJ1dyJ10/LnksXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICAgICAgLi4ub2JqLnBhcnQ/LmRhdGEsXG4gICAgICAgICAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAvLyB9KTtcbiAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIHNlbGYuZWRpdFRleHQoZSwgb2JqKTtcbiAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5PVVRGTE9XOlxuICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgIHNlbGYuY2xpY2tOZXdOb2RlKFxuICAgICAgICAgICAgICAgICAgICBlLFxuICAgICAgICAgICAgICAgICAgICBfLm1lcmdlKG9iaiwge1xuICAgICAgICAgICAgICAgICAgICAgIGFjdGlvbk1vdmU6IHNlbGYuZHJhZ05ld05vZGUsIC8vIGRlZmluZWQgYmVsb3csIHRvIHN1cHBvcnQgZHJhZ2dpbmcgZnJvbSB0aGUgYnV0dG9uXG4gICAgICAgICAgICAgICAgICAgICAgX2RyYWdEYXRhOiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAuLi57XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5URVhUX05PREUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWU6IGAke1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5BQ1RJT05fUklHSFRfTUVOVV9HUk9VUC5EQVRBX0JPWFxuICAgICAgICAgICAgICAgICAgICAgICAgICB9XyR7bW9tZW50KCkudmFsdWVPZigpfWAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgIGNvbG9yOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQkxVRSxcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICAuLi5zZWxmLnNldFByb0ZPck5ld05vZGUoc2VsZiksXG4gICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgY2FzZSBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVMRVRFOlxuICAgICAgICAgICAgICAgIG9uQ2xpY2tGbiA9ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgIHNlbGYuZGVsZXRlTm9kZShlKTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICBjYXNlIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5DSEFOR0VfSUNPTjpcbiAgICAgICAgICAgICAgICBvbkNsaWNrRm4gPSAoKSA9PiB7XG4gICAgICAgICAgICAgICAgICBzZWxmLm9uT3BlbkNoYW5nZUljb24uZW1pdCh7XG4gICAgICAgICAgICAgICAgICAgIG5vZGU6IG9iai5wYXJ0LFxuICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgIC4uLkF0b0RlZmF1bHRHb2pzRWRpdG9yLkFDVElPTlNbYWN0aW9uXSxcbiAgICAgICAgICAgICAgb25DbGljazogKCkgPT4ge1xuICAgICAgICAgICAgICAgIG9uQ2xpY2tGbigpO1xuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfSxcbiAgICAgICAgJ0J1dHRvbkJvcmRlci5zdHJva2VXaWR0aCc6IDAsXG4gICAgICAgICdCdXR0b25Cb3JkZXIuZmlsbCc6ICd3aGl0ZScsXG4gICAgICB9LFxuICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnaXNOb3REcmFnTmV3Tm9kZScsICh4KSA9PiAheCksXG4gICAgICAvLyBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICdpc05vdERlbGV0ZScsICh4KSA9PiAheCksXG4gICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICdpc05vdEFjdGlvbicsICh4KSA9PiAheCksXG4gICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7XG4gICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgdGV4dDogJ1xcdWU0ODknLFxuICAgICAgICBmb250OiAnMjBweCBcIkZvbnQgQXdlc29tZSA2IFByb1wiJyxcbiAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICB9KVxuICAgICk7XG4gIH1cblxuICBhc3luYyBzZXRQcm9GT3JOZXdOb2RlKHNlbGYpIHtcbiAgICBpZiAoc2VsZi5wbGFudFNhdHVzID09PSBBVE9fRVBsYW50VHlwZS5CQVNJQ19QTEFOVCkge1xuICAgICAgcmV0dXJuIHtcbiAgICAgICAgbW92YWJsZTogZmFsc2UsXG4gICAgICAgIGlzTm90QWxsb3dDb25uZWN0OiB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AgICAgIHtcbiAgICAgICAgYmFja2dyb3VuZDogJyM5MTlDQTUnLFxuICAgICAgICB3aWR0aDogNDAsXG4gICAgICAgIGhlaWdodDogNDAsXG4gICAgICAgIGFsaWdubWVudDogYWxpZ24sXG4gICAgICAgIHN0cmV0Y2g6IGhvcml6b250YWxcbiAgICAgICAgICA/IGdvLkdyYXBoT2JqZWN0Lkhvcml6b250YWxcbiAgICAgICAgICA6IGdvLkdyYXBoT2JqZWN0LlZlcnRpY2FsLFxuICAgICAgICBwb3J0SWQ6IG5hbWUsXG4gICAgICAgIGZyb21TcG90OiBzcG90LFxuICAgICAgICBmcm9tTGlua2FibGU6IG91dHB1dCxcbiAgICAgICAgdG9TcG90OiBzcG90LFxuICAgICAgICB0b0xpbmthYmxlOiBpbnB1dCxcbiAgICAgICAgY3Vyc29yOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5ID8gJycgOiAncG9pbnRlcicsXG4gICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkNlbnRlciwgLy8gdOG6rXAgdHJ1bmcgdsOgbyB0cnVuZyB0w6JtIGPhu6dhIFBhbmVsXG4gICAgICAgIC8vIG1vdXNlRW50ZXI6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgLy8gICAgID8gbnVsbFxuICAgICAgICAvLyAgICAgOiAoZSwgcGFuZWwpID0+IHtcbiAgICAgICAgLy8gICAgICAgICAgIGNvbnN0IHRleHRCbG9jayA9IChwYW5lbCBhcyBhbnkpPy5maW5kT2JqZWN0KCd0ZXh0QmxvY2snKSBhcyBnby5UZXh0QmxvY2sgfCBudWxsO1xuICAgICAgICAvLyAgICAgICAgICAgaWYgKHRleHRCbG9jaykge1xuICAgICAgICAvLyAgICAgICAgICAgICAgIC8vICYmIG91dHB1dFxuICAgICAgICAvLyAgICAgICAgICAgICAgIHRleHRCbG9jay52aXNpYmxlID0gdHJ1ZTtcbiAgICAgICAgLy8gICAgICAgICAgICAgICBzd2l0Y2ggKG5hbWUpIHtcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgY2FzZSAnQic6XG4gICAgICAgIC8vICAgICAgICAgICAgICAgICAgIGNhc2UgJ1InOiB7XG4gICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3JnYigyNDMgMTQ0IDE3MSknO1xuICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIC8vICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgY2FzZSAnVCc6XG4gICAgICAgIC8vICAgICAgICAgICAgICAgICAgIGNhc2UgJ0wnOiB7XG4gICAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3JnYigxMDMsMTUxLDIwNyknO1xuICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIC8vICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgZGVmYXVsdDoge1xuICAgICAgICAvLyAgICAgICAgICAgICAgICAgICAgICAgcGFuZWwuYmFja2dyb3VuZCA9ICdyZ2IoMjQzIDE0NCAxNzEpJztcbiAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAvLyAgICAgICAgICAgICAgIH1cbiAgICAgICAgLy8gICAgICAgICAgIH1cbiAgICAgICAgLy8gICAgICAgfSxcblxuICAgICAgICAvLyBtb3VzZUxlYXZlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgIC8vICAgICA/IG51bGxcbiAgICAgICAgLy8gICAgIDogKGUsIHBhbmVsKSA9PiB7XG4gICAgICAgIC8vICAgICAgICAgICBjb25zdCB0ZXh0QmxvY2sgPSAocGFuZWwgYXMgYW55KS5maW5kT2JqZWN0KCd0ZXh0QmxvY2snKSBhcyBnby5UZXh0QmxvY2sgfCBudWxsO1xuICAgICAgICAvLyAgICAgICAgICAgaWYgKHRleHRCbG9jaykge1xuICAgICAgICAvLyAgICAgICAgICAgICAgIHRleHRCbG9jay52aXNpYmxlID0gZmFsc2U7IC8vIOG6qG4gVGV4dEJsb2NrIGtoaSBy4budaSBraOG7j2kgUGFuZWxcbiAgICAgICAgLy8gICAgICAgICAgIH1cbiAgICAgICAgLy8gICAgICAgICAgIHBhbmVsLmJhY2tncm91bmQgPSAndHJhbnNwYXJlbnQnO1xuICAgICAgICAvLyAgICAgICB9LFxuICAgICAgfSxcblxuICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnRWxsaXBzZScsIHtcbiAgICAgICAgZmlsbDogJ3doaXRlJywgLy8gQmFja2dyb3VuZCBjb2xvciBvZiB0aGUgY2lyY2xlXG4gICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICBzdHJva2U6ICcjOTE5Q0E1JywgLy8gQm9yZGVyIGNvbG9yIG9mIHRoZSBjaXJjbGVcbiAgICAgICAgd2lkdGg6IDQwLCAvLyBNYXRjaCB0aGUgcGFuZWwncyB3aWR0aFxuICAgICAgICBoZWlnaHQ6IDQwLCAvLyBNYXRjaCB0aGUgcGFuZWwncyBoZWlnaHRcbiAgICAgIH0pXG5cbiAgICAgIC8vIHRoaXMuJChcbiAgICAgIC8vICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAvLyAgICAge1xuICAgICAgLy8gICAgICAgICBuYW1lOiAndGV4dEJsb2NrJyxcbiAgICAgIC8vICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgLy8gICAgICAgICB0ZXh0OiAnXFx1ZjBkYScsIC8vIE3DoyBVbmljb2RlIHTGsMahbmcg4bupbmcgduG7m2kgZmEtY2FyZXQtbGVmdFxuICAgICAgLy8gICAgICAgICBmb250OiAnOTAwIDEycHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAvLyAgICAgICAgIHN0cm9rZTogJ3doaXRlJywgLy8gxJDhurd0IG3DoHUgY2jhu68gdGjDoG5oIG3DoHUgdHLhuq9uZ1xuICAgICAgLy8gICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgIC8vICAgICAgICAgdmlzaWJsZTogZmFsc2UsXG4gICAgICAvLyAgICAgfSxcbiAgICAgIC8vICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJywgKF8pID0+IHtcbiAgICAgIC8vICAgICAgICAgc3dpdGNoIChuYW1lKSB7XG4gICAgICAvLyAgICAgICAgICAgICBjYXNlICdUJzpcbiAgICAgIC8vICAgICAgICAgICAgIGNhc2UgJ0InOiB7XG4gICAgICAvLyAgICAgICAgICAgICAgICAgcmV0dXJuICdcXHVmMGQ3JztcbiAgICAgIC8vICAgICAgICAgICAgIH1cbiAgICAgIC8vICAgICAgICAgICAgIGNhc2UgJ0wnOlxuICAgICAgLy8gICAgICAgICAgICAgY2FzZSAnUic6IHtcbiAgICAgIC8vICAgICAgICAgICAgICAgICByZXR1cm4gJ1xcdWYwZGEnO1xuICAgICAgLy8gICAgICAgICAgICAgfVxuICAgICAgLy8gICAgICAgICAgICAgZGVmYXVsdDoge1xuICAgICAgLy8gICAgICAgICAgICAgICAgIHJldHVybiAnXFx1ZjBkNyc7XG4gICAgICAvLyAgICAgICAgICAgICB9XG4gICAgICAvLyAgICAgICAgIH1cbiAgICAgIC8vICAgICB9KSxcbiAgICAgIC8vICksXG4gICAgKTtcbiAgfVxuXG4gIG1ha2VQb3J0KG5hbWUsIGFsaWduLCBzcG90LCBvdXRwdXQsIGlucHV0KSB7XG4gICAgLy8gaWYgKHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkpIHtcbiAgICAvLyAgICAgcmV0dXJuIHt9O1xuICAgIC8vIH1cbiAgICBjb25zdCBob3Jpem9udGFsID1cbiAgICAgIGFsaWduLmVxdWFscyhnby5TcG90LlRvcCkgfHwgYWxpZ24uZX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nVuZyB2w6BvIHRydW5nIHTDom0gY+G7p2EgUGFuZWxcbiAgICAgICAgbW91c2VFbnRlcjogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seVxuICAgICAgICAgID8gbnVsbFxuICAgICAgICAgIDogKGUsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgIGNvbnN0IHRleHRCbG9jayA9IChwYW5lbCBhcyBhbnkpPy5maW5kT2JqZWN0KFxuICAgICAgICAgICAgICAgICd0ZXh0QmxvY2snXG4gICAgICAgICAgICAgICkgYXMgZ28uVGV4dEJsb2NrIHwgbnVsbDtcbiAgICAgICAgICAgICAgaWYgKHRleHRCbG9jaykge1xuICAgICAgICAgICAgICAgIC8vICYmIG91dHB1dFxuICAgICAgICAgICAgICAgIHRleHRCbG9jay52aXNpYmxlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICBzd2l0Y2ggKG5hbWUpIHtcbiAgICAgICAgICAgICAgICAgIGNhc2UgJ0InOlxuICAgICAgICAgICAgICAgICAgY2FzZSAnUic6IHtcbiAgICAgICAgICAgICAgICAgICAgcGFuZWwuYmFja2dyb3VuZCA9ICdyZ2IoMjQzIDE0NCAxNzEpJztcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICBjYXNlICdUJzpcbiAgICAgICAgICAgICAgICAgIGNhc2UgJ0wnOiB7XG4gICAgICAgICAgICAgICAgICAgIHBhbmVsLmJhY2tncm91bmQgPSAncmdiKDEwMywxNTEsMjA3KSc7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgZGVmYXVsdDoge1xuICAgICAgICAgICAgICAgICAgICBwYW5lbC5iYWNrZ3JvdW5kID0gJ3JnYigyNDMgMTQ0IDE3MSknO1xuICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcblxuICAgICAgICBtb3VzZUxlYXZlOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5XG4gICAgICAgICAgPyBudWxsXG4gICAgICAgICAgOiAoZSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgY29uc3QgdGV4dEJsb2NrID0gKHBhbmVsIGFzIGFueSkuZmluZE9iamVjdChcbiAgICAgICAgICAgICAgICAndGV4dEJsb2NrJ1xuICAgICAgICAgICAgICApIGFzIGdvLlRleHRCbG9jayB8IG51bGw7XG4gICAgICAgICAgICAgIGlmICh0ZXh0QmxvY2spIHtcbiAgICAgICAgICAgICAgICB0ZXh0QmxvY2sudmlzaWJsZSA9IGZhbHNlOyAvLyDhuqhuIFRleHRCbG9jayBraGkgcuG7nWkga2jhu49pIFBhbmVsXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgcGFuZWwuYmFja2dyb3VuZCA9ICd0cmFuc3BhcmVudCc7XG4gICAgICAgICAgICB9LFxuICAgICAgfSxcblxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgaWYgKGRhdGE/LmlzTm90QWxsb3dDb25uZWN0KSB7XG4gICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICB9XG4gICAgICAgIGlmIChkYXRhPy5zZWxlY3RhYmxlID09PSBmYWxzZSAmJiAhZGF0YT8uaXNBbGxvd0Nvbm5lY3QpIHtcbiAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGRhdGE/LmZsb3dPZlBsYW50Q2VsbCkge1xuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIGRhdGE/LmZsb3dPZlBsYW50Q2VsbCA9PT0gQVRPX0VOVU1fRkxPV19ESVJFQ1RJT04uSU5GTE9XICYmXG4gICAgICAgICAgICBuYW1lID09PSAnTCdcbiAgICAgICAgICApIHtcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAoXG4gICAgICAgICAgICBkYXRhPy5mbG93T2ZQbGFudENlbGwgPT09IEFUT19FTlVNX0ZMT1dfRElSRUNUSU9OLk9VVEZMT1cgJiZcbiAgICAgICAgICAgIG5hbWUgPT09ICdSJ1xuICAgICAgICAgICkge1xuICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgICAgfVxuICAgICAgICBzd2l0Y2ggKG5hbWUpIHtcbiAgICAgICAgICBjYXNlICdCJzpcbiAgICAgICAgICBjYXNlICdSJzoge1xuICAgICAgICAgICAgcmV0dXJuICFkYXRhPy5pc05vdFNlbGVjdE91dHB1dDtcbiAgICAgICAgICB9XG4gICAgICAgICAgY2FzZSAnVCc6XG4gICAgICAgICAgY2FzZSAnTCc6IHtcbiAgICAgICAgICAgIHJldHVybiAhZGF0YT8uaXNOb3RTZWxlY3RJbnB1dDtcbiAgICAgICAgICB9XG4gICAgICAgICAgZGVmYXVsdDoge1xuICAgICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9KSxcblxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgIHtcbiAgICAgICAgICBuYW1lOiAndGV4dEJsb2NrJyxcbiAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgdGV4dDogJ1xcdWYwZGEnLCAvLyBNw6MgVW5pY29kZSB0xrDGoW5nIOG7qW5nIHbhu5tpIGZhLWNhcmV0LWxlZnRcbiAgICAgICAgICBmb250OiAnOTAwIDEycHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAgICAgc3Ryb2tlOiAnd2hpdGUnLCAvLyDEkOG6t3QgbcOgdSBjaOG7ryB0aMOgbmggbcOgdSB0cuG6r25nXG4gICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgdmlzaWJsZTogZmFsc2UsXG4gICAgICAgIH0sXG4gICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnLCAoXykgPT4ge1xuICAgICAgICAgIHN3aXRjaCAobmFtZSkge1xuICAgICAgICAgICAgY2FzZSAnVCc6XG4gICAgICAgICAgICBjYXNlICdCJzoge1xuICAgICAgICAgICAgICByZXR1cm4gJ1xcdWYwZDcnO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgY2FzZSAnTCc6XG4gICAgICAgICAgICBjYXNlICdSJzoge1xuICAgICAgICAgICAgICByZXR1cm4gJ1xcdWYwZGEnO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZGVmYXVsdDoge1xuICAgICAgICAgICAgICByZXR1cm4gJ1xcdWYwZDcnO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICAgIClcbiAgICApO1xuXG4gICAgLy8gcmV0dXJuIHRoaXMuJChnby5TaGFwZSwge1xuICAgIC8vICAgICBmaWxsOiAndHJhbnNwYXJlbnQnLCAvLyBjaGFuZ2VkIHRvIGEgY29sb3IgaW4gdGhlIG1vdXNlRW50ZXIgZXZlbnQgaGFuZGxlclxuICAgIC8vICAgICBzdHJva2VXaWR0aDogMCwgLy8gbm8gc3Ryb2tlXG4gICAgLy8gICAgIHdpZHRoOiBob3Jpem9udGFsID8gTmFOIDogOCwgLy8gaWYgbm90IHN0cmV0Y2hpbmcgaG9yaXpvbnRhbGx5LCBqdXN0IDggd2lkZVxuICAgIC8vICAgICBoZWlnaHQ6ICFob3Jpem9udGFsID8gTmFOIDogOCwgLy8gaWYgbm90IHN0cmV0Y2hpbmcgdmVydGljYWxseSwganVzdCA4IHRhbGxcbiAgICAvLyAgICAgYWxpZ25tZW50OiBhbGlnbiwgLy8gYWxpZ24gdGhlIHBvcnQgb24gdGhlIG1haW4gU2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5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApIH0pLFxuICAgICAgKVxuICAgICAgLy8gdGhpcy4kKGdvLlRleHRCbG9jaywgdGl0bGUsIHtcbiAgICAgIC8vICAgICByb3c6IDAsXG4gICAgICAvLyAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApLFxuICAgICAgLy8gICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgLy8gICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAvLyAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgIC8vICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgIC8vIH0sXG4gICAgICAvLyBuZXcgZ28uQmluZGluZygndGV4dCcsICdrZXknKS5tYWtlVHdvV2F5KCksKSxcblxuICAgICAgLy8gdGhpcy4kKFxuICAgICAgLy8gICAgIGdvLlBhbmVsLFxuICAgICAgLy8gICAgICdUYWJsZScsXG4gICAgICAvLyAgICAge1xuICAgICAgLy8gICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wTGVmdCxcbiAgICAgIC8vICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAsIC0xMCwgLTEwKSxcbiAgICAgIC8vICAgICAgICAgLy8gcGFkZGluZzogbmV3IGdvLk1hcmdpbigwLCAwLCA1MCwgMCksXG4gICAgICAvLyAgICAgfSxcbiAgICAgIC8vICAgICB0aGlzLiQoXG4gICAgICAvLyAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgLy8gICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAvLyAgICAgICAgIHtcbiAgICAgIC8vICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgIC8vICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgLy8gICAgICAgICB9LFxuICAgICAgLy8gICAgICAgICB0aGlzLiQoZ28uUGljdHVyZSwgaWNvbiwge1xuICAgICAgLy8gICAgICAgICAgICAgcm93OiAwLFxuICAgICAgLy8gICAgICAgICAgICAgLy8gYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgIC8vICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgLy8gICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoNDAsIDQwKSxcbiAgICAgIC8vICAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgIC8vICAgICAgICAgfSksXG4gICAgICAvLyAgICAgICAgIHRoaXMuJChcbiAgICAgIC8vICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgLy8gICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgIC8vICAgICAgICAgICAgIHtcbiAgICAgIC8vICAgICAgICAgICAgICAgICBjb2x1bW46IDEsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgZGVmYXVsdEFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgLy8gICAgICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgwLCAwLCAwLCAyMCksXG4gICAgICAvLyAgICAgICAgICAgICB9LFxuICAgICAgLy8gICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgdGl0bGUsIHtcbiAgICAgIC8vICAgICAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDMsIDUsIDEwKSxcbiAgICAgIC8vICAgICAgICAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgIC8vICAgICAgICAgICAgICAgICBzdHJva2U6ICcjNDQ0NDQ0JyxcbiAgICAgIC8vICAgICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgLy8gICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAvLyAgICAgICAgICAgICB9KSxcbiAgICAgIC8vICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgIC8vICAgICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAvLyAgICAgICAgICAgICAgICAge1xuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAzLCAzLCAxMCksXG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgIGVkaXRhYmxlOiB0cnVlLFxuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgNDApLFxuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICBzdHJva2U6ICcjMDAwRDQyJyxcbiAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTBwdCBBcmlhbCcsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5Ob25lLFxuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAvLyAgICAgICAgICAgICAgICAgfSxcbiAgICAgIC8vICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpLFxuICAgICAgLy8gICAgICAgICAgICAgICAgIHtcbiAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgLy8gZGVmaW5lIGEgdG9vbHRpcCBmb3IgZWFjaCBub2RlIHRoYXQgZGlzcGxheXMgdGhlIGNvbG9yIGFzIHRleHRcbiAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgdG9vbFRpcDogdGhpcy4kKFxuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgICAgJ1Rvb2xUaXAnLFxuICAgICAgLy8gICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgeyBtYXJnaW46IDQgfSwgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpKSxcbiAgICAgIC8vICAgICAgICAgICAgICAgICAgICAgKSwgLy8gZW5kIG9mIEFkb3JubWVudFxuICAgICAgLy8gICAgICAgICAgICAgICAgIH0sXG4gICAgICAvLyAgICAgICAgICAgICApLFxuICAgICAgLy8gICAgICAgICApLFxuICAgICAgLy8gICAgICksXG4gICAgICAvLyApLFxuICAgICk7XG4gICAgdGhpcy5teURpYWdyYW0uZ3JvdXBUZW1wbGF0ZU1hcC5zZXQodGl0bGUsIG5vZGUpO1xuICB9XG5cbiAgbWFrZUdyb3VwVGVtcGxhdGUoXG4gICAgaWNvbixcbiAgICB0aXRsZSxcbiAgICBzaXplOiB7IHc6IG51bWJlcjsgaDogbnVtYmVyIH0gPSB7IHc6IDgwLCBoOiA4MCB9XG4gICkge1xuICAgIGxldCBub2RlID0gdGhpcy4kKFxuICAgICAgZ28uR3JvdXAsXG4gICAgICAnU3BvdCcsXG4gICAgICB7XG4gICAgICAgIC8vICAgICAvLyBsYXlvdXQ6IHRoaXMuJChnby5Gb3JjZURpcmVjdGVkTGF5b3V0ICwge1xuICAgICAgICAvLyAgICAgLy8gICAgIGRpcmVjdGlvbjogMCxcbiAgICAgICAgLy8gICAgIC8vICAgICBzZXRzUG9ydFNwb3RzOiBmYWxzZSxcbiAgICAgICAgLy8gICAgIC8v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GdvLlNpemUoc2l6ZS53IC0gMjAsIE5hTiksXG4gICAgICAvLyAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgLy8gICAgICAgICBmb250OiAnbm9ybWFsIDhwdCBBcmlhbCcsXG4gICAgICAvLyAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAvLyAgICAgfSksXG4gICAgICAvLyAgICAgdGhpcy4kKGdvLlBpY3R1cmUsIGljb24sIHtcbiAgICAgIC8vICAgICAgICAgcm93OiAxLFxuICAgICAgLy8gICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgLy8gICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg0MCwgNDApLFxuICAgICAgLy8gICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAvLyAgICAgfSksXG4gICAgICAvLyAgICAgdGhpcy4kKFxuICAgICAgLy8gICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAvLyAgICAgICAgIHtcbiAgICAgIC8vICAgICAgICAgICAgIHJvdzogMixcbiAgICAgIC8vICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigxMCwgMywgMywgMyksXG4gICAgICAvLyAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgIC8vICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCA0MCksXG4gICAgICAvLyAgICAgICAgICAgICBzdHJva2U6ICcjMDAwRDQyJyxcbiAgICAgIC8vICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDhwdCBBcmlhbCcsXG4gICAgICAvLyAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgLy8gICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAvLyAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAvLyAgICAgICAgIH0sXG4gICAgICAvLyAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWUnKS5tYWtlVHdvV2F5KCksXG4gICAgICAvLyAgICAgICAgIHtcbiAgICAgIC8vICAgICAgICAgICAgIC8vIGRlZmluZSBhIHRvb2x0aXAgZm9yIGVhY2ggbm9kZSB0aGF0IGRpc3BsYXlzIHRoZSBjb2xvciBhcyB0ZXh0XG4gICAgICAvLyAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoJ1Rvb2xUaXAnLCB0aGlzLiQoZ28uVGV4dEJsb2NrLCB7IG1hcmdpbjogNCB9LCBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykpKSwgLy8gZW5kIG9mIEFkb3JubWVudFxuICAgICAgLy8gICAgICAgICB9LFxuICAgICAgLy8gICAgICksXG4gICAgICAvLyAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KGdvLlBvaW50LnN0cmluZ2lmeSksXG4gICAgICAvLyApLFxuXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAnVGFibGUnLFxuICAgICAgICB7XG4gICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LlRvcExlZnQsXG4gICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAsIC0xMCwgLTEwKSxcbiAgICAgICAgICAvLyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDUwLCAwKSxcbiAgICAgICAgfSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICB7XG4gICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICB9LFxuICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICAvLyBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg0MCwgNDApLFxuICAgICAgICAgICAgaW1hZ2VTdHJldGNoOiBnby5HcmFwaE9iamVjdC5Vbmlmb3JtLFxuICAgICAgICAgIH0pLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgY29sdW1uOiAxLFxuICAgICAgICAgICAgICBkZWZhdWx0QWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgwLCAwLCAwLCAyMCksXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5URU1QTEFURV9EVVBMSUNBVEVbdGl0bGVdID8/IHRpdGxlLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgcm93OiAwLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigzLCAzLCA1LCAxMCksXG4gICAgICAgICAgICAgICAgLy8gbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMjAsIE5hTiksXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiAnIzQ0NDQ0NCcsXG4gICAgICAgICAgICAgICAgZm9udDogJ25vcm1hbCAxMHB0IEFyaWFsJyxcbiAgICAgICAgICAgICAgICB0ZXh0QWxpZ246ICdjZW50ZXInLFxuICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICByb3c6IDEsXG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDMsIDMsIDEwKSxcbiAgICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAvLyBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgNDApLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogJyMwMDBENDInLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICdib2xkIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLk5vbmUsXG4gICAgICAgICAgICAgICAgb3ZlcmZsb3c6IGdvLlRleHRCbG9jay5PdmVyZmxvd0VsbGlwc2lzLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgLy8gZGVmaW5lIGEgdG9vbHRpcCBmb3IgZWFjaCBub2RlIHRoYXQgZGlzcGxheXMgdGhlIGNvbG9yIGFzIHRleHRcbiAgICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAgeyBtYXJnaW46IDQgfSxcbiAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpXG4gICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgKSwgLy8gZW5kIG9mIEFkb3JubWVudFxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICApXG4gICAgICAgICAgKVxuICAgICAgICApXG4gICAgICApXG4gICAgKTtcblxuICAgIHRoaXMubXlEaWFncmFtLmdyb3VwVGVtcGxhdGVNYXAuc2V0KHRpdGxlLCBub2RlKTtcbiAgfVxuXG4gIG1ha2VJbWFnZVRlbXBsYXRlKCkge1xuICAgIGNvbnN0IG5vZGUgPSB0aGlzLiQoXG4gICAgICBnby5Ob2RlLFxuICAgICAgJ1Nwb3QnLFxuICAgICAge1xuICAgICAgICB6T3JkZXI6IDEsXG4gICAgICB9LFxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ3NlbGVjdGFibGUnLCAnc2VsZWN0YWJsZScpLFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0hvcml6b250YWwnLFxuICAgICAgICB7XG4gICAgICAgICAgcm93OiAwLFxuICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICB9LFxuICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICAgICksXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QaWN0dXJlLFxuICAgICAgICAgIEF0b0dvanNFZGl0b3JNb2RlbC5JTUFHRV9ST19XQVRFUl9UUkVBVE1FTlRfUEFUSCxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICA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AgICAgICAgICBnby5TaGFwZSxcbiAgICAgICAgICAnUm91bmRlZFJlY3RhbmdsZScsXG4gICAgICAgICAge1xuICAgICAgICAgICAgcGFyYW1ldGVyMTogNSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmaWxsJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICByZXR1cm4gZGF0YT8uY29sb3I7XG4gICAgICAgICAgfSksXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIGRhdGE/LmNvbG9yO1xuICAgICAgICAgIH0pXG4gICAgICAgICksXG5cbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBzdHJva2U6ICd3aGl0ZScsXG4gICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgNSksXG4gICAgICAgICAgICBzdHJldGNoOiBnby5HcmFwaE9iamVjdC5GaWxsLFxuICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICB2ZXJ0aWNhbEFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICBmb250OiAnMTRweCBzYW5zLXNlcmlmJyxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ3RpdGxlJylcbiAgICAgICAgKVxuICAgICAgKSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uU2hhcGUsXG4gICAgICAgICdSZWN0YW5nbGUnLFxuICAgICAgICB7XG4gICAgICAgICAgaGVpZ2h0OiA2LFxuICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAtNiwgMCksXG4gICAgICAgICAgc3RyZXRjaDogZ28uR3JhcGhPYmplY3QuRmlsbCxcbiAgICAgICAgfSxcbiAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2ZpbGwnLCAnJywgKGRhdGEpID0+IHtcbiAgICAgICAgICByZXR1cm4gZGF0YT8uY29sb3I7XG4gICAgICAgIH0pLFxuICAgICAgICBuZXcgZ28uQmluZGluZygnc3Ryb2tlJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgcmV0dXJuIGRhdGE/LmNvbG9yO1xuICAgICAgICB9KSxcbiAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgKGRhdGEpID0+ICEhZGF0YT8udGl0bGUpXG4gICAgICApLFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0F1dG8nLFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uU2hhcGUsXG4gICAgICAgICAgJ1JvdW5kZWRSZWN0YW5nbGUnLFxuICAgICAgICAgIHsgZmlsbDogJyNFNkYwRjcnLCBzdHJva2U6ICcjMDA2M0E5Jywgc3Ryb2tlV2lkdGg6IDQsIHBhcmFtZXRlcjE6IDUgfSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnZmlsbCcsICdiZ0NvbG9yJyksXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICdib3JkZXJUYWJsZScpXG4gICAgICAgICksXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgIC8vIFNldCBkZWZhdWx0cyBmb3IgYWxsIHJvd3MgYW5kIGNvbHVtbnM6XG4gICAgICAgICAge1xuICAgICAgICAgICAgcGFkZGluZzogMS41LFxuICAgICAgICAgICAgZGVmYXVsdFJvd1NlcGFyYXRvclN0cm9rZTogJyMwMDYyQTknLFxuICAgICAgICAgICAgZGVmYXVsdENvbHVtblNlcGFyYXRvclN0cm9rZTogJyMwMDYyQTknLFxuICAgICAgICAgICAgZGVmYXVsdFNlcGFyYXRvclBhZGRpbmc6IG5ldyBnby5NYXJnaW4oNSwgMiwgNSwgMiksXG4gICAgICAgICAgfSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnZGVmYXVsdFJvd1NlcGFyYXRvclN0cm9rZScsICdib3JkZXJUYWJsZScpLFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdkZWZhdWx0Q29sdW1uU2VwYXJhdG9yU3Ryb2tlJywgJ2JvcmRlclRhYmxlJyksXG4gICAgICAgICAgLy8gdGhpcy4kKFxuICAgICAgICAgIC8vICAgICBnby5QYW5lbCxcbiAgICAgICAgICAvLyAgICAgJ1RhYmxlUm93JyxcbiAgICAgICAgICAvLyAgICAgeyByb3c6IDAgfSxcbiAgICAgICAgICAvLyAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgJ3JvdyAxIGNvbCAxJywgeyBjb2x1bW46IDAsIG1hcmdpbjogMiB9KSxcbiAgICAgICAgICAvLyAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgJ3JvdyAxIGNvbCAyJywgeyBjb2x1bW46IDEsIG1hcmdpbjogMiB9KSxcbiAgICAgICAgICAvLyApLFxuICAgICAgICAgIC8vIHRoaXMuJChcbiAgICAgICAgICAvLyAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgLy8gICAgICdUYWJsZVJvdycsXG4gICAgICAgICAgLy8gICAgIHsgcm93OiAxIH0sXG4gICAgICAgICAgLy8gICAgIHRoaXMuJChnby5UZXh0QmxvY2ssICdyb3cgMiBjb2wgMScsIHsgY29sdW1uOiAwLCBtYXJnaW46IDIgfSksXG4gICAgICAgICAgLy8gICAgIHRoaXMuJChnby5UZXh0QmxvY2ssICdyb3cgMiBjb2wgMicsIHsgY29sdW1uOiAxLCBtYXJnaW46IDIgfSksXG4gICAgICAgICAgLy8gKSxcbiAgICAgICAgICAvLyBuZXcgZ28uQmluZGluZygnaXRlbUFycmF5JywgJ2RhdGFUYWJsZScpLFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdpdGVtQXJyYXknLCAnJywgZnVuY3Rpb24gKGRhdGEpIHtcbiAgICAgICAgICAgIHJldHVybiBkYXRhLmRhdGFUYWJsZS5maWx0ZXIoKHgpID0+IHg/LnZpc2libGUgIT09IGZhbHNlKTtcbiAgICAgICAgICB9KSxcbiAgICAgICAgICB7XG4gICAgICAgICAgICAvLyBpdGVtVGVtcGxhdGU6IHRoaXMuJChcbiAgICAgICAgICAgIC8vICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgIC8vICAgICBuZXcgZ28uQmluZGluZygncm93JywgJ2luZGV4Um93JyksXG4gICAgICAgICAgICAvLyAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2hlaWdodCcsICdoZWlnaHQnKSxcbiAgICAgICAgICAgIC8vICAgICB0aGlzLiQoXG4gICAgICAgICAgICAvLyAgICAgICAgIGdvLlBpY3R1cmUsXG4gICAgICAgICAgICAvLyAgICAgICAgIEFSUk9XLFxuICAgICAgICAgICAgLy8gICAgICAgICB7XG4gICAgICAgICAgICAvLyAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgLy8gICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoMjAsIDQwKSxcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIC8vIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICAgIC8vICAgICAgICAgfSxcbiAgICAgICAgICAgIC8vICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3NvdXJjZScsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgIC8vICAgICAgICAgICAgIC8vIHBhbmVsLnBhcnQ/LmRhdGE/LmlkXG4gICAgICAgICAgICAvLyAgICAgICAgICAgICByZXR1cm4gZGF0YT8uaXNDcmVhdGVkID8gcGFuZWw/LiRwIDogQVJST1dfR1JBWTtcbiAgICAgICAgICAgIC8vICAgICAgICAgfSksXG4gICAgICAgICAgICAvLyAgICAgKSxcbiAgICAgICAgICAgIC8vICksXG4gICAgICAgICAgICBpdGVtVGVtcGxhdGU6IHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICdUYWJsZVJvdycsXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgICAgIG9iai5wYW5lbC5wYXJ0LmRhdGE/LmRhdGFUYWJsZVtvYmoucm93XT8uaXNFZGl0YWJsZSA9PT1cbiAgICAgICAgICAgICAgICAgICAgZmFsc2VcbiAgICAgICAgICAgICAgICAgICkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICBzZWxmLm9uQ2xpa1BhcmFtT2ZUYWJsZS5lbWl0KHtcbiAgICAgICAgICAgICAgICAgICAgLi4ub2JqLnBhbmVsLnBhcnQuZGF0YT8uZGF0YVRhYmxlW29iai5yb3ddLFxuICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICcnLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIGNvbHVtbjogMCxcbiAgICAgICAgICAgICAgICAgIG1hcmdpbjogMixcbiAgICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2xlZnQnLFxuICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgICAgICB0b29sVGlwOiB0aGlzLiQoXG4gICAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy5uYW1lO1xuICAgICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICcnLCAoZGF0YSwgcGFuZWwpID0+IHtcbiAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy5uYW1lO1xuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdtYXhTaXplJywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE/Lm1heFNpemVOYW1lUGFyYW07XG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdUYWJsZScsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgY29sdW1uOiAxLFxuICAgICAgICAgICAgICAgICAgbWFyZ2luOiAyLFxuICAgICAgICAgICAgICAgICAgcGFkZGluZzogMCxcbiAgICAgICAgICAgICAgICAgIGRlZmF1bHRTZXBhcmF0b3JQYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApLFxuICAgICAgICAgICAgICAgICAgc3RyZXRjaDogZ28uR3JhcGhPYmplY3QuRmlsbCxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdtaW5TaXplJywgJycsIChkYXRhLCBwYW5lbCkgPT4ge1xuICAgICAgICAgICAgICAgICAgLy8gcmV0dXJuIHBhbmVsLnBhcnQ/LmRhdGE/Lm1pblNpemVWYWx1ZTtcbiAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgZ28uU2l6ZShcbiAgICAgICAgICAgICAgICAgICAgcGFuZWwucGFydD8uZGF0YT8ubWluU2l6ZVZhbHVlPy53aWR0aCxcbiAgICAgICAgICAgICAgICAgICAgTmFOXG4gICAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAgICAgICcnLFxuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBjb2x1bW46IDAsXG4gICAgICAgICAgICAgICAgICAgIG1hcmdpbjogMCxcbiAgICAgICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkxlZnQsXG4gICAgICAgICAgICAgICAgICAgIG92ZXJmbG93OiBnby5UZXh0QmxvY2suT3ZlcmZsb3dFbGxpcHNpcyxcbiAgICAgICAgICAgICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBgJHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAhIXRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gYCR7ZGF0YT8udGFnTmFtZSB8fCAnJ30gYFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAnJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICB9JHtkYXRhPy52YWx1ZX1gO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgISF0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5ICYmXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YT8udGFnTmFtZVxuICAgICAgICAgICAgICAgICAgICAgICAgICApIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAhIWRhdGE/LnZhbHVlO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy52YWx1ZTtcbiAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3N0cm9rZScsICcnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIXRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHkpIHtcbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGEuY29sb3I7XG4gICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdtYXhTaXplJywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBuZXcgZ28uU2l6ZShkYXRhPy5tYXhTaXplVmFsdWUgfHwgMTkwLCAxNCk7XG4gICAgICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdmb250JywgJycsIChkYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy5mb250O1xuICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgIGdvLlBpY3R1cmUsXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5SaWdodCxcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uOiAxLFxuICAgICAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgNSksXG4gICAgICAgICAgICAgICAgICAgIHNvdXJjZTogSUNPTlNfQkFTRTY0Wyd1ZjA0NCddLFxuICAgICAgICAgICAgICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAgICAgdmlzaWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy50b29sVGlwQWN0aW9uO1xuICAgICAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKFxuICAgICAgICAgICAgICAgICAgICAgICAgJ3Zpc2libGUnLFxuICAgICAgICAgICAgICAgICAgICAgICAgJycsXG4gICAgICAgICAgICAgICAgICAgICAgICAoZGF0YSkgPT4gISFkYXRhPy50b29sVGlwQWN0aW9uXG4gICAgICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICBoZWlnaHQ6IDE0LFxuICAgICAgICAgICAgICAgICAgICB3aWR0aDogMTQsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgICAgICAgICAgIWRhdGE/LmlzUmVhZE9ubHkgJiYgIXRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ29wYWNpdHknLCAnJywgKGRhdGEsIHBhbmVsKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRhPy5pc0VkaXRhYmxlID09PSBmYWxzZSA/IDAuNiA6IDE7XG4gICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKSxcbiAgICAgICAgICB9XG4gICAgICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpXG4gICAgICAgIClcbiAgICAgIClcbiAgICApO1xuICAgIHRoaXMubXlEaWFncmFtLm5vZGVUZW1wbGF0ZU1hcC5zZXQoXG4gICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuUEFSQU1fVEFCTEUsXG4gICAgICBub2RlXG4gICAgKTtcbiAgfVxuXG4gIG1ha2VNYXNzQmFsYW5jZSgpIHtcbiAgICBjb25zdCBzZWxmID0gdGhpcztcbiAgICBjb25zdCBub2RlID0gdGhpcy4kKFxuICAgICAgZ28uUGFydCxcbiAgICAgICdBdXRvJyxcbiAgICAgIHt9LFxuICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KFxuICAgICAgICBnby5Qb2ludC5zdHJpbmdpZnlcbiAgICAgICksXG4gICAgICBuZXcgZ28uQmluZGluZygnc2VsZWN0YWJsZScsICdzZWxlY3RhYmxlJyksXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAnSG9yaXpvbnRhbCcsXG4gICAgICAgIC8vIFNldCBkZWZhdWx0cyBmb3IgYWxsIHJvd3MgYW5kIGNvbHVtbnM6XG4gICAgICAgIHtcbiAgICAgICAgICBwYWRkaW5nOiA0LFxuICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDQ1MCwgMzApLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICd0b29sdGlwJylcbiAgICAgICAgICAgIClcbiAgICAgICAgICApLFxuICAgICAgICAgIHZpc2libGU6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHksXG4gICAgICAgIH0sXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgJycsXG4gICAgICAgICAge1xuICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDAsIDUsIDAsIDApLFxuICAgICAgICAgICAgdGV4dDogJ01hc3MgQmFsYW5jZTonLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2ZvbnQnLCAnZm9udCcpXG4gICAgICAgICksXG4gICAgICAgIHRoaXMuJChcbiAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgJycsXG4gICAgICAgICAge1xuICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQUxJWkFSSU4sXG4gICAgICAgICAgfSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnZm9udCcsICdmb250JyksXG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xuICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICB7XG4gICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApLFxuICAgICAgICAgIH0sXG4gICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgICAgIG5hbWU6ICdTSEFQRV9LRVknLFxuICAgICAgICAgICAgZmlsbDogJyNGQ0ZDRkQnLFxuICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuUkVTT0xVVElPTl9CTFVFLFxuICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICB9KSxcblxuICAgICAgICAgIHRoaXMuJChnby5QbGFjZWhvbGRlciwgeyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDE1LCAwLCAwLCAwKSB9KVxuICAgICAgICApLFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICBST19MSU5FX0RJUlRZLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICB9LFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd2aXNpYmxlJywgJycsICh4KSA9PiB7XG4gICAgICAgICAgICByZXR1cm4geD8uaXNWaWV3R2VuZXJhbCAmJiB4Py5oYXNPdXRGbG93ID8gdHJ1ZSA6IGZhbHNlO1xuICAgICAgICAgIH0pXG4gICAgICAgIClcbiAgICAgICksXG5cbiAgICAgIHRoaXMuJChnby5QYW5lbCwgJ1RhYmxlJywge1xuICAgICAgICB3aWR0aDogMCxcbiAgICAgICAgaGVpZ2h0OiAwLFxuICAgICAgICBhbGlnbm1lbnQ6IG5ldyBnby5TcG90KDAsIDA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ICAgIGxldCBub2RlID0gdGhpcy4kKFxuICAgICAgZ28uR3JvdXAsXG4gICAgICAnU3BvdCcsXG4gICAgICB7XG4gICAgICAgIHNlbGVjdGFibGU6IGZhbHNlLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgLy8gbWluU2l6ZTogbmV3IGdvLlNpemUoTmFOLCA2MDApLFxuICAgICAgfSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdzZWxlY3RhYmxlJywgJ3NlbGVjdGFibGUnKSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAge1xuICAgICAgICAgIHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMCwgMCwgMCwgMCksXG4gICAgICAgIH0sXG4gICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JvdW5kZWRSZWN0YW5nbGUnLCB7XG4gICAgICAgICAgbmFtZTogJ1NIQVBFX0tFWScsXG4gICAgICAgICAgZmlsbDogJyNGQ0ZDRkQnLFxuICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlJFU09MVVRJT05fQkxVRSxcbiAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgfSksXG5cbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBsYWNlaG9sZGVyLFxuICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgICAgIGdvLlBvaW50LnN0cmluZ2lmeVxuICAgICAgICAgICksXG4gICAgICAgICAgeyBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApIH1cbiAgICAgICAgKVxuICAgICAgKSxcblxuICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnU3BvdCcsIHtcbiAgICAgICAgd2lkdGg6IDAsXG4gICAgICAgIGhlaWdodDogMCxcbiAgICAgICAgYWxpZ25tZW50OiBuZXcgZ28uU3BvdCgwLCAwLjUsIDAsIDExMiksXG4gICAgICAgIGFsaWdubWVudEZvY3VzOiBnby5TcG90LkxlZnQsXG4gICAgICAgIHBvcnRJZDogJ0luZmxvdycsXG4gICAgICAgIGN1cnNvcjogdGhpcy5faW5pdGlhbE9wdGlvbnMuaXNSZWFkT25seSA/ICcnIDogJ3BvaW50ZXInLFxuICAgICAgICBmcm9tU3BvdDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICB0b1Nwb3Q6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgZnJvbUxpbmthYmxlOiB0cnVlLFxuICAgICAgICB0b0xpbmthYmxlOiB0cnVlLFxuICAgICAgfSksXG4gICAgICB0aGlzLiQoXG4gICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAnU3BvdCcsXG4gICAgICAgIHtcbiAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5Ub3AsXG4gICAgICAgICAgYWxpZ25tZW50OiBuZXcgZ28uU3BvdCgxLCAxLCAtMjE1LCAwKSxcbiAgICAgICAgfSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBpY3R1cmUsXG4gICAgICAgICAgT1VURkxPV19MSU5FX0RJUlRZLFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIHdpZHRoOiAxMCxcbiAgICAgICAgICAgIGhlaWdodDogMjAsXG4gICAgICAgICAgfSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICcnLCAoeCkgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIHg/LmlzVmlld0dlbmVyYWwgJiYgeD8uaGFzT3V0RmxvdyA/IHRydWUgOiBmYWxzZTtcbiAgICAgICAgICB9KVxuICAgICAgICApLFxuICAgICAgICB0aGlzLiQoZ28uUGFuZWwsIHtcbiAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQm90dG9tTGVmdCxcbiAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5Ub3AsXG4gICAgICAgICAgcG9ydElkOiAnT3V0RmxvdycsXG4gICAgICAgICAgY3Vyc29yOiB0aGlzLl9pbml0aWFsT3B0aW9ucy5pc1JlYWRPbmx5ID8gJycgOiAncG9pbnRlcicsXG4gICAgICAgICAgZnJvbVNwb3Q6IGdvLlNwb3QuQm90dG9tLFxuICAgICAgICAgIGZyb21MaW5rYWJsZTogdHJ1ZSxcbiAgICAgICAgICB0b0xpbmthYmxlOiB0cnVlLFxuICAgICAgICB9KVxuICAgICAgKVxuICAgICk7XG5cbiAgICB0aGlzLm15RGlhZ3JhbS5ncm91cFRlbXBsYXRlTWFwLnNldCh0aXRsZSwgbm9kZSk7XG4gIH1cblxuICBtYWtlR3JvdXBDb29saW5nVG93ZXJUZW1wbGF0ZShcbiAgICBpY29uLFxuICAgIHRpdGxlLFxuICAgIHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHsgdzogODAsIGg6IDgwIH1cbiAgKSB7XG4gICAgbGV0IG5vZGUgPSB0aGlzLiQoXG4gICAgICBnby5Hcm91cCxcbiAgICAgICdTcG90JyxcbiAgICAgIHtcbiAgICAgICAgc2VsZWN0YWJsZTogZmFsc2UsXG4gICAgICAgIGxheW91dDogdGhpcy4kKGdvLkxheW91dCksXG4gICAgICAgIHBhZGRpbmc6IG5ldyBnby5NYXJnaW4oMCwgMzAsIDAsIDApLFxuICAgICAgfSxcbiAgICAgIG5ldyBnby5CaW5kaW5nKCdsb2NhdGlvbicsICdsb2MnLCBnby5Qb2ludC5wYXJzZSkubWFrZVR3b1dheShcbiAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICApLFxuICAgICAgdGhpcy4kKFxuICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgJ0F1dG8nLFxuICAgICAgICB7XG4gICAgICAgICAgcm93OiAwLFxuICAgICAgICAgIHBhZGRpbmc6IG5ld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F0aW9uOiBmdW5jdGlvbiAobm9kZSwgcHQsIGdyaWRQdCkge1xuICAgICAgICAvLyAgICAgbGV0IGdycCA9IG5vZGUuY29udGFpbmluZ0dyb3VwO1xuICAgICAgICAvLyAgICAgaWYgKGdycCAhPT0gbnVsbCkge1xuICAgICAgICAvLyAgICAgICAgIGxldCByZWN0ID0gZ3JwLmFjdHVhbEJvdW5kcztcbiAgICAgICAgLy8gICAgICAgICBwdC54ID0gTWF0aC5tYXgocmVjdC5sZWZ0LCBNYXRoLm1pbihwdC54LCByZWN0LnJpZ2h0KSk7XG4gICAgICAgIC8vICAgICAgICAgcHQueSA9IE1hdGgubWF4KHJlY3QudG9wLCBNYXRoLm1pbihwdC55LCByZWN0LmJvdHRvbSkpO1xuICAgICAgICAvLyAgICAgfVxuICAgICAgICAvLyAgICAgcmV0dXJuIHB0O1xuICAgICAgICAvLyB9LFxuXG4gICAgICAgIC8vIGRyYWdDb21wdXRhdGlvbjogZnVuY3Rpb24gKHBhcnQsIHB0LCBncmlkcHQpIHtcbiAgICAgICAgLy8gICAgIC8vIEdldCB0aGUgY3VycmVudCBncm91cCdzIGFjdHVhbCBib3VuZHNcbiAgICAgICAgLy8gICAgIGNvbnN0IGdycCA9IHBhcnQuY29udGFpbmluZ0dyb3VwO1xuICAgICAgICAvLyAgICAgaWYgKGdycCkge1xuICAgICAgICAvLyAgICAgICAgIGNvbnN0IGJuZHMgPSBncnAuYWN0dWFsQm91bmRzO1xuICAgICAgICAvLyAgICAgICAgIGNvbnN0IGxvYyA9IHBhcnQubG9jYXRpb247XG5cbiAgICAgICAgLy8gICAgICAgICAvLyBTZWUgaWYgdGhlIHBhcnQncyBuZXcgbG9jYXRpb24gd291bGQgYmUgb3V0IG9mIGJvdW5kc1xuICAgICAgICAvLyAgICAgICAgIGNvbnN0IG5ld3ggPSBNYXRoLm1heChibmRzLngsIE1hdGgubWluKHB0LngsIGJuZHMucmlnaHQgLSBwYXJ0LmFjdHVhbEJvdW5kcy53aWR0aCAvIDIpKTtcbiAgICAgICAgLy8gICAgICAgICBjb25zdCBuZXd5ID0gTWF0aC5tYXgoYm5kcy55LCBNYXRoLm1pbihwdC55LCBibmRzLmJvdHRvbSAtIHBhcnQuYWN0dWFsQm91bmRzLmhlaWdodCAvIDIpKTtcblxuICAgICAgICAvLyAgICAgICAgIC8vIE1vZGlmeSB0aGUgcmVzdWx0IHBvaW50IHRvIGtlZXAgdGhlIFBhcnQgaW5zaWRlIHRoZSBHcm91cFxuICAgICAgICAvLyAgICAgICAgIHJldHVybiBuZXcgZ28uUG9pbnQobmV3eCwgbmV3eSk7XG4gICAgICAgIC8vICAgICB9XG4gICAgICAgIC8vICAgICByZXR1cm4gcHQ7XG4gICAgICAgIC8vIH0sXG4gICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICBzZWxmLm15RGlhZ3JhbT8uY2xlYXJTZWxlY3Rpb24oKTtcbiAgICAgICAgfSxcbiAgICAgIH0sXG4gICAgICB7XG4gICAgICAgIC8vIG1vdXNlRHJhZ0VudGVyOiAoZSwgIG9iaikgPT4ge1xuICAgICAgICAvLyB9LFxuICAgICAgICAvLyBtb3VzZURyb3A6IChlLCAgb2JqKSA9PiB7XG4gICAgICAgIC8vIH0sXG4gICAgICAgIC8vIG1vdXNlRW50ZXI6IChlLCBvYmopID0+IHtcbiAgICAgICAgLy8gICAgIGNvbnN0IG5vZGUgPSBvYmoucGFydDtcbiAgICAgICAgLy8gICAgIHNlbGYub25Ib3ZlckluZm9CdXR0b24uZW1pdCh7XG4gICAgICAgIC8vICAgICAgICAgbGVmdDogZT8uWydXciddPy54ICsgOCxcbiAgICAgICAgLy8gICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgICAgLy8gICAgICAgICBub2RlOiBub2RlLFxuICAgICAgICAvLyAgICAgfSk7XG4gICAgICAgIC8vICAgICAvLyBsZXQgc2hhcGUgPSAobm9kZSBhcyBhbnkpPy5maW5kT2JqZWN0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FxuICAgIC8vICAgICAvLyB7XG4gICAgLy8gICAgIC8vICAgICAvLyBtaW5TaXplOiBuZXcgZ28uU2l6ZSg1MDAsIDUwMCksXG4gICAgLy8gICAgIC8vICAgICBtb3ZhYmxlOiBmYWxzZSxcbiAgICAvLyAgICAgLy8gICAgIGFyaWFSZWFkT25seTogdHJ1ZSxcbiAgICAvLyAgICAgLy8gfSxcbiAgICAvLyAgICAgdGhpcy4kKFxuICAgIC8vICAgICAgICAgZ28uUGFuZWwsXG4gICAgLy8gICAgICAgICAnQXV0bycsXG4gICAgLy8gICAgICAgICB7XG4gICAgLy8gICAgICAgICAgICAgcGFkZGluZzogbmV3IGdvLk1hcmdpbigwLCAwLCAwLCAwKSxcbiAgICAvLyAgICAgICAgIH0sXG4gICAgLy8gICAgICAgICB0aGlzLiQoZ28uU2hhcGUsICdSb3VuZGVkUmVjdGFuZ2xlJywge1xuICAgIC8vICAgICAgICAgICAgIGZpbGw6ICd0cmFuc3BhcmVudCcsXG4gICAgLy8gICAgICAgICAgICAgLy8gc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuUkVTT0xVVElPTl9CTFVFLFxuICAgIC8vICAgICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLldISVRFLFxuICAgIC8vICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgIC8vICAgICAgICAgICAgIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgIC8vICAgICAgICAgfSksXG4gICAgLy8gICAgICAgICB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsIHtcbiAgICAvLyAgICAgICAgICAgICBwYWRkaW5nOiBuZXcgZ28uTWFyZ2luKDAsIDAsIDAsIDApLFxuICAgIC8vICAgICAgICAgfSksXG4gICAgLy8gICAgICksXG4gICAgLy8gKTtcbiAgICBsZXQgbm9kZSA9IHRoaXMuJChcbiAgICAgIGdvLkdyb3V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XG4gICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgZT8uZGF0YT8ub25TZWxlY3RlZChudWxsKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG5cbiAgICAgICAgc2VsZWN0aW9uQWRvcm5tZW50VGVtcGxhdGU6IHRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICA/IG51bGxcbiAgICAgICAgICA6IHRoaXMuJChcbiAgICAgICAgICAgICAgZ28uQWRvcm5tZW50LFxuICAgICAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBzaGFkb3dWaXNpYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIHNoYWRvd0JsdXI6IDYsXG4gICAgICAgICAgICAgICAgc2hhZG93T2Zmc2V0OiBuZXcgZ28uUG9pbnQoMCwgMiksXG4gICAgICAgICAgICAgICAgc2hhZG93Q29sb3I6ICcjMDAwMDAwMjknLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwge1xuICAgICAgICAgICAgICAgICAgZmlsbDogbnVsbCxcbiAgICAgICAgICAgICAgICAgIHN0cm9rZTogJ2RvZGdlcmJsdWUnLFxuICAgICAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDQsXG4gICAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgdGhpcy4kKGdvLlBsYWNlaG9sZGVyLCB7IHBhZGRpbmc6IDMgfSlcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAgICdIb3Jpem9udGFsJyxcbiAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wUmlnaHQsXG4gICAgICAgICAgICAgICAgICBhbGlnbm1lbnRGb2N1czogZ28uU3BvdC5Cb3R0b20sXG4gICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgJ0J1dHRvbicsXG4gICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgIF9kcmFnRGF0YToge1xuICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5URVhUX05PREUsXG4gICAgICAgICAgICAgICAgICAgICAgbmFtZTogMCxcbiAgICAgICAgICAgICAgICAgICAgICBjb2xvcjogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLkJMVUUsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIGNsaWNrOiBzZWxmLmFkZEl0ZW1Pbkdyb3VwWm9uZSwgLy8gZGVmaW5lZCBiZWxvdywgdG8gc3VwcG9ydCBhIGNsaWNrIG9uIHRoZSBidXR0b25cbiAgICAgICAgICAgICAgICAgICAgJ0J1dHRvbkJvcmRlci5zdHJva2VXaWR0aCc6IDAsXG4gICAgICAgICAgICAgICAgICAgICdCdXR0b25Cb3JkZXIuZmlsbCc6ICd3aGl0ZScsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICAgIHRleHQ6ICdcXHVmMDU1JyxcbiAgICAgICAgICAgICAgICAgICAgZm9udDogJzIwcHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAgICAgICAgICAgICAgIGN1cnNvcjogJ3BvaW50ZXInLFxuICAgICAgICAgICAgICAgICAgICBzdHJva2U6ICcjMmMyYzJjJyxcbiAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgICAgICAvLyBtb3JlXG4gICAgICAgICAgICAgICAgdGhpcy5nZW5lcmF0ZUFjdGlvbkdyb3VwKFtcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5SRU5BTUUsXG4gICAgICAgICAgICAgICAgICBBdG9EZWZhdWx0R29qc0VkaXRvci5FTlVNX0FDVElPTlMuREVUQUlMUyxcbiAgICAgICAgICAgICAgICAgIEF0b0RlZmF1bHRHb2pzRWRpdG9yLkVOVU1fQUNUSU9OUy5PVVRGTE9XLFxuICAgICAgICAgICAgICAgICAgQXRvRGVmYXVsdEdvanNFZGl0b3IuRU5VTV9BQ1RJT05TLkRFTEVURSxcbiAgICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgICAgIC8vIHRoaXMuJChcbiAgICAgICAgICAgICAgICAvLyAgICAgLy8gRWRpdCBUZXh0XG4gICAgICAgICAgICAgICAgLy8gICAgICdCdXR0b24nLFxuICAgICAgICAgICAgICAgIC8vICAgICB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBjbGljazogc2VsZi5lZGl0VGV4dEdyb3VwWm9uZSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICdCdXR0b25Cb3JkZXIuc3Ryb2tlV2lkdGgnOiAwLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgJ0J1dHRvbkJvcmRlci5maWxsJzogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgfSxcbiAgICAgICAgICAgICAgICAvLyAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgdGV4dDogJ1xcdWUxYmYnLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgZm9udDogJzIwcHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIHN0cm9rZTogJyMyYzJjMmMnLFxuICAgICAgICAgICAgICAgIC8vICAgICB9KSxcbiAgICAgICAgICAgICAgICAvLyApLFxuICAgICAgICAgICAgICAgIC8vIHRoaXMuJChcbiAgICAgICAgICAgICAgICAvLyAgICAgLy8gT3BlbiBEZXRhaWxcbiAgICAgICAgICAgICAgICAvLyAgICAgJ0J1dHRvbicsXG4gICAgICAgICAgICAgICAgLy8gICAgIHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICBjb25zdCBub2RlID0gb2JqLnBhcnQ7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgc2VsZi5vbk9wZW5EZXRhaWwuZW1pdCh7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICB9LFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgJ0J1dHRvbkJvcmRlci5zdHJva2VXaWR0aCc6IDAsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAnQnV0dG9uQm9yZGVyLmZpbGwnOiAnd2hpdGUnLFxuICAgICAgICAgICAgICAgIC8vICAgICB9LFxuICAgICAgICAgICAgICAgIC8vXG4gICAgICAgICAgICAgICAgLy8gICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIHRleHQ6ICdcXHVlNDlhJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgIGZvbnQ6ICcyMHB4IFwiRm9udCBBd2Vzb21lIDYgUHJvXCInLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgLy8gICAgIH0pLFxuICAgICAgICAgICAgICAgIC8vICksXG4gICAgICAgICAgICAgICAgLy8gIXRoaXMuX2luaXRpYWxPcHRpb25zLmlzUmVhZE9ubHlcbiAgICAgICAgICAgICAgICAvLyAgICAgPyB0aGlzLiQoXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICdCdXR0b24nLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICBhY3Rpb25Nb3ZlOiBzZWxmLmRyYWdOZXdOb2RlLCAvLyBkZWZpbmVkIGJlbG93LCB0byBzdXBwb3J0IGRyYWdnaW5nIGZyb20gdGhlIGJ1dHRvblxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgX2RyYWdEYXRhOiB7XG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAgICAgdHlwZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlRFWFRfTk9ERSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICAgICBuYW1lOiAwLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgICAgIGNvbG9yOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQkxVRSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICBjbGljazogc2VsZi5jbGlja05ld05vZGUsIC8vIGRlZmluZWQgYmVsb3csIHRvIHN1cHBvcnQgYSBjbGljayBvbiB0aGUgYnV0dG9uXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICAnQnV0dG9uQm9yZGVyLnN0cm9rZVdpZHRoJzogMCxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgICdCdXR0b25Cb3JkZXIuZmlsbCc6ICd3aGl0ZScsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgIHRoaXMuJChnby5UZXh0QmxvY2ssIHtcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIG1hcmdpbjogNCxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIHRleHQ6ICdcXHVlMTU3JyxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgICAgIGZvbnQ6ICcyMHB4IFwiRm9udCBBd2Vzb21lIDYgUHJvXCInLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgICAgICAgY3Vyc29yOiAncG9pbnRlcicsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICAgICAgICBzdHJva2U6ICcjMmMyYzJjJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgICAgLy8gICAgICAgKVxuICAgICAgICAgICAgICAgIC8vICAgICA6IHt9LFxuXG4gICAgICAgICAgICAgICAgLy8gdGhpcy4kKFxuICAgICAgICAgICAgICAgIC8vICAgICAnQnV0dG9uJyxcbiAgICAgICAgICAgICAgICAvLyAgICAge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgY2xpY2s6IHNlbGYuZGVsZXRlTm9kZSxcbiAgICAgICAgICAgICAgICAvLyAgICAgICAgICdCdXR0b25Cb3JkZXIuc3Ryb2tlV2lkdGgnOiAwLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgJ0J1dHRvbkJvcmRlci5maWxsJzogJ3doaXRlJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgfSxcbiAgICAgICAgICAgICAgICAvLyAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywge1xuICAgICAgICAgICAgICAgIC8vICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgdGV4dDogJ1xcdWYyZWQnLFxuICAgICAgICAgICAgICAgIC8vICAgICAgICAgZm9udDogJzIwcHggXCJGb250IEF3ZXNvbWUgNiBQcm9cIicsXG4gICAgICAgICAgICAgICAgLy8gICAgICAgICBjdXJzb3I6ICdwb2ludGVyJyxcbiAgICAgICAgICAgICAgICAvLyAgICAgfSksXG4gICAgICAgICAgICAgICAgLy8gKSxcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKSxcbiAgICAgIH0sXG5cbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnUm91bmRlZFJlY3RhbmdsZScsIHtcbiAgICAgICAgICBmaWxsOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICAgIHN0cm9rZTogQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fQ09MT1JTLlJFU09MVVRJT05fQkxVRSxcbiAgICAgICAgICBzdHJva2VXaWR0aDogMixcbiAgICAgICAgICBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncsIE5hTiksXG4gICAgICAgIH0pLFxuICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuVG9wLFxuICAgICAgICAgICAgcGFkZGluZzogbmV3IGdvLk1hcmdpbigxNywgMTAsIDE2LCAxMCksXG4gICAgICAgICAgfSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDUsIDAsIDEwLCAwKSxcbiAgICAgICAgICAgICAgZWRpdGFibGU6IHRydWUsXG4gICAgICAgICAgICAgIGRlc2lyZWRTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgMjUpLFxuICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5OSUdIVF9SSURFUixcbiAgICAgICAgICAgICAgZm9udDogJ2JvbGQgMTZweCBBcmlhbCcsXG4gICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgIHdyYXA6IGdvLlRleHRCbG9jay5Ob25lLFxuICAgICAgICAgICAgICBvdmVyZmxvdzogZ28uVGV4dEJsb2NrLk92ZXJmbG93RWxsaXBzaXMsXG4gICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKVxuICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpXG4gICAgICAgICAgKSxcbiAgICAgICAgICB0aGlzLiQoZ28uUGxhY2Vob2xkZXIsICdWZXJ0aWNhbC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sXG4gICAgICAnQXV0bycsXG4gICAgICAvLyB7XG4gICAgICAvLyAgICAgbW91c2VIb3ZlcjogKGUsIG9iaikgPT4ge1xuICAgICAgLy8gICAgICAgICBjb25zdCBub2RlID0gb2JqLnBhcnQ7XG4gICAgICAvLyAgICAgICAgIGlmICgob2JqIGFzIGFueSkucGFydD8ub2I/LnZhbHVlID09PSBWQUxVRV9OQSkge1xuICAgICAgLy8gICAgICAgICAgICAgc2VsZi5vbkhvdmVySW5mb0J1dHRvbi5lbWl0KHtcbiAgICAgIC8vICAgICAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LnggKyA4LFxuICAgICAgLy8gICAgICAgICAgICAgICAgIHRvcDogZT8uWydXciddPy55LFxuICAgICAgLy8gICAgICAgICAgICAgICAgIG5vZGU6IG5vZGVcbiAgICAgIC8vICAgICAgICAgICAgIH0pO1xuICAgICAgLy8gICAgICAgICB9XG4gICAgICAvLyAgICAgfSxcbiAgICAgIC8vICAgICBtb3VzZUxlYXZlOiAoZSwgb2JqKSA9PiB7XG4gICAgICAvLyAgICAgICAgIGlmICgob2JqIGFzIGFueSkucGFydD8ub2I/LnZhbHVlID09PSBWQUxVRV9OQSkge1xuICAgICAgLy8gICAgICAgICAgICAgc2VsZi5vbkhvdmVySW5mb0J1dHRvbi5lbWl0KG51bGwpO1xuICAgICAgLy8gICAgICAgICB9XG4gICAgICAvLyAgICAgfSxcbiAgICAgIC8vICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAvLyAgICAgICAgIGNvbnN0IG5vZGUgPSBvYmoucGFydDtcbiAgICAgIC8vICAgICAgICAgdGhpcy5pc1Nob3dOb2RlSW5mbyA/IHNlbGYub25DbGlja0luZm9CdXR0b24uZW1pdCh7XG4gICAgICAvLyAgICAgICAgICAgICBsZWZ0OiBlPy5bJ1dyJ10/LngsXG4gICAgICAvLyAgICAgICAgICAgICB0b3A6IGU/LlsnV3InXT8ueSxcbiAgICAgIC8vICAgICAgICAgICAgIG5vZGU6IG5vZGVcbiAgICAgIC8vICAgICAgICAgfSkgOiBudWxsO1xuICAgICAgLy8gICAgIH0sXG4gICAgICAvLyB9LFxuICAgICAgLy8gbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KGdvLlBvaW50LnN0cmluZ2lmeSksXG4gICAgICB7XG4gICAgICAgIG1vdmFibGU6IGZhbHNlLFxuICAgICAgfSxcbiAgICAgIHRoaXMuJChcbiAgICAgICAgZ28uUGFuZWwsXG4gICAgICAgICdBdXRvJyxcbiAgICAgICAge1xuICAgICAgICAgIHdpZHRoOiBzaXplLncsXG4gICAgICAgICAgaGVpZ2h0OiBzaXplLmgsXG4gICAgICAgIH0sXG4gICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ1JlY3RhbmdsZScsIHtcbiAgICAgICAgICBmaWxsOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTElHSFRfQkxVRSxcbiAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5MSU5LX1dBVEVSLFxuICAgICAgICB9KSxcbiAgICAgICAgdGhpcy4kKFxuICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICdWZXJ0aWNhbCcsXG4gICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgcm93OiAyLFxuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMTAsIDAsIDUsIDApLFxuICAgICAgICAgICAgICBmb250OiAnYm9sZCAxMnB4IEFyaWFsJyxcbiAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuTklHSFRfUklERVIsXG4gICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAnVG9vbFRpcCcsXG4gICAgICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBtYXJnaW46IDQsXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnbmFtZScpLm1ha2VUd29XYXkoKVxuICAgICAgICAgICAgICAgIClcbiAgICAgICAgICAgICAgKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lJykubWFrZVR3b1dheSgpLFxuICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3Zpc2libGUnLCAnbmFtZScsICh4KSA9PiAhIXgpXG4gICAgICAgICAgKSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdIb3Jpem9udGFsJyxcblxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMTAsIDAsIDEwKSxcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCA1LCAxMCwgMCksXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICBmb250OiAnMTJweCBzYW5zLXNlcmlmJyxcbiAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5OSUdIVF9SSURFUixcbiAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgICBlZGl0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICBpc011bHRpbGluZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoc2l6ZS53IC0gMTAwLCAxNSksXG4gICAgICAgICAgICAgICAgb3ZlcmZsb3c6IGdvLlRleHRCbG9jay5PdmVyZmxvd0VsbGlwc2lzLFxuICAgICAgICAgICAgICAgIHRvb2xUaXA6IHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICdUb29sVGlwJyxcbiAgICAgICAgICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgICAgICAgICAgZ28uVGV4dEJsb2NrLFxuICAgICAgICAgICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgICAgICAgbWFyZ2luOiA0LFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndGV4dCcsICduYW1lSXRlbScpLm1ha2VUd29XYXkoKVxuICAgICAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgICAgICksXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG5ldyBnby5CaW5kaW5nKCd0ZXh0JywgJ25hbWVJdGVtJykubWFrZVR3b1dheSgpLFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygndmlzaWJsZScsICduYW1lSXRlbScsICh4KSA9PiAhIXgpXG4gICAgICAgICAgICApLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5UZXh0QmxvY2ssXG4gICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgNSwgMTAsIDApLFxuICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgICAgZm9udDogJzEycHggc2Fucy1zZXJpZicsXG4gICAgICAgICAgICAgICAgc3Ryb2tlOiBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9DT0xPUlMuQ0VSVUxFQU4sXG4gICAgICAgICAgICAgICAgd3JhcDogZ28uVGV4dEJsb2NrLldyYXBGaXQsXG4gICAgICAgICAgICAgICAgdGV4dDogJzwgJyxcbiAgICAgICAgICAgICAgfSxcblxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZyhcbiAgICAgICAgICAgICAgICAndmlzaWJsZScsXG4gICAgICAgICAgICAgICAgJ2RhdGEnLFxuICAgICAgICAgICAgICAgICh4KSA9PiB0eXBlb2YgeD8ucXVhbnRpdHkgPT09ICdudW1iZXInXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCA1LCAxMCwgMCksXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICBmb250OiAnMTJweCBzYW5zLXNlcmlmJyxcbiAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5DRVJVTEVBTixcbiAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ3RleHQnLCAnZGF0YScsICh4KSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHR5cGVvZiB4Py5xdWFudGl0eSAhPT0gJ251bWJlcicpIHtcbiAgICAgICAgICAgICAgICAgIHJldHVybiAnJztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgY29uc3QgZm9ybWF0dGVkOiBhbnkgPSBVdGlsc1NlcnZpY2UuY29udmVydFByZWZpeGVzRGF0YSh7XG4gICAgICAgICAgICAgICAgICB2YWx1ZTogeD8ucXVhbnRpdHksXG4gICAgICAgICAgICAgICAgICB1bml0OiB4Py51bml0LFxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICAgICAgICBmb3JtYXR0ZWQuc2hvcnRlbmVkTnVtYmVyICtcbiAgICAgICAgICAgICAgICAgICAgJyAnICtcbiAgICAgICAgICAgICAgICAgICAgZm9ybWF0dGVkLnVuaXRQcmVmaXhlcyArXG4gICAgICAgICAgICAgICAgICAgIHg/LnVuaXQgPz8gJydcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICB9KSxcbiAgICAgICAgICAgICAgbmV3IGdvLkJpbmRpbmcoXG4gICAgICAgICAgICAgICAgJ3Zpc2libGUnLFxuICAgICAgICAgICAgICAgICdkYXRhJyxcbiAgICAgICAgICAgICAgICAoeCkgPT4gdHlwZW9mIHg/LnF1YW50aXR5ID09PSAnbnVtYmVyJ1xuICAgICAgICAgICAgICApXG4gICAgICAgICAgICApLFxuXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlRleHRCbG9jayxcbiAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCA1LCAxMCwgMCksXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgICBmb250OiAnMTJweCBzYW5zLXNlcmlmJyxcbiAgICAgICAgICAgICAgICBzdHJva2U6IEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX0NPTE9SUy5DRVJVTEVBTixcbiAgICAgICAgICAgICAgICB3cmFwOiBnby5UZXh0QmxvY2suV3JhcEZpdCxcbiAgICAgICAgICAgICAgICB0ZXh0OiAnID4nLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZyhcbiAgICAgICAgICAgICAgICAndmlzaWJsZScsXG4gICAgICAgICAgICAgICAgJ2RhdGEnLFxuICAgICAgICAgICAgICAgICh4KSA9PiB0eXBlb2YgeD8ucXVhbnRpdHkgPT09ICdudW1iZXInXG4gICAgICAgICAgICAgIClcbiAgICAgICAgICAgIClcbiAgICAgICAgICApXG4gICAgICAgIClcbiAgICAgIClcbiAgICApO1xuICAgIHRoaXMubXlEaWFncmFtLm5vZGVUZW1wbGF0ZU1hcC5zZXQoXG4gICAgICBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuWk9ORV9FTkVSR1lfSVRFTSxcbiAgICAgIG5vZGVcbiAgICApO1xuICB9XG5cbiAgbWFrZVNwZWNpYWxUZW1wbGF0ZShcbiAgICBpY29uLFxuICAgIHRpdGxlLFxuICAgIHNpemU6IHsgdzogbnVtYmVyOyBoOiBudW1iZXIgfSA9IHtcbiAgICAgIHc6IEF0b0dvanNFZGl0b3JNb2RlbC5HUklEX1NJWkUgKiA1LFxuICAgICAgaDogQXRvR29qc0VkaXRvck1vZGVsLkdSSURfU0laRSAqIDUsXG4gICAgfVxuICApIHtcbiAgICBsZXQgbm9kZTogYW55ID0gbnVsbDtcbiAgICBzd2l0Y2ggKHRpdGxlKSB7XG4gICAgICBjYXNlIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5TUEVDSUFMX1BST0NFU1M6XG4gICAgICAgIG5vZGUgPSB0aGlzLiQoXG4gICAgICAgICAgZ28uTm9kZSxcbiAgICAgICAgICAnU3BvdCcsXG4gICAgICAgICAgLy8ge1xuICAgICAgICAgIC8vICAgICBmcm9tU3BvdDogZ28uU3BvdC5SaWdodCwgIC8vIGNvbWluZyBvdXQgZnJvbSBtaWRkbGUtcmlnaHRcbiAgICAgICAgICAvLyAgICAgdG9TcG90OiBnby5TcG90LkxlZnRcbiAgICAgICAgICAvLyB9LFxuICAgICAgICAgIHtcbiAgICAgICAgICAgIGNsaWNrOiAoZSwgb2JqOiBhbnkpID0+IHtcbiAgICAgICAgICAgICAgaWYgKG9iaj8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgIG9iaj8uZGF0YT8ub25TZWxlY3RlZChvYmo/LmRhdGEpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgc2VsZWN0aW9uQ2hhbmdlZDogKGUpID0+IHtcbiAgICAgICAgICAgICAgaWYgKCFlLmlzU2VsZWN0ZWQgJiYgZT8uZGF0YT8ub25TZWxlY3RlZCkge1xuICAgICAgICAgICAgICAgIGU/LmRhdGE/Lm9uU2VsZWN0ZWQobnVsbCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSxcbiAgICAgICAgICBuZXcgZ28uQmluZGluZygnbG9jYXRpb24nLCAnbG9jJywgZ28uUG9pbnQucGFyc2UpLm1ha2VUd29XYXkoXG4gICAgICAgICAgICBnby5Qb2ludC5zdHJpbmdpZnlcbiAgICAgICAgICApLFxuICAgICAgICAgIHRoaXMuJChcbiAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgJ0F1dG8nLFxuICAgICAgICAgICAgeyB3aWR0aDogc2l6ZS53LCBoZWlnaHQ6IHNpemUuaCB9LFxuICAgICAgICAgICAgdGhpcy4kKGdvLlNoYXBlLCAnQ2lyY2xlJywge1xuICAgICAgICAgICAgICBmaWxsOiAnd2hpdGUnLFxuICAgICAgICAgICAgICBzdHJva2U6ICcjMkQzQjc3JyxcbiAgICAgICAgICAgICAgc3Ryb2tlV2lkdGg6IDIsXG4gICAgICAgICAgICAgIC8vIHN0cm9rZURhc2hBcnJheTogWzUsIDVdLFxuICAgICAgICAgICAgfSksXG4gICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgIGdvLlBhbmVsLFxuICAgICAgICAgICAgICAnVGFibGUnLFxuICAgICAgICAgICAgICB0aGlzLiQoZ28uVGV4dEJsb2NrLCBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuUFJPQ0VTUywge1xuICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBOYU4pLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAxMCwgMCksXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg2MCwgNjApLFxuICAgICAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIClcbiAgICAgICAgICApLFxuXG4gICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuTGVmdCxcbiAgICAgICAgICAgIGFsaWdubWVudEZvY3VzOiBuZXcgZ28uU3BvdCgwLCAwLjUsIDgsIDApLFxuICAgICAgICAgIH0pLFxuICAgICAgICAgIHRoaXMuJChnby5QYW5lbCwgJ1ZlcnRpY2FsJywge1xuICAgICAgICAgICAgYWxpZ25tZW50O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5pc1NlbGVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KFxuICAgICAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICAgICAgKSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ0NpcmNsZScsIHtcbiAgICAgICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgc3Ryb2tlOiAnIzJEM0I3NycsXG4gICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgQXRvR29qc0VkaXRvck1vZGVsLkVOVU1fVEVNUExBVEVTLlNUT1JBR0UsIHtcbiAgICAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDMsIDEwLCAzKSxcbiAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgICAgICAgICAgICBzdHJva2U6ICcjNDQ0NDQ0JyxcbiAgICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICAgICAgZ28uUGljdHVyZSxcbiAgICAgICAgICAgICAgICBpY29uLFxuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAxMCwgMCksXG4gICAgICAgICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuQ2VudGVyLFxuICAgICAgICAgICAgICAgICAgbWluU2l6ZTogbmV3IGdvLlNpemUoNDAsIDQwKSxcbiAgICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKDUwLCA1MCksXG4gICAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBuZXcgZ28uQmluZGluZygnc291cmNlJywgJ2ljb24nKS5tYWtlVHdvV2F5KClcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKVxuICAgICAgICAgICksXG5cbiAgICAgICAgICB0aGlzLiQoZ28uUGFuZWwsICdWZXJ0aWNhbCcsIHtcbiAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5MZWZ0LFxuICAgICAgICAgICAgYWxpZ25tZW50Rm9jdXM6IG5ldyBnby5TcG90KDAsIDAuNSwgOCwgMCksXG4gICAgICAgICAgfSksXG4gICAgICAgICAgdGhpcy4kKGdvLlBhbmVsLCAnVmVydGljYWwnLCB7XG4gICAgICAgICAgICBhbGlnbm1lbnQ6IGdvLlNwb3QuUmlnaHQsXG4gICAgICAgICAgICBhb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GE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KFxuICAgICAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICAgICAgKSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ0NpcmNsZScsIHtcbiAgICAgICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgc3Ryb2tlOiAnIzJEM0I3NycsXG4gICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgJ1N0b3JlJywge1xuICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBOYU4pLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAxMCwgMCksXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg2MCwgNjApLFxuICAgICAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIClcbiAgICAgICAgICApXG4gICAgICAgICk7XG4gICAgICAgIGJyZWFrO1xuXG4gICAgICBjYXNlIEF0b0dvanNFZGl0b3JNb2RlbC5FTlVNX1RFTVBMQVRFUy5TUEVDSUFMX0RJU0NIQVJHRTpcbiAgICAgICAgbm9kZSA9IHRoaXMuJChcbiAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgIGlmIChvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQob2JqPy5kYXRhKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgICAgIGlmICghZS5pc1NlbGVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KFxuICAgICAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICAgICAgKSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ0NpcmNsZScsIHtcbiAgICAgICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgc3Ryb2tlOiAnIzJEM0I3NycsXG4gICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgJ0Rpc2NoYXJnZScsIHtcbiAgICAgICAgICAgICAgICByb3c6IDAsXG4gICAgICAgICAgICAgICAgbWFyZ2luOiBuZXcgZ28uTWFyZ2luKDMsIDMsIDEwLCAzKSxcbiAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZShzaXplLncgLSAyMCwgTmFOKSxcbiAgICAgICAgICAgICAgICBzdHJva2U6ICcjNDQ0NDQ0JyxcbiAgICAgICAgICAgICAgICBmb250OiAnbm9ybWFsIDEwcHQgQXJpYWwnLFxuICAgICAgICAgICAgICAgIHRleHRBbGlnbjogJ2NlbnRlcicsXG4gICAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgICB0aGlzLiQoZ28uUGljdHVyZSwgaWNvbiwge1xuICAgICAgICAgICAgICAgIHJvdzogMSxcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMCwgMCwgMTAsIDApLFxuICAgICAgICAgICAgICAgIGFsaWdubWVudDogZ28uU3BvdC5DZW50ZXIsXG4gICAgICAgICAgICAgICAgbWF4U2l6ZTogbmV3IGdvLlNpemUoNjAsIDYwKSxcbiAgICAgICAgICAgICAgICBpbWFnZVN0cmV0Y2g6IGdvLkdyYXBoT2JqZWN0LlVuaWZvcm0sXG4gICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICApXG4gICAgICAgICAgKVxuICAgICAgICApO1xuICAgICAgICBicmVhaztcblxuICAgICAgY2FzZSBBdG9Hb2pzRWRpdG9yTW9kZWwuRU5VTV9URU1QTEFURVMuU1BFQ0lBTF9PVEhFUjpcbiAgICAgICAgbm9kZSA9IHRoaXMuJChcbiAgICAgICAgICBnby5Ob2RlLFxuICAgICAgICAgICdTcG90JyxcbiAgICAgICAgICB7XG4gICAgICAgICAgICBjbGljazogKGUsIG9iajogYW55KSA9PiB7XG4gICAgICAgICAgICAgIGlmIChvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICBvYmo/LmRhdGE/Lm9uU2VsZWN0ZWQob2JqPy5kYXRhKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHNlbGVjdGlvbkNoYW5nZWQ6IChlKSA9PiB7XG4gICAgICAgICAgICAgIGlmICghZS5pc1NlbGVjdGVkICYmIGU/LmRhdGE/Lm9uU2VsZWN0ZWQpIHtcbiAgICAgICAgICAgICAgICBlPy5kYXRhPy5vblNlbGVjdGVkKG51bGwpO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0sXG4gICAgICAgICAgbmV3IGdvLkJpbmRpbmcoJ2xvY2F0aW9uJywgJ2xvYycsIGdvLlBvaW50LnBhcnNlKS5tYWtlVHdvV2F5KFxuICAgICAgICAgICAgZ28uUG9pbnQuc3RyaW5naWZ5XG4gICAgICAgICAgKSxcbiAgICAgICAgICB0aGlzLiQoXG4gICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICdBdXRvJyxcbiAgICAgICAgICAgIHsgd2lkdGg6IHNpemUudywgaGVpZ2h0OiBzaXplLmggfSxcbiAgICAgICAgICAgIHRoaXMuJChnby5TaGFwZSwgJ0NpcmNsZScsIHtcbiAgICAgICAgICAgICAgZmlsbDogJ3doaXRlJyxcbiAgICAgICAgICAgICAgc3Ryb2tlOiAnIzJEM0I3NycsXG4gICAgICAgICAgICAgIHN0cm9rZVdpZHRoOiAyLFxuICAgICAgICAgICAgICAvLyBzdHJva2VEYXNoQXJyYXk6IFs1LCA1XSxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgICAgdGhpcy4kKFxuICAgICAgICAgICAgICBnby5QYW5lbCxcbiAgICAgICAgICAgICAgJ1RhYmxlJyxcbiAgICAgICAgICAgICAgdGhpcy4kKGdvLlRleHRCbG9jaywgJ090aGVyJywge1xuICAgICAgICAgICAgICAgIHJvdzogMCxcbiAgICAgICAgICAgICAgICBtYXJnaW46IG5ldyBnby5NYXJnaW4oMywgMywgMTAsIDMpLFxuICAgICAgICAgICAgICAgIG1heFNpemU6IG5ldyBnby5TaXplKHNpemUudyAtIDIwLCBOYU4pLFxuICAgICAgICAgICAgICAgIHN0cm9rZTogJyM0NDQ0NDQnLFxuICAgICAgICAgICAgICAgIGZvbnQ6ICdub3JtYWwgMTBwdCBBcmlhbCcsXG4gICAgICAgICAgICAgICAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgICAgICAgICAgICAgfSksXG4gICAgICAgICAgICAgIHRoaXMuJChnby5QaWN0dXJlLCBpY29uLCB7XG4gICAgICAgICAgICAgICAgcm93OiAxLFxuICAgICAgICAgICAgICAgIG1hcmdpbjogbmV3IGdvLk1hcmdpbigwLCAwLCAxMCwgMCksXG4gICAgICAgICAgICAgICAgYWxpZ25tZW50OiBnby5TcG90LkNlbnRlcixcbiAgICAgICAgICAgICAgICBtYXhTaXplOiBuZXcgZ28uU2l6ZSg2MCwgNjApLFxuICAgICAgICAgICAgICAgIGltYWdlU3RyZXRjaDogZ28uR3JhcGhPYmplY3QuVW5pZm9ybSxcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIClcbiAgICAgICAgICApXG4gICAgICAgICk7XG4gICAgICAgIGJyZWFrO1xuICAgIH1cblxuICAgIGlmIChub2RlKSB7XG4gICAgICB0aGlzLm15RGlhZ3JhbS5ub2RlVGVtcGxhdGVNYXAuc2V0KHRpdGxlLCBub2RlKTtcbiAgICB9XG4gIH1cblxuICBzdGFydEFuaW1hdGlvbigpIHtcbiAgICBjb25zdCBkaWFncmFtID0gdGhpcy5teURpYWdyYW07XG4gICAgLy8gc2V0VGltZW91dCgoKSA9PiB7XG4gICAgLy8gICAgIGRpYWdyYW0ubGlua3MuZWFjaCgobGluaykgPT4ge1xuICAgIC8vICAgICB9KTtcbiAgICAvLyB9KTtcbiAgICB0cnkge1xuICAgICAgdGhpcy5hbmltYXRpb25JbnRlcnZhbCA9IHNldEludGVydmFsKCgpID0+IHtcbiAgICAgICAgY29uc3Qgb2xkc2tpcHMgPSBkaWFncmFtLnNraXBzVW5kb01hbmFnZXI7XG4gICAgICAgIGRpYWdyYW0uc2tpcHNVbmRvTWFuYWdlciA9IHRydWU7XG5cbiAgICAgICAgZGlhZ3JhbS5saW5rcy5lYWNoKChsaW5rKSA9PiB7XG4gICAgICAgICAgY29uc3Qgc2hhcGUgPSBsaW5rLmZpbmRPYmplY3QoJ1BJUEUnKTtcbiAgICAgICAgICBpZiAoISFzaGFwZSkge1xuICAgICAgICAgICAgLy8gY29uc3Qgb2ZmID0gc2hhcGU/LnN0cm9rZURhc2hPZmZzZXQgLSAzO1xuICAgICAgICAgICAgY29uc3Qgb2ZmID0gc2hhcGU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