badmfck-api-server 2.5.8 → 2.5.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -83,7 +83,7 @@ async function Initializer(services) {
83
83
  exports.Initializer = Initializer;
84
84
  class APIService extends BaseService_1.BaseService {
85
85
  static nextLogID = 0;
86
- version = "2.5.8";
86
+ version = "2.5.9";
87
87
  options;
88
88
  monitor;
89
89
  monitorIndexFile;
@@ -455,4 +455,4 @@ class APIService extends BaseService_1.BaseService {
455
455
  }
456
456
  }
457
457
  exports.APIService = APIService;
458
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQVBJU2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGlTZXJ2ZXIvQVBJU2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHNEQUF3RDtBQUN4RCwrQ0FBeUQ7QUFDekQsZ0RBQXVCO0FBRXZCLGlEQUE0RDtBQUM1RCw0RUFBc0U7QUFFdEUsbURBQWtDO0FBQ2xDLDZDQUF5RDtBQUN6RCwrQ0FBMkM7QUFDM0MsZ0RBQXVCO0FBQ3ZCLG9EQUE0QjtBQUM1Qiw0Q0FBbUI7QUFDbkIsNEVBQTJDO0FBQzNDLDRDQUFtQjtBQUNuQixnREFBNEM7QUFDNUMsa0RBQThDO0FBQzlDLGdEQUF1QjtBQWtDdkIsU0FBZ0IsaUJBQWlCO0lBQ2hDLE9BQU87UUFDTixJQUFJLEVBQUUsSUFBSTtRQUNWLFlBQVksRUFBRSxPQUFPO1FBQ3JCLGlCQUFpQixFQUFFO1lBQ2xCLHVCQUF1QjtTQUN2QjtRQUNELFNBQVMsRUFBRSxFQUFFO1FBQ2IsU0FBUyxFQUFDLE1BQU07UUFDaEIsWUFBWSxFQUFFLFVBQVUsR0FBNkI7WUFDcEQsSUFBQSxvQkFBTyxF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Fx0XHRyZXR1cm4gZGF0YS5zdWJzdHJpbmcoMCwxMDAwKStcIi4uLiAodG90YWw6XCIgKyBkYXRhLmxlbmd0aCArIFwiKVwiXG5cdFx0XHRyZXR1cm4gZGF0YTtcblx0XHR9XG5cblx0XHRpZih0eXBlb2YgZGF0YSA9PT0gXCJvYmplY3RcIil7XG5cdFx0XHRpZighcmVzdWx0KVxuXHRcdFx0XHRyZXN1bHQ9e307XG5cdFx0XHRsZXQgYXJyY250ID0gMTAwO1xuXHRcdFx0Zm9yKGxldCBpIGluIGRhdGEpe1xuXHRcdFx0XHRyZXN1bHRbaV09dGhpcy5jaGVja0RhdGFMZW5ndGgoZGF0YVtpXSxyZXN1bHRbaV0sbHZsKzEpO1xuXHRcdFx0XHRhcnJjbnQtLTtcblx0XHRcdFx0aWYoYXJyY250PD0wKXtcblx0XHRcdFx0XHRyZXN1bHRbXCIuLi5cIl09XCIuLi4gdG90YWw6IFwiK0FycmF5LmlzQXJyYXkoZGF0YSk/ZGF0YS5sZW5ndGg6T2JqZWN0LmtleXMoZGF0YSkubGVuZ3RoO1xuXHRcdFx0XHRcdGJyZWFrO1xuXHRcdFx0XHR9XG5cdFx0XHR9XG5cdFx0fVxuXHRcdHJldHVybiByZXN1bHQgPz8gbnVsbDtcblx0fVxuXG59XG4iXX0=
@@ -44,6 +44,7 @@ export interface MysqlResult {
44
44
  rollbackError?: MysqlError | null;
45
45
  isDuplicateError?: boolean;
46
46
  data: any;
47
+ count: number;
47
48
  }
48
49
  export interface MySqlQuery {
49
50
  query: string;
@@ -51,6 +52,7 @@ export interface MySqlQuery {
51
52
  rollbackQuery?: string | null;
52
53
  transactionID?: number;
53
54
  throwable?: boolean;
55
+ calculateCount?: boolean;
54
56
  }
55
57
  export interface MysqlQueryField {
56
58
  name: string;
@@ -100,6 +102,7 @@ export declare class MysqlService extends BaseService {
100
102
  commit(trx: ITransaction): Promise<MysqlError | null>;
101
103
  rollbackTransaction(trx: ITransaction, donNotRemove?: boolean): Promise<MysqlError | null>;
102
104
  finishApp(): Promise<void>;
105
+ prepareCountQuery(query: string): string;
103
106
  storeTransactionAsProblem(trx: ITransaction, message: string): Promise<void>;
104
107
  recreatePool(): Promise<boolean>;
105
108
  onApplicationReady(): Promise<void>;
@@ -107,8 +110,8 @@ export declare class MysqlService extends BaseService {
107
110
  static objectToFields(obj: MysqlQueryFieldObject | MysqlQueryField[]): MysqlQueryField[];
108
111
  static prepareQuery(query: string, fields: MysqlQueryField[] | MysqlQueryFieldObject): string;
109
112
  static prepareQueryFieldValue(value: string | number | boolean | null | undefined, system?: boolean): string | number | boolean | null | undefined;
110
- execute(query: string, rollbackQuery: string | null, transactionID: number, throwable?: boolean): Promise<MysqlResult>;
111
- sendQuery(conn: mysql.PoolConnection, query: string, resolve: (data: MysqlResult) => void, rollback: string | null, throwable: boolean): Promise<void>;
113
+ execute(query: string, rollbackQuery: string | null, transactionID: number, throwable: boolean, calculateCount: boolean): Promise<MysqlResult>;
114
+ sendQuery(conn: mysql.PoolConnection, query: string, resolve: (data: MysqlResult) => void, rollback: string | null, throwable: boolean, calculateCount: boolean): Promise<void>;
112
115
  queryAsync(conn: mysql.PoolConnection, query: string): Promise<{
113
116
  err: MysqlError | null;
114
117
  results?: any;
@@ -134,7 +134,7 @@ class MysqlService extends BaseService_1.BaseService {
134
134
  const promises = [];
135
135
  for (let i of data) {
136
136
  const query = MysqlService.prepareQuery(i.query, i.fields);
137
- promises.push(this.execute(query, i.rollbackQuery ?? null, i.transactionID ?? 0, i.throwable));
137
+ promises.push(this.execute(query, i.rollbackQuery ?? null, i.transactionID ?? 0, i.throwable ?? false, i.calculateCount ?? false));
138
138
  }
139
139
  if (this.debug)
140
140
  console.log("Execute queries: ", data.length);
@@ -187,7 +187,7 @@ class MysqlService extends BaseService_1.BaseService {
187
187
  sql: "",
188
188
  name: "NO_TRX",
189
189
  message: "Transaction not found",
190
- }, data: null, rollbackError: null };
190
+ }, data: null, rollbackError: null, count: 0 };
191
191
  const query = MysqlService.prepareQuery(data.query.query, data.query.fields);
192
192
  let err = null;
193
193
  let sqlData = null;
@@ -199,14 +199,30 @@ class MysqlService extends BaseService_1.BaseService {
199
199
  catch (e) {
200
200
  err = this.createMysqlQueryError(e);
201
201
  }
202
+ let count = 0;
202
203
  if (err)
203
204
  this.rollbackTransaction(trx);
205
+ else {
206
+ if (data.query.calculateCount && query.indexOf("SELECT") === 0) {
207
+ let countQuery = this.prepareCountQuery(query);
208
+ try {
209
+ const countQueryResult = await trx.conn.query(countQuery);
210
+ if (countQueryResult && countQueryResult.length > 0) {
211
+ count = countQueryResult[0].count;
212
+ }
213
+ }
214
+ catch (e) {
215
+ (0, LogService_1.logError)("${MysqlService.js}->query error", e);
216
+ }
217
+ }
218
+ }
204
219
  if (this.debug)
205
220
  console.log("Query execution status:", err ? err.message : "completed");
206
221
  trx.queries.push({ sql: query, status: err ? err.message : "completed" });
207
222
  return {
208
223
  data: sqlData ? sqlData[0] : null,
209
224
  error: err,
225
+ count: count
210
226
  };
211
227
  };
212
228
  exports.REQ_MYSQL_TROLLBACK.listener = async (tid) => {
@@ -295,6 +311,13 @@ class MysqlService extends BaseService_1.BaseService {
295
311
  this.failReportFileStream.end();
296
312
  this.failReportFileStream = null;
297
313
  }
314
+ prepareCountQuery(query) {
315
+ let countQuery = query;
316
+ countQuery = countQuery.substring(0, countQuery.indexOf("LIMIT"));
317
+ countQuery = countQuery.substring(countQuery.indexOf("FROM"));
318
+ countQuery = "SELECT COUNT(1) as `count` " + countQuery;
319
+ return countQuery;
320
+ }
298
321
  async storeTransactionAsProblem(trx, message) {
299
322
  if (!this.options.transactionFailReport && !this.options.transactionFailReportDir) {
300
323
  (0, LogService_1.logCrit)("${MysqlService.js}", "Can't report failed transaction, no report function: transactionFailReport in options, and transactionFailReportDir isnt set");
@@ -526,7 +549,7 @@ class MysqlService extends BaseService_1.BaseService {
526
549
  return "NULL";
527
550
  return value;
528
551
  }
529
- async execute(query, rollbackQuery, transactionID, throwable) {
552
+ async execute(query, rollbackQuery, transactionID, throwable, calculateCount) {
530
553
  return new Promise(async (resolve, reject) => {
531
554
  if (!this.pool) {
532
555
  (0, LogService_1.logError)("${MysqlService.js}", "No pool");
@@ -541,6 +564,7 @@ class MysqlService extends BaseService_1.BaseService {
541
564
  throwable: throwable ? true : false
542
565
  },
543
566
  data: null,
567
+ count: 0
544
568
  });
545
569
  return;
546
570
  }
@@ -569,6 +593,7 @@ class MysqlService extends BaseService_1.BaseService {
569
593
  throwable: throwable ? true : false
570
594
  },
571
595
  data: null,
596
+ count: 0
572
597
  });
573
598
  return;
574
599
  }
@@ -578,7 +603,7 @@ class MysqlService extends BaseService_1.BaseService {
578
603
  break;
579
604
  }
580
605
  }
581
- this.sendQuery(conn, query, resolve, rollbackQuery, throwable ? true : false);
606
+ this.sendQuery(conn, query, resolve, rollbackQuery, throwable ? true : false, calculateCount);
582
607
  }
583
608
  catch (e) {
584
609
  (0, LogService_1.logError)("${MysqlService.js}", e);
@@ -594,13 +619,14 @@ class MysqlService extends BaseService_1.BaseService {
594
619
  name: "NO_CONN",
595
620
  message: (e && typeof e === "object" && "message" in e) ? e.message : "Mysql cant get connection"
596
621
  },
597
- data: null
622
+ data: null,
623
+ count: 0
598
624
  });
599
625
  return;
600
626
  }
601
627
  });
602
628
  }
603
- async sendQuery(conn, query, resolve, rollback, throwable) {
629
+ async sendQuery(conn, query, resolve, rollback, throwable, calculateCount) {
604
630
  let errCatched = false;
605
631
  conn.on("error", async (err) => {
606
632
  errCatched = true;
@@ -624,7 +650,8 @@ class MysqlService extends BaseService_1.BaseService {
624
650
  throwable: throwable
625
651
  },
626
652
  data: null,
627
- rollbackError: rollbackError
653
+ rollbackError: rollbackError,
654
+ count: 0
628
655
  });
629
656
  });
630
657
  (0, LogService_1.logInfo)("${MysqlService.js}", query);
@@ -646,9 +673,22 @@ class MysqlService extends BaseService_1.BaseService {
646
673
  error: { ...queryResult.err, throwable: throwable },
647
674
  data: null,
648
675
  rollbackError: rollbackError,
649
- isDuplicateError: dup
676
+ isDuplicateError: dup,
677
+ count: 0
650
678
  });
651
679
  }
