ato-water-lib 0.0.87 → 0.0.90

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