@magic-xpa/engine 4.1100.0-dev4110.7 → 4.1100.0-dev4110.71

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  import { BlobType, Commands, DataModificationTypes, DisplayConvertor, ExpressionInterface, ExpVal, GuiExpressionEvaluator, NUM_TYPE, PIC, PropInterface, VectorType } from '@magic-xpa/gui';
2
2
  import { Constants, InternalInterface, Logger, Misc, MsgInterface, PICInterface, StorageAttribute, StorageAttributeCheck, StrUtil, UtilDateJpn, UtilStrByteMode } from '@magic-xpa/utils';
3
- import { ApplicationException, Array_Enumerator, Debug, Encoding, Exception, List, NChar, NNumber, NString, RefParam, Stack, StringBuilder, isNullOrUndefined, Thread } from '@magic-xpa/mscorelib';
3
+ import { ApplicationException, Array_Enumerator, Debug, Encoding, Exception, List, NChar, NNumber, NString, RefParam, Stack, StringBuilder, isNullOrUndefined } from '@magic-xpa/mscorelib';
4
4
  import { ExpressionLocalJpn } from './ExpressionLocalJpn';
5
5
  import { ExpressionDict } from './ExpressionDict';
6
6
  import { RunTimeEvent } from '../event/RunTimeEvent';
@@ -3902,10 +3902,6 @@ export class ExpressionEvaluator extends GuiExpressionEvaluator {
3902
3902
  let form = task.getForm();
3903
3903
  let args = this.params2arguments(expVal, 0, expVal.length);
3904
3904
  if (!isNullOrUndefined(args)) {
3905
- if (task.isFirstRecordCycle()) {
3906
- Commands.invoke();
3907
- await Thread.Sleep(10);
3908
- }
3909
3905
  resVal.StrVal = Commands.addCallJS(form, form.UniqueName, methodName, args);
3910
3906
  resVal.Attr = StorageAttribute.ALPHA;
3911
3907
  }
@@ -4209,4 +4205,4 @@ class DynamicOperation {
4209
4205
  this.opCode_ = ExpressionInterface.EXP_OP_NONE;
4210
4206
  }
4211
4207
  }