680
+ let count = 0;
681
+ if (calculateCount && query.indexOf("SELECT") === 0) {
682
+ let countQuery = this.prepareCountQuery(query);
683
+ const countQueryResult = await this.queryAsync(conn, countQuery);
684
+ if (countQueryResult.err)
685
+ (0, LogService_1.logError)("${MysqlService.js}->query error", countQueryResult.err);
686
+ else {
687
+ if (countQueryResult.results && countQueryResult.results.length > 0) {
688
+ count = countQueryResult.results[0].count;
689
+ }
690
+ }
691
+ }
652
692
  try {
653
693
  conn.release();
654
694
  conn.removeAllListeners();
@@ -658,6 +698,7 @@ class MysqlService extends BaseService_1.BaseService {
658
698
  resolve({
659
699
  error: err,
660
700
  data: queryResult.results,
701
+ count: count
661
702
  });
662
703
  }
663
704
  async queryAsync(conn, query) {
@@ -725,4 +766,4 @@ const encrypt = (txt) => {
725
766
  }
726
767
  };
727
768
  exports.default = MysqlService;
728
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTXlzcWxTZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FwaVNlcnZlci9NeXNxbFNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFQSwrQ0FBNEM7QUFDNUMsaUVBQTZDO0FBQzdDLG1DQUFxRTtBQUNyRSw2Q0FBMEQ7QUFDMUQsc0RBQXVDO0FBQ3ZDLDRDQUFtQjtBQUNuQixnREFBdUI7QUFFVixRQUFBLGVBQWUsR0FBQyxJQUFJLHdCQUFNLEVBQVEsQ0FBQTtBQUNsQyxRQUFBLGVBQWUsR0FBRyxJQUFJLG9CQUFHLENBQXdDLFNBQVMsRUFBQyxpQkFBaUIsQ0FBQyxDQUFDO0FBRzlGLFFBQUEsZ0JBQWdCLEdBQUcsSUFBSSxvQk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GFtcD50aGlzLm1heFRyYW5zYWN0aW9uV2FpdFRpbWUpe1xuICAgICAgICAgICAgICAgICAgICBsb2dFcnJvcihcIlJlbGVhc2UgdHJhbnNhY3Rpb24gY29ubmVjdGlvbiBkdWUgdG8gdGltZW91dFwiKVxuICAgICAgICAgICAgICAgICAgICB0aGlzLnJvbGxiYWNrVHJhbnNhY3Rpb24oaSx0cnVlKTtcbiAgICAgICAgICAgICAgICAgICAgcmVtb3ZlZElEcy5wdXNoKGkuaWQpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICB0aGlzLnRyYW5zYWN0aW9ucyA9IHRoaXMudHJhbnNhY3Rpb25zLmZpbHRlcihpPT4hcmVtb3ZlZElEcy5pbmNsdWRlcyhpLmlkKSlcbiAgICAgICAgICAgIFxuICAgICAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIlJlbW92ZWQ6IFwiLGNvdW50LXRoaXMudHJhbnNhY3Rpb25zLmxlbmd0aClcblxuICAgICAgICAgICAgXG5cbiAgICAgICAgfSwxMDAwKjMwKVxuXG4gICAgICAgIHNldEludGVydmFsKCgpPT57XG4gICAgICAgICAgICBpZighdGhpcy5mYWlsUmVwb3J0RmlsZVN0cmVhbSlcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAvLyBhZnRlciAxNSBtaW4gb2YgaW5hY3Rpdml0eSwgY2xvc2UgZmlsZVxuICAgICAgICAgICAgaWYoRGF0ZS5ub3coKS10aGlzLmZhaWxSZXBvcnRMYXN0QWNjZXNzVGltZT4xMDAwKjYwKjE1KXtcbiAgICAgICAgICAgICAgICB0aGlzLmZhaWxSZXBvcnRGaWxlU3RyZWFtLmVuZCgpO1xuICAgICAgICAgICAgICAgIHRoaXMuZmFpbFJlcG9ydEZpbGVTdHJlYW09bnVsbDtcbiAgICAgICAgICAgIH1cblxuICAg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JhbnNhY3Rpb25zXG4gICAgICAgICAgICBmb3IobGV0IGkgb2YgdGhpcy50cmFuc2FjdGlvbnMpe1xuICAgICAgICAgICAgICAgIGlmKGkuY29ubj09PWNvbm4pe1xuICAgICAgICAgICAgICAgICAgICBsb2dJbmZvKFwiWW91ciBjb25uZWN0aW9uIGlzIGluIHRyYW5zYWN0aW9uXCIpXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB7Y29kZTpcIkNPTk5fSU5fVFJYXCIsZXJybm86MTAwMDA1LGZhdGFsOnRydWUsdGhyb3dhYmxlOmZhbHNlLHNxbDpcIlwiLG5hbWU6XCJDT05OX0lOX1RSWFwiLG1lc3NhZ2U6XCJDb25uZWN0aW9uIGlzIGluIHRyYW5zYWN0aW9uXCJ9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBjb25zdCB0aWQgPSBNeXNxbFNlcnZpY2UubmV4dFRyYW5zYWN0aW9uSUQrKztcbiAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJCZWdpbiB0cmFuc2FjdGlvbiB3aXRoIGlkIFwiLHRpZClcblxuICAgICAgICAgICAgdHJ5e1xuICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIC8vIGF3YWl0IGNvbm4uYmVnaW5UcmFuc2FjdGlvbigpO1xuICAgICAgICAgICAgICAgIGF3YWl0IGNvbm4ucXVlcnkoXCJTVEFSVCBUUkFOU0FDVElPTlwiKTtcbiAgICAgICAgICAgICAgICAvL2NvbnN0IHJlcyA9IGF3YWl0IGNvbm4ucXVlcnkoXCJTRVQgYXV0b2NvbW1pdD0wXCIpO1xuICAgICAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiVHJhbnNhY3Rpb24gc3RhcnRlZFwiKVxuXG4gICAgICAgICAgICB9Y2F0Y2goZSl7XG4gICAgICAgICAgICAgICB0aGlzLnJvbGxiYWNrVHJhbnNhY3Rpb24oe2lkOnRpZCxjb25uOmNvbm4sdGltZXN0YW1wOkRhdGUubm93KCkscXVlcmllczpbe3NxbDpcIlNUQVJUIFRSQU5TQUNUSU9OXCIsc3RhdHVzOlwiZXJyb3JcIn1dfSlcbiAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmNyZWF0ZU15c3FsUXVlcnlFcnJvcihlKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy50cmFuc2FjdGlvbnMucHVzaCh7XG4gICAgICAgICAgICAgICAgaWQ6dGlkLFxuICAgICAgICAgICAgICAgIHRpbWVzdGFtcDpEYXRlLm5vdygpLFxuICAgICAgICAgICAgICAgIGNvbm46Y29ubixcbiAgICAgICAgICAgICAgICBxdWVyaWVzOltdXG4gICAgICAgICAgICB9KVxuXG4gICAgICAgICAgICBpZih0aGlzLmRlYnVnKVxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiVHJhbnNhY3Rpb25zIHBvb2w6IFwiLHRoaXMudHJhbnNhY3Rpb25zKVxuXG4gICAgICAgICAgICByZXR1cm4gdGlkO1xuICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICBSRVFfTVlTUUxfVFFVRVJZLmxpc3RlbmVyPWFzeW5jIGRhdGE9PntcbiAgICAgICAgICAgIGNvbnN0IHRyeCA9IHRoaXMudHJhbnNhY3Rpb25zLmZpbmQoaT0+aS5pZD09PWRhdGEudGlkKTtcbiAgICAgICAgICAgIGlmKCF0cngpXG4gICAgICAgICAgICAgICAgcmV0dXJuIHtlcnI6IHtcbiAgICAgICAgICAgICAgICAgICAgY29kZTpcIk5PX1RSWFwiLFxuICAgICAgICAgICAgICAgICAgICBlcnJubzoxMDAwMDQsXG4gICAgICAgICAgICAgICAgICAgIGZhdGFsOnRydWUsXG4gICAgICAgICAgICAgICAgICAgIHNxbDpcIlwiLFxuICAgICAgICAgICAgICAgICAgICBuYW1lOlwi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06bnVsbCxcbiAgICAgICAgICAgICAgICBlcnJvcjplcnIsXG4gICAgICAgICAgICB9O1xuICAgICAgICB9XG5cbiAgICAgICAgUkVRX01ZU1FMX1RST0xMQkFDSy5saXN0ZW5lcj1hc3luYyAodGlkOm51bWJlcik9PntcbiAgICAgICAgICAgIGNvbnN0IHRyeCA9IHRoaXMudHJhbnNhY3Rpb25zLmZpbmQoaT0+aS5pZD09PXRpZCk7XG4gICAgICAgICAgICBpZighdHJ4KXtcbiAgICAgICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgICAgICBjb2RlOlwiTk9fVFJYXCIsXG4gICAgICAgICAgICAgICAgICAgIGVycm5vOjEwMDAwNCxcbiAgICAgICAgICAgICAgICAgICAgZmF0YWw6dHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgdGhyb3dhYmxlOmZhbHNlLFxuICAgICAgICAgICAgICAgICAgICBzcWw6XCJcIixcbiAgICAgICAgICAgICAgICAgICAgbmFtZTpcIk5PX1RSWFwiLFxuICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOlwiVHJhbnNhY3Rpb24gbm90IGZvdW5kXCJcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGF3YWl0IHRoaXMucm9sbGJhY2tUcmFuc2FjdGlvbih0cngpO1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICBSRVFfTVlTUUxfVENPTU1JVC5saXN0ZW5lcj1hc3luYyAodGlkOm51bWJlcik9PntcbiAgICAgICAgICAgIGNvbnN0IHRyeCA9IHRoaXMudHJhbnNhY3Rpb25zLmZpbmQoaT0+aS5pZD09PXRpZCk7XG4gICAgICAgICAgICBpZighdHJ4KXtcbiAgICAgICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgICAgICBjb2RlOlwiTk9fVFJYXCIsXG4gICAgICAgICAgICAgICAgICAgIGVycm5vOjEwMDAwNCxcbiAgICAgICAgICAgICAgICAgICAgZmF0YWw6dHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgc3FsOlwiXCIsXG4gICAgICAgICAgICAgICAgICAgIG5hbWU6XCJOT19UUlhcIixcbiAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTpcIlRyYW5zYWN0aW9uIG5vdCBmb3VuZFwiLFxuICAgICAgICAgICAgICAgICAgICB0aHJvd2FibGU6ZmFsc2VcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cblxuICAgICAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIkNvbW1pdCB0cmFuc2FjdGlvbjpcIix0cngpXG4gICAgICAgICAgICBcbiAgICAgICAgICAgIC8vIHJlbW92ZSBmcm9tIHRyYW5zYWN0aW9uc1xuICAgICAgICAgICAgdGhpcy50cmFuc2FjdGlvbnMgPSB0aGlzLnRyYW5zYWN0aW9ucy5maWx0ZXIoaT0+aS5pZCE9PXRpZCk7XG5cbiAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJUcmFuc2FjdGlvbiBwb29sOlwiLHRoaXMudHJhbnNhY3Rpb25zIClcbiAgICAgICAgICAgIFxuICAgICAgICAgICAgY29uc3QgZXJyID0gYXdhaXQgdGhpcy5jb21taXQodHJ4KTtcblxuICAgICAgICAgICAgcmV0dXJuIGVycjtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFzeW5jIGNvbW1pdCh0cng6SVRyYW5zYWN0aW9uKTpQcm9taXNlPE15c3FsRXJyb3J8bnVsbD57XG4gICAgICAgXG4gICAgICAgIHRyeXtcbiAgICAgICAgICAgIGF3YWl0IHRyeC5jb25uLmNvbW1pdCgpO1xuICAgICAgICAgICAgLy9hd2FpdCB0cnguY29ubi5xdWVyeShcIkNPTU1JVFwiKTtcbiAgICAgICAgICAgIHRyeC5jb25uLnJlbW92ZUFsbExpc3RlbmVycygpO1xuICAgICAgICAgICAgdHJ4LmNvbm4ucmVsZWFzZSgpO1xuICAgICAgICB9Y2F0Y2goZSl7XG4gICAgICAgICAgICBhd2FpdCB0aGlzLnJvbGxiYWNrVHJhbnNhY3Rpb24odHJ4KTtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmNyZWF0ZU15c3FsUXVlcnlFcnJvcihlKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gbnVsbDtcblxuICAgIH1cblxuICAgIGFzeW5jIHJvbGxiYWNrVHJhbnNhY3Rpb24odHJ4OklUcmFuc2FjdGlvbixkb25Ob3RSZW1vdmU/OmJvb2xlYW4pOlByb21pc2U8TXlzcWxFcnJvcnxudWxsPntcbiAgICAgICAgbGV0IGVycj1udWxsO1xuICAgICAgICB0cnl7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhcIlJvbGxiYWNrIHN0YXJ0ZWRcIix0cnguY29ubilcbiAgICAgICAgICAgIGF3YWl0IHRyeC5jb25uLnJvbGxiYWNrKCk7XG4gICAgICAgICAgICBhd2FpdCB0cnguY29ubi5jb21taXQoKTtcbiAgICAgICAgICAgIC8vYXdhaXQgdHJ4LmNvbm4ucXVlcnkoXCJST0xMQkFDS1wiKTtcbiAgICAgICAgICAgIHRyeC5jb25uLnJlbW92ZUFsbExpc3RlbmVycygpO1xuICAgICAgICAgICAgdHJ4LmNvbm4ucmVsZWFzZSgpO1xuICAgICAgICAgICAgaWYoIWRvbk5vdFJlbW92ZSlcbiAgICAgICAgICAgICAgICB0aGlzLnRyYW5zYWN0aW9ucyA9IHRoaXMudHJhbnNhY3Rpb25zLmZpbHRlcihpPT5pLmlkIT09dHJ4LmlkKTtcbiAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJSb2xsYmFjayBjb21wbGV0ZVwiLHRyeC5jb25uKVxuICAgICAgICB9Y2F0Y2goZSl7XG4gICAgICAgICAgICBsb2dDcml0KF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Nvbm5lY3Rpb25cbiAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiQ2hlY2sgbXlzcWwgY29ubmVjdGlvblwiKVxuXG4gICAgICAgIHJldHVybiBuZXcgUHJvbWlzZShhc3luYyAocmVzb2x2ZSxyZWplY3QpPT57XG4gICAgICAgICAgICB0cnl7XG4gICAgICAgICAgICAgICAgY29uc3QgY29ubiA9IGF3YWl0IHRoaXMucG9vbD8uZ2V0Q29ubmVjdGlvbigpXG4gICAgICAgICAgICAgICAgaWYoY29ubil7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IFtyZXMsZl0gPSBhd2FpdCBjb25uLnF1ZXJ5KFwiU0VMRUNUIDFcIik7XG4gICAgICAgICAgICAgICAgICAgIGNvbm4/LnJlbGVhc2UoKTtcbiAgICAgICAgICAgICAgICAgICAgbG9nSW5mbyhcIiR7TXlzcWxTZXJ2aWNlLmpzfVwiLFwiQ29ubmVjdGVkIHRvIE1ZU1FMIVwiKVxuICAgICAgICAgICAgICAgICAgICByZXNvbHZlKHRydWUpXG4gICAgICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIH1lbHNlXG4gICAgICAgICAgICAgICAgICAgIHJlc29sdmUoZmFsc2UpXG4gICAgICAgICAgICB9Y2F0Y2goZSl7XG4gICAgICAgICAgICAgICAgbG9nQ3JpdChcIiR7TXlzcWxTZXJ2aWNlLmpzfVwiLFwiQ2FuJ3QgY29ubmVjdCB0byBNWVNRTCFcIilcbiAgICAgICAgICAgICAgICByZXNvbHZlKGZhbHNlKVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcblxuICAgIH1cblxuICAgIGFzeW5jIG9uQXBwbGljYXRpb25SZWFkeSgpIHt9XG5cblxuICAgIHN0YXRpYyBmaWVsZHNUb09iamVjdChmaWVsZHM6TXlzcWxRdWVyeUZpZWxkW118TXlzcWxRdWVyeUZpZWxkT2JqZWN0LGlnbm9yZVN5c3RlbVBhcmFtZXRlcnM/OmJvb2xlYW4pOk15c3FsUXVlcnlGaWVsZE9iamVjdHtcbiAgICAgICAgaWYoIUFycmF5LmlzQXJyYXkoZmllbGRzKSlcbiAgICAgICAgICAgIHJldHVybiBmaWVsZHM7XG4gICAgICAgIGNvbnN0IG9iajpNeXNxbFF1ZXJ5RmllbGRPYmplY3Q9e307XG4gICAgICAgIGZvcihsZXQgaSBvZiBmaWVsZHMpe1xuICAgICAgICAgICAgaWYoIWkubmFtZSlcbiAgICAgICAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgICAgIGlmKHR5cGVvZiBpLnZhbHVlIT09IFwib2JqZWN0XCIpXG4gICAgICAgICAgICAgICAgb2JqW2kubmFtZV09aS52YWx1ZTtcbiAgICAgICAgICAgIGVsc2V7XG4gICAgICAgICAgICAgICAgaWYoIWlnbm9yZVN5c3RlbVBhcmFtZXRlcnMpe1xuICAgICAgICAgICAgICAgICAgICBvYmpbaS5uYW1lXT17XG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTppLnZhbHVlLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3lzdGVtOmkuc3lzdGVtLFxuICAgICAgICAgICAgICAgICAgICAgICAgaWdub3JlSW5JbnNlcnQ6aS5pZ25vcmVJbkluc2VydCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGlnbm9yZUluVXBkYXRlOmkuaWdub3JlSW5VcGRhdGUsXG4gICAgICAgICAgICAgICAgICAgICAgICB1c2VJblJlcGxhY2U6aS51c2VJblJlcGxhY2UsXG4gICAgICAgICAgICAgICAgICAgICAgICBuYW1lOmkubmFtZVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfWVsc2VcbiAgICAgICAgICAgICAgICAgICAgb2JqW2kubmFtZV09aS52YWx1ZVxuICAgICAgICAgICAgfVxuXG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIG9iajtcbiAgICB9XG5cbiAgICBzdGF0aWMgb2JqZWN0VG9GaWVsZHMob2JqOk15c3FsUXVlcnlGaWVsZE9iamVjdHxNeXNxbFF1ZXJ5RmllbGRbXSk6TXlzcWxRdWVyeUZpZWxkW117XG4gICAgICAgIGlmKEFycmF5LmlzQXJyYXkob2JqKSlcbiAgICAgICAgICAgIHJldHVybiBvYmo7XG4gICAgICAgIGNvbnN0IGZpZWxkczpNeXNxbFF1ZXJ5RmllbGRbXT1bXTtcbiAgICAgICAgZm9yKGxldCBpIGluIG9iail7XG4gICAgICAgICAgICBpZihvYmpbaV0gJiYgdHlwZW9mIG9ialtpXSA9PT0gXCJvYmplY3RcIil7XG4gICAgICAgICAgICAgICAgbGV0IG1vID0gb2JqW2ldIGFzIFJlY29yZDxzdHJpbmcsc3RyaW5nfG51bWJlcnxib29sZWFufG51bGx8dW5kZWZpbmVkPjtcbiAgICAgICAgICAgICAgICBpZighbW8pe1xuICAgICAgICAgICAgICAgICAgICBtbz17XG4gICAgICAgICAgICAgICAgICAgICAgICBuYW1lOmksXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTpudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3lzdGVtOmZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgaWdub3JlSW5JbnNlcnQ6ZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICBpZ25vcmVJblVwZGF0ZTpmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHVzZUluUmVwbGFjZTpmYWxzZVxuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGZpZWxkcy5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgbmFtZTptby5uYW1lIGFzIHN0cmluZyA/PyBpLFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZTptby52YWx1ZSxcbiAgICAgICAgICAgICAgICAgICAgc3lzdGVtOm1vLnN5c3RlbSBhcyBib29sZWFuLFxuICAgICAgICAgICAgICAgICAgICBpZ25vcmVJbkluc2VydDptby5pZ25vcmVJbkluc2VydCBhcyBib29sZWFuLFxuICAgICAgICAgICAgICAgICAgICBpZ25vcmVJblVwZGF0ZTptby5pZ25vcmVJblVwZGF0ZSBhcyBib29sZWFuLFxuICAgICAgICAgICAgICAgICAgICB1c2VJblJlcGxhY2U6bW8udXNlSW5SZXBsYWNlIGFzIGJvb2xlYW5cbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfWVsc2V7XG4gICAgICAgICAgICAgICAgZmllbGRzLnB1c2goe1xuICAgICAgICAgICAgICAgICAgICBuYW1lOmksXG4gICAgICAgICAgICAgICAgICAgIHZhbHVlOm9ialtpXSBhcyBzdHJpbmd8bnVtYmVyfGJvb2xlYW58bnVsbHx1bmRlZmluZWRcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmaWVsZHM7XG4gICAgfVxuXG4gICAgc3RhdGljIHByZXBhcmVRdWVyeShxdWVyeTpzdHJpbmcsZmllbGRzOk15c3FsUXVlcnlGaWVsZFtdfE15c3FsUXVlcnlGaWVsZE9iamVjdCk6c3RyaW5ne1xuICAgICAgICBcbiAgICAgICAgaWYoIUFycmF5LmlzQXJyYXkoZmllbGRzKSlcbiAgICAgICAgICAgIGZpZWxkcyA9IE15c3FsU2VydmljZS5vYmplY3RUb0ZpZWxkcyhmaWVsZHMpO1xuXG4gICAgICAgIGZvcihsZXQgaSBvZiBmaWVsZHMpe1xuICAgICAgICAgICAgY29uc3QgdmFsID10aGlzLnByZXBhcmVRdWVyeUZpZWxkVmFsdWUoaS52YWx1ZSxpLnN5c3RlbSk7XG4gICAgICAgICAgICBpLl9wYXJzZWRWYWx1ZT12YWw7XG4gICAgICAgICAgICBxdWVyeT1xdWVyeS5yZXBsYWNlQWxsKFwiQFwiK2kubmFtZSx2YWwrXCJcIilcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHRtcCA9IHF1ZXJ5LnRvTG93ZXJDYXNl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IG9uaW5zZXJ0TmFtZXM9W11cbiAgICAgICAgICAgIGxldCBvbmluc2VydFZhbHVlcz1bXVxuICAgICAgICAgICAgZm9yKGxldCBpIG9mIGZpZWxkcyl7XG4gICAgICAgICAgICAgICAgaWYoaS5pZ25vcmVJbkluc2VydClcbiAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgb25pbnNlcnROYW1lcy5wdXNoKGkubmFtZSlcbiAgICAgICAgICAgICAgICBvbmluc2VydFZhbHVlcy5wdXNoKGkuX3BhcnNlZFZhbHVlKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcXVlcnkgPSBxdWVyeS5yZXBsYWNlQWxsKFwiQGluc2VydFwiLGAoJHtvbmluc2VydE5hbWVzLmpvaW4oXCIsXCIpfSkgVkFMVUVTICgke29uaW5zZXJ0VmFsdWVzLmpvaW4oXCIsXCIpfSlgKVxuICAgICAgICB9XG5cbiAgICAgICAgaWYocXVlcnkuaW5kZXhPZihcIkBvbnVwZGF0ZVwiKSE9PS0xKXtcbiAgICAgICAgICAgIGxldCBvblVwZGF0ZT1bXVxuICAgICAgICAgICAgZm9yKGxldCBpIG9mIGZpZWxkcyl7XG4gICAgICAgICAgICAgICAgaWYoaS5pZ25vcmVJblVwZGF0ZSlcbiAgICAgICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICAgICAgb25VcGRhdGUucHVzaCgnYCcraS5uYW1lLnJlcGxhY2VBbGwoXCJgXCIsJycpLnJlcGxhY2VBbGwoJ1xcXCInLFwiXCIpLnJlcGxhY2VBbGwoJ1xcJycsXCJcIikrJ2AgPSAnK2kuX3BhcnNlZFZhbHVlKVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcXVlcnkgPSBxdWVyeS5yZXBsYWNlQWxsKFwiQG9udXBkYXRlXCIsb25VcGRhdGUuam9pbihcIiAsIFwiKSlcbiAgICAgICBcbiAgICAgICAgfVxuXG4gICAgICAgIGlmKHF1ZXJ5LmluZG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gIH1cbiAgICAgICAgaWYodmFsdWUgPT09IG51bGwgfHwgdmFsdWUgPT09IHVuZGVmaW5lZClcbiAgICAgICAgICAgIHJldHVybiBcIk5VTExcIlxuICAgICAgICByZXR1cm4gdmFsdWU7XG4gICAgfVxuXG5cbiAgICBhc3luYyBleGVjdXRlKHF1ZXJ5OnN0cmluZyxyb2xsYmFja1F1ZXJ5OnN0cmluZ3xudWxsLHRyYW5zYWN0aW9uSUQ6bnVtYmVyLHRocm93YWJsZT86Ym9vbGVhbik6UHJvbWlzZTxNeXNxbFJlc3VsdD57XG4gICAgICAgIHJldHVybiBuZXcgUHJvbWlzZShhc3luYyAocmVzb2x2ZTooZGF0YTpNeXNxbFJlc3VsdCk9PnZvaWQscmVqZWN0KT0+e1xuICAgICAgICAgICAgLy8gQ2hlY2sgcG9vbFxuICAgICAgICAgICAgaWYoIXRoaXMucG9vbCl7XG4gICAgICAgICAgICAgICAgbG9nRXJyb3IoXCIke015c3FsU2VydmljZS5qc31cIixcIk5vIHBvb2xcIilcbiAgICAgICAgICAgICAgICByZXNvbHZlKHtcbiAgICAgICAgICAgICAgICAgICAgZXJyb3I6e1xuICAgICAgICAgICAgICAgICAgICAgICAgY29kZTogXCJOT19QT09MXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBlcnJubzogMTAwMDAwLFxuICAgICAgICAgICAgICAgICAgICAgICAgZmF0YWw6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICBzcWw6IHF1ZXJ5LFxuICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTpcIk5PX1BPT0xcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2U6XCJNeXNxbCBwb29sIG5vdCBjcmVhdGVkXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvd2FibGU6dGhyb3dhYmxlP3RydWU6ZmFsc2VcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgZGF0YTpudWxsLFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBcbiAgICAgICAgICAgIHRyeXtcbiAgICAgICAgICAgICAgICBsZXQgY29ubjpteXNxbC5Qb29sQ29ubmVjdGlvbnxudWxsPW51bGxcbiAgICAgICAgICAgICAgICBpZih0cmFuc2FjdGlvbklEICYmIHRyYW5zYWN0aW9uSUQ+MCl7XG4gICAgICAgICAgICAgICAgICAgIGNvbm4gPSB0aGlzLnRyYW5zYWN0aW9ucy5maW5kKGk9PmkuaWQ9PT10cmFuc2FjdGlvbklEKT8uY29ubiA/PyBudWxsO1xuICAgICAgICAgICAgICAgICAgICBpZih0aGlzLmRlYnVnKVxuICAgICAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJFeGVjdXRlIHF1ZXJ5IG9uIHRyYW5zYWN0aW9uOiBcIixjb25uKVxuICAgICAgICAgICAgICAgIH1lbHNle1xuICAgICAgICAgICAgICAgICAgICBjb25uID0gYXdhaXQgdGhpcy5wb29sLmdldENvbm5lY3Rpb24oKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZih0aGlzLmRlYnVnKVxuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIkV4ZWN1dGUgcXVlcnlcIixjb25uKVxuXG4gICAgICAgICAgICAgICAgLy8gaWYgY29ubmVjdGlvbiBub3QgY3JlYXRlZFxuICAgICAgICAgICAgICAgIGlmKCFjb25uKXtcbiAgICAgICAgICAgICAgICAgICAgbG9nQ3JpdChcIiR7TXlzcWxTZXJ2aWNlLmpzfVwiLGBObyBjb25uZWN0aW9uIGNyZWF0ZWQhYClcbiAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZSh7XG4gICAgICAgICAgICAgICAgICAgICAgICBlcnJvcjp7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY29kZTogXCJOT19DT05OXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZXJybm86IDEwMDAwMSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmYXRhbDogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzcWw6IHF1ZXJ5LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG5hbWU6XCJOT19DT05OXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTpcIk15c3FsIHBvb2wgY2FudCBnZXQgY29ubmVjdGlvblwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93YWJsZTp0aHJvd2FibGU/dHJ1ZTpmYWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGE6bnVsbCxcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cblxuXG4gICAgICAgICAgICAgICAgLy8gRG8gc2VuZCBxdWVyeVxuICAgICAgICAgICAgICAgIGZvcihsZXQgaSBvZiB0aGlzLnRyYW5zYWN0aW9ucyl7XG4gICAgICAgICAgICAgICAgICAgIGlmKGkuY29ubj09PWNvbm4pe1xuICAgICAgICAgICAgICAgICAgICAgICAgbG9nSW5mbyhcIllvdXIgY29ubmVjdGlvbiBpcyBpbiB0cmFuc2FjdGlvblwiKVxuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgdGhpcy5zZW5kUXVlcnkoY29ubixxdWVyeSxyZXNvbHZlLHJvbGxiYWNrUXVlcnksdGhyb3dhYmxlP3RydWU6ZmFsc2UpO1xuXG4gICAgICAgICAgICB9Y2F0Y2goZSl7XG4gICAgICAgICAgICAgICAgbG9nRXJyb3IoXCIke015c3FsU2VydmljZS5qc31cIixlKTtcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAvLyByZWNyZWF0ZSBwb29sLCBjb25uZWN0aW9uIGVycm9yXG4gICAgICAgICAgICAgICAgaWYoYCR7ZX1gLmluZGV4T2YoJ0VDT05OUkVGVVNFRCcpIT09LTEpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMucmVjcmVhdGVQb29sKCk7XG4gICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgcmVzb2x2ZSh7XG4gICAgICAgICAgICAgICAgICAgIGVycm9yOntcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvZGU6IFwiTk9fQ09OTlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgZXJybm86IDEwMDAwMSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZhdGFsOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3dhYmxlOnRocm93YWJsZT90cnVlOmZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgc3FsOiBxdWVyeSxcbiAgICAgICAgICAgICAgICAgICAgICAgIG5hbWU6XCJOT19DT05OXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOihlICYmIHR5cGVvZiBlID09PSBcIm9iamVjdFwiICYmIFwibWVzc2FnZVwiIGluIGUgYXMgYW55KT8oZSBhcyBhbnkpLm1lc3NhZ2U6XCJNeXNxbCBjYW50IGdldCBjb25uZWN0aW9uXCJcbiAgICAgICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAgICAgZGF0YTpudWxsXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIGFzeW5jIHNlbmRRdWVyeShjb25uOm15c3FsLlBvb2xDb25uZWN0aW9uLHF1ZXJ5OnN0cmluZyxyZXNvbHZlOihkYXRhOk15c3FsUmVzdWx0KT0+dm9pZCxyb2xsYmFjazpzdHJpbmd8bnVsbCx0aHJvd2FibGU6Ym9vbGVhbil7XG4gICAgICAgIFxuICAgICAgICBsZXQgZXJyQ2F0Y2hlZD1mYWxzZTtcblxuICAgICAgICBjb25uLm9uKFwiZXJyb3JcIixhc3luYyBlcnI9PntcbiAgICAgICAgICAgIGVyckNhdGNoZWQ9dHJ1ZTtcblxuICAgICAgICAgICAgbGV0IHJvbGxiYWNrRXJyb3IgPSBudWxsO1xuICAgICAgICAgICAgaWYocm9sbGJhY2spXG4gICAgICAgICAgICAgICAgcm9sbGJhY2tFcnJvcj0oYXdhaXQgdGhpcy5xdWVyeUFzeW5jKGNvbm4scm9sbGJhY2spKS5lcnJcbiAgICAgICBcbiAgICAgICAgICAgIGxvZ0Vycm9yKFwiJHtNeXNxbFNlcnZpY2UuanN9LT5jb25uLm9uKCdlcnJvcicpXCIsZXJyKVxuXG4gICAgICAgICAgICAvLyBjbG9zZSBjb25uIG9uIHN1Y2Nlc3NcbiAgICAgICAgICAgIHRyeXtcblxuICAgICAgICAgICAgICAgIGNvbm4ucmVtb3ZlQWxsTGlzdGVuZXJzKCk7XG4gICAgICAgICAgICAgICAgY29ubi5kZXN0cm95KClcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgIH1jYXRjaChlKXt9XG4gICAgIFxuICAgICAgICAgICAgcmVzb2x2ZSh7XG4gICAgICAgICAgICAgICAgZXJyb3I6e1xuICAgICAgICAgICAgICAgICAgICBjb2RlOiBcIkNPTk5fRVJSXCIsXG4gICAgICAgICAgICAgICAgICAgIGVycm5vOiAxMDAwMDMsXG4gICAgICAgICAgICAgICAgICAgIGZhdGFsOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICBzcWw6IHF1ZXJ5LFxuICAgICAgICAgICAgICAgICAgICBuYW1lOlwiQ09OTl9FUlJcIixcbiAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTpcIkVycm9yOiBcIitlcnIsXG4gICAgICAgICAgICAgICAgICAgIHRocm93YWJsZTp0aHJvd2FibGVcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGRhdGE6bnVsbCxcbiAgICAgICAgICAgICAgICByb2xsYmFja0Vycm9yOnJvbGxiYWNrRXJyb3JcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH0pXG5cblxuXG4gICAgICAgIGxvZ0luZm8oXCIke015c3FsU2VydmljZS5qc31cIixxdWVyeSlcblxuICAgICAgICAvLyBzZW5kIHF1ZXJ5XG4gICAgICAgIGNvbnN0IHF1ZXJ5UmVzdWx0ID0gYXdhaXQgdGhpcy5xdWVyeUFzeW5jKGNvbm4scXVlcnkpO1xuXG4gICAgICAgIC8vIGhhbmRsZSBlcnJvclxuICAgICAgICBpZihxdWVyeVJlc3VsdC5lcnIpe1xuICAgICAgICAgICAgXG4gICAgICAgICAgICAvLyByb2xsYmFja1xuICAgICAgICAgICAgbGV0IHJvbGxiYWNrRXJyb3I9bnVsbDtcbiAgICAgICAgICAgIGlmKHJvbGxiYWNrKVxuICAgICAgICAgICAgICAgIHJvbGxiYWNrRXJyb3I9KGF3YWl0IHRoaXMucXVlcnlBc3luYyhjb25uLHJvbGxiYWNrKSkuZXJyXG5cbiAgICAgICAgICAgIC8vIGNsb3NlIGNvbm5lY3Rpb25cbiAgICAgICAgICAgIHRyeXtcbiAgICAgICAgICAgICAgICBjb25uLnJlbGVhc2UoKTtcbiAgICAgICAgICAgICAgICBjb25uLnJlbW92ZUFsbExpc3RlbmVycygpO1xuICAgICAgICAgICAgfWNhdGNoKGUpe31cblxuXG5cbiAgICAgICAgICAgIC8vIGRldGVybWluZSBkdXBsaWNhdGUgZXJyb3JcbiAgICAgICAgICAgIGxldCBkdXA9ZmFsc2U7XG4gICAgICAgICAgICBpZihxdWVyeVJlc3VsdC5lcnIgJiYgcXVlcnlSZXN1bHQuZXJyLmNvZGUgJiYgcXVlcnlSZXN1bHQuZXJyLmNvZGUudG9Mb3dlckNhc2UoKS5pbmRleE9mKFwiZXJfZHVwX2VudHJ5XCIpIT09LTEpXG4gICAgICAgICAgICAgICAgZHVwPX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ICAgbGV0IHJlc3VsdD1udWxsO1xuICAgICAgICB0cnl7XG4gICAgICAgICAgICByZXN1bHQgPSBhd2FpdCBjb25uLnF1ZXJ5KHF1ZXJ5KTtcbiAgICAgICAgfWNhdGNoKGUpe1xuICAgICAgICAgICAgcmV0dXJuIHtlcnI6dGhpcy5jcmVhdGVNeXNxbFF1ZXJ5RXJyb3IoZSl9O1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGVycjpudWxsLFxuICAgICAgICAgICAgcmVzdWx0czpyZXN1bHRbMF0sXG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBjcmVhdGVNeXNxbFF1ZXJ5RXJyb3IoZXJyOmFueSx0aHJvd2FibGU/OmJvb2xlYW4pOk15c3FsRXJyb3J7XG4gICAgICAgIGlmKGVyciAmJiAgdHlwZW9mIGVycj09PVwib2JqZWN0XCIgJiYgXCJjb2RlXCIgaW4gZXJyICYmIFwiZXJybm9cIiBpbiBlcnIgJiYgXCJzcWxcIiBpbiBlcnIgJiYgXCJuYW1lXCIgaW4gZXJyICYmIFwibWVzc2FnZVwiIGluIGVycil7XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgICAgICBjb2RlOiBlcnIuY29kZSxcbiAgICAgICAgICAgICAgICAgICAgZXJybm86IGVyci5lcnJubyxcbiAgICAgICAgICAgICAgICAgICAgc3FsOiBlcnIuc3FsLFxuICAgICAgICAgICAgICAgICAgICBuYW1lOmVyci5uYW1lLFxuICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOmVyci5tZXNzYWdlLFxuICAgICAgICAgICAgICAgICAgICB0aHJvd2FibGU6dGhyb3dhYmxlP3RydWU6ZmFsc2VcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgIH1cbiAgICAgICAgfWVsc2V7XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIGNvZGU6IFwiUVVFUllfRVJSXCIsXG4gICAgICAgICAgIC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NvbnN0IGNvdW50ID0gdGhpcy50cmFuc2FjdGlvbnMubGVuZ3RoO1xuICAgICAgICAgICAgY29uc3QgcmVtb3ZlZElEczpudW1iZXJbXT1bXTtcbiAgICAgICAgICAgIGZvcihsZXQgaSBvZiB0aGlzLnRyYW5zYWN0aW9ucyl7XG4gICAgICAgICAgICAgICAgaWYobm93LWkudGltZXN0YW1wPnRoaXMubWF4VHJhbnNhY3Rpb25XYWl0VGltZSl7XG4gICAgICAgICAgICAgICAgICAgIGxvZ0Vycm9yKFwiUmVsZWFzZSB0cmFuc2FjdGlvbiBjb25uZWN0aW9uIGR1ZSB0byB0aW1lb3V0XCIpXG4gICAgICAgICAgICAgICAgICAgIHRoaXMucm9sbGJhY2tUcmFuc2FjdGlvbihpLHRydWUpO1xuICAgICAgICAgICAgICAgICAgICByZW1vdmVkSURzLnB1c2goaS5pZClcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMudHJhbnNhY3Rpb25zID0gdGhpcy50cmFuc2FjdGlvbnMuZmlsdGVyKGk9PiFyZW1vdmVkSURzLmluY2x1ZGVzKGkuaWQpKVxuICAgICAgICAgICAgXG4gICAgICAgICAgICBpZih0aGlzLmRlYnVnKVxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiUmVtb3ZlZDogXCIsY291bnQtdGhpcy50cmFuc2FjdGlvbnMubGVuZ3RoKVxuXG4gICAgICAgICAgICBcblxuICAgICAgICB9LDEwMDAqMzApXG5cbiAgICAgICAgc2V0SW50ZXJ2YWwoKCk9PntcbiAgICAgICAgICAgIGlmKCF0aGlzLmZhaWxSZXBvcnRGaWxlU3RyZWFtKVxuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgIC8vIGFmdGVyIDE1IG1pbiBvZiBpbmFjdGl2aXR5LCBjbG9zZSBmaWxlXG4gICAgICAgICAgICBpZihEYXRlLm5vdygpLXRoaXMuZ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oIUFycmF5LmlzQXJyYXkoZGF0YSkpXG4gICAgICAgICAgICAgICAgZGF0YT1bZGF0YV07XG4gICAgICAgICAgICBjb25zdCBwcm9taXNlcz1bXVxuICAgICAgICAgICAgZm9yKGxldCBpIG9mIGRhdGEpe1xuICAgICAgICAgICAgICAgIGNvbnN0IHF1ZXJ5ID0gTXlzcWxTZXJ2aWNlLnByZXBhcmVRdWVyeShpLnF1ZXJ5LGkuZmllbGRzKTtcbiAgICAgICAgICAgICAgICBwcm9taXNlcy5wdXNoKHRoaXMuZXhlY3V0ZShxdWVyeSxpLnJvbGxiYWNrUXVlcnkgPz8gbnVsbCxpLnRyYW5zYWN0aW9uSUQgPz8gMCxpLnRocm93YWJsZSA/PyBmYWxzZSxpLmNhbGN1bGF0ZUNvdW50ID8/IGZhbHNlKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBcbiAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJFeGVjdXRlIHF1ZXJpZXM6IFwiLGRhdGEubGVuZ3RoKVxuICAgICAgICAgICAgXG4gICAgICAgICAgICBjb25zdCByZXN1bHQgPSAgYXdhaXQgUHJvbWlzZS5hbGwocHJvbWlzZXMpO1xuICAgICAgICAgICAgZm9yKGxldCBpIG9mIHJlc3VsdCl7XG4gICAgICAgICAgICAgICAgaWYoaS5lcnJvciAmJiAoaS5lcnJvci5mYXRhbCB8fCBpLmVycm9yLnRocm93YWJsZSkpXG4gICAgICAgICAgICAgICAgICAgIHRocm93IGkuZXJyb3I7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gcmVzdWx0O1xuICAgICAgICB9XG5cbiAgICAgICAgUkVRX01ZU1FMX1RCRUdJTi5saXN0ZW5lcj1hc3luYyAoKT0+eyAgXG4gICAgICAgICAgICBjb25zdCBjb25uID0gYXdhaXQgdGhpcy5wb29sPy5nZXRDb25uZWN0aW9uKCk7XG4gICAgICAgICAgICBpZighY29ubilcbiAgICAgICAgICAgICAgICByZXR1cm4ge2NvZGU6XCJOT19QT09MXCIsZXJybm86MTAwMDAwLGZhdGFsOnRydWUsc3FsOlwiXCIsbmFtZTpcIk5PX1BPT0xcIixtZXNzYWdlOlwiTXlzcWwgcG9vbCBub3QgY3JlYXRlZFwiLHRocm93YWJsZTpmYWxzZX1cblxuICAgICAgICAgICAgLy8gZmluZCBjb25uIGluIHRyYW5zYWN0aW9uc1xuICAgICAgICAgICAgZm9yKGxldCBpIG9mIHRoaXMudHJhbnNhY3Rpb25zKXtcbiAgICAgICAgICAgICAgICBpZihpLmNvbm49PT1jb25uKXtcbiAgICAgICAgICAgICAgICAgICAgbG9nSW5mbyhcIllvdXIgY29ubmVjdGlvbiBpcyBpbiB0cmFuc2FjdGlvblwiKVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4ge2NvZGU6XCJDT05OX0lOX1RSWFwiLGVycm5vOjEwMDAwNSxmYXRhbDp0cnVlLHRocm93YWJsZTpmYWxzZSxzcWw6XCJcIixuYW1lOlwiQ09OTl9JTl9UUlhcIixtZXNzYWdlOlwiQ29ubmVjdGlvbiBpcyBpbiB0cmFuc2FjdGlvblwifVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgY29uc3QgdGlkID0gTXlzcWxTZXJ2aWNlLm5leHRUcmFuc2FjdGlvbklEKys7XG4gICAgICAgICAgICBpZih0aGlzLmRlYnVnKVxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiQmVnaW4gdHJhbnNhY3Rpb24gd2l0aCBpZCBcIix0aWQpXG5cbiAgICAgICAgICAgIHRyeXtcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAvLyBhd2FpdCBjb25uLmJlZ2luVHJhbnNhY3Rpb24oKTtcbiAgICAgICAgICAgICAgICBhd2FpdCBjb25uLnF1ZXJ5KFwiU1RBUlQgVFJBTlNBQ1RJT05cIik7XG4gICAgICAgICAgICAgICAgLy9jb25zdCByZXMgPSBhd2FpdCBjb25uLnF1ZXJ5KFwiU0VUIGF1dG9jb21taXQ9MFwiKTtcbiAgICAgICAgICAgICAgICBpZih0aGlzLmRlYnVnKVxuICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIlRyYW5zYWN0aW9uIHN0YXJ0ZWRcIilcblxuICAgICAgICAgICAgfWNhdGNoKGUpe1xuICAgICAgICAgICAgICAgdGhpcy5yb2xsYmFja1RyYW5zYWN0aW9uKHtpZDp0aWQsY29ubjpjb25uLHRpbWVzdGFtcDpEYXRlLm5vdygpLHF1ZXJpZXM6W3tzcWw6XCJTVEFSVCBUUkFOU0FDVElPTlwiLHN0YXR1czpcImVycm9yXCJ9XX0pXG4gICAgICAgICAgICAgICByZXR1cm4gdGhpcy5jcmVhdGVNeXNxbFF1ZXJ5RXJyb3IoZSk7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIHRoaXMudHJhbnNhY3Rpb25zLnB1c2goe1xuICAgICAgICAgICAgICAgIGlkOnRpZCxcbiAgICAgICAgICAgICAgICB0aW1lc3RhbXA6RGF0ZS5ub3coKSxcbiAgICAgICAgICAgICAgICBjb25uOmNvbm4sXG4gICAgICAgICAgICAgICAgcXVlcmllczpbXVxuICAgICAgICAgICAgfSlcblxuICAgICAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIlRyYW5zYWN0aW9ucyBwb29sOiBcIix0aGlzLnRyYW5zYWN0aW9ucylcblxuICAgICAgICAgICAgcmV0dXJuIHRpZDtcbiAgICAgICAgfVxuICAgICAgICBcbiAgICAgICAgUkVRX01ZU1FMX1RRVUVSWS5saXN0ZW5lcj1hc3luYyBkYXRhPT57XG4gICAgICAgICAgICBjb25zdCB0cnggPSB0aGlzLnRyYW5zYWN0aW9ucy5maW5kKGk9PmkuaWQ9PT1kYXRhLnRpZCk7XG4gICAgICAgICAgICBpZighdHJ4KVxuICAgICAgICAgICAgICAgIHJldHVybiB7ZXJyOiB7XG4gICAgICAgICAgICAgICAgICAgIGNvZGU6XCJOT19UUlhcIixcbiAgICAgICAgICAgICAgICAgICAgZXJybm86MTAwMDA0LFxuICAgICAgICAgICAgICAgICAgICBmYXRhbDp0cnVlLFxuICAgICAgICAgICAgICAgICAgICBzcWw6XCJcIixcbiAgICAgICAgICAgICAgICAgICAgbmFtZTpcIk5PX1RSWFwiLFxuICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOlwiVHJhbnNhY3Rpb24gbm90IGZvdW5kXCIsXG4gICAgICAgICAgICAgICAgfSxkYXRhOm51bGwscm9sbGJhY2tFcnJvcjpudWxsLGNvdW50OjB9XG5cbiAgICAgICAgICAgIGNvbnN0IHF1ZXJ5ID0gTXlzcWxTZXJ2aWNlLnByZXBhcmVRdWVyeShkYXRhLnF1ZXJ5LnF1ZXJ5LGRhdGEucXVlcnkuZmllbGRzKTtcbiAgICAgICAgICAgIGxldCBlcnI9bnVsbDtcbiAgICAgICAgICAgIGxldCBzcWxEYXRhID0gbnVsbDtcblxuICAgICAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIkV4ZWN1dGUgcXVlcnkgb24gdHJhbnNhY3Rpb246IFwiLHRyeClcblxuICAgICAgICAgICAgdHJ5e1xuICAgICAgICAgICAgICAgIHNxbERhdGEgPSBhd2FpdCB0cnguY29ubi5xdWVyeShxdWVyeSk7XG4gICAgICAgICAgICB9Y2F0Y2goZSl7IGVyciA9IHRoaXMuY3JlYXRlTXlzcWxRdWVyeUVycm9yKGUpO31cblxuICAgICAgICAgICAgbGV0IGNvdW50ID0gMDtcbiAgICAgICAgICAgIGlmKGVycilcbiAgICAgICAgICAgICAgICB0aGlzLnJvbGxiYWNrVHJhbnNhY3Rpb24odHJ4KTtcbiAgICAgICAgICAgIGVsc2V7XG4gICAgICAgICAgICAgICAgaWYoZGF0YS5xdWVyeS5jYWxjdWxhdGVDb3VudCAmJiBxdWVyeS5pbmRleE9mKFwiU0VMRUNUXCIpPT09MCl7XG4gICAgICAgICAgICAgICAgICAgIGxldCBjb3VudFF1ZXJ5ID0gdGhpcy5wcmVwYXJlQ291bnRRdWVyeShxdWVyeSk7XG4gICAgICAgICAgICAgICAgICAgIHRyeXtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnN0IGNvdW50UXVlcnlSZXN1bHQgPSBhd2FpdCB0cnguY29ubi5xdWVyeShjb3VudFF1ZXJ5KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGNvdW50UXVlcnlSZXN1bHQgJiYgY291bnRRdWVyeVJlc3VsdC5sZW5ndGg+MCl7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY291bnQgPSAoY291bnRRdWVyeVJlc3VsdFswXSBhcyBhbnkpLmNvdW50OyAvLyB0b2RvIDogY2hlY2ssIHByb2JhYmx5IG5vdCB3b3JraW5nICh3cm9uZyBmaWVsZCBvciBzbXRoKVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9Y2F0Y2goZSl7XG4gICAgICAgICAgICAgICAgICAgICAgICBsb2dFcnJvcihcIiR7TXlzcWxTZXJ2aWNlLmpzfS0+cXVlcnkgZXJyb3JcIixlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIlF1ZXJ5IGV4ZWN1dGlvbiBzdGF0dXM6XCIsZXJyP2Vyci5tZXNzYWdlOlwiY29tcGxldGVkXCIpXG5cbiAgICAgICAgICAgIHRyeC5xdWVyaWVzLnB1c2goe3NxbDpxdWVyeSxzdGF0dXM6ZXJyP2Vyci5tZXNzYWdlOlwiY29tcGxldGVkXCJ9KVxuXG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIGRhdGE6c3FsRGF0YT9zcWxEYXRhWzBdOm51bGwsXG4gICAgICAgICAgICAgICAgZXJyb3I6ZXJyLFxuICAgICAgICAgICAgICAgIGNvdW50OmNvdW50XG4gICAgICAgICAgICB9O1xuICAgICAgICB9XG5cbiAgICAgICAgUkVRX01ZU1FMX1RST0xMQkFDSy5saXN0ZW5lcj1hc3luYyAodGlkOm51bWJlcik9PntcbiAgICAgICAgICAgIGNvbnN0IHRyeCA9IHRoaXMudHJhbnNhY3Rpb25zLmZpbmQoaT0+aS5pZD09PXRpZCk7XG4gICAgICAgICAgICBpZighdHJ4KXtcbiAgICAgICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgICAgICBjb2RlOlwiTk9fVFJYXCIsXG4gICAgICAgICAgICAgICAgICAgIGVycm5vOjEwMDAwNCxcbiAgICAgICAgICAgICAgICAgICAgZmF0YWw6dHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgdGhyb3dhYmxlOmZhbHNlLFxuICAgICAgICAgICAgICAgICAgICBzcWw6XCJcIixcbiAgICAgICAgICAgICAgICAgICAgbmFtZTpcIk5PX1RSWFwiLFxuICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOlwiVHJhbnNhY3Rpb24gbm90IGZvdW5kXCJcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGF3YWl0IHRoaXMucm9sbGJhY2tUcmFuc2FjdGlvbih0cngpO1xuICAgICAgICAgICAgcmV0dXJuIG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICBSRVFfTVlTUUxfVENPTU1JVC5saXN0ZW5lcj1hc3luYyAodGlkOm51bWJlcik9PntcbiAgICAgICAgICAgIGNvbnN0IHRyeCA9IHRoaXMudHJhbnNhY3Rpb25zLmZpbmQoaT0+aS5pZD09PXRpZCk7XG4gICAgICAgICAgICBpZighdHJ4KXtcbiAgICAgICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgICAgICBjb2RlOlwiTk9fVFJYXCIsXG4gICAgICAgICAgICAgICAgICAgIGVycm5vOjEwMDAwNCxcbiAgICAgICAgICAgICAgICAgICAgZmF0YWw6dHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgc3FsOlwiXCIsXG4gICAgICAgICAgICAgICAgICAgIG5hbWU6XCJOT19UUlhcIixcbiAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTpcIlRyYW5zYWN0aW9uIG5vdCBmb3VuZFwiLFxuICAgICAgICAgICAgICAgICAgICB0aHJvd2FibGU6ZmFsc2VcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cblxuICAgICAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhcIkNvbW1pdCB0cmFuc2FjdGlvbjpcIix0cngpXG4gICAgICAgICAgICBcbiAgICAgICAgICAgIC8vIHJlbW92ZSBmcm9tIHRyYW5zYWN0aW9uc1xuICAgICAgICAgICAgdGhpcy50cmFuc2FjdGlvbnMgPSB0aGlzLnRyYW5zYWN0aW9ucy5maWx0ZXIoaT0+aS5pZCE9PXRpZCk7XG5cbiAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJUcmFuc2FjdGlvbiBwb29sOlwiLHRoaXMudHJhbnNhY3Rpb25zIClcbiAgICAgICAgICAgIFxuICAgICAgICAgICAgY29uc3QgZXJyID0gYXdhaXQgdGhpcy5jb21taXQodHJ4KTtcblxuICAgICAgICAgICAgcmV0dXJuIGVycjtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFzeW5jIGNvbW1pdCh0cng6SVRyYW5zYWN0aW9uKTpQcm9taXNlPE15c3FsRXJyb3J8bnVsbD57XG4gICAgICAgXG4gICAgICAgIHRyeXtcbiAgICAgICAgICAgIGF3YWl0IHRyeC5jb25uLmNvbW1pdCgpO1xuICAgICAgICAgICAgLy9hd2FpdCB0cnguY29ubi5xdWVyeShcIkNPTU1JVFwiKTtcbiAgICAgICAgICAgIHRyeC5jb25uLnJlbW92ZUFsbExpc3RlbmVycygpO1xuICAgICAgICAgICAgdHJ4LmNvbm4ucmVsZWFzZSgpO1xuICAgICAgICB9Y2F0Y2goZSl7XG4gICAgICAgICAgICBhd2FpdCB0aGlzLnJvbGxiYWNrVHJhbnNhY3Rpb24odHJ4KTtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmNyZWF0ZU15c3FsUXVlcnlFcnJvcihlKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gbnVsbDtcblxuICAgIH1cblxuICAgIGFzeW5jIHJvbGxiYWNrVHJhbnNhY3Rpb24odHJ4OklUcmFuc2FjdGlvbixkb25Ob3RSZW1vdmU/OmJvb2xlYW4pOlByb21pc2U8TXlzcWxFcnJvcnxudWxsPntcbiAgICAgICAgbGV0IGVycj1udWxsO1xuICAgICAgICB0cnl7XG4gICAgICAgICAgICBjb25zb2xlLmxvZyhcIlJvbGxiYWNrIHN0YXJ0ZWRcIix0cnguY29ubilcbiAgICAgICAgICAgIGF3YWl0IHRyeC5jb25uLnJvbGxiYWNrKCk7XG4gICAgICAgICAgICBhd2FpdCB0cnguY29ubi5jb21taXQoKTtcbiAgICAgICAgICAgIC8vYXdhaXQgdHJ4LmNvbm4ucXVlcnkoXCJST0xMQkFDS1wiKTtcbiAgICAgICAgICAgIHRyeC5jb25uLnJlbW92ZUFsbExpc3RlbmVycygpO1xuICAgICAgICAgICAgdHJ4LmNvbm4ucmVsZWFzZSgpO1xuICAgICAgICAgICAgaWYoIWRvbk5vdFJlbW92ZSlcbiAgICAgICAgICAgICAgICB0aGlzLnRyYW5zYWN0aW9ucyA9IHRoaXMudHJhbnNhY3Rpb25zLmZpbHRlcihpPT5pLmlkIT09dHJ4LmlkKTtcbiAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJSb2xsYmFjayBjb21wbGV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W9ucy5wYXNzd29yZFxuICAgICAgICAgICAgICAgICxkYXRhYmFzZTogdGhpcy5vcHRpb25zLmRhdGFiYXNlXG4gICAgICAgICAgICAgICAgLHBvcnQ6IHRoaXMub3B0aW9ucy5wb3J0XG4gICAgICAgICAgICAgICAgLGNvbm5lY3Rpb25MaW1pdDogdGhpcy5vcHRpb25zLmNvbm5lY3Rpb25MaW1pdFxuICAgICAgICAgICAgICAgICxxdWV1ZUxpbWl0OiAxMFxuICAgICAgICAgICAgICAgICxtdWx0aXBsZVN0YXRlbWVudHM6IHRydWVcblxuICAgICAgICAgICAgICAgICxlbmFibGVLZWVwQWxpdmU6dHJ1ZVxuICAgICAgICAgICAgICAgICxrZWVwQWxpdmVJbml0aWFsRGVsYXk6MyoxMDAwXG4gICAgICAgICAgICAgICAgLy8sbWF4SWRsZTowXG4gICAgICAgICAgICAgICAgLGlkbGVUaW1lb3V0OjEwMDAqNjAqNVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1jYXRjaChlKXtcbiAgICAgICAgICAgIGxvZ0NyaXQoXCIke015c3FsU2VydmljZS5qc31cIixcIkNhbid0IGNvbm5lY3QgdG8gTVlTUUwhXCIpXG4gICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLnBvb2w/Lm9uKCdjb25uZWN0aW9uJywgKGNvbm5lY3Rpb24pID0+IHtcbiAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgbG9nSW5mbyhcIiR7TXlzcWxTZXJ2aWNlLmpzfVwiLFwiTVlTUUwgQ09OTkVDVElPTiBDUkVBVEVEXCIpXG4gICAgICAgIH0pO1xuICAgICAgICB0aGlzLnBvb2w/Lm9uKCdhY3F1aXJlJywgKGNvbm5lY3Rpb24pID0+IHtcbiAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgbG9nSW5mbyhcIiR7TXlzcWxTZXJ2aWNlLmpzfVwiLFwiTVlTUUwgQ09OTkVDVElPTiBBQ1FVSVJFRFwiKVxuICAgICAgICB9KVxuICAgICAgICB0aGlzLnBvb2w/Lm9uKCdyZWxlYXNlJywgKGNvbm5lY3Rpb24pID0+IHtcbiAgICAgICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICAgICAgbG9nSW5mbyhcIiR7TXlzcWxTZXJ2aWNlLmpzfVwiLFwiTVlTUUwgQ09OTkVDVElPTiBSRUxFQVNFRFwiKVxuICAgICAgICB9KVxuICAgICAgICB0aGlzLnBvb2w/Lm9uKCdlbnF1ZXVlJywgKCkgPT4ge1xuICAgICAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICBsb2dJbmZvKFwiJHtNeXNxbFNlcnZpY2UuanN9XCIsXCJNWVNRTCBDT05ORUNUSU9OIEVOUVVFVUVEXCIpXG4gICAgICAgIH0pXG4gICAgICAgIFxuICAgICAgICAvLyBDaGVjayBjb25uZWN0aW9uXG4gICAgICAgIGlmKHRoaXMuZGVidWcpXG4gICAgICAgICAgICBjb25zb2xlLmxvZyhcIkNoZWNrIG15c3FsIGNvbm5lY3Rpb25cIilcblxuICAgICAgICByZXR1cm4gbmV3IFByb21pc2UoYXN5bmMgKHJlc29sdmUscmVqZWN0KT0+e1xuICAgICAgICAgICAgdHJ5e1xuICAgICAgICAgICAgICAgIGNvbnN0IGNvbm4gPSBhd2FpdCB0aGlzLnBvb2w/LmdldENvbm5lY3Rpb24oKVxuICAgICAgICAgICAgICAgIGlmKGNvbm4pe1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBbcmVzLGZdID0gYXdhaXQgY29ubi5xdWVyeShcIlNFTEVDVCAxXCIpO1xuICAgICAgICAgICAgICAgICAgICBjb25uPy5yZWxlYXNlKCk7XG4gICAgICAgICAgICAgICAgICAgIGxvZ0luZm8oXCIke015c3FsU2VydmljZS5qc31cIixcIkNvbm5lY3RlZCB0byBNWVNRTCFcIilcbiAgICAgICAgICAgICAgICAgICAgcmVzb2x2ZSh0cnVlKVxuICAgICAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICB9ZWxzZVxuICAgICAgICAgICAgICAgICAgICByZXNvbHZlKGZhbHNlKVxuICAgICAgICAgICAgfWNhdGNoKGUpe1xuICAgICAgICAgICAgICAgIGxvZ0NyaXQoXCIke015c3FsU2VydmljZS5qc31cIixcIkNhbid0IGNvbm5lY3QgdG8gTVlTUUwhXCIpXG4gICAgICAgICAgICAgICAgcmVzb2x2ZShmYWxzZSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICB9XG5cbiAgICBhc3luYyBvbkFwcGxpY2F0aW9uUmVhZHkoKSB7fVxuXG5cbiAgICBzdGF0aWMgZmllbGRzVG9PYmplY3QoZmllbGRzOk15c3FsUXVlcnlGaWVsZFtdfE15c3FsUXVlcnlGaWVsZE9iamVjdCxpZ25vcmVTeXN0ZW1QYXJhbWV0ZXJzPzpib29sZWFuKTpNeXNxbFF1ZXJ5RmllbGRPYmplY3R7XG4gICAgICAgIGlmKCFBcnJheS5pc0FycmF5KGZpZWxkcykpXG4gICAgICAgICAgICByZXR1cm4gZmllbGRzO1xuICAgICAgICBjb25zdCBvYmo6TXlzcWxRdWVyeUZpZWxkT2JqZWN0PXt9O1xuICAgICAgICBmb3IobGV0IGkgb2YgZmllbGRzKXtcbiAgICAgICAgICAgIGlmKCFpLm5hbWUpXG4gICAgICAgICAgICAgICAgY29udGludWU7XG4gICAgICAgICAgICBpZih0eXBlb2YgaS52YWx1ZSE9PSBcIm9iamVjdFwiKVxuICAgICAgICAgICAgICAgIG9ialtpLm5hbWVdPWkudmFsdWU7XG4gICAgICAgICAgICBlbHNle1xuICAgICAgICAgICAgICAgIGlmKCFpZ25vcmVTeXN0ZW1QYXJhbWV0ZXJzKXtcbiAgICAgICAgICAgICAgICAgICAgb2JqW2kubmFtZV09e1xuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6aS52YWx1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHN5c3RlbTppLnN5c3RlbSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGlnbm9yZUluSW5zZXJ0OmkuaWdub3JlSW5JbnNlcnQsXG4gICAgICAgICAgICAgICAgICAgICAgICBpZ25vcmVJblVwZGF0ZTppLmlnbm9yZUluVXBkYXRlLFxuICAgICAgICAgICAgICAgICAgICAgICAgdXNlSW5SZXBsYWNlOmkudXNlSW5SZXBsYWNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTppLm5hbWVcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1lbHNlXG4gICAgICAgICAgICAgICAgICAgIG9ialtpLm5hbWVdPWkudmFsdWVcbiAgICAgICAgICAgIH1cblxuICAgICAgICB9XG4gICAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuXG4gICAgc3RhdGljIG9iamVjdFRvRmllbGRzKG9iajpNeXNxbFF1ZXJ5RmllbGRPYmplY3R8TXlzcWxRdWVyeUZpZWxkW10pOk15c3FsUXVlcnlGaWVsZFtde1xuICAgICAgICBpZihBcnJheS5pc0FycmF5KG9iaikpXG4gICAgICAgICAgICByZXR1cm4gb2JqO1xuICAgICAgICBjb25zdCBmaWVsZHM6TXlzcWxRdWVyeUZpZWxkW109W107XG4gICAgICAgIGZvcihsZXQgaSBpbiBvYmope1xuICAgICAgICAgICAgaWYob2JqW2ldICYmIHR5cGVvZiBvYmpbaV0gPT09IFwib2JqZWN0XCIpe1xuICAgICAgICAgICAgICAgIGxldCBtbyA9IG9ialtpXSBhcyBSZWNvcmQ8c3RyaW5nLHN0cmluZ3xudW1iZXJ8Ym9vbGVhbnxudWxsfHVuZGVmaW5lZD47XG4gICAgICAgICAgICAgICAgaWYoIW1vKXtcbiAgICAgICAgICAgICAgICAgICAgbW89e1xuICAgICAgICAgICAgICAgICAgICAgICAgbmFtZTppLFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6bnVsbCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHN5c3RlbTpmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGlnbm9yZUluSW5zZXJ0OmZhbHNlLFxuICAgICAgICAgICAgICAgICAgICAgICAgaWdub3JlSW5VcGRhdGU6ZmFsc2UsXG4gICAgICAgICAgICAgICAgICAgICAgICB1c2VJblJlcGxhY2U6ZmFsc2VcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBmaWVsZHMucHVzaCh7XG4gICAgICAgICAgICAgICAgICAgIG5hbWU6bW8ubmFtZSBhcyBzdHJpbmcgPz8gaSxcbiAgICAgICAgICAgICAgICAgICAgdmFsdWU6bW8udmFsdWUsXG4gICAgICAgICAgICAgICAgICAgIHN5c3RlbTptby5zeXN0ZW0gYXMgYm9vbGVhbixcbiAgICAgICAgICAgICAgICAgICAgaWdub3JlSW5JbnNlcnQ6bW8uaWdub3JlSW5JbnNlcnQgYXMgYm9vbGVhbixcbiAgICAgICAgICAgICAgICAgICAgaWdub3JlSW5VcGRhdGU6bW8uaWdub3JlSW5VcGRhdGUgYXMgYm9vbGVhbixcbiAgICAgICAgICAgICAgICAgICAgdXNlSW5SZXBsYWNlOm1vLnVzZUluUmVwbGFjZSBhcyBib29sZWFuXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIH1lbHNle1xuICAgICAgICAgICAgICAgIGZpZWxkcy5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgbmFtZTppLFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZTpvYmpbaV0gYXMgc3RyaW5nfG51bWJlcnxib29sZWFufG51bGx8dW5kZWZpbmVkXG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gZmllbGRzO1xuICAgIH1cblxuICAgIHN0YXRpYyBwcmVwYXJlUXVlcnkocXVlcnk6c3RyaW5nLGZpZWx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YW1lcy5wdXNoKCdgJytpLm5hbWUucmVwbGFjZUFsbChcImBcIiwnJykucmVwbGFjZUFsbCgnXFxcIicsXCJcIikucmVwbGFjZUFsbCgnXFwnJyxcIlwiKSsnYCcpXG4gICAgICAgICAgICAgICAgaW5zZXJ0RmllbGRWYWx1ZXMucHVzaChpLl9wYXJzZWRWYWx1ZSlcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcXVlcnk9cXVlcnlcbiAgICAgICAgICAgICAgICAucmVwbGFjZUFsbCgnQGZpZWxkcycsaW5zZXJ0RmllbGROYW1lcy5qb2luKFwiLFwiKSlcbiAgICAgICAgICAgICAgICAucmVwbGFjZUFsbCgnQHZhbHVlcycsaW5zZXJ0RmllbGRWYWx1ZXMuam9pbihcIixcIikpXG4gICAgICAgIH1cblxuICAgICAgICBpZihxdWVyeS5pbmRleE9mKFwiQGluc2VydFwiKSE9PS0xKXtcbiAgICAgICAgICAgIGxldCBvbmluc2VydE5hbWVzPVtdXG4gICAgICAgICAgICBsZXQgb25pbnNlcnRWYWx1ZXM9W11cbiAgICAgICAgICAgIGZvcihsZXQgaSBvZiBmaWVsZHMpe1xuICAgICAgICAgICAgICAgIGlmKGkuaWdub3JlSW5JbnNlcnQpXG4gICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xuICAgICAgICAgICAgICAgIG9uaW5zZXJ0TmFtZXMucHVzaChpLm5hbWUpXG4gICAgICAgICAgICAgICAgb25pbnNlcnRWYWx1ZXMucHVzaChpLl9wYXJzZWRWYWx1ZSlcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHF1ZXJ5ID0gcXVlcnkucmVwbGFjZUFsbChcIkBpbnNlcnRcIixgKCR7b25pbnNlcnROYW1lcy5qb2luKFwiLFwiKX0pIFZBTFVFUyAoJHtvbmluc2VydFZhbHVlcy5qb2luKFwiLFwiKX0pYClcbiAgICAgICAgfVxuXG4gICAgICAgIGlmKHF1ZXJ5LmluZGV4T2YoXCJAb251cGRhdGVcI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AgIHJldHVybiAgcXVlcnk7XG4gICAgfVxuXG4gICAgc3RhdGljIHByZXBhcmVRdWVyeUZpZWxkVmFsdWUodmFsdWU6c3RyaW5nfG51bWJlcnxib29sZWFufG51bGx8dW5kZWZpbmVkLHN5c3RlbT86Ym9vbGVhbik6c3RyaW5nfG51bWJlcnxib29sZWFufG51bGx8dW5kZWZpbmVke1xuICAgICAgICBpZighc3lzdGVtICYmIHR5cGVvZiB2YWx1ZSA9PT0gXCJzdHJpbmdcIil7XG4gICAgICAgICAgICB2YWx1ZSA9IHZhbHVlP3ZhbHVlLnJlcGxhY2VBbGwoJ1wiJywnXFxcXFwiJyk6bnVsbFxuICAgICAgICAgICAgaWYodmFsdWUhPT1udWxsKVxuICAgICAgICAgICAgICAgIHZhbHVlID0gJ1wiJyt2YWx1ZSsnXCInXG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgdmFsdWUgPSBcIk5VTExcIlxuICAgICAgICB9XG4gICAgICAgIGlmKHZhbHVlID09PSBudWxsIHx8IHZhbHVlID09PSB1bmRlZmluZWQpXG4gICAgICAgICAgICByZXR1cm4gXCJOVUxMXCJcbiAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgIH1cblxuXG4gICAgYXN5bmMgZXhlY3V0ZShxdWVyeTpzdHJpbmcscm9sbGJhY2tRdWVyeTpzdHJpbmd8bnVsbCx0cmFuc2FjdGlvbklEOm51bWJlcix0aHJvd2FibGU6Ym9vbGVhbixjYWxjdWxhdGVDb3VudDpib29sZWFuKTpQcm9taXNlPE15c3FsUmVzdWx0PntcbiAgICAgICAgcmV0dXJuIG5ldyBQcm9taXNlKGFzeW5jIChyZXNvbHZlOihkYXRhOk15c3FsUmVzdWx0KT0+dm9pZCxyZWplY3QpPT57XG4gICAgICAgICAgICAvLyBDaGVjayBwb29sXG4gICAgICAgICAgICBpZighdGhpcy5wb29sKXtcbiAgICAgICAgICAgICAgICBsb2dFcnJvcihcIiR7TXlzcWxTZXJ2aWNlLmpzfVwiLFwiTm8gcG9vbFwiKVxuICAgICAgICAgICAgICAgIHJlc29sdmUoe1xuICAgICAgICAgICAgICAgICAgICBlcnJvcjp7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb2RlOiBcIk5PX1BPT0xcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIGVycm5vOiAxMDAwMDAsXG4gICAgICAgICAgICAgICAgICAgICAgICBmYXRhbDogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNxbDogcXVlcnksXG4gICAgICAgICAgICAgICAgICAgICAgICBuYW1lOlwiTk9fUE9PTFwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTpcIk15c3FsIHBvb2wgbm90IGNyZWF0ZWRcIixcbiAgICAgICAgICAgICAgICAgICAgICAgIHRocm93YWJsZTp0aHJvd2FibGU/dHJ1ZTpmYWxzZVxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgICBkYXRhOm51bGwsXG4gICAgICAgICAgICAgICAgICAgIGNvdW50OjBcbiAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgXG4gICAgICAgICAgICB0cnl7XG4gICAgICAgICAgICAgICAgbGV0IGNvbm46bXlzcWwuUG9vbENvbm5lY3Rpb258bnVsbD1udWxsXG4gICAgICAgICAgICAgICAgaWYodHJhbnNhY3Rpb25JRCAmJiB0cmFuc2FjdGlvbklEPjApe1xuICAgICAgICAgICAgICAgICAgICBjb25uID0gdGhpcy50cmFuc2FjdGlvbnMuZmluZChpPT5pLmlkPT09dHJhbnNhY3Rpb25JRCk/LmNvbm4gPz8gbnVsbDtcbiAgICAgICAgICAgICAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiRXhlY3V0ZSBxdWVyeSBvbiB0cmFuc2FjdGlvbjogXCIsY29ubilcbiAgICAgICAgICAgICAgICB9ZWxzZXtcbiAgICAgICAgICAgICAgICAgICAgY29ubiA9IGF3YWl0IHRoaXMucG9vbC5nZXRDb25uZWN0aW9uKCk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYodGhpcy5kZWJ1ZylcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coXCJFeGVjdXRlIHF1ZXJ5XCIsY29ubilcblxuICAgICAgICAgICAgICAgIC8vIGlmIGNvbm5lY3Rpb24gbm90IGNyZWF0ZWRcbiAgICAgICAgICAgICAgICBpZighY29ubil7XG4gICAgICAgICAgICAgICAgICAgIGxvZ0NyaXQoXCIke015c3FsU2VydmljZS5qc31cIixgTm8gY29ubmVjdGlvbiBjcmVhdGVkIWApXG4gICAgICAgICAgICAgICAgICAgIHJlc29sdmUoe1xuICAgICAgICAgICAgICAgICAgICAgICAgZXJyb3I6e1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvZGU6IFwiTk9fQ09OTlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVycm5vOiAxMDAwMDEsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZmF0YWw6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3FsOiBxdWVyeSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lOlwiTk9fQ09OTlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1lc3NhZ2U6XCJNeXNxbCBwb29sIGNhbnQgZ2V0IGNvbm5lY3Rpb25cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvd2FibGU6dGhyb3dhYmxlP3RydWU6ZmFsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhOm51bGwsXG4gICAgICAgICAgICAgICAgICAgICAgICBjb3VudDowXG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG5cblxuICAgICAgICAgICAgICAgIC8vIERvIHNlbmQgcXVlcnlcbiAgICAgICAgICAgICAgICBmb3IobGV0IGkgb2YgdGhpcy50cmFuc2FjdGlvbnMpe1xuICAgICAgICAgICAgICAgICAgICBpZihpLmNvbm49PT1jb25uKXtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxvZ0luZm8oXCJZb3VyIGNvbm5lY3Rpb24gaXMgaW4gdHJhbnNhY3Rpb25cIilcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMuc2VuZFF1ZXJ5KGNvbm4scXVlcnkscmVzb2x2ZSxyb2xsYmFja1F1ZXJ5LHRocm93YWJsZT90cnVlOmZhbHNlLGNhbGN1bGF0ZUNvdW50KTtcblxuICAgICAgICAgICAgfWNhdGNoKGUpe1xuICAgICAgICAgICAgICAgIGxvZ0Vycm9yKFwiJHtNeXNxbFNlcnZpY2UuanN9XCIsZSk7XG4gICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgLy8gcmVjcmVhdGUgcG9vbCwgY29ubmVjdGlvbiBlcnJvclxuICAgICAgICAgICAgICAgIGlmKGAke2V9YC5pbmRleE9mKCdFQ09OTlJFRlVTRUQnKSE9PS0xKVxuICAgICAgICAgICAgICAgICAgICB0aGlzLnJlY3JlYXRlUG9vbCgpO1xuICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIHJlc29sdmUoe1xuICAgICAgICAgICAgICAgICAgICBlcnJvcjp7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb2RlOiBcIk5PX0NPTk5cIixcbiAgICAgICAgICAgICAgICAgICAgICAgIGVycm5vOiAxMDAwMDEsXG4gICAgICAgICAgICAgICAgICAgICAgICBmYXRhbDogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHRocm93YWJsZTp0aHJvd2FibGU/dHJ1ZTpmYWxzZSxcbiAgICAgICAgICAgICAgICAgICAgICAgIHNxbDogcXVlcnksXG4gICAgICAgICAgICAgICAgICAgICAgICBuYW1lOlwiTk9fQ09OTlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTooZSAmJiB0eXBlb2YgZSA9PT0gXCJvYmplY3RcIiAmJiBcIm1lc3NhZ2VcIiBpbiBlIGFzIGFueSk/KGUgYXMgYW55KS5tZXNzYWdlOlwiTXlzcWwgY2FudCBnZXQgY29ubmVjdGlvblwiXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICAgIGRhdGE6bnVsbCxcbiAgICAgICAgICAgICAgICAgICAgY291bnQ6MFxuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICBhc3luYyBzZW5kUXVlcnkoY29ubjpteXNxbC5Qb29sQ29ubmVjdGlvbixxdWVyeTpzdHJpbmcscmVzb2x2ZTooZGF0YTpNeXNxbFJlc3VsdCk9PnZvaWQscm9sbGJhY2s6c3RyaW5nfG51bGwsdGhyb3dhYmxlOmJvb2xlYW4sY2FsY3VsYXRlQ291bnQ6Ym9vbGVhbil7XG4gICAgICAgIFxuICAgICAgICBsZXQgZXJyQ2F0Y2hlZD1mYWxzZTtcblxuICAgICAgICBjb25uLm9uKFwiZXJyb3JcIixhc3luYyBlcnI9PntcbiAgICAgICAgICAgIGVyckNhdGNoZWQ9dHJ1ZTtcblxuICAgICAgICAgICAgbGV0IHJvbGxiYWNrRXJyb3IgPSBudWxsO1xuICAgICAgICAgICAgaWYocm9sbGJhY2spXG4gICAgICAgICAgICAgICAgcm9sbGJhY2tFcnJvcj0oYXdhaXQgdGhpcy5xdWVyeUFzeW5jKGNvbm4scm9sbGJhY2spKS5lcnJcbiAgICAgICBcbiAgICAgICAgICAgIGxvZ0Vycm9yKFwiJHtNeXNxbFNlcnZpY2UuanN9LT5jb25uLm9uKCdlcnJvcicpXCIsZXJyKVxuXG4gICAgICAgICAgICAvLyBjbG9zZSBjb25uIG9uIHN1Y2Nlc3NcbiAgICAgICAgICAgIHRyeXtcblxuICAgICAgICAgICAgICAgIGNvbm4ucmVtb3ZlQWxsTGlzdGVuZXJzKCk7XG4gICAgICAgICAgICAgICAgY29ubi5kZXN0cm95KClcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgIH1jYXRjaChlKXt9XG4gICAgIFxuICAgICAgICAgICAgcmVzb2x2ZSh7XG4gICAgICAgICAgICAgICAgZXJyb3I6e1xuICAgICAgICAgICAgICAgICAgICBjb2RlOiBcIkNPTk5fRVJSXCIsXG4gICAgICAgICAgICAgICAgICAgIGVycm5vOiAxMDAwMDMsXG4gICAgICAgICAgICAgICAgICAgIGZhdGFsOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICBzcWw6IHF1ZXJ5LFxuICAgICAgICAgICAgICAgICAgICBuYW1lOlwiQ09OTl9FUlJcIixcbiAgICAgICAgICAgICAgICAgICAgbWVzc2FnZTpcIkVycm9yOiBcIitlcnIsXG4gICAgICAgICAgICAgICAgICAgIHRocm93YWJsZTp0aHJvd2FibGVcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIGRhdGE6bnVsbCxcbiAgICAgICAgICAgICAgICByb2xsYmFja0Vycm9yOnJvbGxiYWNrRXJyb3IsXG4gICAgICAgICAgICAgICAgY291bnQ6MFxuICAgICAgICAgICAgfSlcbiAgICAgICAgfSlcblxuXG5cbiAgICAgICAgbG9nSW5mbyhcIiR7TXlzcWxTZXJ2aWNlLmpzfVwiLHF1ZXJ5KVxuXG4gICAgICAgIC8vIHNlbmQgcXVlcnlcbiAgICAgICAgY29uc3QgcXVlcnlSZXN1bHQgPSBhd2FpdCB0aGlzLnF1ZXJ5QXN5bmMoY29ubixxdWVyeSk7XG5cbiAgICAgICAgLy8gaGF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mFja0Vycm9yLFxuICAgICAgICAgICAgICAgIGlzRHVwbGljYXRlRXJyb3I6ZHVwLFxuICAgICAgICAgICAgICAgIGNvdW50OjBcbiAgICAgICAgICAgIH0pXG4gICAgICAgIH1cblxuICAgICAgICBsZXQgY291bnQgPSAwO1xuICAgICAgICBpZihjYWxjdWxhdGVDb3VudCAmJiBxdWVyeS5pbmRleE9mKFwiU0VMRUNUXCIpPT09MCl7XG4gICAgICAgICAgICBsZXQgY291bnRRdWVyeSA9IHRoaXMucHJlcGFyZUNvdW50UXVlcnkocXVlcnkpO1xuICAgICAgICAgICAgY29uc3QgY291bnRRdWVyeVJlc3VsdCA9IGF3YWl0IHRoaXMucXVlcnlBc3luYyhjb25uLGNvdW50UXVlcnkpO1xuICAgICAgICAgICAgaWYoY291bnRRdWVyeVJlc3VsdC5lcnIpXG4gICAgICAgICAgICAgICAgbG9nRXJyb3IoXCIke015c3FsU2VydmljZS5qc30tPnF1ZXJ5IGVycm9yXCIsY291bnRRdWVyeVJlc3VsdC5lcnIpO1xuICAgICAgICAgICAgZWxzZXtcbiAgICAgICAgICAgICAgICBpZihjb3VudFF1ZXJ5UmVzdWx0LnJlc3VsdHMgJiYgY291bnRRdWVyeVJlc3VsdC5yZXN1bHRzLmxlbmd0aD4wKXtcbiAgICAgICAgICAgICAgICAgICAgY291bnQgPSBjb3VudFF1ZXJ5UmVzdWx0LnJlc3VsdHNbMF0uY291bnQ7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cblxuICAgICAgICAvLyBjbG9zZSBjb25uIG9uIHN1Y2Nlc3NcbiAgICAgICAgdHJ5e1xuICAgICAgICAgICAgY29ubi5yZWxlYXNlKCk7XG4gICAgICAgICAgICBjb25uLnJlbW92ZUFsbExpc3RlbmVycygpO1xuICAgICAgICB9Y2F0Y2goZSl7fVxuXG4gICAgICAgIC8vIGhhbmRsZSBzdWNjZXNzXG4gICAgICAgIGNvbnN0IGVyciA9IHF1ZXJ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gICByZXR1cm4ge1xuICAgICAgICAgICAgICAgICAgICBjb2RlOiBlcnIuY29kZSxcbiAgICAgICAgICAgICAgICAgICAgZXJybm86IGVyci5lcnJubyxcbiAgICAgICAgICAgICAgICAgICAgc3FsOiBlcnIuc3FsLFxuICAgICAgICAgICAgICAgICAgICBuYW1lOmVyci5uYW1lLFxuICAgICAgICAgICAgICAgICAgICBtZXNzYWdlOmVyci5tZXNzYWdlLFxuICAgICAgICAgICAgICAgICAgICB0aHJvd2FibGU6dGhyb3dhYmxlP3RydWU6ZmFsc2VcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgIH1cbiAgICAgICAgfWVsc2V7XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgIGNvZGU6IFwiUVVFUllfRVJSXCIsXG4gICAgICAgICAgICAgICAgZXJybm86IDEwMDAwMixcbiAgICAgICAgICAgICAgICBmYXRhbDogdHJ1ZSxcbiAgICAgICAgICAgICAgICBzcWw6IFwibm8gcXVlcnlcIixcbiAgICAgICAgICAgICAgICBuYW1lOlwiUVVFUllfRVJSXCIsXG4gICAgICAgICAgICAgICAgbWVzc2FnZTpcIkVycm9yOiBcIisoZXJyKT9lcnI6XCJcIixcbiAgICAgICAgICAgICAgICB0aHJvd2FibGU6dGhyb3dhYmxlP3RydWU6ZmFsc2VcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cblxuXG5jb25zdCBzZWNyZXRfa2V5PVwiQUtMV2thanclXiZkZ3dxaHcjOTg0NTNpMjNiZmsyM3JuMmtua25nbHJnamVpdFwiXG5jb25zdCBzZWNyZXRfaXY9XCJydGhhZHJmazIzcm4ya24jKkZOS0FAZ3Q0NGRmM3RzbHJnaiMjIWl0XCJcblxuLy8gR2VuZXJhdGUgc2VjcmV0IGhhc2ggd2l0aCBjcnlwdG8gdG8gdXNlIGZvciBlbmNyeXB0aW9uXG5jb25zdCBrZXkgPSBjcmVhdGVIYXNoKCdzaGE1MTInKS51c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AgfWNhdGNoKGUpe1xuICAgICAgcmV0dXJuIG51bGw7XG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgTXlzcWxTZXJ2aWNlOyJdfQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "badmfck-api-server",
3
- "version": "2.5.8",
3
+ "version": "2.5.9",
4
4
  "description": "Simple API http server based on express",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",