@magic-xpa/engine 4.1100.0-dev4110.253 → 4.1100.0-dev4110.256
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/ClientManager.mjs +1 -1
- package/esm2022/src/CommandsProcessorBase.mjs +1 -1
- package/esm2022/src/CommandsProcessorManager.mjs +1 -1
- package/esm2022/src/CommandsTable.mjs +1 -1
- package/esm2022/src/CurrentClientVersion.mjs +2 -2
- package/esm2022/src/GUIManager.mjs +1 -1
- package/esm2022/src/GuiEventsProcessor.mjs +1 -1
- package/esm2022/src/ServerConfig.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/ClientOriginatedCommandSerializer.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/CommandFactory.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/CommandSerializationHelper.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/EvaluateCommand.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/ExecOperCommand.mjs +1 -1
- package/esm2022/src/commands/ClientToServer/RollbackEventCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/AbortCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/AddRangeCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/AddSortCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/ClientRefreshCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/ClientTargetedCommandBase.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/EnhancedVerifyCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/OpenURLCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/ResultCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/VerifyCommand.mjs +1 -1
- package/esm2022/src/commands/ServerToClient/XMLBasedCommandBuilder.mjs +1 -1
- package/esm2022/src/data/DataView.mjs +1 -1
- package/esm2022/src/data/DvCache.mjs +1 -1
- package/esm2022/src/data/Field.mjs +1 -1
- package/esm2022/src/data/FieldsTable.mjs +1 -1
- package/esm2022/src/data/Key.mjs +1 -1
- package/esm2022/src/data/Record.mjs +2 -2
- package/esm2022/src/data/RecordsTable.mjs +1 -1
- package/esm2022/src/data/TaskTransactionManager.mjs +1 -1
- package/esm2022/src/data/XMLBasedDcValuesBuilder.mjs +1 -1
- package/esm2022/src/env/EnvVariablesTable.mjs +1 -1
- package/esm2022/src/env/Environment.mjs +1 -1
- package/esm2022/src/env/LanguageData.mjs +1 -1
- package/esm2022/src/env/MirrorString.mjs +1 -1
- package/esm2022/src/event/ActionManager.mjs +1 -1
- package/esm2022/src/event/Event.mjs +1 -1
- package/esm2022/src/event/EventHandler.mjs +1 -1
- package/esm2022/src/event/EventHandlerPosition.mjs +1 -1
- package/esm2022/src/event/EventsManager.mjs +1 -1
- package/esm2022/src/event/RunTimeEvent.mjs +1 -1
- package/esm2022/src/event/UserEventsTable.mjs +1 -1
- package/esm2022/src/exp/ExpTable.mjs +1 -1
- package/esm2022/src/exp/Expression.mjs +1 -1
- package/esm2022/src/exp/ExpressionEvaluator.mjs +1 -1
- package/esm2022/src/exp/ExpressionLocalJpn.mjs +1 -1
- package/esm2022/src/exp/GlobalParamsTable.mjs +1 -1
- package/esm2022/src/exp/YesNoExp.mjs +1 -1
- package/esm2022/src/gui/FormsTable.mjs +1 -1
- package/esm2022/src/gui/MgControl.mjs +1 -1
- package/esm2022/src/gui/MgForm.mjs +1 -1
- package/esm2022/src/http/HttpManager.mjs +1 -1
- package/esm2022/src/http/client/HttpClientAsync.mjs +1 -1
- package/esm2022/src/http/client/HttpClientBase.mjs +1 -1
- package/esm2022/src/http/client/HttpClientEvents.mjs +1 -1
- package/esm2022/src/http/client/HttpClientSync.mjs +1 -1
- package/esm2022/src/http/client/HttpUtility.mjs +1 -1
- package/esm2022/src/remote/AddUserLocateRemoteDataViewCommand.mjs +1 -1
- package/esm2022/src/remote/AddUserRangeRemoteDataViewCommand.mjs +1 -1
- package/esm2022/src/remote/AddUserSortRemoteDataViewCommand.mjs +1 -1
- package/esm2022/src/remote/RemoteCommandsProcessor.mjs +1 -1
- package/esm2022/src/remote/RemoteControlItemsRefreshCommand.mjs +1 -1
- package/esm2022/src/remote/RemoteDataViewCommandBase.mjs +1 -1
- package/esm2022/src/remote/RemoteDataViewCommandFactory.mjs +1 -1
- package/esm2022/src/remote/ResetUserLocateRemoteDataviewCommand.mjs +1 -1
- package/esm2022/src/remote/ResetUserSortRemoteDataviewCommand.mjs +1 -1
- package/esm2022/src/remote/ServerError.mjs +1 -1
- package/esm2022/src/remote/SetTransactionStateRemoteDataViewCommand.mjs +1 -1
- package/esm2022/src/rt/Argument.mjs +1 -1
- package/esm2022/src/rt/ArgumentsList.mjs +1 -1
- package/esm2022/src/rt/Boundary.mjs +1 -1
- package/esm2022/src/rt/CompMainPrgTable.mjs +1 -1
- package/esm2022/src/rt/DataviewHeaderBase.mjs +1 -1
- package/esm2022/src/rt/DataviewHeaders.mjs +1 -1
- package/esm2022/src/rt/DataviewHeadersSaxHandler.mjs +1 -1
- package/esm2022/src/rt/ExecutionStack.mjs +1 -1
- package/esm2022/src/rt/HandlersTable.mjs +1 -1
- package/esm2022/src/rt/LastFocusedManager.mjs +1 -1
- package/esm2022/src/rt/Operation.mjs +1 -1
- package/esm2022/src/rt/OperationTable.mjs +1 -1
- package/esm2022/src/rt/Recompute.mjs +1 -1
- package/esm2022/src/rt/RecomputeTable.mjs +1 -1
- package/esm2022/src/rt/RemoteDataviewHeader.mjs +1 -1
- package/esm2022/src/rt/TableCache.mjs +1 -1
- package/esm2022/src/rt/TableCacheManager.mjs +1 -1
- package/esm2022/src/rt/Transaction.mjs +1 -1
- package/esm2022/src/security/UserDetails.mjs +1 -1
- package/esm2022/src/tasks/MGData.mjs +1 -1
- package/esm2022/src/tasks/MGDataCollection.mjs +1 -1
- package/esm2022/src/tasks/RCTimer.mjs +1 -1
- package/esm2022/src/tasks/RemoteTaskService.mjs +1 -1
- package/esm2022/src/tasks/Task.mjs +1 -1
- package/esm2022/src/tasks/TaskBase.mjs +1 -1
- package/esm2022/src/tasks/TaskServiceBase.mjs +1 -1
- package/esm2022/src/tasks/TasksTable.mjs +1 -1
- package/esm2022/src/tasks/sort/SortCollection.mjs +1 -1
- package/esm2022/src/util/ConstUtils.mjs +1 -1
- package/esm2022/src/util/FlowMonitorQueue.mjs +1 -1
- package/esm2022/src/util/HeapSort.mjs +1 -1
- package/esm2022/src/util/MgPriorityBlockingQueue.mjs +1 -1
- package/esm2022/src/util/MgPriorityQueue.mjs +1 -1
- package/esm2022/src/util/PrmMap.mjs +1 -1
- package/esm2022/src/util/Scrambler.mjs +1 -1
- package/esm2022/src/util/UniqueIDUtils.mjs +1 -1
- package/esm2022/src/util/cookie.service.mjs +1 -1
- package/fesm2022/magic-xpa-engine.mjs +2 -2
- package/fesm2022/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
@@ -4203,4 +4203,4 @@ class DynamicOperation {
|
|
4203
4203
|
argCount_ = 0;
|
4204
4204
|
opCode_ = ExpressionInterface.EXP_OP_NONE;
|
4205
4205
|
}
|
4206
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXhwcmVzc2lvbkV2YWx1YXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvZXhwL0V4cHJlc3Npb25FdmFsdWF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFFBQVEsRUFDUixRQUFRLEVBQ1IscUJBQXFCLEVBRXJCLGdCQUFnQixFQUNoQixtQkFBbUIsRUFDbkIsTUFBTSxFQUNOLHNCQUFzQixFQUd0QixRQUFRLEVBQ1IsR0FBRyxFQUVILGFBQWEsRUFFYixVQUFVLEVBQ1gsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4QixPQUFPLEVBQ0wsU0FBUyxFQUNULGlCQUFpQixFQUNqQixNQUFNLEVBQ04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gLy8gZmFsbHMgdGhyb3VnaFxyXG5cclxuICAgICAgICAgIGNhc2UgU3RvcmFnZUF0dHJpYnV0ZS5CTE9COlxyXG4gICAgICAgICAgICBWYWwuU3RyVmFsID0gZmxkVmFsO1xyXG5cclxuICAgICAgICAgICAgaWYgKFZhbC5TdHJWYWwgPT0gbnVsbCkge1xyXG4gICAgICAgICAgICAgIFZhbC5Jc051bGwgPSB0cnVlO1xyXG4gICAgICAgICAgICAgIFZhbC5JbmNsdWRlQmxvYlByZWZpeCA9IGZhbHNlO1xyXG4gICAgICAgICAgICB9IGVsc2VcclxuICAgICAgICAgICAgICBWYWwuSW5jbHVkZUJsb2JQcmVmaXggPSB0cnVlO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuTlVNRVJJQzpcclxuICAgICAgICAgIGNhc2UgU3RvcmFnZUF0dHJpYnV0ZS5EQVRFOlxyXG4gICAgICAgICAgY2FzZSBTdG9yYWdlQXR0cmlidXRlLlRJTUU6XHJcbiAgICAgICAgICAgIFZhbC5NZ051bVZhbCA9IGZsZFZhbCAhPSBudWxsID8gbmV3IE5VTV9UWVBFKGZsZFZhbCkgOiBudWxsO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuQk9PTEVBTjpcclxuICAgICAgICAgICAgaWYgKGZsZFZhbCAhPSBudWxsKVxyXG4gICAgICAgICAgICAgIFZhbC5Cb29sVmFsID0gRGlzcGxheUNvbnZlcnRvci50b0Jvb2xlYW4oZmxkVmFsKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgIH1cclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfRk9STTpcclxuICAgICAgICBwYXJlbnQgPSBleHBTdHJUcmFja2VyLmdldFZhcklke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bigpO1xyXG4gICAgICAgIGlmICghcmVzVmFsLkJvb2xWYWwpIHtcclxuICAgICAgICAgIGR5bk9wZXIub3BDb2RlXyA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0lHTk9SRTtcclxuICAgICAgICAgIGR5bk9wZXIuYXJnQ291bnRfID0gMTtcclxuICAgICAgICAgIGFkZGVkT3BlcnMucHVzaChkeW5PcGVyKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgZHluT3Blci5vcENvZGVfID0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfRVZBTFg7XHJcbiAgICAgICAgICBkeW5PcGVyLmFyZ0NvdW50XyA9IDA7XHJcbiAgICAgICAgICBhZGRlZE9wZXJzLnB1c2goZHluT3Blcik7XHJcbiAgICAgICAgICBhZGRSZXN1bHQgPSBmYWxzZTtcclxuICAgICAgICB9XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0lGOlxyXG4gICAgICAgIHZhbDEgPSA8RXhwVmFsPnZhbFN0YWNrLnBvcCgpO1xyXG4gICAgICAgIGlmICh2YWwxLkJvb2xWYWwpIHtcclxuICAgICAgICAgIGR5bk9wZXIgPSBuZXcgRHluYW1pY09wZXJhdGlvbigpO1xyXG4gICAgICAgICAgZHluT3Blci5vcENvZGVfID0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfRVZBTFg7XHJcbiAgICAgICAgICBkeW5PcGVyLmFyZ0NvdW50XyA9IDA7XHJcblxyXG4gICAgICAgICAgYWRkZWRPcGVycy5wdXNoKGR5bk9wZXIpO1xyXG4gICAgICAgICAgZHluT3BlciA9IG5ldyBEeW5hbWljT3BlcmF0aW9uKCk7XHJcbiAgICAgICAgICB7XHJcbiAgICAgICAgICAgIGR5bk9wZXIub3BDb2RlXyA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0lHTk9SRTtcclxuICAgICAgICAgICAgZHluT3Blci5hcmdDb3VudF8gPSAxO1xyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICAgIGFkZGVkT3BlcnMucHVzaChkeW5PcGVyKTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgZHluT3BlciA9IG5ldyBEeW5hbWljT3BlcmF0aW9uKCk7XHJcbiAgICAgICAgICB7XHJcbiAgICAgICAgICAgIGR5bk9wZXIub3BDb2RlXyA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0lHTk9SRTtcclxuICAgICAgICAgICAgZHluT3Blci5hcmdDb3VudF8gPSAxO1xyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICAgIGFkZGVkT3BlcnMucHVzaChkeW5PcGVyKTtcclxuICAgICAgICAgIGR5bk9wZXIgPSBuZXcgRHluYW1pY09wZXJhdGlvbigpO1xyXG4gICAgICAgICAge1xyXG4gICAgICAgICAgICBkeW5PcGVyLm9wQ29kZV8gPSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9FVkFMWDtcclxuICAgICAgICAgICAgZHluT3Blci5hcmdDb3VudF8gPSAwO1xyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICAgIGFkZGVkT3BlcnMucHVzaChkeW5PcGVyKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgYWRkUmVzdWx0ID0gZmFsc2U7XHJcbiAgICAgICAgZXhwU3RyVHJhY2tlci5yZXNldE51bGxSZXN1bHQoKTtcclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfTEVOOlxyXG4gICAgICAgIHZhbDEgPSA8RXhwVmFsPnZhbFN0YWNrLnBvcCgpO1xyXG5cclxuICAgICAgICByZXNWYWwuQXR0ciA9IFN0b3JhZ2VBdHRyaWJ1dGUuTlVNRVJJQztcclxuICAgICAgICBpZiAodmFsMS5TdHJWYWwgPT0gbnVsbCkge1x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WJ1dGUuTlVNRVJJQztcclxuICAgICAgICBpZiAodmFsMS5TdHJWYWwgPT0gbnVsbCB8fCB2YWwyLlN0clZhbCA9PSBudWxsKSB7XHJcbiAgICAgICAgICBzdXBlci5TZXROVUxMKHJlc1ZhbCwgU3RvcmFnZUF0dHJpYnV0ZS5OVU1FUklDKTtcclxuICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmVzVmFsLk1nTnVtVmFsID0gbmV3IE5VTV9UWVBFKCk7XHJcbiAgICAgICAgLy8gY291bnQgdGhlIG51bWJlciBvZiBieXRlcywgbm90IGNoYXJhY3RlcnMgKEpQTjogREJDUyBzdXBwb3J0KVxyXG4gICAgICAgIGlmIChzcGVjaWFsQW5zaUV4cHJlc3Npb24gfHxcclxuICAgICAgICAgICEodmFsMS5BdHRyID09PSBTdG9yYWdlQXR0cmlidXRlLlVOSUNPREUgfHxcclxuICAgICAgICAgICAgdmFsMi5BdHRyID09PSBTdG9yYWdlQXR0cmlidXRlLlVOSUNPREUpKSB7XHJcbiAgICAgICAgICBvZnMgPSBVdGlsU3RyQnl0ZU1vZGUuaW5zdHJCKHZhbDEuU3RyVmFsLCB2YWwyLlN0clZhbCk7XHJcbiAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgIGlmICh2YWwyLlN0clZhbC5sZW5ndGggPT09IDApXHJcbiAgICAgICAgICAvLyBub3RoaW5nIDIgbG9vayBmb3JcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgcmVzVmFsLk1nTnVtVmFsLk5VTV80X0xPTkcob2ZzKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgICBvZnMgPSB2YWwxLlN0clZhbC5pbmRleE9mKHZhbDIuU3RyVmFsKTtcclxuICAgICAgICAgIGlmIChvZnMgPCAwKVxyXG4gICAgICAgICAgLy8gc3RyaW5nIGluIG1hZ2ljIHN0YXJ0cyBmcm9tIDEsIGluIG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FlQRS5ldmFsX29wX3JhbmQodmFsMS5NZ051bVZhbCk7XHJcbiAgICAgICAgcmVzVmFsLklzTnVsbCA9IChyZXNWYWwuTWdOdW1WYWwgPT0gbnVsbCk7XHJcbiAgICAgICAgcmVzVmFsLkF0dHIgPSBTdG9yYWdlQXR0cmlidXRlLk5VTUVSSUM7XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX01JTjpcclxuICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9NQVg6XHJcbiAgICAgICAgbkFyZ3MgPSB2YWxTdGFjay5wb3AoKTtcclxuICAgICAgICB0aGlzLnZhbF9jcHkoPEV4cFZhbD52YWxTdGFjay5wb3AoKSwgcmVzVmFsKTtcclxuICAgICAgICB0cnkge1xyXG4gICAgICAgICAgZm9yIChqID0gMTsgaiA8IG5BcmdzOyBqKyspIHtcclxuICAgICAgICAgICAgdmFsMSA9IDxFeHBWYWw+dmFsU3RhY2sucG9wKCk7XHJcbiAgICAgICAgICAgIGlmIChvcENvZGUgPT09IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX01JTikge1xyXG4gICAgICAgICAgICAgIGlmIChFeHByZXNzaW9uRXZhbHVhdG9yLnZhbF9jbXBfYW55KHZhbDEsIHJlc1ZhbCkgPCAwKVxyXG4gICAgICAgICAgICAgICAgdGhpcy52YWxfY3B5KHZhbDEsIHJlc1ZhbCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgLy8gRVhQX09QX01BWFxyXG4gICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICBpZiAoRXhwcmVzc2lvbkV2YWx1YXRvci52YWxfY21wX2FueSh2YWwxLCByZXNWYWwpID4gMClcclxuICAgICAgICAgICAgICAgIHRoaXMudmFsX2NweSh2YWwxLCByZXNWYWwpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9X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GZ1bmN0aW9uIGRvIG5vdCBudWxsaWZ5IHRoZVxyXG4gICAgICAgIC8vIFdob2xlIGV4cHJlc3Npb24sIHRodXMgVU5MRVNTIFNPTUVUSElORyBFTFNFIG51bGxpZmllZCB0aGUgZXhwcmVzc2lvbixcclxuICAgICAgICAvLyB3ZSBtYXJrIGl0IGFzIE5PTi1OVUxMLiBXZSBjaGVjayBpZiBzb21ldGhpbmcgZWxzZSBudWxsaWZpZWQgdGhlIGV4cHJlc3Npb25cclxuICAgICAgICAvLyBieSBzY2FubmluZyB0aGUgdmFsdWVzIGN1cnJlbnRseSBvbiB0aGUgcGFyYW1ldGVycyBzdGFjay5cclxuICAgICAgICBpZiAoZXhwU3RyVHJhY2tlci5pc051bGwoKSkge1xyXG4gICAgICAgICAgbGV0IG15QXJyYXk6IExpc3Q8RXhwVmFsPiA9IG5ldyBMaXN0PEV4cFZhbD4oKTtcclxuICAgICAgICAgIGxldCBwcmV2TnVsbDogYm9vbGVhbiA9IGZhbHNlO1xyXG4gICAgICAgICAgbGV0IGk6IG51bWJlcjtcclxuICAgICAgICAgIHdoaWxlICghKHZhbFN0YWNrLmNvdW50KCkgPT09IDApICYmICFwcmV2TnVsbCkge1xyXG4gICAgICAgICAgICBteUFycmF5LnB1c2goPEV4cFZhbD52YWxTdGFjay5wb3AoKSk7XHJcbiAgICAgICAgICAgIGlmIChteUFycmF5LmdldF9JdGVtKG15QXJyYXkubGVuZ3RoIC0gMSkuSXNOdWxsKVxyXG4gICAgICAgICAgICAgIHByZXZOdWxsID0gdHJ1ZTtcclxuICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICBmb3IgKGkgPSBteUFycmF5Lmxlbmd0aCAtIDE7IGkgPj0gMDsgaS0tKVxyXG4gICAgICAgICAgICB2YWxTdGFjay5wdXNoKG15QXJyYXkuZ2V0X0l0ZW0oaSkpO1xyXG5cclxuICAgICAgICAgIGlmICghcHJldk51bGwpXHJcbiAgICAgICAgICAgIGV4cFN0clRyYWNrZXI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WxsIHx8IE1hc2tPcmcgPT09IG51bGwpIHtcclxuICAgICAgc3VwZXIuU2V0TlVMTChyZXNWYWwsIFN0b3JhZ2VBdHRyaWJ1dGUuQk9PTEVBTik7XHJcbiAgICAgIHJldHVybjtcclxuICAgIH1cclxuICAgIGxldCBTb3VyY2VMZW46IG51bWJlciA9IFNvdXJjZS5sZW5ndGg7XHJcbiAgICBsZXQgTWFza0xlbjogbnVtYmVyID0gTWFza09yZy5sZW5ndGg7XHJcbiAgICBsZXQgTWFzayA9IG5ldyBBcnJheShNYXNrTGVuKTtcclxuICAgIGxldCBidWZmZXIgPSBuZXcgU3RyaW5nQnVpbGRlcihNYXNrTGVuKTtcclxuXHJcbiAgICAvLyBDaGFuZ2UgaW4gdGhlIG1hc2sgJ1xcXFwnIC0+ICdcXCcsICdcXConIC0+ICcqJywgJ1xcPycgLT4gJz8nLFxyXG4gICAgLy8gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnKicgLT4gQVNURVJJU0tfQ0hSLCAnPycgLT4gUVVFU1RJT05fQ0hSXHJcbiAgICBmb3IgKGkgPSAwLCBqID0gMCwgZXNjX2NoID0gZmFsc2U7IGkgPCBNYXNrTGVuOyBpKyspIHtcclxuICAgICAgbGV0IGN1cnJDaHI6IHN0cmluZyA9IE1hc2tPcmdbaV07XHJcbiAgICAgIHN3aXRjaCAoY3VyckNocikge1xyXG4gICAgICAgIGNhc2UgJ1xcXFwnOlxyXG4gICAgICAgICAgaWYgKGVzY19jaClcclxuICAgICAgICAgICAgTWFza1tqKytdID0gY3VyckNocjtcclxuICAgICAgICAgIGVzY19jaCA9ICFlc2NfY2g7XHJcbiAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgY2FzZSAnKic6XHJcbiAgICAgICAgICBpZiAoZXNjX2NoKVxyXG4gICAgICAgICAgICBNYXNrW2orK10gPSBjdXJyQ2hyO1xyXG4gICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIE1hc2tbaisrXSA9I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hc2UgU3RvcmFnZUF0dHJpYnV0ZS5VTklDT0RFOlxyXG4gICAgICAgICAgICByZXMuQXR0ciA9IGNlbGxBdHRyO1xyXG4gICAgICAgICAgICByZXMuU3RyVmFsID0gY2VsbFZhbDtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgY2FzZSBTdG9yYWdlQXR0cmlidXRlLkJMT0I6XHJcbiAgICAgICAgICAgIHJlcy5BdHRyID0gY2VsbEF0dHI7XHJcbiAgICAgICAgICAgIHJlcy5TdHJWYWwgPSBjZWxsVmFsO1xyXG4gICAgICAgICAgICByZXMuSW5jbHVkZUJsb2JQcmVmaXggPSB0cnVlO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuQkxPQl9WRUNUT1I6XHJcbiAgICAgICAgICAgIHJlcy5BdHRyID0gY2VsbEF0dHI7XHJcbiAgICAgICAgICAgIHJlcy5TdHJWYWwgPSBjZWxsVmFsO1xyXG4gICAgICAgICAgICByZXMuSW5jbHVkZUJsb2JQcmVmaXggPSB0cnVlO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuTlVNRVJJQzpcclxuICAgICAgICAgICAgcmVzLkF0dHIgPSBjZWxsQXR0cjtcclxuICAgICAgICAgICAgcmVzLk1nTnVtVmFsID0gbmV3IE5VTV9UWVBFKGNlbGxWYWwpO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuREFURTpcclxuICAgICAgICAgICAgcmVzLkF0dHIgPSBjZWxsQXR0cjtcclxuICAgICAgICAgICAgcmVzLk1nTnVtVmFsID0gbmV3IE5VTV9UWVBFKGNlbGxWYWwpO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2V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N0YW5jZS5nZXRDb25zdE1lc3NhZ2Uoc3RySWQpO1xyXG4gICAgbGV0IHRva2VuczogQXJyYXlfRW51bWVyYXRvcjxzdHJpbmc+ID0gbmV3IEFycmF5X0VudW1lcmF0b3IoU3RyVXRpbC50b2tlbml6ZShjb25zdFN0ciwgJywnKSk7XHJcbiAgICBsZXQgdG9rZW46IHN0cmluZztcclxuICAgIGxldCByZXNWYWw6IHN0cmluZyA9ICdcXDAnO1xyXG4gICAgZm9yIChpID0gMDsgaSA8IGludFN0ci5sZW5ndGggJiYgdG9rZW5zLk1vdmVOZXh0KCk7IGkrKykge1xyXG4gICAgICB0b2tlbiA9IDxzdHJpbmc+dG9rZW5zLkN1cnJlbnQ7XHJcbiAgICAgIGxldCBvZnM6IG51bWJlciA9IHRva2VuLmluZGV4T2YoJyYnKTtcclxuXHJcbiAgICAgIC8vIGlmICcmJyBpcyBmb3VuZCwgbW92ZSB0byBjaGFyYWN0ZXIgbmV4dCB0byAnJidcclxuICAgICAgLy8gZWxzZSBtb3ZlIHRvIGZpcnN0IGNoYXJhY3RlclxyXG4gICAgICBvZnMrKztcclxuICAgICAgbGV0IGN1cnJDb2RlOiBzdHJpbmcgPSB0b2tlbi5jaGFyQXQob2ZzKS50b1VwcGVyQ2FzZSgpO1xyXG4gICAgICBpZiAob3ByID09PSAnSScpIHtcclxuICAgICAgICBpZiAoY29kZSA9PT0gY3VyckNvZGUpIHtcclxuICAgICAgICAgIHJlc1ZhbCA9IGludFN0ci5jaGFyQXQoaSk7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgICAgLy8gb3ByID09ICdPJ1xyXG4gICAgICBlbHNlIHtcclxuICAgICAgICBpZiAoY29kZSA9PT0gaW50U3RyLmNoYXJBdChpKSkge1xyXG4gICAgICAgICAgcmVzVmFsID0gY3VyckNvZGU7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH1ccl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yLnB1c2goRXhwX3BhcmFtc1tpXS5NZ051bVZhbC5OVU1fMl9MT05HKCkpO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuTlVNRVJJQzpcclxuICAgICAgICAgICAgYXR0ci5wdXNoKEV4cF9wYXJhbXNbaV0uTWdOdW1WYWwudG9fZG91YmxlKCkpO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIFN0b3JhZ2VBdHRyaWJ1dGUuQkxPQjpcclxuICAgICAgICAgICAgbGV0IGJsb2IgPSBFeHBfcGFyYW1zW2ldLlN0clZhbDtcclxuICAgICAgICAgICAgaWYoIWlzTnVsbE9yVW5kZWZpbmVkKGJsb2IpKSB7XHJcbiAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgbGV0IGNvbnRlbnRUeXBlOiBzdHJpbmcgPSBCbG9iVHlwZS5nZXRDb250ZW50VHlwZShibG9iKTtcclxuICAgICAgICAgICAgICAgIGlmIChjb250ZW50VHlwZSAhPT0gQmxvYlR5cGUuQ09OVEVOVF9UWVBFX0JJTkFSWSkge1xyXG4gICAgICAgICAgICAgICAgICBhdHRyLnB1c2goQmxvYlR5cGUuZ2V0U3RyaW5nKGJsb2IpKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgIExvZ2dlci5JbnN0YW5jZS5Xcml0ZUVycm9yVG9Mb2coJ0FyZ3VtZW50ICcgKyAoaSArIDEpICsgJyBvZiB0eXBlIEJpbmFyeSBCbG9iIGlzIG5vdCBzdXBwb3J0ZWQgaW4gQ2FsbEpTJyk7XHJcbiAgICAgICAgICAgICAgICAgIHJldHVybiBudWxsO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgIGNhc2UgU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ICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfVkFSOlxyXG4gICAgICAgICAgICAgICAgICB0aGlzLl9wb3NJZHggKz0gKEV4cHJlc3Npb25FdmFsdWF0b3IuUEFSRU5UX0xFTiArIEV4cHJlc3Npb25FdmFsdWF0b3IuTE9OR19PQkpFQ1RfTEVOKTtcclxuICAgICAgICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfUklHSFRfTElURVJBTDpcclxuICAgICAgICAgICAgICAgICAgbGVuID0gdGhpcy5nZXQyQnl0ZU51bWJlcigpO1xyXG4gICAgICAgICAgICAgICAgICB0aGlzLl9wb3NJZHggKz0gbGVuO1xyXG4gICAgICAgICAgICAgICAgICAvLyBTa2lwIGV4dHJhIHVudXNlZCBzdHJpbmcgc3RvcmVkIGFmdGVyIGxpdGVyYWxcclxuICAgICAgICAgICAgICAgICAgbGVuID0gdGhpcy5nZXQyQnl0ZU51bWJlcigpO1xyXG4gICAgICAgICAgICAgICAgICB0aGlzLl9wb3NJZHggKz0gbGVuO1xyXG4gICAgICAgICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICAgICAgLyogY2FzZSBFWFBfT1BfQUNUOlxyXG4gICAgICAgICAgICAgICBwb3NJZHhfICs9MjtcclxuICAgICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgICAgICBjYXNlIEVYUF9PUF9LQkQ6XHJcbiAgICAgICAgICAgICAgIHBvc0lkeF8gKys7XHJcbiAgICAgICAgICAgICAgIGJyZWFrOyAqL1xyXG5cclxuICAgICAgICAgICAgICAvLyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxyXG4gICAgICAgICAgICAgIC8vIEN1cnJlbnQgb3BlcmF0b3IgaXMgYSBmdW5jdGlvbiwgc28gd2UganVzdCBuZWVkIHRvIHVwZGF0ZVxyXG4gICAgICAgICAgICAgIC8vICB0aGUgbnVtYmVyIG9mIGFyZ3VtZW50cyB0byBza2lwXHJcbiAgICAgICAgICAgICAgLy8gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cclxuXHJcbiAgICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgICAgZXhwRGVzYyA9IEV4cHJlc3Npb25EaWN0LmV4cERlc2Nbb3BDb2RlXTtcclxuICAgICAgICAgICAgICAgICAgaWYgKGV4cERlc2MuQXJnQ291bnRfIDwgMClcclxuICAgICAgICAgICAgICAgICAgICAgIGFyZ3NSZW1haW4gKz0gdGhpcy5nZXQxQnl0ZU51bWJlcigpO1xyXG4gICAgICAgICAgICAgICAgICBlbHNlXHJcbiAgICAgICAgICAgICAgICAgICAgICBhcmdzUmVtYWluICs9IGV4cERlc2MuQXJnQ291bnRfO1xyXG4gICAgICAgICAgICAgICAgICBicmVhaztcclxuICAgICAgICAgIH1cclxuICAgICAgfVxyXG4gIH1cclxufVxyXG5cclxuY2xhc3MgRHluYW1pY09wZXJhdGlvbiB7XHJcbiAgYXJnQ291bnRfOiBudW1iZXIgPSAwO1xyXG4gIG9wQ29kZV86IG51bWJlciA9IEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX05PTkU7XHJcbn1cclxuXHJcbiJdfQ==
|
4206
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXhwcmVzc2lvbkV2YWx1YXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VuZ2luZS9zcmMvZXhwL0V4cHJlc3Npb25FdmFsdWF0b3IudHMiXS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cclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfSUY6XHJcbiAgICAgICAgdmFsMSA9IDxFeHBWYWw+dmFsU3RhY2sucG9wKCk7XHJcbiAgICAgICAgaWYgKHZhbDEuQm9vbFZhbCkge1xyXG4gICAgICAgICAgZHluT3BlciA9IG5ldyBEeW5hbWljT3BlcmF0aW9uKCk7XHJcbiAgICAgICAgICBkeW5PcGVyLm9wQ29kZV8gPSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9FVkFMWDtcclxuICAgICAgICAgIGR5bk9wZXIuYXJnQ291bnRfID0gMDtcclxuXHJcbiAgICAgICAgICBhZGRlZE9wZXJzLnB1c2goZHluT3Blcik7XHJcbiAgICAgICAgICBkeW5PcGVyID0gbmV3IER5bmFtaWNPcGVyYXRpb24oKTtcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgZHluT3Blci5vcENvZGVfID0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfSUdOT1JFO1xyXG4gICAgICAgICAgICBkeW5PcGVyLmFyZ0NvdW50XyA9IDE7XHJcbiAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgYWRkZWRPcGVycy5wdXNoKGR5bk9wZXIpO1xyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICBkeW5PcGVyID0gbmV3IER5bmFtaWNPcGVyYXRpb24oKTtcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgZHluT3Blci5vcENvZGVfID0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfSUdOT1JFO1xyXG4gICAgICAgICAgICBkeW5PcGVyLmFyZ0NvdW50XyA9IDE7XHJcbiAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgYWRkZWRPcGVycy5wdXNoKGR5bk9wZXIpO1xyXG4gICAgICAgICAgZHluT3BlciA9IG5ldyBEeW5hbWljT3BlcmF0aW9uKCk7XHJc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wb3AoKTsgLy8gc3RyaW5nXHJcbiAgICAgICAgcmVzVmFsLkF0dHIgPSB2YWwxLkF0dHIgPT09IFN0b3JhZ2VBdHRyaWJ1dGUuQUxQSEFcclxuICAgICAgICAgID8gU3RvcmFnZUF0dHJpYnV0ZS5BTFBIQVxyXG4gICAgICAgICAgOiBTdG9yYWdlQXR0cmlidXRlLlVOSUNPREU7XHJcbiAgICAgICAgaWYgKHZhbDEuU3RyVmFsID09IG51bGwpIHtcclxuICAgICAgICAgIHN1cGVyLlNldE5VTEwocmVzVmFsLCByZXNWYWwuQXR0cik7XHJcbiAgICAgICAgICBicmVhaztcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHN3aXRjaCAob3BDb2RlKSB7XHJcbiAgICAgICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX1RSSU06XHJcbiAgICAgICAgICAgIHZhbDEuU3RyVmFsID0gRXhwcmVzc2lvbkV2YWx1YXRvci50cmltU3RyKHZhbDEuU3RyVmFsLCAnQicpO1xyXG4gICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0xUUklNOlxyXG4gICAgICAgICAgICB2YWwxLlN0clZhbCA9IEV4cHJlc3Npb25FdmFsdWF0b3IudHJpbVN0cih2YWwxLlN0clZhbCwgJ0wnKTtcclxuICAgICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9SVFJJTTpcclxuICAgICAgICAgICAgdmFsMS5TdHJWYWwgPSBFeHByZXNzaW9uRXZhbHVhdG9yLnRyaW1TdHIodmFsMS5TdHJWYWwsICdSJyk7XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXNWYWwuU3RyVmFsID0gdmFsMS5TdHJWYWw7XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG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2YWwyLCByZXNWYWwpO1xyXG4gICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX1ZBUkNPTlRST0xJRDpcclxuICAgICAgICB2YWwxID0gPEV4cFZhbD52YWxTdGFjay5wb3AoKTtcclxuICAgICAgICB0aGlzLmV2YWxfb3BfVmFyQ29udHJvbElEKHJlc1ZhbCwgdmFsMSk7XHJcbiAgICAgICAgZXhwU3RyVHJhY2tlci5yZXNldE51bGxSZXN1bHQoKTtcclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfQ09OVFJPTElURU1TTElTVDpcclxuICAgICAgICB2YWwxID0gPEV4cFZhbD52YWxTdGFjay5wb3AoKTtcclxuICAgICAgICBhd2FpdCB0aGlzLmV2YWxfb3BfQ29udHJvbEl0ZW1zTGlzdChyZXNWYWwsIHZhbDEpO1xyXG4gICAgICAgIGV4cFN0clRyYWNrZXIucmVzZXROdWxsUmVzdWx0KCk7XHJcbiAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICBjYXNlIEV4cHJlc3Npb25JbnRlcmZhY2UuRVhQX09QX0NPTlRST0xESVNQTEFZTElTVDpcclxuICAgICAgICB2YWwxID0gPEV4cFZhbD52YWxTdGFjay5wb3AoKTtcclxuICAgICAgICBhd2FpdCB0aGlzLmV2YWxfb3BfQ29udHJvbERpc3BsYXlMaXN0KHJlc1ZhbCwgdmFsMSk7XHJcbiAgICAgICAgZXhwU3RyVHJhY2tlci5yZXNldE51bGxSZXN1bHQoKTtcclxuICAgICAgICBicmVhaztcclxuXHJcbiAgICAgIGNhc2UgRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfVklFV01PRDpcclxuICAgICAgICB2YWwxID0gPEV4cFZhbD52YWxTdGFjay5wb3AoKTtcclxuICAgICAgICB0aGlzLmV2YWxfb3Bfdmlld21vZChyZXNWYWwsIHZ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nBvcCgpLCByZXNWYWwpO1xyXG4gICAgICAgIHRyeSB7XHJcbiAgICAgICAgICBmb3IgKGogPSAxOyBqIDwgbkFyZ3M7IGorKykge1xyXG4gICAgICAgICAgICB2YWwxID0gPEV4cFZhbD52YWxTdGFjay5wb3AoKTtcclxuICAgICAgICAgICAgaWYgKG9wQ29kZSA9PT0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfTUlOKSB7XHJcbiAgICAgICAgICAgICAgaWYgKEV4cHJlc3Npb25FdmFsdWF0b3IudmFsX2NtcF9hbnkodmFsMSwgcmVzVmFsKSA8IDApXHJcbiAgICAgICAgICAgICAgICB0aGlzLnZhbF9jcHkodmFsMSwgcmVzVmFsKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAvLyBFWFBfT1BfTUFYXHJcbiAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgIGlmIChFeHByZXNzaW9uRXZhbHVhdG9yLnZhbF9jbXBfYW55KHZhbDEsIHJlc1ZhbCkgPiAwKVxyXG4gICAgICAgICAgICAgICAgdGhpcy52YWxfY3B5KHZhbDEsIHJlc1ZhbCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH1cclxuICAgICAgICB9IGNhdGNoIChvbmVPZlZhbHVlc0lzTnVsbCkge1xyXG4gICAgICAgICAgaWYgKG9uZU9mVmFsdWVzSXNOdWxsIGluc3RhbmNlb2YgTnVsbFZhbHVlRXhjZXB0aW9uKSB7XHJcbiAgICAgICAgICAgIGZvciAoOyB2YWxTdGFjay5jb3VudCgpID4gMCAmJiBqIDwgbkFyZ3M7IGorKylcclxuICAgICAgICAgICAgICAvLyBjbGVhbiBxdWV1ZVxyXG4gICAgICAgICAgICAgIHZhbFN0YWNrLnBvcCgpO1xyXG4gICAgICAgICAgICByZXNWYWwuSXNOdWxsID0gdHJ1ZTtcclxuICAgICAgICAgICAgcmVzVmFsLkF0dHIgPSBvbmVPZlZhbHVlc0lzTnVsbC5n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XHJcbiAgICAgICAgICBsZXQgbXlBcnJheTogTGlzdDxFeHBWYWw+ID0gbmV3IExpc3Q8RXhwVmFsPigpO1xyXG4gICAgICAgICAgbGV0IHByZXZOdWxsOiBib29sZWFuID0gZmFsc2U7XHJcbiAgICAgICAgICBsZXQgaTogbnVtYmVyO1xyXG4gICAgICAgICAgd2hpbGUgKCEodmFsU3RhY2suY291bnQoKSA9PT0gMCkgJiYgIXByZXZOdWxsKSB7XHJcbiAgICAgICAgICAgIG15QXJyYXkucHVzaCg8RXhwVmFsPnZhbFN0YWNrLnBvcCgpKTtcclxuICAgICAgICAgICAgaWYgKG15QXJyYXkuZ2V0X0l0ZW0obXlBcnJheS5sZW5ndGggLSAxKS5Jc051bGwpXHJcbiAgICAgICAgICAgICAgcHJldk51bGwgPSB0cnVlO1xyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICAgIGZvciAoaSA9IG15QXJyYXkubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pXHJcbiAgICAgICAgICAgIHZhbFN0YWNrLnB1c2gobXlBcnJheS5nZXRfSXRlbShpKSk7XHJcblxyXG4gICAgICAgICAgaWYgKCFwcmV2TnVsbClcclxuICAgICAgICAgICAgZXhwU3RyVHJhY2tlci5yZXNldE51bGxSZXN1bHQoKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9CT006XHJcbiAgICAgICAgdmFsMSA9IDxFeHBWYWw+dmFsU3RhY2sucG9wKCk7XHJcbiAgICAgICAgdGhpcy5ldmFsX29wX2JvbShyZXNWYWwsIHZhbDEpO1xyXG4gICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgY2FzZSBFeHByZXNzaW9uSW50ZXJmYWNlLkVYUF9PUF9CT1k6XHJcbiAgICAgICAgdmFsMSA9IDxFeHBWYWw+dmFsU3RhY2sucG9wKCk7XHJcbiAgICAgICAgdGh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yAtPiAnPycsXHJcbiAgICAvLyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICcqJyAtPiBBU1RFUklTS19DSFIsICc/JyAtPiBRVUVTVElPTl9DSFJcclxuICAgIGZvciAoaSA9IDAsIGogPSAwLCBlc2NfY2ggPSBmYWxzZTsgaSA8IE1hc2tMZW47IGkrKykge1xyXG4gICAgICBsZXQgY3VyckNocjogc3RyaW5nID0gTWFza09yZ1tpXTtcclxuICAgICAgc3dpdGNoIChjdXJyQ2hyKSB7XHJcbiAgICAgICAgY2FzZSAnXFxcXCc6XHJcbiAgICAgICAgICBpZiAoZXNjX2NoKVxyXG4gICAgICAgICAgICBNYXNrW2orK10gPSBjdXJyQ2hyO1xyXG4gICAgICAgICAgZXNjX2NoID0gIWVzY19jaDtcclxuICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICBjYXNlICcqJzpcclxuICAgICAgICAgIGlmIChlc2NfY2gpXHJcbiAgICAgICAgICAgIE1hc2tbaisrXSA9IGN1cnJDaHI7XHJcbiAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgTWFza1tqKytdID0gRXhwcmVzc2lvbkV2YWx1YXRvci5BU1RFUklTS19DSFI7XHJcbiAgICAgICAgICAgIGFzdGVyaXNrQ250Kys7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgICBlc2NfY2ggPSBmYWxzZTtcclxuICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICBjYXNlICc/JzpcclxuICAgICAgICAgIE1hc2tbaisrXSA9IGVzY19jaCA/IGN1cnJDaHIgOiBFeHByZXNzaW9uRXZhbHVhdG9yLlFVRVNUSU9OX0NIUjtcclxuICAgICAgICAgIGVzY19jaCA9IGZhbHNlO1xyXG4gICAgICAgICAgYnJlYWs7XHJcblxyXG4gICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICBNYXNrW2orK10gPSBjdXJyQ2hyO1xyXG4gICAgICAgICAgZXNjX2NoID0gZmFsc2U7XH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BsZXQgY29udGVudFR5cGU6IHN0cmluZyA9IEJsb2JUeXBlLmdldENvbnRlbnRUeXBlKGJsb2IpO1xyXG4gICAgICAgICAgICAgICAgaWYgKGNvbnRlbnRUeXBlICE9PSBCbG9iVHlwZS5DT05URU5UX1RZUEVfQklOQVJZKSB7XHJcbiAgICAgICAgICAgICAgICAgIGF0dHIucHVzaChCbG9iVHlwZS5nZXRTdHJpbmcoYmxvYikpO1xyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgTG9nZ2VyLkluc3RhbmNlLldyaXRlRXJyb3JUb0xvZygnQXJndW1lbnQgJyArIChpICsgMSkgKyAnIG9mIHR5cGUgQmluYXJ5IEJsb2IgaXMgbm90IHN1cHBvcnRlZCBpbiBDYWxsSlMnKTtcclxuICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGw7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgY2FzZSBTdG9yYWdlQXR0cmlidXRlLk5PTkU6XHJcbiAgICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgICBMb2dnZXIuSW5zdGFuY2UuV3JpdGVFcnJvclRvTG9nKCcgQXJndW1lbnQgJysgKGkgKyAxKSsgJyBpcyBub3Qgc3VwcG9ydGVkIGluIENhbGxKUycgKTtcclxuICAgICAgICAgICAgcmV0dXJuIG51bGw7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgICByZXR1cm4gYXR0cjtcclxuICB9XHJcblxyXG59XHJcblxyXG4vLy8gPHN1bW1hcnk+XHJcbi8vLyAgIFRoaXMgZXhjZXB0aW9uIHVzZWQgd2hlbiBhdCBsZWFzdCBvbmUgb2YgdGhlIG9wZXJhbmRzIGlzIG51bGxcclxuLy8vIDwvc3VtbWFyeT5cclxuZXhwb3J0IGNsYXNzIE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XIgbGl0ZXJhbFxyXG4gICAgICAgICAgICAgICAgICBsZW4gPSB0aGlzLmdldDJCeXRlTnVtYmVyKCk7XHJcbiAgICAgICAgICAgICAgICAgIHRoaXMuX3Bvc0lkeCArPSBsZW47XHJcbiAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG5cclxuICAgICAgICAgICAgICAvKiBjYXNlIEVYUF9PUF9BQ1Q6XHJcbiAgICAgICAgICAgICAgIHBvc0lkeF8gKz0yO1xyXG4gICAgICAgICAgICAgICBicmVhaztcclxuXHJcbiAgICAgICAgICAgICAgIGNhc2UgRVhQX09QX0tCRDpcclxuICAgICAgICAgICAgICAgcG9zSWR4XyArKztcclxuICAgICAgICAgICAgICAgYnJlYWs7ICovXHJcblxyXG4gICAgICAgICAgICAgIC8vIC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXHJcbiAgICAgICAgICAgICAgLy8gQ3VycmVudCBvcGVyYXRvciBpcyBhIGZ1bmN0aW9uLCBzbyB3ZSBqdXN0IG5lZWQgdG8gdXBkYXRlXHJcbiAgICAgICAgICAgICAgLy8gIHRoZSBudW1iZXIgb2YgYXJndW1lbnRzIHRvIHNraXBcclxuICAgICAgICAgICAgICAvLyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLVxyXG5cclxuICAgICAgICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgICAgICAgICBleHBEZXNjID0gRXhwcmVzc2lvbkRpY3QuZXhwRGVzY1tvcENvZGVdO1xyXG4gICAgICAgICAgICAgICAgICBpZiAoZXhwRGVzYy5BcmdDb3VudF8gPCAwKVxyXG4gICAgICAgICAgICAgICAgICAgICAgYXJnc1JlbWFpbiArPSB0aGlzLmdldDFCeXRlTnVtYmVyKCk7XHJcbiAgICAgICAgICAgICAgICAgIGVsc2VcclxuICAgICAgICAgICAgICAgICAgICAgIGFyZ3NSZW1haW4gKz0gZXhwRGVzYy5BcmdDb3VudF87XHJcbiAgICAgICAgICAgICAgICAgIGJyZWFrO1xyXG4gICAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgfVxyXG59XHJcblxyXG5jbGFzcyBEeW5hbWljT3BlcmF0aW9uIHtcclxuICBhcmdDb3VudF86IG51bWJlciA9IDA7XHJcbiAgb3BDb2RlXzogbnVtYmVyID0gRXhwcmVzc2lvbkludGVyZmFjZS5FWFBfT1BfTk9ORTtcclxufVxyXG5cclxuIl19
|