test262/website/resources/scripts/testcases/15.2.3.7.json

1 line
1.2 MiB

{"testsCollection":{"name":"Chapter - 15.2.3.7","numTests":"619","tests":[{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNy0wLTEiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctMC0xLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgbXVzdCBleGlzdCBhcyBhIGZ1bmN0aW9uIiwKCnRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogIHZhciBmID0gT2JqZWN0LmRlZmluZVByb3BlcnRpZXM7CiAgaWYgKHR5cGVvZihmKSA9PT0gImZ1bmN0aW9uIikgewogICAgcmV0dXJuIHRydWU7CiAgfQogfQp9KTsK","id":"15.2.3.7-0-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-0-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNy0wLTIiLAoKcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctMC0yLmpzIiwKCmRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgbXVzdCBleGlzdCBhcyBhIGZ1bmN0aW9uIHRha2luZyAyIHBhcmFtZXRlcnMiLAoKdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgaWYgKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzLmxlbmd0aCA9PT0gMikgewogICAgcmV0dXJuIHRydWU7CiAgfQogfSwKCnByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiB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C5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIGlmICdPJyBpcyBhIHN0cmluZyIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKCJhYmMiLCB7fSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcik7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-1-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-1-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoIHsKaWQ6ICIxNS4yLjMuNy0xIiwKCnBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTEuanMiLAoKZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIGlmIHR5cGUgb2YgZmlyc3QgcGFyYW0gaXMgbm90IE9iamVjdCIsCgp0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgIHRyeSB7CiAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKDAsIHt9KTsKICAgIH0KICAgIGNhdGNoIChlKSB7CiAgICAgIGlmIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSB7CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgIH0KICAgIH0KIH0sCg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ICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvcHMgPSBbXTsKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3BzLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXN1bHQgPSB0aGlzIGluc3RhbmNlb2YgQXJyYXk7CiAgICAgICAgICAgICAgICByZXR1cm4ge307CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBwcm9wcyk7CiAgICAgICAgcmV0dXJuIHJlc3VsdDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsKCg==","id":"15.2.3.7-2-10","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-10.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGN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CiAgICAgICAKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoTWF0aCwgInByb3AiLCB7CiAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXN1bHQgPSAodGhpcyA9PT0gTWF0aCk7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHt9OwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIE1hdGgpOwogICAgICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBNYXRoLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-2-11","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-11.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2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0gbmV3IERhdGUoKTsKICAgICAgICB2YXIgcmVzdWx0ID0gZmFsc2U7CiAgICAgICAgCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3BzLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXN1bHQgPSB0aGlzIGluc3RhbmNlb2YgRGF0ZTsKICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHByb3BzKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-2-12","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-12.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zI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cnR5KHByb3BzLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXN1bHQgPSB0aGlzIGluc3RhbmNlb2YgUmVnRXhwOwogICAgICAgICAgICAgICAgcmV0dXJuIHt9OwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgcHJvcHMpOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-2-13","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-13.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluY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AgICAgICAgICAgICAgICByZXR1cm4ge307CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgSlNPTik7CiAgICAgICAgICAgIHJldHVybiByZXN1bHQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEpTT04ucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-2-14","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-14.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbn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cHJvcHMubmFtZSA9IG9iajE7CgogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKICAgICAgIAogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm9wcywgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmVzdWx0ID0gdGhpcyBpbnN0YW5jZW9mIEVycm9yOwogICAgICAgICAgICAgICAgcmV0dXJuIHt9OwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgcHJvcHMpOwogICAgICAgIHJldHVybiByZXN1bHQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-2-15","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-15.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25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3VtZW50czsKICAgICAgICB9OyAgICAgICAgCiAgICAgICAgdmFyIHByb3BzID0gbmV3IEZ1bigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvcHMsICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJlc3VsdCA9ICgnW29iamVjdCBBcmd1bWVudHNdJyA9PT0gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKHRoaXMpKTsKICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHByb3BzKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-2-16","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-16.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib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IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGZuR2xvYmFsT2JqZWN0KCksICJwcm9wIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmVzdWx0ID0gKHRoaXMgPT09IGZuR2xvYmFsT2JqZWN0KCkpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAoJCQkJY29uZmlndXJhYmxlOnRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIGZuR2xvYmFsT2JqZWN0KCkpOwogICAgICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgZm5HbG9iYWxPYmplY3QoKS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-2-18","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-18.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaX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ICIxNS4yLjMuNy0yLTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTItNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGFyZ3VtZW50ICdQcm9wZXJ0aWVzJyBpcyBhIEJvb2xlYW4gb2JqZWN0IHdob3NlIHByaW1pdGl2ZSB2YWx1ZSBpcyB0cnVlIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBwcm9wcyA9IG5ldyBCb29sZWFuKHRydWUpOwogICAgICAgIHZhciByZXN1bHQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3BzLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXN1bHQgPSB0aGlzIGluc3RhbmNlb2YgQm9vbGVhbjsKICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHByb3BzKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-2-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-4.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSB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3AiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmVzdWx0ID0gdGhpcyBpbnN0YW5jZW9mIE51bWJlcjsKICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHByb3BzKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-2-6","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-6.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXBy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YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy0yLTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTItOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGFyZ3VtZW50ICdQcm9wZXJ0aWVzJyBpcyBhIEZ1bmN0aW9uIG9iamVjdCIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvcHMgPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgdmFyIHJlc3VsdCA9IGZhbHNlOwogICAgICAKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvcHMsICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJlc3VsdCA9IHRoaXMgaW5zdGFuY2VvZiBGdW5jdGlvbjsKICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHByb3BzKTsKICAgICAgICByZXR1cm4gcmVzdWx0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-2-9","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-2-9.js"},{"code":"77u/Ly8vI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hdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTMtMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGVudW1lcmFibGUgb3duIGRhdGEgcHJvcGVydHkgb2YgJ1Byb3BlcnRpZXMnIGlzIGRlZmluZWQgaW4gJ08nICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsgICAgICAKICAgICAgICB2YXIgcHJvcHMgPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvcHMsICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZToge30sCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBwcm9wcyk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-3-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-3-1.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZv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ZToge30sCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIGNoaWxkKTsKCiAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-3-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-3-3.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZ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JXSVNFKSBBUklTSU5HIElOIEFOWSBXQVkgT1VUIE9GIFRIRSBVU0UgT0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRgovLy8gQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy0zLTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTMtNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIG5vIGFkZGl0aW9uYWwgcHJvcGVydHkgaXMgZGVmaW5lZCBpbiAnTycgd2hlbiAnUHJvcGVydGllcycgZG9lc24ndCBjb250YWluIGVudW1lcmFibGUgb3duIHByb3BlcnR5ICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3BzID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm9wcywgInByb3AxIiwgewogICAgICAgICAgICB2YWx1ZToge30sCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm9wcywgInByb3AyIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBwcm9wcyk7CgogICAgICAgIHJldHVybiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wMSIpICYmICFvYmouaGFzT3duUHJvcGVydHk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AoSU5DTFVESU5HIE5FR0xJR0VOQ0UgT1IgT1RIRVJXSVNFKSBBUklTSU5HIElOIEFOWSBXQVkgT1VUIE9GIFRIRSBVU0UgT0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRgovLy8gQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy0zLTgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTMtOC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIG5vIGFkZGl0aW9uYWwgcHJvcGVydHkgaXMgZGVmaW5lZCBpbiAnTycgd2hlbiAnUHJvcGVydGllcycgZG9lc24ndCBjb250YWluIGVudW1lcmFibGUgb3duIHByb3BlcnR5ICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3BzID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm9wcywgInByb3AxIiwgewogICAgICAgICAgICB2YWx1ZToge30sCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm9wcywgInByb3AyIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiB7fTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHByb3BzKTsKCiAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcG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pbGQsICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogewogICAgICAgICAgICAgICAgdmFsdWU6IDEyCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBjaGlsZCk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBvYmoucHJvcCA9PT0gMTI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-a-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-a-1.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhl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U0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWEtMTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYS0xNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQcm9wZXJ0aWVzJyBpcyBhIFJlZ0V4cCBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGdldCBlbnVtZXJhYmxlIG93biBwcm9wZXJ0eSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvcHMgPSBuZXcgUmVnRXhwKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm9wcywgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTQKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgcHJvcHMpOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgb2JqLnByb3AgPT09IDE0OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-a-14","path":"TestCases/chapter15/15.2/15.2.3/15.2.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aWQ6ICIxNS4yLjMuNy01LWEtMTUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYS0xNS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQcm9wZXJ0aWVzJyBpcyB0aGUgSlNPTiBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGdldCBlbnVtZXJhYmxlIG93biBwcm9wZXJ0eSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBKU09OLnByb3AgPSB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTUKICAgICAgICAgICAgfTsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBKU09OKTsKCiAgICAgICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBvYmoucHJvcCA9PT0gMTU7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEpTT04ucHJvcDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-a-15","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-a-15.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c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gogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQcm9wZXJ0aWVzJyBpcyBhbiBFcnJvciBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGdldCBlbnVtZXJhYmxlIG93biBwcm9wZXJ0eSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvcHMgPSBuZXcgRXJyb3IoInRlc3QiKTsKICAgICAgICB2YXIgb2JqMSA9IHsKICAgICAgICAgICAgdmFsdWU6IDExCiAgICAgICAgfTsKICAgICAgICBwcm9wcy5tZXNzYWdlID0gb2JqMTsKICAgICAgICBwcm9wcy5uYW1lID0gb2JqMTsKICAgICAgICBwcm9wcy5kZXNjcmlwdGlvbiA9IG9iajE7CgogICAgICAgIHByb3BzLnByb3AgPSB7CiAgICAgICAgICAgIHZhbHVlOiAxNgogICAgICAgIH07CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBwcm9wcyk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBvYmoucHJvcCA9PT0gMTY7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-a-16","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-a-16.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91d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9wZXJ0aWVzJyBpcyB0aGUgQXJndW1lbnRzIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0IGVudW1lcmFibGUgb3duIHByb3BlcnR5IiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhcmc7CgogICAgICAgIChmdW5jdGlvbiBmdW4oKSB7CiAgICAgICAgICAgIGFyZyA9IGFyZ3VtZW50czsKICAgICAgICB9KCkpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJnLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxNwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgYXJnKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIG9iai5wcm9wID09PSAxNzsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-a-17","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-a-17.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBt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Mgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgZW51bWVyYWJsZSBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgb2YgJ1Byb3BlcnRpZXMnIGlzIGRlZmluZWQgaW4gJ08nICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiA5CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGNoaWxkLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMgogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBjaGlsZCk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBvYmoucHJvcCA9PT0gMTI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMo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gICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEyCiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBjaGlsZCk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBvYmoucHJvcCA9PT0gMTI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-a-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-a-4.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaX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pcyBkZWZpbmVkIGluICdPJyAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBwcm9wcyA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm9wcywgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHByb3BzKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIHR5cGVvZiBvYmoucHJvcCA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-a-5","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-a-5.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZ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XJyaWRlcyBlbnVtZXJhYmxlIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSBvZiAnUHJvcGVydGllcycgaXMgZGVmaW5lZCBpbiAnTycgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gMTI7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiB7CiAgICAgICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIGNoaWxkKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIHR5cGVvZiBvYmoucHJvcCA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJv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CgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWEtOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNS1hLTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUHJvcGVydGllcycgaXMgYW4gQXJyYXkgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgZW51bWVyYWJsZSBvd24gcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHByb3BzID0gW107CiAgICAgICAgdmFyIGRlc2NPYmogPSB7CiAgICAgICAgICAgIHZhbHVlOiA4CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3BzLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IGRlc2NPYmosCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHByb3BzKTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIG9iai5wcm9wID09PSA4OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-a-8","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-a-8.js"},{"code":"77u/Ly8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gcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNS1hLTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUHJvcGVydGllcycgaXMgYSBTdHJpbmcgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgZW51bWVyYWJsZSBvd24gcHJvcGVydHkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHByb3BzID0gbmV3IFN0cmluZygpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvcHMsICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogewogICAgICAgICAgICAgICAgdmFsdWU6IDkKICAgICAgICAgICAgfSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgcHJvcHMpOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgb2JqLnByb3AgPT09IDk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-a-9","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-a-9.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1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GRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnZGVzY09iaicgaXMgdW5kZWZpbmVkICg4LjEwLjUgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wOiB1bmRlZmluZWQKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmICFvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-1.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBv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gdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBwcm90byA9IHsKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH07CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzY09iaiwgImVudW1lcmFibGUiLCB7CiAgICAgICAgICAgIHZhbHVlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-10","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTAwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTAwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVj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J2Rlc2NPYmonIGlzIE51bWJlciBvYmplY3QgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IG5ldyBOdW1iZXIoLTEyMykKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHZhciBwcmVDaGVjayA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICByZXR1cm4gcHJlQ2hlY2sgJiYgIW9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-101","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-101.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTAyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTAyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHRoZSBNYXRoIG9iamVjdCAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogTWF0aAogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-102","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-102.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTAzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTAzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIERhdGUgb2JqZWN0ICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBuZXcgRGF0ZSgpCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICB2YXIgcHJlQ2hlY2sgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgcmV0dXJuIHByZUNoZWNrICYmICFvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-103","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-103.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTA0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTA0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIFJlZ0V4cCBvYmplY3QgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IG5ldyBSZWdFeHAoKQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-104","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-104.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTA1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTA1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHRoZSBKU09OIG9iamVjdCAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogSlNPTgogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-105","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-105.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTA2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTA2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIEVycm9yIG9iamVjdCAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogbmV3IFN5bnRheEVycm9yKCkKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHZhciBwcmVDaGVjayA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICByZXR1cm4gcHJlQ2hlY2sgJiYgIW9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-106","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-106.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTA3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTA3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHRoZSBBcmd1bWVudCBvYmplY3QgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGZ1bmMgPSBmdW5jdGlvbiAoYSwgYiwgYykgewogICAgICAgICAgICByZXR1cm4gYXJndW1lbnRzOwogICAgICAgIH07CgogICAgICAgIHZhciBhcmdzID0gZnVuYygxLCB0cnVlLCAiYSIpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogYXJncwogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-107","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-107.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTA5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTA5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzICB0aGUgZ2xvYmFsIG9iamVjdCAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZm5HbG9iYWxPYmplY3QoKQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgdmFyIHByZUNoZWNrID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHJldHVybiBwcmVDaGVjayAmJiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKIC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gICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gIWFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-11","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-11.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTEwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTEwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGEgc3RyaW5nICh2YWx1ZSBpcyAnZmFsc2UnKSB3aGljaCBpcyB0cmVhdGVkIGFzIHRydWUgdmFsdWUgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6ICJmYWxzZSIKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHZhciBwcmVDaGVjayA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICByZXR1cm4gcHJlQ2hlY2sgJiYgIW9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-110","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-110.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTExIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTExLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2NvbmZpZ3VyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzICBuZXcgQm9vbGVhbihmYWxzZSkgd2hpY2ggaXMgdHJlYXRlZCBhcyB0cnVlIHZhbHVlICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBuZXcgQm9vbGVhbihmYWxzZSkKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHZhciBwcmVDaGVjayA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICByZXR1cm4gcHJlQ2hlY2sgJiYgIW9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-111","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-111.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTEyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTEyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3ZhbHVlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgcHJlc2VudCAoOC4xMC41IHN0ZXAgNSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMzAwCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gMzAwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-112","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-112.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTEzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTEzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3ZhbHVlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgbm90IHByZXNlbnQgKDguMTAuNSBzdGVwIDUpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-113","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-113.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTE0IiwKCiAgICBwYXR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gKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0gewogICAgICAgICAgICB2YWx1ZTogImluaGVyaXRlZERhdGFQcm9wZXJ0eSIKICAgICAgICB9OwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiaW5oZXJpdGVkRGF0YVByb3BlcnR5IjsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-115","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-115.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTE2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTE2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3ZhbHVlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0gewogICAgICAgICAgICB2YWx1ZTogImluaGVyaXRlZERhdGFQcm9wZXJ0eSIKICAgICAgICB9OwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CgogICAgICAgIGRlc2NPYmoudmFsdWUgPSAib3duRGF0YVByb3BlcnR5IjsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJvd25EYXRhUHJvcGVydHkiOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-116","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-116.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTE3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTE3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3ZhbHVlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA1LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJ2YWx1ZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gImluaGVyaXRlZEFjY2Vzc29yUHJvcGVydHkiOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJ2YWx1ZSIsIHsKICAgICAgICAgICAgdmFsdWU6ICJvd25EYXRhUHJvcGVydHkiCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAib3duRGF0YVByb3BlcnR5IjsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-117","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-117.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTE4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTE4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3ZhbHVlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA1LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjT2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAidmFsdWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJvd25BY2Nlc3NvclByb3BlcnR5IjsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIm93bkFjY2Vzc29yUHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-118","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-118.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjM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BEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi0xMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciBkZXNjT2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAiZW51bWVyYWJsZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-12","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTIwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTIwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3ZhbHVlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA1LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307IAoKICAgICAgICB2YXIgcHJvdG8gPSB7CiAgICAgICAgICAgIHZhbHVlOiAiaW5oZXJpdGVkRGF0YVByb3BlcnR5IgogICAgICAgIH07CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJ2YWx1ZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gIm93bkFjY2Vzc29yUHJvcGVydHkiOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgIC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KICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAidmFsdWUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJvd25BY2Nlc3NvclByb3BlcnR5IjsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIm93bkFjY2Vzc29yUHJvcGVydHkiOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-121","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-121.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTIyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTIyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3ZhbHVlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2NPYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJ2YWx1ZSIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-122","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-122.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTIzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTIzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3ZhbHVlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA1LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJ2YWx1ZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gImluaGVyaXRlZEFjY2Vzc29yUHJvcGVydHkiOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJ2YWx1ZSIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-123","path":"TestCases/chapter15/15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aW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-124","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-124.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTI1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTI1LmpzIiwKCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdkZXNjT2JqJyBpcyBhIEZ1bmN0aW9uIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICd2YWx1ZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGZ1bmMgPSBmdW5jdGlvbiAoYSwgYikgewogICAgICAgICAgICByZXR1cm4gYSArIGI7CiAgICAgICAgfTsKCiAgICAgICAgZnVuYy52YWx1ZSA9ICJGdW5jdGlvbiI7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZnVuYwogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiRnVuY3Rpb24iOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-125","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-125.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTI2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTI2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGFuIEFycmF5IG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICd2YWx1ZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGFyciA9IFsxLCAyLCAzXTsKCiAgICAgICAgYXJyLnZhbHVlID0gIkFycmF5IjsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiBhcnIKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIkFycmF5IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-126","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-126.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTI3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS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4LjEwLjUgc3RlcCA1LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IEJvb2xlYW4oZmFsc2UpOwoKICAgICAgICBkZXNjT2JqLnZhbHVlID0gIkJvb2xlYW4iOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIkJvb2xlYW4iOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-128","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-128.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluY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3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-13","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-13.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIG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ICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiTWF0aCI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE1hdGgudmFsdWU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-130","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-130.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaXNjbGFpbWVyIGluIHRoZSBkb2N1bWVudGF0aW9uIGFuZC9vciBvdGhlciBtYXRlcmlhbHMgcHJvdm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pzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIHRoZSBKU09OIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICd2YWx1ZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgSlNPTi52YWx1ZSA9ICJKU09OIjsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcGVydHk6IEpTT04KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiSlNPTiI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEpTT04udmFsdWU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-133","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-133.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6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YWx1ZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDUuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgRXJyb3IoKTsKCiAgICAgICAgZGVzY09iai52YWx1ZSA9ICJFcnJvciI7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiRXJyb3IiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-134","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-134.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTM1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTM1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIHRoZSBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgJ3ZhbHVlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZnVuYyA9IGZ1bmN0aW9uIChh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JhbE9iamVjdCgpCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImdsb2JhbCI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIGZuR2xvYmFsT2JqZWN0KCkudmFsdWU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-137","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-137.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTM4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTM4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgcHJlc2VudCAoOC4xMC41IHN0ZXAgNikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-138","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-138.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTM5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTM5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgbm90IHByZXNlbnQgKDguMTAuNSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgdmFsdWU6ICJhYmMiCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiYWJjIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-139","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-139.js"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LWItMTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi0xNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciBwcm90byA9IHsKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgIH07CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzY09iaiwgImVudW1lcmFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CiAgICAgICAgZm9yICh2YXIgcHJvcGVydHkgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wZXJ0eSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-14","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-14.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTQwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTQwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGRhdGEgcHJvcGVydHkgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-140","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-140.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTQxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTQxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0gewogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICB9OwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-141","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-141.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTQyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTQyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0gewogICAgICAgICAgICB3cml0YWJsZTogdHJ1ZQogICAgICAgIH07CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgZGVzY09iai53cml0YWJsZSA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-142","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-142.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTQzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTQzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBwcm90byA9IHsgdmFsdWU6IDEyMCB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJ3cml0YWJsZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAid3JpdGFibGUiLCB7CiAgICAgICAgICAgIHZhbHVlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIG9iai5wcm9wZXJ0eSA9PT0gMTIwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-143","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-143.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTQ0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTQ0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjT2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAid3JpdGFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-144","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-144.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTQ1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTQ1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJ3cml0YWJsZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgb2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-145","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-145.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTQ2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTQ2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBwcm90byA9IHsKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICB9OwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAid3JpdGFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-146","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-146.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTQ3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTQ3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNi5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAid3JpdGFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzY09iaiwgIndyaXRhYmxlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-147","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-147.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTQ4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTQ4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2NPYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJ3cml0YWJsZSIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0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5lUHJvcGVydHkocHJvdG8sICJ3cml0YWJsZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAid3JpdGFibGUiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-149","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-149.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0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dlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJlbnVtZXJhYmxlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzY09iaiwgImVudW1lcmFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CiAgICAgICAgZm9yICh2YXIgcHJvcGVydHkgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wZXJ0eSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-15","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-15.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTUwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTUwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgIndyaXRhYmxlIiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-150","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-150.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTUxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTUxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGEgRnVuY3Rpb24gb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgJ3dyaXRhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNi5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZnVuYyA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgIHJldHVybiBhICsgYjsKICAgICAgICB9OwoKICAgICAgICBmdW5jLndyaXRhYmxlID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZnVuYwogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-151","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-151.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTUyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTUyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGFuIEFycmF5IG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICd3cml0YWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGFyciA9IFsxLCAyLCAzXTsKCiAgICAgICAgYXJyLndyaXRhYmxlID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogYXJyCiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiB0eXBlb2YgKG9iai5wcm9wZXJ0eSkgPT09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-152","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-152.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTUzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTUzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGEgU3RyaW5nIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICd3cml0YWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHN0ciA9IG5ldyBTdHJpbmcoImFiYyIpOwoKICAgICAgICBzdHIud3JpdGFibGUgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiBzdHIKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093bl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1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTU2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTU2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIHRoZSBNYXRoIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICd3cml0YWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE1hdGgud3JpdGFibGUgPSBmYWxzZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcGVydHk6IE1hdGgKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE1hdGgud3JpdGFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-156","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/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6ICIxNS4yLjMuNy01LWItMTU3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTU3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGEgRGF0ZSBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGdldCAnd3JpdGFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA2LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IERhdGUoKTsKCiAgICAgICAgZGVzY09iai53cml0YWJsZSA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-157","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-157.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIG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dCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICd3cml0YWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEpTT04ud3JpdGFibGUgPSBmYWxzZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcGVydHk6IEpTT04KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEpTT04ud3JpdGFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-159","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-159.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb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QgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDMuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdmFyIGRlc2NPYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJlbnVtZXJhYmxlIiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-16","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-16.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQg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Gl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICd3cml0YWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDYuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgRXJyb3IoKTsKCiAgICAgICAgZGVzY09iai53cml0YWJsZSA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-160","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-160.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTYxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTYxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIHRoZSBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgJ3dyaXRhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNi5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZnVuYyA9IGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICAgIGFyZ3VtZW50cy53cml0YWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wZXJ0eTogYXJndW1lbnRzCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiB0eXBlb2YgKG9iai5wcm9wZXJ0eSkgPT09ICJ1bmRlZmluZWQiOwogICAgICAgIH07CgogICAgICAgIHJldHVybiBmdW5jKCk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-161","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-161.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2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N0ZXAgNi5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgZm5HbG9iYWxPYmplY3QoKS53cml0YWJsZSA9IGZhbHNlOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wZXJ0eTogZm5HbG9iYWxPYmplY3QoKQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgZm5HbG9iYWxPYmplY3QoKS53cml0YWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-163","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-163.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTY0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTY0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgdW5kZWZpbmVkICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IHVuZGVmaW5lZAogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiB0eXBlb2YgKG9iai5wcm9wZXJ0eSkgPT09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-164","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-164.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTY1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTY1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgbnVsbCAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBudWxsCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-165","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-165.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTY2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTY2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgdHJ1ZSAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-166","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-166.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTY3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTY3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgZmFsc2UgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-167","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-167.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTY4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTY4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgMCAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiAwCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-168","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-168.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTY5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTY5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgKzAgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB3cml0YWJsZTogKzAKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-169","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-169.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQ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wcm9wZXJ0eSB3aXRob3V0IGEgZ2V0IGZ1bmN0aW9uIHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJlbnVtZXJhYmxlIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJlbnVtZXJhYmxlIiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-17","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-17.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTcwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTcwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgLTAgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB3cml0YWJsZTogLTAKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgdHlwZW9mIChvYmoucHJvcGVydHkpID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-170","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-170.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTcxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTcxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgTmFOICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IE5hTgogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiB0eXBlb2YgKG9iai5wcm9wZXJ0eSkgPT09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-171","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-171.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTcyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTcy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mdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IC0xMjMKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-173","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-173.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTc0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTc0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgZW1wdHkgc3RyaW5nICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6ICIiCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-174","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-174.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTc1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTc1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgbm9uLWVtcHR5IHN0cmluZyAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiAiYWJjIgogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-175","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-175.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTc2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTc2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgRnVuY3Rpb24gb2JqZWN0ICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-176","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-176.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTc3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTc3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgQXJyYXkgb2JqZWN0ICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IFtdCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-177","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-177.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTc4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTc4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk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jYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB3cml0YWJsZTogbmV3IEJvb2xlYW4odHJ1ZSkKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-179","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-179.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3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yB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-18","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-18.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTgwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTgwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgTnVtYmVyIG9iamVjdCAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBuZXcgTnVtYmVyKDEyMykKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-180","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-180.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTgxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTgxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgdGhlIE1hdGggb2JqZWN0ICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IE1hdGgKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-181","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-181.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTgyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTgyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgIERhdGUgb2JqZWN0ICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IG5ldyBEYXRlKCkKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-182","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-182.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTgzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTgzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgUmVnRXhwIG9iamVjdCAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBuZXcgUmVnRXhwKCkKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcGVydHkgPSAiaXNXcml0YWJsZSI7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJpc1dyaXRhYmxlIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-183","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-183.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTg0IiwK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wcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgRXJyb3Igb2JqZWN0ICg4LjEwLjUgc3RlcCA2LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IG5ldyBTeW50YXhFcnJvcigpCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-185","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-185.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTg2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTg2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgdGhlIEFyZ3VtZW50IG9iamVjdCAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZnVuYyA9IGZ1bmN0aW9uIChhLCBiLCBjKSB7CiAgICAgICAgICAgIHJldHVybiBhcmd1bWVudHM7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB3cml0YWJsZTogZnVuYygxLCB0cnVlLCAiYSIpCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-186","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-186.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTg4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTg4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgdGhlIGdsb2JhbCBvYmplY3QgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB3cml0YWJsZTogZm5HbG9iYWxPYmplY3QoKQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wZXJ0eSA9ICJpc1dyaXRhYmxlIjsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImlzV3JpdGFibGUiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-188","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-188.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTg5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTg5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgYSBzdHJpbmcgKHZhbHVlIGlzICdmYWxzZScpIHdoaWNoIGlzIHRyZWF0ZWQgYXMgdHJ1ZSB2YWx1ZSAoOC4xMC41IHN0ZXAgNi5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiAiZmFsc2UiCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR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WQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-19","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-19.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTkwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTkwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3dyaXRhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgIG5ldyBCb29sZWFuKGZhbHNlKSB3aGljaCBpcyB0cmVhdGVkIGFzIHRydWUgdmFsdWUgKDguMTAuNSBzdGVwIDYuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICB3cml0YWJsZTogbmV3IEJvb2xlYW4oZmFsc2UpCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3BlcnR5ID0gImlzV3JpdGFibGUiOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiaXNXcml0YWJsZSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-190","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-190.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTkxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTkxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHByZXNlbnQgKDguMTAuNSBzdGVwIDcpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXR0ZXIgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAicHJlc2VudCI7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldHRlcgogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJwcmVzZW50IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-191","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-191.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTkyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2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onIGlzIG93biBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXR0ZXIgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAib3duRGF0YVByb3BlcnR5IjsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0dGVyCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIm93bkRhdGFQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-193","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-193.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTk0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTk0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXR0ZXIgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAiaW5oZXJpdGVkRGF0YVByb3BlcnR5IjsKICAgICAgICB9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7CiAgICAgICAgICAgIGdldDogZ2V0dGVyCiAgICAgICAgfTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImluaGVyaXRlZERhdGFQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-194","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-194.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTk1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTk1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBkYXRhIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBnZXR0ZXIgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAiaW5oZXJpdGVkRGF0YVByb3BlcnR5IjsKICAgICAgICB9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7CiAgICAgICAgICAgIGdldDogZ2V0dGVyCiAgICAgICAgfTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBkZXNjT2JqLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuICJvd25EYXRhUHJvcGVydHkiOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAib3duRGF0YVByb3BlcnR5IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-195","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-195.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTk2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTk2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBkYXRhIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiZ2V0IiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICJpbmhlcml0ZWRBY2Nlc3NvclByb3BlcnR5IjsKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzY09iaiwgImdldCIsIHsKICAgICAgICAgICAgdmFsdWU6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAib3duRGF0YVByb3BlcnR5IjsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIm93bkRhdGFQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-196","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-196.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTk3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTk3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZGVzY09iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzY09iaiwgImdldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-197","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-197.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTk4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTk4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiZ2V0IiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICJpbmhlcml0ZWRBY2Nlc3NvclByb3BlcnR5IjsKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImluaGVyaXRlZEFjY2Vzc29yUHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-198","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-198.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMTk5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMTk5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgcHJvdG8gPSB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJpbmhlcml0ZWREYXRhUHJvcGVydHkiOwogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzY09iaiwgImdldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAib3duQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-199","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-199.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8g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gICAgIAogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcDogbnVsbAogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgIW9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOyA7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-2.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdod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ICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-20","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-20.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjAwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjAwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHByb3RvID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgImdldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAiaW5oZXJpdGVkQWNjZXNzb3JQcm9wZXJ0eSI7CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJnZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gIm93bkFjY2Vzc29yUHJvcGVydHkiOwogICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIm93bkFjY2Vzc29yUHJvcGVydHkiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-200","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-200.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjAxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjAxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRob3V0IGEgZ2V0IGZ1bmN0aW9uICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjT2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAiZ2V0IiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIHR5cGVvZiAob2JqLnByb3BlcnR5KSA9PT0gInVuZGVmaW5lZCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-201","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-201.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjAyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjAyLmpzIiwKCiAgICBkZXNjcmlwdGlvbj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HsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-202","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-202.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjAzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjAzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRob3V0IGEgZ2V0IGZ1bmN0aW9uICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBwcm90byA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJnZXQiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiB0eXBlb2YgKG9iai5wcm9wZXJ0eSkgPT09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-203","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-203.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjA0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjA0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGEgRnVuY3Rpb24gb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgJ2dldCcgcHJvcGVydHkgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGZ1bmMgPSBmdW5jdGlvbiAoYSwgYikgewogICAgICAgICAgICByZXR1cm4gYSArIGI7CiAgICAgICAgfTsKCiAgICAgICAgZnVuYy5nZXQgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAiRnVuY3Rpb24iOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZnVuYwogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiRnVuY3Rpb24iOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-204","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-204.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjA1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjA1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGFuIEFycmF5IG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICdnZXQnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgYXJyLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuICJBcnJheSI7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiBhcnIKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIkFycmF5IjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-205","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-205.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjA2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjA2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGEgU3RyaW5nIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICdnZXQnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBzdHIgPSBuZXcgU3RyaW5nKCJhYmMiKTsKCiAgICAgICAgc3RyLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuICJzdHJpbmcgT2JqZWN0IjsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHN0cgogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAic3RyaW5nIE9iamVjdCI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-206","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-206.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYyk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PYmonIGlzIGEgTnVtYmVyIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICdnZXQnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IE51bWJlcigtOSk7CgogICAgICAgIGRlc2NPYmouZ2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gIk51bWJlciI7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJOdW1iZXIiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-208","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-208.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3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y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBNYXRoLmdldCA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAiTWF0aCI7CiAgICAgICAgICAgIH07CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3BlcnR5OiBNYXRoCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIk1hdGgiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBNYXRoLmdldDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-209","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-209.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy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Fsc2U7CiAgICAgICAgZGVzY09iai5lbnVtZXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-21","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-21.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0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gICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gb2JqLnByb3BlcnR5ID09PSAiRGF0ZSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-210","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-210.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaXNjbGFpbWVyIGluIHRoZSBkb2N1bWVudGF0aW9uIGFuZC9vciBvdGhlci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1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjEzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjEzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGFuIEVycm9yIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICdnZXQnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA3LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IEVycm9yKCk7CgogICAgICAgIGRlc2NPYmouZ2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gIkVycm9yIjsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gIkVycm9yIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-213","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-213.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjE0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjE0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIHRoZSBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgJ2dldCcgcHJvcGVydHkgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGZ1bmMgPSBmdW5jdGlvbiAoYSwgYikgewogICAgICAgICAgICBhcmd1bWVudHMuZ2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJhcmd1bWVudHMiOwogICAgICAgICAgICB9OwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wZXJ0eTogYXJndW1lbnRzCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gImFyZ3VtZW50cyI7CiAgICAgICAgfTsKCiAgICAgICAgcmV0dXJuIGZ1bmMoKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-214","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-214.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFu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pzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIHRoZSBnbG9iYWwgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgJ2dldCcgcHJvcGVydHkgKDguMTAuNSBzdGVwIDcuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGZuR2xvYmFsT2JqZWN0KCkuZ2V0ID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJnbG9iYWwiOwogICAgICAgICAgICB9OwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wZXJ0eTogZm5HbG9iYWxPYmplY3QoKQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBvYmoucHJvcGVydHkgPT09ICJnbG9iYWwiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBmbkdsb2JhbE9iamVjdCgpLmdldDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-216","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-216.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjE3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjE3Lmpz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AgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IG51bGwKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-218","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-218.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjE5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjE5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHByaW1pdGl2ZSB2YWx1ZXMoIHZhbHVlIGlzIGJvb2xlYW4pICg4LjEwLjUgc3RlcCA3LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IGZhbHNlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-219","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-219.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZi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cHJvcDogZGVzY09iagogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-22","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-22.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjIwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjIwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHByaW1pdGl2ZSB2YWx1ZXMoIHZhbHVlIGlzIG51bWJlcikgKDguMTAuNSBzdGVwIDcuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgICAgIGdldDogMTIzCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-220","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-220.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjIxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjIxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHByaW1pdGl2ZSB2YWx1ZXMoIHZhbHVlIGlzIHN0cmluZykgKDguMTAuNSBzdGVwIDcuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgICAgIGdldDogInN0cmluZyIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-221","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-221.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjIyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjIyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGFwcGxpZWQgdG8gQXJyYXkgb2JqZWN0ICg4LjEwLjUgc3RlcCA3LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IFtdCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-222","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-222.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjIzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjIzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ2dldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGEgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDcuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGdldHRlciA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwMDsKICAgICAgICB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0dGVyCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIG9iai5wcm9wZXJ0eSA9PT0gMTAwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-223","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-223.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjI2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjI2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHByZXNlbnQgKDguMTAuNSBzdGVwIDgpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAicHJvcCI6IHsKICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-226","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-226.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjI3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjI3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG5vdCBwcmVzZW50ICg4LjEwLjUgc3RlcCA4KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGRlc2NPYmo6IHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGRhdGE7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCgogICAgICAgICAgICBvYmouZGVzY09iaiA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgImRlc2NPYmoiKTsKICAgICAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgiZGVzY09iaiIpICYmIHR5cGVvZiAoZGVzYy5zZXQpID09PSAidW5kZWZpbmVkIiAmJiBkYXRhID09PSAiZGF0YSI7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-227","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-227.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjI4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjI4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBkZXNjT2JqOiB7CiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBvYmouZGVzY09iaiA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJkZXNjT2JqIikgJiYgZGF0YSA9PT0gIm92ZXJyaWRlRGF0YSI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-228","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-228.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjI5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjI5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB2YXIgcHJvdG8gPSB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGNoaWxkID0gbmV3IENvbigpOwogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGNoaWxkCiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBkYXRhID09PSAib3ZlcnJpZGVEYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-229","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b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MuNy01LWItMjMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi0yMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdkZXNjT2JqJyBpcyBhIE51bWJlciBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGdldCAnZW51bWVyYWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDMuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgTnVtYmVyKC05KTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgZGVzY09iai5lbnVtZXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-23","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-23.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaW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gZGF0YTIgPT09ICJkYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-230","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-230.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjMxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjMxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBkYXRhIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRhdGExID0gImRhdGEiOwogICAgICAgIHZhciBkYXRhMiA9ICJkYXRhIjsKICAgICAgICB2YXIgZnVuID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIGRhdGEyID0gdmFsdWU7CiAgICAgICAgfTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJzZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgIGZ1biA9IHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgY2hpbGQgPSBuZXcgQ29uKCk7CiAgICAgICAgY2hpbGQuc2V0ID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIGRhdGExID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogY2hpbGQKICAgICAgICB9KTsKCiAgICAgICAgb2JqLnByb3AgPSAib3ZlcnJpZGVEYXRhIjsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGRhdGExID09PSAib3ZlcnJpZGVEYXRhIiAmJiBkYXRhMiA9PT0gImRhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-231","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-231.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjMyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjMyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdmFyIHNldEZ1biA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgfTsKICAgICAgICB2YXIgZGVzY09iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAic2V0IiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiBzZXRGdW47CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICBvYmoucHJvcCA9ICJvdmVycmlkZURhdGEiOwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZGF0YSA9PT0gIm92ZXJyaWRlRGF0YSI7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-232","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-232.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjMzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0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KE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-233","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-233.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjM0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjM0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgOC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGRhdGExID0gImRhdGEiOwogICAgICAgIHZhciBkYXRhMiA9ICJkYXRhIjsKCiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgcHJvdG8uc2V0ID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIGRhdGExID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJzZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGRhdGEyID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGNoaWxkCiAgICAgICAgfSk7CiAgICAgICAgb2JqLnByb3AgPSAib3ZlcnJpZGVEYXRhIjsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGRhdGEyID09PSAib3ZlcnJpZGVEYXRhIiAmJiBkYXRhMSA9PT0gImRhdGEiOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-234","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-234.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjM1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjM1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTAuNSBzdGVwIDguYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkYXRhMSA9ICJkYXRhIjsKICAgICAgICB2YXIgZGF0YTIgPSAiZGF0YSI7CgogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgInNldCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgZGF0YTEgPSB2YWx1ZTsKICAgICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJzZXQiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgIGRhdGEyID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGNoaWxkCiAgICAgICAgfSk7CgogICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBkYXRhMiA9PT0gIm92ZXJyaWRlRGF0YSIgJiYgZGF0YTEgPT09ICJkYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-235","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-235.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjM2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjM2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRob3V0IGEgZ2V0IGZ1bmN0aW9uICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZnVuID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfTsKICAgICAgICB2YXIgZGVzY09iaiA9IHsKICAgICAgICAgICAgZ2V0OiBmdW4KICAgICAgICB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShkZXNjT2JqLCAic2V0IiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHV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iAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gYXJndW1lbnRzOwogICAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgQ29uKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJzZXQiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9CiAgICAgICAgfSk7CgogICAgICAgIGRlc2NPYmouZ2V0ID0gZnVuOwoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiB0eXBlb2YgKGRlc2Muc2V0KSA9PT0gInVuZGVmaW5lZCIgJiYgb2JqLnByb3AgPT09IDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-237","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-237.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjM4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjM4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRob3V0IGEgZ2V0IGZ1bmN0aW9uICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGZ1biA9IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwOyAKICAgICAgICB9OwogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgInNldCIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwogICAgICAgIGRlc2NPYmouZ2V0ID0gZnVuOwoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wIik7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiB0eXBlb2YgKGRlc2Muc2V0KSA9PT0gInVuZGVmaW5lZCIgJiYgb2JqLnByb3AgPT09IDEwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-238","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-238.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjM5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjM5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGEgRnVuY3Rpb24gb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgJ3NldCcgcHJvcGVydHkgKDguMTAuNSBzdGVwIDguYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHZhciBkZXNjRnVuID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIHZhciBzZXRGdW4gPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIGRlc2NGdW4ucHJvcCA9IHsKICAgICAgICAgICAgc2V0OiBzZXRGdW4KICAgICAgICB9OwoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBkZXNjRnVuKTsKICAgICAgICBvYmoucHJvcCA9ICJmdW5EYXRhIjsKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZGF0YSA9PT0gImZ1bkRhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-239","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-239.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBka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AgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBNYXRoLmVudW1lcmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-24","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-24.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjQwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjQwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGFuIEFycmF5IG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICdzZXQnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGRhdGEgPSAiZGF0YSI7CiAgICAgICAgdmFyIGFyciA9IFtdOwogICAgICAgIHZhciBzZXRGdW4gPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgIH07CiAgICAgICAgYXJyLnByb3AgPSB7CiAgICAgICAgICAgIHNldDogc2V0RnVuCiAgICAgICAgfTsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgYXJyKTsKICAgICAgICBvYmoucHJvcCA9ICJhcnJEYXRhIjsKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZGF0YSA9PT0gImFyckRhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-240","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-240.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjQxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjQxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIGEgU3RyaW5nIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICdzZXQnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA4LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB2YXIgZGVzY1N0ciA9IG5ldyBTdHJpbmcoKTsKICAgICAgICB2YXIgc2V0RnVuID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICB9OwoKICAgICAgICBkZXNjU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AgICBzZXQ6IHNldEZ1bgogICAgICAgIH07CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIGRlc2NPYmopOwogICAgICAgIG9iai5wcm9wID0gImJvb2xlYW5EYXRhIjsKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZGF0YSA9PT0gImJvb2xlYW5EYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-242","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-242.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFu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KICAgICAgICB9OwoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBkZXNjT2JqKTsKICAgICAgICBvYmoucHJvcCA9ICJudW1iZXJEYXRhIjsKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZGF0YSA9PT0gIm51bWJlckRhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-243","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-243.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2lu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gICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIE1hdGgpOwogICAgICAgICAgICBvYmoucHJvcCA9ICJtYXRoRGF0YSI7CiAgICAgICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBkYXRhID09PSAibWF0aERhdGEiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBNYXRoLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-244","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-244.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy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llcyhvYmosIEpTT04pOwogICAgICAgICAgICBvYmoucHJvcCA9ICJKU09ORGF0YSI7CiAgICAgICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBkYXRhID09PSAiSlNPTkRhdGEiOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBKU09OLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-247","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-247.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaX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W5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgZGF0YSA9IHZhbHVlOwogICAgICAgIH07CiAgICAgICAgZGVzY09iai5wcm9wID0gewogICAgICAgICAgICBzZXQ6IHNldEZ1bgogICAgICAgIH07CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIGRlc2NPYmopOwogICAgICAgIG9iai5wcm9wID0gImVycm9yRGF0YSI7CiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGRhdGEgPT09ICJlcnJvckRhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-248","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-248.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjQ5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjQ5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ2Rlc2NPYmonIGlzIHRoZSBBcmd1bWVudHMgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldF1dIG1ldGhvZCB0byBnZXQgJ3NldCcgcHJvcGVydHkgKDguMTAuNSBzdGVwIDguYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBkYXRhID0gImRhdGEiOwogICAgICAgIHZhciBmdW4gPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiBhcmd1bWVudHM7CiAgICAgICAgfTsKICAgICAgICB2YXIgYXJnID0gZnVuKCk7CiAgICAgICAgdmFyIHNldEZ1biA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBkYXRhID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgYXJnLnByb3AgPSB7CiAgICAgICAgICAgIHNldDogc2V0RnVuCiAgICAgICAgfTsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgYXJnKTsKICAgICAgICBvYmoucHJvcCA9ICJhcmdEYXRhIjsKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgZGF0YSA9PT0gImFyZ0RhdGEiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-249","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-249.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0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KICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgZGVzY09iai5lbnVtZXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-25","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-25.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjUyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjUyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHVuZGVmaW5lZCAoOC4xMC41IHN0ZXAgOC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBnZXRGdW4gPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICB9OwoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuLAogICAgICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIikgJiYgdHlwZW9mIChkZXNjLnNldCkgPT09ICJ1bmRlZmluZWQiOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-252","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-252.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjUzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjUzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHByaW1pdGl2ZSB2YWx1ZXMgbnVsbCAoOC4xMC41IHN0ZXAgOC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICAgICAgc2V0OiBudWxsCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-253","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-253.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjU0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjU0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHByaW1pdGl2ZSB2YWx1ZXMgYm9vbGVhbiAoOC4xMC41IHN0ZXAgOC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICAgICAgc2V0OiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-254","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-254.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjU1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjU1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHByaW1pdGl2ZSB2YWx1ZXMgbnVtYmVyICg4LjEwLjUgc3RlcCA4LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICBzZXQ6IDEwMAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-255","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-255.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjU2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjU2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIHByaW1pdGl2ZSB2YWx1ZXMgc3RyaW5nICg4LjEwLjUgc3RlcCA4LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICBzZXQ6ICJhYmNkZWYiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-256","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-256.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjU3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjU3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGFuIGludGVyZXN0aW5nIG9iamVjdCBvdGhlciB0aGFuIGEgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDguYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgICAgIHNldDogW10KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcik7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-257","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-257.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjU4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjU4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gdmFsdWUgb2YgJ3NldCcgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGEgZnVuY3Rpb24gKDguMTAuNSBzdGVwIDguYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgZGF0YSA9ICJkYXRhIjsKICAgICAgICB2YXIgc2V0RnVuID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIGRhdGEgPSB2YWx1ZTsKICAgICAgICB9OwogICAgICAgIHZhciBvYmogPSB7fTsKCgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bgogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgb2JqLnByb3AgPSAiZnVuRGF0YSI7CiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIGRhdGEgPT09ICJmdW5EYXRhIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-258","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-258.js"},{"code":"77u/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oKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi0yNi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdkZXNjT2JqJyBpcyBhIFJlZ0V4cCBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGdldCAnZW51bWVyYWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDMuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgUmVnRXhwKCk7CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIGRlc2NPYmouZW51bWVyYWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CiAgICAgICAgZm9yICh2YXIgcHJvcGVydHkgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wZXJ0eSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-26","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-26.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjYxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjYxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gVHlwZUVycm9yIGlzIHRocm93biBpZiBib3RoICdzZXQnIHByb3BlcnR5IGFuZCAndmFsdWUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBhcmUgcHJlc2VudCAoOC4xMC41IHN0ZXAgOS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBzZXRGdW4gPSBmdW5jdGlvbiAoKSB7fTsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-261","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-261.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjYyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjYyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gVHlwZUVycm9yIGlzIHRocm93biBpZiBib3RoICdzZXQnIHByb3BlcnR5IGFuZCAnd3JpdGFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBhcmUgcHJlc2VudCAoOC4xMC41IHN0ZXAgOS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBzZXRGdW4gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1bgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-262","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-262.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjYzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjYzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gVHlwZUVycm9yIGlzIHRocm93biBpZiBib3RoICdnZXQnIHByb3BlcnR5IGFuZCAndmFsdWUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBhcmUgcHJlc2VudCAoOC4xMC41IHN0ZXAgOS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBnZXRGdW4gPSBmdW5jdGlvbiAoKSB7fTsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-263","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-263.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMjY0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy01LWItMjY0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gVHlwZUVycm9yIGlzIHRocm93biBpZiBib3RoICdnZXQnIHByb3BlcnR5IGFuZCAnd3JpdGFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBhcmUgcHJlc2VudCAoOC4xMC41IHN0ZXAgOS5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBnZXRGdW4gPSBmdW5jdGlvbiAoKSB7fTsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgICJwcm9wIjogewogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-264","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-264.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2Rp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BpcyB0aGUgSlNPTiBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGdldCAnZW51bWVyYWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDMuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIEpTT04uZW51bWVyYWJsZSA9IHRydWU7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IEpTT04KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBKU09OLmVudW1lcmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-27","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-27.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGgg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ydGllcyAtICdkZXNjT2JqJyBpcyBhbiBFcnJvciBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGdldCAnZW51bWVyYWJsZScgcHJvcGVydHkgKDguMTAuNSBzdGVwIDMuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgRXJyb3IoKTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgZGVzY09iai5lbnVtZXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-28","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-28.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQg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B3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgMy5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYXJnOwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICAoZnVuY3Rpb24gZnVuKCkgewogICAgICAgICAgICBhcmcgPSBhcmd1bWVudHM7CiAgICAgICAgfSgpKTsKCiAgICAgICAgYXJnLmVudW1lcmFibGUgPSB0cnVlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogYXJnCiAgICAgICAgfSk7CiAgICAgICAgZm9yICh2YXIgcHJvcGVydHkgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wZXJ0eSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-29","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-29.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0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lcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wOiB0cnVlCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-3.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMga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YmxlID0gdHJ1ZTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcDogZm5HbG9iYWxPYmplY3QoKQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgZm9yICh2YXIgcHJvcGVydHkgaW4gb2JqKSB7CiAgICAgICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIGZuR2xvYmFsT2JqZWN0KCkuZW51bWVyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-31","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-31.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRp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HJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdW5kZWZpbmVkCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gIWFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-32","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-32.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3Zl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gICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-33","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-33.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaXNjbGFpbWVyIGluIHRoZSBkb2N1bWVudGF0aW9uIGFuZC9vciBvdGhlciBtYXRlcmlhbHMgcHJvdm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dpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItMzYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi0zNi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgMCAoOC4xMC41IHN0ZXAgMy5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IDAKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-36","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-36.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5h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3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgKzAgKDguMTAuNSBzdGVwIDMuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiArMAogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgZm9yICh2YXIgcHJvcGVydHkgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wZXJ0eSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-37","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-37.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAg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Rlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiAtMAogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgZm9yICh2YXIgcHJvcGVydHkgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wZXJ0eSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuICFhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-38","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-38.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGU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gcHJvcDogewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogTmFOCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gIWFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-39","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-39.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZ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FRIRSBVU0UgT0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRgovLy8gQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItNDAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi00MC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgcG9zaXRpdmUgbnVtYmVyICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogMTIKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-40","path":"TestCases/chapter15/15.2/15.2.3/15.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AgaWQ6ICIxNS4yLjMuNy01LWItNDEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi00MS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgbmVnYXRpdmUgbnVtYmVyICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogLTkKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-41","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-41.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlI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Rpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgZW1wdHkgc3RyaW5nICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogIiIKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-42","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-42.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8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VzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6ICJBQlxuXFxjZCIKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-43","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-43.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovL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0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-44","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-44.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3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R5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-45","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-45.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaXNjbGFpbWVyIGluIHRoZSBkb2N1bWVudGF0aW9uIGFuZC9vciBvdGh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PRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItNDgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi00OC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgYSBOdW1iZXIgb2JqZWN0ICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogbmV3IE51bWJlcigtOSkKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-48","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-48.js"},{"code":"77u/Ly8vIENvcHlyaWd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JUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi00OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgdGhlIE1hdGggb2JqZWN0ICg4LjEwLjUgc3RlcCAzLmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogTWF0aAogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgZm9yICh2YXIgcHJvcGVydHkgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wZXJ0eSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-49","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-49.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0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ZGVzY09iaicgaXMgYSBzdHJpbmcgKDguMTAuNSBzdGVwIDEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6ICJhYmMiCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-5","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-5.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsY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ICAgICAgICAgICAgIGVudW1lcmFibGU6IG5ldyBEYXRlKCkKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-50","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-50.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25ka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oKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItNTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi01NC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgdGhlIEFyZ3VtZW50cyBvYmplY3QgKDguMTAuNSBzdGVwIDMuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CiAgICAgICAgdmFyIGFyZzsgCiAgICAgICAgCiAgICAgICAgKGZ1bmN0aW9uIGZ1bigpIHsKICAgICAgICAgICAgYXJnID0gYXJndW1lbnRzOwogICAgICAgIH0oMSwgMiwgMykpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogYXJnCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-54","path":"T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y5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItNTYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi01Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgdGhlIGdsb2JhbCBvYmplY3QgKDguMTAuNSBzdGVwIDMuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmbkdsb2JhbE9iamVjdCgpCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-56","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-56.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyA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uMy43LzE1LjIuMy43LTUtYi01Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgYSBzdHJpbmcgKHZhbHVlIGlzICdmYWxzZScpIHdoaWNoIGlzIHRyZWF0ZWQgYXMgdHJ1ZSB2YWx1ZSAoOC4xMC41IHN0ZXAgMy5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6ICJmYWxzZSIKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-57","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-57.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb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llcyAtIHZhbHVlIG9mICdlbnVtZXJhYmxlJyBwcm9wZXJ0eSBvZiAnZGVzY09iaicgaXMgbmV3IEJvb2xlYW4oZmFsc2UpIHdoaWNoIGlzIHRyZWF0ZWQgYXMgdHJ1ZSB2YWx1ZSAoOC4xMC41IHN0ZXAgMy5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgYWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IG5ldyBCb29sZWFuKGZhbHNlKQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgZm9yICh2YXIgcHJvcGVydHkgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwcm9wZXJ0eSA9PT0gInByb3AiKSB7CiAgICAgICAgICAgICAgICBhY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIGFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-58","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-58.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoY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LjUgc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQxID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIHZhciByZXN1bHQyID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CgogICAgICAgIHJldHVybiByZXN1bHQxID09PSB0cnVlICYmIHJlc3VsdDIgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-59","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-59.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25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gICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIGZvciAodmFyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-6","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-6.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMg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gT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJjb25maWd1cmFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKICAgICAgICB2YXIgcmVzdWx0MSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKICAgICAgICB2YXIgcmVzdWx0MiA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwoKICAgICAgICByZXR1cm4gcmVzdWx0MSA9PT0gdHJ1ZSAmJiByZXN1bHQyID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-65","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-65.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291c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gewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHByb3RvID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgImNvbmZpZ3VyYWJsZSIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CiAgICAgICAgdmFyIHJlc3VsdDIgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHJlc3VsdDEgPT09IHRydWUgJiYgcmVzdWx0MiA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-66","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-66.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcn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uZGVmaW5lUHJvcGVydGllcyAtICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgKDguMTAuNSBzdGVwIDQuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIHByb3RvID0gewogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9OwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGRlc2NPYmosICJjb25maWd1cmFibGUiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CiAgICAgICAgdmFyIHJlc3VsdDEgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CiAgICAgICAgdmFyIHJlc3VsdDIgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHJlc3VsdDEgPT09IHRydWUgJiYgcmVzdWx0MiA9PT0gdHJ1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0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FyIHByb3BlcnR5IGluIG9iaikgewogICAgICAgICAgICBpZiAocHJvcGVydHkgPT09ICJwcm9wIikgewogICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIHJldHVybiAhYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-7","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-7.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaXNjbGFpbWVyIGluIHRoZSBkb2N1bWVudGF0aW9uIGFuZC9vci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wZSA9IHByb3RvOwogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZGVzY09iaiwgImNvbmZpZ3VyYWJsZSIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKICAgICAgICB2YXIgcmVzdWx0MSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwogICAgICAgIGRlbGV0ZSBvYmoucHJvcDsKICAgICAgICB2YXIgcmVzdWx0MiA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwoKICAgICAgICByZXR1cm4gcmVzdWx0MSA9PT0gdHJ1ZSAmJiByZXN1bHQyID09PSB0cnVlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-70","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-70.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ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KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAiY29uZmlndXJhYmxlIiwgewogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKICAgICAgICB2YXIgZGVzY09iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CiAgICAgICAgdmFyIHJlc3VsdDIgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHJlc3VsdDEgPT09IHRydWUgJiYgcmVzdWx0MiA9PT0gdHJ1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-71","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-71.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5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plY3QuZGVmaW5lUHJvcGVydGllcyAtICdkZXNjT2JqJyBpcyBhIEZ1bmN0aW9uIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRdXSBtZXRob2QgdG8gZ2V0ICdjb25maWd1cmFibGUnIHByb3BlcnR5ICg4LjEwLjUgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZGVzY09iaiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBkZXNjT2JqLmNvbmZpZ3VyYWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQxID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIHZhciByZXN1bHQyID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CgogICAgICAgIHJldHVybiByZXN1bHQxID09PSB0cnVlICYmIHJlc3VsdDIgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-72","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-72.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb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BcnJheSBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0XV0gbWV0aG9kIHRvIGdldCAnY29uZmlndXJhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBbXTsKICAgICAgICBkZXNjT2JqLmNvbmZpZ3VyYWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQxID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIHZhciByZXN1bHQyID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CgogICAgICAgIHJldHVybiByZXN1bHQxID09PSB0cnVlICYmIHJlc3VsdDIgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-73","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-73.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25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CAnY29uZmlndXJhYmxlJyBwcm9wZXJ0eSAoOC4xMC41IHN0ZXAgNC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgU3RyaW5nKCk7CiAgICAgICAgZGVzY09iai5jb25maWd1cmFibGUgPSB0cnVlOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwogICAgICAgIHZhciByZXN1bHQxID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIHZhciByZXN1bHQyID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CgogICAgICAgIHJldHVybiByZXN1bHQxID09PSB0cnVlICYmIHJlc3VsdDIgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-74","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-74.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVz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IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IEJvb2xlYW4oZmFsc2UpOwogICAgICAgIGRlc2NPYmouY29uZmlndXJhYmxlID0gdHJ1ZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IGRlc2NPYmoKICAgICAgICB9KTsKCiAgICAgICAgdmFyIHJlc3VsdDEgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICBkZWxldGUgb2JqLnByb3A7CiAgICAgICAgdmFyIHJlc3VsdDIgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKCiAgICAgICAgcmV0dXJuIHJlc3VsdDEgPT09IHRydWUgJiYgcmVzdWx0MiA9PT0gZmFsc2U7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-75","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-75.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY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vYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2NPYmogPSBuZXcgTnVtYmVyKC05KTsKICAgICAgICBkZXNjT2JqLmNvbmZpZ3VyYWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQxID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIHZhciByZXN1bHQyID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CgogICAgICAgIHJldHVybiByZXN1bHQxID09PSB0cnVlICYmIHJlc3VsdDIgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-76","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-76.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sb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mFibGUgPSB0cnVlOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wOiBNYXRoCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgdmFyIHJlc3VsdDEgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKTsKICAgICAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgICAgICB2YXIgcmVzdWx0MiA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpOwoKICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDEgPT09IHRydWUgJiYgcmVzdWx0MiA9PT0gZmFsc2U7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIE1hdGguY29uZmlndXJhYmxlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-77","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-77.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiB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kZXNjT2JqID0gbmV3IERhdGUoKTsKICAgICAgICBkZXNjT2JqLmNvbmZpZ3VyYWJsZSA9IHRydWU7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiBkZXNjT2JqCiAgICAgICAgfSk7CgogICAgICAgIHZhciByZXN1bHQxID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIHZhciByZXN1bHQyID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CgogICAgICAgIHJldHVybiByZXN1bHQxID09PSB0cnVlICYmIHJlc3VsdDIgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-78","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-78.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKi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3BlcnR5KCJwcm9wIik7CiAgICAgICAgZGVsZXRlIG9iai5wcm9wOwogICAgICAgIHZhciByZXN1bHQyID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CgogICAgICAgIHJldHVybiByZXN1bHQxID09PSB0cnVlICYmIHJlc3VsdDIgPT09IGZhbHNlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-81","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-81.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaXNjbGFpbWVyIGluIHRoZSBkb2N1bWVudGF0aW9uIGF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CIpOwogICAgICAgICAgICBkZWxldGUgb2JqLnByb3A7CiAgICAgICAgICAgIHZhciByZXN1bHQyID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CgogICAgICAgICAgICByZXR1cm4gcmVzdWx0MSA9PT0gdHJ1ZSAmJiByZXN1bHQyID09PSBmYWxzZTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgZm5HbG9iYWxPYmplY3QoKS5jb25maWd1cmFibGU7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-84","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-84.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItODUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi04NS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyB1bmRlZmluZWQgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHVuZGVmaW5lZAogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBoYWRPd25Qcm9wZXJ0eSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBoYWRPd25Qcm9wZXJ0eTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-85","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-85.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItODYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi04Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBudWxsICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBudWxsCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIGhhZE93blByb3BlcnR5ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGhhZE93blByb3BlcnR5OwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-86","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-86.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItODciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi04Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyB0cnVlICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIGhhZE93blByb3BlcnR5ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICByZXR1cm4gIW9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBoYWRPd25Qcm9wZXJ0eTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-87","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-87.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItODgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi04OC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBmYWxzZSAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgaGFkT3duUHJvcGVydHkgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgaGFkT3duUHJvcGVydHk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-88","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-88.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItODkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi04OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyAwICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiAwCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIGhhZE93blByb3BlcnR5ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGhhZE93blByb3BlcnR5OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-89","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-89.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4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aXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnZW51bWVyYWJsZScgcHJvcGVydHkgb2YgJ2Rlc2NPYmonIGlzIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEwLjUgc3RlcCAzLmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBhY2Nlc3NlZCA9IGZhbHNlOwoKICAgICAgICB2YXIgcHJvdG8gPSB7CiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICB9OwogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwogICAgICAgIHZhciBkZXNjT2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogZGVzY09iagogICAgICAgIH0pOwoKICAgICAgICBmb3IgKHZhciBwcm9wZXJ0eSBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHByb3BlcnR5ID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgIGFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gYWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-9","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05MC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyArMCAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogKzAKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgaGFkT3duUHJvcGVydHkgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgaGFkT3duUHJvcGVydHk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-90","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-90.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05MS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyAtMCAoOC4xMC41IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcGVydHk6IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogLTAKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgaGFkT3duUHJvcGVydHkgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgaGFkT3duUHJvcGVydHk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-91","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-91.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05Mi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBOYU4gKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IE5hTgogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBoYWRPd25Qcm9wZXJ0eSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKSAmJiBoYWRPd25Qcm9wZXJ0eTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-92","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-92.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05My5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBwb3NpdGl2ZSBudW1iZXIgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IDEyMwogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBoYWRPd25Qcm9wZXJ0eSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgaGFkT3duUHJvcGVydHk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-93","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-93.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05NC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBuZWdhdGl2ZSBudW1iZXIgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IC0xMjMKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgaGFkT3duUHJvcGVydHkgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CgogICAgICAgIGRlbGV0ZSBvYmoucHJvcGVydHk7CgogICAgICAgIHJldHVybiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGhhZE93blByb3BlcnR5OwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-5-b-94","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-94.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05NS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBlbXB0eSBzdHJpbmcgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6ICIiCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgdmFyIGhhZE93blByb3BlcnR5ID0gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpOwoKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwoKICAgICAgICByZXR1cm4gb2JqLmhhc093blByb3BlcnR5KCJwcm9wZXJ0eSIpICYmIGhhZE93blByb3BlcnR5OwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-5-b-95","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-95.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBub24tZW1wdHkgc3RyaW5nICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiAiYWJjIgogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBoYWRPd25Qcm9wZXJ0eSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgaGFkT3duUHJvcGVydHk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-96","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-96.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBGdW5jdGlvbiBvYmplY3QgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZ1bmN0aW9uICgpIHsgfQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBoYWRPd25Qcm9wZXJ0eSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgaGFkT3duUHJvcGVydHk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-97","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-97.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05OC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBBcnJheSBvYmplY3QgKDguMTAuNSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IFsxLCAyLCAzXQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBoYWRPd25Qcm9wZXJ0eSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgaGFkT3duUHJvcGVydHk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-98","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-98.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy01LWItOTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTUtYi05OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHZhbHVlIG9mICdjb25maWd1cmFibGUnIHByb3BlcnR5IG9mICdkZXNjT2JqJyBpcyBTdHJpbmcgb2JqZWN0ICg4LjEwLjUgc3RlcCA0LmIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBuZXcgU3RyaW5nKCJhYmMiKQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBoYWRPd25Qcm9wZXJ0eSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgZGVsZXRlIG9iai5wcm9wZXJ0eTsKCiAgICAgICAgcmV0dXJuICFvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5IikgJiYgaGFkT3duUHJvcGVydHk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-5-b-99","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-5-b-99.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUCcgaXMgb3duIGV4aXN0aW5nIGRhdGEgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEgKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7IAogICAgICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcik7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-1.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0xMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgd2l0aG91dCBhIGdldCBmdW5jdGlvbiB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEgKSAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICB9LAogICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBvYmogPSBuZXcgQ29uKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcik7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-10","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-10.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTAwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTAwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ1AnIGlzIGRhdGEgcHJvcGVydHksIHNldmVyYWwgYXR0cmlidXRlcyB2YWx1ZXMgb2YgUCBhbmQgcHJvcGVydGllcyBhcmUgZGlmZmVyZW50ICg4LjEyLjkgc3RlcCAxMikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IAogICAgICAgICAgICB2YWx1ZTogMTAwLCAKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUgCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAyMDAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMjAwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-100","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-100.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTAxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTAxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ1AnIGlzIGFjY2Vzc29yIHByb3BlcnR5LCBib3RoIHByb3BlcnRpZXMuW1tHZXRdXSBhbmQgUC5bW0dldF1dIGFyZSB0d28gZGlmZmVyZW50IHZhbHVlcyAoOC4xMi45IHN0ZXAgMTIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBmdW5jdGlvbiBnZXRfZnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgIH0KICAgICAgICBmdW5jdGlvbiBzZXRfZnVuYyh2YWx1ZSkgewogICAgICAgICAgICBvYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMsCiAgICAgICAgICAgIHNldDogc2V0X2Z1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBmdW5jdGlvbiBnZXRfZnVuYzIoKSB7CiAgICAgICAgICAgIHJldHVybiAyMDsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMyCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIGdldF9mdW5jMiwgc2V0X2Z1bmMsICJzZXRWZXJpZnlIZWxwUHJvcCIsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-101","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-101.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEt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gIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBmdW5jdGlvbiBnZXRfZnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgZ2V0OiBnZXRfZnVuYwogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBnZXRfZnVuYywgc2V0X2Z1bmMsICJzZXRWZXJpZnlIZWxwUHJvcCIsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-103","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-103.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTA0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTA0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ1AnIGlzIGFjY2Vzc29yIHByb3BlcnR5LCBib3RoIHByb3BlcnRpZXMuW1tTZXRdXSBhbmQgUC5bW1NldF1dIGFyZSB0d28gZGlmZmVyZW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wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-104","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-104.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTA1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTA1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ1AnIGlzIGFjY2Vzc29yIHByb3BlcnR5LCBQLltbU2V0XV0gaXMgcHJlc2VudCBhbmQgcHJvcGVydGllcy5bW1NldF1dIGlzIHVuZGVmaW5lZCAoOC4xMi45IHN0ZXAgMTIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICB9CiAgICAgICAgZnVuY3Rpb24gc2V0X2Z1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRfZnVuYywKICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgaGFzUHJvcGVydHkgPSBvYmouaGFzT3duUHJvcGVydHkoInByb3BlcnR5Iik7CiAgICAgICAgdmFyIHZlcmlmeUdldCA9IGZhbHNlOwogICAgICAgIHZlcmlmeUdldCA9IChvYmoucHJvcGVydHkgPT09IDEwKTsKCiAgICAgICAgdmFyIHZlcmlmeVNldCA9IGZhbHNlOwogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJwcm9wZXJ0eSIpOwogICAgICAgIHZlcmlmeVNldCA9ICh0eXBlb2YgZGVzYy5zZXQgPT09ICd1bmRlZmluZWQnKTsKCiAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICBpZiAocCA9PT0gInByb3BlcnR5IikgewogICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciB2ZXJpZnlDb25maWd1cmFibGUgPSBmYWxzZTsKICAgICAgICBkZWxldGUgb2JqLnByb3BlcnR5OwogICAgICAgIHZlcmlmeUNvbmZpZ3VyYWJsZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcGVydHkiKTsKCiAgICAgICAgcmV0dXJuIGhhc1Byb3BlcnR5ICYmIHZlcmlmeUdldCAmJiB2ZXJpZnlTZXQgJiYgdmVyaWZ5RW51bWVyYWJsZSAmJiAhdmVyaWZ5Q29uZmlndXJhYmxlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-105","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-105.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTA2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTA2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ1AnIGlzIGFjY2Vzc29yIHByb3BlcnR5LCBQLltbU2V0XV0gaXMgdW5kZWZpbmVkIGFuZCBwcm9wZXJ0aWVzLltbU2V0XV0gaXMgbm9ybWFsIHZhbHVlICg4LjEyLjkgc3RlcCAxMikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIGdldF9mdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIGZ1bmN0aW9uIHNldF9mdW5jKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgc2V0OiBzZXRfZnVuYwogICAgICAgICAgICB9CiAgICA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mouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMsCiAgICAgICAgICAgIHNldDogc2V0X2Z1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBnZXRfZnVuYywgc2V0X2Z1bmMsICJzZXRWZXJpZnlIZWxwUHJvcCIsIGZhbHNlLCB0cnVlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-107","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-107.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTA4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTA4LmpzIiwKCiAgICBkZXNj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E9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMyLAogICAgICAgICAgICAgICAgc2V0OiBzZXRfZnVuYzIsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIGdldF9mdW5jMiwgc2V0X2Z1bmMyLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-109","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-109.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0xMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBpcyBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgd2l0aG91dCBhIGdldCBmdW5jdGlvbiAoOC4xMi45IHN0ZXAgMSApICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAicHJvcCIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKICAgICAgICB2YXIgQ29uID0gZnVuY3Rpb24gKCkgeyB9OwogICAgICAgIENvbi5wcm90b3R5cGUgPSBwcm90bzsKCiAgICAgICAgdmFyIG9iaiA9IG5ldyBDb24oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiBvYmoucHJvcCA9PT0gMTI7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-11","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-11.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0Z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gcHJvcGVydHkgYW5kIGFjY2Vzc29yIHByb3BlcnR5KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICB9CiAgICAgICAgZnVuY3Rpb24gc2V0X2Z1bmModmFsdWUpIHsKICAgICAgICAgICAgb2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICB2YXIgcHJvcGVydGllcyA9IHsKICAgICAgICAgICAgZm9vMTogewogICAgICAgICAgICAgICAgdmFsdWU6IDIwMCwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9LAogICAgICAgICAgICBmb28yOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgcHJvcGVydGllcyk7CiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbzEiLCAyMDAsIHRydWUsIHRydWUsIHRydWUpICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28yIiwgZ2V0X2Z1bmMsIHNldF9mdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCB0cnVlLCB0cnVlKTsKCiAgICB9LAoKIC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5DTFVESU5HIE5FR0xJR0VOQ0UgT1IgT1RIRVJXSVNFKSBBUklTSU5HIElOIEFOWSBXQVkgT1VUIE9GIFRIRSBVU0UgT0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRgovLy8gQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgpFUzVIYXJuZXNzLnJlZ2lzdGVyVGVzdCh7CiAgICBpZDogIjE1LjIuMy43LTYtYS0xMTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0xMTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSBlYWNoIHByb3BlcnRpZXMgYXJlIGluIGxpc3Qgb3JkZXIiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIGdldF9mdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgfQoKICAgICAgICBmdW5jdGlvbiBzZXRfZnVuYygpIHsgfQoKICAgICAgICB2YXIgcHJvcGVydGllcyA9IHsKICAgICAgICAgICAgYTogewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMCwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9LAogICAgICAgICAgICBiOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSwKICAgICAgICAgICAgYzogewogICAgICAgICAgICAgICAgdmFsdWU6IDIwMCwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCBwcm9wZXJ0aWVzKTsKICAgICAgICByZXR1cm4gKG9ialsiYSJdID09PSAxMDAgJiYgb2JqWyJiIl0gPT09IDIwICYmIG9ialsiYyJdID09PSAyMDApOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-111","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-111.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3Rya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Sk7CiAgICAgICAgdHJ5IHsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7IHZhbHVlOiAxIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoYXJyLCAibGVuZ3RoIik7CgogICAgICAgICAgICByZXR1cm4gZXggaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgZGVzYy52YWx1ZSA9PT0gMiAmJgogICAgICAgICAgICAgICAgZGVzYy53cml0YWJsZSAmJiAhZGVzYy5lbnVtZXJhYmxlICYmICFkZXNjLmNvbmZpZ3VyYWJsZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-112","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-112.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTExMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTExMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgdGVzdCB0aGUgbGVuZ3RoIHByb3BlcnR5IG9mICdPJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSAoMTUuNC41LjEgc3RlcCAxKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnJQcm90b0xlbjsKICAgICAgICB2YXIgYXJyID0gWzAsIDEsIDJdOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIGFyclByb3RvTGVuID0gQXJyYXkucHJvdG90eXBlLmxlbmd0aDsKICAgICAgICAgICAgQXJyYXkucHJvdG90eXBlLmxlbmd0aCA9IDA7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMiIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogeyB2YWx1ZTogMSB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoYXJyLCAibGVuZ3RoIik7CgogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkZXNjLnZhbHVlID09PSAzICYmCiAgICAgICAgICAgICAgICBkZXNjLndyaXRhYmxlICYmICFkZXNjLmVudW1lcmFibGUgJiYgIWRlc2MuY29uZmlndXJhYmxlOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIEFycmF5LnByb3RvdHlwZS5sZW5ndGggPSBhcnJQcm90b0xlbjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-113","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-113.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTExNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTExNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhYnNlbnQsIHRlc3QgZXZlcnkgZmllbGQgaW4gJ2Rlc2MnIGlzIGFic2VudCAoMTUuNC41LjEgc3RlcCAzLmEuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7IGxlbmd0aDoge30gfSk7CgogICAgICAgIHZhciB2ZXJpZnlWYWx1ZSA9IGZhbHNlOwogICAgICAgIHZlcmlmeVZhbHVlID0gKGFyci5sZW5ndGggPT09IDApOwoKICAgICAgICB2YXIgdmVyaWZ5V3JpdGFibGUgPSBmYWxzZTsKICAgICAgICBhcnIubGVuZ3RoID0gMjsKICAgICAgICB2ZXJpZnlXcml0YWJsZSA9IChhcnIubGVuZ3RoID09PSAyKTsKCiAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICBmb3IgKHZhciBwIGluIGFycikgewogICAgICAgICAgICBpZiAocCA9PT0gImxlbmd0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d1cmFibGU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-115","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-115.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTExNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTExNi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhYnNlbnQsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSBvZiB0aGUgbGVuZ3RoIHByb3BlcnR5IGZyb20gZmFsc2UgdG8gdHJ1ZSAoMTUuNC41LjEgc3RlcCAzLmEuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7IGNvbmZpZ3VyYWJsZTogdHJ1ZSB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-116","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-116.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTExNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTExNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhYnNlbnQsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgb2YgdGhlIGxlbmd0aCBwcm9wZXJ0eSBmcm9tIGZhbHNlIHRvIHRydWUgKDE1LjQuNS4xIHN0ZXAgMy5hLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogeyBlbnVtZXJhYmxlOiB0cnVlIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-117","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-117.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTExOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTExOC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhYnNlbnQsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yICgxNS40LjUuMSBzdGVwIDMuYS5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDI7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFyci5sZW5ndGggPT09IDA7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-118","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-118.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTExOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTExOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhYnNlbnQsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIG9mIHRoZSBsZW5ndGggcHJvcGVydHkgZnJvbSBmYWxzZSB0byB0cnVlICgxNS40LjUuMSBzdGVwIDMuYS5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgImxlbmd0aCIsIHsKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgeyAKICAgICAgICAgICAgICAgIGxlbmd0aDogeyB3cml0YWJsZTogdHJ1ZSB9IAogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcik7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-119","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-119.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0xMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhIEZ1bmN0aW9uIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRPd25Qcm9wZXJ0eV1dIG1ldGhvZCB0byBnZXQgJ1AnICg4LjEyLjkgc3RlcCAxICkgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgZnVuID0gZnVuY3Rpb24gKCkgeyB9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZnVuLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGZ1biwgewogICAgICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGZ1biwgInByb3AiLCAxMSwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-12","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-12.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTEyMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEyMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhYnNlbnQsIHRlc3QgdXBkYXRpbmcgdGhlIFtbV3JpdGFibGVdXSBhdHRyaWJ1dGUgb2YgdGhlIGxlbmd0aCBwcm9wZXJ0eSBmcm9tIHRydWUgdG8gZmFsc2UgKDE1LjQuNS4xIHN0ZXAgMy5hLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogeyB3cml0YWJsZTogZmFsc2UgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICJsZW5ndGgiLCAwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-120","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-120.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTEyMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEyMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb3IgaXMgdGhyb3duIHdoZW4gc2V0dGluZyB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyB0byB1bmRlZmluZWQgKDE1LjQuNS4xIHN0ZXAgMy5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICBsZW5ndGg6IHsgdmFsdWU6IHVuZGVmaW5lZCB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBSYW5nZUVycm9yICYmIGFyci5sZW5ndGggPT09IDA7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-121","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-121.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTEyMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEyMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHNldHRpbmcgdGhlIFtbVmFsdWVdXSBmaWVsZCBvZiAnZGVzYycgdG8gbnVsbCBhY3R1YWxsIGlzIHNldCB0byAwICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gWzAsIDFdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgbGVuZ3RoOiB7IHZhbHVlOiBudWxsIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYXJyLmxlbmd0aCA9PT0gMDsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-122","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-122.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTEyMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEyMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgYm9vbGVhbiB3aXRoIHZhbHVlIGZhbHNlICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gWzAsIDFdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgbGVuZ3RoOiB7IHZhbHVlOiBmYWxzZSB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyci5sZW5ndGggPT09IDA7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-123","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-123.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTEyNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEyNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgYm9vbGVhbiB3aXRoIHZhbHVlIHRydWUgKDE1LjQuNS4xIHN0ZXAgMy5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgIGxlbmd0aDogeyB2YWx1ZTogdHJ1ZSB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyci5sZW5ndGggPT09IDE7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-124","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-124.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTEyNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEyNS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIDAgKDE1LjQuNS4xIHN0ZXAgMy5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbMCwgMV07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICBsZW5ndGg6IHsgdmFsdWU6IDAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhcnIubGVuZ3RoID09PSAwOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-125","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-125.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291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SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTEyOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEyOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIG5lZ2F0aXZlIG51bWJlciAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAtOQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBSYW5nZUVycm9yICYmIGFyci5sZW5ndGggPT09IDA7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-129","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-129.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0xMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gZ2V0ICdQJyAoOC4xMi45IHN0ZXAgMSApICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAicHJvcCIsIHsKICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgInByb3AiLCAxMSwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZ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JRgovLy8gQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTEzMCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEzMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzICtJbmZpbml0eSAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiArSW5maW5pdHkKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvciAmJiBhcnIubGVuZ3RoID09PSAwOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-130","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3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MTUuMi4zLjctNi1hLTEzMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEzMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIC1JbmZpbml0eSAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAtSW5maW5pdHkKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvciAmJiBhcnIubGVuZ3RoID09PSAwOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-131","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-131.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9u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EzMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIE5hTiAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiBOYU4KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFJhbmdlRXJyb3IgJiYgYXJyLmxlbmd0aCA9PT0gMDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-132","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-132.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTEzMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTEzMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdP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gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogIi00MiIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvciAmJiBhcnIubGVuZ3RoID09PSAwOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-134","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-134.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZ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PYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAiMjAwLjU5IgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBSYW5nZUVycm9yICYmIGFyci5sZW5ndGggPT09IDA7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-135","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-135.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHly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FsdWU6ICIrSW5maW5pdHkiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFJhbmdlRXJyb3IgJiYgYXJyLmxlbmd0aCA9PT0gMDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-136","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-136.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8gICAgICB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuIAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgaW4gYmluYXJ5IGZvcm0gbXVzdCByZXByb2R1Y2UgdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCAKLy8vICAgICAgdGhlIGZvbGxvd2luZyBkaXN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1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0xNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhIFN0cmluZyBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gZ2V0ICdQJyAoOC4xMi45IHN0ZXAgMSApICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHN0ciA9IG5ldyBTdHJpbmcoKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHN0ciwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhzdHIsIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChzdHIsICJwcm9wIiwgMTEsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVma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9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE0MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE0MC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIGNvbnRhaW5pbmcgYW4gbGVhZGluZyB6ZXJvIG51bWJlciAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogIjAwMDIuMCIKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhcnIubGVuZ3RoID09PSAyOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-140","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-140.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE0MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE0MS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGEgc3RyaW5nIHdoaWNoIGRvZXNuJ3QgY29udmVydCB0byBhIG51bWJlciAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAidHdvIgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBSYW5nZUVycm9yICYmIGFyci5sZW5ndGggPT09IDA7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-141","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-141.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE0MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE0Mi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGFuIE9iamVjdCB3aGljaCBoYXMgYW4gb3duIHRvU3RyaW5nIG1ldGhvZCAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogewogICAgICAgICAgICAgICAgICAgIHRvU3RyaW5nOiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnMic7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhcnIubGVuZ3RoID09PSAyOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-142","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-142.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE0MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE0My5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGFuIE9iamVjdCB3aGljaCBoYXMgYW4gb3duIHZhbHVlT2YgbWV0aG9kICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWVPZjogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gMjsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYXJyLmxlbmd0aCA9PT0gMjsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-143","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-143.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE0NCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE0NC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICAnTycgaXMgYW4gQXJyYXksICduYW1lJyBpcyB0aGUgbGVuZ3RoIHByb3BlcnR5IG9mICdPJywgdGVzdCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhbiBPYmplY3Qgd2hpY2ggaGFzIGFuIG93biB2YWx1ZU9mIG1ldGhvZCB0aGF0IHJldHVybnMgYW4gb2JqZWN0IGFuZCB0b1N0cmluZyBtZXRob2QgdGhhdCByZXR1cm5zIGEgc3RyaW5nICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CiAgICAgICAgdmFyIHRvU3RyaW5nQWNjZXNzZWQgPSBmYWxzZTsKICAgICAgICB2YXIgdmFsdWVPZkFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiB7CiAgICAgICAgICAgICAgICAgICAgdG9TdHJpbmc6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdG9TdHJpbmdBY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAnMic7CiAgICAgICAgICAgICAgICAgICAgfSwKCiAgICAgICAgICAgICAgICAgICAgdmFsdWVPZjogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZU9mQWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4ge307CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyci5sZW5ndGggPT09IDIgJiYgdG9TdHJpbmdBY2Nlc3NlZCAmJiB2YWx1Z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ZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gJzInOwogICAgICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgICAgIHZhbHVlT2Y6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWVPZkFjY2Vzc2VkID0gdHJ1ZTsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDM7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyci5sZW5ndGggPT09IDMgJiYgIXRvU3RyaW5nQWNjZXNzZWQgJiYgdmFsdWVPZkFjY2Vzc2VkOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-145","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-145.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE0NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE0Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBhbiBPYmplY3QgdGhhdCBib3RoIHRvU3RyaW5nIGFuZCB2YWx1ZU9mIHdvdWxkbid0IHJldHVybiBwcmltaXRpdmUgdmFsdWUgKDE1LjQuNS4xIHN0ZXAgMy5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbXTsKICAgICAgICB2YXIgdG9TdHJpbmdBY2Nlc3NlZCA9IGZhbHNlOwogICAgICAgIHZhciB2YWx1ZU9mQWNjZXNzZWQgPSBmYWxzZTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogewogICAgICAgICAgICAgICAgICAgICAgICB0b1N0cmluZzogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9TdHJpbmdBY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4ge307CiAgICAgICAgICAgICAgICAgICAgICAgIH0sCgogICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZU9mOiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZU9mQWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHt9OwogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgdG9TdHJpbmdBY2Nlc3NlZCAmJiB2YWx1ZU9mQWNjZXNzZWQ7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-146","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-146.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE0NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE0Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHVzaW5nIGluaGVyaXRlZCB2YWx1ZU9mIG1ldGhvZCB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGFuIE9iamVjIHdpdGggYW4gb3duIHRvU3RyaW5nIGFuZCBpbmhlcml0ZWQgdmFsdWVPZiBtZXRob2RzICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CiAgICAgICAgdmFyIHRvU3RyaW5nQWNjZXNzZWQgPSBmYWxzZTsKICAgICAgICB2YXIgdmFsdWVPZkFjY2Vzc2VkID0gZmFsc2U7CgogICAgICAgIHZhciBwcm90byA9IHsKICAgICAgICAgICAgdmFsdWU6IHsKICAgICAgICAgICAgICAgIHZhbHVlT2Y6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZU9mQWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfTsKCiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBjaGlsZCA9IG5ldyBDb24oKTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoY2hpbGQsICJ2YWx1ZSIsIHsKICAgICAgICAgICAgdmFsdWU6IHsKICAgICAgICAgICAgICAgIHRvU3RyaW5nOiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgdG9TdHJpbmdBY2Nlc3NlZCA9IHRydWU7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDM7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgIGxlbmd0aDogY2hpbGQKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYXJyLmxlbmd0aCA9PT0gMyAmJiB0b1N0cmluZ0FjY2Vzc2VkICYmICF2YWx1ZU9mQWNjZXNzZWQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-147","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-147.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE0OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE0OC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCAgdGVzdCBSYW5nZUVycm9yIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIHBvc2l0aXZlIG5vbi1pbnRlZ2VyIHZhbHVlcyAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMjMuNQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvciAmJiBhcnIubGVuZ3RoID09PSAwOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-148","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-148.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE0OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE0OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCAgdGVzdCBSYW5nZUVycm9yIGlzIHRocm93biB3aGVuIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIG5lZ2F0aXZlIG5vbi1pbnRlZ2VyIHZhbHVlcyAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAtNDI5NDk2NzI5NC41CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFJhbmdlRXJyb3IgJiYgYXJyLmxlbmd0aCA9PT0gMDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-149","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-149.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQ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aXRzIG93biBbW0dldE93blByb3BlcnR5XV0gbWV0aG9kIHRvIGdldCAnUCcgKDguMTIuOSBzdGVwIDEgKSAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgCiAgICAgICAgdmFyIG9iaiA9IG5ldyBCb29sZWFuKGZhbHNlKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wIiwgMTEsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-15","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-15.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE1MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE1MC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGJvdW5kYXJ5IHZhbHVlIDJeMzIgLSAyICgxNS40LjUuMSBzdGVwIDMuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiA0Mjk0OTY3Mjk0CiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGFyci5sZW5ndGggPT09IDQyOTQ5NjcyOTQ7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-150","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-150.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE1MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE1MS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUH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GVzYycgaXMgYm91bmRhcnkgdmFsdWUgMl4zMiAoMTUuNC41LjEgc3RlcCAzLmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDQyOTQ5NjcyOTYKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgUmFuZ2VFcnJvciAmJiBhcnIubGVuZ3RoID09PSAwOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-152","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-152.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE1MyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE1My5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ25hbWUnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFJhbmdlRXJyb3IgaXMgdGhyb3duIHdoZW4gdGhlIFtbVmFsdWVdXSBmaWVsZCBvZiAnZGVzYycgaXMgYm91bmRhcnkgdmFsdWUgMl4zMiArIDEgKDE1LjQuNS4xIHN0ZXAgMy5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbXTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiA0Mjk0OTY3Mjk3CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFJhbmdlRXJyb3IgJiYgYXJyLmxlbmd0aCA9PT0gMDsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-153","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-153.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE1NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE1NS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIHdoaWNoIGlzIGdyZWF0ZXIgdGhhbiB2YWx1ZSBvZiB0aGUgbGVuZ3RoIHByb3BlcnR5IGlzIGRlZmluZWQgaW50byAnTycgd2l0aG91dCBkZWxldGluZyBhbnkgcHJvcGVydHkgd2l0aCBsYXJnZSBpbmRleCBuYW1lZCAoMTUuNC41LjEgc3RlcCAzLmYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFswLCAsIDJdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiA1CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGFyci5sZW5ndGggPT09IDUgJiYgYXJyWzBdID09PSAwICYmICFhcnIuaGFzT3duUHJvcGVydHkoIjEiKSAmJiBhcnJbMl0gPT09IDI7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-155","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-155.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE1NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE1Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIHdoaWNoIGVxdWFscyB0byB2YWx1ZSBvZiB0aGUgbGVuZ3RoIHByb3BlcnR5IGlzIGRlZmluZWQgaW50byAnTycgd2l0aG91dCBkZWxldGluZyBhbnkgcHJvcGVydHkgd2l0aCBsYXJnZSBpbmRleCBuYW1lZCAoMTUuNC41LjEgc3RlcCAzLmYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFswLCAsIDJdOwogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDMKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gYXJyLmxlbmd0aCA9PT0gMyAmJiBhcnJbMF0gPT09IDAgJiYgIWFyci5oYXNPd25Qcm9wZXJ0eSgiMSIpICYmIGFyclsyXSA9PT0gMjsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-156","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-156.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE1NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE1Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0ZXN0IHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIHdoaWNoIGlzIGxlc3MgdGhhbiB2YWx1ZSBvZiB0aGUgbGVuZ3RoIHByb3BlcnR5IGlzIGRlZmluZWQgaW50byAnTycgd2l0aCBkZWxldGluZyBwcm9wZXJ0aWVzIHdpdGggbGFyZ2UgaW5kZXggbmFtZWQgKDE1LjQuNS4xIHN0ZXAgMy5mKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbMCwgMV07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYXJyLmxlbmd0aCA9PT0gMSAmJiAhYXJyLmhhc093blByb3BlcnR5KCIxIikgJiYgYXJyWzBdID09PSAwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-157","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-157.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE1OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjc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AgfQoKfSk7Cg==","id":"15.2.3.7-6-a-158","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-158.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE1OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE1OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBlcXVhbHMgdG8gdmFsdWUgb2YgdGhlIGxlbmd0aCBwcm9wZXJ0eSwgdGVzdCBUeXBlRXJyb3Igd291bGRuJ3QgYmUgdGhyb3duIHdoZW4gdGhlIGxlbmd0aCBwcm9wZXJ0eSBpcyBub3Qgd3JpdGFibGUgKDE1LjQuNS4xIHN0ZXAgMy5mLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAibGVuZ3RoIiwgewogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIHRydWUgJiYgYXJyLmxlbmd0aCA9PT0gMDsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAg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QklMSVRZLAovLy8gT1IgVE9SVCAoSU5DTFVESU5HIE5FR0xJR0VOQ0UgT1IgT1RIRVJXSVNFKSBBUklTSU5HIElOIEFOWSBXQVkgT1VUIE9GIFRIRSBVU0UgT0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRgovLy8gQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0xNi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhIE51bWJlciBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gZ2V0ICdQJyAoOC4xMi45IHN0ZXAgMSApICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSBuZXcgTnVtYmVyKC05KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYX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jdC5kZWZpbmVQcm9wZXJ0eShhcnIsICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAwCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcnIubGVuZ3RoID09PSAyICYmIGFyclswXSA9PT0gMCAmJiBhcnJbMV0gPT09IDE7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-160","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-160.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE2MSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE2MS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksICB0ZXN0IHRoZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIG9mIHRoZSBsZW5ndGggcHJvcGVydHkgaXMgc2V0IHRvIHRydWUgYXQgbGFzdCBhZnRlciBkZWxldGluZyBwcm9wZXJ0aWVzIHdpdGggbGFyZ2UgaW5kZXggbmFtZWQgaWYgdGhlIFtbV3JpdGFibGVdXSBmaWVsZCBvZiAnZGVzYycgaXMgYWJzZW50ICgxNS40LjUuMSBzdGVwIDMuaCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gWzAsIDFdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIGFyci5sZW5ndGggPSAxMDsgLy90cnkgdG8gb3ZlcndyaXRlIGxlbmd0aCB2YWx1ZSBvZiBhcnIKICAgICAgICByZXR1cm4gIWFyci5oYXNPd25Qcm9wZXJ0eSgiMSIpICYmIGFyci5sZW5ndGggPT09IDEwICYmIGFyclswXSA9PT0gMDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-161","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-161.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE2MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctN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CB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMCwKICAgICAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXN1bHQgPSAoYXJyLmxlbmd0aCA9PT0gMik7CiAgICAgICAgICAgIGFyci5sZW5ndGggPSAxMDsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiByZXN1bHQgJiYgYXJyLmxlbmd0aCA9PT0gMjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-164","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-164.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE2NSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE2NS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIGxlbmd0aCBwcm9wZXJ0eSBpcyBkZWNyZWFzZWQgYnkgMSAoMTUuNC41LjEgc3RlcCAzLmwuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gWzAsIDEsIDJdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMiIsIHsKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFyci5sZW5ndGggPT09IDIgJiYKICAgICAgICAgICAgICAgICFhcnIuaGFzT3duUHJvcGVydHkoIjIiKSAmJiBhcnJbMF0gPT09IDAgJiYgYXJyWzFdID09PSAxOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-165","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-165.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE2NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE2Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIG93biBkYXRhIHByb3BlcnR5IHdpdGggbGFyZ2UgaW5kZXggbmFtZWQgaW4gJ08nIGNhbiBzdG9wIGRlbGV0aW5nIGluZGV4IG5hbWVkIHByb3BlcnRpZXMgKDE1LjQuNS4xIHN0ZXAgMy5sLmlpKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbMCwgMV07CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIxIiwgewogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGFyci5sZW5ndGggPT09IDIgJiYKICAgICAgICAgICAgICAgIGFyci5oYXNPd25Qcm9wZXJ0eSgiMSIpICYmIGFyclswXSA9PT0gMCAmJiBhcnJbMV0gPT09IDE7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-166","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-166.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE2NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE2Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5IHdpdGggbGFyZ2UgaW5kZXggbmFtZWQgaW4gJ08nIGNhbid0IHN0b3AgZGVsZXRpbmcgaW5kZXggbmFtZWQgcHJvcGVydGllcyAoMTUuNC41LjEgc3RlcCAzLmwuaWkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFswLCAxXTsKICAgICAgICB0cnkgewogICAgICAgICAgICBBcnJheS5wcm90b3R5cGVbMV0gPSAyOyAvL3dlIGFyZSBub3QgYWxsb3dlZCB0byBzZXQgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIHByb3BlcnR5ICIxIiB0byBmYWxzZSBoZXJlLCBzaW5jZSBBcnJheS5wcm90b3R5cGUgaXMgYSBnbG9iYWwgb2JqZWN0LCBhbmQgbm9uLWNvbmZpZ3VyYmFsZSBwcm9wZXJ0eSBjYW4ndCByZXZlcnQgdG8gY29uZmlndXJhYmxlCgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGFyci5sZW5ndGggPT09IDEgJiYgIWFyci5oYXNPd25Qcm9wZXJ0eSgiMSIpICYmIGFyclswXSA9PT0gMCAmJiBBcnJheS5wcm90b3R5cGVbMV0gPT09IDI7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZVsxXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-167","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-167.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlk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jYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcnIubGVuZ3RoID09PSAyICYmCiAgICAgICAgICAgICAgICBhcnIuaGFzT3duUHJvcGVydHkoIjEiKSAmJiBhcnJbMF0gPT09IDAgJiYgYXJyWzFdID09PSAxOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMV07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-168","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-168.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE2OSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE2OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIG93biBkYXRhIHByb3BlcnR5IHdpdGggbGFyZ2UgaW5kZXggbmFtZWQgaW4gJ08nIHRoYXQgb3ZlcnJpZGVzIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSBjYW4gc3RvcCBkZWxldGluZyBpbmRleCBuYW1lZCBwcm9wZXJ0aWVzICgxNS40LjUuMSBzdGVwIDMubC5paSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgCiAgICAgICAgdmFyIGFyciA9IFswLCAxXTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcnIubGVuZ3RoID09PSAyICYmIGFyci5oYXNPd25Qcm9wZXJ0eSgiMSIpICYmCiAgICAgICAgICAgICAgICBhcnJbMF0gPT09IDAgJiYgYXJyWzFdID09PSAxICYmIEFycmF5LnByb3RvdHlwZVsxXSA9PT0gMjsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzFdOwogICAgICAgIH0K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ICAgICB2YWx1ZTogMTIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBoYXNQcm9wZXJ0eSAmJiBNYXRoLnByb3AgPT09IDEyOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBNYXRoLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-17","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-17.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE3MCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE3MC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRoIGxhcmdlIGluZGV4IG5hbWVkIGluICdPJyBjYW4gc3RvcCBkZWxldGluZyBpbmRleCBuYW1lZCBwcm9wZXJ0aWVzICgxNS40LjUuMSBzdGVwIDMubC5paSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gWzAsIDFdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBhcnIubGVuZ3RoID09PSAyICYmCiAgICAgICAgICAgICAgICBhcnIuaGFzT3duUHJvcGVydHkoIjEiKSAmJiBhcnJbMF0gPT09IDAgJiYgYXJyWzFdID09PSAxOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-170","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-170.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLj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cmJhbGUgcHJvcGVydHkgY2FuJ3QgcmV2ZXJ0IHRvIGNvbmZpZ3VyYWJsZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gYXJyLmxlbmd0aCA9PT0gMSAmJiAhYXJyLmhhc093blByb3BlcnR5KCIxIikgJiYgYXJyWzBdID09PSAwICYmIEFycmF5LnByb3RvdHlwZVsxXSA9PT0gMTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzFdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-171","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-171.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE3MiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE3Mi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIG9mIG93biBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRoIGxhcmdlIGluZGV4IG5hbWVkIGluICdPJyB0aGF0IG92ZXJyaWRlcyBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSBjYW4gc3RvcCBkZWxldGluZyBpbmRleCBuYW1lZCBwcm9wZXJ0aWVzICgxNS40LjUuMSBzdGVwIDMubC5paSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgCiAgICAgICAgdmFyIGFyciA9IFswLCAxXTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBBcnJheS5wcm90b3R5cGVbMV0gPSAzOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYXJyLmxlbmd0aCA9PT0gMiAmJgogICAgICAgICAgICAgICAgYXJyLmhhc093blByb3BlcnR5KCIxIikgJiYgY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41LjEgc3RlcCAzLmwuaWkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFswLCAxXTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAiMSIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAyOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFyci5sZW5ndGggPT09IDIgJiYgYXJyLmhhc093blByb3BlcnR5KCIxIikgJiYKICAgICAgICAgICAgICAgIGFyclswXSA9PT0gMCAmJiBhcnJbMV0gPT09IDEgJiYgQXJyYXkucHJvdG90eXBlWzFdID09PSAyOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMV07CiAgICAgICAgfQogICAg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m9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgbGVuZ3RoOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgKGFyci5sZW5ndGggPT09IDIpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQoKfSk7Cg==","id":"15.2.3.7-6-a-175","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-175.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE3NiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE3Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbV3JpdGFibGVdXSBhdHRyaWJ1dGUgb2YgdGhlIGxlbmd0aCBwcm9wZXJ0eSBpcyBzZXQgdG8gZmFsc2UgYXQgbGFzdCB3aGVuIHRoZSBbW1dyaXRhYmxlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGZhbHNlIGFuZCAnTycgY29udGFpbnMgbm9uLWNvbmZpZ3VyYWJsZSBsYXJnZSBpbmRleCBuYW1lZCBwcm9wZXJ0eSAoMTUuNC41LjEgc3RlcCAzLmwuaWlpLjIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyciA9IFswLCAxXTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjEiLCB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICBsZW5ndGg6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMSwKICAgICAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIGFyci5sZW5ndGggPSAxMDsgLy90cnkgdG8gb3ZlcndyaXRlIGxlbmd0aCB2YWx1ZSBvZiBhcnIKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYXJyLmhhc093blByb3BlcnR5KCIxIikgJiYKICAgICAgICAgICAgICAgIGFyci5sZW5ndGggPT09IDIgJiYgYXJyWzBdID09PSAwICYmIGFyclsxXSA9PT0gMTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KCn0pOwo=","id":"15.2.3.7-6-a-176","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-176.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE3NyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE3Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIHRoZSBsZW5ndGggcHJvcGVydHkgb2YgJ08nLCB0aGUgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBsZXNzIHRoYW4gdmFsdWUgb2YgIHRoZSBsZW5ndGggcHJvcGVydHksIHRlc3QgdGhlIFtbV3JpdGFibGVdXSBhdHRyaWJ1dGUgb2YgdGhlIGxlbmd0aCBwcm9wZXJ0eSBpcyBzZXQgdG8gZmFsc2UgYXQgbGFzdCB3aGVuIHRoZSBbW1dyaXRhYmxlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIGZhbHNlIGFuZCAnTycgZG9lc24ndCBjb250YWluIG5vbi1jb25maWd1cmFibGUgbGFyZ2UgaW5kZXggbmFtZWQgcHJvcGVydHkgKDE1LjQuNS4xIHN0ZXAgMy5tKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAKICAgICAgICB2YXIgYXJyID0gWzAsIDFdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgIGxlbmd0aDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAwLAogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIGFyci5sZW5ndGggPSAxMDsgLy90cnkgdG8gb3ZlcndyaXRlIGxlbmd0aCB2YWx1ZSBvZiBhcnIKICAgICAgICAgICAgcmV0dXJuICFhcnIuaGFzT3duUHJvcGVydHkoIjEiKSAmJiBhcnIubGVuZ3RoID09PSAwICYmICFhcnIuaGFzT3duUHJvcGVydHkoIjAiKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-177","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-177.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewoKICAgIGlkOiAiMTUuMi4zLjctNi1hLTE3OCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTE3OC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBBcnJheSwgJ1AnIGlzIGFuIGFycmF5IGluZGV4IG5hbWVkIHByb3BlcnR5LCAnUCcgaXMgYXZhaWxhYmxlIFN0cmluZyB2YWx1ZXMgdGhhdCBjb252ZXJ0IHRvIG51bWJlcnMgKDE1LjQuNS4xIHN0ZXAgNC5hKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbMF07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMgogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyclswXSA9PT0gMTI7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cgp9KTsK","id":"15.2.3.7-6-a-178","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-178.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTc5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTc5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBib3VuZGFyeSB2YWx1ZSAyXjMyIC0gMiAoMTUuNC41LjEgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiNDI5NDk2NzI5NCI6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYXJyLmhhc093blByb3BlcnR5KCI0Mjk0OTY3Mjk0IikgJiYgYXJyLmxlbmd0aCA9PT0gNDI5NDk2NzI5NSAmJiBhcnJbNDI5NDk2NzI5NF0gPT09IDEwMDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZ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0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRgovLy8gQURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0xOC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhIERhdGUgb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldE93blByb3BlcnR5XV0gbWV0aG9kIHRvIGdldCAnUCcgKDguMTIuOSBzdGVwIDEgKSAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0gbmV3IERhdGUoKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wIiwg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vbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-180","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-180.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTgxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTgxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBib3VuZGFyeSB2YWx1ZSAyXjMyICgxNS40LjUuMSBzdGVwIDQuYSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICI0Mjk0OTY3Mjk2IjogewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMAogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhcnIuaGFzT3duUHJvcGVydHkoIjQyOTQ5NjcyOTYiKSAmJiBhcnIubGVuZ3RoID09PSAwICYmIGFycls0Mjk0OTY3Mjk2XSA9PT0gMTAwOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-181","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-181.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTgyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTgyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBib3VuZGFyeSB2YWx1ZSAyXjMyICsgMSAoMTUuNC41LjEgc3RlcCA0LmEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiNDI5NDk2NzI5NyI6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYXJyLmhhc093blByb3BlcnR5KCI0Mjk0OTY3Mjk3IikgJiYgYXJyLmxlbmd0aCA9PT0gMCAmJiBhcnJbNDI5NDk2NzI5N10gPT09IDEwMDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-182","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-182.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTgzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYX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xICYmCiAgICAgICAgICAgICAgICBhcnJbMV0gPT09IDIgJiYgYXJyWzJdID09PSAzICYmICFhcnIuaGFzT3duUHJvcGVydHkoIjMiKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-184","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-184.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTg1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTg1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gVHlwZUVycm9yIGlzIHRocm93biBpZiAnTycgaXMgYW4gQXJyYXksICdQJyBpcyBhbiBhcnJheSBpbmRleCBuYW1lZCBwcm9wZXJ0eSxbW1dyaXRhYmxlXV0gYXR0cmlidXRlIG9mIHRoZSBsZW5ndGggcHJvcGVydHkgaW4gJ08nIGlzIGZhbHNlLCB2YWx1ZSBvZiAnUCcgaXMgYmlnZ2VyIHRoYW4gdmFsdWUgb2YgdGhlIGxlbmd0aCBwcm9wZXJ0eSBpbiAnTycgICgxNS40LjUuMSBzdGVwIDQuYikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbMSwgMiwgM107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICJsZW5ndGgiLCB7CiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICI0IjogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAiYWJjIgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFyclswXSA9PT0gMSAmJiBhcnJbMV0gPT09IDIgJiYKICAgICAgICAgICAgICAgIGFyclsyXSA9PT0gMyAmJiAhYXJyLmhhc093blByb3BlcnR5KCIzIikgJiYgIWFyci5oYXNPd25Qcm9wZXJ0eSgiNCIpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-185","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-185.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTg2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTg2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsIDAsIHsKICAgICAgICAgICAgdmFsdWU6ICJvd25EYXRhUHJvcGVydHkiLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6ICJhYmMiLAogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYXJyWzBdID09PSAib3duRGF0YVByb3BlcnR5IjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-186","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-186.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTg3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTg3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEFycmF5LnByb3RvdHlwZSwgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBhcnIuaGFzT3duUHJvcGVydHkoIjAiKSAmJiB0eXBlb2YgYXJyWzBdID09PSAidW5kZWZpbmVkIiAmJiBBcnJheS5wcm90b3R5cGVbMF0gPT09IDExOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMF07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-187","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-187.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTg4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTg4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgZGF0YSBwcm9wZXJ0eSAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEFycmF5LnByb3RvdHlwZSwgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgYXJyID0gW107CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDEyLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhcnJbMF0gPT09IDEyICYmIEFycmF5LnByb3RvdHlwZVswXSA9PT0gMTE7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZVswXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-188","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-188.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTg5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTg5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBvd24gZGF0YSBwcm9wZXJ0eSB0aGF0IG92ZXJyaWRlcyBhbiBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHZhciBhcnIgPSBbXTsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIGFyclswXSA9PT0gMTIgJiYgQXJyYXkucHJvdG90eXBlWzBdID09PSAxMTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgQXJyYXkucHJvdG90eXBlWzBdOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-189","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-189.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIG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5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhIFJlZ0V4cCBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gZ2V0ICdQJyAoOC4xMi45IHN0ZXAgMSApICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSBuZXcgUmVnRXhwKCk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEyLAogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAicHJvcCIsIDExLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-19","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-19.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTkwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTkwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjAiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYXJyWzBdID09PSAxMTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-190","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-190.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTkxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTkxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksICdQJyBpcyBpbmhlcml0ZWQgYWNjZXNzb3IgcHJvcGVydHkgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShBcnJheS5wcm90b3R5cGUsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBhcnIuaGFzT3duUHJvcGVydHkoIjAiKSAmJiBhcnJbMF0gPT09IDEyICYmIEFycmF5LnByb3RvdHlwZVswXSA9PT0gMTE7CiAgICAgICAgfSBmaW5hbGx5IHsKICAgICAgICAgICAgZGVsZXRlIEFycmF5LnByb3RvdHlwZVswXTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-191","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-191.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTkyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTkyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KEFycmF5LnByb3RvdHlwZSwgIjAiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgYXJyID0gW107CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDEyOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYXJyWzBdID09PSAxMiAmJiBBcnJheS5wcm90b3R5cGVbMF0gPT09IDExOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMF07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-192","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-192.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTkzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTkzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoQXJyYXkucHJvdG90eXBlLCAiMCIsIHsKICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICB2YXIgYXJyID0gW107CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDEyOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfSk7CgogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IgJiYgYXJyWzBdID09PSAxMiAmJiBBcnJheS5wcm90b3R5cGVbMF0gPT09IDExOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBBcnJheS5wcm90b3R5cGVbMF07CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-193","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-193.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTk0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTk0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gJ08nIGlzIG5vdCBleHRlbnNpYmxlICAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CiAgICAgICAgT2JqZWN0LnByZXZlbnRFeHRlbnNpb25zKGFycik7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgKGFyci5oYXNPd25Qcm9wZXJ0eSgiMCIpID09PSBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5wcmV2ZW50RXh0ZW5zaW9ucyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-194","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-194.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAg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AgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIGlzT3duUHJvcGVydHkgPSBhcnIuaGFzT3duUHJvcGVydHkoIjAiKTsKICAgICAgICBmb3IgKHZhciBpIGluIGFycikgewogICAgICAgICAgICBpZiAoaSA9PT0gIjAiKSB7CiAgICAgICAgICAgICAgICBjYW5FbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICByZXR1cm4gaXNPd25Qcm9wZXJ0eSAmJiAhY2FuRW51bWVyYWJsZSAmJiBhcnJbMF0gPT09IDEwMDE7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-198","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-198.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMTk5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMTk5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0NvbmZpZ3VyYWJsZV1dIG9mICdQJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgc2V0IGFzIGZhbHNlIHZhbHVlIGlmIFtbQ29uZmlndXJhYmxlXV0gaXMgYWJzZW50IGluIGRhdGEgZGVzY3JpcHRvciAnZGVzYycgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbXTsKICAgICAgICB2YXIgYmVmb3JlRGVsZXRlZCA9IGZhbHNlOwogICAgICAgIHZhciBhZnRlckRlbGV0ZWQgPSBmYWxzZTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICBiZWZvcmVEZWxldGVkID0gYXJyLmhhc093blByb3BlcnR5KCIwIik7CiAgICAgICAgZGVsZXRlIGFyclswXTsKICAgICAgICBhZnRlckRlbGV0ZWQgPSBhcnIuaGFzT3duUHJvcGVydHkoIjAiKTsKICAgICAgICByZXR1cm4gYmVmb3JlRGVsZXRlZCAmJiBhZnRlckRlbGV0ZWQgJiYgYXJyWzBdID09PSAxMDAxOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-199","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-199.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTIuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUCcgaXMgaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEgKSAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgb2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgdmFsdWU6IDEyLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgInByb3AiLCAxMiwgZmFsc2UsIGZhbHNlLCB0cnVlKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-2","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-2.js"},{"code":"77u/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oKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0yMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhIEpTT04gb2JqZWN0IHdoaWNoIGltcGxlbWVudHMgaXRzIG93biBbW0dldE93blByb3BlcnR5XV0gbWV0aG9kIHRvIGdldCAnUCcgKDguMTIuOSBzdGVwIDEgKSAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoSlNPTiwgInByb3AiLCB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgdmFyIGhhc1Byb3BlcnR5ID0gSlNPTi5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIEpTT04ucHJvcCA9PT0gMTE7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKEpTT04sIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBoYXNQcm9wZXJ0eSAmJiBKU09OLnByb3AgPT09IDEyOwogICAgICAgIH0gZmluYWxseSB7CiAgICAgICAgICAgIGRlbGV0ZSBKU09OLnByb3A7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuR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nJlY3QoYXJyLCAiMCIsIDEwMDEsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-200","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-200.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjAxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjAxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0dldF1dIG9mICdQJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgc2V0IGFzIHVuZGVmaW5lZCB2YWx1ZSBpZiBbW0dldF1dIGlzIGFic2VudCBpbiBhY2Nlc3NvciBkZXNjcmlwdG9yICdkZXNjJyAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICgpIHsgfSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYXJyLmhhc093blByb3BlcnR5KCIwIikgJiYgdHlwZW9mIChhcnJbMF0pID09PSAidW5kZWZpbmVkIjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-201","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-201.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjAyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjAyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBwcm9wZXJ0eSBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW1NldF1dIG9mICdQJyBwcm9wZXJ0eSBpbiAnQXR0cmlidXRlcycgaXMgc2V0IGFzIHVuZGVmaW5lZCB2YWx1ZSBpZiBbW1NldF1dIGlzIGFic2VudCBpbiBhY2Nlc3NvciBkZXNjcmlwdG9yICdkZXNjJyAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTE7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgZ2V0OiBnZXRGdW5jLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciB2ZXJpZnlFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgZm9yICh2YXIgaSBpbiBhcnIpIHsKICAgICAgICAgICAgaWYgKGkgPT09ICIwIiAmJiBhcnIuaGFzT3duUHJvcGVydHkoIjAiKSkgewogICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihhcnIsICIwIik7CiAgICAgICAgdmFyIHByb3BlcnR5RGVmaW5lQ29ycmVjdCA9IGFyci5oYXNPd25Qcm9wZXJ0eSgiMCIpOwoKICAgICAgICB2YXIgdmVyaWZ5Q29uZmlndXJhYmxlID0gZmFsc2U7CiAgICAgICAgZGVsZXRlIGFyclswXTsKICAgICAgICB2ZXJpZnlDb25maWd1cmFibGUgPSBhcnIuaGFzT3duUHJvcGVydHkoIjAiKTsKICAgICAgICByZXR1cm4gdHlwZW9mIGRlc2Muc2V0ID09PSAidW5kZWZpbmVkIiAmJiBwcm9wZXJ0eURlZmluZUNvcnJlY3QgJiYKICAgICAgICAgICAgZGVzYy5nZXQgPT09IGdldEZ1bmMgJiYgIXZlcmlmeUNvbmZpZ3VyYWJsZSAmJiB2ZXJpZnlFbnVtZXJhYmxlOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcm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ICAgICAgICB2YXIgYXJyID0gW107CiAgICAgICAgdmFyIGJlZm9yZURlbGV0ZWQgPSBmYWxzZTsKICAgICAgICB2YXIgYWZ0ZXJEZWxldGVkID0gZmFsc2U7CiAgICAgICAgYXJyLnZlcmlmeVNldHRlciA9IDEwMDsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgICAgICAgICBhcnIudmVyaWZ5U2V0dGVyID0gdmFsdWU7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGFyci52ZXJpZnlTZXR0ZXI7CiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIGJlZm9yZURlbGV0ZWQgPSBhcnIuaGFzT3duUHJvcGVydHkoIjAiKTsKICAgICAgICBkZWxldGUgYXJyWzBdOwogICAgICAgIGFmdGVyRGVsZXRlZCA9IGFyci5oYXNPd25Qcm9wZXJ0eSgiMCIpOwoKICAgICAgICBhcnJbMF0gPSAxMDE7CgogICAgICAgIHJldHVybiBiZWZvcmVEZWxldGVkICYmIGFmdGVyRGVsZXRlZCAmJiBhcnJbMF0gPT09IDEwMSAmJiBhcnIudmVyaWZ5U2V0dGVyID09PSAxMDE7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-204","path":"TestCases/chapter15/15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NDsKICAgICAgICB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuLAogICAgICAgICAgICAgICAgc2V0OiBzZXRGdW4sCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjAiLCBnZXRGdW4sIHNldEZ1biwgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-205","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-205.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjA2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjA2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBtYWtlcyBubyBjaGFuZ2UgaWYgZXZlcnkgZmllbGQgaW4gJ2Rlc2MnIGlzIGFic2VudCAobmFtZSBpcyBkYXRhIHByb3BlcnR5KSAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBhcnJbMF0gPSAxMDE7IC8vIGRlZmF1bHQgdmFsdWUgb2YgYXR0cmlidXRlczogd3JpdGFibGU6IHRydWUsIGNvbmZpZ3VyYWJsZTogdHJ1ZSwgZW51bWVyYWJsZTogdHJ1ZQoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIwIjoge30KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIwIiwgMTAxLCB0cnVlLCB0cnVlLCB0cnVlKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-206","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-206.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjA3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjA3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0g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gICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjAiLCAxMDAsIHRydWUsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-208","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-208.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjA5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjA5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksICdQJyBtYWtlcyBubyBjaGFuZ2UgaWYgdGhlIHZhbHVlIG9mIGV2ZXJ5IGZpZWxkIGluICdkZXNjJyBpcyB0aGUgc2FtZSB2YWx1ZSBhcyB0aGUgY29ycmVzcG9uZGluZyBmaWVsZCBpbiAnUCcoZGVzYyBpcyBhY2Nlc3NvciBwcm9wZXJ0eSkgICgxNS40Lj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QURWSVNFRCBPRiBUSEUgUE9TU0lCSUxJVFkgT0YgU1VDSCBEQU1BR0UuCgoKRVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0yMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyBhbiBFcnJvciBvYmplY3Qgd2hpY2ggaW1wbGVtZW50cyBpdHMgb3duIFtbR2V0T3duUHJvcGVydHldXSBtZXRob2QgdG8gZ2V0ICdQJyAoOC4xMi45IHN0ZXAgMSApICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSBuZXcgRXJyb3IoKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wIiwgMTEsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-21","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-21.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjEwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjEwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIGJvdGggdGhlIFtbVmFsdWVdXSBmaWVsZCBvZiAnZGVzYycgYW5kIHRoZSBbW1ZhbHVlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBhcmUgdW5kZWZpbmVkICAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICB2YWx1ZTogdW5kZWZpbmVkCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiB1bmRlZmluZWQKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcG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wKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIwIiwgbnVsbCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-211","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-211.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjEyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjEyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIGJvdGggdGhlIFtbVmFsdWVdXSBmaWVsZCBvZiAnZGVzYycgYW5kIHRoZSBbW1ZhbHVlXV0gYXR0cmlidXRlIHZhbHVlIG9mICduYW1lJyBhcmUgTmFOICAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICB2YWx1ZTogTmFOCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiBOYU4KICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMCIsIE5hTiwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-212","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-212.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjEzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjEzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzICswLCBhbmQgdGhlIFtbVmFsdWVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIGlzIC0wICAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICB2YWx1ZTogLTAKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogKzAKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMCIsIC0wLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-213","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-213.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjE0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjE0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIC0wLCBhbmQgdGhlIFtbVmFsdWVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ25hbWUnIGlzICswICAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICB2YWx1ZTogKzAKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogLTAKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMCIsICswLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-214","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-214.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjE1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjE1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGFuZCB0aGUgW1tWYWx1ZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgYXJlIHR3byBudW1iZXJzIHdpdGggc2FtZSB2YXVsZSAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMCIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwMQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMDEKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIwIiwgMTAxLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-215","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-215.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4y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uY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-216","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-216.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjE3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjE3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnbmFtZScgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIHRoZSBbW1ZhbHVlXV0gZmllbGQgb2YgJ2Rlc2MnIGFuZCB0aGUgW1tWYWx1ZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnbmFtZScgYXJlIHR3byBib29sZWFucyB3aXRoIHNhbWUgdmFsdWUgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjAiLCB7CiAgICAgICAgICAgIHZhbHVlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXR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cm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICB2YWx1ZTogb2JqMQogICAgICAgIH0pOwoKICAgICAgICB2YXIgcHJvcGVydGllcyA9IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogb2JqMQogICAgICAgICAgICB9CiAgICAgICAgfTsKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHByb3BlcnRpZXMpOwogICAgICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMCIsIG9iajEsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-218","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-218.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjE5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjE5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHkgdGhhdCBhbHJlYWR5IGV4aXN0cyBvbiAnTycgd2l0aCBbW1dyaXRhYmxlXV0gdHJ1ZSwgYW5kIHRoZSBbW1dyaXRhYmxlXV0gZmllbGQgb2YgJ2Rlc2MnIGlzIHRydWUgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjAiLCB7CiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIwIiwgdW5kZWZpbmVkLCB0cnVlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-219","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-219.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0yMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyB0aGUgQXJndW1lbnRzIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRPd25Qcm9wZXJ0eV1dIG1ldGhvZCB0byBnZXQgJ1AnICg4LjEyLjkgc3RlcCAxICkgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJnID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gYXJndW1lbnRzOwogICAgICAgIH0oKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZywgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-22","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2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B9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-220","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-220.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjIxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjIxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIHRoZSBbW0dldF1dIGZpZWxkIG9mICdkZXNjJyBhbmQgdGhlIFtbR2V0XV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyBhcmUgdHdvIG9iamVjdHMgd2hpY2ggcmVmZXIgdG8gdGhlIHNhbWUgb2JqZWN0ICAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIGZ1bmN0aW9uIGdldF9mdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRfZnVuYwogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICA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biB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIGZ1bmN0aW9uIHNldF9mdW5jKHZhbHVlKSB7CiAgICAgICAgICAgIGFyci5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjAiLCB7CiAgICAgICAgICAgIHNldDogc2V0X2Z1bmMKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICBzZXQ6IHNldF9mdW5jCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjAiLCB1bmRlZmluZWQsIHNldF9mdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-222","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-222.js"},{"code":"RVM1SGFybmVzcy5yZWd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5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-223","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-223.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjI0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjI0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHkgdGhhdCBhbHJlYWR5IGV4aXN0cyBvbiAnTycgd2l0aCAgW1tFbnVtZXJhYmxlXV0gdHJ1ZSwgdGhlIFtbRW51bWVyYWJsZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBmYWxzZSAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMCIsIHsKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXRhU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woKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjAiLCB1bmRlZmluZWQsIGZhbHNlLCBmYWxzZSwgdHJ1ZSk7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-225","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-225.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjI2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjI2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHkgdGhhdCBhbHJlYWR5IGV4aXN0cyBvbiAnTycgd2l0aCBbW0NvbmZpZ3VyYWJsZV1dIHRydWUsIHRoZSBbW0NvbmZpZ3VyYWJsZV1dIGZpZWxkIG9mICdkZXNjJyBpcyBmYWxzZSAoMTUuNC41LjEgc3RlcCA0LmMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMCIsIHVuZGVmaW5lZCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-226","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-226.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjI3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjI3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVz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YmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-227","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-227.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjI4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjI4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIFR5cGVFcnJvciBpcyB0aHJvd24gaWYgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyBpcyBmYWxzZSwgYW5kIFtbRW51bWVyYWJsZV1dIG9mICdkZXNjJyBpcyBwcmVzZW50IGFuZCBpdHMgdmFsdWUgaXMgZGlmZmVyZW50IGZyb20gdGhlIFtbRW51bWVyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnUCcgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIxIiwgewogICAgICAgICAgICB2YWx1ZTogMywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjEiOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEzLAogICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIxIiwgMywgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-228","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-228.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjI5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjI5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIFR5cGVFcnJvciBpcyB0aHJvd24gaWYgJ1AnIGlzIGFjY2Vzc29yIHByb3BlcnR5LCBhbmQgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgYW5kIHRoZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnUCcgaXMgZmFsc2UgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIGZ1bmN0aW9uIHNldF9mdW4odmFsdWUpIHsKICAgICAgICAgICAgYXJyLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgc2V0OiBzZXRfZnVuLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCgogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwoKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMSIsIHVuZGVmaW5lZCwgc2V0X2Z1biwgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-229","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-229.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjMwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjMwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksIFR5cGVFcnJvciBpcyB0aHJvd24gaWYgICdQJyBpcyBkYXRhIHByb3BlcnR5LCBhbmQnZGVzYycgaXMgYWNjZXNzb3IgZGVzY3JpcHRvciwgYW5kIHRoZSBbW0NvbmZpZ3VyYWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnUCcgaXMgZmFsc2UgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIxIiwgewogICAgICAgICAgICB2YWx1ZTogMywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKCkgeyB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuIChleCBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgZG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cnJbMV0gPSAzOyAvLyBkZWZhdWx0IHZhbHVlIG9mIGF0dHJpYnV0ZXM6IHdyaXRhYmxlOiB0cnVlLCBjb25maWd1cmFibGU6IHRydWUsIGVudW1lcmFibGU6IHRydWUKCiAgICAgICAgZnVuY3Rpb24gc2V0X2Z1bih2YWx1ZSkgewogICAgICAgICAgICBhcnIuc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAgIHNldDogc2V0X2Z1bgogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMSIsIHVuZGVmaW5lZCwgc2V0X2Z1biwgInNldFZlcmlmeUhlbHBQcm9wIiwgdHJ1ZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-231","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-231.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjMyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjMyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbm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R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-232","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-232.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjMzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjMzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksICdQJyBpcyBkYXRhIHByb3BlcnR5IGFuZCAnZGVzYycgaXMgZGF0YSBkZXNjcmlwdG9yLCBhbmQgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyBpcyBmYWxzZSwgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIGlmIHRoZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyBpcyBmYWxzZSBhbmQgdGhlIFtbV3JpdGFibGVdXSBmaWVsZCBvZiAnZGVzYycgaXMgdHJ1ZS4gICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIxIiwgewogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjEiOiB7CiAgICAgICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIxIiwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-233","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-233.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjM0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjM0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggcHJvcGVydHksICdQJyBpcyBkYXRhIHByb3BlcnR5IGFuZCAnZGVzYycgaXMgZGF0YSBkZXNjcmlwdG9yLCBhbmQgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyBpcyBmYWxzZSwgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIGlmIHRoZSBbW1dyaXRhYmxlXV0gYXR0c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-234","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-234.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjM1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjM1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gVHlwZUVycm9yIGlzIHRocm93biBpZiAnTycgaXMgYW4gQXJyYXksICdQJyBpcyBhbiBhcnJheSBpbmRleCBuYW1lZCBwcm9wZXJ0eSB0aGF0IGFscmVhZHkgZXhpc3RzIG9uICdPJyBpcyBkYXRhIHByb3BlcnR5IHdpdGggIFtbQ29uZmlndXJhYmxlXV0sIFtbV3JpdGFibGVdXSBmYWxzZSwgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBpcyArMCwgYW5kIHRoZSBbW1ZhbHVlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyBpcyAtMCAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgdmFsdWU6ICswCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjEiOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IC0wCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjY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VzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgdmFsdWU6IC0wCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjEiOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6ICswCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiAoZXggaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjEiLCAtMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-236","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-236.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjM3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjM3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gVHlwZUVycm9yIGlz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gICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAiZWZnaCIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIxIiwgImFiY2QiLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-238","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-238.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjM5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjM5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gVHlwZUVycm9yIGlzIHRocm93biBpZiAnTycgaXMgYW4gQXJyYXksICdQJyBpcyBhbiBhcnJheSBpbmRleCBuYW1lZCBwcm9wZXJ0eSB0aGF0IGFscmVhZHkgZXhpc3RzIG9uICdPJyBpcyBkYXRhIHByb3BlcnR5IHdpdGggIFtbQ29uZmlndXJhYmxlXV0sIFtbV3JpdGFibGVdXSBmYWxzZSwgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgW1tWYWx1ZV1dIGZpZWxkIG9mICdkZXNjJyBhbmQgdGhlIFtbVmFsdWVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIGFyZSB0d28gYm9vbGVhbnMgd2l0aCBkaWZmZXJlbnQgdmFsdWVzICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjEiLCB7CiAgICAgICAgICAgIHZhbHVlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjEiOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGZhbHNlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiAoZXggaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjEiLCB0cnVlLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-239","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-239.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24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i4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0yNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdPJyBpcyB0aGUgZ2xvYmFsIG9iamVjdCB3aGljaCBpbXBsZW1lbnRzIGl0cyBvd24gW1tHZXRPd25Qcm9wZXJ0eV1dIG1ldGhvZCB0byBnZXQgJ1AnICg4LjEyLjkgc3RlcCAxICkgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGZuR2xvYmFsT2JqZWN0KCksICJwcm9wIiwgewogICAgICAgICAgICAgICAgdmFsdWU6IDExLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoZm5HbG9iYWxPYmplY3QoKSwgewogICAgICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGZuR2xvYmFsT2JqZWN0KCksICJwcm9wIiwgMTIsIHRydWUsIHRydWUsIHRydWUpOwogICAgICAgIH0gIGZpbmFsbHkgewogICAgICAgICAgICBkZWxldGUgZm5HbG9iYWxPYmplY3QoKS5wcm9wOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKS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ICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiBvYmoyCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiAoZXggaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjEiLCBvYmoxLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-240","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-240.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjQxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjQxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gVHlwZUVycm9yIGlzIHRocm93biBpZiAnTycgaXMgYW4gQXJyYXksICdQJyBpcyBhbiBhcnJheSBpbmRleCBuYW1lZCBwcm9wZXJ0eSB0aGF0IGFscmVhZHkgZXhpc3RzIG9uICdPJyBpcyBhY2Nlc3NvciBwcm9wZXJ0eSB3aXRoICBbW0NvbmZpZ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KICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgZnVuY3Rpb24gc2V0X2Z1bih2YWx1ZSkgewogICAgICAgICAgICBhcnIuc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgIjEiLCB7CiAgICAgICAgICAgIHNldDogc2V0X2Z1bgogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICAgICAgIHNldDogdW5kZWZpbmVkCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiAoZXggaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIxIiwgdW5kZWZpbmVkLCBzZXRfZnVuLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-242","path":"TestCases/chapter15/15.2/15.2.3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zYycgYW5kIHRoZSBbW0dldF1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnUCcgYXJlIHR3byBvYmplY3RzIHdoaWNoIHJlZmVyIHRvIHRoZSBkaWZmZXJlbnQgb2JqZWN0cyAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBmdW5jdGlvbiBnZXRfZnVuKCkgewogICAgICAgICAgICByZXR1cm4gMzY7CiAgICAgICAgfQogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIxIiwgewogICAgICAgICAgICBnZXQ6IGdldF9mdW4KICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDEyOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuIChleCBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjEiLCBnZXRfZnVuLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY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ICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMSIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRfZnVuCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjEiOiB7CiAgICAgICAgICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMSIsIGdldF9mdW4sIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-245","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-245.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjQ2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjQ2Lm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gICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMzYKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIwIiwgMzYsIHRydWUsIHRydWUsIHRydWUpOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-247","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-247.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjQ4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjQ4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHkgdGhhdCBhbHJlYWR5IGV4aXN0cyBvbiAnTycgaXMgZGF0YSBwcm9wZXJ0eSBhbmQgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgdGVzdCBzZXR0aW5nIHRoZSBbW1ZhbHVlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyBhcyB1bmRlZmluZWQgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRl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3JpcHRvciwgdGVzdCBzZXR0aW5nIHRoZSBbW1ZhbHVlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyBmcm9tIHVuZGVmaW5lZCB0byBub3JtYWwgdmFsdWUgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW3VuZGVmaW5lZF07CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEyCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMCIsIDEyLCB0cnVlLCB0cnVlLCB0cnVlKTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-249","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-249.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0yNS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gJ08nIGlzIG5vdCBleHRlbnNpYmxlICg4LjEyLjkgc3RlcCAzKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIE9iamVjdC5wcmV2ZW50RXh0ZW5zaW9ucyhvYmopOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiAhb2JqLmhhc093blByb3BlcnR5KCJwcm9wIik7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5wcmV2ZW50RXh0ZW5zaW9ucyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-25","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-25.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjUwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjUwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHkgdGhhdCBhbHJlYWR5IGV4aXN0cyBvbiAnTycgaXMgZGF0YSBwcm9wZXJ0eSBhbmQgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgdGVzdCB1cGRhdGluZyB0aGUgW1tXcml0YWJsZV1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnUCcgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gWzEwMF07CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMCIsIDEwMCwgZmFsc2UsIHRydWUsIHRydWUpOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-250","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-250.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjUxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjUxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHkgdGhhdCBhbHJlYWR5IGV4aXN0cyBvbiAnTycgaXMgZGF0YSBwcm9wZXJ0eSBhbmQgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgdGVzdCB1cGRhdGluZyB0aGUgW1tFbnVtZXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbMTJdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAiMCIsIDEyLCB0cnVlLCBmYWxzZSwgdHJ1ZSk7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-251","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-251.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6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.2.3.7-6-a-252","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-252.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjUzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjUzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHkgdGhhdCBhbHJlYWR5IGV4aXN0cyBvbiAnTycgaXMgZGF0YSBwcm9wZXJ0eSBhbmQgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgdGVzdCB1cGRhdGluZyBtdWx0aXBsZSBhdHRyaWJ1dGUgdmFsdWVzIG9mICdQJyAgKDE1LjQuNS4xIHN0ZXAgNC5jKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbMTJdOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAzNiwKICAgICAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjAiLCAzNiwgZmFsc2UsIHRydWUsIGZhbHNlKTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-253","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-253.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjU0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjU0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHkgdGhhdCBhbHJlYWR5IGV4aXN0cyBvbiAnTycgaXMgYWNjZXNzb3IgcHJvcGVydHkgYW5kICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIHRoZSBbW0dldF1dIGF0dHJpYnV0ZSB2YWx1ZSBvZiAnUCcgd2l0aCBkaWZmZXJlbnQgZ2V0dGVyIGZ1bmN0aW9uICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIGZ1bmN0aW9uIGdldF9mdW4oKSB7CiAgICAgICAgICAgIHJldHVybiAzNjsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAg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IgcHJvcGVydHkgYW5kICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHNldHRpbmcgdGhlIFtbR2V0XV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyBhcyB1bmRlZmluZWQgICgxNS40LjUuMSBzdGVwIDQuYykiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgIGdldDogdW5kZWZpbmVkCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjAiLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmblN1cHBvcnRzQXJyYXlJbmRleEdldHRlcnNPbkFycmF5cygpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-255","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.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W107CgogICAgICAgIGZ1bmN0aW9uIHNldF9mdW4odmFsdWUpIHsKICAgICAgICAgICAgYXJyLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAiMCIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIHNldDogc2V0X2Z1bgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIwIiwgdW5kZWZpbmVkLCBzZXRfZnVuLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgdHJ1ZSk7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-257","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-257.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3Rlcl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wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgc2V0OiBzZXRfZnVuCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgIjAiLCB1bmRlZmluZWQsIHNldF9mdW4sICJzZXRWZXJpZnlIZWxwUHJvcCIsIGZhbHNlLCB0cnVlKTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-259","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-259.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0yNi5qcyIsCgogICAgZGVzY3JpcH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ICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIwIiwgdW5kZWZpbmVkLCBzZXRfZnVuLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgdHJ1ZSk7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuU3VwcG9ydHNBcnJheUluZGV4R2V0dGVyc09uQXJyYXlzKCk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-260","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-260.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjYxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjYxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVz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meUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICIwIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgc2V0OiBzZXRfZnVuLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IGdldF9mdW4sCiAgICAgICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICIwIiwgZ2V0X2Z1biwgc2V0X2Z1biwgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5TdXBwb3J0c0FycmF5SW5kZXhHZXR0ZXJzT25BcnJheXMoKTs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gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-263","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-263.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjY0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjY0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIHRlc3QgdGhlIGxlbmd0aCBwcm9wZXJ0eSBvZiAnTycgaXMgc2V0IGFzIFRvVWludDMyKCdQJykgKyAxIGlmIFRvVWludDMyKCdQJykgZXF1YWxzIHRvIHZhbHVlIG9mIHRoZSBsZW5ndGggcHJvcGVydHkgaW4gJ08nICgxNS40LjUuMSBzdGVwIDQuZS5paSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIGFyci5sZW5ndGggPSAzOyAvLyBkZWZhdWx0IHZhbHVlIG9mIGxlbmd0aDogd3JpdGFibGU6IHRydWUsIGNvbmZpZ3VyYWJsZTogZmFsc2UsIGVudW1lcmFibGU6IGZhbHNlCgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiMyI6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAyNgogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyci5sZW5ndGggPT09IDQgJiYgYXJyWzNdID09PSAyNjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-264","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-264.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjY1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjY1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgYW4gYXJyYXkgaW5kZXggbmFtZWQgcHJvcGVydHksIHRlc3QgdGhlIGxlbmd0aCBwcm9wZXJ0eSBvZiAnTycgaXMgc2V0IGFzIFRvVWludDMyKCdQJykgKyAxIGlmIFRvVWludDMyKCdQJykgaXMgZ3JlYXRlciB0aGFuIHZhbHVlIG9mIHRoZSBsZW5ndGggcHJvcGVydHkgaW4gJ08nICgxNS40LjUuMSBzdGVwIDQuZS5paSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAiNSI6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAyNgogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFyci5sZW5ndGggPT09IDYgJiYgYXJyWzVdID09PSAyNjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmV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B9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-266","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-266.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjY3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjY3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgZ2VuZXJpYyBwcm9wZXJ0eSwgYW5kICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0ICdQJyBpcyBkZWZpbmVkIGluICdPJyB3aXRoIGFsbCBjb3JyZWN0IGF0dHJpYnV0ZSB2YWx1ZXMgKDE1LjQuNS4xIHN0ZXAgNSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIGZ1bmN0aW9uIGdldF9mdW4oKSB7CiAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICB9CiAgICAgICAgZnVuY3Rpb24gc2V0X2Z1bih2YWx1ZSkgewogICAgICAgICAgICBhcnIuc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAicHJvcGVydHkiOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldF9mdW4sCiAgICAgICAgICAgICAgICBzZXQ6IHNldF9mdW4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c3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcnIgPSBbXTsKICAgICAgICBmdW5jdGlvbiBnZXRfZnVuKCkgewogICAgICAgICAgICByZXR1cm4gMTI7CiAgICAgICAgfQogICAgICAgIGZ1bmN0aW9uIHNldF9mdW4odmFsdWUpIHsKICAgICAgICAgICAgYXJyLnZlcmlmeVNldEZ1biA9IHZhbHVlOwogICAgICAgIH0KICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDM2OwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICJwcm9wZXJ0eSI6IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0X2Z1biwKICAgICAgICAgICAgICAgIHNldDogc2V0X2Z1biwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgInByb3BlcnR5IiwgZ2V0X2Z1biwgc2V0X2Z1biwgInZlcmlmeVNldEZ1biIsIGZhbHNlLCB0cnVlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5l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JyZWN0KGFyciwgInByb3BlcnR5IiwgMTIsIGZhbHNlLCBmYWxzZSwgZmFsc2UpICYmIGFyci5sZW5ndGggPT09IDA7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-269","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-269.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0yNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW1ZhbHVlXV0gb2YgJ1AnIGlzIHNldCBhcyB1bmRlZmluZWQgdmFsdWUgaWYgYWJzZW50IGluIGRhdGEgZGVzY3JpcHRvciAnZGVzYycgKDguMTIuOSBzdGVwIDQuYS5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwoKICAgICAgICByZXR1cm4gZGVzYy5oYXNPd25Qcm9wZXJ0eSgidmFsdWUiKSAmJiB0eXBlb2YgZGVzYy52YW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1cmFibGUgKDE1LjQuNS4xIHN0ZXAgNSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJyID0gW107CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcnIsICJwcm9wZXJ0eSIsIHsKICAgICAgICAgICAgdmFsdWU6IDEyCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgInByb3BlcnR5IjogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAzNgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiAoZXggaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyciwgInByb3BlcnR5IiwgMTIsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-270","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-270.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjcxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjcxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0nTycgaXMgYW4gQXJyYXksICdQJyBpcyBnZW5lcmljIG93biBkYXRhIHByb3BlcnR5IG9mICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdXBkYXRpbmcgdGhlIFtbV3JpdGFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIGRlZmluZWQgYXMgbm9uLWNvbmZpZ3VyYWJsZSAoMTUuNC41LjEgc3RlcCA1KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgInByb3BlcnR5IiwgewogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAicHJvcGVydHkiOiB7CiAgICAgICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICJwcm9wZXJ0eSIsIHVuZGVmaW5lZCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-271","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-271.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjcyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjcyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgZ2VuZXJpYyBvd24gZGF0YSBwcm9wZXJ0eSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW0VudW1lcmFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIGRlZmluZWQgYXMgbm9uLWNvbmZpZ3VyYWJsZSAoMTUuNC41LjEgc3RlcCA1KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcnIgPSBbXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyciwgInByb3BlcnR5IiwgewogICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgInByb3BlcnR5IjogewogICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm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OiAxMgogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICJwcm9wZXJ0eSI6IHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcnIsICJwcm9wZXJ0eSIsIDEyLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-273","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-273.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjc0IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjc0LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgZ2VuZXJpYyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB1cGRhdGluZyB0aGUgW1tHZXRdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIGRlZmluZWQgYXMgbm9uLWNvbmZpZ3VyYWJsZSAoMTUuNC41LjEgc3RlcCA1KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyciA9IFtdOwoKICAgICAgICBmdW5jdGlvbiBnZXRfZnVuKCkgewogICAgICAgICAgICByZXR1cm4gMzc7CiAgICAgICAgfQogICAgICAgIGZ1bmN0aW9uIHNldF9mdW4odmFsdWUpIHsKICAgICAgICAgICAgYXJyLnZlcmlmeVNldEZ1biA9IHZhbHVlOwogICAgICAgIH0KICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJyLCAicHJvcGVydHkiLCB7CiAgICAgICAgICAgIGdldDogZ2V0X2Z1biwKICAgICAgICAgICAgc2V0OiBzZXRfZnVuCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyciwgewogICAgICAgICAgICAgICAgInByb3BlcnR5IjogewogICAgICAgICAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gMzY7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiAoZXggaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmCiAgICAgICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAicHJvcGVydHkiLCBnZXRfZnVuLCBzZXRfZnVuLCAidmVyaWZ5U2V0RnVuIiwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGl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TsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJyLCB7CiAgICAgICAgICAgICAgICAicHJvcGVydHkiOiB7CiAgICAgICAgICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAicHJvcGVydHkiLCB1bmRlZmluZWQsIHNldF9mdW4sICJzZXRWZXJpZnlIZWxwUHJvcCIsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-275","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-275.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjc2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjc2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFycmF5LCAnUCcgaXMgZ2VuZXJpYyBvd24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Y3QuZGVmaW5lUHJvcGVydGllcyhhcnIsIHsKICAgICAgICAgICAgICAgICJwcm9wZXJ0eSI6IHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChleCkgewogICAgICAgICAgICByZXR1cm4gKGV4IGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJyLCAicHJvcGVydHkiLCB1bmRlZmluZWQsIHNldF9mdW4sICJzZXRWZXJpZnlIZWxwUHJvcCIsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-277","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-277.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjc4IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjc4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBvd24gcHJvcGVydHkgd2hpY2ggaXMgZXZlciBkZWZpbmVkIGluIGJvdGggW1tQYXJhbWV0ZXJNYXBdXSBvZiAnTycgYW5kICdPJywgYW5kIGlzIGRlbGV0ZWQgYWZ0ZXJ3YXJkcywgYW5kICdkZXNjJyBpcyBkYXRhIGRlc2NyaXB0b3IsIHRlc3QgJ1AnIGlzIHJlZGVmaW5lZCBpbiAnTycgd2l0aCBhbGwgY29ycmVjdCBhdHRyaWJ1dGUgdmFsdWVzICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyZzsKCiAgICAgICAgKGZ1bmN0aW9uIGZ1bihhLCBiLCBjKSB7CiAgICAgICAgICAgIGFyZyA9IGFyZ3VtZW50czsKICAgICAgICB9KDAsIDEsIDIpKTsKCiAgICAgICAgZGVsZXRlIGFyZ1swXTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgdmFsdWU6IDEwLAogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZywgIjAiLCAxMCwgdHJ1ZSwgdHJ1ZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-278","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-278.js"},{"code":"RVM1SGFybm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ICAgICAgdmFyIGFyZzsKCiAgICAgICAgKGZ1bmN0aW9uIGZ1bihhLCBiLCBjKSB7CiAgICAgICAgICAgIGFyZyA9IGFyZ3VtZW50czsKICAgICAgICB9ICgwLCAxLCAyKSk7CgogICAgICAgIGZ1bmN0aW9uIGdldF9mdW5jMSgpIHsKICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZywgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMxLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMyKCkgewogICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldF9mdW5jMiwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihhcmcsICIwIik7CiAgICAgICAgcmV0dXJuIGRlc2MuZ2V0ID09PSBnZXRfZnVuYzIgJiYgdHlwZW9mIGRlc2Muc2V0ID09PSAidW5kZWZpbmVkIiAmJgogICAgICAgICAgICBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9w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SB7CgogICAgICAgIHZhciBhcmc7CgogICAgICAgIChmdW5jdGlvbiBmdW4oYSwgYiwgYykgewogICAgICAgICAgICBhcmcgPSBhcmd1bWVudHM7CiAgICAgICAgfSgwLCAxLCAyKSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmcsICIwIiwgewogICAgICAgICAgICB2YWx1ZTogMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyZywgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEwCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmcsICIwIiwgMCwgZmFsc2UsIHRydWUsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-282","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-282.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjgzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIu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AgICAgICB2YXIgYXJnOwoKICAgICAgICAoZnVuY3Rpb24gZnVuKGEsIGIsIGMpIHsKICAgICAgICAgICAgYXJnID0gYXJndW1lbnRzOwogICAgICAgIH0oMCwgMSwgMikpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJnLCAiMCIsIHsKICAgICAgICAgICAgdmFsdWU6IDAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOyAgICAgICAgICAKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiMCIsIDAsIGZhbHNlLCB0cnVlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-284","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-284.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjg1IiwKCiA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gIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJnOwoKICAgICAgICAoZnVuY3Rpb24gZnVuKGEsIGIsIGMpIHsKICAgICAgICAgICAgYXJnID0gYXJndW1lbnRzOwogICAgICAgIH0gKDAsIDEsIDIpKTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMxKCkgewogICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmcsICIwIiwgewogICAgICAgICAgICBnZXQ6IGdldF9mdW5jMSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMyKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfQogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyZywgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgZ2V0OiBnZXRfZnVuYzIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoYXJnLCAiMCIpOwogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkZXNjLmdldCA9PT0gZ2V0X2Z1bmMxICYmIHR5cGVvZiBkZXNjLnNldCA9PT0gInVuZGVmaW5lZCIgJiYKICAgICAgICAgICAgICAgIGRlc2MuZW51bWVyYWJsZSA9PT0gZmFsc2UgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IGZhbHNlOwogICAgICAg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wgMSwgMikpOwoKICAgICAgICBmdW5jdGlvbiBnZXRfZnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJnLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRfZnVuYywKICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIGZ1bmN0aW9uIHNldF9mdW5jKHZhbHVlKSB7CiAgICAgICAgICAgIGFyZy5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH0KICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIHNldDogc2V0X2Z1bmMKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IoYXJnLCAiMCIpOwogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBkZXNjLmdldCA9PT0gZ2V0X2Z1bmMgJiYgdHlwZW9mIGRlc2Muc2V0ID09PSAidW5kZWZpbmVkIiAmJgogICAgICAgICAgICAgICAgZGVzYy5lbnVtZXJhYmxlID09PSBmYWxzZSAmJiBkZXNjLmNvbmZpZ3VyYWJsZSA9PT0gZmFsc2U7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0Lm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iAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZywgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZywgIjAiLCBnZXRfZnVuYywgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHRydWUsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-288","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-288.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjg5IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjg5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBvd24gYWNjZXNzb3IgcHJvcGVydHkgb2YgJ08nIHdoaWNoIGlzIGFsc28gZGVmaW5lZCBpbiBbW1BhcmFtZXRlck1hcF1dIG9mICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdXBkYXRpbmcgdGhlIFtbQ29uZmlndXJhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyB3aGljaCBpcyBkZWZpbmVkIGFzIG5vbi1jb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJnOwoKICAgICAgICAoZnVuY3Rpb24gZnVuKGEsIGIsIGMpIHsKICAgICAgICAgICAgYXJnID0gYXJndW1lbnRzOwogICAgICAgIH0oMCwgMSwgMikpOwoKICAgICAgICBmdW5jdGlvbiBnZXRfZnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJnLCAiMCIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRfZnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZywgIjAiLCBnZXRfZnVuYywgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHRydWUsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-289","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-289.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0yOS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0VudW1lcmFibGVdXSBvZiAnUCcgaXMgc2V0IGFzIGZhbHNlIHZhbHVlIGlmIGFic2VudCBpbiBkYXRhIGRlc2NyaXB0b3IgJ2Rlc2MnICg4LjEyLjkgc3RlcCA0LmEuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsgdmFsdWU6IDEwMDF9CiAgICAgICAgfSk7CgogICAgICAgIGZvciAodmFyIHByb3AgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChvYmouaGFzT3duUHJvcGVydHkocHJvcCkpIHsKICAgICAgICAgICAgICAgIGlmIChwcm9wID09PSAicHJvcCIpIHsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-29","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-29.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjkwIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjkwLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBhbiBhcnJheSBpbmRleCBuYW1lZCBwcm9wZXJ0eSBvZiAnTycgYnV0IG5vdCBkZWZpbmVkIGluIFtbUGFyYW1ldGVyTWFwXV0gb2YgJ08nLCBhbmQgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgdGVzdCAnUCcgaXMgZGVmaW5lZCBpbiAnTycgd2l0aCBhbGwgY29ycmVjdCBhdHRyaWJ1dGUgdmFsdWVzICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyZzsKCiAgICAgICAgKGZ1bmN0aW9uIGZ1bigpIHsKICAgICAgICAgICAgYXJnID0gYXJndW1lbnRzOwogICAgICAgIH0oMCwgMSwgMikpOwoKICAgICAgICBkZWxldGUgYXJnWzBdOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiMCIsIDEwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-290","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-290.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjkxIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjkxLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBhbiBhcnJheSBpbmRleCBuYW1lZCBwcm9wZXJ0eSBvZiAnTycgYnV0IG5vdCBkZWZpbmVkIGluIFtbUGFyYW1ldGVyTWFwXV0gb2YgJ08nLCBhbmQgJ2Rlc2MnIGlzIGFjY2Vzc29yIGRlc2NyaXB0b3IsIHRlc3QgJ1AnIGlzIGRlZmluZWQgaW4gJ08nIHdpdGggYWxsIGNvcnJlY3QgYXR0cmlidXRlIHZhbHVlcyAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCAzKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcmc7CgogICAgICAgIChmdW5jdGlvbiBmdW4oKSB7CiAgICAgICAgICAgIGFyZyA9IGFyZ3VtZW50czsKICAgICAgICB9KDAsIDEsIDIpKTsKCiAgICAgICAgZGVsZXRlIGFyZ1swXTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICB9CiAgICAgICAgZnVuY3Rpb24gc2V0X2Z1bmModmFsdWUpIHsKICAgICAgICAgICAgYXJnLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiMCIsIGdldF9mdW5jLCBzZXRfZnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJ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iAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMxLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMyKCkgewogICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldF9mdW5jMiwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiMCIsIGdldF9mdW5jMiwgdW5kZWZpbmVkLCB1bmRlZmluZWQsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-292","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-292.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjkzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjkzLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBhbiBhcnJheSBpbmRleCBuYW1lZCBkYXRhIHByb3BlcnR5IG9mICdPJyBidXQgbm90IGRlZmluZWQgaW4gW1tQYXJhbWV0ZXJNYXBdXSBvZiAnTycsIGFuZCAnZGVzYycgaXMgZGF0YSBkZXNjcmlwdG9yLCB0ZXN0IHVwZGF0aW5nIG11bHRpcGxlIGF0dHJpYnV0ZSB2YWx1ZXMgb2YgJ1AnICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDMpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyZzsKCiAgICAgICAgKGZ1bmN0aW9uIGZ1bigpIHsKICAgICAgICAgICAgYXJnID0gYXJndW1lbnRzOwogICAgICAgIH0oMCwgMSwgMikpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMjAsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiMCIsIDIwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-293","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-293.js"},{"code":"RVM1SGF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H0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZywgIjAiLCAwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-294","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-294.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMjk1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMjk1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBhbiBhcnJheSBpbmRleCBuYW1lZCBkYXRhIHByb3BlcnR5IG9mICdPJyBidXQgbm90IGRlZmluZWQgaW4gW1tQYXJhbWV0ZXJNYXBdXSBvZiAnTycsIHRlc3QgVHlwZUVycm9yIGlzIHRocm93biB3aGVuIHVwZGF0aW5nIHRoZSBbW1dyaXRhYmxlXV0gYXR0cmlidXRlIHZhbHVlIG9mICdQJyB3aGljaCBpcyBub3QgY29uZmlndXJhYmxlICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDQpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyZzsKCiAgICAgICAgKGZ1bmN0aW9uIGZ1bigpIHsKICAgICAgICAgICAgYXJnID0gYXJndW1lbnRzOwogICAgICAgIH0oKSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmcsICIwIiwgewogICAgICAgICAgICB2YWx1ZTogMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgICAgICIwIjogewogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmcsICIwIiwgMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-295","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-295.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIx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gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBhcmc7CgogICAgICAgIChmdW5jdGlvbiBmdW4oKSB7CiAgICAgICAgICAgIGFyZyA9IGFyZ3VtZW50czsKICAgICAgICB9KCkpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJnLCAiMCIsIHsKICAgICAgICAgICAgdmFsdWU6IDAsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZywgIjAiLCAwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-297","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-297.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogIC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gb2YgJ08nLCB0ZXN0IFR5cGVFcnJvciBpcyB0aHJvd24gd2hlbiB1cGRhdGluZyB0aGUgW1tTZXRdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgYXJnOwoKICAgICAgICAoZnVuY3Rpb24gZnVuKCkgewogICAgICAgICAgICBhcmcgPSBhcmd1bWVudHM7CiAgICAgICAgfSgpKTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZywgIjAiLCB7CiAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMsCiAgICAgICAgICAgIHNldDogdW5kZWZpbmVkLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBmdW5jdGlvbiBzZXRfZnVuYyh2YWx1ZSkgewogICAgICAgICAgICBhcmcuc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICBzZXQ6IHNldF9mdW5jCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmcsICIwIiwgZ2V0X2Z1bmMsIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-299","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-299.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTMuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUCcgaXMgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGRhdGEgcHJvcGVydHkgKDguMTIuOSBzdGVwIDEgKSAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBwcm90byA9IHt9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShwcm90bywgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBvYmogPSBuZXcgQ29uKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTMsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-3","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-3.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0zMC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0NvbmZpZ3VyYWJsZV1dIG9mICdQJyBpcyBzZXQgYXMgZmFsc2UgdmFsdWUgaWYgYWJzZW50IGluIGRhd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mlidXRlIHZhbHVlIG9mICdQJyB3aGljaCBpcyBub3QgY29uZmlndXJhYmxlICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDQpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIGFyZzsKCiAgICAgICAgKGZ1bmN0aW9uIGZ1bigpIHsKICAgICAgICAgICAgYXJnID0gYXJndW1lbnRzOwogICAgICAgIH0oKSk7CgogICAgICAgIGZ1bmN0aW9uIGdldF9mdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmcsICIwIiwgewogICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyZywgewogICAgICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZywgIjAiLCBnZXRfZnVuYywgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHRydWUsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm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VudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICAgICAiMCI6IHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZywgIjAiLCBnZXRfZnVuYywgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHRydWUsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-301","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-301.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzAyIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMzAyLmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBnZW5lcmljIHByb3BlcnR5LCBhbmQgJ2Rlc2MnIGlzIGRhdGEgZGVzY3JpcHRvciwgdGVzdCAnUCcgaXMgZGVmaW5lZCBpbiAnTycgd2l0aCBhbGwgY29ycmVjdCBhdHRyaWJ1dGUgdmFsdWVzICgxMC42IFtbRGVmaW5lT3duUHJvcGVydHldXSBzdGVwIDQpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgYXJnID0gKGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgcmV0dXJuIGFyZ3VtZW50czsKICAgICAgICB9KDEsIDIsIDMpKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICJnZW5lcmljUHJvcGVydHkiOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMSwKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmcsICJnZW5lcmljUHJvcGVydHkiLCAxMDAxLCB0cnVlLCB0cnVlLCB0cnVlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-302","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-302.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzAzIiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8x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iAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEwMDE7CiAgICAgICAgICAgIH0sCiAgICAgICAgICAgIHNldDogZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgICAgICBhcmcudGVzdEdldEZ1bmN0aW9uMSA9IHZhbHVlOwogICAgICAgICAgICB9LAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuKCkgewogICAgICAgICAgICByZXR1cm4gImdldEZ1bmN0aW9uU3RyaW5nIjsKICAgICAgICB9CiAgICAgICAgZnVuY3Rpb24gc2V0RnVuKHZhbHVlKSB7CiAgICAgICAgICAgIGFyZy50ZXN0R2V0RnVuY3Rpb24gPSB2YWx1ZTsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICJnZW5lcmljUHJvcGVydHkiOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1biwKICAgICAgICAgICAgICAgIHNldDogc2V0RnVuLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChhcmcsICJnZW5lcmljUHJvcGVydHkiLCBnZXRGdW4sIHNldEZ1biwgInRlc3RHZXRGdW5jdGlvbiIsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-304","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-304.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzA1IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMzA1LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBnZW5lcmljIG93biBkYXRhIHByb3BlcnR5IG9mICdPJywgYW5kICdkZXNjJyBpcyBkYXRhIGRlc2NyaXB0b3IsIHRlc3QgdXBkYXRpbmcgbXVsdGlwbGUgYXR0cmlidXRlIHZhbHVlcyBvZiAnUCcgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcmcgPSAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gYXJndW1lbnRzOwogICAgICAgIH0oMSwgMiwgMykpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJnLCAiZ2VuZXJpY1Byb3BlcnR5IiwgewogICAgICAgICAgICB2YWx1ZTogMTAwMSwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhhcmcsIHsKICAgICAgICAgICAgImdlbmVyaWNQcm9wZXJ0eSI6IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAyLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZywgImdlbmVyaWNQcm9wZXJ0eSIsIDEwMDIsIHRydWUsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-305","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-305.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzA2IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMzA2LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBnZW5lcmljIG93biBkYXRhIHByb3BlcnR5IG9mICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdXBkYXRpbmcgdGhlIFtbVmFsdWVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIG5vdCB3cml0YWJsZSBhbmQgbm90IGNvbmZpZ3VyYWJsZSAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyZyA9IChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiBhcmd1bWVudHM7CiAgICAgICAgfSgxLCAyLCAzKSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmcsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAxLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICAgICAiZ2VuZXJpY1Byb3BlcnR5IjogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAyCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiBleCBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgICAgICAgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiZ2VuZXJpY1Byb3BlcnR5IiwgMTAwMSwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-306","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-306.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzA3IiwKCiAgICBwYXRoOiAiVGVzdENhc2VzL2NoYXB0ZXIxNS8xNS4yLzE1LjIuMy8xNS4yLjMuNy8xNS4yLjMuNy02LWEtMzA3LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gJ08nIGlzIGFuIEFyZ3VtZW50cyBvYmplY3QsICdQJyBpcyBnZW5lcmljIG93biBkYXRhIHByb3BlcnR5IG9mICdPJywgdGVzdCBUeXBlRXJyb3IgaXMgdGhyb3duIHdoZW4gdXBkYXRpbmcgdGhlIFtbV3JpdGFibGVdXSBhdHRyaWJ1dGUgdmFsdWUgb2YgJ1AnIHdoaWNoIGlzIG5vdCBjb25maWd1cmFibGUgKDEwLjYgW1tEZWZpbmVPd25Qcm9wZXJ0eV1dIHN0ZXAgNCkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBhcmcgPSAoZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gYXJndW1lbnRzOwogICAgICAgIH0oMSwgMiwgMykpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoYXJnLCAiZ2VuZXJpY1Byb3BlcnR5IiwgewogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICAgICAiZ2VuZXJpY1Byb3BlcnR5IjogewogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAg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ogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyZyA9IChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiBhcmd1bWVudHM7CiAgICAgICAgfSgxLCAyLCAzKSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmcsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMoYXJnLCB7CiAgICAgICAgICAgICAgICAiZ2VuZXJpY1Byb3BlcnR5IjogewogICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiBleCBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgICAgICAgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiZ2VuZXJpY1Byb3BlcnR5IiwgdW5kZWZpbmVkLCBmYWxzZSwgdHJ1ZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-308","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-308.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAg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ogICAgICAgICAgICAgICAgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiZ2VuZXJpY1Byb3BlcnR5IiwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-309","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-309.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0zMS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdkZXNjJyBpcyBkYXRhIGRlc2NyaXB0b3IsIHRlc3Qgc2V0dGluZyBhbGwgYXR0cmlidXRlIHZhbHVlcyBvZiAnUCcgKDguMTIuOSBzdGVwIDQuYS5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMDIsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAg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XJpY1Byb3BlcnR5U3RyaW5nIjsKICAgICAgICB9CiAgICAgICAgZnVuY3Rpb24gc2V0RnVuKHZhbHVlKSB7CiAgICAgICAgICAgIGFyZy52ZXJpZnlTZXRGdW4gPSB2YWx1ZTsKICAgICAgICB9CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGFyZywgImdlbmVyaWNQcm9wZXJ0eSIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRGdW4sCiAgICAgICAgICAgIHNldDogc2V0RnVuLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyZywgewogICAgICAgICAgICAgICAgImdlbmVyaWNQcm9wZXJ0eSI6IHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuICJvdmVyaWRlR2VuZXJpY1Byb3BlcnR5U3RyaW5nIjsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGV4KSB7CiAgICAgICAgICAgIHJldHVybiBleCBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgICAgICAgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KGFyZywgImdlbmVyaWNQcm9wZXJ0eSIsIGdldEZ1biwgc2V0RnVuLCAidmVyaWZ5U2V0RnVuIiwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvc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gICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyZywgewogICAgICAgICAgICAgICAgImdlbmVyaWNQcm9wZXJ0eSI6IHsKICAgICAgICAgICAgICAgICAgICBzZXQ6IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICAgICAgICAgICAgICBhcmcuZ2VuZXJpY1Byb3BlcnR5U3RyaW5nMSA9IHZhbHVlOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuIGV4IGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiZ2VuZXJpY1Byb3BlcnR5IiwgdW5kZWZpbmVkLCBzZXRGdW4sICJnZW5lcmljUHJvcGVydHlTdHJpbmciLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-311","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-311.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzEyIiwKCiAgICBwY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ZSB2YWx1ZSBvZiAnUCcgd2hpY2ggaXMgbm90IGNvbmZpZ3VyYWJsZSAoMTAuNiBbW0RlZmluZU93blByb3BlcnR5XV0gc3RlcCA0KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIGFyZyA9IChmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiBhcmd1bWVudHM7CiAgICAgICAgfSgxLCAyLCAzKSk7CgogICAgICAgIGZ1bmN0aW9uIHNldEZ1bih2YWx1ZSkgewogICAgICAgICAgICBhcmcuZ2VuZXJpY1Byb3BlcnR5U3RyaW5nID0gdmFsdWU7CiAgICAgICAgfQogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShhcmcsICJnZW5lcmljUHJvcGVydHkiLCB7CiAgICAgICAgICAgIHNldDogc2V0RnVuLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKGFyZywgewogICAgICAgICAgICAgICAgImdlbmVyaWNQcm9wZXJ0eSI6IHsKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZXgpIHsKICAgICAgICAgICAgcmV0dXJuIGV4IGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3QoYXJnLCAiZ2VuZXJpY1Byb3BlcnR5IiwgdW5kZWZpbmVkLCBzZXRGdW4sICJnZW5lcmljUHJvcGVydHlTdHJpbmciLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvb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gICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgYWNjZXNzZWQgPSB0cnVlOwogICAgICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICByZXR1cm4gYXJnWzBdID09PSAxMiAmJiBhY2Nlc3NlZDsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-314","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-314.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0zMi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdkZXNjJyBpcyBnZW5lcmljIGRlc2NyaXB0b3Igd2l0aG91dCBhbnkgYXR0cmlidXRlLCB0ZXN0ICdQJyBpcyBkZWZpbmVkIGluICdvYmonIHdpdGggYWxsIGRlZmF1bHQgYXR0cmlidXRlIHZhbHVlcyAoOC4xMi45IHN0ZXAgNC5hLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgeyBwcm9wOiB7fSB9KTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgInByb3AiKTsKCiAgICAgICAgcmV0dXJuIGRlc2MuaGFzT3duUHJvcGVydHkoInZhbHVlIikgJiYgdHlwZW9mIGRlc2MudmFsdWUgPT09ICJ1bmRlZmluZWQiICYmCiAgICAgICAgICAgIGRlc2MuaGFzT3duUHJvcGVydHkoIndyaXRhYmxlIikgJiYgZGVzYy53cml0YWJsZSA9PT0gZmFsc2UgJiYKICAgICAgICAgICAgZGVzYy5oYXNPd25Qcm9wZXJ0eSgiY29uZmlndXJhYmxlIikgJiYgZGVzYy5jb25maWd1cmFibGUgPT09IGZhbHNlICYmCiAgICAgICAgICAgIGRlc2MuaGFzT3duUHJvcGVydHkoImVudW1lcmFibGUiKSAmJiBkZXNjLmVudW1lcmFibGUgPT09IGZhbHNlICYmCiAgICAgICAgICAgICFkZXNjLmhhc093blByb3BlcnR5KCJnZXQiKSAmJiAhZGVzYy5oYXNPd25Qcm9wZXJ0eSgic2V0Iik7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-32","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-32.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0zMy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0dldF1dIG9mICdQJyBpcyBzZXQgYXMgdW5kZWZpbmVkIHZhbHVlIGlmIGFic2VudCBpbiBhY2Nlc3NvciBkZXNjcmlwdG9yICdkZXNjJyAoOC4xMi45IHN0ZXAgNC5iKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBzZXRGdW4gPSBmdW5jdGlvbiAodmFsdWUpIHsKICAgICAgICAgICAgb2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgIHNldDogc2V0RnVuLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wIiwgdW5kZWZpbmVkLCBzZXRGdW4sICJzZXRWZXJpZnlIZWxwUHJvcCIsIHRydWUsIHRydWUpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-33","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-33.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0zNC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW1NldF1dIG9mICdQJyBpcyBzZXQgYXMgdW5kZWZpbmVkIHZhbHVlIGlmIGFic2VudCBpbiBhY2Nlc3NvciBkZXNjcmlwdG9yICdkZXNjJyAoOC4xMi45IHN0ZXAgNC5iLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgdmFyIGdldEZ1bmMgPSBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDsgCiAgICAgICAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAicHJvcCIpOwogICAgICAgIHJldHVybiBvYmouaGFzT3duUHJvcGVydHkoInByb3AiKSAmJiB0eXBlb2YgKGRlc2Muc2V0KSA9PT0gInVuZGVmaW5lZCI7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-34","path":"TestCases/chapter15/15.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sIGZhbHNlLCB0cnVlKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-35","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-35.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0zNi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBkb2Vzbid0IGV4aXN0IGluICdPJywgdGVzdCBbW0NvbmZpZ3VyYWJsZV1dIG9mICdQJyBpcyBzZXQgYXMgZmFsc2UgdmFsdWUgaWYgYWJzZW50IGluIGFjY2Vzc29yIGRlc2NyaXB0b3IgJ2Rlc2MnICg4LjEyLjkgc3RlcCA0LmIuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgZ2V0RnVuID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfTsKICAgICAgICB2YXIgc2V0RnVuID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICBzZXQ6IHNldEZ1biwKICAgICAgICAgICAgICAgIGdldDogZ2V0RnVuLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wIiwgZ2V0RnVuLCBzZXRGdW4sICJzZXRWZXJpZnlIZWxwUHJvcCIsIHRydWUsIGZhbHNlKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-36","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-36.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtMzciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS0zNy5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdkZXNjJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yLCB0ZXN0IHNldHRpbmcgYWxsIGF0dHJpYnV0ZSB2YWx1ZXMgb2YgJ1AnICg4LjEyLjkgc3RlcCA0LmIuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICB2YXIgZ2V0RnVuID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfTsKICAgICAgICB2YXIgc2V0RnVuID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1biwKICAgICAgICAgICAgICAgIHNldDogc2V0RnVuLAogICAgICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgInByb3AiLCBnZXRGdW4sIHNldEZ1biwgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcyk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-37","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-37.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8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zIGdlbmVyaWMgZGVzY3JpcHRvciB3aXRob3V0IGFueSBhdHRyaWJ1dGUgKDguMTIuOSBzdGVwIDUpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwogICAgICAgIHZhciBnZXRGdW5jID0gZnVuY3Rpb24gKCkgewogICAgICAgICAgICByZXR1cm4gMTI7CiAgICAgICAgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldEZ1bmMsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7IGZvbzoge30gfSk7CgogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgZ2V0RnVuYywgdW5kZWZpbmVkLCB1bmRlZmluZWQsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-38-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-38-1.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hc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ZWxkcyBpbiAnZGVzYycgaXMgdGhlIHNhbWUgd2l0aCAnUCcgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBvYmouZm9vID0gMTAxOyAvLyBkZWZhdWx0IHZhbHVlIG9mIGF0dHJpYnV0ZXM6IHdyaXRhYmxlOiB0cnVlLCBjb25maWd1cmFibGU6IHRydWUsIGVudW1lcmFibGU6IHRydWUKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMSwKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIDEwMSwgdHJ1ZSwgdHJ1ZSwgdHJ1ZSk7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-39","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-39.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTQuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUCcgaXMgb3duIGRhdGEgcHJvcGVydHkgdGhhdCBvdmVycmlkZXMgYW4gaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEyLjkgc3RlcCAxICkgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBvYmogPSBuZXcgQ29uKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMiwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTMsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-4.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNDAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS00MC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBpcyBhY2Nlc3NvciBkZXNjcmlwdG9yIGFuZCBldmVyeSBmaWVsZHMgaW4gJ2Rlc2MnIGlzIHRoZSBzYW1lIHdpdGggJ1AnICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIH0KICAgICAgICBmdW5jdGlvbiBzZXRfZnVuYyh2YWx1ZSkgewogICAgICAgICAgICBvYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CiAgICAgICAgdmFyIGRlc2MgPSB7CiAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMsCiAgICAgICAgICAgIHNldDogc2V0X2Z1bmMsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCBkZXNjKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgZ2V0OiBnZXRfZnVuYywKICAgICAgICAgICAgICAgIHNldDogc2V0X2Z1bmMsCiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLAogICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIGdldF9mdW5jLCBzZXRfZnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgdHJ1ZSwgdHJ1ZSk7CgogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcikgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-40","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-40.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNDEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS00MS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIHR5cGUgb2YgZGVzYy52YWx1ZSBpcyBkaWZmZXJlbnQgZnJvbSB0eXBlIG9mIFAudmFsdWUgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBvYmouZm9vID0gMTAxOyAvLyBkZWZhdWx0IHZhbHVlIG9mIGF0dHJpYnV0ZXM6IHdyaXRhYmxlOiB0cnVlLCBjb25maWd1cmFibGU6IHRydWUsIGVudW1lcmFibGU6IHRydWUKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgdmFsdWU6ICIxMDIiCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgIjEwMiIsIHRydWUsIHRydWUsIHRydWUpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-41","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-41.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNDIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS00Mi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgdW5kZWZpbmVkICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2MgPSB7IHZhbHVlOiB1bmRlZmluZWQgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgZGVzYyk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHZhbHVlOiB1bmRlZmluZWQKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCB1bmRlZmluZWQsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-42","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-42.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNDMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS00My5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgbnVsbCAoOC4xMi45IHN0ZXAgNikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjID0geyB2YWx1ZTogbnVsbCB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCBkZXNjKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgdmFsdWU6IG51bGwKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBudWxsLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cgo=","id":"15.2.3.7-6-a-43","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-43.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNDQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS00NC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgTmFOICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2MgPSB7IHZhbHVlOiBOYU4gfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgZGVzYyk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHZhbHVlOiBOYU4KICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgdmVyaWZ5RW51bWVyYWJsZSA9IGZhbHNlOwogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAiZm9vIikgewogICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciB2ZXJpZnlWYWx1ZSA9IGZhbHNlOwogICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgdmVyaWZ5VmFsdWUgPSBvYmouZm9vICE9PSBvYmouZm9vICYmIGlzTmFOKG9iai5mb28pOwoKICAgICAgICB2YXIgdmVyaWZ5Q29uZmlndXJhYmxlID0gZmFsc2U7CiAgICAgICAgZGVsZXRlIG9iai5mb287CiAgICAgICAgdmVyaWZ5Q29uZmlndXJhYmxlID0gb2JqLmhhc093blByb3BlcnR5KCJmb28iKTsKCiAgICAgICAgcmV0dXJuIHZlcmlmeUNvbmZpZ3VyYWJsZSAmJiAhdmVyaWZ5RW51bWVyYWJsZSAmJiB2ZXJpZnlWYWx1ZTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.7-6-a-44","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-44.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNDUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS00NS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGRlc2MudmFsdWUgaXMgKzAgYW5kIFAudmFsdWUgaXMgLTAgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZGVzYyA9IHsgdmFsdWU6IC0wIH07CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIGRlc2MpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiArMAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAtMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOw==","id":"15.2.3.7-6-a-45","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-45.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNDYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS00Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGRlc2MudmFsdWUgaXMgLTAgYW5kIFAudmFsdWUgaXMgKzAgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZGVzYyA9IHsgdmFsdWU6ICswIH07CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIGRlc2MpOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAtMAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCArMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7IAogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.7-6-a-46","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-46.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNDciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS00Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGRlc2MudmFsdWUgYW5kIFAudmFsdWUgYXJlIHR3byBudW1iZXJzIHdpdGggdGhlIHNhbWUgdmFsdWUgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgZGVzYyA9IHsgdmFsdWU6IDEwMSB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCBkZXNjKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgdmFsdWU6IDEwMQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIDEwMSwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-47","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-47.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyA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4zLjcvMTUuMi4zLjctNi1hLTQ4LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIC0gZGVzYy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgdHdvIG51bWJlcnMgd2l0aCBkaWZmZXJlbnQgdmFsdWVzICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgb2JqLmZvbyA9IDEwMTsgLy8gZGVmYXVsdCB2YWx1ZSBvZiBhdHRyaWJ1dGVzOiB3cml0YWJsZTogdHJ1ZSwgY29uZmlndXJhYmxlOiB0cnVlLCBlbnVtZXJhYmxlOiB0cnVlCgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAxMDIKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAxMDIsIHRydWUsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-48","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-48.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNDkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS00OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgdHdvIHN0cmluZ3Mgd2hpY2ggaGF2ZSBzYW1lIGxlbmd0aCBhbmQgc2FtZSBjaGFyYWN0ZXJzIGluIGNvcnJlc3BvbmRpbmcgcG9zaXRpb25zICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIGRlc2MgPSB7IHZhbHVlOiAiYWJjZCIgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgZGVzYyk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAiYWJjZCIKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAiYWJjZCIsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-49","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-49.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTUuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUCcgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEyLjkgc3RlcCAxICkgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgb2JqID0ge307CiAgICAgICAgZnVuY3Rpb24gZ2V0RnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDExOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZ2V0RnVuYywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTIsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAicHJvcCIsIGdldEZ1bmMsIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbk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0pOwo=","id":"15.2.3.7-6-a-50","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-50.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNTEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS01MS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgYm9vbGVhbiB2YWx1ZXMgd2l0aCB0aGUgc2FtZSB2YWx1ZSAoOC4xMi45IHN0ZXAgNikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjID0geyB2YWx1ZTogdHJ1ZSB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCBkZXNjKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgdmFsdWU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCB0cnVlLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-51","path":"TestCases/chapter15/15.2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},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNTMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS01My5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgT2piZWN0cyB3aGljaCByZWZlciB0byB0aGUgc2FtZSBPYmplY3QgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICB2YXIgb2JqMSA9IHsgbGVuZ3RoOiAxMCB9OwogICAgICAgIHZhciBkZXNjID0geyB2YWx1ZTogb2JqMSB9OwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCBkZXNjKTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgdmFsdWU6IG9iajEKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBvYmoxLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-53","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a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"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-54.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNTUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS01NS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy53cml0YWJsZSBhbmQgUC53cml0YWJsZSBhcmUgYm9vbGVhbiB2YWx1ZXMgd2l0aCB0aGUgc2FtZSB2YWx1ZSAoOC4xMi45IHN0ZXAgNikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBkZXNjID0geyB3cml0YWJsZTogZmFsc2UgfTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgZGVzYyk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIHVuZGVmaW5lZCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-55","path":"TestCases/chapter15/15.2/15.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IH0KfSk7Cg==","id":"15.2.3.7-6-a-56","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-56.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS01Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy5bW0dldF1dIGFuZCBQLltbR2V0XV0gYXJlIHR3byBvYmplY3RzIHdoaWNoIHJlZmVyIHRvIHRoZSBzYW1lIG9iamVjdCAoOC4xMi45IHN0ZXAgNikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIGdldF9GdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGdldF9GdW5jCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0X0Z1bmMKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgdmVyaWZ5RW51bWVyYWJsZSA9IGZhbHNlOwogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAiZm9vIikgewogICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciB2ZXJpZnlWYWx1ZSA9IGZhbHNlOwogICAgICAgIHZlcmlmeVZhbHVlID0gKG9iai5mb28gPT09IDEwKTsKCiAgICAgICAgdmFyIHZlcmlmeUNvbmZpZ3VyYWJsZSA9IGZhbHNlOwogICAgICAgIGRlbGV0ZSBvYmouZm9vOwogICAgICAgIHZlcmlmeUNvbmZpZ3VyYWJsZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vIik7CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJmb28iKTsKICAgICAgICByZXR1cm4gdmVyaWZ5Q29uZmlndXJhYmxlICYmICF2ZXJpZnlFbnVtZXJhYmxlICYmIHZlcmlmeVZhbHVlICYmIHR5cGVvZiAoZGVzYy5zZXQpID09PSAidW5kZWZpbmVkIiAmJiBkZXNjLmdldCA9PT0gZ2V0X0Z1bmM7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KSAmJiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-57","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-57.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNTgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS01OC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGRlc2MuW1tHZXRdXSBhbmQgUC5bW0dldF1dIGFyZSB0d28gb2JqZWN0cyB3aGljaCByZWZlciB0byB0aGUgZGlmZmVyZW50IG9iamVjdHMgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBmdW5jdGlvbiBnZXRfRnVuYzEoKSB7CiAgICAgICAgICAgIHJldHVybiAxMDsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIGdldDogZ2V0X0Z1bmMxLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X0Z1bmMyKCkgewogICAgICAgICAgICByZXR1cm4gMjA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldF9GdW5jMgogICAgICAgICAgICB9CiAgICAgICAgfSk7CgogICAgICAgIHZhciB2ZXJpZnlFbnVtZXJhYmxlID0gZmFsc2U7CiAgICAgICAgZm9yICh2YXIgcCBpbiBvYmopIHsKICAgICAgICAgICAgaWYgKHAgPT09ICJmb28iKSB7CiAgICAgICAgICAgICAgICB2ZXJpZnlFbnVtZXJhYmxlID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgdmFyIHZlcmlmeVZhbHVlID0gZmFsc2U7CiAgICAgICAgdmVyaWZ5VmFsdWUgPSAob2JqLmZvbyA9PT0gMjApOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAiZm9vIik7CgogICAgICAgIHZhciB2ZXJpZnlDb25maWd1cmFibGUgPSBmYWxzZTsKICAgICAgICBkZWxldGUgb2JqLmZvbzsKICAgICAgICB2ZXJpZnlDb25maWd1cmFibGUg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AgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgc2V0OiBzZXRfZnVuYwogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICBzZXQ6IHNldF9mdW5jCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIHVuZGVmaW5lZCwgc2V0X2Z1bmMsICJzZXRWZXJpZnlIZWxwUHJvcCIsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-59","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-59.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNiIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTYuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUCcgaXMgaW5oZXJpdGVkIGFjY2Vzc29yIHByb3BlcnR5ICg4LjEyLjkgc3RlcCAxICkgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgb2JqID0gbmV3IENvbigpOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7CiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDEyOwogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIG9iai5oYXNPd25Qcm9wZXJ0eSgicHJvcCIpICYmIG9iai5wcm9wID09PSAxMjsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-6","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-6.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNjAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjI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gJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-60","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-60.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNjEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS02MS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy5lbnVtZXJhYmxlIGFuZCBQLmVudW1lcmFibGUgYXJlIGJvb2xlYW4gdmFsdWVzIHdpdGggdGhlIHNhbWUgdmFsdWUgKDguMTIuOSBzdGVwIDYpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyAKICAgICAgICAgICAgdmFsdWU6IDEwLCAKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UgCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMTAsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-61","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-61.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNjIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS02Mi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGRlc2MuZW51bWVyYWJsZSBhbmQgUC5lbnVtZXJhYmxlIGFyZSB0d28gYm9vbGVhbiB2YWx1ZXMgd2l0aCBkaWZmZXJlbnQgdmFsdWVzICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgCiAgICAgICAgICAgIHZhbHVlOiAxMCwgCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLCAKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlIAogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMTAsIGZhbHNlLCB0cnVlLCB0cnVlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-62","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-62.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNjMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS02My5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGJvdGggZGVzYy5jb25maWd1cmFibGUgYW5kIFAuY29uZmlndXJhYmxlIGFyZSBib29sZWFuIHZhbHVlcyB3aXRoIHRoZSBzYW1lIHZhbHVlICg4LjEyLjkgc3RlcCA2KSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgCiAgICAgICAgICAgIHZhbHVlOiAxMCwgCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UgCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAxMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-63","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-63.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNjQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS02NC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtIGRlc2MuY29uZmlndXJhYmxlIGFuZCBQLmNvbmZpZ3VyYWJsZSBhcmUgdHdvIGJvb2xlYW4gdmFsdWVzIHdpdGggZGlmZmVyZW50IHZhbHVlcyAoOC4xMi45IHN0ZXAgNikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMCwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlIAogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMTAsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW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ICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAxMCwgZmFsc2UsIHRydWUsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-66","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-66.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZAovLy8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ZXRfRnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDEwOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgZ2V0OiBnZXRfRnVuYywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgdmFyIHZlcmlmeUVudW1lcmFibGUgPSBmYWxzZTsKICAgICAgICAgICAgZm9yICh2YXIgcCBpbiBvYmopIHsKICAgICAgICAgICAgICAgIGlmIChwID09PSAiZm9vIikgewogICAgICAgICAgICAgICAgICAgIHZlcmlmeUVudW1lcmFibGUgPSB0cnVlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CgogICAgICAgICAgICB2YXIgdmVyaWZ5VmFsdWUgPSBmYWxzZTsKICAgICAgICAgICAgdmVyaWZ5VmFsdWUgPSAob2JqLmZvbyA9PT0gMTApOwoKICAgICAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgImZvbyIpOwoKICAgICAgICAgICAgdmFyIHZlcmlmeUNvbmZpZ3VyYWJsZSA9IGZhbHNlOwogICAgICAgICAgICBkZWxldGUgb2JqLmZvbzsKICAgICAgICAgICAgdmVyaWZ5Q29uZmlndXJhYmxlID0gb2JqLmhhc093blByb3BlcnR5KCJmb28iKTsKCiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmIHZlcmlmeUNvbmZpZ3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gMTE7CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMTAsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.7-6-a-68","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-68.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UsIHRoaXMgbGlzdCBv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lcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X0Z1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAyMDsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIGdldDogZ2V0X0Z1bmMKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgdmVyaWZ5RW51bWVyYWJsZSA9IGZhbHNlOwogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAiZm9vIikgewogICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciB2ZXJpZnlWYWx1ZSA9IGZhbHNlOwogICAgICAgIHZlcmlmeVZhbHVlID0gKG9iai5mb28gPT09IDIwKTsKCiAgICAgICAgdmFyIGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKG9iaiwgImZvbyIpOwoKICAgICAgICB2YXIgdmVyaWZ5Q29uZmlndXJhYmxlID0gdHJ1ZTsKICAgICAgICBkZWxldGUgb2JqLmZvbzsKICAgICAgICB2ZXJpZnlDb25maWd1cmFibGUgPSBvYmouaGFzT3duUHJvcGVydHkoImZvbyIpOwoKICAgICAgICByZXR1cm4gIXZlcmlmeUNvbmZpZ3VyYWJsZSAmJiAhdmVyaWZ5RW51bWVyYWJsZSAmJiB2ZXJpZnlWYWx1ZSAmJgogICAgICAgICAgICB0eXBlb2YgZGVzYy5zZXQgPT09ICJ1bmRlZmluZWQiICYmIGRlc2MuZ2V0ID09PSBnZXRfRnVuYzsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.7-6-a-69","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-69.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNyIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTcuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUCcgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBkYXRhIHByb3BlcnR5ICg4LjEyLjkgc3RlcCAxICkgIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKICAgICAgICB2YXIgcHJvdG8gPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkocHJvdG8sICJwcm9wIiwgewogICAgICAgICAgICB2YWx1ZTogMTEsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwogICAgICAgIHZhciBDb24gPSBmdW5jdGlvbiAoKSB7IH07CiAgICAgICAgQ29uLnByb3RvdHlwZSA9IHByb3RvOwoKICAgICAgICB2YXIgb2JqID0gbmV3IENvbigpOwogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wIiwgewogICAgICAgICAgICBnZXQ6IGZ1bmN0aW9uICgpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMjsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3A6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTMsCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIG9iai5wcm9wID09PSAxMjsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-7","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-7.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3Zl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c3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIGdldF9mdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgdmFsdWU6IDEyCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMTIsIGZhbHNlLCBmYWxzZSwgdHJ1ZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-70","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-70.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNl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5kICBkZXNjLndyaXRhYmxlIGlzIHRydWUgKDguMTIuOSBzdGVwIDEwLmEuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IAogICAgICAgICAgICB2YWx1ZTogMTAsIAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIDEwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-71","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-71.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc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5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-72","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-72.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNzMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS03My5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3IgaWYgUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAud3JpdGFsYmUgaXMgZmFsc2UsIFAudmFsdWUgaXMgdW5kZWZpbmVkIGFuZCBwcm9wZXJ0aWVzLnZhbHVlIGlzIHVuZGVmaW5lZCAoOC4xMi45IHN0ZXAgMTAuYS5paS4xKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgCiAgICAgICAgICAgIHZhbHVlOiB1bmRlZmluZWQsIAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogdW5kZWZpbmVkCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgdW5kZWZpbmVkLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-73","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-73.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNzQiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS03NC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3IgaWYgUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAud3JpdGFsYmUgaXMgZmFsc2UsIFAudmFsdWUgaXMgbnVsbCBhbmQgcHJvcGVydGllcy52YWx1ZSBpcyBudWxsICg4LjEyLjkgc3RlcCAxMC5hLmlpLjEpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyAKICAgICAgICAgICAgdmFsdWU6IG51bGwsIAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogbnVsbAogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgIC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CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHZhbHVlOiBOYU4KICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgdmVyaWZ5RW51bWVyYWJsZSA9IGZhbHNlOwogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAiZm9vIikgewogICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIG9iai5wcm9wID0gIm92ZXJyaWRlRGF0YSI7CiAgICAgICAgdmFyIHZlcmlmeVZhbHVlID0gZmFsc2U7CiAgICAgICAgdmVyaWZ5VmFsdWUgPSBvYmouZm9vICE9PSBvYmouZm9vICYmIGlzTmFOKG9iai5mb28pOwoKICAgICAgICB2YXIgZGVzYyA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3Iob2JqLCAiZm9vIik7CgogICAgICAgIHZhciB2ZXJpZnlDb25maWd1cmFibGUgPSBmYWxzZTsKICAgICAgICBkZWxldGUgb2JqLmZvbzsKICAgICAgICB2ZXJpZnlDb25maWd1cmFibGUgPSBvYmouaGFzT3duUHJvcGVydHkoImZvbyIpOwoKICAgICAgICByZXR1cm4gdmVyaWZ5VmFsdWUgJiYgIXZlcmlmeUVudW1lcmFibGUgJiYgdmVyaWZ5Q29uZmlndXJhYmxlOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSkgJiYgZm5FeGlzdHMoT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcik7CiAgICB9Cn0pOw==","id":"15.2.3.7-6-a-75","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-75.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNzYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS03Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAud3JpdGFsYmUgaXMgZmFsc2UsIHByb3BlcnRpZXMudmFsdWUgaXMgKzAgYW5kIFAudmFsdWUgaXMgLTAgKDguMTIuOSBzdGVwIDEwLmEuaWkuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IAogICAgICAgICAgICB2YWx1ZTogLTAsIAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiArMAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAtMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-76","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-76.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNzciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS03Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAud3JpdGFsYmUgaXMgZmFsc2UsIHByb3BlcnRpZXMudmFsdWUgaXMgKzAgYW5kIFAudmFsdWUgaXMgLTAgKDguMTIuOSBzdGVwIDEwLmEuaWkuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IAogICAgICAgICAgICB2YWx1ZTogKzAsIAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAtMAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCArMCwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICAgICAgfQogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-77","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-77.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNzgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS03OC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3Igd2hlbiBQLmNvbmZpZ3VyYWJsZSBpcyBmYWxzZSwgUC53cml0YWxiZSBpcyBmYWxzZSwgcHJvcGVydGllcy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgdHdvIG51bWJlcnMgd2l0aCB0aGUgc2FtZSB2YWx1ZSAoOC4xMi45IHN0ZXAgMTAuYS5paS4xKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwMCwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogMTAwCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgMTAwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-78","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-78.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtNzkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS03OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAud3JpdGFsYmUgaXMgZmFsc2UsIHByb3BlcnRpZXMudmFsdWUgYW5kIFAudmFsdWUgYXJlIHR3byBudW1iZXJzIHdpdGggZGlmZmVyZW50IHZhbHVlcyAoOC4xMi45IHN0ZXAgMTAuYS5paS4xKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgCiAgICAgICAgICAgIHZhbHVlOiAxMCwgCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwgCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UgCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDIwCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIDEwLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-79","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-79.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtOCIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTguanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUCcgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHRoYXQgb3ZlcnJpZGVzIGFuIGluaGVyaXRlZCBhY2Nlc3NvciBwcm9wZXJ0eSAoOC4xMi45IHN0ZXAgMSApICIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CiAgICAgICAgdmFyIHByb3RvID0ge307CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHByb3RvLCAicHJvcCIsIHsKICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbigpIHsKICAgICAgICAgICAgICAgIHJldHVybiAxMTsKICAgICAgICAgICAgfSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgfSk7CiAgICAgICAgdmFyIENvbiA9IGZ1bmN0aW9uICgpIHsgfTsKICAgICAgICBDb24ucHJvdG90eXBlID0gcHJvdG87CgogICAgICAgIHZhciBvYmogPSBuZXcgQ29uKCk7CiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgInByb3AiLCB7CiAgICAgICAgICAgIGdldDogZnVuY3Rpb24gKCkgewogICAgICAgICAgICAgICAgcmV0dXJuIDEyOwogICAgICAgICAgICB9LAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgcHJvcDogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMywKICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgb2JqLnByb3AgPT09IDEyOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-8","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-8.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtODAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS04MC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3Igd2hlbiBQLmNvbmZpZ3VyYWJsZSBpcyBmYWxzZSwgUC53cml0YWxiZSBpcyBmYWxzZSwgcHJvcGVydGllcy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgdHdvIHN0cmluZ3Mgd2l0aCB0aGUgc2FtZSB2YWx1ZSAoOC4xMi45IHN0ZXAgMTAuYS5paS4xKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgdmFsdWU6ICJhYmNkIiwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogImFiY2QiCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgImFiY2QiLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-80","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-80.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtODEiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS04MS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAud3JpdGFsYmUgaXMgZmFsc2UsIHByb3BlcnRpZXMudmFsdWUgYW5kIFAudmFsdWUgYXJlIHR3byBzdHJpbmdzIHdpdGggZGlmZmVyZW50IHZhbHVlcyAoOC4xMi45IHN0ZXAgMTAuYS5paS4xKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgCiAgICAgICAgICAgIHZhbHVlOiAiYWJjZCIsIAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAiZGVmZyIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgImFiY2QiLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-81","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-81.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtODIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS04Mi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3Igd2hlbiBQLmNvbmZpZ3VyYWJsZSBpcyBmYWxzZSwgUC53cml0YWxiZSBpcyBmYWxzZSwgcHJvcGVydGllcy52YWx1ZSBhbmQgUC52YWx1ZSBhcmUgdHdvIGJvb2xlYW5zIHdpdGggdGhlIHNhbWUgdmFsdWUgKDguMTIuOSBzdGVwIDEwLmEuaWkuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiBmYWxzZSwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBmYWxzZSwgZmFsc2UsIGZhbHNlLCBmYWxzZSk7CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7Cg==","id":"15.2.3.7-6-a-82","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-82.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtODMiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS04My5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAud3JpdGFsYmUgaXMgZmFsc2UsIHByb3BlcnRpZXMudmFsdWUgYW5kIFAudmFsdWUgYXJlIHR3byBib29sZWFucyB3aXRoIGRpZmZlcmVudCB2YWx1ZXMgKDguMTIuOSBzdGVwIDEwLmEuaWkuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiBmYWxzZSwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIGZhbHNlLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-83","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-83.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtODQtMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTg0LTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgd2lsbCBub3QgdGhyb3cgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAud3JpdGFsYmUgaXMgZmFsc2UsIHByb3BlcnRpZXMudmFsdWUgYW5kIFAudmFsdWUgYXJlIHR3byBPYmplY3RzIHJlZmVyIHRvIHRoZSBzYW1lIG9iamVjdCB3aGljaCBoYXMgYmVlbiB1cGRhdGVkIGJlZm9yZSB1c2UgaXQgdG8gdXBkYXRlIHRoZSBvYmplY3QgKDguMTIuOSBzdGVwIDEwLmEuaWkuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIHZhciBvYmoxID0geyBsZW5ndGg6IDEwIH07CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiBvYmoxLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdmFyIG9iajIgPSBvYmoxOwogICAgICAgIG9iajIueSA9ICJoZWxsbyI7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHZhbHVlOiBvYmoyCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1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AgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlIAogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICB2YWx1ZTogb2JqMQogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIG9iajEsIGZhbHNlLCBmYWxzZSwgZmFsc2UpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-84","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-84.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtODUiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS04NS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAud3JpdGFsYmUgaXMgZmFsc2UsIHByb3BlcnRpZXMudmFsdWUgYW5kIFAudmFsdWUgYXJlIHR3byBvYmplY3RzIHdpdGggZGlmZmVyZW50IHZhbHVlcyAoOC4xMi45IHN0ZXAgMTAuYS5paS4xKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIG9iajEgPSB7IGxlbmd0aDogMTAgfTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgCiAgICAgICAgICAgIHZhbHVlOiBvYmoxLCAKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLCAKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZSAKICAgICAgICB9KTsKCiAgICAgICAgdmFyIG9iajIgPSB7IGxlbmd0aDogMjAgfTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogb2JqMgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgcmV0dXJuIChlIGluc3RhbmNlb2YgVHlwZUVycm9yKSAmJiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBvYmoxLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-85","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-85.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtODYtMSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTg2LTEuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgd2lsbCBub3QgdGhyb3cgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIGJvdGggcHJvcGVydGllcy5bW1NldF1dIGFuZCBQLltbU2V0XV0gYXJlIHR3byBvYmplY3RzIHdoaWNoIHJlZmVyIHRvIHRoZSBzYW1lIG9iamVjdCBhbmQgdGhlIG9iamVjdCBoYXMgYmVlbiB1cGRhdGVkIGFmdGVyIGRlZmluZWQoOC4xMi45IHN0ZXAgMTEuYS5pKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgdmFyIHNldF9mdW5jID0gZnVuY3Rpb24gKHZhbHVlKSB7CiAgICAgICAgICAgIG9iai5zZXRWZXJpZnlIZWxwUHJvcCA9IHZhbHVlOwogICAgICAgIH0KCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsKICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBzZXRfZnVuYyA9IGZ1bmN0aW9uICh2YWx1ZSkgewogICAgICAgICAgICBvYmouc2V0VmVyaWZ5SGVscFByb3AxID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIHNldDogc2V0X2Z1bmMKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9i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9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHNldDogc2V0X2Z1bmMsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgc2V0OiBzZXRfZnVuYwogICAgICAgICAgICB9CiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCB1bmRlZmluZWQsIHNldF9mdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwoKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.7-6-a-86","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-86.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmN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gZGlmZmVyZW50IG9iamVjdHMgKDguMTIuOSBzdGVwIDExLmEuaSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIGZ1bmN0aW9uIHNldF9mdW5jMSh2YWx1ZSkgewogICAgICAgICAgICBvYmouc2V0VmVyaWZ5SGVscFByb3AgPSB2YWx1ZTsKICAgICAgICB9CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHNldDogc2V0X2Z1bmMxLAogICAgICAgICAgICBjb25maWd1cmFibGU6IGZhbHNlCiAgICAgICAgfSk7CgogICAgICAgIGZ1bmN0aW9uIHNldF9mdW5jMigpIHt9CgogICAgICAgIHRyeSB7CiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICAgICAgc2V0OiBzZXRfZnVuYzIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiAoZSBpbnN0YW5jZW9mIFR5cGVFcnJvcikgJiYgYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIHVuZGVmaW5lZCwgc2V0X2Z1bmMxLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-87","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-87.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtODgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS04OC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAuW1tTZXRdXSBpcyB1bmRlZmluZWQsIHByb3BlcnRpZXMuW1tTZXRdXSByZWZlcnMgdG8gYW4gb2JqY2V0ICg4LjEyLjkgc3RlcCAxMS5hLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBmdW5jdGlvbiBnZXRfRnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZ2V0OiBnZXRfRnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gc2V0X0Z1bmMoKSB7IH0KCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgICAgICBzZXQ6IHNldF9GdW5jCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICB2YXIgdmVyaWZ5RW51bWVyYWJsZSA9IGZhbHNlOwogICAgICAgICAgICBmb3IgKHZhciBwIGluIG9iaikgewogICAgICAgICAgICAgICAgaWYgKHAgPT09ICJmb28iKSB7CiAgICAgICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJmb28iKTsKCiAgICAgICAgICAgIHZhciB2ZXJpZnlDb25maWd1cmFibGUgPSBmYWxzZTsKICAgICAgICAgICAgZGVsZXRlIG9iai5mb287CiAgICAgICAgICAgIHZlcmlmeUNvbmZpZ3VyYWJsZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vIik7CgogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJiAhdmVyaWZ5RW51bWVyYWJsZSAmJiB2ZXJpZnlDb25maWd1cmFibGUgJiYgdHlwZW9mIChkZXNjLnNldCkgPT09ICJ1bmRlZmluZWQiOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpICYmIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpOwogICAgfQp9KTs=","id":"15.2.3.7-6-a-88","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-88.js"},{"code":"77u/Ly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ogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTg5LmpzIiwKCiAgICBkZXNjcmlwdGlvbjogIk9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzIHdpbGwgbm90IHRocm93IFR5cGVFcnJvciB3aGVuIFAuY29uZmlndXJhYmxlIGlzIGZhbHNlLCBQLltbU2V0XV0gYW5kIHByb3BlcnRpZXMuW1tTZXRdXSBhcmUgdW5kZWZpbmVkICg4LjEyLjkgc3RlcCAxMS5hLmkpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBmdW5jdGlvbiBnZXRfRnVuYygpIHsKICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGdldF9GdW5jLAogICAgICAgICAgICBzZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgc2V0OiB1bmRlZmluZWQKICAgICAgICAgICAgfQogICAgICAgIH0pOwoKICAgICAgICB2YXIgdmVyaWZ5RW51bWVyYWJsZSA9IGZhbHNlOwogICAgICAgIGZvciAodmFyIHAgaW4gb2JqKSB7CiAgICAgICAgICAgIGlmIChwID09PSAiZm9vIikgewogICAgICAgICAgICAgICAgdmVyaWZ5RW51bWVyYWJsZSA9IHRydWU7CiAgICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBkZXNjID0gT2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcihvYmosICJmb28iKTsKCiAgICAgICAgdmFyIHZlcmlmeUNvbmZpZ3VyYWJsZSA9IGZhbHNlOwogICAgICAgIGRlbGV0ZSBvYmouZm9vOwogICAgICAgIHZlcmlmeUNvbmZpZ3VyYWJsZSA9IG9iai5oYXNPd25Qcm9wZXJ0eSgiZm9vIik7CgogICAgICAgIHJldHVybiB2ZXJpZnlDb25maWd1cmFibGUgJiYgIXZlcmlmeUVudW1lcmFibGUgJiYgdHlwZW9mIChkZXNjLnNldCkgPT09ICJ1bmRlZmluZWQiOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOw==","id":"15.2.3.7-6-a-89","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-89.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtOSIsCgogICAgcGF0aDogIlRlc3RDYXNlcy9jaGFwdGVyMTUvMTUuMi8xNS4yLjMvMTUuMi4zLjcvMTUuMi4zLjctNi1hLTkuanMiLAoKICAgIGRlc2NyaXB0aW9uOiAiT2JqZWN0LmRlZmluZVByb3BlcnRpZXMgLSAnUCcgaXMgb3duIGFjY2Vzc29yIHByb3BlcnR5IHdpdGhvdXQgYSBnZXQgZnVuY3Rpb24gKDguMTIuOSBzdGVwIDEgKSAiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewogICAgICAgIHZhciBvYmogPSB7fTsKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAicHJvcCIsIHsKICAgICAgICAgICAgc2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wOiB7CiAgICAgICAgICAgICAgICAgICAgZ2V0OiBmdW5jdGlvbiAoKSB7IH0sCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-9","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-9.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtOTAiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS05MC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB3aWxsIG5vdCB0aHJvdyBUeXBlRXJyb3Igd2hlbiBQLmNvbmZpZ3VyYWJsZSBpcyBmYWxzZSwgYm90aCBwcm9wZXJ0aWVzLltbR2V0XV0gYW5kIFAuW1tHZXRdXSBhcmUgdHdvIG9iamVjdHMgd2hpY2ggcmVmZXIgdG8gdGhlIHNhbWUgb2JqZWN0ICg4LjEyLjkgc3RlcCAxMS5hLmlpKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgZnVuY3Rpb24gc2V0X2Z1bmModmFsdWUpIHsKICAgICAgICAgICAgb2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQogICAgICAgIGZ1bmN0aW9uIGdldF9mdW5jKCkgewogICAgICAgICAgICByZXR1cm4gMTA7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IGdldF9mdW5jLAogICAgICAgICAgICBzZXQ6IHNldF9mdW5jLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgZm9vOiB7CiAgICAgICAgICAgICAgICBnZXQ6IGdldF9mdW5jCiAgICAgICAgICAgIH0KICAgICAgICB9KTsKICAgICAgICByZXR1cm4gYWNjZXNzb3JQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgImZvbyIsIGdldF9mdW5jLCBzZXRfZnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.7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AgICAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgICAgIGdldDogZ2V0X2Z1bmMyCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCBnZXRfZnVuYzEsIHNldF9mdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KCiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-91","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-91.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtOTIiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS05Mi5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyB0aHJvd3MgVHlwZUVycm9yIHdoZW4gUC5jb25maWd1cmFibGUgaXMgZmFsc2UsIFAuW1tHZXRdXSBpcyB1bmRlZmluZWQsIHByb3BlcnRpZXMuW1tHZXRdXSByZWZlcnMgdG8gYW4gb2JqY2V0ICg4LjEyLjkgc3RlcCAxMS5hLmlpKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgZnVuY3Rpb24gc2V0X2Z1bmModmFsdWUpIHsKICAgICAgICAgICAgb2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgZnVuY3Rpb24gZ2V0X2Z1bmMoKSB7CiAgICAgICAgICAgIHJldHVybiAwOwogICAgICAgIH0KCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgICAgICBnZXQ6IGdldF9mdW5jCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gKGUgaW5zdGFuY2VvZiBUeXBlRXJyb3IpICYmIGFjY2Vzc29yUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCB1bmRlZmluZWQsIHNldF9mdW5jLCAic2V0VmVyaWZ5SGVscFByb3AiLCBmYWxzZSwgZmFsc2UpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpIC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ogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgdHJ5IHsKICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgICAgICBwcm9wZXJ0eTogewogICAgICAgICAgICAgICAgICAgIHZhbHVlOiAxMDAyCiAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgcHJvcGVydHkxOiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEwMDQKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSk7CgogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgICAgICByZXR1cm4gZSBpbnN0YW5jZW9mIFR5cGVFcnJvciAmJgogICAgICAgICAgICAgICAgZGF0YVByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAicHJvcGVydHkiLCAxMDAyLCBmYWxzZSwgZmFsc2UsIHRydWUpICYmCiAgICAgICAgICAgICAgICBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wZXJ0eTEiLCAxMDAzLCBmYWxzZSwgZmFsc2UsIGZhbHNlKTsKICAgICAgICB9CiAgICB9LAoKICAgIHByZWNvbmRpdGlvbjogZnVuY3Rpb24gcHJlcmVxKCkgewogICAgICAgIHJldHVybiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydGllcykgJiYgZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnR5KTsKICAgIH0KfSk7","id":"15.2.3.7-6-a-93-1","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-93-1.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdp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5lUHJvcGVydGllcyB3aWxsIHVwZGF0ZSBbW1ZhbHVlXV0gYXR0cmlidXRlIG9mIGluZGV4ZWQgZGF0YSBwcm9wZXJ0eSAnUCcgc3VjY2Vzc2Z1bGx5IHdoZW4gW1tDb25maWd1cmFibGVdXSBhdHRyaWJ1dGUgaXMgdHJ1ZSBhbmQgW1tXcml0YWJsZV1dIGF0dHJpYnV0ZSBpcyBmYWxzZSBidXQgbm90IHdoZW4gYm90aCBhcmUgZmFsc2UgKDguMTIuOSAtIHN0ZXAgTm90ZSAmIDEwLmEuaWkuMSkiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICIwIiwgewogICAgICAgICAgICB2YWx1ZTogMTAwMSwKICAgICAgICAgICAgd3JpdGFibGU6IGZhbHNlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUKICAgICAgICB9KTsKICAgICAgICAKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiMSIsIHsKICAgICAgICAgICAgdmFsdWU6IDEwMDMsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIDA6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTAwMgogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIDE6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTAwNAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNl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gICAgICAgdmFsdWU6IDEwMDEsCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwKICAgICAgICAgICAgY29uZmlndXJhYmxlOiBmYWxzZQogICAgICAgIH0pOwogICAgICAgIAogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJwcm9wZXJ0eTEiLCB7CiAgICAgICAgICAgIHZhbHVlOiAxMDAzLAogICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgIH0pOwoKICAgICAgICB0cnkgewogICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydGllcyhvYmosIHsKICAgICAgICAgICAgICAgIHByb3BlcnR5OiB7CiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IDEwMDIKICAgICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgICBwcm9wZXJ0eTE6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTAwNAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wZXJ0eSIsIDEwMDEsIGZhbHNlLCBmYWxzZSwgZmFsc2UpICYmCiAgICAgICAgICAgICAgICBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJwcm9wZXJ0eTEiLCAxMDAzLCBmYWxzZSwgZmFsc2UsIHRydWUpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0a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AgICAgICAgICAgICB2YWx1ZTogMTAwMgogICAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAgIDE6IHsKICAgICAgICAgICAgICAgICAgICB2YWx1ZTogMTAwNAogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIHJldHVybiBlIGluc3RhbmNlb2YgVHlwZUVycm9yICYmCiAgICAgICAgICAgICAgICBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICIwIiwgMTAwMSwgZmFsc2UsIGZhbHNlLCBmYWxzZSkgJiYKICAgICAgICAgICAgICAgIGRhdGFQcm9wZXJ0eUF0dHJpYnV0ZXNBcmVDb3JyZWN0KG9iaiwgIjEiLCAxMDAzLCBmYWxzZSwgZmFsc2UsIHRydWUpOwogICAgICAgIH0KICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.7-6-a-93-4","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-93-4.js"},{"code":"77u/Ly8vIENvcHlyaWdodCAoYykgMjAwOSBNaWNyb3NvZnQgQ29ycG9yYXRpb24gCi8vLyAKLy8vIFJlZGlzdHJpYnV0aW9uIGFuZCB1c2UgaW4gc291cmNlIGFuZCBiaW5hcnkgZm9ybXMsIHdpdGggb3Igd2l0aG91dCBtb2RpZmljYXRpb24sIGFyZSBwZXJtaXR0ZWQgcHJvdmlkZWQKLy8vIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zIGFyZSBtZXQ6IAovLy8gICAgKiBSZWRpc3RyaWJ1dG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jkgc3RlcCAxMS5hLmlpKSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgZnVuY3Rpb24gc2V0X2Z1bmModmFsdWUpIHsKICAgICAgICAgICAgb2JqLnNldFZlcmlmeUhlbHBQcm9wID0gdmFsdWU7CiAgICAgICAgfQoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgewogICAgICAgICAgICBnZXQ6IHVuZGVmaW5lZCwKICAgICAgICAgICAgc2V0OiBzZXRfZnVuYywKICAgICAgICAgICAgZW51bWVyYWJsZTogZmFsc2UsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgZ2V0OiB1bmRlZmluZWQKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBhY2Nlc3NvclByb3BlcnR5QXR0cmlidXRlc0FyZUNvcnJlY3Qob2JqLCAiZm9vIiwgdW5kZWZpbmVkLCBzZXRfZnVuYywgInNldFZlcmlmeUhlbHBQcm9wIiwgZmFsc2UsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5nZXRPd25Qcm9wZXJ0eURlc2NyaXB0b3IpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTs=","id":"15.2.3.7-6-a-93","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-93.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3Qo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LAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS05NS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBpcyBkYXRhIHByb3BlcnR5LCBQLnZhbHVlIGlzIHByZXNlbnQgYW5kIHByb3BlcnRpZXMudmFsdWUgaXMgdW5kZWZpbmVkICg4LjEyLjkgc3RlcCAxMikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiAyMDAsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUgCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHZhbHVlOiB1bmRlZmluZWQKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCB1bmRlZmluZWQsIHRydWUsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-95","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-95.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtOTYiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS05Ni5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBpcyBkYXRhIHByb3BlcnR5LCBwcm9wZXJ0aWVzLnZhbHVlIGlzIHByZXNlbnQgYW5kIFAudmFsdWUgaXMgdW5kZWZpbmVkICg4LjEyLjkgc3RlcCAxMikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7CiAgICAgICAgICAgIHZhbHVlOiB1bmRlZmluZWQsCiAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUsCiAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUgCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIHZhbHVlOiAyMDAKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAyMDAsIHRydWUsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-96","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-96.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtOTciLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS05Ny5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBpcyBkYXRhIHByb3BlcnR5LCBQLndyaXRhYmxlIGFuZCBwcm9wZXJ0aWVzLndyaXRhYmxlIGFyZSBkaWZmZXJlbnQgdmFsdWVzICg4LjEyLjkgc3RlcCAxMikiLAoKICAgIHRlc3Q6IGZ1bmN0aW9uIHRlc3RjYXNlKCkgewoKICAgICAgICB2YXIgb2JqID0ge307CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShvYmosICJmb28iLCB7IAogICAgICAgICAgICB2YWx1ZTogMTAwLCAKICAgICAgICAgICAgZW51bWVyYWJsZTogdHJ1ZSwgCiAgICAgICAgICAgIHdyaXRhYmxlOiBmYWxzZSwgCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZSAKICAgICAgICB9KTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnRpZXMob2JqLCB7CiAgICAgICAgICAgIGZvbzogewogICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAxMDAsIHRydWUsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-97","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-97.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtOTgiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS05OC5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBpcyBkYXRhIHByb3BlcnR5LCBQLmVudW1lcmFibGUgYW5kIHByb3BlcnRpZXMuZW51bWVyYWJsZSBhcmUgZGlmZmVyZW50IHZhbHVlcyAoOC4xMi45IHN0ZXAgMTIpIiwKCiAgICB0ZXN0OiBmdW5jdGlvbiB0ZXN0Y2FzZSgpIHsKCiAgICAgICAgdmFyIG9iaiA9IHt9OwoKICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkob2JqLCAiZm9vIiwgeyAKICAgICAgICAgICAgdmFsdWU6IDIwMCwgCiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLCAKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUgCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IHRydWUKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAyMDAsIHRydWUsIHRydWUsIHRydWUpOwogICAgfSwKCiAgICBwcmVjb25kaXRpb246IGZ1bmN0aW9uIHByZXJlcSgpIHsKICAgICAgICByZXR1cm4gZm5FeGlzdHMoT2JqZWN0LmRlZmluZVByb3BlcnRpZXMpICYmIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0eSk7CiAgICB9Cn0pOwo=","id":"15.2.3.7-6-a-98","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-98.js"},{"code":"RVM1SGFybmVzcy5yZWdpc3RlclRlc3QoewogICAgaWQ6ICIxNS4yLjMuNy02LWEtOTkiLAoKICAgIHBhdGg6ICJUZXN0Q2FzZXMvY2hhcHRlcjE1LzE1LjIvMTUuMi4zLzE1LjIuMy43LzE1LjIuMy43LTYtYS05OS5qcyIsCgogICAgZGVzY3JpcHRpb246ICJPYmplY3QuZGVmaW5lUHJvcGVydGllcyAtICdQJyBpcyBkYXRhIHByb3BlcnR5LCBQLmNvbmZpZ3VyYWJsZSBpcyB0cnVlIGFuZCBwcm9wZXJ0aWVzLmNvbmZpZ3VyYWJsZSBpcyBmYWxzZSIsCgogICAgdGVzdDogZnVuY3Rpb24gdGVzdGNhc2UoKSB7CgogICAgICAgIHZhciBvYmogPSB7fTsKCiAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KG9iaiwgImZvbyIsIHsgCiAgICAgICAgICAgIHZhbHVlOiAyMDAsIAogICAgICAgICAgICBlbnVtZXJhYmxlOiB0cnVlLCAKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsIAogICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUgCiAgICAgICAgfSk7CgogICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKG9iaiwgewogICAgICAgICAgICBmb286IHsKICAgICAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogZmFsc2UKICAgICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBkYXRhUHJvcGVydHlBdHRyaWJ1dGVzQXJlQ29ycmVjdChvYmosICJmb28iLCAyMDAsIHRydWUsIHRydWUsIGZhbHNlKTsKICAgIH0sCgogICAgcHJlY29uZGl0aW9uOiBmdW5jdGlvbiBwcmVyZXEoKSB7CiAgICAgICAgcmV0dXJuIGZuRXhpc3RzKE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKSAmJiBmbkV4aXN0cyhPYmplY3QuZGVmaW5lUHJvcGVydHkpOwogICAgfQp9KTsK","id":"15.2.3.7-6-a-99","path":"TestCases/chapter15/15.2/15.2.3/15.2.3.7/15.2.3.7-6-a-99.js"}]}}