4212
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXhwcmVzc2lvbkV2YWx1YXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4u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gICAgICAgICBhZGRlZE9wZXJzLnB1c2goZHluT3Blcik7XHJcbiAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgIGR5bk9wZXIub3BDb2RlXyA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0VWQUxYO1xyXG4gICAgICAgICAgZHluT3Blci5hcmdDb3VudF8gPSAwO1xyXG4gICAgICAgICAgYWRkZWRPcGVycy5wdXNoKGR5bk9wZXIpO1xyXG4gICAgICAgICAgYWRkUmVzdWx0ID0gZmFsc2U7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9JRjpcclxuICAgICAgICB2YWwxID0gPEV4cFZhbD52YWxTdGFjay5wb3AoKTtcclxuICAgICAgICBpZiAodmFsMS5Cb29sVmFsKSB7XHJcbiAgICAgICAgICBkeW5PcGVyID0gbmV3IER5bmFtaWNPcGVyYXRpb24oKTtcclxuICAgICAgICAgIGR5bk9wZXIub3BDb2RlXyA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0VWQUxYO1xyXG4gICAgICAgICAgZHluT3Blci5hcmdDb3VudF8gPSAwO1xyXG5cclxuICAgICAgICAgIGFkZGVkT3BlcnMucHVzaChkeW5PcGVyKTtcclxuICAgICAgICAgIGR5bk9wZXIgPSBuZXcgRHluYW1pY09wZXJhdGlvbigpO1xyXG4gICAgICAgICAge1xyXG4gICAgICAgICAgICBkeW5PcGVyLm9wQ29kZV8gPSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9JR05PUkU7XHJcbiAgICAgICAgICAgIGR5bk9wZXIuYXJnQ291bnRfID0gMTtcclxuICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICBhZGRlZE9wZXJzLnB1c2goZHluT3Blcik7XHJcbiAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgIGR5bk9wZXIgPSBuZXcgRHluYW1pY09wZXJhdGlvbigpO1xyXG4gICAgICAgICAge1xyXG4gICAgICAgICAgICBkeW5PcGVyLm9wQ29kZV8gPSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9JR05PUkU7XHJcbiAgICAgICAgICAgIGR5bk9wZXIuYXJnQ291bnRfID0gMTtcclxuICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICBhZGRlZE9wZXJzLnB1c2goZHluT3Blcik7XHJcbiAgICAgICAgICBkeW5PcGVyID0gbmV3IER5bmFtaWNPcGVyYXRpb24oKTtcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgZHluT3Blci5vcENvZGVfID0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfRVZBTFg7XHJcbiAgICAgICAgICAgIGR5bk9wZXIuYXJnQ291bnRfID0gMDtcclxuICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICBhZGRlZE9wZXJzLnB1c2goZHluT3Blcik7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGFkZFJlc3VsdCA9IGZhbHNlO1xyXG4gICAgICAgIGV4cFN0clRyYWNrZXIucmVzZXROdWxsUmVzdWx0KCk7XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0xFTjpcclxuICAgICAgICB2YWwxID0gPEV4cFZhbD52YWxTdGFjay5wb3AoKTtcclxuXHJcbiAgICAgICAgcmVzVmFsLkF0dHIgPSBTdG9yYWdlQXR0cmlidXRlLk5VTUVSSUM7XHJcbiAgICAgICAgaWYgKHZhbDEuU3RyVmFsID09IG51bGwpIHtcclxuICAgICAgICAgIHN1cGVyLlNldE5VTEwocmVzVmFsLCBTdG9yYWdlQXR0cmlidXRlLk5VTUVSSUMpO1xyXG4gICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHJlc1ZhbC5NZ051bVZhbCA9IG5ldyBOVU1fVFlQRSgpO1xyXG4gICAg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saWZpZWQgdGhlIGV4cHJlc3Npb24sXHJcbiAgICAgICAgLy8gd2UgbWFyayBpdCBhcyBOT04tTlVMTC4gV2UgY2hlY2sgaWYgc29tZXRoaW5nIGVsc2UgbnVsbGlmaWVkIHRoZSBleHByZXNzaW9uXHJcbiAgICAgICAgLy8gYnkgc2Nhbm5pbmcgdGhlIHZhbHVlcyBjdXJyZW50bHkgb24gdGhlIHBhcmFtZXRlcnMgc3RhY2suXHJcbiAgICAgICAgaWYgKGV4cFN0clRyYWNrZXIuaXNOdWxsKCkpIHtcclxuICAgICAgICAgIGxldCBteUFycmF5OiBMaXN0PEV4cFZhbD4gPSBuZXcgTGlzdDxFeHBWYWw+KCk7XHJcbiAgICAgICAgICBsZXQgcHJldk51bGw6IGJvb2xlYW4gPSBmYWxzZTtcclxuICAgICAgICAgIGxldCBpOiBudW1iZXI7XHJcbiAgICAgICAgICB3aGlsZSAoISh2YWxTdGFjay5jb3VudCgpID09PSAwKSAmJiAhcHJldk51bGwpIHtcclxuICAgICAgICAgICAgbXlBcnJheS5wdXNoKDxFeHBWYWw+dmFsU3RhY2sucG9wKCkpO1xyXG4gICAgICAgICAgICBpZiAobXlBcnJheS5nZXRfSXRlbShteUFycmF5Lmxlbmd0aCAtIDEpLklzTnVsbClcclxuICAgICAgICAgICAgICBwcmV2TnVsbCA9IHRydWU7XHJcbiAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgZm9yIChpID0gbXlBcnJheS5sZW5ndGggLSAxOyBpID49IDA7IGktLSlcclxuICAgICAgICAgICAgdmFsU3RhY2sucHVzaChteUFycmF5LmdldF9JdGVtKGkpKTtcclxuXHJcbiAgICAgICAgICBpZiAoIXByZXZOdWxsKVxyXG4gICAgICAgICAgICBleHBTdHJUcmFja2VyLnJlc2V0TnVsbFJlc3VsdCgpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRV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lIFN0b3JhZ2VBdHRyaWJ1dGUuVU5JQ09ERTpcclxuICAgICAgICAgICAgcmVzLkF0dHIgPSBjZWxsQXR0cjtcclxuICAgICAgICAgICAgcmVzLlN0clZhbCA9IGNlbGxWYWw7XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICAgIGNhc2UgU3RvcmFnZUF0dHJpYnV0ZS5CTE9COlxyXG4gICAgICAgICAgICByZXMuQXR0ciA9IGNlbGxBdHRyO1xyXG4gICAgICAgICAgICByZXMuU3RyVmFsID0gY2VsbFZhbDtcclxuICAgICAgICAgICAgcmVzLkluY2x1ZGVCbG9iUHJlZml4ID0gdHJ1ZTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgY2FzZSBTdG9yYWdlQXR0cmlidXRlLkJMT0JfVkVDVE9SOlxyXG4gICAgICAgICAgICByZXMuQXR0ciA9IGNlbGxBdHRyO1xyXG4gICAgICAgICAgICByZXMuU3RyVmFsID0gY2VsbFZhbDtcclxuICAgICAgICAgICAgcmVzLkluY2x1ZGVCbG9iUHJlZml4ID0gdHJ1ZTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgY2FzZSBTdG9yYWdlQXR0cmlidXRlLk5VTUVSSUM6XHJcbiAgICAgICAgICAgIHJlcy5BdHRyID0gY2VsbEF0dHI7XHJcbiAgICAgICAgICAgIHJlcy5NZ051bVZhbCA9IG5ldyBOVU1fVFlQRShjZWxsVmFsKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgY2FzZSBTdG9yYWdlQXR0cmlidXRlLkRBVEU6XHJcbiAgICAgICAgICAgIHJlcy5BdHRyID0gY2VsbEF0dHI7XHJcbiAgICAgICAgICAgIHJlcy5NZ051bVZhbCA9IG5ldyBOVU1fVFlQRShjZWxsVmFsKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgY2FzZSBTdG9yYWdlQX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VEU6XHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuVElNRTpcclxuICAgICAgICAgICAgYXR0ci5wdXNoKEV4cF9wYXJhbXNbaV0uTWdOdW1WYWwuTlVNXzJfTE9ORygpKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgY2FzZSBTdG9yYWdlQXR0cmlidXRlLk5VTUVSSUM6XHJcbiAgICAgICAgICAgIGF0dHIucHVzaChFeHBfcGFyYW1zW2ldLk1nTnVtVmFsLnRvX2RvdWJsZSgpKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgY2FzZSBTdG9yYWdlQXR0cmlidXRlLkJMT0I6XHJcbiAgICAgICAgICAgIGxldCBibG9iID0gRXhwX3BhcmFtc1tpXS5TdHJWYWw7XHJcbiAgICAgICAgICAgIGlmKCFpc051bGxPclVuZGVmaW5lZChibG9iKSkge1xyXG4gICAgICAgICAgICAgIHtcclxuICAgICAgICAgICAgICAgIGxldCBjb250ZW50VHlwZTogc3RyaW5nID0gQmxvYlR5cGUuZ2V0Q29udGVudFR5cGUoYmxvYik7XHJcbiAgICAgICAgICAgICAgICBpZiAoY29udGVudFR5cGUgIT09IEJsb2JUeXBlLkNPTlRFTlRfVFlQRV9CSU5BUlkpIHtcclxuICAgICAgICAgICAgICAgICAgYXR0ci5wdXNoKEJsb2JUeXBlLmdldFN0cmluZyhibG9iKSk7XHJcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICBMb2dnZXIuSW5zdGFuY2UuV3JpdGVFcnJvclRvTG9nKCdBcmd1bWVudCAnICsgKGkgKyAxKSArICcgb2YgdHlwZSBCaW5hcnkgQmxvYiBpcyBub3Qgc3VwcG9ydGVkIGluIENhbGxKUycpO1xyXG4gICAgICAgICAgICAgICAgICByZXR1cm4gbnVsbDtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICB9XHJcbi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2lsbCBkaXJlZ2FyZCB0aGUgQW5zaSBzdHJpbmdcclxuICAgICAgICAgICAgICAgICAgbGVuID0gdGhpcy5nZXQ0Qnl0ZU51bWJlcigpO1xyXG4gICAgICAgICAgICAgICAgICB0aGlzLl9wb3NJZHggKz0gbGVuO1xyXG4gICAgICAgICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9FWFRfQTpcclxuICAgICAgICAgICAgICAgICAgbGVuID0gdGhpcy5nZXQyQnl0ZU51bWJlcigpO1xyXG4gICAgICAgICAgICAgICAgICB0aGlzLl9wb3NJZHggKz0gbGVuO1xyXG4gICAgICAgICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICAgICAgLy8gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cclxuICAgICAgICAgICAgICAvLyBTa2lwIE1hZ2ljIE51bWJlciB2YWx1ZVxyXG4gICAgICAgICAgICAgIC8vIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXHJcblxyXG4gICAgICAgICAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfTjpcclxuICAgICAgICAgICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX1Q6XHJcbiAgICAgICAgICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9EOlxyXG4gICAgICAgICAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfTTpcclxuICAgICAgICAgICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0s6XHJcbiAgICAgICAgICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmY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dG9yLkxPTkdfT0JKRUNUX0xFTik7XHJcbiAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICAgICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX1ZBUjpcclxuICAgICAgICAgICAgICAgICAgdGhpcy5fcG9zSWR4ICs9IChFeHByZXNzaW9uRXZhbHVhdG9yLlBBUkVOVF9MRU4gKyBFeHByZXNzaW9uRXZhbHVhdG9yLkxPTkdfT0JKRUNUX0xFTik7XHJcbiAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICAgICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX1JJR0hUX0xJVEVSQUw6XHJcbiAgICAgICAgICAgICAgICAgIGxlbiA9IHRoaXMuZ2V0MkJ5dGVOdW1iZXIoKTtcclxuICAgICAgICAgICAgICAgICAgdGhpcy5fcG9zSWR4ICs9IGxlbjtcclxuICAgICAgICAgICAgICAgICAgLy8gU2tpcCBleHRyYSB1bnVzZWQgc3RyaW5nIHN0b3JlZCBhZnRlciBsaXRlcmFsXHJcbiAgICAgICAgICAgICAgICAgIGxlbiA9IHRoaXMuZ2V0MkJ5dGVOdW1iZXIoKTtcclxuICAgICAgICAgICAgICAgICAgdGhpcy5fcG9zSWR4ICs9IGxlbjtcclxuICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgICAgIC8qIGNhc2UgRVhQX09QX0FDVDpcclxuICAgICAgICAgICAgICAgcG9zSWR4XyArPTI7XHJcbiAgICAgICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICAgICAgICAgY2FzZSBFWFBfT1BfS0JEOlxyXG4gICAgICAgICAgICAgICBwb3NJZHhfICsrO1xyXG4gICAgICAgICAgICAgICBicmVhazsgKi9cclxuXHJcbiAgICAgICAgICAgICAgLy8gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cclxuICAgICAgICAgICAgICAvLyBDdXJyZW50IG9wZXJhdG9yIGlzIGEgZnVuY3Rpb24sIHNvIHdlIGp1c3QgbmVlZCB0byB1cGRhdGVcclxuICAgICAgICAgICAgICAvLyAgdGhlIG51bWJlciBvZiBhcmd1bWVudHMgdG8gc2tpcFxyXG4gICAgICAgICAgICAgIC8vIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXHJcblxyXG4gICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgIGV4cERlc2MgPSBFeHByZXNzaW9uRGljdC5leHBEZXNjW29wQ29kZV07XHJcbiAgICAgICAgICAgICAgICAgIGlmIChleHBEZXNjLkFyZ0NvdW50XyA8IDApXHJcbiAgICAgICAgICAgICAgICAgICAgICBhcmdzUmVtYWluICs9IHRoaXMuZ2V0MUJ5dGVOdW1iZXIoKTtcclxuICAgICAgICAgICAgICAgICAgZWxzZVxyXG4gICAgICAgICAgICAgICAgICAgICAgYXJnc1JlbWFpbiArPSBleHBEZXNjLkFyZ0NvdW50XztcclxuICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICB9XHJcbiAgICAgIH1cclxuICB9XHJcbn1cclxuXHJcbmNsYXNzIER5bmFtaWNPcGVyYXRpb24ge1xyXG4gIGFyZ0NvdW50XzogbnVtYmVyID0gMDtcclxuICBvcENvZGVfOiBudW1iZXIgPSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9OT05FO1xyXG59XHJcblxyXG4iXX0=
4208
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXhwcmVzc2lvbkV2YWx1YXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3Rz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IHtcclxuICAgICAgICAgIGR5bk9wZXIub3BDb2RlXyA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0lHTk9SRTtcclxuICAgICAgICAgIGR5bk9wZXIuYXJnQ291bnRfID0gMTtcclxuICAgICAgICAgIGFkZGVkT3BlcnMucHVzaChkeW5PcGVyKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgZHluT3Blci5vcENvZGVfID0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfRVZBTFg7XHJcbiAgICAgICAgICBkeW5PcGVyLmFyZ0NvdW50XyA9IDA7XHJcbiAgICAgICAgICBhZGRlZE9wZXJzLnB1c2goZHluT3Blcik7XHJcbiAgICAgICAgICBhZGRSZXN1bHQgPSBmYWxzZTtcclxuICAgICAgICB9XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0FORDpcclxuICAgICAgICByZXNWYWwgPSA8RXhwVmFsPnZhbFN0YWNrLnBvcCgpO1xyXG4gICAgICAgIGR5bk9wZXIgPSBuZXcgRHluYW1pY09wZXJhdGlvbigpO1xyXG4gICAgICAgIGlmICghcmVzVmFsLkJvb2xWYWwpIHtcclxuICAgICAgICAgIGR5bk9wZXIub3BDb2RlXyA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0lHTk9SRTtcclxuICAgICAgICAgIGR5bk9wZXIuYXJnQ291bnRfID0gMTtcclxuICAgICAgICAgIGFkZGVkT3BlcnMucHVzaChkeW5PcGVyKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgZHluT3Blci5vcENvZGVfID0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfRVZBTFg7XHJcbiAgICAgICAgICBkeW5PcGVyLmFyZ0NvdW50XyA9IDA7XHJcbiAgICAgICAgICBhZGRlZE9wZXJzLnB1c2goZHluT3Blcik7XHJcbiAgICAgICAgICBhZGRSZXN1bHQgPSBmYWxzZTtcclxuICAgICAgICB9XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0lGOlxyXG4gICAgICAgIHZhbDEgPSA8RXhwVmFsPnZhbFN0YWNrLnBvcCgpO1xyXG4gICAgICAgIGlmICh2YWwxLkJvb2xWYWwpIHtcclxuICAgICAgICAgIGR5bk9wZXIgPSBuZXcgRHluYW1pY09wZXJhdGlvbigpO1xyXG4gICAgICAgICAgZHluT3Blci5vcENvZGVfID0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfRVZBTFg7XHJcbiAgICAgICAgICBkeW5PcGVyLmFyZ0NvdW50XyA9IDA7XHJcblxyXG4gICAgICAgICAgYWRkZWRPcGVycy5wdXNoKGR5bk9wZXIpO1xyXG4gICAgICAgICAgZHluT3BlciA9IG5ldyBEeW5hbWljT3BlcmF0aW9uKCk7XHJcbiAgICAgICAgICB7XHJcbiAgICAgICAgICAgIGR5bk9wZXIub3BDb2RlXyA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0lHTk9SRTtcclxuICAgICAgICAgICAgZHluT3Blci5hcmdDb3VudF8gPSAxO1xyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICAgIGFkZGVkT3BlcnMucHVzaChkeW5PcGVyKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgZHluT3BlciA9IG5ldyBEeW5hbWljT3BlcmF0aW9uKCk7XHJcbiAgICAgICAgICB7XHJcbiAgICAgICAgICAgIGR5bk9wZXIub3BDb2RlXyA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0lHTk9SRTtcclxuICAgICAgICAgICAgZHluT3Blci5hcmdDb3VudF8gPSAxO1xyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICAgIGFkZGVkT3BlcnMucHVzaChkeW5PcGVyKTtcclxuICAgICAgICAgIGR5bk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AgICEodmFsMS5BdHRyID09PSBTdG9yYWdlQXR0cmlidXRlLlVOSUNPREUgfHxcclxuICAgICAgICAgICAgdmFsMi5BdHRyID09PSBTdG9yYWdlQXR0cmlidXRlLlVOSUNPREUpKSB7XHJcbiAgICAgICAgICBvZnMgPSBVdGlsU3RyQnl0ZU1vZGUuaW5zdHJCKHZhbDEuU3RyVmFsLCB2YWwyLlN0clZhbCk7XHJcbiAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgIGlmICh2YWwyLlN0clZhbC5sZW5ndGggPT09IDApXHJcbiAgICAgICAgICAvLyBub3RoaW5nIDIgbG9vayBmb3JcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgcmVzVmFsLk1nTnVtVmFsLk5VTV80X0xPTkcob2ZzKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgICBvZnMgPSB2YWwxLlN0clZhbC5pbmRleE9mKHZhbDIuU3RyVmFsKTtcclxuICAgICAgICAgIGlmIChvZnMgPCAwKVxyXG4gICAgICAgICAgLy8gc3RyaW5nIGluIG1hZ2ljIHN0YXJ0cyBmcm9tIDEsIGluIGphdmEgZnJvbSAwLlxyXG4gICAgICAgICAgICBvZnMgPSAwO1xyXG4gICAgICAgICAgZWxzZVxyXG4gICAgICAgICAgICBvZnMrKztcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJlc1ZhbC5NZ051bVZhbC5OVU1fNF9MT05HKG9mcyk7XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX1RSSU06XHJcbiAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfTFRSSU06XHJcbiAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfUlRSSU06XHJcbiAgICAgICAgdmFsMSA9IDxFeHBWYWw+dmFsU3RhY2sucG9wKCk7IC8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VmFsKTtcclxuICAgICAgICB0cnkge1xyXG4gICAgICAgICAgZm9yIChqID0gMTsgaiA8IG5BcmdzOyBqKyspIHtcclxuICAgICAgICAgICAgdmFsMSA9IDxFeHBWYWw+dmFsU3RhY2sucG9wKCk7XHJcbiAgICAgICAgICAgIGlmIChvcENvZGUgPT09IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX01JTikge1xyXG4gICAgICAgICAgICAgIGlmIChFeHByZXNzaW9uRXZhbHVhdG9yLnZhbF9jbXBfYW55KHZhbDEsIHJlc1ZhbCkgPCAwKVxyXG4gICAgICAgICAgICAgICAgdGhpcy52YWxfY3B5KHZhbDEsIHJlc1ZhbCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgLy8gRVhQX09QX01BWFxyXG4gICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICBpZiAoRXhwcmVzc2lvbkV2YWx1YXRvci52YWxfY21wX2FueSh2YWwxLCByZXNWYWwpID4gMClcclxuICAgICAgICAgICAgICAgIHRoaXMudmFsX2NweSh2YWwxLCByZXNWYWwpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSBjYXRjaCAob25lT2ZWYWx1ZXNJc051bGwpIHtcclxuICAgICAgICAgIGlmIChvbmVPZlZhbHVlc0lzTnVsbCBpbnN0YW5jZW9mIE51bGxWYWx1ZUV4Y2VwdGlvbikge1xyXG4gICAgICAgICAgICBmb3IgKDsgdmFsU3RhY2suY291bnQoKSA+IDAgJiYgaiA8IG5BcmdzOyBqKyspXHJcbiAgICAgICAgICAgICAgLy8gY2xlYW4gcXVldWVcclxuICAgICAgICAgICAgICB2YWxTdGFjay5wb3AoKTtcclxuICAgICAgICAgICAgcmVzVmFsLklzTnVsbCA9IHRydWU7XHJcbiAgICAgICAgICAgIHJlc1ZhbC5BdHRyID0gb25lT2ZWYWx1ZXNJc051bGwuZ2V0QXR0cigpO1xyXG4gICAgICAgICAgfSBlbH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LSAnQScuY2hhckNvZGVBdCgwKSArIDEpICogbXVsO1xyXG4gICAgICAgICAgZWxzZVxyXG4gICAgICAgICAgICBkaWdpdHMgPSAwO1xyXG4gICAgICAgICAgcmVzICs9IGRpZ2l0cztcclxuICAgICAgICB9XHJcbiAgICAgICAgcmVzICU9IDExO1xyXG4gICAgICAgIGlmIChyZXMgIT09IDApXHJcbiAgICAgICAgICByZXMgPSAxMSAtIHJlcztcclxuICAgICAgICBicmVhaztcclxuICAgIH1cclxuICAgIHN1cGVyLkNvbnN0cnVjdE1hZ2ljTnVtKHJlc1ZhbCwgcmVzLCBTdG9yYWdlQXR0cmlidXRlLk5VTUVSSUMpO1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBhXzJfbG9uZyhzdHI6IHN0cmluZywgbGVuOiBudW1iZXIpOiBudW1iZXIge1xyXG4gICAgbGV0IG46IG51bWJlciA9IDA7XHJcbiAgICBmb3IgKGxldCBwb3M6IG51bWJlciA9IDA7IHBvcyA8IGxlbjsgcG9zID0gcG9zICsgMSkge1xyXG4gICAgICBpZiAoVXRpbFN0ckJ5dGVNb2RlLmlzRGlnaXQoc3RyLmNoYXJBdChwb3MpKSkge1xyXG4gICAgICAgIG4gPSBuICogMTA7XHJcbiAgICAgICAgbiArPSA8bnVtYmVyPihzdHIuY2hhckNvZGVBdChwb3MpIC0gJzAnLmNoYXJDb2RlQXQoMCkpO1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgICByZXR1cm4gbjtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgZXZhbF9vcF9zb3VuZHgocmVzVmFsOiBFeHBWYWwsIHZhbDE6IEV4cFZhbCk6IHZvaWQge1xyXG4gICAgbGV0IHNvdW5keF92YWxzOiBzdHJpbmdbXSA9IFtcclxuICAgICAgJzAnLCAnMScsICcyJywgJzMnLCAnMCcsICcxJywgJzInLCAnMCcsICcwJywgJzInLCAnMicsICc0JywgJzUnLCAnNScsICcwJywgJzEnLCAnMicsXHJcbiAgIC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IC0+ICcqJywgJ1xcPycgLT4gJz8nLFxyXG4gICAgLy8gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnKicgLT4gQVNURVJJU0tfQ0hSLCAnPycgLT4gUVVFU1RJT05fQ0hSXHJcbiAgICBmb3IgKGkgPSAwLCBqID0gMCwgZXNjX2NoID0gZmFsc2U7IGkgPCBNYXNrTGVuOyBpKyspIHtcclxuICAgICAgbGV0IGN1cnJDaHI6IHN0cmluZyA9IE1hc2tPcmdbaV07XHJcbiAgICAgIHN3aXRjaCAoY3VyckNocikge1xyXG4gICAgICAgIGNhc2UgJ1xcXFwnOlxyXG4gICAgICAgICAgaWYgKGVzY19jaClcclxuICAgICAgICAgICAgTWFza1tqKytdID0gY3VyckNocjtcclxuICAgICAgICAgIGVzY19jaCA9ICFlc2NfY2g7XHJcbiAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgY2FzZSAnKic6XHJcbiAgICAgICAgICBpZiAoZXNjX2NoKVxyXG4gICAgICAgICAgICBNYXNrW2orK10gPSBjdXJyQ2hyO1xyXG4gICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIE1hc2tbaisrXSA9IEV4cHJlc3Npb25FdmFsdWF0b3IuQVNURVJJU0tfQ0hSO1xyXG4gICAgICAgICAgICBhc3Rlcmlza0NudCsrO1xyXG4gICAgICAgICAgfVxyXG4gICAgICAgICAgZXNjX2NoID0gZmFsc2U7XHJcbiAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgY2FzZSAnPyc6XHJcbiAgICAgICAgICBNYXNrW2orK10gPSBlc2NfY2ggPyBjdXJyQ2hyIDogRXhwcmVzc2lvbkV2YWx1YXRvci5RVUVTVElPTl9DSFI7XHJcbiAgICAgICAgICBlc2NfY2ggPSBmYWxzZTtcclxuICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgTWFza1tqKytdID0gY3VyckNocjtcclxuICAgICAgICAgIGVzY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UuQkxPQl9WRUNUT1I6XHJcbiAgICAgICAgICAgIHJlcy5BdHRyID0gY2VsbEF0dHI7XHJcbiAgICAgICAgICAgIHJlcy5TdHJWYWwgPSBjZWxsVmFsO1xyXG4gICAgICAgICAgICByZXMuSW5jbHVkZUJsb2JQcmVmaXggPSB0cnVlO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuTlVNRVJJQzpcclxuICAgICAgICAgICAgcmVzLkF0dHIgPSBjZWxsQXR0cjtcclxuICAgICAgICAgICAgcmVzLk1nTnVtVmFsID0gbmV3IE5VTV9UWVBFKGNlbGxWYWwpO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuREFURTpcclxuICAgICAgICAgICAgcmVzLkF0dHIgPSBjZWxsQXR0cjtcclxuICAgICAgICAgICAgcmVzLk1nTnVtVmFsID0gbmV3IE5VTV9UWVBFKGNlbGxWYWwpO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuVElNRTpcclxuICAgICAgICAgICAgcmVzLkF0dHIgPSBjZWxsQXR0cjtcclxuICAgICAgICAgICAgcmVzLk1nTnVtVmFsID0gbmV3IE5VTV9UWVBFKGNlbGxWYWwpO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuQk9PTEVBTjpcclxuICAgICAgICAgICAgcmVzLkF0dHIgPSBjZWxsQXR0cjtcclxuICAgICAgICAgICAgcmVzLkJvb2xWYWwgPSBEaXNwbGF5Q29udmVydG9yLnRvQm9vbGVhbihjZWxsVmFsKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgdGhyb3cgbmV3IE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AgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgbGV0IGNvbnRlbnRUeXBlOiBzdHJpbmcgPSBCbG9iVHlwZS5nZXRDb250ZW50VHlwZShibG9iKTtcclxuICAgICAgICAgICAgICAgIGlmIChjb250ZW50VHlwZSAhPT0gQmxvYlR5cGUuQ09OVEVOVF9UWVBFX0JJTkFSWSkge1xyXG4gICAgICAgICAgICAgICAgICBhdHRyLnB1c2goQmxvYlR5cGUuZ2V0U3RyaW5nKGJsb2IpKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgIExvZ2dlci5JbnN0YW5jZS5Xcml0ZUVycm9yVG9Mb2coJ0FyZ3VtZW50ICcgKyAoaSArIDEpICsgJyBvZiB0eXBlIEJpbmFyeSBCbG9iIGlzIG5vdCBzdXBwb3J0ZWQgaW4gQ2FsbEpTJyk7XHJcbiAgICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgIGNhc2UgU3RvcmFnZUF0dHJpYnV0ZS5OT05FOlxyXG4gICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgTG9nZ2VyLkluc3RhbmNlLldyaXRlRXJyb3JUb0xvZygnIEFyZ3VtZW50ICcrIChpICsgMSkrICcgaXMgbm90IHN1cHBvcnRlZCBpbiBDYWxsSlMnICk7XHJcbiAgICAgICAgICAgIHJldHVybiBudWxsO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gICAgcmV0dXJuIGF0dHI7XHJcbiAgfVxyXG5cclxufVxyXG5cclxuLy8vIDxzdW1tYXJ5PlxyXG4vLy8gICBUaGlzIGV4Y2VwdGlvbiB1c2VkIHdoZW4gYXQgbGVhc3Qgb25lIG9mIHRoZSBvcGVyYW5kcyBpcyBudWxsXHJcb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tLS0tLS0tLS0tLS0tLS1cclxuICAgICAgICAgICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0E6XHJcbiAgICAgICAgICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9IOlxyXG4gICAgICAgICAgICAgICAgICBsZW4gPSB0aGlzLmdldDRCeXRlTnVtYmVyKCk7XHJcbiAgICAgICAgICAgICAgICAgIHRoaXMuX3Bvc0lkeCArPSAobGVuICogQ29uc3RJbnRlcmZhY2UuQllURVNfSU5fQ0hBUik7XHJcbiAgICAgICAgICAgICAgICAgIC8vIHNpbmNlIHRoZSBzZXJ2ZXIgc2VuZHMgdXMgYm90aCBVbmljb2RlIHN0cmluZyBBbnNpIHN0cmluZyBmb3JcclxuICAgICAgICAgICAgICAgICAgLy8gZWFjaCBzdHJpbmcgaW4gdGhlIGV4cHJlc3Npb24sIGFuZCB0aGUgY2xpZW50IHVzZXMgb25seSB1bmljb2RlLFxyXG4gICAgICAgICAgICAgICAgICAvLyB3ZSB3aWxsIGRpcmVnYXJkIHRoZSBBbnNpIHN0cmluZ1xyXG4gICAgICAgICAgICAgICAgICBsZW4gPSB0aGlzLmdldDRCeXRlTnVtYmVyKCk7XHJcbiAgICAgICAgICAgICAgICAgIHRoaXMuX3Bvc0lkeCArPSBsZW47XHJcbiAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICAgICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0VYVF9BOlxyXG4gICAgICAgICAgICAgICAgICBsZW4gPSB0aGlzLmdldDJCeXRlTnVtYmVyKCk7XHJcbiAgICAgICAgICAgICAgICAgIHRoaXMuX3Bvc0lkeCArPSBsZW47XHJcbiAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICAgICAgICAvLyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0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S0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXHJcblxyXG4gICAgICAgICAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfVjpcclxuICAgICAgICAgICAgICAgICAgLy8gaWYgc29tZXRoaW5nIHdyb25nIHdpdGggZXNjYXBlIHZhcmlhYmxlLCBjaGFuZ2UgdGhpcyBudW1iZXIuXHJcbiAgICAgICAgICAgICAgICAgIHRoaXMuX3Bvc0lkeCArPSAoRXhwcmVzc2lvbkV2YWx1YXRvci5QQVJFTlRfTEVOICsgRXhwcmVzc2lvbkV2YWx1YXRvci5MT05HX09CSkVDVF9MRU4pO1xyXG4gICAgICAgICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9GT1JNOlxyXG4gICAgICAgICAgICAgICAgICB0aGlzLl9wb3NJZHggKz0gKEV4cHJlc3Npb25FdmFsdWF0b3IuUEFSRU5UX0xFTiArIEV4cHJlc3Npb25FdmFsdWF0b3IuTE9OR19PQkpFQ1RfTEVOKTtcclxuICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfVkFSOlxyXG4gICAgICAgICAgICAgICAgICB0aGlzLl9wb3NJZHggKz0gKEV4cHJlc3Npb25FdmFsdWF0b3IuUEFSRU5UX0xFTiArIEV4cHJlc3Npb25FdmFsdWF0b3IuTE9OR19PQkpFQ1RfTEVOKTtcclxuICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfUklHSFRfTElURVJBTDpcclxuICAgICAgICAgICAgICAgICAgbGVuID0gdGhpcy5nZXQyQnl0ZU51bWJlcigpO1xyXG4gICAgICAgICAgICAgICAgICB0aGlzLl9wb3NJZHggKz0gbGVuO1xyXG4gICAgICAgICAgICAgICAgICAvLyBTa2lwIGV4dHJhIHVudXNlZCBzdHJpbmcgc3RvcmVkIGFmdGVyIGxpdGVyYWxcclxuICAgICAgICAgICAgICAgICAgbGVuID0gdGhpcy5nZXQyQnl0ZU51bWJlcigpO1xyXG4gICAgICAgICAgICAgICAgICB0aGlzLl9wb3NJZHggKz0gbGVuO1xyXG4gICAgICAgICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICAgICAgLyogY2FzZSBFWFBfT1BfQUNUOlxyXG4gICAgICAgICAgICAgICBwb3NJZHhfICs9MjtcclxuICAgICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgICAgICBjYXNlIEVYUF9PUF9LQkQ6XHJcbiAgICAgICAgICAgICAgIHBvc0lkeF8gKys7XHJcbiAgICAgICAgICAgICAgIGJyZWFrOyAqL1xyXG5cclxuICAgICAgICAgICAgICAvLyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxyXG4gICAgICAgICAgICAgIC8vIEN1cnJlbnQgb3BlcmF0b3IgaXMgYSBmdW5jdGlvbiwgc28gd2UganVzdCBuZWVkIHRvIHVwZGF0ZVxyXG4gICAgICAgICAgICAgIC8vICB0aGUgbnVtYmVyIG9mIGFyZ3VtZW50cyB0byBza2lwXHJcbiAgICAgICAgICAgICAgLy8gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cclxuXHJcbiAgICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgICAgZXhwRGVzYyA9IEV4cHJlc3Npb25EaWN0LmV4cERlc2Nbb3BDb2RlXTtcclxuICAgICAgICAgICAgICAgICAgaWYgKGV4cERlc2MuQXJnQ291bnRfIDwgMClcclxuICAgICAgICAgICAgICAgICAgICAgIGFyZ3NSZW1haW4gKz0gdGhpcy5nZXQxQnl0ZU51bWJlcigpO1xyXG4gICAgICAgICAgICAgICAgICBlbHNlXHJcbiAgICAgICAgICAgICAgICAgICAgICBhcmdzUmVtYWluICs9IGV4cERlc2MuQXJnQ291bnRfO1xyXG4gICAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgIH1cclxuICAgICAgfVxyXG4gIH1cclxufVxyXG5cclxuY2xhc3MgRHluYW1pY09wZXJhdGlvbiB7XHJcbiAgYXJnQ291bnRfOiBudW1iZXIgPSAwO1xyXG4gIG9wQ29kZV86IG51bWJlciA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX05PTkU7XHJcbn1cclxuXHJcbiJdfQ==